This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/35501] Wrong value returned from const int
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 May 2008 20:29:25 -0000
- Subject: [Bug tree-optimization/35501] Wrong value returned from const int
- References: <bug-35501-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from hjl dot tools at gmail dot com 2008-05-07 20:29 -------
Created an attachment (id=15613)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15613&action=view)
A testcase
[hjl@gnu-6 pic-1]$ make
/export/build/gnu/gcc-expand/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-expand/build-x86_64-linux/gcc/ -O2 -c -o main.o
main.c
/export/build/gnu/gcc-expand/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-expand/build-x86_64-linux/gcc/ -O2 -fPIC -shared -o
libx.so foo.c bar.c
/export/build/gnu/gcc-expand/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-expand/build-x86_64-linux/gcc/ -o x main.o libx.so
-Wl,-rpath,.
./x
4 ! = 3
3 ! = 4
[hjl@gnu-6 pic-1]$
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35501