Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Skip float complex types if gdb_skip_float_test
@ 2016-10-04 14:34 Yao Qi
  2016-10-04 18:49 ` Pedro Alves
  0 siblings, 1 reply; 4+ messages in thread
From: Yao Qi @ 2016-10-04 14:34 UTC (permalink / raw)
  To: gdb-patches

If the target doesn't support float, we don't run float complex types
tests.

gdb/testsuite:

2016-10-04  Yao Qi  <yao.qi@linaro.org>

	* gdb.base/callfuncs.exp (do_function_calls): Do float
	complex tests if $skip_float_test is true.
---
 gdb/testsuite/gdb.base/callfuncs.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp
index b108952..55294f0 100644
--- a/gdb/testsuite/gdb.base/callfuncs.exp
+++ b/gdb/testsuite/gdb.base/callfuncs.exp
@@ -119,7 +119,7 @@ proc do_function_calls {} {
 	gdb_test "p t_int_double(99, 99.0)" " = 1"
     }
 
-    if [support_complex_tests] {
+    if { [support_complex_tests] && !$skip_float_test } {
 	gdb_test "p t_float_complex_values(fc1, fc2)" " = 1"
 	gdb_test "p t_float_complex_values(fc3, fc4)" " = 0"
 
-- 
1.9.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Skip float complex types if gdb_skip_float_test
  2016-10-04 14:34 [PATCH] Skip float complex types if gdb_skip_float_test Yao Qi
@ 2016-10-04 18:49 ` Pedro Alves
       [not found]   ` <86wphmaox5.fsf@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Pedro Alves @ 2016-10-04 18:49 UTC (permalink / raw)
  To: Yao Qi, gdb-patches

On 10/04/2016 03:34 PM, Yao Qi wrote:
> If the target doesn't support float, we don't run float complex types
> tests.

Shouldn't this be checked within support_complex_tests itself?
AFAIK, _Complex is always about floating point:

 http://en.cppreference.com/w/c/language/arithmetic_types#Complex_floating_types
 http://en.cppreference.com/w/cpp/numeric/complex

Thanks,
Pedro Alves


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Skip float complex types if gdb_skip_float_test
       [not found]   ` <86wphmaox5.fsf@gmail.com>
@ 2016-10-05 14:07     ` Pedro Alves
  2016-10-05 16:06       ` Yao Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Pedro Alves @ 2016-10-05 14:07 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches

On 10/05/2016 02:47 PM, Yao Qi wrote:
> Pedro Alves <palves@redhat.com> writes:
> 
>> Shouldn't this be checked within support_complex_tests itself?
>> AFAIK, _Complex is always about floating point:
>>
>>  http://en.cppreference.com/w/c/language/arithmetic_types#Complex_floating_types
>>  http://en.cppreference.com/w/cpp/numeric/complex
> 
> Right, how about this?
> 

LGTM.

Thanks,
Pedro Alves


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Skip float complex types if gdb_skip_float_test
  2016-10-05 14:07     ` Pedro Alves
@ 2016-10-05 16:06       ` Yao Qi
  0 siblings, 0 replies; 4+ messages in thread
From: Yao Qi @ 2016-10-05 16:06 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb-patches

On Wed, Oct 5, 2016 at 3:07 PM, Pedro Alves <palves@redhat.com> wrote:
>
> LGTM.
>

Patch is pushed in.

-- 
Yao (齐尧)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-05 16:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04 14:34 [PATCH] Skip float complex types if gdb_skip_float_test Yao Qi
2016-10-04 18:49 ` Pedro Alves
     [not found]   ` <86wphmaox5.fsf@gmail.com>
2016-10-05 14:07     ` Pedro Alves
2016-10-05 16:06       ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox