]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add DW_AT_const_value as unsigned or int depending on type and value used.
authorMark Wielaard <mjw@redhat.com>
Tue, 15 Apr 2014 17:18:20 +0000 (17:18 +0000)
committerMark Wielaard <mark@gcc.gnu.org>
Tue, 15 Apr 2014 17:18:20 +0000 (17:18 +0000)
commit25dce5c6fb72b00a31245938fb69fd198e1fe31f
treeab4a9c02e9c772a47ed327a4916a64ef0d051155
parent8d3c076f3ddc11df418af3ac54d28a4a2d19ef3b
Add DW_AT_const_value as unsigned or int depending on type and value used.

As the comment in the code already indicated DWARF2 does provide
DW_FORM_sdata/DW_FORM_udata to represent signed/unsigned data.
Enumeration constants wider than HOST_WIDE_INT are already handled
separately. Those constant values that do fit a HOST_WIDE_INT can
be encoded as signed or unsigned depending on type and value for
more efficient encoding.

* dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
as unsigned or int depending on type and value used.

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