[Bug c++/42810] Enumeration with sequential values has its for-loop exit condition optimized out.
tony3 at GarlandConsulting dot us
gcc-bugzilla@gcc.gnu.org
Tue Jan 19 22:59:00 GMT 2010
------- Comment #5 from tony3 at GarlandConsulting dot us 2010-01-19 22:58 -------
Created an attachment (id=19664)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19664&action=view)
Assembler input which works correctly compiled at -O1
In this sample, the exit condition is properly tested as can be seen in the
assembly listing. The difference between this file and test.s shows how the
exit condition gets optimized out.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42810
More information about the Gcc-bugs
mailing list