From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6706 invoked by alias); 16 Aug 2012 15:15:39 -0000 Received: (qmail 6658 invoked by uid 22791); 16 Aug 2012 15:15:35 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pb0-f47.google.com (HELO mail-pb0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Aug 2012 15:15:22 +0000 Received: by pbcwy7 with SMTP id wy7so1720970pbc.20 for ; Thu, 16 Aug 2012 08:15:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.131.103 with SMTP id ol7mr3947764pbb.71.1345130121703; Thu, 16 Aug 2012 08:15:21 -0700 (PDT) Received: by 10.66.49.69 with HTTP; Thu, 16 Aug 2012 08:15:21 -0700 (PDT) In-Reply-To: References: Date: Thu, 16 Aug 2012 15:37:00 -0000 Message-ID: Subject: Re: print gcc optimization log From: Xin Tong To: Ian Lance Taylor Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2012-08/txt/msg00124.txt.bz2 are these options enabled on production build, i.e. build i install with apt-get install gcc on ubuntu ? Xin On Wed, Aug 15, 2012 at 10:21 PM, Ian Lance Taylor wrote: > On Wed, Aug 15, 2012 at 8:58 PM, Xin Tong wrote: >> I sometimes run into issues where i want to figure out why gcc is >> performing a specific optimization and what the optimization affects >> the tree. is there any documents on how to print gcc optimizations and >> code generation logs ? > > Unfortunately GCC has very little in the way of logs intended for end > users. About all I know is the -ftree-vectorizer-verbose information, > which gives useful feedback about the vectorization optimizations. > > You can a lot of information by using -fdump-tree-all-details > -fdump-rtl-all-details, but it's difficult to interpret without the > source code and a working knowledge of GCC internals. > > Ian