1. 28 May, 2009 12 commits
    • tree-ssa-copy.c (replace_exp_1): Move op for warning-free use with checking disabled. · 554223b6
      2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
      
              * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
              with checking disabled.
      
      From-SVN: r147952
      Benjamin Kosnik committed
    • Fix for PR c++/PR39754 · cd41d410
      gcc/cp/ChangeLog:
          PR c++/39754
          * cp-tree.h (canonical_type_variant): Remove this function declaration.
          (strip_typedefs): New function declaration.
          * tree.c (strip_typedefs): New function definition.
          (canonical_type_variant): Remove function definition.
          * cvt.c (convert_from_reference): No need to use
          canonical_type_variant.
          * typeck.c (cp_build_indirect_ref): Likewise.
          * error.c (dump_template_bindings): Use strip_typedefs instead of
          canonical_type_variant.
          * pt.c (convert_template_argument, unify): Likewise.
          * mangle.c (canonicalize_for_substitution): Don't use
          canonical_type_variant.
      
      gcc/testsuite/ChangeLog:
          PR c++/39754
          * g++.dg/template/canon-type-1.C: New test.
          * g++.dg/template/canon-type-2.C: Likewise.
          * g++.dg/template/canon-type-3.C: Likewise.
          * g++.dg/template/canon-type-4.C: Likewise.
          * g++.dg/template/canon-type-5.C: Likewise.
          * g++.dg/template/canon-type-6.C: Likewise.
          * g++.dg/template/canon-type-7.C: Likewise.
      
      From-SVN: r147951
      Dodji Seketeli committed
    • re PR target/37216 ([cygming] Invalid alignment for SSE store to .comm data generated with -O3) · 233215fe
      gcc/ChangeLog:
      
      2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR target/37216
      
      	* configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
      	macro definition for support of three-operand format aligned
      	.comm directive in assembler on cygwin/pe/mingw target OS.
      	* configure:  Regenerate.
      	* config.in:  Regenerate.
      
      	* config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
      	aligned form of .comm directive if -mpe-aligned-commons is in effect.
      	* config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
      
      	* doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
      	* doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
      
      gcc/testsuite/ChangeLog:
      
      2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
                  Uros Bizjak  <ubizjak@gmail.com>
                  Danny Smith  <dansmister@gmail.com>
      
      	PR target/37216
      
      	* lib/target-supports.exp (check_effective_target_pe_aligned_commons):
      	New function.
      	* gcc.target/i386/pr37216.c:  New test source file.
      	* gcc.dg/compat/struct-layout-1_generate.c (dg_options[]):  No longer
      	use -fno-common for testing Cygwin and MinGW targets.
      
      
      
      Co-Authored-By: Danny Smith <dansmister@gmail.com>
      Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
      
      From-SVN: r147950
      Dave Korn committed
    • packed6.C (size_t): Use __extension__ and __SIZE_TYPE__. · b10ca522
      2009-05-28  Kai Tietz  <kai.tietz@onevision.com>
      
      	*  g++.dg/ext/packed6.C (size_t): Use __extension__ and
      	__SIZE_TYPE__.
      	* g++.dg/opt/memcpy1.C (size_t): Likewise.
      	* g++.dg/pr37742.C (size_t): Likewise.
      	* g++.dg/torture/pr34850.C (size_t): Likewise.
      	* g++.dg/torture/20070621-1.C (ptrdiff_t): Use __extension__ and
      	_PTRDIFF_TYPE__.
      	* g++.dg/torture/pr34222.C (ptrdiff_t): Likewise.
      	* g++.dg/tree-ssa/pr22444.C (ptrdiff_t): Likewise.
      	(size_t): Use __extension__ and __SIZE_TYPE__.
      
      From-SVN: r147949
      Kai Tietz committed
    • 20000211-1.c (size_t): Typedef size_t via __SIZE_TYPE__. · 52c97635
      2009-05-28  Kai Tietz  <kai.tietz@onevision.com>
      
              * gcc.c-torture/compile/20000211-1.c (size_t): Typedef size_t via
      	__SIZE_TYPE__.
              * gcc.c-torture/compile/20010328-1.c (size_t): Likewise,
              * gcc.c-torture/compile/20030320-1.c (size_t): Likewise,
              * gcc.c-torture/compile/20030405-1.c (size_t): Likewise,
              * gcc.c-torture/compile/20030902-1.c (size_t): Likewise,
              * gcc.c-torture/compile/20060202-1.c (size_t): Likewise,
              * gcc.c-torture/compile/20080613-1.c (size_t): Likewise,
              * gcc.c-torture/compile/920428-2.c (size_t): Likewise,
              * gcc.c-torture/compile/980329-1.c (size_t): Likewise,
              * gcc.c-torture/compile/980816-1.c (size_t): Likewise,
              * gcc.c-torture/compile/pr32584.c (size_t): Likewise,
              * (__ssize_t): Likewise.
              * gcc.c-torture/compile/pr33173.c (size_t): Likewise,
              * gcc.c-torture/compile/pr33382.c (size_t): Likewise,
              * gcc.c-torture/compile/pr34334.c (size_t): Likewise,
              * gcc.c-torture/compile/pr34688.c (size_t): Likewise,
              * gcc.c-torture/compile/pr35043.c (size_t): Likewise,
              * gcc.c-torture/compile/pr37669.c (size_t): Likewise,
              * gcc.dg/20050629-1.c (size_t): Typedef size_t via __SIZE_TYPE__.
              * gcc.dg/pr33667.c (size_t): Likewise.
              * gcc.dg/prefetch-loop-arrays-1.c (size_t): Likewise.
              * gcc.dg/torture/pr39204.c (size_t): Likewise.
              * gcc.dg/tree-ssa/20041122-1.c (size_t): Likewise.
              * gcc.dg/tree-ssa/pr36908.c (size_t): Likewise.
              * gcc.dg/tree-ssa/pr38250.c (size_t): Likewise.
              * gcc.dg/tree-ssa/ssa-dse-10.c (size_t): Likewise.
      
      From-SVN: r147947
      Kai Tietz committed
    • re PR tree-optimization/40254 (SPEC2006 403.gcc miscompares) · 24adb18f
      
      	PR tree-optimization/40254
      	* tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
      	in analysis of basic blocks.
      
      From-SVN: r147945
      Ira Rosen committed
    • re PR middle-end/33699 (missing optimization on const addr area store) · 2c5bfdf7
      	PR middle-end/33699
      	* target.h (struct gcc_target): Fix indentation.  Add
      	const_anchor.
      	* target-def.h (TARGET_CONST_ANCHOR): New macro.
      	(TARGET_INITIALIZER): Use it.
      	* cse.c (CHEAPER): Move it up to the other macros.
      	(insert): Rename this ...
      	(insert_with_costs): ... to this.  Add cost parameters.  Update
      	function comment.
      	(insert): New function.  Call insert_with_costs.
      	(compute_const_anchors, insert_const_anchor, insert_const_anchors,
      	find_reg_offset_for_const, try_const_anchors): New functions.
      	(cse_insn): Call try_const_anchors.  Adjust cost of src_related
      	when using a const-anchor.  Call insert_const_anchors.
      	* config/mips/mips.c (mips_set_mips16_mode): Set
      	targetm.const_anchor.
      	* doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
      
      testsuite/
      	* gcc.target/mips/const-anchor-1.c: New test.
      	* gcc.target/mips/const-anchor-2.c: New test.
      
      From-SVN: r147944
      Adam Nemet committed
    • Fix typo in ChangeLog entry date. · 51fb7760
      From-SVN: r147943
      Olivier Hainque committed
    • tree-inline.c (remap_decls): Enable nonlocalized variables when not optimizing. · 9e6aced0
      * tree-inline.c (remap_decls): Enable nonlocalized variables
      when not optimizing.
      
      From-SVN: r147941
      Alexandre Oliva committed
    • tree-ssa-live.c (remove_unused_locals): Skip when not optimizing. · 89fbbe4e
      * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
      Simplify other tests involving optimize.
      
      From-SVN: r147939
      Alexandre Oliva committed
    • Daily bump. · c0ba7737
      From-SVN: r147938
      GCC Administrator committed
    • testsuite_allocator.h (check_new, [...]): Move to ... · daa15929
      2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* testsuite/util/testsuite_allocator.h (check_new, check_delete): Move
      	to ...
      	* testsuite/util/replacement_memory_operators.h: ...here. New.
      	* testsuite/util/testsuite_hooks.h (counter): To object_counter.
      	* testsuite/util/testsuite_hooks.cc: Same.
      
      	* testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Use
      	replacement_memory_operators.h.
      	* testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
      	* testsuite/ext/mt_allocator/check_delete.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_local-6.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_local-8.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
      	* testsuite/ext/mt_allocator/check_new.cc: Same.
      	* testsuite/ext/debug_allocator/check_delete.cc: Same.
      	* testsuite/ext/debug_allocator/check_new.cc: Same.
      	* testsuite/ext/new_allocator/deallocate_global.cc: Same.
      	* testsuite/ext/new_allocator/check_delete.cc: Same.
      	* testsuite/ext/new_allocator/check_new.cc: Same.
      	* testsuite/ext/new_allocator/deallocate_local.cc: Same.
      	* testsuite/ext/throw_allocator/deallocate_global.cc: Same.
      	* testsuite/ext/throw_allocator/check_delete.cc: Same.
      	* testsuite/ext/throw_allocator/check_new.cc: Same.
      	* testsuite/ext/throw_allocator/deallocate_local.cc: Same.
      	* testsuite/ext/malloc_allocator/deallocate_global.cc: Same.
      	* testsuite/ext/malloc_allocator/check_delete.cc: Same.
      	* testsuite/ext/malloc_allocator/check_new.cc: Same.
      	* testsuite/ext/malloc_allocator/deallocate_local.cc: Same.
      	* testsuite/ext/pool_allocator/check_delete.cc: Same.
      	* testsuite/ext/pool_allocator/check_new.cc: Same.
      	* testsuite/ext/bitmap_allocator/check_delete.cc: Same.
      	* testsuite/ext/bitmap_allocator/check_new.cc: Same.
      	* testsuite/ext/array_allocator/check_delete.cc: Same.
      	* testsuite/ext/array_allocator/check_new.cc: Same.
      	* testsuite/23_containers/deque/cons/1.cc: Same.
      	* testsuite/23_containers/deque/cons/2.cc: Same.
      
      From-SVN: r147937
      Benjamin Kosnik committed
  2. 27 May, 2009 26 commits
  3. 26 May, 2009 2 commits
    • re PR fortran/39178 (Generate main() rather than using a main in libgfortran/fmain.c) · 092231a8
      fortran/
      2009-05-26  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/39178
              * gfortranspec.c (lang_specific_driver): Stop linking
              libgfortranbegin.
              * trans-decl.c (gfc_build_builtin_function_decls): Stop
              making MAIN__ publicly visible.
              (gfc_build_builtin_function_decls): Add
              gfor_fndecl_set_args.
              (create_main_function) New function.
              (gfc_generate_function_code): Use it.
      
      libgfortran/
      2009-05-26  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/39178
              * runtime/main.c (store_exe_path): Make static
              and multiple-times callable.
              (set_args): Call store_exe_path.
              * libgfortran.h: Remove store_exe_path prototype.
              * fmain.c (main): Remove store_exe_path call.
      
      From-SVN: r147883
      Tobias Burnus committed
    • re PR fortran/40246 (ICE on invalid SOURCE= using NULLIFY) · 9a0bab0b
      2009-05-26  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/40246
              * match.c (gfc_match_nullify): NULLify freed pointer.
      
      2009-05-26  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/40246
              * gfortran.dg/nullify_4.f90: New test.
      
      From-SVN: r147879
      Tobias Burnus committed