diff options
-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 0c3a3508c93..2525350e7f0 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 75effe97e7b..06904dbb5e5 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)) |