summaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
Commit message (Collapse)AuthorAgeFilesLines
* crtstuff.c (init_dummy): Use CRT_END_INIT_DUMMY if defined.Jakub Jelinek2001-03-191-14/+2
| | | | | | | | * crtstuff.c (init_dummy): Use CRT_END_INIT_DUMMY if defined. Remove ia32 linux PIC kludge and move it... * config/i386/linux.h (CRT_END_INIT_DUMMY): ...here. From-SVN: r40627
* * crtstuff.c: Restore include of auto-host.h.Kaveh R. Ghazi2001-03-051-0/+3
| | | | From-SVN: r40248
* configure.in: Kill tm.h.Zack Weinberg2001-03-031-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Kill tm.h. Include the files in the $tm_file list in all three of config.h, hconfig.h, tconfig.h, after the relevant set of xm_files. Put TARGET_CPU_DEFAULT in all three, include insn-codes.h in all three (#ifndef GENERATOR_FILE). * configure: Regenerate. * Makefile.in (clean): Don't delete tm.h. * system.h: If SUCCESS_EXIT_CODE and FATAL_EXIT_CODE are not defined, set them from EXIT_SUCCESS and EXIT_FAILURE. If those are not defined, set SEC and FEC to 0 and 1. * gcc.texi: Update to match. * crtstuff.c: Include tconfig.h, not auto-host.h and tm.h. * config/fp-bit.c, config/m68k/aux-crt2.asm, config/m68k/aux-crtn.asm, config/m68k/aux-mcount.c: Include tconfig.h, not tm.h. * config/xm-lynx.h, config/xm-std32.h, config/a29k/xm-a29k.h, config/a29k/xm-unix.h, config/alpha/xm-alpha.h, config/arc/xm-arc.h, config/avr/xm-avr.h, config/c4x/xm-c4x.h, config/clipper/xm-clix.h, config/convex/xm-convex.h, config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h, config/elxsi/xm-elxsi.h, config/fr30/xm-fr30.h, config/h8300/xm-h8300.h, config/i370/xm-linux.h, config/i386/xm-i386.h, config/i860/xm-i860.h, config/i960/xm-i960.h, config/ia64/xm-ia64.h, config/m32r/xm-m32r.h, config/m68hc11/xm-m68hc11.h, config/m88k/xm-m88k.h, config/mcore/xm-mcore.h, config/mips/xm-mips.h, config/mn10200/xm-mn10200.h, config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h, config/pa/xm-linux.h, config/pa/xm-pa.h, config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h, config/pa/xm-papro.h, config/pdp11/xm-pdp11.h, config/pj/xm-pj.h, config/romp/xm-romp.h, config/rs6000/xm-beos.h, config/rs6000/xm-rs6000.h, config/rs6000/xm-sysv4.h, config/sh/xm-sh.h, config/sparc/xm-sparc.h, config/sparc/xm-sysv4.h, config/v850/xm-v850.h, config/vax/xm-vax.h, config/we32k/xm-we32k.h: Don't include tm.h. Don't define SUCCESS_EXIT_CODE or FATAL_EXIT_CODE. * config/i370/xm-i370.h, config/i370/xm-mvs.h, config/i370/xm-oe.h: Don't include tm.h. Don't define SUCCESS_EXIT_CODE. * config/vax/xm-vms.h: Don't include tm.h. * config/xm-lynx.h, config/avr/xm-avr.h, config/fr30/xm-fr30.h, config/pdp11/xm-pdp11.h, Delete; made empty by above changes. * config/i386/xm-lynx.h, config/m68k/xm-lynx.h, config/rs6000/xm-lynx.h, config/sparc/xm-lynx.h: Don't include config/xm-lynx.h or tm.h. * config/xm-gnu.h: Don't include fcntl.h. * config/sparc/xm-lynx.h: Don't include sys/types.h and sys/wait.h. * config/clipper/xm-clix.h, config/vax/xm-vax.h: Don't define isinf. From-SVN: r40199
* configure.in: Arrange to include defaults.h in [ht]config.h/tm.h.Kaveh R. Ghazi2001-01-281-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Arrange to include defaults.h in [ht]config.h/tm.h. * Makefile.in: Remove all dependencies on defaults.h. * builtins.c: Don't include defaults.h. * c-common.c: Likewise. * c-decl.c: Likewise. * c-pragma.c: Likewise. * c-typeck.c: Likewise. * combine.c: Likewise. * i386.c: Likewise. * frame-ia64.c: Likewise. * cppexp.c: Likewise. * crtstuff.c: Likewise. * dbxout.c: Likewise. * dwarf2out.c: Likewise. * dwarfout.c: Likewise. * emit-rtl.c: Likewise. * except.c: Likewise. * expr.c: Likewise. * final.c: Likewise. * frame-dwarf2.c: Likewise. * libgcc2.c: Likewise. * optabs.c: Likewise. * profile.c: Likewise. * sdbout.c: Likewise. * toplev.c: Likewise. * tradcif.y: Likewise. * tree.c: Likewise. * varasm.c: Likewise. ch: * Makefile.in: Remove all dependencies on defaults.h. * decl.c: Don't include defaults.h. * timing.c: Likewise. cp: * Make-lang.in: Remove all dependencies on defaults.h. * call.c: Don't include defaults.h. * decl.c: Likewise. * decl2.c: Likewise. * except.c: Likewise. * pt.c: Likewise. * rtti.c: Likewise. * tree.c: Likewise. * typeck.c: Likewise. f: * Make-lang.in: Remove all dependencies on defaults.h. * com.c: Don't include defaults.h. java: * Make-lang.in: Remove all dependencies on defaults.h. * decl.c: Don't include defaults.h. * expr.c: Likewise. * parse.y: Likewise. From-SVN: r39308
* * crtstuff.c (force_to_data): Use array size 1 not 0.Richard Henderson2000-11-191-3/+3
| | | | From-SVN: r37579
* Changes add TABs on either or both sides, covering start of line,Hans-Peter Nilsson2000-09-251-1/+4
| | | | | | up to any operand for all .*ASM.*_OP definitions. From-SVN: r36603
* crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.Alexandre Oliva2000-08-251-3/+7
| | | | | | | * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default. (fini_dummy, init_dummy): Use it. From-SVN: r35971
* Update to libgcc copyright exception clause.Jeff Law2000-05-151-6/+9
| | | | From-SVN: r33916
* acconfig.h: Add HAVE_GAS_HIDDEN.Ulrich Drepper2000-04-051-1/+12
| | | | | | | | | | | | * acconfig.h: Add HAVE_GAS_HIDDEN. * config.h: Regenerated. * configure.in: Add test for .hidden pseudo-op in gas. * configure: Regenerated. * crtstuff.c: Include auto-host.h. Emit additional .hidden pseudo-op for __dso_handle if the assembler knows about it. From-SVN: r32925
* Fix copyrights.Jeff Law2000-02-251-1/+2
| | | | From-SVN: r32173
* crtstuff.c (__do_global_ctors_aux, [...]): Add prototype argument.Kaveh R. Ghazi2000-02-121-5/+4
| | | | | | | | | | | | | | | | | * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor, __dereg_frame_dtor): Add prototype argument. * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise. * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise. * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise. * gthr-vxworks.h (__gthread_once): Likewise. * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise. From-SVN: r31945
* tsystem.h: New file.Kaveh R. Ghazi2000-02-011-16/+2
| | | | | | | | | | | | | * tsystem.h: New file. * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o, s-crtS): Depend on tsystem.h. * crtstuff.c: Include tsystem.h. * frame.c: Likewise. * libgcc2.c: Likewise. From-SVN: r31741
* crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h.Kaveh R. Ghazi1999-12-291-1/+16
| | | | | | | | | | | | | * crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h. Otherwise provide a declaration for atexit. (init_dummy): Make sure dummy call to atexit is nevertheless called with correct number of args. * frame.c: Update comments referring to other files. * libgcc2.c: Likewise. From-SVN: r31124
* crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize in a main ↵Mark Mitchell1999-12-191-1/+3
| | | | | | | | | program. * crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize in a main program. From-SVN: r31023
* crtstuff.c (__dso_handle): Declare.Mark Mitchell1999-12-171-0/+16
| | | | | | | | | | | | | | * crtstuff.c (__dso_handle): Declare. (__cxa_finalize): Likewise. (do_global_dtors_aux): Call __cxa_finalize if __dso_handle is non-NULL. * invoke.texi: Document -fuse-cxa-atexit. * tree.h (ptr_type_node): Document. (const_ptr_type_node): Likewise. From-SVN: r30989
* crtstuff.c (ON_EXIT): Delete empty macro definition.Kaveh R. Ghazi1999-09-201-5/+2
| | | | | | | * crtstuff.c (ON_EXIT): Delete empty macro definition. (__do_global_ctors_aux): Call atexit(), not ON_EXIT(). From-SVN: r29527
* defaults.h (EH_FRAME_SECTION, [...]): Define here.Jason Merrill1999-09-091-4/+1
| | | | | | | | | | * defaults.h (EH_FRAME_SECTION, EH_FRAME_SECTION_ASM_OP): Define here. * crtstuff.c: Not here. * dwarf2out.c: Or here. * libgcc2.c (__do_global_ctors, __do_global_dtors): Handle EH frame info. From-SVN: r29241
* crtstuff.c: Use ANSI function definitions.Jeffrey A Law1999-03-221-14/+16
| | | | | | | * crtstuff.c: Use ANSI function definitions. Fix minor whitespace problems. From-SVN: r25914
* frame.h: Update some comments.H.J. Lu1999-02-271-4/+36
| | | | | | | | | | | | | | | | | * frame.h: Update some comments. * defaults.h (TARGET_ATTRIBUTE_WEAK): Define. * crtstuff.c (__register_frame_info, __deregister_frame_info): Declare using TARGET_WEAK_ATTRIBUTE. (__do_global_dtors_aux): Check if __deregister_frame_info is zero before calling it. (__do_global_dtors): Likewise. (frame_dummy): Check if __register_frame_info is zero before calling it. (__frame_dummy): Likewise. Co-Authored-By: Jeffrey A Law <law@cygnus.com> From-SVN: r25487
* configure.in: Disable collect2 for nextstep.Melissa O'Neill1998-09-191-0/+70
| | | | | | | | | | | | | * configure.in: Disable collect2 for nextstep. Instead use crtbegin/crtend. * configure: Rebuilt. * config/nextstep.h (STARTFILE_SPEC): Add crtbegin. (ENDFILE_SPEC): Define. (OBJECT_FORMAT_MACHO): Define. (EH_FRAME_SECTION_ASM_OP): Define. * crtstuff.c: Handle MACHO. From-SVN: r22487
* Warning fixes:Kaveh R. Ghazi1998-06-081-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (varasm.o): Depend on dbxout.h. (cse.o): Depend on toplev.h and output.h. (gcse.o): Depend on output.h. * mips.c: Include system.h and toplev.h and remove redundant code. Include output.h after tree.h so all its prototypes get activated. * mips.md (table_jump): Remove unused variable `dest'. * sparc.h: Add prototype for `v8plus_regcmp_op'. * crtstuff.c (fini_dummy, init_dummy): Mark function definitions with __attribute__ ((__unused__)). (__frame_dummy): Provide prototype before use, wrap it with EH_FRAME_SECTION_ASM_OP. * cse.c: Move inclusion of <setjmp.h> above local headers. Include toplev.h and output.h. * dbxout.h: Add prototype for `dbxout_begin_function'. * final.c (final_scan_insn): Wrap variable `max_skip' in macro ASM_OUTPUT_MAX_SKIP_ALIGN. * gcse.c: Include system.h and output.h. (dump_cuid_table, dump_rd_table, dump_cprop_data, dump_pre_data): Make extern instead of static. (compute_can_copy): Only declare variables `reg' and `insn' when AVOID_CCMODE_COPIES is not defined. (record_set_info): Mark parameter `setter' with ATTRIBUTE_UNUSED. (hash_scan_clobber): Likewise for `x' and `insn'. (hash_scan_call): Likewise. (record_last_set_info): Likewise for `setter'. (mark_call): Likewise for `pat'. (pre_insert_insn): Wrap variable `note' in macro HAVE_cc0. * libgcc2.c (__bb_init_prg): Replace bzero with memset and fix the length parameter so that it multiplies the number of elements by the sizeof(element). * output.h: Add prototype for `weak_finish'. * recog.h: Likewise for `validate_replace_src'. * rtl.h: Likewise for `optimize_save_area_alloca', `fix_sched_param', `purge_addressof', `gcse_main', `regmove_optimize', `dbr_schedule', `branch_prob' and `end_branch_prob'. * toplev.h: Likewise for `set_float_handler' and `output_quoted_string'. * varasm.c: Include dbxout.h. From-SVN: r20351
* Warning fixes:Kaveh R. Ghazi1998-05-131-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (c-lang.o): Depend on c-tree.h, c-lex.h and toplev.h. (c-lex.o): Depend on output.h. (c-common.o): Likewise. (stmt.o): Likewise. (calls.o): Likewise. (integrate.o): Depend on toplev.h. (regclass.o): Depend on output.h. (final.o): Depend on reload.h. * c-common.c: Include output.h. (check_format_info): Remove unused variable `integral_format'. * c-decl.c (print_lang_decl): Mark parameters `file', `node' and `indent' with ATTRIBUTE_UNUSED. (print_lang_type): Likewise. (maybe_build_cleanup): Likewise for parameter `decl'. (copy_lang_decl): Likewise for parameter `node'. * c-lang.c: Include c-tree.h, c-lex.h and toplev.h. (lang_print_xnode): Mark parameters `file', `node' and `indent' with ATTRIBUTE_UNUSED. (lookup_interface): Likewise for parameter `arg'. (is_class_name): Likewise. (maybe_objc_check_decl): Likewise for parameter `decl'. (maybe_objc_comptypes): Likewise for parameters `lhs', `rhs' and `reflexive'. (maybe_objc_method_name): Likewise for parameter `decl'. (build_objc_string): Likewise for parameters `len' and `str'. * c-lex.c: Include output.h. * c-lex.h (position_after_white_space): Correct typo in prototype. * c-tree.h (finish_file, c_expand_start_cond, c_expand_start_else, c_expand_end_cond, init_iterators): Add prototypes. * caller-save.c (set_reg_live): Mark parameters `reg' and `setter' with ATTRIBUTE_UNUSED. * calls.c: Include output.h. * cccp.c (pipe_closed): Mark parameter `signo' with ATTRIBUTE_UNUSED. * combine.c: Move inclusion of expr.h to after insn-config.h. * iris6.h (ASM_IDENTIFY_GCC, ASM_IDENTIFY_LANGUAGE): Don't define as empty, rather define as ((void)0). * sparc.c (sparc_check_64): Add braces around ambiguous `else'. Add parentheses around assignment used as truth value. * cplus-dem.c (squangle_mop_up): Change return type to void. (internal_cplus_demangle): Remove unused parameter `options'. All callers changed. (cplus_demangle_opname): Remove function wide variable `int i' and replace with `size_t i' at each location where it is used. (cplus_demangle_opname): change type of `i' from int to size_t. * cppexp.c (right_shift): Mark parameter `pfile' with ATTRIBUTE_UNUSED. * cpphash.c (cpp_lookup): Likewise. (cpp_hash_cleanup): Likewise. * cpplib.c (parse_name): Add a prototype and make it static. (null_underflow): Mark parameter `pfile' with ATTRIBUTE_UNUSED. (null_cleanup): Likewise for parameters `pbuf' and `pfile'. (macro_cleanup): Likewise for parameter `pfile'. (file_cleanup): Likewise. * cpplib.h (cpp_reader_init, cpp_options_init, cpp_start_read, cpp_read_check_assertion, skip_rest_of_line): Add prototypes. * crtstuff.c (force_to_data, __CTOR_LIST__, force_to_data, __DTOR_END__, __FRAME_END__): Mark with ATTRIBUTE_UNUSED. * cse.c (cse_check_loop_start): Mark parameter `set' with ATTRIBUTE_UNUSED. * dbxout.c (flag_minimal_debug, have_used_extensions, source_label_number): Move inside macro wrapper check against defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO). * dwarf2out.c (gen_entry_point_die): Hide prototype and definition. * except.h (doing_eh): Provide prototype. * expr.c: Move inclusion of expr.h to after insn-config.h. * final.c: Include reload.h. (shorten_branches): Cast the first argument of bzero to char *. * fix-header.c (cpp_print_containing_files): Mark parameter `pfile' with ATTRIBUTE_UNUSED. (cpp_fatal): Likewise. * flow.c (find_basic_blocks_1): Cast the first argument of bzero to char *. * genattrtab.c (make_length_attrs): Change the type of variable `i' from int to size_t. (zero_fn): Mark parameter `exp' with ATTRIBUTE_UNUSED. (one_fn): Likewise. * genextract.c (main): When generating insn-extract.c, mark variable `junk' with ATTRIBUTE_UNUSED. * gengenrtl.c (gencode): When generating genrtl.c, cast the first argument of bzero to char*. * integrate.c: Include toplev.h. * libgcc2.c: Wrap `struct exception_table' and `find_exception_handler' in macro DWARF2_UNWIND_INFO. * objc/Make-lang.in (objc-act.o): Depend on toplev.h. * objc/objc-act.c: Include toplev.h. (lang_print_xnode): Mark parameters `file', `node' and `indent' with ATTRIBUTE_UNUSED. (finish_protocol): Likewise for parameter `protocol'. * output.h (declare_weak): Add prototype. (decode_reg_name): Don't wrap with TREE_CODE macro. (assemble_alias): Add prototype. * regclass.c: Include output.h. * reload.h (reloads_conflict): Add prototype. * rtl.h (print_rtl_single, mark_elimiation, reg_class_subset_p, output_func_start_profiler): Add prototypes. * rtlanal.c (reg_set_p_1): Mark parameters `x' and `pat' with ATTRIBUTE_UNUSED. * scan-decls.c: Include scan.h. * scan.h (recognized_function, recognized_extern): Add prototypes. * stmt.c: Include output.h. * toplev.c (error_for_asm, warning_for_asm): Remove prototypes. (output_lang_identify): Hide prototype and definition. (float_signal): Mark parameter `signo' with ATTRIBUTE_UNUSED. (pipe_closed): Likewise. * toplev.h (count_error, strip_off_ending, error_for_asm, warning_for_asm): Add prototypes. From-SVN: r19712
* * Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12Jeff Law1998-04-041-3/+6
| | | | | | | | for details. * haifa-sched.c: Mirror recent changes from gcc2. From-SVN: r18984
* crtstuff.c (init_dummy): Keep the epilogue in the init section for non-ELF ↵Jeffrey A Law1998-01-231-1/+0
| | | | | | | | | systems. * crtstuff.c (init_dummy): Keep the epilogue in the init section for non-ELF systems. From-SVN: r17464
* Bring in final gcc-2.8.0 changes.Jeff Law1998-01-141-0/+4
| | | | From-SVN: r17355
* crtstuff.c (__frame_dummy): New function for irix6.Jim Wilson1998-01-021-4/+14
| | | | | | | | | | * crtstuff.c (__frame_dummy): New function for irix6. (__do_global_ctors): Call __frame_dummy for irix6. * iris6.h (LINK_SPEC): Hide __frame_dummy too. Co-Authored-By: Jeffrey A Law <law@cygnus.com> From-SVN: r17281
* Bring over changes from latest gcc-2.8 pre-release.Jeff Law1997-12-151-7/+7
| | | | | | Mirror sched.c change into haifa-sched.c From-SVN: r17097
* Fixed typo.Anthony Green1997-12-101-1/+1
| | | | From-SVN: r17036
* Updates from gcc-2.8 test tarball to current gcc-2.8 tarball.Jeff Law1997-12-071-1/+2
| | | | From-SVN: r17002
* Merge from gcc-2.8Jeff Law1997-12-061-3/+6
| | | | From-SVN: r16987
* * crtstuff.c (do_global_dtors_aux): Handle multiple calls better.Jeffrey A Law1997-11-251-0/+7
| | | | From-SVN: r16698
* dwarf2 EH supportJason Merrill1997-09-101-2/+64
| | | | From-SVN: r15255
* Put HAS_INIT_SECTION ifdefs around Irix6 support.Jim Wilson1996-10-311-0/+4
| | | | From-SVN: r13086
* crtstuff.c (__do_global_dtors_aux): Allow finalization code to be run more ↵Mike Stump1996-10-241-4/+12
| | | | | | | | | | than once. * crtstuff.c (__do_global_dtors_aux): Allow finalization code to be run more than once. * libgcc2.c (__do_global_dtors): Ditto. From-SVN: r13023
* irix6 ctorsJason Merrill1996-10-161-0/+29
| | | | From-SVN: r12971
* formatting tweaksMike Stump1996-07-031-3/+6
| | | | From-SVN: r12390
* (init_dummy): Only i386-linux (at most) needs ___brk_addr hack.Richard Kenner1996-06-281-8/+6
| | | | From-SVN: r12357
* Update FSF address.Richard Kenner1995-06-151-1/+2
| | | | From-SVN: r9959
* Added reference to INIT_SECTION_PREAMBLE for systems that do somethingRichard Kenner1995-05-191-1/+11
| | | | | | which must be undone prior to __do_global_ctors. From-SVN: r9749
* Fix typos in comments.Richard Kenner1995-05-161-1/+1
| | | | From-SVN: r9712
* (CRT_END): Add dummy refs to ___brk_addr, __environ and atexit ifRichard Kenner1994-12-081-1/+16
| | | | | | __linux__ and __PIC__ defined. From-SVN: r8626
* Shared library support.Jason Merrill1994-11-191-26/+137
| | | | From-SVN: r8519
* Change rfg's address.Richard Kenner1994-03-231-1/+1
| | | | From-SVN: r6852
* (__do_global_ctors_aux): Use FORCE_INIT_SECTION_ALIGNJim Wilson1993-02-051-0/+3
| | | | | | to avoid Solaris 2, x86 linker bug. From-SVN: r3429
* entered into RCSCharles Hannum1992-06-041-2/+4
| | | | From-SVN: r1158
* *** empty log message ***Richard Stallman1992-05-241-1/+11
| | | | From-SVN: r1069
* *** empty log message ***Richard Stallman1992-05-131-1/+1
| | | | From-SVN: r970
* *** empty log message ***Tom Wood1992-03-201-0/+1
| | | | From-SVN: r535
* *** empty log message ***Tom Wood1992-03-191-4/+25
| | | | From-SVN: r526
* *** empty log message ***Richard Stallman1992-03-191-2/+2
| | | | From-SVN: r519