From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2681 invoked by alias); 16 May 2002 02:36:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 2667 invoked by uid 71); 16 May 2002 02:36:01 -0000 Date: Wed, 15 May 2002 19:36:00 -0000 Message-ID: <20020516023601.2666.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Rainer Orth Subject: Re: ada/6669: Irix6.5 ada bootstrap fail in ada/targparm.adb Reply-To: Rainer Orth X-SW-Source: 2002-05/txt/msg00436.txt.bz2 List-Id: The following reply was made to PR ada/6669; it has been noted by GNATS. From: Rainer Orth To: David.Billinghurst@riotinto.com Cc: gcc-gnats@gcc.gnu.org Subject: Re: ada/6669: Irix6.5 ada bootstrap fail in ada/targparm.adb Date: Thu, 16 May 2002 04:29:55 +0200 (MEST) David.Billinghurst@riotinto.com writes: > gcc -c -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -gnatpg -gnata -I- -I. -I/exd4/billingd/src/gcc/gcc/ada /exd4/billingd/src/gcc/gcc/ada/targparm.adb > as: Error: /var/tmp/cca4KkNE.s, line 5416: value must be -128..255 > .byte 0x80000000 > as: Error: /var/tmp/cca4KkNE.s, line 5417: value must be -128..255 > .byte 0x80000003 > as: Error: /var/tmp/cca4KkNE.s, line 5536: value must be -128..255 > .byte 0x80000000 > as: Error: /var/tmp/cca4KkNE.s, line 5537: value must be -128..255 > .byte 0x80000014 > as: Error: /var/tmp/cca4KkNE.s, line 5656: value must be -128..255 > .byte 0x80000000 > and so on > > The bootstrap compiler was a mips-sgi-irix6.2 build of > gnat-3.13p supplied by rainer orth - see PR ada/6552. This only happens on the mainline, the 3.1 branch is fine. Here's what's going on: targparm.adb is compiled using the .adb.o suffix rule, which uses $(ALL_ADAFLAGS), among others. This variable differs between 3.1 and 3.2: The 3.1 gcc/ada/Makefile has ALL_ADAFLAGS = $(ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) $(ADAFLAGS) ADA_CFLAGS = whereas on the mainline this is ALL_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \ $(ADAFLAGS) CFLAGS = -g ALL_ADA_CFLAGS = $(X_ADA_CFLAGS) $(T_ADA_CFLAGS) $(ADA_CFLAGS) I.e. the mainline adds -g, which breaks assembly. This is obviously a bug in the bootstrap gnat. Unfortunately, due to PR ada/6552 one cannot currently build a complete 3.1 based gnat, so removing -g on the mainline (probably stage1 only) is the only option until this is fixed. Rainer