[PATCH 5/5] Use FPIE_OR_FPIC_SPEC in ASM_SPEC
H.J. Lu
hongjiu.lu@intel.com
Fri May 8 17:37:00 GMT 2015
OK for trunk?
H.J.
* config/sparc/linux.h (ASM_SPEC): Use FPIE_OR_FPIC_SPEC.
* config/sparc/linux64.h (ASM_SPEC): Likewise.
---
gcc/config/sparc/linux.h | 2 +-
gcc/config/sparc/linux64.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h
index 56def4b..17e1e86 100644
--- a/gcc/config/sparc/linux.h
+++ b/gcc/config/sparc/linux.h
@@ -98,7 +98,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv);
#undef ASM_SPEC
#define ASM_SPEC "\
-s \
-%{fpic|fPIC|fpie|fPIE:-K PIC} \
+%{" FPIE_OR_FPIC_SPEC ":-K PIC} \
%{!.c:%{findirect-dispatch:-K PIC}} \
%(asm_cpu) %(asm_relax)"
diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h
index fa805fd..43da848 100644
--- a/gcc/config/sparc/linux64.h
+++ b/gcc/config/sparc/linux64.h
@@ -208,7 +208,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv);
#undef ASM_SPEC
#define ASM_SPEC "\
-s \
-%{fpic|fPIC|fpie|fPIE:-K PIC} \
+%{" FPIE_OR_FPIC_SPEC ":-K PIC} \
%{!.c:%{findirect-dispatch:-K PIC}} \
%(asm_cpu) %(asm_arch) %(asm_relax)"
--
1.9.3
More information about the Gcc-patches
mailing list