This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Fwd: More cpplib Work]


	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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]