diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-03-02 10:15:23 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-03-02 10:15:23 +0000 |
commit | 916ebef1984e9caa05646463734b51202b405774 (patch) | |
tree | 5aadea92562bac70a98e3837c7577de76eac1405 /src/arch/i386 | |
parent | c09b627973d9362caba39de09f7d2c6990eb9701 (diff) | |
download | ipxe-916ebef1984e9caa05646463734b51202b405774.tar.gz |
[build] Allow __asmcall to be used as a type attribute
The "used" attribute can be applied only to functions or variables,
which prevents the use of __asmcall as a type attribute.
Fix by removing "used" from the definition of __asmcall for i386 and
x86_64 architectures, and adding explicit __used annotations where
necessary.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/i386')
-rw-r--r-- | src/arch/i386/include/bits/compiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/i386/include/bits/compiler.h b/src/arch/i386/include/bits/compiler.h index 7c4a09396..87201135f 100644 --- a/src/arch/i386/include/bits/compiler.h +++ b/src/arch/i386/include/bits/compiler.h @@ -9,7 +9,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #ifndef ASSEMBLY /** Declare a function with standard calling conventions */ -#define __asmcall __attribute__ (( used, cdecl, regparm(0) )) +#define __asmcall __attribute__ (( cdecl, regparm(0) )) /** * Declare a function with libgcc implicit linkage |