gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Apr 2014 10:40:57 +0000 (10:40 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Apr 2014 10:40:57 +0000 (10:40 +0000)
2014-04-01  Martin Husemann  <martin@duskware.de>

* config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
for -mabi=32.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208985 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/netbsd.h

index c5c775a..f931619 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-01  Martin Husemann  <martin@duskware.de>
+
+       * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
+       for -mabi=32.
+
 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
 
        PR rtl-optimization/60604
index 0313345..efa2886 100644 (file)
@@ -32,7 +32,9 @@ along with GCC; see the file COPYING3.  If not see
       if (TARGET_ABICALLS)                             \
        builtin_define ("__ABICALLS__");                \
                                                        \
-      if (mips_abi == ABI_EABI)                                \
+      if (mips_abi == ABI_32)                          \
+       builtin_define ("__mips_o32");                  \
+      else if (mips_abi == ABI_EABI)                   \
        builtin_define ("__mips_eabi");                 \
       else if (mips_abi == ABI_N32)                    \
        builtin_define ("__mips_n32");                  \