diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-30 12:18:31 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-30 12:18:31 +0000 |
commit | 1d8fc210ec3dfcdea0d1f83885e75b4669ff9bc1 (patch) | |
tree | cc734d7b461afd69a7c14c6e990ecc000f934c0d /gcc/c-common.c | |
parent | 7f87d0962edfc5c412751c941f2a204661ba78ed (diff) | |
download | gcc-1d8fc210ec3dfcdea0d1f83885e75b4669ff9bc1.tar.gz |
* c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
(handle_visibility_attribute, c_determine_visibility): Likewise.
* c-common.h (my_friendly_assert): Remove.
* cp/cp-tree.h (SET_BINFO_NEW_VTABLE_MARKED): Use gcc_assert.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86762 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index bd8ea6c32c3..d3d03782cbb 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -2738,7 +2738,7 @@ c_sizeof_or_alignof_type (tree type, enum tree_code op, int complain) tree value = NULL; enum tree_code type_code = TREE_CODE (type); - my_friendly_assert (op == SIZEOF_EXPR || op == ALIGNOF_EXPR, 20020720); + gcc_assert (op == SIZEOF_EXPR || op == ALIGNOF_EXPR); op_name = op == SIZEOF_EXPR ? "sizeof" : "__alignof__"; if (type_code == FUNCTION_TYPE) @@ -2782,7 +2782,7 @@ c_sizeof_or_alignof_type (tree type, enum tree_code op, int complain) never happen. However, this node should really have type `size_t', which is just a typedef for an ordinary integer type. */ value = fold (build1 (NOP_EXPR, size_type_node, value)); - my_friendly_assert (!TYPE_IS_SIZETYPE (TREE_TYPE (value)), 20001021); + gcc_assert (!TYPE_IS_SIZETYPE (TREE_TYPE (value))); return value; } @@ -4638,9 +4638,8 @@ handle_visibility_attribute (tree *node, tree name, tree args, bool c_determine_visibility (tree decl) { - my_friendly_assert (TREE_CODE (decl) == VAR_DECL - || TREE_CODE (decl) == FUNCTION_DECL, - 20040805); + gcc_assert (TREE_CODE (decl) == VAR_DECL + || TREE_CODE (decl) == FUNCTION_DECL); /* If the user explicitly specified the visibility with an attribute, honor that. DECL_VISIBILITY will have been set during |