From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id 620353849AC3; Mon, 22 Apr 2024 13:05:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 620353849AC3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713791125; bh=B4euaV5sQtApNlHarXRhUI8uwUuUM8WFCLJvR5nkswc=; h=From:To:Subject:Date:From; b=dhF06E4KUFltsCAVDyVWyogLBVN2kyG+/HbjUHWAcFH3bX9BKzuTdV4BGRCNlEFpA gxhB234+5wSirsCuJfItvRY+Q/4FMVJPxiZdY25LitbQjWCYeKUoHv0cVB3EV02RWQ khtWYUBrz34XBOMj2d5Bnk2EhZLNLovcDJbo9HT8= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-11333] testsuite, Darwin: Fix darwin-comm-1.c error messages for Darwin <= 10. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/releases/gcc-11 X-Git-Oldrev: b4ad231ce26a66a9e11f246df2c602626d99fc6a X-Git-Newrev: 45385f6932567f1b0ce5e1f809135c73c6b70df5 Message-Id: <20240422130525.620353849AC3@sourceware.org> Date: Mon, 22 Apr 2024 13:05:25 +0000 (GMT) List-Id: https://gcc.gnu.org/g:45385f6932567f1b0ce5e1f809135c73c6b70df5 commit r11-11333-g45385f6932567f1b0ce5e1f809135c73c6b70df5 Author: Iain Sandoe Date: Sat Jun 25 09:58:35 2022 +0100 testsuite, Darwin: Fix darwin-comm-1.c error messages for Darwin <= 10. When amending the allowed alignment size to accommodate the larger values permitted by newer tools, we retained the object file limit of 2^15 for Darwin versions <= 10, since that is what the native tools expect there. This triggers a different diagnostic path with a distinct error message, which is checked in the revised test here. Signed-off-by: Iain Sandoe gcc/testsuite/ChangeLog: * gcc.dg/darwin-comm-1.c: Check for the correct error message for Darwin <= 10. (cherry picked from commit 54a5f478487a955c3ffaec3e9164a72599bc1cfb) Diff: --- gcc/testsuite/gcc.dg/darwin-comm-1.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/darwin-comm-1.c b/gcc/testsuite/gcc.dg/darwin-comm-1.c index 46519984fd8..2ea11d63d81 100644 --- a/gcc/testsuite/gcc.dg/darwin-comm-1.c +++ b/gcc/testsuite/gcc.dg/darwin-comm-1.c @@ -1,5 +1,6 @@ -/* { dg-do compile { target *-*-darwin[912]* } } */ +/* { dg-do compile { target *-*-darwin* } } */ /* { dg-options "-fcommon" } */ /* In all cases, common has a max alignment of 2^15. */ -int badcommon __attribute__ ((aligned (65536))); /* { dg-error "common variables must have an alignment" } */ +int badcommon __attribute__ ((aligned (65536))); /* { dg-error "common variables must have an alignment" "" { target { *-*-darwin1[1-9]* *-*-darwin2* } } } */ +/* { dg-error "requested alignment .65536. exceeds object file maximum 32768" "" { target { *-*-darwin[4-9]* *-*-darwin10* } } .-1 } */ \ No newline at end of file