This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/48072] Function with __attribute__((used)) is not inlined at -O1 level
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 Mar 2011 13:47:36 +0000
- Subject: [Bug tree-optimization/48072] Function with __attribute__((used)) is not inlined at -O1 level
- Auto-submitted: auto-generated
- References: <bug-48072-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48072
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-11 13:47:27 UTC ---
Why should it be? Because of the used attribute it can't be considered as
called just once, so -finline-functions-called-once doesn't apply. And it
isn't declared inline either.