⛏️ index : buildtools.git

author Simon South <ssouth@simonsouth.com> 2015-10-22 3:47:26.0 -04:00:00
committer Jérôme Duval <jerome.duval@gmail.com> 2015-10-28 18:05:22.0 +01:00:00
commit
bfa8159478be6a8d4062f7d11d71315dc81a6829 [patch]
tree
28bdeb51e4ceee2837bafb83b854e3a37bc8013a
parent
aff4b1860dc02c61ccc4c1d1783e1bed7d1cf6d4
download
bfa8159478be6a8d4062f7d11d71315dc81a6829.tar.gz

gcc: LINK_SPEC: Gently refactor

Update LINK_SPEC (for arm, i386, x86_64 and ppc) with more compact but
functionally equivalent sequences.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>

Diff

 gcc/gcc/config/arm/haiku.h    | 6 ++++--
 gcc/gcc/config/i386/haiku.h   | 4 ++--
 gcc/gcc/config/i386/haiku64.h | 4 ++--
 gcc/gcc/config/rs6000/haiku.h | 4 ++--
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/gcc/gcc/config/arm/haiku.h b/gcc/gcc/config/arm/haiku.h
index 955ce97..b15fdc1 100644
--- a/gcc/gcc/config/arm/haiku.h
+++ a/gcc/gcc/config/arm/haiku.h
@@ -78,7 +78,7 @@
#define LINK_SPEC \
  "%{!o*:-o %b} -m armelf \

   %{shared|r|pie|fno-pic|fno-PIC|fno-pie|fno-PIE:; \
   :-pie --allow-shlib-undefined --export-dynamic} %{nostart:-e 0} \
   %{shared:-shared -e 0} %{!shared: %{!nostart: -no-undefined}} \
   %{mbig-endian:-EB} %{mlittle-endian:-EL} -X"
   :-pie --allow-shlib-undefined --export-dynamic} %{shared:-shared} \
   %{nostart|shared:-e 0;:-no-undefined} %{mbig-endian:-EB} \
   %{mlittle-endian:-EL} -X"

diff --git a/gcc/gcc/config/i386/haiku.h b/gcc/gcc/config/i386/haiku.h
index 5f54d1b..5320329 100644
--- a/gcc/gcc/config/i386/haiku.h
+++ a/gcc/gcc/config/i386/haiku.h
@@ -56,8 +56,8 @@
#define LINK_SPEC \
  "-m elf_i386_haiku \

   %{shared|r|pie|fno-pic|fno-PIC|fno-pie|fno-PIE:; \
   :-pie --allow-shlib-undefined --export-dynamic} %{nostart:-e 0} \
   %{shared:-shared -e 0} %{!shared: %{!nostart: -no-undefined}}"
   :-pie --allow-shlib-undefined --export-dynamic} %{shared:-shared} \
   %{nostart|shared:-e 0;:-no-undefined}"

/* A C statement (sans semicolon) to output to the stdio stream
   FILE the assembler definition of uninitialized global DECL named
diff --git a/gcc/gcc/config/i386/haiku64.h b/gcc/gcc/config/i386/haiku64.h
index d231aac..c225cdc 100644
--- a/gcc/gcc/config/i386/haiku64.h
+++ a/gcc/gcc/config/i386/haiku64.h
@@ -67,8 +67,8 @@
#define LINK_SPEC \
  "%{" SPEC_64 ":-m elf_x86_64} %{" SPEC_32 ":-m elf_i386_haiku} \

   %{shared|r|pie|fno-pic|fno-PIC|fno-pie|fno-PIE:; \
   :-pie --allow-shlib-undefined --export-dynamic} %{nostart:-e 0} \
   %{shared:-shared -e 0} %{!shared: %{!nostart: -no-undefined}}"
   :-pie --allow-shlib-undefined --export-dynamic} %{shared:-shared} \
   %{nostart|shared:-e 0;:-no-undefined}"

/* A C statement (sans semicolon) to output to the stdio stream
   FILE the assembler definition of uninitialized global DECL named
diff --git a/gcc/gcc/config/rs6000/haiku.h b/gcc/gcc/config/rs6000/haiku.h
index 7219804..dd228e1 100644
--- a/gcc/gcc/config/rs6000/haiku.h
+++ a/gcc/gcc/config/rs6000/haiku.h
@@ -56,8 +56,8 @@
#define LINK_SPEC \
  "%{!o*:-o %b} -m elf32ppchaiku \

   %{shared|r|pie|fno-pic|fno-PIC|fno-pie|fno-PIE:; \
   :-pie --allow-shlib-undefined --export-dynamic} %{nostart:-e 0} \
   %{shared:-shared -e 0} %{!shared: %{!nostart: -no-undefined}}"
   :-pie --allow-shlib-undefined --export-dynamic} %{shared:-shared} \
   %{nostart|shared:-e 0;:-no-undefined}"

#undef CC1_SPEC
#define CC1_SPEC \