diff mbox series

[COMMITTED] testsuite: gcc.dg/debug/btf/btf-bitfields-3.c requires -fno-short-enums PR debug/101321

Message ID 1625485446179.61020@foss.st.com
State New
Headers show
Series [COMMITTED] testsuite: gcc.dg/debug/btf/btf-bitfields-3.c requires -fno-short-enums PR debug/101321 | expand

Commit Message

Christophe Lyon July 5, 2021, 11:44 a.m. UTC
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.
---
 gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

From 0ea47850bbb38ea81a34c503533d4dd0f3391f19 Mon Sep 17 00:00:00 2001
From: Christophe Lyon <christophe.lyon@foss.st.com>
Date: Mon, 5 Jul 2021 11:33:45 +0000
Subject: [PATCH] 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.
---
 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 } } */
-- 
2.25.1