From 378056b26a6a0a1eb442c100a9c744648a210ba7 Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Wed, 20 Dec 2017 09:29:13 +0000 Subject: [PATCH] [arm] PR target/82975: Guard against reg_renumber being NULL in arm.h Commit missing hunk to arm.h TEST_REGNO comment. PR target/82975 * config/arm/arm.h (TEST_REGNO): Adjust comment as expected in r255830. From-SVN: r255853 --- gcc/ChangeLog | 6 ++++++ gcc/config/arm/arm.h | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9c22fd74637..bc881e5f6ca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-12-20 Kyrylo Tkachov + + PR target/82975 + * config/arm/arm.h (TEST_REGNO): Adjust comment as expected in + r255830. + 2017-12-20 Jakub Jelinek PR c++/83490 diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index a482f0342a9..c46fd60da85 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -1615,10 +1615,7 @@ enum arm_auto_incmodes /* These assume that REGNO is a hard or pseudo reg number. They give nonzero only if REGNO is a hard reg of the suitable class - or a pseudo reg currently allocated to a suitable hard reg. - Since they use reg_renumber, they are safe only once reg_renumber - has been allocated, which happens in reginfo.c during register - allocation. */ + or a pseudo reg currently allocated to a suitable hard reg. */ #define TEST_REGNO(R, TEST, VALUE) \ ((R TEST VALUE) \ || (reg_renumber && ((unsigned) reg_renumber[R] TEST VALUE))) -- 2.30.2