Commit Graph

69015 Commits

Author SHA1 Message Date
Tobias Schlüter 8e4005784d re PR fortran/19195 (gfortran: ICE in final_scan_insn, at final.c:1843)
fortran/
2005-06-04  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
	Erik Schnetter  <schnetter@aei.mpg.de>

	PR fortran/19195
	* trans.c (gfc_get_backend_locus): Remove unnecessary adjustment,
	remove FIXME comment.

testsuite/
2005-06-04  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>

	PR fortran/19195
	* gfortran.dg/debug_1.f90: New test.

Co-Authored-By: Erik Schnetter <schnetter@aei.mpg.de>

From-SVN: r100603
2005-06-05 00:20:58 +02:00
Roger Sayle 579e4a82ec reg-stack.c (struct block_info_def): Correct grammar typo.
* reg-stack.c (struct block_info_def): Correct grammar typo.
	(compensate_edge): Clean-up.  Perform as little work as possible
	when src and dest stacks match.  Avoid modifying block_info.
	Reorder and simplify assertion checks.  Avoid unnecessary copying
	of regstack structure.
	(convert_regs_1): Set the done flag here...
	(convert_regs_2): ... instead of here.

From-SVN: r100602
2005-06-04 22:05:35 +00:00
Dale Johannesen 6d0a809119 rs6000.c (no_global_regs_above): New.
2005-06-04  Dale Johannesen  <dalej@apple.com>

        * config/rs6000/rs6000.c (no_global_regs_above): New.
        (rs6000_emit_prologue):  Use it; cosmetic formatting fixes.
        (rs6000_emit_epilogue):  Use it; cosmetic formatting fixes.
        (rs6000_conditional_register_usage): Don't put Darwin PIC
        register in global_regs.
        (rs6000_stack_info):  Don't set lr_save_p just because Darwin
        PIC reg used.
        (rs6000_emit_prologue):  Save LR in R0 around Darwin PIC setup,
        if not done by lr_save_p.
        * config/rs6000/rs6000.md (insnv1_internal1):  Back out 05-18 patch.
        Use rotate instead of ashift.
        (call_indirect_nonlocal_sysv):  Prefer CTR to LR.
        (call_value_indirect_nonlocal_sysv):  Ditto.

From-SVN: r100601
2005-06-04 21:32:40 +00:00
Jan Hubicka d71cc23f71 cgraphunit.c (cgraph_reset_node): Break out from ...
* cgraphunit.c (cgraph_reset_node): Break out from ...
	(cgraph_finalize_function): ... here.
	(cgraph_finalize_compilation_unit): Reset nodes where backend
	removed the body.

From-SVN: r100599
2005-06-04 20:23:13 +00:00
Richard Henderson 0f1341c792 re PR target/21888 (bootstrap failure with linker relaxation enabled)
PR target/21888
        * config/alpha/alpha.c (alpha_align_insns): Don't insert nops
        until we've passed initial ldgp.

From-SVN: r100596
2005-06-04 12:23:53 -07:00
Daniel Berlin 833b3afe49 cfgexpand.c (expand_one_var): Use DECL_HAS_VALUE_EXPR_P.
2005-06-01  Daniel Berlin  <dberlin@dberlin.org>

	* cfgexpand.c (expand_one_var): Use DECL_HAS_VALUE_EXPR_P.
	* dwarf2out.c (loc_descriptor_from_tree_1): Ditto.
	* expr.c (expand_var): Ditto.
	* function.c (gimplify_parameters): Use SET_DECL_VALUE_EXPR too.
	* gimplify.c (gimplify_decl_expr): Ditto.
	(gimplify_expr): Ditto.
	* tree-mudflap.c (mf_decl_eligible_p): Use DECL_HAS_VALUE_EXPR_P.
	* tree.c (value_expr_for_decl): New.
	(print_value_expr_statistics): New.
	(init_ttree): Init value_expr_for_decl.
	(decl_value_expr_lookup): New.
	(decl_value_expr_insert): Ditto.
	(copy_node_stat): Copy DECL_VALUE_EXPR status.
	* tree.h (DECL_VALUE_EXPR): Use hashtable.
	(SET_DECL_VALUE_EXPR): New.
	(DECL_HAS_VALUE_EXPR_P): New.

From-SVN: r100592
2005-06-04 17:22:21 +00:00
Steven Bosscher 610d24786d lcm.c: Move all mode-switching related functions from here...
* lcm.c: Move all mode-switching related functions from here...
	* mode-switching.c: ...to this new file.
	* doc/passes.texi: Update accordingly.

	* basic-block.h (label_value_list): Remove extern decl.
	* cfgrtl.c (label_value_list): Remove.
	(can_delete_label_p): Don't look at it.
	* cfgcleanup.c (cleanup_cfg): Don't free it.

	* common.opt: Don't refer to non-existing flag_alias_check.

From-SVN: r100591
2005-06-04 17:07:57 +00:00
David Edelsohn 4736115ed4 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power5.
From-SVN: r100589
2005-06-04 11:35:50 -04:00
Kazu Hirata f995dcfefe function.c (prologue, [...]): Change their types to VEC(int,heap)*.
* function.c (prologue, epilogue, sibcall_epilogue): Change
	their types to VEC(int,heap)*.
	(free_after_compilation): Free the three vectors above.
	(init_function_for_compilation, record_insns, contains,
	prologue_epilogue_contains, sibcall_epilogue_contains,
	reposition_prologue_and_epilogue_notes): Use VEC instead of
	VARRAY.  (init_function_once): Remove.
	* function.h: Remove the prototype for init_function_once.
	* toplev.c (backend_init): Don't call init_function_once.

From-SVN: r100588
2005-06-04 14:02:35 +00:00
Anthony Green 4226398ba7 Update copyright year.
From-SVN: r100585
2005-06-04 11:39:12 +00:00
Anthony Green 15f1298bf1 URLClassLoader.java: import gnu.gcj.Core, and gnu.java.net.protocol.core.CoreInputStream.
2005-06-04  Anthony Green  <green@redhat.com>

        * java/net/URLClassLoader.java: import gnu.gcj.Core,
        and gnu.java.net.protocol.core.CoreInputStream.
        (CureURLLoader): New class.
        (CoreResource): New class.
        (addURLImpl): Add special treatment for the "core" protocol.
        * gnu/gcj/natCore.cc (find): New method.
        * gnu/gcj/Core.java (find): New method.

From-SVN: r100582
2005-06-04 11:23:29 +00:00
Jan Hubicka e0342c26d3 predict.c (tree_predict_edge): Do not predict entry edge and single succestor edge.
* predict.c (tree_predict_edge): Do not predict entry edge and
	single succestor edge.

From-SVN: r100581
2005-06-04 11:00:57 +00:00
Tobias Schlüter 29405f9481 match.c (match_forall_iterator): Don't immediately give error if '=' is not followed by an expression.
fortran/
	* match.c (match_forall_iterator): Don't immediately give error if '='
	is not followed by an expression.
testsuite/
	* gfortran.dg/forall_1.f90: New test.

Co-Authored-By: Erik Edelmann <erik.edelmann@iki.fi>

From-SVN: r100580
2005-06-04 12:35:00 +02:00
Tobias Schlüter ab21e2722d array.c (gfc_match_array_constructor): Disallow empty array constructor.
fortran/
2005-06-03  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
	Erik Edelmann  <erik.edelmann@iki.fi>

	* array.c (gfc_match_array_constructor): Disallow empty array
	constructor.
testsuite/
2005-06-04  Erik Edelmann  <erik.edelmann@iki.fi>

	* gfortran.dg/array_constructor_3.f90: New test.

From-SVN: r100579
2005-06-04 12:26:57 +02:00
Tobias Schlüter 9a28687dcf * gfortran.dg/ret_pointer_1.f90: Un-XFAIL.
From-SVN: r100578
2005-06-04 12:10:32 +02:00
Richard Sandiford f26f6b8d5e * MAINTAINERS: Update my email address.
From-SVN: r100577
2005-06-04 06:23:19 +00:00
Jerry DeLisle 323d0f0bf2 intrinsic.texi: Add documentation for command_argument_count...
2005-06-03  Jerry DeLisle <jvdelisle@verizon.net>

	* fortran/intrinsic.texi: Add documentation for
	command_argument_count, conjg, dconjg, count,
	cpu_time, cshift, date_and_time, dble, dfloat.

From-SVN: r100575
2005-06-04 04:31:34 +00:00
Hans-Peter Nilsson 28da59e8c4 * g++.dg/opt/crossjump1.C: Gate -fPIC usage on target fpic.
From-SVN: r100574
2005-06-04 03:24:39 +00:00
Joseph Myers 472d98b46b re PR c/21873 (infinite warning loop on bad array initializer)
PR c/21873
	* c-typeck.c (push_init_level): Don't pop levels without braces if
	implicit == 1.

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

From-SVN: r100571
2005-06-04 02:34:47 +01:00
GCC Administrator ecb83da783 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r100569.2
2005-06-04 00:16:26 +00:00
Geoffrey Keating 7fa3585cd4 c-parser.c (c_parser_parms_declarator): Don't use chainon().
* c-parser.c (c_parser_parms_declarator): Don't use chainon().
	(c_parser_expr_list): Don't use chainon().

From-SVN: r100567
2005-06-04 00:06:22 +00:00
Sebastian Pop 789246d71a tree-data-ref.c (compute_self_dependence): New function.
2005-06-03  Sebastian Pop  <pop@cri.ensmp.fr>

	* tree-data-ref.c (compute_self_dependence): New function.
	(compute_all_dependences): Use it.

From-SVN: r100565
2005-06-03 23:27:03 +00:00
Mark Mitchell dad732fa41 re PR c++/21853 (constness of pointer to data member ignored)
PR c++/21853
	* typeck.c (casts_away_constness_r): Do not drop cv-qualifiers on
	the pointed-to type for a pointer-to-member.

	PR c++/21853
	* g++.dg/expr/static_cast6.C: New test.

From-SVN: r100560
2005-06-03 23:22:11 +00:00
Geoffrey Keating d0b73789d3 darwin.h (LINK_SPEC): Pass -syslibroot to linker when -isysroot passed.
* config/darwin.h (LINK_SPEC): Pass -syslibroot to linker
	when -isysroot passed.

From-SVN: r100559
2005-06-03 23:21:19 +00:00
Joseph Myers d4d1cfd444 re PR c/21879 (Memory management problem)
PR c/21879
	* c-decl.c (start_function): Restore label_context_stack_se and
	label_context_stack_vm  if returning with an error.

From-SVN: r100557
2005-06-03 23:25:13 +01:00
Keith Seitz fd693ba3cc * gnu/classpath/jdwp/transport/TransportFactory.java: New file.
From-SVN: r100556
2005-06-03 22:21:52 +00:00
Gabriel Dos Reis 7391b66c6a configure.ac: Check declaration for asprintf, needed by libiberty.h.
* configure.ac: Check declaration for asprintf, needed by
        libiberty.h.
        * configure: Regenerate.
        * config.in: Likewise.

From-SVN: r100555
2005-06-03 21:13:59 +00:00
Diego Novillo 441e96b5bc tree-ssa-dom.c (record_edge_info): Use last_basic_block to allocate info array.
* tree-ssa-dom.c (record_edge_info): Use last_basic_block to
	allocate info array.
	* tree-vrp.c (extract_range_from_unary_expr): Set resulting
	range to varying in cast expressions that change
	TYPE_PRECISION.

testsuite/ChangeLog

	* gcc.dg/tree-ssa/vrp14.c: New test.

From-SVN: r100554
2005-06-03 17:07:11 -04:00
Keith Seitz 658a82f8ed ITransport.java: New file.
* gnu/classpath/jdwp/transport/ITransport.java: New file.
        * gnu/classpath/jdwp/transport/SocketTransport.java: New file.

From-SVN: r100553
2005-06-03 20:56:09 +00:00
Eric Christopher 25e3d99dc2 mips.opt: Add RejectNegative to divide-breaks and divide-traps.
2005-06-03  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.opt: Add RejectNegative to divide-breaks and
        divide-traps.

From-SVN: r100552
2005-06-03 19:07:39 +00:00
Jan Hubicka 3809e99053 basic-block.h (remove_predictions_associated_with_edge): Declare.
* basic-block.h (remove_predictions_associated_with_edge): Declare.
	* cfg.c (remove_edge): Use it.
	* predict.c (remove_predictions_associated_with_edge): New function.

From-SVN: r100551
2005-06-03 19:03:29 +00:00
Pat Haugen 7c9ac5c035 rs6000.c (rs6000_conditional_register_usage): Clear call_realy_used_regs[r2] when ABI_AIX.
2005-06-03  Pat Haugen  <pthaugen@us.ibm.com>

        * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
        Clear call_realy_used_regs[r2] when ABI_AIX.

From-SVN: r100549
2005-06-03 13:18:04 -04:00
Paolo Carlini 4fd20a8f82 re PR libstdc++/21770 (rebinding allocator::value type vs. container::value_type)
2005-06-03  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/21770
	* include/bits/stl_deque.h: Add concept-check. In class _Deque_base
	rebind _Alloc to  _Tp_alloc_type, change _Deque_impl to inherit from
	the latter and add _M_get_Tp_allocator() which returns it. Use
	everywhere _M_get_Tp_allocator() instead of get_allocator().
	* include/bits/deque.tcc: Likewise, use _M_get_Tp_allocator().
	* include/bits/stl_list.h: Add concept-check. In class _List_base
	rebind _Alloc to _Tp_alloc_type and add _M_get_Tp_allocator(), which
	returns the allocator (of type _Node_alloc_type) converted to
	_Tp_alloc_type. Use everywhere _M_get_Tp_allocator() instead of
	get_allocator().
	* include/bits/list.tcc: Likewise, use _M_get_Tp_allocator().
	* include/bits/stl_vector.h: Add concept-check. In class _Vector_base
	rebind _Alloc to _Tp_alloc_type, change _Vector_impl to inherit from
	the latter and add _M_get_Tp_allocator() which returns it. Use
	everywhere _M_get_Tp_allocator() instead of get_allocator().
	* include/bits/vector.tcc: Likewise, use _M_get_Tp_allocator().
	* include/bits/stl_map.h: Add concept-check. Rebind _Alloc to
	_Pair_alloc_type and use it for _Rb_tree.
	* include/bits/stl_multimap.h: Likewise.
	* include/bits/stl_multiset.h: Add concept-check. Rebind _Alloc to
	_Key_alloc_type and use it for _Rb_tree.
	* include/bits/stl_set.h: Likewise.
	* include/bits/basic_string.h: Rebind _Alloc to _CharT_alloc_type and
	use it for the allocator typedefs.
	* testsuite/21_strings/basic_string/1.cc: New.
	* testsuite/23_containers/deque/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/deque/explicit_instantiation/1.cc: ... here.
	* testsuite/23_containers/deque/explicit_instantiation/3.cc: New.
	* testsuite/23_containers/list/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/list/explicit_instantiation/1.cc: ... here.
	* testsuite/23_containers/list/explicit_instantiation/3.cc: New.
	* testsuite/23_containers/map/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/map/explicit_instantiation/1.cc: ... here.
	* testsuite/23_containers/map/explicit_instantiation/3.cc: New.
	* testsuite/23_containers/multimap/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/multimap/explicit_instantiation/1.cc: .. here.
	* testsuite/23_containers/multimap/explicit_instantiation/3.cc: New.
	* testsuite/23_containers/multiset/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/multiset/explicit_instantiation/1.cc: .. here.
	* testsuite/23_containers/multiset/explicit_instantiation/3.cc: New.
	* testsuite/23_containers/set/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/set/explicit_instantiation/1.cc: .. here.
	* testsuite/23_containers/set/explicit_instantiation/3.cc: New.
	* testsuite/23_containers/vector/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/vector/explicit_instantiation/1.cc: ... here.
	* testsuite/23_containers/vector/explicit_instantiation/3.cc: New.

From-SVN: r100546
2005-06-03 17:07:48 +00:00
Mark Mitchell 7e45bd18da re PR c++/21336 (Internal compiler error when using custom new operators)
PR c++/21336
	* cp-tree.h (grok_op_properties): Remove friendp parameter.
	* decl.c (grokfndecl): Adjust call.
	(grok_op_properties): Determine the class of which the function is
	a member by looking at its DECL_CONTEXT, not current_class_type.
	* pt.c (tsubst_decl): Adjust call to grok_op_properties.

	PR c++/21336
	* g++.dg/template/new2.C: New test.

From-SVN: r100541
2005-06-03 16:16:46 +00:00
Josh Conner 83cd747fd9 ppc-vector-memcpy.c (foo): Use non-zero values for all entries in initializer.
* gcc.dg/ppc-vector-memcpy.c (foo): Use non-zero values for
        all entries in initializer.

From-SVN: r100540
2005-06-03 16:07:29 +00:00
Richard Guenther 548e34cdb7 re PR middle-end/21858 (ICE in compare_values, at tree-vrp.c:301)
2005-06-03  Richard Guenther  <rguenth@gcc.gnu.org>

	PR middle-end/21858
	* fold-const.c (fold_binary): Fix type mismatches in folding
	of comparisons.

	* gcc.dg/pr21858.c: New testcase.

From-SVN: r100539
2005-06-03 15:15:46 +00:00
Kazu Hirata ff5c4582e0 cgraph.c, [...]: Fix comment typos.
* cgraph.c, cgraphunit.c, config/mips/mips.c: Fix comment
	typos.

From-SVN: r100538
2005-06-03 13:41:39 +00:00
Joseph Myers 88fbbf4b49 * collect2.c (maybe_unlink): Use unlink_if_ordinary.
From-SVN: r100537
2005-06-03 11:48:06 +01:00
Bernd Schmidt badea87de4 Revert my previous patch.
From-SVN: r100536
2005-06-03 09:55:28 +00:00
Paolo Bonzini b956116ebf re PR testsuite/21292 (gen-vect-11b.c and gen-vect-11c.c fail)
2005-06-03  Paolo Bonzini  <bonzini@gnu.org>

	PR tree-optimization/21292

	* lib/target-supports.exp (check_effective_target_vect_cmdline_needed):
	New.
	* gcc.dg/tree-ssa/gen-vect-11.c, gcc.dg/tree-ssa/gen-vect-11a.c,
	gcc.dg/tree-ssa/gen-vect-11b.c, gcc.dg/tree-ssa/gen-vect-11c.c,
	gcc.dg/tree-ssa/gen-vect-2.c, gcc.dg/tree-ssa/gen-vect-25.c,
	gcc.dg/tree-ssa/gen-vect-26.c, gcc.dg/tree-ssa/gen-vect-28.c,
	gcc.dg/tree-ssa/gen-vect-32.c: Require it.

From-SVN: r100535
2005-06-03 08:09:47 +00:00
Nick Clifton 8db33fd786 Fix typo in ASM_SEPC
From-SVN: r100534
2005-06-03 08:09:26 +00:00
Tom Tromey 4267db9877 re PR java/21722 (gcj miscompiles accesses to static final vars with indirect dispatch)
PR java/21722:
	* class.c (build_static_field_ref): Don't fold constant fields if
	current class is from a .class file and we're using indirect
	dispatch.

From-SVN: r100533
2005-06-03 04:06:19 +00:00
Kazu Hirata 50e5241d1f re PR tree-optimization/21849 (wrong use of sbitmap in tree-ssa-copy.c)
PR tree-optimization/21849
	* tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero.

From-SVN: r100531
2005-06-03 02:55:20 +00:00
Richard Henderson 87e48010be * gcc.dg/sync-2.c: Use -march=i486 for i386.
From-SVN: r100530
2005-06-02 19:35:59 -07:00
Richard Henderson 2b725155ec Makefile.in (tree-vect-generic.o): New.
* Makefile.in (tree-vect-generic.o): New.
        (OBJS-common, GTFILES, s-gtype): Add it.
        * tree-complex.c (build_replicated_const, vector_inner_type,
        vector_last_type, vector_last_nunits, build_word_mode_vector_type,
        elem_op_func, tree_vec_extract, do_unop, do_binop, do_plus_minus,
        do_negate, expand_vector_piecewise, expand_vector_parallel,
        expand_vector_addition, expand_vector_operation,
        type_for_widest_vector_mode, expand_vector_operations_1,
        gate_expand_vector_operations, expand_vector_operations,
        pass_lower_vector_ssa): Move to tree-vect-generic.c.
        (tree_lower_complex): Rename from tree_lower_operations.
        (pass_lower_complex): Rename from pass_pre_expand.
        * tree-vect-generic.c: New file.
        * tree-pass.h (pass_lower_complex): Rename from pass_pre_expand.
        (pass_lower_vector): New.
        * tree-optimize.c (init_tree_optimization_passes): Update to match.

From-SVN: r100529
2005-06-02 19:11:05 -07:00
Richard Henderson aeb556659b modulo-sched.c (doloop_register_get): Protect against doloop_end not defined.
* modulo-sched.c (doloop_register_get): Protect against
        doloop_end not defined.

From-SVN: r100528
2005-06-02 19:00:00 -07:00
Jim Blandy ba4853f8a5 config.sub: Add cases for the Renesas m32c.
* config.sub: Add cases for the Renesas m32c.  (This patch has been
accepted into the master sources.)

From-SVN: r100527
2005-06-02 20:16:32 -04:00
GCC Administrator de77dfe314 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r100525.2
2005-06-03 00:16:23 +00:00
Kazu Hirata 5546ac9012 sh.c (general_movsrc_operand, [...]): Move to ...
* config/sh/sh.c (general_movsrc_operand,
	general_movdst_operand, arith_reg_operand, arith_reg_dest,
	logical_reg_operand, int_gpr_dest, fp_arith_reg_operand,
	fp_arith_reg_dest, arith_operand, arith_reg_or_0_operand,
	xor_operand, cmp_operand, logical_operand, and_operand,
	fpscr_operand, fpul_operand, symbol_ref_operand,
	commutative_float_operator, noncommutative_float_operator,
	unary_float_operator, binary_float_operator,
	binary_logical_operator, equality_comparison_operator,
	greater_comparison_operator, less_comparison_operator,
	shift_operator, logical_operator, target_reg_operand,
	target_operand, mextr_bit_offset, extend_reg_operand,
	trunc_hi_operand, extend_reg_or_0_operand, minuend_operand,
	general_extend_operand, ua_address_operand,
	cache_address_operand, inqhi_operand, sh_rep_vec, sh_1el_vec,
	sh_const_vec, ua_offset, sh_register_operand, cmpsi_operand,
	shift_count_reg_operand, shift_count_operand,
	unaligned_load_operand): Move to ...
	* config/sh/predicates.md: ... here.
	* config/sh/sh.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
	Remove.

From-SVN: r100523
2005-06-02 23:28:53 +00:00
Andrew Pinski e0d161cf09 trans.c (gnat_gimplify_expr): Call recompute_tree_invarant_for_addr_expr when...
2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>

        * trans.c (gnat_gimplify_expr): Call
        recompute_tree_invarant_for_addr_expr when we change
        the operand of the ADDR_EXPR.

From-SVN: r100522
2005-06-02 16:00:06 -07:00