* [gccgo] Don't force SSE2
@ 2009-11-24 17:32 Ian Lance Taylor
0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2009-11-24 17:32 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
I used a horrible hack in the Go compiler to force the use of SSE2, in
order to get stable floating point results on 32-bit x86.
Fortunately, thanks to Joseph's work on -fexcess-precision, that hack
is no longer necessary. I committed this patch to remove it.
Ian
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: SSE --]
[-- Type: text/x-diff, Size: 922 bytes --]
Index: gospec.c
===================================================================
--- gospec.c (revision 154387)
+++ gospec.c (working copy)
@@ -222,19 +222,6 @@ lang_specific_driver (int *in_argc, cons
/* Copy the 0th argument, i.e., the name of the program itself. */
arglist[i++] = argv[j++];
-#ifdef TARGET_SSE2
- /* This is a major hack. On the x86, we want to use SSE floating
- point, because it gives more consistent results. So we insert
- arguments to select it. Doing this means that anybody who wants
- to run on a Pentium 3 or earlier will need to use explicit -march
- and -mfpmath options. */
- arglist[j++] = "-mfpmath=sse";
- arglist[j++] = "-msse2";
-#if !defined(TARGET_64BIT_DEFAULT) || !TARGET_64BIT_DEFAULT
- arglist[j++] = "-march=pentium4";
-#endif
-#endif /* defined(TARGET_SSE2) */
-
/* We always combine all input files. */
arglist[j++] = "-combine";
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-24 17:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-24 17:32 [gccgo] Don't force SSE2 Ian Lance Taylor
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).