This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix PR target/44165
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 29 May 2010 18:28:53 -0400 (EDT)
- Subject: [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) }