From 8762d747cacf65ec4e6ca4a4f5be6d0532869381 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Fri, 11 Jul 2014 15:47:48 +0000 Subject: [PATCH] aix51.h (LINK_SPEC): Remove -bnodelcsect. * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect. * config/rs6000/aix52.h (LINK_SPEC): Same. * config/rs6000/aix53.h (LINK_SPEC): Same. * config/rs6000/aix61.h (LINK_SPEC): Same. * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define. From-SVN: r212460 --- gcc/ChangeLog | 8 ++++++++ gcc/config/rs6000/aix51.h | 2 +- gcc/config/rs6000/aix52.h | 2 +- gcc/config/rs6000/aix53.h | 2 +- gcc/config/rs6000/aix61.h | 2 +- gcc/config/rs6000/xcoff.h | 3 +++ 6 files changed, 15 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 730ef20ef63..3100b970106 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2014-07-11 David Edelsohn + + * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect. + * config/rs6000/aix52.h (LINK_SPEC): Same. + * config/rs6000/aix53.h (LINK_SPEC): Same. + * config/rs6000/aix61.h (LINK_SPEC): Same. + * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define. + 2014-07-11 Roman Gareev * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): diff --git a/gcc/config/rs6000/aix51.h b/gcc/config/rs6000/aix51.h index caca74bb309..9f53eb610b2 100644 --- a/gcc/config/rs6000/aix51.h +++ b/gcc/config/rs6000/aix51.h @@ -121,7 +121,7 @@ do { \ %{pthread:-lpthreads} -lc" #undef LINK_SPEC -#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\ +#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro}\ %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\ %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64}\ %{mpe:-binitfini:poe_remote_main}" diff --git a/gcc/config/rs6000/aix52.h b/gcc/config/rs6000/aix52.h index a90c926b825..e1fe23ac4a3 100644 --- a/gcc/config/rs6000/aix52.h +++ b/gcc/config/rs6000/aix52.h @@ -133,7 +133,7 @@ do { \ %{pthread:-lpthreads} -lc" #undef LINK_SPEC -#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\ +#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro}\ %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\ %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64}\ %{mpe:-binitfini:poe_remote_main}" diff --git a/gcc/config/rs6000/aix53.h b/gcc/config/rs6000/aix53.h index 65887c904f9..9070dc07724 100644 --- a/gcc/config/rs6000/aix53.h +++ b/gcc/config/rs6000/aix53.h @@ -133,7 +133,7 @@ do { \ %{pthread:-lpthreads} -lc" #undef LINK_SPEC -#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\ +#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro}\ %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\ %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64}\ %{mpe:-binitfini:poe_remote_main}" diff --git a/gcc/config/rs6000/aix61.h b/gcc/config/rs6000/aix61.h index e21a23030b5..b0c6b463b41 100644 --- a/gcc/config/rs6000/aix61.h +++ b/gcc/config/rs6000/aix61.h @@ -156,7 +156,7 @@ do { \ %{pthread:-lpthreads} -lc" #undef LINK_SPEC -#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\ +#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro}\ %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\ %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64}\ %{mpe:-binitfini:poe_remote_main}" diff --git a/gcc/config/rs6000/xcoff.h b/gcc/config/rs6000/xcoff.h index 4df90f6db87..16c99de8e06 100644 --- a/gcc/config/rs6000/xcoff.h +++ b/gcc/config/rs6000/xcoff.h @@ -309,3 +309,6 @@ than in the .eh_frame section. We do this because the AIX linker would otherwise garbage collect these sections. */ #define EH_FRAME_IN_DATA_SECTION 1 + +#define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1) + -- 2.30.2