Add -gno-strict-dwarf to dg-options in various btf enum tests
The -gno-strict-dwarf option is needed to ensure enum signedness is added to type_die. 2024-01-22 John David Anglin <danglin@gcc.gnu.org> gcc/testsuite/ChangeLog: PR debug/113382 * gcc.dg/debug/btf/btf-bitfields-3.c: Add -gno-strict-dwarf option to dg-options. * gcc.dg/debug/btf/btf-enum-1.c: Likewise. * gcc.dg/debug/btf/btf-enum-small.c: Likewise. * gcc.dg/debug/btf/btf-enum64-1.c: Likewise.
This commit is contained in:
parent
41caf6b0d6
commit
bc77c035c4
4 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O0 -gbtf -dA" } */
|
||||
/* { dg-options "-O0 -gbtf -gno-strict-dwarf -dA" } */
|
||||
|
||||
/* Enum with 4 members. */
|
||||
/* { dg-final { scan-assembler-times "\[\t \]0x6000004\[\t \]+\[^\n\]*btt_info" 1 } } */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Test BTF generation for enums. */
|
||||
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O0 -gbtf -fno-short-enums -dA" } */
|
||||
/* { dg-options "-O0 -gbtf -gno-strict-dwarf -fno-short-enums -dA" } */
|
||||
|
||||
/* { dg-final { scan-assembler-times "\[\t \]0x6000004\[\t \]+\[^\n\]*btt_info" 1 } } */
|
||||
/* { dg-final { scan-assembler-times "\[\t \]0x86000003\[\t \]+\[^\n\]*btt_info" 1 } } */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Test BTF generation for small enums. */
|
||||
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -gbtf -dA" } */
|
||||
/* { dg-options "-O2 -gbtf -gno-strict-dwarf -dA" } */
|
||||
|
||||
/* { dg-final { scan-assembler-not "bte_value_lo32" } } */
|
||||
/* { dg-final { scan-assembler-not "bte_value_hi32" } } */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Test BTF generation for 64 bits enums. */
|
||||
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O0 -gbtf -dA" } */
|
||||
/* { dg-options "-O0 -gbtf -gno-strict-dwarf -dA" } */
|
||||
|
||||
/* { dg-final { scan-assembler-times "\[\t \].size\[\t \]_?myenum1,\[\t \]8" 1 } } */
|
||||
/* { dg-final { scan-assembler-times "\[\t \].size\[\t \]_?myenum2,\[\t \]8" 1 } } */
|
||||
|
|
Loading…
Add table
Reference in a new issue