summaryrefslogtreecommitdiff
path: root/gcc/config/sparc/sparc.h
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-13 19:22:44 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-13 19:22:44 +0000
commit8da0577c87baa75ad56a412fe624f397ec90bd9b (patch)
treeb1b4a7b1d891dcea67383cef1479b4fa6ef4f4b5 /gcc/config/sparc/sparc.h
parent2c40a128278633ed44c671f6191a7ed589eb6ede (diff)
downloadgcc-8da0577c87baa75ad56a412fe624f397ec90bd9b.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182297 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sparc/sparc.h')
-rw-r--r--gcc/config/sparc/sparc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index 32f8c1074ae..bb6b0794350 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -1755,3 +1755,8 @@ extern int sparc_indent_opcode;
#define MASK_DEBUG_ALL MASK_DEBUG_OPTIONS
#define TARGET_DEBUG_OPTIONS (sparc_debug & MASK_DEBUG_OPTIONS)
+
+/* By default, use the weakest memory model for the cpu. */
+#ifndef SUBTARGET_DEFAULT_MEMORY_MODEL
+#define SUBTARGET_DEFAULT_MEMORY_MODEL SMM_DEFAULT
+#endif