This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC-3.2.2 pre-release [and PR 9493]


> I'm going to leave office and I won't have connection this night,..
> (I will nevertheless try with local copies but any help is welcome :-)

The following one-liner certainly makes the segfault go away, but I don't 
know if the assembly output is valid (I don't speak PA-RISC).

Index: gcc/cfgcleanup.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfgcleanup.c,v
retrieving revision 1.38.2.4.2.1
diff -u -p -r1.38.2.4.2.1 cfgcleanup.c
--- gcc/cfgcleanup.c	16 Nov 2002 01:55:47 -0000	1.38.2.4.2.1
+++ gcc/cfgcleanup.c	29 Jan 2003 19:56:17 -0000
@@ -469,7 +469,7 @@ try_forward_edges (mode, b)
 		    && NOTE_LINE_NUMBER (insn) == NOTE_INSN_LOOP_BEG)
 		  break;
 
-	      if (GET_CODE (insn) == NOTE)
+	      if (insn && GET_CODE (insn) == NOTE)
 		break;
 	    }
 
-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]