aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-25 09:00:12 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:40 -0300
commit6de59ecf530b409c33cbfac58ddf31990cb4449c (patch)
treedfe393be12208aa1bba23eaea0f694eed5966453 /malloc
parent6272e416053443fcb4b2220f4c8779286d6c60fe (diff)
downloadglibc-6de59ecf530b409c33cbfac58ddf31990cb4449c.zip
glibc-6de59ecf530b409c33cbfac58ddf31990cb4449c.tar.gz
glibc-6de59ecf530b409c33cbfac58ddf31990cb4449c.tar.bz2
malloc: Only enable -Waggressive-loop-optimizations suppression for gcc
Diffstat (limited to 'malloc')
-rw-r--r--malloc/tst-dynarray.c4
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;