aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1993-09-02 18:35:26 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1993-09-02 18:35:26 +0000
commitae1ac7028596cbf7a4a5cc5e701f84321563657b (patch)
tree32ae448df963fc5a9212235be6205fdeec441d09
parent3cca99e83956d50fe451cb155d39eeac18e14d5f (diff)
downloadgcc-ae1ac7028596cbf7a4a5cc5e701f84321563657b.zip
gcc-ae1ac7028596cbf7a4a5cc5e701f84321563657b.tar.gz
gcc-ae1ac7028596cbf7a4a5cc5e701f84321563657b.tar.bz2
ELF now omits leading underscores.
From-SVN: r5251
-rw-r--r--gcc/config/i386/osfelf.h32
-rw-r--r--gcc/config/i386/osfrose.h37
2 files changed, 14 insertions, 55 deletions
diff --git a/gcc/config/i386/osfelf.h b/gcc/config/i386/osfelf.h
index 01538dc..ededc05 100644
--- a/gcc/config/i386/osfelf.h
+++ b/gcc/config/i386/osfelf.h
@@ -24,19 +24,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define CPP_PREDEFINES "-DOSF -DOSF1 -Dunix -Di386 -Asystem(unix) -Acpu(i386) -Amachine(i386)"
#undef CPP_SPEC
-#ifndef NO_UNDERSCORE
-#define CPP_SPEC "\
-%{mrose: -D__ROSE__} %{!mrose: -D__ELF__} \
-%{mno-underscores: -D__NO_UNDERSCORES__} \
-%{.S: %{!ansi:%{!traditional:%{!traditional-cpp:%{!ftraditional: -traditional}}}}} \
-%{.S: -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
-%{.cc: -D__LANGUAGE_C_PLUS_PLUS} \
-%{.cxx: -D__LANGUAGE_C_PLUS_PLUS} \
-%{.C: -D__LANGUAGE_C_PLUS_PLUS} \
-%{.m: -D__LANGUAGE_OBJECTIVE_C} \
-%{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
-#else
-
#define CPP_SPEC "\
%{mrose: -D__ROSE__} %{!mrose: -D__ELF__} \
%{mno-underscores: -D__NO_UNDERSCORES__} \
@@ -48,19 +35,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{.C: -D__LANGUAGE_C_PLUS_PLUS} \
%{.m: -D__LANGUAGE_OBJECTIVE_C} \
%{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
-#endif
/* Turn on -mpic-extern by default (change to later use -fpic. */
#undef CC1_SPEC
-#ifndef NO_UNDERSCORE
-#define CC1_SPEC "\
-%{!melf: %{!mrose: -melf }} \
-%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
-%{mrose: %{pic-none: -mno-half-pic} \
- %{pic-extern: } %{pic-lib: } %{pic-calls: } %{pic-names*: } \
- %{!pic-none: -mhalf-pic }}"
-#else
-
#define CC1_SPEC "\
%{!melf: %{!mrose: -mrose }} \
%{!mrose: %{!munderscores: %{!mno-underscores: -mno-underscores }}} \
@@ -68,13 +45,18 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{mrose: %{pic-none: -mno-half-pic} \
%{pic-extern: } %{pic-lib: } %{pic-calls: } %{pic-names*: } \
%{!pic-none: -mhalf-pic }}"
-#endif
#undef ASM_SPEC
#define ASM_SPEC "%{v*: -v}"
#undef LINK_SPEC
-#define LINK_SPEC "%{noshrlib: } %{glue: }"
+#define LINK_SPEC "\
+%{mrose: %{!noshrlib: %{pic-none: -noshrlib} %{!pic-none: -warn_nopic}} \
+ %{nostdlib} %{noshrlib} %{glue} %{v*: -v}} \
+%{!mrose: %{dy} %{dn: } %{glue: } \
+ %{!dy: %{!dn: \
+ %{noshrlib: } %{pic-none: } \
+ %{!noshrlib: %{!pic-none: -dy}}}}}"
#undef TARGET_VERSION_INTERNAL
#undef TARGET_VERSION
diff --git a/gcc/config/i386/osfrose.h b/gcc/config/i386/osfrose.h
index 5886ff2..f52f90b 100644
--- a/gcc/config/i386/osfrose.h
+++ b/gcc/config/i386/osfrose.h
@@ -18,9 +18,6 @@ You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-/* Put leading underscores in front of names. */
-#define YES_UNDERSCORES
-
#include "halfpic.h"
#include "i386/gstabs.h"
@@ -80,19 +77,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define CPP_PREDEFINES "-DOSF -DOSF1 -Dunix -Di386 -Asystem(unix) -Acpu(i386) -Amachine(i386)"
#undef CPP_SPEC
-#ifndef NO_UNDERSCORE
-#define CPP_SPEC "\
-%{!melf: -D__ROSE__} %{melf: -D__ELF__} \
-%{mno-underscores: -D__NO_UNDERSCORES__} \
-%{.S: %{!ansi:%{!traditional:%{!traditional-cpp:%{!ftraditional: -traditional}}}}} \
-%{.S: -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
-%{.cc: -D__LANGUAGE_C_PLUS_PLUS} \
-%{.cxx: -D__LANGUAGE_C_PLUS_PLUS} \
-%{.C: -D__LANGUAGE_C_PLUS_PLUS} \
-%{.m: -D__LANGUAGE_OBJECTIVE_C} \
-%{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
-#else
-
#define CPP_SPEC "\
%{!melf: -D__ROSE__} %{melf: -D__ELF__} \
%{mno-underscores: -D__NO_UNDERSCORES__} \
@@ -104,19 +88,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{.C: -D__LANGUAGE_C_PLUS_PLUS} \
%{.m: -D__LANGUAGE_OBJECTIVE_C} \
%{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
-#endif
/* Turn on -pic-extern by default. */
#undef CC1_SPEC
-#ifndef NO_UNDERSCORE
-#define CC1_SPEC "\
-%{!melf: %{!mrose: -mrose }} \
-%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
-%{!melf: %{pic-none: -mno-half-pic} \
- %{pic-extern: } %{pic-lib: } %{pic-calls: } %{pic-names*: } \
- %{!pic-none: -mhalf-pic }}"
-#else
-
#define CC1_SPEC "\
%{!melf: %{!mrose: -mrose }} \
%{melf: %{!munderscores: %{!mno-underscores: -mno-underscores }}} \
@@ -124,15 +98,18 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{!melf: %{pic-none: -mno-half-pic} \
%{pic-extern: } %{pic-lib: } %{pic-calls: } %{pic-names*: } \
%{!pic-none: -mhalf-pic }}"
-#endif
#undef ASM_SPEC
#define ASM_SPEC "%{v*: -v}"
#undef LINK_SPEC
-#define LINK_SPEC "%{v*: -v} \
- %{!noshrlib: %{pic-none: -noshrlib} %{!pic-none: -warn_nopic}} \
- %{nostdlib} %{noshrlib} %{glue}"
+#define LINK_SPEC "\
+%{!melf: %{!noshrlib: %{pic-none: -noshrlib} %{!pic-none: -warn_nopic}} \
+ %{nostdlib} %{noshrlib} %{glue} %{v*: -v}} \
+%{melf: %{dy} %{dn: } %{glue: } \
+ %{!dy: %{!dn: \
+ %{noshrlib: } %{pic-none: } \
+ %{!noshrlib: %{!pic-none: -dy}}}}}"
#undef LIB_SPEC
#define LIB_SPEC "-lc"