aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parse.y
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2001-08-24 08:07:46 -0400
committerJason Merrill <jason@gcc.gnu.org>2001-08-24 08:07:46 -0400
commit0213a355281c1ce387d9fae4061d18f6b9bcd54e (patch)
treeadef91f04544976faec6a008d13e5bd087582d2d /gcc/cp/parse.y
parent2dc8352c90590135507210ce0638d31eaec88d0e (diff)
downloadgcc-0213a355281c1ce387d9fae4061d18f6b9bcd54e.zip
gcc-0213a355281c1ce387d9fae4061d18f6b9bcd54e.tar.gz
gcc-0213a355281c1ce387d9fae4061d18f6b9bcd54e.tar.bz2
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
Diffstat (limited to 'gcc/cp/parse.y')
-rw-r--r--gcc/cp/parse.y8
1 files changed, 4 insertions, 4 deletions
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