diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2013-06-28 09:57:43 -0700 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2013-06-28 09:57:43 -0700 |
commit | 7fb75753fa7e7c54af3b5e0aea65d8051feac55d (patch) | |
tree | 568d89cbf5521cbb882c33a3a42fb332ff2e49b8 /gcc/tree-sra.c | |
parent | db2127098137dea6c246041e0d763a57a174fa3c (diff) | |
parent | 2814409c2f46b5f71706f08358f395dddc9d8a81 (diff) | |
download | gcc-7fb75753fa7e7c54af3b5e0aea65d8051feac55d.tar.gz |
Merge remote-tracking branch 'origin/gomp-4_0-branch' into cilk-in-gomp
Conflicts:
gcc/Makefile.in
gcc/c-family/c-common.h
gcc/c/c-parser.c
gcc/cp/Make-lang.in
gcc/cp/cp-tree.h
gcc/gimple.h
gcc/omp-low.c
gcc/testsuite/g++.dg/cilk-plus/cilk-plus.exp
gcc/testsuite/gcc.dg/cilk-plus/cilk-plus.exp
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r-- | gcc/tree-sra.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c index c430c54bb7c..7e950aeecdf 100644 --- a/gcc/tree-sra.c +++ b/gcc/tree-sra.c @@ -2998,23 +2998,6 @@ get_repl_default_def_ssa_name (struct access *racc) return get_or_create_ssa_default_def (cfun, racc->replacement_decl); } -/* Return true if REF has a COMPONENT_REF with a bit-field field declaration - somewhere in it. */ - -static inline bool -contains_bitfld_comp_ref_p (const_tree ref) -{ - while (handled_component_p (ref)) - { - if (TREE_CODE (ref) == COMPONENT_REF - && DECL_BIT_FIELD (TREE_OPERAND (ref, 1))) - return true; - ref = TREE_OPERAND (ref, 0); - } - - return false; -} - /* Return true if REF has an VIEW_CONVERT_EXPR or a COMPONENT_REF with a bit-field field declaration somewhere in it. */ @@ -3110,7 +3093,7 @@ sra_modify_assign (gimple *stmt, gimple_stmt_iterator *gsi) ??? This should move to fold_stmt which we simply should call after building a VIEW_CONVERT_EXPR here. */ if (AGGREGATE_TYPE_P (TREE_TYPE (lhs)) - && !contains_bitfld_comp_ref_p (lhs)) + && !contains_bitfld_component_ref_p (lhs)) { lhs = build_ref_for_model (loc, lhs, 0, racc, gsi, false); gimple_assign_set_lhs (*stmt, lhs); |