OSDN Git Service

* c-cppbuiltin.c (define__GNUC__): Correct assertion.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Jan 2005 16:57:02 +0000 (16:57 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Jan 2005 16:57:02 +0000 (16:57 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94019 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-cppbuiltin.c

index 0c3a350..2525350 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 75effe9..06904db 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))