OSDN Git Service

* config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
[pf3gnuchains/gcc-fork.git] / libitm / configure.tgt
index eac6f50..b68c86b 100644 (file)
@@ -1,5 +1,5 @@
 # -*- shell-script -*-
-#   Copyright (C) 2011 Free Software Foundation, Inc.
+#   Copyright (C) 2011, 2012 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -46,7 +46,10 @@ fi
 # Map the target cpu to an ARCH sub-directory.  At the same time,
 # work out any special compilation flags as necessary.
 case "${target_cpu}" in
-  alpha*)      ARCH=alpha ;;
+  alpha*)              ARCH=alpha ;;
+  rs6000 | powerpc*)   ARCH=powerpc ;;
+
+  arm*)                ARCH=arm ;;
 
   i[3456]86)
        case " ${CC} ${CFLAGS} " in
@@ -61,6 +64,36 @@ case "${target_cpu}" in
        ARCH=x86
        ;;
 
+  sh*)         ARCH=sh ;;
+
+  sparc)
+       case " ${CC} ${CFLAGS} " in
+         *" -m64 "*)
+           ;;
+         *)
+           if test -z "$with_cpu"; then
+             XCFLAGS="${XCFLAGS} -mcpu=v9"
+           fi
+       esac
+       ARCH=sparc
+       ;;
+
+  sparc64|sparcv9)
+       case " ${CC} ${CFLAGS} " in
+         *" -m32 "*)
+           XCFLAGS="${XCFLAGS} -mcpu=v9"
+           ;;
+         *" -m64 "*)
+           ;;
+         *)
+           if test "x$with_cpu" = xv8; then
+             XCFLAGS="${XCFLAGS} -mcpu=v9"
+           fi
+           ;;
+       esac
+       ARCH=sparc
+       ;;
+
   x86_64)
        case " ${CC} ${CFLAGS} " in
          *" -m32 "*)
@@ -90,6 +123,11 @@ case "${target}" in
        fi
        ;;
 
+  powerpc*-*-aix* | rs6000-*-aix*)
+       # The system ought to be supported, but sjlj.S has not been ported.
+       UNSUPPORTED=1
+       ;;
+
   *-*-gnu* | *-*-k*bsd*-gnu \
   | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* \
   | *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11* \