From: Jakub Jelinek Date: Mon, 24 Oct 2016 16:04:37 +0000 (+0200) Subject: i386.c (ix86_in_large_data_p, [...]): Use VAR_P (x) instead of TREE_CODE (x) == VAR_DECL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4467029544b6d28433b81e91309d3b67c7cc4a7b;p=gcc.git i386.c (ix86_in_large_data_p, [...]): Use VAR_P (x) instead of TREE_CODE (x) == VAR_DECL. * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use VAR_P (x) instead of TREE_CODE (x) == VAR_DECL. From-SVN: r241481 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f050a17c17a..0d981e51ec3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-10-24 Jakub Jelinek + + * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use + VAR_P (x) instead of TREE_CODE (x) == VAR_DECL. + 2016-10-24 Ximin Luo PR debug/77985 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index b4899a198d4..f70eb43c922 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -7134,10 +7134,10 @@ ix86_in_large_data_p (tree exp) return false; /* Automatic variables are never large data. */ - if (TREE_CODE (exp) == VAR_DECL && !is_global_var (exp)) + if (VAR_P (exp) && !is_global_var (exp)) return false; - if (TREE_CODE (exp) == VAR_DECL && DECL_SECTION_NAME (exp)) + if (VAR_P (exp) && DECL_SECTION_NAME (exp)) { const char *section = DECL_SECTION_NAME (exp); if (strcmp (section, ".ldata") == 0 @@ -36686,7 +36686,7 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget, target = gen_reg_rtx (Pmode); arg0 = CALL_EXPR_ARG (exp, 0); - gcc_assert (TREE_CODE (arg0) == VAR_DECL); + gcc_assert (VAR_P (arg0)); name = DECL_ASSEMBLER_NAME (arg0); symbol = gen_rtx_SYMBOL_REF (Pmode, IDENTIFIER_POINTER (name));