1. 09 Jun, 2007 5 commits
  2. 08 Jun, 2007 20 commits
    • reload1.c (fixup_abnormal_edges): Clear bb field for insns not inserted on the edge. · 36808d08
      	* reload1.c (fixup_abnormal_edges): Clear bb field for insns
      	not inserted on the edge.
      
      From-SVN: r125582
      Eric Botcazou committed
    • * ChangeLog fix * ChangeLog fix. · 9510f6eb
      From-SVN: r125578
      Uros Bizjak committed
    • lib1funcs.asm (__udivsi3): Use hardware divide instructions if they are supported. · 582711fe
      	* config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
      	instructions if they are supported.
      	(__divsi3, __umodsi3, __modsi3): Likewise.
      	(__ashldi3, __ashrdi3, __lshrdi3): New.
      	* config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
      
      From-SVN: r125577
      Bob Wilson committed
    • extend.texi: Add fvect-cost-model flag. · 792ed98b
      gcc/ChangeLog:
      2007-06-08  Harsha Jagasia <harsha.jagasia@amd.com>
                  Tony Linthicum <tony.linthicum@amd.com>
      
      	* doc/extend.texi: Add fvect-cost-model flag.
      	* common.opt (fvect-cost-model): New flag.
      	* tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
      	cost fields in stmt_vec_info struct for STMT.
      	* tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
      	fields in stmt_vec_info struct and access functions for the same.
      	(TARG_COND_BRANCH_COST): Define cost of conditional branch.
      	(TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
      	load, store and vector to scalar operation.
      	(TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
      	(TARG_VEC_LOAD_COST): Define cost of aligned vector load.
      	(TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
      	(TARG_VEC_STORE_COST): Define cost of vector store.
      	(vect_estimate_min_profitable_iters): Define new function.
      	* tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
      	check to evaluate if loop iterations are less than minimum profitable
      	iterations determined by cost model or minimum vect loop bound defined
      	by user, whichever is more conservative.
      	* tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
      	run-time check to evaluate if loop iterations are less than minimum
      	profitable iterations determined by cost model or minimum vect loop
      	bound defined by user, whichever is more conservative.
      	(vect_estimate_min_profitable_iterations): New function to estimate
      	mimimimum iterartions required for vector version of loop to be
      	profitable over scalar version.
              (vect_model_reduction_cost): New function.
      	(vect_model_induction_cost): New function.
      	(vect_model_simple_cost): New function.
      	(vect_cost_strided_group_size): New function.
      	(vect_model_store_cost): New function.
      	(vect_model_load_cost): New function.
      	(vectorizable_reduction): Call vect_model_reduction_cost during
      	analysis phase.
      	(vectorizable_induction): Call vect_model_induction_cost during
      	analysis phase.
      	(vectorizable_load): Call vect_model_load_cost during analysis phase.
      	(vectorizable_store): Call vect_model_store_cost during analysis phase.
      	(vectorizable_call, vectorizable_assignment, vectorizable_operation,
      	vectorizable_promotion, vectorizable_demotion): Call 
      	vect_model_simple_cost during analysis phase.
      
      gcc/testsuite/ChangeLog:
      2007-06-08  Harsha Jagasia <harsha.jagasia@amd.com>
      
      	* gcc.dg/vect/costmodel: New directory.
      	* gcc.dg/vect/costmodel/i386: New directory.
      	* gcc.dg/vect/costmodel/i386/i386-costmodel-vect.exp: New testsuite.
      	* gcc.dg/vect/costmodel/i386/costmodel-fast-math-vect-pr29925.c:
      	New test.
      	* gcc.dg/vect/costmodel/i386/costmodel-vect-31.c: New test.
      	* gcc.dg/vect/costmodel/i386/costmodel-vect-33.c: New test.
      	* gcc.dg/vect/costmodel/i386/costmodel-vect-68.c: New test.
      	* gcc.dg/vect/costmodel/i386/costmodel-vect-reduc-1char.c: New test.
      	* gcc.dg/vect/costmodel/x86_64: New directory.
      	* gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp:
      	New testsuite.	
      	* gcc.dg/vect/costmodel/x86_64/costmodel-fast-math-vect-pr29925.c:
      	New test.
      	* gcc.dg/vect/costmodel/x86_64/costmodel-vect-31.c: New test.
      	* gcc.dg/vect/costmodel/x86_64/costmodel-vect-33.c: New test.
      	* gcc.dg/vect/costmodel/x86_64/costmodel-vect-68.c: New test.
      	* gcc.dg/vect/costmodel/x86_64/costmodel-vect-reduc-1char.c: New test.
      	* gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c: New test.
      
      Co-Authored-By: Tony Linthicum <tony.linthicum@amd.com>
      
      From-SVN: r125575
      Harsha Jagasia committed
    • reg-stack.c (get_true_reg): Readability change. · c8e2516c
      
      * reg-stack.c (get_true_reg): Readability change.  Moved default case
      label into direct switch statement scope.
      
      From-SVN: r125574
      Simon Baldwin committed
    • tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment in gcc_assert()… · 2c5cfd1f
      tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment in gcc_assert() with '==' comparison.
      
      
      * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
      in gcc_assert() with '==' comparison.
      
      From-SVN: r125573
      Simon Baldwin committed
    • fstream: Add Table 92 in comment. · 9735f6ba
      2007-06-08  Francesco Palagi  <palagi@arcetri.astro.it>
      
      	* include/std/fstream: Add Table 92 in comment.
      
      From-SVN: r125571
      Francesco Palagi committed
    • i386.c (override_options): Merge TARGET_SSE4_2 and TARGET_ABM handling of x86_popcnt variable. · 837a8954
      	* config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
      	TARGET_ABM handling of x86_popcnt variable.
      
      From-SVN: r125570
      Uros Bizjak committed
    • extend.texi (X86 Built-in Functions): Document __builtin_fabsq,… · 5513e239
      extend.texi (X86 Built-in Functions): Document __builtin_fabsq, __builtin_copysignq and __builtin_infq built-in functions.
      
      	* doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
      	__builtin_copysignq and __builtin_infq built-in functions.
      
      From-SVN: r125569
      Uros Bizjak committed
    • extend.texi (X86 Built-in Functions): Add missing `@item's in SSE4.2 section. · 291d9a2d
      	* doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
      	SSE4.2 section.  Correct built-in function names in SSE4A section.
      
      From-SVN: r125568
      Uros Bizjak committed
    • re PR tree-optimization/32243 (ICE in vectorizable_type_promotion, at tree-vect-transform.c:2890) · 459e691a
      	PR tree-optimization/32243
      	* tree-vect-transform.c (vectorizable_type_promotion): Move check
      	for ncopies after ratio check between nunits_out and nunits_in.
      	(vectorizable_type_demotion): Remove single-use variable "scalar_type".
      
      testsuite/ChangeLog:
      	
      	PR tree-optimization/32243
      	* gcc.dg/vect/vect.exp: Add support for -O3 tests.  Reset default
      	flags for -Os tests.
      	* gcc.dg/vect/03-vect-pr32243.c: New test.
      
      From-SVN: r125567
      Uros Bizjak committed
    • re PR tree-optimization/32224 (ICE in vect_analyze_operations, at tree-vect-analyze.c:374) · 0d266580
              PR tree-optimization/32224
              * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
              vectorization upon a non GIMPLE_MODIFY_STMT.
      
      From-SVN: r125566
      Dorit Nuzman committed
    • re PR target/29953 ([SH-4] Perfomance regression in loops. cmp/eq used instead of dt) · 4aa97413
      PR target/29953
      * config/sh/sh.md (doloop_end): New pattern and splitter.
      * loop-iv.c (simple_rhs_p): Check for hardware registers.
      
      From-SVN: r125564
      Christian Bruel committed
    • re PR middle-end/32209 (Boot failure Comparing stages 2 and 3 with --disable-checking) · 1fc3998d
      	PR middle-end/32209
      	* dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
      	functions.
      	(verify_dominators): Do not change dominance tree.
      
      From-SVN: r125563
      Zdenek Dvorak committed
    • constraints.md: New file. · 32a7ab3d
      	* config/sh/constraints.md: New file.
      	* config/sh/sh.c: Include tm-constrs.h.
      	(reg_class_from_letter): Remove.
      	(prepare_cbranch_operands): Use satisfies_constraint_*
      	function instead of macro.
      	(andcosts, broken_move, sh_secondary_reload): Likewise.
      	* config/sh/predicates.md (trapping_target_operand): Likewise.
      	(and_operand, arith_operand, arith_reg_or_0_operand,
      	cmp_operand, logical_operand, target_operand,
      	ua_address_operand, ua_offset, xor_operand): Likewise.
      	* config/sh/sh.md: Include constraints.md.
      	(*movsicc_t_false): Use satisfies_constraint_* function
      	instead of macro.
      	(*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
      	lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
      	movdi_const_16bit+1, beq, bne, *ptb): Likewise.
      	* config/sh/sh.h (reg_class_from_letter): Remove prototype.
      	(OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
      	(REG_CLASS_FROM_CONSTRAINT): Remove.
      	(CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
      	CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
      	CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
      	CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
      	CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
      	(SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
      	function instead of macro.
      	(SECONDARY_INPUT_RELOAD_CLASS): Likewise.
      	(EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
      	EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
      	EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
      	(IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
      	(IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
      	(IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
      	(IS_NON_EXPLICIT_CONSTANT_P): Likewise.
      	(EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
      	EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
      	EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
      	EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
      	EXTRA_CONSTRAINT_STR): Likewise.
      	(GO_IF_LEGITIMATE_INDEX): Fix indentation.
      
      From-SVN: r125561
      Kaz Kojima committed
    • re PR fortran/32223 (Backslash handling inconsistent) · a88a266c
      2007-06-07  Steven G. Kargl  <kargl@gcc.gnu.org>
      	    Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR fortran/32223
      	* match.c (gfc_match_special_char): New function.  Match special char.
      	Add handling '\0'.
      	* match.h: Add prototype.
      	* io.c (next_char): Use it.
      	* primary.c (next_string_char): Ditto.
      
      Co-Authored-By: Jerry DeLisle <jvdelisle@gcc.gnu.org>
      
      From-SVN: r125557
      Steven G. Kargl committed
    • cleanup-8.c: Run on i386-darwin9 and later. · 294e1a5b
      	* g++.dg/ext/cleanup-8.c: Run on i386-darwin9 and later.
      	* g++.dg/ext/cleanup-9.c: Run on i386-darwin9 and later.
      	* g++.dg/ext/cleanup-10.c: Run on i386-darwin9 and later.
      	* g++.dg/ext/cleanup-11.c: Run on i386-darwin9 and later.
      
      From-SVN: r125556
      Geoffrey Keating committed
    • darwin.h (STACK_BOUNDARY): Define. · 2734e1c3
      	* config/i386/darwin.h (STACK_BOUNDARY): Define.
      
      Co-Authored-By: Hui-May Chang <hm.chang@apple.com>
      
      From-SVN: r125555
      Geoffrey Keating committed
    • Daily bump. · 8df645e1
      From-SVN: r125549
      GCC Administrator committed
  3. 07 Jun, 2007 15 commits
    • re PR c++/32177 (g++ crashes on some valid OpenMP code) · 969c111d
      	PR c++/32177
      	* semantics.c (finish_omp_for): Call fold_build_cleanup_point_expr
      	on init, the non-decl cond operand and increment value.
      
      	* g++.dg/gomp/pr32177.C: New test.
      
      From-SVN: r125544
      Jakub Jelinek committed
    • re PR testsuite/25241 ([C++] DejaGNU does not distinguish between errors and warnings) · 1579e8d2
      2007-06-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR testsuite/25241
      
      testsuite/
      	* gcc.dg/parm-mismatch-1.c: Use dg-message for notes.
      	* gcc.dg/Wfatal.c: Use dg-message for output that is neither a
      	warning nor an error.
      	* gcc.dg/Wfatal-2.c: Likewise.
      	* gcc.dg/Werror-1.c: Likewise.
      	* gcc.dg/Werror-5.c: Likewise.
      	* gcc.dg/Werror-7.c: Likewise.
      	* gcc.dg/Werror-10.c: Likewise.
      	* gcc.dg/Werror-11.c: Likewise.
      
      From-SVN: r125543
      Manuel López-Ibáñez committed
    • team.c (gomp_team_start): Fix setting up thread_attr stack size. · 46d8fbd1
      	* team.c (gomp_team_start): Fix setting up thread_attr
      	stack size.
      
      From-SVN: r125542
      Jakub Jelinek committed
    • re PR c++/30759 (initializer-list accepted for object of non-POD type) · c1ae8be5
      gcc/
      
      2007-06-07  Simon Martin  <simartin@users.sourceforge.net>
      
      	PR c++/30759
      	* c-common.h (flag_cpp0x): Replaced by...
      	(cxx_dialect): ... this new variable specifying the C++ dialect that
      	is used.
      	* c-common.c (flag_cpp0x): Removed.
      	(cxx_dialect): Defined.
      	* c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
      	cxx_dialect.
      	* c-opts.c (c_common_post_options): Likewise.
      	(set_std_cxx98): Set cxx_dialect to cxx98.
      	(set_std_cxx0x): Set cxx_dialect to cxx0x.
      
      gcc/cp/
      
      2007-06-07  Simon Martin  <simartin@users.sourceforge.net>
      
      	PR c++/30759
      	* decl.c (check_initializer): Report an error when a brace enclosed
      	initializer is used for a non-aggregate type in C++98.
      	(redeclaration_error_message): Rewrote flag_cpp0x in terms of
      	cxx_dialect.
      	(grokdeclarator): Likewise.
      	(move_fn_p): Likewise.
      	* typeck.c (check_return_expr): Likewise.
      	* call.c (reference_binding): Likewise.
      	* error.c (cp_cpp_error): Likewise.
      	* pt.c (check_default_tmpl_args): Likewise.
      	(tsubst): Likewise.
      	* lex.c (init_reswords): Likewise.
      	* parser.c (p_parser_primary_expression): Likewise.
      	(TOKEN_PRECEDENCE): Likewise.
      	(cp_parser_init_declarator): Likewise.
      	(cp_parser_ptr_operator): Likewise.
      	(cp_parser_parameter_declaration): Likewise.
      	(cp_parser_enclosed_template_argument_list): Likewise.
      	(cp_parser_skip_to_end_of_template_parameter_list): Likewise.
      	(cp_parser_next_token_ends_template_argument_p): Likewise.
      
      gcc/testsuite/
      
      2007-06-07  Simon Martin  <simartin@users.sourceforge.net>
      
      	PR c++/30759
      	* g++.dg/init/brace6.C: New test.
      
      From-SVN: r125539
      Simon Martin committed
    • attr-weakref-1-darwin.c: Run on all Darwin platforms. · 20967296
      	* gcc.dg/attr-weakref-1-darwin.c: Run on all Darwin platforms.
      	* gcc.dg/20050826-1.c: Run on all Darwin platforms.
      	* gcc.dg/darwin-ld-2.c: Run on all Darwin platforms.
      	* gcc.dg/darwin-ld-4.c: Run on all Darwin platforms.
      	* gcc.dg/cleanup-8.c: Run on i386-darwin9 and later.
      	* gcc.dg/cleanup-9.c: Run on i386-darwin9 and later.
      	* gcc.dg/cleanup-10.c: Run on i386-darwin9 and later.
      	* gcc.dg/cleanup-11.c: Run on i386-darwin9 and later.
      
      From-SVN: r125538
      Geoffrey Keating committed
    • Index: ChangeLog · e46b55d0
      2007-06-06  Geoffrey Keating  <geoffk@apple.com>
      	    Hui-May Chang <hm.chang@apple.com>
      
      	* doc/invoke.texi (Darwin Options): Update documentation for
      	-mmacosx-version-min.
      	* config.gcc (*-*-darwin*): Set extra_gcc_objs.
      	* config/darwin-driver.c: New file.
      	* config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
      	* config/t-darwin (darwin-driver.o): New rule.
      
      	* config/darwin-c.c (version_as_macro): Ignore low digit.
      
      Index: testsuite/ChangeLog
      2007-06-06  Geoffrey Keating  <geoffk@apple.com>
      
      	* gcc.dg/darwin-minversion-3.c: New.
      
      Co-Authored-By: Hui-May Chang <hm.chang@apple.com>
      
      From-SVN: r125537
      Geoffrey Keating committed
    • configure.ac: Non-default multilibs can be cross compilations. · abea993f
      	* configure.ac: Non-default multilibs can be cross compilations.
      	* configure: Regenerate
      
      From-SVN: r125536
      Geoffrey Keating committed
    • i386.md (standard sse constant splitter): Handle TFmode. · edc5bbcd
              * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
              (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
              (CSGNMODE): New mode macro.
              (CSGNVMODE): New mode attribute.
              (copysign<mode>3): Rename from copysingsf3 and copysigndf3.  Macroize
              expander using CSGNMODE mode macro.  Handle TFmode.
              (copysign<mode>3_const): Rename from copysignsf3_const and
              copysigndf3_const.  Macroize pattern using CSGNMODE mode macro.
              Handle TFmode.
              (copysign<mode>3_var): Rename from copysignsf3_var and
              copysigndf3_var.  Macroize pattern using CSGNMODE mode macro.
              Handle TFmode.
              (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
              mode macro.  Handle TFmode.
              * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
              (iortf3, *iortf3): Ditto.
              (xortf3, *xortf3): Ditto.
              * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
              TFmode and TImode masks.
              (ix86_expand_copysign): Expand TFmode copysign insn.
              (IX86_BUILTIN_INFQ): New.
              (IX86_BUILTIN_FABSQ): Ditto.
              (IX86_BUILTIN_COPYSIGNQ): Ditto.
              (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
              [__builtin_fabsq]: Ditto.
              [__builtin_copysignq]: Ditto.
              (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
              [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
              [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
              ix86_expand_unop_builtin().
      
      testsuite/ChangeLog:
          
              * gcc.target/i386/builtin-copysign.c: New test.
      
      From-SVN: r125535
      Uros Bizjak committed
    • * config/xtensa/lib1funcs.asm: Clean up whitespace. · 125253d9
      From-SVN: r125534
      Bob Wilson committed
    • decl.c: Miscellaneous whitespace fixes. · 66e4ab31
      * decl.c: Miscellaneous whitespace fixes.
      * expr.c: Likewise.
      * gfortran.h: Likewise.
      * interface.c : Likewise.
      * io.c: Likewise.
      * match.c: Likewise.
      * match.h: Likewise.
      * module.c: Likewise.
      * parse.c: Likewise.
      * resolve.c: Likewise.
      * symbol.c: Likewise.
      * trans-array.c: Likewise.
      * trans-common.c: Likewise.
      * trans-decl.c: Likewise.
      * trans-intrinsic.c: Likewise.
      * trans-io.c: Likewise.
      * trans-stmt.c: Likewise.
      * trans-types.c: Likewise.
      
      From-SVN: r125533
      Steven G. Kargl committed
    • re PR target/31850 (gcc.c-torture/compile/limits-fnargs.c is slow at compiling for spu-elf) · bb27eeda
      	PR target/31850
      	* rtl.h (push_to_sequence2): New.
      	* emit-rtl.c (push_to_sequence2): New.
      	* function.c (assign_parm_data_all): Add new fields.
      	(assign_parm_setup_block): Call push_to_sequence2 instead of 
      	push_to_sequence.
      	(assign_parm_setup_reg): Ditto.
      	(assign_parm_setup_stack): Ditto.
      	(assign_parms_unsplit_complex): Ditto.
      	(assign_parms): Change field name.
      
      From-SVN: r125532
      Steve Ellcey committed
    • re PR tree-optimization/32220 (internal compiler error: in… · 1b0cfaa6
      re PR tree-optimization/32220 (internal compiler error: in eliminate_temp_copies, at tree-predcom.c:1937)
      
      	PR tree-optimization/32220
      	* tree-predcom.c (eliminate_temp_copies): Handle the case that loop
      	phi node is reached before defining statement.
      
      	* gfortran.dg/predcom-2.f: New testcase.
      
      From-SVN: r125531
      Zdenek Dvorak committed
    • Add new tests · 554a5400
      From-SVN: r125529
      Arnaud Charlet committed
    • re PR libgcj/32227 (../gcc/libjava/classpath/include/config-int.h:7:20: error:… · 9c28f283
      re PR libgcj/32227 (../gcc/libjava/classpath/include/config-int.h:7:20: error: stdint.h: No such file or directory)
      
      2007-06-07  Matthias Klose  <doko@ubuntu.com> 
       
              PR libgcj/32227 
              * include/config-int.h: Delete, it is a generated file.
      
      From-SVN: r125528
      Matthias Klose committed
    • Add new tests · 42714026
      From-SVN: r125527
      Arnaud Charlet committed