[Bug debug/88635] [8 Regression] Assembler error when building with "-g -O2 -m32"

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 5 11:13:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88635

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Jan  5 11:12:35 2019
New Revision: 267594

URL: https://gcc.gnu.org/viewcvs?rev=267594&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/gcc.dg/debug/dwarf2/pr88635.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list