* [SPARC] Use V8+ default in 32-bit mode on SPARC64/Linux
@ 2022-01-31 8:23 Eric Botcazou
0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2022-01-31 8:23 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
This is what has been done for ages on SPARC/Solaris and makes it possible to
use 64-bit atomic instructions even in 32-bit mode.
Tested on SPARC64/Linux, applied on the mainline.
2022-01-31 Eric Botcazou <ebotcazou@adacore.com>
PR target/104189
* config/sparc/linux64.h (TARGET_DEFAULT): Add MASK_V8PLUS.
--
Eric Botcazou
[-- Attachment #2: pr104189.diff --]
[-- Type: text/x-patch, Size: 677 bytes --]
diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h
index 46823b62a3f..d08a2ef96fe 100644
--- a/gcc/config/sparc/linux64.h
+++ b/gcc/config/sparc/linux64.h
@@ -35,8 +35,8 @@ along with GCC; see the file COPYING3. If not see
#if defined(TARGET_64BIT_DEFAULT) && TARGET_CPU_DEFAULT >= TARGET_CPU_v9
#undef TARGET_DEFAULT
#define TARGET_DEFAULT \
- (MASK_V9 + MASK_PTR64 + MASK_64BIT + MASK_STACK_BIAS + \
- MASK_APP_REGS + MASK_FPU + MASK_LONG_DOUBLE_128)
+ (MASK_V9 + MASK_64BIT + MASK_PTR64 + MASK_STACK_BIAS + \
+ MASK_V8PLUS + MASK_APP_REGS + MASK_FPU + MASK_LONG_DOUBLE_128)
#endif
/* This must be v9a not just v9 because by default we enable
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-31 8:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-31 8:23 [SPARC] Use V8+ default in 32-bit mode on SPARC64/Linux Eric Botcazou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).