summaryrefslogtreecommitdiff
path: root/boehm-gc/mach_dep.c
diff options
context:
space:
mode:
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>1999-06-17 23:22:51 +0000
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>1999-06-17 23:22:51 +0000
commita0350df95da5212ba60bdd1f16eaa49e3b502158 (patch)
treeeb4c0748c18bee26e4ee402c5b5585273499d78a /boehm-gc/mach_dep.c
parent03bcf0cbbf41d6b76657571212868d8689299f7a (diff)
downloadgcc-a0350df95da5212ba60bdd1f16eaa49e3b502158.tar.gz
* mach_dep.c (GC_push_regs): FreeBSD-elf support (from
Carlo Dapor <carlo@vis.ethz.ch>). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27580 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/mach_dep.c')
-rw-r--r--boehm-gc/mach_dep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/boehm-gc/mach_dep.c b/boehm-gc/mach_dep.c
index e6087d94684..09a79883fdf 100644
--- a/boehm-gc/mach_dep.c
+++ b/boehm-gc/mach_dep.c
@@ -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");