aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2003-12-10 21:43:52 +0000
committerDiego Novillo <dnovillo@redhat.com>2003-12-10 21:43:52 +0000
commit5a6342ef6c06465b6460c32cb213c6716958f8c9 (patch)
tree10217aeb3bd8160b1991034a64be76d42f72ee26 /gcc/c-common.h
parent5d75773c733948df9a41d0f2877229e9632e7e60 (diff)
Revert
2003-12-07 Richard Henderson <rth@redhat.com> * c-common.c (c_address_looks_like_offsetof): New. * c-common.h (c_address_looks_like_offsetof): Declare. * c-typeck.c (build_unary_op) <ADDR_EXPR>: Use it. Don't lower address references not destined for offsetof. (c_expand_return): Only look inside ARRAY_REF and COMPONENT_REF when looking for returning address of local variable. * expr.c (expand_expr_1): Don't dereference size of unbounded arrays. * gimplify.c (gimplify_addr_expr): Only fold address of variable size array elements. * tree-simple.c (is_gimple_min_invariant): Also check is_gimple_variable before disallowing offset address for type. * tree-ssa-ccp.c (maybe_fold_offset_to_aggregate_ref): New. (maybe_fold_offset_to_component_ref): Use it. (maybe_fold_stmt_indirect, maybe_fold_stmt_plus): Likewise. (maybe_fold_offset_to_array_ref): Likewise. Don't fail for division remainder non-zero. * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Use handled_component_p and look inside references. <MINUS_EXPR>: Always look past widening casts. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@74509 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index ccff7597c40..c7adfd24dbf 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -1287,7 +1287,6 @@ extern tree c_walk_subtrees (tree*, int*, walk_tree_fn, void*, void*);
extern int c_tree_chain_matters_p (tree);
extern void c_warn_unused_result (tree *);
-extern bool c_address_looks_like_offsetof (tree);
/* In c-simplify.c */
extern void c_genericize (tree);