Commit 93569f0a authored by rsandifo's avatar rsandifo
Browse files

* config/frv/frv.c (frv_in_small_data_p): Return false for unknown

	section names.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73593 138bc75d-0d04-0410-961f-82ee72b054a4
parent 4aa04e5a
2003-11-14 Richard Sandiford <rsandifo@redhat.com>
* config/frv/frv.c (frv_in_small_data_p): Return false for unknown
section names.
2003-11-14 Jason Merrill <jason@redhat.com>
PR middle-end/12526
......
......@@ -9784,10 +9784,6 @@ frv_in_small_data_p (decl)
if (TREE_CODE (decl) != VAR_DECL || DECL_ARTIFICIAL (decl))
return false;
size = int_size_in_bytes (TREE_TYPE (decl));
if (size > 0 && (unsigned HOST_WIDE_INT) size <= g_switch_value)
return true;
/* If we already know which section the decl should be in, see if
it's a small data section. */
section_name = DECL_SECTION_NAME (decl);
......@@ -9799,8 +9795,13 @@ frv_in_small_data_p (decl)
return true;
if (frv_string_begins_with (section_name, ".sbss"))
return true;
return false;
}
size = int_size_in_bytes (TREE_TYPE (decl));
if (size > 0 && (unsigned HOST_WIDE_INT) size <= g_switch_value)
return true;
return false;
}
......
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