[Bug debug/41353] VTA missed-debug issues

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 2 15:02:00 GMT 2009



------- Comment #13 from jakub at gcc dot gnu dot org  2009-10-02 15:01 -------
Subject: Bug 41353

Author: jakub
Date: Fri Oct  2 15:01:22 2009
New Revision: 152403

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152403
Log:
        PR debug/41404
        PR debug/41353
        * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
        CONST_STRING if STRING_CST contains embedded '\0's or doesn't end with
        '\0'.
        (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
        vars use DECL_RTL with resetting it back to NULL afterwards.
        * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
        rtx_equal_p instead of asserting it is a SYMBOL_REF.
        (value_format): For dw_val_class_addr only use DW_FORM_addr if
        the attribute type allows it, otherwise use DW_FORM_dataN.
        (mem_loc_descriptor): Handle CONST_STRING.
        (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
        Handle MEM with CONST_STRING address using add_AT_string.
        (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
        CONST_STRING for const arrays initialized with a string literal.
        (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
        (dwarf2out_finish): Call resolve_addr.

        * gcc.dg/guality/pr41404-1.c: New test.
        * gcc.dg/guality/pr41353-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/guality/pr41353-2.c
    trunk/gcc/testsuite/gcc.dg/guality/pr41404-1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cfgexpand.c
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41353



More information about the Gcc-bugs mailing list