Don't add DW_AT_low_pc if the CU has no associated code.
authorMark Wielaard <mjw@redhat.com>
Fri, 1 Apr 2011 18:24:52 +0000 (18:24 +0000)
committerMark Wielaard <mark@gcc.gnu.org>
Fri, 1 Apr 2011 18:24:52 +0000 (18:24 +0000)
commitbdb0b0f61c5af3ae2d7dbdeca6089bd6ad79d50e
treeff9f1978d02833ba15573d58f13b01aaf374758e
parent9d70124888e3823e60964b56e9ab6bf07454f68e
Don't add DW_AT_low_pc if the CU has no associated code.

        * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
        high_pc attribute if the CU has no associated code. Only output
        DW_AT_entry_pc for CU if not generating strict dwarf and
        dwarf_version < 4.

From-SVN: r171846
gcc/ChangeLog
gcc/dwarf2out.c