Commit Graph

333 Commits

Author SHA1 Message Date
Kaveh R. Ghazi
79c9824ecb Warning fixes:
* Makefile.in (flow.o): Depend on recog.h.
        * cpplib.h (directive_table): Add missing initializiers.
        (finclude): Change type of variable `bsize' to size_t.
        * cse.c (rtx_cost): Mark parameter `outer_code' with ATTRIBUTE_UNUSED.
        * dwarfout.h (dwarfout_label): Wrap prototype in macro RTX_CODE.
        * fix-header.c (lookup_std_proto): Cast the result of `strlen' to
        `int' when comparing against one.
        (cpp_file_line_for_message): Mark parameter `pfile' with
        ATTRIBUTE_UNUSED.
        (cpp_fatal): Mark parameter `pfile' with ATTRIBUTE_UNUSED.
        * flow.c: Include recog.h.
        (sbitmap_copy): Cast arguments 1 & 2 of `bcopy' to (PTR).
        * function.c (thread_prologue_and_epilogue_insns): Mark parameter
        `f' with ATTRIBUTE_UNUSED.
        (reposition_prologue_and_epilogue_notes): Likewise.
        * genopinit.c (gen_insn): Cast argument of ctype functions to
        `unsigned char'.
        * haifa-sched.c: Include recog.h.
        (blockage_range): Cast result of UNIT_BLOCKED macro to (int) when
        comparing against one.
        * libgcc2.a (__throw): Revert ATTRIBUTE_UNUSED change for now.
        * mips-tfile.c (parse_end): Cast the argument of ctype function to
        `unsigned char'.
        (parse_ent): Likewise.
        (parse_input): Likewise.
        * optabs.c (init_libfuncs): Likewise.
        * protoize.c (find_rightmost_formals_list): Likewise.
        * recog.h (const_double_operand): Fix typo in prototype.
        * tlink.c (scan_linker_output): Cast the argument of ctype
        function to `unsigned char'.
        * toplev.c (check_lang_option): Cast the result of `strlen' to
        `int' when comparing against one.

From-SVN: r23155
1998-10-17 20:26:29 +00:00
Kaveh R. Ghazi
bf94d1ecc7 Add ATTRIBUTE_NORETURN in a bunch of places:
* cppalloc.c (memory_full): Mark function prototype with
	ATTRIBUTE_NORETURN.
	* demangle.h (collect_exit): Likewise.
	* fix-header.c (v_fatal, fatal): Likewise.
	* gcc.c (pfatal_with_name, pfatal_pexecute, fatal, fancy_abort):
	Likewise.
	* gcov.c (print_usage): Likewise.
	* genattr.c (fatal, fancy_abort): Likewise.
	* genattrtab.c (fatal, fancy_abort): Likewise.
	* gencodes.c (fatal, fancy_abort): Likewise.
	* genconfig.c (fatal, fancy_abort): Likewise.
	* genemit.c (fatal, fancy_abort): Likewise.
	* genextract.c (fatal, fancy_abort): Likewise.
	* genflags.c (fatal, fancy_abort): Likewise.
	* genopinit.c (fatal, fancy_abort): Likewise.
	* genoutput.c (fatal, fancy_abort): Likewise.
	* genpeep.c (fatal, fancy_abort): Likewise.
	* genrecog.c (fatal, fancy_abort): Likewise.
	* libgcc2.c (__eprintf, __default_terminate, __sjthrow,
	__sjpopnthrow, __throw): Likewise.
	* objc/objc-act.c (objc_fatal): Likewise.
	* protoize.c (usage, aux_info_corrupted,
	declare_source_confusing): Likewise.
	* rtl.c (dump_and_abort): Likewise.
	* rtl.h (sets_cc0_p): Likewise.
	* toplev.c (float_signal, pipe_closed): Likewise.

From-SVN: r23084
1998-10-14 10:37:09 +00:00
Andrew MacLeod
43566944af expr.h (eh_rtime_match_libfunc): New extern declaration.
Mon Sep 21 17:15:26 EDT 1998  Andrew MacLeod  <amacleod@cygnus.com>
	* expr.h (eh_rtime_match_libfunc): New extern declaration.
	* optabs.c (init_optabs): Set eh_rtime_match_libfunc.
	* except.c (start_catch_handler): Use eh_rtime_match_libfunc.
	* libgcc2.c (__eh_rtime_match): Always return 0 if the matcher is
	NULL. Only include <stdio.h> if inhibit_libc is not defined.

From-SVN: r22532
1998-09-21 14:23:16 +00:00
Andrew MacLeod
7ac2148be5 [multiple changes]
Thu Sep 17 16:42:16 EDT 1998  Andrew MacLeod  <amacleod@cygnus.com>
        * except.c (start_catch_handler): Issue 'fatal' instead of 'error' and
        re-align some code.
        * libgcc2.c (__eh_rtime_match): fprintf a runtime error. Use <stdio.h>.
1998-09-17  Andrew MacLeod  <amacleod@cygnus.com>
        * exception.cc (__cplus_type_matcher): realign some code.

From-SVN: r22462
1998-09-17 13:55:51 +00:00
Richard Henderson
710384268d tree.h (BUILT_IN_CALLER_RETURN_ADDRESS): Unused.
* tree.h (BUILT_IN_CALLER_RETURN_ADDRESS): Unused.  Kill.
	(BUILT_IN_FP, BUILT_IN_SP, BUILT_IN_SET_RETURN_ADDR_REG): Kill.
	(BUILT_IN_EH_STUB_OLD, BUILT_IN_EH_STUB, BUILT_IN_SET_EH_REGS): Kill.
	(BUILT_IN_EH_RETURN, BUILT_IN_DWARF_CFA): New.
	* c-decl.c (init_decl_processing): Update accordingly.
	* expr.c (expand_builtin): Likewise.
	* cp/decl.c (init_decl_processing): Likewise.
	* rtl.h (global_rtl): Add cfa entry.
	(virtual_cfa_rtx, VIRTUAL_CFA_REGNUM): New.
	(LAST_VIRTUAL_REGISTER): Update.
	* emit-rtl.c (global_rtl): Add cfa entry.
	(init_emit): Initialize it.
	* function.c (cfa_offset): New.
	(instantiate_virtual_regs): Initialize it.
	(instantiate_virtual_regs_1): Instantiate virtual_cfa_rtx.
	(expand_function_end): Call expand_eh_return.
	* tm.texi (ARG_POINTER_CFA_OFFSET): New.
	* except.c (current_function_eh_stub_label): Kill.
	(current_function_eh_old_stub_label): Likwise; update all references.
	(expand_builtin_set_return_addr_reg): Kill.
	(expand_builtin_eh_stub_old, expand_builtin_eh_stub): Kill.
	(expand_builtin_set_eh_regs): Kill.
	(eh_regs): Produce a third reg for the actual handler address.
	(eh_return_context, eh_return_stack_adjust): New.
	(eh_return_handler, eh_return_stub_label): New.
	(init_eh_for_function): Initialize them.
	(expand_builtin_eh_return, expand_eh_return): New.
	* except.h: Update prototypes.
	* flow.c (find_basic_blocks_1): Update references to the stub label.
	* function.h (struct function): Kill stub label elements.
	* libgcc2.c (in_reg_window): For REG_SAVED_REG, check that the
	register number is one that would be in the previous window.
	Provide a dummy definition for non-windowed targets.
	(get_reg_addr): New function.
	(get_reg, put_reg, copy_reg): Use it.
	(__throw): Rely on in_reg_window, not INCOMING_REGNO.  Kill stub
	generating code and use __builtin_eh_return.  Use __builtin_dwarf_cfa.
	* alpha.c (alpha_eh_epilogue_sp_ofs): New.
	(alpha_init_expanders): Initialize it.
	(alpha_expand_epilogue): Use it.
	* alpha.h: Declare it.
	* alpha.md (eh_epilogue): New.
	* m68h.h (ARG_POINTER_CFA_OFFSET): New.
	* sparc.h (ARG_POINTER_CFA_OFFSET): New.

From-SVN: r22436
1998-09-15 12:19:12 -07:00
Andrew MacLeod
bf71cd2eaa [multiple changes]
Tue Sep 15 14:10:54 EDT 1998  Andrew MacLeod  <amacleod@cygnus.com>
        * except.h (struct eh_entry): Add false_label field.
        (end_catch_handler): Add prototype.
        * except.c (push_eh_entry): Set false_label field to NULL_RTX.
        (start_catch_handler): When using old style exceptions, issue
        runtime typematch code before continuing with the handler.
        (end_catch_handler): New function, generates label after handler
        if needed by older style exceptions.
        (expand_start_all_catch): No need to check for new style exceptions.
        (output_exception_table_entry): Only output the first handler label
        for old style exceptions.
        * libgcc2.c (__eh_rtime_match): New routine to lump runtime matching
        mechanism into one function, if a runtime matcher is provided.
1998-09-15  Andrew MacLeod  <amacleod@cygnus.com>
        * cp/except.c (expand_start_catch_block): No need to check for new
        exception model.
        (process_start_catch_block_old): Deleted.
        (process_start_catch_block): Add call to start_decl_1().
        (expand_end_catch_block): Add call to end_catch_handler().
        * cp/exception.cc (__cplus_type_matcher): Only check the exception
        language if there is an exception table.

From-SVN: r22425
1998-09-15 11:20:52 +00:00
Manfred Hollstein
bceb30e77b libgcc2.c (L_exit): Provide a fake for atexit on systems which define ON_EXIT but not HAVE_ATEXIT.
* libgcc2.c (L_exit): Provide a fake for atexit on systems which
        define ON_EXIT but not HAVE_ATEXIT.

From-SVN: r20982
1998-07-06 17:52:21 -06:00
Dave Love
10c301ac33 libgcc2.c (__eprintf): Make args consistent with prototype in assert.h.
* libgcc2.c (__eprintf): Make args consistent with prototype in
        assert.h.

From-SVN: r20943
1998-07-06 02:24:31 -07:00
Andrew MacLeod
48b24bcdfa libgcc2.c (__get_eh_table_version, [...]): New functions to return exception descriptor information.
Tue Jun 23 13:38:18 EDT 1998  Andrew MacLeod  <amacleod@cygnus.com>
	* libgcc2.c (__get_eh_table_version, __get_eh_table_language): New
	functions to return exception descriptor information.
	(find_exception_handler): Pass match_info field to runtime matcher,
	not a descriptor table entry.
	* exception.cc (__cplus_type_matcher): Get a match_info pointer
	instead of an exception table entry as a parameter.

From-SVN: r20673
1998-06-23 10:51:47 +00:00
Andrew MacLeod
5816cb14dd Have -fnew-exceptions actually use the runtime field, and not generate runtime checking code inside each handler.
Have -fnew-exceptions actually use the runtime field, and not generate
runtime checking code inside each handler.
THis works at low opt, but not with optimization at the moment.
Tue Jun 23 10:06:07 EDT 1998  Andrew MacLeod  (amacleod@cygnus.com)
	* eh-common.h (struct __eh_info): Remove coerced value field.
	* libgcc2.c (find_exception_handler): Don't set coerced_value field.
	* except.c (get_dynamic_handler_chain, get_dynamic_cleanup_chain): Use
	POINTER_SIZE instead of Pmode.
	(expand_start_all_catch): Call start_catch_handler() if we are not
	using new style exceptions.
1998-06-22  Andrew MacLeod  (amacleod@cygnus.com)
	* parse.y (function_try_block): Don't call start_catch_handler.
	* except.c (call_eh_info): Remove coerced field from declaration.
	(build_eh_type_type_ref): New function to create an address of a
	rtti function for the new style exception tables.
	(expand_start_catch_block): Split function, this contains the
	common part.
	(process_start_catch_block_old): New function to perform the rest
	of expand_start_catch_block under old style exceptions.
	(process_start_catch_block_old): New function to perform the rest
	of expand_start_catch_block under new style exceptions.
	(expand_end_catch_block): Only pop the false label off the stack under
	the old style of exceptions.
	* semantics.c (finish_try_block): Don't call start_catch_handler.
	* exception.cc (struct cp_eh_info): Add original_value field.
	(__cplus_type_matcher): Perform type matching on the original exception
	value, and if we have a match, set the current value.
	(__cp_push_exception): Set the original expcetion value.

From-SVN: r20671
1998-06-23 07:10:29 +00:00
Andrew MacLeod
d7e7852964 except.c (add_new_handler): fix bug in finding last region handler.
Wed Jun 17 16:25:38 EDT 1998  Andrew MacLeod  (amacleod@cygnus.com)
      * except.c (add_new_handler): fix bug in finding last region handler.
      * libgcc2.c (find_exception_handler): Pass exception table pointer
      to runtime type matcher, not the match info field.

From-SVN: r20541
1998-06-17 13:29:22 +00:00
Kaveh R. Ghazi
50b2596f67 Warning fixes:
* 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-06-08 18:30:27 +00:00
Andrew MacLeod
a1622f838f [multiple changes]
Thu Jun  8 14:16:15 EDT 1998  Andrew MacLeod  <amacleod@cygnus.com>
	* eh-common.h: Remove NEW_EH_MODEL compile time flag, and replace with
	flag_new_exceptions runtime flag.
	(struct old_exception_table): New struct which represents what
	the exception table looks like without the new model.
	(NEW_EH_RUNTIME): New value used as a tag in the exception table to
	flag that this is a new style table.
	* except.h: Remove compile time flag NEW_EH_MODEL.
	(expand_builtin_eh_stub_old): New prototype.
	* tree.h (enum built_in_function): Add BUILT_IN_EH_STUB_OLD.
	* expr.c (expand_builtin): New builtin func BUILT_IN_EH_STUB_OLD.
	* c-decl.c (init_decl_processing): Add new builtin function
	__builtin_eh_stub_old.
	* final.c (final_scan_insn): Replace compile time flag NEW_EH_MODEL.
	* flags.h (flag_new_exceptions): New runtime flag.
	* toplev.c (flag_new_exceptions): Initialize default to 0,
	-fnew-exceptions sets to 1.
	* except.c (output_exception_table_entry): Output New style exception
	identifier into table, and replace compile time flag NEW_EH_MODEL
	with runtime flag flag_new_exceptions.
	(output_exception_table): Replace compile time flag NEW_EH_MODEL.
	(expand_builtin_eh_stub_old): Duplicates original functionality of
	expand_builtin_eh_stub.
	(expand_builtin_eh_stub): Replace compile time flag NEW_EH_MODEL.
	* libgcc2.c (find_exception_handler): Remove NEW_EH_MODEL #ifdefs.
	(old_find_exception_handler): New func, same as find_exception_handler
	except it works on the old style exception table.
	(__throw): Replace NEW_EH_MODEL. Detect new model based on presence
	of identifier in the exception table, and call appropriate routines.
1998-06-08  Andrew MacLeod  <amacleod@cygnus.com>
	* except.c (init_exception_processing): Remove NEW_EH_MODEL compile
	time flag.  Call __cp_eh_info instead of __cp_exception_info.
	* exception.cc (struct cp_eh_info): Remove NEW_EH_MODEL flag.
	(__cp_exception_info): Return offset into cp_eh_info structure to
	match what use to be the start of this structure.
	(__cp_eh_info): New function to return a pointer to cp_eh_info struct.
	(__cplus_type_matcher, __cp_push_exception): Remove NEW_EH_MODEL
	compile time flag.
	(__uncatch_exception, __check_eh_spec, std::uncaught_exception): Call
	__cp_eh_info instead of __cp_exception_info.

From-SVN: r20336
1998-06-08 12:43:28 +00:00
Andrew MacLeod
9a0d1e1b11 First cut of changes to utilize the new exception handling model
From-SVN: r19746
1998-05-14 13:39:15 +00:00
Kaveh R. Ghazi
d6f4ec5199 Warning fixes:
* 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-05-13 12:40:39 +00:00
Jeff Law
f5963e6170 * Check in merge from gcc2. See ChangeLog.12 for details.
From-SVN: r19553
1998-05-05 17:18:02 -06:00
Jim Wilson
f1f53f0b75 Partial fix for problem reported by Don Bowman.
* frame.c, libgcc2.c (stdlib.h, unistd.h): Don't include when
	inhibit_libc is defined.

From-SVN: r19390
1998-04-23 12:57:57 -07:00
Jeff Law
c57b6780fe libgcc2.c (__floatdisf): Fix a couple typos.
8
        * libgcc2.c (__floatdisf): Fix a couple typos.

From-SVN: r19275
1998-04-17 15:39:12 -06:00
Kaveh R. Ghazi
2467749d6d Zap some warnings in target files:
* frame.c: Include stdlib.h and unistd.h to possibly get various
        function prototypes.  The fixproto script guarantees these header
        files exist on the target system.
        * libgcc2.c: Likewise.
        * gthr-single.h (__gthread_mutex_lock, __gthread_mutex_trylock,
        __gthread_mutex_unlock): Add __attribute__ ((__unused__)) to the
        function parameters.
        * libgcc2.c (__udiv_w_sdiv): Likewise.

From-SVN: r19261
1998-04-17 08:26:33 +00:00
Jeff Law
e5e809f419 * Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
for details.

        * haifa-sched.c: Mirror recent changes from gcc2.

From-SVN: r18984
1998-04-04 06:32:39 -07:00
Stan Cox
216be67c6f (__main, __do_global_dtors, __do_global_ctors): For __CYGWIN32__ use the versions in winsup/dcrt0.cc.
From-SVN: r18913
1998-03-30 14:33:55 +00:00
Philippe De Muyter
09b4ce121b * libgcc2.c (exit): Do not call __bb_exit_func if HAVE_ATEXIT.
From-SVN: r18717
1998-03-19 13:24:35 -07: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
Teemu Torma
754d1a92e6 Patch from Teemu Torma to fix Solaris 2.6 EH failures.
* gthr.h: Changed the comment about return values.
	* gthr-solaris.h (__gthread_once): Do not use errno; return the
	error number instead of -1.
	(__gthread_key_create): Any non-zero return value is an error.
	* libgcc2.c (eh_context_initialize): Check for non-zero return
	value from __gthread_once.
	Check that the value of get_eh_context was really changed.

From-SVN: r18480
1998-03-11 04:07:25 -08:00
Kaveh R. Ghazi
5172371191 Fix warious warnings:
* c-aux-info.c: Include string.h/strings.h.
	* pa.c: Include stdlib.h.
	(pa_combine_instructions): Prototype the function.
	(pa_can_combine_p, forward_branch_p, shadd_constant_p): Likewise.
	(reloc_needed): Add default case for enumeration switch.
	(remove_useless_addtr_insns): Remove unused variable `all'.
	(hppa_expand_prologue): Add explicit braces to avoid
	ambiguous `else'.
	(output_function_epilogue): Remove unused variable `i'.
	(output_millicode_call): Remove unused variable `link'.
	(shadd_constant_p, forward_branch_p): Make the function static.
	(following_call): Explicitly declare to return int.
	(pa_reorg): Declare as void.
	(pa_combine_instructions): Declare as static void.  Add
	parentheses around && within ||.
	* pa.h: Add prototypes for pa_reorg, symbolic_operand,
	following_call, function_label_operand, lhs_lshift_cint_operand
	and zdepi_cint_p.
	* pa.md: Add parentheses around && within ||.
	* cppalloc.c: Include stdlib.h.
	* cpperror.c (cpp_print_containing_files): Remove unused variable
	`i'.  Fix format specifier in fprintf.
	* cse.c (cse_around_loop): Add explicit braces to avoid
	ambiguous `else'.
	(delete_dead_from_cse): Wrap variable `tem' in macro HAVE_cc0.
	* expr.c (expand_expr): Add parentheses around && within ||.
	* final.c (app_enable): Replace fprintf with fputs where there are
	no format specifiers and no trailing argument after the string.
	Eg, when printing ASM_APP_ON/ASM_APP_OFF.
	(app_disable): Likewise.
	(final_end_function): Likewise.
	(final_scan_insn): Likewise.  Remove unused variable `set'.
	(profile_function): Wrap empty if-statement body in {} brackets.
	* function.c: Include stdlib.h.
	(pad_below): Wrap prototype and definition in ARGS_GROW_DOWNWARD.
	(reposition_prologue_and_epilogue_notes): Add parentheses
	around assignment used as truth value.
	* integrate.c (expand_inline_function): Wrap variable
	`cc0_insn' in macro HAVE_cc0.
	* jump.c (jump_optimize): Wrap variable `q' in macro
	HAVE_cc0.  Remove unused variable `prev1'.
	* libgcc2.c (__bb_exit_trace_func): Add parentheses around &&
	within ||.  Fix format specifier in fprintf.
	(__bb_init_prg): Add parentheses around assignment used as
	truth value.
	* local-alloc.c: Include stdlib.h.
	(requires_inout): Add parentheses around assignment used
	as truth value.
	* loop.c (analyze_loop_iterations): Wrap prototype and definition
	in macro HAVE_decrement_and_branch_on_count.
	(insert_bct, instrument_loop_bct): Likewise.
	(move_movables): Add parentheses around assignment used as
	truth value.
	(consec_sets_invariant_p): Likewise.
	(maybe_eliminate_biv_1): Wrap variable `new' in macro HAVE_cc0.
	* objc/objc-act.c: Include stdlib.h.
	(lookup_method_in_protocol_list): Wrap empty else-statement body
	in braces.
	(lookup_protocol_in_reflist): Likewise.
	(objc_add_static_instance): Remove unused variables `decl_expr'
	and `decl_spec'.
	(get_objc_string_decl): Remove unused variable `decl'.
	(generate_static_references): Remove unused variables `idecl' and
	`instance'.
	(check_protocols): Wrap empty else-statement body in braces.
	* protoize.c: Include stdlib.h.
	(substr): Add parentheses around assignment used as truth value.
	(abspath): Likewise.
	(shortpath): Likewise.
	* regmove.c (fixup_match_1): Add parentheses around assignment
	used as truth value.
	* reload.c (push_secondary_reload): Remove unused variable `i'.
	(find_reloads): Add parentheses around assignment used as truth
	value.
	* reload1.c: Include stdlib.h.
	* rtl.h: Correct typo in prototype of offsettable_memref_p.
	* stmt.c (add_case_node): Add parentheses around assignment used
	as truth value.
	(case_tree2list): Likewise.
	* tree.c (valid_machine_attribute): Wrap variable `decl_attr_list'
	in macro VALID_MACHINE_DECL_ATTRIBUTE.  Wrap variable
	`type_attr_list' in macro VALID_MACHINE_TYPE_ATTRIBUTE.
	(merge_attributes): Add explicit braces to avoid ambiguous
	`else'.
	* unroll.c (copy_loop_body): Wrap variable `cc0_insn' in
	macro HAVE_cc0.
	* varasm.c: Include stdlib.h.

From-SVN: r18290
1998-02-28 07:06:53 +00:00
Robert Lipe
2e6a59892b Rats. Forgot to change copyrights on the first commit.
From-SVN: r17902
1998-02-13 05:40:34 +00:00
Robert Lipe
69d4ca36f4 c-lang.c (finish_file): Bracket declaration of static_ctors, static_dtors.
* c-lang.c (finish_file): Bracket declaration of static_ctors,
	static_dtors.
	* calls.c (expand_call): Bracket declaration of 'rtx_before_call',
	'old_stack_arg_under_construction'
	(emit_library_call): Bracket declaration of 'upper_bound',
	'lower_bound', 'i', 'reg_parm_stack_space'
	(emit_library_call_value): Likewise.
	(store_one_arg):
	* collect2.c: include <unistd.h> when appropriate.
	Bracket declaration of 'exportf' and 'full_real_ld_suffix'.
	* emit-rtl.c (prev_cc0_setter): Remove unused variable 'link'.
	* explow.c (plus_constant_for_output_wide): Remove unused variable
	'code'.
	(memory_address): Remove unused variable 'orig_x'.
	* genattrtab.c (make_canonical): Remove unreferenced label 'cond:'.
	(write_const_num_delay_slots): Remove unused variable 'i'.
	* genopinit.c (main): Remove unused variables 'dummy', 'insn_ptr'.
	(gen_insn): Remove unused variable 'obstack_ptr'.
        * libgcc2.c (__bb_exit_func): Remove unused variables 'ret',
        'j', 'tmp', 'i'.
	(__bb_exit_trace_func): Remove unused variable 'e'.
	* optabs.c (expand_binop): remove unused variables 'lhs', 'rhs',
	'funexp'.
	(expand_unop): Remove unused variable 'funexp'.
	(expand_complex_abs): Remove unused variable 'funexp'.
	(init_optabs): Bracket declaration of 'j'.
	(init_complex_libfuncs): Deleted.  Dead static function.
	* profile.c (branch_prob): Remove unused variables 'insn', 'dest'.
	* reg-stack.c: Fix typo in proto for 'get_asm_operand_lengths'
	(reg_to_stack): 'initialized', 'before_function_beg'
	explictly type as ints instead of defaulting.
	(emit_swap_insn): Remove unused variable 'i2'.
	(compare_for_stack_reg): Remove unused variable 'src_note'.
	* rtlanal.c (computed_jump_p): Remove unused variable 'computed_jump'.
	* sched.c (actual_hazard): Bracket declaration of 'this_cost'.
	* stmt.c (add_case_node): Add parens for assignment used as truth.
	(all_cases_count):  Remove unused variable 'count_high'.
	(mark_seen_cases): Remove unused variable 'i'.
	(check_for_full_enumeration_handling): Remove unused variable 't'.
	Bracket declaration of  'all_values', 'l'.
	* tlink.c: Include <stdlib.h>, <unistd.h>, <string.h>/<strings.h>.
	* varasm.c (assemble_string): Remove unused variable 'i'.
	(immed_double_const): Remove unused variable 'in_current_obstack'.
	(immed_real_const_1): Likewise.
	(output_constant_pool): Remove unreferenced label 'done'.
	(output_constant): Remove unused variable 'x'.
        * i386/i386.h (ENCODE_SECTION_INFO): TREE_PUBLIC is an int, not
        a string.
        * i386/sco5.h (ASM_OUTPUT_ASCII): Add parens for assignment used
        as truth.

From-SVN: r17901
1998-02-13 05:30:56 +00:00
Manfred Hollstein
3698f44e0e libgcc2.c (__clear_insn_cache): On sysV68 enable the memctl stuff only if MCT_TEXT is #define'd.
* libgcc2.c (__clear_insn_cache): On sysV68 enable the memctl
        stuff only if MCT_TEXT is #define'd.

From-SVN: r17496
1998-01-26 15:54:52 -07:00
Jeff Law
c85f7c16ad Bring in final gcc-2.8.0 changes.
From-SVN: r17355
1998-01-14 13:57:58 -07:00
Michael Meissner
eff0f7ace5 Do not define inhibit_libc if it was already defined
From-SVN: r17258
1997-12-29 12:59:45 +00:00
Teemu Torma
f24af81bca Makefile.in (GTHREAD_FLAGS): New var.
* Makefile.in (GTHREAD_FLAGS): New var.
	(LIBGCC2_CFLAGS): Added $(GTHREAD_FLAGS).
	(distclean): Remove gthr-default.h.
	* configure.in: Accept dce as a thread package.
	Check for thread.h and pthread.h.
	Link gthr-default.h to appropriate thread file and set
	gthread_flags.
	(hppa1.1-*-hpux10*): If --enable-threads, use dce threads and
	include multilib definitions from pa/t-dce-thr.
	(sparc-*-solaris2*): Enable threads by default, if thread.h or
	pthread.h is found, preferring posix threads over solaris ones.
	* config/pa/t-dce-thr: New file.
	* config/pa/t-pa: Removed multilibs.
	* config/sparc/t-sol2: Ditto.
	* gthr.h: New file.
	* gthr-single.h: New file.
	* gthr-posix.h: New file.
	* gthr-solaris.h: New file.
	* gthr-dce.h: New file.
	* libgcc-thr.h: Removed.
	* objc/thr-dce.c: New file copied from thr-decosf1.c.
	* frame.c: Include gthr.h instead of libgcc-thr.h.
	* libgcc2.c: Include gthr.h instead of libgcc-thr.h.
	(eh_context_initialize): If __gthread_once fails, use static eh
	context.
	(eh_context_free): Call __gthread_key_dtor.

From-SVN: r17235
1997-12-24 16:56:08 -07:00
Jeff Law
6003a6bf75 *** empty log message ***
From-SVN: r17156
1997-12-19 09:44:46 -07:00
Jason Merrill
0776059ee0 except.c (use_eh_context): Don't copy_rtx a REG.
* except.c (use_eh_context): Don't copy_rtx a REG.
	(emit_throw): Lose old unwinder support.
	(expand_internal_throw): Likewise.
	* libgcc2.c (struct eh_context): Likewise.
	(new_eh_context): Likewise.
	(__get_eh_info): Lose redundant cast.
	(__get_dynamic_handler_chain): Likewise.
	(__get_saved_pc): Lose.
	Lose all old unwinder support code.

	* decl2.c (finish_file): Lose call to expand_builtin_throw.
	* except.c (expand_builtin_throw): Remove.
	* cp-tree.h: Remove ptr_ptr_type_node.
	* decl.c: Likewise.

From-SVN: r17054
1997-12-12 00:15:30 -05:00
Teemu Torma
154bba13a4 [multiple changes]
Thu Dec 11 20:42:18 1997  Teemu Torma  <tot@trema.com>

	Thread-safe EH support for pthreads, DCE threads and Solaris threads.

	* integrate.c (expand_inline_function): If the inline fn uses eh
	context, make sure that the current fn has one.
	* toplev.c (rest_of_compilation): Call emit_eh_context.
	* except.c (use_eh_context): New fn.
	(get_eh_context_once): New fn.
	(call_get_eh_context): New fn.
	(emit_eh_context): New fn.
	(get_eh_context): Call either get_eh_context_once or
	call_get_eh_context, depending on what we have.
	(get_dynamic_handler_chain): Call get_eh_context_once.
	* except.h: Prototypes for fns above.
	* optabs.c (get_eh_context_libfunc): Removed.
	(init_optabs): Don't initialize it.
	* expr.h (get_eh_context_libfunc): Removed.
	* rtl.h, rtl.c: New reg_note REG_EH_CONTEXT.
	* config/pa/pa.h (CPP_SPEC): Support for -threads.
	* config/pa/pa-hpux10.h (LIB_SPEC): Ditto.
	* config/pa/t-pa (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
	New multilib for -threads.
	* config/sparc/t-sol2: Added multilibs for -threads and
	made -pthreads alias to it.
	* config/sparc/sol2.h (CPP_SPEC, LIB_SPEC):
	Added -threads and -pthreads options.
	* libgcc-thr.h: New file.
	* libgcc2.c: (__get_cpp_eh_context): Removed.
	(struct cpp_eh_context): Removed.
	(struct eh_context): Replaced cpp_eh_context with generic language
	specific pointer.
	(__get_eh_info): New function.
	(__throw): Check eh_context::info.
	(__sjthrow): Ditto.
	* libgcc2.c: Include libgcc-thr.h.
	(new_eh_context, __get_eh_context,
	eh_pthread_initialize, eh_context_initialize, eh_context_static,
	eh_context_specific, eh_context_free): New functions.
	(get_eh_context, eh_context_key): New variables.
	(__sjthrow, __sjpopnthrow, __eh_pcnthrow, __throw): Use
	get_eh_context to get the context.
	(longjmp): Move the declaration inside
	#ifdef DONT_USE_BUILTIN_SETJMP.
	* frame.c: Include libgcc-thr.h.
	(object_mutex): Mutex to protect the object list.
	(find_fde, __register_frame, __register_frame_table,
	__deregister_frame): Hold the lock while accessing objects.
	* except.h (get_eh_context): Declare.
	* except.c (current_function_ehc): Define.
	(current_function_dhc, current_function_dcc): Removed.
	(get_eh_context): New function.
	(get_dynamic_handler_chain): Use get_eh_context.
	(get_saved_pc_ref): Ditto.
	(get_dynamic_cleanup_chain): Removed references to
	current_function_dcc.
	(save_eh_status, restore_eh_status): Save and restore
	current_function_ehc instead.
	* optabs.c (get_eh_context_libfunc): New variable.
	(init_optabs): Initialize it.
	* expr.h: Declare get_eh_context_libfunc.
	* function.h (struct function): Replaced dhc and dcc with ehc.
	* except.c (get_saved_pc_ref): New functions.
	(eh_saved_pc_rtx, eh_saved_pc): Deleted.
	(expand_internal_throw_indirect): Use get_saved_pc_ref() instead
	of eh_saved_pc.
	(end_eh_unwinder): Likewise.
	(init_eh): Remove initialization of eh_saved_pc.
	* optabs.c (get_saved_pc_libfunc): New variable.
	(init_optabs): Initialize it.
	* expr.h: Declare get_saved_pc_libfunc.
	* except.h (eh_saved_pc_rtx): Deleted.
	(get_saved_pc_ref): Declared.

	From Scott Snyder <snyder@d0sgif.fnal.gov>:
	* libgcc2.c (__get_saved_pc): New.
	(__eh_type, __eh_pc): Deleted.
	(__eh_pcnthrow): Use __get_saved_pc() instead of __eh_pc.
	(__get_dynamic_handler_chain): Move __dynamic_handler_chain inside
	this fcn.

cp/:
Thu Dec 11 20:43:33 1997  Teemu Torma  <tot@trema.com>

	* decl.c (ptr_ptr_type_node): Define.
	(init_decl_processing): Initialize it.
	* cp-tree.h: Declare it.
	* exception.cc (__cp_exception_info): Use __get_eh_info.
	(__cp_push_exception): Ditto.
	(__cp_pop_exception): Ditto.

	From Scott Snyder <snyder@d0sgif.fnal.gov>:
        * except.c (expand_builtin_throw): Use get_saved_pc_ref instead of
	saved_pc.
	(init_exception_processing): Removed saved_pc initialization.

From-SVN: r17052
1997-12-11 23:53:20 -05:00
Jeff Law
b472527b0f Another handful of gcc-2.8 changes (will it ever go out the door?).
See ChangeLog.11 for details.

From-SVN: r17040
1997-12-11 09:26:05 -07:00
Jeffrey A Law
ac957f1381 * Partially cleaned up prototyping code from HJ.
* haifa-sched.c (haifa_classify_insn): Renamed from classify_insn.
        All references changed.
        * rtl.h: Protect from multiple inclusions.  Add many prototypes.

        * libgcc2.c (string.h): Hoist inclusion to occur before first use of
        string functions like strlen.
More pending patches.

From-SVN: r17024
1997-12-09 01:20:07 -07:00
Jeff Law
956d69504d Merge from gcc-2.8
From-SVN: r16987
1997-12-06 17:31:01 -07:00
Jason Merrill
e701eb4de0 ./: * libgcc2.c (__throw): Use __builtin_return_addr instead of __eh_pc.
* except.c: Lose outer_context_label_stack.
 	(expand_eh_region_end): Rethrow from outer_context here.
	(expand_fixup_region_end): Let expand_eh_region_end do the rethrow.
	(expand_internal_throw): Take no args.
	(expand_internal_throw_indirect): Lose.
	(expand_leftover_cleanups, expand_start_all_catch): Use expand_rethrow.
	(expand_start_all_catch): Start a rethrow region.
	(expand_end_all_catch): End it.
	(expand_rethrow): New fn.
	* except.h: Reflect above changes.

cp/:	* except.c (expand_end_catch_block): Lose rethrow region.
	(expand_start_catch_block): Likewise.
	(expand_end_catch_block): Don't expand_leftover_cleanups.

From-SVN: r16937
1997-12-04 04:41:38 -05:00
Jason Merrill
f47448072a integrate.c (output_inline_function): Just unset DECL_INLINE.
* integrate.c (output_inline_function): Just unset DECL_INLINE.

Tue Nov 25 23:33:29 1997  scott snyder  <snyder@d0sgif.fnal.gov>

	* dwarf2out.c (outout_call_frame_info): Ensure that the info has
	proper alignment.

	* libgcc2.c (__throw): Initialize HANDLER.

From-SVN: r16724
1997-11-26 02:38:08 -05:00
Jason Merrill
ced78d8b0c Makefile.in (LIB2FUNCS): Remove C++ memory management support.
./:	* Makefile.in (LIB2FUNCS): Remove C++ memory management support.
	* libgcc2.c: Remove __builtin_new, __builtin_vec_new, set_new_handler,
	__builtin_delete, and __builtin_vec_delete.

	* except.c (output_exception_table): Don't bother with
 	__EXCEPTION_END__.

cp/:
	* Make-lang.in (CXX_LIB2FUNCS): Add new op new and op delete objs.
	(various.o): Likewise.
	* inc/new: Add placement deletes.  Add throw specs for default new.
	* new.cc (set_new_handler): Move here from libgcc2.
	* new1.cc (new (nothrow)): Catch a bad_alloc thrown from the handler.
	(new): Move from libgcc2.  Throw bad_alloc.
	* new2.cc: Move the rest of the op news and op deletes from libgcc2.
	* decl.c (init_decl_processing): Update exception specs on new and
	delete.

From-SVN: r16617
1997-11-20 18:17:48 -05:00
Jason Merrill
6874c2647b [multiple changes]
Fri Oct 31 01:45:31 1997  Jason Merrill  <jason@yorick.cygnus.com>

	* libgcc2.c (L_eh): Define __eh_pc.
	Replace __eh_type with generic pointer __eh_info.

Fri Oct 31 01:47:57 1997  Jason Merrill  <jason@yorick.cygnus.com>

	Support for nested exceptions.
	* tinfo2.cc (__is_pointer): New fn.
	* exception.cc (struct cp_eh_info): Define.
	(__cp_exception_info, __uncatch_exception): New fns.
	(__cp_push_exception, __cp_pop_exception): New fns.
	* except.c: Lose saved_throw_{type,value,cleanup,in_catch}.
 	Lose empty_fndecl.
	(init_exception_processing): Likewise.  __eh_pc is now external.
	(push_eh_info): New fn.
	(get_eh_{info,value,type,caught}): New fns.
	(push_eh_cleanup): Just call __cp_pop_exception.
	(expand_start_catch_block): Use push_eh_info.  Start the eh region
	sooner.
	(expand_end_eh_spec): Use push_eh_info.
	(expand_throw): Call __cp_push_exception to set up the exception info.
	Just pass the destructor or 0 as the cleanup.  Call __uncatch_exception
	when we rethrow.
	(expand_builtin_throw): Don't refer to empty_fndecl.

From-SVN: r16248
1997-10-31 04:52:55 -05:00
Jason Merrill
d1485032c8 tree.c (restore_tree_status): Also free up temporary storage when we finish a toplevel function.
* tree.c (restore_tree_status): Also free up temporary storage
	when we finish a toplevel function.
	(dump_tree_statistics): Print stats for backend obstacks.

	* libgcc2.c (__throw): Don't copy the return address.
	* dwarf2out.c (expand_builtin_dwarf_reg_size): Ignore return address.

	* except.c (exceptions_via_longjmp): Initialize to 2 (uninitialized).
	* toplev.c (main): Initialize exceptions_via_longjmp.

	* tree.c: Add extra_inline_obstacks.
	(save_tree_status): Use it.
	(restore_tree_status): If this is a toplevel inline obstack and we
	didn't want to save anything on it, recycle it.
	(print_inline_obstack_statistics): New fn.
	* function.c (pop_function_context_from): Pass context to
	restore_tree_status.
	* obstack.h (obstack_empty_p): New macro.

From-SVN: r16050
1997-10-18 17:10:32 -04:00
Jason Merrill
f34471094c * libgcc2.c (__throw): Fix thinko.
From-SVN: r15781
1997-09-28 22:02:26 -04:00
Jason Merrill
2f3ca9e7f4 c-decl.c (init_decl_processing): Add __builtin_dwarf_reg_size.
* c-decl.c (init_decl_processing): Add __builtin_dwarf_reg_size.
	* tree.h (built_in_function): Likewise.
	* expr.c (expand_builtin): Likewise.
	* except.h: Likewise.
	* dwarf2out.c (expand_builtin_dwarf_reg_size): New fn.
	* libgcc2.c (copy_reg): New fn.
	(__throw): Use it.

From-SVN: r15750
1997-09-27 14:16:15 -04:00
Jason Merrill
6020d3605c final.c (final_scan_insn): Hand BARRIERs off to the dwarf2 code.
* final.c (final_scan_insn): Hand BARRIERs off to the dwarf2 code.
	* dwarf2out.c (dwarf2out_frame_debug): Pass the whole insn along.
	(dwarf2out_stack_adjust): A BARRIER resets the args space to 0.

	* except.c (end_eh_unwinder): Subtract 1 from return address.
	* libgcc2.c (__throw): Likewise.
	(find_exception_handler): Don't change PC here.  Compare end with >.

From-SVN: r15554
1997-09-18 19:33:56 -04:00
Jason Merrill
4f870c0425 libgcc2.c (find_exception_handler): Subtract one from our PC when looking for a handler...
* libgcc2.c (find_exception_handler): Subtract one from our PC when
 	looking for a handler, to avoid hitting the beginning of the next
 	region.

	* except.c (expand_builtin_set_return_addr_reg): Use force_operand.

From-SVN: r15534
1997-09-17 21:23:34 -04:00
Jason Merrill
c0727e2a06 * libgcc2.c (find_exception_handler): Not found is -1.
From-SVN: r15504
1997-09-16 21:55:49 -04:00
Jason Merrill
ca55abaee7 dwarf2 EH support
From-SVN: r15464
1997-09-15 22:07:50 -04:00
Jim Wilson
db87ec0b58 Clean up patches for delta88 nested function support.
* m88k/m88k.c (struct option): Rename to struct options.
	* m88k/dolph.h (INITIALIZE_TRAMPOLINE): Delete here.
	* m88k/sysv3.h (INITIALIZE_TRAMPOLINE): Delete ifdef and comments.
	* libgcc2.c (__enable_execute_stack): Check for __sysV88__ not
	__DOLPHIN__ or sysV88.

From-SVN: r15393
1997-09-10 16:34:58 -07:00
Manfred Hollstein
9dfc6eba89 * m88k/sysv3.h (INITIALIZE_TRAMPOLINE) Define.
* libgcc2.c (__enable_execute_stack): Provide for sysV88 too.

From-SVN: r15256
1997-09-10 12:02:16 -06:00
Richard Kenner
272e2587a2 (_trampoline): Rework last change; both getpagesize and mprotect are
in cygwin32.

From-SVN: r14636
1997-08-02 18:27:33 -04:00
Ian Lance Taylor
e3367a77fd Don't compile getpagesize if __CYGWIN32__
From-SVN: r14571
1997-07-31 23:39:26 +00:00
Richard Kenner
e4b151062f (_trampoline): Add stdcall attribute to VirtualProtect on i386.
From-SVN: r14371
1997-07-02 06:38:04 -04:00
Mike Stump
e1c8c76b5b * libgcc2.c (__eh_type): Remove `extern' to make this a definition.
From-SVN: r14260
1997-06-19 02:09:33 +00:00
Mike Stump
59ba1a3a60 libgcc2.c (__eh_pcnthrow): Add support -fno-sjlj-exceptions -fPIC exception handling on the SPARC.
* libgcc2.c (__eh_pcnthrow): Add support -fno-sjlj-exceptions
	-fPIC exception handling on the SPARC.
	* sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
	* libgcc2.c (__eh_ffetmnpc): Remove.

From-SVN: r14252
1997-06-18 01:57:18 +00:00
Mike Stump
28174a1465 libgcc2.c (__eh_ffetmnpc): Add support for machines that cannot access globals after throw's epilogue when...
* libgcc2.c (__eh_ffetmnpc): Add support for machines that cannot
	access globals after throw's epilogue when -fno-sjlj-exceptions is
	used.
	* rs6000.c (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
	* mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
	(INITIAL_ELIMINATION_OFFSET): Fix RETURN_ADDRESS_POINTER_REGNUM
	for 64 bit words, with 32 bit pointers and variable endianness.
Fixes throwing across shared library lines (useful at times on mips and rs6000)

From-SVN: r14168
1997-06-06 23:18:36 +00:00
Richard Kenner
a25cea96d7 (atexit): Cast malloc and realloc calls.
From-SVN: r14077
1997-05-18 07:26:38 -04:00
Mike Stump
6e6a07d299 except.c (start_dynamic_handler): Fix so that we can use __builtin_setjmp...
* except.c (start_dynamic_handler): Fix so that we can use
 	__builtin_setjmp, and default to using __builtin_setjmp instead of
 	setjmp.
	* expr.c (expand_builtin_setjmp): New routine, split out from
	existing inline code from expand_builtin.
	(expand_builtin): Split out code into expand_builtin_setjmp.
	* expr.h (expand_builtin_setjmp): Add declaration.
	* libgcc2.c (__sjthrow): Default to using __builtin_setjmp instead
 	of setjmp.
	(__sjpopnthrow): Likewise.
	* optabs.c (init_optabs): Likewise.

From-SVN: r14045
1997-05-07 22:50:11 +00:00
Mike Stump
db3cf6fb33 reformat a little to match GNU coding standards.
From-SVN: r14024
1997-05-06 23:05:54 +00:00
Mike Stump
e976b8b277 Add setjmp/longjmp exception handling.
From-SVN: r13968
1997-04-23 20:04:25 +00:00
Richard Kenner
920b13cc7e (L_bb, L_exit): Use 0 rather than NULL for null pointers.
From-SVN: r13883
1997-04-13 14:12:05 -04:00
Mike Stump
70e06f23df libgcc2.c (find_exception_table): Fix to logic to deal with functions that are in their own section...
* libgcc2.c (find_exception_table): Fix to logic to deal with
 	functions that are in their own section, such as template
 	instantiations, that cause overlapping EH tables.

From-SVN: r13830
1997-04-02 03:31:36 +00:00
Doug Evans
65f7a65344 * libgcc2.c (__bb_exit_func): Support gcov style output.
From-SVN: r13818
1997-03-28 22:38:07 +00:00
Richard Kenner
37ef10540d (__negdi2, __lshrdi3, __ashldi3, __ashrdi3, __ffsdi2):
Use ANSI style definition with full prototype.
(__muldi3, __udiv_w_sdiv, __udivmoddi4, __divdi3, __moddi3) : Likewise.
(__udivmoddi4, __udivdi3, __cmpdi2, __ucmpdi2) : Likewise.
(__fixunstfdi, __fixtfdi, __fixunsxfdi, __fixxfdi) : Likewise.
(__fixunsdfdi, __fixdfdi, __floatdixf, __floatditf) : Likewise.
(__floatdidf, __floatdisf, __fixunsxfsi, __fixunsdfsi) : Likewise.
(__gcc_bcmp, __eprintf, gopen, gclose, __bb_init_file) : Likewise.
(__bb_init_trace_func, __clear_cache, mprotect) : Likewise.
(__enable_execute_stack, cacheflush, exit) : Likewise.
(find_exception_table, __find_first_exception_table_match) : Likewise.

From-SVN: r13658
1997-02-16 07:55:15 -05:00
Mike Stump
8e702085e7 i formatting tweaks
From-SVN: r13614
1997-02-07 03:54:48 +00:00
Mike Stump
dd05a7e7c8 * libgcc2.c: Remove extern for malloc and realloc.
From-SVN: r13573
1997-01-31 23:37:05 +00:00
Richard Kenner
7d41c4114a (cacheflush): Add SONY NEWS-OS 4.2 version.
From-SVN: r13279
1996-12-11 09:09:06 -05:00
Jason Merrill
71c672c04d x
From-SVN: r13122
1996-11-11 21:21:09 +00:00
Mike Stump
b40b9d932c crtstuff.c (__do_global_dtors_aux): Allow finalization code to be run more 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-24 01:23:43 +00:00
Jason Merrill
fe1fd35341 irix6 ctors
From-SVN: r12971
1996-10-16 20:25:25 +00:00
Mike Stump
843e83356c libgcc2.c (__throw): New routine.
* libgcc2.c (__throw): New routine.
        (__eh_pc): New data object for exception handling.

        * except.c (eh_saved_pc): New object so we can call
        assemble_external.
        (expand_internal_throw_indirect): Call assemble_external for
        __eh_pc.
        (end_eh_unwinder): Ditto.
        (init_eh): Initialize eh_saved_pc.
fixes eh6.C on rs6000 and alpha

From-SVN: r12646
1996-08-16 00:52:06 +00:00
Mike Stump
6adb4e3a29 install EH code
From-SVN: r12549
1996-07-23 20:03:47 +00:00
Mike Stump
0f41302f47 formatting tweaks
From-SVN: r12390
1996-07-03 22:07:53 +00:00
Richard Kenner
2e06e616a7 (__dummy): New function.
From-SVN: r11574
1996-03-20 08:11:20 -05:00
Richard Kenner
8b7677befe (L_bb/atexit, onexit): Declarations replaced by #include'ing "gbl-ctors.h".
(L_exit/atexit): New function.
(L_exit/exit): Call any registered functions.

From-SVN: r11432
1996-03-04 18:46:29 -05:00
Michael Meissner
6b8149a1c8 Make libgcc2 build under AIX3.2.5
From-SVN: r11171
1996-02-03 01:22:40 +00:00
Richard Kenner
9bb89050a9 (_bb_init_prg): Cast arg to bzero to (char *).
From-SVN: r10889
1995-12-27 17:54:27 -05:00
Richard Kenner
90b4a76470 (struct bb): Add flags field.
(HAVE_POPEN): Test new define.
(struct __bb, struct bb_{edge,func}): New structs.
(__bb_init_{prg,file},__bb_{init,exit}_trace_func,__bb_trace_ret,
(__bb_trace_func{,_ret},gopen,gclose): New functions.

From-SVN: r10850
1995-12-24 17:42:24 -05:00
Mike Stump
8fa6b6c92c libgcc2.c (__empty): An empty function used by the C++ frontend for defaulting cleanup actions.
* libgcc2.c (__empty): An empty function used by the C++ frontend for
	defaulting cleanup actions.

	* tree.c (save_tree_status, restore_tree_status): Save and restore
	temporary_firstobj, so that in progress objects that live on the
	temporary obstack are not reallocated, if we save and restore the
	tree status in their lifetime.

From-SVN: r10799
1995-12-18 17:42:56 +00:00
Richard Kenner
f5ea9817c4 (trampoline): Add getpagesize and mprotect for WINNT.
From-SVN: r10605
1995-11-26 14:41:43 -05:00
Richard Kenner
b667f58fae (__{C,D}TOR_LIST): For AIX...
(__{C,D}TOR_LIST): For AIX, initialize these arrays to 0,0, just like
NeXT to avoid a warning message from the AIX 4.1 linker.

From-SVN: r10567
1995-11-07 10:53:03 -05:00
Richard Kenner
139eda626f (L_eh: __unwind_function): Implement for VAX.
From-SVN: r10539
1995-10-29 07:42:53 -05:00
Richard Kenner
c6e84dc484 (__unwind_function): Provide a default definition for implementations
that don't yet have a function unwinder.

From-SVN: r10524
1995-10-26 19:24:58 -04:00
Richard Kenner
c07e26bda2 (__fixuns[xds]fsi): #undef MIN and MAX before #include of limits.h.
From-SVN: r10506
1995-10-22 08:01:32 -04:00
Richard Kenner
ce13d15fbc (__udiv_w_sdiv): If we don't have sdiv_qrnnd, define dummy variant of
__udiv_w_sdiv.

From-SVN: r10476
1995-10-19 18:48:45 -04:00
Richard Kenner
536bfcd040 Include longlong.h.
[L_udivdi3 || L_divdi3 || L_umoddi3 || L_moddi3] (__udivmoddi4):
Define this `static inline' when defining these, so they all remain
leaf functions.

From-SVN: r10305
1995-08-31 19:26:53 -04:00
Richard Kenner
abc95ed36d Fix spelling errors.
From-SVN: r10289
1995-08-28 06:54:22 -04:00
Richard Kenner
a35311b035 Update FSF address.
From-SVN: r9961
1995-06-15 07:52:21 -04:00
Richard Kenner
cac896d8de (_floatdidf): Correctly set float sizes.
From-SVN: r9920
1995-06-10 09:04:45 -04:00
Richard Kenner
fd4cb6b020 (L_eh, i386): Remove in-line comments in assembly code--the '#'
character is not valid for the SYSV as.

From-SVN: r9817
1995-05-25 07:35:27 -04:00
Richard Kenner
9faa82d8c0 Fix typos in comments.
From-SVN: r9712
1995-05-16 08:39:54 -04:00
Jason Merrill
daefd78b4c Update weak symbol support
From-SVN: r9697
1995-05-16 01:02:59 +00:00
Jason Merrill
545bcf37d1 weaken C++ free-store functions
From-SVN: r9392
1995-04-16 06:17:34 +00:00
Jason Merrill
7e6f1890c8 Remove explicit 0-initializations of static variables.
From-SVN: r9269
1995-03-30 23:51:30 +00:00
Mike Stump
e46540c368 * libgcc2.c (__throw_type_match): Update to use new calling convention.
From-SVN: r9254
1995-03-30 00:10:54 +00:00
Mike Stump
47c0d9de92 * libgcc2.c (__register_exceptions): Handle empty tables.
From-SVN: r9200
1995-03-18 02:31:09 +00:00
Michael Meissner
8a552066c6 Do not initialize the pointer variable __new_handler with an address.
From-SVN: r9129
1995-03-08 15:21:52 +00:00
Michael Meissner
bf18d0315a Clone unwind_function for powerpc
From-SVN: r9103
1995-03-01 20:30:14 +00:00
Richard Kenner
c84b672ea9 (atexit): Prototype now works with NT.
From-SVN: r9016
1995-02-21 18:55:37 -05:00
Mike Stump
71a810956e rs6000 exception handling support
From-SVN: r8970
1995-02-18 21:05:17 +00:00
Mike Stump
1e58f10757 tweak __unwind_function for bsdi
From-SVN: r8969
1995-02-18 20:52:11 +00:00
Richard Kenner
3a5ece659c Repair botch in application of patch.
From-SVN: r8956
1995-02-15 13:03:30 -05:00
Doug Evans
5fd507a942 (exit): Don't call __do_global_dtors if
INIT_SECTION_ASM_OP and OBJECT_FORMAT_ELF.

From-SVN: r8946
1995-02-13 23:22:38 +00:00
Jason Merrill
2c62c124a7 Don't call write ifdef inhibit_libc.
From-SVN: r8941
1995-02-13 22:08:25 +00:00
Jim Wilson
3f3d2ec8db (L_fixunsxfsi, L_fixunsdfsi, L_fixunssfsi): Undef
normal types before including limits.h.

From-SVN: r8913
1995-02-11 15:26:09 -08:00
Ian Lance Taylor
a99598c904 Include <limits.h>, not "glimits.h".
From-SVN: r8841
1995-01-31 18:28:04 +00:00
Richard Kenner
a83106c08a (__lshldi3): Deleted.
From-SVN: r8831
1995-01-27 20:56:50 -05:00
Steve Chamberlain
8572e7ce39 *** empty log message ***
From-SVN: r8736
1995-01-12 16:18:12 +00:00
Steve Chamberlain
b799cfc33b *** empty log message ***
From-SVN: r8735
1995-01-12 16:13:44 +00:00
Richard Kenner
a07805c01c (word_type): Use __attribute__ ((mode (__word__))).
From-SVN: r8583
1994-11-30 15:48:22 -05:00
Mike Stump
5603182320 libgcc2.c (__register_exceptions): Find max ending of a segment for end, not min.
* libgcc2.c (__register_exceptions): Find max ending of a segment for
        end, not min.
        * libgcc2.c (__unwind_function): New function to support stack
        unwinding on i[34]86 for g++ exception handling.

From-SVN: r8571
1994-11-29 01:33:07 +00:00
Jason Merrill
68d69835ac Shared library support.
From-SVN: r8519
1994-11-19 04:09:58 +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
Jason Merrill
efc955c77f (LIB2FUNCS): Add _pure.
From-SVN: r8333
1994-10-21 19:14:08 +00:00
Mike Stump
ad912eec58 * Makefile.in, libgcc2.c (L_eh): some support routines for C++.
From-SVN: r8144
1994-09-27 19:42:40 +00:00
Richard Kenner
b077f3ac2f Add declaration of ctime.
From-SVN: r7824
1994-07-29 19:04:10 -04:00
Jason Merrill
566b213ab1 Reverse order of execution of
destructor lists.

From-SVN: r7817
1994-07-29 19:03:37 +00:00
Richard Kenner
d9e1ab8d4e (__floatdisf): Protect against double-rounding error.
From-SVN: r7431
1994-06-02 18:10:30 -04:00
Richard Kenner
b89a6f69c3 (__umoddi3): Correct type of variable `w'.
From-SVN: r7324
1994-05-17 18:56:16 -04:00
Richard Kenner
b2bf5aef7a Revert to identifiers for mode attributes.
From-SVN: r7282
1994-05-12 15:48:39 -04:00
Richard Kenner
d5c88b0ab9 Clarify license status.
From-SVN: r7169
1994-04-28 18:29:12 -04:00
Jason Merrill
4c5484839a Change _op_vec_decl to _op_vdel and _op_vec_new to _op_vnew
From-SVN: r7161
1994-04-27 07:19:33 +00:00
Jason Merrill
75ea7910de (LIB2FUNCS): Change _op_vec_delete to _op_vec_del.
From-SVN: r7064
1994-04-18 18:37:25 +00:00
Jason Merrill
6ffe3a3224 libgcc2.c (__builtin_vec_{delete,new}): New functions per the latest C++ working paper.
* libgcc2.c (__builtin_vec_{delete,new}): New functions per the
        latest C++ working paper.
        (__default_new_handler): No longer static.
        (__set_new_handler): Lose.

From-SVN: r7043
1994-04-13 01:18:43 +00:00
Richard Kenner
c5df463e3b Include <mach.h>, not <mach/mach.h> for NeXTStep 2.1.
From-SVN: r7008
1994-04-09 15:02:49 -04:00
Jim Wilson
6b98c8f4db Modify all uses of __attribute__ mode to use new syntax.
From-SVN: r6956
1994-04-01 09:06:56 -08:00
Jim Wilson
8717efcef1 Change "gstddef.h" to <stddef.h>.
From-SVN: r6943
1994-03-31 21:28:27 -08:00
Doug Evans
3bd4f3b8c9 (__builtin_saveregs): Fix return type.
From-SVN: r6837
1994-03-21 21:20:56 +00:00
Richard Kenner
442e881d89 (__builtin_new): If __new_handler returns, keep trying to allocate the memory.
(__default_new_handler): Add __ to beginning of name to avoid namespace
clashing.

From-SVN: r6506
1994-02-08 19:19:53 -05:00
Richard Stallman
1d42e1b7cf (__bb_exit_func): Fix format %*d -> %*ld.
From-SVN: r6145
1993-11-23 22:01:14 +00:00
Richard Kenner
0c8ae3d30b (__enable_execute_stack): Add DolphinOS version.
From-SVN: r6136
1993-11-21 15:38:55 -05:00
Richard Stallman
003be45548 (exit): Fix declaration of _exit.
From-SVN: r5980
1993-11-03 20:08:08 +00:00
Richard Stallman
6aadf9c227 (___builtin_saveregs): New alternative for __PARAGON__.
From-SVN: r5907
1993-10-26 23:29:45 +00:00
Richard Stallman
ebd4130940 (L_bb): Undef NULL before including <stdio.h>.
From-SVN: r5880
1993-10-25 01:42:49 +00:00
Kresten Krab Thorup
c1381fd357 (__enable_execute_stack): Add case for NeXT/__MACH__.
From-SVN: r5394
1993-09-22 17:44:56 +00:00
Kresten Krab Thorup
e117897348 (__clear_cache): add case for new CLEAR_INSN_CACHE.
From-SVN: r5391
1993-09-22 17:43:00 +00:00
Richard Stallman
c7544ff7ae (L_bb): Test inhibit_libc.
From-SVN: r5383
1993-09-22 02:33:56 +00:00
Richard Stallman
96fc2623de Declare __fixunsxfdi only if really have XFmode.
Likewise for __fixunstfdi.

From-SVN: r5349
1993-09-18 00:39:21 +00:00
Richard Stallman
cc3cdac3bb Declare __fixunstfdi.
From-SVN: r5333
1993-09-15 22:09:57 +00:00
Richard Stallman
f70ad14cb4 Declare __fixunsxfdi.
From-SVN: r5325
1993-09-15 13:30:09 +00:00
Michael Meissner
3cca99e839 Add spaces in basic block output.
From-SVN: r5250
1993-09-02 10:55:40 +00:00
Michael Meissner
92832bb59a Update basic block profiling.
From-SVN: r5249
1993-09-02 10:50:41 +00:00
Richard Stallman
c06cff95e3 (__main): Use macro SYMBOL__MAIN instead of invoking directly.
From-SVN: r4992
1993-07-26 21:00:16 +00:00
Richard Stallman
56b03d5f89 (__floatdisf): Use DFtype for intermediate values.
From-SVN: r4421
1993-05-11 04:42:22 +00:00
Richard Stallman
e0799b34f8 (XFtype): Do define it, if LONG_DOUBLE_TYPE_SIZE == 96.
(__fixunsxfdi): New function, if LONG_DOUBLE_TYPE_SIZE == 96.
(__fixxfdi, __floatdixf, __fixunsxfsi): Likewise.

From-SVN: r4000
1993-04-04 07:18:03 +00:00
Richard Stallman
24e4939efc Comment fix.
From-SVN: r3564
1993-02-27 20:27:24 +00:00
Richard Stallman
c74d558306 (inhibit_libc): Renamed from inhibit_eprintf.
(L_new_handler): Don't include stdio.h if inhibit_libc.

From-SVN: r3557
1993-02-27 19:12:24 +00:00
Jim Wilson
4be7c28fdd (cmpdi2, ucmpdi2): comparison result type is now word_mode.
From-SVN: r3288
1993-01-19 17:07:04 -08:00
Jim Wilson
19197caa01 Correct typo in comment.
From-SVN: r3240
1993-01-14 11:30:29 -08:00
Michael Meissner
de6cbba6ea Fix ffsdi2 return types.
From-SVN: r3225
1993-01-13 20:36:07 +00:00
Richard Stallman
aa66bd06e4 (_ffsdi2): Use the correct names for structure elements of type DIunion.
From-SVN: r3217
1993-01-13 04:30:11 +00:00
Paul Eggert
a1c3776604 # Fix misspellings in comments.
From-SVN: r3182
1993-01-10 22:33:45 +00:00
Torbjorn Granlund
7bc7d45a25 (__udiv_w_sdiv): Replace hard-coded constants 31 with (SI_TYPE_SIZE - 1).
From-SVN: r3146
1993-01-07 21:46:47 +00:00
Jim Wilson
ec06f00ad6 (L_builtin_new): Change to L_op_new.
(L_builtin_new): Change to L_op_new.  Use new style
definition for __builtin_new.
(L_caps_New): Change to L_new_handler.  Delete unused function
builtin_vec_new.
(L_builtin_del): Change to L_op_delete.  Delete vfp declaration.
Use new style definition for __builtin_delete.  Delete unused
function __builtin_vec_delete.

From-SVN: r3021
1992-12-31 13:10:50 -08:00
Richard Stallman
30de5e95fa (__udiv_w_sdiv): Cast 1 before shifting by 31.
From-SVN: r2809
1992-11-26 19:05:38 +00:00
Richard Stallman
98126ed6a4 (__builtin_vec_new): #undef NULL before including stdio.h.
(pyramid __enable_execute_stack): Ditto.

From-SVN: r2668
1992-10-31 21:26:20 +00:00
Michael Meissner
e45d9b98ee Properly close comment.
From-SVN: r2628
1992-10-28 15:56:23 +00:00
Richard Stallman
fffa69145b Include stdio.h.
[__GNU_LIBRARY__] (write): Defined.

From-SVN: r2625
1992-10-27 22:53:58 +00:00
Richard Stallman
d15d0264a9 [L_ctors] (__CTOR_LIST__, __DTOR_LIST__):
Initialize these default definitions if __NeXT__.

From-SVN: r2472
1992-10-15 08:25:16 +00:00
Richard Stallman
78e3321337 (__gcc_bcmp): Don't depend on signedness of `char'.
From-SVN: r2465
1992-10-15 05:04:48 +00:00
Richard Stallman
bba2431c5d (__eprintf): Do nothing if inhibit_eprintf is defined.
From-SVN: r2289
1992-10-01 03:34:27 +00:00
Richard Stallman
bcea218548 (__builtin_new): Avoid passing 0 to malloc.
From-SVN: r2267
1992-09-28 13:43:23 +00:00
Richard Stallman
ad38743d79 (exit): Declare _exit as volatile.
(__CTOR_LIST__, __DTOR_LIST__): Moved to separate member.

From-SVN: r2158
1992-09-19 04:47:11 +00:00
Richard Stallman
9bd23d2c95 (__gcc_bcmp): New function, in cond on L__gcc_bcmp.
From-SVN: r2110
1992-09-12 08:45:46 +00:00
Richard Stallman
ecbe06a11f (__builtin_new): Cast the result of malloc.
From-SVN: r1935
1992-08-23 07:20:15 +00:00
Richard Kenner
05c0fbb8bc (builtin_new): Remove declaration of malloc.
From-SVN: r1868
1992-08-17 07:33:24 -04:00
Richard Stallman
0c7b7f30eb entered into RCS
From-SVN: r1728
1992-07-31 06:29:36 +00:00
Richard Kenner
bfe655f9bf *** empty log message ***
From-SVN: r1617
1992-07-17 08:27:11 -04:00
Richard Kenner
0dadecf681 *** empty log message ***
From-SVN: r1614
1992-07-17 05:57:24 -04:00
Torbjorn Granlund
3904131aad *** empty log message ***
From-SVN: r1546
1992-07-09 22:30:59 +00:00
Charles Hannum
258d13563c *** empty log message ***
From-SVN: r1506
1992-07-07 21:40:53 +00:00
Torbjorn Granlund
431b1ee0e0 *** empty log message ***
From-SVN: r1504
1992-07-07 19:58:52 +00:00
Richard Stallman
ab49538861 *** empty log message ***
From-SVN: r1503
1992-07-07 19:46:10 +00:00
Richard Stallman
600032fcf3 *** empty log message ***
From-SVN: r1435
1992-07-04 23:21:06 +00:00
Richard Stallman
c7c0a63523 *** empty log message ***
From-SVN: r1347
1992-06-30 00:35:54 +00:00
Richard Stallman
27d21d3283 *** empty log message ***
From-SVN: r1288
1992-06-26 02:43:09 +00:00
Richard Stallman
b6422cca6e *** empty log message ***
From-SVN: r893
1992-05-05 01:46:51 +00:00
Richard Stallman
73a3e4ab83 *** empty log message ***
From-SVN: r646
1992-03-31 09:11:23 +00:00
Richard Stallman
b1166faeb0 *** empty log message ***
From-SVN: r620
1992-03-29 03:21:13 +00:00
Tom Wood
b335c2ccab *** empty log message ***
From-SVN: r526
1992-03-19 20:41:45 +00:00
Richard Stallman
135461d960 *** empty log message ***
From-SVN: r408
1992-03-07 04:39:10 +00:00
Richard Stallman
89cf554bda *** empty log message ***
From-SVN: r309
1992-02-12 17:47:31 +00:00
Richard Stallman
203b91b92d Initial revision
From-SVN: r243
1992-01-28 03:44:05 +00:00