This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[basic-improvements] Small bugfix: -pipe
- From: Zack Weinberg <zack at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 3 Oct 2002 22:25:29 -0700
- Subject: [basic-improvements] Small bugfix: -pipe
Under some conditions, the driver on the basic-improvements branch
will spit out "unrecognized option: -pipe". I have been unable to
reproduce this on my system, but I've got a correspondent who can,
and who reports that this patch does fix the problem. Also, I can
see how this situation could theoretically arise. I'll do a boot-
strap just to be sure, then check this in as an obvious bugfix.
zw
* gcc.c (process_command): Set .validated for -pipe. Correct
grammar in comment.
===================================================================
Index: gcc.c
--- gcc.c 3 Oct 2002 06:21:22 -0000 1.336.4.6
+++ gcc.c 4 Oct 2002 05:24:47 -0000
@@ -4060,10 +4060,11 @@ warranty; not even for MERCHANTABILITY o
switches[n_switches].live_cond = SWITCH_OK;
switches[n_switches].validated = 0;
switches[n_switches].ordering = 0;
- /* These are always valid, since gcc.c itself understands it. */
+ /* These are always valid, since gcc.c itself understands them. */
if (!strcmp (p, "save-temps")
|| !strcmp (p, "static-libgcc")
- || !strcmp (p, "shared-libgcc"))
+ || !strcmp (p, "shared-libgcc")
+ || !strcmp (p, "pipe"))
switches[n_switches].validated = 1;
else
{