mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-14 21:01:22 +08:00
c-semantics.c (build_stmt): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS.
gcc/ * c-semantics.c (build_stmt): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS. * tree.h (IS_NON_TYPE_CODE_CLASS): Remove. (NON_TYPE_CHECK): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS. java/ * expr.c (build_expr_wfl, expr_add_location): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS. From-SVN: r95942
This commit is contained in:
parent
19db01bb45
commit
3f724eb8a7
@ -1,3 +1,11 @@
|
||||
2005-03-05 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* c-semantics.c (build_stmt): Use TYPE_P instead of
|
||||
IS_NON_TYPE_CODE_CLASS.
|
||||
* tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
|
||||
(NON_TYPE_CHECK): Use TYPE_P instead of
|
||||
IS_NON_TYPE_CODE_CLASS.
|
||||
|
||||
2005-03-05 James A. Morrison <phython@gcc.gnu.org>
|
||||
|
||||
* doc/c-tree.texi: Wrap comments in @r{}.
|
||||
|
@ -164,7 +164,7 @@ build_stmt (enum tree_code code, ...)
|
||||
for (i = 0; i < length; i++)
|
||||
{
|
||||
tree t = va_arg (p, tree);
|
||||
if (t && IS_NON_TYPE_CODE_CLASS (TREE_CODE_CLASS (TREE_CODE (t))))
|
||||
if (t && !TYPE_P (t))
|
||||
side_effects |= TREE_SIDE_EFFECTS (t);
|
||||
TREE_OPERAND (ret, i) = t;
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-03-05 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* expr.c (build_expr_wfl, expr_add_location): Use TYPE_P
|
||||
instead of IS_NON_TYPE_CODE_CLASS.
|
||||
|
||||
2005-03-04 Andrew Haley <aph@redhat.com>
|
||||
|
||||
PR java/18362
|
||||
|
@ -3591,7 +3591,7 @@ build_expr_wfl (tree node,
|
||||
EXPR_WFL_NODE (wfl) = node;
|
||||
if (node)
|
||||
{
|
||||
if (IS_NON_TYPE_CODE_CLASS (TREE_CODE_CLASS (TREE_CODE (node))))
|
||||
if (!TYPE_P (node))
|
||||
TREE_SIDE_EFFECTS (wfl) = TREE_SIDE_EFFECTS (node);
|
||||
TREE_TYPE (wfl) = TREE_TYPE (node);
|
||||
}
|
||||
@ -3627,7 +3627,7 @@ expr_add_location (tree node, source_location location, bool statement)
|
||||
EXPR_WFL_EMIT_LINE_NOTE (wfl) = 1;
|
||||
if (node)
|
||||
{
|
||||
if (IS_NON_TYPE_CODE_CLASS (TREE_CODE_CLASS (TREE_CODE (node))))
|
||||
if (!TYPE_P (node))
|
||||
TREE_SIDE_EFFECTS (wfl) = TREE_SIDE_EFFECTS (node);
|
||||
TREE_TYPE (wfl) = TREE_TYPE (node);
|
||||
}
|
||||
|
@ -134,10 +134,6 @@ extern const enum tree_code_class tree_code_type[];
|
||||
#define EXPRESSION_CLASS_P(CODE)\
|
||||
(TREE_CODE_CLASS (TREE_CODE (CODE)) == tcc_expression)
|
||||
|
||||
/* Returns nonzero iff CLASS is not the tree code of a type. */
|
||||
|
||||
#define IS_NON_TYPE_CODE_CLASS(CLASS) ((CLASS) != tcc_type)
|
||||
|
||||
/* Returns nonzero iff CODE represents a type or declaration. */
|
||||
|
||||
#define IS_TYPE_OR_DECL_P(CODE)\
|
||||
@ -557,8 +553,7 @@ struct tree_common GTY(())
|
||||
/* These checks have to be special cased. */
|
||||
#define NON_TYPE_CHECK(T) __extension__ \
|
||||
({ const tree __t = (T); \
|
||||
char const __c = TREE_CODE_CLASS (TREE_CODE (__t)); \
|
||||
if (!IS_NON_TYPE_CODE_CLASS (__c)) \
|
||||
if (TYPE_P (__t)) \
|
||||
tree_class_check_failed (__t, tcc_type, __FILE__, __LINE__, \
|
||||
__FUNCTION__); \
|
||||
__t; })
|
||||
|
Loading…
x
Reference in New Issue
Block a user