Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Sep 2003 15:24:14 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 37609 for review
Message-ID:  <200309052224.h85MOEST065792@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=37609

Change 37609 by peter@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309052224.h85MOEST065792>