Commit Graph

1028 Commits

Author SHA1 Message Date
Jason Merrill
0be0d754af rename for DOS
From-SVN: r27625
1999-06-20 21:23:18 -04:00
Mark Mitchell
0045e0bc3c decl.c (expand_static_init): When building an anonymous function for use with atexit...
* decl.c (expand_static_init): When building an anonymous function
	for use with atexit, compute its body before and after entering
	the function.
	* error.c (dump_expr): Handle BIND_EXPR, LOOP_EXPR, and
	EXIT_EXPR.

From-SVN: r27612
1999-06-19 11:11:43 +00:00
Mark Mitchell
0b8a1e58d9 init.c (expand_aggr_vbase_init): Add flag parameter.
* init.c (expand_aggr_vbase_init): Add flag parameter.
	(build_partial_cleanup_for): Remove, inlining into ..
	(expand_cleanup_for_base): ... here.  Take flag parameter.
	(emit_base_init): Pass the in_chrg parameter to
	emit_aggr_vbase_init.
	(emit_aggr_vbase_init): Pass it to expand_cleanup_for_base.

From-SVN: r27600
1999-06-18 20:35:56 +00:00
Jeffrey A Law
048f60dcb1 * gcc.c-torture/compile/990617-1.c: New test.
From-SVN: r27572
1999-06-17 06:50:51 -06:00
Jeff Law
ff77e80cf8 Correctness tweak from Mark.
From-SVN: r27562
1999-06-16 18:48:26 -06:00
Alexandre Oliva
06c8baef3a * g++.old-deja/g++.other/decl4.C: New test.
From-SVN: r27558
1999-06-16 22:38:16 +00:00
Mark Mitchell
1b5f5f763a decl2.c (import_export_decl): Use same_type_p, rather than relying on pointer-equality for types.
* decl2.c (import_export_decl): Use same_type_p, rather than
	relying on pointer-equality for types.
	* method.c (do_build_copy_constructor): Simplify.

From-SVN: r27555
1999-06-16 17:48:05 +00:00
Mark Mitchell
4e61a9695a call.c (build_method_call): Remove bogus code for two-argument delete.
* call.c (build_method_call): Remove bogus code for two-argument
	delete.
	* init.c (build_new_1): Expand on comment, and remove dead code.

From-SVN: r27547
1999-06-16 11:24:10 +00:00
Mark Mitchell
f33e32a8cc init.c (expand_cleanup_for_base): New function, split out from ...
* init.c (expand_cleanup_for_base): New function, split out
	from ...
	(emit_base_init): Here.
	(expand_aggr_vbase_init): Use it.

From-SVN: r27543
1999-06-16 10:15:35 +00:00
Martin v. Löwis
6d1a9047b8 New file.
From-SVN: r27521
1999-06-14 15:57:27 +00:00
Nathan Sidwell
e4b593c532 * g++.old-deja/g++.other/bitfld3.C: New test.
From-SVN: r27514
1999-06-14 03:16:37 +00:00
Nathan Sidwell
b9a2a89962 * g++.old-deja/g++.eh/catch1.C: New test.
From-SVN: r27425
1999-06-08 05:31:07 +00:00
Jeffrey A Law
3f8ac8a23b p6610a.C: Expect failure on freebsd-elf.
* g++.old-deja/g++.mike/p6610a.C: Expect failure on freebsd-elf.
Until dynamic thunks work.

From-SVN: r27416
1999-06-07 17:38:03 -06:00
Jeffrey A Law
1c25a28ef0 rbug.x: Expect failure on freebsd.
* gcc.c-torture/execute/ieee/rbug.x: Expect failure on freebsd.
        * gcc.c-torture/execute/ieee/mzero.x: New file.  Likewise.

From-SVN: r27413
1999-06-07 16:45:02 -06:00
Mark Mitchell
bfec1a842f search.c (convert_pointer_to_single_level): Reimplement without using get_binfo.
* search.c (convert_pointer_to_single_level): Reimplement without
	using get_binfo.

From-SVN: r27394
1999-06-07 13:28:06 +00:00
Mark Mitchell
9223feaacb method.c (is_back_referenceable_type): Back-reference bools when not squangling.
* method.c (is_back_referenceable_type): Back-reference bools when
	not squangling.

[[Split portion of a mixed commit.]]

From-SVN: r27382.2
1999-06-06 11:06:53 +00:00
Craig Burley
622cc043aa replace with better test
From-SVN: r27370
1999-06-05 10:44:16 -04:00
Nathan Sidwell
980c394cc7 * except.c (build_throw): Check throw expression validity.
From-SVN: r27344
1999-06-04 01:31:42 +00:00
Andreas Schwab
4469640cbd * gcc.c-torture/execute/990604-1.c: New test.
From-SVN: r27343
1999-06-03 19:30:42 -06:00
Mark Mitchell
b89c5a7b53 decl.c (grokdeclarator): Don't treat arbitrary types as unsigned just because flag_signed_bitfields is false.
* decl.c (grokdeclarator): Don't treat arbitrary types as unsigned
	just because flag_signed_bitfields is false.

From-SVN: r27328
1999-06-03 10:07:18 +00:00
Nathan Sidwell
b4f70b3d42 semantics.c (begin_class_definition): Update the struct's location here ...
* semantics.c (begin_class_definition): Update the struct's
	location here ...
	* class.c (finish_struct): ... rather than here.
	* decl.c (make_typename_type): Don't rely on uninitialized
	variable.

From-SVN: r27326
1999-06-03 07:16:15 +00:00
Mark Mitchell
db3626d11f tree.c (cp_build_qualified_type_real): Rework ARRAY_TYPE allocation to match practice throughout the rest of the compiler.
* tree.c (cp_build_qualified_type_real): Rework ARRAY_TYPE
	allocation to match practice throughout the rest of the
	compiler.

From-SVN: r27264
1999-05-31 00:25:56 +00:00
Jeffrey A Law
71fb005652 * gcc.c-torture/execute/990531-1.c: New test.
From-SVN: r27261
1999-05-30 17:40:07 -06:00
Mark Mitchell
6f0ef2f4db Fix test; original version was not the intended one.
From-SVN: r27260
1999-05-30 21:55:38 +00:00
Mark Mitchell
fcd3f0bc88 lex.c (make_lang_type): Create TYPE_BINFO for TEMPLATE_TYPE_PARMs just like for non-template types.
* lex.c (make_lang_type): Create TYPE_BINFO for
	TEMPLATE_TYPE_PARMs just like for non-template types.

[[Split portion of a mixed commit.]]

From-SVN: r27258.2
1999-05-30 21:50:49 +00:00
Mark Mitchell
3e41d13b03 decl.c (start_decl): Move checks on initialization to ...
* decl.c (start_decl): Move checks on initialization to ...
	(cp_finish_decl): Here.  Tidy formatting slightly.

From-SVN: r27252
1999-05-30 14:41:33 +00:00
Robert Lipe
d664559da2 "New" testsuite entries approved by Jeff on 5/23.
From-SVN: r27222
1999-05-28 13:26:49 +00:00
Mark Mitchell
263505afaf decl.c (add_binding): Don't complain about a redeclaration of a semantically identical typedef in a...
* decl.c (add_binding): Don't complain about a redeclaration of a
	semantically identical typedef in a local scope.

From-SVN: r27213
1999-05-28 02:37:13 +00:00
Mark Mitchell
f30c84c966 decl.c (lookup_namespace_name): Handle getting a TEMPLATE_ID_EXPR.
* decl.c (lookup_namespace_name): Handle getting a
	TEMPLATE_ID_EXPR.
	(expand_static_init): Don't call pushdecl for implicitly declared
	`atexit' used to register destructors.

From-SVN: r27207
1999-05-28 00:20:07 +00:00
Franz Sirl
b040e3a22c * gcc.c-torture/compile/990527-1.c: New test.
From-SVN: r27193
1999-05-26 19:44:02 -06:00
Joern Rennecke
49447b3665 * gcc.c-torture/execute/990527-1.c: New test.
From-SVN: r27192
1999-05-26 19:24:14 -06:00
Craig Burley
47d98fa268 Fix 19990525-0.f
From-SVN: r27145
1999-05-25 12:25:57 -04:00
Mark Mitchell
3ebc5c52e8 class.c (finish_vtbls): Copy BINFO_VIRTUALs before using it to intialize a vtable.
* class.c (finish_vtbls): Copy BINFO_VIRTUALs before using it to
	intialize a vtable.
	* cp-tree.h (NAMESPACE_LEVEL): Reformat.
	(lang_decl_flags): Document MEMFUNC_POINTER_TO.  Save four bytes
	by combining TEMPLATE_INFO and LEVEL into a single union.
	(DECL_TEMPLATE_INFO): Reformat.
	(DECL_SAVED_TREE): Document.
	(DECL_TEMPLATE_INJECT): Remove.
	* class.c (finish_struct): Remove code to deal with
	DECL_TEMPLATE_INJECT.
	* decl.c (maybe_process_template_type_declaration): Handle all new
	types in templates uniformly.
	* method.c (bulid_overload_identifier): Use CP_DECL_CONTEXT, not
	DECL_CONTEXT.
	* pt.c (lookup_template_class): Inject template instantiations of
	forward-declarations.
	(instantiate_class_template): Remove code processing
	DECL_TEMPLATE_INJECT.
	* pt.c (lookup_template_class): Tweak lookup to find member
	templates.
	* pt.c (tsubst_expr, case ASM_STMT): Don't tsubst into
	ASM_CV_QUAL.
	* semantics.c (finish_asm_stmt): Make strings permanent if they're
	used in a template.

From-SVN: r27144
1999-05-25 15:31:38 +00:00
Jeff Law
c9b2595a77 Fix dumb mistakes.
From-SVN: r27143
1999-05-25 07:53:30 -06:00
Jeffrey A Law
73951da827 * gcc.c-torture/execute/990525-2.c: New test.
From-SVN: r27142
1999-05-25 07:31:37 -06:00
Nick Clifton
b7e48b2d29 Explicitly declare signed bitfields as signed.
From-SVN: r27137
1999-05-25 07:16:43 +00:00
Jeffrey A Law
d3e82013f9 * gcc.c-torture/execute/990525-1.c: New test.
From-SVN: r27132
1999-05-24 18:26:35 -06:00
Mark Mitchell
5e65d3ee9a decl2.c (mark_vtable_entries): Don't make a copy of a function, and then make it look like `abort'.
* decl2.c (mark_vtable_entries): Don't make a copy of a function,
	and then make it look like `abort'.  Just use `abort' instead.

From-SVN: r27131
1999-05-24 23:38:55 +00:00
Mark Mitchell
af7b990290 typeck.c (build_static_cast): Don't allow static_casts that cast away constness.
* typeck.c (build_static_cast): Don't allow static_casts that cast
	away constness.
	(casts_away_constness_r): New function.
	(casts_away_constness): Likewise.

From-SVN: r27128
1999-05-24 15:26:25 +00:00
Jeffrey A Law
79d6c91640 * gcc.c-torture/execute/990524-1.c: New test.
From-SVN: r27122
1999-05-24 07:27:14 -06:00
Nathan Sidwell
569c1d8ba0 anon3.C: New test.
* g++.old-deja/g++.other/anon3.C: New test.
	* g++.old-deja/g++.other/anon4.C: New test.
	* g++.old-deja/g++.ext/anon1.C: Inhibit -pedantic option.
	* g++.old-deja/g++.g++.robertl/eb131.C/: Remove unrequired ERROR tag,
	after downgrade to warning (cp/ChangeLog: 1999-05-20 Jason
	Merrill).

From-SVN: r27120
1999-05-24 04:24:30 +00:00
Mark Mitchell
8bcc97de27 decl.c (lookup_tag): Remove code no longer needed after name-lookup improvements.
* decl.c (lookup_tag): Remove code no longer needed after
	name-lookup improvements.
	* decl2.c (handle_class_head): Make error-recovery more robust.
	* friend.c (make_friend_class): Reject templated typename types.
	* lex.c (is_global): A template parameter isn't global.
	* parse.y (class_head): Robustify.
	* parse.c: Regenerated.

From-SVN: r27117
1999-05-24 00:47:01 +00:00
Jeffrey A Law
35676551af * gcc.dg/990524-1.c: New test.
From-SVN: r27114
1999-05-23 17:12:23 -06:00
Franz Sirl
9208b154a2 * gcc.c-torture/compile/990523-1.c: New test.
From-SVN: r27113
1999-05-23 15:26:27 -06:00
Mark Mitchell
4699c56180 pt.c (for_each_template_parm): Walk into TYPENAME_TYPEs, INDIRECT_REFs, and COMPONENT_REFs.
* pt.c (for_each_template_parm): Walk into TYPENAME_TYPEs,
	INDIRECT_REFs, and COMPONENT_REFs.  Handle FIELD_DECLs.

From-SVN: r27108
1999-05-22 19:00:23 +00:00
Jason Merrill
ba50acac81 expected
From-SVN: r27107
1999-05-22 14:44:19 -04:00
Mark Mitchell
61fc8c9e2b cp-tree.h (push_nested_namespace): Declare.
* cp-tree.h (push_nested_namespace): Declare.
	(pop_nested_namespace): Likewise.
	* decl.c (push_nested_namespace): New function.
	(pop_nested_namespace): Likewise.
	* pt.c (instantiate_class_template): Use them.

From-SVN: r27103
1999-05-22 14:26:55 +00:00
Mark Mitchell
9dd03dd98b * tree.c (mapcar): Handle LVALUE_EXPR.
From-SVN: r27101
1999-05-22 11:24:43 +00:00
Mark Mitchell
b928a6517e cp-tree.h (cplus_expand_constant): Declare.
* cp-tree.h (cplus_expand_constant): Declare.
	* cvt.c (convert_to_pointer): Expand PTRMEM_CSTs when they're
	converted from one pointer-to-object type to another.
	* expr.c (cplus_expand_constant): Don't make it static.
	* typeck.c (build_component_ref): Don't crash when presented with
	a component which is a TEMPLATE_DECL.
	(build_ptrmemfunc): Tidy.  Clarify comment.  Make sure that even a
	cast from a pointer-to-member constant to its own type does not
	result in a valid non-type template argument.

From-SVN: r27092
1999-05-22 01:30:11 +00:00
Mark Mitchell
ef6372557a pt.c (tsubst): Don't issue error messages when we're not complaining...
* pt.c (tsubst): Don't issue error messages when we're not
	complaining, even if we see a qualified function type.
	(check_cv_quals_for_unify): Don't allow a qualified function
	type.

From-SVN: r27080
1999-05-21 09:55:50 +00:00