diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-27 00:37:48 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-27 00:37:48 +0000 |
commit | af28855bc1af90aa53b5de0a91ef843dce967545 (patch) | |
tree | dac64a782e7964b7582fea44120f93c164d43398 /gcc/c-common.h | |
parent | 82e3f297ce223cec0a87865f7ea87f03586979b1 (diff) | |
download | gcc-af28855bc1af90aa53b5de0a91ef843dce967545.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86651 138bc75d-0d04-0410-961f-82ee72b054a4
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 94f3249b21b..e9a91d50fdd 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 *); |