]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gimple-fold.c (fold_gimple_assign): Do not intorudce referneces to BUILT_IN_UNREACHABLE.
authorJan Hubicka <hubicka@ucw.cz>
Mon, 18 Aug 2014 19:21:12 +0000 (21:21 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 18 Aug 2014 19:21:12 +0000 (19:21 +0000)
* gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
to BUILT_IN_UNREACHABLE.

From-SVN: r214114

gcc/ChangeLog
gcc/gimple-fold.c

index 8674f949b4b2d01745b0de887fa90d08339846a3..9ffa188c69bc4fb438a869ea3110cfd9f42a5204 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
+
+       * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
+       to BUILT_IN_UNREACHABLE.
+
 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/62011
index f432baf07c24dec52e649b8a376ccefd4d30c5a4..9afaedf251d2593daec81248750a7179f3322fbf 100644 (file)
@@ -324,7 +324,9 @@ fold_gimple_assign (gimple_stmt_iterator *si)
                    if (targets.length () == 1)
                      fndecl = targets[0]->decl;
                    else
-                     fndecl = builtin_decl_implicit (BUILT_IN_UNREACHABLE);
+                     /* We can not use __builtin_unreachable here because it
+                        can not have address taken.  */
+                     fndecl = integer_zero_node;
                    if (dump_enabled_p ())
                      {
                        location_t loc = gimple_location_safe (stmt);