public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix pr67963
@ 2015-10-14 15:08 Yulia Koval
  2015-10-14 15:15 ` H.J. Lu
  2015-10-15 11:45 ` Uros Bizjak
  0 siblings, 2 replies; 14+ messages in thread
From: Yulia Koval @ 2015-10-14 15:08 UTC (permalink / raw)
  To: GCC Patches, H.J. Lu, Uros Bizjak

[-- Attachment #1: Type: text/plain, Size: 733 bytes --]

Hi,

This patch fixes the issue:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67963

  gcc/config/i386/i386.c (ix86_option_override_internal) Disable
    80387 mask if lakemont target is set.

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 4c25c9e..db722aa 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -4943,6 +4943,12 @@ ix86_option_override_internal (bool main_args_p,
  break;
       }

+  if (!strcmp (opts->x_ix86_arch_string, "lakemont"))
+    {
+      opts->x_target_flags &= ~MASK_80387;
+      opts_set->x_target_flags |= MASK_80387;
+    }
+
   if (TARGET_X32 && (opts->x_ix86_isa_flags & OPTION_MASK_ISA_MPX))
     error ("Intel MPX does not support x32");

Ok for trunk?

Yulia

[-- Attachment #2: patch --]
[-- Type: application/octet-stream, Size: 521 bytes --]

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 4c25c9e..db722aa 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -4943,6 +4943,12 @@ ix86_option_override_internal (bool main_args_p,
 	break;
       }
 
+  if (!strcmp (opts->x_ix86_arch_string, "lakemont"))
+    {
+      opts->x_target_flags &= ~MASK_80387;
+      opts_set->x_target_flags |= MASK_80387;
+    }
+
   if (TARGET_X32 && (opts->x_ix86_isa_flags & OPTION_MASK_ISA_MPX))
     error ("Intel MPX does not support x32");
 

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-10-16 10:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-14 15:08 [PATCH] Fix pr67963 Yulia Koval
2015-10-14 15:15 ` H.J. Lu
2015-10-14 15:17   ` H.J. Lu
2015-10-15  7:53     ` Uros Bizjak
2015-10-15 11:45 ` Uros Bizjak
2015-10-15 16:57   ` Uros Bizjak
2015-10-15 16:59     ` H.J. Lu
2015-10-15 19:16       ` Uros Bizjak
2015-10-15 19:21         ` H.J. Lu
2015-10-15 19:31           ` Uros Bizjak
2015-10-16  6:45             ` Uros Bizjak
2015-10-16  9:37               ` Uros Bizjak
2015-10-16 10:33                 ` H.J. Lu
2015-10-16 10:45                   ` H.J. Lu

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).