diff options
author | Jonathan Yong <10walls@gmail.com> | 2022-12-20 09:16:16 +0000 |
---|---|---|
committer | Jonathan Yong <10walls@gmail.com> | 2022-12-21 23:15:48 +0000 |
commit | 37d8312f560f1e2f49aedd09a192fdc4c605b3e1 (patch) | |
tree | 47f5f6ec86b63c52cfee92028dca33882724a5f7 /gcc/testsuite/gcc.c-torture | |
parent | 193fccaa5c3525e979a989835c47c76d2c49d10c (diff) | |
download | gcc-37d8312f560f1e2f49aedd09a192fdc4c605b3e1.zip gcc-37d8312f560f1e2f49aedd09a192fdc4c605b3e1.tar.gz gcc-37d8312f560f1e2f49aedd09a192fdc4c605b3e1.tar.bz2 |
testsuite: Fix pr55569.c excess errors on LLP64
This fixes the following on LLP64 mingw-w64 target:
Excess errors:
gcc/testsuite/gcc.c-torture/compile/pr55569.c:13:12: warning: overflow in conversion from 'long long unsigned int' to 'long int' changes value from '4611686018427387903' to '-1' [-Woverflow]
gcc/testsuite/gcc.c-torture/compile/pr55569.c:13:34: warning: iteration 2147483647 invokes undefined behavior [-Waggressive-loop-optimizations]
gcc/testsuite/ChangeLog:
* gcc.c-torture/compile/pr55569.c: fix excess errors.
Signed-off-by: Jonathan Yong <10walls@gmail.com>
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr55569.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr55569.c b/gcc/testsuite/gcc.c-torture/compile/pr55569.c index cf274cd..6c2c7c7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr55569.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr55569.c @@ -4,7 +4,7 @@ int *bar (void); void foo (void) { - long x; + __INTPTR_TYPE__ x; int *y = bar (); /* The loop below may be optimized to a call to memset with a size |