Commit dd4bf866 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 4aab97f9
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment