aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/parse.cc
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2023-05-25 22:08:24 +0000
committerAndrew Pinski <apinski@marvell.com>2023-05-26 15:01:46 +0000
commit497e8e2420e3fc0209ae240f61050d0257023d6b (patch)
tree7a296869a3afd409ee78305d1744e44591606bf2 /gcc/fortran/parse.cc
parent1a1abec1d618cde709c585fcce89330bb33b07ac (diff)
downloadgcc-497e8e2420e3fc0209ae240f61050d0257023d6b.zip
gcc-497e8e2420e3fc0209ae240f61050d0257023d6b.tar.gz
gcc-497e8e2420e3fc0209ae240f61050d0257023d6b.tar.bz2
genmatch: Emit debug message right before "return x" instead of earlier
This is based on the review of https://gcc.gnu.org/pipermail/gcc-patches/2023-May/619342.html . Instead of emitting debug message even if we don't apply a pattern, this fixes the issue by only emitting it if it the pattern finally succeeded. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: * genmatch.cc (emit_debug_printf): New function. (dt_simplify::gen_1): Emit printf into the code before the `return true` or returning the folded result instead of emitting it always.
Diffstat (limited to 'gcc/fortran/parse.cc')
0 files changed, 0 insertions, 0 deletions