Commit Graph

14162 Commits

Author SHA1 Message Date
Jeff Law
6eb70e69c4 Add port done awhile ago for the ARC cpu.
* arc/arc.h: New file.
        * arc/arc.c: New file.
        * arc/arc.md: New file.
        * arc/initfini.c: New file.
        * arc/lib1funcs.asm: New file.
        * arc/t-arc: New file.
        * arc/xm-arc.h: New file.
        * ginclude/va-arc.h: New file.
        * ginclude/stdarg.h: Include va-arc.h ifdef __arc__.
        * ginclude/varargs.h: Likewise.
        * Makefile.in (USER_H): Add va-arc.h.
        * configure.in (arc-*-elf*): Recognize.
        * longlong.h: Add ARC support.
Mostly so I can test changes in snapshot scripts.

        * expr.c (clear_storage): Use CONST0_RTX instead of const0_rtx.
        when clearing non-BLKmode data.
Fixes sparc problem.

From-SVN: r15189
1997-09-09 15:57:17 -06:00
Jeff Law
81049807ba Add port done awhile ago for the ARC cpu.
* arc/arc.h: New file.
        * arc/arc.c: New file.
        * arc/arc.md: New file.
        * arc/initfini.c: New file.
        * arc/lib1funcs.asm: New file.
        * arc/t-arc: New file.
        * arc/xm-arc.h: New file.
        * ginclude/va-arc.h: New file.
        * ginclude/stdarg.h: Include va-arc.h ifdef __arc__.
        * ginclude/varargs.h: Likewise.
        * Makefile.in (USER_H): Add va-arc.h.
        * configure.in (arc-*-elf*): Recognize.
        * longlong.h: Add ARC support.
Mostly so I can test changes in snapshot scripts.

        * expr.c (clear_storage): Use CONST0_RTX instead of const0_rtx.
        when clearing non-BLKmode data.
Fixes sparc problem.

From-SVN: r15188
1997-09-09 15:56:06 -06:00
Jeff Law
5680076c75 Add port done awhile ago for the ARC cpu.
* arc/arc.h: New file.
        * arc/arc.c: New file.
        * arc/arc.md: New file.
        * arc/initfini.c: New file.
        * arc/lib1funcs.asm: New file.
        * arc/t-arc: New file.
        * arc/xm-arc.h: New file.
        * ginclude/va-arc.h: New file.
        * ginclude/stdarg.h: Include va-arc.h ifdef __arc__.
        * ginclude/varargs.h: Likewise.
        * Makefile.in (USER_H): Add va-arc.h.
        * configure.in (arc-*-elf*): Recognize.
        * longlong.h: Add ARC support.
Mostly so I can test changes in snapshot scripts.

        * expr.c (clear_storage): Use CONST0_RTX instead of const0_rtx.
        when clearing non-BLKmode data.
Fixes sparc problem.

From-SVN: r15187
1997-09-09 15:51:41 -06:00
Jeff Law
e90d5e5777 Add port done awhile ago for the ARC cpu.
* arc/arc.h: New file.
        * arc/arc.c: New file.
        * arc/arc.md: New file.
        * arc/initfini.c: New file.
        * arc/lib1funcs.asm: New file.
        * arc/t-arc: New file.
        * arc/xm-arc.h: New file.
        * ginclude/va-arc.h: New file.
        * ginclude/stdarg.h: Include va-arc.h ifdef __arc__.
        * ginclude/varargs.h: Likewise.
        * Makefile.in (USER_H): Add va-arc.h.
        * configure.in (arc-*-elf*): Recognize.
        * longlong.h: Add ARC support.
Mostly so I can test changes in snapshot scripts.

        * expr.c (clear_storage): Use CONST0_RTX instead of const0_rtx.
        when clearing non-BLKmode data.
Fixes sparc problem.

From-SVN: r15186
1997-09-09 15:51:14 -06:00
Jeff Law
0143027a1f Add port done awhile ago for the ARC cpu.
* arc/arc.h: New file.
        * arc/arc.c: New file.
        * arc/arc.md: New file.
        * arc/initfini.c: New file.
        * arc/lib1funcs.asm: New file.
        * arc/t-arc: New file.
        * arc/xm-arc.h: New file.
        * ginclude/va-arc.h: New file.
        * ginclude/stdarg.h: Include va-arc.h ifdef __arc__.
        * ginclude/varargs.h: Likewise.
        * Makefile.in (USER_H): Add va-arc.h.
        * configure.in (arc-*-elf*): Recognize.
        * longlong.h: Add ARC support.
Mostly so I can test changes in snapshot scripts.

        * expr.c (clear_storage): Use CONST0_RTX instead of const0_rtx.
        when clearing non-BLKmode data.
Fixes sparc problem.

From-SVN: r15185
1997-09-09 15:50:29 -06:00
Jeff Law
d7ad6040df Add port done awhile ago for the ARC cpu.
* arc/arc.h: New file.
        * arc/arc.c: New file.
        * arc/arc.md: New file.
        * arc/initfini.c: New file.
        * arc/lib1funcs.asm: New file.
        * arc/t-arc: New file.
        * arc/xm-arc.h: New file.
        * ginclude/va-arc.h: New file.
        * ginclude/stdarg.h: Include va-arc.h ifdef __arc__.
        * ginclude/varargs.h: Likewise.
        * Makefile.in (USER_H): Add va-arc.h.
        * configure.in (arc-*-elf*): Recognize.
        * longlong.h: Add ARC support.
Mostly so I can test changes in snapshot scripts.

        * expr.c (clear_storage): Use CONST0_RTX instead of const0_rtx.
        when clearing non-BLKmode data.
Fixes sparc problem.

From-SVN: r15184
1997-09-09 15:50:26 -06:00
Jim Wilson
233bd86d2e Add CYGWIN32 support.
* g77.c (pexecute, doit): Add checks for __CYGWIN32__.

From-SVN: r15183
1997-09-09 13:21:58 -07:00
Jeffrey A Law
8f3d79e05f * haifa-sched.c (print_value): Fix last change.
From-SVN: r15181
1997-09-09 09:12:06 -06:00
Nick Clifton
74aca74bc3 v850.h (ASM_SPEC): Pass on target processor.
* v850.h (ASM_SPEC): Pass on target processor.
        (CPP_PREDEFINES): Only define if not already specified.
        (TARGET_VERSION): Only define if not already specified.
        (MASK_CPU, MASK_V850, MASK_DEFAULT): Bits to specify target
        processor.
        (EXTRA_SWITCHES): Extra entries in the switches array.
        (TARGET_DEFAULT): Set default target processor.

From-SVN: r15180
1997-09-09 09:06:54 -06:00
Jim Wilson
c0b041480e Fix m68k-hp-hpux8 problem for Manfred Holstein.
* m68k.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): In MOTOROLA
	cases, add %# and %/, and add : to make them into extended asms.

From-SVN: r15174
1997-09-08 18:34:17 -07:00
Weiwen Liu
2ce72aa0a8 * libio.h: Fix typo.
From-SVN: r15170
1997-09-08 10:12:05 -06:00
Weiwen Liu
52b7724b84 alias.c (init_alias_analysis): Clean up incompatible pointer type warning in bzero.
* alias.c (init_alias_analysis): Clean up incompatible pointer
        type warning in bzero.
        * regmove.c (regmove_optimize): Ditto.
        * haifa-sched.c (find_rgns): Ditto.

        * haifa-sched.c (print_value): Clean up ptr->int cast
        warnings.

From-SVN: r15169
1997-09-08 10:06:18 -06:00
Jeff Law
1a5de45f37 Fix thinko.
From-SVN: r15168
1997-09-08 08:53:44 -06:00
Jody Goldberg
b3d5a58b51 decl.c (current_local_enum): Remove static.
Mon Sep  8 02:33:20 1997  Jody Goldberg  <jodyg@idt.net>

	* decl.c (current_local_enum): Remove static.
	* pt.c (tsubst_enum): Save and restore value of current_local_enum
	in case template is expanded in enum decl.
	(instantiate_class_template) : Use new tsubst_enum signature.
	(tsubst_expr): Likewise.

From-SVN: r15156
1997-09-08 05:37:29 -04:00
Mark Mitchell
786b524596 pt.c (begin_member_template_processing): Take a function as argument, not a set of template arguments.
Mon Sep  8 01:21:43 1997  Mark Mitchell  <mmitchell@usa.net>

	* pt.c (begin_member_template_processing): Take a function as
	argument, not a set of template arguments.  Use the template
	parameters, rather than the arguments.  Handle non-type parameters
	correctly.  Push a binding level for the parameters so that multiple
	member templates using the same parameter names can be declared.
	(end_member_template_processing): Pop the binding level.
	(push_template_decl): Mark member templates as static when
	appropriate.

	* lex.c (do_pending_inlines): Pass the function, not its template
	arguments, to begin_member_template_processing.
	(process_next_inline): Likewise.
	(do_pending_defargs): Likewise.

	* error.c (dump_expr): Obtain the correct declaration for a
	TEMPLATE_CONST_PARM.

	* call.c (add_template_conv_candidate): New function.
	(build_object_call): Handle member templates, as done in the other
	build_ functions.

From-SVN: r15155
1997-09-08 05:28:51 -04:00
Jason Merrill
267c09ab53 dwarf2out.c (dwarf2out_frame_debug): Assume that in a PARALLEL prologue insn, only the first elt is significant.
* dwarf2out.c (dwarf2out_frame_debug): Assume that in a PARALLEL
 	prologue insn, only the first elt is significant.
	(output_call_frame_info): For exception handling, always use 4-byte
 	fields as specified by the dwarf2 spec.
	Don't skip trivial FDEs.

From-SVN: r15154
1997-09-08 04:53:21 -04:00
Fred Fish
0c82f6bfae INSTALL: Change 'amigados' to 'amigaos' to match current usage.
* INSTALL: Change 'amigados' to 'amigaos' to match current usage.
	* install.texi (Configurations): Ditto.
	* config.sub: Ditto.

From-SVN: r15143
1997-09-07 23:17:48 -06:00
Jim Wilson
44010f9161 linux.mt (LIBIOSTREAM_DEP): Change stdio.list to stmp-stdio.
* linux.mt (LIBIOSTREAM_DEP): Change stdio.list to stmp-stdio.
Should fix linux build problem.

From-SVN: r15142
1997-09-07 22:58:57 -06:00
Weiwen Liu
1fed1f518f * Makefile.in (sdbout.o): Depend on insn-config.h.
From-SVN: r15141
1997-09-07 22:55:20 -06:00
Jim Wilson
624cc15e30 Fix typo in last patch.
From-SVN: r15139
1997-09-07 19:06:55 -07:00
Jim Wilson
239e68f69d Fix m68k-motorola-sysv (aka delta) build failure for Manfred Hollstein.
* m68k/m68k.h (TARGET_SWITCHES): For 68000, 68302, subtract MASK_68881.
	For 68303, 68332, cpu32, subtract MASK_68040_ONLY.

From-SVN: r15138
1997-09-07 18:51:02 -07:00
Jeff Law
db7cafb0ad version.c: Bump for snapshot.
* version.c: Bump for snapshot.

        * expmed.c (expand_divmod): Make op1_is_pow2 depend on unsignedp
        for negative constants.  Promote EXACT_DIV_EXPR to TRUNC_DIV_EXPR
        when op1_is_pow2.

        * final.c (shorten_branches): During first pass, assume worst
        possible alignment for ADDR_VEC and ADDR_VEC_DIFF insns.

        * Makefile.in (distclean): Remove various things left around
        by running the testsuite.

From-SVN: r15136
1997-09-07 16:10:34 -06:00
Jeff Law
a051ad3aea Makefile.in (distclean): Remove various things left around by running the testsuite.
* Makefile.in (distclean): Remove various things left around
        by running the testsuite.

From-SVN: r15135
1997-09-07 13:45:33 -06:00
Manfred Hollstein
7ed4611117 configure.in (out_file): Emit definition to config.status in order to have a defined value for...
* configure.in (out_file): Emit definition to config.status in order
        to have a defined value for configure.lang.
        * configure: Re-built.

From-SVN: r15134
1997-09-07 13:17:02 -06:00
Jan-Jaap van der Heijden
e41cea70d8 configure.in: Make symlink to as-new rather than as.new.
* configure.in: Make symlink to as-new rather than as.new.  Similarly
        for ld-new.
        * configure: Rebuilt.

From-SVN: r15133
1997-09-07 10:00:47 -06:00
Mark Mitchell
aa5f3bad3a decl.c (replace_defag): Undo previous change.
Sat Sep  6 10:20:27 1997  Mark Mitchell  <mmitchell@usa.net>

	* decl.c (replace_defag): Undo previous change.
	* lex.c (do_pending_defargs): Deal with member templates.

	* pt.c (is_member_template): Avoid crashing when passed a
	non-function argument.

From-SVN: r15131
1997-09-06 16:10:05 -04:00
Jason Merrill
98c1c66880 class.c (grow_method): Remove check for redeclaration.
* class.c (grow_method): Remove check for redeclaration.

Fri Sep  5 01:37:17 1997  Mark Mitchell  <mmitchell@usa.net>

	* cp-tree.h (INNERMOST_TEMPLATE_PARMS): New macro.
	(DECL_INNERMOST_TEMPLATE_PARMS): Likewise.
	(PRIMARY_TEMPLATE_P): Use it.
	* call.c (build_overload_call_real): Use it.
	* class.c (instantiate_type): Likewise.
	* decl.c (decls_match): Likewise.
	* method.c (build_overload_identifier): Likewise.
	* pt.c (push_template_decl): Likewise.
	(classtype_mangled_name): Likewise.
	(lookup_template_class): Likewise.

	* cp-tree.h (DECL_NTPARMS): Change name from DECL_NT_PARMS to
	DECL_NTPARMS to conform to usage elsewhere.
	* call.c (add_template_candidate): Likewise.
	* class.c (instantiate_type): Likewise.
	* pt.c (instantiate_template): Likewise.
	(get_bindings): Likewise.

	* class.c (grow_method): Use DECL_FUNCTION_TEMPLATE_P instead of
	is_member_template.

	* pt.c (unify): Undo changes to allow multiple levels of template
	parameters.
	(type_unification): Likewise.
	(fn_type_unification): Likewise.
	(get_class_bindings): Likewise.
	* cp-tree.h (Likewise).

	* decl.c (replace_defarg): Check that the type of the default
	parameter does not invlove a template type before complaining
	about the initialization.

	* error.c (dump_expr): Deal with template constant parameters in
	member templates correctly.

	* pt.c (is_member_template): Deal with class specializations
	correctly.
	(tsubst): Handle "partial instantiation" of member templates
	correctly.

Wed Sep  3 12:30:24 1997  Mark Mitchell  <mmitchell@usa.net>

	* pt.c (type_unification): Change calling squence to allow for
	multiple levels of template parameters.
	(tsubst_expr): Likewise.
	(tsubst): Likewise.
	(tsubst_copy): Likewise.
	(instantiate_template): Likewise.
	(unify): Likewise.
	* call.c (build_overload_call_real): Use it.
	(add_builtin_candidate): Use it.
	(build_new_method_call): Use it.
	* class.c (instantiate_type): Use it.
	* decl.c (grokdeclarator): Use it.
	* decl2.c (finish_file): Use it.
	* method.c (build_overload_identifier): Use it.

	* call.c (add_template_candidate):  Add additional parameter for
	the function return type.  Call fn_type_unification istead of
	type_unification.
	(build_user_type_conversion_1): Handle member templates.
	(build_new_function_call): Likewise.
	(build_new_op): Likewise.
	(build_new_method_call): Likewise.

	* class.c (grow_method): Don't give an error message indicating
 	that two member templates with the same name are ambiguous.
	(finish_struct): Treat member template functions just like member
 	functions.

	* cp-tree.h (check_member_template): Add declaration.
	(begin_member_template_processing): Likewise.
	(end_member_template_processing): Likewise.
	(fn_type_unification): Likewise.
	(is_member_template): Likewise.
	(tsubst): Change prototype.
	(tsubst_expr): Likewise.
	(tsubst_copy): Likewise.
	(instantiate_template): Likewise.
	(get_bindings): Likewise.

	* decl.c (decls_match): Handle multiple levels of template
	parameters.
	(pushdecl): Handle template type params just like other type
	declarations.
	(push_class_level_binding): Return immediately if the
	class_binding_level is NULL.
	(grokfndecl): If check_classfn() returns a member_template, use
	the result of the template, not the template itself.

	* decl2.c (check_member_template): New function.  Check to see
	that the entity declared to be a member template can be one.
	(check_classfn): Allow redeclaration of member template functions
	with different types; the new functions can be specializations or
	explicit instantiations.

	* error.c (dump_decl): Handle multiple levels of template
	parameters.
	(dump_function_decl): Update to handle function	templates.

	* lex.c (do_pending_inlines): Set up template parameter context
	for member templates.
	(process_next_inline): Likewise.

	* method. (build_overload_identifier): Adjust for multiple levels
	of template parameters.

	* parse.y (fn.def2): Add member templates.
	(component_decl_1): Likewise.

	* pt.c (begin_member_template_processing): New function.
	(end_member_template_processing): Likewise.
	(is_member_template): Likewise.
	(fn_type_unification): Likewise.
	(current_template_parms): Return a vector of all the template
	parms, not just the innermost level of parms.
	(push_template_decl): Deal with the possibility of member
	templates.
	(lookup_template_class): Likewise.
	(uses_template_parms): Likewise.
	(tsubst): Modify processing to TEMPLATE_TYPE_PARM and
	TEMPLATE_CONST_PARM to deal with multiple levels of template
	arguments.   Add processing of TEMPLATE_DECL to produce new
	TEMPLATE_DECLs from old ones.
	(do_decl_instantiation): Handle member templates.

	* search.c (lookup_fnfields_1): Handle member template conversion
	operators.

	* tree.c (cp_tree_equal): Check the levels, as well as the
	indices, of TEMPLATE_CONST_PARMs.

	* typeck.c (comptypes): Check the levels, as well as the indices,
	fo TEMPLATE_TYPE_PARMs.
	(build_x_function_call): Treat member templates like member
	functions.

Member templates.

From-SVN: r15130
1997-09-06 04:10:07 -04:00
Brendan Kehoe
dbfcb4beac Insert libio rewrite and its various changes from devo.
From-SVN: r15129
1997-09-06 03:44:38 -04:00
Jim Wilson
1496c1bb0b Fix `make distclean' failure.
* Makefile.in (distclean): Do MULTICLEAN before deleting Makefile.

From-SVN: r15128
1997-09-05 17:29:47 -07:00
Jim Wilson
1aeb1f6f0b Fix undefined reference to constructor with -O3 -fprofile-arcs.
* profile.c (output_func_start_profiler): Set DECL_EXTERNAL to zero.

From-SVN: r15127
1997-09-05 16:59:43 -07:00
Christian Kuehnke
770a0113e6 sparc.md: Add ultrasparc scheduling support.
* sparc/sparc.md: Add ultrasparc scheduling support.
	* sparc/sparc.h (RTX_COSTS): For MULT give v9 a cost of 25 insns.

From-SVN: r15126
1997-09-05 23:17:19 +00:00
Joel Sherrill
3fbc0b7094 * configure.in (*-*-rtems*): Do not build libgloss for rtems.
From-SVN: r15125
1997-09-05 23:15:09 +00:00
Jeffrey A Law
50bb736a7c libio.exp (test_libio): Use libstdc++_{include,link}_flags instead of g++_{include,link}_flags.
* lib/libio.exp  (test_libio): Use libstdc++_{include,link}_flags
        instead of g++_{include,link}_flags.

From-SVN: r15123
1997-09-05 15:37:51 -06:00
Jim Wilson
04940ba5b4 sdbout.c (plain_type_1, [...]): Verify that TYPE_DOMAIN has integer TYPE_{MAX,MIN}_VALUE before using them.
* sdbout.c (plain_type_1, case ARRAY_TYPE): Verify that TYPE_DOMAIN
        has integer TYPE_{MAX,MIN}_VALUE before using them.
Bring over from the FSF.

From-SVN: r15117
1997-09-05 14:06:11 -06:00
Philippe De Muyter
f5ffa99918 integrate.c (save_for_inline_copying): Use 0, not NULL_PTR, as initial value for real_label_map.
* integrate.c (save_for_inline_copying): Use 0, not NULL_PTR,
        as initial value for real_label_map.
        (copy_for_inline): Likewise.
Brought over from the FSF.

From-SVN: r15116
1997-09-05 14:03:37 -06:00
J"orn Rennecke
acceac1aea * sched.c (update_flow_info) When looking if to set found_split_dest
or found_orig_dest, look at all parts of a PARALLEL.
        * haifa-sched.c (update_flow_info): Likewise.

From-SVN: r15115
1997-09-05 13:36:35 -06:00
Jeffrey A Law
e20d4801db * config.sub: Handle v850-elf.
From-SVN: r15114
1997-09-05 12:25:50 -06:00
Jeffrey A Law
f84271d99d v850: New directory for v850 port.
* v850: New directory for v850 port.
        * v850/lib1funcs.asm: New file.
        * t-v850, v850.c, v850.h, v850.md, xm-v850.h: New files.
        * ginclude/va-v850.h: New file.
        * varargs.h, stdarg.h: Include va-mn10200.h.
        * configure.in (mn10200-*-*): New target.
        * Makefile.in (USER_H): Add va-mn10200.h.

From-SVN: r15104
1997-09-05 11:43:51 -06:00
Jeff Law
ae180d84fc v850: New directory for v850 port.
Fri Sep  5 10:08:44 1997  Jeffrey A Law  (law@cygnus.com)

        * v850: New directory for v850 port.
        * v850/lib1funcs.asm: New file.
        * t-v850, v850.c, v850.h, v850.md, xm-v850.h: New files.
        * ginclude/va-v850.h: New file.
        * varargs.h, stdarg.h: Include va-mn10200.h.
        * configure.in (mn10200-*-*): New target.
        * Makefile.in (USER_H): Add va-mn10200.h.

From-SVN: r15103
1997-09-05 11:41:24 -06:00
Jim Wilson
89cc6098e6 m68k.h (MACHINE_STATE_SAVE, [...]): Add __HPUX_ASM__ versions.
* m68k/m68k.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Add
        __HPUX_ASM__ versions.
Fixes build problems for m68k-hp-hpux*

From-SVN: r15102
1997-09-05 09:36:39 -06:00
Jeff Law
e7fd975751 Add new pointer.
From-SVN: r15101
1997-09-05 09:18:14 -06:00
Jeffrey A Law
c74f7db87d * install.sh: Delete duplicate install script.
From-SVN: r15100
1997-09-05 09:06:54 -06:00
Jeffrey A Law
fa8adee65f * install-sh: Delete duplicate install script.
From-SVN: r15099
1997-09-05 09:05:56 -06:00
Richard Henderson
18c6629a2b * cbrt.c: Tweak to work on more targets.
From-SVN: r15098
1997-09-05 00:19:00 -06:00
Jeffrey A Law
af818dc87c Makefile.in (clean): Don't remove config.cache.
* Makefile.in (clean): Don't remove config.cache.
        (distclean): Do it here instead.

From-SVN: r15097
1997-09-05 00:16:30 -06:00
Stan Cox
914ec131d6 reg-stack.c (subst_stack_regs): Pop the stack register for a computed goto which sets the same stack register.
* reg-stack.c (subst_stack_regs): Pop the stack register for a
        computed goto which sets the same stack register.

        * reg-stack.c (compare_for_stack_reg): Swap only if the source and
        destination are both on the regstack.
        (subst_stack_regs_pat): Put the destination at the top of the regstack.
Bring over regstack bugfixes from the FSF.

From-SVN: r15096
1997-09-04 23:14:46 -06:00
Jim Wilson
d5d1738a3a Fix mips-sgi-irix5.2 eh25 g++ testsuite failure.
* mips.md (nonlocal_goto_receiver): Define.

From-SVN: r15091
1997-09-04 19:36:53 -07:00
Jim Wilson
f4da78811e Fix another -fprofile-arcs bug from Joseph Myers <jsm28@cam.ac.uk>.
* profile.c (output_arc_profiler): Check next_insert_after for non
	NULL before deferencing it.

From-SVN: r15090
1997-09-04 19:17:56 -07:00
Jim Wilson
c1090daa15 * i386/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define to -fPIC.
From-SVN: r15088
1997-09-04 17:54:04 -06:00
Jason Merrill
71e10e8788 tweak
From-SVN: r15086
1997-09-04 19:10:35 -04:00