]> gcc.gnu.org Git - gcc.git/commit
testsuite, Darwin : Fix tsvc test build on Darwin.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 5 Nov 2021 19:19:53 +0000 (19:19 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 5 Nov 2021 21:06:36 +0000 (21:06 +0000)
commit8f4860f956871c3fd77ed60567d707490104f370
tree820fb1cf24724f9098339420b89833f15e87e340
parentf1e2879ecfc8897df0e25a53e81d1868363c5e08
testsuite, Darwin : Fix tsvc test build on Darwin.

Currently all the tsvc tests fail to build on Darwin because
they assume that <malloc.h> and memalign() are available.

For Darwin, <stdlib.h> is sufficient to obtain the declarations
for malloc and the port has posix_memalign () but not memalign.

Fixed as below.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/testsuite/ChangeLog:

* gcc.dg/vect/tsvc/tsvc.h: Do not try to include malloc.h
on Darwin also use posix_memalign ().
gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h
This page took 0.065351 seconds and 5 git commands to generate.