From cde9e53d678580ed72842d0313e4b7f7d16ee14b Mon Sep 17 00:00:00 2001 From: rguenth Date: Wed, 26 Nov 2014 10:15:25 +0000 Subject: [PATCH] 2014-11-26 Richard Biener * gimple-fold.c (get_symbol_constant_value): Allow all GIMPLE register type zero-constants. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218076 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 ++++++- gcc/gimple-fold.c | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e7845c7b51a1..c1f9da7b31f7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,9 @@ -2014-11-25 Mark Wielaard +2014-11-26 Richard Biener + + * gimple-fold.c (get_symbol_constant_value): Allow all + GIMPLE register type zero-constants. + +2014-11-26 Mark Wielaard * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the function decl has TREE_THIS_VOLATILE. diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 98ec1176a7c9..5c75671c310f 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -254,8 +254,7 @@ get_symbol_constant_value (tree sym) have zero as the initializer if they may not be overridden at link or run time. */ if (!val - && (INTEGRAL_TYPE_P (TREE_TYPE (sym)) - || SCALAR_FLOAT_TYPE_P (TREE_TYPE (sym)))) + && is_gimple_reg_type (TREE_TYPE (sym))) return build_zero_cst (TREE_TYPE (sym)); } -- 2.47.3