public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite, i386] Compile g++.dg/ext/vector26.C with -mmmx
@ 2014-02-10 16:14 Rainer Orth
  2014-02-10 16:19 ` Uros Bizjak
  0 siblings, 1 reply; 2+ messages in thread
From: Rainer Orth @ 2014-02-10 16:14 UTC (permalink / raw)
  To: gcc-patches; +Cc: Uros Bizjak

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

On both Solaris 9/x86 and 32-bit Linux/x86, g++.dg/ext/vector26.C FAILs
like this:

FAIL: g++.dg/ext/vector26.C -std=c++11 (test for excess errors)
Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/ext/vector26.C:6:13: warning: M
MX vector argument without MMX enabled changes the ABI [enabled by default]

Like vector2.C, this can be avoided by compiling with -mmmx for 32-bit
x86.  The following patch does just that.

Tested with the appropriate runtest invocations on i386-pc-solaris2.9,
i386-pc-solaris2.10, i686-unknown-linux-gnu, and
x86_64-unknown-linux-gnu.  Ok for mainline?

	Rainer


2014-02-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* g++.dg/ext/vector26.C: Use -mmmx for 32-bit x86.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: testsuite-g++-ext-vector26.patch --]
[-- Type: text/x-patch, Size: 579 bytes --]

# HG changeset patch
# Parent 19cc283c20f548cc9da82a7acbcba6936ee53ef7
Compile g++.dg/ext/vector26.C with -mmmx

diff --git a/gcc/testsuite/g++.dg/ext/vector26.C b/gcc/testsuite/g++.dg/ext/vector26.C
--- a/gcc/testsuite/g++.dg/ext/vector26.C
+++ b/gcc/testsuite/g++.dg/ext/vector26.C
@@ -1,6 +1,7 @@
 // PR c++/59633
 // In C++98, the definition of bar is an error.  In C++11, bar implicitly
 // gets internal linkage.
+// { dg-options "-mmmx" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
 
 typedef enum { e } T __attribute__((vector_size(8)));
 static void foo(T t) {}

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]


-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

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

* Re: [testsuite, i386] Compile g++.dg/ext/vector26.C with -mmmx
  2014-02-10 16:14 [testsuite, i386] Compile g++.dg/ext/vector26.C with -mmmx Rainer Orth
@ 2014-02-10 16:19 ` Uros Bizjak
  0 siblings, 0 replies; 2+ messages in thread
From: Uros Bizjak @ 2014-02-10 16:19 UTC (permalink / raw)
  To: Rainer Orth; +Cc: gcc-patches

On Mon, Feb 10, 2014 at 5:14 PM, Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
> On both Solaris 9/x86 and 32-bit Linux/x86, g++.dg/ext/vector26.C FAILs
> like this:
>
> FAIL: g++.dg/ext/vector26.C -std=c++11 (test for excess errors)
> Excess errors:
> /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/ext/vector26.C:6:13: warning: M
> MX vector argument without MMX enabled changes the ABI [enabled by default]
>
> Like vector2.C, this can be avoided by compiling with -mmmx for 32-bit
> x86.  The following patch does just that.
>
> Tested with the appropriate runtest invocations on i386-pc-solaris2.9,
> i386-pc-solaris2.10, i686-unknown-linux-gnu, and
> x86_64-unknown-linux-gnu.  Ok for mainline?
>
>         Rainer
>
>
> 2014-02-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
>
>         * g++.dg/ext/vector26.C: Use -mmmx for 32-bit x86.

OK.

Thanks,
Uros.

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

end of thread, other threads:[~2014-02-10 16:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-10 16:14 [testsuite, i386] Compile g++.dg/ext/vector26.C with -mmmx Rainer Orth
2014-02-10 16:19 ` Uros Bizjak

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