aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2005-01-21 16:57:02 +0000
committerTom Tromey <tromey@gcc.gnu.org>2005-01-21 16:57:02 +0000
commita101957b98129887878b4e98830147e49fa4f655 (patch)
tree18775ea9f99b5e86ce7bb9e4c8e8278a7a60ca4e /gcc
parenta85ba5a883348f4375d6a315e9e6b3d06acd3bb3 (diff)
downloadgcc-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/ChangeLog4
-rw-r--r--gcc/c-cppbuiltin.c2
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))