testsuite: Skip cases for default_packed targets
The memchr test cases expect padding to be present in structures. But this is not true for targets which pack by default. Skip these test cases in order to avoid static assert errors when checking field offsets. gcc/testsuite/ChangeLog: * gcc.dg/memchr.c: Skip for default_packed targets. * gcc.dg/memcmp-3.c: Ditto. Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
This commit is contained in:
parent
0a7c4d6b67
commit
8381665fdd
|
@ -1,6 +1,7 @@
|
|||
/* PR middle-end/78257 - missing memcmp optimization with constant arrays
|
||||
{ dg-do compile }
|
||||
{ dg-options "-O -Wall -fdump-tree-optimized" } */
|
||||
{ dg-options "-O -Wall -fdump-tree-optimized" }
|
||||
{ dg-skip-if "test assumes structs are not packed" { default_packed } } */
|
||||
|
||||
typedef __INT8_TYPE__ int8_t;
|
||||
typedef __INT16_TYPE__ int16_t;
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* PR middle-end/78257 - missing memcmp optimization with constant arrays
|
||||
{ dg-do compile }
|
||||
{ dg-options "-O -Wall -fdump-tree-optimized" }
|
||||
{ dg-skip-if "missing data representation" { "pdp11-*-*" } } */
|
||||
{ dg-skip-if "missing data representation" { "pdp11-*-*" } }
|
||||
{ dg-skip-if "test assumes structs are not packed" { default_packed } } */
|
||||
|
||||
#define offsetof(T, m) __builtin_offsetof (T, m)
|
||||
|
||||
|
|
Loading…
Reference in New Issue