From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28744 invoked by alias); 15 Apr 2002 19:56:01 -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 28730 invoked by uid 71); 15 Apr 2002 19:56:01 -0000 Date: Mon, 15 Apr 2002 12:56:00 -0000 Message-ID: <20020415195601.28729.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Neil Booth Subject: Re: preprocessor/6310: gcc -MF vs. depcomp Reply-To: Neil Booth X-SW-Source: 2002-04/txt/msg00793.txt.bz2 List-Id: The following reply was made to PR preprocessor/6310; it has been noted by GNATS. From: Neil Booth To: corsepiu@faw.uni-ulm.de Cc: gcc-gnats@gcc.gnu.org, schwab@suse.de Subject: Re: preprocessor/6310: gcc -MF vs. depcomp Date: Mon, 15 Apr 2002 20:47:33 +0100 corsepiu@faw.uni-ulm.de wrote:- > Which now causes warning of this kind: > gcc: unrecognized option `-MF' Thanks. This was fixed recently by Andreas: 2002-03-09 Andreas Schwab * gcc.c (validate_all_switches): Also handle `%W{...}'. but it wasn't put in 3.0 for some reason. I've verified it fixes the problem, so I'll apply it now. Patch follows. Neil. Index: gcc.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/gcc.c,v retrieving revision 1.205.2.27 diff -u -p -r1.205.2.27 gcc.c --- gcc.c 24 Mar 2002 13:13:01 -0000 1.205.2.27 +++ gcc.c 15 Apr 2002 19:45:39 -0000 @@ -6208,7 +6208,7 @@ validate_all_switches () { p = comp->spec; while ((c = *p++)) - if (c == '%' && *p == '{') + if (c == '%' && (*p == '{' || (*p == 'W' && *++p == '{'))) /* We have a switch spec. */ validate_switches (p + 1); } @@ -6218,14 +6218,14 @@ validate_all_switches () { p = *(spec->ptr_spec); while ((c = *p++)) - if (c == '%' && *p == '{') + if (c == '%' && (*p == '{' || (*p == 'W' && *++p == '{'))) /* We have a switch spec. */ validate_switches (p + 1); } p = link_command_spec; while ((c = *p++)) - if (c == '%' && *p == '{') + if (c == '%' && (*p == '{' || (*p == 'W' && *++p == '{'))) /* We have a switch spec. */ validate_switches (p + 1); }