Commit Graph

29 Commits

Author SHA1 Message Date
Rainer Orth
c4687d7048 mips-tdump.c (print_file_desc): Handle unknown filenames and missing local symbols.
* mips-tdump.c (print_file_desc): Handle unknown filenames and
        missing local symbols.

From-SVN: r24729
1999-01-17 16:41:47 -07:00
Jeff Law
ad83f53748 Fix copyrights.
From-SVN: r24529
1999-01-06 12:48:38 -07:00
Kaveh R. Ghazi
47e6be47d2 Warning fixes:
* mips-tdump.c (st_to_string, sc_to_string, glevel_to_string,
        lang_to_string, type_to_string): Make return type const char*.
        (print_symbol): Apply `const' keyword to a char*.
        (print_file_desc): Cast structure member `crfd' to ulong when
        comparing against one.
        * mips-tfile.c (pfatal_with_name): Apply `const' keyword to char*.
        (fatal, error): Add ATTRIBUTE_PRINTF_1 to prototypes.
        (progname, input_name): Apply `const' keyword to a char*.
        Don't redundantly include sys/stat.h.
        (alloc_info): Apply `const' keyword to a char*.
        (st_to_string, sc_to_string): Likewise.
        (hash_string): Cast variable `hash_string' to a symint_t when
        comparing against one.
        (add_string): Cast PAGE_USIZE to Ptrdiff_t when comparing against one.
        Likewise cast it to long when comparing against one.
        (add_local_symbol): Apply `const' keyword to a char*.
        (add_ext_symbol): Likewise.
        (add_unknown_tag): Likewise.
        (add_procedure): Cast a printf-style field width to an int.
        (add_file): Cast PAGE_USIZE to long when comparing against one
        (parse_begin): Cast a printf-style field width to an int.
        (parse_bend): Likewise.
        (parse_def): Likewise.
        (parse_end): Likewise.
        (mark_stabs): Mark parameter `start' with ATTRIBUTE_UNUSED.
        (parse_stabs_common): Fix format specifier.
        (parse_input): Change type of variable `i' to Size_t.
        (write_object): Fix arguments to match format specifiers.
        Cast variable `num_write' to long when comparing against one.
        (read_seek): Cast variable `sys_read' to symint_t when comparing
        against one.  Fix arguments to match format specifiers.  Cast
        variable `size' to long when comparing against one.
        (copy_object): Cast result of `sizeof' to int when comparing
        against one.  Fix arguments to match format specifiers.  Cast
        variable `ifd' to long when comparing against a signed value.
        Likewise, likewise.

From-SVN: r24479
1999-01-04 08:11:13 +00:00
Kaveh R. Ghazi
2778b98d90 system.h: Include libiberty.h.
* system.h: Include libiberty.h.
        * c-aux-info.c: Remove prototypes for concat/concat3.  Change
        function `concat' from fixed parameters to variable parameters,
        as is done in libiberty.  All callers of concat/concat3
        changed to use the new `concat' with variable args.
        * cccp.c: Remove things made redundant by libiberty.h and/or
        conform to libiberty standards.
        * cexp.y: Likewise.
        * collect2.c: Likewise.
        * config/1750a/1750a.h: Likewise.
        * cppalloc.c: Likewise.
        * cppexp.c: Likewise.
        * cppfiles.c: Likewise.
        * cpphash.c: Likewise.
        * cpplib.c: Likewise.
        * dyn-string.c: Likewise.
        * fix-header.c: Likewise.
        * gcc.c: Likewise.
        * gcov.c: Likewise.
        * genattr.c: Likewise.
        * genattrtab.c: Likewise.
        * gencheck.c: Likewise.
        * gencodes.c: Likewise.
        * genconfig.c: Likewise.
        * genemit.c: Likewise.
        * genextract.c: Likewise.
        * genflags.c: Likewise.
        * gengenrtl.c: Likewise.
        * genopinit.c: Likewise.
        * genoutput.c: Likewise.
        * genpeep.c: Likewise.
        * genrecog.c: Likewise.
        * getpwd.c: Likewise.
        * halfpic.c: Likewise.
        * hash.c: Likewise.
        * mips-tdump.c: Likewise.  Wrap malloc/realloc/calloc prototypes
        in NEED_DECLARATION_* macros.
        * mips-tfile.c: Remove things made redundant by libiberty.h and/or
        conform to libiberty standards.
        (fatal): Fix const-ification of variable `format' in
        !ANSI_PROTOTYPES case.
        * prefix.c: Remove things made redundant by libiberty.h and/or
        conform to libiberty standards.
        * print-rtl.c: Rename variable `spaces' to `xspaces' to avoid
        conflicting with function `spaces' from libiberty.
        * profile.c: Remove things made redundant by libiberty.h and/or
        conform to libiberty standards.
        * protoize.c: Likewise.
        * rtl.h: Likewise.
        * scan.h: Likewise.
        * tlink.c: Likewise.
        * toplev.c: Likewise.
        * toplev.h: Likewise.
        * tree.h: Likewise.

From-SVN: r23931
1998-11-27 10:09:17 +00:00
Kaveh R. Ghazi
cd1661d6b1 Warning fixes:
* mips-tfile.c (add_local_symbol): Cast width format specifier to int.
        (add_ext_symbol): Likewise.
        (add_file): Likewise.
        (parse_def): Likewise.
        (write_varray): Use HOST_PTR_PRINTF to print a pointer.  Fix
        remaining format specifiers and arguments.
        (write_object): Likewise, several times.
        (read_seek): Likewise.
        (out_of_bounds): Likewise.
        (allocate_cluster): Likewise.
        (xmalloc): Likewise.
        (xcalloc): Likewise.
        (xrealloc): Likewise.
        (xfree): Likewise.
        * mips-tdump.c (print_symbol): Likewise.

From-SVN: r20654
1998-06-22 06:30:39 +00:00
Jeff Law
38e012594e typo typo fixes fixes
From-SVN: r19601
1998-05-06 15:09:07 -06:00
Kaveh R. Ghazi
90fbb8c9f5 More system.h cutover...
* Makefile.in (mips-tfile.o, mips-tdump.o): Depend on system.h.
        * mips-tdump.c: Include system.h, remove redundant headers.
        * mips-tfile.c: Likewise.  Convert all ctype function calls to
        macro versions defined in system.h.
        * objc/Make-lang.in (objc-act.o): Depend on system.h.
        * objc/objc-act.c: Include system.h, remove redundant headers.

From-SVN: r19573
1998-05-06 08:57:18 +00:00
Jeff Law
31031eddac dummy commit before merge
From-SVN: r18980
1998-04-03 09:37:26 -07:00
Mike Stump
db3cf6fb33 reformat a little to match GNU coding standards.
From-SVN: r14024
1997-05-06 23:05:54 +00:00
Mike Stump
0f41302f47 formatting tweaks
From-SVN: r12390
1996-07-03 22:07:53 +00:00
Richard Kenner
5346f1b92d (enum st): Define st_Struct, st_Union, and st_Enum.
(st_to_string): Handle them.
(type_to_string): Add fdp argument; pass it to emit_aggregate.
(print_symbol): Add fdp argument; pass it to type_to_string.
Handle st_Struct, st_Union, and st_Enum.
(emit_aggregate): Add fdp argument.  Handle opaque types.  Map through
RFD entries.
(print_file_desc): Pass FDR to print_symbol.
(main): Pass null FDR to type_to_string.

From-SVN: r10516
1995-10-26 17:57:28 -04:00
Richard Kenner
a35311b035 Update FSF address.
From-SVN: r9961
1995-06-15 07:52:21 -04:00
Richard Kenner
debaccc20c (type_to_string): Fix misspellings in messages.
From-SVN: r9715
1995-05-16 08:44:00 -04:00
Richard Kenner
7a824750a4 Include <time.h>. Delete ctime prototype.
From-SVN: r8425
1994-11-11 16:37:59 -05:00
Jim Wilson
6ba295268b (print_global_hdr): Remove "l" from printf format for flags.
(print_global_hdr): Remove "l" from printf format
for flags.
(print_sym_hdr): Add missing "l" to printf formats.
(print_symbol, print_file_desc): Likewise.

From-SVN: r7404
1994-05-31 16:58:03 -07:00
Jim Wilson
338f21bef3 (print_symbol): The index field of a global symbol is the symbol table index of the corresponding local symbol...
(print_symbol): The index field of a global symbol
is the symbol table index of the corresponding local symbol, not
an index into the aux table.
(print_file_desc): Print out size of line number
information rather than repeating line number count.
(print_file_desc): The cbLineOffset field of a PDR
is relative to the cbLineOffset field of the FDR.  Also, when
computing line_end of the last PDR, use cbLineOffset, not
ilineBase.

From-SVN: r6711
1994-03-07 17:06:13 -08:00
Jim Wilson
b10d3744ee (print_file_desc): Correct printf format.
(main): Likewise.

From-SVN: r6501
1994-02-08 15:54:59 -08:00
Richard Kenner
46ab92057f (print_global_hdr): Fix typo in cast in ctime call.
From-SVN: r5783
1993-10-13 17:57:52 -04:00
Richard Stallman
04c3f19d04 [CROSS_COMPILE]: Include mips/a.out.h.
From-SVN: r5381
1993-09-22 02:28:05 +00:00
Michael Meissner
3876db74dc Add alpha support.
From-SVN: r4236
1993-04-26 20:56:07 +00:00
Michael Meissner
f11f1fb5ce Fix printing multiple file section.
From-SVN: r3224
1993-01-13 17:02:41 +00:00
Michael Meissner
de5849f373 Move #undef index/rindex up higher.
From-SVN: r2740
1992-11-10 22:17:36 +00:00
Michael Meissner
d07e072c5a Allow for cross compilation.
From-SVN: r2649
1992-10-29 19:32:25 +00:00
Michael Meissner
43365a358e RISC-OS System V patches for index/rindex.
From-SVN: r2514
1992-10-19 14:58:53 +00:00
Charles Hannum
64fd9134a4 entered into RCS
From-SVN: r928
1992-05-07 06:36:49 +00:00
Richard Stallman
4a39264367 *** empty log message ***
From-SVN: r921
1992-05-06 21:30:57 +00:00
Michael Meissner
9a78963abb *** empty log message ***
From-SVN: r552
1992-03-21 23:15:25 +00:00
Michael Meissner
b2869d95ac *** empty log message ***
From-SVN: r490
1992-03-14 22:41:32 +00:00
Richard Stallman
68e9eb95ab Initial revision
From-SVN: r175
1992-01-10 22:35:27 +00:00