Message ID | CAAgBjMk6BnP136GRRo2Z4WbE=zje5wNyR+TswakhJEJeBBKF2Q@mail.gmail.com |
---|---|
State | New |
Headers | show |
On 28/10/16 06:00, Prathamesh Kulkarni wrote: > Hi, > This patch uses replaces TREE_CODE(x) == VAR_DECL by VAR_P(x) in arm.c. > Bootstrap+tested on arm-linux-gnueabihf. > OK to commit ? Ok (I would consider this obvious). Thanks, Kyrill > Thanks, > Prathamesh
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 3c4c704..a39e64f 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -30150,9 +30150,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));