diff options
author | Jeff Law <law@gcc.gnu.org> | 1996-05-07 13:58:32 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1996-05-07 13:58:32 -0600 |
commit | fabdc32d072ff720c1afb2ef673060b50dcf8755 (patch) | |
tree | 3c9df9c121a68f95f3c31b3f6141002b02541afb /gcc | |
parent | a50f0918152b332395d7f224ca5f1619cfdf52a1 (diff) | |
download | gcc-fabdc32d072ff720c1afb2ef673060b50dcf8755.zip gcc-fabdc32d072ff720c1afb2ef673060b50dcf8755.tar.gz gcc-fabdc32d072ff720c1afb2ef673060b50dcf8755.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/h8300/h8300.c | 6 | ||||
-rw-r--r-- | 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 60203d1..21748e9 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 6109a85..6bad73e 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. |