patch for -Wno-long-long and early GNAT compilers

Zack Weinberg zack@codesourcery.com
Tue Mar 19 10:58:00 GMT 2002


On Tue, Mar 19, 2002 at 12:59:12PM -0500, Richard Kenner wrote:
>     What do you think of this patch?  
> 
> I understand the Makefile change, but not the rest.

The raise.c changes work around two separate problems.  2.95 and later
provide <stdbool.h>; if ADAC is 2.8.1 but CC is 2.95, configure will
record stdbool.h as available, and system.h will try to include it.
Since 2.8.1 didn't have it, the compile fails.

When raise.c is compiled by 2.8.1, it refers to __dummy.  That symbol
was removed from libgcc.a in 3.0, so if ADAC is 2.8.1 and CC is 3.0,
unless we provide a definition, the link will fail.

Both these changes are conservative (err in the direction of assuming
some feature is not present) so they should be safe.

The install.texi change just adds "and the matching @file{cc1}" right
after "@file{gnat1}"; this is not obvious because the paragraph got
re-wrapped.

zw



More information about the Gcc mailing list