OSDN Git Service

Handle static const initializers that contain arithmetic.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Apr 2005 03:58:40 +0000 (03:58 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Apr 2005 03:58:40 +0000 (03:58 +0000)
commit9293d8bd235a4d65eee27e7ec93bb66f0330d32a
treec5aefb5756da66331426d563ee291623154e912c
parent06b27565fde517f9f8ac1f4fc7fc9828c4cc95c2
Handle static const initializers that contain arithmetic.
PR c++/20505
* dwarf2out.c (rtl_for_decl_init): New function.
(rtl_for_decl_location): Extracted from here.
(tree_add_const_value_attribute): Call rtl_for_decl_init and
add_const_value_attribute.  Delete initializer_constant_valid_p call.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97363 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c