[Bug target/49853] [x32] PIC doesn't work with external symbol
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Jul 26 19:29:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49853
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ubizjak at gmail dot com
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-07-26 19:29:01 UTC ---
Another testcase:
[hjl@gnu-6 ilp32-10]$ cat x.i
typedef struct FILE FILE;
int _fwalk(int (*)(FILE *));
int __sflush(FILE *);
int
fflush(FILE *fp)
{
return (_fwalk(__sflush));
}
[hjl@gnu-6 ilp32-10]$ make
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -S -o x.s -mx32 -O2 -g -fPIC
-dp x.i
x.i: In function ‘fflush’:
x.i:8:1: internal compiler error: in simplify_subreg, at simplify-rtx.c:5417
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [x.s] Error 1
[hjl@gnu-6 ilp32-10]$
More information about the Gcc-bugs
mailing list