1. 31 Jan, 2005 21 commits
  2. 30 Jan, 2005 14 commits
  3. 29 Jan, 2005 5 commits
    • re PR tree-optimization/15791 (fold misses that two ADDR_EXPR of an arrary obvious not equal) · 020d90ee
      2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
      
      	PR tree-optimization/15791
      	* fold-const.c (extract_array_ref): New function.
      	(fold): Fold comparisons between &a[i] and &a[j] or
      	semantically equivalent trees.
      
      	* gcc.dg/tree-ssa/pr15791-1.c: New testcase.
      	* gcc.dg/tree-ssa/pr15791-2.c: Likewise.
      	* gcc.dg/tree-ssa/pr15791-3.c: Likewise.
      	* gcc.dg/tree-ssa/pr15791-4.c: Likewise.
      	* gcc.dg/tree-ssa/pr15791-5.c: Likewise.
      	* g++.dg/tree-ssa/pr15791-1.C: Likewise.
      	* g++.dg/tree-ssa/pr15791-2.C: Likewise.
      	* g++.dg/tree-ssa/pr15791-3.C: Likewise.
      	* g++.dg/tree-ssa/pr15791-4.C: Likewise.
      	* g++.dg/tree-ssa/pr15791-5.C: Likewise.
      
      From-SVN: r94414
      Richard Guenther committed
    • gcse.c (insert_expr_in_table): Revamp handling of available and anticipatable… · b6e47ceb
      gcse.c (insert_expr_in_table): Revamp handling of available and anticipatable occurrence lists to avoid...
      
              * gcse.c (insert_expr_in_table): Revamp handling of available
              and anticipatable occurrence lists to avoid unnecessary list
              walking.
              (insert_set_in_table): Similarly.
      
      From-SVN: r94413
      Jeff Law committed
    • re PR fortran/18565 (gfortran: CONJG: false error message about standard violation) · 985aff9c
      2005-01-29  Paul Brook  <paul@codesourcery.com>
      
      	PR fortran/18565
      	* check.c (real_or_complex_check): New function.
      	(gfc_check_fn_c, gfc_check_fn_r, gfc_check_fn_rc): New functions.
      	* intrinsic.c (add_functions): Use new check functions.
      	* intrinsic.h (gfc_check_fn_c, gfc_check_fn_r, gfc_check_fn_rc):
      	Add prototypes.
      testsuite/
      	* gfortran.dg/double_complex_1.f90: New test.
      
      From-SVN: r94412
      Paul Brook committed
    • c-common.c (fix_string_type): Just use c_build_qualified_type to build string type. · 46df2823
      	* c-common.c (fix_string_type): Just use c_build_qualified_type to
      	build string type.
      	(c_build_qualified_type): Build qualified array types with
      	TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
      	* c-decl.c (c_make_fname_decl): Build unqualified array type
      	before qualified type.
      	(grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
      	type is qualified, not just if type itself is.  Don't apply
      	qualifiers to array type when declarator is processed.  Apply
      	qualifiers to field type whether or not it is an array type.
      	Don't handle array types specially for applying qualifiers to
      	variables.
      	* c-typeck.c (composite_type): Build unqualified element type and
      	array type when forming composite of array types.
      	(common_pointer_type, comptypes, comp_target_types,
      	type_lists_compatible_p, build_indirect_ref, build_array_ref,
      	convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
      	types.
      	(type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
      	(args2) in variables a1 and a2.
      
      testsuite:
      	* gcc.dg/Wwrite-strings-1.c, gcc.dg/array-quals-2.c,
      	gcc.dg/lvalue-3.c: New tests.
      	* gcc.dg/concat.c: Update expected messages.
      
      From-SVN: r94411
      Joseph Myers committed
    • re PR libfortran/19595 ([4.0 only] eor does not work) · 24a09741
      2005-01-29  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/19595
      	* io/transfer.c (data_transfer_init): eor requires advance="NO".
      testsuite/
      	* gfortran.dg/eor_1.f90:  New test.
      
      From-SVN: r94410
      Thomas Koenig committed