From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18441 invoked by alias); 10 May 2007 03:41:16 -0000 Received: (qmail 18411 invoked by alias); 10 May 2007 03:41:06 -0000 Date: Thu, 10 May 2007 03:41:00 -0000 Message-ID: <20070510034106.18410.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/31886] (different from bug report c/31077 and 29241) C handling of always_inline attribute error and a solution In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "zhouzhouyi at ercist dot iscas dot ac dot cn" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-05/txt/msg00737.txt.bz2 ------- Comment #2 from zhouzhouyi at ercist dot iscas dot ac dot cn 2007-05-10 04:41 ------- Subject: Re: (different from bug report c/31077 and 29241) C handling of always_inline attribute error and a solution Dear pinskia, If you lookup my solution current handling of conditions for optimize_inline_calls in tree_rest_of_compilation is obvious not good. Sincerely yours Zhouyi Zhou On 10 May 2007 03:19:10 -0000 "pinskia at gcc dot gnu dot org" wrote: > > > ------- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-10 04:19 ------- > I don't think this is a bug. The documentation for always inline says: > "For functions declared inline, this attribute inlines the function even if no > optimization level was specified." > > That quote is from: > http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Function-Attributes.html > And it is also in: > http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc/Function-Attributes.html > > > alloc_null_binding is not declared inline so how do you think GCC will inline > this function? > > > -- > > pinskia at gcc dot gnu dot org changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Status|UNCONFIRMED |WAITING > Summary|(different from bug report |(different from bug report > |c/31077 and 29241) C |c/31077 and 29241) C > |handling of always_inline |handling of always_inline > |attribute error and a |attribute error and a > |solution |solution > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31886 > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31886