* c-common.c (c_alignof, c_alignof_expr): Move here...
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Aug 2001 12:07:46 +0000 (12:07 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Aug 2001 12:07:46 +0000 (12:07 +0000)
commit902b4e012d3fd2dc8d708a42a79a85a81f731160
treeadef91f04544976faec6a008d13e5bd087582d2d
parenta7e1057980f3d72a0e0a150e122dc3a9d8746fb6
    * c-common.c (c_alignof, c_alignof_expr): Move here...
        * c-typeck.c: ...from here.
        * c-tree.h, c-common.h: Adjust.

        * tree.c (cp_build_qualified_type_real): Use get_qualified_type.
        (build_cplus_array_type): Use cp_build_qualified_type, not
        TYPE_MAIN_VARIANT, to get an unqualified version.

        * decl2.c (grok_alignof): Lose.
        (build_expr_from_tree): Use expr_sizeof and c_alignof_expr.
        * typeck.c (c_alignof): Lose.
        * semantics.c (finish_sizeof, finish_alignof): New.
        * parse.y: Use them.
        * cp-tree.h: Declare them.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45145 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-tree.h
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/parse.y
gcc/cp/semantics.c
gcc/cp/tree.c
gcc/cp/typeck.c