search for: g_foo

Displaying 1 result from an estimated 1 matches for "g_foo".

Did you mean: _foo
2012 May 29
2
[LLVMdev] How to prevent insertion of memcpy()
Hi, I have the following program: // test.c #include <stdlib.h> struct foo_t { int x[1024]; }; __thread struct foo_t g_foo; void bar(struct foo_t* foo) { g_foo = *foo; } int main() { struct foo_t* f = (struct foo_t*)malloc(sizeof(struct foo_t)); bar(f); return 0; } When I compile it with clang I see that it inserts memcpy() in function bar(): $ clang -v clang version 3.2 (trunk 157390) Target: x86_64-unknown-...