This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/82837] [8 Regression] ICE in output_operand: invalid expression as operand


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]