Ignore qt-win tarball.
[fedora-mingw.git] / gc / gc-7.1-sparc.patch
1 diff -up gc-7.1/configure.sparc gc-7.1/configure
2 --- gc-7.1/configure.sparc      2008-05-03 19:52:50.000000000 -0500
3 +++ gc-7.1/configure    2008-10-15 07:01:18.000000000 -0500
4 @@ -6161,6 +6161,9 @@ _ACEOF
5   sparc-*-netbsd*)
6      machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
7      ;;
8 + sparc*-*-linux*)
9 +    machdep="mach_dep.lo sparc_mach_dep.lo"
10 +    ;;
11   sparc-sun-solaris2.3)
12      machdep="mach_dep.lo sparc_mach_dep.lo"
13      cat >>confdefs.h <<\_ACEOF
14 diff -up gc-7.1/configure.ac.sparc gc-7.1/configure.ac
15 --- gc-7.1/configure.ac.sparc   2008-05-03 19:52:06.000000000 -0500
16 +++ gc-7.1/configure.ac 2008-10-15 07:01:18.000000000 -0500
17 @@ -405,6 +405,9 @@ case "$host" in
18   sparc-*-netbsd*)
19      machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
20      ;;
21 + sparc*-*-linux*)
22 +    machdep="mach_dep.lo sparc_mach_dep.lo"
23 +    ;;
24   sparc-sun-solaris2.3)
25      machdep="mach_dep.lo sparc_mach_dep.lo"
26      AC_DEFINE(SUNOS53_SHARED_LIB)
27 diff -up gc-7.1/mach_dep.c.sparc gc-7.1/mach_dep.c
28 --- gc-7.1/mach_dep.c.sparc     2007-08-13 16:49:11.000000000 -0500
29 +++ gc-7.1/mach_dep.c   2008-10-15 07:03:35.000000000 -0500
30 @@ -175,9 +175,10 @@ void GC_with_callee_saves_pushed(void (*
31  #   if defined(HAVE_PUSH_REGS)
32        GC_push_regs();
33  #   elif defined(UNIX_LIKE) && !defined(DARWIN) && !defined(ARM32) && \
34 -        !defined(HURD)
35 +        !defined(HURD) && !defined(SPARC)
36        /* Older versions of Darwin seem to lack getcontext(). */
37        /* ARM Linux often doesn't support a real getcontext(). */
38 +      /* SPARC 32bit Linux doesn't support getcontext(). */
39        ucontext_t ctxt;
40        if (getcontext(&ctxt) < 0)
41         ABORT ("Getcontext failed: Use another register retrieval method?");