OSDN Git Service

gcc/
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 1 Mar 2009 11:26:06 +0000 (11:26 +0000)
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 1 Mar 2009 11:26:06 +0000 (11:26 +0000)
* optc-gen.awk: Assign all remaining fields to help string,
space-separated, for multi-line help in *.opt.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144523 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/optc-gen.awk

index bbd4bcc..b6bcef6 100644 (file)
@@ -1,5 +1,8 @@
 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * optc-gen.awk: Assign all remaining fields to help string,
+       space-separated, for multi-line help in *.opt.
+
        * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
        -Wno-pedantic-ms-format is for MinGW targets only.
 
index 2e22016..6844bd6 100644 (file)
@@ -53,6 +53,8 @@ BEGIN {
                                opts[n_opts]  = $1
                                flags[n_opts] = $2
                                help[n_opts]  = $3
+                               for (i = 4; i <= NF; i++)
+                                       help[n_opts] = help[n_opts] " " $i
                                n_opts++;
                        }
                }