diff options
author | Tomas Bily <tomby@gcc.gnu.org> | 2008-04-23 14:50:17 +0200 |
---|---|---|
committer | Tomas Bily <tomby@gcc.gnu.org> | 2008-04-23 14:50:17 +0200 |
commit | a134e5f3702af8504e2744bebd3a034914ab7d40 (patch) | |
tree | fc970abad33f221b6b9b0e13eae65c93c720eb12 /gcc/builtins.c | |
parent | e24703834e9d89319aaf494cd44f19ac82e30651 (diff) | |
download | gcc-a134e5f3702af8504e2744bebd3a034914ab7d40.zip gcc-a134e5f3702af8504e2744bebd3a034914ab7d40.tar.gz gcc-a134e5f3702af8504e2744bebd3a034914ab7d40.tar.bz2 |
tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as unreachable case.
* tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
unreachable case.
* tree-vrp.c (extract_range_from_unary_expr): Removed unused
NON_LVALUE_EXPR.
* tree-ssa-threadedge.c (simplify_control_stmt_condition):
Likewise.
* tree-ssa-structalias.c (get_constraint_for): Likewise.
* tree-inline.c (estimate_num_insns_1): Likewise.
* varasm.c (const_hash_1, compare_constant, copy_constant)
(compute_reloc_for_constant, output_addressed_constants):
Likewise.
* emit-rtl.c (component_ref_for_mem_expr)
(set_mem_attributes_minus_bitpos): Likewise.
* expr.c (highest_pow2_factor, expand_expr_real_1, )
(is_aligning_offset): Likewise.
* dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info):
Likewise.
* tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
* dojump.c (do_jump): Likewise.
* builtins.c (get_pointer_alignment, get_memory_rtx)
(integer_valued_real_p, fold_builtin_next_arg): Likewise.
* tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
From-SVN: r134591
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 761a658..06ecb24 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -281,7 +281,6 @@ get_pointer_alignment (tree exp, unsigned int max_align) { case NOP_EXPR: case CONVERT_EXPR: - case NON_LVALUE_EXPR: exp = TREE_OPERAND (exp, 0); if (! POINTER_TYPE_P (TREE_TYPE (exp))) return align; @@ -1073,8 +1072,7 @@ get_memory_rtx (tree exp, tree len) /* Get an expression we can use to find the attributes to assign to MEM. If it is an ADDR_EXPR, use the operand. Otherwise, dereference it if we can. First remove any nops. */ - while ((TREE_CODE (exp) == NOP_EXPR || TREE_CODE (exp) == CONVERT_EXPR - || TREE_CODE (exp) == NON_LVALUE_EXPR) + while ((TREE_CODE (exp) == NOP_EXPR || TREE_CODE (exp) == CONVERT_EXPR) && POINTER_TYPE_P (TREE_TYPE (TREE_OPERAND (exp, 0)))) exp = TREE_OPERAND (exp, 0); @@ -1106,7 +1104,6 @@ get_memory_rtx (tree exp, tree len) while (TREE_CODE (inner) == ARRAY_REF || TREE_CODE (inner) == NOP_EXPR || TREE_CODE (inner) == CONVERT_EXPR - || TREE_CODE (inner) == NON_LVALUE_EXPR || TREE_CODE (inner) == VIEW_CONVERT_EXPR || TREE_CODE (inner) == SAVE_EXPR) inner = TREE_OPERAND (inner, 0); @@ -7265,7 +7262,6 @@ integer_valued_real_p (tree t) case ABS_EXPR: case SAVE_EXPR: - case NON_LVALUE_EXPR: return integer_valued_real_p (TREE_OPERAND (t, 0)); case COMPOUND_EXPR: @@ -11435,7 +11431,6 @@ fold_builtin_next_arg (tree exp, bool va_start_p) parameters. */ while (TREE_CODE (arg) == NOP_EXPR || TREE_CODE (arg) == CONVERT_EXPR - || TREE_CODE (arg) == NON_LVALUE_EXPR || TREE_CODE (arg) == INDIRECT_REF) arg = TREE_OPERAND (arg, 0); if (arg != last_parm) |