]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix an ILP32 failure.
authorMartin Sebor <msebor@redhat.com>
Wed, 22 Apr 2020 15:30:37 +0000 (09:30 -0600)
committerMartin Sebor <msebor@redhat.com>
Wed, 22 Apr 2020 15:34:43 +0000 (09:34 -0600)
gcc/testsuite/ChangeLog:

PR middle-end/94647
* c-c++-common/Warray-bounds-2.c: Replace a large value harcoded
in an expected warning with a pattern.

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Warray-bounds-2.c

index 34669b2306d540ed27ec5d2f2c2bb952d7167a95..e60da71c99cd453fc1c2cb5599563ccb8fba2c22 100644 (file)
@@ -1,3 +1,9 @@
+2020-04-22  Martin Sebor  <msebor@redhat.com>
+
+       PR middle-end/94647
+       * c-c++-common/Warray-bounds-2.c: Replace a large value harcoded
+       in an expected warning with a pattern.
+
 2020-04-22  Christophe Lyon  <christophe.lyon@linaro.org>
 
         * lib/target-supports.exp (check_effective_target_arm_dsp)
index 8c6e0a62b15244ce61855466f21989ec777c3e52..7400a29d4beec62444dc8dd8e2b9839a1924ce99 100644 (file)
@@ -189,7 +189,7 @@ void call_strncpy_src_diff_max_m1 (char *d, const char *s, size_t n)
 static void
 wrap_strncpy_src_diff_max (char *d, const char *s, ptrdiff_t i, size_t n)
 {
-  strncpy (d, s + i, n);  /* { dg-warning "pointer overflow between offset 9223372036854775807 and size \\\[1, 0]" } */
+  strncpy (d, s + i, n);  /* { dg-warning "pointer overflow between offset \[0-9\]+ and size \\\[1, 0]" } */
 }
 
 void call_strncpy_src_diff_max (char *d, const char *s, size_t n)