From: H.J. Lu Date: Thu, 9 Sep 2010 19:57:06 +0000 (+0000) Subject: Support building gold with gcc 4.2/4.3. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6695e4b3d3e7a3621b006a7571dfdfae8351b970;p=binutils-gdb.git 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)). --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 88d7942476f..fa663e9b11f 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,11 @@ +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)). + 2010-09-09 Rafael Espindola * layout.cc (Layout::attach_allocated_section_to_segment): Don't put diff --git a/gold/object.cc b/gold/object.cc index 7bd35f3a587..bde89f68d26 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -2074,7 +2074,7 @@ Sized_relobj::do_finalize_local_symbols(unsigned int index, { Symbol_value* lv = &this->local_values_[i]; - This::Compute_final_local_value_status cflv_status = + Compute_final_local_value_status cflv_status = this->compute_final_local_value_internal(i, lv, lv, relocatable, out_sections, out_offsets, symtab); diff --git a/gold/testsuite/ifuncmain7.c b/gold/testsuite/ifuncmain7.c index f6608ea57f5..c2524aa5eb7 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 *