summaryrefslogtreecommitdiff
path: root/gcc/xcoffout.c
Commit message (Collapse)AuthorAgeFilesLines
* * dbxout.c, mips-tfile.c, config/mips/mips.c, xcoffout.c:zack2001-05-011-27/+1
| | | | | | | | | | | | | | | | | | | | Always include gstab.h, not system stab.h. Don't provide default definitions of N_CATCH or N_OPT. Always use the gstab.h variant of STAB_CODE_TYPE. * final.c: Don't include stab.h/gstab.h at all, or provide defaults for N_SLINE and N_SOL. * xcoffout.c: Can assume N_MAIN, N_DSLINE, N_BSLINE, N_BINCL, N_EINCL, N_EXCL, N_M2C, N_SCOPE, N_CATCH, and N_OPT are available. * sdbout.c: Always include gsyms.h instead of system syms.h. * configure.in: No need to check for stab.h. * configure, config.in: Regenerate. * Makefile.in (final.o): Don't depend on gstab.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41713 138bc75d-0d04-0410-961f-82ee72b054a4
* * dbxout.c (dbxout_init): If DBX_OUTPUT_GCC_MARKER is defined,zack2001-04-181-35/+9
| | | | | | | | | | | | | use it instead of blindly generating a .stabs. * xcoffout.h: Define DBX_OUTPUT_GCC_MARKER so we put the type in the right place. * xcoffout.c: Don't bother defining default for N_CATCH. (UNKNOWN_STAB): Use internal_error. (stab_to_sclass): Remove now-unnecessary aborts. Remove #if 0'ed case N_BROWS. Add #ifdef N_OPT block. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41404 138bc75d-0d04-0410-961f-82ee72b054a4
* * ggc.h: Delete ggc_add_string_root and ggc_mark_string. Addzack2000-11-171-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | digit_vector and digit_string. * stringpool.c (digit_vector): New. (ggc_alloc_string): Use digit_string. * stmt.c (digit_strings): Delete. (init_stmt): Do not initialize digit_strings. (expand_asm_operands): Use ggc.h's digit_string macro. * toplev.c (mark_file_stack): Delete. (compile_file): Don't call init_tree_codes. (main): No need to make the file stack a GC root. * tree.c (init_tree_codes): Delete. * tree.h (init_tree_codes): Delete. * c-lex.c: Don't include ggc.h. (mark_splay_tree_node, mark_splay_tree): Delete. (init_c_lex): No need to ggc_strdup string constant. Don't add file_info_tree to GGC roots. (cb_enter_file, cb_rename_file): No need to ggc_strdup ip->nominal_fname. * Makefile.in (c-lex.o): No longer depends on $(GGC_H). * dbxout.c (dbxout_init), dwarf2out.c (dwarf2out_line), ggc-common.c (ggc_mark_rtx_children, ggc_mark_trees), varasm.c (mark_const_hash_entry, mark_pool_constant, init_varasm_once), xcoffout.c (xcoffout_source_file), i386.c (load_pic_register): Delete call(s) to ggc_add_string_root and/or ggc_mark_string. * except.c (create_rethrow_ref), profile.c (init_edge_profiler), toplev.c (compile_file), varasm.c (named_section, assemble_static_space, assemble_trampoline_template, output_constant_def, force_const_mem), i386.c (load_pic_register), ia64.c (ia64_encode_section_info), rs6000.c (rs6000_emit_load_toc_table, create_TOC_reference, rs6000_emit_prologue, rs6000_emit_epilogue), rs6000.md (load_toc_aix_si, load_toc_aix_di): Change ggc_alloc_string (var, -1) to ggc_strdup (var). * profile.c (output_func_start_profiler), tree.c (make_node), i386.c (load_pic_register): No need to ggc_strdup string constant. cp: * lex.c (mark_impl_file_chain): Delete. (init_parse): Remove call to ggc_add_string_root. No need to ggc_strdup a string constant. Do not add impl_file_chain to GC roots. (handle_pragma_implementation): No need to ggc_strdup main_filename. f: * lex.c (ffelex_hash_): Change ggc_alloc_string (var, -1) to ggc_strdup (var). java: * parse.y (goal): Remove call to ggc_add_string_root. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37522 138bc75d-0d04-0410-961f-82ee72b054a4
* * xcoffout.c: Fix formatting.law2000-08-291-28/+26
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36035 138bc75d-0d04-0410-961f-82ee72b054a4
* * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.ghazi2000-07-041-8/+10
| | | | | | | | | * xcoffout.c (assign_type_number): Constify. (xcoffout_source_file): Add static prototype. Don't needlessly cast away const-ness. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34866 138bc75d-0d04-0410-961f-82ee72b054a4
* * xcoffout.c (xcoff_current_include_file,dje2000-05-061-9/+9
| | | | | | | | | | | | | | | | | | | xcoff_current_function_file, xcoff_lastfile): Constify char *. (xcoffout_source_file, xcoffout_source_line): Make filename 'const char *'. (xcoffout_declare_function): Make name 'const char *'. (xcoffout_end_epilogue): Make fname 'const char *' * xcoffout.h (xcoff_current_include_file, xcoff_lastfile, xcoffout_declare_function, xcoffout_source_line): Match above. * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without -maix64 is error. * rs6000.c (print_operand): Fix lossage typo. (output_cbranch): Remove "cr" decoration for now. * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33720 138bc75d-0d04-0410-961f-82ee72b054a4
* * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.mmitchel2000-02-281-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32243 138bc75d-0d04-0410-961f-82ee72b054a4
* * emit-rtl.c (remove_unncessary_notes): Remove notes for emptymmitchel2000-02-281-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | blocks. * final.c (next_block_index): Remove. (max_block_depth): Likewise. (pending_blocks): Likewise. (init_final): Don't initialize them. (final_start_function): Don't set next_block_index. Set up BLOCK_NUMBER. (final_scan_insn): Use BLOCK_NUMBER, not next_block_index. * function.h (number_blocks): New function. * function.c (get_block_vector): New function. (identify_blocks): Use it. (reorder_blocks): Set NOTE_BLOCK. (number_blocks): New function. * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag. * tree.h (BLOCK_NUMBER): New macro. (tree_block): Add block_num field. * dbxout.c (next_block_number): Remove. (dbxout_init): Don't set it. (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN set. Use BLOCK_NUMBER, rather than next_block_num, to determine block numbers. * toplev.c (rest_of_compilation): Always call find_loop_tree_blocks. Fix indentation. * dwarf2out.c (next_block_number): Remove. (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number, to determine block numbers. (gen_inlined_subroutine_die): Likewise. (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set. (decls_for_scope): Don't increment next_block_number. * dwarfout.c (next_block_number): Remove. (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number, to determine block numbers. (output_inlined_subroutine_die): Likewise. (output_block): Only output blocks that have TREE_ASM_WRITTEN set. (output_decls_for_scope): Don't increment next_block_number. * sdbout.c (next_block_number): Remove. (sdbout_block): Use BLOCK_NUMBER. (sdbout_begin_block): Simplify. * xcoffout.c (next_block_number): Remove. (xcoffout_block): Use BLOCK_NUMBER, not next_block_number. (xcoffout_begin_block): Don't set next_block_number. (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not next_block_number. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32228 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix copyrights.law2000-02-261-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32179 138bc75d-0d04-0410-961f-82ee72b054a4
* Update copyrightsghazi2000-01-171-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31465 138bc75d-0d04-0410-961f-82ee72b054a4
* * print-rtl.c: PROTO -> PARAMS.ghazi2000-01-171-2/+2
| | | | | | | | | | | | | | | * real.c: Likewise. * reg-stack.c: Likewise. * resource.c: Likewise. * sdbout.h: Likewise. * simplify-rtx.c: Likewise. * stor-layout.c: Likewise. * stupid.c: Likewise. * xcoffout.c: Likewise. * xcoffout.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31463 138bc75d-0d04-0410-961f-82ee72b054a4
* * xcoffout.c (xcoffout_source_file): Change ggc_add_root tommitchel1999-11-111-1/+1
| | | | | | | gcc_add_string_root. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30486 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (dbxout.o): Depend on ggc.h.mmitchel1999-11-061-0/+4
| | | | | | | | | | | | | | (dwarf2out.o): Likewise. (xcoffout.o): Likewise. * dbxout.c: Include ggc.h. (dbxout_init): Register lastfile as a root. * dwarf2out.c: Include ggc.h. (dwarf2out_line): Register lastfile as a root. * xcoffout.c: Include ggc.h. (xcoffout_source_line): Register xcoff_lastfile as a root. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30433 138bc75d-0d04-0410-961f-82ee72b054a4
* * xcoffout.c (xcoffout_declare_function): Add documentation.dje1999-09-281-0/+3
| | | | | | | | | | | * rs6000.c (num_insns_constant_wide): Use TARGET_POWERPC64 not TARGET_64BIT. Compare constant to -1, not bit pattern. (easy_fp_constant): Use TARGET_POWERPC64 not TARGET_64BIT. (expand_block_move): Allow 8 DImode loads for PowerPC64. Fix gen_movsi typos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29697 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge in gcc2 snapshot 19980929. See gcc/ChangeLog and gcc/FSFChangeLog forlaw1999-01-271-1/+1
| | | | | | | details. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24879 138bc75d-0d04-0410-961f-82ee72b054a4
* More copyright fixes. Oh what fun.law1999-01-061-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24536 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix 24 powerpc-ibm-aix4.1 gdb testsuite failures due to bad gcc debug info.wilson1998-07-011-0/+10
| | | | | | | | * xcoffout.c (xcoffout_begin_function): Call xcoffout_block for the zero'th block. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20882 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-06-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (xcoffout.o): Depend on toplev.h, output.h and dbxout.h. * config/fp-bit.c (_fpmul_parts): Move variables `x', `ylow', `yhigh' and `bit' into the scope in which they are used. (_fpdiv_parts): Remove unused variables `low', `high', `r0', `r1', `y0', `y1', `q', `remainder', `carry', `d0' and `d1'. * rs6000.c: Move include of output.h below tree.h. Include toplev.h. (any_operand): Mark unused parameters `op' and `mode' with ATTRIBUTE_UNUSED. (count_register_operand): Likewise for parameter `mode'. (fpmem_operand): Likewise. (short_cint_operand): Likewise. (u_short_cint_operand): Likewise. (non_short_cint_operand): Likewise. (got_operand): Likewise. (got_no_const_operand): Likewise. (non_add_cint_operand): Likewise. (non_logical_cint_operand): Likewise. (mask_operand): Likewise. (current_file_function_operand): Likewise. (small_data_operand): Likewise for parameters `op' and `mode' but only when !TARGET_ELF. (init_cumulative_args): Mark parameters `libname' with ATTRIBUTE_UNUSED. (function_arg_pass_by_reference): Likewise for parameters `cum', `mode' and `named'. (expand_builtin_saveregs): Likewise for parameter `args'. (load_multiple_operation): Likewise for parameter `mode'. (store_multiple_operation): Likewise. (branch_comparison_operator): Likewise. (secondary_reload_class): Likewise. (print_operand): Add parentheses around & operation. (output_prolog): Mark parameter `size' with ATTRIBUTE_UNUSED. (output_epilog): Likewise. Cast argument to fprintf to int. (rs6000_adjust_cost): Mark parameter `dep_insn' with ATTRIBUTE_UNUSED. (rs6000_valid_decl_attribute_p): Likewise for parameters `decl', `attributes', `identifier' and `args'. (rs6000_valid_type_attribute_p): Likewise for parameter `attributes'. (rs6000_comp_type_attributes): Likewise for parameters `type1' and `type2'. (rs6000_set_default_type_attributes): Likewise for parameter `type'. * rs6000.h (RTX_COSTS): Add parentheses around & operation. (toc_section, private_data_section, trap_comparison_operator): Add prototypes. * dbxout.h (dbxout_parms, dbxout_reg_parms, dbxout_syms): Add prototypes. * xcoffout.c: Include toplev.h, outout.h and dbxout.h. * xcoffout.h (stab_to_sclass, xcoffout_begin_function, xcoffout_begin_block, xcoffout_end_epilogue, xcoffout_end_function, xcoffout_end_block, xcoff_output_standard_types, xcoffout_declare_function, xcoffout_source_line): Add prototypes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20717 138bc75d-0d04-0410-961f-82ee72b054a4
* Finish incomplete change started by Kenner.wilson1998-05-191-1/+1
| | | | | | | | | | | | | * configure.in (*-*-linux-gnu*): Delete NO_STAB_H from xm_defines. (powerpcle-*-cygwin32): Delete xm_defines. * final.c, mips-tfile.c, xcoffout.c, config/mips/mips.c: Use HAVE_STAB_H instead of NO_STAB_H. * config/xm-linux.h (NO_STAB_H): Delete. (HAVE_STAB_H): Undefine. * config/i386/xm-go32.h (NO_STAB_H): Delete. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19886 138bc75d-0d04-0410-961f-82ee72b054a4
* Major cutover to using system.h:ghazi1998-03-201-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18726 138bc75d-0d04-0410-961f-82ee72b054a4
* (xcoff_begin_function_line): Make static.kenner1995-12-151-5/+5
| | | | | | | | | | (xcoff_inlining): Likewise. (xcoff_current_function_file): Likewise. (xcoff_output_standard_types): Remove TARGET_64BIT dependencies from int and unsigned int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10730 138bc75d-0d04-0410-961f-82ee72b054a4
* (xcoff_declare_function): Deal with names created via the __asm__kenner1995-10-291-10/+13
| | | | | | | construct that start with a leading '*'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10542 138bc75d-0d04-0410-961f-82ee72b054a4
* (xcoff_inlining): New variable, used in place ofkenner1995-09-111-3/+5
| | | | | | | | | | xcoff_current_include_file when determining whether to use absolute line numbers. (xcoffout_source_file): Switched to using xcoff_inlining to determine when to emit .bi/.ei directives. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10308 138bc75d-0d04-0410-961f-82ee72b054a4
* (xcoffout_output_first_source_line): Delete.kenner1995-07-281-14/+3
| | | | | | | (xcoffout_begin_function): Call dbxout_parms and ASM_OUTPUT_SOURCE_LINE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10182 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF address.kenner1995-06-151-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9966 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typos in comments.kenner1995-05-161-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9712 138bc75d-0d04-0410-961f-82ee72b054a4
* (xcoff_output_standard_types): Add TARGET_64BIT dependencies. Addkenner1994-12-021-9/+9
| | | | | | | | "wchar", "long long int", and "long long unsigned int" built-in C types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8603 138bc75d-0d04-0410-961f-82ee72b054a4
* (xcoff_lastfile): New variable.wilson1994-06-011-2/+63
| | | | | | | | | (ABS_OR_RELATIVE_LINENO, ASM_OUTPUT_SOURCE_LINE): Define here. (xcoffout_source_file, xcoffout_source_line): New functions. (xcoffout_declare_function): Use xcoffout_source_file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7408 138bc75d-0d04-0410-961f-82ee72b054a4
* (MAKE_LINE_SAFE): Delete.wilson1994-05-201-14/+2
| | | | | | | (ASM_OUTPUT_LBB, ASM_OUTPUT_LBE): Don't use MAKE_LINE_SAFE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7343 138bc75d-0d04-0410-961f-82ee72b054a4
* (ASM_OUTPUT_LFE): Output absolute line number notwilson1994-01-311-3/+1
| | | | | | | relative line number. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6437 138bc75d-0d04-0410-961f-82ee72b054a4
* (xcoffout_begin_block): Don't emit a .bb for thewilson1994-01-171-2/+7
| | | | | | | | | function level scope. (xcoffout_end_block): Don't emit a .eb for the function level scope. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6399 138bc75d-0d04-0410-961f-82ee72b054a4
* (N_DSLINE, N_BSLINE): Delete definitions.wilson1993-05-141-8/+16
| | | | | | | | (stab_to_sclass): Use ifdefs to test for presence of N_MAIN, N_BSLINE, N_DSLINE, N_BINCL, N_EINCL, N_EXCL, N_M2C, N_SCOPE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4461 138bc75d-0d04-0410-961f-82ee72b054a4
* (xcoffout_declare_function): Call dbxout_source_filewilson1993-03-201-0/+4
| | | | | | | before emitting .function psuedo-op. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3790 138bc75d-0d04-0410-961f-82ee72b054a4
* * xcoffout.c (assign_type_number): Skip decls with no name.mrs1992-08-191-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1891 138bc75d-0d04-0410-961f-82ee72b054a4
* entered into RCSmycroft1992-07-061-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1476 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***rms1992-06-241-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1255 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***kenner1992-05-221-1/+28
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1045 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***rms1992-05-071-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@930 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***rms1992-03-231-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@577 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***kenner1992-03-211-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@558 138bc75d-0d04-0410-961f-82ee72b054a4
* Initial revisionmeissner1992-03-111-0/+444
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@443 138bc75d-0d04-0410-961f-82ee72b054a4