This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/82837] [8 Regression] ICE in output_operand: invalid expression as operand
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 09 Nov 2017 08:54:51 +0000
- Subject: [Bug debug/82837] [8 Regression] ICE in output_operand: invalid expression as operand
- Auto-submitted: auto-generated
- References: <bug-82837-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82837
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Nov 9 08:54:19 2017
New Revision: 254561
URL: https://gcc.gnu.org/viewcvs?rev=254561&root=gcc&view=rev
Log:
PR debug/82837
* dwarf2out.c (const_ok_for_output_1): Reject NEG in addition to NOT.
(mem_loc_descriptor): Handle (const (neg (...))) as (neg (const (...)))
and similarly for not instead of neg.
* gcc.dg/debug/dwarf2/pr82837.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/pr82837.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog