PERFORCE change 37596 for review

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


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

Change 37596 by peter at peter_daintree on 2003/09/05 15:04:52

	XVECEXP() returns NULL for some reason, causing XEXP() to segfault.  I'd love
	to know why.  Presumably m3cg/ isn't setting something that the regular C
	frontend does.

Affected files ...

.. //depot/projects/ezm3/language/modula3/m3compiler/m3cc/gcc/gcc/expr.c#3 edit

Differences ...

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

@@ -2066,7 +2066,7 @@
 
   /* Check for a NULL entry, used to indicate that the parameter goes
      both on the stack and in registers.  */
-  if (XEXP (XVECEXP (src, 0, 0), 0))
+  if (XVECEXP (src, 0, 0) && XEXP (XVECEXP (src, 0, 0), 0))
     start = 0;
   else
     start = 1;


More information about the p4-projects mailing list