aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2004-01-16 07:20:38 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2004-01-16 07:20:38 +0000
commita6dd409400c73308da045537bb6ce4325b5fa3b9 (patch)
tree2bb0b3d31da2f2479b8780b6008c14e696427d17 /gcc/tree.h
parentb0fadda7ece3959434d698de5800c2ee95c215fd (diff)
downloadgcc-a6dd409400c73308da045537bb6ce4325b5fa3b9.zip
gcc-a6dd409400c73308da045537bb6ce4325b5fa3b9.tar.gz
gcc-a6dd409400c73308da045537bb6ce4325b5fa3b9.tar.bz2
Index: ChangeLog
2004-01-15 Geoffrey Keating <geoffk@apple.com> 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.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. Index: cp/ChangeLog 2004-01-15 Geoffrey Keating <geoffk@apple.com> PR pch/13361 * cp/lex.c (handle_pragma_interface): Duplicate string from tree. (handle_pragma_implementation): Likewise. Index: testsuite/ChangeLog 2004-01-15 Geoffrey Keating <geoffk@apple.com> PR pch/13361 * testsuite/g++.dg/pch/wchar-1.C: New. * testsuite/g++.dg/pch/wchar-1.Hs: New. From-SVN: r75961
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 8f4334f..7503fa5 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -700,13 +700,13 @@ struct tree_real_cst GTY(())
/* In a STRING_CST */
#define TREE_STRING_LENGTH(NODE) (STRING_CST_CHECK (NODE)->string.length)
-#define TREE_STRING_POINTER(NODE) (STRING_CST_CHECK (NODE)->string.pointer)
+#define TREE_STRING_POINTER(NODE) (STRING_CST_CHECK (NODE)->string.str)
struct tree_string GTY(())
{
struct tree_common common;
int length;
- const char *pointer;
+ const char str[1];
};
/* In a COMPLEX_CST node. */