Commit Graph

74810 Commits

Author SHA1 Message Date
Tom Tromey a7285117b4 re PR libgcj/26861 (VirtualMachineError in interperter.)
PR libgcj/26861:
	* interpret.cc (run) <insn_getfield>: Removed 0xffff check.
	<insn_putfield>: Likewise.
	(NULLCHECK): Define unconditionally.
	* link.cc (ensure_class_linked): Removed dead code.

From-SVN: r113531
2006-05-04 17:35:05 +00:00
Tom Tromey b149e89e77 Class.h (JV_STATE_LOADING): Added comment.
* java/lang/Class.h (JV_STATE_LOADING): Added comment.
	* Makefile.in: Rebuilt.
	* Makefile.am (nat_source_files): Added natSystemClassLoader.cc.
	* gnu/gcj/runtime/natSystemClassLoader.cc: New file.
	* gnu/gcj/runtime/SystemClassLoader.java (nativeClasses):
	New field.
	(loadedClasses): Removed.
	(findClass): Declare.
	(addClass): Add to nativeClasses, not loadedClasses.

From-SVN: r113530
2006-05-04 15:29:22 +00:00
Bernd Schmidt 5eedb0ce4e bfin: New directory.
* gcc.target/bfin: New directory.
	* gcc.target/bfin/bfin.exp: New file.
	* gcc.target/bfin/frmul.c: New file.
	* gcc.target/bfin/arith.c: New file.
	* gcc.target/bfin/mul-combine.c: New file.
	* gcc.target/bfin/shift.c: New file.

From-SVN: r113529
2006-05-04 15:14:43 +00:00
Richard Guenther d818832cdd re PR tree-optimization/14287 ([tree-ssa] does not remove unnecessary extensions)
2006-05-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/14287
	PR tree-optimization/14844
	PR tree-optimization/19792
	PR tree-optimization/21608
	PR tree-optimization/27090
	* tree-ssa-pre.c (try_combine_conversion): New function.
	(compute_avail): After constructing the value-handle
	expression, use try_combine_conversion to combine NOP_EXPRs
	with previous value-handle expressions and use the result if it
	is available.

	* gcc.dg/tree-ssa/ssa-fre-1.c: New testcase.
	* gcc.dg/tree-ssa/ssa-fre-2.c: Likewise.
	* gcc.dg/tree-ssa/ssa-fre-3.c: Likewise.
	* gcc.dg/tree-ssa/ssa-fre-4.c: Likewise.
	* gcc.dg/tree-ssa/ssa-fre-5.c: Likewise.

From-SVN: r113527
2006-05-04 13:56:52 +00:00
Andrew Haley 4f72054bca re PR libgcj/26858 (NullPointerException not generated for large classes...)
2006-05-04  Andrew Haley  <aph@redhat.com>

        PR java/26858
        * testsuite/libjava.lang/PR26858.xfail: Delete.

From-SVN: r113526
2006-05-04 13:54:15 +00:00
Joseph Myers 6c4b5a19cf * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
From-SVN: r113524
2006-05-04 14:21:11 +01:00
Tobias Schlüter 73464abffe simplify.c (ascii_table): Fix wrong entry.
* simplify.c (ascii_table): Fix wrong entry.

From-SVN: r113523
2006-05-04 15:07:07 +02:00
Jan Hubicka 69fb12844d re PR middle-end/25962 (Pointer (null) check after the use in cgraph.c)
PR middle-end/25962
	* cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.

From-SVN: r113522
2006-05-04 12:42:55 +00:00
Bernd Schmidt 42da70b76e bfin.c: Include "optabs.h".
* config/bfin/bfin.c: Include "optabs.h".
	(bfin_rtx_costs): Some costs for vector operations, to allow combine
	to do more work.
	(enum bfin_builtins): Add a number of fractional and vector builtins.
	(bfin_init_builtins): Likewise.
	(struct builtin_description, bdesc_2arg, bdesc_1arg): New.
	(safe_vector_operand, bfin_expand_binop_builtin,
	bfin_expand_unop_builtin): New functions.
	(bfin_expand_builtin): Handle the new builtins.
	* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
	__ADSPBLACKFIN__.

From-SVN: r113521
2006-05-04 11:10:03 +00:00
Bernd Schmidt 554006bd1a predicates.md (const01_rtx): Tell generator programs that this only matches CONST_INTs.
* config/bfin/predicates.md (const01_rtx): Tell generator programs
	that this only matches CONST_INTs.  All users changed to VOIDmode
	operands.

From-SVN: r113520
2006-05-04 11:03:41 +00:00
Douglas Gregor 49525c762c re PR libstdc++/27404 (Rope iterators are not InputIterators)
2006-05-04  Douglas Gregor  <dgregor@cs.indiana.edu>

	PR libstdc++/27404
	* include/ext/rope (_Rope_const_iterator<>::operator*() const,
	_Rope_iterator<>::operator*() const): Add.

From-SVN: r113519
2006-05-04 09:37:56 +00:00
Razya Ladelsky 8cd37d0b6c [multiple changes]
2006-05-04  Leehod Baruch  <leehod@il.ibm.com>

        * see.c: New file.
        * Makefile.in (OBJS-common): Add see.o.
        (see.o): Add dependencies.
        * common.opt (fsee): New flag for the see optimization was added.
        * opts.c (flag_see): Initialized.
        * passes.c (init_optimization_passes, pass_see): New pass.
        * rtl.h (see_main): Declaration as extern.
        * timevar.def (TV_SEE): New.
        * tree-pass.h (pass_see): Declaration as extern.
        * invoke.texi (-fsee): Document.
        * recog.c (validate_simplify_insn): New function.
        * recog.h (validate_simplify_insn): Declaration as extern.
        * df-problems.c (df_chain_dump): Check for NULL.

2006-05-04  Kenneth Zadeck <zadeck@naturalbridge.com>
            Daniel Berlin  <dberlin@dberlin.org>

        * cfgrtl.c (insert_insn_bb_end_new): New function.
        * basic-block.h (insert_insn_bb_end_new): Declaration as extern.

2006-05-04  Leehod Baruch  <leehod.baruch@weizmann.ac.il>

        * df.h (struct web_entry): Moved from web.c.
        (union_defs): Declaration as extern.
        (unionfind_root): Likewise.
        (unionfind_union): Likewise.
        * web.c (struct web_entry): Moved to df.h.
        (unionfind_root): Remove static declaration.
        (unionfind_union): Likewise.
        (union_defs): Likewise and generalize to use callback function.
        (web_main): Update arguments for union_defs function call.

From-SVN: r113518
2006-05-04 09:19:02 +00:00
Richard Guenther 23ba9627f4 re PR tree-optimization/26447 (verify_flow_info failed, load PRE with java program)
2006-05-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/26447
	* tree-ssa-pre.c (realify_fake_stores): For necessary loads
	produce SSA_NAME copies before the store stmt to avoid
	breaking exception handling.

From-SVN: r113517
2006-05-04 07:44:37 +00:00
Jakub Jelinek 0d4b9fa4c8 re PR tree-optimization/27285 (ivopts postgresql miscompilation)
PR tree-optimization/27285
	* gcc.c-torture/execute/pr27285.c: New test.

From-SVN: r113516
2006-05-04 08:43:50 +02:00
Jakub Jelinek f6a5ffbfbf re PR middle-end/27388 (omp_is_private issues)
PR middle-end/27388
	* gimplify.c (omp_is_private): If var is shared in some outer context,
	return false instead of true.  Stop searching on parallel context
	boundary.

	* gcc.dg/gomp/pr27388-1.c: New test.
	* gcc.dg/gomp/pr27388-2.c: New test.
	* gcc.dg/gomp/pr27388-3.c: New test.

From-SVN: r113514
2006-05-04 08:34:06 +02:00
Jakub Jelinek 76c5e6e079 re PR c++/27359 (ICE with missing initialization of iteration variable in parallel for loop)
PR c++/27359
	* parser.c (cp_parser_omp_for_loop): Only call
	cp_parser_abort_tentative_parse if cp_parser_parse_definitely was not
	called.

	* g++.dg/gomp/pr27359.C: New test.

From-SVN: r113513
2006-05-04 08:29:16 +02:00
Alexandre Oliva 0ef1a53701 re PR java/8260 (gcj -fprofile-arcs doesn't work)
PR java/8260
* coverage.c: Use get_gcov_unsigned_t() instead of
unsigned_type_node all over.

From-SVN: r113512
2006-05-04 02:02:01 +00:00
GCC Administrator e5f7bf9f5c Daily bump.
From-SVN: r113508
2006-05-04 00:17:19 +00:00
Steven G. Kargl a23eec13d9 re PR fortran/26896 (Description of implementation of -Wtabs/-Wno-tabs reversed)
2006-03-30  Steven G. Kargl  <kargls@comcast.net>
 
	PR fortran/26896
	* lang.opt: Fix -Wtab description

	PR fortran/20248 
	* lang.opt: New flag -fall-intrinsics.
	* invoke.texi:  Document option.
	* gfortran.h (options_t):  New member flag_all_intrinsics.
	* options.c (gfc_init_options, gfc_handle_option): Set new option.
	sort nearby misplaced options.
	* intrinsic.c (add_sym, make_generic, make_alias):  Use it.
 
2006-03-30  Steven G. Kargl  <kargls@comcast.net>

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

From-SVN: r113502
2006-05-03 21:24:11 +00:00
Andrew MacLeod afd83fe439 re PR tree-optimization/27381 (ice on valid code with -O)
2006-05-02  Andrew MacLeod  <amacleod@redhat.com>

        PR tree-optimization/27381
	* tree-phinodes.c (remove_phi_arg_num): When moving a phi argument, 
	maintain the same immediate_use links.
	* tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker 
	node rather than segfaulting.

From-SVN: r113499
2006-05-03 17:13:37 +00:00
Jakub Jelinek 693d710f2a re PR fortran/27395 (Problem with arrays in the OpenMP REDUCTION clause in Fortran)
PR fortran/27395
	* gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
	rather than TREE_CODE to OMP_CLAUSE_REDUCTION.  Set also GOVD_SEEN
	bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.

	* testsuite/libgomp.fortran/pr27395-1.f90: New test.
	* testsuite/libgomp.fortran/pr27395-2.f90: New test.

From-SVN: r113494
2006-05-03 14:51:33 +02:00
Daniel Berlin 832a0c1d09 re PR tree-optimization/26626 (ICE in in add_virtual_operand)
2006-05-02  Daniel Berlin  <dberlin@dberlin.org>

	Fix PR tree-optimization/26626
	* tree-ssa-structalias.c (compute_points_to_sets): For now, solve
	always.
	* tree-ssa-operands.c (access_can_touch_variable): Allow
	typecasting through union pointers.

From-SVN: r113493
2006-05-03 03:19:22 +00:00
Mark Mitchell cc3281454e re PR c++/27102 (ICE with invalid class name in function template)
PR c++/27102
	* decl.c (grokdeclarator): Robustify checks for defining members
	of incomplete types.
	PR c++/27102
	* g++.dg/template/crash49.C: New test.

From-SVN: r113492
2006-05-03 00:19:40 +00:00
GCC Administrator db40f6d4a1 Daily bump.
From-SVN: r113490
2006-05-03 00:18:06 +00:00
Steve Ellcey b931db5f4d re PR testsuite/27032 (gcc.c-torture/compile/pr23237.c fails)
PR testsuite/27032
	* gcc.c-torture/compile/pr23237.c: Move dg-do line.

From-SVN: r113484
2006-05-02 22:16:13 +00:00
Jakub Jelinek 8ca5b2a2d4 re PR c++/26943 ([gomp] firstprivate + lastprivate uses inefficient barrier)
PR c++/26943
	* omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
	(build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
	to find if var will be a global variable even in the nested context.
	(omp_copy_decl): Only check for global variable at the end, it might
	be overridden in outer contexts.
	(scan_sharing_clauses): For global variables don't create a field.
	(lower_rec_input_clauses): Do nothing for global shared variables.
	Emit a barrier at the end of ILIST if there were any decls in both
	firstprivate and lastprivate clauses.
	(lower_send_clauses): Do nothing for global variables except for
	COPYIN.

	* testsuite/libgomp.c/pr26943-1.c: New test.
	* testsuite/libgomp.c/pr26943-2.c: New test.
	* testsuite/libgomp.c/pr26943-3.c: New test.
	* testsuite/libgomp.c/pr26943-4.c: New test.
	* testsuite/libgomp.c++/pr27337.C: Remove barrier.
	* testsuite/libgomp.c++/pr26943.C: New test.

From-SVN: r113483
2006-05-02 22:03:38 +02:00
Zdenek Dvorak a3428e0701 tree.c (unsigned_type_for, [...]): Make sure a type of the correct signedness is returned.
* tree.c (unsigned_type_for, signed_type_for): Make sure a type
	of the correct signedness is returned.

From-SVN: r113482
2006-05-02 19:59:21 +00:00
Jeff Law 26ef43017a re PR tree-optimization/27364 (VRP miscompiles some unsigned math)
PR tree-optimization/27364
	* tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
	multiply expressions.

	* gcc.c-torture/execute/pr27364.c: New test.

From-SVN: r113481
2006-05-02 13:54:20 -06:00
Bryce McKinlay e6cbdf26b4 libjava.exp (test_libjava): Test bytecode->native -findirect-dispatch compilation.
2006-05-02  Bryce McKinlay  <mckinlay@redhat.com>

        * testsuite/lib/libjava.exp (test_libjava): Test bytecode->native
        -findirect-dispatch compilation.

From-SVN: r113477
2006-05-02 18:41:40 +01:00
Mark Mitchell 7137605e8f re PR c++/27309 (ICE on invalid constructor definition)
PR c++/27309
	* class.c (add_method): Call grok_special_member_properties.
	* decl.c (grokdeclarator): Don't call it here.
	(copy_fn_p): A TEMPLATE_DECL is never a copy constructor or
	assignment operator.  Set TYPE_HAS_CONSTURCTOR if DECL is a
	constructor.
	(start_method): Don't call grok_special_member_properties.
	* method.c (implicitly_declare_fn): Likewise.
	* pt.c (instantiate_class_template): Likewise.
	* decl2.c (grokfield): Likewise.
	PR c++/27309
	* g++.dg/parser/ctor5.C: New test.

From-SVN: r113473
2006-05-02 15:59:50 +00:00
Tom Tromey 263bb8fb86 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
From-SVN: r113472
2006-05-02 15:54:00 +00:00
Kazu Hirata 3abde0f150 re PR target/27387 (Thumb thunk is not PIC)
gcc/
	PR target/27387
	* arm.c (arm_output_mi_thunk): Use pc-relative addressing when
	-mthumb -fPIC are used.

testsuite/
	PR target/27387
	* gcc.target/arm/arm.exp: New.
	* gcc.target/arm/pr27387.C: Likewise.

From-SVN: r113468
2006-05-02 15:06:35 +00:00
Kazu Hirata 54b9e93953 re PR target/27387 (Thumb thunk is not PIC)
gcc/
	PR target/27387
	* arm.c (arm_output_mi_thunk): Use pc-relative addressing when
	-mthumb -fPIC are used.

testsuite/
	PR target/27387
	* gcc.target/arm/arm.exp: New.
	* gcc.target/arm/pr27387.C: Likewise.

From-SVN: r113467
2006-05-02 15:04:52 +00:00
Paul Thomas 613e2ac8d3 re PR fortran/27269 (Segfault with EQUIVALENCEs in modules together with ONLY clauses)
2006-05-02 Paul Thomas <pault@gcc.gnu.org>

        PR fortran/27269
        * module.c: Add static flag in_load_equiv.
        (mio_expr_ref): Return if no symtree and in_load_equiv.
        (load_equiv): If any of the equivalence members have no symtree, free
        the equivalence and the associated expressions.

        PR fortran/27324
        * trans-common.c (gfc_trans_common): Invert the order of calls to
        finish equivalences and gfc_commit_symbols.

        PR fortran/27269
        PR fortran/27324
        * gfortran.dg/module_equivalence_2.f90: New test.

From-SVN: r113465
2006-05-02 14:13:17 +00:00
Daniel Jacobowitz 597fb86c90 Correct changelog date in last commit.
From-SVN: r113463
2006-05-02 14:00:22 +00:00
Daniel Jacobowitz 84309a323e * texi2pod.pl: Handle -I.
From-SVN: r113462
2006-05-02 13:50:58 +00:00
Zdenek Dvorak 7aa20a86fe Fix mistake in my previous commit (n_of_executions_at_least should be
named n_of_executions_at_most).

From-SVN: r113461
2006-05-02 13:16:37 +00:00
Stanislaw Skowronek d541888b0f re PR target/25871 (TRAMPOLINE_TEMPLATE uses 32bit moves on 64bit code)
2006-05-02  Joshua Kinard  <kumba@gentoo.org>

	PR target/25871
	* gcc/config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
	with 64-bit pointers.

From-SVN: r113460
2006-05-02 12:57:52 +00:00
Paul Brook 7a7017bc20 arm.c (add_minipool_forward_ref): Check if insn and pool overlap.
2006-05-02  Paul Brook  <paul@codesourcery.com>

	* config/arm/arm.c (add_minipool_forward_ref): Check if insn
	and pool overlap.
	(create_fix_barrier): Check that a suitable barrier location is
	found.
	(arm_reorg): Include ftmp->address in allowable range of addresses.

From-SVN: r113459
2006-05-02 12:49:48 +00:00
David Billinghurst 3beef5cbb2 re PR ada/27366 (ada build fails as cygwin does not have clearenv)
2006-05-02  David Billinghurst <David.Billinghurst@riotinto.com>
 
         PR ada/27366
         * ada/env.c (__gnat_clearenv): Use unsetenv() to clear
	 environment on Cygwin.

From-SVN: r113457
2006-05-02 11:38:35 +00:00
Jakub Jelinek 077b0dfbfe re PR middle-end/27337 (OpenMP ICE in expand_expr_real_1 at expr.c:6814)
PR middle-end/27337
	* gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
	around RESULT_DECL for result passed by reference.
	(gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
	* omp-low.c (use_pointer_for_field): Don't look at
	DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
	(scan_omp_1): Call remap_decl on RESULT_DECLs.
	(lower_rec_input_clauses): Don't allocate VLA memory for the second
	time or var for passing by reference for
	OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses.  Allow creation of
	TREE_ADDRESSABLE variables when passing by reference.

	* omp-low.c (dump_omp_region): Fix output formatting.
cp/
	* cp-gimplify.c (cxx_omp_privatize_by_reference): New function.
	* cp-tree.h (cxx_omp_privatize_by_reference): New prototype.
	* cp-objcp-common.h (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Define.
testsuite/
	* g++.dg/gomp/pr27337-1.C: New test.
	* g++.dg/gomp/pr27337-2.C: New test.
libgomp/
	* testsuite/libgomp.c++/pr27337.C: New test.

From-SVN: r113456
2006-05-02 12:44:55 +02:00
Jakub Jelinek 2aee3e57ae re PR middle-end/27328 (ICE with -fopenmp and goto)
PR middle-end/27328
	* omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
	(expand_omp_parallel): Likewise.
	* tree-cfg.c (move_sese_region_to_fn): Likewise.

	* gcc.dg/gomp/pr27328.c: New test.

From-SVN: r113455
2006-05-02 12:41:44 +02:00
Jakub Jelinek 4a31b7ee3c re PR middle-end/27325 (ICE with enabled exceptions and -fopenmp)
PR middle-end/27325
	* omp-low.c (lower_omp_sections): Call maybe_catch_exception
	on statement list containing also constructors and destructors.
	(lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.

	* g++.dg/gomp/pr27325.C: New test.

From-SVN: r113454
2006-05-02 12:40:21 +02:00
Jakub Jelinek d5d86fde90 re PR middle-end/27310 (ICE in duplicate_eh_regions)
PR middle-end/27310
	* except.c (duplicate_eh_regions): Fix clearing of
	cfun->eh->region_array entries.

	* g++.dg/gomp/pr27310.C: New test.

From-SVN: r113453
2006-05-02 12:38:12 +02:00
Ben Elliston 7d0e5ebe7b Trivial formatting fixes accumulated over the last few months.
From-SVN: r113452
2006-05-02 15:53:01 +10:00
DJ Delorie 3d8f47a092 Fix typo.
From-SVN: r113448
2006-05-01 20:59:56 -04:00
DJ Delorie c15b113ba2 configure.ac (gcc_cv_nm): Don't use an in-tree nm if build!=host.
* configure.ac (gcc_cv_nm): Don't use an in-tree nm if
build!=host.
(gcc_cv_objdump): Likewise.
* configure: Regenerated.

From-SVN: r113447
2006-05-01 20:55:43 -04:00
GCC Administrator 7ba437d672 Daily bump.
From-SVN: r113445
2006-05-02 00:17:16 +00:00
DJ Delorie ed606bc0c8 configure.in: Restore CFLAGS if GM P isn't present.
* configure.in: Restore CFLAGS if GM P isn't present.
* configure: Regenerate.

From-SVN: r113444
2006-05-01 20:17:08 -04:00
Kazu Hirata 94634f146e re PR target/27374 (*arm_movdi_vfp in config/arm/vfp.md has wrong output templates)
PR target/27374
	* config/arm/vfp.md (*arm_movdi_vfp): Correct the output
	templates for case 3 and 4.

From-SVN: r113436
2006-05-01 21:55:02 +00:00