1. 13 Jan, 2006 7 commits
  2. 12 Jan, 2006 2 commits
  3. 11 Jan, 2006 10 commits
    • inf-1.c: New test. · 088ae68b
      	* gcc.dg/dfp/inf-1.c: New test.
      
      Co-Authored-By: Ben Elliston <bje@au.ibm.com>
      
      From-SVN: r109611
      Yao Qi committed
    • nodfp-1.c: New test. · 27a2694f
      	* gcc.dg/nodfp-1.c: New test.
      	* gcc.dg/compat/scalar-return-dfp_x.c: Likewise.
      	* gcc.dg/compat/scalar-return-dfp_x.c: Likewise.
      	* gcc.dg/compat/scalar-return-dfp_main.c: Likewise.
      	* gcc.dg/compat/scalar-by-value-dfp_main.c: Likewise.
      	* gcc.dg/compat/scalar-by-value-dfp_x.c: Likewise.
      	* gcc.dg/compat/scalar-return-dfp_y.c: Likewise.
      	* gcc.dg/compat/scalar-by-value-dfp_y.c: Likewise.
      	* gcc.dg/debug/dwarf2/dwarf-float.c: Likewise.
      	* gcc.dg/debug/dwarf2/dwarf-dfp.c: Likewise.
      	* gcc.dg/format/dfp-scanf-1.c: Likewise.
      	* gcc.dg/format/dfp-printf-1.c: Likewise.
      	* gcc.dg/compat/struct-layout-1.exp: Use c-compat.exp.
      	(compat_setup_dfp): New.
      	* gcc.dg/compat/compat.exp: Use it.
      	(compat-use-alt-compiler, compat-use-tst-compiler): Move to new file.
      	Make some variables global, prepend "compat_" to their names.
      	* gcc.dg/compat/struct-layout-1.h: Conditional DFP support.
      	* gcc.dg/compat/struct-layout-1_generate.c: Ditto.
      	* gcc.misc-tests/dectest.exp: New test driver for decTest.
      	* lib/compat.exp (compat_skip_list): Make global, rename.
      	* lib/c-compat.exp: New file.
      	* lib/target-supports.exp (check_effective_target_dfp): New.
      
      	* gcc.dg/dfp/dec-eval-method.c, gcc.dg/dfp/func-array.c,
      	gcc.dg/dfp/convert-dfp-fold.c, gcc.dg/dfp/struct-union.c,
      	gcc.dg/dfp/compare-rel.h, gcc.dg/dfp/convert-dfp-round.c,
      	gcc.dg/dfp/func-struct.c, gcc.dg/dfp/constants-c99.c,
      	gcc.dg/dfp/compare-eq-d32.c, gcc.dg/dfp/func-vararg-mixed.c,
      	gcc.dg/dfp/compare-rel-d128.c, gcc.dg/dfp/operator-comma.c,
      	gcc.dg/dfp/decfloat-constants.c, gcc.dg/dfp/operator-bitwise.c,
      	gcc.dg/dfp/func-mixed.c, gcc.dg/dfp/compare-eq-dfp.c,
      	gcc.dg/dfp/operator-assignment.c, gcc.dg/dfp/dfp-round.h,
      	gcc.dg/dfp/modes.c, gcc.dg/dfp/keywords-c99.c, gcc.dg/dfp/nan-1.c,
      	gcc.dg/dfp/loop-index.c, gcc.dg/dfp/compare-eq-d64.c,
      	gcc.dg/dfp/convert-bfp.c, gcc.dg/dfp/usual-arith-conv-const.c,
      	gcc.dg/dfp/convert-dfp.c, gcc.dg/dfp/compare-rel-const.c,
      	gcc.dg/dfp/convert-int-fold.c, gcc.dg/dfp/keywords-pedantic.c,
      	gcc.dg/dfp/compare-rel-d32.c, gcc.dg/dfp/call-by-value.c,
      	gcc.dg/dfp/constants-hex.c, gcc.dg/dfp/func-scalar.c,
      	gcc.dg/dfp/keywords-ignored-c99.c, gcc.dg/dfp/snan.c,
      	gcc.dg/dfp/usual-arith-conv.c, gcc.dg/dfp/constants-pedantic.c,
      	gcc.dg/dfp/operator-logical.c, gcc.dg/dfp/compare-eq-d128.c,
      	gcc.dg/dfp/convert-bfp-fold.c, gcc.dg/dfp/ctypes.c,
      	gcc.dg/dfp/convert-int.c, gcc.dg/dfp/keywords-c89.c,
      	gcc.dg/dfp/constants.c, gcc.dg/dfp/compare-rel-dfp.c,
      	gcc.dg/dfp/compare-eq-const.c, gcc.dg/dfp/cast-bad.c,
      	gcc.dg/dfp/operator-arith-fold.c, gcc.dg/dfp/union-init.c,
      	gcc.dg/dfp/struct-layout-1.c,
      	gcc.dg/dfp/compare-eq.hgcc.dg/dfp/convert-int-saturate.c,
      	gcc.dg/dfp/compare-rel-d64.c, gcc.dg/dfp/func-vararg-size0.c,
      	gcc.dg/dfp/Wconversion-2.c, gcc.dg/dfp/nan-2.c,
      	gcc.dg/dfp/operator-cond.c, gcc.dg/dfp/composite-type.c,
      	gcc.dg/dfp/func-vararg-dfp.c,
      	gcc.dg/dfp/dfp.expgcc.dg/dfp/keywords-reserved.c,
      	gcc.dg/dfp/convert-complex.c, gcc.dg/dfp/Wbad-function-cast-1.c,
      	gcc.dg/dfp/operator-unary.c, gcc.dg/dfp/altivec-types.c,
      	gcc.dg/dfp/cast.c, gcc.dg/dfp/typespec.c,
      	gcc.dg/dfp/wtr-conversion-1.c: New tests.
      
      Co-Authored-By: Ben Elliston <bje@au.ibm.com>
      Co-Authored-By: Jon Grimm <jgrimm2@us.ibm.com>
      Co-Authored-By: Yao Qi <qiyaoltc@cn.ibm.com>
      
      From-SVN: r109604
      Janis Johnson committed
    • re PR tree-optimization/25734 (ice for legal kernel code with -Os) · a40d3497
      2006-01-11  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/25734
      	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
      	stop propagation after successful propagation to the LHS.
      
      	* gcc.dg/tree-ssa/pr25734.c: New testcase.
      
      From-SVN: r109598
      Richard Guenther committed
    • re PR fortran/25486 (fortran fixed-form literal character constant not padded.) · 043c2d9e
      gcc/fortran:
      2006-01-11  Bernhard Fischer  <rep.nop@aon.at>
      
      	PR fortran/25486
      	* scanner.c (load_line): use maxlen to determine the line-length used
      	for padding lines in fixed form.
      
      gcc/testsuite:
      2006-01-10  Bernhard Fischer  <rep.nop@aon.at>
      
      	PR fortran/25486
      	* gfortran.dg/literal_character_constant_1_x.F: New test.
      	* gfortran.dg/literal_character_constant_1_y.F: Ditto.
      	* gfortran.dg/literal_character_constant_1_z.F: Ditto.
      	* gfortran.dg/literal_character_constant_1.inc: Helper for new tests.
      
      From-SVN: r109591
      Bernhard Fischer committed
    • tree.c (lvalue_p_1): Any part of a COMPONENT_REF affects packedness. · 758333d5
      	* tree.c (lvalue_p_1): Any part of a COMPONENT_REF affects
      	packedness.
      
      	* g++.dg/ext/packed3.C: Add expected packed error.
      
      From-SVN: r109590
      Nathan Sidwell committed
    • re PR target/25706 (invalid asm: "mov") · 29a6dbbb
      	PR target/25706
      	* gcc.dg/torture/pr25706-1.c: New test.
      
      From-SVN: r109585
      Hans-Peter Nilsson committed
    • combine.c (struct undo): Remove is_int. · abcb0cdc
      2006-01-11  Ian Lance Taylor <ian@airs.com>
      
      	* combine.c (struct undo): Remove is_int.  Enumify types of undos.
      	Allow undoing set of machine mode.
      	(do_SUBST): Use enums instead of is_int.
      	(do_SUBST_MODE): New function.
      	(SUBST_MODE): New macro.
      	(try_combine): Use SUBST_MODE/PUT_MODE instead of generating a new
      	reg and trying to replace reg_regno_rtx with a new register.
      	(undo_all): Use new enums, handle undoing a PUT_MODE change.
      	(simplify_set): Use SUBST_MODE.
      	(distribute_notes): Remove code that tried to update reg notes
      	for regno_reg_rtx changes.
      
      From-SVN: r109579
      Ian Lance Taylor committed
    • re PR tree-optimization/23109 (compiler generates wrong code leading to spurious… · bc23502b
      re PR tree-optimization/23109 (compiler generates wrong code leading to spurious division by zero with -funsafe-math-optimizations (instead of -ftrapping-math))
      
      gcc:
      2006-01-11  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR tree-optimization/23109
      	PR tree-optimization/23948
      	PR tree-optimization/24123
      
      	* Makefile.in (tree-ssa-math-opts.o): Adjust dependencies.
              * tree-cfg.c (single_noncomplex_succ): New.
              * tree-flow.h (single_noncomplex_succ): Declare it.
              * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
              * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
              (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit,
      	insert_bb, register_division_in, insert_reciprocals,
      	replace_reciprocal, free_bb): New.
              (execute_cse_reciprocals_1): Rewritten.
              (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1.
              Do not commit any edge insertion.  Always compute dominators and
              create the allocation pool.
              * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New.
      	* target.h (struct gcc_target): Add min_divistions_for_recip_mul.
      	* targhooks.c (default_min_divistions_for_recip_mul): New.
      	* targhooks.h (default_min_divistions_for_recip_mul): New prototype.
              * passes.c (init_optimization_passes): Run recip after tree loop
              optimizations.
              * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL.
      
      gcc/testsuite:
      2006-01-11  Paolo Bonzini  <bonzini@gnu.org>
              
              PR tree-optimization/23109
              PR tree-optimization/23948
              PR tree-optimization/24123
      
              * gcc.dg/tree-ssa/recip-3.c, gcc.dg/tree-ssa/recip-4.c,
              gcc.dg/tree-ssa/recip-5.c, gcc.dg/tree-ssa/recip-6.c,
              gcc.dg/tree-ssa/recip-7.c, gcc.dg/tree-ssa/pr23109.c,
              g++.dg/tree-ssa/pr23948.C: New testcases.
              * gcc.dg/tree-ssa/recip-2.c, gcc.dg/tree-ssa/pr23234.c: Provide
      	three divisions in order to do the optimization.
      
      From-SVN: r109578
      Paolo Bonzini committed
    • re PR c++/25632 (ICE with const int copied into two different functions) · c6c0cc81
      	PR c++/25632
      	* g++.dg/other/pr25632.C: New test.
      
      From-SVN: r109575
      Zdenek Dvorak committed
    • [multiple changes] · f851ee5c
      2005-01-11  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/25730
      	* trans-types.c (copy_dt_decls_ifequal): Copy backend decl for
      	character lengths.
      
      2006-01-11  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/25730
      	* gfortran.dg/used_types_1.f90: New test.
      
      From-SVN: r109573
      Paul Thomas committed
  4. 10 Jan, 2006 3 commits
  5. 09 Jan, 2006 6 commits
  6. 08 Jan, 2006 1 commit
  7. 07 Jan, 2006 4 commits
    • loop-15.c: Use optimized dump. · ced0ff25
      2005-01-07  Richard Guenther  <rguenther@suse.de>
      
              * gcc.dg/tree-ssa/loop-15.c: Use optimized dump.
      
      From-SVN: r109454
      Richard Guenther committed
    • decl.c (gfc_match_function_decl): Correctly error out in case of omitted function argument list. · 2b9a33ae
      fortran/
      * decl.c (gfc_match_function_decl): Correctly error out in case of
      omitted function argument list.
      testsuite/
      * gfortran.dg/func_decl_1.f90: New.
      * gfortran.dg/array_alloc_1.f90: Fix wrong function declaration.
      * gfortran.dg/array_alloc_2.f90: Likewise.
      * gfortran.dg/char_result_8.f90: Likewise.
      * gfortran.dg/dup_save_1.f90: Likewise.
      * gfortran.dg/dup_save_2.f90: Likewise.
      * gfortran.dg/f2c_6.f90: Likewise.
      * gfortran.dg/f2c_7.f90: Likewise.
      * gfortran.dg/func_result_2.f90: Likewise.
      * gfortran.fortran-torture/execute/pr23373-2.f90: Likewise.
      
      From-SVN: r109451
      Tobias Schlüter committed
    • assumed_size_refs_2.f90: Delete svn:executable. · 5487b6e5
      2006-01-07  Paul Thomas  <pault@gcc.gnu.org>
      
      	* gfortran.dg/assumed_size_refs_2.f90: Delete svn:executable.
      	* gfortran.dg/pointer_assign_1.f90: Delete svn:executable.
      	* gfortran.dg/assumed_size_refs_1.f90: Delete svn:executable.
      	* gfortran.dg/arrayio_0.f90: Delete svn:executable.
      
      From-SVN: r109450
      Paul Thomas committed
    • re PR fortran/22146 (ICE when calling ELEMENTAL subroutines) · 48474141
      2006-01-07  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/22146
      	* trans-array.c (gfc_reverse_ss): Remove static attribute.
      	(gfc_walk_elemental_function_args): Replace gfc_expr * argument for
      	the function call with the corresponding gfc_actual_arglist*.  Change
      	code accordingly.
      	(gfc_walk_function_expr): Call to gfc_walk_elemental_function_args
      	now requires the actual argument list instead of the expression for
      	the function call.
      	* trans-array.h: Modify the prototype for gfc_walk_elemental_function_args
      	and provide a prototype for gfc_reverse_ss.
      	* trans-stmt.h (gfc_trans_call): Add the scalarization code for the case
      	where an elemental subroutine has array valued actual arguments.
      
      	PR fortran/25029
      	PR fortran/21256
      	PR fortran/20868
      	PR fortran/20870
      	* resolve.c (check_assumed_size_reference): New function to check for upper
      	bound in assumed size array references.
      	(resolve_assumed_size_actual): New function to do a very restricted scan
      	of actual argument expressions of those procedures for which incomplete
      	assumed size array references are not allowed.
      	(resolve_function, resolve_call): Switch off assumed size checking of
      	actual arguments, except for elemental procedures and intrinsic
      	inquiry functions, in some circumstances.
      	(resolve_variable): Call check_assumed_size_reference.
      
      2006-01-07  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/22146
      	* gfortran.dg/elemental_subroutine_1.f90: New test.
      	* gfortran.dg/elemental_subroutine_2.f90: New test.
      
      	PR fortran/25029
      	PR fortran/21256
      	* gfortran.dg/assumed_size_refs_1.f90: New test.
      
      	PR fortran/20868
      	PR fortran/20870
      	* gfortran.dg/assumed_size_refs_2.f90: New test.
      	* gfortran.dg/initialization_1.f90: Change warning message.
      
      From-SVN: r109449
      Paul Thomas committed
  8. 06 Jan, 2006 3 commits
  9. 05 Jan, 2006 4 commits
    • c-typeck.c (build_c_cast): Always warn when casting from a pointer to an integer… · 8d1c7aef
      c-typeck.c (build_c_cast): Always warn when casting from a pointer to an integer of different size...
      
      
      gcc/
      
      2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
      
      	* c-typeck.c (build_c_cast): Always warn when casting
      	from a pointer to an integer of different size, even if
      	the node was constant.
      
      gcc/testsuite
      
      2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
      
      	* gcc.dg/cast-1.c: Add new warning.
      	* gcc.dg/cast-2.c: Likewise.
      	* gcc.dg/cast-3.c: Likewise.
      	* gcc.dg/format/cast-1.c: Likewise.
      	* gcc.dg/cast-4.c: New testcase.
      
      From-SVN: r109386
      Carlos O'Donell committed
    • re PR tree-optimization/22555 (array in struct disables salias subvars for other fields) · 758cf3f2
      2006-01-05  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/22555
      	* tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
      	if one structure field is an array.
      	* tree-ssa-operands.c (get_expr_operands): Continue scanning
      	operands even if we found a subvar, but ignore VOPs in this
      	case.
      	* tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
      	for renaming.
      	* tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
      
      	* gcc.dg/tree-ssa/alias-3.c: New testcase.
      
      From-SVN: r109381
      Richard Guenther committed
    • tree-pass.h (TODO_remove_unused_locals): Define. · 3f519b35
      2006-01-05  Richard Guenther  <rguenther@suse.de>
      	    Diego Novillo  <dnovillo@redhat.com>
      
      	* tree-pass.h (TODO_remove_unused_locals): Define.
      	* gimple-low.c (expand_var_p, remove_useless_vars,
      	pass_remove_useless_vars): Remove.  Update all users.
      	* tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
      	(remove_unused_locals): New function.
      	* tree-flow.h (remove_unused_locals): Declare.
      	* passes.c (execute_todo): Call remove_unused_locals if
      	TODO_remove_unused_locals is set.
      	* tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
      	* tree-ssa-dce.c (pass_dce): Likewise.
      	* tree-outof-ssa.c (pass_del_ssa): Likewise.
      
      	* gcc.dg/tree-ssa/loop-11.c: Deal with removed vars pass.
      	* gcc.dg/tree-ssa/loop-8.c: Likewise.
      	* gcc.dg/tree-ssa/loop-1.c: Likewise.
      	* gcc.dg/tree-ssa/pr23294.c: Likewise.
      	* gcc.dg/tree-ssa/pr21985.c: Likewise.
      	* gcc.dg/tree-ssa/loop-14.c: Likewise.
      	* gcc.dg/tree-ssa/loop-2.c: Likewise.
      	* gcc.dg/tree-ssa/loop-3.c: Likewise.
      	* gcc.dg/tree-ssa/loop-4.c: Likewise.
      	* gcc.dg/tree-ssa/pr21171.c: Likewise.
      	* gcc.dg/tree-ssa/loop-5.c: Likewise.
      	* gcc.dg/tree-ssa/loop-10.c: Likewise.
      	* gcc.dg/tree-ssa/loop-6.c: Likewise.
      	* treelang/compile/extravar.tree: Likewise.
      	* g++.dg/tree-ssa/ssa-cast-1.C: Likewise.
      	* g++.dg/tree-ssa/pointer-reference-alias.C: Likewise.
      	* g++.dg/tree-ssa/ssa-sra-1.C: Likewise.
      	* g++.dg/tree-ssa/ssa-sra-2.C: Likewise.
      	* gcc.dg/tree-ssa/20031106-6.c: Disable SRA.
      
      Co-Authored-By: Diego Novillo <dnovillo@redhat.com>
      
      From-SVN: r109379
      Richard Guenther committed