diff options
author | Rainer Orth <ro@gcc.gnu.org> | 2004-02-05 21:56:38 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2004-02-05 21:56:38 +0000 |
commit | 839ee4bc570bf56df913d37a4fa3ab9fb6e5956e (patch) | |
tree | fea6753c45927b3c5f949fb0dae2037d0d80e885 /gcc/stmt.c | |
parent | 687d688ee40cff3395a34c7dacab54550f7de606 (diff) | |
download | gcc-839ee4bc570bf56df913d37a4fa3ab9fb6e5956e.zip gcc-839ee4bc570bf56df913d37a4fa3ab9fb6e5956e.tar.gz gcc-839ee4bc570bf56df913d37a4fa3ab9fb6e5956e.tar.bz2 |
re PR target/13750 (Ada bootstrap failure on Tru64 UNIX: b_gnat[1b].o comparison failure)
PR middle-end/13750
Revert:
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.
cp:
PR middle-end/13750
Revert:
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.
testsuite:
PR middle-end/13750
Revert:
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: r77343
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -1102,8 +1102,7 @@ expand_asm (tree string, int vol) if (TREE_CODE (string) == ADDR_EXPR) string = TREE_OPERAND (string, 0); - body = gen_rtx_ASM_INPUT (VOIDmode, - ggc_strdup (TREE_STRING_POINTER (string))); + body = gen_rtx_ASM_INPUT (VOIDmode, TREE_STRING_POINTER (string)); MEM_VOLATILE_P (body) = vol; @@ -1665,7 +1664,7 @@ expand_asm_operands (tree string, tree outputs, tree inputs, body = gen_rtx_ASM_OPERANDS ((noutputs == 0 ? VOIDmode : GET_MODE (output_rtx[0])), - ggc_strdup (TREE_STRING_POINTER (string)), + TREE_STRING_POINTER (string), empty_string, 0, argvec, constraintvec, locus.file, locus.line); @@ -1746,8 +1745,7 @@ expand_asm_operands (tree string, tree outputs, tree inputs, ASM_OPERANDS_INPUT (body, i) = op; ASM_OPERANDS_INPUT_CONSTRAINT_EXP (body, i) - = gen_rtx_ASM_INPUT (TYPE_MODE (type), - ggc_strdup (constraints[i + noutputs])); + = gen_rtx_ASM_INPUT (TYPE_MODE (type), constraints[i + noutputs]); if (decl_conflicts_with_clobbers_p (val, clobbered_regs)) clobber_conflict_found = 1; @@ -1788,7 +1786,7 @@ expand_asm_operands (tree string, tree outputs, tree inputs, if (noutputs == 1 && nclobbers == 0) { - ASM_OPERANDS_OUTPUT_CONSTRAINT (body) = ggc_strdup (constraints[0]); + ASM_OPERANDS_OUTPUT_CONSTRAINT (body) = constraints[0]; emit_insn (gen_rtx_SET (VOIDmode, output_rtx[0], body)); } @@ -1816,9 +1814,8 @@ expand_asm_operands (tree string, tree outputs, tree inputs, output_rtx[i], gen_rtx_ASM_OPERANDS (GET_MODE (output_rtx[i]), - ggc_strdup (TREE_STRING_POINTER (string)), - ggc_strdup (constraints[i]), - i, argvec, constraintvec, + TREE_STRING_POINTER (string), + constraints[i], i, argvec, constraintvec, locus.file, locus.line)); MEM_VOLATILE_P (SET_SRC (XVECEXP (body, 0, i))) = vol; |