This is the mail archive of the gcc@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]

[971016] Bug in -fpic code generation on PowerPC?


This is in the latest libc snapshot; 

gcc vfscanf.c -c -O2 -Wall -Winline -Wno-parentheses -Wstrict-prototypes -Wwrite-strings -g  -fpic -fno-common   -I.  -I.. -I../include -I../libio  -I../sysdeps/powerpc/elf -I../crypt/sysdeps/unix -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthread
s/sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/powerpc -I../linuxthreads/sysdeps/pthread/cmpxchg -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdep
s/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc -I../sysdeps/wordsize-32 -I../sysdeps/ieee754 -I../sysdeps/libm-ieee754 -I../sysdeps/generic -I../sysdeps/stub  -D
_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC   -D_IO_MTSAFE_IO -o vfscanf.os
vfscanf.c: In function `_IO_vfscanf':
vfscanf.c:1167: internal error--unrecognizable insn:
(insn 26496 516 506 (set (reg:SI 8 r8)
        (unspec[ 
                (symbol_ref:SI ("@__ctype_b"))
                (mem:SI (plus:SI (reg:SI 31 r31)
                        (const_int 128)))
            ]  8)) -1 (nil)
    (nil))
gcc: Internal compiler error: program cc1 got fatal signal 6
make: *** [vfscanf.os] Error 1

If I compile it with -fPIC instead of -fpic, or without any pic flags at
all, it compiles fine. That leads me to think it's the -fpic stuff...

Anything more I can help with to get this fixed, let me know,
-- Elliot					http://www.redhat.com/
"They don't let my code go into shipping products," Gates said. "They
 haven't done that for eight years." (at the 1997 PDC)



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