Date: Wed, 23 Jul 2008 11:37:20 +0000 (UTC) From: Luoqi Chen <luoqi@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/include profile.h Message-ID: <200807231137.m6NBbWuq073650@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
luoqi 2008-07-23 11:37:20 UTC FreeBSD src repository Modified files: sys/i386/include profile.h Log: SVN rev 180756 on 2008-07-23 11:37:20Z by luoqi Unbreak cc -pg support on i386. In gcc 4.2, %ecx is used as the arg pointer when stack realignment is turned on (it is ALWAYS on for main), however in a profiling build %ecx would be clobbered by mcount(), this would lead to a segmentation fault when the code tries to reference any argument. This fix changes mcount() to preserve %ecx. PR: bin/119709 Reviewed by: bde MFC after: 1 week Revision Changes Path 1.43 +10 -1 src/sys/i386/include/profile.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807231137.m6NBbWuq073650>