diff options
author | Paul Brook <paul@codesourcery.com> | 2006-03-02 19:38:43 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2006-03-02 19:38:43 +0000 |
commit | fc448c490975feae3e2c3fadb6e1231fd84d9461 (patch) | |
tree | b7b3d985d2c3a4638fd66a298c98b23f50d02fa9 /gcc/fold-const.c | |
parent | b7b4b172d05b06a4854245eda25a42d067a1ce04 (diff) |
Merge from gcc-4_1-branch revision 111560 (gcc-4_1_0-release)
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/csl/sourcerygxx-4_1@111645 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 86287931ca0..e40019523d6 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -10309,7 +10309,7 @@ fold_checksum_tree (tree expr, struct md5_ctx *ctx, htab_t ht) { void **slot; enum tree_code code; - char buf[sizeof (struct tree_function_decl)]; + struct tree_function_decl buf; int i, len; recursive_label: @@ -10328,8 +10328,8 @@ recursive_label: && DECL_ASSEMBLER_NAME_SET_P (expr)) { /* Allow DECL_ASSEMBLER_NAME to be modified. */ - memcpy (buf, expr, tree_size (expr)); - expr = (tree) buf; + memcpy ((char *) &buf, expr, tree_size (expr)); + expr = (tree) &buf; SET_DECL_ASSEMBLER_NAME (expr, NULL); } else if (TREE_CODE_CLASS (code) == tcc_type @@ -10338,8 +10338,8 @@ recursive_label: || TYPE_CONTAINS_PLACEHOLDER_INTERNAL (expr))) { /* Allow these fields to be modified. */ - memcpy (buf, expr, tree_size (expr)); - expr = (tree) buf; + memcpy ((char *) &buf, expr, tree_size (expr)); + expr = (tree) &buf; TYPE_CONTAINS_PLACEHOLDER_INTERNAL (expr) = 0; TYPE_POINTER_TO (expr) = NULL; TYPE_REFERENCE_TO (expr) = NULL; |