gimple-fold.c (get_symbol_constant_value): Allow all GIMPLE register type zero-constants.
2014-11-26 Richard Biener <rguenther@suse.de> * gimple-fold.c (get_symbol_constant_value): Allow all GIMPLE register type zero-constants. From-SVN: r218076
This commit is contained in:
parent
42bc352001
commit
b8a8c4723c
2 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,9 @@
|
|||
2014-11-25 Mark Wielaard <mjw@redhat.com>
|
||||
2014-11-26 Richard Biener <rguenther@suse.de>
|
||||
|
||||
* gimple-fold.c (get_symbol_constant_value): Allow all
|
||||
GIMPLE register type zero-constants.
|
||||
|
||||
2014-11-26 Mark Wielaard <mjw@redhat.com>
|
||||
|
||||
* dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
|
||||
function decl has TREE_THIS_VOLATILE.
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue