diff options
author | Gabriel Dos Reis <gdr@nerim.net> | 2002-07-25 08:58:07 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2002-07-25 08:58:07 +0000 |
commit | ea79391291786e58a29c963b6c407b71e55d5f34 (patch) | |
tree | e9d93010f8bf070bad0d387d2dd303dfd9b57502 /gcc/c-common.h | |
parent | ef6838b11c072f9a8b6be34f03e18bb24553f61e (diff) | |
download | gcc-ea79391291786e58a29c963b6c407b71e55d5f34.zip gcc-ea79391291786e58a29c963b6c407b71e55d5f34.tar.gz gcc-ea79391291786e58a29c963b6c407b71e55d5f34.tar.bz2 |
c-common.c (c_sizeof_or_alignof_type): Take a third argument for complaining.
* c-common.c (c_sizeof_or_alignof_type): Take a third argument for
complaining.
* c-common.h (c_sizeof): Adjust definition.
(c_alignof): Likewise.
* c-tree.h (c_sizeof_nowarn): Now macro.
* c-typeck.c (c_sizeof_nowarn): Remove definition.
cp/
* cp-tree.h (cxx_sizeof_nowarn): Now a macro.
(cxx_sizeof_or_alignof_type): Take a third argument.
(cxx_sizeof): Adjust definition.
(cxx_alignof): Likewise.
* init.c (build_delete): Use cxx_sizeof_nowarn to reflect reality.
* typeck.c (cxx_sizeof_or_alignof_type): Take a third argument for
complaining.
(c_sizeof_nowarn): Remove definition.
(build_unary_op): Use cxx_sizeof_nowarn.
From-SVN: r55744
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index fabfb16..5dfa2d6 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -548,7 +548,7 @@ extern tree c_common_signed_type PARAMS ((tree)); extern tree c_common_signed_or_unsigned_type PARAMS ((int, tree)); extern tree c_common_truthvalue_conversion PARAMS ((tree)); extern void c_apply_type_quals_to_decl PARAMS ((int, tree)); -extern tree c_sizeof_or_alignof_type PARAMS ((tree, enum tree_code)); +extern tree c_sizeof_or_alignof_type PARAMS ((tree, enum tree_code, int)); extern tree c_alignof_expr PARAMS ((tree)); /* Print an error message for invalid operands to arith operation CODE. NOP_EXPR is used as a special case (see truthvalue_conversion). */ @@ -575,8 +575,8 @@ extern void unsigned_conversion_warning PARAMS ((tree, tree)); /* Read the rest of the current #-directive line. */ extern char *get_directive_line PARAMS ((void)); #define GET_DIRECTIVE_LINE() get_directive_line () -#define c_sizeof(T) c_sizeof_or_alignof_type (T, SIZEOF_EXPR) -#define c_alignof(T) c_sizeof_or_alignof_type (T, ALIGNOF_EXPR) +#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) /* Subroutine of build_binary_op, used for comparison operations. See if the operands have both been converted from subword integer types |