1. 08 Mar, 2007 24 commits
    • decContext.c, [...]: Add libgcc-style license exception clause. · 9d1d1cd4
      	* decContext.c, decContext.h, decDPD.h, decimal128.c,
      	decimal128.h, decimal32.c, decimal32.h, decimal64.c, decimal64.h,
      	decLibrary.c, decNumber.c, decNumber.h, decNumberLocal.h,
      	decRound.c, decRound.h, decUtility.c, decUtility.h: Add
      	libgcc-style license exception clause.
      
      From-SVN: r122722
      Ben Elliston committed
    • re PR fortran/30947 (intrinsic: ALARM) · 02330e19
      2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
      
              PR fortran/30947
              * intrinsics/signal.c (alarm_sub_int): Avoid SEGFAULT with
              integer arguments.
      
      From-SVN: r122716
      Daniel Franke committed
    • re PR fortran/30947 (intrinsic: ALARM) · 32af3784
      2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
      
      	PR fortran/30947
      	* check.c (gfc_check_alarm_sub): Added check for default integer 
      	kind of status argument.
      	* iresolve.c (gfc_resolve_alarm_sub): Removed conversion of 
      	status argument.
      	* intrinsic.texi (ALARM): Extended documentation.
      
      From-SVN: r122715
      Daniel Franke committed
    • builtins.def (lceil, [...]): Mark with ATTR_CONST_NOTHROW_LIST. · aeabd15d
      	* builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
      	llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
      	ATTR_CONST_NOTHROW_LIST.
      	
      	* fold-const.c (tree_expr_nonnegative_warnv_p): Handle
      	FIX_TRUNC_EXPR.
      
      testsuite:
      	* gcc.dg/builtins-55.c: Test *lceil* and *lfloor*.
      	* gcc.dg/torture/builtin-attr-1.c: Likewise.
      	* gcc.dg/torture/builtin-convert-1.c: Likewise.  Also test *lrint* and *lround*.
      	* gcc.dg/torture/builtin-convert-2.c: Test ceil->lceil and floor->lfloor.
      	* gcc.dg/torture/builtin-convert-3.c: Test *lceil* and *lfloor*.
      	* gcc.dg/torture/builtin-integral-1.c: Likewise.
      	* gcc.dg/torture/builtin-minmax-1.c: Likewise.  Also test *lrint*
      	and *lround*.  Correct macro names.
      	* gcc.dg/torture/builtin-nonneg-1.c: Test *lceil* and *lfloor*.
      	* gcc.dg/torture/builtin-rounding-1.c: Likewise.
      
      From-SVN: r122713
      Kaveh R. Ghazi committed
    • intrinsic.texi (GERROR, [...]): New. · f53e867d
      2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
      
      	* intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
      	(ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
      	* intrinsic.c (add_subroutines): Adjusted dummy argument names 
      	of GERROR and TTYNAM.
      
      From-SVN: r122712
      Daniel Franke committed
    • tree-ssa.texi: Remove documentation for V_MUST_DEF. · e9dc9c4e
      
      	* doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
      
      From-SVN: r122710
      Diego Novillo committed
    • re PR objc/31013 (objc PCH is broken on powerpc-darwin again) · d2328a13
      	PR 31013
      	* gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
      	is declared.
      	* config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
      	passed, use shared libgcc.
      
      From-SVN: r122709
      Geoffrey Keating committed
    • tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt instead of… · ebb07520
      tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt instead of calling build2 with a GIMPLE_MODIFY_STMT.
      
      
      	* tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
      	instead of calling build2 with a GIMPLE_MODIFY_STMT.
      	(honor_protect_cleanup_actions, lower_try_finally_switch):
      	Likewise.
      	* tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
      	ifc_temp_var): Likewise.
      	* tree-inline.c (setup_one_parameter): Likewise.
      	* tree-mudflap.c (mf_decl_cache_locals,
      	mf_build_check_statement_for): Likewise.
      	* tree-nested.c (init_tmp_var, save_tmp_var,
      	finalize_nesting_tree_1): Likewise.
      	* tree-outof-ssa.c (insert_copy_on_edge,
      	insert_backedge_copies): Likewise.
      	* tree-profile.c (tree_gen_edge_profiler,
      	tree_gen_ic_profiler): Likewise.
      	* tree-scalar-evolution.c (scev_const_prop): Likewise.
      	* tree-sra.c (sra_build_assignment): Likewise.
      	* tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
      	* tree-ssa-math-opts.c (insert_reciprocals,
      	execute_cse_sincos_1): Likewise.
      	* tree-tailcall.c (adjust_accumulator_values,
      	adjust_return_value): Likewise.
      	* tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
      	* tree-vect-transform.c (vect_create_data_ref_ptr,
      	bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
      	vect_create_epilog_for_reduction, vectorizable_reduction,
      	vectorizable_call, vectorizable_conversion,
      	vectorizable_assignment, vectorizable_operation,
      	vectorizable_type_demotion, vect_gen_widened_results_half,
      	vect_permute_store_chain, vectorizable_store,
      	vect_setup_realignment, vect_permute_load_chain,
      	vectorizable_load, vectorizable_condition,
      	vect_create_cond_for_align_checks): Likewise.
      	* tree-vrp.c (build_assert_expr_for): Likewise.
      
      From-SVN: r122707
      Roger Sayle committed
    • tree-vrp.c: Include "intl.h". · 0c948c27
      ./:	* tree-vrp.c: Include "intl.h".
      	(usable_range_p): New static function.
      	(compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
      	overflowed values, juts set *strict_overflow_p.
      	(compare_values): Only return -2 if one of the operands is not a
      	constant.
      	(compare_ranges): Call usable_range_p.
      	(compare_range_with_value): Likewise.
      	(vrp_evaluate_conditional_warnv): Rename from
      	vrp_evaluate_conditional.  Make static.  Change all callers.
      	(vrp_evaluate_conditional): New function.
      	(simplify_div_or_mod_using_ranges): Issue warning about reliance
      	on signed overflow.
      	(simplify_abs_using_ranges): Likewise.
      	(simplify_stmt_for_jump_threading): Add within_stmt parameter.
      	* tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
      	within_stmt parameter.
      	* tree-ssa-propagate.c (fold_predicate_in): Update call to
      	vrp_evaluate_conditional.
      	* tree-ssa-threadedge.c
      	(record_temporary_equivalences_from_stmts_at_dest): Change
      	simplify parameter to take a second tree parameter.
      	(simplify_control_stmt_condition): Likewise.
      	(thread_across_edge): Likewise.
      	* tree-flow.h (vrp_evaluate_conditional): Update declaration.
      	(thread_across_edge): Likewise.
      	* gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
      testsuite/:
      	* gcc.dg/no-strict-overflow-5.c: New test.
      	* gcc.dg/no-strict-overflow-6.c: New test.
      	* gcc.dg/Wstrict-overflow-11.c: New test.
      	* gcc.dg/Wstrict-overflow-12.c: New test.
      	* gcc.dg/Wstrict-overflow-13.c: New test.
      	* gcc.dg/Wstrict-overflow-14.c: New test.
      	* gcc.dg/Wstrict-overflow-15.c: New test.
      
      From-SVN: r122706
      Ian Lance Taylor committed
    • i386.h (TARGET_SAHF): New define. · 3c2d980c
              * config/i386/i386.h (TARGET_SAHF): New define.
              * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
              Also enable for m_K8, m_AMDFAM10 and m_CORE2.
              (x86_sahf): New global variable.
              (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
              pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
              nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
              in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
              for 64-bit.
              (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
              (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
              when expanding fcomi/sahf based tests.
              (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
              expanding sahf based alternative. Emit sahf based sequence when
              optimizing for code size.
              * config/i386/i386.md (x86_sahf_1): Do not disable for
              TARGET_64BIT, enable for TARGET_SAHF.
      
      From-SVN: r122705
      Uros Bizjak committed
    • strcmp-1.x: New file. · 0c705abc
      gcc/testsuite/
      	* gcc.c-torture/execute/strcmp-1.x: New file.  XFAIL execution
      	for VxWorks kernel mode.
      	* gcc.c-torture/execute/strncmp-1.x: Likewise.
      
      From-SVN: r122703
      Richard Sandiford committed
    • hugeval.x: XFAIL for VxWorks kernel mode. · 9d002493
      gcc/testsuite/
      	* gcc.c-torture/execute/ieee/hugeval.x: XFAIL for VxWorks kernel
      	mode.
      
      From-SVN: r122702
      Richard Sandiford committed
    • memmove-lib.c: Include lib/bzero.c and lib/bfill.c on VxWorks targets. · e3045e7a
      gcc/testsuite/
      	* gcc.c-torture/execute/builtins/memmove-lib.c: Include lib/bzero.c
      	and lib/bfill.c on VxWorks targets.
      	* gcc.c-torture/execute/builtins/memmove-2-lib.c: Likewise.
      	* gcc.c-torture/execute/builtins/strchr-lib.c: Include lib/bzero.c,
      	lib/bfill.c and lib/memmove.c on VxWorks targets.
      	* gcc.c-torture/execute/builtins/strrchr-lib.c: Likewise.
      	* gcc.c-torture/execute/builtins/memops-asm-lib.c: Include lib/bfill.c
      	on VxWorks targets.
      	* gcc.c-torture/execute/builtins/lib/bzero.c: New file.
      	* gcc.c-torture/execute/builtins/lib/bfill.c: Likewise.
      
      From-SVN: r122701
      Richard Sandiford committed
    • re PR xml/30983 (DocumentBuilder.parse throws exception) · 8c67ec7a
      2007-03-08  Gary Benson  <gbenson@redhat.com>
      
      	PR classpath/30983:
      	* gnu/xml/dom/ls/DomLSParser.java (getInputSource):
      	Do not use the entity resolver to resolve the top-level document.
      
      From-SVN: r122700
      Gary Benson committed
    • [multiple changes] · 56bedf42
      2007-07-08  Tobias Burnus  <burnus@net-b.de>
      
             * module.c (gfc_match_use): Support renaming of operators
             in USE statements.
             * gfortran.texi (Fortran 2003 Status): Document support of
             renaming of operators.
      
      2007-03-08  Tobias Burnus  <burnus@net-b.de>
      
             * gfortran.dg/use_5.f90: New test.
             * gfortran.dg/use_6.f90: Ditto.
             * gfortran.dg/use_7.f90: Ditto.
      
      From-SVN: r122699
      Tobias Burnus committed
    • re PR fortran/30973 ([4.1, 4.2 only] undetected name conflict: variables may be named like modules) · ac497e6a
      2007-03-08  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/30973
      	* module.c (read_module): Always import module name as symbol.
      	(gfc_match_use): Disallow module name in the only clause of
      	a use statement.
      
      2007-03-08  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/30973
      	* gfortran.dg/use_4.f90: New test.
      	* gfortran.dg/used_dummy_types_7.f90: Correct ambiguous symbol.
      
      From-SVN: r122696
      Tobias Burnus committed
    • * sr.po: New. · 9eaa9996
      From-SVN: r122693
      Joseph Myers committed
    • ffi.c (flush_icache): Fix left-over from previous patch. · 8b9cf39e
      * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
      patch.
      (ffi_prep_closure_loc): Remove unneeded casts.  Add needed ones.
      
      From-SVN: r122692
      Alexandre Oliva committed
    • tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove · 068c623d
      spurious whitespace from error message.
      
      From-SVN: r122690
      Martin Michlmayr committed
    • re PR fortran/31011 ([4.2 and 4.1 only] Incorrect error: parameter array sections) · e1e24dc1
      2007-03-08 Paul Thomas <pault@gcc.gnu.org>
      
      	PR fortran/31011
      	* expr.c (find_array_section): Correct arithmetic for section
      	size.
      
      2007-03-08 Paul Thomas <pault@gcc.gnu.org>
      
      	PR fortran/31011
      	* gfortran.dg/parameter_array_section_2.f90: New test.
      
      From-SVN: r122689
      Paul Thomas committed
    • re PR c++/30852 (Trouble with __builtin_offsetof and volatile) · 1916c916
      	PR c++/30852
      	* c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
      
      	* semantics.c (finish_offsetof): Handle COMPOUND_EXPR.
      
      	* g++.dg/ext/offsetof1.C: Add cases with volatile.
      
      From-SVN: r122686
      Volker Reichelt committed
    • re PR c++/30534 (ICE with invalid template argument) · cc891727
      	PR c++/30534
      	* pt.c (any_template_arguments_need_structural_equality_p):
      	Robustify.
      
      	* g++.dg/template/arg5.C: New test.
      
      From-SVN: r122685
      Volker Reichelt committed
    • c-decl.c (grokdeclarator): Disable warnings for anonymous bitfields. · ab53bae2
      gcc/ChangeLog:
      * c-decl.c (grokdeclarator): Disable warnings for anonymous
      bitfields.
      * tree-sra.c (instantiate_element): Propagate disabled warnings
      from the element itself to the created variable.
      gcc/cp/ChangeLog:
      * decl.c (grokdeclarator): Disable warnings for anonymous
      bitfields.
      
      From-SVN: r122684
      Alexandre Oliva committed
    • Daily bump. · cd265edd
      From-SVN: r122680
      GCC Administrator committed
  2. 07 Mar, 2007 16 commits