search for: __alignment

Displaying 6 results from an estimated 6 matches for "__alignment".

2013 May 13
0
[LLVMdev] ASan unit test/libcxx build break
...nce libc on linux defines at_quick_exit. > > include/cstdlib: > > #include <__config> > #include <stdlib.h> > #ifdef _LIBCPP_HAS_C11_FEATURES > using ::aligned_alloc; > #endif And yes my stdlib.h has /usr/include/stdlib.h:extern void *aligned_alloc (size_t __alignment, size_t __size) I am guessing you are running on this on an old system. My glibc version is 2.17 Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130513/dad2fbf7/attachment.html>
2013 May 13
2
[LLVMdev] ASan unit test/libcxx build break
A recent change added defined(__linux__) condition to the code below. Now it says that on linux with --std=c++0x (or --std=c++11) the system stdlib.h header must define aligned_alloc(). Really? include/__config: #if ( defined(__FreeBSD__) || defined(__linux__) ) && (__ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L) #define _LIBCPP_HAS_QUICK_EXIT #define _LIBCPP_HAS_C11_FEATURES
2013 May 13
2
[LLVMdev] ASan unit test/libcxx build break
...gt;> include/cstdlib: >> >> #include <__config> >> #include <stdlib.h> >> #ifdef _LIBCPP_HAS_C11_FEATURES >> using ::aligned_alloc; >> #endif > > > And yes my stdlib.h has > > /usr/include/stdlib.h:extern void *aligned_alloc (size_t __alignment, size_t > __size) > > I am guessing you are running on this on an old system. My glibc version is > 2.17 Yes. Ubuntu 12.04 LTS with glibc 2.15 does not have aligned_alloc.
2010 Apr 09
0
implicit declaration of function `posix_memalign''
...4.0.0/tools'' make: *** [install-tools] Error 2 The posix_memalign function is declared in /usr/include/stdlib.h (which is included in xenpaging.c): #ifdef __USE_XOPEN2K /* Allocate memory of SIZE bytes with an alignment of ALIGNMENT. */ extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) __THROW __nonnull ((1)); #endif So, I edit the Makefile in tools/xenpaging and add the line: CFLAGS += -D__USE_XOPEN2K However, when I recompile, I get the same error. There also seems to be another condition in stdlib.h that must be satisfied before the __USE_XOPEN2K one wi...
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
...realloc (void *__ptr, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); extern void free (void *__ptr) __attribute__ ((__nothrow__)); extern void cfree (void *__ptr) __attribute__ ((__nothrow__)); extern void *memalign (size_t __alignment, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; extern void * pvalloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; exter...