This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
libcilkrts portability
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 29 Oct 2013 23:56:57 +0100 (CET)
- Subject: libcilkrts portability
- Authentication-results: sourceware.org; auth=none
Hi Balaji,
On Wed, 23 Oct 2013, Iyer, Balaji V wrote:
> Is there anything you were thinking about that I missed?
the question was in a different context, but making the code a
bit more portable would be good.
Right now FreeBSD bootstrap is broken due to the following in
runtime/config/x86/cilk-abi-vla.c (and others):
#include <assert.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _WIN32
# define alloca _alloca
# define INLINE static __inline
# pragma warning(disable:1025) // Don't whine about zero extending result of unary operation
#else
# include <alloca.h>
# define INLINE static inline
#endif
I'm running out of time on my end, but a bit of autoconf-igury and
# ifdef HAVE_ALLOC_H
# include <alloca.h>
# endif
should heal this.
( http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58918 )
Gerald