[Bug target/36669] Wrong versioning for __float128

hjl dot tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jul 2 03:18:00 GMT 2008



------- Comment #20 from hjl dot tools at gmail dot com  2008-07-02 03:17 -------
Created an attachment (id=15841)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15841&action=view)
A testcase

bash-3.2$ gcc --version
gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bash-3.2$ make clean
rm -f *.o float128-1 float128-2 float128-3 float128-4 float128-5 float128-6
bash-3.2$ gcc --version
gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bash-3.2$ make
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -shared-libgcc    float128-1.c 
 -o float128-1
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -shared-libgcc    float128-2.c 
 -o float128-2
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -shared-libgcc    float128-3.c 
 -o float128-3
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -shared-libgcc    float128-4.c 
 -o float128-4
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -shared-libgcc    float128-5.c 
 -o float128-5
m/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -shared-libgcc    float128-6.c 
 -o float128-6
export LD_LIBRARY_PATH=/export/build/gnu/gcc/build-x86_64-linux/gcc; \
        for e in float128-1 float128-2 float128-3 float128-4 float128-5
float128-6; do \
          echo $e: && ./$e; \
        done
float128-1:
float128-2:
float128-3:
float128-4:
afloat128-5:
float128-6:
bash-3.2$ make old
for e in float128-1 float128-2 float128-3 float128-4 float128-5 float128-6; do
\
          echo $e: && ./$e; \
        done
float128-1:
./float128-1: relocation error: ./float128-1: symbol __divtc3, version
GCC_4.3.0 not defined in file libgcc_s.so.1 with link time reference
float128-2:
./float128-2: relocation error: ./float128-2: symbol __multc3, version
GCC_4.3.0 not defined in file libgcc_s.so.1 with link time reference
float128-3:
./float128-3: relocation error: ./float128-3: symbol __powitf2, version
GCC_4.3.0 not defined in file libgcc_s.so.1 with link time reference
float128-4:
./float128-4: relocation error: ./float128-4: symbol __gttf2, version GCC_4.3.0
not defined in file libgcc_s.so.1 with link time reference
float128-5:
./float128-5: relocation error: ./float128-5: symbol __lttf2, version GCC_4.3.0
not defined in file libgcc_s.so.1 with link time reference
float128-6:
./float128-6: relocation error: ./float128-6: symbol __netf2, version GCC_4.3.0
not defined in file libgcc_s.so.1 with link time reference
make: [old] Error 127 (ignored)
bash-3.2$ make clean
rm -f *.o float128-1 float128-2 float128-3 float128-4 float128-5 float128-6
bash-3.2$ make CC=gcc
gcc -shared-libgcc    float128-1.c   -o float128-1
gcc -shared-libgcc    float128-2.c   -o float128-2
gcc -shared-libgcc    float128-3.c   -o float128-3
gcc -shared-libgcc    float128-4.c   -o float128-4
gcc -shared-libgcc    float128-5.c   -o float128-5
gcc -shared-libgcc    float128-6.c   -o float128-6
export LD_LIBRARY_PATH=/export/build/gnu/gcc/build-x86_64-linux/gcc; \
        for e in float128-1 float128-2 float128-3 float128-4 float128-5
float128-6; do \
          echo $e: && ./$e; \
        done
float128-1:
float128-2:
float128-3:
float128-4:
float128-5:
float128-6:
bash-3.2$ make old
for e in float128-1 float128-2 float128-3 float128-4 float128-5 float128-6; do
\
          echo $e: && ./$e; \
        done
float128-1:
float128-2:
float128-3:
float128-4:
float128-5:
float128-6:
bash-3.2$ 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36669



More information about the Gcc-bugs mailing list