re PR pch/13361 (const wchar_t * strings not stored in pch)
* 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. From-SVN: r87695
Showing
- gcc/ChangeLog 24 additions, 0 deletionsgcc/ChangeLog
- gcc/c-typeck.c 2 additions, 13 deletionsgcc/c-typeck.c
- gcc/config/sh/sh.c 2 additions, 2 deletionsgcc/config/sh/sh.c
- gcc/cp/ChangeLog 6 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/lex.c 2 additions, 2 deletionsgcc/cp/lex.c
- gcc/dwarf2out.c 2 additions, 1 deletiongcc/dwarf2out.c
- gcc/stmt.c 9 additions, 7 deletionsgcc/stmt.c
- gcc/testsuite/ChangeLog 6 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/pch/wchar-1.C 1 addition, 0 deletionsgcc/testsuite/g++.dg/pch/wchar-1.C
- gcc/testsuite/g++.dg/pch/wchar-1.Hs 2 additions, 0 deletionsgcc/testsuite/g++.dg/pch/wchar-1.Hs
- gcc/tree-inline.c 2 additions, 1 deletiongcc/tree-inline.c
- gcc/tree.c 24 additions, 12 deletionsgcc/tree.c
- gcc/tree.def 1 addition, 1 deletiongcc/tree.def
- gcc/tree.h 2 additions, 2 deletionsgcc/tree.h
Loading
Please register or sign in to comment