aboutsummaryrefslogtreecommitdiff
path: root/gcc/sdbout.c
AgeCommit message (Collapse)AuthorFilesLines
1999-04-18output.h (current_function_is_leaf, [...]): Declare.John Wehle1-1/+1
* output.h (current_function_is_leaf, current_function_uses_only_leaf_regs): Declare. * function.c (current_function_is_leaf, current_function_uses_only_leaf_regs): Define. (init_function_start): Initialize current_function_is_leaf and current_function_uses_only_leaf_regs. * final.c (leaf_function): Don't define. (final_start_function): Replace uses of leaf_function with current_function_uses_only_leaf_regs. * toplev.c (rest_of_compilation): Set current_function_is_leaf prior to invoking local register allocation. (rest_of_compilation): Replace uses of leaf_function with current_function_uses_only_leaf_regs. * dbxout.c (dbxout_symbol, dbxout_parms): Likewise. * dwarf2out.c (add_location_or_const_vaule_attribute): Likewise. * dwarfout.c (add_location_or_const_value_attribute): Likewise. * sdbout.c (sdbout_symbol): Likewise. * sparc.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Likewise. * sparc.c (eligible_for_epilogue_delay, output_return, sparc_return_peephole_ok): Likewise. * sparc.md (leaf_function attribute, untyped_return): Likewise. * i386.c (ix86_compute_frame_size): Don't align the stack for leaf functions which don't allocate any stack slots. * tm.texi: Update documentation. From-SVN: r26538
1999-03-27sdbout.c (sdbout_symbol): Do not call build_pointer_type, build one on the ↵Jeffrey A Law1-1/+6
fly and do not cache the result. * sdbout.c (sdbout_symbol): Do not call build_pointer_type, build one on the fly and do not cache the result. From-SVN: r26032
1999-03-22sdbout.c (syms.h): Don't include on Interix.Mumit Khan1-1/+1
* sdbout.c (syms.h): Don't include on Interix. * toplev.c (main): No sbrk on Interix. Co-Authored-By: Donn Terry <donn@interix.com> From-SVN: r25911
1999-03-19Warning fixes:Kaveh R. Ghazi1-2/+2
* calls.c (initialize_argument_information): Mark parameters `num_actuals' and `n_named_args' with ATTRIBUTE_UNUSED. * dbxout.c (dbxout_start_new_source_file): Likewise for parameter `filename'. (dbxout_finish): Likewise for parameters `file' and `filename'. (dbxout_prepare_symbol): Likewise for parameter `decl'. (dbxout_begin_function): Likewise. * explow.c (hard_function_value): Likewise for parameter `func'. * function.c (locate_and_pad_parm): Likewise for parameter `fndecl'. * expmed.c (expand_divmod): Omit unused argument to `expand_abs'. * expr.c (expand_expr): Likewise. * expr.h (expand_abs): Delete unused argument from prototype. * optabs.c (expand_abs): Remove unused parameter `unsignedp'. * sdbout.c (sdbout_init): Mark parameter `syms' with ATTRIBUTE_UNUSED. (sdbout_end_block): Likewise for parameter `n'. * toplev.c (debug_define): Likewise for parameters `lineno' and `buffer'. (debug_undef): Likewise. * varasm.c (named_section): Likewise for parameter 'reloc'. (assemble_external): Likewise for parameter `decl'. (assemble_alias): Likewise for parameter `target'. From-SVN: r25858
1999-03-10* sdbout.c (plain_type_1): Make boolean types work better with sdb.Colin Smith1-0/+1
From-SVN: r25686
1998-09-25Fix nightly testing i386-coff libstdc++ build failure.Jim Wilson1-25/+32
* sdbout.c (sdbout_one_type): Don't look at TYPE_BINFO field of enums. From-SVN: r22592
1998-09-24sdbout.c (sdbout_field_types): Don't emit the types of fields we won't be ↵Jason Merrill1-4/+12
emitting. * sdbout.c (sdbout_field_types): Don't emit the types of fields we won't be emitting. From-SVN: r22576
1998-06-22Warning fixes:Kaveh R. Ghazi1-2/+15
* 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-05-18dwarfout.h, [...]: New files.Robert Lipe1-3/+1
* 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-04-04* Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12Jeff Law1-2/+6
for details. * haifa-sched.c: Mirror recent changes from gcc2. From-SVN: r18984
1998-03-20Major cutover to using system.h:Kaveh R. Ghazi1-1/+1
* 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-01-14Bring in final gcc-2.8.0 changes.Jeff Law1-2/+6
From-SVN: r17355
1997-12-20bitmap.c (bitmap_clear): Ensure `inline' is at the beginning of the declaration.Kaveh R. Ghazi1-1/+10
* 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-18tree.c (build_range_type): Allow creation of ranges with no maximum.Richard Henderson1-0/+1
* 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-15reload.h, [...]: Revert March 15 change.Richard Henderson1-3/+3
* 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-11-02Update mainline egcs to gcc2 snapshot 971021.Jeff Law1-1/+1
From-SVN: r16278
1997-09-05sdbout.c (plain_type_1, [...]): Verify that TYPE_DOMAIN has integer ↵Jim Wilson1-0/+2
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-05-06reformat a little to match GNU coding standards.Mike Stump1-2/+2
From-SVN: r14024
1997-03-15Change all calls to eliminate_regs.Richard Kenner1-4/+4
From-SVN: r13705
1996-11-15sdbout.c (current_file): New global.Doug Evans1-0/+69
* 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-10-09Include defaults.h.Richard Kenner1-0/+1
From-SVN: r12922
1996-07-03formatting tweaksMike Stump1-3/+3
From-SVN: r12390
1996-06-07(gsyms.h): Include if CROSS_COMPILE is defined.Jim Wilson1-8/+14
(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-05-19Add prototypes for static functions.Richard Kenner1-17/+18
(sdbout_parms, sdbout_reg_parms): Delete extra parm to plain_type. From-SVN: r12047
1995-12-30(plain_type_1, case ARRAY_TYPE): Subtract lower bound when writingRichard Kenner1-1/+2
dimension. From-SVN: r10906
1995-12-18(sdbout_symbol, case FUNCTION_DECL): Use DECL_INITIALJim Wilson1-1/+4
instead of DECL_EXTERNAL to identify declarations. From-SVN: r10805
1995-06-15Update FSF address.Richard Kenner1-1/+2
From-SVN: r9966
1995-05-16Changed WINNT to _WIN32.Richard Kenner1-1/+1
From-SVN: r9732
1995-05-04(plain_type): Pass additional argument to plain_type_1.Jim Wilson1-7/+28
(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-01(sdbout_one_type): Don't switch to text section ifJim Wilson1-1/+5
in function with section attribute. From-SVN: r9560
1995-04-12(sdbout_record_type_name): Correct indentation.Jim Wilson1-9/+3
(sdbout_symbol): Use DECL_ASSEMBLER_NAME unconditionally. (sdbout_one_type): Likewise. From-SVN: r9365
1995-03-10(sdbout_record_type_name): If TYPE_NAME is a TYPE_DECL, get name fromRichard Kenner1-6/+1
DECL_NAME. From-SVN: r9166
1995-01-20(syms.h): Don't include under Linux.Jim Wilson1-1/+1
From-SVN: r8780
1995-01-13(plain_type_1): For LONG_LONG_TYPE_SIZE, return T_[U]LONG instead of 0 (i.e.Richard Kenner1-1/+3
(plain_type_1): For LONG_LONG_TYPE_SIZE, return T_[U]LONG instead of 0 (i.e. T_VOID). From-SVN: r8755
1994-11-16Check target endianness at run time, not compile timeIan Lance Taylor1-6/+6
From-SVN: r8470
1994-09-30Don't include syms.h for winnt.Richard Kenner1-1/+1
From-SVN: r8181
1994-06-18(sdbout_symbol): Use DECL_ASSEMBLER_NAME ifJim Wilson1-1/+4
DECL_LANG_SPECIFIC is set. From-SVN: r7522
1994-06-18(sdbout_one_type): Use DECL_ASSEMBLER_NAME notJim Wilson1-1/+6
DECL_NAME for child_type that is a template type. From-SVN: r7518
1994-06-18(sdbout_one_type): Use DECL_ASSEMBLER_NAME ifJim Wilson1-1/+7
DECL_LANG_SPECIFIC is set. From-SVN: r7516
1994-04-04(sdbout_begin_block): Don't output block for function level scope unless ↵Jim Wilson1-2/+18
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-03-25(sdbout_symbol): Remove decl of unused variable LETTER.Richard Kenner1-3/+1
(sdbout_type): Remove decl of unused variable TEM. From-SVN: r6894
1994-01-04(sdbout_symbol): Handle variables at zero offset from frame pointer.Jim Wilson1-5/+10
From-SVN: r6358
1993-11-16(sdbout_symbol): If non-static var has static-style RTL,Richard Stallman1-0/+6
don't output anything for it. From-SVN: r6106
1993-11-08(sdbout_init) [RMS_QUICK_HACK_1]: Call sdbout_symbol for __vtbl_ptr_type.Richard Stallman1-0/+8
From-SVN: r6040
1993-10-12(KNOWN_TYPE_TAG, SET_KNOWN_TYPE_TAG): Refer to TYPE_SYMTAB_POINTER and ↵Richard Kenner1-6/+5
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-09-24sdbout.c: (sdbout_symbol): Use HARD_FRAME_POINTER_REGNUM instead of ↵Doug Evans1-1/+1
FRAME_POINTER_REGNUM. * sdbout.c: (sdbout_symbol): Use HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM. From-SVN: r5467
1993-04-13Treat QUAL_UNION_TYPE like UNION_TYPE when seeing if aggregate.Richard Kenner1-1/+6
From-SVN: r4118
1993-03-09(PUSH_DERIVED_LEVEL): Cast enumm constants to int.Richard Stallman1-2/+4
From-SVN: r3681
1993-01-10# Fix misspellings in comments.Paul Eggert1-1/+1
From-SVN: r3183
1993-01-01(plain_type_1): Distinguish some C integer types by name.Jim Wilson1-0/+28
From-SVN: r3046