public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5324] options: fix cl_target_option_print_diff() with strings
@ 2023-01-24 10:56 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2023-01-24 10:56 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9f0cb3368af735e95776769c4f28fa9cbb60eaf8

commit r13-5324-g9f0cb3368af735e95776769c4f28fa9cbb60eaf8
Author: Eric Biggers <ebiggers@google.com>
Date:   Tue Jan 24 11:54:41 2023 +0100

    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>

Diff:
---
 gcc/optc-save-gen.awk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/optc-save-gen.awk b/gcc/optc-save-gen.awk
index e91adf7f132..d2cb53c477f 100644
--- a/gcc/optc-save-gen.awk
+++ b/gcc/optc-save-gen.awk
@@ -1013,7 +1013,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 "";
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-24 10:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-24 10:56 [gcc r13-5324] options: fix cl_target_option_print_diff() with strings Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).