This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] new driver level option -wrapper for developer convenience.
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Seongbae Park <seongbae dot park at gmail dot com>
- Cc: Diego Novillo <dnovillo at google dot com>, Tom Tromey <tromey at redhat dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, neil at daikokuya dot co dot uk
- Date: Thu, 6 Jan 2011 13:19:31 +0100 (CET)
- Subject: Re: [PATCH] new driver level option -wrapper for developer convenience.
- References: <ab3a61990804041113p59677d4dy4aff78626ea73ed8@mail.gmail.com> <ab3a61990804041129k6a0a4581g2f50e191273a5f1f@mail.gmail.com> <m38wztw84e.fsf@fleche.redhat.com> <ab3a61990804291544m79eb108as4c9a6335a8932a7d@mail.gmail.com> <4818859C.40409@google.com> <ab3a61990804301017y61635295ta4494c9ba198c1f1@mail.gmail.com>
Given how long ago this was, I cooked up a patch. Anyone wants to
review/comment?
On Wed, 30 Apr 2008, Seongbae Park wrote:
> 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
>
> * gcc.c (wrapper_string): New variable.
> (insert_wrapper): New function.
> (execute): New option -wrapper.
> * doc/invoke.texi (Overall Options): New driver option -wrapper.
>
> And the previous attachment didn't include invoke.texi change (which was
> included in the previous two attachments). I've committed the patch
> (attached) as svn revision 134832.
Index: gcc/doc/invoke.texi
===================================================================
+@item -wrapper
+@opindex wrapper
+Invoke all subcommands under a wrapper program. It takes a single
+comma separated list as an argument, which will be used to invoke
+the wrapper:
How about making this "This option takes..."?
+@smallexample
+gcc -c t.c -wrapper gdb,--args
+@end smallexample
+
+This will invoke all subprograms of gcc under "gdb --args",
+thus cc1 invocation will be "gdb --args cc1 ...".
I believe we should use @samp{gdb --args} and
@samp{gdb --args cc1 @dots{}} in these two cases, and possibly
"the invocation of @command{cc1}", but in any case @command{cc1}.
Gerald
2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
* doc/invoke.texi (Overall Options): Improve wording and markup
of the description of -wrapper.
Index: doc/invoke.texi
===================================================================
--- doc/invoke.texi (revision 168442)
+++ doc/invoke.texi (working copy)
@@ -1360,16 +1360,17 @@
@item -wrapper
@opindex wrapper
-Invoke all subcommands under a wrapper program. It takes a single
-comma separated list as an argument, which will be used to invoke
-the wrapper:
+Invoke all subcommands under a wrapper program. The name of the
+wrapper program and its parameters are passed as a comma separated
+list.
@smallexample
gcc -c t.c -wrapper gdb,--args
@end smallexample
-This will invoke all subprograms of gcc under "gdb --args",
-thus cc1 invocation will be "gdb --args cc1 ...".
+This will invoke all subprograms of @command{gcc} under
+@samp{gdb --args}, thus the invocation of @command{cc1} will be
+@samp{gdb --args cc1 @dots{}}.
@item -fplugin=@var{name}.so
Load the plugin code in file @var{name}.so, assumed to be a