This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PCH tests fail on sparc-sun-solaris2.7
- From: Geoff Keating <geoffk at geoffk dot org>
- To: ghazi at caip dot rutgers dot edu
- Cc: gcc-bugs at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Mon, 13 Jan 2003 16:34:05 -0800
- Subject: Re: PCH tests fail on sparc-sun-solaris2.7
- References: <200301132116.QAA28609@caip.rutgers.edu>
> Date: Mon, 13 Jan 2003 16:16:50 -0500 (EST)
> From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
> Geoff - as seen here:
> http://gcc.gnu.org/ml/gcc-testresults/2003-01/msg00571.html
> pretty much all of the PCH tests fail on sparc-sun-solaris2.7.
>
> Looking in the log file, all of the error messages look like this:
>
> > gcc.dg/pch/global-1.c:-71: sorry, unimplemented: had to relocate PCH
> > gcc.dg/pch/global-1.c:-71: internal compiler error: Segmentation Fault
>
> (Sometimes the line number was -70 or -72 for the various other tests.)
> The g++ tests fail the same way.
>
> I looked in gcc.dg/pch/pch.exp and guessed that I had to generate the
> PCH file by hand and rename it to *.hp.pch. (Is that right?) Then I
> ran cc1 on global-1.c under gdb and got an invalid memory reference as
> you can see below. I'm not sure what I need to provide for you to
> reproduce it in a cross config. PCH perhaps requires us to update our
> bug reporting instructions slightly?
The bug reporting instructions have been updated, but don't bother;
this is certainly a host-specific problem. If every test is failing
with this message, that means the heuristic in gt_pch_save ("Try to
arrange things...") isn't working. It'd be possible to implement the
relocation functionality, but this would slow down PCH use on your
system a lot, it'd be better if you could first work out what the
problem with the heuristic is.
--
- Geoffrey Keating <geoffk@geoffk.org>