Commit 40a1cfba by Ralf Wildenhues Committed by Ralf Wildenhues

optc-gen.awk: Warn if an option flag has multiple different help strings.

gcc/
	* optc-gen.awk: Warn if an option flag has multiple different
	help strings.

From-SVN: r145278
parent 7bd36a9c
2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* optc-gen.awk: Warn if an option flag has multiple different
help strings.
2009-03-30 Sebastian Pop <sebastian.pop@amd.com> 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
* doc/invoke.texi (-floop-interchange, -floop-strip-mine, * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
......
...@@ -149,6 +149,10 @@ for (i = 0; i < n_opts; i++) { ...@@ -149,6 +149,10 @@ for (i = 0; i < n_opts; i++) {
flags[i + 1] = flags[i] " " flags[i + 1]; flags[i + 1] = flags[i] " " flags[i + 1];
if (help[i + 1] == "") if (help[i + 1] == "")
help[i + 1] = help[i] 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++; i++;
back_chain[i] = "N_OPTS"; back_chain[i] = "N_OPTS";
indices[opts[i]] = j; indices[opts[i]] = j;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment