mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-21 03:44:22 +08:00
Adjust macro to avoid warning [PR101379].
Resolves: PR bootstrap/101379 - libatomic arm build failure after r12-2132 due to -Warray-bounds on a constant address libatomic/ChangeLog: PR bootstrap/101379 * config/linux/arm/host-config.h (__kernel_helper_version): New function. Adjust shadow macro.
This commit is contained in:
parent
8edb614205
commit
b937dbf257
@ -39,8 +39,14 @@ typedef void (__kernel_dmb_t) (void);
|
||||
#define __kernel_dmb (*(__kernel_dmb_t *) 0xffff0fa0)
|
||||
|
||||
/* Kernel helper page version number. */
|
||||
#define __kernel_helper_version (*(unsigned int *)0xffff0ffc)
|
||||
static inline unsigned*
|
||||
__kernel_helper_version ()
|
||||
{
|
||||
unsigned *volatile addr = (unsigned int *)0xffff0ffc;
|
||||
return addr;
|
||||
}
|
||||
|
||||
#define __kernel_helper_version (*__kernel_helper_version())
|
||||
|
||||
#ifndef HAVE_STREX
|
||||
static inline bool
|
||||
|
Loading…
Reference in New Issue
Block a user