This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/56099] Empty static noinline functions aren't called from optimized code
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 Jan 2013 18:45:19 +0000
- Subject: [Bug tree-optimization/56099] Empty static noinline functions aren't called from optimized code
- Auto-submitted: auto-generated
- References: <bug-56099-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56099
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Component|c |tree-optimization
Resolution| |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-01-24 18:45:19 UTC ---
You want:
__attribute__((noinline, noclone))
static int func_ni() {
asm("");
return 1;
}
---- CUT ----
So the function is not considered pure/const and does not get cloned either.