]> gcc.gnu.org Git - gcc.git/commitdiff
options: fix cl_target_option_print_diff() with strings
authorEric Biggers <ebiggers@google.com>
Tue, 24 Jan 2023 10:54:41 +0000 (11:54 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 3 May 2023 12:03:10 +0000 (14:03 +0200)
Fix an obvious copy-and-paste error where ptr1 was used instead of ptr2.
This bug caused the dump file produced by -fdump-ipa-inline-details to
not correctly show the difference in target options when a function
could not be inlined due to a target option mismatch.

gcc/ChangeLog:
PR bootstrap/90543
* optc-save-gen.awk: Fix copy-and-paste error.

Signed-off-by: Eric Biggers <ebiggers@google.com>
(cherry picked from commit 9f0cb3368af735e95776769c4f28fa9cbb60eaf8)

gcc/optc-save-gen.awk

index 6033f5198662fda92e372c29c64863390f1ec68c..f87bef3e55428e9354ba7c1192322461b0972d0c 100644 (file)
@@ -634,7 +634,7 @@ for (i = 0; i < n_target_string; i++) {
        print "             indent, \"\",";
        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 "";
 }
 
This page took 0.065142 seconds and 5 git commands to generate.