Commit 64378c91 by Kazu Hirata Committed by Kazu Hirata

h8300.c (h8300_handle_eightbit_data_attribute): Remove the initialization requierment.

	* config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
	Remove the initialization requierment.
	(h8300_handle_tiny_data_attribute): Likewise.

From-SVN: r48024
parent 05fb1639
2001-12-14 Kazu Hirata <kazu@hxi.com> 2001-12-14 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
Remove the initialization requierment.
(h8300_handle_tiny_data_attribute): Likewise.
2001-12-14 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.md (udivqi3): Remove. * config/h8300/h8300.md (udivqi3): Remove.
(divqi3): Likewise. (divqi3): Likewise.
(udivhi3): Likewise. (udivhi3): Likewise.
......
...@@ -3195,13 +3195,7 @@ h8300_handle_eightbit_data_attribute (node, name, args, flags, no_add_attrs) ...@@ -3195,13 +3195,7 @@ h8300_handle_eightbit_data_attribute (node, name, args, flags, no_add_attrs)
if (TREE_STATIC (decl) || DECL_EXTERNAL (decl)) if (TREE_STATIC (decl) || DECL_EXTERNAL (decl))
{ {
if (DECL_INITIAL (decl) == NULL_TREE) DECL_SECTION_NAME (decl) = build_string (7, ".eight");
{
warning ("only initialized variables can be placed into the 8-bit area");
*no_add_attrs = true;
}
else
DECL_SECTION_NAME (decl) = build_string (7, ".eight");
} }
else else
{ {
...@@ -3226,13 +3220,7 @@ h8300_handle_tiny_data_attribute (node, name, args, flags, no_add_attrs) ...@@ -3226,13 +3220,7 @@ h8300_handle_tiny_data_attribute (node, name, args, flags, no_add_attrs)
if (TREE_STATIC (decl) || DECL_EXTERNAL (decl)) if (TREE_STATIC (decl) || DECL_EXTERNAL (decl))
{ {
if (DECL_INITIAL (decl) == NULL_TREE) DECL_SECTION_NAME (decl) = build_string (6, ".tiny");
{
warning ("only initialized variables can be placed into the 8-bit area");
*no_add_attrs = true;
}
else
DECL_SECTION_NAME (decl) = build_string (6, ".tiny");
} }
else else
{ {
......
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