This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: target/6191: [HP-PA] ICE doing pointer math with -fPIC
- From: Dara Hazeghi <dhazeghi at yahoo dot com>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 6 May 2003 06:56:01 -0000
- Subject: Re: target/6191: [HP-PA] ICE doing pointer math with -fPIC
- Reply-to: Dara Hazeghi <dhazeghi at yahoo dot com>
The following reply was made to PR target/6191; it has been noted by GNATS.
From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org,
lamont@debian.org
Cc:
Subject: Re: target/6191: [HP-PA] ICE doing pointer math with -fPIC
Date: Mon, 5 May 2003 23:45:58 -0700 (PDT)
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