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>
Tue, 24 Jan 2023 10:54:41 +0000 (11:54 +0100)
commit9f0cb3368af735e95776769c4f28fa9cbb60eaf8
treea68542f2df58b7b4917de30dc9d393e975aed5d3
parentb84e21115700523b4d0ac44275443f7b9c670344
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>
gcc/optc-save-gen.awk