Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src
Module Name: src
Committed By: ryo
Date: Mon Oct 25 07:54:44 UTC 2021
Modified Files:
src/share/mk: bsd.README bsd.lib.mk
src/sys/conf: Makefile.kern.inc
src/sys/lib/libkern: Makefile.libkern
Log Message:
In some arch, _mcount() would be called recursively when built with COPTS=-O0.
Normally, functions called from mcount.c are expected to be expanded inline,
so _mcount() will never be called recursively. But when build with COPTS=-O0,
`static inline' functions aren't inlined, and _mcount() will be called
recursively.
Even if _mcount() has `__attribute__((__no_ instrument_function__))',
it has no effect on the calling external (no-inlined) function.
To avoid this, PROF.<fn> is added can be set the profiling flag of any file.
"PROF.mcount.c" is set to blank by default, mcount.c itself is compiled
without -pg.
To generate a diff of this commit:
cvs rdiff -u -r1.419 -r1.420 src/share/mk/bsd.README
cvs rdiff -u -r1.385 -r1.386 src/share/mk/bsd.lib.mk
cvs rdiff -u -r1.282 -r1.283 src/sys/conf/Makefile.kern.inc
cvs rdiff -u -r1.51 -r1.52 src/sys/lib/libkern/Makefile.libkern
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index