Commit Graph

19398 Commits

Author SHA1 Message Date
Alexandre Oliva
2e6eddfcb0 parse.y (apparent_template_type): new type
* parse.y (apparent_template_type): new type
	(named_complex_class_head_sans_basetype): use it
	* Makefile.in (CONFLICTS): one new conflict
	* parse.c: Regenerated

From-SVN: r23495
1998-11-01 20:12:31 +00:00
Alexandre Oliva
5dd21ded56 BUGS: fix the regexp for `more' to find the appropriate node.
* BUGS: fix the regexp for `more' to find the appropriate node.
	Reported by Joerg Pietschmann  <joerg_pietschmann@zkb.ch>
	* BUGS: added link to the WWW FAQ

From-SVN: r23494
1998-11-01 19:52:23 +00:00
Jeffrey A Law
44ba27b4d5 Bump for snapshot
From-SVN: r23492
1998-11-01 11:27:20 -07:00
Mark Mitchell
bdda080307 stl_alloc.h (default_alloc_template::_S_free_list): Don't qualify _NFREELISTS.
* stl_alloc.h (default_alloc_template::_S_free_list): Don't
	qualify _NFREELISTS.

From-SVN: r23491
1998-11-01 16:47:09 +00:00
Mark Mitchell
3bfdc7190f cp-tree.h (COMPARE_STRICT): New macro.
* cp-tree.h (COMPARE_STRICT): New macro.
	(COMPARE_BASE): Likewise.
	(COMPARE_RELAXED): Likewise.
	(COMPARE_REDECLARATION): Likewise.
	(same_type_p): Likewise.
	(same_or_base_type_p): Likewise.
	* call.c (standard_conversion): Use them, in place of comptypes
	with numeric arguments.
	(reference_binding): Likewise.
	(convert_like): Likewise.
	(build_over_call): Likewise.
	(is_subseq): Likewise.
	(is_properly_derived_from): Likewise.
	(compare_ics): Likewise.
	(joust): Likewise.
	* class.c (delete_duplicate_fields_1): Likewise.
	(resolves_to_fixed_type_p): Likewise.
	(instantiate_type): Likewise.  Remove #if 0'd code.
	* decl.c (decls_match): Likewise.  Use COMPARE_REDECLARATION here.
	(pushdecl): Likewise.
	(lookup_name_real): Likewise.
	(grokdeclarator): Likewise.  Check for illegal array declarations.
	(grokparms): Likewise.
	(grok_op_properties): Likewise.
	* decl2.c (check_classfn): Likewise.
	* friend.c (is_friend): Likewise.
	(make_friend_class): Likewise.
	* init.c (expand_aggr_init): Likewise.
	(expand_vec_init): Likewise.
	* pt.c (is_member_template_class): Remove declaration.
	(is_specialization_of): Use COMPARE_* and new macros.
	(comp_template_parms): Likewise.
	(convert_nontype_argument): Likewise.
	(coerce_template_template_parms): Likewise.
	(template_args_equal): Likewise.
	(lookup_template_class): Likewise.
	(type_unification_real): Likewise.
	(unify): Likewise.
	(get_bindings_real): Likewise.
	* search.c (covariant_return_p): Likewise.
	(get_matching_virtual): Likewise.
	* sig.c (match_method_types): Likewise.
	* tree.c (vec_binfo_member): Likewise.
	(cp_tree_equal): Likewise.
	* typeck.c (common_type): Likewise.
	(comp_array_types): Likewise.  Get issues involving unknown array
	bounds right.
	(comptypes): Update comments.  Use new flags.
	(comp_target_types): Use new macros.
	(compparms): Likewise.
	(comp_target_parms): Likewise.
	(string_conv_p): Likewise.
	(build_component_ref): Likewise.
	(build_indirect_ref): Likewise.
	(build_conditional_expr): Likewise.
	(build_static_cast): Likewise.
	(build_reinterpret_cast): Likewise.
	(build_const_cast): Likewise.
	(build_modify_expr): Likewise.
	(convert_for_assignment): Likewise.
	(comp_ptr_ttypes_real): Likewise.
	(ptr_reasonably_similar): Likewise.
	(comp_ptr_ttypes_const): Likewise.

From-SVN: r23490
1998-11-01 15:45:11 +00:00
Jeffrey A Law
6d8cf409b4 linux.h (CPP_PREDEFINES): Add -D__i386__.
* From Christian Gafton:
        * i386/linux.h (CPP_PREDEFINES): Add -D__i386__.
        * sparc/linux.h (CPP_PREDEFINES): Add -D__sparc__.
        * sparc/linux64.h (CPP_PREDEFINES): Add -D__sparc__.

From-SVN: r23485
1998-11-01 03:13:42 -07:00
Jeff Law
d3d65c3053 Get it in the repo
From-SVN: r23483
1998-11-01 02:47:22 -07:00
Jeff Law
b748ee0dc7 Daily bump.
From-SVN: r23482
1998-10-31 17:45:02 -07:00
Mark Mitchell
08bc243195 c-common.c (c_get_alias_set): Allow all type-punning through unions.
�
        * c-common.c (c_get_alias_set): Allow all type-punning through
        unions.  Don't get confused about the type of a bit-field, despite
        the antics of build_modify_expr.

From-SVN: r23481
1998-10-31 13:44:46 -07:00
Mark Mitchell
43d8a6c79f c-common.c (c_get_alias_set): Allow all type-punning through unions.
�
        * c-common.c (c_get_alias_set): Allow all type-punning through
        unions.  Don't get confused about the type of a bit-field, despite
        the antics of build_modify_expr.

From-SVN: r23480
1998-10-31 13:44:44 -07:00
Jean-Pierre Radley
abf0be7c65 fixinc.sco: Paramaterize #include_next values.
* fixinc.sco: Paramaterize #include_next values.
	* fixinc/fixinc.sco: Likewise.

From-SVN: r23479
1998-10-31 20:37:50 +00:00
Jeff Law
faa6e5c410 toplev.c (rest_of_compilation): No longer set reload_completed.
�
        * toplev.c (rest_of_compilation): No longer set reload_completed.
        * reload1.c (reload): Set it here.  Perform instruction splitting
        after reload has completed if we will be running the scheduler
        again.

From-SVN: r23478
1998-10-31 12:44:19 -07:00
Jeff Law
549f2254b6 toplev.c (rest_of_compilation): No longer set reload_completed.
�
        * toplev.c (rest_of_compilation): No longer set reload_completed.
        * reload1.c (reload): Set it here.  Perform instruction splitting
        after reload has completed if we will be running the scheduler
        again.

From-SVN: r23477
1998-10-31 12:44:17 -07:00
Jeff Law
27ff8c004e toplev.c (rest_of_compilation): No longer set reload_completed.
H
        * toplev.c (rest_of_compilation): No longer set reload_completed.
        * reload1.c (reload): Set it here.  Perform instruction splitting
        after reload has completed if we will be running the scheduler
        again.

From-SVN: r23476
1998-10-31 12:44:15 -07:00
Jeffrey A Law
18f3f864d3 jump.c (jump_optimize): Initialize mappings from INSN_UID to EH region if...
* jump.c (jump_optimize): Initialize mappings from INSN_UID to
        EH region if exceptions are enabled and we're performing cross
        jump optimizations.
        (find_cross_jump): Exit loop if the insns are in different EH regions.

From-SVN: r23475
1998-10-31 04:32:02 -07:00
Mark Mitchell
21af493bcd dwarf2out.c (output_call_frame_info): Use ASM_OUTPUT_DWARF_DELTA4 for the CIE offset to match frame.c.
* dwarf2out.c (output_call_frame_info): Use
	ASM_OUTPUT_DWARF_DELTA4 for the CIE offset to match frame.c.

From-SVN: r23474
1998-10-31 10:04:48 +00:00
Kaveh R. Ghazi
0d4f7920f5 warn_summary (longLineFilter): New shell function to encapsulate this functionality.
* warn_summary (longLineFilter): New shell function to encapsulate
        this functionality.  It is off by default, only active if -llf
        flag is specified.
        (subdirectoryFilter): Fix bug in filtering which made some
        subdirectory warnings erroneously appear in the toplevel set.
        (stageNfilter): Renamed from `stageNwarns'.  Updated to collect
        warnings from stage1 as well as stage0, which means warnings from
        outside the bootstrap directory.  Eg, the libraries, etc.
        (warningFilter): New shell function to encapsulate this
        functionality.
        (keywordFilter): New shell function to encapsulate this
        functionality.
        Store data in a temp file rather than calculating it 3x.  Arrange
        to remove it on exit and signals.
        Add -pass/-wpass flags to do "pass through" (i.e. manual
        inspection) of bootstrap output from a particular stageN as well
        as language subdirs.
        Add better comments/documentation.

From-SVN: r23473
1998-10-31 08:30:53 +00:00
Kaveh R. Ghazi
bf39dde3b1 Reinstall Apr 24th fix, lost during May 6th gcc2 merge:
* c-common.c (check_format_info): Don't check for the 'x'
        format character twice, instead check for 'x' and 'X'

From-SVN: r23472
1998-10-31 07:50:34 +00:00
Gerald Pfeifer
415634f602 * egcs_update: Add comment about keeping the FAQ synchronized.
From-SVN: r23471
1998-10-31 07:45:22 +00:00
Jason Merrill
ecfafc1c15 * rtti.c (build_dynamic_cast_1): Fix cut-and-paste error.
From-SVN: r23470
1998-10-30 21:50:29 -05:00
Alexandre Oliva
cba30eb8f8 sizeof3.C: a similar testcase not involving base classes
* g++.old-deja/g++.pt/sizeof3.C: a similar testcase not involving
	base classes

From-SVN: r23469
1998-10-31 02:06:21 +00:00
Alexandre Oliva
e1a96a5729 sizeof2.C: incorrect specialization of base template is selected
* g++.old-deja/g++.pt/sizeof2.C: incorrect specialization of base
	template is selected

From-SVN: r23468
1998-10-31 01:54:35 +00:00
Jeff Law
7e0a7fc28e Daily bump.
From-SVN: r23467
1998-10-30 17:45:01 -07:00
Alexandre Oliva
073b7cea92 arrnew2.C: if new T[n](i) is accepted for classes, it should be accepted for all types.
* g++.old-deja/g++.ext/arrnew2.C: if new T[n](i) is accepted for
	classes, it should be accepted for all types.

From-SVN: r23466
1998-10-31 00:38:12 +00:00
Alexandre Oliva
57d75d5fe9 * g++.old-deja/g++.eh/sjlj1.C: test checked sjlj-exception
From-SVN: r23465
1998-10-31 00:29:38 +00:00
Alexandre Oliva
f76f703ffd spec24.C: ensure that template specializations start with template headers
* g++.old-deja/g++.pt/spec24.C: ensure that template
	specializations start with template headers

From-SVN: r23464
1998-10-31 00:06:24 +00:00
Jeff Law
5585c1bc80 configure.in (assembler features): Also make gas is configured if we find it in the souce tree.
8
        * configure.in (assembler features): Also make gas is configured if
        we find it in the souce tree.

From-SVN: r23459
1998-10-30 06:55:47 -07:00
Jeff Law
09bedf8000 configure.in (assembler features): Also make gas is configured if we find it in the souce tree.
X
        * configure.in (assembler features): Also make gas is configured if
        we find it in the souce tree.

From-SVN: r23458
1998-10-30 06:55:43 -07:00
Richard Henderson
6093f019b9 i386.c (i386_comp_type_attributes): Compare whether the attributes are defined, not their tree nodes.
* i386.c (i386_comp_type_attributes): Compare whether the
        attributes are defined, not their tree nodes.

From-SVN: r23457
1998-10-30 05:24:33 -08:00
Richard Henderson
f3196f46a2 Fix lying changelog entry.
From-SVN: r23456
1998-10-30 05:18:50 -08:00
Mark Mitchell
8a72a04676 decl2.c (delete_sanity): Pass integer_zero_node, not integer_two_node, to build_vec_delete.
* decl2.c (delete_sanity): Pass integer_zero_node, not
	integer_two_node, to build_vec_delete.
	* init.c (build_array_eh_cleanup): Remove.
	(expand_vec_init_try_block): New function.
	(expand_vec_init_catch_clause): Likewise.
	(build_vec_delete_1): Don't deal with case that auto_delete_vec
	might be integer_two_node anymore.
	(expand_vec_init): Rework for initialization-correctness and
	exception-correctness.
	* typeck2.c (process_init_constructor): Make mutual exclusivity
	of cases more obvious.

From-SVN: r23455
1998-10-30 11:17:50 +00:00
Tom Tromey
66d88624a9 class.c (build_class_ref): Changed name of primitive classes to start with `_Jv_'.
* class.c (build_class_ref): Changed name of primitive classes to
	start with `_Jv_'.

From-SVN: r23454
1998-10-30 09:15:12 +00:00
Alexandre Oliva
de82584de7 configure.in (gxx_include_dir): bitten by autoconf quoting characters :-(
* configure.in (gxx_include_dir): bitten by autoconf quoting
	characters :-(
	* configure: rebuilt

From-SVN: r23453
1998-10-30 05:44:07 +00:00
Andreas Schwab
d65ae0584b * configure.in: Ignore non-absolute value in $AS.
From-SVN: r23451
1998-10-30 01:45:46 +00:00
Jeff Law
f5343a9dd0 Daily bump.
From-SVN: r23450
1998-10-29 17:45:03 -07:00
Tom Tromey
9cfceb60cd class.c (make_class_data): Renamed fields: nmethods to method_count, method_count to dtable_method_count.
* class.c (make_class_data): Renamed fields: nmethods to
	method_count, method_count to dtable_method_count.  Always set
	`state' field to 0.
	* decl.c (init_decl_processing): Likewise.

From-SVN: r23449
1998-10-30 00:35:32 +00:00
Peter Jakubek
8b83b2a74d * m68k.h (INDIRECTABLE_1_ADDRESS_P): Fix thinko.
From-SVN: r23446
1998-10-29 16:57:11 -07:00
Mark Elbrecht
dedcc3997e * configure.in (msdosdjgpp): Set exeext and target_alias.
From-SVN: r23445
1998-10-29 16:44:38 -07:00
Jeffrey A Law
0999b4b825 egcs_update: Do touch java/parse.c and java/parse-scan.c.
* egcs_update: Do touch java/parse.c and java/parse-scan.c. They're
        in the repo again.

From-SVN: r23444
1998-10-29 16:40:27 -07:00
Bernd Schmidt
421382ac8c flow.c (XNMALLOC): New macro.
* flow.c (XNMALLOC): New macro.
	(flow_int_list_blocks, basic_block_succ, basic_block_pred): New
	static variables.
	(add_edge, add_edge_to_label): New static functions.
	(free_bb_memory): New function.
	(flow_delete_insn): Delete function.
	(basic_block_drops_in): Delete variable.
	(find_basic_blocks): Allocate and initialize basic_block_head,
	basic_block_succ.  Don't allocate basic_block_drops_in.
	Call free_bb_memory at the beginning.
	(find_basic_blocks_1): Don't do multiple passes.
	Delete code to compute basic_block_drops_in.
	After calling make_edges, mark blocks reached by current block live.
	Update test for unreachable live blocks.
	(mark_label_ref): Delete args X, CHECKDUP.  Add PRED arg.  All callers
	changed.
	Simplify to call add_edge_to_label when a LABEL_REF is found.
	(make_edges): Simplify to call add_edge_to_label instead of
	mark_label_ref most of the time.
	Compute here whether control drops into the next block.
	(delete_unreachable_blocks): Return void.  All callers changed.
	Delete unreachable blocks in reverse order.
	After deleting all unreachable blocks, renumber the remaining ones
	and update n_basic_blocks.
	(delete_block): Speed up deletion a bit.
	Don't set basic_block_drops_in for deleted blocks.
	(free_basic_block_vars): Don't free basic_block_drops_in.
	(life_analysis_1): Update to use new edge representation.
	(dump_flow_info): Delete code to print basic block info; call
	dump_bb_data instead.
	(compute_preds_succs): Delete code to recompute basic_block_drops_in
	and uid_block_number.
	Simply copy the previously computed cfg.
	(dump_bb_data): New arg LIVE_INFO.  All callers changed.
	Print register lifetime information if LIVE_INFO is nonzero.
	* basic-block.h (dump_bb_data): Adjust prototype.
	* gcse.c (gcse_main): Update call to dump_bb_data.
	* rtl.h (free_bb_memory): Declare.
	* toplev.c (rest_of_compilation): Call free_bb_memory.

From-SVN: r23443
1998-10-29 16:18:51 -07:00
Jeff Law
1f3b1e1a0b reload1.c (struct elim_table): Delete MAX_OFFSET member.
�
	* reload1.c (struct elim_table): Delete MAX_OFFSET member.
	(update_eliminable_offsets): Don't compute it.
	(set_initial_elim_offsets): Don't initialize it.
	Break out some code into set_initial_label_offsets so the rest of
	this function can be called from reload_as_needed.
	Assume that INITIAL_FRAME_POINTER_OFFSET is defeined when
	ELIMINABLE_REGS isn't.
	(set_initial_label_offsets): New function, broken out of
	set_initial_elim_offsets.
	(set_offsets_for_label): New function, broken out of set_label_offsets
	and reload_as_needed.
	(reload): Call the two new functions.
	(reload_as_needed): Call set_initial_elim_offsets instead of
	duplicating the code.  Likewise for set_offsets_for_label.

From-SVN: r23442
1998-10-29 16:07:56 -07:00
Jeff Law
6467c05f00 reload1.c (struct elim_table): Delete MAX_OFFSET member.
H
	* reload1.c (struct elim_table): Delete MAX_OFFSET member.
	(update_eliminable_offsets): Don't compute it.
	(set_initial_elim_offsets): Don't initialize it.
	Break out some code into set_initial_label_offsets so the rest of
	this function can be called from reload_as_needed.
	Assume that INITIAL_FRAME_POINTER_OFFSET is defeined when
	ELIMINABLE_REGS isn't.
	(set_initial_label_offsets): New function, broken out of
	set_initial_elim_offsets.
	(set_offsets_for_label): New function, broken out of set_label_offsets
	and reload_as_needed.
	(reload): Call the two new functions.
	(reload_as_needed): Call set_initial_elim_offsets instead of
	duplicating the code.  Likewise for set_offsets_for_label.

From-SVN: r23441
1998-10-29 16:07:53 -07:00
Bernd Schmidt
00f9f1bc15 reload1.c (choose_reload_regs): Fix typo in Oct 17 change.
* reload1.c (choose_reload_regs): Fix typo in Oct 17 change.
        (emit_reload_insns): Ensure that when we set reg_reloaded_valid for
        any hard reg, reg_reloaded_dead contains valid data.

From-SVN: r23440
1998-10-29 15:58:05 -07:00
Jason Merrill
24c659840f * decl.c (lookup_name_real): Simplify suggested fix.
From-SVN: r23439
1998-10-29 16:54:57 -05:00
Jason Merrill
d7b3753c8e * decl.c (lookup_name_real): OK, only warn if not lexing.
From-SVN: r23438
1998-10-29 16:47:33 -05:00
Marcus Meissner
afcfe58c38 i386.c (i386_valid_type_attribute_p): Return nonzero for mismatched "stdcall" and "cdecl" attributes.
* i386.c (i386_valid_type_attribute_p): Return nonzero for mismatched
        "stdcall" and "cdecl" attributes.

From-SVN: r23436
1998-10-29 14:37:24 -07:00
Jason Merrill
1a7a342d99 new
From-SVN: r23435
1998-10-29 16:23:53 -05:00
Jason Merrill
384278ddcd new
From-SVN: r23434
1998-10-29 16:10:23 -05:00
Jason Merrill
72c4a2a6fb cp-tree.h (IDENTIFIER_MARKED): New macro.
* cp-tree.h (IDENTIFIER_MARKED): New macro.
	* search.c (lookup_conversions): Use breadth_first_search.
	(add_conversions): Avoid adding two conversions to the same type.
	(breadth_first_search): Work with base binfos, rather
	than binfos and base indices.
	(get_virtual_destructor): Adjust.
	(tree_has_any_destructor_p): Adjust.
	(get_matching_virtual): Adjust.
Fixes g++.other/conv4.C

From-SVN: r23433
1998-10-29 15:46:55 -05:00
Jason Merrill
ba4f4e5d1c * pt.c (push_template_decl_real):Remove unused var.
(is_member_template_class): #if 0.

From-SVN: r23432
1998-10-29 15:18:48 -05:00