public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: David Edelsohn <dje@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-4970] testsuite: Use posix_memalign on AIX for tsvc Date: Sat, 6 Nov 2021 15:27:20 +0000 (GMT) [thread overview] Message-ID: <20211106152720.99C403858401@sourceware.org> (raw) https://gcc.gnu.org/g:b3a38d18351788004121e469a8b25504e4a98763 commit r12-4970-gb3a38d18351788004121e469a8b25504e4a98763 Author: David Edelsohn <dje.gcc@gmail.com> Date: Sat Nov 6 11:24:08 2021 -0400 testsuite: Use posix_memalign on AIX for tsvc AIX does not provide memalign, so the testcases much use posix_memalign for portability on AIX. gcc/testsuite/ChangeLog: * gcc.dg/vect/tsvc/tsvc.h (init): Use posix_memalign on AIX. Diff: --- gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h b/gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h index 5dd9ca91040..63ea1e2601f 100644 --- a/gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h +++ b/gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h @@ -189,7 +189,7 @@ void set_2d_array(real_t arr[LEN_2D][LEN_2D], real_t value, int stride) } void init(int** ip, real_t* s1, real_t* s2){ -#ifndef __APPLE__ +#if !defined (__APPLE__) && !defined (_AIX) xx = (real_t*) memalign(ARRAY_ALIGNMENT, LEN_1D*sizeof(real_t)); *ip = (int *) memalign(ARRAY_ALIGNMENT, LEN_1D*sizeof(real_t)); #else
reply other threads:[~2021-11-06 15:27 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=20211106152720.99C403858401@sourceware.org \ --to=dje@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).