1. 27 Apr, 2010 11 commits
    • re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays]) · f33beee9
      2010-04-27  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/18918
              * resolve.c (resolve_allocate_expr): Allow array coarrays.
              * trans-types.h (gfc_get_array_type_bounds): Update prototype.
              * trans-types.c (gfc_get_array_type_bounds,
              gfc_get_array_descriptor_base): Add corank argument.
              * trans-array.c (gfc_array_init_size): Handle corank.
              (gfc_trans_create_temp_array, gfc_array_allocate,
              gfc_conv_expr_descriptor): Add corank argument to call.
              * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Ditto.
      
      2010-04-27  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/18918
              * gfortran.dg/coarray_7.f90: Modified and removed obsolete
              tests.
              * gfortran.dg/coarray_12.f90: New.
      
      From-SVN: r158768
      Tobias Burnus committed
    • tree-inline.c (eni_inlining_weights): Remove. · d89488ec
      	* tree-inline.c (eni_inlining_weights): Remove.
      	(estimate_num_insns): Special case more builtins.
      
      From-SVN: r158766
      Jan Hubicka committed
    • re PR c/32207 (missing warnings about address of 'x'.) · 637f1455
      gcc/
      2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
      
              PR c/32207
              * c-typeck.c (build_binary_op): Move forward check for comparison
              pointer with null pointer constant and adjust the diagnostic message.
      
      gcc/testsuite/
      2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
      
              PR c/32207
              * gcc.dg/pr32207.c: New test.
              * gcc.dg/misc-column.c: Adjust expected warning.
              * gcc.dg/Walways-true-1.c: Likewise.
              * gcc.dg/Walways-true-2.c: Likewise.
              * gcc.dg/warn-addr-cmp.c: Likewise.
      
      From-SVN: r158765
      Shujing Zhao committed
    • Missing changelog from last commit! · f0423078
      ChangeLog:
      
      2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR lto/42776
      	* configure.ac (--enable-lto): Refactor handling so libelf tests
      	are only performed inside then-clause of ACX_ELF_TARGET_IFELSE,
      	and allow LTO to be explicitly enabled on non-ELF platforms that
      	are known to support it inside else-clause.
      	* configure: Regenerate.
      
      gcc/ChangeLog
      
      
      2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR lto/42776
      	* configure.ac (gcc_cv_as_section_has_align): Set if installed
      	binutils supports extended .section directive needed by LTO, or
      	warn if older binutils found.
      	(LTO_BINARY_READER): New AC_SUBST'd variable.
      	(LTO_USE_LIBELF): Likewise.
      	* gcc/config.gcc (lto_binary_reader): New target-specific configure
      	variable.
      	* gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
      	(LTO_USE_LIBELF): Likewise.
      	* configure: Regenerate.
      
      	* collect2.c (is_elf): Rename from this ...
      	(is_elf_or_coff): ... to this, and recognize and allow i386 COFF
      	 object files in addition to ELF-formatted ones.
      	(scan_prog_file): Caller updated.  Also allow for LTO info marker
      	symbol to be prefixed or not by an extra underscore.
      
      	* config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
      	* config/i386/winnt.c: Also #include lto-streamer.h
      	(i386_pe_asm_named_section): Specify 1-byte section alignment for
      	LTO named sections.
      	(i386_pe_asm_output_aligned_decl_common): Add comment.
      	(i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
      
      From-SVN: r158764
      Dave Korn committed
    • Missing file from last commit! · 9a02962b
      ChangeLog:
      
      2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR lto/42776
      	* configure.ac (--enable-lto): Refactor handling so libelf tests
      	are only performed inside then-clause of ACX_ELF_TARGET_IFELSE,
      	and allow LTO to be explicitly enabled on non-ELF platforms that
      	are known to support it inside else-clause.
      	* configure: Regenerate.
      
      From-SVN: r158763
      Dave Korn committed
    • re PR lto/42776 (LTO doesn't work on non-ELF platforms.) · 3bec79c5
      ChangeLog:
      
      	PR lto/42776
      	* configure.ac (--enable-lto): Refactor handling so libelf tests
      	are only performed inside then-clause of ACX_ELF_TARGET_IFELSE,
      	and allow LTO to be explicitly enabled on non-ELF platforms that
      	are known to support it inside else-clause.
      	* configure: Regenerate.
      
      gcc/ChangeLog:
      
      	PR lto/42776
      	* configure.ac (gcc_cv_as_section_has_align): Set if installed
      	binutils supports extended .section directive needed by LTO, or
      	warn if older binutils found.
      	(LTO_BINARY_READER): New AC_SUBST'd variable.
      	(LTO_USE_LIBELF): Likewise.
      	* gcc/config.gcc (lto_binary_reader): New target-specific configure
      	variable.
      	* gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
      	(LTO_USE_LIBELF): Likewise.
      	* configure: Regenerate.
      
      	* collect2.c (is_elf): Rename from this ...
      	(is_elf_or_coff): ... to this, and recognize and allow i386 COFF
      	 object files in addition to ELF-formatted ones.
      	(scan_prog_file): Caller updated.  Also allow for LTO info marker
      	symbol to be prefixed or not by an extra underscore.
      
      	* config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
      	* config/i386/winnt.c: Also #include lto-streamer.h
      	(i386_pe_asm_named_section): Specify 1-byte section alignment for
      	LTO named sections.
      	(i386_pe_asm_output_aligned_decl_common): Add comment.
      	(i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
      
      gcc/lto/ChangeLog:
      
      	PR lto/42776
      	* Make-lang.in (LTO_OBJS): Use LTO_BINARY_READER instead of
      	hardcoding 'lto-elf.o'.
      	($(LTO_EXE)): Use LTO_USE_LIBELF instead of hardcoding '-lelf'.
      
      	* lto-coff.h: New file.
      	* lto-coff.c: Likewise.
      
      gcc/testsuite/ChangeLog:
      
      	PR lto/42776
      	* lib/lto.exp (lto_prune_vis_warns): New function.
      	(lto-link-and-maybe-run): Call it.
      
      From-SVN: r158762
      Dave Korn committed
    • re PR target/43889 (mmix-knuth-mmixware gcc.c-torture/execute/arith-rand.c -O3… · 45c384e3
      re PR target/43889 (mmix-knuth-mmixware gcc.c-torture/execute/arith-rand.c -O3 -fomit-frame-pointer -funroll-loops)
      
      	PR target/43889
      	* config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
      	Add missing earlyclobber for second alternative.
      
      From-SVN: r158760
      Hans-Peter Nilsson committed
    • mmix.md ("*divdi3_nonknuth", [...]): Add missing earlyclobber for second alternative. · 68e87fc9
      	* config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
      	Add missing earlyclobber for second alternative.
      
      From-SVN: r158759
      Hans-Peter Nilsson committed
    • Add a run-time testcase for PR tree-optimization/43904. · 6a07739d
      2010-04-26  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR tree-optimization/43904
      	* gcc.dg/tree-ssa/tailcall-6.c: New.
      
      From-SVN: r158757
      H.J. Lu committed
    • Daily bump. · f4213ac4
      From-SVN: r158756
      GCC Administrator committed
    • re PR objc/35165 (Massive failures of objc on i686-apple-darwin9) · 504d14c9
      2010-04-26  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
      
      	PR testsuite/35165
      	* obj-c++.dg/stubify-2.mm: Restrict to ilp32 targets.  Require
      	Darwin8/OSX10.4 - compatible code generation.
      	Use scan-rtl-dump.
      	* obj-c++.dg/stubify-1.mm: Ditto.
      	* lib/objc-torture.exp: Do not require link success for
      	"trivial.m" in the runtime checks when dowhat = 'compile'.
      	* lib/dg-pch.exp: (dg-flags-pch): New Proc.
      	* objc.dg/stubify-1.m:  Restrict to ilp32 targets.  Require
      	Darwin8/OSX10.4 - compatible code generation.
      	* objc.dg/stubify-2.m: Ditto.
      	* objc.dg/symtab-1.m: Match '.quad' for m64 code.
      	* objc.dg/next-runtime-1.m: Ditto.
      	* objc.dg/stret-2.m: Restrict to ilp32 targets.
      	* objc.dg/pch/pch.exp: Apply tests to both Gnu and NeXT
      	runtimes on Darwin.
      
      From-SVN: r158752
      Iain Sandoe committed
  2. 26 Apr, 2010 23 commits
  3. 25 Apr, 2010 6 commits
    • status_cxx200x.xml: Update Threads status. · eba3a8cf
      2010-04-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	* doc/xml/manual/status_cxx200x.xml: Update Threads status.
      	* doc/html/manual/status.html: Regenerate.
      
      From-SVN: r158713
      Jonathan Wakely committed
    • Reformat. · 78ba4ec5
      From-SVN: r158712
      H.J. Lu committed
    • c-common.c (flag_isoc1x): New. · 2778d766
      gcc:
      	* c-common.c (flag_isoc1x): New.
      	(flag_isoc99): Update comment.
      	* c-common.h (flag_isoc1x): New.
      	(flag_isoc99): Update comment.
      	* c-cppbuiltin.c (builtin_define_float_constants): Also define
      	__<type>_DECIMAL_DIG__.
      	* c-opts.c (set_std_c1x): New.
      	(c_common_handle_option): Handle -std=c1x and -std=gnu1x.
      	(set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
      	* c.opt (-std=c1x, -std=gnu1x): New options.
      	* doc/cpp.texi: Mention -std=c1x.
      	* doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
      	* doc/extend.texi: Mention -std=c1x and -std=gnu1x.
      	* doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
      	* doc/standards.texi: Mention C1X.
      	* ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
      	LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
      	LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
      	Define for C1X.
      
      gcc/testsuite:
      	* gcc.dg/c90-float-1.c: Also test that C1X macros are not defined.
      	* gcc.dg/c99-float-1.c: Also test that C1X macros are not defined.
      	* gcc.dg/c1x-float-1.c: New test.
      
      libcpp:
      	* include/cpplib.h (enum c_lang): Add CLK_GNUC1X and CLK_STDC1X.
      	* init.c (lang_defaults): Add entries for new language variants.
      	(cpp_init_builtins): Define __STDC_VERSION__ to 201000L for C1X
      	variants.
      
      From-SVN: r158711
      Joseph Myers committed
    • Scan "lea\[lq\]?\[ \t\]" instead of "lea\[ \t\]". · 045d4002
      2010-04-25  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* gcc.target/i386/pr43766.c: Scan "lea\[lq\]?\[ \t\]" instead
      	of "lea\[ \t\]".
      
      From-SVN: r158710
      H.J. Lu committed
    • default_format_denormal_2.f90: Remove XFAIL for FreeBSD. · d64ad42b
      2010-04-25  Steven G. Kargl  <kargl@gcc.gnu.org>
      
         * gfortran.dg/default_format_denormal_2.f90: Remove XFAIL for FreeBSD.
         * gfortran.dg/default_format_denormal_1.f90: ditto
         * gfortran.dg/default_format_2.f90: ditto
      
      From-SVN: r158709
      Steven G. Kargl committed
    • pr43505.f90: Clean up .mod file. · 211b0440
      2010-04-25  Steven G. Kargl  <kargl@gcc.gnu.org>
       
      	 *gfortran.dg/pr43505.f90: Clean up .mod file.
      	 *gfortran.dg/host_assoc_blockdata_1.f90
      	 *gfortran.dg/pr41347.f90
      	 *gfortran.dg/internal_pack_4.f90
      	 *gfortran.dg/proc_decl_23.f90
      	 *gfortran.dg/recursive_check_3.f90
      	 *gfortran.dg/intent_out_3.f90
      	 *gfortran.dg/assignment_2.f90
      	 *gfortran.dg/pr41928.f90
      	 *gfortran.dg/pr42166.f90
      	 *gfortran.dg/private_type_12.f90
      	 *gfortran.dg/graphite/pr42185.f90
      	 *gfortran.dg/graphite/pr42186.f90
      	 *gfortran.dg/graphite/pr40982.f90
      	 *gfortran.dg/graphite/id-2.f90
      	 *gfortran.dg/graphite/id-4.f90
      	 *gfortran.dg/graphite/pr42050.f90
      	 *gfortran.dg/graphite/id-18.f90
      	 *gfortran.dg/graphite/pr42393-1.f90
      	 *gfortran.dg/graphite/pr41924.f90
      	 *gfortran.dg/graphite/pr42393.f90
      	 *gfortran.dg/graphite/pr37980.f90
      	 *gfortran.dg/graphite/pr38953.f90
      	 *gfortran.dg/graphite/pr42180.f90
      	 *gfortran.dg/graphite/pr42181.f90
      	 *gfortran.dg/where_operator_assign_4.f90
      	 *gfortran.dg/select_type_4.f90
      	 *gfortran.dg/redefined_intrinsic_assignment.f90
      	 *gfortran.dg/host_assoc_blockdata_2.f90
      	 *gfortran.dg/lto/pr40725_0.f03
      	 *gfortran.dg/elemental_args_check_2.f90
      	 *gfortran.dg/whole_file_11.f90
      	 *gfortran.dg/private_type_11.f90
      	 *gfortran.dg/vect/vect-gems.f90
      	 *gfortran.dg/vect/fast-math-real8-pr40801.f90
      
      From-SVN: r158708
      Steven G. Kargl committed