Commit Graph

15049 Commits

Author SHA1 Message Date
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 a1e343dd7a tweak
From-SVN: r16936
1997-12-04 04:16:21 -05:00
Jeffrey A Law 6a242b6a41 * i386/t-sol2 (CRTSTUFF_T_CFLAGS): Turn on the optimizer.
From-SVN: r16935
1997-12-04 00:26:05 -07:00
Jason Merrill 3cd08147fd update
From-SVN: r16934
1997-12-04 02:22:02 -05:00
Joern Rennecke a6765b81fa Added some words on FLOAT_WORDS_BIG_ENDIAN.
From-SVN: r16932
1997-12-03 23:37:38 +00:00
Benjamin Kosnik 53d4d75f4b pt.c (tsubst): Remove tree_cons call (places redundant info into DECL_TEMPLATE_INSTANTIATION).
* pt.c (tsubst): Remove tree_cons call (places redundant info into
 	DECL_TEMPLATE_INSTANTIATION).

From-SVN: r16931
1997-12-03 21:25:10 +00:00
Jason Merrill ca6d8cae45 new
From-SVN: r16930
1997-12-03 15:29:19 -05:00
Jason Merrill 9762d48da5 except.c (expand_fixup_region_end): New fn.
* except.c (expand_fixup_region_end): New fn.
	(expand_fixup_region_start): Likewise.
	(expand_eh_region_start_tree): Store cleanup into finalization here.
	* stmt.c (expand_cleanups): Use them to protect fixups.

From-SVN: r16929
1997-12-03 15:04:31 -05:00
Jason Merrill aa36c0813a tree.c (is_overloaded_fn): Handle getting a fn template.
* tree.c (is_overloaded_fn): Handle getting a fn template.
	(really_overloaded_fn): Likewise.
	* error.c (dump_decl): Handle TEMPLATE_ID_EXPRs better.
	* pt.c (check_explicit_specialization): Tweak.
	(determine_explicit_specialization): Tweak.

	* tree.c, cp-tree.h (get_target_expr): New fn.

1997-12-02  Mark Mitchell  <mmitchell@usa.net>

	* pt.c (determine_explicit_specialization): Avoid an internal
	error for bad specializations.

	* method.c (build_overload_value): Handle SCOPE_REF.

From-SVN: r16928
1997-12-03 14:46:56 -05:00
Gavin Koch 868e82ab1f mips.md (muldi3_r4000): Broaden the output template and attribute assignments to handle three operand...
* mips/mips.md (muldi3_r4000): Broaden the output template
	and attribute assignments to handle three operand dmult;
	rename to muldi3_internal2.
	(muldi3): Call the new muldi3_internal2 for R4000, and
	any GENERATE_MULT3 chip.

From-SVN: r16927
1997-12-03 16:47:25 +00:00
Jason Merrill 716cc7f778 * stmt.c (expand_decl_cleanup): Update thisblock after eh_region_start.
From-SVN: r16896
1997-12-02 22:42:32 -05:00
Jason Merrill de35891e21 [multiple changes]
Tue Dec  2 19:18:50 1997  Mike Stump  <mrs@wrs.com>

	* class.c (prepare_fresh_vtable): Enable even more complex MI
	vtable names.

Tue Dec  2 01:37:19 1997  Jason Merrill  <jason@yorick.cygnus.com>

	* exception.cc (__check_eh_spec): Optimize a bit.

	* exception.cc (__cp_pop_exception): Lose handler arg.
	* except.c (do_pop_exception): Likewise.
	(push_eh_cleanup): Let the cleanup mechanism supply the handler.
	(expand_end_catch_block): Likewise.

From-SVN: r16895
1997-12-02 22:37:17 -05:00
Jim Wilson 9fb82071ff Better fix for loop unrolling problem.
* unroll.c (find_splittable_givs):  Remove last change.  Handle givs
	with a dest_reg that was created by loop.

From-SVN: r16893
1997-12-02 12:57:41 -08:00
Jeff Law 898f531b0b More doc junk.
From-SVN: r16891
1997-12-02 13:16:00 -07:00
Jeffrey A Law 205cba5349 Makefile.in (INSTALL_TARGET_CROSS): Define.
* Makefile.in (INSTALL_TARGET_CROSS): Define.
        (install-cross, install-gcc-cross): New targets.

From-SVN: r16888
1997-12-02 10:53:36 -07:00
Jeff Law dc994f8461 C9X draft.
From-SVN: r16885
1997-12-02 10:01:35 -07:00
Jeffrey A Law 561b3c6ad5 * Make-lang.in (f77.clean): Remove g77.c.
From-SVN: r16883
1997-12-02 09:54:03 -07:00
Jeff Law fbdd9d76bf From egcs release branch
From-SVN: r16867
1997-12-01 11:18:10 -07:00
Jeff Law f45ebe4754 O Bring in changes from release branch (egcs_ss_971127).
From-SVN: r16866
1997-12-01 10:53:12 -07:00
Jeffrey A Law 7dfef6ed40 Bring in changes from release branch (egcs_ss_971127).
From-SVN: r16865
1997-12-01 10:45:00 -07:00
Jeffrey A Law b4dfb70720 * configure.in: Fix NCR entries.
From-SVN: r16821
1997-11-28 10:04:14 -07:00
Jason Merrill 74cd8397f8 pt.c (check_explicit_specialization): Complain about using a template-id for a non-specialization.
* pt.c (check_explicit_specialization): Complain about using a
	template-id for a non-specialization.

Fri Nov 28 01:56:35 1997  Bruno Haible  <bruno@linuix.mathematik.uni-karlsruhe.de>

        * error.c (dump_decl): Handle TEMPLATE_ID_EXPR.

From-SVN: r16818
1997-11-28 05:30:44 -05:00
Jason Merrill 6a0d3671ed fix
From-SVN: r16817
1997-11-28 05:28:34 -05:00
Jeff Law 2d2e705431 Grr. Used the wrong patchfile last time.
From-SVN: r16816
1997-11-27 21:42:28 -07:00
Jeffrey A Law 586a5f993a flow.c (find_basic_blocks): Handle cfg issues for rethrows and nested exceptions correctly.
* flow.c (find_basic_blocks): Handle cfg issues for rethrows and
        nested exceptions correctly.

From-SVN: r16812
1997-11-27 20:10:10 -07:00
Jason Merrill c2840dfb8a typeck.c (build_const_cast): Handle references here instead of handing off to convert_to_reference.
* typeck.c (build_const_cast): Handle references here instead of
	handing off to convert_to_reference.

From-SVN: r16810
1997-11-27 17:18:28 -05:00
Jason Merrill fb98cff689 except.c: Lose Unexpected, SetTerminate, SetUnexpected, TerminateFunctionCall.
* except.c: Lose Unexpected, SetTerminate, SetUnexpected,
 	TerminateFunctionCall.
	(init_exception_processing): Likewise.  Terminate et al are now
 	the fns, not ADDR_EXPRs.
	(various): Lose redundant assemble_external calls.
	(do_unwind): s/BuiltinReturnAddress/builtin_return_address_fndecl/.

From-SVN: r16805
1997-11-27 15:55:44 -05:00
Jason Merrill 77be6f8209 cp-tree.h (struct lang_decl_flags): Add comdat.
* cp-tree.h (struct lang_decl_flags): Add comdat.
	(DECL_COMDAT): New macro.
	* decl.c (duplicate_decls): Propagate it.
	(cp_finish_decl): Handle it.
	* decl2.c (import_export_decl): Just set DECL_COMDAT on VAR_DECLs.

From-SVN: r16804
1997-11-27 14:26:15 -05:00
Jeffrey A Law 80c2681c0a unroll.c (find_splittable_givs): Don't split givs with a dest_reg that was created by loop.
* unroll.c (find_splittable_givs): Don't split givs with a dest_reg
        that was created by loop.

From-SVN: r16803
1997-11-27 12:24:06 -07:00
Jason Merrill aa59881828 class.c: Remove static pending_hard_virtuals.
* class.c: Remove static pending_hard_virtuals.
 	(add_virtual_function): Take pointers to pending_virtuals
	and pending_hard_virtuals.
	(finish_struct_1): Pass them.  Declare pending_hard_virtuals.

From-SVN: r16787
1997-11-27 04:45:25 -05:00
Jeffrey A Law 0632562c8a Makefile.in (insatll): Change gxx_includedir to gcc_include_dir.
* Makefile.in (insatll): Change gxx_includedir to gcc_include_dir.
        * config.shared (gxx_includedir): Remove default definition.
        * config/linux.mt: Change gxx_includedir to gxx_include_dir.
        * config/linuxaxp1.mt: Likewise.

From-SVN: r16786
1997-11-27 01:39:12 -07:00
Jeffrey A Law c30555846b * Makefile.in (install): Change gxx_includedir to gxx_include_dir.
From-SVN: r16785
1997-11-27 01:37:59 -07:00
Jeffrey A Law 96b0f1fc03 Makefile.in (INSTALL_TARGET): Do install-gcc first.
* Makefile.in (INSTALL_TARGET): Do install-gcc first.
        * configure (gxx_include_dir): Provide a definition for subdirs
        which do not use autoconf.

From-SVN: r16784
1997-11-27 01:37:03 -07:00
Jeff Law 93adf99417 New entry.
From-SVN: r16780
1997-11-27 00:31:04 -07:00
Jason Merrill eb773359de decl2.c (import_export_vtable): If we support one_only but not weak symbols...
* decl2.c (import_export_vtable): If we support one_only but not
	weak symbols, mark instantiated template vtables one_only.
	(import_export_decl): Likewise for tinfo functions.
	(finish_vtable_vardecl): Also write out vtables from explicitly
	instantiated template classes.
	* pt.c (mark_class_instantiated): Revert last change.

From-SVN: r16779
1997-11-27 02:31:02 -05:00
Jason Merrill e872bb7a78 except.c (expand_throw): Call mark_used on the destructor.
* except.c (expand_throw): Call mark_used on the destructor.

Fixes operator new on the PA.

From-SVN: r16773
1997-11-26 23:31:58 -05:00
Mark Mitchell 5ad5a5263d pt.c (unify): Handle `void' template parameters in specializations.
* pt.c (unify): Handle `void' template parameters in
	specializations.

From-SVN: r16772
1997-11-26 22:49:23 -05:00
Jeff Law 5f1a18f649 config.guess (alpha stuff): Merge with FSF to avoid incorrect guesses.
* config.guess (alpha stuff): Merge with FSF to avoid incorrect
        guesses.

From-SVN: r16770
1997-11-26 16:54:57 -07:00
Richard Henderson 20a2fbe20e configure.in (target frags): Add powerpc*-linux-gnulibc1.
* configure.in (target frags): Add powerpc*-linux-gnulibc1.
        (stdio-lock): Similarly.

        * configure.in (target frags): Add alpha*-linux-gnulibc1.
        (pic frags): Its alpha*- not alpha-.
        (stdio-lock): Kill everything.  Add alpha*-linux-gnulibc1.
        * libio.h: Check __GLIBC_MINOR__ to find stdio-lock.h.  If not
        _IO_MTSAFE_IO & GLIBC, make sure the lock pointer is still there.
        * libioP.h: Check __GLIBC_MINOR__ to find libc-lock.h.

        * config/linuxaxp1-libc-lock.h: New file.
        * config/linuxaxp1-stdio-lock.h: New file.
        * config/linuxaxp1.mt: New file.

        * gen-params (va_list): Check for and use __gnuc_va_list.
        (NULL): Work around some linux kernel headers and redefine NULL.

From-SVN: r16769
1997-11-26 16:54:30 -07:00
Michael Meissner 8fbd2dc7cb Fix -msdata=sysv and pass -dynamic-linker if not already passed
From-SVN: r16768
1997-11-26 23:16:39 +00:00
Michael Meissner a226df4686 Use @local for local calls under System V
From-SVN: r16765
1997-11-26 22:59:52 +00:00
Michael Meissner 034e84c4a5 Fix System V profiling.
From-SVN: r16756
1997-11-26 21:04:33 +00:00
Michael Meissner 92dcf4c851 Pass 9th fp argument correctly on System V/eabi; Add @plt for -fPIC/-mrelocatable
From-SVN: r16746
1997-11-26 19:29:38 +00:00
Jason Merrill 33e5c8c3ae * toplev.c (main): Complain about -gdwarfn.
From-SVN: r16742
1997-11-26 14:13:02 -05:00
Jason Merrill 328d03d794 rtti.c (build_dynamic_cast): Handle template case here.
* rtti.c (build_dynamic_cast): Handle template case here.
	(build_dynamic_cast_1): Not here.

From-SVN: r16729
1997-11-26 05:14:51 -05:00
Jason Merrill 19754d4cf6 typeck2.c (digest_init): Make copies where appropriate.
* typeck2.c (digest_init): Make copies where appropriate.

	* decl2.c (delete_sanity): resolve_offset_ref.

From-SVN: r16727
1997-11-26 04:56:56 -05:00
Jason Merrill 92f5c1350c except.c (expand_start_catch_block): Fix catching a reference to pointer.
* except.c (expand_start_catch_block): Fix catching a reference
	to pointer.

	* init.c (build_new): Copy size to the saveable obstack.

	* init.c (build_new): Stick a CLEANUP_POINT_EXPR inside the
 	TRY_CATCH_EXPR for now.

From-SVN: r16726
1997-11-26 04:15:09 -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 f4f3e8fdf7 London changes to string:
* std/bastring.cc (check_realloc): Don't be selfish anymore.
	* std/bastring.h (non-const operator[]): Be selfish.
	(iterator forms of insert and erase): Stay selfish.

From-SVN: r16722
1997-11-26 02:19:11 -05:00
Jeff Law 11df6ae767 Fix typo.
From-SVN: r16720
1997-11-25 22:13:31 -07:00