aboutsummaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/libmudflap.cth
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2011-07-01 08:59:20 +0000
committerRainer Orth <ro@gcc.gnu.org>2011-07-01 08:59:20 +0000
commit14a393a3fbc8d1799328f622fb6301b80fc4910e (patch)
treed14cd0802efbabe2056a4896a173c27875c54289 /libmudflap/testsuite/libmudflap.cth
parent3aecd443dadce5ef2c94551bb0fd9a54f6ba5684 (diff)
downloadgcc-14a393a3fbc8d1799328f622fb6301b80fc4910e.zip
gcc-14a393a3fbc8d1799328f622fb6301b80fc4910e.tar.gz
gcc-14a393a3fbc8d1799328f622fb6301b80fc4910e.tar.bz2
re PR libmudflap/49549 (Use of --noinhibit-exec is unportable)
libmudflap: PR libmudflap/49549 * testsuite/lib/libmudflap.exp (load_gcc_lib): Load target-supports.exp. * testsuite/libmudflap.cth/cthfrags.exp: Only pass --noinhibit-exec to GNU ld. gcc: PR libmudflap/49549 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld. gcc/testsuite: PR libmudflap/49549 * lib/target-supports.exp (check_effective_target_gld): New proc. From-SVN: r175749
Diffstat (limited to 'libmudflap/testsuite/libmudflap.cth')
-rw-r--r--libmudflap/testsuite/libmudflap.cth/cthfrags.exp13
1 files changed, 9 insertions, 4 deletions
diff --git a/libmudflap/testsuite/libmudflap.cth/cthfrags.exp b/libmudflap/testsuite/libmudflap.cth/cthfrags.exp
index e5a7de8..a025b03 100644
--- a/libmudflap/testsuite/libmudflap.cth/cthfrags.exp
+++ b/libmudflap/testsuite/libmudflap.cth/cthfrags.exp
@@ -11,10 +11,15 @@ foreach flags $MUDFLAP_FLAGS {
set bsrc [file tail $srcfile]
setenv MUDFLAP_OPTIONS "-viol-segv"
if {$libmudflapth} then {
- # --noinhibit-exec works around a ld problem that causes
- # "Dwarf Error: Invalid or unhandled FORM value: 14"
- # to fail builds unnecessarily.
- dg-runtest $srcfile $flags "-fmudflapth -lmudflapth -lpthread -Wl,--noinhibit-exec"
+ if [check_effective_target_gld] {
+ # --noinhibit-exec works around a ld problem that causes
+ # "Dwarf Error: Invalid or unhandled FORM value: 14"
+ # to fail builds unnecessarily.
+ set noie_option " -Wl,--noinhibit-exec"
+ } else {
+ set noie_option ""
+ }
+ dg-runtest $srcfile $flags "-fmudflapth -lmudflapth -lpthread $noie_option"
} else {
if {$flags != ""} {set f " ($flags)"} {set f ""}
untested "libmudflap.cth/$bsrc$f"