]> git.ipfire.org Git - thirdparty/gcc.git/commit
btf: Fix up btf-datasec-1.c test on x86
authorJakub Jelinek <jakub@redhat.com>
Wed, 27 Mar 2024 19:22:02 +0000 (20:22 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 27 Mar 2024 19:22:02 +0000 (20:22 +0100)
commitf89c83aa139521804241d21e006557ac5a421f51
tree308534a48abed1c95423ff2a4bcab44dad03a728
parent9ff034fcff8ccab6eb82bf2cd36e2d24b2df9b78
btf: Fix up btf-datasec-1.c test on x86

> -/* The offset entry for each variable in a DATSEC should be 0 at compile time.  */
> -/* { dg-final { scan-assembler-times "0\[\t \]+\[^\n\]*bts_offset" 7 } } */
> +/* The offset entry for each variable in a DATSEC should contain a label.  */
> +/* { dg-final { scan-assembler-times ".4byte\[\t \]\[a-e\]\[\t \]+\[^\n\]*bts_offset" 5 } } */

4byte is used only on some targets, what exact assembler directive is used
for 4byte unaligned data is heavily target dependent.

2024-03-27  Jakub Jelinek  <jakub@redhat.com>

* gcc.dg/debug/btf/btf-cvr-quals-1.c: Use dg-additional-options
instead of multiple dg-options.
* gcc.dg/debug/btf/btf-datasec-1.c: Likewise.  Accept all supported
unaligned 4 byte assembler directives rather than assuming it must
be .4byte.
gcc/testsuite/gcc.dg/debug/btf/btf-cvr-quals-1.c
gcc/testsuite/gcc.dg/debug/btf/btf-datasec-1.c