aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2005-04-17 21:27:47 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2005-04-17 21:27:47 +0000
commit03a0866432efadc888d6a65651943b89e2ae6eb0 (patch)
tree8d0efbde4233e83950ce2bef9c8a5c3377334df2 /gcc/c-common.h
parent81a60083ea5e7aa3ccd994dd6fefc3d4099303af (diff)
downloadgcc-03a0866432efadc888d6a65651943b89e2ae6eb0.zip
gcc-03a0866432efadc888d6a65651943b89e2ae6eb0.tar.gz
gcc-03a0866432efadc888d6a65651943b89e2ae6eb0.tar.bz2
c-common.def (SIZEOF_EXPR, [...]): Remove.
./ * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove. * c-common.c (c_sizeof_or_alignof_type): Change second parameter from enum tree_code op to bool is_sizeof. * c-common.h (c_sizeof_or_alignof_type): Update declaration. (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type. * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR case. (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR cases. (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and ALIGNOF_EXPR cases. cp/ * cp-tree.def: Add SIZEOF_EXPR, ARROW_EXPR and ALIGNOF_EXPR. * cxx-pretty-print.c (pp_cxx_postfix_expression): Handle ARROW_EXPR. (pp_cxx_unary_expression): Handle SIZEOF_EXPR and ALIGNOF_EXPR. (pp_cxx_expression): Handle ARROW_EXPR, SIZEOF_EXPR, and ALIGNOF_EXPR. * typeck.c (cxx_sizeof_or_alignof_type): Update call to c_sizeof_or_alignof_type for change in parameter type. From-SVN: r98297
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index cf6e88b..9d98ffb 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -636,7 +636,7 @@ extern tree c_common_signed_type (tree);
extern tree c_common_signed_or_unsigned_type (int, tree);
extern tree c_common_truthvalue_conversion (tree);
extern void c_apply_type_quals_to_decl (int, tree);
-extern tree c_sizeof_or_alignof_type (tree, enum tree_code, int);
+extern tree c_sizeof_or_alignof_type (tree, bool, int);
extern tree c_alignof_expr (tree);
/* Print an error message for invalid operands to arith operation CODE.
NOP_EXPR is used as a special case (see truthvalue_conversion). */
@@ -649,8 +649,8 @@ extern void overflow_warning (tree);
extern void unsigned_conversion_warning (tree, tree);
extern bool c_determine_visibility (tree);
-#define c_sizeof(T) c_sizeof_or_alignof_type (T, SIZEOF_EXPR, 1)
-#define c_alignof(T) c_sizeof_or_alignof_type (T, ALIGNOF_EXPR, 1)
+#define c_sizeof(T) c_sizeof_or_alignof_type (T, true, 1)
+#define c_alignof(T) c_sizeof_or_alignof_type (T, false, 1)
/* Subroutine of build_binary_op, used for comparison operations.
See if the operands have both been converted from subword integer types