Commit Graph

17002 Commits

Author SHA1 Message Date
Richard Earnshaw d499463f26 arm.c (arm_gen_constant): Rework to eliminate uninitialized variable warnings.
* arm.c (arm_gen_constant): Rework to eliminate uninitialized variable
warnings.  Don't generate scratch registers if only counting insns.
(find_barrier): Eliminate unused variable SRC.

From-SVN: r20087
1998-05-27 02:52:25 +00:00
Kevin Buhr 01fc71f4b1 * parse.y (base_class): Use is_aggr_type, not IS_AGGR_TYPE.
From-SVN: r20086
1998-05-26 21:25:47 -04:00
Jeff Law 8b150cb5be Daily bump.
From-SVN: r20085
1998-05-26 18:45:01 -06:00
Kriang Lerdsuwanakij 410c2fbabe pt.c (process_template_parm): Accept TYPENAME_TYPE nodes.
* pt.c (process_template_parm): Accept TYPENAME_TYPE nodes.
	(convert_nontype_argument): Handle cases when nontype template
	parameters become classes after substitution.

From-SVN: r20084
1998-05-26 19:54:23 -04:00
Manfred Hollstein 8da801cf85 thunk2.C: Setup this test to be expected to fail on m68k-motorola-sysv and...
�
	* g++.old-deja/g++.jason/thunk2.C: Setup this test to be expected to
	fail on m68k-motorola-sysv and m88k-motorola-sysv3.
	* g++.old-deja/g++.jason/thunk3.C: Add m68k-motorola-sysv and
	m88k-motorola-sysv3 to XFAIL.

From-SVN: r20083
1998-05-26 23:47:46 +00:00
Manfred Hollstein aa7ad670c5 toplev.h (rtx_def): Provide global declaration to avoid `limited scope' warnings.
* toplev.h (rtx_def): Provide global declaration to avoid
	`limited scope' warnings.

From-SVN: r20082
1998-05-26 23:42:31 +00:00
Manfred Hollstein 62fe00be68 toplev.h (rtx_def): Provide global declaration to avoid `limited scope' warnings.
�
	* toplev.h (rtx_def): Provide global declaration to avoid
	`limited scope' warnings.

From-SVN: r20081
1998-05-26 23:42:30 +00:00
Mark Mitchell ea4e080b25 friend.c (is_friend): Use comptypes, rather than == to compare types.
* friend.c (is_friend): Use comptypes, rather than == to compare
	types.  Modify for new representation of template friends.
	(make_friend_class): Likewise.
	* pt.c (tsubst_friend_class): Undo 1998-05-21 change.  Tweak.
	(instantiate_class_template): Deal with template friends.

From-SVN: r20080
1998-05-26 23:17:56 +00:00
Franz Sirl f5e23e0df7 980526-1.c: New test.
* gcc.dg/980526-1.c: New test.
        * gcc.c-torture/execute/980526-2.c: New test.

From-SVN: r20078
1998-05-26 17:01:48 -06:00
Jeffrey A Law 077e57d255 * gcc.dg/980523-1.c: Change "ppc" to "powerpc".
From-SVN: r20077
1998-05-26 16:55:47 -06:00
Jeff Law f095f92e43 Fix typo.
From-SVN: r20076
1998-05-26 16:54:19 -06:00
Mumit Khan 1a4bf22fb1 Makefile.in (gencheck.o): Use HOST_CC.
* Makefile.in (gencheck.o): Use HOST_CC.
        * i386/t-mingw32: New file.
        * configure.in (i386-*-mingw32*): Use.

From-SVN: r20073
1998-05-26 16:49:49 -06:00
Jeffrey A Law 74cd6867e7 * gcc.c-torture/execute/980526-1.c: New test.
From-SVN: r20072
1998-05-26 16:41:54 -06:00
Jeff Law a07c9e2b45 char *version_string = "egcs-2.91.33 19980526 (gcc2 ss-980502 experimental)";
From-SVN: r20068
1998-05-26 15:24:58 -06:00
Mark Mitchell a8f3f283e0 decl.c (store_parm_decls): Remove redundant call to expand_main_function.
* decl.c (store_parm_decls): Remove redundant call to
	expand_main_function.

From-SVN: r20067
1998-05-26 20:59:35 +00:00
Benjamin Kosnik a9afaadb7b decl.c (start_decl): Check for DECL_LANG_SPECIFIC before DECL_USE_TEMPLATE.
�
1998-05-26  Benjamin Kosnik  <bkoz@loony.cygnus.com>
	* decl.c (start_decl): Check for DECL_LANG_SPECIFIC before
 	DECL_USE_TEMPLATE.
more QT++ fixes.

From-SVN: r20066
1998-05-26 19:29:41 +00:00
Benjamin Kosnik dff3e828d1 decl.c (start_decl): Check for DECL_LANG_SPECIFIC before DECL_USE_TEMPLATE.
�
1998-05-26  Benjamin Kosnik  <bkoz@loony.cygnus.com>
	* decl.c (start_decl): Check for DECL_LANG_SPECIFIC before
 	DECL_USE_TEMPLATE.
more QT++ fixes.

From-SVN: r20065
1998-05-26 19:29:39 +00:00
Dave Love ef75df4210 alpha2.f: Add runtime test.
1998-05-26  Dave Love  <d.love@dl.ac.uk>
* g77.f-torture/execute/alpha2.f: Add runtime test.

From-SVN: r20064
1998-05-26 14:11:33 +00:00
Dave Love 75466740df Add runtime test.
From-SVN: r20063
1998-05-26 14:08:56 +00:00
Per Bothner 31b72b87a0 language_as_string: Handle lang_java.
�
	* language_as_string:  Handle lang_java.

From-SVN: r20062
1998-05-26 05:55:06 -07:00
Jason Merrill 7fb4a8f7e6 decl.c (pushdecl): Don't copy the type_decl.
* decl.c (pushdecl): Don't copy the type_decl.
	* class.c (pushclass): Always store TYPE_MAIN_VARIANT in
	current_class_type.
	* decl.c (grokdeclarator): Put typedefs on the type's obstack.
	* parse.y (complex_direct_notype_declarator): Use $1 to access
	scope of notype_qualified_id.

From-SVN: r20061
1998-05-26 07:43:52 -04:00
Jason Merrill 97cf4d2d5d new
From-SVN: r20060
1998-05-26 07:43:44 -04:00
Dave Brolley 276ca6eaf8 lex.c (parse_options,yy_cur,yy_lim): Add for cpplib.
1998-05-26  Dave Brolley  <brolley@cygnus.com>
	* lex.c (parse_options,yy_cur,yy_lim): Add for cpplib.
	(init_parse): Initialize cpplib interface.
	* Makefile.in (CXX_OBJS): Make sure dependencies nenver end with an
	empty continuation.

From-SVN: r20059
1998-05-26 06:47:58 -04:00
Richard Earnshaw ad076f4e6d arm.c: Include toplev.h.
* arm.c: Include toplev.h.
(arm_override_options): Add parentheses around use of tune_flags.
(arm_split_constant): Remove unused variable.
(arm_gen_constant, arm_gen_movstrqi, add_constant): Likewise.
(output_func_prologue, arm_expand_prologue): Likewise.
(arm_canonicalize_comparison): Make I unsigned; rework constants
accordignly.  Add missing paratheses around << operation.
(arm_rtx_costs): Correctly parenthesise MULT costs.  Add a DEFAULT
clause.
({load,store}_multiple_sequence): Initialize BASE_REG.
(select_dominance_cc_mode): Add DEFAULT clauses.
(broken_move): Return zero if the destination is not a register.
(arm_reorg): Move unused REGNO declaration into the dead code.
* arm.h (CANONICALIZE_COMPARISON): Ensure OP1 is updated.

From-SVN: r20058
1998-05-26 09:30:56 +00:00
Richard Earnshaw 4d818c8540 arm.c (bad_signed_byte_operand): New predicate function.
* arm.c (bad_signed_byte_operand): New predicate function.
* arm.h (PREDICATE_CODES): Add it to the list.
* arm.md (*extendqi[sh]i_insn): Split any addresses that ldrsb
can't handle.
(define_split): Two new splits for above insns.

From-SVN: r20057
1998-05-26 07:37:15 +00:00
Mark Mitchell 312a0c9073 decl.c (pushtag): Avoid crashing on erroneous input.
1998-05-25  Mark Mitchell  <mark@markmitchell.com>
	* decl.c (pushtag): Avoid crashing on erroneous input.

From-SVN: r20056
1998-05-26 07:02:37 +00:00
Jeff Law 954b0af841 Daily bump.
From-SVN: r20055
1998-05-25 18:45:02 -06:00
Martin v. Löwis 3ab52652be decl.c (push_namespace): Only produce one unique name for anonymous namespaces.
* decl.c (push_namespace): Only produce one unique name for
	anonymous namespaces.
	(get_unique_name): Remove.

From-SVN: r20054
1998-05-25 19:31:27 -04:00
Jeffrey A Law a1ec8ea1de Bump for snapshot
From-SVN: r20052
1998-05-25 16:50:00 -06:00
Mark Mitchell b265c11aae * call.c (tourney): Don't do any extra comparisons.
From-SVN: r20051
1998-05-25 18:20:09 +00:00
Jeffrey A Law c7f58590a7 Bump for snapshot
From-SVN: r20047
1998-05-25 05:56:26 -06:00
Dave Brolley 33b019ade8 cpperror.c (v_cpp_message): Remove static prototype.
Mon May 25 14:00:13 1998  Dave Brolley  <brolley@cygnus.com>
	* cpperror.c (v_cpp_message): Remove static prototype.
	* cpplib.c (v_cpp_message): Move prototype to cpplib.h.
	* cpplib.h (v_cpp_message): Add protoptype.
	(stdarg.h,varargs.h): Needed for v_cpp_message prototype.

From-SVN: r20046
1998-05-25 07:04:40 -04:00
Mark Mitchell 67ffc8124f decl2.c (build_anon_union_vars): Don't crash on empty sub-unions.
1998-05-25  Mark Mitchell  <mark@markmitchell.com>
	* decl2.c (build_anon_union_vars): Don't crash on empty sub-unions.
	* cp-tree.h (processing_template_parmlist): Declare.
	* decl.c (pushtag): Don't call push_template_decl when we
	shouldn't.
	* pt.c (processing_template_parmlist): New variable.
	(TMPL_ARGS_HAVE_MULTIPLE_LEVELS): New macro.
	(complete_template_args): Use it.
	(add_to_template_args): Likewise.
	(innermost_args): Likewise.
	(tsubst): Likewise.
	(begin_template_parm_list): Use processing_template_parmlist.
	(end_template_parm_list): Likewise.
	* cp-tree.h (ANON_UNION_TYPE_P): New macro.
	* decl.c (grokdeclarator): Use it.
	* decl2.c (grok_x_components): Likewise.
	* init.c (initializing_context): Likewise.
	* method.c (do_build_copy_constructor): Likewise.
	(do_build_assign_ref): Likewise.
	* search.c (compute_access): Likewise.
	* typeck.c (build_component_ref): Likewise.
	* decl.c (grokdeclarator): Don't give a cv-qualified version of an
	unnamed type a typedef name "for linkage purposes".
	* pt.c (lookup_template_class): Don't look at
	IDENTIFIER_CLASS_VALUE when there's no current_class_type.
	* method.c (build_overload_int): Handle error cases gracefully.
	* pt.c (instantiate_decl): Handle static member variables
	correctly.
	* pt.c (tsubst): Use the tsubst'd type when producing new
	TEMPLATE_PARM_INDEX nodes.

From-SVN: r20045
1998-05-25 10:28:16 +00:00
Jeff Law c21f27a762 Daily bump.
From-SVN: r20039
1998-05-24 18:45:02 -06:00
Mark Mitchell 7dd4bdf55d tree.c (cp_tree_equal): Handle pointers to member functions.
1998-05-24  Mark Mitchell  <mark@markmitchell.com>
	* tree.c (cp_tree_equal): Handle pointers to member functions.

From-SVN: r20038
1998-05-24 23:57:48 +00:00
Mark Mitchell 00c15f8deb call.c (maybe_handle_implicit_object): Handle QUAL_CONVs.
1998-05-24  Mark Mitchell  <mark@markmitchell.com>
	* call.c (maybe_handle_implicit_object): Handle QUAL_CONVs.  Make
	sure the type of the REF_BIND is a reference type.
	(maybe_handle_ref_bind, compare_ics): Rename reference_type* to
	ref_to_type* for clarity.

From-SVN: r20037
1998-05-24 23:55:20 +00:00
Mark Mitchell 1dcf683ec2 parse.y (xcond): Move call to condition_conversion ...
1998-05-24  Mark Mitchell  <mark@markmitchell.com>
	* parse.y (xcond): Move call to condition_conversion ...
	* semantics.c (finish_for_cond): Here.
	* parse.c: Regenerated.

From-SVN: r20036
1998-05-24 23:52:17 +00:00
Jason Merrill 6b57ac2977 decl.c (push_namespace): Namespaces have type void.
* decl.c (push_namespace): Namespaces have type void.
	* typeck2.c (incomplete_type_error): Complain about namespace
	used as expression.
	* typeck.c (decay_conversion): Likewise.
	* error.c (dump_expr): Support namespaces.

From-SVN: r20035
1998-05-24 18:37:10 -04:00
Jason Merrill 51c4eb9bbf * g++.old-deja/old-deja.exp: Strip leading directories.
From-SVN: r20034
1998-05-24 16:56:17 -04:00
Jeffrey A Law 61819ba58e Bump for snapshot
From-SVN: r20032
1998-05-24 14:36:19 -06:00
Jason Merrill 46dc515752 old-dejagnu.exp: All tests fail if we got an internal compiler error for the line.
* lib/old-dejagnu.exp: All tests fail if we got an internal compiler
	error for the line.  Don't run multiple tests for the same line.

From-SVN: r20028
1998-05-24 12:21:23 -04:00
Jason Merrill 60f06d2f91 new
From-SVN: r20021
1998-05-24 10:00:07 -04:00
Alexandre Oliva f098395833 Makefile.in (boostrap2-lean, [...]): new targets Forgot to commit.
* Makefile.in (boostrap2-lean, bootstrap3-lean,
        bootstrap4-lean): new targets
Forgot to commit.

From-SVN: r20016
1998-05-24 04:20:27 -06:00
Craig Burley 127e1a180e bad.def (FFEBAD_OPEN_UNSUPPORTED, [...]): Change these from warnings to errors.
Tue May 19 14:52:41 1998  Craig Burley  <burley@gnu.org>
        * bad.def (FFEBAD_OPEN_UNSUPPORTED, FFEBAD_INQUIRE_UNSUPPORTED,
        FFEBAD_READ_UNSUPPORTED, FFEBAD_WRITE_UNSUPPORTED,
        FFEBAD_QUAD_UNSUPPORTED, FFEBAD_BLOCKDATA_STMT,
        FFEBAD_TRUNCATING_CHARACTER, FFEBAD_TRUNCATING_HOLLERITH,
        FFEBAD_TRUNCATING_NUMERIC, FFEBAD_TRUNCATING_TYPELESS,
        FFEBAD_TYPELESS_OVERFLOW): Change these from warnings
        to errors.

From-SVN: r20015
1998-05-24 08:33:15 +00:00
Jeffrey A Law f5c57ba7d0 Bump for snapshot
From-SVN: r20003
1998-05-23 20:09:00 -06:00
Manfred Hollstein e7f62ad38b Makefile.in (ENQUIRE_CFLAGS, [...]): Move down to the end of the Makefile.
* Makefile.in (ENQUIRE_CFLAGS, ENQUIRE_LDFLAGS): Move down to the end
	of the Makefile.
	(FLOAT_H_TEST): Likewise.
	(ENQUIRE): Likewise.
	(float.h-nat): Likewise.
	(float.h-cross): Likewise.
	(enquire): Likewise.
	(enquire.o): Likewise.
	(stmp-int-hdrs): Fix comment about enquire; depend upon gfloat.h.
	(stmp-headers): Move actions to stmp-int-hdrs, retaining only a
	no-op.
	(FLOAT_H): Remove old float.h-nat version; move current definition
	to CROSS_FLOAT_H location.
	(all.cross): Remove comments about enquire stuff.
	* Makefile.in (all.cross): Swap $(LIBGCC) and $(STMP_FIXPROTO).
	(rest.encap): Likewise.
	(libgcc2.ready): Depend upon $(STMP_FIXPROTO)

From-SVN: r20000
1998-05-23 18:44:00 -06:00
Jeff Law d7336000fa Daily bump.
From-SVN: r19999
1998-05-23 18:29:13 -06:00
Andreas Schwab 7a87758dfb m68k.h: Declare more functions used in macros.
* m68k.h: Declare more functions used in macros.
        (REG_CLASS_CONTENTS): Completely embrace initializer.
        * m68k.md (adddi3, subdi3): Add abort call to avoid warning
        about returning no value.
        * cse.c (find_best_addr): Declare p and found_better only if
        needed.
        * dbxout.c (dbxout_continue): Define only if DBX_CONTIN_LENGTH > 0.
        * dwarfout.c (string_length_attribute): #if 0 away.
        * function.c (expand_function_end): Define varible blktramp only
        if needed.
        * jump.c (find_insert_position): Define only if !HAVE_cc0.
        * loop.c (combine_givs_p): Define variable tem only if needed.
        * real.c: Comment out unused functions eabs, eround,
        e{24,53,64,113}toasc and eiinfin.

From-SVN: r19998
1998-05-23 17:14:57 -06:00
Alexandre Oliva 10ad38cac0 Makefile.in (boostrap2-lean, [...]): New targets.
* Makefile.in (boostrap2-lean, bootstrap3-lean,
        bootstrap4-lean): New targets.

From-SVN: r19997
1998-05-23 16:46:40 -06:00
Alexandre Oliva eaed7b419f Makefile.in (boostrap2-lean, [...]): new targets
* Makefile.in (boostrap2-lean, bootstrap3-lean,
        bootstrap4-lean): new targets

From-SVN: r19996
1998-05-23 16:45:35 -06:00