From 594dc04813751aa479a77f866f2bd179fba03730 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 7 Apr 2007 15:58:00 +0000 Subject: [PATCH] i386.c (ix86_handle_option): Handle SSSE3. 2007-04-07 H.J. Lu * config/i386/i386.c (ix86_handle_option): Handle SSSE3. From-SVN: r123639 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/i386.c | 18 ++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e6e5b7abe8a..886b4607b12 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-04-07 H.J. Lu + + * config/i386/i386.c (ix86_handle_option): Handle SSSE3. + 2007-04-06 Daniel Berlin * tree.c (staticp): No longer use staticp langhook. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 0429232d0f0..aaa8ea87465 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -1571,20 +1571,30 @@ ix86_handle_option (size_t code, const char *arg ATTRIBUTE_UNUSED, int value) case OPT_msse: if (!value) { - target_flags &= ~(MASK_SSE2 | MASK_SSE3 | MASK_SSE4A); - target_flags_explicit |= MASK_SSE2 | MASK_SSE3 | MASK_SSE4A; + target_flags &= ~(MASK_SSE2 | MASK_SSE3 | MASK_SSSE3 + | MASK_SSE4A); + target_flags_explicit |= (MASK_SSE2 | MASK_SSE3 | MASK_SSSE3 + | MASK_SSE4A); } return true; case OPT_msse2: if (!value) { - target_flags &= ~(MASK_SSE3 | MASK_SSE4A); - target_flags_explicit |= MASK_SSE3 | MASK_SSE4A; + target_flags &= ~(MASK_SSE3 | MASK_SSSE3 | MASK_SSE4A); + target_flags_explicit |= MASK_SSE3 | MASK_SSSE3 | MASK_SSE4A; } return true; case OPT_msse3: + if (!value) + { + target_flags &= ~(MASK_SSSE3 | MASK_SSE4A); + target_flags_explicit |= MASK_SSSE3 | MASK_SSE4A; + } + return true; + + case OPT_mssse3: if (!value) { target_flags &= ~MASK_SSE4A; -- 2.30.2