target/6191: [HP-PA] ICE doing pointer math with -fPIC
Dara Hazeghi
dhazeghi@yahoo.com
Tue May 6 07:16:00 GMT 2003
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6191
Hi all,
this is to confirm that with a gcc 3.3 cvs darwin x
hppa-linux cross compiler, the problem in this PR
still occurs. Compiling the testcase with -fPIC
yields:
junk.i: In function `bad':
junk.i:14: error: unrecognizable insn:
(insn 24 23 25 2 0x0 (set (reg/f:SI 102)
(plus:SI (reg:SI 19 %r19)
(high:SI (symbol_ref/v:SI ("@tramp_r")))))
-1 (nil)
(nil))
junk.i:14: internal compiler error: in extract_insn,
at recog.c:2175
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for
instructions.
Cheers,
Dara
junk.i:
extern void tramp_r ();
int bad (void* function)
{
if (!(((long)function & 3) == (2 & 3))) return 0;
return
((((long *) ((char*)function - 2))[0] == ((long *)
((char*)&tramp_r-2))[0])
&& ((((long *) ((char*)function - 2))[2]) ==
(long)((char*)function - 2 + 16
))
? 1 : 0
);
}
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
More information about the Gcc-bugs
mailing list