]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/5672 ([mn10200] Compiler segmentation fault in static initialiser.)
authorRichard Henderson <rth@redhat.com>
Sat, 30 Mar 2002 02:16:41 +0000 (18:16 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 30 Mar 2002 02:16:41 +0000 (18:16 -0800)
        PR target/5672
        * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.

From-SVN: r51593

gcc/ChangeLog
gcc/expr.c

index 771af0e5c2ab7ae47b9bd82e414849fbc4a3fe84..288d75bc3f262664630ebe06785b798c4388efed 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-29  Richard Henderson  <rth@redhat.com>
+
+       PR target/5672
+       * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
+
 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
 
        * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
index 6587212296e212e7209542dbfef65c1447a99270..ea78b2c044ae94c40a91a219440dcb3850b391a5 100644 (file)
@@ -7489,7 +7489,8 @@ expand_expr (exp, target, tmode, modifier)
              rtx constant_part;
 
              op0 = expand_expr (TREE_OPERAND (exp, 0), subtarget, VOIDmode,
-                                EXPAND_SUM);
+                                (modifier == EXPAND_INITIALIZER
+                                ? EXPAND_INITIALIZER : EXPAND_SUM));
              if (! CONSTANT_P (op0))
                {
                  op1 = expand_expr (TREE_OPERAND (exp, 1), NULL_RTX,