From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13939 invoked by alias); 4 Jun 2002 13:31:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 13892 invoked from network); 4 Jun 2002 13:31:34 -0000 Received: from unknown (HELO cygnus.com) (205.180.83.203) by sources.redhat.com with SMTP; 4 Jun 2002 13:31:34 -0000 Received: from porcupine.cygnus.com (romulus.sfbay.redhat.com [172.16.27.251]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id GAA02057 for ; Tue, 4 Jun 2002 06:31:20 -0700 (PDT) Received: from porcupine.cygnus.com (IDENT:oiC2Xwbm1xp3hJlEL7qm9H1ye9I4hkrm@localhost.localdomain [127.0.0.1]) by porcupine.cygnus.com (8.12.2/8.12.2) with ESMTP id g54DYTLK004684; Tue, 4 Jun 2002 07:34:30 -0600 Received: from porcupine.cygnus.com (law@localhost) by porcupine.cygnus.com (8.12.2/8.12.2/Submit) with ESMTP id g54DYPD8004676; Tue, 4 Jun 2002 07:34:26 -0600 To: "John David Anglin" cc: gcc-patches@gcc.gnu.org, rth@redhat.com Subject: Re: [PATCH] Jump bypassing and improved cprop (take 2) Reply-To: law@redhat.com From: law@redhat.com In-reply-to: Your message of Mon, 03 Jun 2002 17:02:36 EDT. <200206032102.g53L2a7l012194@hiauly1.hia.nrc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Jun 2002 06:31:00 -0000 Message-ID: <4675.1023197665@porcupine.cygnus.com> X-SW-Source: 2002-06/txt/msg00291.txt.bz2 In message <200206032102.g53L2a7l012194@hiauly1.hia.nrc.ca>, "John David Anglin " writes: > > By trial and error, I have determined that the following bootstrap failure > > under hppa-linux is a result of this patch: > > > > * rtl.h (CC0_P): New. > > * gcse.c (cprop_jump): Use it with single_set. Tweak dump text. > > (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set. > > (bypass_block): Save old dest block for dump text. > > (bypass_conditional_jumps): Allow any mode register; use CC0_P. > > Allow only true SET insns, not single_set. > > > > ./xgcc -B./ -B/home/dave/opt/gnu/hppa-linux/bin/ -isystem /home/dave/opt/g > nu/hppa-linux/include -isystem /home/dave/opt/gnu/hppa-linux/sys-include -O2 > -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > -isystem ./include -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gc > c/config -I../../gcc/gcc/../include -g0 -finhibit-size-directive -fno-inlin > e-functions -fno-exceptions -fno-zero-initialized-in-bss \ > > -c ../../gcc/gcc/crtstuff.c -DCRT_BEGIN \ > > -o crtbegin.o > > ../../gcc/gcc/crtstuff.c: In function `__do_global_dtors_aux': > > ../../gcc/gcc/crtstuff.c:282: internal error: Segmentation fault > > I see that this is fixed (just a typo). > > What actually started the hunt is the following ICE which is still present: > > ./xgcc -B./ -B/home/dave/opt/gnu/hppa-linux/bin/ -isystem /home/dave/opt/gnu > /hppa-linux/include -isystem /home/dave/opt/gnu/hppa-linux/sys-include -O2 > -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes - > isystem ./include -fPIC -DELF=1 -DLINUX=1 -g -DHAVE_GTHR_DEFAULT -DIN_LIBGC > C2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../ > ../gcc/gcc/config -I../../gcc/gcc/../include -DL_muldi3 -c ../../gcc/gcc/li > bgcc2.c -o libgcc/./_muldi3.o > ../../gcc/gcc/libgcc2.c: In function `__muldi3': > ../../gcc/gcc/libgcc2.c:367: virtual array insn_addresses[211]: element 229 > out of bounds in pa_output_function_prologue, at config/pa/pa.c:3185 > > The above error occurs on the following line: > > total_code_bytes += INSN_ADDRESSES (INSN_UID (get_last_insn ())); > > INSN_UID (get_last_insn ()) is 229. Something has messed up the size of > the array insn_addresses. This could be the above mentioned patch or some > other subsequent patch. I think Jan mentioned that this was his bug and that he was working on it. jeff