]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite, Darwin: Fix darwin-comm-1.c error messages for Darwin <= 10.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 25 Jun 2022 08:58:35 +0000 (09:58 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Mon, 22 Apr 2024 13:05:06 +0000 (14:05 +0100)
commit45385f6932567f1b0ce5e1f809135c73c6b70df5
treebd3dcf5c4f45bfe02e6cca6e47586698e09b6f32
parentb4ad231ce26a66a9e11f246df2c602626d99fc6a
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)
gcc/testsuite/gcc.dg/darwin-comm-1.c