diff options
author | Alan Modra <amodra@gmail.com> | 2014-02-21 10:18:01 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-02-21 10:22:51 +1030 |
commit | a97726da10b71c7ec0e45380edb36a821fb108d8 (patch) | |
tree | 1976f1568d66fbf675c395b7a8381a5bb6083470 /ld/testsuite | |
parent | 8b5f0ba3a790aa24765df5251eeeb839f8c8b5f4 (diff) | |
download | gdb-a97726da10b71c7ec0e45380edb36a821fb108d8.zip gdb-a97726da10b71c7ec0e45380edb36a821fb108d8.tar.gz gdb-a97726da10b71c7ec0e45380edb36a821fb108d8.tar.bz2 |
Add ppc476 workaround bootstrap test
I was running this by hand to test out --ppc476-workaround. Another
bootstrap test doesn't take all that long, so let's add it to the
testsuite.
* ld-bootstrap/bootstrap.exp: Add ppc476 workaround test.
* ld-bootstrap/ppc476.t: New file.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-bootstrap/bootstrap.exp | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 58d752a..5e53f4a 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-02-21 Alan Modra <amodra@gmail.com> + + * ld-bootstrap/bootstrap.exp: Add ppc476 workaround test. + * ld-bootstrap/ppc476.t: New file. + 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com> H.J. Lu <hongjiu.lu@intel.com> diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp b/ld/testsuite/ld-bootstrap/bootstrap.exp index 1893873..bf38000 100644 --- a/ld/testsuite/ld-bootstrap/bootstrap.exp +++ b/ld/testsuite/ld-bootstrap/bootstrap.exp @@ -49,9 +49,13 @@ if [check_plugin_api_available] { # order to test -r. Then link the result into an executable, ld1, to # really test -r. Use ld1 to link a fresh ld, ld2. Use ld2 to link a # new ld, ld3. ld2 and ld3 should be identical. +set test_flags {"" "strip" "--static" "--traditional-format" + "--no-keep-memory" "--relax"} +if { [istarget "powerpc-*-*"] } { + lappend test_flags "--ppc476-workaround" +} -foreach flags {"" "strip" "--static" "--traditional-format" - "--no-keep-memory" "--relax"} { +foreach flags $test_flags { set do_strip "no" if {"$flags" == "strip"} { set testname "bootstrap with $flags" @@ -69,6 +73,10 @@ foreach flags {"" "strip" "--static" "--traditional-format" set partial_flags "" } + if { $partial_flags == "--ppc476-workaround" } { + append partial_flags " -T $srcdir/$subdir/ppc476.t" + } + # This test can only be run if we have the ld build directory, # since we need the object files. if {$ld != "$objdir/ld-new"} { |