Searched hist:9590 (Results 1 - 1 of 1) sorted by relevance

/gem5/
H A DSConstructdiff 9590:699f4ee61445 Mon Mar 18 05:57:00 EDT 2013 Andreas Sandberg <andreas@sandberg.pp.se> scons: Avoid malloc/free compiler optimization when using tcmalloc

According to the tcmalloc readme, the recommended way of compiling
applications that make use of tcmalloc is to disable compiler
optimizations that make assumptions about malloc and friends. This
changeset adds the necessary compiler flags for both gcc and clang.

From the tcmalloc readme:
"NOTE: When compiling with programs with gcc, that you plan to link
with libtcmalloc, it's safest to pass in the flags

-fno-builtin-malloc -fno-builtin-calloc
-fno-builtin-realloc -fno-builtin-free

when compiling."

Completed in 49 milliseconds