From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2153) id 634173858D1E; Tue, 24 Jan 2023 10:56:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 634173858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674557762; bh=DQat/XEQdPNhgqo4oUPH6JPEQQHe5p47QOE9k2XOYVA=; h=From:To:Subject:Date:From; b=epYsuEEdH4r3PiA1q0VJ2ul3vI7FFG2XuPzvPm8+JVZSzBbg9zOts6mfdzTMgGR8y 7lez+wIE2u/tV2X5YfTDgy8TATT6+w4XWYo1OryzWICfXgQnTJ/VKeegHhFsQn6acZ HJcF5eCZ4zb9Y9tS9eDAhr1aO/NDEk51IF/eQ0HI= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jakub Jelinek To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-5324] options: fix cl_target_option_print_diff() with strings X-Act-Checkin: gcc X-Git-Author: Eric Biggers X-Git-Refname: refs/heads/master X-Git-Oldrev: b84e21115700523b4d0ac44275443f7b9c670344 X-Git-Newrev: 9f0cb3368af735e95776769c4f28fa9cbb60eaf8 Message-Id: <20230124105602.634173858D1E@sourceware.org> Date: Tue, 24 Jan 2023 10:56:02 +0000 (GMT) List-Id: https://gcc.gnu.org/g:9f0cb3368af735e95776769c4f28fa9cbb60eaf8 commit r13-5324-g9f0cb3368af735e95776769c4f28fa9cbb60eaf8 Author: Eric Biggers 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 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 ""; }