1. 19 Feb, 2007 22 commits
    • re PR libfortran/30533 ([4.1 only] minval, maxval missing for kind=1 and kind=2) · 567c915b
      2007-02-19  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/30533
      	PR libfortran/30765
      	* Makefile.am: Add $(srcdir) too all files in generated/.
      	(i_maxloc0_c): Add maxloc0_4_i1.c, maxloc0_8_i1.c,
      	maxloc0_16_i1.c, maxloc0_4_i2.c, maxloc0_8_i2.c and
      	maxloc0_16_i2.c.
      	(i_maxloc1_c): Add maxloc1_4_i1.c, maxloc1_8_i1.c,
      	maxloc1_16_i1.c, maxloc1_4_i2.c, maxloc1_8_i2.c and
      	maxloc1_16_i2.c.
      	(i_maxval_c): Add maxval_i1.c and maxval_i2.c.
      	(i_minloc0_c):  Add minloc0_4_i1.c, minloc0_8_i1.c,
      	minloc0_16_i1.c, minloc0_4_i2.c, minloc0_8_i2.c and
      	minloc0_16_i2.c.
      	(i_minloc_1.c): Add minloc1_4_i1.c, minloc1_8_i1.c,
      	minloc1_16_i1.c, minloc1_4_i2.c, minloc1_8_i2.c and
      	minloc1_16_i2.c.
      	(i_minval_c):  Add minval_i1.c and minval_i2.c.
      	(i_sum_c):  Add sum_i1.c and sum_i2.c.
      	(i_product_c):  Add product_i1.c and product_i2.c.
      	(i_matmul_c):  Add matmul_i1.c and matmul_i2.c.
      	(gfor_built_specific_src):  Remove $(srcdir) from target.
      	(gfor_bulit_specific2_src):  Likewise.
      	Makefile.in:  Regenerated.
      	libgfortran.h:  Add GFC_INTEGER_1_HUGE and GFC_INTEGER_2_HUGE.
      	Add gfc_array_i1 and gfc_array_i2.
      	* generated/matmul_i1.c: New file.
      	* generated/matmul_i2.c: New file.
      	* generated/maxloc0_16_i1.c: New file.
      	* generated/maxloc0_16_i2.c: New file.
      	* generated/maxloc0_4_i1.c: New file.
      	* generated/maxloc0_4_i2.c: New file.
      	* generated/maxloc0_8_i1.c: New file.
      	* generated/maxloc0_8_i2.c: New file.
      	* generated/maxloc1_16_i1.c: New file.
      	* generated/maxloc1_16_i2.c: New file.
      	* generated/maxloc1_4_i1.c: New file.
      	* generated/maxloc1_4_i2.c: New file.
      	* generated/maxloc1_8_i1.c: New file.
      	* generated/maxloc1_8_i2.c: New file.
      	* generated/maxval_i1.c: New file.
      	* generated/maxval_i2.c: New file.
      	* generated/minloc0_16_i1.c: New file.
      	* generated/minloc0_16_i2.c: New file.
      	* generated/minloc0_4_i1.c: New file.
      	* generated/minloc0_4_i2.c: New file.
      	* generated/minloc0_8_i1.c: New file.
      	* generated/minloc0_8_i2.c: New file.
      	* generated/minloc1_16_i1.c: New file.
      	* generated/minloc1_16_i2.c: New file.
      	* generated/minloc1_4_i1.c: New file.
      	* generated/minloc1_4_i2.c: New file.
      	* generated/minloc1_8_i1.c: New file.
      	* generated/minloc1_8_i2.c: New file.
      	* generated/minval_i1.c: New file.
      	* generated/minval_i2.c: New file.
      	* generated/product_i1.c: New file.
      	* generated/product_i2.c: New file.
      	* generated/sum_i1.c: New file.
      	* generated/sum_i2.c: New file.
      
      2007-02-19  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/30533
      	* fortran/iresolve.c(gfc_resolve_maxloc):  Remove coercion of
      	argument to default integer.
      	(gfc_resolve_minloc):  Likewise.
      
      2007-02-19  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/30533
      	* gfortran.dg/intrinsic_intkinds_1.f90:  New test.
      
      From-SVN: r122137
      Thomas Koenig committed
    • c.opt (Waddress): New. · c116cd05
      2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	* c.opt (Waddress): New.
      	* common.opt (Walways-true): Delete.
      	(Wstring-literal-comparison): Delete.
      	* doc/invoke.texi (Warning Options): Delete -Walways-true and
      	-Wstring-literal-comparison. Add -Waddress.
      	(Waddress): New.
      	(Walways-true): Delete.
      	(Wstring-literal-comparison): Delete.
      	* doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
      	consistently instead of -Walways-true in example.
      	* c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
      	* c-typeck.c (parser_build_binary_op): Replace
      	-Wstring-literal-comparison and -Walways-true with -Waddress.
      	* c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
      	with -Waddress.
      
      cp/
      	* typeck.c (build_binary_op): Replace -Wstring-literal-comparison
      	and -Walways-true with -Waddress.
      	* cvt.c (convert_to_void): Replace unconditional warning with
      	-Waddress.
      
      testsuite/
      	* gcc.dg/20031012-1.c: Replace -Walways-true with -Waddress.
      	* gcc.dg/Walways-true-1.c: Likewise.
      	* gcc.dg/weak/weak-3.c: Likewise.
      	* gcc.dg/Werror-1.c: Likewise.
      	* gcc.dg/Werror-3.c: Likewise.
      	* gcc.dg/Werror-4.c: Likewise.
      	* gcc.dg/Werror-5.c: Likewise.
      	* gcc.dg/Werror-6.c: Likewise.
      	* gcc.dg/Werror-7.c: Likewise.
      	* gcc.dg/Werror-8.c: Likewise.
      	* gcc.dg/Werror-10.c: Likewise.
      	* gcc.dg/Werror-11.c: Likewise.
      	* gcc.dg/Werror-12.c: Likewise.
      	* g++.old-deja/g++.mike/warn8.C: Likewise.
      	* g++.dg/warn/Walways-true-1.C: Likewise.
      	* g++.dg/warn/Walways-true-2.C: Likewise.
      	* g++.dg/warn/noeffect8.C: Warn only with -Waddress.
      	* g++.dg/warn/Wstring-literal-comparison-1.C: Replace
      	-Wstring-literal-comparison with -Waddress.
      	* gcc.dg/Wstring-literal-comparison-4.c: Replace
      	-Wno-string-literal-comparison with -Wno-address.
      
      From-SVN: r122136
      Manuel López-Ibáñez committed
    • tree-cfg.c (dump_function_to_file): Be prepared for functions without… · 459ffad3
      tree-cfg.c (dump_function_to_file): Be prepared for functions without DECL_STRUCT_FUNCTION initialized.
      
      	* tree-cfg.c (dump_function_to_file): Be prepared for functions
      	without DECL_STRUCT_FUNCTION initialized.
      
      From-SVN: r122135
      Eric Botcazou committed
    • gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap due to calls… · df10ee2a
      gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap due to calls to functions taking pointers as parameters.
      
      	* gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
      	due to calls to functions taking pointers as parameters.
      
      From-SVN: r122133
      Eric Botcazou committed
    • configure.ac: Adjust for loop syntax. · 9f8c6739
      	* configure.ac: Adjust for loop syntax.
      	* configure: Regenerate.
      
      From-SVN: r122132
      Joseph Myers committed
    • re PR debug/29558 (ICE in set_variable_part, at var-tracking.c:2140) · 80a3af5b
              PR debug/29558
              * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
              in memory.
      
      From-SVN: r122131
      Richard Henderson committed
    • s390.c (s390_call_saved_register_used, [...]): Adjust the way CALL_EXPR… · 9a6f71b4
      s390.c (s390_call_saved_register_used, [...]): Adjust the way CALL_EXPR arguments are accessed to the new scheme.
      
      2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	* config/s390/s390.c (s390_call_saved_register_used,
      	s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
      	accessed to the new scheme.
      
      From-SVN: r122129
      Andreas Krebbel committed
    • * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p) · 991c42ac
      	(cris_print_index, cris_print_operand, cris_print_operand_address)
      	(cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
      	(cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
      	(cris_expand_pic_call_address): Use xxx_P predicate macros instead of
      	GET_CODE () == xxx.
      	* config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
      	EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
      	GO_IF_LEGITIMATE_ADDRESS): Ditto.
      	* config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
      	(*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
      	(*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
      	(*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
      	(*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
      	(*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
      	(uminsi3, call, call_value): Ditto.
      	(define_split: indir_to_reg_split, unnamed): Ditto.
      
      From-SVN: r122128
      Jan-Benedict Glaw committed
    • re PR tree-optimization/30795 (ice for legal code with -ftree-vectorize -O2) · 602fea7c
              PR tree-optimization/30975
              * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
              wrong assert.
      
      From-SVN: r122127
      Dorit Nuzman committed
    • mips.c (mips_prepare_builtin_arg): Add argnum parameter. · 5646ba12
      2007-02-18  Eric Christopher  <echristo@gmail.com>
      
              * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
              Remove use of arglist.
              (mips_expand_builtin): Remove use of arglist, pass in expr.
              (mips_expand_builtin_direct): Rewrite handling for arglist removal.
              (mips_expand_builtin_movtf): Ditto.
              (mips_expand_builtin_compare): Ditto.
      
      From-SVN: r122126
      Eric Christopher committed
    • re PR fortran/30681 ("obsolescent" vs. "obsolete") · 312f2e97
      2007-02-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR fortran/30681
      	* gfortran.dg/pr17229.f: Change "Obsolete" to "Obsolescent".
      
      From-SVN: r122125
      Jerry DeLisle committed
    • re PR fortran/30681 ("obsolescent" vs. "obsolete") · bb6a1e6d
      2007-02-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR fortran/30681
      	* options.c (gfc_init_options): Relax warning level for obsolescent.
      	* match.c (match_arithmetic_if): Change to obsolescent from deleted.
      	(gfc_match_if): Same.
      
      From-SVN: r122124
      Jerry DeLisle committed
    • tree-sra.c (sra_build_assignment): Replace assertion checking with a comment… · 30047199
      tree-sra.c (sra_build_assignment): Replace assertion checking with a comment explaining why it can't be done.
      
      * tree-sra.c (sra_build_assignment): Replace assertion
      checking with a comment explaining why it can't be done.
      
      From-SVN: r122123
      Alexandre Oliva committed
    • re PR middle-end/30833 (ICE with -fdump-tree-all) · 3328fbb7
      2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
      
      	PR middle-end/30833
      	* tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
      	during CALL_EXPR representation conversion.
      	* tree-ssa-propagate.c (set_rhs): Likewise.
      
      From-SVN: r122122
      Sandra Loosemore committed
    • tree-sra.c (sra_build_assignment): Disable assertion checking for now. · eb441084
      * tree-sra.c (sra_build_assignment): Disable assertion checking
      for now.
      
      From-SVN: r122121
      Alexandre Oliva committed
    • function.c (gimplify_parameters): Call build_gimple_modify_stmt instead of… · b56b9fe3
      function.c (gimplify_parameters): Call build_gimple_modify_stmt instead of calling build2 with a GIMPLE_MODIFY_STMT.
      
      
      	* function.c (gimplify_parameters): Call build_gimple_modify_stmt
      	instead of calling build2 with a GIMPLE_MODIFY_STMT.
      	* gimple-low.c (lower_function_body, lower_builtin_setjmp):
      	Likewise.
      	* gimplify.c (build_stack_save_restore, gimplify_return_expr,
      	gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
      	gimplify_init_ctor_eval_range, gimple_push_cleanup,
      	gimplify_omp_for, gimplify_omp_atomic_pipeline, 
      	gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
      	force_gimple_operand): Likewise.
      	* ipa-cp.c (constant_val_insert): Likewise.
      	* lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
      	lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
      	perfect_nestify): Likewise.
      	* langhooks.c (lhd_omp_assignment): Likewise.
      	* omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
      	lower_copyprivate_clauses, lower_send_clauses,
      	lower_send_shared_vars, expand_parallel_call,
      	expand_omp_for_generic, expand_omp_for_static_nochunk,
      	expand_omp_for_static_chunk, expand_omp_sections,
      	lower_omp_single_copy, lower_omp_for_lastprivate,
      	lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
      	* value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
      	tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
      	Likewise.
      
      From-SVN: r122120
      Roger Sayle committed
    • linux-unwind.h: Fix a comment typo. · da08281c
      	* config/m68k/linux-unwind.h: Fix a comment typo.
      	* target.h: Follow spelling conventions.
      
      From-SVN: r122119
      Kazu Hirata committed
    • frv.c, [...]: Follow spelling conventions. · 2300b9dd
      	* config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
      	config/frv/predicates.md: Follow spelling conventions.
      
      From-SVN: r122118
      Kazu Hirata committed
    • divtab.c, [...]: Follow spelling conventions. · 3b962ea0
      	* config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
      	config/sh/sh.md: Follow spelling conventions.
      
      From-SVN: r122117
      Kazu Hirata committed
    • re PR rtl-optimization/28173 (misses constant folding) · 49e7a9d4
      
      	PR rtl-optimization/28173
      	* simplify-rtx.c (simplify_binary_operation_1) <IOR>:  Optimize
      	(X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
      	Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
      	Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
      	<AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
      
      	* gcc.target/i386/andor-1.c: New test case.
      
      From-SVN: r122116
      Roger Sayle committed
    • Daily bump. · 1b16dad6
      From-SVN: r122114
      GCC Administrator committed
    • builtins.c (fold_builtin_load_exponent): New. · 2b5e5642
      	* builtins.c (fold_builtin_load_exponent): New.
      	(fold_builtin_2): Use it.
      
      testsuite:
      	* gcc.dg/torture/builtin-ldexp-1.c: New.
      	* gcc.dg/torture/builtin-math-2.c: Add ldexp/scalbn/scalbln cases.
      
      From-SVN: r122110
      Kaveh R. Ghazi committed
  2. 18 Feb, 2007 18 commits