]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Remove redundant regparm function attribute for x86_64
authorMichael Brown <mcb30@ipxe.org>
Fri, 1 May 2026 13:17:00 +0000 (14:17 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 1 May 2026 13:17:00 +0000 (14:17 +0100)
The regparm function attribute is meaningful only for i386, not for
x86_64, and is reported as a build error by GCC 16.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86_64/include/bits/compiler.h

index 99185b05863b8cacb68af3bb5eddf99ee04e24ce..e846445f15066445ba631583476b08c73ba72f38 100644 (file)
@@ -13,7 +13,7 @@ FILE_SECBOOT ( PERMITTED );
 #define ASM_NO_PREFIX "c"
 
 /** Declare a function with standard calling conventions */
-#define __asmcall __attribute__ (( regparm(0) ))
+#define __asmcall
 
 /** Declare a function with libgcc implicit linkage */
 #define __libgcc