* c-cppbuiltin.c (define__GNUC__): Correct assertion.
authorTom Tromey <tromey@redhat.com>
Fri, 21 Jan 2005 16:57:02 +0000 (16:57 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 21 Jan 2005 16:57:02 +0000 (16:57 +0000)
From-SVN: r94019

gcc/ChangeLog
gcc/c-cppbuiltin.c

index 0c3a3508c932896efd6e55f376aae2b7726f3abf..2525350e7f0e1efe002a4a7a4d118f9b88232a05 100644 (file)
@@ -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.
index 75effe97e7bf400ee5d9461cfcc0fe637f73910e..06904dbb5e52b7f896e8aa975221503bbf1bafda 100644 (file)
@@ -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))