1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

The gcc/config/i386/freebsd64.h file neglects to override the default

(bogus, application name space) mcount function name on amd64.  Override
it here instead.

I've done it this way to avoid touching gcc source while 3.4 is in
progress, and this is the smallest, lowest impact I could come up with.
Adding a patch touches about 10-14 lines of Makefile, this touches only 1.
This will likely go away with the 3.4 import.

I spoke with Alexander about this a few days ago, but waited until after
sorting out some of the other bugs in the userland profiling.
This commit is contained in:
Peter Wemm 2004-06-10 22:18:33 +00:00
parent 543912b386
commit aabc36c5b8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130324
2 changed files with 10 additions and 0 deletions

View File

@ -187,6 +187,7 @@ TARGET_INC+= ${GCC_CPU}/freebsd.h
.if ${TARGET_ARCH} == "amd64"
TARGET_INC+= ${GCC_CPU}/x86-64.h
TARGET_INC+= ${GCC_CPU}/freebsd64.h
TARGET_INC+= ${.CURDIR}/freebsd64-fix.h
.endif
TARGET_INC+= defaults.h

View File

@ -0,0 +1,9 @@
/*
* config/i386/freebsd64.h neglects to override the default bogus mcount
* function name. In order to avoid touching vendor source while gcc3.4
* is in progress, try a minimal workaround.
*
* $FreeBSD$
*/
#undef MCOUNT_NAME
#define MCOUNT_NAME ".mcount"