Commit Graph

126 Commits

Author SHA1 Message Date
Michael Meissner c4d38ccb55 Fix warnings from Kaveh R. Ghazi
From-SVN: r18826
1998-03-25 13:17:37 +00: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
Richard Henderson 99d1a24c9b dbxout.c (dbxout_function_end): Fix last change.
* dbxout.c (dbxout_function_end): Fix last change.  The correct
predicate is ASM_OUTPUT_SECTION_NAME.

From-SVN: r18675
1998-03-18 08:14:28 -08:00
Kaveh R. Ghazi 081f5e7e66 Fix more warnings...
* c-lang.c (finish_file): Wrap variable `void_list_node' with macro
        test !ASM_OUTPUT_CONSTRUCTOR || !ASM_OUTPUT_DESTRUCTOR.
        * calls.c (emit_call_1): Wrap variable `already_popped' with macro
        test !ACCUMULATE_OUTGOING_ARGS.
        * collect2.c (write_c_file_glob): Wrap function definition in
        macro test !LD_INIT_SWITCH.
        * combine.c (try_combine): Wrap variables `cc_use' and
        `compare_mode' in macro test EXTRA_CC_MODES.
        * cpplib.c (do_ident): Remove unused variable `len'.
        (skip_if_group): Remove unused variables `at_beg_of_line' and
        `after_ident'.
        (cpp_get_token): Remove unused variable `dummy'.
        * dbxout.c (scope_labelno): Move static variable definition inside
        the one function scope where it is used.
        (dbxout_function_end): Wrap prototype and definition in
        macro test !NO_DBX_FUNCTION_END.
        * dwarf2out.c (add_subscript_info): Wrap variable `dimension_number'
        in macro test !MIPS_DEBUGGING_INFO.
        * expr.c (expand_builtin_setjmp): Move declaration of variable `i'
        into the scope where it is used.  Wrap empty else-statement body
        in braces.
        * fix-header.c: Fix typo in comment.
        (inf_skip_spaces): Cast results of INF_UNGET to (void).
        (check_protection, main): Likewise.
        * flow.c (find_basic_blocks_1): Remove dangling comment text.
        * function.c (contains): Wrap prototype and definition in macro
        test HAVE_prologue || HAVE_epilogue.
        (fixup_var_refs_1): Remove unused variable `width'.
        * gen-protos.c (main): Remove unused variable `optr'.
        * haifa-sched.c (debug_control_flow): Remove unused variable `j'.
        * libgcc2.c (__udiv_w_sdiv): Provide dummy return value of 0.
        (__sjpopnthrow): Remove unused variable `jmpbuf'.
        (__throw): Remove unused variable `val'.
        * protoize.c: Check for a previously existing definition before
        defining *_OK macros.
        * scan-decls.c (scan_decls): Remove unused variable `old_written'.

From-SVN: r18654
1998-03-18 07:18:06 +00:00
Mark Mitchell 6d89b990a5 dbxout.c (dbxout_type_methods): Only treat TYPE_METHODS as a TREE_VEC if that's what it really is.
* dbxout.c (dbxout_type_methods): Only treat TYPE_METHODS as a
	TREE_VEC if that's what it really is.

From-SVN: r18487
1998-03-11 23:34:32 +00:00
Robert Lipe ccd043a956 c-common.c: Include <stdlib.h> and <string.h>/<strings.h>.
* c-common.c: Include <stdlib.h> and <string.h>/<strings.h>.
        * calls.c (expand_call): Remove unused variables funtree,
        n_regs, and tmpmode.
        * dbxout.c, except.c: Include <string.h>/<strings.h>.
        * explow.c: (plus_constant_for_output_wide) Removed unused
        variable all_constant.
        * c-decl.c, genattr.c, genattrtab.c, getconfig.c, genemit.c
        genextract.c, genflags.c, genopinit.c genoutput.c, genpeep.c,
        genrecog.c, global.c, integrate.c , stupid.c : Include
        <stdlib.h>.
        * genextract.c: (walk_rtx) Remove unused variable link.
        * genrecog.c: (concat) Remove unreferenced static function.
        * prefix.c: Include <string.h>/<strings.h>, <stdlib.h>
        * stmt.c: Include <stdlib.h>.
        (expand_asm_operands): Remove unused variable val1.
        (expand_return): Remove unused variable block.
        (pushcase): Remove unused variables l and n.
        (pushcaserange): Likewise.
        * unroll.c (unroll_loop): Remove unused variable temp.

From-SVN: r17766
1998-02-07 15:55:54 -07:00
Per Bothner 598fc15260 dbxout.c (dbxout_type): For a RECORD_TYPE...
�
	* dbxout.c (dbxout_type):  For a RECORD_TYPE, check that TYPE_BINFO
	is a TREE_VEC before trying to use it for baseclasses.
	(Chill uses the same field for a different purpose.)

From-SVN: r17534
1998-01-28 09:07:23 -08: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
Michael Meissner 9571f69bfd dbxout.c (dbxout_symbol_location): Don't assume that variables whose address is the stack or argument pointers are...
* dbxout.c (dbxout_symbol_location): Don't assume that variables
        whose address is the stack or argument pointers are indirect
        pointers.

From-SVN: r16475
1997-11-13 18:39:43 -07:00
Jeff Law e9a25f70a0 Update mainline egcs to gcc2 snapshot 971021.
From-SVN: r16278
1997-11-02 14:19:36 -07:00
J"orn Rennecke c401498bbf dbxout.c (dbxout_start_new_source_file): Use output_quoted_string for FILENAME.
* dbxout.c (dbxout_start_new_source_file): Use output_quoted_string
	for FILENAME.

From-SVN: r16155
1997-10-23 13:11:19 +01:00
Per Bothner 7b1f7d51a7 * dbxout.c (dbxout_type_fields): Skip field if DECL_IGNORED_P.
From-SVN: r14259
1997-06-18 18:17:36 -07:00
Jeff Law 59cfb80c42 dbxout.c (dbxout_function_end): Don't subtract one from the end of function scoping stab.
* dbxout.c (dbxout_function_end): Don't subtract one from
        the end of function scoping stab.

From-SVN: r14069
1997-05-15 08:39:56 -06:00
Mike Stump e3da301da3 reformat a little to match GNU coding standards.
From-SVN: r14023
1997-05-06 22:59:57 +00:00
Jim Wilson 21c40584c0 (dbxout_function): Test NO_DBX_FUNCTION_END at run time
instead of compile time.

From-SVN: r13998
1997-04-30 16:56:40 -07:00
Richard Kenner fa1610e95b Change all calls to eliminate_regs.
From-SVN: r13705
1997-03-15 07:17:02 -05:00
Richard Kenner 37306b1ec0 (dbxout_symbol): Fix forgotten case in last change: check
DECL_ARTIFICIAL also when using the short cut way.

From-SVN: r12791
1996-09-23 21:15:37 -04:00
Jim Wilson abe0396253 (dbxout_function): Don't check DECL_SECTION_NAME before
calling dbxout_function_end.

From-SVN: r12779
1996-09-23 12:34:01 -07:00
Mike Stump 0f41302f47 formatting tweaks
From-SVN: r12390
1996-07-03 22:07:53 +00:00
Richard Kenner 960a3ef20b (dbxout_function): Respect NO_DBX_FUNCTION_END.
From-SVN: r12356
1996-06-28 14:07:33 -04:00
Richard Kenner 29de0a5c2f Add prototypes for all static functions.
(adspath): Delete; never used and has numerous parse errors.

From-SVN: r12042
1996-05-19 12:22:07 -04:00
Doug Evans d2cba896e1 dbxout.c (dbxout_function): When deciding to call dbxout_function_end change test from...
* dbxout.c (dbxout_function): When deciding to call dbxout_function_end
	change test from flag_function_sections to DECL_SECTION_NAME != NULL.

From-SVN: r11946
1996-05-06 22:51:59 +00:00
Jeff Law cf4403481d flags.h (flag_function_sections): Declare.
* flags.h (flag_function_sections): Declare.
        * toplev.c (flag_function_sections): Define.
        (compile_file): Add warnings when -ffunction-sections is
        used with -g, or profiling.  Disable -ffunction-sections
        when profiling is used.  Add warning when -ffunction-sections
        is used on a target that doesn't support it.
        * varasm.c (named_section): Make a copy of the section name
        in case the original is in temporary storage.
        (function_section): Set DECL_SECTION_NAME for each function
        if flag_function_sections is on and the target supports it.
        * dbxout.c (dbxout_function_end): New function.
        (dbxout_function): Call dbxout_function_end if using extensions
        and flag_function_sections is on.
        * sparc/sysv4.h (ASM_OUTPUT_SECTION_NAME): Prefix a function
        section's name with ".text%" when -ffunction-sections.

From-SVN: r11774
1996-04-15 01:46:10 -06:00
Jason Merrill 7f6c7be1a0 (dbxout_typedefs): Don't emit incomplete types yet.
(dbxout_symbol): Use DECL_ARTIFICIAL to recognize C++ implicit
        typedefs.

From-SVN: r11703
1996-04-12 16:42:46 +00:00
Per Bothner 5bfaaedad7 dbxout.c (dbxout_type): Better "variant" handling to ignore const/volatile but not typedef names.
* dbxout.c (dbxout_type):  Better "variant" handling to ignore
const/volatile but not typedef names.  Improves Feb 12 change.

From-SVN: r11523
1996-03-12 21:47:30 -08:00
Jim Wilson 3d0793d589 (dbxout_type, case METHOD_TYPE): Add CHARS (1) call
after emitting second '#' character.

From-SVN: r11390
1996-02-29 17:41:00 -08:00
Per Bothner 79afd9061c Changes to distinguish typedef from original type in debug output.
* dbxout,c (dbxout_type):  Don't canonicalize typedef type to base.

From-SVN: r11217
1996-02-12 12:03:24 -08:00
Per Bothner 7ae6c85803 dbxout.c (dbxout_range_type): Emit non-range INTEGER_TYPE as a sub-range of itself (so gdb can tell the...
* dbxout.c (dbxout_range_type):  Emit non-range INTEGER_TYPE
as a sub-range of itself (so gdb can tell the difference).

From-SVN: r11179
1996-02-06 14:26:35 -08:00
Ian Lance Taylor b107aaf90e Don't include <string.h>. Don't compare strchr result to NULL.
From-SVN: r11125
1996-01-30 18:32:39 +00:00
Ian Lance Taylor 687038f1f0 Don't use #ifndef inside call to strchr, to avoid AIX problem
From-SVN: r11121
1996-01-29 16:26:41 +00:00
Ian Lance Taylor 753eae35b5 Include <string.h>
From-SVN: r11078
1996-01-22 04:34:18 +00:00
Ian Lance Taylor e663b41c30 Avoid minimal C++ debugging in a couple of cases where it doesn't work
From-SVN: r11072
1996-01-19 20:21:04 +00:00
Jim Wilson 276c865243 (gstab.h): Include if cross compiling.
From-SVN: r10935
1996-01-02 13:11:20 -08:00
Ian Lance Taylor 4bcaafd97b Output N_BINCL and N_EINCL stabs if DBX_USE_BINCL is defined.
From-SVN: r10706
1995-12-13 20:01:49 +00:00
Richard Kenner 940d9d638b Update FSF address.
From-SVN: r9959
1995-06-15 07:33:25 -04:00
Jim Wilson 6376fd9aed (dbxout_type_fields): Correct arguments to CHARS macro in flag_minimal_debug case.
(dbxout_type_fields): Correct arguments to CHARS macro
in flag_minimal_debug case.
(dbxout_symbol_name): Use DECL_ASSEMBLER_NAME unconditionally.

From-SVN: r9366
1995-04-12 11:35:39 -07:00
Richard Kenner bf6ed04031 (dbxout_symbol): Properly handle decl whose DECL_NAME points to a
TYPE_DECL with a zero TYPE_NAME.

From-SVN: r9171
1995-03-11 06:42:39 -05:00
Jim Wilson f31093e263 (GDB_INV_REF_REGPARM_STABS_LETTER): New macro.
(dbxout_parms): For gdb, output use GDB_INV_REF_REGPARM_STABS_LETTER
for parameters passed by invisible reference in registers.

From-SVN: r9063
1995-02-24 14:33:14 -08:00
Jim Wilson dc2fba6003 (dbxout_parms): For parameters passed in memory...
(dbxout_parms): For parameters passed in memory, delete
obsolete code to handle parameters converted and stored back to
the stack slot where they were passed in.
(dbxout_reg_parms): Delete obsolete ifdefed out code.  Combine
redundant PARM_PASSED_IN_MEMORY tests.  For case where parameter
lives in memory, output stab if it doesn't live where it was passed.

From-SVN: r9057
1995-02-24 12:55:10 -08:00
Doug Evans 6697c6bf7f (dbxout_source_file): Clean up null tree pointer test. Update copyright.
From-SVN: r8867
1995-02-05 05:26:45 +00:00
Doug Evans 5604861b6f (dbxout_source_file): Don't switch to text section if in function with section attribute.
(dbxout_source_file): Don't switch to text section if
in function with section attribute.  Print Ltext label to correct
file (important on mips).

From-SVN: r8859
1995-02-04 15:31:23 +00:00
Jason Merrill 213ecac93c (dbxout_type_method_1): Don't try to look at the first
argument of non-methods (which might not have a first argument).

From-SVN: r8633
1994-12-09 03:29:37 +00: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
Jim Wilson 6c949b6759 (dbxout_symbol_location): Handle error_mark_node in
DECL_INITIAL for C++.

From-SVN: r8060
1994-09-09 14:03:24 -07:00
Richard Earnshaw 667732d849 (dbxout_source_file): Increment source_label_number outside
of macro expansion.

From-SVN: r7737
1994-07-12 12:11:35 +00:00
Jim Wilson 6859741315 (dbxout_type_methods): Enable debugging info for
template classes.

From-SVN: r7647
1994-07-02 16:16:32 -07:00
Jim Wilson 3a83beef35 (dbxout_symbol): Replace DECL_IGNORED_P with
TYPE_DECL_SUPPRESS_DEBUG.

From-SVN: r7515
1994-06-18 13:40:20 -07:00
Doug Evans 0725d62132 (dbxout_type): Fix call to bzero.
From-SVN: r7496
1994-06-15 23:23:33 +00:00
Per Bothner d0310c5364 (dbxout_range_type): Handle an array range that is neither int nor subrange.
From-SVN: r7494
1994-06-15 15:21:27 -07:00