diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-24 17:04:47 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-24 17:04:47 +0000 |
commit | 10de71e103272ab95d389659e312b95e6b86a65c (patch) | |
tree | ec50c8ab7786788a6da7d4f06b0cd93e9555d487 /gcc/c-cppbuiltin.c | |
parent | 99ad623febd84d2a9cf4c2d0ad950c48c650a624 (diff) | |
download | gcc-10de71e103272ab95d389659e312b95e6b86a65c.tar.gz |
Add BID decimal support
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-cppbuiltin.c')
-rw-r--r-- | gcc/c-cppbuiltin.c | 11 |
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 |