This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch for mangle24.C and mangle25.C on x86


This patch fixes a testsuite problem with my patch to fix mangling for
__float80 and __float128 types: these types are only available on i?86
if -mmmx (or an option implying it) is used.  This patch accordingly
adds -mmmx to the options used on 32-bit i?86 and x86_64 in those
testcases.  Tested on i686-pc-linux-gnu, and applied to mainline as an
obvious testsuite fix.  (I don't know *why* these types should depend
on -mmmx.)

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)

2005-06-21  Joseph S. Myers  <joseph@codesourcery.com>

	* g++.dg/abi/mangle24.C, g++.dg/abi/mangle25.C: Pass -mmmx for
	32-bit i?86 and x86_64.

diff -rupN GCC.orig/gcc/testsuite/g++.dg/abi/mangle24.C GCC/gcc/testsuite/g++.dg/abi/mangle24.C
--- GCC.orig/gcc/testsuite/g++.dg/abi/mangle24.C	2005-06-19 20:08:40.000000000 +0000
+++ GCC/gcc/testsuite/g++.dg/abi/mangle24.C	2005-06-21 21:06:03.000000000 +0000
@@ -5,6 +5,8 @@
 // Origin: Joseph Myers <joseph@codesourcery.com>
 // { dg-do compile { target i?86-*-* x86_64-*-* ia64-*-* } } */
 // { dg-options "" } */
+// { dg-options "-mmmx" { target { i?86-*-* && ilp32 } } } */
+// { dg-options "-mmmx" { target { x86_64-*-* && ilp32 } } } */
 // { dg-final { scan-assembler "_Z1fe" { target i?86-*-* x86_64-*-* } } } */
 // { dg-final { scan-assembler "_Z1fe" { target { ia64-*-* && { ! "ia64-*-hpux*" } } } } } */
 // { dg-final { scan-assembler "_Z1fu9__float80" { target ia64-*-hpux* } } } */
diff -rupN GCC.orig/gcc/testsuite/g++.dg/abi/mangle25.C GCC/gcc/testsuite/g++.dg/abi/mangle25.C
--- GCC.orig/gcc/testsuite/g++.dg/abi/mangle25.C	2005-06-19 20:08:40.000000000 +0000
+++ GCC/gcc/testsuite/g++.dg/abi/mangle25.C	2005-06-21 21:06:10.000000000 +0000
@@ -6,6 +6,8 @@
 // Origin: Joseph Myers <joseph@codesourcery.com>
 // { dg-do compile { target i?86-*-* x86_64-*-* ia64-*-* } } */
 // { dg-options "" } */
+// { dg-options "-mmmx" { target { i?86-*-* && ilp32 } } } */
+// { dg-options "-mmmx" { target { x86_64-*-* && ilp32 } } } */
 // { dg-final { scan-assembler "_Z1fg" { target i?86-*-* x86_64-*-* } } } */
 // { dg-final { scan-assembler "_Z1fg" { target { ia64-*-* && { ! "ia64-*-hpux*" } } } } } */
 // { dg-final { scan-assembler "_Z1fe" { target ia64-*-hpux* } } } */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]