p4-projects@freebsd.org
[Top] [All Lists]

PERFORCE change 207147 for review

Subject: PERFORCE change 207147 for review
From: Oleksandr Tymoshenko
Date: Thu, 1 Mar 2012 05:44:54 GMT
http://p4web.freebsd.org/@@207147?ac=10

Change 207147 by gonzo@gonzo_thinkpad on 2012/03/01 05:44:30

        Set proper defaults for ABI and 32/64 bit flags (e.g. the same as 
target platform)

Affected files ...

.. //depot/projects/dtrace-mips/gnu/usr.bin/binutils/as/Makefile#2 edit
.. 
//depot/projects/dtrace-mips/gnu/usr.bin/binutils/as/mips-freebsd/itbl-cpu.h#2 
edit
.. //depot/projects/dtrace-mips/share/mk/sys.mk#2 edit

Differences ...

==== //depot/projects/dtrace-mips/gnu/usr.bin/binutils/as/Makefile#2 (text+ko) 
====

@@ -43,6 +43,13 @@
 
 .if ${TARGET_CPUARCH} == "mips"
 SRCS+= itbl-ops.c itbl-parse.y itbl-lex.l
+.if ${TARGET_ARCH:Mmips64*} != ""
+CFLAGS+=       -DMIPS_DEFAULT_ABI=N64_ABI -DMIPS_DEFAULT_64BIT=1
+.elif ${TARGET_ARCH:Mmipsn32*} != ""
+CFLAGS+=       -DMIPS_DEFAULT_ABI=N32_ABI
+.else
+MIPS_ABI_DEFAULT=ABI_32
+.endif
 .endif
 
 .if ${TARGET_ARCH} == "amd64"

==== 
//depot/projects/dtrace-mips/gnu/usr.bin/binutils/as/mips-freebsd/itbl-cpu.h#2 
(text+ko) ====

@@ -3,14 +3,17 @@
 #include "itbl-mips.h"
 
 /* Choose a default ABI for MIPS targets.  */
-/* XXX: Where should this be ? */
+#ifndef        MIPS_DEFAULT_ABI
 #define MIPS_DEFAULT_ABI NO_ABI
+#endif
 
 /* Default CPU for MIPS targets.  */
 #define MIPS_CPU_STRING_DEFAULT "from-abi"
 
 /* Generate 64-bit code by default on MIPS targets.  */
+#ifndef        MIPS_DEFAULT_64BIT
 #define MIPS_DEFAULT_64BIT 0
+#endif
 
 /* Allow use of E_MIPS_ABI_O32 on MIPS targets.  */
 #define USE_E_MIPS_ABI_O32 1

==== //depot/projects/dtrace-mips/share/mk/sys.mk#2 (text+ko) ====

_______________________________________________
p4-projects@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "p4-projects-unsubscribe@xxxxxxxxxxx"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 207147 for review, Oleksandr Tymoshenko <=