Commit Graph

150 Commits

Author SHA1 Message Date
Ian Lance Taylor
1259da3e77 * sparc.c (find_call): Align p_lowpc to avoid bus error. 1996-10-02 19:23:38 +00:00
Ian Lance Taylor
50622dea73 * gprof.c (usage): Print bug report address.
(main): Change version printing to match current GNU standards.
1996-10-01 19:58:36 +00:00
Ian Lance Taylor
76a61985c1 * gmon.h: Replace #elif with #else/#endif. 1996-08-30 16:19:15 +00:00
Michael Meissner
3d5aa9924a Recognize i686-*-* for pentium pro 1996-08-29 21:28:01 +00:00
Ian Lance Taylor
cb26c22ded * configure.in: Set and substitute HLDENV.
* configure: Rebuild.
	* Makefile.in (HLDENV): New variable.
	(gprof): Use $(HLDENV).
1996-08-23 00:13:54 +00:00
Ian Lance Taylor
1c34a10879 Wed Aug 7 14:43:51 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* core.c (read_function_mappings): Cast xmalloc return.
1996-08-07 18:44:27 +00:00
Ian Lance Taylor
4cdbf68f7d * gprof.c (VERSION): Define as "2.7.1". 1996-07-04 19:39:24 +00:00
Ian Lance Taylor
809f005e04 * bb_exit_func.c: Rename from __bb_exit_func.c, so that it can be
stored on a System V file system.
VS: ----------------------------------------------------------------------
1996-07-04 18:40:07 +00:00
Ian Lance Taylor
13566744d9 * bb_exit_func.c: Rename from __bb_exit_func.c, so that it can be
stored on a System V file system.
1996-07-04 18:35:44 +00:00
Ian Lance Taylor
45c85bcb34 x 1996-07-04 16:03:09 +00:00
Ian Lance Taylor
e3c0e00bb1 * configure.in: Call AC_ISC_POSIX.
* configure: Rebuild.
	* Makefile.in (gprof): Pass $(CFLAGS) during link.
	* hertz.c: Don't include <sys/time.h>; let sysdep.h handle that.
	If HAVE_SETITIMER is not defined, try using sysconf.
1996-06-27 15:37:48 +00:00
Jason Molenda
39c3964f3a * Makefile.in (exec_prefix, bindir, libdir, mandir, infodir, datadir,
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
        * configure.in (AC_PREREQ): autoconf 2.5 or higher.
        (AC_PROG_INSTALL): added.
        * configure: Rebuilt.
1996-06-25 13:11:45 +00:00
Ian Lance Taylor
8530ae8eed * configure.in: On alpha*-*-osf*, link against libbfd.a if not
using shared libraries.
	* configure: Rebuild with autoconf 2.10.
1996-06-24 16:04:19 +00:00
Ian Lance Taylor
d75ea6de3d * core.c (core_create_line_syms): Use xstrdup rather than strdup.
* source.c (source_file_lookup_path): Likewise.
1996-06-18 21:37:38 +00:00
Ian Lance Taylor
b4cb4ea2ac * configure.in: Permit --enable-shared to specify a list of
directories.
	* configure: Rebuild.
1996-04-08 18:45:08 +00:00
Ian Lance Taylor
df928c8f28 * core.c (core_create_function_syms): Move filename and func_name
inside ifdef where they are used.

	* core.c (core_sym_class): Parenthesize && within ||.
	* symtab.c (symtab_finalize): Correct parenthesization.

	* cg_print.h (cg_print_file_ordering): Declare.
	(cg_print_function_ordering): Declare.

	* __bb_exit_func.c (__bb_exit_func): Replace bcopy with memcpy.
	* cg_arcs.c (arc_add): Likewise.
	* cg_print.c (cg_print_function_ordering): Likewise.
1996-03-21 22:21:30 +00:00
Ian Lance Taylor
0f579087ab Thu Mar 21 17:02:02 1996 David Mosberger-Tang <davidm@azstarnet.com>
* gprof.c (default_excluded_list): Add "__mcount".

	* gprof.c (main): Change ifdef __osf__ to __alpha__.

	* gmon_io.c (gmon_out_read): If BSD44_FORMAT is defined, get the
	profiling rate from the header.

	* gmon.h (struct raw_phdr): Only include pad if both __alpha__ and
	__osf__ are defined.  Add new fields if BSD44_FORMAT is defined.

	* alpha.h (MIN_INSN_SIZE): Define.
	* core.c (MIN_INSN_SIZE): If not defined, define as 1.
	(core_sym_class): Ignore debugging symbols.
	(core_create_line_syms): Use MIN_INSN_SIZE when gathering line
	information.
1996-03-21 22:07:14 +00:00
Ian Lance Taylor
7a542ed991 Wed Mar 20 18:15:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* cg_print.c (cg_print_function_ordering): Fix __GNUC__ misspelled
	as __GNU_C__.
	(order_and_dump_functions_by_arcs): Likewise.
1996-03-20 23:16:35 +00:00
Ian Lance Taylor
ea2488ad2e * configure: Rebuild with autoconf 2.8. 1996-03-12 17:22:07 +00:00
Ian Lance Taylor
7925f4d4b9 * configure.in: Check for 'do not mix' from native linker before
trying to use -rpath.
	* configure: Rebuild.
1996-02-18 20:07:36 +00:00
Ian Lance Taylor
56f9773ffd * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
* configure: Rebuild.
1996-02-13 20:34:53 +00:00
Ian Lance Taylor
ba8e3a2e3f * configure.in: Don't set CC. Look for --enable-shared. Set
BFDLIB and HLDFLAGS and substitute them.
	* configure: Rebuild.
	* Makefile.in (LIBS): Use @BFDLIB@.
	(HLDFLAGS): New variable.
	(gprof): Use $(HLDFLAGS).
1996-02-07 19:08:04 +00:00
Ian Lance Taylor
04ed3b54e0 Support for building bfd and opcodes as shared libraries, based on
patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
	* Makefile.in (LIBDEPS): New variable.
	(LIBS): Use -L../bfd -lbfd.
	(gprof): Depend upon $(LIBDEPS) rather than $(LIBS).
1996-02-05 21:35:22 +00:00
Jeff Law
2684fbdb80 Remove temporary file when finished. 1996-01-17 21:16:59 +00:00
Jeff Law
64c50fc5db * gprof.c (long_options): Add "--function-ordering" and
"--file-ordering" options.
	(usage): Add new options to usage message.
	(main): Handle new options.
	* gprof.h (STYLE_FUNCTION_ORDER): Define.
	(STYLE_FILE_ORDER): Define.
	(function_mapping_file): Declare.
	* cg_arcs.c (arcs, numarcs): New globals.
	(arc_add): Put new arcs into the arc array so the function/file
	ordering code can examine them.
	* cg_arcs.h (struct arc): New field "has_been_placed".
	(arcs, numarcs): Declare new globals.
	* core.c (symbol_map, symbol_map_count): New globals.
	(read_function_mappings): New function to read in a function
	to object map file.
	(core_init): Call read_function_mappings if a function mapping
	file exists.
	(core_create_function_syms): Handle function to object file
	mappings.
	* symtab.h (struct sym): New fields "mapped", "has_been_placed",
	"nuses", "prev".
	* cg_print.c (cmp_arc_count): New function for sorting arcs.
	(cmp_fun_nuses): Likewise for functions.
	(cg_print_function_ordering): New function to print a suggested
	function ordering.
	(cg_print_file_ordering): Likewise for ordering .o files.
	(order_and_dump_functions_by_arcs): Helper function for function
	and object file ordering code.
Gprof changes for mentor vm work.
1995-12-31 06:36:30 +00:00
Jeff Law
71128bd7a9 Just so we have them checked in somewhere; they're sanitized away as we
really don't want to distribute them as part of gprof (not without major
work).
1995-12-31 06:28:22 +00:00
Jeff Law
32843f948c * core.c (core_sym_class): Ignore symbols without BSF_FUNCTION
set if ignore_non_function is set.
        * gprof.h (ignore_non_functions): Declare.
        * gprof.c (ignore_non_functions): Define.
        (long_options): Add "ignore-non-functions".
        (usage): Add new options.
        (main): Recognize "-D" and "--ignore-non-functions" option.
So we can get more accurate information on Solaris, HPUX and other
systems that can uniquely identify function symbols.
1995-12-25 04:32:29 +00:00
Ken Raeburn
c446c25aca fix typo in last change 1995-11-21 19:28:35 +00:00
Ken Raeburn
a4f589cc41 * Makefile.in (.m.c): Strip out directory name from function name. 1995-11-21 19:26:27 +00:00
Ken Raeburn
fcc14c4053 * hist.c (scale_and_align_entries): Don't use DEFUN_VOID. Do UNITS_TO_CODE
adjustment unconditionally; compiler can optimize away zero-offset case.  Refer
to scaled_addr, not aligned_addr.
1995-11-21 19:10:18 +00:00
Ken Raeburn
1aa65af6a8 vax.c doesn't need to include vax.h; gprof.h does it 1995-11-21 18:34:11 +00:00
Ken Raeburn
b218076e59 version 2.6 1995-11-16 10:12:33 +00:00
Ian Lance Taylor
31af2d7e05 * gprof.c (main): Cast getenv return value. 1995-11-08 16:40:24 +00:00
Ken Raeburn
4a07e94f2c add tags target 1995-11-06 20:12:26 +00:00
Per Bothner
c3294c2e78 * Makefile.in (DISTSTUFF): Rename to GEN_FILES, to avoid confusion.
(all):  Depend on $(GEN_FILES), not diststuff (which also depends
	on info).
1995-11-01 20:50:55 +00:00
Ian Lance Taylor
911d6ca12a Wed Nov 1 15:23:15 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* sym_ids.c: Include <ctype.h>.
1995-11-01 20:24:27 +00:00
Per Bothner
fc9e78507c * Makefile.in (diststuff): Also make info.
(mostlyclean):  Don't remove gprof.info*.
	(maintainer-clean realclean):  Also remove *.info*.
1995-10-25 20:24:00 +00:00
Ken Raeburn
869b94c5f6 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Makefile.in: Add dependecies for $(OBJS) on header files.

* cg_print.c (print_cycle, print_members, cg_print_index): Fix new style output
format to make it consistent.
* dummy.c (find_call): Fix typo in error message.
1995-10-06 20:51:43 +00:00
Ian Lance Taylor
0312401c7a * Makefile.in (maintainer-clean): New target, synonym for
realclean.
1995-09-20 17:21:54 +00:00
Ian Lance Taylor
3e0d03278c * Makefile.in (install): Don't install in $(tooldir). 1995-09-08 18:38:50 +00:00
Ken Raeburn
af0786b401 some ns32k updates from Ian Dall 1995-09-05 19:04:22 +00:00
Jeff Law
d0c997a9ac * Makefile.in (install): Remove "brokensed" hack, unnecessary now
that we're using autoconf.
1995-08-22 17:01:20 +00:00
Jason Molenda
54b8ecb5f1 all v2.2 && v2.3 autoconf-generated configure scripts updated to
autoconf v2.4 (not a very big change).  fixes PR 7695.
1995-08-16 04:06:53 +00:00
Fred Fish
643f17d21f * core.c (get_src_info): Cast arg 7 of bfd_find_nearest_line
to proper type of "unsigned int *".
1995-07-20 22:13:40 +00:00
Ken Raeburn
a35809e30d add final newline 1995-07-07 02:19:13 +00:00
Ken Raeburn
379062d10f use changequote around [] 1995-06-16 19:30:48 +00:00
J.T. Conklin
9e4be2c7b6 * Makefile.in (distclean, realclean): Remove config.cache and
config.log.
1995-06-12 19:15:58 +00:00
J.T. Conklin
3ecd5c7d38 * Makefile.in (Makefile): Added config.status to dependency list.
(config.status): New target.
  (SHELL): New definition.
1995-05-18 00:58:02 +00:00
Ken Raeburn
e4fc2696d1 * Makefile.in (install): Depend on "all". 1995-04-26 01:11:57 +00:00
Ken Raeburn
4c92f0648f * Makefile.in: Change all references to MY_MACHINE to MY_TARGET, to match
configure script.
1995-04-20 21:30:10 +00:00