Commit Graph

16785 Commits

Author SHA1 Message Date
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
Manfred Hollstein
8d45987f20 Makefile.in (all.cross): Swap $(LIBGCC) and $(STMP_FIXPROTO).
* Makefile.in (all.cross): Swap $(LIBGCC) and $(STMP_FIXPROTO).
	(rest.encap): Likewise.

From-SVN: r19993
1998-05-23 16:41:17 -06:00
Jeff Law
269df0f8c6 * test_summary: find good awk (copied from warn_summary).
From-SVN: r19992
1998-05-23 16:40:01 -06:00
Jeffrey A Law
57fec042aa * warn_summary, test_summary: Moved into the contrib directory.
From-SVN: r19991
1998-05-23 16:36:37 -06:00
Jeff Law
d258564a1d Moved here from the gcc subdir.
From-SVN: r19990
1998-05-23 16:35:33 -06:00
Andreas Schwab
10c62dce04 * Makefile.in (distclean): Don't remove alloca-conf.h
From-SVN: r19987
1998-05-23 16:32:53 -06:00
Manfred Hollstein
97263b8cbd toplev.h (tree_node): Provide global declaration to avoid `limited scope' warnings.
* toplev.h (tree_node): Provide global declaration to avoid
        `limited scope' warnings.

From-SVN: r19986
1998-05-23 16:29:52 -06:00
Jeffrey A Law
fd71378bb0 * gcc.dg/980523-1.c: New test.
From-SVN: r19985
1998-05-23 16:28:21 -06:00
Robert Lipe
a8c24967fc test_summary: Display section breaks for each entry in a multilibbed target's output.
* test_summary: Display section breaks for each entry
        in a multilibbed target's output.

From-SVN: r19980
1998-05-23 16:24:55 -06:00
Dave Love
6e4cdba004 970915-0.f: New test.
1998-05-23  Dave Love  <d.love@dl.ac.uk>
	* g77.f-torture/compile/970915-0.f: New test.

From-SVN: r19973
1998-05-23 09:58:17 +00:00
Dave Love
2b9a5752b9 New test.
From-SVN: r19972
1998-05-23 09:54:41 +00:00
Dave Love
7b6a7d3b5f More commentary.
From-SVN: r19971
1998-05-23 09:51:54 +00:00
Craig Burley
6829256fb4 com.c (ffecom_finish_symbol_transform_): Don't transform statement (nested) functions...
Sat May 23 06:32:52 1998  Craig Burley  <burley@gnu.org>
	* com.c (ffecom_finish_symbol_transform_): Don't transform
	statement (nested) functions, to avoid gcc compiling them
	and thus producing linker errors if they refer to undefined
	exteral functions.  But warn if they're unused and -Wunused.

From-SVN: r19970
1998-05-23 09:45:45 +00:00
Jason Merrill
e125ac2661 tweak
From-SVN: r19969
1998-05-22 22:20:21 -04:00
Jason Merrill
cf22ce453e * lib/old-dejagnu.exp: Ignore C++ "instantiated from" mesages.
From-SVN: r19968
1998-05-22 22:20:08 -04:00
Jason Merrill
1139b3d870 cp-tree.def: Add SRCLOC.
* cp-tree.def: Add SRCLOC.
	* cp-tree.h: Add struct tree_srcloc and accessor macros.
	* tree.c (build_srcloc, build_srcloc_here): New fns.
	* pt.c (add_pending_template): Use build_srcloc_here.
	(push_tinst_level): Update last_template_error_tick before erroring.
	(instantiate_decl): Restore lineno and input_filename before
	calling add_pending_template.
	* decl2.c (finish_file): Set up lineno and input_filename for
	pending templates.

From-SVN: r19967
1998-05-22 22:18:33 -04:00
Jason Merrill
62c154ed39 decl.c (lang_print_error_function): New fn.
* decl.c (lang_print_error_function): New fn.
	(init_decl_processing): Set print_error_function to use it.
	* errfn.c (cp_thing): Don't call maybe_print_template_context here.
	* call.c (maybe_handle_ref_bind): Propagate ICS_USER_FLAG and
	ICS_BAD_FLAG.
	* cvt.c (ocp_convert): Don't set LOOKUP_NO_CONVERSION for
	copy-initialization.

From-SVN: r19966
1998-05-22 19:13:28 -04:00
Richard Henderson
bd070e1aa9 expr.c (expand_expr): For {BITFIELD,COMPONENT,ARRAY}_REF...
* expr.c (expand_expr): For {BITFIELD,COMPONENT,ARRAY}_REF, if the
offset's mode is not ptr_mode, convert it.

From-SVN: r19965
1998-05-22 16:03:25 -07:00