This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: GCC build failed for powerpc-eabisim with your patch on 2001-08-03T01:40:59Z.
- To: gcc-regression at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Subject: Re: GCC build failed for powerpc-eabisim with your patch on 2001-08-03T01:40:59Z.
- From: Richard Henderson <rth at redhat dot com>
- Date: Fri, 3 Aug 2001 01:35:02 -0700
- References: <200108030331.f733VgT24266@maat.cygnus.com>
On Fri, Aug 03, 2001 at 03:31:41AM +0000, GCC regression checker wrote:
> With your recent patch, GCC does not compile on:
> powerpc-eabisim
> [ SEGV building libstdc++-v3/src/complex_io.o ]
We accessed the PATTERN of a CODE_LABEL, with predictable results.
r~
* rtlanal.c (find_first_parameter_load): Stop if we
reach a CODE_LABEL at BOUNDARY.
Index: rtlanal.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/rtlanal.c,v
retrieving revision 1.104
diff -c -p -d -r1.104 rtlanal.c
*** rtlanal.c 2001/07/29 21:28:42 1.104
--- rtlanal.c 2001/08/03 08:29:09
*************** find_first_parameter_load (call_insn, bo
*** 2851,2862 ****
if (GET_CODE (before) == CALL_INSN)
break;
! /* Our caller needs eighter ensure, that we will find all sets
(in case code has not been optimized yet), or take care
for possible labels in a way by setting boundary to preceeding
CODE_LABEL. */
! if (GET_CODE (before) == CODE_LABEL && before != boundary)
! abort ();
note_stores (PATTERN (before), parms_set, &parm);
}
--- 2851,2866 ----
if (GET_CODE (before) == CALL_INSN)
break;
! /* Our caller needs either ensure that we will find all sets
(in case code has not been optimized yet), or take care
for possible labels in a way by setting boundary to preceeding
CODE_LABEL. */
! if (GET_CODE (before) == CODE_LABEL)
! {
! if (before != boundary)
! abort ();
! break;
! }
note_stores (PATTERN (before), parms_set, &parm);
}