gprof on Mach based systems

Mark Kettenis kettenis@wins.uva.nl
Wed Sep 29 09:08:00 GMT 1999


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 */


More information about the Binutils mailing list