This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/35501] Wrong value returned from const int



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]