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:
John David Anglin 2024-01-22 19:07:32 +00:00
parent 41caf6b0d6
commit bc77c035c4
4 changed files with 4 additions and 4 deletions

View file

@ -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 } } */

View file

@ -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 } } */

View file

@ -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" } } */

View file

@ -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 } } */