aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2014-04-05 22:03:44 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2014-04-07 19:07:03 +0200
commit17c34b8f3d79369cfb3a3f9d37109a7051bd8ea4 (patch)
treeb643088e52a0769f1e96bee01da923c64b47e9d4 /ld/testsuite/ld-plugin
parent86ad98c392e804eae299eb6226e16732a521a9b4 (diff)
downloadgdb-17c34b8f3d79369cfb3a3f9d37109a7051bd8ea4.zip
gdb-17c34b8f3d79369cfb3a3f9d37109a7051bd8ea4.tar.gz
gdb-17c34b8f3d79369cfb3a3f9d37109a7051bd8ea4.tar.bz2
Fix spurious failures in ld-plugin/lto.exp
* ld-plugin/lto.exp: Make "-Wp," prefix optional when filtering out _FORTIFY_SOURCE. ("Build libdummy.a 9", "PR ld/12696"): Mark as c++.
Diffstat (limited to 'ld/testsuite/ld-plugin')
-rw-r--r--ld/testsuite/ld-plugin/lto.exp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
index 53543a6..1a525fc 100644
--- a/ld/testsuite/ld-plugin/lto.exp
+++ b/ld/testsuite/ld-plugin/lto.exp
@@ -28,8 +28,8 @@ global CFLAGS
global CXXFLAGS
set saved_CFLAGS "$CFLAGS"
set saved_CXXFLAGS "$CXXFLAGS"
-regsub -all "\\-Wp,-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS "" CFLAGS
-regsub -all "\\-Wp,-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS "" CXXFLAGS
+regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS "" CFLAGS
+regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS "" CXXFLAGS
proc restore_notify { } {
global saved_CFLAGS
@@ -69,7 +69,7 @@ set lto_link_tests {
{lto-6.c} {} "lto-6.exe" "c"}
{"Build libdummy.a 9"
"" "-O2 -finline -flto"
- {lto-9.cc} {} "libdummy.a"}
+ {lto-9.cc} {} "libdummy.a" "c++"}
{"Build libdummy.a 11a"
"" "-O -flto"
{lto-11a.c} {} "libdummy.a"}
@@ -105,7 +105,7 @@ set lto_link_tests {
{lto-15b.c} {} "liblto-15.a"}
{"PR ld/12696"
"-O2 -flto -fuse-linker-plugin -r -nostdlib" "-O2 -flto"
- {pr12696-1.cc} {} "pr12696-1r.o" "c"}
+ {pr12696-1.cc} {} "pr12696-1r.o" "c++"}
{"Build libdummy.a PR ld/12758"
"" ""
{pr12758a.s} {} "libdummy.a"}