[Bug c/48090] gcc 4.5.2 miscompilation when building on arm

2011-03-13 Thread arnaud.pat...@rtp-net.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48090 --- Comment #9 from arnaud patard 2011-03-13 20:40:27 UTC --- I confirm that backporting r159644 and r159683 make things work. From comment 8, I guess that the bug is still there and that one can still hit it sooner or later, right ? (btw, amazi

[Bug c/48090] gcc 4.5.2 miscompilation when building on arm

2011-03-12 Thread arnaud.pat...@rtp-net.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48090 --- Comment #3 from arnaud patard 2011-03-12 12:16:12 UTC --- (In reply to comment #2) > I get correct-looking code on armv5tel-linux with vanilla gcc-4.6-20110305 and > gcc-4.5-20110310, with 4.4 the code looks different but not obviously broken

[Bug c/48090] gcc 4.5.2 miscompilation when building on arm

2011-03-12 Thread arnaud.pat...@rtp-net.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48090 --- Comment #1 from arnaud patard 2011-03-12 09:02:30 UTC --- Created attachment 23636 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23636 test file

[Bug c/48090] New: gcc 4.5.2 miscompilation when building on arm

2011-03-12 Thread arnaud.pat...@rtp-net.org
: unassig...@gcc.gnu.org ReportedBy: arnaud.pat...@rtp-net.org With gcc-4.5.2, even with gcc-4.5-20110310, the following line of code gets miscompiled (See attachment) : size -= nblk * 512; size and nblk are 64 bits. gcc tries to compute -nblk. nblk is stored in r0,r1. gcc produces the