Update pot files.
[external/binutils.git] / gprof / ChangeLog
1 2003-07-11  Alan Modra  <amodra@bigpond.net.au>
2
3         * po/gprof.pot: Regenerate.
4
5 2003-06-11  H.J. Lu <hongjiu.lu@intel.com>
6
7         * po/Make-in (DESTDIR): New.
8         (install-data-yes): Support $(DESTDIR).
9         (uninstall): Likewise.
10
11 2003-03-27  Chris Demetriou  <cgd@broadcom.com>
12
13         * gmon_io.c (enum gmon_ptr_size, enum gmon_ptr_signedness): New.
14         (gmon_get_ptr_size, gmon_get_ptr_signedness): New.
15         (gmon_io_read_vma, gmon_io_write_vma, gmon_read_raw_arc)
16         (gmon_write_raw_arc, gmon_out_read, gmon_out_write): Adjust to
17         use new functions and enums.
18
19 2003-02-21  K Schutte  <schutte@fel.tno.nl>
20
21         * corefile.c (core_create_line_syms): Check for a NULL sentinel
22         value before using it.
23
24 2002-12-02  Nick Clifton  <nickc@redhat.com>
25
26         * configure.in (LINGUAS): Add pt_BR.
27         * configure: Regenerate.
28         * po/pt_BR: New Brazillian Portugese translation.
29
30 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
31
32         * basic_blocks.c, basic_blocks.h, cg_arcs.c, cg_dfn.c, cg_print.c,
33         corefile.c, gmon_io.c, gprof.c, gprof.h, hist.c, mips.c, source.c,
34         source.h, sym_ids.c, sym_ids.h, symtab.h, tahoe.c, vax.c: Replace
35         boolean with bfd_boolean, true with TRUE, false with FALSE.
36         Formatting.
37
38 2002-11-12  Nick Clifton  <nickc@redhat.com>
39
40         * configure.in (ALL_LINGUAS): Add da.
41         * configure: Regenerate.
42         * po/da.po: New Danish translation.
43
44 2002-08-22  Nick Clifton  <nickc@redhat.com>
45
46         * gprof.c (main): Turn off default excluded functions in FLAT
47         profile.
48
49 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
50
51         * gmon_io.c (gmon_io_read_64, gmon_io_write_64): Define only if
52         BFD_HOST_U_64_BIT is defined.
53         (gmon_io_read_vma, gmon_io_write_vma): Add ifdefs.
54
55 2002-07-30  Nick Clifton  <nickc@redhat.com>
56
57         * po/tr.po: Updated Turkish translation.
58
59 2002-07-30  Nick Clifton  <nickc@redhat.com>
60
61         * alpha.c, cg_arcs.c, cg_dfn.c, gmon.h, gprof.c, gprof.h, hertz.c,
62         i386.c, mips.c, sparc.c, tahoe.c, utils.c, vax.c: Update Copyright
63         notice so that it applies even if the sources are modified.
64
65 2002-07-29  Ulrich Drepper  <drepper@redhat.com>
66
67         * gprof.texi (Executing the Program): Add documentation on how to use
68         bbconv.pl.  Patch by Eric Hanchrow.
69
70 2002-07-25  Nick Clifton  <nickc@redhat.com>
71
72         * po/es.po: Updated Spanish translation.
73         * po/fr.po: Updated French translation.
74
75 2002-07-24  Dave Brolley  <brolley@redhat.com>
76
77         * corefile.c (core_create_function_syms): Use the end of the section
78         containing the symbol to compute max_vma.
79
80 2002-07-24  Nick Clifton  <nickc@redhat.com>
81
82         * po/sv.po: Updated Swedish translation.
83         * po/es.po: Updated Spanish translation.
84
85 2002-07-23  Nick Clifton  <nickc@redhat.com>
86
87         * po/fr.po: Updated French translation.
88         * po/id.po: New Indonesian translation.
89         * configure.in (LINGUAS): Add id.
90         * configure: Regenerate.
91
92 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
93
94         * po/Make-in (.po.gmo): Do not attempt to create a .gmo file if
95         the sources are read-only.
96
97 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
98
99         * dep-in.sed: Cope with absolute paths.
100         * Makefile.am (dep.sed): Subst TOPDIR.
101         Run "make dep-am".
102         * Makefile.in: Regenerate.
103
104 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
105
106         * Makefile.am: Run "make dep-am".
107         * Makefile.in: Regenerate.
108
109 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
110
111         * po/fr.po: Updated version.
112
113 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
114
115         * po/fr.po: Updated version.
116
117 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
118
119         * gprof.texi: Wrap @menu in @ifnottex, not @ifinfo.
120
121 2002-02-19  Frank Ch. Eigler  <fche@redhat.com>
122
123         * hist.c (hist_print): Rewrite log_scale calculation loop.
124
125 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
126
127         * Makefile.am: "make dep-am".
128         * Makefile.in: Regenerate.
129
130 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
131
132         * gprof.c: Include "getopt.h" after other includes, so that
133         the proper macros are defined.
134         * gen-c-prog.awk: Emit a prototype for the generated function.
135
136 2002-02-01  Alan Modra  <amodra@bigpond.net.au>
137
138         * configure.in (build_warnings): Add -Wstrict-prototypes
139         -Wmissing-prototypes.
140         * aclocal.m4: Regenerate.
141         * gconfig.in: Regenerate.
142         * configure: Regenerate.
143         * Makefile.am: Run "make dep-am".
144         * Makefile.in: Regenerate.
145
146         * alpha.c (alpha_find_call): Warning fixes.
147         * mips.c (mips_find_call): Likewise.
148         * sparc.c (sparc_find_call): Likewise.
149         * basic_blocks.c: Warning fixes.  Eliminate DEFUN.
150         * call_graph.c: Likewise.
151         * cg_arcs.c: Likewise.
152         * cg_dfn.cp: Likewise.
153         * gprof.c: Likewise.
154         * gprof.h: Likewise.
155         * hist.c: Likewise.
156         * search_list.c: Likewise.
157         * source.c: Likewise.
158         * source.h: Likewise.
159         * sym_ids.c: Likewise.
160         * symtab.c: Likewise.
161         * symtab.h: Likewise.
162         * utils.c: Likewise.
163         * cg_print.c: Likewise.
164         (struct function_map, symbol_map, symbol_map_count): Move
165         declaration to..
166         * corefile: ..here.
167         * corefile.c: Warning fixes.  Eliminate DEFUN.
168         (struct function_map): Remove declaration.
169         * gmon_io.c: Warning fixes.  Eliminate DEFUN.
170         (gmon_io_read_64): Make static.
171         (gmon_io_write_64): Likewise.
172         (gmon_read_raw_arc): Likewise.
173         (gmon_write_raw_arc): Likewise.
174         (gmon_io_write_8): Don't pass char, pass int param.
175         * gmon_io.h (gmon_io_write_8): Likewise.
176
177         * Makefile.am: Run "make dep-am"
178         * Makefile.in: Regenerate.
179
180         * basic_blocks.c: Replace bool with boolean, TRUE with true and
181         FALSE with false throughout.
182         * basic_blocks.h: Likewise.
183         * cg_arcs.c: Likewise.
184         * cg_dfn.c: Likewise.
185         * cg_print.c: Likewise.
186         * corefile.c: Likewise.
187         * gmon_io.c: Likewise.
188         * gprof.c: Likewise.
189         * hist.c: Likewise.
190         * mips.c: Likewise.
191         * source.c: Likewise.
192         * source.h: Likewise.
193         * sym_ids.c: Likewise.
194         * sym_ids.h: Likewise.
195         * symtab.h: Likewise.
196         * tahoe.c: Likewise.
197         * vax.c: Likewise.
198         * gprof.h: Likewise.
199         (TRUE): Don't define.
200         (FALSE): Don't define.
201
202 2002-01-31  Jason R Thorpe <thorpej@wasabisystems.com>
203
204         * TODO: Remove "host architecture pointer size" item.
205         * acconfig.h: Remove.
206         * gconfig.in: Regenerate.
207         * configure.in: Remove check for gmon pointer size.
208         * configure: Regenerate.
209         * gmon.h (GMON_HDRSIZE_BSD44_32): Define.
210         (GMON_HDRSIZE_BSD44_64): Ditto.
211         (GMON_HDRSIZE_OLDBSD_32): Ditto.
212         (GMON_HDRSIZE_OLDBSD_64): Ditto.
213         (struct raw_phdr): Wrap in #if 0, keeping it for
214         documentation purposes only.
215         (struct old_raw_phdr): Likewise.
216         (struct raw_arc): Likewise.  Change type/size of
217         "count" member to long match 4.4BSD.
218         * gmon_io: Update copyright years.
219         (gmon_io_read_64): New function.
220         (gmon_io_read_vma): Use bfd_arch_bits_per_address to
221         determine target pointer size.  Use gmon_io_read_32
222         and gmon_io_read_64.
223         (gmon_io_write_64): New function.
224         (gmon_io_write_vma): Use bfd_arch_bits_per_address to
225         determine target pointer size.  Use gmon_io_write_32
226         and gmon_io_write_64.
227         (get_vma): Remove.
228         (put_vma): Ditto.
229         (gmon_read_raw_arc): New function.
230         (gmon_write_raw_arc): New function.
231         (gmon_out_read): Do not use struct raw_phdr or
232         struct old_raw_phdr to read the gmon header.  Use
233         gmon_read_raw_arc to read call graph records.
234         (gmon_out_write): Do not use struct raw_phdr or
235         struct old_raw_phdr to write the gmon header.  Use
236         gmon_write_raw_arc to write call graph records.
237         * po/gprof.pot: Regenerate.
238         * Makefile.in: Regenerate.
239
240 2002-01-31  Alan Modra  <amodra@bigpond.net.au>
241
242         * alpha.c (alpha_Instruction): Don't use.
243         (alpha_find_call): Avoid use of bitfields and casts between
244         pointers and integers of different sizes.  Avoid endian problems
245         when cross-compiling.
246         * vax.c (vax_find_call): Likewise.
247         (struct modebyte): Don't use.
248         (vax_operandmode): Pass in an unsigned char *.
249         (vax_operandlength): Likewise.
250         (vax_reladdr): Rename to vax_offset and return relative offset
251         rather than address.
252         * i386.c (i386_find_call): Avoid casts between pointers and
253         integers of different sizes.
254         * sparc.c (sparc_find_call): Likewise.  Avoid endian problems.
255         * tahoe.c (tahoe_find_call): Likewise.
256         (tahoe_reladdr): Rename to tahoe_offset and return relative offset
257         rather than address.
258
259         * basic_blocks.h: Don't include headers here.
260         * call_graph.h: Likewise.
261         * cg_arcs.h: Likewise.
262         * cg_print.h: Likewise.
263         * corefile.h: Likewise.
264         * gmon_io.h: Likewise.
265         * gmon_out.h: Likewise.
266         * hertz.h: Likewise.
267         * hist.h: Likewise.
268         * source.h: Likewise.
269         * sym_ids.h: Likewise.
270         * symtab.h: Likewise.
271         * gprof.h: Don't include ansidecl.h, do include bfd.h.
272         (bool): Don't typedef.
273         * alpha.c: Adjust #include's for above header changes.
274         * basic_blocks.c: Likewise.
275         * call_graph.c: Likewise.
276         * cg_arcs.c: Likewise.
277         * cg_dfn.c: Likewise.
278         * cg_print.c: Likewise.
279         * corefile.c: Likewise.
280         * gmon_io.c: Likewise.
281         * gprof.c: Likewise.
282         * hertz.c: Likewise.
283         * hist.c: Likewise.
284         * i386.c: Likewise.
285         * mips.c: Likewise.
286         * sparc.c: Likewise.
287         * sym_ids.c: Likewise.
288         * symtab.c: Likewise.
289         * tahoe.c: Likewise.
290         * utils.c: Likewise.
291         * vax.c: Likewise.
292
293         * po/POTFILES.in: Regenerate.
294
295 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
296
297         * configure: Regenerated.
298
299 2002-01-26  Richard Henderson  <rth@redhat.com>
300
301         * i386.c (i386_iscall): Static.
302         * tahoe.c (indirectchild, tahoe_operandmode): Static.
303         (tahoe_operandlength, tahoe_reladdr): Static.
304         * vax.c (indirectchild): Static.
305
306 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
307
308         * Makefile.am (install): Depend on install-info.
309         * Makefile.in: Regenerate.
310
311 2002-01-26  Jason Thorpe  <thorpej@wasabisystems.com>
312
313         * mips.c: New file.
314         * Makefile.am (sources): Add mips.c. 
315         (mips.o): New rule.
316         * Makefile.in: Regenerate. 
317         * corefile.c: Update copyright years.
318         (find_call): Call mips_find_call for bfd_arch_mips.
319
320 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
321
322         * po/fr.po: Updated version.
323
324 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
325
326         * po/es.po: Updated version.
327
328 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
329
330         * po/gprof.pot: Regenerate.
331
332 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
333
334         * po/es.po: New file: Spanish translation.
335         * configure.in (ALL_LINGUAS): Add es.
336         * configure: Regenerate.
337
338 2002-01-03  Nick Clifton  <nickc@cambridge.redhat.com>
339
340         * gmon_io.c (gmon_out_read): Remove use of ngettext().  It is not
341         present under AIX.
342
343 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
344
345         * cg_print.c (print_header): Fix spelling typo.
346
347         * gmon_io.c (gmon_out_read): Fix formatting of text messages to
348         allow easier translation into other languages.
349
350 2001-12-21  Nick Clifton  <nickc@cambridge.redhat.com>
351
352         * configure.in (ALL_LINGUAS): Add sv.
353         * configure: Regenerate.
354         * po/sv.po: Import from translation project web site.
355
356 2001-12-03  Nick Clifton  <nickc@cambridge.redhat.com>
357
358         * configure.in (LINGUAS): Add tr.
359         * configure: Regenerate.
360         * po/tr.po: Import from translation project's web site.
361
362 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
363
364         * configure.in (ALL_LINGUAS): Add 'fr'.
365         * configure: Regernate.
366         * po/fr.po: New file.
367
368 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
369
370         * configure: Regenerate.
371
372 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
373
374         * Makefile.am (Makefile): Depend on bfd/configure.in.
375         Run "make dep-am".
376         * Makefile.in: Regenerate.
377
378 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
379
380         * gprof.c (main): For gettext, also set the LC_CTYPE locate facet.
381         * sym_ids.c: Include "safe-ctype.h" instead of <ctype.h>.
382         (parse_spec): Use ISDIGIT instead of isdigit.
383
384 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
385
386         * sparc.c (sparc_find_call): Warning fix.
387         * alpha.c (alpha_find_call): Likewise.
388
389 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
390
391         * alpha.c: Add missing prototypes.
392         * sparc.c: Likewise.
393         * tahoe.c: Likewise.
394         * vax.c: Likewise.
395         * i386.c: Likewise.
396         (i386_iscall): Don't use DEFUN.
397
398 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
399
400         * NOTES: Rename to README for consistency with other binutils.
401
402 2001-06-18  H.J. Lu <hjl@gnu.org>
403
404         * Makefile.am (diststuff): Add $(MANS).
405         (gprof.1): Remove the prefix `$(srcdir)/'.
406         * Makefile.in: Regenerated.
407
408         * gprof.1: Removed.
409
410 2001-06-12  Ben Elliston  <bje@redhat.com>
411
412         * gprof.texi (File Format): Profile data files are stored in
413         target byte order, not host byte order.
414
415 2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
416
417         * gmon_io.c (gmon_io_read, gmon_io_write_vma,
418         gmon_io_write_32, gmon_io_write_8, gmon_io_write): Adjust
419         argument list for K&R C.
420
421 2001-04-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
422
423         * gprof.texi: Put @c man begin and @c man end indications
424         to generate man page using texi2pod and pod2man.  Added SEEALSO,
425         SYNOPSIS, BUGS, FILES and DESCRIPTION from original gprof.1
426         enclosed in @ifset man condition.
427         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
428         Generate gprof.1 from gprof.texi.
429         * gprof.1: Generate from gprof.texi.
430         * Makefile.in: Regenerate.
431
432 2001-03-13  David Mosberger  <davidm@hpl.hp.com>
433
434         * hist.c (hist_dimension): Declare as an array of 16 characters.
435         (hist_read_rec): If SAMPLEDEBUG, print each histogram bin count.
436
437         * basic_blocks.c: Whitespace and formatting changes.
438         * bb_exit_func.c: Ditto.
439         * call_graph.c: Ditto.
440         * call_graph.h: Ditto.
441         * cg_arcs.c: Ditto.
442         * cg_print.c: Ditto.
443         * cg_print.h: Ditto.
444         * corefile.c: Ditto.
445         * corefile.h: Ditto.
446         * gmon_io.c: Ditto.
447         * gmon_io.h: Ditto.
448         * gmon_out.h: Ditto.
449         * gprof.c: Ditto.
450         * hist.c: Ditto.
451         * hist.h: Ditto.
452         * i386.c: Ditto.
453         * search_list.c: Ditto.
454         * search_list.h: Ditto.
455         * source.c: Ditto.
456         * source.h: Ditto.
457         * sym_ids.c: Ditto.
458         * sym_ids.h: Ditto.
459         * symtab.c: Ditto.
460         * symtab.h: Ditto.
461         * tahoe.c: Ditto.
462         * utils.c: Ditto.
463         * vax.c: Ditto.
464
465         * gmon_out.h (gmon_hist_hdr): Delete.
466         (gmon_cg_arc_record): Delete.
467
468         * gmon_io.c (put_vma): Declare "static".
469         (get_vma): Ditto.
470         (gmon_io_write): New function.
471         (gmon_io_write_8): Ditto.
472         (gmon_io_write_32): Ditto.
473         (gmon_io_write_vma): Ditto.
474         (gmon_io_read): Ditto.
475         (gmon_io_read_32): Ditto.
476         (gmon_io_read_vma): Ditto.
477         * basic_blocks.c (bb_read_rec): Use gmon_io_read* / gmon_io_write*
478         to read/write data file in a more portable fashion.
479         (bb_write_blocks): Ditto.
480         * call_graph.c (cg_read_rec): Ditto.
481         (cg_write_arcs): Ditto.
482         * hist.c (hist_read_rec): Ditto.
483         (hist_write_hist): Ditto.
484
485         From Jes Sorensen  <jes@linuxcare.com>
486         * gmon_out.h: Use GMON_PTR_SIZE instead of sizeof(char*).
487         * gmon.h: Ditto.
488         * configure.in: Get GMON_PTR_SIZE from existing <sys/gmon_out.h>
489         if it exists.
490         * acconfig.h: New file. Mention and document GMON_PTR_SIZE.
491         * gconfig.h: Regenerate.
492         * configure: Regenerate.
493         * Makefile.in: Regenerate.
494
495 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
496
497         * configure.in (BFD_VERSION): New.
498         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
499         * configure: Regenerate.
500         * gconfig.in: Regenerate.
501         * Makefile.am: Run "make dep-am"
502         * Makefile.in: Regenerate.
503
504 2001-01-27  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
505
506         * basic_blocks.c: #include <unistd.h> only if it exists.
507
508 2000-11-06  Nick Clifton  <nickc@redhat.com>
509
510         * gprof.texi: Add GNU Free Documentation License.
511
512 2000-09-07  H.J. Lu  <hjl@gnu.org>
513
514         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
515         * configure: Rebuild.
516
517 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
518
519         * aclocal.m4, configure: Rebuilt with new libtool.m4.
520
521 2000-09-02  Nick Clifton  <nickc@redhat.com>
522
523         * configure.in: Increase version number to 2.10.91.
524         * configure: Regenerate.
525         * aclocal.m4: Regenerate.
526         * config.in: Regenerate.
527         
528 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
529
530         * acinclude.m4: Include libtool and gettext macros from the
531         top level.
532         * aclocal.m4, configure: Rebuilt.
533
534 2000-07-26  Nick Clifton  <nickc@cygnus.com>
535
536         * bb_exit_func.c: Assign copyright to FSF.  Note that David 
537         Mosberger-Tang <David.Mosberger@acm.org> continuted this code.
538
539 2000-07-24  Nick Clifton  <nickc@cygnus.com>
540
541         * basic_blocks.c: Add copyright notice.
542         * basic_blocks.h: Add copyright notice.
543         * call_graph.c: Add copyright notice.
544         * call_graph.h: Add copyright notice.
545         * cg_print.c: Add copyright notice.
546         * cg_print.h: Add copyright notice.
547         * corefile.c: Add copyright notice.
548         * corefile.h: Add copyright notice.
549         * gmon_io.c: Add copyright notice.
550         * gmon_io.h: Add copyright notice.
551         * gmon_out.h: Add copyright notice.
552         * hist.c: Add copyright notice.
553         * hist.h: Add copyright notice.
554         * search_list.c: Add copyright notice.
555         * search_list.h: Add copyright notice.
556         * source.c: Add copyright notice.
557         * source.h: Add copyright notice.
558         * sym_ids.c: Add copyright notice.
559         * sym_ids.h: Add copyright notice.
560         * symtab.c: Add copyright notice.
561         * symtab.h: Add copyright notice.
562
563 2000-07-05  Kenneth Block  <krblock@computer.org>
564
565         * gprof.c: Add optional style to demangle switch
566         * gprof.texi: Document optional style to demangle switch.
567
568 2000-06-05  DJ Delorie  <dj@redhat.com>
569
570         * MAINTAINERS: new
571
572 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
573
574         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
575         (CLEANFILES): Add DEPA.
576         * Makefile.in: Regenerate.
577
578 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
579
580         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
581         find one.
582         * Makefile.in: Regenerate.
583
584 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
585
586         * source.c (annotate_source): Correct pointer comparison when
587         checking for backslashes.
588
589 2000-06-13  H.J. Lu  <hjl@gnu.org>
590
591         * configure: Regenerate.
592
593 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
594
595         * configure.in (VERSION): Update to show this is the CVS mainline.
596
597 2000-06-07  Philippe De Muyter  <phdm@macqel.be>
598
599         * source.c: Remove direct inclusion of sys/stat.h.
600
601 2000-05-31  Nick Clifton  <nickc@cygnus.com>
602
603         * gprof.h (_): Revert previous delta.  We want to use gettext,
604         not dgettext in the _ macro.
605
606 2000-05-29  Alan Modra  <alan@linuxcare.com.au>
607
608         * gprof.h (_): Use BFD version.
609
610 2000-05-26  Nick Clifton  <nickc@cygnus.com>
611
612         * gprof.c (main): When calling getopt_long indicate that the 'd'
613         switch takes an optional argument, whereas the 'D' switch takes no
614         argument at all.
615
616 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
617
618         * dep-in.sed: Copy from ../binutils.
619         * Makefile.am: Update dependencies with "make dep-am"
620         * Makefile.in: Regenerate.
621
622         * gprof.h: Remove most nls defines.  They are pulled in by
623         bfd/sysdep.h.  #include "ansidecl.h" not <ansidecl.h>
624
625 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
626
627         * gprof.texi: Fix numerous typos. Mention some DOS/Windows related
628         issues.
629
630         * configure.in: Check for setmode function.
631         * configure: Regenerate.
632
633         * gmon_io.h (SET_BINARY) [HAVE_SETMODE]: Define.
634
635         * gmon_io.c (gmon_out_read) [SET_BINARY]: Switch stdin into binary
636         mode.
637
638         * source.c: Include filenames.h and sys/stat.h.
639         (source_file_lookup_path, source_file_lookup_name): Use
640         FILENAME_CMP to compare file names.
641         (annotate_source) [__MSDOS__]: If "filename-ann" would overwrite
642         "filename", replace the extension with ".ann".
643         [HAVE_DOS_BASED_FILE_SYSTEM]: Support file names with
644         backslashes and drive letters.
645         Use IS_ABSOLUTE_PATH.
646
647         * search_list.h (PATH_SEP_CHAR): Define.
648
649         * search_list.c (search_list_append): Use PATH_SEP_CHAR.
650
651         * hertz.c (HERTZ) [__MSDOS__]: Don't define unless they have
652         neither HAVE_SETITIMER nor HAVE_SYSCONF.
653         [HAVE_SETITIMER]: If they define both HAVE_SETITIMER and
654         HAVE_SYSCONF, try setitimer and fall back on sysconf.
655
656 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
657  
658         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
659         --enable-build-warnings option.
660         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
661         * Makefile.in, configure, aclocal.m4: Re-generate.
662
663 2000-04-05  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
664
665         * gprof.c (copyright): Do not use N_ in array initializer.
666
667 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
668
669         * po/gprof.pot: Regenerate.
670
671         * gprof.c (usage): Restore translated part of bug string.
672
673         * Makefile.am (BASEDIR): Define.
674         (BFDDIR): Define.
675         (INCDIR): Define.
676         (MKDEP): Define.
677         (INCLUDES): Add "-I."
678         (DEP, DEP1, dep.sed, dep, dep-in, dep-am): New targets.
679         (CLEANFILES): Define.
680         Update dependencies.
681         * Makefile.in: Regenerate.
682
683 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
684
685         * gprof.h: #include "bin-bugs.h".
686         * gprof.c (usage): Use REPORT_BUGS_TO.
687
688 2000-03-31  Alan Modra  <alan@linuxcare.com.au>
689
690         * symtab.c (symtab_finalize): Don't use post-increment on
691         structure copy, to work around a ppc gcc bug.
692
693 1999-09-29  Mark Kettenis  <kettenis@gnu.org>
694
695         * hertz.h [MACH] (hertz): Remove macro.  The
696         <machine/mach_param.h> include doesn't exist on al Mach based
697         systems, and the definition of hertz breaks compilation of hertz.c
698         anyway.
699
700 2000-02-22  Ian Lance Taylor  <ian@zembu.com>
701
702         From Brad Lucier <lucier@math.purdue.edu>:
703         * i386.c (i386_find_call): Add cast to ensure that printf argument
704         matches format.
705         * tahoe.c (tahoe_find_call): Likewise.
706         * vax.c (vax_find_call): Likewise.
707
708 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
709
710         * utils.c (print_name_only): Don't pass error strings to
711         printf as format arg.
712
713 1999-09-24  Nick Clifton  <nickc@cygnus.com>
714
715         * gmon_io.c (gmon_out_read): Make sure that sensible values
716         are extracted from a raw header.
717
718 1999-08-06  Ian Lance Taylor  <ian@zembu.com>
719
720         From Brad Lucier <lucier@math.purdue.edu>:
721         * corefile.c (core_create_line_syms): Add cast for printf.
722
723 1999-07-21  Ian Lance Taylor  <ian@zembu.com>
724
725         From Mark Elbrecht:
726         * configure.bat: Remove; obsolete.
727
728 1999-07-15  Ian Lance Taylor  <ian@zembu.com>
729
730         * configure.in: Bump version number to 2.9.5.
731         * configure: Rebuild.
732
733 1999-07-11  Ian Lance Taylor  <ian@zembu.com>
734
735         * corefile.c (core_create_function_syms): Add ATTRIBUTED_UNUSED.
736         * sym-ids.c (non_existent_file): Fully initialize structure.
737
738 1999-07-01  Ian Lance Taylor  <ian@zembu.com>
739
740         * Many files: Add casts in many print statements to cast bfd_vma
741         values to unsigned long when calling printf.
742         * Makefile.am ($(OBJECTS)): Add gmon.h.
743         * Makefile.in: Rebuild.
744
745 1999-06-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
746
747         * gprof.texi: Fix typo.
748
749 1999-06-13  Ian Lance Taylor  <ian@zembu.com>
750
751         From Bob Byrnes <byrnes@curl.com>:
752         * cg_dfn.c: Include "libiberty.h"
753         (DFN_INCR_DEPTH): Define instead of DFN_DEPTH.
754         (dfn_stack): Define as pointer rather than array.
755         (pre_visit): Reallocate dfn_stack as needed.
756
757 1999-04-26  Tom Tromey  <tromey@cygnus.com>
758
759         * aclocal.m4, configure: Updated for new version of libtool.
760
761 1999-04-06  Ian Lance Taylor  <ian@zembu.com>
762
763         * gprof.h (LC_MESSAGES): Never define.
764         * gprof.c (main): Don't pass LC_MESSAGES to setlocale if the
765         system does not define it.
766
767 1999-04-05  H.J. Lu  <hjl@gnu.org>
768
769         * corefile.c (core_create_line_syms): Don't use fixed size array
770         for prev_name and prev_filename.
771
772 1999-04-04  Michael Hohmuth  <hohmuth@innocent.com>
773
774         * gprof.h (FF_BSD44): Define.
775         * gmon.h (struct raw_phdr): Add version, profrate, and spare
776         fields unconditionally.
777         (struct old_raw_phdr): New struct.
778         * gprof.c (main): Handle -O 4.4bsd.
779         * gmon_io.c (gmon_out_read): Handle BSD 4.4 format, either
780         automatically or by user specification.
781         (gmon_out_write): Handle BSD 4.4 format.
782         * configure.in: Don't set BSD44_FORMAT.
783         * gprof.texi (Miscellaneous Options): Document -O 4.4bsd.
784         * configure, gconfig.in: Rebuild.
785
786 Tue Feb 16 17:01:33 1999  Ian Lance Taylor  <ian@cygnus.com>
787
788         * configure.in: Change AC_PREREQ to 2.13.  Change AM_PROG_INSTALL
789         to AC_PROG_INSTALL.  Remove AM_CYGWIN32.  Change AM_EXEEXT to
790         AC_EXEEXT.  Add comment to AC_DEFINE.
791         * acconfig.h: Remove.
792         * aclocal.m4: Rebuild.
793         * configure: Rebuild.
794         * Makefile.in: Rebuild.
795         * gconfig.in: Rebuild.
796
797 1998-12-06  Ian Lance Taylor  <ian@cygnus.com>
798
799         * gprof.texi (Symspecs): Mention that you have to add any
800         underscore yourself when naming a symbol.
801
802 1998-11-02  Geoffrey Noer  <noer@cygnus.com>
803
804         * configure.in: detect cygwin* instead of cygwin32*
805         * configure: regenerate
806
807 Wed Aug 12 14:59:06 1998  Ian Lance Taylor  <ian@cygnus.com>
808
809         Avoid some overflow cases:
810         * basic_blocks.h (bb_min_calls): Change to unsigned long.
811         * call_graph.h (cg_tally): Change count parameter to unsigned
812         long.
813         * cg_arcs.h (Arc): Change count field to unsigned long.
814         (arc_add): Change count parameter to unsigned long.
815         * source.h (Source_File): Change ncalls field to unsigned long.
816         * symtab.h (Sym): Change fields ncalls, bb_calls, and
817         cg.self_calls to unsigned long.
818         * Many files: Update accordingly.
819
820         * configure, Makefile.in, aclocal.m4: Rebuild with current tools.
821
822 Fri Jul 10 17:29:49 1998  Stan Cox  <scox@equinox.cygnus.com>
823
824         * configure.in (BSD44_FORMAT): Define for cygwin32, win32, mingw32
825         * configure: Rebuild.
826
827 Fri Jun 12 13:40:05 1998  Tom Tromey  <tromey@cygnus.com>
828
829         * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
830         ($(PACKAGE).pot): Unconditionally depend on POTFILES.
831
832 Sun May 10 22:35:33 1998  Jeffrey A Law  (law@cygnus.com)
833
834         * po/Make-in (install-info): New target.
835
836 Tue May  5 18:28:40 1998  Tom Tromey  <tromey@cygnus.com>
837
838         * gprof.h (_): Undefine BFD's version.
839
840 Tue Apr 28 19:17:33 1998  Tom Tromey  <tromey@cygnus.com>
841
842         * gprof.c (main): Conditionally call setlocale.
843         * gprof.h: Include <locale.h> if HAVE_LOCALE_H.
844         (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
845
846 Tue Apr 28 19:50:09 1998  Ian Lance Taylor  <ian@cygnus.com>
847
848         * corefile.c: Rename from core.c.
849         * corefile.h: Rename from core.h.
850         * Many .c files: Include corefile.h rather than core.h.
851         * Makefile.am (sources): Change core.c to corefile.c.
852         (noinst_HEADERS): Change core.h to corefile.h.
853         ($(OBJECTS)): Depend upon corefile.h rather than core.h.
854         (corefile.o): Rename target from core.o, depend upon corefile.c.
855         * Makefile.in, po/POTFILES.in: Rebuild.
856
857 Mon Apr 27 16:50:40 1998  Ian Lance Taylor  <ian@cygnus.com>
858
859         * configure.in: Change version number to 2.9.4
860         * configure: Rebuild.
861
862 Wed Apr 22 16:01:17 1998  Tom Tromey  <tromey@cygnus.com>
863
864         * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
865
866 Wed Apr 22 00:00:22 1998  Tom Tromey  <tromey@scribbles.cygnus.com>
867
868         * gprof.h: Added includes and defines for gettext.
869         * configure.in (ALL_LINGUAS): New macro.
870         Call CY_GNU_GETTEXT.  Create po/Makefile.in and po/Makefile.
871         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
872         HAVE_LC_MESSAGES): Define.
873         * gprof.c (main): Call setlocale, bindtextdomain, textdomain.
874         * Makefile.am (SUBDIRS): New macro.
875         (INCLUDES): Look in intl dirs for headers.  Define LOCALEDIR.
876         (gprof_DEPENDENCIES): Added INTLDEPS.
877         (gprof_LDADD): Added INTLLLIBS.
878         (POTFILES): New macro.
879         (po/POTFILES.in): New target.
880         * Many files: Wrap user-visible strings with gettext invocation.
881
882 Tue Apr  7 12:43:37 1998  Ian Lance Taylor  <ian@cygnus.com>
883
884         From hjl@lucon.org <H.J. Lu>:
885         * Makefile.am (diststuff): New target.
886         * Makefile.in: Rebuild.
887
888 Mon Mar 30 12:47:48 1998  Ian Lance Taylor  <ian@cygnus.com>
889
890         * configure.in: Set version to 2.9.1.
891         * configure: Rebuild.
892
893         * Branched binutils 2.9.
894
895 Sat Mar 28 23:09:08 1998  Ian Lance Taylor  <ian@cygnus.com>
896
897         Fix some gcc -Wall warnings:
898         * cg_arcs.c (num_cycles): Change to unsigned int.
899         (numarcs): Likewise.
900         (arc_add): Change maxarcs to unsigned int.
901         (cg_assemble): Change index to unsigned int.
902         * cg_arcs.h (num_cycles, numarcs): Update declarations.
903         * cg_print.c (cg_print): Change index to unsigned int.
904         (cg_print_index): Change index, nnames, todo, i, and j to unsigned
905         int.
906         (cg_print_file_ordering): Change symbol_count and index2 to
907         unsigned int.
908         * core.c (symbol_map_count): Change to unsigned int.
909         (core_create_function_syms): Change j to unsigned int.
910         (core_create_line_syms): Add cast to avoid warning.
911         * hist.c (hist_assign_samples): Change j to unsigned int.
912         (hist_print): Change index to unsigned i nt.  Add cast to avoid
913         warning.
914         * sym_ids.c (parse_spec): Add casts to avoid warning.
915         * symtab.c (symtab_finalize): Change j to unsigned int.
916         (sym_lookup): Update printf format strings.
917         * symtab.h (Sym_Table): Change len to unsigned int.
918         * tahoe.c (tahoe_reladdr): Add casts to avoid warnings.
919
920 Tue Mar 24 19:00:11 1998  Ian Lance Taylor  <ian@cygnus.com>
921
922         Add --demangle and --no-demangle options:
923         * gprof.h (demangle): Declare.
924         * gprof.c (demangle): New global variable.
925         (OPTION_DEMANGLE, OPTION_NO_DEMANGLE): Define.
926         (long_options): Add "demangle" and "no-demangle".
927         (usage): Mention --demangle and --no-demangle.
928         (main): Handle OPTION_DEMANGLE and OPTION_NO_DEMANGLE.
929         * utils.c (print_name_only): Only demangle symbol name if demangle
930         is true.
931         * gprof.texi (Output Options): Document new options.
932
933 Fri Mar 20 19:21:56 1998  Ian Lance Taylor  <ian@cygnus.com>
934
935         * Makefile.in: Rebuild with automake 1.2e.
936         * aclocal.m4, configure: Rebuild with libtool 1.2.
937
938 Thu Feb 12 14:36:05 1998  Ian Lance Taylor  <ian@cygnus.com>
939
940         * gprof.c (usage): Update bug-gnu-utils address.
941
942 Sat Feb  7 15:43:12 1998  Ian Lance Taylor  <ian@cygnus.com>
943
944         * configure, aclocal.m4: Rebuild with new libtool.
945
946 Fri Feb  6 12:02:28 1998  Ian Lance Taylor  <ian@cygnus.com>
947
948         * alpha.c (alpha_Instruction): Use int, not signed.
949
950 Fri Feb  6 02:00:19 1998  Jeffrey A Law  (law@cygnus.com)
951
952         * core.c (core_init): Adding missing "break".
953
954 Thu Feb  5 12:49:37 1998  Ian Lance Taylor  <ian@cygnus.com>
955
956         * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
957
958 Tue Feb  3 14:25:25 1998  Brent Baccala  <baccala@freesoft.org>
959
960         * bbconv.pl: New file.
961         * Makefile.am (EXTRA_DIST): Add bbconv.pl.
962         * Makefile.in: Rebuild.
963
964         * gprof.texi: Extensive additions to document all arguments and
965         output formats.
966
967         * symtab.c (symtab_finalize): Prefer function symbols over line
968         symbols.
969         (dbg_sym_lookup): Correct debugging messages.
970
971         * gprof.c (main): --sum implies --line.
972
973         * cg_print.c (cg_print): When doing line by line profiling, don't
974         use a non-function as a main listing item.
975
976         * call_graph.c (cg_tally): When using line by line profiling, use
977         the function symbol as the child.
978
979         * symtab.h (NBBS): Define.
980         (Sym): Add bb_addr and bb_calls fields.
981         * basic_blocks.c (bb_read_rec): Save multiple basic blocks per
982         symbol.
983         (bb_write_blocks): Adjust for multiple basic blocks per symbol.
984         (print_exec_counts): Don't check whether a symbol is the start of
985         a basic block.  Print all basic blocks for a symbol.
986         (annotate_with_count): Rewrite to print all basic block counts and
987         to pay attention to width argument.
988         (print_annotated_source): Don't check whether symbol is the start
989         of a basic block.
990
991         Make it possible to build a cross gprof, although a few cases are
992         still not handled:
993         * configure.in: Don't set MY_TARGET.
994         * gprof.h: Don't include MACHINE_H.  Don't define FOPEN_RB or
995         FOPEN_WB; just get them from sysdep.h.
996         * core.h (min_insn_size, offset_to_code): Declare.
997         * core.c (MIN_INSN_SIZE): Don't define.
998         (min_insn_size, offset_to_code): New variables.
999         (core_init): Initialize min_insn_size and offset_to_code.
1000         (find_call): New function.
1001         (core_create_line_syms): Don't use min_dist.  Set is_static in
1002         pass 2.
1003         * hist.c (UNITS_TO_CODE): Define.
1004         * gprof.c (default_excluded_list): Add "__mcount_internal".
1005         * gmon.h: Change TARGET_alpha to __alpha__.
1006         * hertz.h: Ifdef MACH, define hertz as HZ.
1007         * alpha.c (alpha_Instruction): Rename from Instruction.  Change
1008         all references.
1009         (alpha_find_call): Rename from find_call.
1010         * alpha.h: Remove.
1011         * dummy.c, dummy.h: Remove.
1012         * i386.c (i386_iscall): Rename from iscall.  Change all
1013         references.  Check for call instruction, not jump or lcall.
1014         (i386_find_call): Rename from find_call.  Correct for VMA.
1015         Correct call destination computation.  Don't dereference symbol if
1016         it is NULL.
1017         * i386.h: Remove.
1018         * ns532.c, ns532.h: Remove.
1019         * sparc.c (CALL): Define.
1020         (sparc_find_call): Rename from find_call.
1021         * sparc.h: Remove.
1022         * tahoe.c: Include cg_arcs.h, core.h, hist.h, and symtab.h.  Don't
1023         include time_host.h.
1024         (CALLF, PC): Define.
1025         (enum tahoe_opermodes, tahoe_operandenum): Define.  Rename all
1026         references to opermodes or operandenum to these.
1027         (tahoe_operandmode): Rename from operandmode.  Call abort if
1028         switch does not return.
1029         (tahoe_operandname): Rename from operandname.  Call abort if
1030         switch does not return.
1031         (tahoe_operandlength): Rename from operandlength.  Call abort if
1032         switch does not return.
1033         (tahoe_reladdr): Rename from reladdr.
1034         (tahoe_find_call): Rename from find_call.  Use core_text_space
1035         rather than textspace.
1036         * tahoe.h: Remove.
1037         * vax.c (CALLS, PC): Define.
1038         (enum opermodes, operandenum, struct modebyte): Define.
1039         (vax_operandmode): Rename from operandmode.  Call abort if switch
1040         does not return.
1041         (vax_operandname): Rename from operandname.  Call abort if switch
1042         does not return.
1043         (vax_operandlength): Rename from operandlength.  Call abort if
1044         switch does not return.
1045         (vax_reladdr): Rename from reladdr.
1046         (vax_find_call): Rename from find_call.
1047         * vax.h: Remove.
1048         * Makefile.am (AUTOMAKE_OPTIONS): Set to cygnus.
1049         (MY_TARGET): Remove.
1050         (INCLUDES): Remove -DTARGET_$(MY_TARGET) and -DMACHINE_H=
1051         \"$(MY_TARGET).h\".
1052         (gprof_SOURCES): Add i386.c, alpha.c, vax.c, tahoe.c, sparc.c.
1053         (gprof_DEPENDENCIES): Remove $(MY_TARGET).o.
1054         (gprof_LDADD): Likewise.
1055         (noinst_HEADERS): Remove alpha.h, i386.h, ns532.h, sparc.h,
1056         tahoe.h, vax.h, dummy.h.
1057         (EXTRA_DIST): Remove alpha.c, i386.c, ns532.c, sparc.c, tahoe.c,
1058         vax.c, dummy.c.
1059         ($(OBJECTS)): Don't depend upon $(MY_TARGET).h.
1060         ($(MY_TARGET).o): Remove target.
1061         (i386.o, alpha.o, vax.o, tahoe.o, sparc.o): New targets.
1062         * configure, Makefile.in, aclocal.m4: Rebuild.
1063
1064 Mon Dec 29 14:17:08 1997  Ian Lance Taylor  <ian@cygnus.com>
1065
1066         * core.c (core_sym_class): Treat weak symbols as text symbols.
1067         From Dean Gaudet <dgaudet@arctic.org>.
1068
1069 Wed Sep 24 11:35:43 1997  Ian Lance Taylor  <ian@cygnus.com>
1070
1071         * aclocal.m4: Rebuild with new libtool.
1072         * Makefile.in: Rebuild with current automake.
1073         * configure: Rebuild.
1074
1075 Sat Aug  9 16:25:01 1997  Ian Lance Taylor  <ian@cygnus.com>
1076
1077         * configure.in: Change version number to 2.8.2.  Call
1078         AM_PROG_LIBTOOL.  Remove shared library handling; now handled by
1079         libtool.  Add AM_CONFIG_HEADER.  Change AC_PROG_INSTALL to
1080         AM_PROG_INSTALL.  Add AM_EXEEXT.
1081         * Makefile.am (LINK): Remove.
1082         (gprof_LDFLAGS): Remove
1083         (gprof_DEPENDENCIES): Change libbfd.a to libbfd.la.
1084         (gprof_LDADD): Likewise.
1085         ($(OBJECTS)): Depend upon gconfig.h and ../bfd/config.h.
1086         * gprof.h: Undefine PACKAGE and VERSION after including BFD
1087         sysdep.h file, then include new gconfig.h file.
1088         * gprof.c (VERSION): Don't define.
1089         * acconfig.h: New file.
1090         * stamp-h.in: New file.
1091         * gconfig.in: New file, created by autoheader.
1092         * Makefile.in, configure, aclocal.m4: Rebuild.
1093
1094 Sat Jun 28 23:20:42 1997  Ian Lance Taylor  <ian@cygnus.com>
1095
1096         * aclocal.m4, configure, Makefile.in: Rebuild with automake 1.2.
1097
1098 Mon Jun 16 15:31:39 1997  Ian Lance Taylor  <ian@cygnus.com>
1099
1100         * Makefile.am (INCLUDES): Add -DDEBUG.
1101         * Makefile.in: Rebuild.
1102
1103 Tue Apr 15 14:19:30 1997  Ian Lance Taylor  <ian@cygnus.com>
1104
1105         Change to use automake:
1106         * Makefile.am: New file.
1107         * configure.in: Run AM_INIT_AUTOMAKE, AM_MAINTAINER_MODE, and
1108         AM_CYGWIN32.
1109         * aclocal.m4: New file, created by aclocal.
1110         * Makefile.in: Replace with file created by automake --cygnus.
1111         * configure: Rebuild.
1112
1113 Thu Apr  3 13:21:25 1997  Ian Lance Taylor  <ian@cygnus.com>
1114
1115         * gprof.c (VERSION): Define as "2.8.1".
1116
1117         * Branched binutils 2.8.
1118
1119 Thu Mar 27 17:15:23 1997  Ian Lance Taylor  <ian@cygnus.com>
1120
1121         * gprof.c (main): Correct copyright message.
1122
1123 Mon Mar 24 11:12:26 1997  Ian Lance Taylor  <ian@cygnus.com>
1124
1125         * Makefile.in (.c.o): Define TARGET_$(MY_TARGET) when compiling.
1126         * gmon.h: Use bytes counts rather than sizeof in struct raw_phdr
1127         and struct raw_arc.
1128
1129 Mon Mar 17 10:54:47 1997  David Mosberger-Tang  <davidm@azstarnet.com>
1130
1131         * cg_arcs.c (arc_add): memset() newly alloced arc to ensure
1132         all fields are initialized with 0.
1133
1134 Sat Mar 15 19:17:31 1997  H.J. Lu  <hjl@lucon.org>
1135
1136         * symtab.h (find_call): Declare.
1137         * cg_arcs.c (cg_assemble): Don't declare find_call.
1138         * hist.c (scale_and_align_entries): Declare.
1139
1140 Thu Feb 27 12:46:53 1997  Ian Lance Taylor  <ian@cygnus.com>
1141
1142         * configure.in: Define BSD44_FORMAT if the target looks like a
1143         BSD4.4 derived system.
1144         * configure: Rebuild.
1145         * Makefile.in (.c.o): Add @DEFS@.
1146         * gmon_io.c (gmon_out_read): In BSD44_FORMAT code, get profrate
1147         from profrate field, not version field.
1148
1149 Thu Jan 16 17:42:54 1997  Ian Lance Taylor  <ian@cygnus.com>
1150
1151         * dummy.c (find_call): Clear ignore_direct_calls.
1152
1153 Tue Dec 31 15:44:10 1996  Ian Lance Taylor  <ian@cygnus.com>
1154
1155         * Makefile.in (.c.o): Add -D_GNU_SOURCE.  Put $(CFLAGS) at the
1156         end.
1157         (gprof): Put $(CFLAGS) after the other options.
1158
1159 Tue Nov 26 17:08:38 1996  Ian Lance Taylor  <ian@cygnus.com>
1160
1161         * configure: Rebuild with autoconf 2.12.
1162
1163 Wed Oct  2 15:23:16 1996  Ian Lance Taylor  <ian@cygnus.com>
1164
1165         * sparc.c (find_call): Align p_lowpc to avoid bus error.
1166
1167 Tue Oct  1 15:58:10 1996  Ian Lance Taylor  <ian@cygnus.com>
1168
1169         * gprof.c (usage): Print bug report address.
1170         (main): Change version printing to match current GNU standards.
1171
1172 Fri Aug 30 12:16:11 1996  Ian Lance Taylor  <ian@cygnus.com>
1173
1174         * gmon.h: Replace #elif with #else/#endif.
1175
1176 Thu Aug 29 17:04:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
1177
1178         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
1179         * configure: Regenerate.
1180
1181 Thu Aug 22 17:12:30 1996  Ian Lance Taylor  <ian@cygnus.com>
1182
1183         * configure.in: Set and substitute HLDENV.
1184         * configure: Rebuild.
1185         * Makefile.in (HLDENV): New variable.
1186         (gprof): Use $(HLDENV).
1187
1188 Wed Aug  7 14:43:51 1996  Philippe De Muyter  <phdm@info.ucl.ac.be>
1189
1190         * core.c (read_function_mappings): Cast xmalloc return.
1191
1192 Thu Jul  4 12:01:42 1996  Ian Lance Taylor  <ian@cygnus.com>
1193
1194         * gprof.c (VERSION): Define as "2.7.1".
1195
1196         * Released binutils 2.7.
1197
1198         * bb_exit_func.c: Rename from __bb_exit_func.c, so that it can be
1199         stored on a System V file system.
1200
1201 Thu Jun 27 11:36:22 1996  Ian Lance Taylor  <ian@cygnus.com>
1202
1203         * configure.in: Call AC_ISC_POSIX.
1204         * configure: Rebuild.
1205         * Makefile.in (gprof): Pass $(CFLAGS) during link.
1206         * hertz.c: Don't include <sys/time.h>; let sysdep.h handle that.
1207         If HAVE_SETITIMER is not defined, try using sysconf.
1208
1209 Mon Jun 24 18:27:28 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
1210
1211         * Makefile.in (exec_prefix, bindir, libdir, mandir, infodir, datadir,
1212         INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1213         * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1214         (AC_PROG_INSTALL): added.
1215         * configure: Rebuilt.
1216
1217 Mon Jun 24 12:03:09 1996  Ian Lance Taylor  <ian@cygnus.com>
1218
1219         * configure.in: On alpha*-*-osf*, link against libbfd.a if not
1220         using shared libraries.
1221         * configure: Rebuild with autoconf 2.10.
1222
1223 Tue Jun 18 17:35:58 1996  Ian Lance Taylor  <ian@cygnus.com>
1224
1225         * core.c (core_create_line_syms): Use xstrdup rather than strdup.
1226         * source.c (source_file_lookup_path): Likewise.
1227
1228 Mon Apr  8 14:44:33 1996  Ian Lance Taylor  <ian@cygnus.com>
1229
1230         * configure.in: Permit --enable-shared to specify a list of
1231         directories.
1232         * configure: Rebuild.
1233
1234 Thu Mar 21 17:18:25 1996  Ian Lance Taylor  <ian@cygnus.com>
1235
1236         * core.c (core_create_function_syms): Move filename and func_name
1237         inside ifdef where they are used.
1238
1239         * core.c (core_sym_class): Parenthesize && within ||.
1240         * symtab.c (symtab_finalize): Correct parenthesization.
1241
1242         * cg_print.h (cg_print_file_ordering): Declare.
1243         (cg_print_function_ordering): Declare.
1244
1245         * __bb_exit_func.c (__bb_exit_func): Replace bcopy with memcpy.
1246         * cg_arcs.c (arc_add): Likewise.
1247         * cg_print.c (cg_print_function_ordering): Likewise.
1248
1249 Thu Mar 21 17:02:02 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1250
1251         * gprof.c (default_excluded_list): Add "__mcount".
1252
1253         * gprof.c (main): Change ifdef __osf__ to __alpha__.
1254
1255         * gmon_io.c (gmon_out_read): If BSD44_FORMAT is defined, get the
1256         profiling rate from the header.
1257
1258         * gmon.h (struct raw_phdr): Only include pad if both __alpha__ and
1259         __osf__ are defined.  Add new fields if BSD44_FORMAT is defined.
1260
1261         * alpha.h (MIN_INSN_SIZE): Define.
1262         * core.c (MIN_INSN_SIZE): If not defined, define as 1.
1263         (core_sym_class): Ignore debugging symbols.
1264         (core_create_line_syms): Use MIN_INSN_SIZE when gathering line
1265         information.
1266
1267 Wed Mar 20 18:15:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1268
1269         * cg_print.c (cg_print_function_ordering): Fix __GNUC__ misspelled
1270         as __GNU_C__.
1271         (order_and_dump_functions_by_arcs): Likewise.
1272
1273 Tue Mar 12 12:19:50 1996  Ian Lance Taylor  <ian@cygnus.com>
1274
1275         * configure: Rebuild with autoconf 2.8.
1276
1277 Sun Feb 18 15:06:18 1996  Ian Lance Taylor  <ian@cygnus.com>
1278
1279         * configure.in: Check for 'do not mix' from native linker before
1280         trying to use -rpath.
1281         * configure: Rebuild.
1282
1283 Tue Feb 13 15:32:53 1996  Ian Lance Taylor  <ian@cygnus.com>
1284
1285         * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
1286         * configure: Rebuild.
1287
1288 Wed Feb  7 14:03:17 1996  Ian Lance Taylor  <ian@cygnus.com>
1289
1290         * configure.in: Don't set CC.  Look for --enable-shared.  Set
1291         BFDLIB and HLDFLAGS and substitute them.
1292         * configure: Rebuild.
1293         * Makefile.in (LIBS): Use @BFDLIB@.
1294         (HLDFLAGS): New variable.
1295         (gprof): Use $(HLDFLAGS).
1296
1297 Mon Feb  5 16:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
1298
1299         Support for building bfd and opcodes as shared libraries, based on
1300         patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
1301         * Makefile.in (LIBDEPS): New variable.
1302         (LIBS): Use -L../bfd -lbfd.
1303         (gprof): Depend upon $(LIBDEPS) rather than $(LIBS).
1304
1305 Sat Dec 30 10:11:03 1995  Jeffrey A Law  (law@cygnus.com)
1306
1307         * gprof.c (long_options): Add "--function-ordering" and
1308         "--file-ordering" options.
1309         (usage): Add new options to usage message.
1310         (main): Handle new options.
1311         * gprof.h (STYLE_FUNCTION_ORDER): Define.
1312         (STYLE_FILE_ORDER): Define.
1313         (function_mapping_file): Declare.
1314         * cg_arcs.c (arcs, numarcs): New globals.
1315         (arc_add): Put new arcs into the arc array so the function/file
1316         ordering code can examine them.
1317         * cg_arcs.h (struct arc): New field "has_been_placed".
1318         (arcs, numarcs): Declare new globals.
1319         * core.c (symbol_map, symbol_map_count): New globals.
1320         (read_function_mappings): New function to read in a function
1321         to object map file.
1322         (core_init): Call read_function_mappings if a function mapping
1323         file exists.
1324         (core_create_function_syms): Handle function to object file
1325         mappings.
1326         * symtab.h (struct sym): New fields "mapped", "has_been_placed",
1327         "nuses", "prev".
1328         * cg_print.c (cmp_arc_count): New function for sorting arcs.
1329         (cmp_fun_nuses): Likewise for functions.
1330         (cg_print_function_ordering): New function to print a suggested
1331         function ordering.
1332         (cg_print_file_ordering): Likewise for ordering .o files.
1333         (order_and_dump_functions_by_arcs): Helper function for function
1334         and object file ordering code.
1335
1336 Sun Dec 24 21:32:27 1995  Jeffrey A Law  (law@cygnus.com)
1337
1338         * core.c (core_sym_class): Ignore symbols without BSF_FUNCTION
1339         set if ignore_non_function is set.
1340         * gprof.h (ignore_non_functions): Declare.
1341         * gprof.c (ignore_non_functions): Define.
1342         (long_options): Add "ignore-non-functions".
1343         (usage): Add new options.
1344         (main): Recognize "-D" and "--ignore-non-functions" option.
1345
1346 Tue Nov 21 13:24:39 1995  Ken Raeburn  <raeburn@cygnus.com>
1347
1348         * Makefile.in (.m.c): Strip out directory name from function
1349         name.
1350
1351         * hist.c (scale_and_align_entries): Don't use DEFUN_VOID.  Do
1352         UNITS_TO_CODE adjustment unconditionally; compiler can optimize
1353         away zero-offset case.  Refer to scaled_addr, not aligned_addr.
1354
1355         * vax.c: Don't include vax.h here.
1356
1357 Thu Nov 16 03:41:37 1995  Ken Raeburn  <raeburn@cygnus.com>
1358
1359         Version 2.6 released.
1360
1361 Wed Nov  8 11:40:04 1995  Ian Lance Taylor  <ian@cygnus.com>
1362
1363         * gprof.c (main): Cast getenv return value.
1364
1365 Mon Nov  6 15:05:00 1995  Ken Raeburn  <raeburn@cygnus.com>
1366
1367         * Makefile.in (TAGS): New target.
1368
1369 Wed Nov  1 12:51:21 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1370
1371         * Makefile.in (DISTSTUFF):  Rename to GEN_FILES, to avoid confusion.
1372         (all):  Depend on $(GEN_FILES), not diststuff (which also depends
1373         on info).
1374
1375 Wed Nov  1 15:23:15 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <manfred@lts.sel.alcatel.de>
1376
1377         * sym_ids.c: Include <ctype.h>.
1378
1379 Wed Oct 25 13:24:31 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1380
1381         * Makefile.in (diststuff):  Also make info.
1382         (mostlyclean):  Don't remove gprof.info*.
1383         (maintainer-clean realclean):  Also remove *.info*.
1384
1385 Fri Oct  6 16:25:32 1995  Ken Raeburn  <raeburn@cygnus.com>
1386
1387         Mon Sep 25 22:49:32 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1388
1389         * Makefile.in: Add dependecies for $(OBJS) on header files.
1390
1391         * cg_print.c (print_cycle, print_members, cg_print_index): Fix new
1392         style output format to make it consistent.
1393         * dummy.c (find_call): Fix typo in error message.
1394
1395 Wed Sep 20 13:21:02 1995  Ian Lance Taylor  <ian@cygnus.com>
1396
1397         * Makefile.in (maintainer-clean): New target, synonym for
1398         realclean.
1399
1400 Fri Sep  8 14:38:08 1995  Ian Lance Taylor  <ian@cygnus.com>
1401
1402         * Makefile.in (install): Don't install in $(tooldir).
1403
1404 Fri Aug 25 15:30:05 1995  Ken Raeburn  <raeburn@cygnus.com>
1405
1406         NS32K changes from Ian Dall:
1407         * configure.in: Use ns32k, not ns532.
1408         * ns532.c: Include symtab.h.
1409         (find_call): Renamed from findcall.  Print a message.
1410         * ns532.h: Remove dummy.h comments.
1411
1412 Tue Aug 22 10:00:45 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
1413
1414         * Makefile.in (install): Remove "brokensed" hack, unnecessary now
1415         that we're using autoconf.
1416
1417 Wed Jul 19 18:46:13 1995  Fred Fish  <fnf@cygnus.com>
1418
1419         * core.c (get_src_info): Cast arg 7 of bfd_find_nearest_line
1420         to proper type of "unsigned int *".
1421
1422 Fri Jun 16 15:29:36 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
1423
1424         * configure.in: Use changequote around use of [].
1425
1426 Mon Jun 12 12:14:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
1427
1428         * Makefile.in (distclean, realclean): Remove config.cache and
1429           config.log.
1430
1431 Wed May 17 17:56:53 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
1432
1433         * Makefile.in (Makefile): Added config.status to dependency list.
1434           (config.status): New target.
1435           (SHELL): New definition.
1436
1437 Tue Apr 25 21:11:12 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
1438
1439         * Makefile.in (install): Depend on "all".
1440
1441 Thu Apr 20 17:29:07 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
1442
1443         * Makefile.in: Change all references to MY_MACHINE to MY_TARGET,
1444         to match configure script.
1445
1446 Wed Apr 19 11:19:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
1447
1448         * gen-c-prog.awk: Changed reference to "make-c-prog.awk" in
1449           comment emitted by this script to gen-c-prog.awk.
1450
1451         * Makefile.in, configure.in: Converted to use autoconf.
1452         * configure: New file, generated with autoconf 2.3.
1453         * config/{mt-alpha, mt-dummy, mt-i386, mt-ns532, mt-sparc,
1454           mt-tahoe, mt-vax}: Removed.
1455
1456 Mon Mar 13 21:44:24 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
1457
1458         * __bb_exit_func.c: New file, from David Mosberger-Tang.
1459
1460         Thu Feb  9 16:56:07 1995  David Mosberger-Tang  <davidm@piston.cs.arizona.edu>
1461
1462         * All *.c: More cleanup towards GNU format.
1463
1464         * gmon_out.h (struct gmon_hist_hdr, struct gmon_cg_arc_record): 
1465         replaced sizeof (bfd_vma) by size (char*) because Ken tells me
1466         that bfd_vma is only guaranteed to be at least as big as a pointer.
1467
1468         (GMON_Record_tag): added explicit enumeration values to ensure
1469         compatibility across compilers.
1470
1471         * gmon_io.c (get_vma, put_vma): replaced sizeof(bfd_vma) by
1472         sizeof(char*).
1473
1474 Tue Feb  7 17:24:12 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
1475
1476         * All *.c and *.h files: Ran "indent -gnu".  Cleaned up a couple
1477         of constructs GNU indent couldn't handle.  Block comments not yet
1478         rewritten in GNU format.
1479
1480         * gprof.c (VERSION): Changed to 2.6, to get in sync for next
1481         binutils release.
1482
1483 Sun Feb  5 16:19:46 1995  David Mosberger-Tang  <davidm@piston.cs.arizona.edu>
1484
1485         * symtab.c (symtab_finalize): ensure globals symbols really
1486         are favored over static ones---even if their name looks less
1487         preferable; this is important for HP-UX; for example, there
1488         is a static label Ltext_something that aliases the global
1489         symbol _start
1490
1491         * hist.c (hist_print): auto-scaling is now in effect for FSF-style
1492         output only; also, auto-scaling is now performed based on
1493         per-call, rather than total execution time, which is what it was
1494         meant to be.
1495
1496         * gprof.h (File_Format): new type.
1497
1498         * gprof.c (VERSION): upped to 2.7---seems to be completely out of
1499         sync with Cygnus version numbers though...
1500
1501         (long_options): renamed --gmon-info to --file-info, --width added,
1502         renamed --old-file-format to --file-format
1503         (main): dito; also added support to read prof files, but as
1504         mon_out_read() is not implemented, it's #ifdef'd out for now
1505
1506         (usage): update to reflect new options.
1507
1508         * gmon_io.c: replaced "old_file_format" by more general
1509         "file_format" option
1510
1511         * gmon.h (struct raw_phdr): fixed declaration for OSF/1.
1512
1513         * core.c (core_sym_class): added back check for __gnu_compiled and
1514         ___gnu_compiled for the benefit of systems without
1515         bfd_find_nearest_line() support
1516
1517         (get_src_info): now the libbfd is fixed, invoke bfd_find_nearest_line()
1518         with section-relative addresses
1519
1520         (core_create_function_syms): get_src_info() calls are currently
1521         enabled for OSF/1 only.  It appears to work allright for SunOS
1522         4.1.x as well, but on SPARCs it gets painfully slow with the
1523         current implementation of aout_32_find_nearest_line();
1524         unfortunately, this means that static functions will not have their
1525         filename printed in the call-graph function index; line-level
1526         profiling should still work, but requires some patience
1527
1528         * cg_print.c (cg_print_index): sanitised printing of index when
1529         using FSF-style output; in particular, output width is now controlled
1530         via option --width and the function tries hard to keep columns
1531         aligned even in the presence of (occasional) long names
1532
1533         * NOTES: a first shot at updating the documentation.
1534
1535 Wed Feb  1 19:07:44 1995  David Mosberger-Tang  <davidm@piston.cs.arizona.edu>
1536
1537         * core.c (core_create_function_syms): fixed computation of min_vma
1538         and max_vma.
1539
1540         * *.c: removed rcsid.
1541
1542 Tue Jan 31 16:18:18 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
1543
1544         * Lots of changes from David Mosberger-Tang:
1545
1546         Tue Oct 25 19:20:14 1994  David Mosberger-Tang  <davidm@piston.cs.arizona.edu>
1547
1548         * gprof.c (main): put parentheses around & within &&.
1549
1550         * basic_blocks.c (bb_read_rec): print warning message (once) when
1551         ignoring basic-block execution counts.
1552
1553         * source.c (source_file_lookup_name): corrected second argument to
1554         strcmp().
1555
1556         * hist.c (print_header): merged Fri Oct 21 18:58:02 1994 change by
1557         Ken Raeburn <raeburn@cujo.cygnus.com> from binutils-2.5.1.
1558
1559         * gmon_io.c (gmon_out_read): the output stule STYLE_GMON_INFO is now
1560         supported both for old and new (versioned) gmon.out files.  Old
1561         files are identified as version 0.
1562
1563         * gmon.h (struct raw_arc): count field is now sizeof(long) bytes
1564         long (instead of 4) because that is what OSF/1 v3.0 uses.
1565
1566         * core.c: minor fixes and debugging info changes.
1567
1568         Sun Sep 11 18:47:47 1994  David Mosberger-Tang  (davidm@piston.cs.arizona.edu)
1569
1570         * core.c (core_init): if .text cannot be found, try $CODE$ (the
1571         name of the text-section under HP-UX).
1572
1573         * hist.c (hist_assign_samples): fixed off-by-one bug: highpc
1574         points one past the last sampling bin, so hist_scale should be
1575         computed as "hist_scale /= hist_num_bins", not "hist_scale /=
1576         hist_num_bins - 1".
1577
1578         * gmon_io.c, hist.c, hist.h: renamed hist_num_samples to
1579         hist_num_bins.
1580
1581         * configure.in: added alpha-*-*) for per-target config.
1582
1583         * alpha.c, alpha.h: created.
1584
1585         * gprof.c (default_excluded_list): <locore>, <hicore> added.
1586
1587         * core.c (core_create_function_syms, core_create_line_syms):
1588         explicitly keep two sentinels "<locore>" and "<hicore>" that catch
1589         all addresses outside the text-space.  Thus, sym_lookup(&symtab,
1590         addr) continues to guarantee not to return 0 on any address.  It
1591         also avoids incorrectly crediting the first/last symbol in the
1592         text-space.
1593
1594         * core.c (core_create_line_syms): always create function symbols
1595         first, then merge in line symbols; this is so that if parts of the
1596         program were compiled without -g, function-level symbols are
1597         available still.
1598
1599         * utils.c (print_name_only): support for print_path added.
1600
1601         * symtab.c (cmp_addr): also use is_func flag in comparison.
1602         (symtab_finalize): return immediately when table empty; now
1603         more careful about getting rid of the right duplicate symbol.
1604
1605         * sparc.c (find_call): many fixes---this function was rather
1606         botched in binutils-2.4 already; it should work again.
1607
1608         * source.c (source_file_lookup_path): PATH is now strdup'ed (it is
1609         not good to rely on get_src_info() to return distinct string
1610         pointers).
1611
1612         * search_list.c (search_list_append): added cast for xmalloc().
1613
1614         * hist.c: added explicit initialization to some of the global
1615         variables; fixed SItab (scales were off by a factor of 10).
1616
1617         * hist.h: include of bfd.h added.
1618
1619         * gprof.c, gprof.h (print_path): added.
1620
1621         * gprof.h (MAX): fixed.
1622
1623         * gmon_out.h: renamed gmon_time_hist_hdr to gmon_hist_hdr.
1624
1625         * gmon_io.c: added some casts to (long) so we can always print as %lx
1626
1627         * core.c (core_get_text_space): fixed to make it work.
1628
1629         * cg_print.c (cg_print_index): added support for print_path option.
1630
1631         * cg_dfn.h (cg_dfn): wrap prototype in PARAMS().
1632
1633         * call_graph.c, gmon_io.c, hist.c: avoid taking address of array
1634         as some compilers complain (e.g., DEC's OSF/1 compiler)
1635
1636         * basic_blocks.c, gmon_io.c, hist.c, source.c, sym_ids.c,
1637         symtab.c: calls to memset() had 2nd and 3rd args reversed.
1638
1639         Sat Sep 10 21:53:13 1994  David Mosberger-Tang  (davidm@piston.cs.arizona.edu)
1640
1641         * gprof.c: added "_mcount" to default_excluded_list.
1642         (main): if output_style==0 and there is either a histogram or a
1643         call-graph, always generate flat and call-graph, no matter what
1644         line_granularity is set to.
1645
1646         * source.c (source_file_lookup_name): if searching for sf->name
1647         fails, try again with filename obtained after stripping off any
1648         partial path from sf->name.
1649
1650         * gprof.h (SRCDEBUG): added.
1651
1652         * search_list.c (search_list_append): directories were added in wrong
1653         order.
1654
1655         * reimplemented selection mechanism from ground up; it is now possible
1656         to accurately control what gets included/excluded in each of the
1657         output styles;  a "symbol-specification" (spec) is the basic means
1658         to select a set of symbols; a spec has the syntax:
1659
1660           spec == (FILENAME:(FUNCNAME|LINE_NUM) | NAME).
1661           arc == spec/spec.
1662
1663         any of the terminal symbols can be empty, in which case they
1664         match anything (wildcards).  NAME is interpreted as a FILENAME
1665         if it contains a dot (e.g., foo.c), as LINE_NUM if it starts
1666         with a digit, and as FUNCNAME otherwise.
1667
1668         For example, to get a call-graph display that ignores arcs
1669         from foo() to bar(), you'd say "--no-graph=foo/bar"; to
1670         show only arcs into bar() (no matter what the caller),
1671         you'd say "--graph=/bar"; and to get a call-graph without
1672         any arc info, you'd say "--graph=/";  similarly, to
1673         get a flat profile without mcount, you'd say "--no-flat=mcount"
1674         and to get a flat profile that shows includes all functions
1675         you'd say "--flat=""" (i.e., an empty spec)
1676
1677         * hist.c (hist_print): top_time wasn't initialized to 0.0.
1678
1679         Fri Sep  9 01:10:21 1994  David Mosberger-Tang  (davidm@piston.cs.arizona.edu)
1680
1681         * gmon_out.h: all headers now declared in terms of characters
1682           to avoid getting into trouble with different compilers introducing
1683           different amount of padding; the code already accessed the fields
1684           through bfd functions, so that didn't have to change.
1685
1686         * hist.c (hist_read_rec, hist_write_rec): added support for
1687           collection pc histograms measuring quantities other than time;
1688           the histogram header now includes a field that specifies the
1689           dimension of the quantity measured by the histogram bins
1690           (normally, this is "seconds", but other meaningful dimensions
1691            include such things as "I-cache misses", "instruction issue stalls"
1692            etc.); there is also a field to specify a one-character
1693           abbreviation for the dimension; in the case of time, this would
1694           be 's'; in most other cases it probably would be '1' (not a physical
1695           dimension).
1696
1697         Thu Sep  8 16:05:08 1994  David Mosberger-Tang  (davidm@piston.cs.arizona.edu)
1698
1699         * gprof.c, gmon_io.[ch]: BSD_COMPATIBLE is gone and new_file_version
1700           has become old_file_version; gmon_io.c now always supports old-style
1701           gmon.out files; it first tries to read gmon.out as a new version
1702           file, if that fails, it tries to read it in the old format;
1703           although not very likely, it is possible for gprof to mistake an
1704           old-style file as a new one (the first 4 bytes would have to
1705           be "gmon"---including the trailing '\0'); in that case, it is
1706           necessary to specify --old-file-version
1707
1708         * gprof.h: removed dependency on SYSV; the code now always uses
1709           strrchr(), memset(), and memcpy() and does not include either
1710           of string.h or strings.h; this should make gprof compile on
1711           any (Unix) system without configuration (per suggestion of
1712           raeburn@cygnus.com)
1713
1714         * gprof.c (usage): fixed location of --new-file-format option.
1715
1716         * cg_arcs.c (propagate_flags): fixed typo in declaration.
1717
1718         * flat_bl.m: removed formfeed at end of file; the form-feed
1719           is now printed cg_print.c only when necessary.
1720
1721         * major rewrite of gprof---too many changes to mention all of
1722           them.  new features:
1723
1724         + -l now requests profiling at the line level (as opposed
1725           to function level); in this mode, gprof creates a "symbol"
1726           (aka name-list entry) for each line of source code, instead
1727            of one per function)
1728
1729         + support for a new gmon.out file format; the new format 
1730           consists of a header with a magic and a version number,
1731           followed by a sequence of profile data; profile data
1732           can any of: (a) PC histogram, (b) call-graph arcs, or
1733           (c) basic-block execution counts; the version number makes
1734           it possible to extend gmon.out in a backwards compatible
1735           fashion
1736
1737         + support for tcov style annotated output: if the gmon.out file
1738           contains basic-block execution counts, the user can request
1739           the generation of annotated source files, much like Sun's
1740           tcov used to do
1741
1742         + long options
1743
1744         + new scheme to suppress symbols that aren't function names
1745           (e.g., avoids mistaking a goto label as a function)
1746
1747         + reorganized source code to make it more managable; as a
1748           side effect, gprof now compiles cleanly with "gcc -Wall"
1749
1750         Thu Sep  1 15:46:49 1994  David Mosberger-Tang  (davidm@piston.cs.arizona.edu)
1751
1752         * gprof.c (funcsymbol): bfd_find_nearest_line() is now used as a
1753         final cross-check to determine whether a static symbol should be
1754         considered as a function-name.
1755
1756         Fri Aug  5 19:32:36 1994  David Mosberger-Tang  (davidm@piston.cs.arizona.edu)
1757
1758         * gmon_io.c (gmon_out_read): recognize "-" as the filename for
1759         stdin; this is useful if you wanna keep gmon.out files compressed;
1760         this way you can "gzcat" the compressed file into gprof.
1761
1762         * gprof.c: flag_min_count now initialized with 1 instead of 0.
1763
1764         * basic_blocks.c (bb_annotate_source): added support for creating
1765         .tcov files when option flag_annotate_make_files is TRUE.
1766         (annotate_with_count): all counts less than the minimum count
1767         specified by -m are now annotated with hash-marks.
1768
1769         * gprof.c (main): -A is now followed by a string of option chars.
1770
1771         * basic_blocks.c (annotate_with_count): replaced b->count with
1772         cnt.
1773
1774         * source.c: flag_annotate_source replaced by source_lock_map.
1775
1776         * source.h: source_lock_map added.
1777
1778         * gprof.c (main): new command-line syntax: -S simply specifies
1779         which source-files user is interested in; -A requests annotated
1780         source files and -AA requests that all lines in a source file
1781         are annotated.
1782
1783         Thu Aug  4 23:27:03 1994  David Mosberger-Tang  (davidm@piston.cs.arizona.edu)
1784
1785         * basic_blocks.c (PATH_MAX): if undefined, define as 1024.
1786
1787         * sparc.c, i386.c, tahoe.c, vax.c: added include of "time_hist.h"
1788         so s_lowpc etc. get declared.
1789
1790         * arcs.h (doarcs): created.
1791
1792         * arcs.c: reordered static functions such that they get defined
1793         before use.
1794
1795         * gprof.c (main): added options:
1796            -A: request annotation of all source lines (with -S)
1797            -m: minimum execution count (with default basic-block display)
1798            -N: force new file format (only if BSD_COMPATIBLE is defined)
1799            -S: annotate source file
1800            -t: set table length (with -S)
1801
1802         * Makefile.am (OBJS): added basic_blocks.o call_graph.o gmon_io.o
1803         source.o time_hist.o
1804
1805         Fri Jul  1 15:23:50 1994  David Mosberger-Tang  (davidm@piston.cs.arizona.edu)
1806
1807         * gprof.c (asgnsamples): computation of "pcl" and "pch" depended
1808         on the fact being able to store a long in a double without loss of
1809         precision; this does not hold on machines with 64 bit longs and 64
1810         bit doubles.
1811
1812 Fri Oct 21 18:58:02 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
1813
1814         * printgprof.c (flatprofheader): Always set totime to 1.0 if not
1815         greater than 0.0.  Suggested by Harold Assink
1816         <carlo@sg.tn.tudelft.nl>.
1817
1818 Fri Sep 23 15:06:45 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
1819
1820         * printgprof.c (printprof): Use free, not cfree.
1821         (printgprof, printindex): Ditto.
1822
1823 Thu Sep  1 10:40:45 1994  Jeff Law  (law@snake.cs.utah.edu)
1824
1825         * gprof.h (kfromlist, ktolist, flist, Flist, elist, Elist): Make
1826         decls extern to keep native HP compiler quiet.
1827
1828 Tue Aug 30 11:12:13 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
1829
1830         * gprof.c (funcsymbol): Ignore ___gnu_compiled as well as
1831         __gnu_compiled, for the benefit of systems which add a leading
1832         underscore.
1833
1834 Wed Aug 24 12:49:13 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
1835
1836         * configure.in: Change i386-*-* to i[345]86-*-*.
1837
1838 Sun Jul 10 00:35:31 1994  Ian Dall  (dall@hfrd.dsto.gov.au)
1839
1840         * ns532.c, ns532.h: New Files. ns532 support.
1841
1842         * config/mt-ns532: New File. ns532 support.
1843
1844         * gprof.c: user register int i instead of defaulting the int.
1845         Allows compilation with -Dregister= for debugging.
1846
1847         * configure.in: Add ns532 support.
1848
1849 Thu Jun 23 11:22:41 1994  Jeff Law  (law@snake.cs.utah.edu)
1850
1851         * Makefile.in (gprof): Depend on $(LIBS).
1852
1853 Fri May 27 12:24:57 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
1854
1855         From binutils-2.4 release:
1856
1857         Wed May 11 22:32:00 1994  DJ Delorie (dj@ctron.com)
1858
1859         * configure.bat: [new] build makefile from makefile.in (dos)
1860         * hertz.c: allow static HERTZ (msdos needs it)
1861         * gprof.c: allow target to select "r" or "rb" for fopen
1862         * gprof.c: ignore __gnu_compiled symbols
1863         * i386.h: dfine FOPEN_RB to "rb" for dos.
1864
1865 Tue May 17 15:30:22 1994  E. Michael Smith (ems@cygnus.com)
1866
1867         * Makefile.in (.m.c:):  Added .SUFFIXES : .m 
1868         so flat_bl.c would make from flat_bl.m file.
1869
1870 Thu May  5 19:23:24 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
1871
1872         * Makefile.in (install-info): Check for gprof.info in build dir,
1873         fall back to srcdir.  Depend on it.
1874
1875         * gprof.h (TRUE, FALSE): Always use undef before defining them.
1876
1877 Mon Apr  4 23:47:30 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
1878
1879         * Makefile.in (MY_MACHINE): Renamed from MACHINE to avoid losing
1880         makes (osf1) in which the value of MACHINE can not be changed.
1881         * config/*.mt: Changed appropriately.
1882
1883 Wed Mar 30 16:12:40 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
1884
1885         * gprof.c (getsymtab): Change nosyms to long.  Rename
1886         get_symtab_upper_bound to bfd_get_symtab_upper_bound.  Check for
1887         errors from bfd_get_symtab_upper_bound and
1888         bfd_canonicalize_symtab.
1889
1890 Tue Mar 22 10:50:52 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
1891
1892         * gprof.c (funcsymbol): Use bfd_get_symbol_info instead of
1893         bfd_decode_symclass.
1894
1895 Sun Mar 20 15:40:21 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
1896
1897         * Makefile.in: Avoid bug in hpux sed.
1898
1899 Wed Dec 15 20:16:40 1993  david d `zoo' zuhn  (zoo@andros.cygnus.com)
1900
1901         * gprof.texi (Invoking): add text about -v flag
1902
1903         * gprof.1: add text about -v flag
1904
1905 Wed Dec  8 16:55:06 1993  david d `zoo' zuhn  (zoo@andros.cygnus.com)
1906
1907         * gprof.c (VERSION): defined a version macro, print the value 
1908         when the -v option is used
1909
1910 Tue Jul  6 10:11:56 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
1911
1912         * Makefile.in: Install correctly.
1913
1914 Thu Jun 24 14:43:22 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
1915
1916         * gprof.c (main): Get whoami from argv, instead of hardcoding.
1917         Use it in usage message.  Split usage message to fit in 80 cols.
1918
1919 Sun Jun 20 20:58:02 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)
1920
1921         * Makefile.in: Undo 15 June change.
1922
1923 Wed Jun 16 12:54:53 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
1924
1925         * gmon.h, gprof.h: structs of chars used to hold external
1926         representations.
1927         * gprof.c (getpfile, openpfile, readsamples): Swap data in using
1928         new structures.
1929
1930 Tue Jun 15 23:09:17 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
1931
1932         * Makefile.in (.c.o): Look in ../include, not ../bfd, for bfd.h.
1933
1934 Mon Jun 14 16:22:59 1993  david d `zoo' zuhn  (zoo at rtl.cygnus.com)
1935
1936         * Makefile.in: remove parentdir support
1937
1938 Mon Jun  7 12:56:17 1993  Per Bothner  (bothner@rtl.cygnus.com)
1939
1940         * Makefile.in (INCLUDES):  Add -I../bfd for sysdep.h and bfd.h.
1941         * configure.in:  No longer need to configure to get sysdep.h.
1942
1943 Tue May 18 21:44:11 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
1944
1945         * Makefile.in (install): should not depend on install-info
1946
1947 Mon Apr 26 12:37:46 1993  Ian Lance Taylor  (ian@cygnus.com)
1948
1949         * gprof.h: Include ansidecl.h before sysdep.h.  Undefine hz.
1950
1951 Tue Apr 13 16:14:03 1993  Per Bothner  (bothner@cygnus.com)
1952
1953         * Makefile.in:  Add -g to CFLAGS.
1954         Ads LDFLAGS and use in place of CFLAGS where appropriate.
1955         * configure.in:  Make a sysdep.hlink in the same way other
1956         bfd-based directories do.
1957         * gprof.h (UNIT):  Replace non-standard 'u_short' by 'unsigned
1958         short'.
1959         * gprof.h:  #include sysdep.h instead of a bunch of stuff.
1960         * gprof.c (main):  Fix typo gproff->gprof.
1961
1962 Thu Mar 25 19:00:37 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
1963
1964         * gprof.texi: add INFO-DIR-ENTRY
1965
1966 Tue Mar 23 00:03:11 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
1967
1968         * Makefile.in: add installcheck target
1969
1970 Sat Feb 27 18:17:10 1993  Per Bothner  (bothner@rtl.cygnus.com)
1971
1972         * gprof.c (funcsymbol):  Invert test for aflag.
1973
1974 Thu Feb 25 16:01:50 1993  Per Bothner  (bothner@rtl.cygnus.com)
1975
1976         * printgprof (xmalloc, xrealloc):  Cast results of malloc
1977         and realloc to PTR.
1978
1979 Wed Feb  3 13:55:33 1993  Jeffrey Osier  (jeffrey@fowanton.cygnus.com)
1980
1981         * Makefile.in: created info, install-info, dvi
1982
1983 Wed Jan  6 00:58:09 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
1984
1985         * Makefile.in: fix install rule for $(PROG)
1986
1987 Fri Oct  9 11:25:41 1992  Mark Eichin  (eichin@cygnus.com)
1988
1989         * gprof.1: updated SYNOPSIS to match actual behavior.
1990
1991 Mon Oct  5 17:50:16 1992  Per Bothner  (bothner@cygnus.com)
1992
1993         * gen-c-prog.awk:  New awk script, lightly changed from
1994         previously deleted make-c-prog.awk.  Converts a text file
1995         to a c function that prints that text.
1996         * flat_bl.m, fsf_callg_bl.m, bsd_callg_bl.m:  New files.
1997         Inputs to gen-c-prog.awk, containing text describing
1998         gprof output.
1999         * blurbs.c:  Removed.  Use *_bl.c instead.
2000         * Makefile.in: Use gen-cprog.awk to generate *_bl.c files
2001         from *_bl.m files.  Also, improve *clean rules.
2002         * printgprof.c (printgprof):  Usw new function names from *_bl.c.
2003         
2004
2005 Sun Aug 30 19:54:53 1992  Per Bothner  (bothner@rtl.cygnus.com)
2006
2007         * gprof.h, gprof.c, printfgprof.c:  Add support for two
2008         output styles:  The default is similar to the old FSF gprof,
2009         while -T sets the variable bsd_style_output, which causes
2010         output matching Berkeley's gprof.  The biggest differences
2011         are that with the FSF style output, the flat profile comes
2012         before the call graph; numbers come before explanations;
2013         and there is less gratuitous white space.
2014         * gprof.h, gprof.c, printfgprof.c:  New discard_underscores
2015         variable causes discarding of initial underscores when
2016         printing symbol names.  It is set unless there is a "main"
2017         symbol (without an underscore).
2018         * printfgprof.c:  New function printnameonly(), called
2019         by printname().  It handles stripping of initial '_',
2020         as well as C++ name-demangling.
2021         * gprof.callg, gprof.flat, make-c-prog.awk:  Removed.
2022         It is just as convenient to edit blurbs.c directly.
2023         * Makefile.in:  Removed rule for making blurbs.c.
2024         * blurbs.c:  This is now a true source file (as opposed
2025         to being generated from gprof.callg and gprof.flat).
2026         Change style to use one long string literal, instead of
2027         one literal per output line.  Add FSF-style blurb for call graph.
2028
2029 Wed Aug 19 14:36:39 1992  Ian Lance Taylor  (ian@cygnus.com)
2030
2031         * Makefile.in: always create installation directories.
2032
2033 Wed Aug 12 15:14:14 1992  Mark Eichin  (eichin@cygnus.com)
2034
2035         * Makefile.in: change ${MACHINE} to $(MACHINE).
2036
2037 Sun Jul 19 17:34:01 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
2038
2039         * Makefile.in:  removed installation of the now useless
2040         call.{flag,callg} files.  
2041
2042         * gprof.1: now uses the standard man macros instead of the new BSD
2043         mandoc macros. 
2044
2045 Sun Jul 12 19:06:00 1992  John Gilmore  (gnu at cygnus.com)
2046
2047         * configure.in:  Remove host section, expand target section.
2048         * config/mt-{tahoe,vax}:  Add, to match existing support files.
2049         * config/tmake-*:  Remove leftover crud.
2050
2051         * blurbs.c:  New file, created from gprof.flat and gprof.callg by
2052         * make-c-prog.awk:  which processes text files into C programs.
2053         * printgprof.c (flatprofheader, gprofheader):  Call new functions
2054         to print blurbs.
2055         (printblurb):  Remove.
2056         * Makefile.in:  Infrastructure to build blurbs.
2057         * pathnames.h:  has been removed.  Gprof now has no filename
2058         dependencies in it.
2059         * gprof.c:  Lint.
2060
2061 Sat Jul 11 18:07:21 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
2062
2063         * Makefile.in: define man1dir and install the man page
2064
2065 Fri Jul 10 21:14:08 1992  david d `zoo' zuhn (zoo@cygnus.com)
2066
2067         * Makefile.in: added dummy info and install-info targets
2068
2069 Thu Jun  4 11:34:02 1992  Mark Eichin  (eichin at cygnus.com)
2070
2071         * lookup.c: fixed fencepost in nllookup and added dbg_nllookup for
2072         help in debugging the problem (with -DDEBUG)
2073         * gprof.c: symbol values are now real values, don't add the vma
2074         anymore. (done for solaris; should verify this on other platforms)