This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/67304] Allow front-ends to share command-line options with different behaviours
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 21 Aug 2015 11:13:29 +0000
- Subject: [Bug other/67304] Allow front-ends to share command-line options with different behaviours
- Auto-submitted: auto-generated
- References: <bug-67304-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67304
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Fri, 21 Aug 2015, ibuclaw at gdcproject dot org wrote:
> -D generate documentation
The driver needs to know what's an option and what's an option argument,
so that it can identify input files and know what front end or front ends
to run. How would you expect it to distinguish your front end's -D (an
option on its own) from the C "-D foo" (option with separate argument)?
Or are you only interested in these options for a language-specific driver
program, not with the generic "gcc" driver?