From: Manuel López-Ibáñez Date: Thu, 7 Feb 2008 20:48:24 +0000 (+0000) Subject: re PR other/32754 (The opt?-gen.awk file generators produce incorrect credits) X-Git-Tag: prereleases/gcc-4.2.4-rc1~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bcd17eeafc03cd25a8304e4e567477ebd6938ea;p=thirdparty%2Fgcc.git re PR other/32754 (The opt?-gen.awk file generators produce incorrect credits) 2008-02-07 Manuel Lopez-Ibanez PR other/32754 * doc/options.texi (Options): Replace references to opts.sh with optc-gen.awk. * opts-common.c: Likewise. * optc-gen.awk: Likewise. * opth-gen.awk: Replace reference to opts.sh with opth-gen.awk. From-SVN: r132175 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4517b82ae5e4..ae5adcaebf17 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2008-02-07 Manuel Lopez-Ibanez + + PR other/32754 + * doc/options.texi (Options): Replace references to opts.sh with + optc-gen.awk. + * opts-common.c: Likewise. + * optc-gen.awk: Likewise. + * opth-gen.awk: Replace reference to opts.sh with + opth-gen.awk. + 2008-02-07 Ralf Corsepius * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS, diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi index 05fa05b53230..eeccdec8f77c 100644 --- a/gcc/doc/options.texi +++ b/gcc/doc/options.texi @@ -5,7 +5,7 @@ @node Options @chapter Option specification files @cindex option specification files -@cindex @samp{opts.sh} +@cindex @samp{optc-gen.awk} Most GCC command-line options are described by special option definition files, the names of which conventionally end in diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk index 953fea4f224e..d5fcd9fadbdc 100644 --- a/gcc/optc-gen.awk +++ b/gcc/optc-gen.awk @@ -54,7 +54,7 @@ BEGIN { # Dump that array of options into a C file. END { -print "/* This file is auto-generated by opts.sh. */" +print "/* This file is auto-generated by optc-gen.awk. */" print "" n_headers = split(header_name, headers, " ") for (i = 1; i <= n_headers; i++) diff --git a/gcc/opth-gen.awk b/gcc/opth-gen.awk index 2b3324d23299..f6706a6ef557 100644 --- a/gcc/opth-gen.awk +++ b/gcc/opth-gen.awk @@ -55,7 +55,7 @@ BEGIN { # Dump out an enumeration into a .h file. # Combine the flags of duplicate options. END { -print "/* This file is auto-generated by opts.sh. */" +print "/* This file is auto-generated by opth-gen.awk. */" print "" print "#ifndef OPTIONS_H" print "#define OPTIONS_H" diff --git a/gcc/opts-common.c b/gcc/opts-common.c index e4714f204d02..5a6786d1105a 100644 --- a/gcc/opts-common.c +++ b/gcc/opts-common.c @@ -38,7 +38,7 @@ along with GCC; see the file COPYING3. If not see before having tested "-g". This doesn't match, and as "-gen-decls" is less than "-gstabs", it will become the lower bound of the binary search range, and "-g" will never be seen. To resolve this - issue, opts.sh makes "-gen-decls" point, via the back_chain member, + issue, 'optc-gen.awk' makes "-gen-decls" point, via the back_chain member, to "-g" so that failed searches that end between "-gen-decls" and the lexicographically subsequent switch know to go back and see if "-g" causes a match (which it does in this example).