]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: Fix warning in libgcc/config/arm/pr-support.c
authorChristophe Lyon <christophe.lyon@arm.com>
Mon, 30 Jan 2023 16:39:22 +0000 (17:39 +0100)
committerChristophe Lyon <christophe.lyon@arm.com>
Fri, 3 Feb 2023 15:40:42 +0000 (16:40 +0100)
commit3dba5b2cf2d624921d976670b927bf5330da075c
treeb54bdd4669bcc1551dae2830a0a30e526a427e50
parent59e0376f607805ef9b67fd7b0a4a3084ab3571a5
arm: Fix warning in libgcc/config/arm/pr-support.c

I have noticed some warnings when building GCC for arm-eabi:
pr-support.c:110:7: warning: variable ‘set_pac_sp’ set but not used [-Wunused-but-set-variable]
pr-support.c:109:7: warning: variable ‘set_pac’ set but not used [-Wunused-but-set-variable]

This small patch avoids them by defining these two variables undef
TARGET_HAVE_PACBTI, like the code which actually uses them.

libgcc/
* config/arm/pr-support.c (__gnu_unwind_execute): Use
TARGET_HAVE_PACBTI to define set_pac and set_pac_sp.
libgcc/config/arm/pr-support.c