Module Name:    src
Committed By:   matt
Date:           Sat Sep  5 03:26:20 UTC 2009

Modified Files:
        src/gnu/dist/gcc4/gcc/config/mips [matt-nb5-mips64]: netbsd.h
            netbsd64.h

Log Message:
Simply the netbsd64 LINK_SPEC.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.32.3 -r1.1.1.1.32.4 \
    src/gnu/dist/gcc4/gcc/config/mips/netbsd.h
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/gnu/dist/gcc4/gcc/config/mips/netbsd64.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/gnu/dist/gcc4/gcc/config/mips/netbsd.h
diff -u src/gnu/dist/gcc4/gcc/config/mips/netbsd.h:1.1.1.1.32.3 src/gnu/dist/gcc4/gcc/config/mips/netbsd.h:1.1.1.1.32.4
--- src/gnu/dist/gcc4/gcc/config/mips/netbsd.h:1.1.1.1.32.3	Sun Aug 30 23:26:25 2009
+++ src/gnu/dist/gcc4/gcc/config/mips/netbsd.h	Sat Sep  5 03:26:20 2009
@@ -204,7 +204,8 @@
   "%{EL:-m elf32ltsmip} \
    %{EB:-m elf32btsmip} \
    %(endian_spec) \
-   %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips32r2} %{mips64} \
+   %{G*} %{mips1} %{mips2} %{mips3} %{mips4} \
+   %{mips32} %{mips32r2} %{mips64} %{mips64r2} \
    %{bestGnum} %{call_shared} %{no_archive} %{exact_version} \
    %(netbsd_link_spec)"
 

Index: src/gnu/dist/gcc4/gcc/config/mips/netbsd64.h
diff -u src/gnu/dist/gcc4/gcc/config/mips/netbsd64.h:1.1.2.2 src/gnu/dist/gcc4/gcc/config/mips/netbsd64.h:1.1.2.3
--- src/gnu/dist/gcc4/gcc/config/mips/netbsd64.h:1.1.2.2	Sun Aug 23 20:28:58 2009
+++ src/gnu/dist/gcc4/gcc/config/mips/netbsd64.h	Sat Sep  5 03:26:20 2009
@@ -19,6 +19,12 @@
 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
+/* Force the default endianness and ABI flags onto the command line
+   in order to make the other specs easier to write.  */
+
+#define DRIVER_SELF_SPECS \
+"%{!EB:%{!EL:%(endian_spec)}}", \
+"%{!mabi=*: -mabi=n32}"
 
 /* Define default target values.  */
 
@@ -35,20 +41,13 @@
 
 #undef LINK_SPEC
 #define LINK_SPEC \
-  "%{EL:\
-	%{!mabi=*:-m elf32ltsmipn32} \
-	%{mabi=64:-m elf64ltsmip} \
-	%{mabi=32:-m elf32ltsmip} \
-	%{mabi=o64:-m elf64ltsmip} \
-	%{mabi=n32:-m elf32ltsmipn32}} \
-   %{EB:\
-	%{!mabi=*:-m elf32btsmipn32} \
-	%{mabi=64:-m elf64btsmip} \
-	%{mabi=32:-m elf32btsmip} \
-	%{mabi=o64:-m elf64btsmip} \
-	%{mabi=n32:-m elf32btsmipn32}} \
+  "%{mabi=64:-m elf64%{EB:b}%{EL:l}tsmip} \
+   %{mabi=32:-m elf32%{EB:b}%{EL:l}tsmip} \
+   %{mabi=o64:-m elf64%{EB:b}%{EL:l}tsmip} \
+   %{mabi=n32:-m elf32%{EB:b}%{EL:l}tsmipn32} \
    %(endian_spec) \
-   %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips32r2} %{mips64} \
+   %{G*} %{mips1} %{mips2} %{mips3} %{mips4} \
+   %{mips32} %{mips32r2} %{mips64} %{mips64r2} \
    %{bestGnum} %{call_shared} %{no_archive} %{exact_version} \
    %(netbsd_link_spec)"
 

Reply via email to