]> git.ipfire.org Git - thirdparty/gcc.git/commit
c-pretty-print.cc (pp_c_tree_decl_identifier): Strip private name encoding, PR118303
authorHans-Peter Nilsson <hp@bitrange.com>
Mon, 6 Jan 2025 07:44:04 +0000 (08:44 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Sun, 12 Jan 2025 07:01:59 +0000 (08:01 +0100)
commit851e188c2abf935bb43a7e7ce2ac2e02c6a78ba8
tree64b005e253a311f13c343ac70575f5a23b3c3cdf
parentc1729df6ec1eff4815a9cdd71392691ce21da028
c-pretty-print.cc (pp_c_tree_decl_identifier): Strip private name encoding, PR118303

This is a part of PR118303.  It fixes
FAIL: gcc.dg/analyzer/CVE-2005-1689-minimal.c (test for excess errors)
FAIL: gcc.dg/analyzer/CVE-2005-1689-minimal.c inbuf.data (test for warnings, line 62)
for targets where the parameter on that line is subject to
TARGET_CALLEE_COPIES being true.

c-family:
PR middle-end/118303
* c-pretty-print.cc (c_pretty_printer::primary_expression) <SSA_NAME>:
Call primary_expression for all SSA_NAME_VAR nodes and instead move the
DECL_ARTIFICIAL private name stripping to...
(pp_c_tree_decl_identifier): ...here.
gcc/c-family/c-pretty-print.cc