aboutsummaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
AgeCommit message (Collapse)AuthorFilesLines
2000-04-05acconfig.h: Add HAVE_GAS_HIDDEN.Ulrich Drepper1-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
2000-02-25Fix copyrights.Jeff Law1-1/+2
From-SVN: r32173
2000-02-12crtstuff.c (__do_global_ctors_aux, [...]): Add prototype argument.Kaveh R. Ghazi1-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
2000-02-01tsystem.h: New file.Kaveh R. Ghazi1-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
1999-12-29crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h.Kaveh R. Ghazi1-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
1999-12-19crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize in a main ↵Mark Mitchell1-1/+3
program. * crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize in a main program. From-SVN: r31023
1999-12-17crtstuff.c (__dso_handle): Declare.Mark Mitchell1-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
1999-09-20crtstuff.c (ON_EXIT): Delete empty macro definition.Kaveh R. Ghazi1-5/+2
* crtstuff.c (ON_EXIT): Delete empty macro definition. (__do_global_ctors_aux): Call atexit(), not ON_EXIT(). From-SVN: r29527
1999-09-09defaults.h (EH_FRAME_SECTION, [...]): Define here.Jason Merrill1-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
1999-03-22crtstuff.c: Use ANSI function definitions.Jeffrey A Law1-14/+16
* crtstuff.c: Use ANSI function definitions. Fix minor whitespace problems. From-SVN: r25914
1999-02-27frame.h: Update some comments.H.J. Lu1-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
1998-09-19configure.in: Disable collect2 for nextstep.Melissa O'Neill1-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
1998-06-08Warning fixes:Kaveh R. Ghazi1-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
1998-05-13Warning fixes:Kaveh R. Ghazi1-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
1998-04-04* Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12Jeff Law1-3/+6
for details. * haifa-sched.c: Mirror recent changes from gcc2. From-SVN: r18984
1998-01-23crtstuff.c (init_dummy): Keep the epilogue in the init section for non-ELF ↵Jeffrey A Law1-1/+0
systems. * crtstuff.c (init_dummy): Keep the epilogue in the init section for non-ELF systems. From-SVN: r17464
1998-01-14Bring in final gcc-2.8.0 changes.Jeff Law1-0/+4
From-SVN: r17355
1998-01-02crtstuff.c (__frame_dummy): New function for irix6.Jim Wilson1-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
1997-12-15Bring over changes from latest gcc-2.8 pre-release.Jeff Law1-7/+7
Mirror sched.c change into haifa-sched.c From-SVN: r17097
1997-12-10Fixed typo.Anthony Green1-1/+1
From-SVN: r17036
1997-12-07Updates from gcc-2.8 test tarball to current gcc-2.8 tarball.Jeff Law1-1/+2
From-SVN: r17002
1997-12-06Merge from gcc-2.8Jeff Law1-3/+6
From-SVN: r16987
1997-11-25* crtstuff.c (do_global_dtors_aux): Handle multiple calls better.Jeffrey A Law1-0/+7
From-SVN: r16698
1997-09-10dwarf2 EH supportJason Merrill1-2/+64
From-SVN: r15255
1996-10-31Put HAS_INIT_SECTION ifdefs around Irix6 support.Jim Wilson1-0/+4
From-SVN: r13086
1996-10-24crtstuff.c (__do_global_dtors_aux): Allow finalization code to be run more ↵Mike Stump1-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
1996-10-16irix6 ctorsJason Merrill1-0/+29
From-SVN: r12971
1996-07-03formatting tweaksMike Stump1-3/+6
From-SVN: r12390
1996-06-28(init_dummy): Only i386-linux (at most) needs ___brk_addr hack.Richard Kenner1-8/+6
From-SVN: r12357
1995-06-15Update FSF address.Richard Kenner1-1/+2
From-SVN: r9959
1995-05-19Added reference to INIT_SECTION_PREAMBLE for systems that do somethingRichard Kenner1-1/+11
which must be undone prior to __do_global_ctors. From-SVN: r9749
1995-05-16Fix typos in comments.Richard Kenner1-1/+1
From-SVN: r9712
1994-12-08(CRT_END): Add dummy refs to ___brk_addr, __environ and atexit ifRichard Kenner1-1/+16
__linux__ and __PIC__ defined. From-SVN: r8626
1994-11-19Shared library support.Jason Merrill1-26/+137
From-SVN: r8519
1994-03-23Change rfg's address.Richard Kenner1-1/+1
From-SVN: r6852
1993-02-05(__do_global_ctors_aux): Use FORCE_INIT_SECTION_ALIGNJim Wilson1-0/+3
to avoid Solaris 2, x86 linker bug. From-SVN: r3429
1992-06-04entered into RCSCharles Hannum1-2/+4
From-SVN: r1158
1992-05-24*** empty log message ***Richard Stallman1-1/+11
From-SVN: r1069
1992-05-13*** empty log message ***Richard Stallman1-1/+1
From-SVN: r970
1992-03-20*** empty log message ***Tom Wood1-0/+1
From-SVN: r535
1992-03-19*** empty log message ***Tom Wood1-4/+25
From-SVN: r526
1992-03-19*** empty log message ***Richard Stallman1-2/+2
From-SVN: r519
1992-03-16*** empty log message ***Richard Stallman1-0/+10
From-SVN: r498
1992-03-07Initial revisionRichard Stallman1-0/+140
From-SVN: r407