summaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib/g++.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/lib/g++.exp')
-rw-r--r--gcc/testsuite/lib/g++.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/g++.exp b/gcc/testsuite/lib/g++.exp
index 7ca5b739781..07f1c504eb2 100644
--- a/gcc/testsuite/lib/g++.exp
+++ b/gcc/testsuite/lib/g++.exp
@@ -185,6 +185,8 @@ proc g++_init { args } {
global GXX_UNDER_TEST
global TESTING_IN_BUILD_TREE
global target_triplet
+ global gcc_warning_prefix
+ global gcc_error_prefix
# We set LC_ALL and LANG to C so that we get the same error messages as expected.
setenv LC_ALL C
@@ -247,6 +249,9 @@ proc g++_init { args } {
# error-message parsing machinery.
lappend ALWAYS_CXXFLAGS "additional_flags=-fmessage-length=0"
+ set gcc_warning_prefix "warning:"
+ set gcc_error_prefix "error:"
+
if { [string match "*-*-darwin*" $target_triplet] } {
lappend ALWAYS_CXXFLAGS "ldflags=-multiply_defined suppress"
}