From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 3B11C3857803; Thu, 1 Dec 2022 07:39:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B11C3857803 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669880398; bh=Id3IjVYVpmtyR0SSfDD93611ofkP8CEw4XZcGhFBWnQ=; h=From:To:Subject:Date:From; b=qP+CIfGR5afdMh+GVrGDlQmw9QQ0IateS5FyAGXmwzXGGyEoBWkvXvolUxDD1Lzb9 ALnCQ/oFPA4mexjNWRxi2gV0dxgcXHi8Uk5SeGX5cVX31YZoqZ9q8Nxi8SAqtMqYmI LBFk13Kyva8V6Xx8Xb+pD1mKPUzqflcpbVMHiolI= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] [testsuite] [arm/aarch64] -fno-short-enums for auto-init-[12].c X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: 4028927b80f7cdc4edf438b39b2bf4028a9e5eff X-Git-Newrev: c3dea07dfda1172381a3b99efc00ad2bf042533a Message-Id: <20221201073958.3B11C3857803@sourceware.org> Date: Thu, 1 Dec 2022 07:39:58 +0000 (GMT) List-Id: https://gcc.gnu.org/g:c3dea07dfda1172381a3b99efc00ad2bf042533a commit c3dea07dfda1172381a3b99efc00ad2bf042533a Author: Alexandre Oliva Date: Thu Dec 1 04:38:46 2022 -0300 [testsuite] [arm/aarch64] -fno-short-enums for auto-init-[12].c On arm-eabi, and possibly on other platforms, -fshort-enums is enabled by default, which breaks some tests' expectations as to enum sizes with DEFERRED_INIT. Disable short enums so that the expectations are met. for gcc/testsuite/ChangeLog * c-c++-common/auto-init-1.c: Add -fno-short-enums. * c-c++-common/auto-init-2.c: Likewise. Change-Id: Ia07e607fe349cb4e0b7178f979e6cb07289c3a48 TN: VB12-010 Diff: --- gcc/testsuite/c-c++-common/auto-init-1.c | 2 +- gcc/testsuite/c-c++-common/auto-init-2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/c-c++-common/auto-init-1.c b/gcc/testsuite/c-c++-common/auto-init-1.c index df04358728b..3e6a4984eea 100644 --- a/gcc/testsuite/c-c++-common/auto-init-1.c +++ b/gcc/testsuite/c-c++-common/auto-init-1.c @@ -1,6 +1,6 @@ /* Verify zero initialization for integer and pointer type automatic variables. */ /* { dg-do compile { target { ilp32 || lp64 } } } */ -/* { dg-options "-ftrivial-auto-var-init=zero -fdump-tree-gimple" } */ +/* { dg-options "-ftrivial-auto-var-init=zero -fno-short-enums -fdump-tree-gimple" } */ #ifndef __cplusplus # define bool _Bool diff --git a/gcc/testsuite/c-c++-common/auto-init-2.c b/gcc/testsuite/c-c++-common/auto-init-2.c index 6ac63bb1dda..d356e508b83 100644 --- a/gcc/testsuite/c-c++-common/auto-init-2.c +++ b/gcc/testsuite/c-c++-common/auto-init-2.c @@ -1,6 +1,6 @@ /* Verify pattern initialization for integer and pointer type automatic variables. */ /* { dg-do compile { target { ilp32 || lp64 } } } */ -/* { dg-options "-ftrivial-auto-var-init=pattern -fdump-tree-gimple" } */ +/* { dg-options "-ftrivial-auto-var-init=pattern -fno-short-enums -fdump-tree-gimple" } */ #ifndef __cplusplus # define bool _Bool