[Bug rtl-optimization/54365] ARM optimization bug when pointer arithmetic wraps
fweimer at redhat dot com
gcc-bugzilla@gcc.gnu.org
Thu Aug 30 13:33:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54365
--- Comment #6 from Florian Weimer <fweimer at redhat dot com> 2012-08-30 13:33:05 UTC ---
(In reply to comment #5)
> -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
> $
This is surprising. Is there a way to extend the effect of -fwrapv to pointer
arithmetic?
More information about the Gcc-bugs
mailing list