Commit fabdc32d by Jeff Law

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
parent a50f0918
...@@ -2192,7 +2192,7 @@ h8300_funcvec_function_p (func) ...@@ -2192,7 +2192,7 @@ h8300_funcvec_function_p (func)
data area. */ data area. */
int int
h8300_tiny_data_p (decl) h8300_eightbit_data_p (decl)
tree decl; tree decl;
{ {
tree a; tree a;
...@@ -2200,7 +2200,7 @@ h8300_tiny_data_p (decl) ...@@ -2200,7 +2200,7 @@ h8300_tiny_data_p (decl)
if (TREE_CODE (decl) != VAR_DECL) if (TREE_CODE (decl) != VAR_DECL)
return 0; return 0;
a = lookup_attribute ("tiny_data", DECL_MACHINE_ATTRIBUTES (decl)); a = lookup_attribute ("eightbit_data", DECL_MACHINE_ATTRIBUTES (decl));
return a != NULL_TREE; return a != NULL_TREE;
} }
...@@ -2230,7 +2230,7 @@ h8300_valid_machine_decl_attribute (decl, attributes, attr, args) ...@@ -2230,7 +2230,7 @@ h8300_valid_machine_decl_attribute (decl, attributes, attr, args)
|| is_attribute_p ("function_vector", attr)) || is_attribute_p ("function_vector", attr))
return TREE_CODE (decl) == FUNCTION_DECL; 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))) && (TREE_STATIC (decl) || DECL_EXTERNAL (decl)))
{ {
if (DECL_INITIAL (decl) == NULL_TREE) if (DECL_INITIAL (decl) == NULL_TREE)
......
...@@ -1109,7 +1109,7 @@ readonly_data() \ ...@@ -1109,7 +1109,7 @@ readonly_data() \
&& h8300_funcvec_function_p (DECL)) \ && h8300_funcvec_function_p (DECL)) \
|| ((TREE_STATIC (DECL) || DECL_EXTERNAL (DECL)) \ || ((TREE_STATIC (DECL) || DECL_EXTERNAL (DECL)) \
&& TREE_CODE (DECL) == VAR_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; SYMBOL_REF_FLAG (XEXP (DECL_RTL (DECL), 0)) = 1;
/* How to refer to registers in assembler output. /* How to refer to registers in assembler output.
......
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