This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/26364] [4.0/4.1/4.2 regression] [no unit-at-a-time mode] Uninlined function is marked as inlined
- From: "wilson at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Feb 2006 00:39:49 -0000
- Subject: [Bug debug/26364] [4.0/4.1/4.2 regression] [no unit-at-a-time mode] Uninlined function is marked as inlined
- References: <bug-26364-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from wilson at gcc dot gnu dot org 2006-02-22 00:39 -------
I should mention that your testcase uses -Os, and -Os enables
-finline-functions-called-once. This is why the function is marked as
"inline". If you don't want this feature, you can turn it off.
Also, -fno-unit-at-a-time is expected to disappear at some point, so problems
that only appear with this option may not be worth fixing if they are too hard
to fix.
Using both -finline-functions-called-once and -fno-unit-at-a-time is
contradictory, so it isn't surprising there is a problem. We could try to
detect that and turn one of them off, possibly with a warning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26364