summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-02-17 06:46:44 +0100
committerMatthias Braun <matze@braunis.de>2017-02-17 06:49:20 +0100
commitd35d57ebf0d828a43e700358f0a011a27ce1c31b (patch)
tree0170f0332c016fa432ed5ad967afd839edd2b562 /src
parente4f9e09ba1b64bfbace9f94773cfae789c664cf4 (diff)
Rename long_double_x87_80bit_float -> x87_long_double
Diffstat (limited to 'src')
-rw-r--r--src/ast/constfold.c3
-rw-r--r--src/ast/dialect.h22
-rw-r--r--src/driver/target.c4
3 files changed, 14 insertions, 15 deletions
diff --git a/src/ast/constfold.c b/src/ast/constfold.c
index 7d97c2a..ba856a2 100644
--- a/src/ast/constfold.c
+++ b/src/ast/constfold.c
@@ -1043,8 +1043,7 @@ static ir_mode *init_atomic_ir_mode(atomic_type_kind_t kind)
unsigned flags = get_atomic_type_flags(kind);
unsigned size = get_atomic_type_size(kind);
if (flags & ATOMIC_TYPE_FLAG_FLOAT) {
- if (kind == ATOMIC_TYPE_LONG_DOUBLE
- && dialect.long_double_x87_80bit_float) {
+ if (kind == ATOMIC_TYPE_LONG_DOUBLE && dialect.x87_long_double) {
assert(size == 12 || size == 16);
return new_float_mode("F80", irma_x86_extended_float, 15, 64,
target.float_int_overflow);
diff --git a/src/ast/dialect.h b/src/ast/dialect.h
index a704248..beb9960 100644
--- a/src/ast/dialect.h
+++ b/src/ast/dialect.h
@@ -26,17 +26,17 @@ typedef struct c_dialect_t {
atomic_type_kind_t wchar_atomic_kind;
atomic_type_kind_t pointer_sized_int;
atomic_type_kind_t pointer_sized_uint;
- bool freestanding : 1;
- bool no_builtins : 1;
- bool char_is_signed : 1;
- bool strict : 1;
- bool c89 : 1;
- bool c99 : 1;
- bool c11 : 1;
- bool cpp : 1;
- bool gnu : 1;
- bool ms : 1;
- bool long_double_x87_80bit_float : 1;
+ bool freestanding : 1;
+ bool no_builtins : 1;
+ bool char_is_signed : 1;
+ bool strict : 1;
+ bool c89 : 1;
+ bool c99 : 1;
+ bool c11 : 1;
+ bool cpp : 1;
+ bool gnu : 1;
+ bool ms : 1;
+ bool x87_long_double : 1;
/** enable hack to add call to __main into the main function (mingw) */
bool enable_main_collect2_hack : 1;
bool support_fastcall_stdcall : 1;
diff --git a/src/driver/target.c b/src/driver/target.c
index 52dd619..c8bc8f3 100644
--- a/src/driver/target.c
+++ b/src/driver/target.c
@@ -224,7 +224,7 @@ static void set_options_for_machine(machine_triple_t const *const machine)
* mode is everywhere except for windows OSes (they will revert it
* below) */
dialect.long_long_and_double_struct_align = 4;
- dialect.long_double_x87_80bit_float = true;
+ dialect.x87_long_double = true;
} else if (streq(cpu, "sparc")) {
ppdefc("sparc", "1", cond_not_strict);
ppdef( "__sparc", "1");
@@ -268,7 +268,7 @@ static void set_options_for_machine(machine_triple_t const *const machine)
long_double_size = 16;
long_double_align = 16;
float_int_overflow = ir_overflow_indefinite;
- dialect.long_double_x87_80bit_float = true;
+ dialect.x87_long_double = true;
} else if (streq(cpu, "mips")) {
ppdef("__mips__", "1");
firm_isa = "mips";