From patchwork Fri Oct 7 14:06:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 679276 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3srBCg0sXHz9t0P for ; Sat, 8 Oct 2016 01:06:54 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=jNSxKVbI; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=NtuskgTbHpkJkMLc27+VTB3EymwP44JEzZOwP1wWR33h1MoQZc vyg6Qb52bjJChtMA2XgyF9BdBbTkXohLz/0G9xh4prH6fyPuP5P7flL50elghg0W Pi5QMupQKZkbEJCc1OUi6v4PY65MEf7PDP15oouoHyZWq+qIeOR0tQGL0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type; s= default; bh=yBD1WL9kBQtN3UQXwzhEJtH9CgM=; b=jNSxKVbI1DYz8UOzhLl3 9uu0oVd0In1OZkaHfvtYx1gcFA1AFkf8hjxWIIttowkeO1G70M+JN7CFlooWUhnM 1hi32Zr6mvTT6WuXHgxRHhkvCYe+2fDQgKBZ4H83RPLGDTMxC2Sir+iN9BDqiJNZ 81lkIvG5cR4l2ORbuM9HLZE= Received: (qmail 60806 invoked by alias); 7 Oct 2016 14:06:43 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 60771 invoked by uid 89); 7 Oct 2016 14:06:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=blockquote, flash, amp X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.216) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Oct 2016 14:06:31 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT3ol15ykJcYwR/bcHRirORRW3yMcVao= X-RZG-CLASS-ID: mo00 Received: from [192.168.0.123] (mail.hightec-rt.com [213.135.1.215]) by smtp.strato.de (RZmta 39.5 DYNA|AUTH) with ESMTPSA id j0a8f3s97E6R2Bl (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 7 Oct 2016 16:06:27 +0200 (CEST) To: GCC Patches Cc: Gerald Pfeifer , Denis Chertykov , Senthil Kumar Selvaraj From: Georg-Johann Lay Subject: [patch,wwwdocs] Add v7 AVR release notes. Message-ID: <3f09b368-e948-711f-b44a-200dbadc3a8b@gjlay.de> Date: Fri, 7 Oct 2016 16:06:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 X-IsSubscribed: yes Mentioning some AVR target specific improvements. Ok? Index: changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-7/changes.html,v retrieving revision 1.15 diff -r1.15 changes.html 261c261,299 < --- >

AVR

>
    >
  • On the reduced Tiny cores, the progmem > variable > attribute > is now properly supported. Respective read-only variables are located > in flash memory in section .progmem.data. No special > code is needed to access such variables; the compiler automatically > adds an offset of 0x4000 to all addresses which is needed > to access variables in flash memory. As opposed to ordinary cores > where it is sufficient to specify the progmem attribute > with definitions, on the reduced Tiny cores the attribute has also to > be specified with (external) declarations: >
    > extern const int array[] __attribute__((__progmem__));
    > 
    > int get_value2 (void)
    > {
    >   /* Access via addresses array + 0x4004 and array + 0x4005. */
    >   return array[2];
    > }
    > 
    > const int* get_address (unsigned idx)
    > {
    >   /* Returns array + 0x4000 + 2 * idx. */
    >   return &array[idx];
    > }
  • >
  • A new command line option -Wmisspelled-isr has been added. > It can be used to turn off — or turn into errors — > warnings that are reported for interrupt service routines (ISRs) > which don't follow AVR-LibC's naming convention of prefixing > ISR names with __vector.
  • >
  • __builtin_avr_nops(n_nops) is a new > built-in > function > that inserts n_nops NOP instructions into > the instruction stream. n_nops must be a value known at > compile time.
  • >