re PR target/28617 (___divti3 and ___umodti3 undefined for -m64 on powerpc-apple...
authorGeoffrey Keating <geoffk@apple.com>
Fri, 29 Sep 2006 01:21:14 +0000 (01:21 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Fri, 29 Sep 2006 01:21:14 +0000 (01:21 +0000)
PR target/28617
* config/rs6000/rs6000.h [IN_LIBGCC2] (TARGET_POWERPC64): Define
to 1 when __ppc64__ is defined.
* config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Add ppc64-fp.c and
darwin-64.c.
* config/rs6000/ppc64-fp.c: Also compile when __ppc64__ is defined.

From-SVN: r117296

gcc/ChangeLog
gcc/config/rs6000/ppc64-fp.c
gcc/config/rs6000/rs6000.h
gcc/config/rs6000/t-darwin

index fda7534d95bd30e7a827e7bb85faa5e2323e801b..c4161a0b3b19a3634833d1a717b0139caf452430 100644 (file)
@@ -1,3 +1,12 @@
+2006-09-28  Geoffrey Keating  <geoffk@apple.com>
+
+       PR target/28617
+       * config/rs6000/rs6000.h [IN_LIBGCC2] (TARGET_POWERPC64): Define
+       to 1 when __ppc64__ is defined.
+       * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Add ppc64-fp.c and
+       darwin-64.c.
+       * config/rs6000/ppc64-fp.c: Also compile when __ppc64__ is defined.
+
 2006-09-28  Steve Ellcey  <sje@cup.hp.com>
 
        * config/ia64/t-hpux (LIB2FUNCS_EXTRA): Remove unwind-hpux.c.
index 284750b3ed34d28ccd2ac15321c6e33d4ab965e7..184f34e1de99421dca772bc515135da1efc3521c 100644 (file)
@@ -30,7 +30,7 @@ along with GCC; see the file COPYING.  If not, write to the Free
 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301, USA.  */
 
-#if defined(__powerpc64__) || defined (__64BIT__)
+#if defined(__powerpc64__) || defined (__64BIT__) || defined(__ppc64__)
 #define TMODES
 #include "config/fp-bit.h"
 
index c83c49529a9ee85051bb04820f4a589afe5af678..12fbbbdabbb4e9d02d60251770df1428cca5c672 100644 (file)
 
 #ifdef IN_LIBGCC2
 /* For libgcc2 we make sure this is a compile time constant */
-#if defined (__64BIT__) || defined (__powerpc64__)
+#if defined (__64BIT__) || defined (__powerpc64__) || defined (__ppc64__)
 #undef TARGET_POWERPC64
 #define TARGET_POWERPC64       1
 #else
index 3f207754eea88e96155489660c444aac64166822..52c3e999ba535caa155f9bc9f0f5f3f495fc377a 100644 (file)
@@ -1,4 +1,6 @@
 LIB2FUNCS_EXTRA = $(srcdir)/config/rs6000/darwin-tramp.asm \
+       $(srcdir)/config/rs6000/ppc64-fp.c \
+       $(srcdir)/config/darwin-64.c \
        $(srcdir)/config/rs6000/darwin-ldouble.c
 
 LIB2FUNCS_STATIC_EXTRA = \