]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: target test for short_enums
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Wed, 13 Mar 2024 14:04:25 +0000 (15:04 +0100)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Wed, 13 Mar 2024 14:16:44 +0000 (15:16 +0100)
commit5a44e14eb4ff47317b420de10fcc2512a6a6e0fb
tree6c05ff4b91da1c51637692e57ea00447401606da
parent4d049fadc25585e336c06e6b60b592f40ddbcc12
testsuite: target test for short_enums

On arm-none-eabi, the test case fails with below warning on GCC13
.../null-deref-pr108251-smp_fetch_ssl_fc_has_early-O2.c:63:65: warning: converting a packed 'enum obj_type' pointer (alignment 1) to a 'struct connection' pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member]

Add a dg-bogus to ensure that the warning is not reintroduced.

gcc/testsuite/ChangeLog:

* c-c++-common/analyzer/null-deref-pr108251-smp_fetch_ssl_fc_has_early-O2.c:
Added dg-bogus with target on offending line for short_enums.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
gcc/testsuite/c-c++-common/analyzer/null-deref-pr108251-smp_fetch_ssl_fc_has_early-O2.c