[PATCH] Update pathname for IBM long double description.

2021-09-27 Thread Vincent Lefevre
Update due to file moved to libgcc/config/rs6000/ibm-ldouble-format
in commit aca0b0b315f6e5a0ee60981fd4b0cbc9a7f59096.

Signed-off-by: Vincent Lefevre 
---
 include/floatformat.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/floatformat.h b/include/floatformat.h
index 5f9c14361f5..288aedda192 100644
--- a/include/floatformat.h
+++ b/include/floatformat.h
@@ -91,7 +91,7 @@ struct floatformat
 
   /* Is the format actually the sum of two smaller floating point
  formats (IBM long double, as described in
- gcc/config/rs6000/darwin-ldouble-format)?  If so, this is the
+ libgcc/config/rs6000/ibm-ldouble-format)?  If so, this is the
  smaller format in question, and the fields sign_start through
  intbit describe the first half.  If not, this is NULL.  */
   const struct floatformat *split_half;
-- 
2.33.0



testcase for PR c/36299

2011-03-11 Thread Vincent Lefevre
As asked in PR c/36299[*], here's a testcase for this PR. It checks
the absence of warning for some valid C code, to make sure the warning
no longer reappears in future GCC versions.

[*] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36299#c10

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
/* PR c/36299 */
/* { dg-do compile } */
/* { dg-options "-Waddress" } */

int
foo(void)
{
  char a[1];
  return a == 0;
}