This is the mail archive of the
mailing list for the GCC project.
Re: 3.1 branch ada bootstrap fails
- From: Zack Weinberg <zack at codesourcery dot com>
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: gcc at gcc dot gnu dot org, gbsadler1 at lcisp dot com
- Date: Fri, 3 May 2002 10:32:34 -0700
- Subject: Re: 3.1 branch ada bootstrap fails
- References: <200205031709.g43H9lM8009560@hiauly1.hia.nrc.ca>
On Fri, May 03, 2002 at 01:09:47PM -0400, John David Anglin wrote:
> > 2002-05-02 John David Anglin <email@example.com>
> > * Makefile.in (ALL_ADAFLAGS, MOST_ADAFLAGS): Add CFLAGS to defines.
> I don't think that the patch is the cause of the problem:
> gcc -c -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wt
> raditional -pedantic -Wno-long-long -mdisable-indexing -W -Wall -gnatpg -gnata
> -I- -I. -I../../../gcc/gcc/ada ../../../gcc/gcc/ada/ada.ads
> does not cause an error in my builds and CFLAGS has always been used in
> compiling ada files, except for a couple of days.
However, -pedantic -Wno-long-long are not supposed to be applied to
front ends other than C. There is logic in ada/Makefile.in intended
to strip them:
# This is the variable actually used when we compile.
LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS) \
The sed needs another operation, -e 's/-Wno-long-long//g', but that
isn't the immediate problem. Since you've got all three of -pedantic
-Wtraditional -Wno-long-long on your command line, this is not working
at all. Up above, we have
ALL_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(ADAFLAGS)
MOST_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(SOME_ADAFLAGS)
Perhaps this should be $(LOOSE_CFLAGS) $(ADA_CFLAGS) ?