diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-03-25 09:00:12 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-04-17 16:12:40 -0300 |
commit | 6de59ecf530b409c33cbfac58ddf31990cb4449c (patch) | |
tree | dfe393be12208aa1bba23eaea0f694eed5966453 /malloc | |
parent | 6272e416053443fcb4b2220f4c8779286d6c60fe (diff) | |
download | glibc-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.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; |