[Bug middle-end/42577] array bounds false positive with -O3, goes away with -O2

2010-01-02 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-01-02 14:57 --- I have a patch. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/42577] array bounds false positive with -O3, goes away with -O2

2010-01-01 Thread matt at use dot net
--- Comment #1 from matt at use dot net 2010-01-01 21:02 --- Created an attachment (id=19439) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19439action=view) pre-processed output of the file that emitted the warning commandline: g++-4.4

[Bug middle-end/42577] array bounds false positive with -O3, goes away with -O2

2010-01-01 Thread matt at use dot net
--- Comment #2 from matt at use dot net 2010-01-01 21:16 --- sorry, I lied. This is still an issue in GCC 4.5.20091228. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42577

[Bug middle-end/42577] array bounds false positive with -O3, goes away with -O2

2010-01-01 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-01-01 22:42 --- The array indexing is done with D.25175_104, but D.25173_102 = (uint16) cutawaySlot_256; D.25174_103 = D.25173_102 + 10; D.25175_104 = (int) D.25174_103; ... if (D.25174_103 9) goto bb 26; else