* gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
* gimplify.c (gimplify_modify_expr_rhs): Likewise.
* c-ada-spec.c (dump_sloc): Use DECL_P.
From-SVN: r223440
+2015-05-20 Marek Polacek <polacek@redhat.com>
+
+ * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
+ * gimplify.c (gimplify_modify_expr_rhs): Likewise.
+
2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64.c (aarch64_class_max_nregs):
+2015-05-20 Marek Polacek <polacek@redhat.com>
+
+ * c-ada-spec.c (dump_sloc): Use DECL_P.
+
2015-05-20 Marek Polacek <polacek@redhat.com>
* c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
xloc.file = NULL;
- if (TREE_CODE_CLASS (TREE_CODE (node)) == tcc_declaration)
+ if (DECL_P (node))
xloc = expand_location (DECL_SOURCE_LOCATION (node));
else if (EXPR_HAS_LOCATION (node))
xloc = expand_location (EXPR_LOCATION (node));
if (TREE_THIS_VOLATILE (t))
return NULL_TREE;
- if (TREE_CODE_CLASS (TREE_CODE (t)) == tcc_declaration)
+ if (DECL_P (t))
return get_symbol_constant_value (t);
tem = fold_read_from_constant_string (t);
{
if (TREE_THIS_VOLATILE (t) != volatile_p)
{
- if (TREE_CODE_CLASS (TREE_CODE (t)) == tcc_declaration)
+ if (DECL_P (t))
t = build_simple_mem_ref_loc (EXPR_LOCATION (*from_p),
build_fold_addr_expr (t));
if (REFERENCE_CLASS_P (t))