From patchwork Fri Jun 1 09:28:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 162288 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]) by ozlabs.org (Postfix) with SMTP id 6C6BFB7008 for ; Fri, 1 Jun 2012 19:28:40 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1339147721; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=106FXeSwuq9eY8ltng/YWFZ4/oM=; b=PiS8XKgT2A0mxSf yCZt5GZR/faZFj5l3EKSs6koC5wBZfXECYR7Yz7YsuLia+h/sNkBgzPSIwkUKlUh QpRJr3EEQ8sJP6t7DMFyXK6l83hIxbZoJ0TZqoIC4e3a4vSpWFjedW1A8BYHi0+x JAj8ObD3/rnyTL2Eh3aTK5dWAKL4= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:X-RZG-AUTH:X-RZG-CLASS-ID:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=v/jCjkBXqGknCAlL/qQvS/DcpfEhbN9LzwCNehitcogABB1psAlri1eczz3X0A F0rVSLRReE14c80nJ3eQYw/UDeTsYgovqhc1e7jjlfjYJZaYYt/kqcN6Y5adTEN9 XUivTTlnSxU1dMPYRTfySogtCotvvA4Hz6IM1L2zcSuRQ=; Received: (qmail 7737 invoked by alias); 1 Jun 2012 09:28:36 -0000 Received: (qmail 7729 invoked by uid 22791); 1 Jun 2012 09:28:35 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SARE_SUB_PCT_LETTER X-Spam-Check-By: sourceware.org Received: from mo-p00-ob.rzone.de (HELO mo-p00-ob.rzone.de) (81.169.146.161) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Jun 2012 09:28:22 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT2k715jHQaJercGObUOFkj18odoYNahU4Q== X-RZG-CLASS-ID: mo00 Received: from [192.168.0.22] (business-188-111-022-002.static.arcor-ip.net [188.111.22.2]) by smtp.strato.de (jorabe mo56) (RZmta 29.10 AUTH) with ESMTPA id 5003c5o517HpO5 for ; Fri, 1 Jun 2012 11:28:21 +0200 (CEST) Message-ID: <4FC88B32.6040303@gjlay.de> Date: Fri, 01 Jun 2012 11:28:18 +0200 From: Georg-Johann Lay User-Agent: Thunderbird 2.0.0.24 (X11/20100302) MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: [wwwdocs,4.7,AVR,committed]: Mention the new %i asm print modifier X-IsSubscribed: yes 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 Yet another new feature in 4.7, committed Johann
  • 64-bit integer arithmetic
  • Index: changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.7/changes.html,v retrieving revision 1.108 diff -u -p -r1.108 changes.html --- changes.html 21 Apr 2012 00:00:20 -0000 1.108 +++ changes.html 1 Jun 2012 09:15:18 -0000 @@ -676,6 +676,21 @@ int add_values (const __flash int *p, in
  • New command-line options -maccumulate-args, -mbranch-cost=cost and -mstrict-X were added to allow better fine-tuning of code optimization.
  • +
  • A new inline assembler print modifier %i to print a RAM address as I/O + address has been added: + +
    +#include <avr/io.h> /* Port Definitions from AVR-LibC */
    +
    +void set_portb (uint8_t value)
    +{
    +    asm volatile ("out %0, %i1" :: "r" (value), "n" (&PORTB) : "memory");
    +}
    + The offset between an I/O address and a RAM address for that I/O + location is device-specific. This offset is taken into account when + printing a RAM address with the %i modifier so that the + address is suitable to be used as operand in an I/O command. + The address must be a constant integer known at compile time.
  • Many optimizations to: