1. 02 Jun, 2014 5 commits
  2. 01 Jun, 2014 11 commits
  3. 31 May, 2014 4 commits
    • Summary: m68k: add missing early clobber in beq0_di, bne0_di patterns · aef1bf3b
      * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
      a separate alternative where the scratch operand 2 is marked as
      early clobber.
      
      From-SVN: r211104
      Andreas Schwab committed
    • arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define. · f10743d3
      gcc/
      
      2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	* config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
      	(arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
      	(bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
      	and __builtins_arm_get_fpscr.
      	(arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
      	__builtins_arm_get_fpscr.
      	(arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
      	__builtins_arm_ldfpscr.
      	(arm_atomic_assign_expand_fenv): New function.
      	* config/arm/vfp.md (set_fpscr): New pattern.
      	(get_fpscr) : Likewise.
      	* config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
      	VUNSPEC_SET_FPSCR.
      	* doc/extend.texi (AARCH64 Built-in Functions) : Document
      	__builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
      
      From-SVN: r211103
      Kugan Vivekanandarajah committed
    • DR 1227 PR c++/57543 · cab421f4
      /cp
      2014-05-31  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	DR 1227
      	PR c++/57543
      	* cp-tree.h (TYPE_HAS_LATE_RETURN_TYPE): Add.
      	* pt.c (tsubst_function_type): Inject the this parameter; do the
      	substitutions in the order mandated by the DR.
      	(copy_default_args_to_explicit_spec): Copy TYPE_HAS_LATE_RETURN_TYPE.
      	* decl.c (grokdeclarator): Maybe set TYPE_HAS_LATE_RETURN_TYPE.
      	(static_fn_type): Copy it.
      	* decl2.c (build_memfn_type, change_return_type,
      	cp_reconstruct_complex_type): Likewise.
      	* parser.c (cp_parser_lambda_declarator_opt): Likewise.
      	* tree.c (strip_typedefs): Likewise.
      	* typeck.c (merge_types): Likewise.
      
      /testsuite
      2014-05-31  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	DR 1227
      	PR c++/57543
      	* g++.dg/cpp0x/pr57543-1.C: New.
      	* g++.dg/cpp0x/pr57543-2.C: Likewise.
      	* g++.dg/cpp0x/pr57543-3.C: Likewise.
      	* g++.dg/cpp0x/decltype59.C: Likewise.
      
      From-SVN: r211102
      Paolo Carlini committed
    • Daily bump. · f5fb3069
      From-SVN: r211101
      GCC Administrator committed
  4. 30 May, 2014 20 commits
    • Add missing closing brace · fb26e9e5
      2014-05-31  Tom de Vries  <tom@codesourcery.com>
      
      	* gcc.target/i386/sibcall-4.c: Add missing closing brace.
      
      From-SVN: r211097
      Tom de Vries committed
    • appendix_contributing.xml (list.copyright): Add Paolo's address too. · 8e43535e
      	* doc/xml/manual/appendix_contributing.xml (list.copyright): Add
      	Paolo's address too.
      
      From-SVN: r211095
      Jonathan Wakely committed
    • re PR c++/56947 (Bogus 'XX' was not declared in this scope) · b6bb8977
      	PR c++/56947
      	* pt.c (instantiate_decl): Check that defer_ok is not set for
      	local class members.
      
      From-SVN: r211094
      Jason Merrill committed
    • target-libpath.exp (set_gcc_exec_prefix_env_var, [...]): New procedures. · 51db86a8
      	* lib/target-libpath.exp (set_gcc_exec_prefix_env_var,
      	restore_gcc_exec_prefix_env_var): New procedures.
      	(set_ld_library_path_env_vars,
      	restore_ld_library_path_env_vars): Use them.
      	* lib/c-compat.exp: Load target-libpath.exp.
      	(compat-use-alt-compiler): Call restore_gcc_exec_prefix_env_var.
      	(compat-use-tst-compiler): Call set_gcc_exec_prefix_env_var.
      	* g++.dg/compat/compat.exp (compat-use-alt-compiler): Call
      	restore_gcc_exec_prefix_env_var.
      	* g++.dg/compat/struct-layout-1.exp (compat-use-alt-compiler):
      	Likewise.
      
      From-SVN: r211093
      Jakub Jelinek committed
    • asan.c (report_error_func): Add SLOW_P argument, use BUILT_IN_ASAN_*_N if set. · b3f1051b
      	* asan.c (report_error_func): Add SLOW_P argument, use
      	BUILT_IN_ASAN_*_N if set.
      	(build_check_stmt): Likewise.
      	(instrument_derefs): If T has insufficient alignment,
      	force same handling as for odd sizes.
      
      	* c-c++-common/asan/misalign-1.c: New test.
      	* c-c++-common/asan/misalign-2.c: New test.
      
      From-SVN: r211092
      Jakub Jelinek committed
    • sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N, [...]): New. · 40f9f6bb
      	* sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
      	BUILT_IN_ASAN_REPORT_STORE_N): New.
      	* asan.c (struct asan_mem_ref): Change access_size type to
      	HOST_WIDE_INT.
      	(asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
      	update_mem_ref_hash_table): Likewise.
      	(asan_mem_ref_hasher::hash): Hash in a HWI.
      	(report_error_func): Change size_in_bytes argument to HWI.
      	Use *_N builtins if size_in_bytes is larger than 16 or not power of
      	two.
      	(build_shadow_mem_access): New function.
      	(build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
      	Handle size_in_bytes not power of two or larger than 16.
      	(instrument_derefs): Don't give up if size_in_bytes is not
      	power of two or is larger than 16.
      
      From-SVN: r211091
      Jakub Jelinek committed
    • asan_test.C: Add -std=c++11 and -DSANITIZER_USE_DEJAGNU_GTEST=1 to dg-options... · 8465be9f
      	* g++.dg/asan/asan_test.C: Add -std=c++11 and
      	-DSANITIZER_USE_DEJAGNU_GTEST=1 to dg-options, remove
      	-DASAN_USE_DEJAGNU_GTEST=1.
      	* g++.dg/asan/asan_mem_test.cc: Updated from upstream
      	r209283.
      	* g++.dg/asan/asan_oob_test.cc: Likewise.
      	* g++.dg/asan/sanitizer_test_utils.h: Likewise.
      	* g++.dg/asan/asan_str_test.cc: Likewise.
      	* g++.dg/asan/asan_test_utils.h: Likewise.
      	* g++.dg/asan/sanitizer_test_config.h: Likewise.
      	* g++.dg/asan/asan_test.cc: Likewise.  Allow size 12
      	for long double.
      	* g++.dg/asan/sanitizer_pthread_wrappers.h: New file.
      	Imported from upstream r209283.
      	* g++.dg/asan/asan_test_config.h: Likewise.
      
      From-SVN: r211090
      Jakub Jelinek committed
    • re PR target/60104 (load not folded into indirect branch on x86-64) · cb105922
      	PR target/60104
      	* config/i386/i386.c (x86_output_mi_thunk): Add memory case
      	for sibling-tail-calls.
      	* config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
      	to its use.
      	* config/i386/predicates.md (sibcall_memory_operand): New predicate.
      	(sibcall_insn_operand): Add check for sibcall_memory_operand.
      
      	PR target/60104
      	* gcc.target/i386/sibcall-1.c: New test.
      	* gcc.target/i386/sibcall-2.c: New test.
      	* gcc.target/i386/sibcall-3.c: New test.
      	* gcc.target/i386/sibcall-4.c: New test.
      
      From-SVN: r211089
      Kai Tietz committed
    • re PR libstdc++/61011 (libstdc++-v3 should be target-libstdc++-v3 in top level configure) · 1007a55c
      	PR libstdc++/61011
      	* configure.ac (--disable-libstdcxx): Set noconfigdirs correctly.
      	Disable libcilkrts, libitm, libsanitizer when not building libstdc++.
      	* configure: Regenerate.
      
      From-SVN: r211087
      Jonathan Wakely committed
    • appendix_contributing.xml (list.copyright): Replace Benjamin's old email address. · 2c936344
      	* doc/xml/manual/appendix_contributing.xml (list.copyright): Replace
      	Benjamin's old email address.
      
      From-SVN: r211086
      Jonathan Wakely committed
    • avr-mcus.def: Change ATA6289 ISA to AVR4 · 150e0639
      	* config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
      	* config/avr/avr-tables.opt: Regenerate.
      	* config/avr/t-multilib: Regenerate.
      	* doc/avr-mmcu.texi: Regenerate.
      
      From-SVN: r211085
      Pitchumani Sivanupandi committed
    • re PR c++/60992 (ICE in tsubst_copy, at cp/pt.c:12637) · d1a902a2
      	PR c++/60992
      	* pt.c (tsubst_init): Split out from...
      	(tsubst_expr) [DECL_EXPR]: Here.
      	(tsubst_copy) [VAR_DECL]: Use it.
      	* semantics.c (finish_id_expression): Return the decl for static/const.
      
      From-SVN: r211084
      Jason Merrill committed
    • runtime: Use _mm_pause rather than __builtin_ia32_pause. · 7480a39b
      Based on a patch from Peter Collingbourne.
      
      From-SVN: r211081
      Ian Lance Taylor committed
    • sanitizer_stacktrace.cc: Cherry pick upstream r209879. · ecd5543f
      	* sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
      	r209879.
      	* sanitizer_common/sanitizer_common.h: Likewise.
      	* asan/asan_mapping.h: Likewise.
      	* asan/asan_linux.cc: Likewise.
      	* tsan/tsan_mman.cc: Cherry pick upstream r209744.
      	* sanitizer_common/sanitizer_allocator.h: Likewise.
      
      From-SVN: r211080
      Jakub Jelinek committed
    • xmmintrin.h (_mm_pause): Move out of scope of pragma target("sse"). · f9a8f6d9
      gcc/:
      	* config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
      	target("sse").
      testsuite/:
      	* gcc.target/i386/pause-2.c: New test.
      
      From-SVN: r211079
      Ian Lance Taylor committed
    • -fuse-caller-save - Enable for i386 · 5028356f
      2014-05-30  Tom de Vries  <tom@codesourcery.com>
      
      	* config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
      	Redefine as true.
      
      	* gcc.target/i386/fuse-caller-save.c: New test.
      	* gcc.dg/ira-shrinkwrap-prep-1.c: Run with -fno-use-caller-save.
      	* gcc.dg/ira-shrinkwrap-prep-2.c: Same.
      
      From-SVN: r211078
      Tom de Vries committed
    • libstdc++.exp (libstdc++_init): Adjust regexp to work with previous versions of Tcl. · 29f09521
      	* testsuite/lib/libstdc++.exp (libstdc++_init): Adjust regexp to
      	work with previous versions of Tcl.
      
      From-SVN: r211077
      Jonathan Wakely committed
    • * generate_libstdcxx_web_docs: New script. · 269cf22b
      From-SVN: r211076
      Jonathan Wakely committed
    • Add execution tests of ARM REV intrinsics. · a523dac2
      	gcc.target/arm/simd/vrev16p8_1.c: New file.
      	gcc.target/arm/simd/vrev16qp8_1.c: New file.
      	gcc.target/arm/simd/vrev16qs8_1.c: New file.
      	gcc.target/arm/simd/vrev16qu8_1.c: New file.
      	gcc.target/arm/simd/vrev16s8_1.c: New file.
      	gcc.target/arm/simd/vrev16u8_1.c: New file.
      	gcc.target/arm/simd/vrev32p16_1.c: New file.
      	gcc.target/arm/simd/vrev32p8_1.c: New file.
      	gcc.target/arm/simd/vrev32qp16_1.c: New file.
      	gcc.target/arm/simd/vrev32qp8_1.c: New file.
      	gcc.target/arm/simd/vrev32qs16_1.c: New file.
      	gcc.target/arm/simd/vrev32qs8_1.c: New file.
      	gcc.target/arm/simd/vrev32qu16_1.c: New file.
      	gcc.target/arm/simd/vrev32qu8_1.c: New file.
      	gcc.target/arm/simd/vrev32s16_1.c: New file.
      	gcc.target/arm/simd/vrev32s8_1.c: New file.
      	gcc.target/arm/simd/vrev32u16_1.c: New file.
      	gcc.target/arm/simd/vrev32u8_1.c: New file.
      	gcc.target/arm/simd/vrev64f32_1.c: New file.
      	gcc.target/arm/simd/vrev64p16_1.c: New file.
      	gcc.target/arm/simd/vrev64p8_1.c: New file.
      	gcc.target/arm/simd/vrev64qf32_1.c: New file.
      	gcc.target/arm/simd/vrev64qp16_1.c: New file.
      	gcc.target/arm/simd/vrev64qp8_1.c: New file.
      	gcc.target/arm/simd/vrev64qs16_1.c: New file.
      	gcc.target/arm/simd/vrev64qs32_1.c: New file.
      	gcc.target/arm/simd/vrev64qs8_1.c: New file.
      	gcc.target/arm/simd/vrev64qu16_1.c: New file.
      	gcc.target/arm/simd/vrev64qu32_1.c: New file.
      	gcc.target/arm/simd/vrev64qu8_1.c: New file.
      	gcc.target/arm/simd/vrev64s16_1.c: New file.
      	gcc.target/arm/simd/vrev64s32_1.c: New file.
      	gcc.target/arm/simd/vrev64s8_1.c: New file.
      	gcc.target/arm/simd/vrev64u16_1.c: New file.
      	gcc.target/arm/simd/vrev64u32_1.c: New file.
      	gcc.target/arm/simd/vrev64u8_1.c: New file.
      
      From-SVN: r211075
      Alan Lawrence committed
    • -fuse-caller-save - Support in lra · 10e1bdb2
      2014-05-30  Tom de Vries  <tom@codesourcery.com>
      
      	* lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
      	* lra.c (initialize_lra_reg_info_element): Add init of
      	actual_call_used_reg_set field.
      	(lra): Call lra_create_live_ranges before lra_inheritance for
      	-fuse-caller-save.
      	* lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
      	-fuse-caller-save.
      	* lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
      	instead of call_used_reg_set for -fuse-caller-save.
      	* lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
      
      From-SVN: r211074
      Tom de Vries committed