Commit Graph

16552 Commits

Author SHA1 Message Date
Jim Wilson
a9e9509942 Fix -mflat bug reported by Yamamoto Hirotaka.
* sparc.h (SPARC_INCOMING_INT_ARG_FIRST): Support TARGET_FLAT.

From-SVN: r19675
1998-05-11 10:44:31 -07:00
Richard Henderson
0f177d7c37 * sparc.md (ffsdi2): Disable. Simplify the expression as well.
From-SVN: r19674
1998-05-11 10:26:37 -07:00
Jim Wilson
28233641fc Fix stabs debug info bug reported by Stu Grossman.
* varasm.c (make_decl_rtl): Disable April 1 change.

From-SVN: r19673
1998-05-11 06:31:35 -07:00
Jason Merrill
a4d95b976d new
From-SVN: r19672
1998-05-11 07:57:04 -04:00
Mark Mitchell
4c7d0dff68 update documentation
From-SVN: r19671
1998-05-11 11:46:11 +00:00
Mark Mitchell
08362e16df * ptree.c (lang_print_xnode): Add missing `break'.
From-SVN: r19670
1998-05-11 11:37:13 +00:00
Mark Mitchell
2951e48e8d New test
From-SVN: r19669
1998-05-11 11:02:58 +00:00
Mark Mitchell
d861dea192 New test
From-SVN: r19668
1998-05-11 10:59:39 +00:00
Mark Mitchell
9b2e5e2208 * pt.c (tsubst): Remove duplicate check for IDENTIFIER_NODE.
From-SVN: r19667
1998-05-11 10:08:56 +00:00
Richard Henderson
dbf783868e Oops, aclocal.m4 wasn't up-to-date for last commit.
From-SVN: r19666
1998-05-11 02:22:09 -07:00
Richard Henderson
e55a5ea6f2 * configure.in (alpha-*-linux-gnu): Undo lossage from gcc2 merge.
From-SVN: r19665
1998-05-11 02:16:34 -07:00
Richard Henderson
e83015a9b5 alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '`'.
* alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '`'.
        * alpha.c (print_operand): Handle it.
        * alpha.md (fix_truncdfsi2, fix_truncsfsi2): New patterns and
        related define_splits.  Also add peepholes for SImode reload
        plus sign_extend lossage.

From-SVN: r19664
1998-05-11 01:31:20 -07:00
Mark Mitchell
830bfa74b0 call.c (add_template_candidate): Adjust for changes to fn_type_unification.
* call.c (add_template_candidate): Adjust for changes to
	fn_type_unification.
	(add_template_candidate_real): Likewise.
	(add_template_conv_candidate): Likewise.
	(build_user_type_conversion_1): Likewise.
	(build_new_function_call): Likewise.
	(build_object_call): Likewise.
	(build_new_op): Likewise.
	(build_new_method_call): Likewise.
	* class.c (instantiate_type): Likewise.
	* cp-tree.h (unification_kind_t): New type.
	(fn_type_unification): Adjust prototype.
	(type_unificaiton): Likewise.
	* pt.c (UNIFY_ALLOW_NONE): New macro.
	(UNIFY_ALLOW_MORE_CV_QUAL): Likewise.
	(UNIFY_ALLOW_LESS_CV_QUAL): Likewise.
	(UNIFY_ALLOW_DERIVED): Likewise.
	(unify): Change prototype.
	(maybe_adjust_types_for_deduction): New function.
	(check_cv_quals_for_unify): Likewise.
	(determine_specialization): Adjust.
	(fn_type_unification): Likewise.
	(type_unification): Likewise.
	(type_unification_real): Likewise.  Use
	maybe_adjust_types_for_deduction.  Fix mishandling of
	back-unification of template functions passed as arguments.  Pass
	appropriate combination of UNIFY_ALLOW_* to unify.
	(unify): Remove unused NTPARMS parameter.  Use
	check_cv_quals_for_unify.  Remove bogus code that allowed
	too-generous unification in order to adhere more closely to standard.
	(get_bindings_real): Adjust.
	(get_class_bindings): Likewise.
	* method.c (build_overload_identifier): Only use the innermost
	template arguments when mangling.
	* pt.c (tsubst_template_argument_vector): New function.
	(complete_template_args): Deal with the situation where the
	extra_args contain more than one level of arguments.
	(lookup_template_class): Deal with member template classes, which
	may have more than one level of arguments.
	(tsubst): Don't tsbust into the TREE_TYPE of an IDENTIFIER_NODE.
	Improve handling of member template classes.  Use
	DECL_PRIMARY_TEMPLATE instead of inline expansion.  Use
	tsubst_template_argument_vector where appropriate.
	(regenerate_decl_from_template): Break out from ...
	(instantiate_decl): Here.

From-SVN: r19663
1998-05-11 07:25:25 +00:00
Mark Mitchell
89ad74a33f lex.c (yyprint): Remove TYPENAME_ELLIPSIS.
Mon May 11 07:16:30 1998  Mark Mitchell  <mmitchell@usa.net>
	* lex.c (yyprint): Remove TYPENAME_ELLIPSIS.
	* parse.h: Regenerated.
	* parse.c: Really regenerated.

From-SVN: r19662
1998-05-11 07:18:46 +00:00
Kaveh R. Ghazi
320e7c40e7 genattr.c: Include stdarg.h/varargs.h.
* genattr.c: Include stdarg.h/varargs.h.  Change function
        `fatal' to use variable arguments instead of faking it with
        integer parameters.  Provide a prototype which also
        checks the format specifiers using ATTRIBUTE_PRINTF_1.
        * genattrtab.c: Likewise.
        * gencodes.c: Likewise.
        * genconfig.c: Likewise.
        * genemit.c: Likewise.
        * genextract.c: Likewise.
        * genflags.c: Likewise.
        * genopinit.c: Likewise.
        * genpeep.c: Likewise.
        * genrecog.c: Likewise.
        * genoutput.c: Likewise.  Similarly for function `error'.

From-SVN: r19661
1998-05-11 06:50:51 +00:00
Mark Mitchell
ce4a03916c cp-tree.h (finish_unary_op_expr): New function.
* cp-tree.h (finish_unary_op_expr): New function.
	(finish_id_expr): Likewise.
	(begin_new_placement): Likewise.
	(finish_new_placement): Likewise.
	(finish_declarator): Likewise.
	(finish_translation_unit): Likewise.
	(finish_parmlist): Likewise.
	(begin_class_definition): Likewise.
	(finish_class_definition): Likewise.
	(finish_default_args): Likewise.
	(finish_inline_definitions): Likewise.
	* parse.y (GCC_ASM_KEYWORD): Remove.
	(TYPENAME_ELLIPSIS): Likewise.
	* parse.c: Regenerated.
	Use new functions in semantics.c in the actions for many rules.
	* gxx.gperf (GCC_ASM_KEYWORD): Just use ASM_KEYWORD.
	* hash.h: Regenerated.
	* semantics.c (finish_expr_stmt): Allow NULL expr.
	(finish_unary_op_expr): New function, containing
	code previously in parse.y.
	(finish_id_expr): Likewise.
	(begin_new_placement): Likewise.
	(finish_new_placement): Likewise.
	(finish_declarator): Likewise.
	(finish_translation_unit): Likewise.
	(finish_parmlist): Likewise.
	(begin_class_definition): Likewise.
	(finish_class_definition): Likewise.
	(finish_default_args): Likewise.
	(finish_inline_definitions): Likewise.

From-SVN: r19660
1998-05-11 00:07:25 +00:00
Mark Mitchell
4785faf117 typeck.c (build_c_cast): Don't decay arrays and functions to pointer type when converting to a class type.
* typeck.c (build_c_cast): Don't decay arrays and functions to
	pointer type when converting to a class type.

From-SVN: r19659
1998-05-10 23:46:36 +00:00
Jeff Law
e1b1668d45 Another new test.
From-SVN: r19658
1998-05-10 17:00:31 -06:00
Jason Merrill
b3854d0e82 document
From-SVN: r19657
1998-05-10 18:54:14 -04:00
Jason Merrill
42c7b8075d class.c (finish_struct_1): Use OVL_CURRENT on TREE_VEC_ELT.
* class.c (finish_struct_1): Use OVL_CURRENT on TREE_VEC_ELT.
	* decl2.c (constructor_name_full): Likewise.
	* tree.c (mapcar): Add OVERLOAD support.
	* init.c (resolve_offset_ref): We must use basetype_path before we
	destroy it with a call to convert_pointer_to.

From-SVN: r19656
1998-05-10 18:53:45 -04:00
Jeff Law
e9b4fabf5c acconfig.h (HAVE_VOLATILE): Insert stub for autoconf.
* acconfig.h (HAVE_VOLATILE): Insert stub for autoconf.
        * alocal.m4 (GCC_C_VOLATILE): New autoconf test.
        * configure.in: Use GCC_C_VOLATILE.
        * system.h (volatile): Define as empty if no volatile support is
        available.
        * genemit.c (output_add_clobbers): Removed unused variable 'i' from
        generated fucntion.

From-SVN: r19653
1998-05-09 19:27:49 -06:00
Jeff Law
846522cbe7 Point folks to wwwdocs since those are the official versions.
From-SVN: r19651
1998-05-09 16:50:47 -06:00
Jason Merrill
b9082e8adb class.c (currently_open_class): New fn.
* class.c (currently_open_class): New fn.
	* decl.c (lookup_name_real): Use it.
	* search.c (lookup_field): Likewise.

From-SVN: r19650
1998-05-09 14:10:28 -04:00
Jason Merrill
6e940d05f4 new, update
From-SVN: r19649
1998-05-09 14:08:52 -04:00
Richard Henderson
f283421d4a loop.c (get_condition): Don't combine when either compare is MODE_CC.
* loop.c (get_condition): Don't combine when either compare is MODE_CC.
* alpha.c (alpha_emit_conditional_branch): New function.  Taken from
the body of beq; additionally set the mode of the branch to CCmode for
FP compares and not fast_math.
(alpha_emit_conditional_move): Always use a compare insn for FP
when not fast_math, as well as setting CCmode on the cmov.
* alpha.md (beq, bne, blt, et al): Call alpha_emit_conditional_branch.

From-SVN: r19645
1998-05-08 19:03:07 -07:00
Richard Henderson
7608016912 * machmode.h (COMPLEX_MODE_P): New macro.
From-SVN: r19644
1998-05-08 19:01:55 -07:00
Richard Henderson
53c0919dd9 * haifa-sched.c (print_exp): Fix typo.
From-SVN: r19643
1998-05-08 18:53:01 -07:00
Jeffrey A Law
23d297abc0 Bump for snapshot
From-SVN: r19638
1998-05-08 15:48:53 -06:00
Jeff Law
1553e85aee Remove previous dwarf2out.c change. It was incorrect according to Jim.
From-SVN: r19637
1998-05-08 11:34:01 -06:00
Michael Meissner
5b8ae21fa8 Hunk of m32r changes
From-SVN: r19636
1998-05-08 15:46:05 +00:00
Michael Meissner
cf879efaf4 Call fatal_insn instead of abort
From-SVN: r19635
1998-05-08 15:24:08 +00:00
H.J. Lu
d7c2e385ea reload1.c (emit_reload_insns): When performing expensive optimizations...
* reload1.c (emit_reload_insns): When performing expensive
        optimizations, do not output the last reload insn if OLD is
        not the dest of NSN and is in the src and is clobbered by INSN.

From-SVN: r19634
1998-05-08 07:14:32 -06:00
Paul Eggert
507c117699 dwarf2out.c: Don't assume that `.section ".text"' causes the assembler to treat .text as a...
* dwarf2out.c: Don't assume that `.section ".text"' causes the
        assembler to treat .text as a label for the start of that section,
        as this assumption is false for Solaris 2.x `as'.  Instead, output
        `.section ".text"; .LLtext0:' and use .LLtext0 in label contexts.
        (ABBREV_LABEL, DEBUG_INFO_LABEL, DEBUG_LINE_LABEL, TEXT_LABEL):
        New macros.
        (abbrev_label, debug_info_label, debug_line_label, text_label):
        New vars.
        (dwarf2out_init): Initialize the vars.  Output defn for text_label.
        (dwarf2out_finish): Output defns for the other 3 vars.
        (dw_val_node): Rename val_section to val_section_label, as it's
        now a label, not a section.
        (add_AT_section_offset): Arg is now a label, not a section.
        (print_die, output_die, output_compilation_unit_header,
        output_pubnames, output_aranges, output_line_info,
        dwarf2out_finish): In label contexts, output the section label,
        not the section.

From-SVN: r19633
1998-05-08 06:59:23 -06:00
Kaveh R. Ghazi
560bd19e94 Another minor system.h cutover:
* Makefile.in (genrtl.o): Depend on system.h.
        * gengenrtl.c (gencode): When creating genrtl.c, have it
        include system.h.

From-SVN: r19632
1998-05-08 06:51:04 +00:00
Martin v. Löwis
2c73f9f57a massive namespace patch
From-SVN: r19631
1998-05-07 22:06:26 -04:00
Andreas Schwab
0d33d22e9f t-linux: Remove extra stuff already included in config/t-linux.
* config/m68k/t-linux: Remove extra stuff already included in
	config/t-linux.

From-SVN: r19630
1998-05-08 02:01:41 +00:00
Manfred Hollstein
32f65aa0fc fixinc.wrap: Renamed from fixinc.math.
d
	* fixinc.wrap: Renamed from fixinc.math.  Put wrapper around
	curses.h if it contains `typedef char bool;', as suggested by
	Manfred Hollstein <manfred@s-direktnet.de>.
	* configure.in: Rename fixinc.math to fixinc.wrap.

From-SVN: r19629
1998-05-08 01:18:40 +00:00
Manfred Hollstein
dea4ae0d8a fixinc.wrap: Renamed from fixinc.math.
�
	* fixinc.wrap: Renamed from fixinc.math.  Put wrapper around
	curses.h if it contains `typedef char bool;', as suggested by
	Manfred Hollstein <manfred@s-direktnet.de>.
	* configure.in: Rename fixinc.math to fixinc.wrap.

From-SVN: r19628
1998-05-08 01:18:37 +00:00
Manfred Hollstein
85c262ac41 Renamed fixinc.math to fixinc.wrap
From-SVN: r19627
1998-05-08 01:17:24 +00:00
Jason Merrill
749adefd03 call.c (build_user_type_conversion_1): Handle second_conv properly for templates.
* call.c (build_user_type_conversion_1): Handle second_conv
	properly for templates.

From-SVN: r19626
1998-05-07 20:51:27 -04:00
Jim Wilson
bbeb7b6556 Fix specs file problem reported by Nathan Myers.
* gcc.c (read_specs): Handle missing blank line at end of specs file.

From-SVN: r19622
1998-05-07 13:49:41 -07:00
Jim Wilson
02e5620274 Disable remaining conditional move patterns.
* i386.md (movsicc, movhicc, movsicc_1, movhicc_1, movsfcc_1,
	movdfcc_1): Disable.

From-SVN: r19621
1998-05-07 12:32:12 -07:00
Jim Wilson
e445171e7c Fix host/target confusion with enable_threads, reported by Brendan Kehoe.
* configure.in (enable_threads): Rename to enable_threads_flag before
	main loop.  Set enable_threads to enable_threads_flag inside main
	loop.

From-SVN: r19615
1998-05-07 09:13:16 -07:00
Jim Wilson
458f4b6b09 More toplev.h cleanup, regnerate c-parse.c.
From-SVN: r19614
1998-05-07 08:07:43 -07:00
Michael Meissner
2d7cec0da4 Update copyright
From-SVN: r19613
1998-05-07 14:41:36 +00:00
Michael Meissner
a1b5a7e193 Restore LR in case __eabi was called multiple times
From-SVN: r19612
1998-05-07 14:39:02 +00:00
Andrew MacLeod
3474f46290 clear TREE_USED f;ag for build_type_variant types as well
From-SVN: r19611
1998-05-07 14:30:53 +00:00
Kaveh R. Ghazi
76b4b31ead Handle missing vfprintf() & _doprnt() functions with linked in modules,
plus do some general cleanup of variable argument handling.
        * aclocal.m4 (GCC_FUNC_VFPRINTF_DOPRNT): New macro.
        * configure.in: Add a call to GCC_FUNC_VFPRINTF_DOPRNT.
        (AC_CHECK_HEADERS): Remove unused check for varargs.h,sys/varargs.h.
        (AC_CHECK_FUNCS): Remove unused check for vprintf.
        * Makefile.in: Add support for linking in vfprintf.c and doprint.c.
        (cccp.o): Depend on gansidecl.h.
        (cexp.o): Likewise.
        * cccp.c: Convert from using PRINTF_ALIST/PRINTF_DCL to VPROTO as
        per the rest of gcc source.
        * cexp.y: Likewise.  Include gansidecl.h and remove all code made
        redundant.
        * cccp.c: Remove checks for HAVE_VPRINTF and the associated code
        used when vfprintf is missing.
        * cexp.y: Likewise.
        * gcc.c: Likewise.
        * genattrtab.c: Likewise.
        * mips-tfile.c: Likewise.
        * toplev.c: Likewise.
        * vfprintf.c: New file.
        * doprint.c: Likewise.

From-SVN: r19610
1998-05-07 11:44:09 +00:00
Jeffrey A Law
bebc46636d linux.h (ASM_COMMENT_START): Remove from here,
* config/linux.h (ASM_COMMENT_START): Remove from here,
	* config/linux-aout.h (ASM_COMMENT_START): and here,
	* config/i386/linux.h (ASM_COMMENT_START): to here,
	* config/i386/linux-aout.h (ASM_COMMENT_START): and here.
	* config/i386/linux-oldld.h (ASM_COMMENT_START): Define
	here as '#' too.

From-SVN: r19609
1998-05-07 03:21:51 -06:00
Jason Merrill
98134cade8 * pt.c (tsubst): Don't tsubst the type of an IDENTIFIER_NODE.
From-SVN: r19608
1998-05-06 22:18:59 -04:00