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]

[committed] Fix PR target/44165


This patch fixes PR target/44165.  __CTOR_LIST__ now needs to be
marked as used.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	PR target/44165
	* config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.

Index: config/pa/pa32-linux.h
===================================================================
--- config/pa/pa32-linux.h	(revision 159321)
+++ config/pa/pa32-linux.h	(working copy)
@@ -31,7 +31,7 @@
 "	.text\n"							\
 "	.word __canonicalize_funcptr_for_compare-$PIC_pcrel$0");	\
   STATIC func_ptr __CTOR_LIST__[1]					\
-    __attribute__ ((__unused__, section(".ctors"),			\
+    __attribute__ ((__used__, section(".ctors"),			\
 		    aligned(sizeof(func_ptr))))				\
     = { (func_ptr) (-1) }
 


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