diff options
author | Tom Tromey <tromey@redhat.com> | 2005-01-21 16:57:02 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2005-01-21 16:57:02 +0000 |
commit | a101957b98129887878b4e98830147e49fa4f655 (patch) | |
tree | 18775ea9f99b5e86ce7bb9e4c8e8278a7a60ca4e /gcc | |
parent | a85ba5a883348f4375d6a315e9e6b3d06acd3bb3 (diff) | |
download | gcc-a101957b98129887878b4e98830147e49fa4f655.zip gcc-a101957b98129887878b4e98830147e49fa4f655.tar.gz gcc-a101957b98129887878b4e98830147e49fa4f655.tar.bz2 |
* c-cppbuiltin.c (define__GNUC__): Correct assertion.
From-SVN: r94019
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-cppbuiltin.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0c3a350..2525350e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-01-21 Tom Tromey <tromey@redhat.com> + + * c-cppbuiltin.c (define__GNUC__): Correct assertion. + 2005-01-21 Kazu Hirata <kazu@cs.umass.edu> * tree-cfg.c: Fix comment typos. diff --git a/gcc/c-cppbuiltin.c b/gcc/c-cppbuiltin.c index 75effe9..06904db 100644 --- a/gcc/c-cppbuiltin.c +++ b/gcc/c-cppbuiltin.c @@ -275,7 +275,7 @@ define__GNUC__ (void) if (c_dialect_cxx ()) builtin_define_with_value_n ("__GNUG__", q, v - q); - gcc_assert (*v == '.' || ISDIGIT (v[1])); + gcc_assert (*v == '.' && ISDIGIT (v[1])); q = ++v; while (ISDIGIT (*v)) |