aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@hxi.com>2001-07-29 03:12:34 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2001-07-29 03:12:34 +0000
commit391522e3a58592e571c1b79e73a0de91f2c336e9 (patch)
treef41b38144d18b1520e31c71c7beffb6fdbc0a42f /gcc
parent6681bc1f1027ace1e040e93dd7499bb6529bd36c (diff)
downloadgcc-391522e3a58592e571c1b79e73a0de91f2c336e9.zip
gcc-391522e3a58592e571c1b79e73a0de91f2c336e9.tar.gz
gcc-391522e3a58592e571c1b79e73a0de91f2c336e9.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/h8300/h8300.h8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c47536a..bc14d5c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h
index 87e59e2..96fbbbb 100644
--- a/gcc/config/h8300/h8300.h
+++ b/gcc/config/h8300/h8300.h
@@ -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);