Adjustment to --enable-checking

Michael Meissner meissner@cygnus.com
Wed Oct 6 13:18:00 GMT 1999


I noticed the following when looking at varray.h, and made it
consistant with the other places that check gcc's revision #:

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.

*** gcc/varray.h.~1~	Wed Sep  8 16:37:51 1999
--- gcc/varray.h	Wed Oct  6 16:10:29 1999
***************
*** 1,5 ****
  /* Virtual array support.
!    Copyright (C) 1998 Free Software Foundation, Inc.
     Contributed by Cygnus Solutions.
  
     This file is part of GNU CC.
--- 1,5 ----
  /* Virtual array support.
!    Copyright (C) 1998, 1999 Free Software Foundation, Inc.
     Contributed by Cygnus Solutions.
  
     This file is part of GNU CC.
*************** extern varray_type varray_grow	PROTO((va
*** 163,169 ****
  #define VARRAY_SIZE(VA)	((VA)->num_elements)
  
  /* Check for VARRAY_xxx macros being in bound.  */
! #if defined ENABLE_CHECKING && (__GNUC__ > 2 || __GNUC_MINOR__ > 6)
  extern void varray_check_failed PROTO ((varray_type, size_t,
  					const char *, int,
  					const char *)) ATTRIBUTE_NORETURN;
--- 163,169 ----
  #define VARRAY_SIZE(VA)	((VA)->num_elements)
  
  /* Check for VARRAY_xxx macros being in bound.  */
! #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;


More information about the Gcc-patches mailing list