From aee707743d4724c2754ba3f73bc9326b39964701 Mon Sep 17 00:00:00 2001 From: Prathamesh Kulkarni Date: Sun, 30 Oct 2016 14:06:16 +0000 Subject: [PATCH] arm.c (arm_const_not_ok_for_debug_p): Use VAR_P. 2016-10-30 Prathamesh Kulkarni * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P. From-SVN: r241686 --- gcc/ChangeLog | 4 ++++ gcc/config/arm/arm.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7e15933858e..27f47384564 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-10-30 Prathamesh Kulkarni + + * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P. + 2016-10-29 Jakub Jelinek PR rtl-optimization/77919 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index f47edbab07e..dd8d5e5db8c 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -30155,9 +30155,9 @@ arm_const_not_ok_for_debug_p (rtx p) && GET_CODE (XEXP (p, 0)) == SYMBOL_REF && (decl_op0 = SYMBOL_REF_DECL (XEXP (p, 0)))) { - if ((TREE_CODE (decl_op1) == VAR_DECL + if ((VAR_P (decl_op1) || TREE_CODE (decl_op1) == CONST_DECL) - && (TREE_CODE (decl_op0) == VAR_DECL + && (VAR_P (decl_op0) || TREE_CODE (decl_op0) == CONST_DECL)) return (get_variable_section (decl_op1, false) != get_variable_section (decl_op0, false)); -- 2.30.2