Commit 203f2b73 by Martin Sebor

Fix an ILP32 failure.

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.
parent 803596fe
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> 2020-04-22 Christophe Lyon <christophe.lyon@linaro.org>
* lib/target-supports.exp (check_effective_target_arm_dsp) * lib/target-supports.exp (check_effective_target_arm_dsp)
......
...@@ -189,7 +189,7 @@ void call_strncpy_src_diff_max_m1 (char *d, const char *s, size_t n) ...@@ -189,7 +189,7 @@ void call_strncpy_src_diff_max_m1 (char *d, const char *s, size_t n)
static void static void
wrap_strncpy_src_diff_max (char *d, const char *s, ptrdiff_t i, size_t n) 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) void call_strncpy_src_diff_max (char *d, const char *s, size_t n)
......
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