Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [commit] Use -mabi=altivec for AltiVec tests
@ 2007-10-21 13:05 Ulrich Weigand
  2007-10-21 18:08 ` Daniel Jacobowitz
  0 siblings, 1 reply; 15+ messages in thread
From: Ulrich Weigand @ 2007-10-21 13:05 UTC (permalink / raw)
  To: gdb-patches

Hello,

both altivec-abi.exp and altivec-regs.exp had a number of test cases
failing because the test case source code was compiled without using
the -mabi=altivec flag.  As GDB expects the inferior to use the 
AltiVec ABI, we need to compile the test case accordingly ...

Committed to mainline.

Bye,
Ulrich 


ChangeLog:

	* gdb.arch/altivec-abi.exp (compile_flags): Use -mabi=altivec when
	compiling test case with GCC.
	* gdb.arch/altivec-regs.exp (compile_flags): Likewise.

diff -urNp gdb-orig/gdb/testsuite/gdb.arch/altivec-abi.exp gdb-head/gdb/testsuite/gdb.arch/altivec-abi.exp
--- gdb-orig/gdb/testsuite/gdb.arch/altivec-abi.exp	2007-10-21 01:24:25.000000000 +0200
+++ gdb-head/gdb/testsuite/gdb.arch/altivec-abi.exp	2007-10-21 14:25:12.820540991 +0200
@@ -48,7 +48,7 @@ if [get_compiler_info $binfile] {
 }
 
 if [test_compiler_info gcc*] {
-    set compile_flags "$compile_flags additional_flags=-maltivec"
+    set compile_flags "$compile_flags additional_flags=-maltivec additional_flags=-mabi=altivec"
 } elseif [test_compiler_info xlc*] {
     set compile_flags "$compile_flags additional_flags=-qaltivec"
 } else {
diff -urNp gdb-orig/gdb/testsuite/gdb.arch/altivec-regs.exp gdb-head/gdb/testsuite/gdb.arch/altivec-regs.exp
--- gdb-orig/gdb/testsuite/gdb.arch/altivec-regs.exp	2007-10-21 14:24:45.702324095 +0200
+++ gdb-head/gdb/testsuite/gdb.arch/altivec-regs.exp	2007-10-21 14:25:12.824540415 +0200
@@ -48,7 +48,7 @@ if [get_compiler_info $binfile] {
 }
 
 if [test_compiler_info gcc*] {
-    set compile_flags "$compile_flags additional_flags=-maltivec"
+    set compile_flags "$compile_flags additional_flags=-maltivec additional_flags=-mabi=altivec"
 } elseif [test_compiler_info xlc*] {
     set compile_flags "$compile_flags additional_flags=-qaltivec"
 } else {
-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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

end of thread, other threads:[~2007-10-30 20:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-21 13:05 [commit] Use -mabi=altivec for AltiVec tests Ulrich Weigand
2007-10-21 18:08 ` Daniel Jacobowitz
2007-10-21 19:37   ` Ulrich Weigand
2007-10-24 20:47     ` Daniel Jacobowitz
2007-10-29 18:04       ` Ulrich Weigand
2007-10-29 18:06         ` Daniel Jacobowitz
2007-10-29 18:32           ` Ulrich Weigand
2007-10-25 20:32     ` [rfc] PowerPC ABI detection and overrides Daniel Jacobowitz
2007-10-29 18:27       ` Ulrich Weigand
2007-10-29 18:38         ` Daniel Jacobowitz
2007-10-29 19:02           ` Ulrich Weigand
2007-10-29 19:16             ` Daniel Jacobowitz
2007-10-29 19:27               ` Ulrich Weigand
2007-10-30 20:12       ` Daniel Jacobowitz
2007-10-30 21:12         ` Ulrich Weigand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox