From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19641 invoked by alias); 7 Jan 2011 00:49:16 -0000 Received: (qmail 19633 invoked by uid 22791); 7 Jan 2011 00:49:16 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Jan 2011 00:49:10 +0000 Received: (qmail 15402 invoked from network); 7 Jan 2011 00:49:08 -0000 Received: from unknown (HELO codesourcery.com) (froydnj@127.0.0.2) by mail.codesourcery.com with ESMTPA; 7 Jan 2011 00:49:08 -0000 Date: Fri, 07 Jan 2011 01:31:00 -0000 From: Nathan Froyd To: gcc-patches@gcc.gnu.org Cc: gerald@pfeifer.com, dje.gcc@gmail.com Subject: [wwwdocs] [PATCH] document new features and options Message-ID: <20110107004905.GA11802@nightcrawler> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00339.txt.bz2 Gerald asked that the PowerPC -msingle-pic-base option be documented. I've skimmed through the ChangeLog and tried to add other interesting things in as well. OK to commit? David, do the PowerPC descriptions look reasonable? -Nathan *** changes.html.~1.81.~ 2011-01-06 17:29:36.000000000 -0500 --- changes.html 2011-01-06 19:43:31.252499307 -0500 *************** *** 145,150 **** --- 145,155 ---- It can be used to enable or disable the compiler's stack-slot combining pass which before was enabled automatically at -O1 and above, but could not be controlled on its own. +
  • A new switch -fstrict-volatile-bitfields has been + added. Using it indicates that accesses to volatile bitfields + should use a single access of the width of the field's type. + This option can be useful for precisely defining and accessing + memory-mapped peripheral registers from C.
  • Compile time and memory usage improvements

    *************** *** 185,190 **** --- 190,200 ----
  • The new function attribute callee_pop_aggregate allows to specify if the caller or callee is responsible for popping the aggregate return pointer value from the stack.
  • +
  • Support for selectively enabling and disabling warnings + via #pragma GCC diagnostic has been added.
  • +
  • The -fmax-errors=N option is now supported. Using + this option causes the compiler to exit after N errors + have been issued.
  • C

    *************** *** 244,249 **** --- 254,268 ---- type declaration shadows another type in C++. Note that the compiler will not warn if a local variable shadows a struct/class/enum, but will warn if it shadows an explicit typedef. + +
  • When an identifier is not found in the current scope, G++ now + offers suggestions about which identifier might have been + intended.
  • + +
  • G++ now issues clearer diagnostics for missing semicolons + after class, struct, + and union definitions. Clearer diagnostics are also + issued for missing semicolons after class member declarations.

    Runtime Library (libstdc++)

    *************** *** 530,535 **** --- 549,556 ----
    • The SSA loop prefetching pass is enabled when using -O3.
    • +
    • GCC now supports the Cortex-M4 processor + with -mcpu=cortex-m4.

    IA-32/x86-64

    *************** *** 582,593 ****

    picochip

    !

    PowerPC64

      !
    • PowerPC64 Linux support for applications requiring a large ! TOC section has been improved. A new command-line option, ! -mcmodel=[small,medium,large], controls this ! feature.

    S/390, zSeries and System z9/z10, IBM zEnterprise z196

    --- 603,629 ----

    picochip

    !

    PowerPC/PowerPC64

      !
    • GCC now supports the Applied Micro Titan processor ! with -mcpu=titan.
    • !
    • The -mrecip option has been added, which indicates ! whether to the reciprocal and reciprocal square root instructions ! should be used.
    • !
    • The -mveclibabi=mass option can be used to enable ! the compiler to autovectorize mathematical functions using the ! Mathematical Acceleration Subsystem library.
    • !
    • The -msingle-pic-base option has been added, which ! instructs the compiler to avoid loading the PIC base register in ! function prologues. The PIC base register must be initialized by ! the runtime system.
    • !
    • The -mblock-move-inline-limit option has been ! added, which enables the user to control the maximum size of ! inlined memcpy calls and similar.
    • !
    • PowerPC64 Linux support for applications requiring a large ! TOC section has been improved. A new command-line option, ! -mcmodel=[small,medium,large], controls this ! feature.

    S/390, zSeries and System z9/z10, IBM zEnterprise z196