This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32716] Wrong code generation. Inlining problem.
- From: "pranav dot bhandarkar at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2007 10:02:29 -0000
- Subject: [Bug c++/32716] Wrong code generation. Inlining problem.
- References: <bug-32716-14263@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pranav dot bhandarkar at gmail dot com 2007-07-10 10:02 -------
Created an attachment (id=13876)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13876&action=view)
Dump of the early inline pass, that highlights the problem with the inliner
h() gets inlined into main but the result of the increment in h() is not used
in main after inlining causing 0 to be assigned to result.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32716