On Sun, Sep 29, 2019 at 06:34:04PM +1000, Michael Chamberlain wrote:
> The last line modified above will print ptr1->..., but I think it should be
> using ptr2 both in the condition and the true alternative.
You're right, fixed thusly, committed as obvious to trunk so far, will
backport to 9.3 too.
2019-09-29 Jakub Jelinek <ja...@redhat.com>
PR bootstrap/90543
* optc-save-gen.awk: Fix up printing string option differences.
--- gcc/optc-save-gen.awk.jj 2019-05-29 11:31:46.073468357 +0200
+++ gcc/optc-save-gen.awk 2019-09-29 12:03:52.338731952 +0200
@@ -332,7 +332,7 @@ for (i = 0; i < n_opt_string; i++) {
print " indent_to, \"\",";
print " \"" name "\",";
print " ptr1->x_" name " ? ptr1->x_" name " : \"(null)\",";
- print " ptr2->x_" name " ? ptr1->x_" name " : \"(null)\");";
+ print " ptr2->x_" name " ? ptr2->x_" name " : \"(null)\");";
print "";
}
Jakub