public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] s390-vregs.exp: Avoid compile errors with older GCCs and on 31-bit targets
@ 2015-04-08 16:29 Andreas Arnez
  2015-04-08 17:13 ` Ulrich Weigand
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Arnez @ 2015-04-08 16:29 UTC (permalink / raw)
  To: gdb-patches; +Cc: Ulrich Weigand

The test case s390-vregs.exp yields compile errors on 31-bit targets
as well as when using a GCC that defaults to an older "-march=".  This
patch fixes these issues.

gdb/testsuite/ChangeLog:

	* gdb.arch/s390-vregs.S (change_vrs): Replace exrl by an
	appropriate .insn, such that an older assembler can be used.
	* gdb.arch/s390-vregs.exp: Add the compile flag -mzarch, to enable
	the z/Architecture instruction set on 31-bit targets as well.
---
 gdb/testsuite/gdb.arch/s390-vregs.S   | 4 ++--
 gdb/testsuite/gdb.arch/s390-vregs.exp | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/gdb/testsuite/gdb.arch/s390-vregs.S b/gdb/testsuite/gdb.arch/s390-vregs.S
index 4b48a83..7388e7d 100644
--- a/gdb/testsuite/gdb.arch/s390-vregs.S
+++ b/gdb/testsuite/gdb.arch/s390-vregs.S
@@ -56,8 +56,8 @@ change_vrs:
 	.cfi_startproc
 	lghi	%r1,16
 	lghi	%r3,0xff
-1:	exrl	%r3,2f
-	exrl	%r3,1f
+1:	.insn	ril,0xc60000000000,%r3,2f /* exrl */
+	.insn	ril,0xc60000000000,%r3,1f /* exrl */
 	aghi	%r3,-0x11
 	brctg	%r1,1b
 	br	%r14
diff --git a/gdb/testsuite/gdb.arch/s390-vregs.exp b/gdb/testsuite/gdb.arch/s390-vregs.exp
index 8333c32..7d3c9bb 100644
--- a/gdb/testsuite/gdb.arch/s390-vregs.exp
+++ b/gdb/testsuite/gdb.arch/s390-vregs.exp
@@ -29,7 +29,8 @@ if [isnative] {
     remote_exec build "mkdir $coredir"
 }
 
-if { [prepare_for_testing ${testfile}.exp $testfile $srcfile] } {
+if { [prepare_for_testing ${testfile}.exp $testfile $srcfile \
+	  [list "additional_flags=-mzarch"]] } {
     return -1
 }
 
-- 
2.3.0

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

* Re: [PATCH] s390-vregs.exp: Avoid compile errors with older GCCs and on 31-bit targets
  2015-04-08 16:29 [PATCH] s390-vregs.exp: Avoid compile errors with older GCCs and on 31-bit targets Andreas Arnez
@ 2015-04-08 17:13 ` Ulrich Weigand
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Weigand @ 2015-04-08 17:13 UTC (permalink / raw)
  To: Andreas Arnez; +Cc: gdb-patches

Andreas Arnez wrote:

> 	* gdb.arch/s390-vregs.S (change_vrs): Replace exrl by an
> 	appropriate .insn, such that an older assembler can be used.
> 	* gdb.arch/s390-vregs.exp: Add the compile flag -mzarch, to enable
> 	the z/Architecture instruction set on 31-bit targets as well.

This is OK.

Thanks,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU/Linux compilers and toolchain
  Ulrich.Weigand@de.ibm.com

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

end of thread, other threads:[~2015-04-08 17:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-08 16:29 [PATCH] s390-vregs.exp: Avoid compile errors with older GCCs and on 31-bit targets Andreas Arnez
2015-04-08 17:13 ` Ulrich Weigand

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