1. 27 Apr, 2010 27 commits
    • CopyOnWriteArrayList.java: Fix for empty list. · 126bac7b
      2010-04-27  Andrew Haley  <aph@redhat.com>
      
              * java/util/concurrent/CopyOnWriteArrayList.java: Fix for empty
              list.
      
      From-SVN: r158790
      Andrew Haley committed
    • IppResponse.java (parseAttributes): Handle IppValueTag.UNKNOWN. · b6569686
      2010-04-27  Andrew Haley  <aph@redhat.com>
      
              * gnu/javax/print/ipp/IppResponse.java (parseAttributes): Handle
              IppValueTag.UNKNOWN.  
              * gnu/javax/print/ipp/IppRequest.java (writeOperationAttributes):
              Handle RequestedAttributes.
              * gnu/javax/print/ipp/IppPrintService.java (processResponse): Add
              DocFlavor.SERVICE_FORMATTED.PAGEABLE and
              DocFlavor.SERVICE_FORMATTED.PRINTABLE.
      
      From-SVN: r158789
      Andrew Haley committed
    • invoke.texi (-fipa-profile): Document. · e65bb9be
      
      	* doc/invoke.texi (-fipa-profile): Document.
      	* opts.c (decode_options): Enable ipa-profile at -O1.
      	* timevar.def (TV_IPA_PROFILE): Define.
      	* common.opt (fipa-profile): Add.
      	* cgraph.c (cgraph_clone_node): Set local flag and clear vtable method flag
      	for clones.
      	(cgraph_propagate_frequency): Handle only local ones.
      	* tree-pass.h (pass_ipa_profile): Declare.
      	* ipa-profile.c (gate_profile): Use flag_ipa_profile.
      	(pass_ipa_profile): Use TV_IPA_PROFILE.
      	* ipa.c (ipa_profile): New function.
      	(gate_ipa_profile): Likewise.
      	(pass_ipa_profile): New global variable.
      	* passes.c (pass_ipa_profile): New.
      
      From-SVN: r158788
      Jan Hubicka committed
    • configure.ac (--enable-gold): Support both, both/gold and both/bfd to add gold… · 38e3d868
      configure.ac (--enable-gold): Support both, both/gold and both/bfd to add gold to configdirs without removing ld.
      
              * configure.ac (--enable-gold): Support both, both/gold and
              both/bfd to add gold to configdirs without removing ld.
              * configure: Regenerated.
      
              * Makefile.def: Add install-gold dependency to install-ld.
              * Makefile.in: Regenerated.
      
      Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>
      
      From-SVN: r158786
      Roland McGrath committed
    • re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays]) · 0134416b
      2010-04-27  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/18918
              * gfortran.dg/coarray_12.f90: Fix dump parsing.
      
      From-SVN: r158785
      Tobias Burnus committed
    • 1.c (test01): Clarify size definition. · 99425265
      2010-04-27  Alexander Monakov  <amonakov@ispras.ru>
      
      	* testsuite/22_locale/codecvt/unshift/char/1.c (test01): Clarify size
      	definition.  Use memcpy and memcmp to avoid access beyond allocated
      	memory.
      
      From-SVN: r158780
      Alexander Monakov committed
    • gfc-internals.texi: Update copyright year. · ecb9d36f
      2010-04-27  Tobias Burnus  <burnus@net-b.de>
      
              * gfc-internals.texi: Update copyright year.
              * gfortran.texi: Ditto.
              * invoke.texi: Ditto.
      
      From-SVN: r158779
      Tobias Burnus committed
    • re PR c++/40561 (code does not compile -- compiles fine when replacing != with !(==)) · a79ccd14
      2010-04-27  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/40561
      	* g++.dg/other/pr40561.C: New testcase.
      
      From-SVN: r158778
      Richard Guenther committed
    • re PR middle-end/43812 (compiling .cc file with -fwhole-program results in ICE,… · 78eaf7bf
      re PR middle-end/43812 (compiling .cc file with -fwhole-program results in ICE, in ipcp_iterate_stage, at ipa-cp.c:760)
      
      2010-04-27  Martin Jambor  <mjambor@suse.cz>
      
      	PR middle-end/43812
      	* ipa.c (dissolve_same_comdat_group_list): New function.
      	(function_and_variable_visibility): Call
      	dissolve_same_comdat_group_list when comdat group contains external or
      	newly local nodes.
      	* cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
      	lists are circular and that they contain only DECL_ONE_ONLY nodes.
      
      	* testsuite/g++.dg/ipa/pr43812.C: New test.
      
      From-SVN: r158777
      Martin Jambor committed
    • varasm.c (decode_addr_const): Handle special case of INDIRECT_REF. · 5b56d3bb
      	* varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
      	(const_hash_1) <VECTOR_CST>: New case.
      	(compare_constant) <VECTOR_CST>: Likewise.
      	<ADDR_EXPR>: Deal with LABEL_REFs.
      	(copy_constant) <VECTOR_CST>: New case.
      
      From-SVN: r158776
      Eric Botcazou committed
    • cgraph.c (cgraph_propagate_frequency): New function. · fa5f5e27
      
      	* cgraph.c (cgraph_propagate_frequency): New function.
      	* cgraph.h (cgraph_propagate_frequency): Declare.
      	* ipa-inline.c (cgraph_clone_inlined_nodes): Call
      	cgraph_propagate_frequency.
      
      	* testsuite/gcc.dg/ipa/iinline-1.c (main): Rename to...
      	(test): ... this one.
      
      From-SVN: r158775
      Jan Hubicka committed
    • re PR target/40657 (allocate local variables with fewer instructions) · cb751cbd
      	PR target/40657
      	* config/arm/arm.c (thumb1_extra_regs_pushed): New function.
      	(thumb1_expand_prologue, thumb1_output_function_prologue): Call it
      	here to determine which regs to push and how much stack to reserve.
      
      	PR target/40657
      	* gcc.target/arm/thumb-stackframe.c: New test.
      
      From-SVN: r158771
      Bernd Schmidt committed
    • gimple.texi (gimple_statement_with_ops): Remove addresses_taken field. · a5027830
      	* doc/gimple.texi (gimple_statement_with_ops): Remove
      	addresses_taken field.
      	(gimple_statement_with_memory_ops): Likewise.
      
      From-SVN: r158770
      Jie Zhang committed
    • pr32207.c: Fix typo in expected warning messages. · 0ed3cde2
              * gcc.dg/pr32207.c: Fix typo in expected warning messages.
              * gcc.dg/misc-column.c: Likewise.
              * gcc.dg/Walways-true-1.c: Likewise.
              * gcc.dg/Walways-true-2.c: Likewise.
              * gcc.dg/warn-addr-cmp.c: Likewise.
      
      From-SVN: r158769
      Shujing Zhao committed
    • 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 13 commits