aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/libgcc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-02-17 20:17:17 -0800
committerH. Peter Anvin <hpa@zytor.com>2009-02-17 20:17:17 -0800
commitd0c6656a62113b913948361779d6298fe76f6e61 (patch)
treeefa2541a1abae4760717c6db421ea818114ab6f7 /gpxe/src/libgcc
parent85b92a462dab7ce36c48614ea18314f8fc83ca9c (diff)
downloadsyslinux.git-d0c6656a62113b913948361779d6298fe76f6e61.tar.gz
syslinux.git-d0c6656a62113b913948361779d6298fe76f6e61.tar.xz
syslinux.git-d0c6656a62113b913948361779d6298fe76f6e61.zip
Update gPXE to version 0.9.6+ 277b84c6e7d49f3cf01c855007f591de8c7cb75f
Update gPXE to version 0.9.6+, from commit 277b84c6e7d49f3cf01c855007f591de8c7cb75f in the main gPXE repository. The only differences is src/config/general.h which has a few protocols added, and src/arch/i386/prefix/boot1a.S which was called boot1a.s in the upstream repository.
Diffstat (limited to 'gpxe/src/libgcc')
-rw-r--r--gpxe/src/libgcc/__divdi3.c2
-rw-r--r--gpxe/src/libgcc/__moddi3.c2
-rw-r--r--gpxe/src/libgcc/__udivdi3.c2
-rw-r--r--gpxe/src/libgcc/__udivmoddi4.c2
-rw-r--r--gpxe/src/libgcc/__umoddi3.c2
-rw-r--r--gpxe/src/libgcc/libgcc.h24
6 files changed, 11 insertions, 23 deletions
diff --git a/gpxe/src/libgcc/__divdi3.c b/gpxe/src/libgcc/__divdi3.c
index 36f0b37f..7097b11e 100644
--- a/gpxe/src/libgcc/__divdi3.c
+++ b/gpxe/src/libgcc/__divdi3.c
@@ -4,7 +4,7 @@
#include "libgcc.h"
-LIBGCC int64_t __divdi3(int64_t num, int64_t den)
+__libgcc int64_t __divdi3(int64_t num, int64_t den)
{
int minus = 0;
int64_t v;
diff --git a/gpxe/src/libgcc/__moddi3.c b/gpxe/src/libgcc/__moddi3.c
index eb7784b7..d671bbc4 100644
--- a/gpxe/src/libgcc/__moddi3.c
+++ b/gpxe/src/libgcc/__moddi3.c
@@ -4,7 +4,7 @@
#include "libgcc.h"
-LIBGCC int64_t __moddi3(int64_t num, int64_t den)
+__libgcc int64_t __moddi3(int64_t num, int64_t den)
{
int minus = 0;
int64_t v;
diff --git a/gpxe/src/libgcc/__udivdi3.c b/gpxe/src/libgcc/__udivdi3.c
index 9ae0c3dc..f5a14de2 100644
--- a/gpxe/src/libgcc/__udivdi3.c
+++ b/gpxe/src/libgcc/__udivdi3.c
@@ -4,7 +4,7 @@
#include "libgcc.h"
-LIBGCC uint64_t __udivdi3(uint64_t num, uint64_t den)
+__libgcc uint64_t __udivdi3(uint64_t num, uint64_t den)
{
return __udivmoddi4(num, den, NULL);
}
diff --git a/gpxe/src/libgcc/__udivmoddi4.c b/gpxe/src/libgcc/__udivmoddi4.c
index 59966edb..21e0d51f 100644
--- a/gpxe/src/libgcc/__udivmoddi4.c
+++ b/gpxe/src/libgcc/__udivmoddi4.c
@@ -1,6 +1,6 @@
#include "libgcc.h"
-LIBGCC uint64_t __udivmoddi4(uint64_t num, uint64_t den, uint64_t *rem_p)
+__libgcc uint64_t __udivmoddi4(uint64_t num, uint64_t den, uint64_t *rem_p)
{
uint64_t quot = 0, qbit = 1;
diff --git a/gpxe/src/libgcc/__umoddi3.c b/gpxe/src/libgcc/__umoddi3.c
index f6c76cb6..fb4da991 100644
--- a/gpxe/src/libgcc/__umoddi3.c
+++ b/gpxe/src/libgcc/__umoddi3.c
@@ -4,7 +4,7 @@
#include "libgcc.h"
-LIBGCC uint64_t __umoddi3(uint64_t num, uint64_t den)
+__libgcc uint64_t __umoddi3(uint64_t num, uint64_t den)
{
uint64_t v;
diff --git a/gpxe/src/libgcc/libgcc.h b/gpxe/src/libgcc/libgcc.h
index 5b4a6244..d3e9bdd7 100644
--- a/gpxe/src/libgcc/libgcc.h
+++ b/gpxe/src/libgcc/libgcc.h
@@ -4,23 +4,11 @@
#include <stdint.h>
#include <stddef.h>
-/*
- * It seems as though gcc expects its implicit arithmetic functions to
- * be cdecl, even if -mrtd is specified. This is somewhat
- * inconsistent; for example, if -mregparm=3 is used then the implicit
- * functions do become regparm(3).
- *
- * The implicit calls to memcpy() and memset() which gcc can generate
- * do not seem to have this inconsistency; -mregparm and -mrtd affect
- * them in the same way as any other function.
- *
- */
-#define LIBGCC __attribute__ (( cdecl ))
-
-extern LIBGCC uint64_t __udivmoddi4(uint64_t num, uint64_t den, uint64_t *rem);
-extern LIBGCC uint64_t __udivdi3(uint64_t num, uint64_t den);
-extern LIBGCC uint64_t __umoddi3(uint64_t num, uint64_t den);
-extern LIBGCC int64_t __divdi3(int64_t num, int64_t den);
-extern LIBGCC int64_t __moddi3(int64_t num, int64_t den);
+extern __libgcc uint64_t __udivmoddi4 ( uint64_t num, uint64_t den,
+ uint64_t *rem );
+extern __libgcc uint64_t __udivdi3 (uint64_t num, uint64_t den );
+extern __libgcc uint64_t __umoddi3 ( uint64_t num, uint64_t den );
+extern __libgcc int64_t __divdi3 ( int64_t num, int64_t den );
+extern __libgcc int64_t __moddi3 ( int64_t num, int64_t den );
#endif /* _LIBGCC_H */