Commit Graph

60248 Commits

Author SHA1 Message Date
Hans-Peter Nilsson 8ad46d3478 cris.md: Tweak formatting.
* config/cris/cris.md: Tweak formatting.
	(asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
	(mover2side, moverside, movemside, movei, op3, andu): Replace
	live define_peephole:s with define_peephole2 near-equivalents.
	Delete the rest.
 	("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
	word-size modes.
	("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
	Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
	"*mov_sidesi_mem" respectively.

From-SVN: r85041
2004-07-22 10:10:56 +00:00
Hans-Peter Nilsson 7413a13251 cris-peep2-xsrand.c, [...]: New tests.
* gcc.dg/cris-peep2-xsrand.c, gcc.dg/cris-peep2-andu1.c,
	gcc.dg/cris-peep2-andu2.c: New tests.

From-SVN: r85040
2004-07-22 10:08:29 +00:00
Paolo Bonzini 26277d4179 tree-cfg.c (gimplify_val): Move from tree-complex.c.
2004-07-22  Paolo Bonzini  <bonzini@gnu.org>

	* tree-cfg.c (gimplify_val): Move from tree-complex.c.
	(gimplify_build1): Move from tree-complex.c do_unop.
	(gimplify_build2): Move from tree-complex.c do_binop.
	(gimplify_build3): New.
	* tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
	Adjust throughout to call the functions above.
	* tree-flow.h: Declare the functions above.
	* tree-nested.c (gimplify_val): Rename to...
	(tsi_gimplify_val): ... this.

	* Makefile.in (tree_complex.o): Update dependencies.
	(stor-layout.o): Depend on regs.h.
	* c-common.c (handle_vector_size_attribute): Update for
	vector types without corresponding vector modes.
	* expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
	a corresponding vector mode is not available.
	* print-tree.c (print_node): Print nunits for vector types
	* regclass.c (have_regs_of_mode): New.
	(init_reg_sets_1): Initialize it and use it instead
	of allocatable_regs_of_mode.
	* regs.h (have_regs_of_mode): Declare it.
	* stor-layout.c (layout_type): Pick a mode for vector types.
	* tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
	build_replicated_const, do_unop, do_binop, do_plus_minus,
	do_negate, expand_vector_piecewise, expand_vector_parallel,
	expand_vector_addition, expand_vector_operations_1,
	expand_vector_operations, tree_lower_operations,
	pass_lower_vector_ssa, pass_pre_expand): New.
	(expand_complex_operations, pass_lower_complex): Remove.
	* tree-optimize.c (init_tree_optimization_passes): Adjust
	pass ordering for changes in tree-complex.c.
	* tree-pass.h: Declare new passes.
	* tree.c (finish_vector_type): Remove.
	(make_vector_type): New.
	(build_vector_type_for_mode, build_vector_type): Rewritten.
	* tree.def (VECTOR_TYPE): Document where the number of
	subparts is stored.
	* tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
	(make_vector): Remove declaration.

From-SVN: r85039
2004-07-22 08:20:40 +00:00
Richard Henderson 727a31fab8 gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE...
* gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
        TREE_THIS_VOLATILE, may_aliases, or optimization level.
        (remove_useless_vars): Dump debugging info.
        (expand_used_vars): Move ...
        * cfgexpand.c (expand_used_vars): ... here.  Make static.
        * tree-flow-inline.h (set_is_used): New.
        (set_default_def): Use get_var_ann.
        * tree-flow.h: Update decls.
        * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
        (create_ssa_var_map): Use it.
        * tree-ssa.c (set_is_used): Remove.

From-SVN: r85034
2004-07-21 19:48:27 -07:00
Bryce McKinlay eecbcf5428 URLConnection.java (position): New field.
2004-07-21  Bryce McKinlay  <mckinlay@redhat.com>

	* java/net/URLConnection.java (position): New field.
	(dateFormat1, dateFormat2, dateFormat3): Removed.
	(dateFormats): New field.
	(getHeaderFieldDate): Use new dateFormats array. Re-use
	parsePosition each time instead of re-allocating.
	(initializeDateFormats): Initialize 'dateFormats'.

From-SVN: r85033
2004-07-22 02:33:11 +01:00
Ben Elliston c9092111fd * gdbinit.in: Set a breakpoint on internal_error.
From-SVN: r85031
2004-07-22 11:04:13 +10:00
Richard Henderson 224e770bb8 cfgexpand.c (expand_gimple_tailcall): Fix case where we need to create a new basic block.
* cfgexpand.c (expand_gimple_tailcall): Fix case where we need
        to create a new basic block.

From-SVN: r85029
2004-07-21 17:45:54 -07:00
GCC Administrator 7761cda3b4 Daily bump.
From-SVN: r85027
2004-07-22 00:16:15 +00:00
Joseph Myers e508a0190b re PR c/15052 (gcc frontend accepts mismatched function declaration/defintion)
PR c/15052
	* c-decl.c (grokdeclarator): Only pedwarn for qualified void
	return type on function definitions.  Move other warnings for
	qualified return type to -Wreturn-type.  Do not condition any such
	warnings on -pedantic.  Update comments.
	(start_function): Only copy function type from previous prototype
	declaration if return types are compatible.
	* c-typeck.c (function_types_compatible_p): Don't condition
	warning for incompatibility of volatile qualifiers on the return
	type on -pedantic.  Update comment.
	* doc/invoke.texi (-Wreturn-type, -Wextra): Update.

testsuite:
	* gcc.dg/noreturn-5.c: Test qualifiers on function type instead of
	on return type.
	* gcc.dg/qual-return-1.c: Use -Wreturn-type.  Update expected
	messages.
	* gcc.dg/qual-return-2.c: Update expected messages.
	* gcc.dg/qual-return-3.c, gcc.dg/qual-return-4.c: New tests.

From-SVN: r85024
2004-07-22 01:00:47 +01:00
Joseph Myers 3ea8cd0655 c-typeck.c (set_init_index): Require designator to be of integer type.
* c-typeck.c (set_init_index): Require designator to be of integer
	type.

testsuite:
	* gcc.dg/c99-init-3.c, gcc.dg/gnu99-init-2.c: New tests.
	* gcc.dg/noncompile/921102-1.c: Update expected error message.

From-SVN: r85023
2004-07-22 00:51:29 +01:00
Joseph Myers 916c59199c re PR c/11250 (-pedantic accepts `char a[] = ("x");')
PR c/11250
	* c-parse.in (init): Change to exprtype.
	(primary): Set original_code for STRING to STRING_CST.
	Call maybe_warn_string_init for compound literals.
	(initdcl, notype_initdcl): Call maybe_warn_string_init.
	(initval): Update.
	* c-tree.h (maybe_warn_string_init): New.
	(pop_init_level, process_init_element): Use struct c_expr.
	(struct c_expr): Update comment.
	* c-typeck.c (maybe_warn_string_init): New function.
	(digest_init): Call it.  Additional parameter strict_string.  All
	callers changed.
	(output_init_element): Likewise.
	(struct constructor_stack): Use struct c_expr for
	replacement_value.
	(really_start_incremental_init, push_init_level): Update.
	(pop_init_level): Update.  Return struct c_expr.
	(process_init_level): Update.  Take struct c_expr argument.

testsuite:
	* gcc.dg/init-string-1.c: New test.

From-SVN: r85022
2004-07-22 00:46:20 +01:00
David S. Miller bf6c40e92d sparc.c (sparc_rtx_costs): Fix typo in previous commit.
2004-07-21  David S. Miller  <davem@nuts.davemloft.net>

	* config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
	commit.

From-SVN: r85020
2004-07-21 14:42:29 -07:00
Eric Christopher caf93cb0d5 builtins.c (expand_builtin_setjmp_receiver): Fix comment for code removal.
2004-07-21  Eric Christopher  <echristo@redhat.com>

	* builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
	removal.
	* c-decl.c (pop_scope): Ditto.
	* calls.c (expand_call): Remove call to current_nesting_level,
	update comment accordingly. Remove calls to expand_start_target_temps
	and expand_end_target_temps.
	* cfgexpand.c (construct_init_block): Remove call to
	expand_start_bindings_and_block.
	(construct_exit_block): Remove call to expand_end_bindings.
	* expr.c (safe_from_p): Remove BIND_EXPR handling.
	(expand_expr_real_1): Ditto. Fix formatting.
	(expand_vars): Delete.
	* stmt.c (POPSTACK): Remove block_stack.
	(stmt_status): Remove x_block_stack.
	(block_stack): Delete.
	(expand_start_bindings_and_block): Ditto.
	(expand_start_target_temps): Ditto.
	(expand_end_target_temps): Ditto.
	(current_nesting_level): Ditto.
	(warn_about_unused_variables): Ditto.
	(expand_end_bindings): Ditto.
	* tree.h: Remove declarations for above.

2004-07-21  Eric Christopher  <echristo@redhat.com>

	* decl.c (poplevel): Inline unused variable checking.
	Change formatting.

From-SVN: r85019
2004-07-21 19:23:03 +00:00
Frank Ch. Eigler d942072cb0 * whitespace tweak
From-SVN: r85018
2004-07-21 19:14:28 +00:00
Steven Bosscher 07a236b612 rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
* rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
	* rtl.c (note_insn_name): Likewise.
	* print-rtl.c (print_rtx): Don't print it.
	* cfgrtl.h (can_delete_note_p): Don't handle it.
	(rtl_delete_block): Likewise.
	* passes.c (rest_of_handle_guess_branch_prob): Remove.
	(rest_of_compilation): Don't call it.
	* predict.c (process_note_predictions, process_note_prediction,
	note_prediction_to_br_prob): Remove.
	* basic-block.c (note_prediction_to_br_prob): Remove prototype.
	* stmt.c (return_prediction): Remove.
	(expand_value_return): Don't call it.  Don't add prediction
	notes for return statements.

From-SVN: r85016
2004-07-21 18:57:09 +00:00
Benjamin Kosnik d917fa8798 mainpage.html: Clarify links.
2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>

	* docs/doxygen/mainpage.html: Clarify links.
	* docs/doxygen/stdheader.cc: Add files.
	* docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
	* docs/doxygen/user.cfg.in: New options, wrap.

From-SVN: r85015
2004-07-21 18:54:52 +00:00
Frank Ch. Eigler 54419590e8 mf-runtime.c (__mfu_check): Remove mistaken mode-nop handling.
2004-07-21  Frank Ch. Eigler  <fche@redhat.com>

	* mf-runtime.c (__mfu_check): Remove mistaken mode-nop
	handling.
	(__mfu_usage): Include (C) 2004.
	* mf-hooks3.c (__mf_find_threadinfo): Don't call tracing functions
	here.  Include a comment explaining why.

From-SVN: r85014
2004-07-21 18:50:14 +00:00
Josef Zlomek 0e6ed89966 var-tracking.c (vt_find_locations): Set the in_pending bitmap at once.
* var-tracking.c (vt_find_locations): Set the in_pending bitmap at
	once.

From-SVN: r85012
2004-07-21 17:03:47 +00:00
Andrew Haley 4de69546bb PR java/16431.
From-SVN: r85010
2004-07-21 16:12:32 +00:00
Andrew Haley 00150bf9f3 verify.c (verify_jvm_instructions): Comment change only.
2004-07-20  Andrew Haley  <aph@redhat.com>

	* verify.c (verify_jvm_instructions): Comment change only.

	* typeck.c (build_java_array_type): Add size field to array name.

	* java-tree.h (LOCAL_SLOT_P): New.
	(update_aliases): Add PC argument.
	(pushdecl_function_level): New function.

	* java-gimplify.c (java_gimplify_expr): Handle VAR_DECL,
	MODIFY_EXPR, and SAVE_EXPR.
	(java_gimplify_modify_expr): New function.

	* expr.c (push_type_0): Call find_stack_slot() to create temporary.
	(expand_iinc): Pass PC to update_aliases().
	(STORE_INTERNAL): Likewise.
	(process_jvm_instruction): Likewise.

	* decl.c (base_decl_map): New variable.
	(uniq): New variable.
	(update_aliases): Rewrite with more thorough checking.
	(debug_variable_p): New function.
	(push_jvm_slot): Don't initialize local variable.  Don't pushdecl.
	(check_local_named_variable): Delete whole function.
	(initialize_local_variable): New function.
	(check_local_unnamed_variable): Add checks and comments.
	(find_local_variable): Rewrite.
	(java_replace_reference): New function.
	(function_binding_level): New variable.
	(pushdecl_function_level): New function.
	(maybe_pushlevels): Set DECL_LOCAL_END_PC.
	(maybe_pushlevels): Call pushdecl() on each of the new decls.
	(start_java_method): Reset uniq.  Create base_decl_map.  Set
	function_binding_level.
	(end_java_method): Null unused fields to save memory.

From-SVN: r85009
2004-07-21 16:03:43 +00:00
Paul Brook 5d16533a07 Fix formatting.
From-SVN: r85004
2004-07-21 11:21:13 +00:00
Paolo Bonzini 3a021db299 c-common.c (vector_types_convertible_p): Use vector types' TYPE_SIZE and TREE_TYPE instead of their mode.
2004-07-21  Paolo Bonzini  <bonzini@gnu.org>

	* c-common.c (vector_types_convertible_p): Use vector types'
	TYPE_SIZE and TREE_TYPE instead of their mode.
	* convert.c (convert_to_integer): Likewise.
	(convert_to_vector): Likewise.
	* fold-const.c (fold_convert): Likewise.
	* varasm.c (output_constant): Likewise.
	* expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
	Allow a VECTOR_TYPE initializer to be made of several vectors.
	For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
	of cleared and need_to_clear, and use fold_convert.
	* c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
	integer vectors.

cp/ChangeLog:
2004-07-21  Paolo Bonzini  <bonzini@gnu.org>

	* c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
	integer vectors.

From-SVN: r85002
2004-07-21 08:57:07 +00:00
Paolo Bonzini 4b997cc8bb ansidecl.h (ATTRIBUTE_PURE): New.
2004-07-21  Paolo Bonzini  <bonzini@gnu.org>

        * ansidecl.h (ATTRIBUTE_PURE): New.

From-SVN: r85001
2004-07-21 08:25:57 +00:00
Paolo Bonzini 4ae2880561 c-common.c (vector_types_convertible_p): Use vector types' TYPE_SIZE and TREE_TYPE instead of their mode.
2004-07-21  Paolo Bonzini  <bonzini@gnu.org>

	* c-common.c (vector_types_convertible_p): Use vector types'
	TYPE_SIZE and TREE_TYPE instead of their mode.
	* convert.c (convert_to_integer): Likewise.
	(convert_to_vector): Likewise.
	* fold-const.c (fold_convert): Likewise.
	* varasm.c (output_constant): Likewise.
	* expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
	Allow a VECTOR_TYPE initializer to be made of several vectors.
	For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
	of cleared and need_to_clear, and use fold_convert.
	* c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
	integer vectors.

cp/ChangeLog:
2004-07-21  Paolo Bonzini  <bonzini@gnu.org>

	* c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
	integer vectors.

From-SVN: r85000
2004-07-21 08:22:59 +00:00
Jakub Jelinek 1ff69cbed5 re PR middle-end/15345 ([non-unit-at-a-time] unreferenced nested inline functions not optimized away)
PR middle-end/15345
	PR c/16450
	* gcc.dg/torture/nested-fn-1.c: New test.

From-SVN: r84999
2004-07-21 09:39:09 +02:00
H.J. Lu 7448a4d2a2 re PR target/16559 (Incorrect code generated for function pointer)
2004-07-20  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/16559
	* gcc.dg/ia64-fptr-1.c: New file.

From-SVN: r84995
2004-07-20 19:35:55 -07:00
Richard Kenner 7ea7e0584d Add parens so emacs will properly indent.
From-SVN: r84994
2004-07-20 22:04:00 -04:00
Richard Henderson 80c7a9eb12 cfgexpand.c (expand_gimple_cond_expr, [...]): Split,
* cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
        (expand_gimple_basic_block): out from here.  Renamed from expand_block.

From-SVN: r84993
2004-07-20 19:03:28 -07:00
David S. Miller e08eb33cbc sparc.c (sparc_rtx_costs case MULT): Emit enormous cost if not TARGET_HARD_MUL.
2004-07-20  David S. Miller  <davem@nuts.davemloft.net>

	* config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
	enormous cost if not TARGET_HARD_MUL.

From-SVN: r84992
2004-07-20 18:46:13 -07:00
Andrew Pinski e70d4dfb0f re PR target/16557 (bootstrap failure of gcc-4.0-20040711 snapshot on i686-apple-darwin7.2.1)
2004-07-20  Andrew Pinski  <apinski@apple.com>

        PR target/16557
        * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
        (ASM_SPEC): here.

From-SVN: r84991
2004-07-20 18:35:01 -07:00
Richard Kenner 462fdcce48 fold-const.c (operand_equal_p): Temporarily support NULL args.
* fold-const.c (operand_equal_p): Temporarily support NULL args.
	(operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
	(operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.

From-SVN: r84990
2004-07-20 21:21:11 -04:00
Richard Kenner 0e28378a9a Fix typo in comment.
From-SVN: r84989
2004-07-20 21:15:17 -04:00
GCC Administrator 655ba9c71d Daily bump.
From-SVN: r84987
2004-07-21 00:16:12 +00:00
Giovanni Bajo f03adc6bee re PR c++/14497 (Accepts invalid specialization of member template missing "template<>")
PR c++/14497
	* pt.c (check_explicit_specialization): Remove extension to accept
	specializations without template headers. Fall-through to normal
	processing.

	PR c++/14497
	* g++.dg/template/spec16.C: New test.
	* g++.old-deja/g++.robertl/eb118.C: Remove.

From-SVN: r84983
2004-07-21 00:13:41 +00:00
Giovanni Bajo 5fe7b6549e re PR c++/509 (G++ forbids template specialization as ambiguous)
PR c++/509
	* pt.c (determine_specialization): New parameter template_count.
	Disambiguate between member templates and member functions counting
	the template headers.
	(check_explicit_specialization): Update caller.
	(tsubst_friend_function): Likewise.

	PR c++/509
	* g++.dg/template/spec15.C: New test.

From-SVN: r84982
2004-07-21 00:06:45 +00:00
David Billinghurst 66e4969bb9 README: Update
2004-07-21  David Billinghurst (David.Billinghurst@riotinto.com)

	* gfortran.dg/g77/README: Update

From-SVN: r84981
2004-07-21 00:02:24 +00:00
David Billinghurst d417dba9b5 Copy cases from g77.f-torture/execute and add dg-run directive.
2004-07-21  David Billinghurst (David.Billinghurst@riotinto.com)

	Copy cases from g77.f-torture/execute and add dg-run
	directive.  Other changes as noted.
	* gfortran.dg/g77/13037.f
	* gfortran.dg/g77/1832.f
	* gfortran.dg/g77/19981119-0.f
	* gfortran.dg/g77/19990313-0.f
	* gfortran.dg/g77/19990313-1.f
	* gfortran.dg/g77/19990313-2.f
	* gfortran.dg/g77/19990313-3.f
	* gfortran.dg/g77/19990419-1.f
	* gfortran.dg/g77/19990826-0.f
	* gfortran.dg/g77/19990826-2.f
	* gfortran.dg/g77/20000503-1.f
	* gfortran.dg/g77/20001111.f
	* gfortran.dg/g77/20010116.f
	* gfortran.dg/g77/20010426-1.f: Renamed from 20010426-1.f
	* gfortran.dg/g77/20010430.f
	* gfortran.dg/g77/6177.f
	* gfortran.dg/g77/947.f
	* gfortran.dg/g77/970816-3.f
	* gfortran.dg/g77/971102-1.f
	* gfortran.dg/g77/980520-1.f
	* gfortran.dg/g77/980628-0.f
	* gfortran.dg/g77/980628-1.f
	* gfortran.dg/g77/980628-10.f
	* gfortran.dg/g77/980628-2.f
	* gfortran.dg/g77/980628-3.f
	* gfortran.dg/g77/980628-7.f
	* gfortran.dg/g77/980628-8.f
	* gfortran.dg/g77/980628-9.f
	* gfortran.dg/g77/980701-0.f
	* gfortran.dg/g77/980701-1.f
	* gfortran.dg/g77/cabs.f
	* gfortran.dg/g77/claus.f
	* gfortran.dg/g77/complex_1.f
	* gfortran.dg/g77/cpp3.F: Renamed from cpp3.F
	* gfortran.dg/g77/dcomplex.f
	* gfortran.dg/g77/dnrm2.f: Add dg-warnings as required.
	* gfortran.dg/g77/f90-intrinsic-mathematical.f
	* gfortran.dg/g77/f90-intrinsic-numeric.f
	* gfortran.dg/g77/int8421.f
	* gfortran.dg/g77/labug1.f
	* gfortran.dg/g77/large_vec.f
	* gfortran.dg/g77/le.f
	* gfortran.dg/g77/short.f
	* gfortran.dg/g77/README: Update

From-SVN: r84980
2004-07-21 00:00:24 +00:00
Paul Brook 7877332264 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
From-SVN: r84979
2004-07-20 23:21:15 +00:00
Steven Bosscher 406d77a4bb cp-tree.def (TINST_LEVEL): Make it an 'x' node.
* cp-tree.def (TINST_LEVEL): Make it an 'x' node.
	* cp-tree.h (tinst_level_t): New tree type.
	(union lang_tree_node): Handle it.
	(TINST_LOCATION): New accessor macro.
	(make_tinst_level): New prototype.
	* cp-lang.c (cp_tree_size): Handle TINST_LEVEL.
	* decl.c (cp_tree_node_structure): Likewise.
	* error.c (print_instantiation_full_context): Use TINST_LOCATION.
	(print_instantiation_partial_context): Likewise.
	* pt.c (pop_tinst_level): Likewise.
	 (push_tinst_level): Use make_tinst_level.
	* tree.c (make_tinst_level): New function.
	(cp_walk_subtrees): Walk TINST_DECL for a TINST_LEVEL node.

From-SVN: r84977
2004-07-20 23:20:08 +00:00
Zack Weinberg 3e95a7cbf5 rtl.h (plus_constant): Delete.
* rtl.h (plus_constant): Delete.
	(plus_constant_wide): Rename to plus_constant.
	(plus_constant_for_output_wide): Delete vestigial prototype.
	(GEN_INT): Remove unnecessary cast.
	* tree.h (build_int_2, size_int_type): Delete.
	(build_int_2_wide): Rename to build_int_2.
	(size_int_wide): Rename to size_int_kind.
	(size_int_type_wide): Rename to size_int_type.
	(size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
	Remove unnecessary cast.
	* tree.c (build_int_2_wide): Rename build_int_2; update comment.
	* explow.c (plus_constant_wide): Rename plus_constant; update comment.
	* fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
	(size_int_type_wide): Rename size_int_type.
	(int_const_binop): Use size_int_type.
	* c-lex.c (interpret_integer): Use build_int_2.
	* final.c (split_double): Remove unnecessary casts.
	* tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.

From-SVN: r84976
2004-07-20 23:02:36 +00:00
Richard Henderson 1479707591 gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
* gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
        (gimplify_compound_lval): Use is_gimple_tmp_reg.
        * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
        (is_gimple_tmp_reg): New.
        * tree-gimple.h (is_gimple_tmp_reg): Declare.

From-SVN: r84975
2004-07-20 15:47:58 -07:00
Richard Henderson 40a37b0473 tree-pretty-print.c (dump_generic_node): Dump CALL_EXPR_HAS_RETURN_SLOT_ADDR.
* tree-pretty-print.c (dump_generic_node): Dump
        CALL_EXPR_HAS_RETURN_SLOT_ADDR.

From-SVN: r84974
2004-07-20 15:43:41 -07:00
Nathan Sidwell 3cbf09de66 vec.h (VEC_T_length, [...]): Use unsigned, not size_t.
* vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
	VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
	VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
	size_t.
	(struct VEC): Use unsigned for num and alloc.
	* vec.c (struct vec_prefix): Likewise.
	(vec_o_reserve): Adjust.

From-SVN: r84973
2004-07-20 20:25:02 +00:00
Frank Ch. Eigler 5d33f41f03 tree-mudflap.c (mf_set_options_fndecl): New tree.
2004-07-20  Frank Ch. Eigler  <fche@redhat.com>

	* tree-mudflap.c (mf_set_options_fndecl): New tree.
	(mudflap_init): Set it.
	(mudflap_register_call): Remove __mf_init call.
	(mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
	to pass "-ignore-reads" option to libmudflap if needed.

From-SVN: r84972
2004-07-20 20:01:12 +00:00
Frank Ch. Eigler a082fc7afc mf-impl.h (__mf_options): Add ignore_reads and timestamps fields.
2004-07-20  Frank Ch. Eigler  <fche@redhat.com>

	* mf-impl.h (__mf_options): Add ignore_reads and timestamps fields.
	* mf-runtime.c (options): Give them a name.
	(__mf_set_default_options): Set them.
	(__mf_insert_new_object, __mfu_unregister): Optionalize timestamps.
	(__mf_violation): Warning cleanup.
	* mf-impl.h (MF_VALIDATE_EXTENT): Support ignore_reads option.
	* splay-tree.c (splay_tree_delete_helper): Remove obsolete decl.

From-SVN: r84971
2004-07-20 20:00:56 +00:00
John David Anglin 9a55eab313 re PR c++/14607 (Duplicate symbol "vtable for node" in files div.o and env.o)
PR c++/14607
	* config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
	(MAKE_DECL_ONE_ONLY): Undefine.
	* pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
	readonly_data, one_only_data_section, forget_section): New prototypes.
	* pa.c (pa_init_machine_status, som_text_section_asm_op): New
	functions.
	(pa_select_section): Add one-only (COMDAT) support.
	* pa.h (struct machine_function): Define.
	* som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
	(TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
	(DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
	ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
	ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
	(EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
	(EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
	(READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
	ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
	for EXTRA_SECTION_FUNCTIONS.
	* doc/install.texi: Update binutils requirements.

From-SVN: r84970
2004-07-20 19:52:11 +00:00
Mark Mitchell da7404533a * parser.c (cp_parser_simple_type_specifier): Fix typo.
From-SVN: r84966
2004-07-20 19:13:36 +00:00
Mark Mitchell f68e4dc883 re PR c++/16637 (syntax error on valid input code)
PR c++/16637
	* parser.c (cp_parser_simple_type_specifier): Do not record usage
	of globally-qualified names.

	PR c++/16637
	* g++.dg/parse/lookup4.C: New test.

From-SVN: r84965
2004-07-20 17:58:43 +00:00
Bryce McKinlay f82bb1bed3 re PR libgcj/16591 (Missing '#ifndef DISABLE_MAIN_ARGS' in _Jv_RunMain (libjava/prims.cc))
2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>

	PR libgcj/16591
	* prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if
	DISABLE_MAIN_ARGS is defined.

From-SVN: r84964
2004-07-20 18:57:58 +01:00
Bryce McKinlay f6bbce40a3 Socket.java (getImpl): Now private.
2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>

	* java/net/Socket.java (getImpl): Now private. Remove comment.

From-SVN: r84963
2004-07-20 18:48:35 +01:00