aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-03-04 09:00:55 +0100
committerRichard Biener <rguenther@suse.de>2021-03-04 11:32:34 +0100
commitf232f782e6e4954370ac63ba6e40ad554c0cf942 (patch)
tree8189e32cd959eaa31005852f42a7db6098309207 /libgcc
parent905ce0ca30cb33cddf024b0aebf4ba0b2c86fe77 (diff)
downloadgcc-f232f782e6e4954370ac63ba6e40ad554c0cf942.zip
gcc-f232f782e6e4954370ac63ba6e40ad554c0cf942.tar.gz
gcc-f232f782e6e4954370ac63ba6e40ad554c0cf942.tar.bz2
middle-end/97855 - avoid recursing into pp_printf
When diagnostic messages use pretty-printer formats like %D or %E the pp_printf invocation can end up in tree pretty-printers which then have to avoid using pp_printf themselves since this function is not re-entrant. The following removes all pp_printf uses from tree-pretty-print.c fixing the observed malformed diagnostics. It also poisons the identifier so new uses are less likely to creep in. 2021-03-04 Richard Biener <rguenther@suse.de> PR middle-end/97855 * tree-pretty-print.c: Poison pp_printf. (dump_decl_name): Avoid use of pp_printf. (dump_block_node): Likewise. (dump_generic_node): Likewise.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions