From: rwild Date: Mon, 30 Mar 2009 05:55:57 +0000 (+0000) Subject: gcc/ X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0863a8f446cdaaa7c9b39b216c278f739a1920c8;p=thirdparty%2Fgcc.git gcc/ * optc-gen.awk: Warn if an option flag has multiple different help strings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145278 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f791327a7dfc..9cd947befffb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-03-30 Ralf Wildenhues + + * optc-gen.awk: Warn if an option flag has multiple different + help strings. + 2009-03-30 Sebastian Pop * doc/invoke.texi (-floop-interchange, -floop-strip-mine, diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk index 3e644a571df9..2117150f4d1e 100644 --- a/gcc/optc-gen.awk +++ b/gcc/optc-gen.awk @@ -149,6 +149,10 @@ for (i = 0; i < n_opts; i++) { flags[i + 1] = flags[i] " " flags[i + 1]; if (help[i + 1] == "") help[i + 1] = help[i] + else if (help[i] != "" && help[i + 1] != help[i]) + print "warning: multiple different help strings for " \ + opts[i] ":\n\t" help[i] "\n\t" help[i + 1] \ + | "cat 1>&2" i++; back_chain[i] = "N_OPTS"; indices[opts[i]] = j;