diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2003-09-04 09:36:20 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2003-09-04 09:36:20 +0000 |
commit | 7a18b933f3a0a682daba07527fcfeb8e4fdd2dde (patch) | |
tree | 54f8ff1cf3fcfad94194deea3ba83734c6c92f8f /gcc/cp/semantics.c | |
parent | b379a5939dfaad14eb2285dfb078251fbcdf9bf3 (diff) | |
download | gcc-7a18b933f3a0a682daba07527fcfeb8e4fdd2dde.zip gcc-7a18b933f3a0a682daba07527fcfeb8e4fdd2dde.tar.gz gcc-7a18b933f3a0a682daba07527fcfeb8e4fdd2dde.tar.bz2 |
cp-tree.h (finish_sizeof, [...]): Remove.
cp:
* cp-tree.h (finish_sizeof, finish_alignof): Remove.
(expr_sizeof): Replace with ...
(cxx_sizeof_or_alignof_expr): ... here.
(cxx_sizeof_or_alignof_type): Make complain parameter a bool.
* parser.c (cp_parser_unary_expression): Commonize alignof and
sizeof handling.
* pt.c (tsubst_copy_and_build): Adjust alignof and sizeof
substitution.
* semantics.c (finish_sizeof, finish_alignof): Remove.
* typeck.c (cxx_sizeof_or_alignof_type): Complain parameter
becomes bool. Set TREE_READONLY.
(expr_sizeof): Replace with ...
(cxx_sizeof_or_alignof_expr): ... here. Clear TREE_SIDE_EFFECTS.
From-SVN: r71054
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 8670f8b..d3191a9 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2668,26 +2668,6 @@ finish_typeof (tree expr) return type; } -/* Compute the value of the `sizeof' operator. */ - -tree -finish_sizeof (tree t) -{ - return TYPE_P (t) ? cxx_sizeof (t) : expr_sizeof (t); -} - -/* Implement the __alignof keyword: Return the minimum required - alignment of T, measured in bytes. */ - -tree -finish_alignof (tree t) -{ - if (processing_template_decl) - return build_min (ALIGNOF_EXPR, size_type_node, t); - - return TYPE_P (t) ? cxx_alignof (t) : c_alignof_expr (t); -} - /* Generate RTL for the statement T, and its substatements, and any other statements at its nesting level. */ |