Commit Graph

19138 Commits

Author SHA1 Message Date
Mark Mitchell
ed87f9c827 splay-tree.c: New file.
* splay-tree.c: New file.
	* Makefile.in (CFILES): Add it.
	(REQUIRED_OFILES): Likewise.
	(splay-tree.o): Add dependencies.

From-SVN: r23210
1998-10-21 09:19:13 +00:00
Nick Clifton
7e58a4d3ea Document ARM specific command line switches.
From-SVN: r23209
1998-10-21 09:16:23 +00:00
Alexandre Petit-Bianco
866e9df806 class.c (emit_register_classes): Renamed from emit_register_class.
Wed Oct 21 07:54:11 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* class.c (emit_register_classes): Renamed from
 	emit_register_class.
	* java-tree.h (emit_register_classes): Prototype renamed from
 	emit_register_class.
	* jcf-parse.c (yyparse): Call emit_register_classes once before
 	returning.
	* parse.y (java_expand_classes): No longer register classes.
Prevents the generation of multiple static constructor for a
compilation unit.

From-SVN: r23208
1998-10-21 01:00:11 -07:00
Jason Merrill
cd916110da * typeck.c (build_component_ref): Use of a type here is an error.
From-SVN: r23207
1998-10-20 23:52:48 -04:00
Jeff Law
352f608aaa Daily bump.
From-SVN: r23206
1998-10-20 18:45:02 -06:00
Graham Stott
7655071ffc reload.c (loc_mentioned_in_p): Add missing braces to bind else to correct if.
8
	* reload.c (loc_mentioned_in_p): Add missing braces to bind
	else to correct if.

From-SVN: r23205
1998-10-20 12:07:49 -06:00
Graham Stott
b09df90bd5 reload.c (loc_mentioned_in_p): Add missing braces to bind else to correct if.
�
	* reload.c (loc_mentioned_in_p): Add missing braces to bind
	else to correct if.

From-SVN: r23204
1998-10-20 12:07:47 -06:00
Tom Tromey
645278bcac * gcc.c (option_map): Added --classpath and --CLASSPATH.
From-SVN: r23203
1998-10-20 17:02:48 +00:00
Andreas Schwab
e0c13971df cplus-dem.c (demangle_qualified): Fix off-by-one when checking range of 'K' index.
Tue Oct 20 12:29:02 1998  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
        * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
        range of 'K' index.

From-SVN: r23202
1998-10-20 12:30:45 +00:00
Alexandre Petit-Bianco
b351b287b7 class.c (is_compiled_class): New local variable seen_in_zip.
Tue Oct 20 09:15:38 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* class.c (is_compiled_class): New local variable
 	seen_in_zip. Identify classes found in currently compiled source
 	file(s).
	* decl.c (complete_start_java_method): Fixed typo.
	* java-tree.h (CLASS_FROM_CURRENTLY_COMPILED_SOURCE_P,
 	HAS_BEEN_ALREADY_PARSED_P, IS_A_COMMAND_LINE_FILENAME_P): New macros.
	(CLASS_P): Moved around.
	(java_parse_abort_on_error): Macro moved from jcf-parse.c
	* jcf-parse.c (java_parse_abort_on_error): Macro moved to
 	java-parse.h
	(jcf_parse_source): Changed leading comment. Removed unnecessary
 	fclose and CLASS_FROM_SOURCE_P marking.
	(parse_source_file): New local variables remember_for_generation
 	and filename. Mark parsed file name identifier node. Removed block
 	executed when parse_only was null. Set remember_for_generation.
	Use it as an argument to java_pop_parser_context.
	(yyparse): New local variables several_files, list, next node and
 	current_file_list. Split ampersand separated file names into
 	current_file_list. Iterate through the list and parse accordingly.
	* parse.h (java_pop_parser_context): New function prototype.
	* parse.y (ctxp_for_generation): New static global variable.
	(java_pop_parser_context): New argument generate. Link popped ctxp
 	to ctxp_for_generation list accordingly.
	(java_complete_expand_methods): Fixed indentation.
	(java_expand_classes): New function.
Add support for the use of `&' as a file separator on the jc1 command
line.

From-SVN: r23201
1998-10-20 04:16:37 -07:00
Per Bothner
2331d640ce *** empty log message ***
From-SVN: r23200
1998-10-20 03:56:33 -07:00
Per Bothner
a533752270 *** empty log message ***
From-SVN: r23199
1998-10-20 03:17:08 -07:00
Gavin Romig-Koch
cb2fdc843b regclass.c (fix_register): Add error message.
* regclass.c (fix_register): Add error message.
	* invoke.texi (-fcall-used-REG,-fcall-saved-REG): Note the
	  new error message

From-SVN: r23198
1998-10-20 08:03:37 +00:00
Kaveh R. Ghazi
0ca3fb0a16 New warning, `missing-noreturn':
* c-decl.c (warn_missing_noreturn): New global variable.
        (c_decode_option): Check for new flags -W{no-}missing-noreturn.
        (finish_function): Implement missing noreturn warning.
        * c-tree.h (warn_missing_noreturn): Declare extern.
        * invoke.texi: Document new flags.
        * toplev.c (documented_lang_options): Add description.

From-SVN: r23197
1998-10-20 07:32:08 +00:00
Michael Hayes
f1c374cbf1 c4x.c (c4x_parallel_process): Disable until BCT loop optimization stable for the C4x.
* config/c4x/c4x.c (c4x_parallel_process): Disable until BCT
	loop optimization stable for the C4x.
	(c4x_rptb_info_t, c4x_dump, c4x_rptb_in_range, c4x_rptb_unjumped_loop,
	c4x_rptb_find_comp_and_jump, c4x_rptb_loop_info_get,
	c4x_rptb_emit_init, c4x_rptb_process): Deleted (superceded by BCT
	loop optimization).
	(c4x_address_conflict): Be more paranoid when packing a volatile
	memref in a parallel load/store.

From-SVN: r23196
1998-10-20 03:18:57 +00:00
Michael Hayes
95cb020334 c4x.md (repeat_block_top, [...]): Deleted.
* config/c4x/c4x.md (repeat_block_top, repeat_block_end,
 	repeat_block_filler): Deleted.
	(*ashlqi3_set, *ashrqi3_const_set, *ashrqi3_nonconst_clobber):
 	Condition code not set if destination register from 'c' class.
	(*subbqi3_carry_clobber): Fix typo.

From-SVN: r23195
1998-10-20 03:01:10 +00:00
Jeff Law
c171c2878d Daily bump.
From-SVN: r23194
1998-10-19 18:45:02 -06:00
Martin v. Löwis
163c4dc51f New test case.
From-SVN: r23192
1998-10-19 23:23:04 +00:00
Jeffrey A Law
15f8470fd0 gcse.c (compute_hash_table): Correctly identify hard regs which are clobbered across calls.
* gcse.c (compute_hash_table): Correctly identify hard regs which are
        clobbered across calls.

From-SVN: r23191
1998-10-19 17:17:48 -06:00
Jeff Law
18e765cbda [multiple changes]
1998-10-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
        * reorg.c (steal_delay_list_from_target) Check for insns that
        modify the condition codes and effect the direction of the jump
        in the sequence.
Sat Oct 17 13:09:09 1998  Graham  <grahams@rcp.co.uk>
        * function.c (purge_addressof_1): Replace call to
        emit_insns_before() with emit_insn_before().

From-SVN: r23189
1998-10-19 14:23:44 -06:00
Jason Merrill
ea4d3ff6e0 new
From-SVN: r23188
1998-10-19 16:13:26 -04:00
Jason Merrill
1590ea76e9 update
From-SVN: r23187
1998-10-19 16:13:15 -04:00
Jason Merrill
51924768e7 Revamp references to member functions.
* method.c (hack_identifier): Call build_component_ref for a
	reference to a member function.
	* typeck.c (build_component_ref): Only return a single function
	if it's static.  Otherwise, return a COMPONENT_REF.
	(build_x_function_call): Handle a COMPONENT_REF.
	(build_unary_op): Handle all unknown-type things.
	* decl2.c (arg_assoc): Handle COMPONENT_REF.
	* class.c (instantiate_type): Complain if the function we get is a
	nonstatic member function.  Remove code for finding "compatible"
	functions.
	* pt.c (tsubst_copy): Handle NOP_EXPR.
	* tree.c (build_dummy_object): New fn.
	(maybe_dummy_object): New fn.
	(is_dummy_object): New fn.
	* cp-tree.h: Declare them.
	* cvt.c (cp_convert_to_pointer): Use maybe_dummy_object.
	* error.c (dump_expr, case OFFSET_REF): Use is_dummy_object.
	* init.c (build_member_call): Use maybe_dummy_object and
	is_dummy_object.
	(build_offset_ref): Use maybe_dummy_object.
	(resolve_offset_ref): Use is_dummy_object.
	* typeck.c (build_x_function_call): Call build_dummy_object.
	(unary_complex_lvalue): Call is_dummy_object.
	* typeck.c (build_component_addr): Make sure field is a field.
	* call.c (build_new_op): Delete obsolete code.
	* pt.c (tsubst, TEMPLATE*PARM*): Abort if we don't have any args.

From-SVN: r23186
1998-10-19 16:08:23 -04:00
Mike Stump
4f2905fb4b * libgcc2.c (__pure_virtual): Call __terminate instead of _exit.
From-SVN: r23185
1998-10-19 15:34:53 -04:00
Per Bothner
8b27f22596
Undo some mistakes from previous merge.

From-SVN: r23184
1998-10-19 06:43:57 -07:00
Per Bothner
c20012b633
Undo some mistakes from previous merge.

From-SVN: r23183
1998-10-19 06:43:55 -07:00
Jeffrey A Law
dbcce8f8e8 * 981019-1.c: New test.
From-SVN: r23182
1998-10-19 07:04:43 -06:00
Jeff Law
2fb5435af8 Fix dumb thinko.
From-SVN: r23181
1998-10-19 07:03:32 -06:00
Bernd Schmidt
51d87cd905 * jump.c (sets_cc0_p): Compile only if HAVE_cc0.
From-SVN: r23180
1998-10-19 06:28:19 -06:00
Jeffrey A Law
e1f7435e41 loop.c (scan_loop): Be more selective about what invariants are moved out of a loop.
* loop.c (scan_loop): Be more selective about what invariants are
        moved out of a loop.

From-SVN: r23178
1998-10-19 06:20:32 -06:00
Jeffrey A Law
38bf4c6fcd Bump for snapshot
From-SVN: r23176
1998-10-19 04:47:33 -06:00
Jeffrey A Law
c3cad2213e libgcc2.c (eh_context_static): Do not call malloc to allocate the static eh_context structure.
* libgcc2.c (eh_context_static): Do not call malloc to allocate the
        static eh_context structure.

From-SVN: r23175
1998-10-19 04:44:52 -06:00
Jeffrey A Law
b1fc873cc2 reload1.c (reload_reg_free_before_p): Hack.
* reload1.c (reload_reg_free_before_p): Hack.  Return 0 if EQUIV
        is nonzero.  This is temporary!

From-SVN: r23174
1998-10-19 04:30:23 -06:00
Dave Love
495e6ebb40 configure.in: Use AC_CONFIG_AUX_DIR.
1998-10-19  Dave Love  <d.love@dl.ac.uk>
	* configure.in: Use AC_CONFIG_AUX_DIR.

From-SVN: r23173
1998-10-19 10:14:19 +00:00
Bernd Schmidt
8e2f6e35ba combine.c (recog_for_combine): Lose PADDED_SCRATCHES arg.
* combine.c (recog_for_combine): Lose PADDED_SCRATCHES arg.  All
	callers changed.
	(try_combine): Don't update max_scratch.
	* flow.c (max_scratch, num_scratch): Delete variables.
	(life_analysis_1): Don't initialize max_scratch.
	(propagate_block): Don't update max_scratch.
	(mark_set_1): Don't increment num_scratch.
	* regs.h (max_scratch): Delete declaration.

From-SVN: r23172
1998-10-19 03:47:55 -06:00
Jeff Law
02bc973394 sched.c (update_flow_info): Handle death notes made invalid by instruction splitting.
�
        * sched.c (update_flow_info): Handle death notes made invalid by
        instruction splitting.  Partially reverts Oct 15, 1998 patch.
        * haifa-sched.c (update_flow_info): Likewise.

From-SVN: r23171
1998-10-19 03:44:36 -06:00
Jeff Law
5f5702e21c sched.c (update_flow_info): Handle death notes made invalid by instruction splitting.
�
        * sched.c (update_flow_info): Handle death notes made invalid by
        instruction splitting.  Partially reverts Oct 15, 1998 patch.
        * haifa-sched.c (update_flow_info): Likewise.

From-SVN: r23170
1998-10-19 03:44:34 -06:00
Jeff Law
577a8b78ca sched.c (update_flow_info): Handle death notes made invalid by instruction splitting.
P
        * sched.c (update_flow_info): Handle death notes made invalid by
        instruction splitting.  Partially reverts Oct 15, 1998 patch.
        * haifa-sched.c (update_flow_info): Likewise.

From-SVN: r23169
1998-10-19 03:44:31 -06:00
Kaveh R. Ghazi
6fbe990127 Warning fixes:
* Makefile.in (lex.o): Depend on dwarfout.h.
        * lang-specs.h: Add missing braces in initializer.
        * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.

From-SVN: r23168
1998-10-19 09:17:21 +00:00
Jeff Law
f2e4552251 Daily bump.
From-SVN: r23167
1998-10-18 18:45:01 -06:00
Jeff Law
1b8a4ef39f config.if (cxx_interface, [...]): Do not try to set these if the appropriate directories and files to not exist.
P
        * config.if (cxx_interface, libstdcxx_interface): Do not try to set
        these if the appropriate directories and files to not exist.

From-SVN: r23166
1998-10-18 11:37:10 -06:00
Jeff Law
35cd256514 config.if (cxx_interface, [...]): Do not try to set these if the appropriate directories and files to not exist.
�
        * config.if (cxx_interface, libstdcxx_interface): Do not try to set
        these if the appropriate directories and files to not exist.

From-SVN: r23165
1998-10-18 11:37:09 -06:00
Jeffrey A Law
6acdd0fd75 function.c (uninitialized_vars_warning): Do not warn for a VAR_DECL if it has a nonzero DECL_INITIAL.
* function.c (uninitialized_vars_warning): Do not warn for a VAR_DECL
        if it has a nonzero DECL_INITIAL.

From-SVN: r23164
1998-10-18 10:34:41 -06:00
Martin v. Löwis
39ee4d93e6 decl2.c (validate_nonmember_using_decl): Fix using-directives of std if std is ignored.
* decl2.c (validate_nonmember_using_decl): Fix using-directives of
        std if std is ignored.

From-SVN: r23162
1998-10-18 09:21:17 +00:00
Jason Merrill
820fcad8d1 * decl.c (grokvardecl): Fix thinko.
From-SVN: r23161
1998-10-18 00:18:02 -04:00
Jason Merrill
1eab9b5614 decl.c (grokdeclarator): Embedded attrs bind to the right, not the left.
* decl.c (grokdeclarator): Embedded attrs bind to the right,
	not the left.

From-SVN: r23160
1998-10-18 00:11:07 -04:00
Jason Merrill
52fbc84763 parse.y (fn.def2): Fix 'attrs' format.
* parse.y (fn.def2): Fix 'attrs' format.
	* Makefile.in (CONFLICTS): Update.
	* parse.y (expr_or_declarator_intern): New rule.
	(expr_or_declarator, direct_notype_declarator, primary,
	functional_cast): Use it.
	(notype_declarator_intern): New rule.
	(notype_declarator, complex_notype_declarator): Use it.

From-SVN: r23159
1998-10-17 23:10:53 -04:00
Jeff Law
176b6042f7 Daily bump.
From-SVN: r23158
1998-10-17 18:45:02 -06:00
Jason Merrill
79c4d4b7a8 decl.c (grokfndecl): Set DECL_CONTEXT to namespace if appropriate.
* decl.c (grokfndecl): Set DECL_CONTEXT to namespace if appropriate.
	(grokvardecl): Likewise.

From-SVN: r23157
1998-10-17 19:01:39 -04:00
Kaveh R. Ghazi
1ddb2906cc Warning fixes:
* class.c (make_method_vec): Cast 1st argument of `bzero' to (PTR).
        (add_method): Likewise for arguments 1 & 2 of `bcopy'.
        * decl.c (signal_catch): Mark with ATTRIBUTE_NORETURN.
        * pt.c (process_partial_specialization): Cast 1st argument of
        `bzero' to (PTR).
        * tree.c (build_base_fields): Cast `base_align' to (int) when
        comparing against one.

From-SVN: r23156
1998-10-17 20:33:45 +00:00