public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2005] testsuite: gcc.dg/debug/btf/btf-bitfields-3.c requires -fno-short-enums PR debug/101321
@ 2021-07-05 11:41 Christophe Lyon
  0 siblings, 0 replies; only message in thread
From: Christophe Lyon @ 2021-07-05 11:41 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0ea47850bbb38ea81a34c503533d4dd0f3391f19

commit r12-2005-g0ea47850bbb38ea81a34c503533d4dd0f3391f19
Author: Christophe Lyon <christophe.lyon@foss.st.com>
Date:   Mon Jul 5 11:33:45 2021 +0000

    testsuite: gcc.dg/debug/btf/btf-bitfields-3.c requires -fno-short-enums PR debug/101321
    
    arm-eabi uses -fshort-enums by default while arm-linux-gnueabi* do not,
    like most (all?) other targets, but this test relies -fno-short-enums.
    Fix it by forcing -fno-short-enums.
    
    2021-07-05  Christophe Lyon  <christophe.lyon@foss.st.com>
    
            PR debug/101321
            gcc/testsuite/
            * gcc.dg/debug/btf/btf-bitfields-3.c: Add -fno-short-enums.

Diff:
---
 gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-3.c b/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-3.c
index 440623c3b16..5e68416e2c2 100644
--- a/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-3.c
+++ b/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-3.c
@@ -15,7 +15,7 @@
    */
 
 /* { dg-do compile } */
-/* { dg-options "-O0 -gbtf -dA" } */
+/* { dg-options "-O0 -gbtf -dA -fno-short-enums" } */
 
 /* Enum with 4 members.  */
 /* { dg-final { scan-assembler-times "\[\t \]0x6000004\[\t \]+\[^\n\]*btt_info" 1 } } */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-05 11:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 11:41 [gcc r12-2005] testsuite: gcc.dg/debug/btf/btf-bitfields-3.c requires -fno-short-enums PR debug/101321 Christophe Lyon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).