compute discriminator info for overrides
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 Nov 2018 16:59:59 +0000 (16:59 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 21 Nov 2018 16:59:59 +0000 (16:59 +0000)
commit6bdb055ea850bb5497e52b5b1acbd8dabe93e01f
tree49c8c6ff0551992afd9ebf079e393428236a7c08
parentea6306c7b7cace30efad9582be9d3c50167c91aa
compute discriminator info for overrides

In some cases of overriding or resetting locations, we might retain
discriminator info from earlier locations, when we should take
discriminator information from the overriding location or reset it.

for  gcc/ChangeLog

* final.c (compute_discriminator): Declare.  Renamed from...
(maybe_set_discriminator): ... this.  Set and return a local.
(override_discriminator): New.
(final_scan_insn_1): Set it.
(notice_source_line): Adjust.  Always set discriminator.

From-SVN: r266349
gcc/ChangeLog
gcc/final.c