re PR debug/88635 (Assembler error when building with "-g -O2 -m32")
authorJakub Jelinek <jakub@redhat.com>
Sat, 5 Jan 2019 11:12:35 +0000 (12:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 5 Jan 2019 11:12:35 +0000 (12:12 +0100)
commit4a3e7df872be0bb7198fed02746ff5e96ff1d584
tree97a36f848c0517c5f72bd38b604a7d343cff158b
parent46ca1b43ed79cb5627285bee59f15344df18d8d5
re PR debug/88635 (Assembler error when building with "-g -O2 -m32")

PR debug/88635
* dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
subexpressions of both operands.
(mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
subrtxes are CONSTANT_P.
* config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
2018-11-09 changes.

* gcc.dg/debug/dwarf2/pr88635.c: New test.

From-SVN: r267594
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/pr88635.c [new file with mode: 0644]