Commit Graph

21373 Commits

Author SHA1 Message Date
Tom Tromey
4cc48683f6 cplus-dem.c (consume_count): If `count' wraps, return 0 and don't advance input pointer.
* cplus-dem.c (consume_count): If `count' wraps, return 0 and
	don't advance input pointer.
	(demangle_class_name): If consume_count didn't find a count, do
	nothing.  Don't bother with `strlen' sanity check; consume_count
	does it for us.

From-SVN: r26068
1999-03-30 16:12:25 +00:00
Jason Merrill
85a0b07565 new
From-SVN: r26067
1999-03-30 10:04:45 -05:00
Jason Merrill
51980de69e libgcc2.c (throw_helper): Just return the SP offset, rather than a whole udata.
* libgcc2.c (throw_helper): Just return the SP offset, rather than
	a whole udata.  Include args_size in the offset.
	(__throw, __rethrow): Adjust.

From-SVN: r26066
1999-03-30 09:12:49 -05:00
Alexandre Petit-Bianco
1504b2b439 [multiple changes]
Tue Mar 30 11:31:53 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* parse.y (patch_bc_statement): Fixed identation and a bogus
 	`printf' format.
Tue Mar 30 11:29:29 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* parse.y (patch_assignment): Allow static variables in other
 	classes to be assigned.

From-SVN: r26065
1999-03-30 03:35:27 -08:00
Kaveh R. Ghazi
04d87103d4 Warning fixes:
* sta.c (ffesta_ffebad_1sp, ffesta_ffebad_1st, ffesta_ffebad_2st):
        Const-ify a char*.
        * sta.h (ffesta_ffebad_1sp, ffesta_ffebad_1st, ffesta_ffebad_2st):
        Likewise.
        * stb.c (ffestb_local_u_): Likewise.
        (ffestb_do, ffestb_dowhile, ffestb_else, ffestb_elsexyz,
        ffestb_else3_, ffestb_endxyz, ffestb_goto, ffestb_let,
        ffestb_type, ffestb_type1_, ffestb_varlist, ffestb_R423B,
        ffestb_R522, ffestb_R528, ffestb_R542, ffestb_R834, ffestb_R835,
        ffestb_R838, ffestb_R841, ffestb_R1102, ffestb_blockdata,
        ffestb_R1212, ffestb_R1228, ffestb_V009, ffestb_module,
        ffestb_R809, ffestb_R810, ffestb_R10014_, ffestb_R10015_,
        ffestb_R10018_, ffestb_R1107, ffestb_R1202, ffestb_R12026_,
        ffestb_S3P4, ffestb_V012, ffestb_V014, ffestb_V025, ffestb_V0255_,
        ffestb_V020, ffestb_dimlist, ffestb_dummy, ffestb_R524,
        ffestb_R547, ffestb_decl_chartype, ffestb_decl_dbltype,
        ffestb_decl_gentype, ffestb_decl_recursive, ffestb_decl_entsp_2_,
        ffestb_decl_func_, ffestb_V003, ffestb_V016, ffestb_V027,
        ffestb_decl_R539): Likewise.
        * stb.h (_ffestb_args_): Likewise.
        * stc.c (ffestc_subr_binsrch_, ffestc_subr_is_present_,
        ffestc_subr_speccmp_, ffestc_R904, ffestc_R907): Likewise.
        * std.c (ffestd_R1001dump_1005_1_, ffestd_R1001dump_1005_2_,
        ffestd_R1001dump_1005_3_, ffestd_R1001dump_1005_4_,
        ffestd_R1001dump_1005_5_, ffestd_R1001dump_1010_1_,
        ffestd_R1001dump_1010_2_, ffestd_R1001dump_1010_3_,
        ffestd_R1001dump_1010_4_, ffestd_R1001dump_1010_5_): Likewise.
        * ste.c (ffeste_begin_iterdo_, ffeste_subr_file_): Likewise.
        * sts.c (ffests_printf_1D, ffests_printf_1U, ffests_printf_1s,
        ffests_printf_2Us, ffests_puts, ffests_puttext): Likewise.
        * sts.h (ffests_printf_1D, ffests_printf_1U, ffests_printf_1s,
        ffests_printf_2Us, ffests_puts, ffests_puttext): Likewise.
        * stt.c (ffestt_exprlist_drive, ffestt_implist_drive,
        ffestt_tokenlist_drive): Add prototype arguments.
        * stt.h (ffestt_exprlist_drive, ffestt_implist_drive,
        ffestt_tokenlist_drive): Likewise.
        * stu.c (ffestu_dummies_transition_): Likewise.
        (ffestu_sym_end_transition): Const-ify a char*.
        * stw.c (ffestw_display_state, ffestw_new, ffestw_pop): Add
        prototype arguments.
        * stw.h (ffestw_display_state, ffestw_new, ffestw_pop): Likewise.
        * version.c (ffe_version_string): Const-ify a char*.
        * version.h (ffe_version_string): Likewise.

From-SVN: r26064
1999-03-30 09:23:52 +00:00
Craig Burley
24f98470c2 fix typo in extend.texi
From-SVN: r26063
1999-03-30 03:47:17 -05:00
Jeff Law
ca7eb28896 Daily bump.
From-SVN: r26062
1999-03-29 17:45:02 -07:00
Jason Merrill
2f22d4044d dwarf2out.c (output_line_info): Don't emit redundant info.
* dwarf2out.c (output_line_info): Don't emit redundant info.
	Do start a new row if the file changes and the line # doesn't.

From-SVN: r26061
1999-03-29 19:31:55 -05:00
Jason Merrill
9af3a23b20 * decl2.c (lang_decode_option): Remove -Wsign-promo from -Wall.
From-SVN: r26060
1999-03-29 11:13:51 -05:00
Jason Merrill
bba975d430 * invoke.texi (Invoking G++, C++ Dialect Options): Update.
From-SVN: r26059
1999-03-29 10:53:32 -05:00
Richard Henderson
b68e8bdd8c except.c (start_dynamic_handler): Force jmp_buf address to and operand before moving to memory.
* except.c (start_dynamic_handler): Force jmp_buf address to
        and operand before moving to memory.

From-SVN: r26058
1999-03-29 07:07:37 -08:00
Craig Burley
d311103760 Clarify -fcheck-memory-usage
From-SVN: r26057
1999-03-29 07:13:17 -05:00
J"orn Rennecke
fdb1833aca loop.c (maybe_eliminate_biv): For libcalls that set a giv, skip to end of libcall.
* loop.c (maybe_eliminate_biv): For libcalls that set a giv, skip to
	end of libcall.

From-SVN: r26056
1999-03-29 12:56:45 +01:00
J"orn Rennecke
aa4778b684 * sh.md (mulsi3): Tag an extra REG_EQUAL note to the middle insn.
From-SVN: r26055
1999-03-29 12:39:22 +01:00
Jerry Quinn
51c2de46b8 pa.h (HAVE_PRE_INCREMENT): Disable when optimizing for a PA8000 class machine.
* pa.h (HAVE_PRE_INCREMENT): Disable when optimizing for a PA8000
        class machine.
        (HAVE_PRE_DECREMENT, HAVE_POST_INCREMENT): Likewise.
        (HAVE_POST_DECREMENT): Likewise.

From-SVN: r26054
1999-03-29 03:52:29 -07:00
Bruce Korb
411b293cf8 portability fix & release announcement update
From-SVN: r26053
1999-03-29 08:33:35 +00:00
Bruce Korb
7bf4ef916f Portability problem with old BSD system
From-SVN: r26052
1999-03-29 08:28:23 +00:00
Bruce Korb
163869506c Made more current
From-SVN: r26051
1999-03-29 08:22:24 +00:00
Jason Merrill
edef8288ec * pt.c (fn_type_unification): Ignore 'this' parm from conversion ops.
From-SVN: r26050
1999-03-28 20:09:28 -05:00
Jason Merrill
4c692e1975 new
From-SVN: r26049
1999-03-28 20:08:51 -05:00
Jeff Law
c7699c58e3 Daily bump.
From-SVN: r26048
1999-03-28 17:45:02 -07:00
Jerry Quinn
d2bac0c423 pa.md (pa7100LCshiftmem, [...]): Change simultaneity.
* pa.md (pa7100LCshiftmem, pa7100LCalu): Change simultaneity.  Use
        shift/mem ops in pa7100LCalu.

From-SVN: r26047
1999-03-28 16:56:07 -07:00
Kaveh R. Ghazi
152f94fc94 Warning fixes:
* class.c (maybe_add_interface): Remove unused variable
        `interface_binfo'.
        (make_class_data): Use = for assignment, not ==.  Likewise.
        (emit_register_classes): Remove unused variable `decl'.
        * lex.c: Fix comment so as not to contain an embedded `/*'.
        * verify.c (verify_jvm_instructions): Remove unused variable
        `self_type'.

From-SVN: r26046
1999-03-28 19:22:10 +00:00
Kaveh R. Ghazi
3228bc05fc Warning fixes:
* recog.h (insn_outfun, insn_operand_predicate): Add prototype
        arguments.
        * rtl.h (note_stores): Likewise.
        * rtlanal.c (note_stores): Likewise.

From-SVN: r26045
1999-03-28 17:33:22 +00:00
Richard Henderson
8f0e7be43c * varasm.c (output_constant_pool): Always mark the constant pool.
From-SVN: r26044
1999-03-28 07:35:04 -08:00
Jerry Quinn
86001391bb pa.c (pa_adjust_cost): Don't do cost adjustments on pa8000.
* pa.c (pa_adjust_cost): Don't do cost adjustments on pa8000.
        (pa_reorg): Don't call pa_combine_instructions on pa8000.

From-SVN: r26043
1999-03-28 08:10:10 -07:00
Jeffrey A Law
0a76126bfe * reload1.c (reload): Remove accidental code duplication.
From-SVN: r26042
1999-03-28 07:33:50 -07:00
Jason Merrill
41bc80f4be update
From-SVN: r26041
1999-03-28 08:55:18 -05:00
Robert Lipe
bb60ffa05e sysv5.h: New file to describe UnixWare7/SVR5.
�
	* i386/sysv5.h: New file to describe UnixWare7/SVR5.
	* configure.in (i?86-UnixWare7*-sysv): Use it.
	* i386/udk.h: Use sysv5.h.   Now uses Dwarf-2.

From-SVN: r26040
1999-03-28 10:35:56 +00:00
Robert Lipe
c31b698381 sysv5.h: New file to describe UnixWare7/SVR5.
�
	* i386/sysv5.h: New file to describe UnixWare7/SVR5.
	* configure.in (i?86-UnixWare7*-sysv): Use it.
	* i386/udk.h: Use sysv5.h.   Now uses Dwarf-2.

From-SVN: r26039
1999-03-28 10:28:29 +00:00
Robert Lipe
87e11b7065 sysv5.h: New file to describe UnixWare7/SVR5.
�
	* i386/sysv5.h: New file to describe UnixWare7/SVR5.
	* configure.in (i?86-UnixWare7*-sysv): Use it.
	* i386/udk.h: Use sysv5.h.   Now uses Dwarf-2.

From-SVN: r26038
1999-03-28 10:28:26 +00:00
Dave Love
d76e5e59c8 configure: Rebuilt.
* configure: Rebuilt.
        * configure.in: Fix integer size tests: sanity check first; search
        toplevel include dir (from Rainer Orth); only mess with ac_cpp
        once; use -DIN_GCC -DHAVE_CONFIG_H.
        * configure.in: Use `g77_cv_...', not `f77_cv_...'.

From-SVN: r26035
1999-03-27 20:18:32 -07:00
Jeffrey A Law
ddb6d3dc7b Bump for snapshot
From-SVN: r26033
1999-03-27 18:15:11 -07:00
Jeffrey A Law
a51a5234aa sdbout.c (sdbout_symbol): Do not call build_pointer_type, build one on the fly and do not cache the result.
* sdbout.c (sdbout_symbol): Do not call build_pointer_type, build
        one on the fly and do not cache the result.

From-SVN: r26032
1999-03-27 17:50:47 -07:00
Jeff Law
f89a74e469 Daily bump.
From-SVN: r26031
1999-03-27 17:45:04 -07:00
Jeffrey A Law
557ca192c5 objc-torture.exp: Replace "77" with "Obj-C" in pattern matching strings.
* lib/objc-torture.exp: Replace "77" with "Obj-C" in pattern
        matching strings.

From-SVN: r26030
1999-03-27 16:50:40 -07:00
Jeffrey A Law
87b8bec574 * gcc.cps, cpp.cps: Delete unwanted files.
From-SVN: r26029
1999-03-27 16:47:33 -07:00
Jeffrey A Law
919a1ded90 Make-lang.in (CHILL.dvi): New target.
* Make-lang.in (CHILL.dvi): New target.
        (CHILL.mostlyclean): Remove remnants of old runtime library structure.

From-SVN: r26028
1999-03-27 16:31:23 -07:00
Andreas Schwab
0f11903b49 function.c (assign_parms): Undo change of June 9.
* function.c (assign_parms): Undo change of June 9.
Brought over from the gcc2 tree.

From-SVN: r26027
1999-03-27 16:08:37 -07:00
John Wehle
94b596a711 i386.md (movdicc+3, movdicc+4): Rewrite using split_di.
* i386.md (movdicc+3, movdicc+4): Rewrite using split_di.
	* i386.c (output_int_conditional_move): Delete unused code.

From-SVN: r26026
1999-03-27 20:52:02 +00:00
David Edelsohn
b9ae34718a * rs6000/{aix41.h,aix43.h} (ASM_CPU_SPEC): Add 604e.
From-SVN: r26022
1999-03-27 13:21:30 -05:00
Mark Mitchell
0c0aac2fec cp-tree.h (add_friend): Declare.
* cp-tree.h (add_friend): Declare.
	(add_friends): Likewise.
	* friend.c (add_friend): Make it global.  Don't add to
	DECL_BEFRIENDING_CLASSES if the befriending class is a template.
	(add_friends): Make it global.
	(make_friend_class): Don't add to DECL_BEFRIENDING_CLASSES if the
	befriending class is a template.
	* parse.y (component_decl_1): Fix typo in comment.
	* parse.c: Regenerated.
	* pt.c (instantiate_class_template): Use add_friend and
	add_friends rather that duplicating some of their functionality
	here.

From-SVN: r26020
1999-03-27 17:33:36 +00:00
Alexandre Petit-Bianco
f099f336d1 [multiple changes]
Sat Mar 27 15:13:21 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* parse.h (EXPR_WFL_GET_LINECOL): Set a line and column count
 	using a WFL compound value.
	* parse.y (xref.h): Include.
	(maybe_create_class_interface_decl): Set DECL_SOURCE_LINE to the
 	WFL compound value.
	(register_fields): Set WFL compound value to lineno if doing
 	xrefs.
	(java_complete_expand_method): Call expand_xref if flag_emit_xref
 	is set.
	* xref.c (system.h, jcf.h, parse.h, obstack.h): Include.
	* xref.h (expand_xref): Prototype renamed from xref_generate.
Sat Mar 27 14:16:32 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* parse.h (BLOCK_CHAIN_DECL): New use GET_CURRENT_BLOCK.
	(GET_CURRENT_BLOCK): New macro.
	* parse.y (current_static_block): New global variable.
	(method_body:): Define action.
	(complete_method_declaration): Set current_function_decl to NULL
 	when work on the current method is done.
	(declare_local_variables): Use GET_CURRENT_BLOCK.
	(java_method_add_stmt): Likewise.
	(java_complete_expand_method): Disable the use of `this' when
 	expanding <clinit>.
	(enter_a_block): If no current method exist, use
 	current_static_block to link static initializer blocks.
	(exit_block): Rewritten to use current_static_block when no current
 	method decl exists.
	(lookup_name_in_blocks): Use GET_CURRENT_BLOCK.
	(patch_return): Forbid the use of `return' in static initializers.
	(patch_throw_statement): Fixed indentation. Issue specific error
 	for uncaught thrown checked exception in static initializer
 	blocks. Removed FIXME.

From-SVN: r26018
1999-03-27 08:17:16 -08:00
Per Bothner
f1b0c0d8a3 parse.y (complete_loop_body): Rename to finish_loop_body.
�
	* parse.y (complete_loop_body):  Rename to finish_loop_body.
 	(complete_labeled_statement):  Rename to finish_labeled_statement.
	(complete_for_loop):  Rename to finish_for_loop.
	(complete_method_declaration):  Rename to finish_method_declaration.
	* java-tree.h (continue_identifier_node):  New global node.
	* decl.c:  Define and initialize continue_identifier_node.
	* parse.y (generate_labeled_block):  Remove - no longer needed.
	(build_loop_body):  Use continue_identifier_node for continue block.
	(finish_labeled_statement):  Also do pop_labeled_block actions.
	(java_complete_lhs):  POP_LOOP even if error.
	(build_labeled_block):  Special handling for continue_identifier_node.
	(patch_loop_statement):  Re-organize.
	(patch_bc_statement):  Re-write.

From-SVN: r26017
1999-03-27 08:05:29 -08:00
Per Bothner
e85ac860ae *** empty log message ***
From-SVN: r26016
1999-03-27 08:05:27 -08:00
Per Bothner
b635eb2fc0 parse.y (complete_loop_body): Rename to finish_loop_body.
d
	* parse.y (complete_loop_body):  Rename to finish_loop_body.
 	(complete_labeled_statement):  Rename to finish_labeled_statement.
	(complete_for_loop):  Rename to finish_for_loop.
	(complete_method_declaration):  Rename to finish_method_declaration.
	* java-tree.h (continue_identifier_node):  New global node.
	* decl.c:  Define and initialize continue_identifier_node.
	* parse.y (generate_labeled_block):  Remove - no longer needed.
	(build_loop_body):  Use continue_identifier_node for continue block.
	(finish_labeled_statement):  Also do pop_labeled_block actions.
	(java_complete_lhs):  POP_LOOP even if error.
	(build_labeled_block):  Special handling for continue_identifier_node.
	(patch_loop_statement):  Re-organize.
	(patch_bc_statement):  Re-write.

From-SVN: r26015
1999-03-27 08:05:24 -08:00
Jeffrey A Law
40b5a77c50 * flow.c (mark_used_regs): Improve handling of ASMs.
From-SVN: r26014
1999-03-27 08:18:32 -07:00
Kaveh R. Ghazi
26f096f9e5 Warning fixes:
* bad.c (_ffebad_message_, ffebad_string_, ffebad_message_,
        ffebad_bufputs_, ffebad_bufputs_, ffebad_start_, ffebad_string,
        ffebad_finish): Const-ify a char*.
        * bld.c (ffebld_op_string_, ffebld_op_string): Likewise.
        * bld.h (ffebld_op_string): Likewise.
        * com.c (ffecom_arglist_expr_, ffecom_build_f2c_string_,
        ffecom_debug_kludge_, ffecom_f2c_make_type_,
        ffecom_get_appended_identifier_, ffecom_get_identifier_,
        ffecom_gfrt_args_): Likewise.
        (ffecom_convert_narrow_, ffecom_convert_widen_): Add prototype.
        (builtin_function, ffecom_gfrt_name_, ffecom_gfrt_argstring_,
        ffecom_arglist_expr_, ffecom_build_f2c_string_,
        ffecom_debug_kludge_, ffecom_f2c_make_type_,
        ffecom_get_appended_identifier_, ffecom_get_external_identifier_,
        ffecom_get_identifier_, ffecom_decl_field,
        ffecom_get_invented_identifier, lang_print_error_function,
        skip_redundant_dir_prefix, read_name_map, print_containing_files):
        Const-ify a char*.
        (savestring): Remove, use `xstrdup' instead.
        * com.h (ffecom_decl_field, ffecom_get_invented_identifier):
        Const-ify a char*.
        * data.c (ffebld, ffedata_gather_): Make explicitly static.
        * expr.c (ffeexpr_isdigits_, ffeexpr_percent_,
        ffeexpr_reduced_concatenate_, ffeexpr_nil_real_,
        ffeexpr_nil_number_, ffeexpr_nil_number_period_,
        ffeexpr_nil_number_real_, ffeexpr_token_real_,
        ffeexpr_token_number_, ffeexpr_token_number_period_,
        ffeexpr_token_number_real_): Const-ify a char*.
        * fini.c (xspaces): Likewise.
        * global.c (ffeglobal_type_string_): Likewise.
        (ffeglobal_drive): Protoize.
        (ffeglobal_proc_def_arg): Const-ify a char*.
        * global.h (ffeglobal_drive): Protoize.
        (ffeglobal_proc_def_arg): Const-ify a char*.
        * implic.c (ffeimplic_none, ffeimplic_peek_symbol_type):
        Likewise.
        * implic.h (ffeimplic_peek_symbol_type): Likewise.
        * info.c (ffeinfo_basictype_string_, ffeinfo_kind_message_,
        ffeinfo_kind_string_, ffeinfo_kindtype_string_,
        ffeinfo_where_string_, ffeinfo_basictype_string,
        ffeinfo_kind_message, ffeinfo_kind_string,
        ffeinfo_kindtype_string, ffeinfo_where_string): Likewise.
        * info.h (ffeinfo_basictype_string, ffeinfo_kind_message,
        ffeinfo_kind_string, ffeinfo_kindtype_string,
        ffeinfo_where_string): Likewise.
        * intrin.c (_ffeintrin_name_, _ffeintrin_gen_, _ffeintrin_spec_,
        _ffeintrin_imp_, ffeintrin_check_, ffeintrin_cmp_name_,
        ffeintrin_fulfill_specific, ffeintrin_init_0,
        ffeintrin_is_actualarg, ffeintrin_is_intrinsic,
        ffeintrin_name_generic, ffeintrin_name_implementation,
        ffeintrin_name_specific): Likewise.
        * intrin.h (ffeintrin_is_intrinsic, ffeintrin_name_generic,
        ffeintrin_name_implementation, ffeintrin_name_specific): Likewise.
        * lex.c (ffelex_type_string_, ffelex_token_new_character,
        ffelex_token_new_name, ffelex_token_new_names,
        ffelex_token_new_number): Likewise.
        * lex.h (ffelex_token_new_character, ffelex_token_new_name,
        ffelex_token_new_names, ffelex_token_new_number): Likewise.
        * malloc.c (malloc_types_, malloc_pool_new, malloc_new_inpool_,
        malloc_new_zinpool_): Likewise.
        * malloc.h (malloc_new_inpool_, malloc_new_zinpool_,
        malloc_pool_new): Likewise.
        * name.c (ffename_space_drive_global, ffename_space_drive_symbol):
        Protoize.
        * name.h (ffename_space_drive_global, ffename_space_drive_symbol):
        Likewise.
        * symbol.c (ffesymbol_state_name_, ffesymbol_attr_name_,
        ffesymbol_attrs_string): Const-ify a char*.
        (ffesymbol_drive, ffesymbol_drive_sfnames): Protoize.
        (ffesymbol_state_string): Const-ify a char*.
        * symbol.h (ffesymbol_attrs_string): Likewise.
        (ffesymbol_drive, ffesymbol_drive_sfnames): Protoize.
        (ffesymbol_state_string): Const-ify a char*.
        * target.c (ffetarget_layout): Likewise.
        * target.h (ffetarget_layout): Likewise.

From-SVN: r26013
1999-03-27 10:24:06 +00:00
Jason Merrill
90e734a853 call.c (build_field_call): Unify 'this' and non-'this' cases.
* call.c (build_field_call): Unify 'this' and non-'this' cases.
	* typeck.c (build_indirect_ref): Check for 'this' sooner.

From-SVN: r26012
1999-03-26 20:14:32 -05:00
Jason Merrill
92a217ad74 new
From-SVN: r26011
1999-03-26 20:12:06 -05:00