This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/34563] noinline function call being removed
- 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: 9 Jan 2008 22:45:14 -0000
- Subject: [Bug tree-optimization/34563] noinline function call being removed
- References: <bug-34563-507@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from pinskia at gcc dot gnu dot org 2008-01-09 22:45 -------
(In reply to comment #7)
> Testing of stuff like kprobes in Linux would be a lot easier if nolinline
> worked reliably. See this thread, for example:
> http://marc.info/?l=linux-kernel&m=119991179332571&w=2
This function is not being inlined, the call to it is just being removed as the
function is const in this case. As shown by the change there, you are changing
a pure/const function into a function which is neither anymore so we don't
remove calls to functions which are neither pure or const as that would cause
wrong code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34563