Commit Graph

74830 Commits

Author SHA1 Message Date
Stanislaw Skowronek
2297e173c6 Credit Stanislaw Skowronek in 2006-05-02 change.
From-SVN: r113577
2006-05-06 16:06:40 +00:00
Volker Reichelt
a14de1afcc * pt.c (process_template_parm): Remove superfluous temporary.
From-SVN: r113573
2006-05-06 00:44:29 +00:00
Volker Reichelt
620188c9f2 re PR c++/27430 (ICE on array of voids as template parameter)
PR c++/27430
	* pt.c (process_template_parm): Handle erroneous non-type parameters.

	* g++.dg/template/void1.C: New test.

From-SVN: r113572
2006-05-06 00:40:40 +00:00
Volker Reichelt
57b529596a re PR c++/27423 (ICE on default argument for void parameter)
PR c++/27423
	* typeck.c (convert_for_initialization): Skip erroneous types.

	* g++.dg/other/void2.C: New test.

From-SVN: r113571
2006-05-06 00:32:27 +00:00
Volker Reichelt
6af455d712 re PR c++/27422 (ICE with invalid function argument)
PR c++/27422
	* typeck.c (convert_arguments): Return early on args with
	invalid types.

	* g++.dg/conversion/void1.C: New test.

From-SVN: r113568
2006-05-06 00:19:40 +00:00
GCC Administrator
cd4677cc49 Daily bump.
From-SVN: r113566
2006-05-06 00:17:22 +00:00
Steven G. Kargl
73a5988f9e invoke.texi: Update description of -fall-intrinsics
2006-05-05  Steven G. Kargl  <kargls@comcast.net>

        * invoke.texi: Update description of -fall-intrinsics
        * options.c (gfc_post_options): Disable -Wnonstd-intrinsics if
        -fall-intrinsics is used.
        (gfc_handle_option): Permit -Wno-nonstd-intrinsics.

From-SVN: r113562
2006-05-05 23:14:50 +00:00
Aldy Hernandez
8d8d1a2801 c-parser.c (c_parser_cast_expression): Only insert casts into hash table if pointer.
PR/21391
        * c-parser.c (c_parser_cast_expression): Only insert casts into
        hash table if pointer.
        * function.c (used_types_insert_helper): Rename from
        used_types_insert.
        (used_types_insert): Call used_types_insert_helper.
        * function.h (used_types_insert): Accept only one argument.
        * cp/typeck.c (build_static_cast_1): Save casted types in used types
        hash table.
        (build_reinterpret_cast_1): Same.
        * cp/rtti.c (build_dynamic_cast_1): Same.
        * testsuite/g++.dg/other/unused1.C: New.

From-SVN: r113561
2006-05-05 19:57:38 +00:00
Volker Reichelt
b207220873 re PR objc/27240 (ICE with invalid fields)
PR objc/27240
	* objc-act.c (objc_is_public): Return early on invalid type.

	* objc.dg/member-1.m: New test.

From-SVN: r113559
2006-05-05 19:48:26 +00:00
David Edelsohn
edd54d25ad rs6000.md: Mark all "X" constraints for clobbered scratch with output modifier.
* config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
	scratch with output modifier.

From-SVN: r113555
2006-05-05 11:23:38 -04:00
Tom Tromey
6ec13f0b96 re PR libgcj/27294 (gij throws NullPointerException, when the interpreter is not enabled)
PR libgcj/27294:
	* java/lang/natVMClassLoader.cc (defineClass): Throw
	VirtualMachineError if no interpreter configured.

From-SVN: r113554
2006-05-05 15:05:20 +00:00
Steve Ellcey
c6ea4dd7ae * gfortran.dg/large_real_kind_form_io_2.f90: Use nearest.
From-SVN: r113553
2006-05-05 15:04:03 +00:00
Francois-Xavier Coudert
1633cb7cb6 re PR libfortran/26985 (incorrect matmul result)
PR libfortran/26985

	* m4/matmul.m4: Correct the condition for the memset call,
	and remove the unneeded call to size0.
	* generated/matmul_r4.c: Regenerate.
	* generated/matmul_r8.c: Regenerate.
	* generated/matmul_r10.c: Regenerate.
	* generated/matmul_r16.c: Regenerate.
	* generated/matmul_c4.c: Regenerate.
	* generated/matmul_c8.c: Regenerate.
	* generated/matmul_c10.c: Regenerate.
	* generated/matmul_c16.c: Regenerate.
	* generated/matmul_i4.c: Regenerate.
	* generated/matmul_i8.c: Regenerate.
	* generated/matmul_i16.c: Regenerate.

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

From-SVN: r113552
2006-05-05 11:08:23 +00:00
Laurent GUERBY
4b5d3f3f41 run_all.sh: Use sync when main not found.
2005-05-05  Laurent GUERBY  <laurent@guerby.net>

       * ada/acats/run_all.sh: Use sync when main not found.

From-SVN: r113550
2006-05-05 08:43:04 +00:00
Tom Tromey
b11382213a java-tree.h (uses_jv_markobj_p): Declare.
* java-tree.h (uses_jv_markobj_p): Declare.
	* class.c (uses_jv_markobj_p): Removed.
	* boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): New define.
	(get_boehm_type_descriptor): Use it.
	(uses_jv_markobj_p): Moved from class.c.  Return bool.

From-SVN: r113549
2006-05-05 00:59:48 +00:00
GCC Administrator
d31f43306b Daily bump.
From-SVN: r113547
2006-05-05 00:17:24 +00:00
Tom Tromey
532f41fa2a * java-tree.def (THIS_EXPR): Now a tcc_expression.
From-SVN: r113542
2006-05-04 23:20:40 +00:00
David Edelsohn
1958f718ef re PR target/26481 (ICE with -mcpu=power and struct passing)
PR target/26481
        * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
        with output modifier.

From-SVN: r113539
2006-05-04 16:40:52 -04:00
Kazu Hirata
05431b8528 re PR target/26765 (ICE in in extract_insn with __thread and optimization)
gcc/
	PR target/26765
	* config/mips/mips.c (mips_symbolic_address_p): Return true
	for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
	SYMBOL_GOTTPREL, and SYMBOL_TLS.

gcc/testsuite/
	PR target/26765
	* gcc.target/mips/pr26765.c: New.

From-SVN: r113536
2006-05-04 20:13:37 +00:00
Andrew Haley
b2ed63b4aa [multiple changes]
2006-05-04  Andrew Haley  <aph@redhat.com>

        * class.c (make_field_value): Always build_address_of fdecl if
        there is an initializer.

2006-05-03  Andrew Haley  <aph@redhat.com>

        PR libgcj/27352
        * expr.c (maybe_rewrite_invocation): New function.
        (rewrite_arglist_getclass): Likewise.
        (rules): New.
        (expand_invoke): Call maybe_rewrite_invocation.
        * parse.y (patch_invoke): Likewise.
        * java-tree.h: (maybe_rewrite_invocation): New function.

2006-05-03  Andrew Haley  <aph@redhat.com>

        PR libgcj/27352
        * java/lang/Class.java (getClassLoader(Class)): New.
        forName(String, Class): New.
        * java/lang/natClass.cc (getClassLoader(Class)): New.

2006-05-02  Andrew Haley  <aph@redhat.com>

        * prims.cc (_Jv_NewMultiArray): Check for phantom class.

From-SVN: r113532
2006-05-04 18:44:53 +00:00
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