[Bug debug/40659] A simple struct member offset doesn't need a full dwarf location expression

mark at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jul 8 18:08:00 GMT 2009



------- Comment #1 from mark at gcc dot gnu dot org  2009-07-08 18:08 -------
Subject: Bug 40659

Author: mark
Date: Wed Jul  8 18:07:47 2009
New Revision: 149377

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149377
Log:
2009-07-08  Mark Wielaard  <mjw@redhat.com>

        PR debug/40659
        * dwarf2out.c (add_data_member_location_attribute): When we have
        only a constant offset don't emit a new location description using
        DW_OP_plus_uconst, but just add the constant with add_AT_int, when
        dwarf_version > 2.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c


-- 


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



More information about the Gcc-bugs mailing list