From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20213 invoked by alias); 3 Jul 2003 20:17:08 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 20206 invoked from network); 3 Jul 2003 20:17:07 -0000 Received: from unknown (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sources.redhat.com with SMTP; 3 Jul 2003 20:17:07 -0000 Received: from hiauly1.hia.nrc.ca (hiauly1.hia.nrc.ca [127.0.0.1] (may be forged)) by hiauly1.hia.nrc.ca (8.12.9/8.12.9) with ESMTP id h63KH3gL015329; Thu, 3 Jul 2003 16:17:03 -0400 (EDT) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.12.9/8.12.9/Submit) id h63KH2Bd015328; Thu, 3 Jul 2003 16:17:02 -0400 (EDT) Message-Id: <200307032017.h63KH2Bd015328@hiauly1.hia.nrc.ca> Subject: Re: Bootstrap failure compiling ada/misc.c To: dave@hiauly1.hia.nrc.ca (John David Anglin) Date: Thu, 03 Jul 2003 20:17:00 -0000 From: "John David Anglin" Cc: gcc-patches@gcc.gnu.org, neil@daikokuya.co.uk, kraai@alumni.cmu.edu In-Reply-To: from "John David Anglin" at Jul 2, 2003 07:50:12 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2003-07/txt/msg00372.txt.bz2 > Neil has committed a patch that makes gnat_argv const. I don't > think this will work, because it produced warnings during the > first stage of the bootstrap > > gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common -DHAVE_CONFIG_H -I. -Iada -I../../gcc/gcc -I../../gcc/gcc/ada -I../../gcc/gcc/config -I../../gcc/gcc/../include ../../gcc/gcc/ada/misc.c -o ada/misc.o > ../../gcc/gcc/ada/misc.c: In function `gnat_handle_option': > ../../gcc/gcc/ada/misc.c:262: warning: assignment of read-only location > ../../gcc/gcc/ada/misc.c:263: warning: passing arg 1 of `strcpy' discards qualifiers from pointer target type > ../../gcc/gcc/ada/misc.c: In function `gnat_init_options': > ../../gcc/gcc/ada/misc.c:288: warning: assignment from incompatible pointer type > > but I didn't let the bootstrap proceed far enough to be sure. It causes a failure. > Matt Kraai kraai@alumni.cmu.edu Debian GNU/Linux > > * misc.c (gnat_handle_option, gnat_init_options): Copy > arguments. Can't approve but this worked for me. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)