Commit Graph

17865 Commits

Author SHA1 Message Date
Gary Thomas
93e42b0fe0
* rs6000.c (rs6000_allocate_stack_space) Fix typo which
        caused bad assembly code to be generated.

From-SVN: r21637
1998-08-08 12:21:59 -06:00
Jeffrey A Law
495c8b281a * netbsd.h: Fix typo.
From-SVN: r21634
1998-08-08 11:53:54 -06:00
Jeff Law
e81b37aafb Daily bump.
From-SVN: r21628
1998-08-07 18:45:02 -06:00
Mark Mitchell
ae58fa02be typeck.c (require_complete_type): Use complete_type_or_else.
* typeck.c (require_complete_type): Use complete_type_or_else.
	(complete_type_or_else): Always return NULL_TREE on failure, as
	documented.
	* pt.c (tsubst_aggr_type): Prototype.
	(tsubst_decl): New function, split out from tsubst.  Set
	input_filename and lineno as appropriate.
	(pop_tinst_level): Restore the file and line number saved in
	push_tinst_level.
	(instantiate_class_template): Set input_filename and lineno as
	appropriate.
	(tsubst): Move _DECL processing to tsubst_decl.  Make sure the
	context for a TYPENAME_TYPE is complete.
	* decl2.c (grokbitfield): Issue errors on bitfields declared with
	function type.
	(do_dtors): As in do_ctors, pretend to be a member of the same
	class as a static data member while generating a call to its
	destructor.

From-SVN: r21627
1998-08-07 16:33:34 +00:00
Mark Mitchell
523633872a cvt.c (cp_convert_to_pointer): Handle NULL pointer conversions, even in complex virtual base class hierarchies.
* cvt.c (cp_convert_to_pointer): Handle NULL pointer
	conversions, even in complex virtual base class hierarchies.

From-SVN: r21626
1998-08-07 09:56:06 +00:00
Jeff Law
bd106708cf Daily bump.
From-SVN: r21623
1998-08-06 18:45:02 -06:00
Mark Mitchell
ed44da020e cp-tree.h (ENUM_TEMPLATE_INFO): New macro.
* cp-tree.h (ENUM_TEMPLATE_INFO): New macro.
	(TYPE_TEMPLATE_INFO): Likewise.
	(SET_TYPE_TEMPLATE_INFO): Likewise.
	(ENUM_TI_TEMPLATE): Likewise.
	(ENUM_TI_ARGS): Likewise.
	(lookup_nested_type_by_name): Remove.
	* decl.c (maybe_process_template_type_declaration): Handle enums.
	(start_enum): Don't check for primary-template enum declarations
	here.
	(finish_enum): Clean up, document.  Make sure template enum
	constants get the correct type.
	(build_enumerator): Copy initializers for template enumerations,
	too.
	(grok_enum_decls): Document.
	* lex.c (do_identifier): Document use of LOOKUP_EXPR a bit
	better.  Build LOOKUP_EXPRs for local variables, even if they are
	TREE_PERMANENT.
	* pt.c (tsubst_enum): Remove field_chain parameter.
	(template_class_depth): Include the depth of surrounding function
	contexts.
	(push_template_decl): Check for primary-template enum declarations
	here.  Deal with enumeration templates.
	(lookup_template_class): Likewise.
	(for_each_template_parm): Likewise.
	(instantiate_class_template): Don't call tsubst_enum directly,
	call tsubst instead, to instantiate enums.  Deal with all
	field_chain issues here, not in tsubst_enum.
	(lookup_nested_type_by_name): Remove.
	(tsubst_aggr_type): Revise handling of enumeration types.
	(tsubst): Likewise.
	(tsubst_copy): Likewise.
	(tsubst_expr): Call tsubst, not tsubst_enum for TAG_DEFNs.

From-SVN: r21622
1998-08-06 16:58:43 +00:00
Mark Mitchell
a8b0896fe6 New test
From-SVN: r21621
1998-08-06 09:56:09 +00:00
Jeff Law
debed82cde Daily bump.
From-SVN: r21619
1998-08-05 18:45:02 -06:00
Craig Burley
ca8769e3b2 com.c (ffecom_convert_narrow_, [...]): Allow conversion from pointer to same-sized integer...
Tue Aug  4 16:59:39 1998  Craig Burley  <burley@gnu.org>
	* com.c (ffecom_convert_narrow_, ffecom_convert_widen_):
	Allow conversion from pointer to same-sized integer,
	to fix invoking SIGNAL as a function.

From-SVN: r21618
1998-08-05 11:22:15 +00:00
Craig Burley
a74de6ea68 com.c (ffecom_convert_narrow_, [...]): Allow conversion from pointer to same-sized integer...
Tue Aug  4 16:59:39 1998  Craig Burley  <burley@gnu.org>
	* com.c (ffecom_convert_narrow_, ffecom_convert_widen_):
	Allow conversion from pointer to same-sized integer,
	to fix invoking SIGNAL as a function.

[[Split portion of a mixed commit.]]

From-SVN: r21617.2
1998-08-05 11:19:05 +00:00
Bruce Korb
a16be29649 Update the generated file, too
From-SVN: r21615
1998-08-05 10:44:11 +00:00
Bruce Korb
725471d2bd Changes to allow bypassing tests for certain machines
From-SVN: r21614
1998-08-05 10:20:13 +00:00
Bruce Korb
7c3b5ba531 Document today's changes
From-SVN: r21613
1998-08-05 10:18:37 +00:00
Jeff Law
2dfef45f14 Daily bump.
From-SVN: r21611
1998-08-04 18:45:02 -06:00
Andreas Jaeger
887e305815 libioP.h: Use __PMT in typedefs.
* libioP.h: Use __PMT in typedefs.
* strfile.h: Likewise.

From-SVN: r21610
1998-08-04 15:21:08 +00:00
Mark Mitchell
e4a8420974 decl.c (pushtag): Don't mangle the name of a TYPE_DECL if it uses template parameters.
* decl.c (pushtag): Don't mangle the name of a TYPE_DECL if it
	uses template parameters.
	* method.c (build_template_parm_names): Use the full set of
	template arguments for tsubst'ing.
	(build_overload_identifier): Pass the full set of template
	arguments to build_template_parm_names, not just the
	innermost_args.
	* pt.c (TMPL_ARGS_DEPTH): Define using
	TMPL_ARGS_HAVE_MULTIPLE_LEVELS, for clarity.
	(NUM_TMPL_ARGS): New macro.
	(add_outermost_template_args): Deal with the case where the outer
	args will be completely discarded.
	(coerce_template_parms): Use the full set of template arguments
	for tsubst'ing.  Simplify.  Add some asserts.  Improve
	error messages.
	(lookup_template_class): Pass the full set of template arguments
	to coerce_template_parms.
	(tsubst): Add assertion.
	(do_type_instantiation): Don't instantiate member template
	classes.
	* init.c (build_offset_ref): Deal with a TEMPLATE_ID_EXPR whose
	name is a LOOKUP_EXPR, rather than an IDENTIFIER_NODE.

From-SVN: r21609
1998-08-04 11:46:41 +00:00
Jeff Law
be5ceb725b Daily bump.
From-SVN: r21554
1998-08-03 18:45:02 -06:00
Jason Merrill
c1def683c1 method.c (set_mangled_name_for_decl): Change return type to void.
* method.c (set_mangled_name_for_decl): Change return type to void.
	* decl.c (lookup_name_real): A namespace-level decl takes priority
	over implicit typename.  Avoid doing the same lookup twice.
	* search.c (dependent_base_p): New fn.
	(dfs_pushdecls, dfs_compress_decls): Use it.
	* typeck.c (get_member_function_from_ptrfunc): Don't try to handle
	virtual functions if the type doesn't have any.

From-SVN: r21551
1998-08-03 18:11:25 -04:00
Gerald Pfeifer
090f136ad2 Add myself, as per Jeff Law's request.
From-SVN: r21550
1998-08-03 11:22:28 +00:00
Mark Mitchell
93b7fd0af4 decl2.c (grokfield): Don't mangle the name of a TYPE_DECL if it uses template parameters.
* decl2.c (grokfield): Don't mangle the name of a TYPE_DECL if it
	uses template parameters.

From-SVN: r21549
1998-08-03 09:59:39 +00:00
Mark Mitchell
35fce3ceb2 decl2.c (grokfield): Don't mangle the name of a TYPE_DECL is it uses template parameters.
* decl2.c (grokfield): Don't mangle the name of a TYPE_DECL is it
	uses template parameters.

From-SVN: r21548
1998-08-03 09:58:34 +00:00
Jeff Law
9471ad135d Daily bump.
From-SVN: r21546
1998-08-02 18:45:02 -06:00
Robert Lipe
b72612b0c7 * config.sub: Fix typo.
From-SVN: r21545
1998-08-02 22:10:44 +00:00
Mark Mitchell
672476cbdf cp-tree.def (LOOKUP_EXPR): Document.
* cp-tree.def (LOOKUP_EXPR): Document.  Remove second argument.
	* cp-tree.h (DECL_TI_TEMPLATE): Improve documentation.
	* lex.c (do_identifier): Don't use a second argument, or a type,
	when building LOOKUP_EXPRs.
	(do_identifier): Likewise.
	(do_scoped_id): Likewise.
	* method.c (hack_identifier): Improve error message.
	* pt.c (lookup_template_function): Don't needlessly call
	copy_to_permanent or build_min.
	(tsubst_copy): Remove #if 0'd code.  Tsubst into LOOKUP_EXPRs if
	necessary.
	(do_decl_instantiation): Improve error message.
	* tree.c (mapcar, case LOOKUP_EXPR): Don't be sorry; make a copy.
	(build_min): Copy the type to the permanent obstack, too.

From-SVN: r21544
1998-08-02 21:37:23 +00:00
Mark Mitchell
151ab2f29e New test
From-SVN: r21543
1998-08-02 21:27:51 +00:00
Hans-Peter Nilsson
46103ab43a invoke.texi (Environment Variables): Typo: Change "ascpects" into "aspects".
(
        * invoke.texi (Environment Variables): Typo: Change "ascpects"
        into "aspects".
        (Running Protoize): Typo: Change "ther" into "other".

From-SVN: r21542
1998-08-02 10:00:17 -06:00
Hans-Peter Nilsson
b28dd84028 invoke.texi (Environment Variables): Typo: Change "ascpects" into "aspects".
* invoke.texi (Environment Variables): Typo: Change "ascpects"
        into "aspects".
        (Running Protoize): Typo: Change "ther" into "other".

From-SVN: r21541
1998-08-02 10:00:15 -06:00
Dave Love
3e3f53fba8 New SEL-HPC URL.
From-SVN: r21540
1998-08-02 09:44:00 +00:00
Jeff Law
e44d06c3a9 Initial revision
From-SVN: r21537
1998-08-02 00:46:46 -06:00
Jeff Law
d70283ce50 Initial revision
From-SVN: r21536
1998-08-02 00:46:43 -06:00
Jeff Law
19b7a780f4 Initial revision
From-SVN: r21533
1998-08-02 00:20:56 -06:00
Jeff Law
a2c0accaef Initial revision
From-SVN: r21532
1998-08-02 00:20:53 -06:00
Jeff Law
d70c01b8e2 Initial revision
From-SVN: r21531
1998-08-02 00:20:50 -06:00
Jeff Law
48011dd440 Initial revision
From-SVN: r21528
1998-08-02 00:12:03 -06:00
Jeff Law
37bf11847e Daily bump.
From-SVN: r21526
1998-08-01 18:45:02 -06:00
Jeff Law
47a0e5a84f netbsd.h: Undo previous change to DWARF2_UNWIND_INFO.
h
        * i386/netbsd.h: Undo previous change to DWARF2_UNWIND_INFO.
        * m68k/netbsd.h: Likewise.
        * ns32k/netbsd.h: Likewise.
        * sparc/netbsd.h: Likewise.

From-SVN: r21523
1998-08-01 17:50:00 -06:00
Jeff Law
6414d0c1ed netbsd.h: Undo previous change to DWARF2_UNWIND_INFO.
* i386/netbsd.h: Undo previous change to DWARF2_UNWIND_INFO.
        * m68k/netbsd.h: Likewise.
        * ns32k/netbsd.h: Likewise.
        * sparc/netbsd.h: Likewise.

From-SVN: r21522
1998-08-01 17:49:55 -06:00
Richard Henderson
790d5d0252 va-alpha.h (va_list): Use a typedef, not a define.
* ginclude/va-alpha.h (va_list): Use a typedef, not a define.
        * ginclude/va-clipper.h (va_list): Likewise.

From-SVN: r21518
1998-08-01 11:00:15 -07:00
Dave Love
e45a12c6e7 980729-0.f: New test.
1998-08-01  Dave Love  <d.love@dl.ac.uk>
	* g77.f-torture/compile/980729-0.f: New test.

From-SVN: r21516
1998-08-01 09:41:39 +00:00
Dave Love
07b664cae4 New test.
From-SVN: r21515
1998-08-01 09:38:20 +00:00
Jason Merrill
c787dd82d5 init.c (init_init_processing): Remove BI* handling.
* init.c (init_init_processing): Remove BI* handling.
	(build_builtin_call): Remove.
	(build_builtin_delete_call): New fn.
	(build_delete): Use it.

From-SVN: r21514
1998-07-31 22:36:54 -04:00
Jeff Law
acb26b31f9 Daily bump.
From-SVN: r21512
1998-07-31 18:45:02 -06:00
Michael Meissner
ef79218343 If -Os use load/store multiple instructions
From-SVN: r21511
1998-07-31 17:30:57 +00:00
Jeff Law
02c452afe0 netbsd.h: Fix typo.
�
        * ns32k/netbsd.h: Fix typo.

From-SVN: r21507
1998-07-31 10:10:59 -06:00
Jeff Law
b2d3117c44 netbsd.h: Fix typo.
�
        * ns32k/netbsd.h: Fix typo.

From-SVN: r21506
1998-07-31 10:10:57 -06:00
Mark Mitchell
39c01e4c53 cp-tree.h (PROCESSING_REAL_TEMPLATE_DECL_P): New macro.
1998-07-31  Mark Mitchell  <mark@markmitchell.com>
	* cp-tree.h (PROCESSING_REAL_TEMPLATE_DECL_P): New macro.
	(maybe_check_template_type): New function.
	* decl.c (maybe_process_template_type_declaration): New function,
	split out from pushtag  Call maybe_check_template_type.
	(pushtag): Use it.  Use PROCESSING_REAL_TEMPLATE_DECL_P.
	(xref_tag): Use PROCESSING_REAL_TEMPLATE_DECL_P.
	* friend.c (do_friend): Use PROCESSING_REAL_TEMPLATE_DECL_P.
	* pt.c (template_class_depth_real): Generalization of ...
	(template_class_depth): Use it.
	(register_specialization): Use duplicate_decls for duplicate
	declarations of specializations.
	(maybe_check_template_type): New function.
	(push_template_decl_real): Fix comment.
	(convert_nontype_argument): Likewise.
	(lookup_template_class): Likewise.  Avoid an infinite loop on
	erroneous code.
	(tsubst_friend_function): Fix comment.
	(tsubst, case FUNCTION_DECL): Deal with a DECL_TI_TEMPLATE that is
	an IDENTIFIER_NODE.
	* semantics.c (begin_function_definition): Use
	reset_specialization to note that template headers don't apply
	directly to declarations after the opening curly for a function.

From-SVN: r21505
1998-07-31 15:01:21 +00:00
Doug Evans
5f97de0ac9 m32r.h (ASM_OUTPUT_SOURCE_LINE): Always output line number labels with .debugsym if no parallel insns.
* m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Always output line number
	labels with .debugsym if no parallel insns.

From-SVN: r21504
1998-07-31 12:29:10 +00:00
Jeff Law
0a5d08b853 Daily bump.
From-SVN: r21502
1998-07-30 18:45:02 -06:00
Richard Henderson
30e2dcbf78 alpha.md (fp cmp): Replicate patterns for ALPHA_TP_INSN.
* alpha.md (fp cmp): Replicate patterns for ALPHA_TP_INSN.
        (fcmov): Remove ALPHA_TP_INSN patterns -- fcmov doesn't trap.

From-SVN: r21501
1998-07-30 12:16:39 -07:00