This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
gprof on Mach based systems
- To: binutils at sourceware dot cygnus dot com
- Subject: gprof on Mach based systems
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Wed, 29 Sep 1999 18:08:17 +0200 (MET DST)
- CC: bug-gnu-utils at gnu dot org
Hi,
Currently gprof is won't build on Mach based systems, because hertz.h
defines the macro hertz which breaks compilation of hertz.h. Another
problem is that <machine/mach_param.h> isn't present on all Mach based
systems. Since there was already a another FIXME on this particular
piece of code, I think the best thing is to remove it, moreover since
nobody appears to be using it anymore.
If the target for which this hack was introduced is ever revived, the
proper place to fix it would be hertz.c I think.
Mark
1999-09-29 Mark Kettenis <kettenis@gnu.org>
* hertz.h [MACH] (hertz): Remove macro. The
<machine/mach_param.h> include doesn't exist on al Mach based
systems, and the definition of hertz breaks compilation of hertz.c
anyway.
--- ../CVS/binutils/gprof/hertz.h Mon May 3 09:29:11 1999
+++ binutils/gprof/hertz.h Wed Sep 29 17:56:23 1999
@@ -10,13 +10,6 @@
* we return HZ_WRONG, an impossible sampling frequency.
*/
-/* FIXME: Checking for MACH here makes no sense when for a cross
- gprof. */
-#ifdef MACH
-#include <machine/mach_param.h>
-#define hertz() (HZ)
-#else
extern int hertz PARAMS ((void));
-#endif
#endif /* hertz_h */