This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.1 branch ada bootstrap fails


On Fri, May 03, 2002 at 01:09:47PM -0400, John David Anglin wrote:
> > 2002-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
> > 
> >	* 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) \
	$(XCFLAGS)

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) ?

zw



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]