]> gcc.gnu.org Git - gcc.git/blobdiff - libitm/configure.tgt
re PR other/79543 (Inappropriate "ld --version" checking)
[gcc.git] / libitm / configure.tgt
index 8d43cd410d4342d00c8793bc8624aa6c20cc7e97..4c0b602034bd9b53d5486ad9964ea092a47d904a 100644 (file)
@@ -1,5 +1,5 @@
 # -*- shell-script -*-
-#   Copyright (C) 2011 Free Software Foundation, Inc.
+#   Copyright (C) 2011-2019 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,13 +46,18 @@ 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 ;;
+  aarch64*)            ARCH=aarch64 ;;
+  alpha*)              ARCH=alpha ;;
+  rs6000 | powerpc*)
+       XCFLAGS="${XCFLAGS} -mhtm"
+       ARCH=powerpc
+       ;;
 
   arm*)                ARCH=arm ;;
 
   i[3456]86)
        case " ${CC} ${CFLAGS} " in
-         *" -m64 "*)
+         *" -m64 "*|*" -mx32 "*)
            ;;
          *)
            if test -z "$with_arch"; then
@@ -60,20 +65,54 @@ case "${target_cpu}" in
              XCFLAGS="${XCFLAGS} -fomit-frame-pointer"
            fi
        esac
+       XCFLAGS="${XCFLAGS} -mrtm"
        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 "*)
-           XCFLAGS="${XCFLAGS} -march=i486 -mtune=i686"
+           XCFLAGS="${XCFLAGS} -march=i486 -mtune=generic"
            XCFLAGS="${XCFLAGS} -fomit-frame-pointer"
            ;;
        esac
+       XCFLAGS="${XCFLAGS} -mrtm"
        ARCH=x86
        ;;
+  s390|s390x)
+       XCFLAGS="${XCFLAGS} -mzarch -mhtm"
+       ARCH=s390
+       ;;
 
   *)
        ARCH="${target_cpu}"
@@ -94,10 +133,15 @@ 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* \
-  | *-*-darwin* | *-*-aix*)
+  | *-*-solaris2* | *-*-sysv4* | *-*-hpux11* \
+  | *-*-darwin* | *-*-aix* | *-*-dragonfly*)
        # POSIX system.  The OS is supported.
        ;;
 
This page took 0.029529 seconds and 5 git commands to generate.