1. 28 Jan, 2015 18 commits
  2. 27 Jan, 2015 22 commits
    • re PR c++/58597 (ICE with lambda in default argument of template function) · 2cc7f90b
      	PR c++/58597
      	* lambda.c (maybe_add_lambda_conv_op): Check cfun rather than
      	current_function_decl.
      
      From-SVN: r220192
      Jason Merrill committed
    • toplev: gcc version information for jit · 53c04ec9
      gcc/ChangeLog:
      	* toplev.c (print_version): Add param "show_global_state", and
      	only print GGC and plugin information if it is true.
      	(init_asm_output): Pass in "true" for the new param when calling
      	print_version.
      	(process_options): Likewise.
      	(toplev::main): Likewise.
      	* toplev.h (print_version): Add new param to decl.
      
      gcc/jit/ChangeLog:
      	* docs/internals/test-hello-world.exe.log.txt: Add example version
      	lines.
      	* jit-common.h (gcc::jit::dump::get_file): New accessor.
      	* jit-logging.c: Include toplev.h.
      	(gcc::jit::logger::logger): Log the GCC version.
      	* jit-recording.c: Include toplev.h.
      	(gcc:jit::recording::context::dump_reproducer_to_file): Log the
      	GCC version.
      
      From-SVN: r220190
      David Malcolm committed
    • re PR fortran/63861 (OpenACC coarray ICE (also with OpenMP?)) · 710700ab
      2015-01-27  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/63861
      gcc/fortran/
              * trans-openmp.c (gfc_has_alloc_comps, gfc_trans_omp_clauses):
              Fix handling for scalar coarrays.
              * trans-types.c (gfc_get_element_type): Add comment.
      gcc/testsuite/
              * gfortran.dg/goacc/coarray_2.f90: New.
      
      From-SVN: r220189
      Tobias Burnus committed
    • re PR ipa/60871 (internal compiler error: in possible_polymorphic_call_targets,… · e23f2892
      re PR ipa/60871 (internal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:1510)
      
      
      	PR ipa/60871
      	PR ipa/64139
      	* tree.c (lookup_binfo_at_offset): New function.
      	(get_binfo_at_offset): Use it.
      
      	* g++.dg/torture/pr64139.C: New testcase.
      	* g++.dg/torture/pr60871.C: Likewise.
      
      From-SVN: r220185
      Jan Hubicka committed
    • re PR c++/63889 (Ice with redundant static in class scope constexpr variable template.) · 94e54b8d
      	PR c++/63889
      	* pt.c (finish_template_variable): Move from semantics.c.
      	Handle multiple template arg levels.  Handle coercion here.
      	(lookup_template_variable): Not here.
      
      From-SVN: r220183
      Jason Merrill committed
    • re PR fortran/64771 (ICE(segfault) when passing coarrays around; ICE in… · 47da0bf6
      re PR fortran/64771 (ICE(segfault) when passing coarrays around; ICE in gfc_zero_size_array in arith.c:1637)
      
      2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
      
              PR fortran/64771
              * interface.c: Remove <algorithm>.
              (check_dummy_characteristics): Use MAX instead of std::max.
      
      From-SVN: r220182
      Rainer Orth committed
    • re PR fortran/64230 (Invalid memory reference in a compiler-generated finalizer… · 6e17947e
      re PR fortran/64230 (Invalid memory reference in a compiler-generated finalizer for allocatable component)
      
      2015-01-27  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/64230
      	* gfortran.dg/class_allocate_18.f90: Remove -fsanitize option to
      	prevent linking errors.
      
      From-SVN: r220181
      Janus Weil committed
    • Fix build under cygwin/64. · 7e8338d8
      2015-01-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              Fix build under cygwin/64.
              * adaint.h: Add check for __CYGWIN__.
              * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
      
      From-SVN: r220180
      Bernd Edlinger committed
    • re PR ipa/64282 (ICE in gimple_get_virt_method_for_vtable, at gimple-fold.c:5635) · b833dedd
      
      	PR ipa/64282
      	* gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
      	on vtable being vtable.
      	* g++.dg/torture/pr64282.C: New testcase.
      
      From-SVN: r220177
      Jan Hubicka committed
    • [AArch64][test] Fix FAIL: gcc.target/aarch64/store-pair-1.c scan-assembler stp\tw[0-9]+, w[0-9]+ · e24ca886
      	* gcc.target/aarch64/store-pair-1.c: Update scan-assembler to check
      	for wzr reg.
      
      From-SVN: r220176
      Kyrylo Tkachov committed
    • sendmsg.c: Add prototypes for __objc_get_forward_imp and get_imp. · 67caf538
      2015-01-27  Matthias Klose  <doko@ubuntu.com>
      
              * sendmsg.c: Add prototypes for __objc_get_forward_imp and get_imp.
      
      From-SVN: r220175
      Matthias Klose committed
    • Add myself to maintaners. · 82a94471
      /
      	* MAINTAINERS (Write After Approval): Add myself.
      
      From-SVN: r220172
      Robert Suchanek committed
    • extend.texi: s/390: Update documentation of hotpatch attribute. · 94091f43
      2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
      
              * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
              * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
              -mhotpatch= option.
              * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
              -mno-hotpatch options.  Change syntax of -mhotpatch= option.
              * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
              Renamed.
              (s390_hotpatch_trampoline_halfwords_max): Renamed.
              (s390_hotpatch_hw_max): New name.
              (s390_hotpatch_trampoline_halfwords): Renamed.
              (s390_hotpatch_hw_before_label): New name.
              (get_hotpatch_attribute): Removed.
              (s390_hotpatch_hw_after_label): New name.
              (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
              attribute.
              (s390_attribute_table): Ditto.
              (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
              (s390_function_num_hotpatch_hw): New name.
              Remove special handling of inline functions and hotpatching.
              Return number of nops before and after the function label.
              (s390_can_inline_p): Removed.
              (s390_asm_output_function_label): Emit a configurable number of nops
              after the function label.
              (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
              (TARGET_CAN_INLINE_P) Removed.
              (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
      
      2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
      
      	* gcc/testsuite/gcc.target/s390/hotpatch-13.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-14.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-15.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-16.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-17.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-18.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-19.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-20.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-10.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-11.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-12.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-13.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-14.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-15.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-16.c: New testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-9.c: New
      	testcase.
      	* gcc/testsuite/gcc.target/s390/hotpatch-1.c: Testcase adjusted to
      	new -mhotpatch.
      	* gcc/testsuite/gcc.target/s390/hotpatch-10.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-11.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-12.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-2.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-3.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-4.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-5.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-6.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-7.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-8.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-9.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-1.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-2.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-3.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-4.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-5.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-6.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-7.c: Likewise.
      	* gcc/testsuite/gcc.target/s390/hotpatch-compile-8.c: Likewise.
      
      From-SVN: r220171
      Dominik Vogt committed
    • [AArch64] Improve bit-test-branch pattern to avoid unnecessary register clobber · 096e8448
      2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
                  Jiong Wang  <jiong.wang@arm.com>
      
        gcc/
          * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead of
          scratch reg.
          (cb<optab><mode>1): Likewise.
          * config/aarch64/iterators.md (bcond): New define_code_attr.
      
        gcc/testsuite/
          * gcc.dg/long_branch.c: New testcase.
      
      From-SVN: r220170
      Jiong Wang committed
    • s390.c (s390_memory_move_cost): Increase costs for memory accesses. · fb1a3f8f
      2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	* config/s390/s390.c (s390_memory_move_cost): Increase costs for
      	memory accesses.
      
      From-SVN: r220169
      Andreas Krebbel committed
    • s390.c (s390_register_move_cost): Increase costs for FPR->GPR moves. · f954fb25
      2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	* config/s390/s390.c (s390_register_move_cost): Increase costs for
      	FPR->GPR moves.
      
      From-SVN: r220168
      Andreas Krebbel committed
    • configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC. · 94213c10
      2015-01-26  Matthias Klose  <doko@ubuntu.com>
      
              * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
              * configure: Regenerate.
      
      From-SVN: r220165
      Matthias Klose committed
    • tree-vrp.c (update_value_range): Intersect the range with old recorded SSA name range information. · 755359b7
      2015-01-27  Richard Biener  <rguenther@suse.de>
      
      	* tree-vrp.c (update_value_range): Intersect the range with
      	old recorded SSA name range information.
      
      From-SVN: r220164
      Richard Biener committed
    • rl78.c (rl78_expand_prologue): In G10 mode push the BC, DE and HL registers directly, not via AX. · eb42aba9
      	* config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
      	BC, DE and HL registers directly, not via AX.
      	When decrementing the stack pointer by a large amount, transfer SP
      	into AX and perform the subtraction there.
      	(rl78_expand_epilogue): Perform the inverse of the above
      	enhancements.
      
      From-SVN: r220163
      Nick Clifton committed
    • cmpsi2.S: Use function start and end macros. · 8410904a
      	* config/rl78/cmpsi2.S: Use function start and end macros.
      	(__gcc_bcmp): New function.
      	* config/rl78/lshrsi3.S: Use function start and end macros.
      	* config/rl78/mulsi3.S: Add support for G10.
      	(__mulqi3): New function for G10.
      	* config/rl78/signbit.S: Use function start and end macros.
      	* config/rl78/t-rl78 (LIB2ADD): Add bit-count.S, fpbit-sf.S and
      	fpmath-sf.S.
      	(LIB2FUNCS_EXCLUDE): Define.
      	(LIB2FUNCS_ST): Define.
      	* config/rl78/trampoline.S: Use function start and end macros.
      	* config/rl78/vregs.h (START_FUNC): New macro.
      	(START_ANOTHER_FUNC): New macro.
      	(END_FUNC): New macro.
      	(END_ANOTHER_FUNC): New macro.
      	* config/rl78/bit-count.S: New file.  Contains assembler
      	implementations of the bit counting functions: ___clzhi2,
      	__clzsi2, ctzhi2, ctzsi2, ffshi2, ffssi2, __partityhi2,
      	__paritysi2, __popcounthi2 and __popcountsi2.
      	* config/rl78/fpbit-sf.S: New file.  Contains assembler
      	implementationas of the math functions: __negsf2, __cmpsf2,
      	__eqsf2, __nesf2, __lesf2, __ltsf2, __gesf2, gtsf2, __unordsf2,
      	__fixsfsi,  __fixunssfsi, __floatsisf and __floatunssisf.
      	* config/rl78/fpmath-sf.S: New file.  Contains assembler
      	implementations of the math functions: __subsf3, __addsf3,
      	__mulsf3 and __divsf3
      
      From-SVN: r220162
      Nick Clifton committed
    • re PR target/64368 (Several libstdc++ test failures on non-linux platforms after r218964.) · 506f03c3
      	PR libstdc++/64368
      	* include/std/shared_mutex (shared_timed_mutex::try_lock_for,
      	shared_timed_mutex::try_lock_until): Only define when POSIX thread
      	timeouts option is supported.
      	(shared_timed_mutex::try_shared_lock_for,
      	shared_timed_mutex::try_shared_lock_until): Likewise.
      
      From-SVN: r220161
      Jonathan Wakely committed
    • Move Solaris/x86 CRT_GET_RFIB_DATA definition to libgcc · f962fbf1
      	gcc:
      	* config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
      
      	libgcc:
      	* config.host (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*):
      	Add i386/elf-lib.h to tm_file.
      	* config/i386/elf-lib.h: Fix comment.
      	* unwind-dw2-fde-dip.c (_Unwind_IteratePhdrCallback) [__x86_64__
      	&& __sun__ && __svr4__]: Remove workaround.
      
      From-SVN: r220160
      Rainer Orth committed