diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-06 21:58:55 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-06 21:58:55 +0000 |
commit | 55d197c9fa2a53ea7f2ba8c34f676597a8f238a7 (patch) | |
tree | 8aa721b74d51f629cb5e39b0ce2f36df6422cb79 /libcpp | |
parent | 1c2fd81f7b6fa9e7d6756ec872a1767e5ac5c7b8 (diff) |
4248139 MS asm: GCC is attempting to parse values in comments
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-local-200502-branch@105060 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/expr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcpp/expr.c b/libcpp/expr.c index d1dfb39fd4b..7922fb98f72 100644 --- a/libcpp/expr.c +++ b/libcpp/expr.c @@ -270,6 +270,13 @@ cpp_classify_number (cpp_reader *pfile, const cpp_token *token) result = interpret_int_suffix (pfile, str, limit - str); if (result == 0) { + /* APPLE LOCAL begin CW asm blocks C++ comments 4248139 */ + /* Because we don't regonize inline asm comments during + lexing, we have to avoid erroring out now. */ + if (cpp_get_options (pfile)->h_suffix) + return CPP_N_INVALID; + /* APPLE LOCAL end CW asm blocks C++ comments 4248139 */ + cpp_error (pfile, CPP_DL_ERROR, "invalid suffix \"%.*s\" on integer constant", (int) (limit - str), str); |