1. 06 Oct, 2008 2 commits
  2. 05 Oct, 2008 8 commits
    • re PR debug/37410 (DW_TAG_imported_module is not in its DW_TAG_lexical_block) · d19c0f4b
      2008-09-30  Dodji Seketeli  <dodji@redhat.com>
      gcc/ChangeLog:
      
      	PR c++/37410
      	* dwarf2out.c (dwarf2out_imported_module_or_decl): Split this
      	  function in two, making it call a new and reusable
      	  dwarf2out_imported_module_or_decl() that takes the containing
      	  BLOCK of the declaration in argument.
      	  (dwarf2out_imported_module_or_decl_real): New function.
      	  (decls_for_scope, gen_decl_die, dwarf2out_decl): Take
      	  IMPORTED_DECL in account.
      	* tree.def: Added IMPORTED_DECL node type.
      	* tree.h: Added accessors for IMPORTED_DECL nodes.
      	* tree.c (init_ttree): Initialise IMPORTED_DECL node type.
      
      gcc/cp/ChangeLog:
      
      	PR c++/37410
      	* cp-gimplify.c (cp_gimplify_expr): For each USING_STMT
      	  make sure an IMPORTED_DECL node is added to the BLOCK_VARS list
      	  of the innermost containing BLOCK.
      
      gcc/testsuite/ChangeLog:
      
      	PR c++/37410
      	* g++.dg/debug/dwarf2/imported-module.C: New test.
      
      From-SVN: r140895
      Dodji Seketeli committed
    • re PR fortran/35680 (ICE on invalid transfer in variable declaration) · ebb479cd
      2008-10-05  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/35680
      	* gfortran.h : Add 'error' bit field to gfc_expr structure.
      	* expr.c (check_inquiry): When checking a restricted expression
      	check that arguments are either variables or restricted.
      	(check_restricted): Do not emit error if the expression has
      	'error' set.  Clean up detection of host-associated variable.
      
      2008-10-05  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/35680
      	* gfortran.dg/transfer_array_intrinsic_5.f90: New test.
      
      From-SVN: r140892
      Paul Thomas committed
    • gimple.texi: Fix some typos, wrap some long lines, fix some broken wraps with continuations. · 1d72ff1a
      gcc/
      	* doc/gimple.texi: Fix some typos, wrap some long lines,
      	fix some broken wraps with continuations.
      	* tree-ssa-reassoc.c: Fix comment typos.
      
      From-SVN: r140887
      Ralf Wildenhues committed
    • cpplib.h (cpp_comments, [...]): New structs. · 631d0d36
      2008-10-05  Matthew Gingell  <gingell@adacore.com>
      	    Arnaud Charlet  <charlet@adacore.com>
      
      	* include/cpplib.h (cpp_comments, cpp_comment_table): New structs.
      	(cpp_get_comments): New function.
      	* internal.h (struct cpp_reader): Add comments field.
      	* init.c (cpp_destroy): Free comments.
      	* lex.c (store_comment, cpp_get_comments): New functions.
      	(comments): New struct.
      	(save_comment): Store comments in comments struct.
      
      Co-Authored-By: Arnaud Charlet <charlet@adacore.com>
      
      From-SVN: r140883
      Matthew Gingell committed
    • invoke.cc: New. · 7a90b0ca
      2008-10-05  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/20_util/reference_wrapper/invoke.cc: New.
      	* testsuite/20_util/reference_wrapper/24803.cc: Likewise.
      	* testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
      
      From-SVN: r140882
      Paolo Carlini committed
    • re PR fortran/37638 (ICE in update_arglist_pass) · b82657f4
      2008-10-05  Daniel Kraft  <d@domob.eu>
      
      	PR fortran/37638
      	* gfortran.h (struct gfc_typebound_proc): New flag `error'.
      	* resolve.c (update_arglist_pass): Added assertion.
      	(update_compcall_arglist): Fail early for erraneous procedures to avoid
      	confusion later.
      	(resolve_typebound_generic_call): Ignore erraneous specific targets
      	and added assertions.
      	(resolve_typebound_procedure): Set new `error' flag.
      
      2008-10-05  Daniel Kraft  <d@domob.eu>
      
      	PR fortran/37638
      	* gfortran.dg/typebound_call_9.f03: New test.
      
      From-SVN: r140880
      Daniel Kraft committed
    • re PR fortran/37706 (ICE with use only and equivalent) · ee9ef103
      2008-10-04  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/37706
      	* module.c (load_equiv): Check the module before negating the
      	unused flag.
      
      2008-10-04  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/37706
      	* gfortran.dg/module_equivalence_4.f90: New test.
      
      From-SVN: r140879
      Paul Thomas committed
    • Daily bump. · 7f23df4e
      From-SVN: r140877
      GCC Administrator committed
  3. 04 Oct, 2008 5 commits
  4. 03 Oct, 2008 9 commits
  5. 02 Oct, 2008 9 commits
  6. 01 Oct, 2008 7 commits
    • c_locale.cc (__convert_to_v): Fix !__FLT_HAS_INFINITY__ case. · ffecec4d
      2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * config/locale/generic/c_locale.cc (__convert_to_v): Fix
              !__FLT_HAS_INFINITY__ case.
      
      From-SVN: r140823
      Andrew Pinski committed
    • tuple (tuple<>::swap): Implement swap for tuple as per DR 522 [Ready]. · 3e93b275
      2008-09-30  Chris Fairles  <cfairles@gcc.gnu.org>
      
              * include/std/tuple (tuple<>::swap): Implement swap for tuple as per
              DR 522 [Ready].
              * testsuite/20_util/tuple/swap.cc: New.
      
      From-SVN: r140822
      Chris Fairles committed
    • rs6000-c.c (altivec_resolve_overloaded_builtin): Handle ALTIVEC_BUILTIN_VEC_SPLATS... · 266b4890
      2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
              Handle ALTIVEC_BUILTIN_VEC_SPLATS, ALTIVEC_BUILTIN_VEC_PROMOTE,
              ALTIVEC_BUILTIN_VEC_EXTRACT, and ALTIVEC_BUILTIN_VEC_INSERT specially,
              they translate to non builtins.
              * config/rs6000/rs6000.c (altivec_init_builtins): Add new variable
              opaque_ftype_opaque.  Define builtins __builtin_vec_splats,
              __builtin_vec_promote, __builtin_vec_extract, and
              __builtin_vec_insert.
              * config/rs6000/rs6000.h (enum rs6000_builtins): Add
              ALTIVEC_BUILTIN_VEC_EXTRACT, ALTIVEC_BUILTIN_VEC_PROMOTE,
              ALTIVEC_BUILTIN_VEC_INSERT, and ALTIVEC_BUILTIN_VEC_SPLATS.
              * config/rs6000/altivec.h (vec_extract): Define
              (vec_insert): Define.
              (vec_splats): Define.
              (vec_promote): Define.
      
      2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * gcc.target/powerpc/altivec-cell-1.c: New test.
              * gcc.target/powerpc/altivec-cell-2.c: New test.
              * gcc.target/powerpc/altivec-cell-3.c: New test.
              * gcc.target/powerpc/altivec-cell-4.c: New test.
              * gcc.target/powerpc/altivec-cell-5.c: New test.
              * g++.dg/ext/altivec-cell-1.C: New test.
              * g++.dg/ext/altivec-cell-2.C: New test.
              * g++.dg/ext/altivec-cell-3.C: New test.
              * g++.dg/ext/altivec-cell-4.C: New test.
              * g++.dg/ext/altivec-cell-5.C: New test.
      
      2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * tree.c (lvalue_p_1): COMPOUND_LITERAL_EXPR is also an lvalue.
      
      From-SVN: r140821
      Andrew Pinski committed
    • rs6000-c.c (altivec_overloaded_builtins): Add Cell Altivec intrinsics. · 0b61703c
      2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
                  Yukishige Shibata <shibata@rd.scei.sony.co.jp>
                  Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
      
              * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add Cell
              Altivec intrinsics.
              * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Delete
              prototype.  Add new parameter, blk.
              Use BLKmode for the MEM if blk is true.
              (altivec_expand_builtin): Handle ALTIVEC_BUILTIN_STVLX,
              ALTIVEC_BUILTIN_STVLXL, ALTIVEC_BUILTIN_STVRX, and
              ALTIVEC_BUILTIN_STVRXL.
              Update usage of altivec_expand_lv_builtin.
              Handle ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL,
              ALTIVEC_BUILTIN_LVRX, and ALTIVEC_BUILTIN_LVRXL.
              (altivec_init_builtins): If compiling for the Cell, also define the
              cell VMX builtins.
              * config/rs6000/rs6000.h (rs6000_builtins): Define
              ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL, ALTIVEC_BUILTIN_LVRX,
              ALTIVEC_BUILTIN_LVRXL, ALTIVEC_BUILTIN_STVLX, ALTIVEC_BUILTIN_STVLXL,
              ALTIVEC_BUILTIN_STVRX, ALTIVEC_BUILTIN_STVRXL,
              ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_VEC_LVLXL,
              ALTIVEC_BUILTIN_VEC_LVRX, ALTIVEC_BUILTIN_VEC_LVRXL,
              ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_VEC_STVLXL,
              ALTIVEC_BUILTIN_VEC_STVRX, and ALTIVEC_BUILTIN_VEC_STVRXL.
              * config/rs6000/altivec.md (define_constants): Define UNSPEC_LVLX,
              UNSPEC_LVLXL, UNSPEC_LVRX, UNSPEC_LVRXL, UNSPEC_STVLX, UNSPEC_STVLXL,
              UNSPEC_STVRX, and UNSPEC_STVRXL.
              (altivec_lvlx): New pattern.
              (altivec_lvlxl): New pattern.
              (altivec_lvrx): New pattern.
              (altivec_lvrxl): New pattern.
              (altivec_stvlx): New pattern.
              (altivec_stvlxl): New pattern.
              (altivec_stvrx): New pattern.
              (altivec_stvrxl): New pattern.
              * config/rs6000/altivec.h (vec_lvlx): Define if PPU is defined.
              (vec_lvlxl): Likewise.
              (vec_lvrx): Define if PPU is defined.
              (vec_lvrxl): Likewise.
              (vec_stvlx): Define if PPU is defined.
              (vec_stvlxl): Likewise.
              (vec_stvrx): Define if PPU is defined.
              (vec_stvrxl): Likewise.
      
      2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * gcc.target/powerpc/altivec_check.h (altivec_cell_check): New function.
              * gcc.target/powerpc/altivec-cell-6.c: New test.
              * gcc.target/powerpc/altivec-cell-7.c: New test.
              * gcc.target/powerpc/altivec-cell-8.c: New test.
      
      From-SVN: r140820
      Andrew Pinski committed
    • tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR. · 522aa637
      * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
      
      From-SVN: r140819
      Geert Bosch committed
    • re PR tree-optimization/37617 (ICE on valid code) · c8ce33fa
      2008-10-01  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/37617
      	* tree-ssa-pre.c (create_expression_by_pieces): During FRE
      	do not add to the NEW_SETS.
      
      	* gcc.c-torture/compile/pr37617.c: New testcase.
      
      From-SVN: r140816
      Richard Guenther committed