public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Neil Booth <neil@daikokuya.demon.co.uk> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: preprocessor/6310: gcc -MF vs. depcomp Date: Mon, 15 Apr 2002 12:56:00 -0000 [thread overview] Message-ID: <20020415195601.28729.qmail@sources.redhat.com> (raw) The following reply was made to PR preprocessor/6310; it has been noted by GNATS. From: Neil Booth <neil@daikokuya.demon.co.uk> 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 <schwab@suse.de> * 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); }
next reply other threads:[~2002-04-15 19:56 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-04-15 12:56 Neil Booth [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-04-15 12:52 neil 2002-04-15 9:46 corsepiu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020415195601.28729.qmail@sources.redhat.com \ --to=neil@daikokuya.demon.co.uk \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).