Constant fold view increment expressions
authorAlan Modra <amodra@gmail.com>
Tue, 8 Mar 2022 12:18:51 +0000 (22:48 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 9 Mar 2022 05:20:34 +0000 (15:50 +1030)
commitfb0e49d8e05e61ca2af9b5f60b01ad5fb6d274ff
treebe87267c5f39fc737768b36ecbe68d78351ca2d2
parent4afc8894393b31dae6845ef1f6e4cddf9ef5b165
Constant fold view increment expressions

The idea here is to replace expressions like v + 1 + 1 + 1 with v + 3.

* dwarf2dbg.c (set_or_check_view): Remove useless assertion.
Resolve multiple view increments.
* testsuite/gas/elf/dwarf2-18.d: Don't xfail mep.
gas/dwarf2dbg.c
gas/testsuite/gas/elf/dwarf2-18.d