diff options
author | Richard Biener <rguenther@suse.de> | 2021-03-04 09:00:55 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-03-04 11:32:34 +0100 |
commit | f232f782e6e4954370ac63ba6e40ad554c0cf942 (patch) | |
tree | 8189e32cd959eaa31005852f42a7db6098309207 /libgcc/libgcov-driver.c | |
parent | 905ce0ca30cb33cddf024b0aebf4ba0b2c86fe77 (diff) | |
download | gcc-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/libgcov-driver.c')
0 files changed, 0 insertions, 0 deletions