From c5ac1780e4b4db5802689b4eee9becb5c3ad4a7e Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 18 Aug 2014 21:21:12 +0200 Subject: [PATCH] gimple-fold.c (fold_gimple_assign): Do not intorudce referneces to BUILT_IN_UNREACHABLE. * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces to BUILT_IN_UNREACHABLE. From-SVN: r214114 --- gcc/ChangeLog | 5 +++++ gcc/gimple-fold.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8674f949b4b..9ffa188c69b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-08-18 Jan Hubicka + + * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces + to BUILT_IN_UNREACHABLE. + 2014-08-18 Uros Bizjak PR target/62011 diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index f432baf07c2..9afaedf251d 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -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);