This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Fwd: More cpplib Work]
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: [Fwd: More cpplib Work]
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Thu, 18 Jun 1998 15:03:53 -0700
- cc: Dave Brolley <brolley at cygnus dot com>, law at cygnus dot com, egcs-patches at cygnus dot com
Yes, we dreadfully need an OR-type syntax.
I agree. This would also be useful for the case where some ports have
multiple names for the same option. One must now duplicate specs code to
handle both options, but with an OR-type syntax, you could do this
without duplication.
* gcc.c (handle_braces): Recognize | between options as an or.
The patch looks good to me.
+ %{S|P:X} substitutes X if either -S or -P was given to CC. This maybe
maybe->may be
Jim