]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/c-common.c
c-typeck.c (build_offsetof): Remove.
authorRichard Henderson <rth@redhat.com>
Fri, 27 Aug 2004 00:37:48 +0000 (17:37 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 27 Aug 2004 00:37:48 +0000 (17:37 -0700)
commitee8a6a3ee5d35c2e188225c2bbb58c2cca69a2ab
treedac64a782e7964b7582fea44120f93c164d43398
parent525c6bf5a6b91fa09f57b79bad9737ab3733601d
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
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-parse.in
gcc/c-tree.h
gcc/c-typeck.c