aboutsummaryrefslogtreecommitdiff
path: root/gcc/range-op-mixed.h
diff options
context:
space:
mode:
authorLewis Hyatt <lhyatt@gmail.com>2024-12-06 19:01:32 -0500
committerLewis Hyatt <lhyatt@gcc.gnu.org>2024-12-06 19:01:32 -0500
commiteaefc8f322e86ab18cbea55e9c07348933e64317 (patch)
tree4bc7699475f85ee61933d1f5ac167557df60fdfc /gcc/range-op-mixed.h
parent568b3b30218715ff0b2b8f6404fc8bce819d6153 (diff)
downloadgcc-eaefc8f322e86ab18cbea55e9c07348933e64317.zip
gcc-eaefc8f322e86ab18cbea55e9c07348933e64317.tar.gz
gcc-eaefc8f322e86ab18cbea55e9c07348933e64317.tar.bz2
final: Fix call to INSN_LOCATION on a NOTE rtl
This function has a code path that calls INSN_LOCATION on an rtl note. For a note, this returns the note type enum rather than a location, but it runs without complaint even with --enable-checking=rtl because both are stored in the rt_int member of the rtunion. A subsequent commit will add a new rtl format code specifically for locations, in which case attempting to call INSN_LOCATION on a note will trigger an error. Fix it up by handling the case of a note missing a location separately. gcc/ChangeLog: * final.cc (reemit_insn_block_notes): Don't try to call INSN_LOCATION on a NOTE rtl object. Don't call change_scope () for a NOTE missing a location.
Diffstat (limited to 'gcc/range-op-mixed.h')
0 files changed, 0 insertions, 0 deletions