OSDN Git Service

* tree-inline.c (copy_tree_r): Don't duplicate constants, they're
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Sep 2004 05:50:52 +0000 (05:50 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Sep 2004 05:50:52 +0000 (05:50 +0000)
commitd54063007927c5b583fdf28fb5650975d6cdf76e
tree5b612839071d1427646211852251d0557c61a619
parent28912aaf63a337a40b8da3dd97e790c0c4aac44a
* tree-inline.c (copy_tree_r): Don't duplicate constants, they're
shared anyway.

PR pch/13361
* c-typeck.c (constructor_asmspec): Delete.
(struct initializer_stack): Delete field 'asmspec'.
(start_init): Delete saving of asmspec.
(finish_init): Don't update constructor_asmspec.
* dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
* stmt.c (expand_asm): Duplicate strings from tree.
(expand_asm_operands): Likewise.
* tree.c (tree_size): Update computation of size of STRING_CST.
(make_node): Don't make STRING_CST nodes.
(build_string): Allocate string with tree node.
(tree_code_size): Clean up assertions, don't allow requests
for "the size of a STRING_CST".
* tree.def (STRING_CST): Update comment.
* tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
(tree_string): Place contents of string in tree node.
* config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
from tree.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87695 138bc75d-0d04-0410-961f-82ee72b054a4
14 files changed:
gcc/ChangeLog
gcc/c-typeck.c
gcc/config/sh/sh.c
gcc/cp/ChangeLog
gcc/cp/lex.c
gcc/dwarf2out.c
gcc/stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pch/wchar-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/pch/wchar-1.Hs [new file with mode: 0644]
gcc/tree-inline.c
gcc/tree.c
gcc/tree.def
gcc/tree.h