public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2022-04-04 12:55 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 12:55 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8e6b5f96a39aaecd760b14bc542b4eaa70010223

commit 8e6b5f96a39aaecd760b14bc542b4eaa70010223
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));


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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2024-04-17 20:08 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-04-17 20:08 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9193695399a8e6cf79a9825a7ef480f21e080583

commit 9193695399a8e6cf79a9825a7ef480f21e080583
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c
    
    The type generic fabs expansion issues the floating point absolute with
    the wrong argument type (for instance cabs with floating point or fabs
    with a complex type) and clang warns that implicit conversion might
    incur in unexpected behavior.

Diff:
---
 math/bug-tgmath1.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..1c97df0a40 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,6 +30,12 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* The type generic fabs expansion issues the floating point absolute with
+     the wrong argument type (for instance cabs with floating point or fabs
+     with a complex type) and clang warns that implicit conversion might
+     incur in unexpected behavior.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));

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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2024-04-02 15:54 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-04-02 15:54 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6638a9c1005be0c95fe7379cabb38d481e98aa6f

commit 6638a9c1005be0c95fe7379cabb38d481e98aa6f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c
    
    The type generic fabs expansion issues the floating point absolute with
    the wrong argument type (for instance cabs with floating point or fabs
    with a complex type) and clang warns that implicit conversion might
    incur in unexpected behavior.

Diff:
---
 math/bug-tgmath1.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..1c97df0a40 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,6 +30,12 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* The type generic fabs expansion issues the floating point absolute with
+     the wrong argument type (for instance cabs with floating point or fabs
+     with a complex type) and clang warns that implicit conversion might
+     incur in unexpected behavior.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));

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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2024-02-09 17:33 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-02-09 17:33 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8135781ced0959951eacde8d5ab184fafb46ca6a

commit 8135781ced0959951eacde8d5ab184fafb46ca6a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c
    
    The type generic fabs expansion issues the floating point absolute with
    the wrong argument type (for instance cabs with floating point or fabs
    with a complex type) and clang warns that implicit conversion might
    incur in unexpected behavior.

Diff:
---
 math/bug-tgmath1.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..1c97df0a40 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,6 +30,12 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* The type generic fabs expansion issues the floating point absolute with
+     the wrong argument type (for instance cabs with floating point or fabs
+     with a complex type) and clang warns that implicit conversion might
+     incur in unexpected behavior.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));

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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2024-02-07 14:08 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-02-07 14:08 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5651ad7af72230de7767212da5831c9d06896202

commit 5651ad7af72230de7767212da5831c9d06896202
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c
    
    The type generic fabs expansion issues the floating point absolute with
    the wrong argument type (for instance cabs with floating point or fabs
    with a complex type) and clang warns that implicit conversion might
    incur in unexpected behavior.

Diff:
---
 math/bug-tgmath1.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..1c97df0a40 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,6 +30,12 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* The type generic fabs expansion issues the floating point absolute with
+     the wrong argument type (for instance cabs with floating point or fabs
+     with a complex type) and clang warns that implicit conversion might
+     incur in unexpected behavior.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));

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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2024-01-29 17:58 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-01-29 17:58 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=db6c777dcd9350692f94aa4ab0a6e76917987515

commit db6c777dcd9350692f94aa4ab0a6e76917987515
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c
    
    The type generic fabs expansion issues the floating point absolute with
    the wrong argument type (for instance cabs with floating point or fabs
    with a complex type) and clang warns that implicit conversion might
    incur in unexpected behavior.

Diff:
---
 math/bug-tgmath1.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..1c97df0a40 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,6 +30,12 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* The type generic fabs expansion issues the floating point absolute with
+     the wrong argument type (for instance cabs with floating point or fabs
+     with a complex type) and clang warns that implicit conversion might
+     incur in unexpected behavior.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));

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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2023-12-21 18:55 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2023-12-21 18:55 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6fe7bf9c6edc443142ccff9dba1bee72628dcd95

commit 6fe7bf9c6edc443142ccff9dba1bee72628dcd95
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c
    
    The type generic fabs expansion issues the floating point absolute with
    the wrong argument type (for instance cabs with floating point or fabs
    with a complex type) and clang warns that implicit conversion might
    incur in unexpected behavior.

Diff:
---
 math/bug-tgmath1.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..1c97df0a40 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,6 +30,12 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* The type generic fabs expansion issues the floating point absolute with
+     the wrong argument type (for instance cabs with floating point or fabs
+     with a complex type) and clang warns that implicit conversion might
+     incur in unexpected behavior.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));

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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2023-09-28 17:53 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2023-09-28 17:53 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7d3353535f976531d49fc0fe6bbb0a1ec28b6c8f

commit 7d3353535f976531d49fc0fe6bbb0a1ec28b6c8f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c
    
    The type generic fabs expansion issues the floating point absolute with
    the wrong argument type (for instance cabs with floating point or fabs
    with a complex type) and clang warns that implicit conversion might
    incur in unexpected behavior.

Diff:
---
 math/bug-tgmath1.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..1c97df0a40 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,6 +30,12 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* The type generic fabs expansion issues the floating point absolute with
+     the wrong argument type (for instance cabs with floating point or fabs
+     with a complex type) and clang warns that implicit conversion might
+     incur in unexpected behavior.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));

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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2023-08-30 12:37 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2023-08-30 12:37 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=288013026b33991b6c875c3d186966fde9a2b607

commit 288013026b33991b6c875c3d186966fde9a2b607
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));

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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2023-02-09 19:49 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2023-02-09 19:49 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9ca4c5e67ae975dc979a79004844e72139a9912d

commit 9ca4c5e67ae975dc979a79004844e72139a9912d
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));

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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2022-10-28 17:43 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:43 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=14501b237d364936f826e04bb089ff5880c40a53

commit 14501b237d364936f826e04bb089ff5880c40a53
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));

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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2022-10-04 13:00 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 13:00 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7929aee471d2fee9ea5b5beca212f48949fde66d

commit 7929aee471d2fee9ea5b5beca212f48949fde66d
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));

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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2022-06-09 21:21 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:21 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=dbba13221b1e367c7d7d79d7ee0f807d50cff5d5

commit dbba13221b1e367c7d7d79d7ee0f807d50cff5d5
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));


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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2022-06-09 13:18 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 13:18 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=dbba13221b1e367c7d7d79d7ee0f807d50cff5d5

commit dbba13221b1e367c7d7d79d7ee0f807d50cff5d5
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));


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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2022-06-03 14:07 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-06-03 14:07 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6b9d62e147c818c02b450cd401216a2679cb2962

commit 6b9d62e147c818c02b450cd401216a2679cb2962
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));


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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2022-05-13 14:21 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-05-13 14:21 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6542dafeaa53c362c0428e9eff8fedb47fd6824e

commit 6542dafeaa53c362c0428e9eff8fedb47fd6824e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));


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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2022-05-12 19:35 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-05-12 19:35 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4eb64b04cdb0a3396f930fc6b68b3370d822b21f

commit 4eb64b04cdb0a3396f930fc6b68b3370d822b21f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));


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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2022-05-10 18:25 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:25 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=162740f9da8a1960c496e7e7e39074837befe283

commit 162740f9da8a1960c496e7e7e39074837befe283
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));


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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2022-04-29 14:05 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:05 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4a86f73f61bd50cf275cb6eb838d88492c08c571

commit 4a86f73f61bd50cf275cb6eb838d88492c08c571
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));


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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2022-03-31 19:08 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-03-31 19:08 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=295df6bbcacc1eaec7c15a3bd91ea30f504b70f7

commit 295df6bbcacc1eaec7c15a3bd91ea30f504b70f7
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));


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

* [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c
@ 2022-03-29 20:31 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:31 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7125840a109a85ad253e2f6040e6a7c2e6622192

commit 7125840a109a85ad253e2f6040e6a7c2e6622192
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 11:08:44 2022 -0300

    math: Fix clang warnings on bug-tgmath1.c

Diff:
---
 math/bug-tgmath1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/math/bug-tgmath1.c b/math/bug-tgmath1.c
index 16db9d17a1..ca819671ea 100644
--- a/math/bug-tgmath1.c
+++ b/math/bug-tgmath1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <tgmath.h>
+#include <libc-diag.h>
 
 
 int
@@ -29,12 +30,16 @@ main (void)
   TEST (cimag (1.0f), sizeof (float));
   TEST (cimag (1.0f + 1.0fi), sizeof (float));
 
+  /* TODO: add why clang requires this.  */
+  DIAG_PUSH_NEEDS_COMMENT_CLANG;
+  DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wabsolute-value");
   TEST (fabs (1.0), sizeof (double));
   TEST (fabs (1.0 + 1.0i), sizeof (double));
   TEST (fabs (1.0l), sizeof (long double));
   TEST (fabs (1.0l + 1.0li), sizeof (long double));
   TEST (fabs (1.0f), sizeof (float));
   TEST (fabs (1.0f + 1.0fi), sizeof (float));
+  DIAG_POP_NEEDS_COMMENT_CLANG;
 
   TEST (carg (1.0), sizeof (double));
   TEST (carg (1.0 + 1.0i), sizeof (double));


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

end of thread, other threads:[~2024-04-17 20:08 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 12:55 [glibc/azanella/clang] math: Fix clang warnings on bug-tgmath1.c Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2024-04-17 20:08 Adhemerval Zanella
2024-04-02 15:54 Adhemerval Zanella
2024-02-09 17:33 Adhemerval Zanella
2024-02-07 14:08 Adhemerval Zanella
2024-01-29 17:58 Adhemerval Zanella
2023-12-21 18:55 Adhemerval Zanella
2023-09-28 17:53 Adhemerval Zanella
2023-08-30 12:37 Adhemerval Zanella
2023-02-09 19:49 Adhemerval Zanella
2022-10-28 17:43 Adhemerval Zanella
2022-10-04 13:00 Adhemerval Zanella
2022-06-09 21:21 Adhemerval Zanella
2022-06-09 13:18 Adhemerval Zanella
2022-06-03 14:07 Adhemerval Zanella
2022-05-13 14:21 Adhemerval Zanella
2022-05-12 19:35 Adhemerval Zanella
2022-05-10 18:25 Adhemerval Zanella
2022-04-29 14:05 Adhemerval Zanella
2022-03-31 19:08 Adhemerval Zanella
2022-03-29 20:31 Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).