Commit e2bf4cfc by Michael Meissner

Do not turn on -mhalf-pic if ELF.

From-SVN: r4946
parent fe2db4fb
...@@ -39,14 +39,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -39,14 +39,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define CC1_SPEC "\ #define CC1_SPEC "\
%{!melf: %{!mrose: %{!mno-elf: -melf }}} \ %{!melf: %{!mrose: %{!mno-elf: -melf }}} \
%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \ %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
%{pic-none: -mno-half-pic} \ %{pic-none: -mno-half-pic} \
%{fpic: -mno-half-pic} \ %{pic-extern: } %{pic-lib: } %{pic-calls: } %{pic-names*: } \
%{fPIC: -mno-half-pic} \ %{!pic-none: \
%{pic-lib: -mhalf-pic} \ %{!mno-elf: %{!mrose: -mno-half-pic}} \
%{pic-extern: -mhalf-pic} \ %{fpic: -mno-half-pic} \
%{pic-calls: -mhalf-pic} \ %{fPIC: -mno-half-pic} \
%{pic-names*: -mhalf-pic} \ %{!fpic: %{!fPIC: %{mrose: -mhalf-pic} %{mno-elf: -mhalf-pic}}}}"
%{!pic-*: %{!fpic: %{!fPIC: -mhalf-pic}}}"
#undef ASM_SPEC #undef ASM_SPEC
#define ASM_SPEC "%{v*: -v}" #define ASM_SPEC "%{v*: -v}"
......
...@@ -82,19 +82,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -82,19 +82,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{.m: -D__LANGUAGE_OBJECTIVE_C} \ %{.m: -D__LANGUAGE_OBJECTIVE_C} \
%{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}" %{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
/* Turn on -mpic-extern by default. */ /* Turn on -pic-extern by default. */
#undef CC1_SPEC #undef CC1_SPEC
#define CC1_SPEC "\ #define CC1_SPEC "\
%{!melf: %{!mrose: %{!mno-elf: -mrose }}} \ %{!melf: %{!mrose: %{!mno-elf: -mrose }}} \
%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \ %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
%{pic-none: -mno-half-pic} \ %{pic-none: -mno-half-pic} \
%{fpic: -mno-half-pic} \ %{pic-extern: } %{pic-lib: } %{pic-calls: } %{pic-names*: } \
%{fPIC: -mno-half-pic} \ %{!pic-none: \
%{pic-lib: -mhalf-pic} \ %{melf: -mno-half-pic} \
%{pic-extern: -mhalf-pic} \ %{mno-rose: %{!melf: -mno-half-pic}} \
%{pic-calls: -mhalf-pic} \ %{!melf: %{!mno-rose: %{!fPIC: %{!fpic: -mhalf-pic}}}}}"
%{pic-names*: -mhalf-pic} \
%{!pic-*: %{!fpic: %{!fPIC: -mhalf-pic}}}"
#undef ASM_SPEC #undef ASM_SPEC
#define ASM_SPEC "%{v*: -v}" #define ASM_SPEC "%{v*: -v}"
...@@ -451,8 +449,21 @@ do \ ...@@ -451,8 +449,21 @@ do \
\ \
if (TARGET_IDENT) \ if (TARGET_IDENT) \
{ \ { \
fprintf ((STREAM), "\t%s\t\"GCC: (GNU) %s -O%d", \ char *fstart = main_input_filename; \
IDENT_ASM_OP, version_string, optimize); \ char *fname; \
\
if (!fstart) \
fstart = "<no file>"; \
\
fname = fstart + strlen (fstart) - 1; \
while (fname > fstart && *fname != '/') \
fname--; \
\
if (*fname == '/') \
fname++; \
\
fprintf ((STREAM), "\t%s\t\"GCC: (GNU) %s %s -O%d", \
IDENT_ASM_OP, version_string, fname, optimize); \
\ \
if (write_symbols == PREFERRED_DEBUGGING_TYPE) \ if (write_symbols == PREFERRED_DEBUGGING_TYPE) \
fprintf ((STREAM), " -g%d", (int)debug_info_level); \ fprintf ((STREAM), " -g%d", (int)debug_info_level); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment