From: Uros Bizjak <ubizjak@gmail.com>
To: Rainer Orth <ro@cebitec.uni-bielefeld.de>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: Use i386/crtfastmath.c on Solaris 2/x86
Date: Tue, 31 May 2011 14:23:00 -0000 [thread overview]
Message-ID: <BANLkTik7yj1usFhYBWmxoQEV_3imP7B54Q@mail.gmail.com> (raw)
In-Reply-To: <yddaae3rra6.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
On Tue, May 31, 2011 at 2:25 PM, Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
> The only complication is that I need to make sure that SSE insns are only
> used if the host supports them.
>
> Bootstrapped without regressions on i386-pc-solaris2.8,
> i386-pc-solaris2.9, i386-pc-solaris2.11, and sparc-sun-solaris2.11.
>
> The libgcc part depends on the toplevel libgcc patch, so actually
> applying this patch will have to wait until that one is in.
>
> Ok for mainline?
>
> Rainer
>
>
> 2011-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
>
> gcc:
> * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
> Include <signal.h>, <ucontext.h>.
> (sigill_caught): Define.
> (sigill_hdlr): New function.
> (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
> insns can be executed.
> * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math
> etc.
> * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
>
> libgcc:
> * config.host (i[34567]86-*-solaris2*): Add i386/t-crtfm to
> tmake_file.
> Add crtfastmath.o to extra_parts.
Please just put "if (edx & bit_SSE)" part inside existing check. You
will need to split assignment of mxcsr from the declaration, though.
OK with this change.
Thanks,
Uros.
next prev parent reply other threads:[~2011-05-31 12:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-31 14:01 Rainer Orth
2011-05-31 14:23 ` Uros Bizjak [this message]
2011-06-01 14:51 ` Rainer Orth
2011-06-01 17:24 ` Richard Henderson
2011-06-01 17:29 ` Rainer Orth
2011-06-01 18:06 ` Richard Henderson
2011-06-03 17:39 ` Rainer Orth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTik7yj1usFhYBWmxoQEV_3imP7B54Q@mail.gmail.com \
--to=ubizjak@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=ro@cebitec.uni-bielefeld.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).