summaryrefslogtreecommitdiff
path: root/libcpp/include
diff options
context:
space:
mode:
authorChao-ying Fu <fu@mips.com>2007-08-30 23:05:17 +0000
committerChao-ying Fu <chaoyingfu@gcc.gnu.org>2007-08-30 23:05:17 +0000
commitac6b1c676c9713beb3cfe1ac663c60317c57e1f6 (patch)
treef4c07ef719ac366d9d8400e5386ecb0c3d84690c /libcpp/include
parent07368af0833c1bfc29e35a1eabb4f269eafd8825 (diff)
downloadgcc-ac6b1c676c9713beb3cfe1ac663c60317c57e1f6.tar.gz
expr.c (interpret_float_suffix): Support hr, r, lr, llr, uhr, ur, ulr, ullr, hk, k, lk, llk, uhk, uk, ulk, ullk.
* expr.c (interpret_float_suffix): Support hr, r, lr, llr, uhr, ur, ulr, ullr, hk, k, lk, llk, uhk, uk, ulk, ullk. (cpp_classify_number): Support decimal fixed-point constants without exponents. Warn about fixed-point constants when -pedantic. * include/cpplib.h (CPP_N_SMALL, CPP_N_MEDIUM, CPP_N_LARGE): Change comments to support fixed-point values. (CPP_N_FRACT, CPP_N_ACCUM): Define. From-SVN: r127940
Diffstat (limited to 'libcpp/include')
-rw-r--r--libcpp/include/cpplib.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index 2dac4c2d988..039dfbbf193 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -747,9 +747,10 @@ struct cpp_num
#define CPP_N_FLOATING 0x0002
#define CPP_N_WIDTH 0x00F0
-#define CPP_N_SMALL 0x0010 /* int, float. */
-#define CPP_N_MEDIUM 0x0020 /* long, double. */
-#define CPP_N_LARGE 0x0040 /* long long, long double. */
+#define CPP_N_SMALL 0x0010 /* int, float, shrot _Fract/Accum */
+#define CPP_N_MEDIUM 0x0020 /* long, double, long _Fract/_Accum. */
+#define CPP_N_LARGE 0x0040 /* long long, long double,
+ long long _Fract/Accum. */
#define CPP_N_WIDTH_MD 0xF0000 /* machine defined. */
#define CPP_N_MD_W 0x10000
@@ -765,6 +766,9 @@ struct cpp_num
#define CPP_N_IMAGINARY 0x2000
#define CPP_N_DFLOAT 0x4000
+#define CPP_N_FRACT 0x100000 /* Fract types. */
+#define CPP_N_ACCUM 0x200000 /* Accum types. */
+
/* Classify a CPP_NUMBER token. The return value is a combination of
the flags from the above sets. */
extern unsigned cpp_classify_number (cpp_reader *, const cpp_token *);