https://sourceware.org/bugzilla/show_bug.cgi?id=33162

--- Comment #3 from Rainer Orth <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #2 from Nick Alcock <nick.alcock at oracle dot com> ---
> There's a big pile of libctf/ failures too, none of which I remember seeing
> before... I'll have a look at those.

The only remaining one I see is on 32-bit Solaris/SPARC:

FAIL: Arrays (conflicted)
FAIL: Conflicted data syms, partially indexed, stripped, with variables
FAIL: Conflicted data syms, partially indexed, stripped
FAIL: Function
FAIL: Nonrepresentable types

All of them fail in the same way, when assembling the gcc -gctf -S
output:

./tmpdir/array-char-conflicting-1.s:89: Error: Architecture mismatch on "return
%i7+8".
./tmpdir/array-char-conflicting-1.s:89: (Requires
v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is sparclite.)

When I let gcc invoke as, it is called with

as -v --gdwarf-5 -V -Qy -s -xarch=v8plus -32 -K PIC

The crucial part here is -xarch=v8plus (resp. -Av8plus in as' native syntax).

The following patch fixed all of them for me:

diff --git a/ld/testsuite/ld-ctf/ctf.exp b/ld/testsuite/ld-ctf/ctf.exp
--- a/ld/testsuite/ld-ctf/ctf.exp
+++ b/ld/testsuite/ld-ctf/ctf.exp
@@ -38,6 +38,11 @@ if {[info exists env(LC_ALL)]} {
 }
 set env(LC_ALL) "C"

+set saved_ASFLAGS "$ASFLAGS"
+if [istarget "sparc-*-*"] {
+    append ASFLAGS " -Av8plus"
+}
+
 set ctf_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]

 foreach ctf_test $ctf_test_list {
@@ -50,6 +55,8 @@ foreach ctf_test $ctf_test_list {
     run_dump_test [file rootname $ctf_test] { { cc "-gctf -fPIC" } }
 }

+set ASFLAGS "$saved_ASFLAGS"
+
 if {[info exists old_lc_all]} {
     set env(LC_ALL) $old_lc_all
 } else {

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to