Commit Graph

15111 Commits

Author SHA1 Message Date
Jason Merrill 7211716df4 parse.y (template_id): do_identifier for PFUNCNAMEs, too.
* parse.y (template_id): do_identifier for PFUNCNAMEs, too.
	* spew.c (yylex): Don't do_identifier here.
	* decl2.c (build_expr_from_tree): Revert last change.

	* decl2.c (build_expr_from_tree): Expand the name for a method call.
	* parse.y (object_template_id): Don't try to take the DECL_NAME.

From-SVN: r16971
1997-12-05 22:43:05 -05:00
Jeff Law f2d765451e release branch changes from 11-27 snapshot to egcs-1.0.
From-SVN: r16970
1997-12-05 15:13:17 -07:00
Jeff Law 435bba3a39 typo in last delta.
From-SVN: r16956
1997-12-04 22:55:31 -07:00
Jason Merrill d07daca1e5 except.c (get_dynamic_handler_chain): Only make the call once per function.
* except.c (get_dynamic_handler_chain): Only make the call once per
 	function.

From-SVN: r16955
1997-12-04 22:06:17 -05:00
Jim Wilson 0609f0216f Add patch from release branch accidentally left off the mainline.
* mips.md (fix_truncdfsi2, fix_truncsfsi2, fix_truncdfdi2,
	fix_truncsfdi2): Change *X to ?*X.

From-SVN: r16954
1997-12-04 17:10:51 -08:00
Benjamin Kosnik 249555b0af missing part of Sept 22 change brought over:
* decl.c (cp_finish_decl): Mark decls used if type has TREE_USED
	set,don't clear TREE_USED wholesale.

From-SVN: r16953
1997-12-04 19:48:46 -05:00
Jeffrey A Law e7757d6919 * strsignal.c (sys_nsig): Try NSIG and _NSIG.
From-SVN: r16952
1997-12-04 17:22:32 -07:00
Joern Rennecke 01d34110af Moved to noncompile.
From-SVN: r16951
1997-12-04 21:17:39 +00:00
Jason Merrill 5dfa752018 * except.c (expand_end_all_catch): Fix for sjlj exceptions.
From-SVN: r16950
1997-12-04 14:52:49 -05:00
J"orn Rennecke 4d7b7169c5 sh.c (final_prescan_insn): Use local label prefix when emitting .uses pseudo-ops.
* sh.c (final_prescan_insn): Use local label prefix
        when emitting .uses pseudo-ops.

From-SVN: r16949
1997-12-04 17:45:10 +00:00
Jason Merrill 2face51965 init.c (build_new): Use a TARGET_EXPR instead of SAVE_EXPR for alloc_expr.
* init.c (build_new): Use a TARGET_EXPR instead of SAVE_EXPR for
 	alloc_expr.
  	* call.c (build_op_delete_call): Adjust.

From-SVN: r16939
1997-12-04 05:03:02 -05:00
Jason Merrill 11f39cf45f oops
From-SVN: r16938
1997-12-04 04:41:53 -05: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 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