Commit Graph

74845 Commits

Author SHA1 Message Date
Volker Reichelt
f7360901e7 re PR target/27421 (ICE with invalid array in struct)
PR target/27421
	* config/i386/i386.c (classify_argument): Skip fields with invalid
	types.

	* gcc.dg/array-9.c: New test.

From-SVN: r113609
2006-05-07 21:15:33 +00:00
Richard Guenther
18455d174e re PR middle-end/27409 (ICE in get_constraint_for_component_ref)
2006-05-07  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/27409
	* tree-ssa-structalias.c (get_constraint_for_component_ref):
	Do not try to find zero-sized subvars.

	* gcc.dg/torture/pr27409.c: New testcase.

From-SVN: r113607
2006-05-07 21:03:55 +00:00
Paolo Carlini
e716a54401 type_traits (integral_constant<>::value): Define.
2006-05-07  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits (integral_constant<>::value): Define.
	* testsuite/tr1/4_metaprogramming/helper_classes/static_definition.cc:
	New.

From-SVN: r113605
2006-05-07 16:52:41 +00:00
Steven Bosscher
6b95f03f48 ChangeLog: haste made me write my name, but I'm only the commiter of revision 113603.
* ChangeLog: haste made me write my name, but I'm only the
	commiter of revision 113603.

From-SVN: r113604
2006-05-07 16:36:41 +00:00
Steven Bosscher
31909d9ff8 re PR fortran/27378 ([4.1 only] ICE on unexpected ELSE statement)
PR fortran/27378
	* parse.c (next_statement): Add check to avoid an ICE when
	gfc_current_locus.lb is not set.

From-SVN: r113603
2006-05-07 16:33:30 +00:00
Tobias Schlüter
d0bd09f613 re PR fortran/27457 (ICE in match_case_eos())
fortran/
PR fortran/27457
* match.c (match_case_eos): Error out on garbage following
CASE(...).
testsuite/
PR fortran/27457
* gfortran.dg/select_6.f90: New.

From-SVN: r113602
2006-05-07 15:46:02 +02:00
Richard Guenther
ed52affe53 re PR middle-end/27136 (Compile failure with -O -ffast-math)
2006-05-07  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/27136
	* tree-ssa-loop-niter.c (get_val_for): Correct function
	comment, assert requirements.
	(loop_niter_by_eval): Stop processing if the iterated
	value did not simplify.

	* gcc.dg/torture/pr27136.c: New testcase.

From-SVN: r113601
2006-05-07 13:07:22 +00:00
Mircea Namolaru
ef5d0a896e opts.c (flag_see): remove its setting at -O3.
2006-05-07  Mircea Namolaru  <namolaru@il.ibm.com>

        * opts.c (flag_see): remove its setting at -O3.

From-SVN: r113598
2006-05-07 08:21:25 +00:00
Paul Thomas
636da744bb re PR fortran/24813 (ICE with scalarization LEN of character types)
2006-05-07  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/24813
	* trans-array.c (get_array_ctor_strlen): Remove static attribute.
	* trans.h: Add prototype for get_array_ctor_strlen.
	* trans-intrinsic.c (gfc_conv_intrinsic_len): Switch on EXPR_ARRAY
	and call get_array_ctor_strlen.

2006-05-07  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/24813
	* gfortran.dg/char_cons_len_1.f90: New test.

From-SVN: r113594
2006-05-07 05:46:26 +00:00
GCC Administrator
8f9886536f Daily bump.
From-SVN: r113592
2006-05-07 00:17:25 +00:00
Richard Earnshaw
ce92b22346 r113612@merlin: rearnsha | 2006-05-07 00:19:18 +0100
r113612@merlin:  rearnsha | 2006-05-07 00:19:18 +0100
 	* genpeep.c (main): Make insn-peep.c depend on flags.h.
 	* arm/constraints.md: New file.
 	* arm.h (REG_CLASS_FROM_LETTER_P): Delete.
 	(CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
 	(CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
 	(CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
 	(CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
 	(EXTRA_MEMORY_CONSTRAINT): Likewise.
 	* arm.md: Include constraints.md.
 	(thumb_movsi_insn): Use satisfies_constraint_J.
 	(movhi, movqi): Use satisfies_constraint_I.

From-SVN: r113588
2006-05-06 23:19:48 +00:00
Andreas Tobler
b3638b64c3 jni.exp (gcj_jni_compile_c_to_so): Add check for HP-UX and add appropriate extension for shared libraries, sl.
2006-05-06  Andreas Tobler  <a.tobler@schweiz.ch>

	* testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Add check for
	HP-UX and add appropriate extension for shared libraries, sl.
	(gcj_jni_test_one): Likewise.
	
	* testsuite/lib/libjava.exp (libjava_find_lib): Add sl to the shared
	library extensions.

From-SVN: r113587
2006-05-06 22:57:18 +02:00
Anatoly Sokolov
ed1a08a759 avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name for atmega645 device.
* config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name for
	atmega645 device.

From-SVN: r113585
2006-05-07 00:49:20 +04:00
Volker Reichelt
b166a559ed re PR c++/27427 (ICE with invalid template parameter)
PR c++/27427
	* pt.c (convert_nontype_argument): Return early on invalid arguments.

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

From-SVN: r113582
2006-05-06 20:40:23 +00:00
Richard Guenther
75bfa67836 re PR tree-optimization/27151 (ICE with -ftree-vectorize with mixed types)
2006-05-06   Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/27151
	* tree-vect-transform.c (vectorizable_condition): Punt on
	values that have a different type than the condition.

	* gcc.dg/vect/pr27151.c: New testcase.

From-SVN: r113580
2006-05-06 17:37:53 +00:00
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