dwarf2out.c (tree_add_const_value_attribute): Only handle VAR_DECL and CONST_DECL.
* dwarf2out.c (tree_add_const_value_attribute): Only handle VAR_DECL and CONST_DECL. From-SVN: r139911
This commit is contained in:
parent
4aab97f958
commit
dd4bf866ad
|
@ -1,3 +1,8 @@
|
|||
2008-09-02 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* dwarf2out.c (tree_add_const_value_attribute): Only handle
|
||||
VAR_DECL and CONST_DECL.
|
||||
|
||||
2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
|
||||
Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
|
|
|
@ -11931,10 +11931,14 @@ native_encode_initializer (tree init, unsigned char *array, int size)
|
|||
static void
|
||||
tree_add_const_value_attribute (dw_die_ref var_die, tree decl)
|
||||
{
|
||||
tree init = DECL_INITIAL (decl);
|
||||
tree init;
|
||||
tree type = TREE_TYPE (decl);
|
||||
rtx rtl;
|
||||
|
||||
if (TREE_CODE (decl) != VAR_DECL && TREE_CODE (decl) != CONST_DECL)
|
||||
return;
|
||||
|
||||
init = DECL_INITIAL (decl);
|
||||
if (TREE_READONLY (decl) && ! TREE_THIS_VOLATILE (decl) && init)
|
||||
/* OK */;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue