diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2012-11-16 15:53:53 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2012-11-16 15:53:53 +0100 |
commit | f8cc9a484dc28e7eacc09d53a4c8fbb4a6ab2311 (patch) | |
tree | 2ab2a47db19ee4d5a9e0aacbd7bdeff1f77cdf7d /gcc | |
parent | ba29e5c26fc00c246fac8e6f225d2fe095666714 (diff) | |
download | gcc-f8cc9a484dc28e7eacc09d53a4c8fbb4a6ab2311.zip gcc-f8cc9a484dc28e7eacc09d53a4c8fbb4a6ab2311.tar.gz gcc-f8cc9a484dc28e7eacc09d53a4c8fbb4a6ab2311.tar.bz2 |
* lib/target-supports.exp
(check_effective_target_has_w_floating_suffix): Use options for c++ only.
(check_effective_target_has_q_floating_suffix): Ditto.
From-SVN: r193559
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 184e161..af7fb94 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1746,18 +1746,26 @@ proc check_effective_target_double64plus { } { # 0 otherwise. proc check_effective_target_has_w_floating_suffix { } { + set opts "" + if [check_effective_target_c++] { + append opts "-std=gnu++03" + } return [check_no_compiler_messages w_fp_suffix object { float dummy = 1.0w; - } "-std=gnu++03 -w"] + } "$opts"] } # Return 1 if the target supports 'q' suffix on floating constant # 0 otherwise. proc check_effective_target_has_q_floating_suffix { } { + set opts "" + if [check_effective_target_c++] { + append opts "-std=gnu++03" + } return [check_no_compiler_messages q_fp_suffix object { float dummy = 1.0q; - } "-std=gnu++03 -w"] + } "$opts"] } # Return 1 if the target supports compiling fixed-point, # 0 otherwise. |