This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]