pr22374 function pointer initialization
authorAlan Modra <amodra@gmail.com>
Fri, 12 Jan 2018 10:40:48 +0000 (21:10 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 12 Jan 2018 10:43:11 +0000 (21:13 +1030)
When I added this test I said I'd look at fixing more targets.
That hasn't happened yet, so xfail to tidy results.

* testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
initialization" for currently failing targets.

ld/ChangeLog
ld/testsuite/ld-elf/elf.exp

index 39f79fecc240970889f39306ef30b69346e82ed7..0514bdd2f6bde2c665a3072f0f05043dc82f183b 100644 (file)
@@ -1,3 +1,8 @@
+2018-01-12  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
+       initialization" for currently failing targets.
+
 2018-01-12  Alan Modra  <amodra@gmail.com>
 
        PR ld/22649
index d277987cb0103a79243159b8f00acf8bd5d59b30..0b005dea906a517e4974ada9a0c5385687d923c5 100644 (file)
@@ -234,6 +234,21 @@ if { [check_shared_lib_support] } then {
     run_ld_link_tests {
        {"Build pr22374 shared library"
            "-shared" "" "" "pr22374b.s" {} "pr22374.so" }
+    }
+    if { ![istarget "alpha-*-*"]
+        && ![istarget "frv-*-*"]
+        && ![istarget "hppa*-*-*"]
+        && ![istarget "i?86-*-*"]
+        && ![istarget "ia64-*-*"]
+        && ![istarget "microblaze-*-*"]
+        && ![istarget "powerpc*-*-*"]
+        && ![istarget "x86_64-*-*"]
+        && ![istarget "xtensa-*-*"] } {
+       # The next test checks that copy relocs are not used unnecessarily,
+       # but that is just an optimization so don't complain loudly.
+       setup_xfail "*-*-*"
+    }
+    run_ld_link_tests {
        {"pr22374 function pointer initialization"
            "" "tmpdir/pr22374.so" "" "pr22374a.s"
            { {readelf {--wide -r --dyn-syms} "pr22374-1.r"}
This page took 0.034618 seconds and 4 git commands to generate.