Commit Graph

16530 Commits

Author SHA1 Message Date
Jason Merrill
6eb3bb273d error.c (dump_simple_decl): Use DECL_CLASS_SCOPE_P and/or DECL_NAMESPACE_SCOPE_P.
* error.c (dump_simple_decl): Use DECL_CLASS_SCOPE_P and/or
	DECL_NAMESPACE_SCOPE_P.
	(lang_decl_name): Likewise.
	* pt.c (tsubst_friend_function, tsubst): Likewise.
	* decl.c (pushdecl, redeclaration_error_message, start_decl,
	cp_finish_decl, start_function): Likewise.
	* class.c (finish_struct_1): Likewise.
	* call.c (build_over_call): Likewise.
	(compare_ics): Use DERIVED_FROM_P.

From-SVN: r19705
1998-05-12 17:42:34 -04:00
Jim Wilson
b706d7f20d Fix aix --with-gnu-ld build failure reported by Brendan.
* collect2.c (main): Ignore do_collecting when COLLECT_EXPORT_LIST.

From-SVN: r19704
1998-05-12 13:07:09 -07:00
J"orn Rennecke
4117a96b01 * reload1.c (gen_reload): Create REG_EQUIV notes.
From-SVN: r19703
1998-05-12 20:28:01 +01:00
J"orn Rennecke
4d3eb41421 reload1.c (reload): Fix check for USEs to use code of pattern.
* reload1.c (reload): Fix check for USEs to use code of pattern.
	(choose_reload_regs): Remove dead variable use_insn.

From-SVN: r19702
1998-05-12 15:25:14 +01:00
Jeffrey A Law
b10c896640 * pa.h (DBX_CONTIN_LENGTH): Reduce to 3000 bytes.
From-SVN: r19701
1998-05-12 07:04:18 -06:00
Michael Meissner
cbb1345779 Use HAIFA_INLINE for inlining functions instead of __inline directly
From-SVN: r19700
1998-05-12 12:20:18 +00:00
Klaus Kaempf
1478d88a8c * alpha/vms.h (COMMON_ASM_OP, ASM_OUTPUT_ALIGNED_COMMON): Define.
From-SVN: r19699
1998-05-12 03:27:46 -07:00
Gavin Koch
a688e0b7d3 * config/mips/mips.h (ASM_OUTPUT_ALIGN): Remove trailing semi-colon.
From-SVN: r19698
1998-05-12 08:46:52 +00:00
Gavin Koch
ec350bddd2 mips.md (dslot): Move after definition of "cpu" attribute.
* config/mips/mips.md (dslot): Move after definition of "cpu"
	attribute.  Handle r3900 case.

From-SVN: r19697
1998-05-12 08:41:11 +00:00
Kaveh R. Ghazi
d4ba0ead26 Consolidate support for "String-ification" into system.h:
* system.h: Define the STRINGIFY macro here.
        * protoize.c: Not here.
        * gengenrtl.c (DEF_RTL_EXPR): Use the STRINGIFY macro.

From-SVN: r19696
1998-05-12 07:36:02 +00:00
Mark Mitchell
7bc6a9ffaa cp-tree.h (CANONICAL_TYPE_VARIANT): New macro.
* cp-tree.h (CANONICAL_TYPE_VARIANT): New macro.
	* method.c (build_mangled_name): Use it.
	(build_decl_overload_real): Likewise.

From-SVN: r19695
1998-05-12 07:27:15 +00:00
Mark Mitchell
07389efeea error.c (dump_simple_decl): New function, broken out from ...
* error.c (dump_simple_decl): New function, broken out from ...
	(dump_decl): Use it.

From-SVN: r19694
1998-05-12 07:23:31 +00:00
Jeff Law
fa03cbe950 Set emacs varaibles.
From-SVN: r19693
1998-05-11 17:49:19 -06:00
John Wehle
8a198bd23f varasm.c (assemble_variable): Compute the alignment of the data earlier so that both initialized and...
* varasm.c (assemble_variable): Compute the alignment of the data
        earlier so that both initialized and uninitialized variables are
        effected by DATA_ALIGNMENT.
        * tm.texi (DATA_ALIGNMENT): Updated appropriately.

From-SVN: r19692
1998-05-11 17:47:28 -06:00
Jeff Law
cf4ccd63bc #
* mpw-* Delete.  Not used.
	* ltconfig, ltmain.sh: Update to libtool 1.2a.
	* Makefile.in (CC_FOR_TARGET): Use $(TARGET_SUBDIR) when passing -B
	for newlib directory.
	(CXX_FOR_TARGET): Likewise.
Bring over from devo.

From-SVN: r19691
1998-05-11 17:00:52 -06:00
Jeff Law
9c7d6038b2 T
* mpw-* Delete.  Not used.
	* ltconfig, ltmain.sh: Update to libtool 1.2a.
	* Makefile.in (CC_FOR_TARGET): Use $(TARGET_SUBDIR) when passing -B
	for newlib directory.
	(CXX_FOR_TARGET): Likewise.
Bring over from devo.

From-SVN: r19690
1998-05-11 17:00:48 -06:00
Jeff Law
8475691625
* mpw-* Delete.  Not used.
	* ltconfig, ltmain.sh: Update to libtool 1.2a.
	* Makefile.in (CC_FOR_TARGET): Use $(TARGET_SUBDIR) when passing -B
	for newlib directory.
	(CXX_FOR_TARGET): Likewise.
Bring over from devo.

From-SVN: r19689
1998-05-11 17:00:44 -06:00
Jeff Law
bfed1ea086 l
* mpw-* Delete.  Not used.
	* ltconfig, ltmain.sh: Update to libtool 1.2a.
	* Makefile.in (CC_FOR_TARGET): Use $(TARGET_SUBDIR) when passing -B
	for newlib directory.
	(CXX_FOR_TARGET): Likewise.
Bring over from devo.

From-SVN: r19688
1998-05-11 17:00:43 -06:00
Jeff Law
5a4917e586 [multiple changes]
Thu Feb 12 16:29:01 1998  Ian Lance Taylor  <ian@cygnus.com>
        * getopt.h: Update to latest FSF version.
Fri Nov  7 10:34:09 1997  Rob Savoye  <rob@darkstar.cygnus.com>
        * libiberty.h: Add extern "C" { so it can be used with C++
        programs.
Thu Aug 28 19:41:42 1997  Andrew Cagney  <cagney@b1.cygnus.com>
        * libiberty.h (dupargv): Add prototype.
Bring over from devo.

From-SVN: r19687
1998-05-11 16:49:29 -06:00
Ian Lance Taylor
0aadd65786 config.guess: Use ${UNAME_MACHINE} rather than i386 for cygwin32 and mingw32.
* config.guess: Use ${UNAME_MACHINE} rather than i386 for cygwin32
        and mingw32.
Bring over from devo.

From-SVN: r19686
1998-05-11 16:36:06 -06:00
Jeff Law
337eb77305 [multiple changes]
Sat Apr 11 22:43:17 1998  J. Kean Johnston  <jkj@sco.com>
        * mh-svsv5: New file - support for SCO UnixWare 7 / SVR5.
Thu Mar 26 01:54:25 1998  Geoffrey Noer  <noer@cygnus.com>
        * mh-cygwin32: stop configuring and building dosrel.
Bring over from devo.

From-SVN: r19685
1998-05-11 16:29:42 -06:00
Jeff Law
fc438e2ad0 [multiple changes]
Tue Mar 24 10:13:07 1998  Jason Merrill  <jason@yorick.cygnus.com>
        * std/bastring.cc (basic_string::copy): Mark const here, too.
1998-03-23 15:59  Ulrich Drepper  <drepper@cygnus.com>
        * std/bastring.h (basic_string::copy): Mark copy function as const.
        Reported by Scott Schurr <scotts@ims.com>.
Bring over from devo.

From-SVN: r19684
1998-05-11 16:04:43 -06:00
Jeff Law
881060d07f mips.c: Prototype static functions.
�
        * mips.c: Prototype static functions.

From-SVN: r19681
1998-05-11 13:00:08 -06:00
Jeff Law
eace3df1bc mips.c: Prototype static functions.
�
        * mips.c: Prototype static functions.

From-SVN: r19680
1998-05-11 13:00:06 -06:00
Jeff Law
5cc70674e4 Belongs here.
From-SVN: r19679
1998-05-11 12:29:19 -06:00
Jeff Law
1ad35649f8 In the wrong directory.
From-SVN: r19678
1998-05-11 12:29:00 -06:00
Jim Wilson
b1a7d59104 Add missing comments pointed out by Andreas Schwab.
* regmove.c (fixup_match_2, find_matches, regmove_profitable):
	Add explanatory comments.

From-SVN: r19677
1998-05-11 11:11:22 -07:00
Richard Henderson
50324922d7 Put the movzr insn back into the comment.
From-SVN: r19676
1998-05-11 10:47:46 -07:00
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