Fix sanity check
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Oct 1999 20:14:28 +0000 (20:14 +0000)
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Oct 1999 20:14:28 +0000 (20:14 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29845 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/varray.h

index 7029258..8c5fb11 100644 (file)
@@ -1,3 +1,9 @@
+Wed Oct  6 16:10:35 1999  Michael Meissner  <meissner@cygnus.com>
+
+       * varray.h (VARRAY_CHECK): Fix up appropriate revision check, in
+       case somebody tries to compile --enable-checking code with gcc
+       1.34 or such.
+
 Wed Oct  6 12:22:50 1999  Richard Henderson  <rth@cygnus.com>
 
        * genrecog.c (add_to_sequence): Verify operand to label_ref is
index 5a889bf..53b164b 100644 (file)
@@ -1,5 +1,5 @@
 /* Virtual array support.
-   Copyright (C) 1998 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999 Free Software Foundation, Inc.
    Contributed by Cygnus Solutions.
 
    This file is part of GNU CC.
@@ -163,7 +163,7 @@ extern varray_type varray_grow      PROTO((varray_type, size_t));
 #define VARRAY_SIZE(VA)        ((VA)->num_elements)
 
 /* Check for VARRAY_xxx macros being in bound.  */
-#if defined ENABLE_CHECKING && (__GNUC__ > 2 || __GNUC_MINOR__ > 6)
+#if defined ENABLE_CHECKING && (__GNUC__ > 2 || (__GNUC__ == 2 &&__GNUC_MINOR__ > 6))
 extern void varray_check_failed PROTO ((varray_type, size_t,
                                        const char *, int,
                                        const char *)) ATTRIBUTE_NORETURN;