This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bootstrap failure; tiny test case
- To: Robert Lipe <robertl at sco dot com>
- Subject: Re: bootstrap failure; tiny test case
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 11 Feb 2000 15:21:17 -0700
- cc: gcc at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <20000206135105.K1345@rjlhome.sco.com>you write:
> I originally thought this was a fortran thing. I was wrong. It just
> turned out that libg77 contained the C code that triggers failures in
> both dwarfout.c and dwarf2out.c that has a note saying:
>
> /* When optimization is enabled (via -O) some parts of the compil
> er
> (e.g. jump.c and cse.c) may try to delete CODE_LABEL insns whi
> ch
> represent source-level labels which were explicitly declared b
> y
> the user. This really shouldn't be happening though, so catch
> it if it ever does happen. */
>
> Contrary to the note, -O doesn't have to be present to trigger this.
> I can reproduce it on GNU/Linux by building the following program with
> either -gdwarf or -gdwarf-2.
>
>
>
> Test case:
>
> void f_clos(int x)
>
> {
> switch(x) {
> default:
> mumble:
> }
> }
>
> This is one reason for my recent bootstrap failures on all the SCO
> targets. The failure was introduced sometime since Feb 2.
FYI, I installed this into the testsuite.
jeff