diff options
author | Michael Meissner <michael.meissner@amd.com> | 2007-03-24 17:04:47 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2007-03-24 17:04:47 +0000 |
commit | 79b87c74d764bd42703818289685e48996b54eb8 (patch) | |
tree | ec50c8ab7786788a6da7d4f06b0cd93e9555d487 /gcc/c-cppbuiltin.c | |
parent | cca643862ddb1f61f200b567c667576d39961fb2 (diff) | |
download | gcc-79b87c74d764bd42703818289685e48996b54eb8.zip gcc-79b87c74d764bd42703818289685e48996b54eb8.tar.gz gcc-79b87c74d764bd42703818289685e48996b54eb8.tar.bz2 |
Add BID decimal support
Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>
Co-Authored-By: Marius Cornea <marius.cornea@intel.com>
From-SVN: r123185
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 e9f608e..d27b96b 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 |