ELF now omits leading underscores.
authorMichael Meissner <meissner@gcc.gnu.org>
Thu, 2 Sep 1993 18:35:26 +0000 (18:35 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Thu, 2 Sep 1993 18:35:26 +0000 (18:35 +0000)
From-SVN: r5251

gcc/config/i386/osfelf.h
gcc/config/i386/osfrose.h

index 01538dc7d5b91a4a9b21d583748729b0518c2e95..ededc051ff70341ea7acf4873f1f9e791815cff5 100644 (file)
@@ -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
index 5886ff284e4dd50a75846a4580d115f7eeaa6233..f52f90b7935b9f0d6c93b86c3bd6d61148cf231f 100644 (file)
@@ -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"