This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Remove a restriction on 8-bit/tiny area on h8300 port.


Hi,

Attached is a patch to remove the initialization requierment on
8-bit/tiny area on h8300 port as there is no reason for requring
initialization.

Tested and committed.

Kazu Hirata

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.

Index: h8300.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.c,v
retrieving revision 1.85
diff -c -r1.85 h8300.c
*** h8300.c	2001/12/03 19:13:31	1.85
--- h8300.c	2001/12/15 01:20:36
***************
*** 3195,3207 ****
  
    if (TREE_STATIC (decl) || DECL_EXTERNAL (decl))
      {
!       if (DECL_INITIAL (decl) == NULL_TREE)
! 	{
! 	  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
      {
--- 3195,3201 ----
  
    if (TREE_STATIC (decl) || DECL_EXTERNAL (decl))
      {
!       DECL_SECTION_NAME (decl) = build_string (7, ".eight");
      }
    else
      {
***************
*** 3226,3238 ****
  
    if (TREE_STATIC (decl) || DECL_EXTERNAL (decl))
      {
!       if (DECL_INITIAL (decl) == NULL_TREE)
! 	{
! 	  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
      {
--- 3220,3226 ----
  
    if (TREE_STATIC (decl) || DECL_EXTERNAL (decl))
      {
!       DECL_SECTION_NAME (decl) = build_string (6, ".tiny");
      }
    else
      {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]