This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Re: [PATCH] SH 32-bit TLS tests for SHcompact


"Stephen Clarke" <stephen.clarke@earthling.net> wrote:
>> Attached is a patch to fix the failures of 32-bit TLS tests of
>> SH ld for SH-5 targets. Tested on sh64-unknown-linux-gnu and
>> sh-unknown-linux-gnu. If there's no objection, I'd like to commit
>> it.
> 
> In rd-sh.exp, should you restore the original value of ASFLAGS
> before exit?  Apart from that, no objection from me.

I've missed it. I'd like to commit the attached patch for rd-sh.exp.
Thanks a lot.

Regards,
	kaz
--

--- ORIG/src/ld/testsuite/ld-sh/rd-sh.exp	Fri Oct 11 22:01:49 2002
+++ LOCAL/src/ld/testsuite/ld-sh/rd-sh.exp	Mon Nov  4 09:11:33 2002
@@ -28,6 +28,12 @@ if ![istarget sh*-*-*] {
     return
 }
 
+if {[istarget sh64*-*-*] || [istarget sh5*-*-*]} then {
+    global ASFLAGS
+    set asflags_save "$ASFLAGS"
+    set ASFLAGS "$ASFLAGS -isa=SHcompact"
+}
+
 set rd_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
 foreach shtest $rd_test_list {
     # We need to strip the ".d", but can leave the dirname.
@@ -44,3 +50,4 @@ foreach shtest $rd_test_list {
 	# FIXME: What if it fails?  Need we do something?
     }
 }
+set ASFLAGS "$asflags_save"


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