This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49833] New: PIC doesn't work
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Jul 2011 01:48:59 +0000
- Subject: [Bug target/49833] New: PIC doesn't work
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49833
Summary: PIC doesn't work
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hjl.tools@gmail.com
CC: ubizjak@gmail.com
Target: x32
[hjl@gnu-6 ilp32-6]$ cat l.i
static unsigned char foo[256];
arc4_init(void)
{
int n;
for (n = 0; n < 256; n++)
foo[n] = n;
}
[hjl@gnu-6 ilp32-6]$ make l.s
/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/ -S -o l.s -mx32 -O -fPIC
l.i
l.i: In function \u2018arc4_init\u2019:
l.i:9:1: error: unrecognizable insn:
(insn 66 48 50 3 (set (reg/f:DI 1 dx [104])
(zero_extend:DI (plus:SI (reg/v:SI 0 ax [orig:102 n ] [102])
(symbol_ref:SI ("foo") [flags 0x2] <var_decl 0x7fe54663e140
foo>)))) l.i:8 -1
(nil))
l.i:9:1: internal compiler error: in extract_insn, at recog.c:2115
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [l.s] Error 1
[hjl@gnu-6 ilp32-6]$