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]

[mainline] PATCH: completing xxx_with_decl removal


Steven Bosscher just reported in private that I missed some
xxx_with_decl in some config/**/*.c.  Corrected thusly.
I'll also install Danny's patch (if he didn't already).

-- Gaby

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 2.626
diff -p -r2.626 ChangeLog
*** ChangeLog	26 Jul 2003 07:37:51 -0000	2.626
--- ChangeLog	26 Jul 2003 11:26:08 -0000
***************
*** 1,3 ****
--- 1,10 ----
+ 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+ 
+ 	* config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
+ 	* config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
+ 	* config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
+ 	(v850_handle_data_area_attribute): Likewise.
+ 
  2003-07-26  Geoffrey Keating  <geoffk@apple.com>
  
  	* Makefile.in (libbackend.o): Remove options_.h.
Index: config/arm/pe.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/pe.c,v
retrieving revision 1.20
diff -p -r1.20 pe.c
*** config/arm/pe.c	20 Apr 2003 18:20:37 -0000	1.20
--- config/arm/pe.c	26 Jul 2003 11:26:08 -0000
*************** arm_mark_dllimport (decl)
*** 167,173 ****
        && !DECL_VIRTUAL_P (decl)
        && DECL_INITIAL (decl))
      {
!       error_with_decl (decl, "initialized variable `%s' is marked dllimport");
        return;
      }
    /* Nor can they be static.  */
--- 167,174 ----
        && !DECL_VIRTUAL_P (decl)
        && DECL_INITIAL (decl))
      {
!       error ("%Hinitialized variable '%D' is marked dllimport",
!              &DECL_SOURCE_LOCATION (decl), decl);
        return;
      }
    /* Nor can they be static.  */
*************** arm_mark_dllimport (decl)
*** 176,182 ****
        && !DECL_VIRTUAL_P (decl)
        && 0 /*???*/)
      {
!       error_with_decl (decl, "static variable `%s' is marked dllimport");
        return;
      }
  
--- 177,184 ----
        && !DECL_VIRTUAL_P (decl)
        && 0 /*???*/)
      {
!       error ("%Hstatic variable '%D' is marked dllimport",
!              &DECL_SOURCE_LOCATION (decl), decl);
        return;
      }
  
Index: config/mcore/mcore.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mcore/mcore.c,v
retrieving revision 1.49
diff -p -r1.49 mcore.c
*** config/mcore/mcore.c	6 Jul 2003 23:05:12 -0000	1.49
--- config/mcore/mcore.c	26 Jul 2003 11:26:10 -0000
*************** mcore_mark_dllimport (decl)
*** 3410,3416 ****
        && !DECL_VIRTUAL_P (decl)
        && DECL_INITIAL (decl))
      {
!       error_with_decl (decl, "initialized variable `%s' is marked dllimport");
        return;
      }
    
--- 3410,3417 ----
        && !DECL_VIRTUAL_P (decl)
        && DECL_INITIAL (decl))
      {
!       error ("%Hinitialized variable '%D' is marked dllimport",
!              &DECL_SOURCE_LOCATION (decl), decl);
        return;
      }
    
Index: config/v850/v850.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/v850/v850.c,v
retrieving revision 1.78
diff -p -r1.78 v850.c
*** config/v850/v850.c	19 Jun 2003 21:47:24 -0000	1.78
--- config/v850/v850.c	26 Jul 2003 11:26:11 -0000
*************** v850_handle_data_area_attribute (node, n
*** 2257,2264 ****
      case VAR_DECL:
        if (current_function_decl != NULL_TREE)
  	{
! 	  error_with_decl (decl, "\
! a data area attribute cannot be specified for local variables");
  	  *no_add_attrs = true;
  	}
  
--- 2257,2264 ----
      case VAR_DECL:
        if (current_function_decl != NULL_TREE)
  	{
!           error ("%Ha data area attribute cannot be specified for "
!                  "local variables", &DECL_SOURCE_LOCATION (decl), decl);
  	  *no_add_attrs = true;
  	}
  
*************** a data area attribute cannot be specifie
*** 2268,2275 ****
        area = v850_get_data_area (decl);
        if (area != DATA_AREA_NORMAL && data_area != area)
  	{
! 	  error_with_decl (decl, "\
! data area of '%s' conflicts with previous declaration");
  	  *no_add_attrs = true;
  	}
        break;
--- 2268,2275 ----
        area = v850_get_data_area (decl);
        if (area != DATA_AREA_NORMAL && data_area != area)
  	{
! 	  error ("%Hdata area of '%D' conflicts with previous declaration",
!                  &DECL_SOURCE_LOCATION (decl), decl);
  	  *no_add_attrs = true;
  	}
        break;


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