diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-10-29 17:55:50 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-10-29 17:55:50 +0200 |
commit | a654d5d013b0d35baa09e1c9344847b864a94cfe (patch) | |
tree | 6088b9177e233528e241aa4261e11c5f0d384c84 /gcc/gimple-ssa-store-merging.c | |
parent | 2bc99a1a94d85532caa3c20bbb58cea6df2ebd6c (diff) | |
download | gcc-a654d5d013b0d35baa09e1c9344847b864a94cfe.zip gcc-a654d5d013b0d35baa09e1c9344847b864a94cfe.tar.gz gcc-a654d5d013b0d35baa09e1c9344847b864a94cfe.tar.bz2 |
re PR tree-optimization/78148 (r241649 causes -fcompare-debug failure on ppc64le)
PR target/78148
* gimple-ssa-store-merging.c
(imm_store_chain_info::output_merged_store): Use build_aligned_type
instead of SET_TYPE_ALIGN on shared integral type.
* gcc.dg/pr78148.c: New test.
From-SVN: r241679
Diffstat (limited to 'gcc/gimple-ssa-store-merging.c')
-rw-r--r-- | gcc/gimple-ssa-store-merging.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-ssa-store-merging.c b/gcc/gimple-ssa-store-merging.c index 5a293d7..97af141 100644 --- a/gcc/gimple-ssa-store-merging.c +++ b/gcc/gimple-ssa-store-merging.c @@ -1130,7 +1130,7 @@ imm_store_chain_info::output_merged_store (tree base, merged_store_group *group) location_t loc = get_location_for_stmts (split_store->orig_stmts); tree int_type = build_nonstandard_integer_type (try_size, UNSIGNED); - SET_TYPE_ALIGN (int_type, align); + int_type = build_aligned_type (int_type, align); tree addr = build_fold_addr_expr (base); tree dest = fold_build2 (MEM_REF, int_type, addr, build_int_cst (offset_type, try_pos)); |