diff options
author | Richard Henderson <rth@redhat.com> | 2004-08-26 17:37:48 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-08-26 17:37:48 -0700 |
commit | ee8a6a3ee5d35c2e188225c2bbb58c2cca69a2ab (patch) | |
tree | dac64a782e7964b7582fea44120f93c164d43398 /gcc/c-common.h | |
parent | 525c6bf5a6b91fa09f57b79bad9737ab3733601d (diff) | |
download | gcc-ee8a6a3ee5d35c2e188225c2bbb58c2cca69a2ab.zip gcc-ee8a6a3ee5d35c2e188225c2bbb58c2cca69a2ab.tar.gz gcc-ee8a6a3ee5d35c2e188225c2bbb58c2cca69a2ab.tar.bz2 |
c-typeck.c (build_offsetof): Remove.
* c-typeck.c (build_offsetof): Remove.
* c-tree.h (build_offsetof): Remove.
* c-common.c (fold_offsetof_1, fold_offsetof): New.
* c-common.h (fold_offsetof): Declare.
* c-parse.in (offsetof_base): New.
(offsetof_member_designator): Use it. Build references, not just
a tree list.
(primary): Use fold_offsetof, not build_offsetof.
From-SVN: r86651
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index 94f3249..e9a91d5 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -870,6 +870,8 @@ extern void c_warn_unused_result (tree *); extern void verify_sequence_points (tree); +extern tree fold_offsetof (tree); + /* In c-gimplify.c */ extern void c_genericize (tree); extern int c_gimplify_expr (tree *, tree *, tree *); |