[Bug c++/32716] Wrong code generation. Inlining problem.

pranav dot bhandarkar at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jul 10 10:02:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list