This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/54365] ARM optimization bug when pointer arithmetic wraps
- From: "glaw at undo-software dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 30 Aug 2012 13:23:54 +0000
- Subject: [Bug rtl-optimization/54365] ARM optimization bug when pointer arithmetic wraps
- Auto-submitted: auto-generated
- References: <bug-54365-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54365
--- Comment #5 from Greg Law <glaw@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 compilerbug.c
$ ./a.out
no wrap
$