re PR tree-optimization/90474 (ICE: verify_gimple failed (error: DECL_GIMPLE_REG_P...
authorRichard Biener <rguenther@suse.de>
Wed, 15 May 2019 12:14:01 +0000 (12:14 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 15 May 2019 12:14:01 +0000 (12:14 +0000)
2019-05-15  Richard Biener  <rguenther@suse.de>

PR c/90474
* c-common.c (c_common_mark_addressable_vec): Also mark
a COMPOUND_LITERAL_EXPR_DECL addressable similar to
c_mark_addressable.

From-SVN: r271206

gcc/c-family/ChangeLog
gcc/c-family/c-common.c

index 59810b8a0e0a56a40bd1190b5b873e530c010032..b005b810f43c614513122501467569a9e3720882 100644 (file)
@@ -1,3 +1,10 @@
+2019-05-15  Richard Biener  <rguenther@suse.de>
+
+       PR c/90474
+       * c-common.c (c_common_mark_addressable_vec): Also mark
+       a COMPOUND_LITERAL_EXPR_DECL addressable similar to
+       c_mark_addressable.
 2019-05-06  Nathan Sidwell  <nathan@acm.org>
 
        * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
index 3c2f7a9d1c79d111963e9a81bf7f5097674a0fe0..37d10cced0f5d5db3b24861ed0d8518fd390985a 100644 (file)
@@ -6554,6 +6554,8 @@ c_common_mark_addressable_vec (tree t)
     return;
   if (!VAR_P (t) || !DECL_HARD_REGISTER (t))
     TREE_ADDRESSABLE (t) = 1;
+  if (TREE_CODE (t) == COMPOUND_LITERAL_EXPR)
+    TREE_ADDRESSABLE (COMPOUND_LITERAL_EXPR_DECL (t)) = 1;
 }