]> git.ipfire.org Git - thirdparty/gcc.git/commit
[testsuite] tsvc: skip include malloc.h when unavailable
authorAlexandre Oliva <oliva@adacore.com>
Wed, 24 May 2023 06:07:46 +0000 (03:07 -0300)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Fri, 9 Feb 2024 10:50:59 +0000 (11:50 +0100)
commit5b3dcff46780192a2e526bc434d61c8626898050
tree1446c20b47f4f200fa6e5b20d1ce29594ebfc99d
parent810b0b3f75c454da3f6b5722870716796d2d7a83
[testsuite] tsvc: skip include malloc.h when unavailable

tsvc tests all fail on systems that don't offer a malloc.h, other than
those that explicitly rule that out.  Use the preprocessor to test for
malloc.h's availability.

tsvc.h also expects a definition for struct timeval, but it doesn't
include sys/time.h.  Add a conditional include thereof.

for  gcc/testsuite/ChangeLog

* gcc.dg/vect/tsvc/tsvc.h: Test for and conditionally include
malloc.h and sys/time.h.

(cherry picked from commit 2f20d6296087cae51f55eeecb3efefe786191fd6)
gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h