From: Kyrylo Tkachov Date: Wed, 20 Dec 2017 09:29:13 +0000 (+0000) Subject: [arm] PR target/82975: Guard against reg_renumber being NULL in arm.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=378056b26a6a0a1eb442c100a9c744648a210ba7;p=gcc.git [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 --- 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)))