1. 31 Jan, 2014 11 commits
    • gcc/ · de72ea02
      	* config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
      	(_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
      	(_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
      	in smmintrin.h, remove them.
      	(_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
      	* config/i386/i386.c (ix86_print_operand): Split sae and rounding.
      	* config/i386/i386.md (ROUND_SAE): Fix value.
      	* config/i386/predicates.md (const_4_or_8_to_11_operand): New.
      	(const48_operand): New.
      	* config/i386/subst.md (round), (round_expand): Use
      	const_4_or_8_to_11_operand.
      	(round_saeonly), (round_saeonly_expand): Use const48_operand.
      
      gcc/testsuite/
      	* gcc.target/i386/avx-1.c: Use correct rounding values.
              * gcc.target/i386/avx512f-vaddpd-1.c: Ditto.
              * gcc.target/i386/avx512f-vaddps-1.c: Ditto.
              * gcc.target/i386/avx512f-vaddsd-1.c: Ditto.
              * gcc.target/i386/avx512f-vaddss-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtdq2ps-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtpd2dq-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtpd2ps-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtpd2udq-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtps2dq-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtps2udq-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtsd2si-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtsd2si64-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtsd2ss-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtsd2usi-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtsd2usi64-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtsi2sd64-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtsi2ss-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtsi2ss64-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtss2si-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtss2si64-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtss2usi-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtss2usi64-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtudq2ps-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtusi2sd64-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtusi2ss-1.c: Ditto.
              * gcc.target/i386/avx512f-vcvtusi2ss64-1.c: Ditto.
              * gcc.target/i386/avx512f-vdivpd-1.c: Ditto.
              * gcc.target/i386/avx512f-vdivps-1.c: Ditto.
              * gcc.target/i386/avx512f-vdivsd-1.c: Ditto.
              * gcc.target/i386/avx512f-vdivss-1.c: Ditto.
              * gcc.target/i386/avx512f-vfmaddXXXpd-1.c: Ditto.
              * gcc.target/i386/avx512f-vfmaddXXXps-1.c: Ditto.
              * gcc.target/i386/avx512f-vfmaddXXXsd-1.c: Ditto.
              * gcc.target/i386/avx512f-vfmaddXXXss-1.c: Ditto.
              * gcc.target/i386/avx512f-vfmaddsubXXXpd-1.c: Ditto.
              * gcc.target/i386/avx512f-vfmaddsubXXXps-1.c: Ditto.
              * gcc.target/i386/avx512f-vfmsubXXXpd-1.c: Ditto.
              * gcc.target/i386/avx512f-vfmsubXXXps-1.c: Ditto.
              * gcc.target/i386/avx512f-vfmsubXXXsd-1.c: Ditto.
              * gcc.target/i386/avx512f-vfmsubXXXss-1.c: Ditto.
              * gcc.target/i386/avx512f-vfmsubaddXXXpd-1.c: Ditto.
              * gcc.target/i386/avx512f-vfmsubaddXXXps-1.c: Ditto.
              * gcc.target/i386/avx512f-vfnmaddXXXpd-1.c: Ditto.
              * gcc.target/i386/avx512f-vfnmaddXXXps-1.c: Ditto.
              * gcc.target/i386/avx512f-vfnmaddXXXsd-1.c: Ditto.
              * gcc.target/i386/avx512f-vfnmaddXXXss-1.c: Ditto.
              * gcc.target/i386/avx512f-vfnmsubXXXpd-1.c: Ditto.
              * gcc.target/i386/avx512f-vfnmsubXXXps-1.c: Ditto.
              * gcc.target/i386/avx512f-vfnmsubXXXsd-1.c: Ditto.
              * gcc.target/i386/avx512f-vfnmsubXXXss-1.c: Ditto.
              * gcc.target/i386/avx512f-vmulpd-1.c: Ditto.
              * gcc.target/i386/avx512f-vmulps-1.c: Ditto.
              * gcc.target/i386/avx512f-vmulsd-1.c: Ditto.
              * gcc.target/i386/avx512f-vmulss-1.c: Ditto.
              * gcc.target/i386/avx512f-vscalefpd-1.c: Ditto.
              * gcc.target/i386/avx512f-vscalefps-1.c: Ditto.
              * gcc.target/i386/avx512f-vscalefsd-1.c: Ditto.
              * gcc.target/i386/avx512f-vscalefss-1.c: Ditto.
              * gcc.target/i386/avx512f-vsqrtpd-1.c: Ditto.
              * gcc.target/i386/avx512f-vsqrtps-1.c: Ditto.
              * gcc.target/i386/avx512f-vsqrtsd-1.c: Ditto.
              * gcc.target/i386/avx512f-vsqrtss-1.c: Ditto.
              * gcc.target/i386/avx512f-vsubpd-1.c: Ditto.
              * gcc.target/i386/avx512f-vsubps-1.c: Ditto.
              * gcc.target/i386/avx512f-vsubsd-1.c: Ditto.
              * gcc.target/i386/avx512f-vsubss-1.c: Ditto.
              * 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.
      
      From-SVN: r207342
      Ilya Tocar committed
    • constraints.md (Yk): Swap meaning with k. · be792bce
      gcc/
      	* config/i386/constraints.md (Yk): Swap meaning with k.
      	* config/i386/i386.md (movhi_internal): Change Yk to k.
      	(movqi_internal): Ditto.
      	(*k<logic><mode>): Ditto.
      	(*andhi_1): Ditto.
      	(*andqi_1): Ditto.
      	(kandn<mode>): Ditto.
      	(*<code>hi_1): Ditto.
      	(*<code>qi_1): Ditto.
      	(kxnor<mode>): Ditto.
      	(kortestzhi): Ditto.
      	(kortestchi): Ditto.
      	(kunpckhi): Ditto.
      	(*one_cmplhi2_1): Ditto.
      	(*one_cmplqi2_1): Ditto.
      	* config/i386/sse.md (): Change k to Yk.
      	(avx512f_load<mode>_mask): Ditto.
      	(avx512f_blendm<mode>): Ditto.
      	(avx512f_store<mode>_mask): Ditto.
      	(avx512f_storeu<ssemodesuffix>512_mask): Ditto.
      	(avx512f_storedqu<mode>_mask): Ditto.
      	(avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>): Ditto.
      	(avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
      	(avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
      	(avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
      	(avx512f_maskcmp<mode>3): Ditto.
      	(avx512f_fmadd_<mode>_mask<round_name>): Ditto.
      	(avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
      	(avx512f_fmsub_<mode>_mask<round_name>): Ditto.
      	(avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
      	(avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
      	(avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
      	(avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
      	(avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
      	(avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
      	(avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
      	(avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
      	(avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
      	(avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
      	(vec_extract_lo_<mode>_maskm): Ditto.
      	(vec_extract_hi_<mode>_maskm): Ditto.
      	(avx512f_vternlog<mode>_mask): Ditto.
      	(avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
      	(avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
      	(avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
      	(avx512f_<code>v8div16qi2_mask): Ditto.
      	(avx512f_<code>v8div16qi2_mask_store): Ditto.
      	(avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
      	(avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
      	(avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
      	(avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
      	(*avx512pf_gatherpf<mode>sf_mask): Ditto.
      	(*avx512pf_gatherpf<mode>df_mask): Ditto.
      	(*avx512pf_scatterpf<mode>sf_mask): Ditto.
      	(*avx512pf_scatterpf<mode>df_mask): Ditto.
      	(avx512cd_maskb_vec_dupv8di): Ditto.
      	(avx512cd_maskw_vec_dupv16si): Ditto.
      	(avx512f_vpermi2var<mode>3_maskz): Ditto.
      	(avx512f_vpermi2var<mode>3_mask): Ditto.
      	(avx512f_vpermi2var<mode>3_mask): Ditto.
      	(avx512f_vpermt2var<mode>3_maskz): Ditto.
      	(*avx512f_gathersi<mode>): Ditto.
      	(*avx512f_gathersi<mode>_2): Ditto.
      	(*avx512f_gatherdi<mode>): Ditto.
      	(*avx512f_gatherdi<mode>_2): Ditto.
      	(*avx512f_scattersi<mode>): Ditto.
      	(*avx512f_scatterdi<mode>): Ditto.
      	(avx512f_compress<mode>_mask): Ditto.
      	(avx512f_compressstore<mode>_mask): Ditto.
      	(avx512f_expand<mode>_mask): Ditto.
      	* config/i386/subst.md (mask): Change k to Yk.
      	(mask_scalar_merge): Ditto.
      	(sd): Ditto.
      
      gcc/testsuite/
      	* gcc.target/i386/avx512f-inline-asm.c: Swap Yk and k.
      	* gcc.target/i386/avx512f-kmovw-1.c: Also allow k0.
      
      From-SVN: r207341
      Ilya Tocar committed
    • extend.texi (Vector Extensions): Document ?: in C++. · 0878d68a
      2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
      
      gcc/
      	* doc/extend.texi (Vector Extensions): Document ?: in C++.
      
      From-SVN: r207340
      Marc Glisse committed
    • Fix a typo. · 6c02e139
      From-SVN: r207339
      Jakub Jelinek committed
    • re PR middle-end/59990 (incorrect memcpy optimization) · fdfd537b
      2014-01-31  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/59990
      	* builtins.c (fold_builtin_memory_op): Make sure to not
      	use a floating-point mode or a boolean or enumeral type for
      	the copy operation.
      
      	* gcc.dg/torture/pr59990.c: New testcase.
      
      From-SVN: r207338
      Richard Biener committed
    • tsan-dg.exp (tsan_init): Try to run a trivial program, if it fails don't run any tsan tests. · 798888a0
      	* lib/tsan-dg.exp (tsan_init): Try to run a trivial program,
      	if it fails don't run any tsan tests.
      
      From-SVN: r207337
      Jakub Jelinek committed
    • re PR c/59963 (Wrong column number for warning -Woverflow) · 81e5eca8
      	PR c/59963
      c-family/
      	* c-common.c (add_atomic_size_parameter): Pass vNULL to
      	build_function_call_vec.
      	(resolve_overloaded_builtin): Likewise.
      	* c-common.h (build_function_call_vec): Adjust declaration.
      cp/
      	* typeck.c (build_function_call_vec): Add dummy arg_loc parameter.
      c/
      	* c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
      	build_function_call_vec.
      	(build_function_call): Likewise.
      	(build_atomic_assign): Likewise.
      	(build_function_call_vec): Add arg_loc parameter.  Use it.
      	(convert_arguments): Likewise.
      	(convert_for_assignment): Rename rhs_loc to expr_loc.
      	* c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
      	(c_parser_objc_keywordexpr): Likewise.
      	(c_parser_postfix_expression_after_primary): Call
      	build_function_call_vec with expr_loc rather than op_loc.
      	Call c_parser_expr_list to fill arg_loc.  Pass arg_loc to
      	build_function_call_vec.
      	(c_parser_expr_list): Add locations parameter.  Fill it with locations
      	of function arguments.
      	* c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
      objc/
      	* objc-next-runtime-abi-02.c (build_throw_stmt): Pass vNULL to
      	build_function_call_vec.
      	(finish_catch): Likewise.
      	(next_runtime_abi_02_get_class_reference): Likewise.
      	* objc-next-runtime-abi-01.c (build_objc_method_call): Pass vNULL to
      	build_function_call_vec.
      	(build_throw_stmt): Likewise.
      	* objc-gnu-runtime-abi-01.c: (build_objc_method_call): Pass vNULL to
      	build_function_call_vec.
      	(build_throw_stmt): Likewise.
      testsuite/
      	* gcc.dg/pr59940.c (g): Adjust dg-warning.
      	(y): Adjust dg-error.
      	* gcc.dg/cast-function-1.c (bar): Adjust dg-warnings.
      	* gcc.dg/pr59963-1.c: New test.
      	* gcc.dg/pr59963-2.c: New test.
      	* gcc.dg/pr59963-3.c: New test.
      
      From-SVN: r207335
      Marek Polacek committed
    • msp430.h (LIB_SPEC): Add -lcrt · 4f50b9ff
      * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
      * config/msp430/msp430.md (msp430_refsym_need_exit): New.
      * config/msp430/msp430.c (msp430_expand_epilogue): Call it
      whenever main() has an epilogue.
      
      From-SVN: r207334
      DJ Delorie committed
    • re PR c++/57899 (bind/function with data member: infinite recursion) · f221dc81
      	PR c++/57899
      	* cp-tree.h (struct saved_scope): Add x_local_specializations.
      	(local_specializations): New macro.
      	* pt.c (local_specializations): Remove variable.
      
      From-SVN: r207332
      Jason Merrill committed
    • Daily bump. · 8fec1e9b
      From-SVN: r207329
      GCC Administrator committed
  2. 30 Jan, 2014 26 commits
  3. 29 Jan, 2014 3 commits