h8300.h (ENCODE_SECTION_INFO): Check to see if DECL is VAR_DECL first to prevent an ICE.

* config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
	is VAR_DECL first to prevent an ICE.

From-SVN: r44446
This commit is contained in:
Kazu Hirata 2001-07-29 03:12:34 +00:00 committed by Kazu Hirata
parent 6681bc1f10
commit 391522e3a5
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2001-07-28 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
is VAR_DECL first to prevent an ICE.
2001-07-28 Richard Henderson <rth@redhat.com>
* varasm.c (immed_real_const_1): Don't elide special cases for

View File

@ -1177,12 +1177,12 @@ readonly_data () \
if (TREE_CODE (DECL) == FUNCTION_DECL \
&& h8300_funcvec_function_p (DECL)) \
SYMBOL_REF_FLAG (XEXP (DECL_RTL (DECL), 0)) = 1; \
else if ((TREE_STATIC (DECL) || DECL_EXTERNAL (DECL)) \
&& TREE_CODE (DECL) == VAR_DECL \
else if (TREE_CODE (DECL) == VAR_DECL \
&& (TREE_STATIC (DECL) || DECL_EXTERNAL (DECL)) \
&& h8300_eightbit_data_p (DECL)) \
SYMBOL_REF_FLAG (XEXP (DECL_RTL (DECL), 0)) = 1; \
else if ((TREE_STATIC (DECL) || DECL_EXTERNAL (DECL)) \
&& TREE_CODE (DECL) == VAR_DECL \
else if (TREE_CODE (DECL) == VAR_DECL \
&& (TREE_STATIC (DECL) || DECL_EXTERNAL (DECL)) \
&& h8300_tiny_data_p (DECL)) \
h8300_encode_label (DECL);