PERFORCE change 37609 for review

Peter Wemm peter at FreeBSD.org
Fri Sep 5 15:24:15 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=37609

Change 37609 by peter at peter_hammer on 2003/09/05 15:24:05

	guard against XVECEXP returning null.  This is wrong.  I think it should
	be (XVECEXP() == 0 || XEXP(XVECEXP() == 0).

Affected files ...

.. //depot/projects/ezm3/language/modula3/m3compiler/m3cc/gcc/gcc/calls.c#4 edit

Differences ...

==== //depot/projects/ezm3/language/modula3/m3compiler/m3cc/gcc/gcc/calls.c#4 (text+ko) ====

@@ -1342,7 +1342,7 @@
 	 it means that we are to pass this arg in the register(s) designated
 	 by the PARALLEL, but also to pass it in the stack.  */
       if (args[i].reg && GET_CODE (args[i].reg) == PARALLEL
-	  && XEXP (XVECEXP (args[i].reg, 0, 0), 0) == 0)
+	  && XVECEXP (args[i].reg, 0, 0) && XEXP (XVECEXP (args[i].reg, 0, 0), 0) == 0)
 	args[i].pass_on_stack = 1;
 
       /* If this is an addressable type, we must preallocate the stack


More information about the p4-projects mailing list