mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
options: fix cl_target_option_print_diff() with strings
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 9f0cb3368a)
This commit is contained in:
committed by
Jakub Jelinek
parent
04cf6b57c7
commit
e205cd507e
@@ -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 "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user