This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/6123: sparc-sun-solaris2.7 gcc-3.1 C testsuite failure in verify_local_live_at_start w/-fpic|-fPIC on gcc.dg/20020312-2.c
- From: "Christian Ehrhardt" <ehrhardt at mathematik dot uni-ulm dot de>
- To: gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, ghazi at caip dot rutgers dot edu
- Date: Tue, 26 Nov 2002 13:19:28 +0100
- Subject: Re: c/6123: sparc-sun-solaris2.7 gcc-3.1 C testsuite failure in verify_local_live_at_start w/-fpic|-fPIC on gcc.dg/20020312-2.c
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6123
Hi,
I can confirm this on sparc with GNU-ld and on linux. A minimal example
for the sparc i386 case is this (compile with gcc -O -fpic to get the ICE):
register void *reg __asm__("ebx");
void f (void)
{
goto *(&&bar);
foo:
reg = (void *) 1;
if (!reg)
goto bar;
reg = &&foo;
bar:
baz:
reg = 0;
}
Replace ebx with l7 on sparc.
regards Christian
--
THAT'S ALL FOLKS!