aboutsummaryrefslogtreecommitdiff
path: root/gcc/gdbhooks.py
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-08-01 14:22:36 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-08-02 09:36:42 -0700
commitda33ad53bcb57943fa671c745938a53f4de89a1b (patch)
tree0cfe2639702b78b6edc8b1eff5e447958a696817 /gcc/gdbhooks.py
parent7ecd6610528a301e349df273b624513ef3827321 (diff)
downloadgcc-da33ad53bcb57943fa671c745938a53f4de89a1b.zip
gcc-da33ad53bcb57943fa671c745938a53f4de89a1b.tar.gz
gcc-da33ad53bcb57943fa671c745938a53f4de89a1b.tar.bz2
genemit: Fix handling of explicit parallels for clobbers [PR116058]
In a define_insn, you could use either an explicit parallel for the insns or genrecog/genemit will add one for you. The problem when genemit is processing the pattern for clobbers (to create the function add_clobbers), genemit hadn't add the implicit parallel yet but at the same time forgot to ignore that there could be an explicit parallel there. This means in some cases (like in the sh backend), add_clobbers and recog had a different idea if there was clobbers on the insn. This fixes the problem by looking through the explicit parallel for the instruction in genemit. Bootstrapped and tested on x86_64-linux-gnu. PR middle-end/116058 gcc/ChangeLog: * genemit.cc (struct clobber_pat): Change pattern to be rtvec. Add code field. (gen_insn): Look through an explicit parallel if there was one. Update store to new clobber_pat. (output_add_clobbers): Update call to gen_exp for the changed clobber_pat. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/gdbhooks.py')
0 files changed, 0 insertions, 0 deletions