summaryrefslogtreecommitdiff
path: root/gcc/c-cppbuiltin.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-cppbuiltin.c')
-rw-r--r--gcc/c-cppbuiltin.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/c-cppbuiltin.c b/gcc/c-cppbuiltin.c
index e9f608eff2e..d27b96bc6b3 100644
--- a/gcc/c-cppbuiltin.c
+++ b/gcc/c-cppbuiltin.c
@@ -605,6 +605,17 @@ c_cpp_builtins (cpp_reader *pfile)
new appearance would clobber any existing args. */
if (TARGET_DECLSPEC)
builtin_define ("__declspec(x)=__attribute__((x))");
+
+ /* Tell the user whether decimal floating point is supported,
+ and if it is supported, whether the alternate format (BID)
+ is used over the standard (DPD) format. */
+
+ if (ENABLE_DECIMAL_FLOAT)
+ {
+ cpp_define (pfile, "__STDC_WANT_DEC_FP__");
+ if (ENABLE_DECIMAL_BID_FORMAT)
+ cpp_define (pfile, "__DECIMAL_BID_FORMAT__");
+ }
}
/* Pass an object-like macro. If it doesn't lie in the user's