Commit f8cc9a48 by Uros Bizjak

* 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
parent ba29e5c2
...@@ -1746,18 +1746,26 @@ proc check_effective_target_double64plus { } { ...@@ -1746,18 +1746,26 @@ proc check_effective_target_double64plus { } {
# 0 otherwise. # 0 otherwise.
proc check_effective_target_has_w_floating_suffix { } { 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 { return [check_no_compiler_messages w_fp_suffix object {
float dummy = 1.0w; float dummy = 1.0w;
} "-std=gnu++03 -w"] } "$opts"]
} }
# Return 1 if the target supports 'q' suffix on floating constant # Return 1 if the target supports 'q' suffix on floating constant
# 0 otherwise. # 0 otherwise.
proc check_effective_target_has_q_floating_suffix { } { 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 { return [check_no_compiler_messages q_fp_suffix object {
float dummy = 1.0q; float dummy = 1.0q;
} "-std=gnu++03 -w"] } "$opts"]
} }
# Return 1 if the target supports compiling fixed-point, # Return 1 if the target supports compiling fixed-point,
# 0 otherwise. # 0 otherwise.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment