search for: __builtin_alloca

Displaying 20 results from an estimated 20 matches for "__builtin_alloca".

2005 May 19
1
make fails in errors.c (PR#7881)
.../nmath/libnmath.a -lg2c -lm ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib -lreadline -lm -liconv errors.o(.text+0x154b): In function `do_gettext': /usr/local/R-2.1.0/src/main/errors.c:779: undefined reference to `__builtin_alloca' errors.o(.text+0x15fa):/usr/local/R-2.1.0/src/main/errors.c:752: undefined reference to `__builtin_alloca' errors.o(.text+0x1652):/usr/local/R-2.1.0/src/main/errors.c:760: undefined reference to `__builtin_alloca' errors.o(.text+0x16aa):/usr/local/R-2.1.0/src/main/errors.c:770: undefin...
2005 Apr 23
1
R-2.1.0 doesn't compile on FreeBSD6-CURRENT
.../nmath/libnmath.a -lg2c -lm ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib -lreadline -lm -liconv errors.o(.text+0x154b): In function `do_gettext': /usr/local/R-2.1.0/src/main/errors.c:779: undefined reference to `__builtin_alloca' errors.o(.text+0x15fa):/usr/local/R-2.1.0/src/main/errors.c:752: undefined reference to `__builtin_alloca' errors.o(.text+0x1652):/usr/local/R-2.1.0/src/main/errors.c:760: undefined reference to `__builtin_alloca' errors.o(.text+0x16aa):/usr/local/R-2.1.0/src/main/errors.c:770: undefin...
2005 Apr 23
1
R-2.1.0 doesn't compile on FreeBSD6-CURRENT
.../nmath/libnmath.a -lg2c -lm ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib -lreadline -lm -liconv errors.o(.text+0x154b): In function `do_gettext': /usr/local/R-2.1.0/src/main/errors.c:779: undefined reference to `__builtin_alloca' errors.o(.text+0x15fa):/usr/local/R-2.1.0/src/main/errors.c:752: undefined reference to `__builtin_alloca' errors.o(.text+0x1652):/usr/local/R-2.1.0/src/main/errors.c:760: undefined reference to `__builtin_alloca' errors.o(.text+0x16aa):/usr/local/R-2.1.0/src/main/errors.c:770: undefin...
2005 Jun 06
1
Unable to compile R-2.1.0
...nmath.a -lf77blas -latlas -lg2c -lm ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib -lreadline -lm -liconv errors.o(.text+0x154b): In function `do_gettext': /tmp/R-2.1.0/src/main/errors.c:779: undefined reference to `__builtin_alloca' errors.o(.text+0x15fa):/tmp/R-2.1.0/src/main/errors.c:752: undefined reference to `__builtin_alloca' errors.o(.text+0x1652):/tmp/R-2.1.0/src/main/errors.c:760: undefined reference to `__builtin_alloca' errors.o(.text+0x16aa):/tmp/R-2.1.0/src/main/errors.c:770: undefined reference to `_...
2009 Dec 30
7
DO NOT REPLY [Bug 7015] New: Build problems on HP-UX, Tru64 -- alloca, -Wno-unused-parameter
...Suggestion: dyi # gdiff -u ./popt/system.h_orig ./popt/system.h --- ./popt/system.h_orig 2006-11-08 20:37:38.000000000 -0600 +++ ./popt/system.h 2009-12-30 05:03:15.000000000 -0600 @@ -87,6 +87,8 @@ # endif #elif defined(__GNUC__) && defined(__STRICT_ANSI__) #define alloca __builtin_alloca +#elif HAVE_ALLOCA_H +# include <alloca.h> #endif #ifndef HAVE_STRLCPY Rationale: The use of GCC should not preclude the use of <alloca.h>. I haven't looked at what happens with __STRICT_ANSI__ defined, so even broader use of <alloca.h> may make more sense ("#if&...
2008 Jan 11
1
[LLVMdev] Patch for NetBSD support in CBackend.cpp
...Krister -------------- next part -------------- Index: CBackend.cpp =================================================================== --- CBackend.cpp (revision 45865) +++ CBackend.cpp (working copy) @@ -1323,7 +1323,7 @@ static void generateCompilerSpecificCode << "extern void *__builtin_alloca(unsigned int);\n" << "#endif\n" << "#define alloca(x) __builtin_alloca(x)\n" - << "#elif defined(__FreeBSD__) || defined(__OpenBSD__)\n" + << "#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenB...
2013 Nov 27
2
non-standard alloca.h
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 AFAIK, alloca.h is not POSIX. Here's a patch that includes alloca.h only when it's really there. It also includes malloc.h, which is where mingw-w64 defines the alloca() macro, mapping it to gcc __builtin_alloca() or to msvcrt _alloca(). - -- O< ascii ribbon - stop html email! - www.asciiribbon.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (MingW32) iQEcBAEBAgAGBQJSlZK/AAoJEOs4Jb6SI2CwQDcIAKGk45RjPmcu4zwgZslFATk8 0vRxrdNmmfO+kOfd+ugh7AYkxUnD94uWVYn3uIxMu1hBXPAo1H74ItFP9TX9D3qg ELJzCN4DpZt8...
2005 May 23
2
alloca() on FreeBSD (PR#7890)
Full_Name: Eric van Gyzen Version: 2.1.0 OS: FreeBSD 5.4 Submission from: (NULL) (152.3.22.33) R-2.1.0 fails to compile on the newest release of FreeBSD, complaining about undefined references to __builtin_alloca. On FreeBSD, alloca() is declared in stdlib.h, not alloca.h as the R sources expect. Therefore, HAVE_DECL_ALLOCA does not get set, so the R sources declare alloca() after it has already been #defined by stdlib.h. A possible fix is to modify the configure script to look for the declaration of all...
2008 Feb 16
2
[LLVMdev] linux/x86-64 codegen support
Interestingly, in the .i file there are 2 __builtin_alloca, and EmitBuiltinAlloca is only being called once. Andrew On 2/16/08, Andrew Lenharth <andrewl at lenharth.org> wrote: > libcpp/charset.c:631 turns into: > > %tmp16 = tail call i64 @strlen( i8* %to ) nounwind readonly > ; <i64> [#uses=1] > %tmp18 = t...
2013 May 22
1
[LLVMdev] x86 frame pointer and __builtin_setjmp/__builtin_longjmp
...use rsp or rbp to address local variables? When built with Clang, the following program will segfault, but it is fine when built with GCC. The target is x86_64 linux. int main(int argc, char *argv[]) { void *buf[20]; __attribute__((__aligned__(64))) char q; // realign the stack char *p = __builtin_alloca(argc); // dynamic alloca if (__builtin_setjmp(buf)) { *p = 'p'; q = 'q'; return 0; } asm("movq $0, %rbx"); __builtin_longjmp(buf, 1); } LLVM is choosing to use rbx as a base pointer to access p and q, but during builtin_setjmp, rbx...
2008 Feb 16
0
[LLVMdev] linux/x86-64 codegen support
Andrew Lenharth wrote: > Interestingly, in the .i file there are 2 __builtin_alloca, and > EmitBuiltinAlloca is only being called once. > > Hmm, here EmitBuiltinAlloca gets called twice, but it looks like validate_arglist is rejecting the args both times. I have 2 calls to alloca generated: $ grep alloca x.bc|grep call %tmp21 = call i8* @alloca( i64 %tmp20 )...
2004 Sep 11
0
[LLVMdev] POST MORTEM: llvm-test changes
...rnations of lint. On platforms where alloca() is not in libc, * programs which use it will fail to link when compiled with non-GNU * compilers. */ #if __GNUC__ >= 2 || defined(__INTEL_COMPILER) #undef alloca /* some GNU bits try to get cute and define this on their own */ #define alloca(sz) __builtin_alloca(sz) #elif defined(lint) void *alloca(size_t); #endif
2013 Nov 27
0
non-standard alloca.h
On Tue, Nov 26, 2013 at 10:35 PM, LRN <lrn1986 at gmail.com> wrote: > AFAIK, alloca.h is not POSIX. Here's a patch that includes alloca.h > only when it's really there. > It also includes malloc.h, which is where mingw-w64 defines the > alloca() macro, mapping it to gcc __builtin_alloca() or to msvcrt > _alloca(). This whole path is only triggered when the compiler is unable to use C99 var arrays. Did you actually bump into this with something that can use configure? (e.g. do we have a problem with the var array test someplace)
2008 Feb 16
0
[LLVMdev] linux/x86-64 codegen support
libcpp/charset.c:631 turns into: %tmp16 = tail call i64 @strlen( i8* %to ) nounwind readonly ; <i64> [#uses=1] %tmp18 = tail call i64 @strlen( i8* %from ) nounwind readonly ; <i64> [#uses=1] %tmp19 = add i64 %tmp16, 2 ; <i64> [#uses=1] %tmp20 = add i64 %tmp19, %tmp18 ; <i64> [#uses=1] %tmp21 = tail
2008 Feb 16
2
[LLVMdev] linux/x86-64 codegen support
PR1711 is an x86 codegen problem that is blocking adoption of llvm-gcc by people using linux on x86-64 boxes. Could someone with access to one of these boxes take a look? I'll help try to debug this, but I don't have access to a machine. I bet it's a small tweak required in the x86 backend. Thanks! -Chris
2004 Sep 11
2
[LLVMdev] POST MORTEM: llvm-test changes
On Sat, 2004-09-11 at 12:49, Jeff Cohen wrote: > For the heck of it I tried upgrading to gcc 3.4.2 (from 3.3.3). It > didn't make a difference. So here are the failures for llvm-test. All > diffs are against the "native" output. > > ===================== MultiSource/Applications/sgefa > > cbe failed differently from jit/llc. First cbe: > > 84c84
2008 Feb 16
3
[LLVMdev] linux/x86-64 codegen support
...::Int32Ty); Result = Builder.CreateAlloca(Type::Int8Ty, Amt, "tmp"); return true; } for a pretty (?) print of the tree at that point) Andrew On 2/16/08, Török Edwin <edwintorok at gmail.com> wrote: > Andrew Lenharth wrote: > > Interestingly, in the .i file there are 2 __builtin_alloca, and > > EmitBuiltinAlloca is only being called once. > > > > > > Hmm, here EmitBuiltinAlloca gets called twice, but it looks like > validate_arglist is rejecting the args both times. > > I have 2 calls to alloca generated: > $ grep alloca x.bc|grep call >...
2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
...index e251d50..81439d5 100644 --- a/src/libFLAC/md5.c +++ b/src/libFLAC/md5.c @@ -5,6 +5,19 @@ #include <stdlib.h> /* for malloc() */ #include <string.h> /* for memcpy() */ +#ifdef HAVE_ALLOCA_H +# include <alloca.h> +#elif !defined alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca +# elif defined _AIX +# define alloca __alloca +# elif defined _MSC_VER +# include <malloc.h> +# define alloca _alloca +# endif +#endif + #include "private/md5.h" #include "share/alloc.h" @@ -35,6 +48,7 @@ /* The four core functions - F1 is optimized somewhat */...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not allocating RBP to any virtual register, the instances of RBP in function foo are in the machine code when my register allocator starts.) Function foo calls function bar. Register RBP is not saved across the call, though it is live after the call. Function bar includes a virtual register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...= yyssp - yyss + 1; if (yystacksize >= 10000) { yyerror("parser stack overflow"); if (yyfree_stacks) { free (yyss); free (yyvs); } return 2; } yystacksize *= 2; if (yystacksize > 10000) yystacksize = 10000; yyss = (short *) __builtin_alloca (yystacksize * sizeof (*yyssp)); __builtin_memcpy((char *)yyss,(char *)yyss1,size * (unsigned int) sizeof (*yyssp)); yyvs = (int *) __builtin_alloca (yystacksize * sizeof (*yyvsp)); __builtin_memcpy((char *)yyvs,(char *)yyvs1,size * (unsigned int) sizeof (*yyvsp)); yyssp = y...