This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: command line options that start -b or -V
- From: Devang Patel <dpatel at apple dot com>
- To: Geoffrey Keating <geoffk at apple dot com>
- Cc: Devang Patel <dpatel at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 11 Dec 2002 23:03:45 -0800
- Subject: Re: PATCH: command line options that start -b or -V
On Wednesday, December 11, 2002, at 10:49 PM, Geoffrey Keating wrote:
On Wednesday, December 11, 2002, at 08:04 PM, Devang Patel wrote:
[ reference : http://gcc.gnu.org/ml/gcc-patches/2002-10/msg01963.html]
2002-12-11 Devang Patel <dpatel@apple.com>
* gcc.c (target_special_option): New macro.
(process_command): Add new check using target_special_option
macro.
* config/darwin.h: Define target_special_option
Bootstrapped on powerpc-apple-darwin. Running tests.
OK to commit to mainline if everything goes OK?
You can't add target-specific code before the -b option is executed.
Anything you do must either not be target-specific or happen after -b.
hmm... but we need to skip target specific options like -bundle while
processing -b.
What if I move target_special_option macro from config/darwin.h in to
gcc.c ?
any other suggestion ?
Thanks,
-Devang