[Bug rtl-optimization/54365] ARM optimization bug when pointer arithmetic wraps

2012-08-30 Thread g...@undo-software.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54365 --- Comment #5 from Greg Law g...@undo-software.com 2012-08-30 13:23:54 UTC --- -fwrapv doesn't appear to make a difference: $ gcc compilerbug.c $ ./a.out it wraps $ gcc -O2 compilerbug.c $ ./a.out no wrap $ gcc -O2 -fwrapv

[Bug rtl-optimization/54365] New: ARM optimization bug when pointer arithmetic wraps

2012-08-24 Thread g...@undo-software.com
Priority: P3 Component: rtl-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: g...@undo-software.com Created attachment 28077 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=28077 Simple program showing the bug. Apologies if I've got the wrong component

[Bug rtl-optimization/54365] ARM optimization bug when pointer arithmetic wraps

2012-08-24 Thread g...@undo-software.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54365 --- Comment #2 from Greg Law g...@undo-software.com 2012-08-24 18:38:24 UTC --- Yes, I think you're right: I hadn't appreciated that. Still, even though it's undefined, it's slightly strange behaviour for the compiler to adopt. I guess it's