1. 15 Jun, 2015 4 commits
    • Use dg-additional-options for -std={gnu99,c99} · 0d8a9e20
      2015-06-15  Tom de Vries  <tom@codesourcery.com>
      
      	* testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
      	-std={gnu99,c99}.
      	* testsuite/libgomp.c/for-1.c: Same.
      	* testsuite/libgomp.c/for-2.c: Same.
      	* testsuite/libgomp.c/for-3.c: Same.
      	* testsuite/libgomp.c/pr35625.c: Same.
      	* testsuite/libgomp.c/pr39154.c: Same.
      	* testsuite/libgomp.c/simd-16.c: Same.
      	* testsuite/libgomp.c/simd-17.c: Same.
      
      From-SVN: r224479
      Tom de Vries committed
    • re PR fortran/44672 ([F08] ALLOCATE with SOURCE and no array-spec) · 1792349b
      gcc/testsuite/ChangeLog:
      
      2015-06-15  Andre Vehreschild  <vehre@gmx.de>
      
      	PR fortran/44672
      	PR fortran/45440
      	PR fortran/57307
      	* gfortran.dg/allocate_with_source_3.f90: Removed check for
      	unimplemented error.
      	* gfortran.dg/allocate_with_source_7.f08: New test.
      	* gfortran.dg/allocate_with_source_8.f08: New test.
      
      gcc/fortran/ChangeLog:
      
      2015-06-15  Andre Vehreschild  <vehre@gmx.de>
      
      	PR fortran/44672
      	PR fortran/45440
      	PR fortran/57307
      	* gfortran.h: Extend gfc_code.ext.alloc to carry a
      	flag indicating that the array specification has to be
      	taken from expr3.
      	* resolve.c (resolve_allocate_expr): Add F2008 notify
      	and flag indicating source driven array spec.
      	(resolve_allocate_deallocate): Check for source driven
      	array spec, when array to allocate has no explicit
      	array spec.
      	* trans-array.c (gfc_array_init_size): Get lower and
      	upper bound from a tree array descriptor, except when
      	the source expression is an array-constructor which is
      	fixed to be one-based.
      	(retrieve_last_ref): Extracted from gfc_array_allocate().
      	(gfc_array_allocate): Enable allocate(array, source= 
      	array_expression) as specified by F2008:C633.
      	(gfc_conv_expr_descriptor): Add class tree expression
      	into the saved descriptor for class arrays.
      	* trans-array.h: Add temporary array descriptor to
      	gfc_array_allocate ().
      	* trans-expr.c (gfc_conv_procedure_call): Special handling
      	for _copy() routine translation, that comes without an
      	interface. Third and fourth argument are now passed by value.
      	* trans-stmt.c (gfc_trans_allocate): Get expr3 array
      	descriptor for temporary arrays to allow allocate(array,
      	source = array_expression) for array without array
      	specification.
      
      From-SVN: r224477
      Andre Vehreschild committed
    • [AArch64] Change %ld to %wd for HOST_WIDE_INT parameter. · cf0c27ef
      From-SVN: r224476
      Shiva Chen committed
    • Daily bump. · 14c9cbc6
      From-SVN: r224475
      GCC Administrator committed
  2. 14 Jun, 2015 7 commits
  3. 13 Jun, 2015 8 commits
  4. 12 Jun, 2015 16 commits
    • re PR c++/65719 (Link error with constexpr variable template) · 350562a7
      	PR c++/65719
      	* pt.c (tsubst_decl) [VAR_DECL]: Mark namespace-scope
      	variables as DECL_NOT_REALLY_EXTERN.
      
      From-SVN: r224442
      Jason Merrill committed
    • * dwarf2out.c (check_die): Protect with ENABLE_CHECKING. · df649a1c
      From-SVN: r224431
      Aldy Hernandez committed
    • [ifcvt][obvious] Use std::swap instead of manually swapping · d8204b12
      	* ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
      	manually swapping.
      	(noce_try_cmove_arith): Likewise.
      	(noce_get_alt_condition): Likewise.
      
      From-SVN: r224429
      Kyrylo Tkachov committed
    • Fix whitespace in changelog. · f0b587aa
      From-SVN: r224416
      Jonathan Wakely committed
    • re PR libstdc++/66464 (codecvt_utf16 max_length returning incorrect value) · 6a3d0bb3
      	PR libstdc++/66464
      	* src/c++11/codecvt.cc (codecvt_utf16_base<char32_t>::do_max_length):
      	Return 4 not 3.
      
      From-SVN: r224415
      Jonathan Wakely committed
    • gcc/ · 500a08b2
      2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
      
              * common/config/i386/i386-common.c
              (OPTION_MASK_ISA_MWAITX_SET): New.
              (ix86_handle_option): Handle mwaitx.
              * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
              (x86_64-*-*): Likewise.
              * config/i386/mwaitxintrin.h: New header.
              * config/i386/cpuid.h (bit_MWAITX):  Define.
              * config/i386/driver-i386.c (host_detect_local_cpu): Detect
              MWAITX support.
              * config/i386/i386.opt (mwaitx): New.
              * config/i386/i386-builtin-types.def
              (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
              * config/i386/i386-c.c: Define __MWAITX__ if needed.
              * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
              (PTA_MWAITX): New.
              (ix86_option_override_internal): Handle new option.
              (processor_alias_table): Added PTA_MWAITX.
              (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
              (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
              (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
              IX86_BUILTIN_MONITORX  built-ins.
              * config/i386/i386.h (TARGET_MWAITX): New.
              * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
              UNSPEC_MONITORX.
              (mwaitx):  New pattern.
              (monitorx_<mode>): New pattern.
              * config/i386/x86intrin.h: Include mwaitxintrin.h.
              * doc/extend.texi: Document monitorx and mwaitx builtins.
              * doc/invoke.texi: Document -mmwaitx option.
      
      gcc/testsuite
      
      2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
      
              * gcc.target/i386/monitorx.c: New.
              * gcc.target/i386/sse-12.c: Add -mmwaitx.
              * gcc.target/i386/sse-13.c: Ditto.
              * gcc.target/i386/sse-14.c: Ditto.
              * gcc.target/i386/sse-22.c: Ditto.
              * gcc.target/i386/sse-23.c: Ditto.
              * g++.dg/other/i386-2.C: Ditto.
              * g++.dg/other/i386-3.C: Ditto.
      
      From-SVN: r224414
      Venkataramanan Kumar committed
    • Use atomics in guard.cc / remove special casing in targets. · 1c6682fa
      The PowerPC, AIX, Alpha, IA64  implementations of atomic_word.h are in no
      way different from what can be achieved with the generic rewrite in
      Patch 1 of this series - delete these.
      
      2015-06-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
      
              * config/cpu/alpha/atomic_word.h: Remove.
              * config/cpu/ia64/atomic_word.h: Remove.
              * config/cpu/powerpc/atomic_word.h: Remove.
              * config/os/aix/atomic_word.h: Remove.
              * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
              Use generic definition.
      
      From-SVN: r224413
      Ramana Radhakrishnan committed
    • Use atomics in guard.cc / remove special casing in targets. · dd38693e
      The PowerPC, AIX, Alpha, IA64  implementations of atomic_word.h are in no
      way different from what can be achieved with the generic rewrite in
      Patch 1 of this series - delete these.
      
      2015-06-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
      
              * config/cpu/alpha/atomic_word.h: Remove.
              * config/cpu/ia64/atomic_word.h: Remove.
              * config/cpu/powerpc/atomic_word.h: Remove.
              * config/os/aix/atomic_word.h: Remove.
              * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
              Use generic definition.
      
      From-SVN: r224412
      Ramana Radhakrishnan committed
    • Use atomics in guard.cc. · 57e6d9be
      This provides proper definitions for _GLIBCXX_READ_MEM_BARRIER and
      _GLIBCXX_WRITE_MEM_BARRIER, rewrites the guards in terms of proper
      atomic extensions and removes internal uses of
      _GLIBCXX_READ_MEM_BARRIER and _GLIBCXX_WRITE_MEM_BARRIER and replaces
      them with equivalent atomics.
      
      2015-06-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
      
      	PR target/66200
      	PR c++/66192
      	* * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
              (_GLIBCXX_WRITE_MEM_BARRIER): Likewise
              * include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
              * include/ext/atomicity.h: Likewise.
              * include/tr1/shared_ptr.h: Likewise.
              * libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
              Update comment.
              (__set_and_release): Likewise.
              * testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
      	line numbers.
              * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
              * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
      	Likewise.
      
      From-SVN: r224411
      Ramana Radhakrishnan committed
    • emit-rtl.c (need_atomic_barrier_p): Mask model with MEMMODEL_BASE_MASK. · 40ad260d
      	* emit-rtl.c (need_atomic_barrier_p): Mask model with
      	MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
      
      From-SVN: r224410
      Uros Bizjak committed
    • lto-lang.c (lto_type_for_size): Include intN types. · 44c42705
      * lto-lang.c (lto_type_for_size): Include intN types.
      (lto_type_for_mode): Likewise.
      
      From-SVN: r224408
      DJ Delorie committed
    • dbxout.c (xcoff_debug_hooks): Provide a function for register_main_translation_unit hook. · 1b926144
      * dbxout.c (xcoff_debug_hooks): Provide a function for
      register_main_translation_unit hook.
      
      From-SVN: r224407
      David Edelsohn committed
    • Daily bump. · 708146b3
      From-SVN: r224406
      GCC Administrator committed
    • re PR sanitizer/65479 (sanitizer stack trace missing frames past #0 on powerpc64) · d99a7b4d
      2015-06-11  Martin Sebor  <msebor@redhat.com>
      
      	PR sanitizer/65479
      	* dwarf.c (struct line): Add new field idx.
      	(line_compare): Use it.
      	(add_line): Set it.
      	(read_line_info): Reset it.
      
      From-SVN: r224402
      Martin Sebor committed
    • rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC variants cases from switch. · 39e150e8
             * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
              variants cases from switch.
              (rs6000_post_atomic_barrier): Same.
              (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
              (rs6000_expand_atomic_exchange): Same.
              (rs6000_expand_atomic_op): Same.
              * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
              SYNC variants cases from switch.
              (atomic_load): Same.
              (atomic_store): Same.
      
      From-SVN: r224401
      David Edelsohn committed
  5. 11 Jun, 2015 5 commits