]> gcc.gnu.org Git - gcc.git/commit
bb-reorder: Fix assertion
authorJakub Jelinek <jakub@redhat.com>
Fri, 8 Mar 2024 11:49:43 +0000 (12:49 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 8 Mar 2024 11:49:43 +0000 (12:49 +0100)
commitd6bcc2e257026b383ac3e6ccdee13f7763b38621
tree4471ad878787243507b74a57cddb35d734d85f27
parenta307a26e8b392ba65edfdae15489556b7701db81
bb-reorder: Fix assertion

When touching bb-reorder yesterday, I've noticed the checking assert
doesn't actually check what it meant to.
Because asm_noperands returns >= 0 for inline asm patterns (in that case
number of input+output+label operands, so asm goto has at least one)
and -1 if it isn't inline asm.

The following patch fixes the assertion to actually check that it is
asm goto.

2024-03-08  Jakub Jelinek  <jakub@redhat.com>

* bb-reorder.cc (fix_up_fall_thru_edges): Fix up checking assert,
asm_noperands < 0 means it is not asm goto too.
gcc/bb-reorder.cc
This page took 0.059078 seconds and 5 git commands to generate.