]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Bypass gcc 4.4/4.5 compilation bug by moving -fomit-frame-pointer to Makefile.all.am
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 15 May 2012 21:04:31 +0000 (21:04 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 15 May 2012 21:04:31 +0000 (21:04 +0000)
commitcad5f2ea1d5ae8609fad38de239539b737458373
tree0b0f37958d591704a784992e6eec2c06d7d47064
parent354569b574bae8b6111e1693c1149dadc2d72171
Bypass gcc 4.4/4.5 compilation bug by moving -fomit-frame-pointer to Makefile.all.am
gcc 4.4 and 4.5 has a bug which causes miscompilation of mc_main.c:
 args are not correctly given to VG_(am_munmap_valgrind).
This causes the secondary map entries to not be unmapped
(which can cause unlimited memory growth)
and/or causes the assert on VG_(am_munmap_valgrind) result to fail.

Removing the pragma optimize from mc_main.c and inserting it instead
in Makefile.all.am for x86 solves the gcc bug.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12564
Makefile.all.am
memcheck/mc_main.c