# -*- shell-script -*-
-# Copyright (C) 2011, 2012 Free Software Foundation, Inc.
+# Copyright (C) 2011-2014 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
# work out any special compilation flags as necessary.
case "${target_cpu}" in
alpha*) ARCH=alpha ;;
- rs6000 | powerpc*) ARCH=powerpc ;;
+ 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
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} -fomit-frame-pointer"
;;
esac
+ XCFLAGS="${XCFLAGS} -mrtm"
ARCH=x86
;;
+ s390|s390x)
+ XCFLAGS="${XCFLAGS} -mzarch -mhtm"
+ ARCH=s390
+ ;;
*)
ARCH="${target_cpu}"
*-*-gnu* | *-*-k*bsd*-gnu \
| *-*-netbsd* | *-*-freebsd* | *-*-openbsd* \
- | *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11* \
+ | *-*-solaris2* | *-*-sysv4* | *-*-hpux11* \
| *-*-darwin* | *-*-aix*)
# POSIX system. The OS is supported.
;;