diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2011-06-29 09:42:42 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2011-06-29 09:42:42 +0000 |
commit | 73f6eabc3ae4de22a83135f03f8c8688623661a1 (patch) | |
tree | 959a91c1ec3ac4f1dfeb6120dc9880fdef666220 /gcc/tree-ssa-ccp.c | |
parent | 0e8377f2d813a56813022c8aad6b3ba7f3a3edbc (diff) | |
download | gcc-73f6eabc3ae4de22a83135f03f8c8688623661a1.zip gcc-73f6eabc3ae4de22a83135f03f8c8688623661a1.tar.gz gcc-73f6eabc3ae4de22a83135f03f8c8688623661a1.tar.bz2 |
re PR middle-end/49545 (New C++ test failures)
gcc/
PR tree-optimization/49545
* builtins.c (get_object_alignment_1): Update function comment.
Do not use DECL_ALIGN for functions, but test
TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
* fold-const.c (get_pointer_modulus_and_residue): Don't check
for functions here.
* tree-ssa-ccp.c (get_value_from_alignment): Likewise.
gcc/testsuite/
* gcc.dg/torture/pr49169.c: Restrict to ARM and MIPS targets.
From-SVN: r175627
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 78724de..94a09e0 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -520,10 +520,6 @@ get_value_from_alignment (tree expr) val = bit_value_binop (PLUS_EXPR, TREE_TYPE (expr), TREE_OPERAND (base, 0), TREE_OPERAND (base, 1)); else if (base - /* ??? While function decls have DECL_ALIGN their addresses - may encode extra information in the lower bits on some - targets (PR47239). Simply punt for function decls for now. */ - && TREE_CODE (base) != FUNCTION_DECL && ((align = get_object_alignment (base, BIGGEST_ALIGNMENT)) > BITS_PER_UNIT)) { |