[Bug c/44376] optimiser destroys possibility of detecting overflow
geoff at dyalog dot com
gcc-bugzilla@gcc.gnu.org
Wed Jun 2 11:09:00 GMT 2010
------- Comment #1 from geoff at dyalog dot com 2010-06-02 11:09 -------
Created an attachment (id=20807)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20807&action=view)
example code to demonstrate bug
extract code using "cpio -i <code.cpio"
gcc -m64 -O3 main.c slave.c -lc
./a.out
If in slave.c you make totwidth volatile then the code works correctly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44376
More information about the Gcc-bugs
mailing list