Commit Graph

27981 Commits

Author SHA1 Message Date
Zack Weinberg 3b304f5b7d top level:
* Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
	(tree.o): Depend on output.h.

	* c-decl.c (pending_invalid_xref_file,
	current_function_prototype_file): Constify.
	(pushdecl): Constify a local char *.
	(define_label): Constify filename parameter.
	* c-lex.c (init_parse): Constify parameter and return value.
	* c-typeck.c (c_expand_asm_operands): Constify filename parameter.
	* c-tree.h: Update prototypes.
	* c-parse.in: Constify filename member of %union, and if_stmt_file.
	* c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
	objc/objc-parse.c: Regenerate.

	* dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
	* dwarfout.h: Update prototypes.
	* expr.c (expand_expr): Constify a local char *.
	* flags.h: Constify main_input_filename.
	* function.c (expand_function_end): Constify filename parameter.
	* genrecog.c (make_insn_sequence): Use a character array for
	c_test_pos.
	(main): Remove unused variables.
	* input.h: Constify input_filename, main_input_filename, and
	file_stack.name.  Update prototypes.
	* output.h: Declare first_global_object_name and
	weak_global_object_name here, as const char *.
	* stmt.c (expand_asm_operands): Constify filename parameter.
	* toplev.c (compile_file, push_srcloc, debug_start_source_file):
	Constify filename parameter.
	(input_filename, main_input_filename): Constify.
	* toplev.h: Update prototypes.
	* tree.c: Include output.h.  Don't declare
	first_global_object_name or weak_global_object_name.  Clean up string
	bashing in get_file_function_name_long.
	* tree.h (struct tree_decl): Constify filename member.
	(input_filename): Constify.
	Update prototypes.
	* varasm.c (first_global_object_name, weak_global_object_name):
	Constify.
	(assemble_start_function, assemble_variable): Clean up string bashing.

	* gcc.c: Constify all spec-related strings initialized,
	transitively, from string constants.  Constify all strings
	and string variables related to multilibs.
	(set_spec, read_specs): Cast argument to free to PTR.
	(used_arg): Do not modify multilib_matches.  Use strncmp plus
	length comparison to compare multilib switches.
	* genmultilib: Constify everything declared in multilib.h.

ch:
	* ch-tree.h: Update prototypes.  Remove prototypes for
	functions declared elsewhere.
	* decl.c (define_label): Constify filename parameter.
	* grant.c (globalize_decl, set_default_grant_file): Constify
	local char * variables.  Don't declare
	first_global_object_name or asm_out_file.
	* lang.c (chill_real_input_filename): Constify.
	* lex.c (init_parse): Constify parameter and return value.
	* parse.c: Don't declare input_filename.
	(ch_expand_asm_operands): Constify filename parameter.
	(parse_multi_dimension_case_action): Constify local char *.
	* satisfy.c (safe_satisfy_decl): Constify local char *.

cp:
	* cp-tree.h: Constify tree_srcloc.filename, tinst_level.file,
	and pending_inline.filename.  Update prototypes.
	* decl.c (define_label): Constify filename parameter.
	* decl2.c (warn_if_unknown_interface): Constify local char *.
	* input.c Constify input_source.filename. Don't declare
	input_filename or lineno.  Constify filename parameter to feed_input.
	* lex.c (init_parse): Constify parameter and return value.
	(cp_pragma_interface, cp_pragma_implementation): Constify
	filename argument.
	(reinit_parse_for_method, reinit_parse_for_block,
	reinit_parse_for_expr, feed_defarg, handle_cp_pragma):
	Constify local char *.
	* pt.c: Don't declare lineno or input_filename.
	(print_template_context, tsubst_friend_function, tsubst_decl,
	tsubst, instantiate_decl): Constify local char *.
	* semantics.c (expand_body): Constify local char *.
	* tree.c (build_srcloc): Constify filename parameter.
	* typeck.c (c_expand_asm_operands): Constify filename
	parameter.

f:
	* com.c (ffecom_subscript_check_): Constify array_name
	parameter. Clean up string bashing.
	(ffecom_arrayref_, ffecom_char_args_x_): Constify array_name
	parameter.
	(ffecom_do_entry_, ffecom_gen_sfuncdef_, ffecom_start_progunit_,
	ffecom_sym_transform_, ffecom_sym_transform_assign_): Constify
	local char *.
	(init_parse): Constify parameter and return value.
	* lex.c: Include dwarfout.h instead of prototyping dwarfout_*
	functions here.
	(ffelex_file_pop_, ffelex_file_push_): Constify filename parameter.
	(ffelex_hash_, ffelex_include_): Constify local char *.
	* std.c (ffestd_exec_end): Constify local char *.
	* where.c (ffewhere_file_new): Constify filename parameter.
	* where.h: Update prototypes.

java:
	* check_init.c (check_init): Constify local char *.
	* class.c (push_class): Constify local char *.
	* java_tree.h: Update prototypes.
	* jcf-io.c (open_class): Constify filename parameter and
	return value.
	(find_class): Remove redundant string copy.  Cast return from
	open_class.
	* jcf-parse.c (read_class, parse_class_file, yyparse):
	Constify local char *.
	* jcf-write.c (generate_bytecode_insns, generate_classfile):
	Constify local char *.
	* jcf.h (JCF): Constify filename and classname.
	(JCF_FINISH): Cast args to FREE to char * when appropriate.
	* lang.c (init_parse): Constify parameter and return value.
	* lex.c (java_get_line_col): Constify filename parameter.
	* parse.h: Constify parser_ctxt.filename.  Update prototypes.
	* parse.y (java_parser_context_suspend,
	issue_warning_error_from_context, safe_layout_class): Constify
	local char *.
	* parse.c: Regenerate.

From-SVN: r33804
2000-05-09 19:56:01 +00:00
Denis Chertykov aa9e158d7a flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn as deleted.
* flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
	as deleted.

From-SVN: r33803
2000-05-09 22:41:25 +04:00
Denis Chertykov 3454eb731b avr-protos.h (extra_constraint): change a type of second argument from char to int to avoid warnings.
* config/avr/avr-protos.h (extra_constraint): change a type of
	second argument from char to int to avoid warnings.
	(asm_output_byte): Likewise.

	* config/avr/avr.c (MAX_LD_OFFSET) New macro.
	(initial_elimination_offset): Handle elimination from
	FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
	(legitimate_address_p): Use MAX_LD_OFFSET.
	(legitimize_address): Likewise.
	(out_movqi_r_mr): Likewise.
	(out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
	(out_movsi_r_mr): Use MAX_LD_OFFSET.
	(out_movsi_mr_r): Likewise.
	(out_movqi_mr_r): Likewise.
	(out_movhi_mr_r): Likewise.
	(notice_update_cc): Correct CC for the ashrqi3 with the shift
	count as CONST_INT != 6.
	(ashlqi3_out): Coding style modifications. Run `fatal_insn' if
	shift count is a CONSTANT_P, but not a CONST_INT.
	(ashlhi3_out): Coding style modifications.
	(ashlsi3_out): Likewise.
	(ashrhi3_out): Likewise.
	(ashrsi3_out): Likewise.
	(lshrhi3_out): Likewise.
	(lshrsi3_out): Likewise.
	(ashrqi3_out): Generate shift for any known constant count without
	scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
	but not a CONST_INT.
	(lshrqi3_out): Coding style modifications. Run `fatal_insn' if
	shift count is a CONSTANT_P, but not a CONST_INT.
	(extra_constraint): change a type of
	second argument from char to int to avoid warnings.
	(asm_output_byte): Likewise.
	(asm_file_end): Output size generated commands count as a hex
	number too.

	* config/avr/avr.h (RETURN_ADDR_RTX): New macro.

	* config/avr/avr.md (addhi3): Fragment commented by &&0 is
	removed.
	(ashlqi3): Values of "length" attribute changed. Shift count
	uses constraints 'n' instead of 'i'.
	(ashrqi3): Likewise. Values of "cc" attribute changed. Generate
	shifts without clobber register.
	(lshrqi3): Shift count uses constraints 'n' instead of 'i'.
	(call_insn): Correct test for which_alternative == 1 (was 0).
	(call_value_insn): Likewise.

	* config/avr/t-avr: Remove definition of FLOAT while generates
	fp-bit.c

From-SVN: r33802
2000-05-09 21:53:54 +04:00
Bruce Korb 7a544ce153 Added 'test_text' for many fixes
From-SVN: r33801
2000-05-09 16:21:08 +00:00
Bruce Korb c8c6d887a5 Let's not touch obsolete files any more
From-SVN: r33800
2000-05-09 16:05:52 +00:00
Bruce Korb 73101c95a7 fixinc.sco is not needed any more
From-SVN: r33799
2000-05-09 16:04:25 +00:00
Jan Hubicka 4d393a0b06 calls.c (expand_call): Reorganize somewhat in order to avoid unnecesary recalculation inside loop and...
* calls.c (expand_call): Reorganize somewhat in order
	to avoid unnecesary recalculation inside loop and make
	tail call failure code cleaner.

From-SVN: r33798
2000-05-09 14:33:41 +00:00
Richard Kenner f8cd412619 alias.c (nonlocal_reference_p): Minor reformatting.
* alias.c (nonlocal_reference_p): Minor reformatting.
	* reload.c (find_equiv_reg): Simplify logic for
	CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
	some some reformatting.
	* reload1.c (reload_combine): Don't assume everything in
	CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.

From-SVN: r33797
2000-05-09 07:07:48 -04:00
Jeff Law cf7637a083 Daily bump.
From-SVN: r33796
2000-05-09 01:45:06 -06:00
Benjamin Kosnik 55718a0b09 iostream.h: Expose endl.
2000-05-09  Loren J. Rittle  <ljrittle@acm.org>

        * backward/iostream.h: Expose endl.  Guard wide types.
        * src/Makefile.am (headers): Update list to match files.
        * src/Makefile.in: Regenerate.

From-SVN: r33795
2000-05-09 07:27:22 +00:00
Vadim Egorov c0b84d79d2 streambuf.tcc (basic_streambuf::xsgetn): Fix uflow case.
2000-05-09  Vadim Egorov  <egorovv@mailandnews.com>
	    Benjamin Kosnik  <bkoz@gnu.org>
	    Nathan Myers  <ncm@cantrip.org>
	    Dietmar Kuehl  <dietmar_kuehl@yahoo.com>

        * bits/streambuf.tcc (basic_streambuf::xsgetn): Fix uflow case.
	(basic_streambuf::xsputn): Make consistent.
	* testsuite/27_io/filebuf.cc: Add tests.

Co-Authored-By: Benjamin Kosnik <bkoz@gnu.org>
Co-Authored-By: Dietmar Kuehl <dietmar_kuehl@yahoo.com>
Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r33794
2000-05-09 07:19:14 +00:00
Richard Henderson 6b6c1201e6 ia64-protos.h (ia64_expand_prediction): Declare.
* config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
        * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
        (ia64_expand_prediction): New.
        (emit_insn_group_barriers): Don't look at notes.  Emit barriers
        as needed after calls.
        (ia64_epilogue_uses): Mark b0 used.
        * config/ia64/ia64.md (beq_true, beq_false): Remove.
        (bne_true, bne_false): Remove.
        (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
        (br_true, br_false): New.  Use predicate_operator and
        ia64_expand_prediction.
        (return_true, return_false): Likewise.
        (call_internal): Use ia64_expand_prediction.  Don't emit stop bit.
        (call_internal1, call_value_internal): Likewise.
        (call_value_internal1, call_multiple_values_internal1): Likewise.

From-SVN: r33793
2000-05-08 23:17:35 -07:00
Richard Henderson c66f079e8d predict.c (PROB_NEVER, [...]): New.
* predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
        (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
        (PROB_VERY_LIKELY, PROB_ALWAYS): New.
        (estimate_probability, expected_value_to_br_prob): Use them.

From-SVN: r33792
2000-05-08 23:15:18 -07:00
Richard Henderson 2ff00dd433 ifcvt.c (cond_exec_process_insns): New argument prob_val.
* ifcvt.c (cond_exec_process_insns): New argument prob_val.
        Attach it to call insns.
        (cond_exec_process_if_block): Track probability for true and
        false branches.
        (dead_or_predicable): Likewise.

From-SVN: r33791
2000-05-08 23:12:51 -07:00
Richard Henderson afe48e0687 final.c (current_insn_predicate): New.
* final.c (current_insn_predicate): New.
        (final_scan_insn): Set it.
        * output.h (current_insn_predicate): Declare.

From-SVN: r33790
2000-05-08 23:10:36 -07:00
Richard Henderson 5079804811 * config/ia64/ia64.md (extendsfdf2): Split only after reload.
From-SVN: r33789
2000-05-08 23:08:16 -07:00
Richard Henderson 4a7270f207 * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
From-SVN: r33788
2000-05-08 23:06:18 -07:00
Richard Henderson 22aa60a1e0 rtlanal.c (may_trap_p): Consider old-style and volatile asms to trap.
* rtlanal.c (may_trap_p): Consider old-style and volatile
        asms to trap.

From-SVN: r33787
2000-05-08 21:58:44 -07:00
Tom Tromey 4c6a897328 expr.c (build_jni_stub): Cache the result of _Jv_LookupJNIMethod.
* expr.c (build_jni_stub): Cache the result of
	_Jv_LookupJNIMethod.

From-SVN: r33786
2000-05-09 01:51:59 +00:00
Nick Clifton 209bbe34b3 Add strncmp.c to list of CFILES and strncmp to the NEEDED list
From-SVN: r33785
2000-05-09 01:23:33 +00:00
Benjamin Kosnik 943ff2a00f char_traits.h: use wchar_t utility functions for char_traits<wchar_t> methods.
2000-05-08  Steven King  <sxking@uswest.net>

        * bits/char_traits.h: use wchar_t utility functions for
        char_traits<wchar_t> methods.
        * testsuite/21_string/char_traits.cc: New (test02): test
        char_traits<wchar_t>

From-SVN: r33784
2000-05-09 01:16:34 +00:00
Steven King 8445e42a24 2000-0508 Steven King <sxking@uswest.net>
* bits/char_traits.h: use wchar_t utility functions for
        char_traits<wchar_t> methods.
        * testsuite/21_string/char_traits.cc: New (test02): test
        char_traits<wchar_t>

2000-05-08  Benjamin Kosnik  <bkoz@cygnus.com>

	* acinclude.m4 (GLIBCPP_CXXFLAGS): Add bits for solaris2.8.

From-SVN: r33783
2000-05-09 01:15:14 +00:00
Jim Wilson 408607542a Fix typo spotted by grahams.
* config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.

From-SVN: r33782
2000-05-08 17:17:57 -07:00
Richard Henderson de4bfbcbaa gensupport.c (process_rtx): Copy and post-process each member of the define_insn rtvec individually.
* gensupport.c (process_rtx): Copy and post-process each member
        of the define_insn rtvec individually.

From-SVN: r33780
2000-05-08 16:33:23 -07:00
Richard Henderson e8e20f184b ia64.md (extendsfdf2): Split the nop case out of existance.
* config/ia64/ia64.md (extendsfdf2): Split the nop case out
        of existance.

From-SVN: r33779
2000-05-08 16:30:40 -07:00
Richard Henderson 111afdb380 * config/ia64/ia64.h (predicate_operator): Declare.
From-SVN: r33778
2000-05-08 16:30:25 -07:00
Neil Booth 3fef5b2b99 cpplex.c (spell_token): New function.
* cpplex.c (spell_token): New function.
	  (TOKEN_LEN): Add 1 for whitespace.
	  (_cpp_lex_file): Update to use spell_token.
	* cpplib.h (E): Remove.
	(TTYPE_TABLE): Update CPP_VSPACE entry.

From-SVN: r33777
2000-05-08 22:22:49 +00:00
Richard Henderson 549f072574 ia64.c (ia64_encode_section_info): Exit early for global register variables...
* config/ia64/ia64.c (ia64_encode_section_info): Exit early
        for global register variables; don't special case __[CD]TOR_LIST__;
        mind ggc_p for string allocation.

From-SVN: r33776
2000-05-08 15:08:25 -07:00
Richard Henderson 4fb9b83058 flow.c (init_propagate_block_info): Watch out for conditional branch to next instruction, and thus one outgoing edge.
* flow.c (init_propagate_block_info): Watch out for conditional
        branch to next instruction, and thus one outgoing edge.

From-SVN: r33775
2000-05-08 15:04:39 -07:00
Richard Henderson bdcabcd457 * gcc_update: Remove references to inclhack.tpl.
From-SVN: r33774
2000-05-08 15:03:13 -07:00
Nathan Sidwell 1a27e731a6 tinfo.cc (__dynamic_cast): Use a reinterpret_cast.
* tinfo.cc (__dynamic_cast): Use a reinterpret_cast. Fix
	offsetof expansion.

	* inc/cxxabi.h:  Fix typos in comment.
	(__base_class_info::__offset): Use a static_cast.

From-SVN: r33773
2000-05-08 20:52:32 +00:00
Bruce Korb 93f69683ae Remove dependencies on dead files
From-SVN: r33772
2000-05-08 18:49:24 +00:00
Bruce Korb 8d21ff137e disable fixincludes for -*-msdosdjgpp* |
From-SVN: r33771
2000-05-08 18:39:55 +00:00
Branko Cibej bfe5c12158 complex_io.cc: Don't instantiate inserters and extractors for wide-character streams unless...
2000-05-04  Branko Cibej  <branko.cibej@hermes.si>

        * src/complex_io.cc: Don't instantiate inserters and extractors
        for wide-character streams unless _GLIBCPP_USE_WCHAR_T is defined.

From-SVN: r33770
2000-05-08 18:32:58 +00:00
Nick Clifton afc2cd0575 Fix comment describing ELIMINABLE_REGS
From-SVN: r33769
2000-05-08 17:46:10 +00:00
Benjamin Kosnik d207c3f7ff fstream.tcc (filebuf::_M_init_filebuf): Don't set _M_buf_size based on macro, instead use _M_buf_size_opt.
2000-05-08  Benjamin Kosnik  <bkoz@cygnus.com>

	* bits/fstream.tcc (filebuf::_M_init_filebuf): Don't set
	_M_buf_size based on macro, instead use _M_buf_size_opt.
	* bits/std_streambuf.h (basic_streambuf): Add _M_buf_size_opt.
	(basic_streambuf()): Set _M_buf_size_opt.
	* testsuite/27_io/filebuf.cc (filebuf): Use _M_buf_size_opt
	instead of _M_buf_size.

From-SVN: r33768
2000-05-08 17:23:37 +00:00
Catherine Moore c0916fa0b5 New test.
From-SVN: r33767
2000-05-08 10:55:42 -04:00
Bruce Korb e89c8502db code generation reduction & sco script removal
From-SVN: r33766
2000-05-08 13:06:47 +00:00
Bruce Korb 4615e15d98 no longer needed
From-SVN: r33765
2000-05-08 13:05:16 +00:00
Jeff Law b78f1c7bb1 Daily bump.
From-SVN: r33764
2000-05-08 01:45:07 -06:00
Andreas Jaeger c7e81e9090 linux.h: Remove undefines which disabled .ctor/.dtor support.
2000-05-08  Andreas Jaeger  <aj@suse.de>

	* config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
	support.

From-SVN: r33763
2000-05-08 09:18:04 +02:00
Bryce McKinlay 84d7ae3293 Test for PR gcj/224:
2000-05-08  Bryce McKinlay  <bryce@albatross.co.nz>

	Test for PR gcj/224:
	* libjava.compile/PR224.java: New file.
	* libjava.compile/PR224.xfail: New file.

From-SVN: r33762
2000-05-08 07:37:54 +01:00
Zack Weinberg a997ec535c Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed substitutions.
* Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
	substitutions.

From-SVN: r33761
2000-05-08 00:09:09 +00:00
Tom Tromey 89b6698a3e Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (LIBLINK): New macro.
	(libgcj_la_LINK): Use it.
	(libgcjawt_la_LINK): Likewise.

From-SVN: r33760
2000-05-07 16:02:00 +00:00
Nathan Sidwell 9ad3ca3499 cxxabi.h: Use __SIZE_TYPE_ and __PTRDIFF_TYPE__ in place of std::size_t and...
* inc/cxxabi.h: Use __SIZE_TYPE_ and __PTRDIFF_TYPE__ in place
	of std::size_t and std::ptrdiff_t respectively.
	* tinfo.cc: Likewise.
	* vec.cc: Likewise.

From-SVN: r33759
2000-05-07 09:40:34 +00:00
Neil Booth b8f4101008 cpplex.c: Move new lexer definitions and prototypes to top.
* cpplex.c: Move new lexer definitions and prototypes
	to top.  Conditional include these and the code if
	NEW_LEXER is defined.  Rename functions whose names
	clash if this code included.

From-SVN: r33758
2000-05-07 08:49:08 +00:00
Jeff Law 973362bc6c Daily bump.
From-SVN: r33757
2000-05-07 01:45:07 -06:00
John Wehle 6b29b0e2bf rtl.def (COND_EXEC): Clarify.
* rtl.def (COND_EXEC): Clarify.

	* i386.md (extendsidi2): Clobber (reg:CC 17) in the
	same fashion as zero_extendsidi2.

From-SVN: r33756
2000-05-07 05:09:46 +00:00
Jason Eckhardt ee45596853 MAINTAINERS: Add self as bb-reorder maintainer.
Sat May  6 21:12:55 CDT 2000  Jason Eckhardt  <jle@cygnus.com>

	* MAINTAINERS: Add self as bb-reorder maintainer.

From-SVN: r33755
2000-05-07 02:09:42 +00:00
Richard Henderson e5bde68ae0 ia64.c (predicate_operator): New.
* config/ia64/ia64.c (predicate_operator): New.
        (ia64_print_operand): Handle 'J'.
        (rtx_needs_barrier): Handle COND_EXEC.
        * config/ia64/ia64.h (BRANCH_COST): Define.
        (PREDICATE_CODES): Update.
        * config/ia64/ia64.md: Docuement used unspec values.
        (attr predicable): New.
        (movxf, movxf_internal): New.
        (extendsfdf2): Don't comment out nop.
        (floatdidf2): Remove.
        (truncxfsf2, truncxfdf2, floatdixf2): New.
        (abssi2, absdi2): Put the neg in the "true" slot.
        (conditional branch instructions): Mark not predicable.
        (cmov*_internal): Use predicate_operator.  Split to cond_exec.
        (abs*_internal): Likewise.
        (alloc, set_bsp): Mark not predicable.
        (barrier, insn_group_barrier, flush_cache): Likewise.
        (define_cond_exec): New.

From-SVN: r33754
2000-05-06 18:56:25 -07:00