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,committed] More unused->used changes in cygming crtstuff.


    Hi list,

  As discussed earlier with Honza(*), attribute "unused" in target crtstuff
files needs to be changed to attribute "used" everywhere.  This patch does so
for the cygming subtargets.

gcc/ChangeLog:

	* config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
	"unused" with attribute "used".
	(__JCR_END__): Likewise.
	* config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
	"used" attribute.
	(__JCR_LIST__): Replace attribute "unused" with attribute "used".

  Bootstrapped and tested on i686-pc-cygwin, with no surprises.  Committed
revision 162186.

    cheers,
      DaveK
-- 
(*) - http://gcc.gnu.org/ml/gcc-patches/2010-05/threads.html#00758
Confirmed and pre-approved by Honza off-list.

Index: gcc/config/i386/cygming-crtend.c
===================================================================
--- gcc/config/i386/cygming-crtend.c	(revision 161958)
+++ gcc/config/i386/cygming-crtend.c	(working copy)
@@ -47,7 +47,7 @@ see the files COPYING3 and COPYING.RUNTIME respect
    this would be the 'length' field in a real FDE.  */
 
 static EH_FRAME_SECTION_CONST int __FRAME_END__[]
-  __attribute__ ((unused,  section(EH_FRAME_SECTION_NAME),
+  __attribute__ ((used,  section(EH_FRAME_SECTION_NAME),
 		  aligned(4)))
   = { 0 };
 #endif
@@ -55,7 +55,7 @@ static EH_FRAME_SECTION_CONST int __FRAME_END__[]
 #if TARGET_USE_JCR_SECTION
 /* Null terminate the .jcr section array.  */
 static void *__JCR_END__[1] 
-   __attribute__ ((unused, section(JCR_SECTION_NAME),
+   __attribute__ ((used, section(JCR_SECTION_NAME),
 		   aligned(sizeof(void *))))
    = { 0 };
 #endif
Index: gcc/config/i386/cygming-crtbegin.c
===================================================================
--- gcc/config/i386/cygming-crtbegin.c	(revision 161958)
+++ gcc/config/i386/cygming-crtbegin.c	(working copy)
@@ -64,7 +64,7 @@ extern void _Jv_RegisterClasses (const void *) TAR
    register/deregister it with the exception handling library code.  */
 #if DWARF2_UNWIND_INFO
 static EH_FRAME_SECTION_CONST char __EH_FRAME_BEGIN__[]
-  __attribute__((section(EH_FRAME_SECTION_NAME), aligned(4)))
+  __attribute__((used, section(EH_FRAME_SECTION_NAME), aligned(4)))
   = { };
 
 static struct object obj;
@@ -72,7 +72,7 @@ static struct object obj;
 
 #if TARGET_USE_JCR_SECTION
 static void *__JCR_LIST__[]
-  __attribute__ ((unused, section(JCR_SECTION_NAME), aligned(4)))
+  __attribute__ ((used, section(JCR_SECTION_NAME), aligned(4)))
   = { };
 #endif
 

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