debug: fix switch lowering debug info
authorTom de Vries <tdevries@suse.de>
Fri, 5 Feb 2021 09:36:38 +0000 (10:36 +0100)
committerMartin Liska <mliska@suse.cz>
Fri, 5 Feb 2021 12:26:00 +0000 (13:26 +0100)
commit4ede02a5f2af1205434f0e05aaaeff762b24e329
tree5bf9ac38d50cdc113b8c765ced6e497778b6d90f
parent37876976b0511ec96741f638f160874f2added0e
debug: fix switch lowering debug info

gcc/ChangeLog:

PR debug/98656
* tree-switch-conversion.c (jump_table_cluster::emit): Add loc
argument.
(bit_test_cluster::emit): Reuse location_t for newly created
gswitch statement.
(switch_decision_tree::try_switch_expansion): Preserve
location_t.
* tree-switch-conversion.h: Change function signatures.
gcc/tree-switch-conversion.c
gcc/tree-switch-conversion.h