RISC-V: make USE_LOAD_ADDRESS_MACRO easier to understand
authorVineet Gupta <vineetg@rivosinc.com>
Fri, 2 Sep 2022 23:08:20 +0000 (16:08 -0700)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 23 Sep 2022 15:51:42 +0000 (23:51 +0800)
commit7d4df630c6cfb1909288a2796ec2f8b9ec4e8486
treec8d9c2e95959b524c804f0fabf970c43574381fb
parentb2fe02b476afc1cddb3abcf26ec4b1e072a9401b
RISC-V: make USE_LOAD_ADDRESS_MACRO easier to understand

The current macro has several && and || making it really hard to understand
the first time.

Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
gcc/ChangeLog:

* config/riscv/riscv.h (LOCAL_SYM_P): New.
(USE_LOAD_ADDRESS_MACRO): Simplify by calling LOCAL_SYM_P.
gcc/config/riscv/riscv.h