From 6695e4b3d3e7a3621b006a7571dfdfae8351b970 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 9 Sep 2010 19:57:06 +0000 Subject: Support building gold with gcc 4.2/4.3. 2010-09-09 H.J. Lu PR gold/11996 * object.cc (Sized_relobj::do_finalize_local_symbols): Remove "This::" to work around a bug in gcc 4.2. * testsuite/ifuncmain7.c (foo_ifunc): Add __attribute__ ((used)). --- gold/testsuite/ifuncmain7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gold/testsuite') diff --git a/gold/testsuite/ifuncmain7.c b/gold/testsuite/ifuncmain7.c index f6608ea..c2524aa 100644 --- a/gold/testsuite/ifuncmain7.c +++ b/gold/testsuite/ifuncmain7.c @@ -15,7 +15,7 @@ one (void) return -30; } -static void * foo_ifunc (void) __asm__ ("foo"); +static void * __attribute__ ((used)) foo_ifunc (void) __asm__ ("foo"); __asm__(".type foo, %gnu_indirect_function"); static void * -- cgit v1.1