1. 28 Jan, 2007 16 commits
    • * MAINTAINERS (spu port): Add myself. · 2472200d
      From-SVN: r121269
      David Edelsohn committed
    • large-size-array-3.c: Correct test case (portability). · 7217a9eb
      
      	* gcc.dg/large-size-array-3.c: Correct test case (portability).
      
      From-SVN: r121266
      Roger Sayle committed
    • 2007-01-28 Michele Sandri <gpointorama@gmail.com> · 94468b1c
      	* gnu/java/nio/channels/natFileChannelWin32.cc
      	(lock): Implemented.
      	(unlock): Implemented.
      
      From-SVN: r121265
      Michele Sandri committed
    • locale_facets.tcc (num_get<>::do_get(iter_type, iter_type, ios_base&,… · 226a2e08
      locale_facets.tcc (num_get<>::do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&), [...]): -Wconversion and -Woverflow fixes.
      
      2007-01-28  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
      	iter_type, ios_base&, ios_base::iostate&, bool&),
      	num_put<>::_M_insert_int(_OutIter, ios_base&, _CharT, _ValueT)):
      	-Wconversion and -Woverflow fixes.
      	* include/bits/istream.tcc (operator>>(int&), operator>>(short&)):
      	Likewise.
      	* include/std/valarray (valarray<>::shift, cshift): Likewise.
      
      From-SVN: r121264
      Paolo Carlini committed
    • re PR c++/28988 (g++ does not check first type name in pseudo-destructor-name) · 5cf10afb
      2007-01-28  Andrew Pinski  <pinskia@gmail.com>
      
              PR C++/28988
              * semantics.c (finish_pseudo_destructor_expr): Check the
              destrutor name by calling check_dtor_name.
      
      2007-01-28  Andrew Pinski  <pinskia@gmail.com>
      
              PR C++/28988
              * g++.dg/expr/dtor4.C: New test.
      
      From-SVN: r121261
      Andrew Pinski committed
    • tree-ssa-loop-unswitch.c: Include tree-inline.h. · 7f9bc51b
      	* tree-ssa-loop-unswitch.c: Include tree-inline.h.
      	(tree_unswitch_single_loop): Pass eni_size_weights to
      	tree_num_loop_insns.
      	* tree-ssa-loop-manip.c: Include tree-inline.h.
      	(can_unroll_loop_p): Pass eni_size_weights to
      	tree_num_loop_insns.
      	* tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
      	Pass eni_size_weights to estimate_num_insns.
      	* tree.h (init_inline_once): Export.
      	* toplev.c (backend_init): Call init_inline_once.
      	* cgraphunit.c (cgraph_process_new_functions,
      	cgraph_analyze_function): Pass eni_inlining_weights to
      	estimate_num_insns.
      	* ipa-inline.c (compute_inline_parameters): Ditto.
      	* tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
      	to estimate_num_insns.
      	(try_unroll_loop_completely): Pass eni_size_weights to
      	tree_num_loop_insns.
      	* tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
      	ot estimate_num_insns.
      	* tree-ssa-loop-prefetch.c: Include tree-inline.h.
      	(loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
      	* tree-inline.c (eni_inlining_weights, eni_size_weights,
      	eni_time_weights): New variables.
      	(init_inline_once): Initialize them.
      	(struct eni_data): Mew.
      	(estimate_num_insns_1, estimate_num_insns): Use weights.
      	* tree-inline.h (struct eni_weights_d): New.
      	(eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
      	(estimate_num_insns): Declaration changed.
      	* cfgloop.h (tree_num_loop_insns): Declaration changed.
      	* Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
      	tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
      
      	* gcc.dg/tree-ssa/loop-23.c: New test.
      
      From-SVN: r121260
      Zdenek Dvorak committed
    • tree-data-ref.c (conflict_fn): Assert that the number of affine relations in the… · b39c6706
      tree-data-ref.c (conflict_fn): Assert that the number of affine relations in the conflict function is valid.
      
      	* tree-data-ref.c (conflict_fn): Assert that the number of affine
      	relations in the conflict function is valid.
      
      From-SVN: r121259
      Zdenek Dvorak committed
    • re PR bootstrap/30469 (profiledbootstrap no longer works) · 9891ec5f
      	PR bootstrap/30469
      	* Makefile.in (CFLAGS): Forcibly remove -fprofile-generate and
      	-fprofile-use.
      
      From-SVN: r121257
      Daniel Jacobowitz committed
    • ipa-cp.c (ipcp_insert_stage, [...]): Support for SSA. · 3cc1cccc
      2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
      
              * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
              (ipcp_driver): Change to static definition.
              Add dumping of the ifunctions.
              (constant_val_insert): Remove unused parameter. Support for SSA.
              (ipcp_propagate_const): Support for SSA.
              (ipcp_profile_bb_print): Print only analyzed nodes.
              (ipcp_replace_map_create): Remove support for Fortran constant
              for now.
              * ipa-prop.c (ipa_method_modify_stmt,
              ipa_callsite_compute_param): Support for SSA.
              * ipa-prop.h (ipcp_driver): Remove declaration.
              (IS_VALID_TREE_MAP_INDEX): Add define.
      
      From-SVN: r121256
      Razya Ladelsky committed
    • re PR fortran/30389 ([4.1 only] ACHAR() intrinsic gives erroneous errors in constant-folding.) · 34462c28
      2007-01-28  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/30389
      	* gfortran.h:  Remove gfc_simplify_init_1.
      	* arith.h:  Remove third argument from gfc_compare_string.
      	* arith.c(gfc_compare_expression):  Remove third argument
      	from call to gfc_compare_string.
      	(gfc_compare_string):  Remove third argument xcoll_table.
      	Remove use of xcoll_table.
      	* misc.c(gfc_init_1):  Remove call to gfc_simplify_init_1.
      	* simplify.c(ascii_table):  Remove.
      	(xascii_table): Likewise.
      	(gfc_simplify_achar):  ICE if extract_int fails.  Remove use of
      	ascii_table.  Warn if -Wsurprising and value < 0 or > 127.
      	(gfc_simplify_char):  ICE if extract_int fails. Error if
      	value < 0 or value > 255.
      	(gfc_simplify_iachar):  Remove use of xascii_table.
      	Char values outside of 0..255 are an ICE.
      	(gfc_simplify_lge):  Remove use of xascii_table.
      	(gfc_simplify_lgt):  Likewise.
      	(gfc_simplify_lle):  Likewise.
      	(gfc_simplify_llt):  Likewise.
      	(invert_table):  Remove.
      	(gfc_simplify_init_1):  Remove.
      
      2007-01-28  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/30389
      	* gfortran.dg/achar_2.f90:  New test.
      	* gfortran.dg/achar_3.f90:  New test.
      
      From-SVN: r121255
      Thomas Koenig committed
    • common.opt: Add fstrict-overflow. · eeef0e45
      ./:	* common.opt: Add fstrict-overflow.
      	* opts.c (decode_options): Set flag_strict_overflow if -O2.
      	* flags.h (TYPE_OVERFLOW_WRAPS): Define.
      	(TYPE_OVERFLOW_UNDEFINED): Define.
      	(TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
      	Replace all uses.
      	* tree.h (TYPE_TRAP_SIGNED): Don't define.
      	* fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
      	(fold_negate_expr): Likewise.
      	(make_range): Likewise.
      	(extract_muldiv_1): Likewise.
      	(maybe_canonicalize_comparison): Likewise.
      	(fold_comparison): Likewise.
      	(fold_binary): Likewise.
      	(tree_expr_nonnegative_p): Likewise.
      	(tree_expr_nonzero_p): Likewise.
      	* tree-vrp.c (compare_values): Likewise.
      	(extract_range_from_binary_expr): Likewise.
      	(extract_range_from_unary_expr): Likewise.
      	* tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
      	Likewise.
      	(nowrap_type_p): Likewise.
      	* tree-scalar-evolution.c (simple_iv): Likewise.
      	* fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
      	(build_range_check): Likewise.
      	(extract_muldiv_1): Likewise.
      	(fold_comparison): Likewise.
      	* tree-vrp.c (vrp_int_const_binop): Likewise.
      	(extract_range_from_unary_expr): Likewise.
      	* convert.c (convert_to_integer): Likewise.
      	* fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
      	(fold_comparison): Likewise.
      	(fold_binary): Likewise.
      	* optabs.c (optab_for_tree_code): Likewise.
      	* tree-vectorizer.c (vect_is_simple_reduction): Likewise.
      	* simplify-rtx.c (simplify_const_relational_operation): Check
      	flag_strict_overflow and flag_trapv.
      	(simplify_const_relational_operation): Likewise.
      	* doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
      	(Optimize Options): Add -fstrict-overflow to -O2 list.  Document
      	-fstrict-overflow.
      testsuite/:
      	* gcc.dg/strict-overflow-1.c: New test.
      	* gcc.dg/no-strict-overflow-1.c: New test.
      	* gcc.dg/strict-overflow-2.c: New test.
      	* gcc.dg/no-strict-overflow-2.c: New test.
      	* gcc.dg/strict-overflow-3.c: New test.
      	* gcc.dg/no-strict-overflow-3.c: New test.
      	* gcc.dg/strict-overflow-4.c: New test.
      	* gcc.dg/no-strict-overflow-4.c: New test.
      	* gcc.dg/fold-mod-1.c: Add -fstrict-overflow option.
      	* gcc.dg/pr15784-1.c: Likewise.
      	* gcc.dg/pr20922-1.c: Likewise.
      	* gcc.dg/pr20922-3.c: Likewise.
      	* gcc.dg/pr20922-4.c: Likewise.
      	* gcc.dg/pr20922-6.c: Likewise.
      	* gcc.dg/compare-4.c: Likewise.
      	* gcc.dg/torture/pr26898-1.c: Likewise.
      	* gcc.dg/tree-ssa/divide-1.c: Likewise.
      	* gcc.dg/tree-ssa/divide-2.c: Likewise.
      	* gcc.dg/tree-ssa/divide-3.c: Likewise.
      	* gcc.dg/tree-ssa/divide-4.c: Likewise.
      	* gcc.dg/tree-ssa/pr14490-1.c: Likewise.
      	* gcc.dg/tree-ssa/pr14490-3.c: Likewise.
      	* gcc.dg/tree-ssa/pr21082.c: Likewise.
      	* gcc.dg/tree-ssa/pr26899.c: Likewise.
      	* g++.dg/tree-ssa/pr21082.C: Likewise.
      
      From-SVN: r121254
      Ian Lance Taylor committed
    • tree.c (tree_fold_gcd): Delete. · b73a6056
      
      	* tree.c (tree_fold_gcd): Delete.
      	* tree.h (tree_fold_gcd): Remove prototype.
      	* tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
      	test whether one constant integer is a multiple of another.  Instead
      	call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
      	* fold-const.c (multiple_of_p):  We've determined both TOP and
      	BOTTOM are integer constants so we can call int_const_binop directly
      	instead of the more generic const_binop.
      
      From-SVN: r121253
      Roger Sayle committed
    • fold-const.c (size_binop): In the fast-paths for X+0... · 74890d7b
      
      	* fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
      	1*X check that the constant hasn't overflowed, to preserve the
      	TREE_OVERFLOW bit.
      	(round_up): Provide an efficient implementation when rouding-up an
      	INTEGER_CST to a power-of-two.
      
      	* gcc-dg/large-size-array-3.c: New test case.
      
      From-SVN: r121252
      Roger Sayle committed
    • Daily bump. · 5e851559
      From-SVN: r121250
      GCC Administrator committed
  2. 27 Jan, 2007 12 commits
  3. 26 Jan, 2007 12 commits
    • * lib/target-supports.exp · 5eb96b60
      	(check_effective_target_powerpc_altivec): New.
      	(check_effective_target_vect_cmdline_needed): Use it.
      
      From-SVN: r121219
      Joseph Myers committed
    • Steven G. · 2e6a83a7
      2007-01-26  Steven Bosscher  <stevenb.gcc@gmail.com>
      	        Steven G. Kargl  <kargl@gcc.gnu,org>
      
      	* testsuite/gfortran.dg/backslash_3.f: New test.
      
      	* fortran/io.c (next_char): Deal with backslash escaped characters.
      	Issue warnings in non -std=gnu cases.
      	* fortran/primary.c (next_string_char): Issue warnings in non
      
      From-SVN: r121218
      Steven G. Kargl committed
    • Makefile.am (generic_header_files): Add $(inner_nat_headers). · d4da97d7
      	* Makefile.am (generic_header_files): Add $(inner_nat_headers).
      	* testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
      	(MYGCJH): New variable.
      	(compile-tests): New goal.
      	* Makefile.in: Rebuilt.
      	* testsuite/Makefile.in: Rebuilt.
      
      From-SVN: r121217
      Jakub Jelinek committed
    • genattrtab.c (struct attr_value_list, [...]): Move to file scope from optimize_attrs. · e2e30236
      	* genattrtab.c (struct attr_value_list, insn_code_values): Move to
      	file scope from optimize_attrs.
      	(simplify_test_exp): If insn_code_values is not NULL, use it to speed
      	up search.
      	(optimize_attrs): Clear insn_code_values after freeing it.
      
      From-SVN: r121216
      Jakub Jelinek committed
    • libjava · 7969a379
      	* Updated headers.
      libjava/classpath
      	* tools/gnu/classpath/tools/javah/FieldHelper.java (print): Print
      	'volatile' after field type.
      
      From-SVN: r121215
      Tom Tromey committed
    • tree-ssa-address.c (create_mem_ref): Remove ", bsi" from a parts.base assignment. · cdd76d88
      	* tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
      	a parts.base assignment.
      
      From-SVN: r121213
      Zdenek Dvorak committed
    • tree-data-ref.c (dump_subscript): Use dump_conflict_function. · d93817c4
      	* tree-data-ref.c (dump_subscript): Use dump_conflict_function.
      	(compute_subscript_distance, initialize_data_dependence_relation,
      	finalize_ddr_dependent, analyze_ziv_subscript,
      	analyze_siv_subscript_cst_affine,
      	compute_overlap_steps_for_affine_univar,
      	compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
      	analyze_siv_subscript, analyze_miv_subscript,
      	analyze_overlapping_iterations, subscript_dependence_tester_1,
      	compute_self_dependence, free_dependence_relation): Work
      	with affine_fn instead of chrecs.
      	(dump_affine_function, dump_conflict_function, affine_function_equal_p,
      	common_affine_function, affine_function_base,
      	affine_function_constant_p, affine_fn_op, affine_fn_plus,
      	affine_fn_minus, affine_fn_free, conflict_fn_not_known,
      	conflict_fn_no_dependence, free_conflict_function, free_subscripts,
      	conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
      	(all_chrecs_equal_p): Removed.
      	* tree-data-ref.h (affine_fn, conflict_function): New types.
      	(struct subscript): Change type of conflicting_iterations_in_a
      	and conflicting_iterations_in_b.
      
      From-SVN: r121212
      Zdenek Dvorak committed
    • re PR target/30182 (FAIL: gcc.dg/pr28796-2.c (test for excess errors)) · dfcb2b51
      	PR other/30182
      	* config/pa/pa.h (TARGET_HPUX_11): New.
      	* config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
      	* config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
      
      From-SVN: r121211
      Steve Ellcey committed
    • re PR libstdc++/30586 (Namespace pollution in c++ headers) · ddde5c6d
      2007-01-26  Paolo Carlini  <pcarlini@suse.de>
      
      	PR libstdc++/30586
      	* config/cpu/ia64/atomic_word.h: Just include <bits/cxxabi_tweaks.h>.
      	* testsuite/abi/30586.cc: New.
      
      From-SVN: r121209
      Paolo Carlini committed
    • pr23382.c: Fix typo. · b6f0e9b7
      2007-01-26  Richard Guenther  <rguenther@suse.de>
      
      	* gcc.dg/tree-ssa/pr23382.c: Fix typo.
      
      From-SVN: r121205
      Richard Guenther committed
    • tree-ssa-structalias.c (solve_graph): Handle case we merged the variable to another. · d3c36974
      2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
      	Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-structalias.c (solve_graph): Handle case
      	we merged the variable to another.
      
      Co-Authored-By: Richard Guenther <rguenther@suse.de>
      
      From-SVN: r121202
      Daniel Berlin committed
    • lang-specs.h: Add support for .f03 and .F03 extensions. · 7befd5d2
      fortran/
      2007-01-26  Tobias Burnus  <burnus@net-b.de>
      
      	* lang-specs.h: Add support for .f03 and .F03 extensions.
      	* gfortran.texi: Document .f03 extension.
      	* options.c (form_from_filename): Recognize .f03.
      
      testsuite/
      2007-01-26  Tobias Burnus  <burnus@net-b.de>
      
              * gfortran.dg/gomp/gomp.exp: Support .f03 extension.
              * gfortran.dg/vect/vect.exp: Ditto.
              * gfortran.dg/dg.exp: Ditto.
              * gfortran.fortran-torture/execute/execute.exp: Ditto.
              * gfortran.fortran-torture/compile/compile.exp: Ditto.
      
      libgomp/
      2007-01-26  Tobias Burnus  <burnus@net-b.de>
      
      	* testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
      
      From-SVN: r121201
      Tobias Burnus committed