x86 PIC regressions
H.J. Lu
hjl@lucon.org
Thu Sep 3 07:13:00 GMT 1998
> This must not be the one. I just applied that patch to my tree on
> my i686-pc-linux-gnu, rebuilt it, and reran the above command. The
> compiler still hari-karis:
>
> Executing on host: /home/robertl/tmp/negcs/gcc/xgcc -B/home/robertl/tmp/negcs/gc
> c/ /play/egcs/gcc/testsuite/gcc.c-torture/execute/930106-1.c -w -O0 -fPIC -l
> m -o /home/robertl/tmp/negcs/gcc/testsuite/930106-1.x0
> compiler exited with status 1
> output is:
> /play/egcs/gcc/testsuite/gcc.c-torture/execute/930106-1.c: In function `main':
> /play/egcs/gcc/testsuite/gcc.c-torture/execute/930106-1.c:27: internal error--un
> recognizable insn:
> (insn 12 11 13 (set:DF (reg:DF 23)
> (mem/u:DF (symbol_ref/u:SI ("*.LC0")))) -1 (nil)
> (expr_list:REG_EQUAL (const_double:DF (mem/u:DF (symbol_ref/u:SI ("*.LC0")))
> 0 0 1073790976)
> (nil)))
> /play/egcs/gcc/toplev.c:1360: Internal compiler error in function fatal_insn
>
> FAIL: gcc.c-torture/execute/930106-1.c compilation, -O0
>
>
>difference
Executing on host: /home/work/build/bin/egcs-1.1.orig/gcc/xgcc -B/home/work/build/bin/egcs-1.1.orig/gcc/ /home/work/build/src/egcs-1.1/gcc/testsuite/gcc.c-torture/execute/930106-1.c -w -O0 -fPIC -lm -o /home/work/build/bin/egcs-1.1.orig/gcc/testsuite/930106-1.x0
PASS: gcc.c-torture/execute/930106-1.c compilation, -O0
PASS: gcc.c-torture/execute/930106-1.c execution, -O0
Executing on host: /home/work/build/bin/egcs-1.1.orig/gcc/xgcc -B/home/work/build/bin/egcs-1.1.orig/gcc/ /home/work/build/src/egcs-1.1/gcc/testsuite/gcc.c-torture/execute/930106-1.c -w -O1 -fPIC -lm -o /home/work/build/bin/egcs-1.1.orig/gcc/testsuite/930106-1.x1
PASS: gcc.c-torture/execute/930106-1.c compilation, -O1
PASS: gcc.c-torture/execute/930106-1.c execution, -O1
Executing on host: /home/work/build/bin/egcs-1.1.orig/gcc/xgcc -B/home/work/build/bin/egcs-1.1.orig/gcc/ /home/work/build/src/egcs-1.1/gcc/testsuite/gcc.c-torture/execute/930106-1.c -w -O2 -fPIC -lm -o /home/work/build/bin/egcs-1.1.orig/gcc/testsuite/930106-1.x2
PASS: gcc.c-torture/execute/930106-1.c compilation, -O2
PASS: gcc.c-torture/execute/930106-1.c execution, -O2
Executing on host: /home/work/build/bin/egcs-1.1.orig/gcc/xgcc -B/home/work/build/bin/egcs-1.1.orig/gcc/ /home/work/build/src/egcs-1.1/gcc/testsuite/gcc.c-torture/execute/930106-1.c -w -O2 -fomit-frame-pointer -finline-functions -fPIC -lm -o /home/work/build/bin/egcs-1.1.orig/gcc/testsuite/930106-1.x3
PASS: gcc.c-torture/execute/930106-1.c compilation, -O2 -fomit-frame-pointer -finline-functions
PASS: gcc.c-torture/execute/930106-1.c execution, -O2 -fomit-frame-pointer -finline-functions
Executing on host: /home/work/build/bin/egcs-1.1.orig/gcc/xgcc -B/home/work/build/bin/egcs-1.1.orig/gcc/ /home/work/build/src/egcs-1.1/gcc/testsuite/gcc.c-torture/execute/930106-1.c -w -O2 -g -fPIC -lm -o /home/work/build/bin/egcs-1.1.orig/gcc/testsuite/930106-1.x4
PASS: gcc.c-torture/execute/930106-1.c compilation, -O2 -g
PASS: gcc.c-torture/execute/930106-1.c execution, -O2 -g
Executing on host: /home/work/build/bin/egcs-1.1.orig/gcc/xgcc -B/home/work/build/bin/egcs-1.1.orig/gcc/ /home/work/build/src/egcs-1.1/gcc/testsuite/gcc.c-torture/execute/930106-1.c -w -Os -fPIC -lm -o /home/work/build/bin/egcs-1.1.orig/gcc/testsuite/930106-1.x5
PASS: gcc.c-torture/execute/930106-1.c compilation, -Os
PASS: gcc.c-torture/execute/930106-1.c execution, -Os
>
> Were the failures you cite below from a straight make check, or did you
> add the -fPIC stuff as described above?
>
I tried -fPIC with "make check" for virgin egcs 1.1 prerelease on
RedHat 5.1/i686. I didn't see any regression bewteen with -fPIC
and without -fPIC.
BTW, I am using binutils 2.9.1.0.11 and glibc 2.0 980812.
H.J.
More information about the Gcc
mailing list