public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Richard Sandiford <rsandifo@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-5345] aarch64: Update sizeless tests Date: Wed, 25 Jan 2023 11:24:49 +0000 (GMT) [thread overview] Message-ID: <20230125112449.551583858D28@sourceware.org> (raw) https://gcc.gnu.org/g:7c47a3bea6f270a6e0a778eb1acd5f76e863213f commit r13-5345-g7c47a3bea6f270a6e0a778eb1acd5f76e863213f Author: Richard Sandiford <richard.sandiford@arm.com> Date: Wed Jan 25 11:24:32 2023 +0000 aarch64: Update sizeless tests The sizeless-*.c tests contained (deliberately) invalid constructors that had two errors. The first error now suppresses the second error, but the second error was the main focus of the test. This patch therefore rewrites it into a different form. gcc/testsuite/ * gcc.target/aarch64/sve/acle/general-c/sizeless-1.c: Avoid "initializer element is not constant" error. * gcc.target/aarch64/sve/acle/general-c/sizeless-2.c: Likewise. Diff: --- gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-1.c | 3 +-- gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-2.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-1.c b/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-1.c index 4b34a71c1fe..01cfd14f873 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-1.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-1.c @@ -30,8 +30,7 @@ union union1 { /* Pointers to sizeless types. */ svint8_t *global_sve_sc_ptr; -svint8_t *invalid_sve_sc_ptr = &(svint8_t) { *global_sve_sc_ptr }; /* { dg-error {initializer element is not constant} } */ - /* { dg-error {SVE type 'svint8_t' does not have a fixed size} "2nd line" { target *-*-* } .-1 } */ +svint8_t *invalid_sve_sc_ptr = &(svint8_t) {}; /* { dg-error {SVE type 'svint8_t' does not have a fixed size} } */ /* Sizeless arguments and return values. */ diff --git a/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-2.c b/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-2.c index 34dfd598e32..613b9c47878 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-2.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-2.c @@ -30,8 +30,7 @@ union union1 { /* Pointers to sizeless types. */ svint8_t *global_sve_sc_ptr; -svint8_t *invalid_sve_sc_ptr = &(svint8_t) { *global_sve_sc_ptr }; /* { dg-error {initializer element is not constant} } */ - /* { dg-error {SVE type 'svint8_t' does not have a fixed size} "2nd line" { target *-*-* } .-1 } */ +svint8_t *invalid_sve_sc_ptr = &(svint8_t) {}; /* { dg-error {SVE type 'svint8_t' does not have a fixed size} } */ /* Sizeless arguments and return values. */
reply other threads:[~2023-01-25 11:24 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=20230125112449.551583858D28@sourceware.org \ --to=rsandifo@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).