This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/31886] (different from bug report c/31077 and 29241) C handling of always_inline attribute error and a solution
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 May 2007 03:19:10 -0000
- Subject: [Bug c/31886] (different from bug report c/31077 and 29241) C handling of always_inline attribute error and a solution
- References: <bug-31886-14209@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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