diff options
author | Sam James <sam@gentoo.org> | 2024-11-11 10:33:42 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-11-11 22:47:01 +0000 |
commit | b8a6ddb6fc1832abc1b396f285b864858bb18026 (patch) | |
tree | 8489941bc48c9491fd911e03760d795d033307a7 /tests | |
parent | NOCOLOR -> NO_COLOR (diff) | |
download | sandbox-b8a6ddb6fc1832abc1b396f285b864858bb18026.tar.gz sandbox-b8a6ddb6fc1832abc1b396f285b864858bb18026.tar.bz2 sandbox-b8a6ddb6fc1832abc1b396f285b864858bb18026.zip |
When building with -fisolate-erroneous-paths-attribute, GCC turns
the call to utimensat w/ a NULL arg into a trap because of its nonnull
attribute(s). Workaround that in the test.
Bug: https://bugs.gentoo.org/549108
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/utimensat-0.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/utimensat-0.c b/tests/utimensat-0.c index 99c3fa4..4e8b89c 100644 --- a/tests/utimensat-0.c +++ b/tests/utimensat-0.c @@ -1,3 +1,6 @@ +#pragma GCC push_options +#pragma GCC optimize("-fno-isolate-erroneous-paths-dereference,-fno-isolate-erroneous-paths-attribute") + #define CONFIG HAVE_UTIMENSAT #define FUNC utimensat #define SFUNC "utimensat" @@ -20,3 +23,5 @@ int flags = at_get_flags(s); #include "test-skel-0.c" + +#pragma GCC pop_options |