diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2013-12-06 11:31:56 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2013-12-06 11:31:56 +0000 |
commit | fde66fde162b08a98b5fe66be20704a8e82784ac (patch) | |
tree | 696751ad82b90968d6718287d90a84b3fe9b59ba /gcc/config/sparc/sparc.h | |
parent | 2c8326a568110fcecb88677b521ef4e3ba4effe9 (diff) | |
download | gcc-fde66fde162b08a98b5fe66be20704a8e82784ac.zip gcc-fde66fde162b08a98b5fe66be20704a8e82784ac.tar.gz gcc-fde66fde162b08a98b5fe66be20704a8e82784ac.tar.bz2 |
re PR target/59316 (gcc.dg/atomic/c11-atomic-exec-5.c FAILs on Solaris/SPARC)
PR target/59316
* config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
* config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
* config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
(TARGET_BUILTIN_DECL): Define.
(TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
(sparc32_initialize_trampoline): Adjust call to gen_flush.
(enum sparc_builtins): New enumeral type.
(sparc_builtins): New static array.
(sparc_builtins_icode): Likewise.
(def_builtin): Accept a separate icode and save the result.
(def_builtin_const): Likewise.
(sparc_fpu_init_builtins): New function.
(sparc_vis_init_builtins): Pass the builtin code.
(sparc_init_builtins): Call it if TARGET_FPU.
(sparc_builtin_decl): New function.
(sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
(sparc_handle_vis_mul8x16): Use the builtin code.
(sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
and SPARC_BUILTIN_PDISTN.
(compound_expr): New helper function.
(sparc_atomic_assign_expand_fenv): New function.
* config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
and UNSPECV_STFSR.
(flush, flushdi): Merge into single pattern.
(ldfsr): New instruction.
(stfsr): Likewise.
From-SVN: r205735
Diffstat (limited to 'gcc/config/sparc/sparc.h')
-rw-r--r-- | gcc/config/sparc/sparc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index d96c1b6..7533e88 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -1777,3 +1777,6 @@ extern int sparc_indent_opcode; #ifndef SUBTARGET_DEFAULT_MEMORY_MODEL #define SUBTARGET_DEFAULT_MEMORY_MODEL SMM_DEFAULT #endif + +/* Define this to 1 if the FE_EXCEPT values defined in fenv.h start at 1. */ +#define SPARC_LOW_FE_EXCEPT_VALUES 0 |