public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Iain D Sandoe <iains@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-11333] testsuite, Darwin: Fix darwin-comm-1.c error messages for Darwin <= 10. Date: Mon, 22 Apr 2024 13:05:25 +0000 (GMT) [thread overview] Message-ID: <20240422130525.620353849AC3@sourceware.org> (raw) https://gcc.gnu.org/g:45385f6932567f1b0ce5e1f809135c73c6b70df5 commit r11-11333-g45385f6932567f1b0ce5e1f809135c73c6b70df5 Author: Iain Sandoe <iain@sandoe.co.uk> 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 <iain@sandoe.co.uk> 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
reply other threads:[~2024-04-22 13:05 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240422130525.620353849AC3@sourceware.org \ --to=iains@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).