aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc/crtstuff.c
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@FreeBSD.org>2010-08-26 13:00:29 +0000
committerRui Paulo <rpaulo@FreeBSD.org>2010-08-26 13:00:29 +0000
commit30ca19f436bae80643110d874f81347befef57cc (patch)
treef0edfbfc0e2e2815da10771bfeee8a5162b3789c /contrib/gcc/crtstuff.c
parente48ccbb261df9ec6f421241c160a5dd3595d1cf2 (diff)
downloadsrc-30ca19f436bae80643110d874f81347befef57cc.tar.gz
src-30ca19f436bae80643110d874f81347befef57cc.zip
Mark __JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__ as used to
avoid segfaults when building with clang. Permission to backport given by Jan hubicka <jh at suse.cz>.
Notes
Notes: svn path=/head/; revision=211843
Diffstat (limited to 'contrib/gcc/crtstuff.c')
-rw-r--r--contrib/gcc/crtstuff.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/gcc/crtstuff.c b/contrib/gcc/crtstuff.c
index 706528060caf..be41d96dc152 100644
--- a/contrib/gcc/crtstuff.c
+++ b/contrib/gcc/crtstuff.c
@@ -211,7 +211,7 @@ STATIC EH_FRAME_SECTION_CONST char __EH_FRAME_BEGIN__[]
/* Stick a label at the beginning of the java class registration info
so we can register them properly. */
STATIC void *__JCR_LIST__[]
- __attribute__ ((unused, section(JCR_SECTION_NAME), aligned(sizeof(void*))))
+ __attribute__ ((used, section(JCR_SECTION_NAME), aligned(sizeof(void*))))
= { };
#endif /* JCR_SECTION_NAME */
@@ -472,11 +472,11 @@ DTOR_LIST_END;
#elif defined(DTORS_SECTION_ASM_OP)
asm (DTORS_SECTION_ASM_OP);
STATIC func_ptr __DTOR_END__[1]
- __attribute__ ((unused, aligned(sizeof(func_ptr))))
+ __attribute__ ((used, aligned(sizeof(func_ptr))))
= { (func_ptr) 0 };
#else
STATIC func_ptr __DTOR_END__[1]
- __attribute__((unused, section(".dtors"), aligned(sizeof(func_ptr))))
+ __attribute__((used, section(".dtors"), aligned(sizeof(func_ptr))))
= { (func_ptr) 0 };
#endif
@@ -493,7 +493,7 @@ typedef short int32;
# error "Missing a 4 byte integer"
# endif
STATIC EH_FRAME_SECTION_CONST int32 __FRAME_END__[]
- __attribute__ ((unused, section(EH_FRAME_SECTION_NAME),
+ __attribute__ ((used, section(EH_FRAME_SECTION_NAME),
aligned(sizeof(int32))))
= { 0 };
#endif /* EH_FRAME_SECTION_NAME */
@@ -501,7 +501,7 @@ STATIC EH_FRAME_SECTION_CONST int32 __FRAME_END__[]
#ifdef JCR_SECTION_NAME
/* 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 /* JCR_SECTION_NAME */