From 0213a355281c1ce387d9fae4061d18f6b9bcd54e Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 24 Aug 2001 08:07:46 -0400 Subject: c-common.c (c_alignof, [...]): Move here... * 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. From-SVN: r45145 --- gcc/cp/parse.y | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/cp/parse.y') diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 2765375..3b89022 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -1226,14 +1226,14 @@ unary_expr: | ANDAND identifier { $$ = finish_label_address_expr ($2); } | SIZEOF unary_expr %prec UNARY - { $$ = expr_sizeof ($2); } + { $$ = finish_sizeof ($2); } | SIZEOF '(' type_id ')' %prec HYPERUNARY - { $$ = c_sizeof (groktypename ($3.t)); + { $$ = finish_sizeof (groktypename ($3.t)); check_for_new_type ("sizeof", $3); } | ALIGNOF unary_expr %prec UNARY - { $$ = grok_alignof ($2); } + { $$ = finish_alignof ($2); } | ALIGNOF '(' type_id ')' %prec HYPERUNARY - { $$ = c_alignof (groktypename ($3.t)); + { $$ = finish_alignof (groktypename ($3.t)); check_for_new_type ("alignof", $3); } /* The %prec EMPTY's here are required by the = init initializer -- cgit v1.1