Fix sanity check
authorMichael Meissner <meissner@cygnus.com>
Wed, 6 Oct 1999 20:14:28 +0000 (20:14 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Wed, 6 Oct 1999 20:14:28 +0000 (20:14 +0000)
From-SVN: r29845

gcc/ChangeLog
gcc/varray.h

index 702925830b19df9bb20d8abe1b8361a753f7651d..8c5fb115d07ebe9ec11705bec8c0350eb32dcd64 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 5a889bf9dd6d263cca0371cffd1f845443c76278..53b164ba466435aac07ce85a0d89cb346d77a8f2 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;