1. 05 Oct, 2008 6 commits
    • 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
  2. 04 Oct, 2008 5 commits
  3. 03 Oct, 2008 9 commits
  4. 02 Oct, 2008 9 commits
  5. 01 Oct, 2008 11 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
    • re PR middle-end/37285 (ICE while building binutils on ppc) · 256f88c6
      2008-10-01  Richard Guenther  <rguenther@suse.de>
      
              PR middle-end/37285
              * tree-vrp.c (execute_vrp): If we optimized away the default
              case make sure to promote the label that got in place of it
              to a default case label.
      
              * gcc.c-torture/compile/pr37285.c: New testcase.
      
      From-SVN: r140814
      Richard Guenther committed
    • re PR tree-optimization/35737 (ICE with __builtin_setjmp and complex variable) · 35a45bd4
              PR tree-opt/35737
              * tree-complex.c (set_component_ssa_name): Don't optimize
              is_gimple_min_invariant values with ssa_names in abnormal phis.
      
      From-SVN: r140812
      Richard Henderson committed
    • re PR c++/37683 (Revision 140780 caused g++.dg/warn/Wparentheses-3.C) · 2d66eeeb
      2008-09-30  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR c++/37683
      	* parser.c (cp_parser_selection_statement): Fix uninitialized
      	variable.
      
      From-SVN: r140810
      H.J. Lu committed
    • re PR tree-optimization/37662 (ice: tree check: expected ssa_name, have… · 001003c2
      re PR tree-optimization/37662 (ice: tree check: expected ssa_name, have integer_cst in get_value_range, at tree-vrp.c:612)
      
      2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR tree-optimization/37662
      	* tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
      	commutative binary operation if they are in the wrong order and
      	fold_build2 produces non-GIMPLE.
      
      From-SVN: r140809
      Paolo Bonzini committed