1. 27 Mar, 2011 12 commits
    • Split 32-byte AVX unaligned load/store. · d253656a
      gcc/
      
      2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
      	and -mavx256-split-unaligned-store.
      	(ix86_option_override_internal): Split 32-byte AVX unaligned
      	load/store by default.
      	(ix86_avx256_split_vector_move_misalign): New.
      	(ix86_expand_vector_move_misalign): Use it.
      
      	* config/i386/i386.opt: Add -mavx256-split-unaligned-load and
      	-mavx256-split-unaligned-store.
      
      	* config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
      	256bit load/store.  Generate unaligned store on misaligned memory
      	operand.
      	(*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
      	256bit load/store.
      	(*avx_movdqu<avxmodesuffix>): Likewise.
      
      	* doc/invoke.texi: Document -mavx256-split-unaligned-load and
      	-mavx256-split-unaligned-store.
      
      gcc/testsuite/
      
      2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* gcc.target/i386/avx256-unaligned-load-1.c: New.
      	* gcc.target/i386/avx256-unaligned-load-2.c: Likewise.
      	* gcc.target/i386/avx256-unaligned-load-3.c: Likewise.
      	* gcc.target/i386/avx256-unaligned-load-4.c: Likewise.
      	* gcc.target/i386/avx256-unaligned-load-5.c: Likewise.
      	* gcc.target/i386/avx256-unaligned-load-6.c: Likewise.
      	* gcc.target/i386/avx256-unaligned-load-7.c: Likewise.
      	* gcc.target/i386/avx256-unaligned-store-1.c: Likewise.
      	* gcc.target/i386/avx256-unaligned-store-2.c: Likewise.
      	* gcc.target/i386/avx256-unaligned-store-3.c: Likewise.
      	* gcc.target/i386/avx256-unaligned-store-4.c: Likewise.
      	* gcc.target/i386/avx256-unaligned-store-5.c: Likewise.
      	* gcc.target/i386/avx256-unaligned-store-6.c: Likewise.
      	* gcc.target/i386/avx256-unaligned-store-7.c: Likewise.
      
      From-SVN: r171578
      H.J. Lu committed
    • Remove closedchan function. · c570af00
      From-SVN: r171577
      Ian Lance Taylor committed
    • re PR fortran/47065 (Replace trim(a) by a(1:len_trim(a))) · 7e3b6543
      2011-03-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/47065
      	* frontend-passes (optimize_trim): Also follow references, except
      	when they are substring references or array references.
      
      2011-03-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/47065
      	* gfortran.dg/trim_optimize_5.f90:  New test.
      	* gfortran.dg/trim_optimize_6.f90:  New test.
      
      From-SVN: r171575
      Thomas Koenig committed
    • Improve error about indirecting an unsafe.Pointer type. · 15ea09a0
      From-SVN: r171574
      Ian Lance Taylor committed
    • Fix typo · fbe185d3
      From-SVN: r171573
      Eric Botcazou committed
    • re PR target/38598 (MIPS extendsidi2 does not have a LO alternative) · 1ea9206a
      gcc/
      	PR target/38598
      	* config/mips/mips.md (extendsidi2): Add an "l" alternative.
      	Update commentary.
      
      gcc/testsuite/
      	PR target/38598
      	* gcc.target/mips/madd-7.c: Remove -mlong32.
      	* gcc.target/mips/msub-7.c: Likewise.
      
      From-SVN: r171572
      Richard Sandiford committed
    • mips.c (mips_prepare_builtin_arg): Replace icode and opno arguments with an expand_operand. · b99ce2a8
      gcc/
      	* config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
      	opno arguments with an expand_operand.  Use create_input_operand.
      	(mips_prepare_builtin_target): Delete.
      	(mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
      	functions.
      	(mips_expand_builtin_direct): Use create_output_operand and
      	mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
      	(mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
      	(mips_expand_builtin_compare): Use mips_expand_fp_comparison.
      
      From-SVN: r171571
      Richard Sandiford committed
    • re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays]) · 5092eb96
      2011-03-27  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/18918
              * caf/libcaf.h: New - coarray communication library.
              * caf/mpi.c: New.
              * caf/single.c: New.
      
      From-SVN: r171570
      Tobias Burnus committed
    • arm.c (arm_autovectorize_vector_sizes): New function. · 69d52339
      
              * config/arm/arm.c (arm_autovectorize_vector_sizes): New
              function.
              (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
      
      From-SVN: r171569
      Ira Rosen committed
    • re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays]) · 60386f50
      2011-03-27  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/18918
              * gfortran.h (gfc_isym_id): Rename GFC_ISYM_NUMIMAGES to
              GFC_ISYM_NUM_IMAGES.
              (gfc_fcoarray): Add GFC_FCOARRAY_LIB.
              * intrinsic.c (add_functions): Update due to GFC_ISYM_NUM_IMAGES
              rename.
              * invoke.texi (-fcoarray=): Document "lib" argument.
              * iresolve.c (gfc_resolve_this_image): Fix THIS IMAGE().
              * libgfortran.h (libgfortran_stat_codes): Add comments.
              * options.c (gfc_handle_coarray_option): Add -fcoarray=lib.
              * simplify.c (gfc_simplify_num_images, gfc_simplify_this_image):
              Handle GFC_FCOARRAY_LIB.
              * trans.h (gfc_init_coarray_decl): New prototype.
              (gfor_fndecl_caf_init, gfor_fndecl_caf_finalize,
              gfor_fndecl_caf_critical, gfor_fndecl_caf_end_critical,
              gfor_fndecl_caf_sync_all, gfor_fndecl_caf_sync_images,
              gfor_fndecl_caf_error_stop, gfor_fndecl_caf_error_stop_str,
              gfort_gvar_caf_num_images, gfort_gvar_caf_this_image):
              New global variables.
              * trans-decl.c: Declare several CAF functions (cf. above).
              (gfc_build_builtin_function_decls): Initialize those.
              (gfc_init_coarray_decl): New function.
              (create_main_function): Call CAF init/finalize functions.
              * trans-intrinsic.c (trans_this_image, trans_num_images): New.
              (gfc_conv_intrinsic_function): Call those.
              * trans-stmt.c (gfc_trans_stop, gfc_trans_sync,
              * gfc_trans_critical):
              Add code for GFC_FCOARRAY_LIB.
      
      From-SVN: r171568
      Tobias Burnus committed
    • Daily bump. · 46ae608f
      From-SVN: r171567
      GCC Administrator committed
  2. 26 Mar, 2011 15 commits
  3. 25 Mar, 2011 13 commits
    • expr.c (emit_block_move_via_movmem): Only use 6 operand variant if there are exactly 6 operands. · c2654ded
              * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
              if there are exactly 6 operands.
              (set_storage_via_setmem): Similarly.
      
      From-SVN: r171532
      Richard Henderson committed
    • future (future::share): Add. · e3e08a1d
      2011-03-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	* include/std/future (future::share): Add.
      	(packaged_task::result_type): Remove as per LWG 2030.
      	(packaged_task::packaged_task): Remove redundant constructors, as per
      	LWG 1514.
      	* testsuite/30_threads/future/members/share.cc: New.
      	* testsuite/30_threads/packaged_task/requirements/typedefs.cc: Remove.
      
      From-SVN: r171531
      Jonathan Wakely committed
    • default.cc: Do not call members which require a fully established result state. · 4be2a081
      2011-03-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	* testsuite/28_regex/match_results/ctors/char/default.cc: Do not call
      	members which require a fully established result state.
      	* testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise.
      
      From-SVN: r171530
      Jonathan Wakely committed
    • Clean up handling of undefined types. · 02ed921a
      From-SVN: r171528
      Ian Lance Taylor committed
    • printf_fp.c (__quadmath_printf_fp): Use memcpy instead of mempcpy. · cf3b3080
      	* printf/printf_fp.c (__quadmath_printf_fp): Use memcpy instead of
      	mempcpy.
      
      From-SVN: r171525
      Jakub Jelinek committed
    • Avoid overflow error after negative shift count error. · 7657ab90
      From-SVN: r171523
      Ian Lance Taylor committed
    • Changelog c-family/ · ba78087b
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* c-ada-spec.c (compare_comment): Use filename_cmp
      	instead of strcmp for filename.
      
      
      Changelog fortran/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* scanner.c (preprocessor_line): Use filename_cmp
      	instead of strcmp.
      
      Changelog gcc/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* collect2.c (write_c_file_stat): Handle backslash
      	as right-hand directory separator.
      	(resolve_lib_name): Use IS_DIR_SEPARATOR instead of
      	checking just for slash.
      	* coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
      	instead of checking for trailing slash.
      	* gcc.c (record_temp_file): Use filename_cmp instead
      	of strcmp.
      	(do_spec_1): Likewise.
      	(replace_outfile_spec_function): Likewise.
      	(is_directory): Use filename_ncmp instead of strncmp.
      	(print_multilib_info): Likewise.
      	* gcov.c (find_source): Use filename_cmp instead
      	instead of strcmp.
      	(make_gcov_file_name): Fix order of slash/backslash
      	checks.
      	* incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
      	(add_standard_paths): Likewise.
      	* mips-tfile.c (saber_stop): Handle backslash.
      	* prefix.c (update_path): Use filename_ncmp instead of
      	strncmp.
      	* profile.c (output_location): Use filename_cmp instead
      	of strcmp.
      	* read-md.c (handle_toplevel_file): Handle backslash.
      	* tlink.c (frob_extension):  Likewise.
      	* tree-cfg.c (same_line_p): Use filename_cmp instead of
      	strcmp.
      	* tree-dump.c (dequeue_and_dump): Handle backslash.
      	* tree.c (get_file_function_name): Likewise.
      	* gengtype.c (read_input_list): Likewise.
      	(get_file_realbasename): Likewise.
      	(get_output_file_with_visibility): Use filename_cmp
      	instead of strcmp.
      
      ChangeLog java/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* jcf-parse.c (java_read_sourcefilenames): Use filename_cmp
      	instead of strcmp.
      	(set_source_filename): Likewise.
      	* win32-host.c (jcf_open_exact_case): Likewise.
      
      ChangeLog lto/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* lto.c (lto_resolution_read): Use filename_cmp instead
      	of strcmp.
      	(lto_read_section_data): Likewise.
      
      
      ChangeLog cp/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* lex.c (interface_strcmp): Handle dos-paths.
      	(handle_pragma_implementation): Use filename_cmp instead of
      	strcmp.
      	(in_main_input_context): Likewise.
      
      From-SVN: r171522
      Kai Tietz committed
    • files.c (file_hash_eq): Use filename_cmp instead of strcmp. · 4489800d
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* files.c (file_hash_eq): Use filename_cmp
      	instead of strcmp.
      	(nonexistent_file_hash_eq): Likewise.
      	(remap_filename): Likewise.
      	Handle absolute DOS-path,
      	(append_file_to_dir): Check for IS_DIR_SEPARATOR
      	instead of slash.
      	(read_name_map): Likewise.
      	* linemap.c (linemap_add): Use filename_cmp
      	instead of strcmp.
      	* mkdeps.c (apply_vpath): Use filename_ncmp
      	instead of strncmp.
      	(deps_restore): Use filename_cmp instead of
      	strcmp.
      	* init.c (read_original_directory): Use
      	IS_DIR_SEPARATOR instead of checking for slash.
      
      From-SVN: r171521
      Kai Tietz committed
    • arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS case to VFPv1. · 75f6ec9a
      gcc/
      	* config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
      	case to VFPv1.
      
      From-SVN: r171520
      Richard Sandiford committed
    • re PR fortran/48174 (DWARF for subroutine with no args indicates 'varargs') · 3ec1c379
      2011-03-25  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/48174
              PR fortran/45304
              * trans-types.c (gfc_get_function_type): Don't use varargs if
              * the
              procedure is known to have no arguments.
      
      2011-03-25  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/48174
              PR fortran/45304
              * gfortran.dg/ishft_4.f90: Adapt scan-tree-dump-times.
              * gfortran.dg/leadz_trailz_3.f90: Ditto
      
      From-SVN: r171519
      Tobias Burnus committed
    • Give an error if a label is defined but not used. · fb4347e4
      From-SVN: r171518
      Ian Lance Taylor committed
    • ChangeLog for last change. · de5ca9cf
      From-SVN: r171516
      Rainer Orth committed
    • pr44686.c: Do not explicitely specify -O2. · 553110fe
      2011-03-25  Martin Jambor  <mjambor@suse.cz>
      
      	* gcc.c-torture/compile/pr44686.c: Do not explicitely specify -O2.
      
      From-SVN: r171515
      Martin Jambor committed