mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-26 02:30:30 +08:00
mach_dep.c (GC_push_regs): FreeBSD-elf support (from Carlo Dapor <carlo@vis.ethz.ch>).
* mach_dep.c (GC_push_regs): FreeBSD-elf support (from Carlo Dapor <carlo@vis.ethz.ch>). From-SVN: r27580
This commit is contained in:
parent
00e595499e
commit
37b454bd0b
@ -1,3 +1,8 @@
|
||||
1999-06-17 Anthony Green <green@cygnus.com>
|
||||
|
||||
* mach_dep.c (GC_push_regs): FreeBSD-elf support (from
|
||||
Carlo Dapor <carlo@vis.ethz.ch>).
|
||||
|
||||
1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
|
||||
|
||||
* configure.in: Switch from irix threads to posix threads
|
||||
|
@ -170,7 +170,7 @@ void GC_push_regs()
|
||||
|
||||
# if defined(I386) &&!defined(OS2) &&!defined(SVR4) &&!defined(MSWIN32) \
|
||||
&& !defined(SCO) && !defined(SCO_ELF) && !(defined(LINUX) \
|
||||
&& defined(__ELF__)) && !defined(DOS4GW)
|
||||
&& defined(__ELF__)) && !defined(DOS4GW) && !defined(FREEBSD)
|
||||
/* I386 code, generic code does not appear to work */
|
||||
/* It does appear to work under OS2, and asms dont */
|
||||
/* This is used for some 38g UNIX variants and for CYGWIN32 */
|
||||
@ -183,8 +183,8 @@ void GC_push_regs()
|
||||
asm("pushl %ebx"); asm("call _GC_push_one"); asm("addl $4,%esp");
|
||||
# endif
|
||||
|
||||
# if defined(I386) && defined(LINUX) && defined(__ELF__)
|
||||
/* This is modified for Linux with ELF (Note: _ELF_ only) */
|
||||
# if defined(I386) && (defined(LINUX) || defined(FREEBSD)) && defined(__ELF__)
|
||||
/* This is modified for Linux/FreeBSD with ELF (Note: _ELF_ only) */
|
||||
asm("pushl %eax"); asm("call GC_push_one"); asm("addl $4,%esp");
|
||||
asm("pushl %ecx"); asm("call GC_push_one"); asm("addl $4,%esp");
|
||||
asm("pushl %edx"); asm("call GC_push_one"); asm("addl $4,%esp");
|
||||
|
Loading…
x
Reference in New Issue
Block a user