diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-07-31 14:02:17 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-07-31 14:02:17 +0100 |
commit | 3aa4b66ad93c21ae838e52982c2f3be60b74af20 (patch) | |
tree | 4db0f92c8311740ba392021d2f3eae647d3fbeb2 | |
parent | 93cb9a5aa147c94d18c708fa67e6fcb546dd7391 (diff) | |
download | gcc-3aa4b66ad93c21ae838e52982c2f3be60b74af20.zip gcc-3aa4b66ad93c21ae838e52982c2f3be60b74af20.tar.gz gcc-3aa4b66ad93c21ae838e52982c2f3be60b74af20.tar.bz2 |
Make check_effective_target_c++ work for libstdc++
* lib/target-supports.exp (check_effective_target_c): Fix indentation.
(check_effective_target_c++): Likewise. Also match for libstdc++.
From-SVN: r238916
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 829d897..ab7ab94 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-07-31 Jonathan Wakely <jwakely@redhat.com> + + * lib/target-supports.exp (check_effective_target_c): Fix indentation. + (check_effective_target_c++): Likewise. Also match for libstdc++. + 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/41922 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 770268f..9c5194d 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -7001,9 +7001,9 @@ proc check_effective_target_masm_intel {} { # Return 1 if the language for the compiler under test is C. proc check_effective_target_c { } { - global tool + global tool if [string match $tool "gcc"] { - return 1 + return 1 } return 0 } @@ -7011,9 +7011,9 @@ proc check_effective_target_c { } { # Return 1 if the language for the compiler under test is C++. proc check_effective_target_c++ { } { - global tool - if [string match $tool "g++"] { - return 1 + global tool + if { [string match $tool "g++"] || [string match $tool "libstdc++"] } { + return 1 } return 0 } |