This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Remove obsolete Solaris 9 support
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: "gcc-patches\ at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 25 Apr 2014 10:00:21 +0200
- Subject: Re: Remove obsolete Solaris 9 support
- Authentication-results: sourceware.org; auth=none
- References: <ydd7g6p8qy7 dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <CAFULd4Zj-J0F9Qif9rtDAcDP4Oz8RB=gcX7=kLUC=8v0Zb98yQ at mail dot gmail dot com> <yddzjjd5ypa dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <CAFULd4aQH9z2KpGA7owh=wL3FrttyH7RXOzgCBEowQ=N0zjhiA at mail dot gmail dot com> <yddk3ag2kzx dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE>
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:
> Uros Bizjak <ubizjak@gmail.com> writes:
>
>> It looks to me that one part was left in libgcc/config/i386/crtfastmath.c:
>>
>> #if !defined __x86_64__ && defined __sun__ && defined __svr4__
>> #include <signal.h>
>> #include <ucontext.h>
>> ...
>> #endif
>
> Right, missed it because it carried no Solaris 9 comment. I'll remove
> it after a round of testing.
Here's what I installed after successful bootstraps on
i386-pc-solaris2.1[01].
Rainer
2014-04-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
(sigill_caught, sigill_hdlr): Remove.
# HG changeset patch
# Parent 150c9610f7b0bfa684db0601a5f026e13ed1d30e
Remove SSE execution test in crtfastmath.c
diff --git a/libgcc/config/i386/crtfastmath.c b/libgcc/config/i386/crtfastmath.c
--- a/libgcc/config/i386/crtfastmath.c
+++ b/libgcc/config/i386/crtfastmath.c
@@ -31,26 +31,6 @@
#include "cpuid.h"
#endif
-#if !defined __x86_64__ && defined __sun__ && defined __svr4__
-#include <signal.h>
-#include <ucontext.h>
-
-static volatile sig_atomic_t sigill_caught;
-
-static void
-sigill_hdlr (int sig __attribute((unused)),
- siginfo_t *sip __attribute__((unused)),
- ucontext_t *ucp)
-{
- sigill_caught = 1;
- /* Set PC to the instruction after the faulting one to skip over it,
- otherwise we enter an infinite loop. 3 is the size of the movaps
- instruction. */
- ucp->uc_mcontext.gregs[EIP] += 3;
- setcontext (ucp);
-}
-#endif
-
static void __attribute__((constructor))
#ifndef __x86_64__
/* The i386 ABI only requires 4-byte stack alignment, so this is necessary
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University