From fabdc32d072ff720c1afb2ef673060b50dcf8755 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 7 May 1996 13:58:32 -0600 Subject: [PATCH] h8300.c (h8300_eightbit_data_p): Renamed from h8300_tiny_data_p. * h8300/h8300.c (h8300_eightbit_data_p): Renamed from h8300_tiny_data_p. (h8300_eightbit_data_p): Check for the "eightbit_data" attribute instead of "tiny_data". (h8300_valid_machine_decl_attribute): Likewise. * h8300/h8300.h (ENCODE_SECTION_INFO): Call h8300_eightbit_data_p instead of h8300_tiny_data_p. From-SVN: r11953 --- gcc/config/h8300/h8300.c | 6 +++--- gcc/config/h8300/h8300.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 60203d19a78..21748e9799f 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -2192,7 +2192,7 @@ h8300_funcvec_function_p (func) data area. */ int -h8300_tiny_data_p (decl) +h8300_eightbit_data_p (decl) tree decl; { tree a; @@ -2200,7 +2200,7 @@ h8300_tiny_data_p (decl) if (TREE_CODE (decl) != VAR_DECL) return 0; - a = lookup_attribute ("tiny_data", DECL_MACHINE_ATTRIBUTES (decl)); + a = lookup_attribute ("eightbit_data", DECL_MACHINE_ATTRIBUTES (decl)); return a != NULL_TREE; } @@ -2230,7 +2230,7 @@ h8300_valid_machine_decl_attribute (decl, attributes, attr, args) || is_attribute_p ("function_vector", attr)) return TREE_CODE (decl) == FUNCTION_DECL; - if (is_attribute_p ("tiny_data", attr) + if (is_attribute_p ("eightbit_data", attr) && (TREE_STATIC (decl) || DECL_EXTERNAL (decl))) { if (DECL_INITIAL (decl) == NULL_TREE) diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index 6109a85e215..6bad73e0801 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -1109,7 +1109,7 @@ readonly_data() \ && h8300_funcvec_function_p (DECL)) \ || ((TREE_STATIC (DECL) || DECL_EXTERNAL (DECL)) \ && TREE_CODE (DECL) == VAR_DECL \ - && h8300_tiny_data_p (DECL))) \ + && h8300_eightbit_data_p (DECL))) \ SYMBOL_REF_FLAG (XEXP (DECL_RTL (DECL), 0)) = 1; /* How to refer to registers in assembler output. -- 2.30.2