summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-07-21 01:48:07 +0000
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-07-21 01:48:07 +0000
commit776c3870949f514f142df1f4fa65fba202893158 (patch)
treed5125f0893b0b1b490193e5e50db51789434e7e6 /gcc
parent70672e8ccb7f72d33805fb9b847181149e468b79 (diff)
downloadgcc-776c3870949f514f142df1f4fa65fba202893158.tar.gz
Do not turn on -mhalf-pic if ELF.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4946 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/osfelf.h15
-rw-r--r--gcc/config/i386/osfrose.h33
2 files changed, 29 insertions, 19 deletions
diff --git a/gcc/config/i386/osfelf.h b/gcc/config/i386/osfelf.h
index 8a1cc54f450..a5115d3db6d 100644
--- a/gcc/config/i386/osfelf.h
+++ b/gcc/config/i386/osfelf.h
@@ -39,14 +39,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define CC1_SPEC "\
%{!melf: %{!mrose: %{!mno-elf: -melf }}} \
%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
-%{pic-none: -mno-half-pic} \
-%{fpic: -mno-half-pic} \
-%{fPIC: -mno-half-pic} \
-%{pic-lib: -mhalf-pic} \
-%{pic-extern: -mhalf-pic} \
-%{pic-calls: -mhalf-pic} \
-%{pic-names*: -mhalf-pic} \
-%{!pic-*: %{!fpic: %{!fPIC: -mhalf-pic}}}"
+%{pic-none: -mno-half-pic} \
+%{pic-extern: } %{pic-lib: } %{pic-calls: } %{pic-names*: } \
+%{!pic-none: \
+ %{!mno-elf: %{!mrose: -mno-half-pic}} \
+ %{fpic: -mno-half-pic} \
+ %{fPIC: -mno-half-pic} \
+ %{!fpic: %{!fPIC: %{mrose: -mhalf-pic} %{mno-elf: -mhalf-pic}}}}"
#undef ASM_SPEC
#define ASM_SPEC "%{v*: -v}"
diff --git a/gcc/config/i386/osfrose.h b/gcc/config/i386/osfrose.h
index 46ae32a0b40..1d676a07373 100644
--- a/gcc/config/i386/osfrose.h
+++ b/gcc/config/i386/osfrose.h
@@ -82,19 +82,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{.m: -D__LANGUAGE_OBJECTIVE_C} \
%{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
-/* Turn on -mpic-extern by default. */
+/* Turn on -pic-extern by default. */
#undef CC1_SPEC
#define CC1_SPEC "\
%{!melf: %{!mrose: %{!mno-elf: -mrose }}} \
%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
-%{pic-none: -mno-half-pic} \
-%{fpic: -mno-half-pic} \
-%{fPIC: -mno-half-pic} \
-%{pic-lib: -mhalf-pic} \
-%{pic-extern: -mhalf-pic} \
-%{pic-calls: -mhalf-pic} \
-%{pic-names*: -mhalf-pic} \
-%{!pic-*: %{!fpic: %{!fPIC: -mhalf-pic}}}"
+%{pic-none: -mno-half-pic} \
+%{pic-extern: } %{pic-lib: } %{pic-calls: } %{pic-names*: } \
+%{!pic-none: \
+ %{melf: -mno-half-pic} \
+ %{mno-rose: %{!melf: -mno-half-pic}} \
+ %{!melf: %{!mno-rose: %{!fPIC: %{!fpic: -mhalf-pic}}}}}"
#undef ASM_SPEC
#define ASM_SPEC "%{v*: -v}"
@@ -451,8 +449,21 @@ do \
\
if (TARGET_IDENT) \
{ \
- fprintf ((STREAM), "\t%s\t\"GCC: (GNU) %s -O%d", \
- IDENT_ASM_OP, version_string, optimize); \
+ char *fstart = main_input_filename; \
+ 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) \
fprintf ((STREAM), " -g%d", (int)debug_info_level); \