diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-03-25 09:00:12 -0300 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-22 17:47:52 +0800 |
commit | 5b9bc1a172dd15f3562a7305ee365d70e351f2de (patch) | |
tree | 1d918cf4db5f3f801fc8b97a058d69b8fa6bbf34 | |
parent | b5bdef46cc5ba30935c8c71370ab1a71bc75b283 (diff) | |
download | glibc-5b9bc1a172dd15f3562a7305ee365d70e351f2de.zip glibc-5b9bc1a172dd15f3562a7305ee365d70e351f2de.tar.gz glibc-5b9bc1a172dd15f3562a7305ee365d70e351f2de.tar.bz2 |
malloc: Only enable -Waggressive-loop-optimizations suppression for gcc
Reviewed-by: Sam James <sam@gentoo.org>
-rw-r--r-- | malloc/tst-dynarray.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/malloc/tst-dynarray.c b/malloc/tst-dynarray.c index 757add2..1009e27 100644 --- a/malloc/tst-dynarray.c +++ b/malloc/tst-dynarray.c @@ -482,7 +482,7 @@ test_long_overflow (void) iteration would invoke undefined behavior. That loop iteration can never be executed because an allocation of this size must fail. */ - DIAG_IGNORE_NEEDS_COMMENT (12, "-Waggressive-loop-optimizations"); + DIAG_IGNORE_NEEDS_COMMENT_GCC (12, "-Waggressive-loop-optimizations"); TEST_VERIFY (!dynarray_long_resize (&dyn, (SIZE_MAX / sizeof (long)) + 1)); DIAG_POP_NEEDS_COMMENT; @@ -499,7 +499,7 @@ test_long_overflow (void) iteration would invoke undefined behavior. That loop iteration can never be executed because an allocation of this size must fail. */ - DIAG_IGNORE_NEEDS_COMMENT (12, "-Waggressive-loop-optimizations"); + DIAG_IGNORE_NEEDS_COMMENT_GCC (12, "-Waggressive-loop-optimizations"); TEST_VERIFY (!dynarray_long_noscratch_resize (&dyn, (SIZE_MAX / sizeof (long)) + 1)); DIAG_POP_NEEDS_COMMENT; |