Commit Graph

61 Commits

Author SHA1 Message Date
Jim Wilson 46fb0d7d0f Fix nightly testing i386-coff libstdc++ build failure.
* sdbout.c (sdbout_one_type): Don't look at TYPE_BINFO field of enums.

From-SVN: r22592
1998-09-25 07:37:13 -07:00
Jason Merrill 0dbb7a102f sdbout.c (sdbout_field_types): Don't emit the types of fields we won't be emitting.
* sdbout.c (sdbout_field_types): Don't emit the types of fields we
	won't be emitting.

From-SVN: r22576
1998-09-24 14:54:38 -04:00
Kaveh R. Ghazi e016950d0c Warning fixes:
* reload1.c (reload_cse_regs): Cast first arg of `bzero' to char *.
        * sdbout.c: Include output.h and toplev.h.
        (PUT_SDB_INT_VAL): Use HOST_WIDE_INT_PRINT_DEV to print argument
        `a'.  Cast `a' to HOST_WIDE_INT to force it to always be so.
        (PUT_SDB_SIZE): Likewise.
        * sdbout.h (sdbout_mark_begin_function): Add prototype.
        * stmt.c (check_for_full_enumeration_handling): Cast argument of
        `warning' to long and use %ld specifier.
        * toplev.c (main): Likewise for `fprintf'.
        * toplev.h (output_file_directive): Add prototype.
        * unroll.c (unroll_loop): Use HOST_WIDE_INT_PRINT_DEC specifier in
        call to `fprintf'.
        (precondition_loop_p): Likewise.
        * varasm.c Include sdbout.h.
        (assemble_static_space): Move sometimes-unused variable `rounded'
        into the scope in which it is used.

From-SVN: r20651
1998-06-22 05:32:38 +00:00
Robert Lipe 76ead72b80 dwarfout.h, [...]: New files.
* dwarfout.h, dwarf2out.h, dbxout.h, sdbout.h:  New files.
        Prototypes for externally used functions in respective C files.
        * dwarfout.c, dbxout.c, dwarf2out.c, sdbout.c, toplev,c,
        final.c: Include above files.
        * Makefile.in (toplev.o): Add dependency for above four headers.
        (final.o): Likewise.
        (dwarfout.o, dbxout.o, dwarf2out.o, sdbout.o): Depend on four
        respective header files.

From-SVN: r19835
1998-05-18 07:11:42 +00:00
Jeff Law e5e809f419 * Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
for details.

        * haifa-sched.c: Mirror recent changes from gcc2.

From-SVN: r18984
1998-04-04 06:32:39 -07:00
Kaveh R. Ghazi 670ee92097 Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
        c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
        caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
        dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
        expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
        integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
        prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
        reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
        rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
        tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
        on system.h.
        * alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
        c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
        caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
        dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
        expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
        integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
        prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
        reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
        rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
        stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
        xcoffout.c: Include system.h.  Organize include ordering so
        that stdarg/varargs comes before other system headers.  Remove
        spurious casts of functions assured of a prototype in system.h.

From-SVN: r18726
1998-03-20 14:58:42 +00:00
Jeff Law c85f7c16ad Bring in final gcc-2.8.0 changes.
From-SVN: r17355
1998-01-14 13:57:58 -07:00
Kaveh R. Ghazi 1d300e19b6 bitmap.c (bitmap_clear): Ensure `inline' is at the beginning of the declaration.
* bitmap.c (bitmap_clear): Ensure `inline' is at the beginning
        of the declaration.
        * c-decl.c (finish_decl): Use parentheses around && within ||.
        * rtl.c: Include stdlib.h.
        (read_skip_spaces): Add parentheses around assignments used as
        truth values.
        (read_rtx): Initialize list_rtx.
        * cppexp.c (parse_number): Use || when operands are truth values.
        * alias.c (find_base_value): Add default case.
        (memrefs_conflict): Likewise.
        * combine.c (sets_function_arg_p): Likewise.
        * genemit.c (gen_exp): Likewise.
        * local-alloc.c (contains_replace_regs): Likewise.
        * rtlanal.c (jmp_uses_reg_or_mem): Likewise.
        * fold-const.c (fold_convert): Use "&&" for truth values.
        (fold): Add default case.
        * sdbout.c (sdbout_field_types): Fix typo in declaration.
        (sdbout_one_type): Add default case.
        * alpha.c (alpha_sa_mask): Prototype only if OPEN_VMS.
        (some_operand): Add default case.
        (input_operand): Likewise.
        (signed_comparison_operator): Likewise.
        (divmod_operator): Likewise.
        (alpha_set_memflags_1): Likewise.
        * reload1.c (reload_cse_simplify_operands): Ensure function
        always returns a value.
        * scan-decls.c (scan_decls): Likewise.
        * c-lex.c (skip_white_space): Fix typo in declaraion.
        * c-typeck.c (comp_target_types): Add parentheses around assignment
        used as truth value.
        (print_spelling): Likewise.
        (constructor_implicit, constructor_result): Remove unused variables.
        * collect2.c (scan_library): Protect prototype with
        #ifdef SCAN_LIBRARIES.
        * emit-rtl.c (find_line_note): Fix typo in declaration.
        * final.c (asm_insn_count): Protect prototype with
        #ifdef HAVE_ATTR_length.
        * flow.c (find_auto_inc): Protect prototype with #ifdef AUTO_INC_DEC.
        (try_pre_increment_1, try_pre_increment): Likewise.
        * regclass.c (auto_inc_dec_reg_p): Protect prototype with
        #ifdef FORBIDDEN_INC_DEC_CLASSES.  Make return type explicit.
        * gcov-io.h (__store_long, __write_long, __read_long): Fix
        unsigned/signed comparisons.
        * gcov.c (read_files): Remove unused "first_type" variable.
        (scan _for_source_files): Initialize s_ptr.
        (function_summary): Eliminate "%lf" formatting, use %ld for
        longs.
        (output_data): Initialize branch_probs and last_line_num.
        Eliminate "%lf" formatting, use "%ld" for longs.

Co-Authored-By: Jeffrey A Law <law@cygnus.com>

From-SVN: r17158
1997-12-20 04:31:54 -07:00
Richard Henderson e1ee5cdcbf tree.c (build_range_type): Allow creation of ranges with no maximum.
* tree.c (build_range_type): Allow creation of ranges with no maximum.
	* dbxout.c (dbxout_range_type): Handle missing TYPE_MAX_VALUE.
	* dwarf2out.c (add_subscript_info): Likewise.
	* dwarfout.c (subscript_data_attribute, byte_size_attribute): Likewise.
	* sdbout.c (plain_type_1): Likewise.
	* stmt.c (pushcase_range, all_cases_count, node_has_high_bound):
	Likewise.
	* fold-const.c (int_const_binop, fold_convert, make_range, fold):
	Likewise.

From-SVN: r17142
1997-12-18 16:20:19 -07:00
Richard Henderson 1914f5da24 reload.h, [...]: Revert March 15 change.
* reload.h, reload1.c (eliminate_regs), caller-save.c, dbxout.c,
	dwarfout.c, dwarf2out.c, reload.c, sdbout.c: Revert March 15 change.
	* reload.c (push_reload): If WORD_REGISTER_OPERATIONS, reload the
	SUBREG_REG if the word count is unchanged.
	* reload1.c (eliminate_regs) [case SET]: If W_R_O, preserve
	subregs of identical word size for push_reload.

From-SVN: r17105
1997-12-15 09:55:58 -08:00
Jeff Law e9a25f70a0 Update mainline egcs to gcc2 snapshot 971021.
From-SVN: r16278
1997-11-02 14:19:36 -07:00
Jim Wilson 04940ba5b4 sdbout.c (plain_type_1, [...]): Verify that TYPE_DOMAIN has integer TYPE_{MAX,MIN}_VALUE before using them.
* sdbout.c (plain_type_1, case ARRAY_TYPE): Verify that TYPE_DOMAIN
        has integer TYPE_{MAX,MIN}_VALUE before using them.
Bring over from the FSF.

From-SVN: r15117
1997-09-05 14:06:11 -06:00
Mike Stump db3cf6fb33 reformat a little to match GNU coding standards.
From-SVN: r14024
1997-05-06 23:05:54 +00:00
Richard Kenner fa1610e95b Change all calls to eliminate_regs.
From-SVN: r13705
1997-03-15 07:17:02 -05:00
Doug Evans cc694a8150 sdbout.c (current_file): New global.
* sdbout.c (current_file): New global.
	(PUT_SDB_SRC_FILE): New PUT_SDB_FOO macro.
	(sdbout_init): Initialize current_file ifdef MIPS_DEBUGGING_INFO.
	(sdbout_{start_new,resume_previous}_source_file): New functions.
	* toplev.c (debug_{start,end}_source_file): Call them if SDB_DEBUG.
	* mips/mips.h (PUT_SDB_SRC_FILE): Define.

From-SVN: r13179
1996-11-15 22:37:40 +00:00
Richard Kenner 89c96a4088 Include defaults.h.
From-SVN: r12922
1996-10-09 07:00:20 -04:00
Mike Stump 0f41302f47 formatting tweaks
From-SVN: r12390
1996-07-03 22:07:53 +00:00
Jim Wilson 64c6526a79 (gsyms.h): Include if CROSS_COMPILE is defined.
(plain_type_1): Use TYPE_PRECISION instead of TYPE_SIZE.
Add check for LONG_DOUBLE_TYPE_SIZE if EXTENDED_SDB_BASIC_TYPES.

From-SVN: r12223
1996-06-07 17:12:38 -07:00
Richard Kenner 21abd7a65a Add prototypes for static functions.
(sdbout_parms, sdbout_reg_parms): Delete extra parm to plain_type.

From-SVN: r12047
1996-05-19 12:25:37 -04:00
Richard Kenner 973d79edc1 (plain_type_1, case ARRAY_TYPE): Subtract lower bound when writing
dimension.

From-SVN: r10906
1995-12-30 07:57:04 -05:00
Jim Wilson b01a1fdb06 (sdbout_symbol, case FUNCTION_DECL): Use DECL_INITIAL
instead of DECL_EXTERNAL to identify declarations.

From-SVN: r10805
1995-12-18 16:08:11 -08:00
Richard Kenner e9fa0c7c6f Update FSF address.
From-SVN: r9966
1995-06-15 08:29:51 -04:00
Richard Kenner 9580b58360 Changed WINNT to _WIN32.
From-SVN: r9732
1995-05-16 18:36:33 -04:00
Jim Wilson 1a62528312 (plain_type): Pass additional argument to plain_type_1.
(plain_type_1): New parameter level.  Increment it when making
recursive calls.  Force the type to void_type_mode before starting
a 7th level of recursion.

From-SVN: r9572
1995-05-04 11:14:53 -07:00
Jim Wilson 509b12e0c5 (sdbout_one_type): Don't switch to text section if
in function with section attribute.

From-SVN: r9560
1995-05-01 16:50:11 -07:00
Jim Wilson 95b2ff8be2 (sdbout_record_type_name): Correct indentation.
(sdbout_symbol): Use DECL_ASSEMBLER_NAME unconditionally.
(sdbout_one_type): Likewise.

From-SVN: r9365
1995-04-12 11:35:15 -07:00
Richard Kenner 12357e4274 (sdbout_record_type_name): If TYPE_NAME is a TYPE_DECL, get name from
DECL_NAME.

From-SVN: r9166
1995-03-10 14:37:52 -05:00
Jim Wilson f5e795cee6 (syms.h): Don't include under Linux.
From-SVN: r8780
1995-01-20 17:33:08 -08:00
Richard Kenner 7726fc45ee (plain_type_1): For LONG_LONG_TYPE_SIZE, return T_[U]LONG instead of 0 (i.e.
(plain_type_1): For LONG_LONG_TYPE_SIZE, return T_[U]LONG instead of 0
(i.e. T_VOID).

From-SVN: r8755
1995-01-13 20:40:18 -05:00
Ian Lance Taylor f76b9db287 Check target endianness at run time, not compile time
From-SVN: r8470
1994-11-16 21:10:09 +00:00
Richard Kenner 369404d97d Don't include syms.h for winnt.
From-SVN: r8181
1994-09-30 17:29:14 -04:00
Jim Wilson 2817f10ffc (sdbout_symbol): Use DECL_ASSEMBLER_NAME if
DECL_LANG_SPECIFIC is set.

From-SVN: r7522
1994-06-18 14:01:07 -07:00
Jim Wilson ee3e2d3de0 (sdbout_one_type): Use DECL_ASSEMBLER_NAME not
DECL_NAME for child_type that is a template type.

From-SVN: r7518
1994-06-18 13:48:02 -07:00
Jim Wilson 0eb111c2d9 (sdbout_one_type): Use DECL_ASSEMBLER_NAME if
DECL_LANG_SPECIFIC is set.

From-SVN: r7516
1994-06-18 13:42:18 -07:00
Jim Wilson 9f27ca8bff (sdbout_begin_block): Don't output block for function level scope unless MIPS_DEBUGGING_INFO is defined.
(sdbout_begin_block): Don't output block for function
level scope unless MIPS_DEBUGGING_INFO is defined.
(sdbout_end_block): Likewise.  Add new parameter n for the block
number.

From-SVN: r6966
1994-04-04 14:39:19 -07:00
Richard Kenner e35c06f577 (sdbout_symbol): Remove decl of unused variable LETTER.
(sdbout_type): Remove decl of unused variable TEM.

From-SVN: r6894
1994-03-25 14:19:11 -05:00
Jim Wilson 6d55e0ab0a (sdbout_symbol): Handle variables at zero offset from frame pointer.
From-SVN: r6358
1994-01-04 10:43:51 -08:00
Richard Stallman 39eae9f47a (sdbout_symbol): If non-static var has static-style RTL,
don't output anything for it.

From-SVN: r6106
1993-11-16 10:22:29 +00:00
Richard Stallman 182056932a (sdbout_init) [RMS_QUICK_HACK_1]: Call sdbout_symbol for __vtbl_ptr_type.
From-SVN: r6040
1993-11-08 22:57:28 +00:00
Richard Kenner 6fb2e34673 (KNOWN_TYPE_TAG, SET_KNOWN_TYPE_TAG): Refer to TYPE_SYMTAB_POINTER and remove casts.
(KNOWN_TYPE_TAG, SET_KNOWN_TYPE_TAG): Refer to TYPE_SYMTAB_POINTER and remove
casts.
(tag_of_ru_type): Likewise.

From-SVN: r5756
1993-10-12 17:06:37 -04:00
Doug Evans d8a0edf4b4 sdbout.c: (sdbout_symbol): Use HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
* sdbout.c: (sdbout_symbol): Use HARD_FRAME_POINTER_REGNUM instead of
FRAME_POINTER_REGNUM.

From-SVN: r5467
1993-09-24 19:55:19 +00:00
Richard Kenner c1b98a9573 Treat QUAL_UNION_TYPE like UNION_TYPE when seeing if aggregate.
From-SVN: r4118
1993-04-13 06:47:33 -04:00
Richard Stallman aa7a59132b (PUSH_DERIVED_LEVEL): Cast enumm constants to int.
From-SVN: r3681
1993-03-09 00:10:48 +00:00
Paul Eggert ac2a945455 # Fix misspellings in comments.
From-SVN: r3183
1993-01-10 22:49:32 +00:00
Jim Wilson aed0ae9b82 (plain_type_1): Distinguish some C integer types by name.
From-SVN: r3046
1993-01-01 16:39:33 -08:00
Richard Stallman 4be2397b19 (template_name_p): New function.
(sdbout_record_type_name): Use it to possibly use the
DECL_ASSEMBLER_NAME instead of DECL_NAME if looking at a template.
(sdbout_symbol): Ditto.

From-SVN: r2787
1992-11-24 05:18:35 +00:00
Richard Stallman 580b8ee2bd (plain_type_1): Handle LONG_TYPE_SIZE like INT_TYPE_SIZE.
From-SVN: r2739
1992-11-10 21:27:39 +00:00
Richard Stallman ed5f835574 (sdbout_symbol): Return if a symbol's DECL_NAME is
empty, since we won't be able to make a symtab of it.

From-SVN: r2585
1992-10-24 01:19:09 +00:00
Richard Stallman 606f392077 Don't use system syms.h on hpux.
From-SVN: r2286
1992-09-30 21:28:24 +00:00
Richard Stallman 638e22943f entered into RCS
From-SVN: r1639
1992-07-20 03:26:54 +00:00