*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Fri, 26 Jun 1992 12:46:40 +0000 (12:46 +0000)
committerRichard Stallman <rms@gnu.org>
Fri, 26 Jun 1992 12:46:40 +0000 (12:46 +0000)
From-SVN: r1298

gcc/expr.c

index f869b58c9de255e243bffc72c5202db3392c170b..663a58f1a3a075973cf4953b2894b3a3d8da08c3 100644 (file)
@@ -2352,6 +2352,12 @@ store_constructor (exp, target)
          int bitpos;
          int unsignedp;
 
+         /* Just ignore missing fields.
+            We cleared the whole structure, above,
+            if any fields are missing.  */
+         if (field == 0)
+           continue;
+
          bitsize = TREE_INT_CST_LOW (DECL_SIZE (field));
          unsignedp = TREE_UNSIGNED (field);
          mode = DECL_MODE (field);
@@ -2867,7 +2873,8 @@ safe_from_p (x, exp)
 
     case 'x':
       if (TREE_CODE (exp) == TREE_LIST)
-       return (safe_from_p (x, TREE_VALUE (exp))
+       return ((TREE_VALUE (exp) == 0
+                || safe_from_p (x, TREE_VALUE (exp)))
                && (TREE_CHAIN (exp) == 0
                    || safe_from_p (x, TREE_CHAIN (exp))));
       else