testsuite: Skip some gcc.dg/plugin tests for default_packed targets
commitac81fea349b7af8a9aa1dc47b5f9a07a0f9a73f6
authorHans-Peter Nilsson <hp@axis.com>
Fri, 17 Mar 2023 16:03:34 +0000 (17 17:03 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Fri, 17 Mar 2023 23:44:05 +0000 (18 00:44 +0100)
treec805ebe640636d6d70dcf987080b1d2ce2d0a7e4
parent6f90de97634d6f1617a054429f28b85fbfbd8b6f
testsuite: Skip some gcc.dg/plugin tests for default_packed targets

Avoid unweildy structure-layout-specific message-matching
expressions by exluding targets that lay out structures as
if they had been specified with __attribute__ ((__packed__)),
for tests where multiple messages depend on the structure
layout.

It's arguably a judgement call whether to skip some of these
tests or add multiple lines of matches depending on the
layout of structures.

* gcc.dg/plugin/infoleak-2.c,
gcc.dg/plugin/infoleak-CVE-2011-1078-1.c,
gcc.dg/plugin/infoleak-CVE-2011-1078-2.c,
gcc.dg/plugin/infoleak-CVE-2017-18549-1.c,
gcc.dg/plugin/infoleak-CVE-2017-18550-1.c,
gcc.dg/plugin/infoleak-antipatterns-1.c,
gcc.dg/plugin/infoleak-fixit-1.c: Skip for default_packed targets.
gcc/testsuite/gcc.dg/plugin/infoleak-2.c
gcc/testsuite/gcc.dg/plugin/infoleak-CVE-2011-1078-1.c
gcc/testsuite/gcc.dg/plugin/infoleak-CVE-2011-1078-2.c
gcc/testsuite/gcc.dg/plugin/infoleak-CVE-2017-18549-1.c
gcc/testsuite/gcc.dg/plugin/infoleak-CVE-2017-18550-1.c
gcc/testsuite/gcc.dg/plugin/infoleak-antipatterns-1.c
gcc/testsuite/gcc.dg/plugin/infoleak-fixit-1.c