Displaying 4 results from an estimated 4 matches for "__malloc_hook".
2015 May 05
2
Compiling opus with emscripten: malloc_hook
Hi xiph,
I'm trying to compile libopus from git.xiph.org/opus.git with
emscripten. The regular:
$ emconfigure ./configure --enable-fixed-point
$ emmake make
gets me quite far, but it hangs on the use of __malloc_hook in the tests:
tests/test_opus_api.c:1776:16: error: use of undeclared identifier
'__malloc_hook'; did you mean 'malloc_hook'?
orig_malloc=__malloc_hook;
^~~~~~~~~~~~~
malloc_hook
tests/test_opus_api.c:74:7: note: 'malloc_hook' declared here...
2015 May 05
0
Compiling opus with emscripten: malloc_hook
On Tue, May 5, 2015 at 10:05 AM, Hraban Luyat <hraban at 0brg.net> wrote:
> gets me quite far, but it hangs on the use of __malloc_hook in the tests:
[...]
> As a work-around, I just %s/__malloc_hook/malloc_hook/g. I don't need
> the tests for emscripten so I don't care if this is correct or not.
>
> But does anyone know of a proper fix that could find its way back
> upstream? It would be nice if libopus were...
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
...(void) __attribute__ ((__nothrow__));
extern void *malloc_get_state (void) __attribute__ ((__nothrow__));
extern int malloc_set_state (void *__ptr) __attribute__ ((__nothrow__));
extern void (*__malloc_initialize_hook) (void);
extern void (*__free_hook) (void *__ptr, __const void *);
extern void *(*__malloc_hook) (size_t __size, __const void *);
extern void *(*__realloc_hook) (void *__ptr, size_t __size, __const void *);
extern void *(*__memalign_hook) (size_t __alignment, size_t __size, __const void *);
extern void (*__after_morecore_hook) (void);
extern void __malloc_check_init (void) __attribute__ ((__n...