aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-12-13 11:22:44 -0800
committerRichard Henderson <rth@gcc.gnu.org>2011-12-13 11:22:44 -0800
commit6cc7fb90517d6928054354f8249532af84e1dc5b (patch)
treeb1b4a7b1d891dcea67383cef1479b4fa6ef4f4b5 /gcc/config.gcc
parent9dadf3bf5ee8ef62f5e183e4595eba0b20d74902 (diff)
downloadgcc-6cc7fb90517d6928054354f8249532af84e1dc5b.zip
gcc-6cc7fb90517d6928054354f8249532af84e1dc5b.tar.gz
gcc-6cc7fb90517d6928054354f8249532af84e1dc5b.tar.bz2
sparc: Default memory model to TSO for Linux and Solaris.
* config/sparc/tso.h: New file. * config.gcc (sparc-*-linux*, sparc*-*-solaris2*): Use it. * config/sparc/sparc.c (sparc_option_override): Honor SUBTARGET_DEFAULT_MEMORY_MODEL. * config/sparc/sparc.h (SUBTARGET_DEFAULT_MEMORY_MODEL): New. From-SVN: r182297
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index a477289..d0f7b28 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2357,7 +2357,7 @@ sparc-*-rtems*)
tmake_file="sparc/t-sparc sparc/t-elf t-rtems"
;;
sparc-*-linux*)
- tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h"
+ tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/tso.h"
extra_options="${extra_options} sparc/long-double-switch.opt"
case ${target} in
*-leon-*)
@@ -2384,7 +2384,7 @@ sparc-*-netbsdelf*)
tmake_file="${tmake_file} sparc/t-sparc"
;;
sparc*-*-solaris2*)
- tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sol2-bi.h"
+ tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sol2-bi.h sparc/tso.h"
case ${target} in
sparc64-*-* | sparcv9-*-*)
tm_file="sparc/default-64.h ${tm_file}"
@@ -2410,7 +2410,7 @@ sparc64-*-rtems*)
tmake_file="${tmake_file} sparc/t-sparc t-rtems"
;;
sparc64-*-linux*)
- tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default-64.h sparc/linux64.h"
+ tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default-64.h sparc/linux64.h sparc/tso.h"
extra_options="${extra_options} sparc/long-double-switch.opt"
tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64"
;;