public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6720] Fix tsvc test build on DragonFly.
@ 2022-01-19  6:47 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-01-19  6:47 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8160b410517e1e3493d92358579d380872acb3e8

commit r12-6720-g8160b410517e1e3493d92358579d380872acb3e8
Author: Rimvydas Jasinskas <rimvydas.jas@gmail.com>
Date:   Tue Jan 18 06:27:17 2022 +0000

    Fix tsvc test build on DragonFly.
    
    Currently all tsvc tests fail to build on DragonFly BSD because they
    assume <malloc.h> and memalign() are available.
    
    gcc/testsuite/ChangeLog:
    
            PR testsuite/104021
            * gcc.dg/vect/tsvc/tsvc.h: Do not include malloc.h on dragonfly
            and use posix_memalign ().
    
    Signed-off-by: Rimvydas Jasinskas <rimvydas.jas@gmail.com>

Diff:
---
 gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h b/gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h
index 665ca747f8e..75494c24cfa 100644
--- a/gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h
+++ b/gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h
@@ -11,7 +11,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#ifndef __APPLE__
+#if !defined(__APPLE__) && !defined(__DragonFly__)
 #include <malloc.h>
 #endif
 #include <string.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){
-#if !defined (__APPLE__) && !defined (_AIX)
+#if !defined (__APPLE__) && !defined (_AIX) && !defined(__DragonFly__)
     xx = (real_t*) memalign(ARRAY_ALIGNMENT, LEN_1D*sizeof(real_t));
     *ip = (int *) memalign(ARRAY_ALIGNMENT, LEN_1D*sizeof(real_t));
 #else


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-19  6:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-19  6:47 [gcc r12-6720] Fix tsvc test build on DragonFly Martin Liska

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).