fix for building with gcc-2.3.3

Richard Earnshaw rearnsha@arm.com
Mon Oct 4 03:34:00 GMT 1999


Jeff,

This test will break if we ever bump __GNUC__ to 3 and drop the minor code 
to zero again.  I bet we have a lot of tests like that lying around.  We 
should only be testing the minor code if __GNUC__ == 2.

Richard.

> *** cppinit.c	1999/09/13 16:58:17	1.19
> --- cppinit.c	1999/10/04 06:17:24
> *************** enum { QUOTE = 0, BRACKET, SYSTEM, AFTER
> *** 212,218 ****
>   
>   /* If gcc is in use (stage2/stage3) we can make these tables initialized
>      data. */
> ! #if defined __GNUC__ && __GNUC__ >= 2
>   /* Table to tell if a character is legal as the second or later character
>      of a C identifier. */
>   U_CHAR is_idchar[256] =
> --- 212,218 ----
>   
>   /* If gcc is in use (stage2/stage3) we can make these tables initialized
>      data. */
> ! #if defined __GNUC__ && __GNUC__ >= 2 && __GNUC_MINOR__ > 8
>   /* Table to tell if a character is legal as the second or later character
>      of a C identifier. */
>   U_CHAR is_idchar[256] =
> 
> 
> 




More information about the Gcc-patches mailing list