1. 14 Oct, 2011 25 commits
    • di-longlong64-sync-1.c: New test. · e11a4c80
      gcc/testsuite/
      2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
      
      	* gcc.dg/di-longlong64-sync-1.c: New test.
      	* gcc.dg/di-sync-multithread.c: New test.
      	* gcc.target/arm/di-longlong64-sync-withhelpers.c: New test.
      	* gcc.target/arm/di-longlong64-sync-withldrexd.c: New test.
      	* lib/target-supports.exp: (arm_arch_*_ok): Series of effective-target
      	tests for v5, v6, v6k, and v7-a, and add-options helpers.
      	(check_effective_target_arm_arm_ok): New helper.
      	(check_effective_target_sync_longlong): New helper.
      
      From-SVN: r179983
      David Alan Gilbert committed
    • linux-atomic-64bit.c: New (based on linux-atomic.c). · 41aac0de
      gcc/
      2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
      
      	* config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
      	* config/arm/linux-atomic.c: Change comment to point to 64bit version.
      	(SYNC_LOCK_RELEASE): Instantiate 64bit version.
      	* config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
      
      From-SVN: r179982
      David Alan Gilbert committed
    • arm.c (arm_output_ldrex): Support ldrexd. · cfe52743
      gcc/
      2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
      
      	* config/arm/arm.c (arm_output_ldrex): Support ldrexd.
      	(arm_output_strex): Support strexd.
      	(arm_output_it): New helper to output it in Thumb2 mode only.
      	(arm_output_sync_loop): Support DI mode.  Change comment to
      	not support const_int.
      	(arm_expand_sync): Support DI mode.
      	* config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
      	and LDREXD.
      	* config/arm/iterators.md (NARROW): move from sync.md.
      	(QHSD): New iterator for all current ARM integer modes.
      	(SIDI): New iterator for SI and DI modes only.
      	* config/arm/sync.md (sync_predtab): New mode_attr.
      	(sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
      	(sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
      	(sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
      	(sync_nandsi): Fold into sync_nand<mode>.
      	(sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
      	(sync_new_nandsi): Fold into sync_new_nand<mode>.
      	(sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
      	(sync_old_nandsi): Fold into sync_old_nand<mode>.
      	(sync_compare_and_swap<mode>): Support SI & DI.
      	(sync_lock_test_and_set<mode>): Likewise.
      	(sync_<sync_optab><mode>): Likewise.
      	(sync_nand<mode>): Likewise.
      	(sync_new_<sync_optab><mode>): Likewise.
      	(sync_new_nand<mode>): Likewise.
      	(sync_old_<sync_optab><mode>): Likewise.
      	(sync_old_nand<mode>): Likewise.
      	(arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
      	(arm_sync_lock_test_and_setsi): Likewise.
      	(arm_sync_new_<sync_optab>si): Likewise.
      	(arm_sync_new_nandsi): Likewise.
      	(arm_sync_old_<sync_optab>si): Likewise.
      	(arm_sync_old_nandsi): Likewise.
      	(arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
      	(arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
      	(arm_sync_new_<sync_optab><mode> NARROW): Likewise.
      	(arm_sync_new_nand<mode> NARROW): Likewise.
      	(arm_sync_old_<sync_optab><mode> NARROW): Likewise.
      	(arm_sync_old_nand<mode> NARROW): Likewise.
      
      From-SVN: r179981
      David Alan Gilbert committed
    • re PR target/48126 (arm_output_sync_loop: misplaced memory barrier) · 3e2a46fe
      gcc/
      2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
      
      	PR target/48126
      	* config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
      
      From-SVN: r179980
      David Alan Gilbert committed
    • arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1. · 80651d8e
      gcc/
      2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
      
      	* config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
      
      From-SVN: r179979
      David Alan Gilbert committed
    • invoke.texi ([Wformat-zero-length]): Tidy. · f5fb344b
      2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* doc/invoke.texi ([Wformat-zero-length]): Tidy.
      
      From-SVN: r179978
      Paolo Carlini committed
    • gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also on… · 9dd58aa4
      gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also on COND_EXPR/VEC_COND_EXPR comparison operands if...
      
      	* gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr
      	also on COND_EXPR/VEC_COND_EXPR comparison operands if they are
      	ADDR_EXPRs.
      
      From-SVN: r179969
      Jakub Jelinek committed
    • 41975.cc: New. · 9918dc0f
      2011-10-14  François Dumont  <francois.cppdevs@free.fr>
      
      	* testsuite/performance/23_containers/insert_erase/41975.cc: New.
      
      From-SVN: r179968
      François Dumont committed
    • re PR tree-optimization/50723 (internal compiler error: verify_ssa failed) · f6e52e91
      2011-10-14  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/50723
      	* ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
      
      	* gcc.dg/torture/pr50723.c: New testcase.
      
      From-SVN: r179967
      Richard Guenther committed
    • 50714.cc: Fix mychar. · 5fabae4e
      2011-10-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	* testsuite/22_locale/codecvt_byname/50714.cc: Fix mychar.
      
      From-SVN: r179966
      Jonathan Wakely committed
    • In gcc/: 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com> · 3cc2dd4b
      In gcc/:
      2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* gengtype.c (files_rules): Added rules for objc/objc-map.h and
      	objc/objc-map.c.
      
      In gcc/objc/:
      2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-map.h: New file.
      	* objc-map.c: New file.	
      	* config-lang.in (gtfiles): Added objc-map.h.
      	* Make-lang.in (OBJC_OBJS): Added objc-map.o.
      	(objc/objc-map.o): New rule.
      	(objc/objc-act.o): Depend on objc/objc-map.h.
      	* objc-next-runtime-abi-02.c: Added a TODO comment.
      	* objc-act.c: Include objc-map.h.
      	(nst_method_hash_list, cls_method_hash_list): Removed.
      	(instance_method_map, class_method_map): New.
      	(cls_name_hash_list, als_name_hash_list): Removed.
      	(class_name_map, alias_name_map): Removed.
      	(ivar_offset_hash_list): Removed.
      	(hash_class_name_enter, hash_class_name_lookup, hash_enter,
      	hash_lookup, hash_add_attr, add_method_to_hash_list): Removed.
      	(interface_hash_init): New.
      	(objc_init): Call interface_hash_init.
      	(objc_write_global_declarations): Iterate over class_method_map
      	and instance_method_map instead of cls_method_hash_list and
      	nst_method_hash_list.
      	(objc_declare_alias): Use alias_name_map instead of
      	cls_name_hash_list.
      	(objc_is_class_name): Use class_name_map and alias_name_map
      	instead of cls_name_hash_list and als_name_hash_list.
      	(interface_tuple, interface_htab, hash_interface, eq_interface):
      	Removed.
      	(interface_map): New.
      	(add_class): Renamed to add_interface.  Use interface_map instead
      	of interface_htab.
      	(lookup_interface): Use interface_map instead of interface_htab.
      	(check_duplicates): Changed first argument to be a tree,
      	potentially a TREE_VEC, instead of a hash.  Changed implementation
      	to match.
      	(lookup_method_in_hash_lists): Use class_method_map and
      	instance_method_map instead of cls_method_hash_list and
      	nst_method_hash_list.
      	(objc_build_selector_expr): Likewise.
      	(hash_func): Removed.
      	(hash_init): Create instance_method_map, class_method_map,
      	class_name_map, and alias_name_map.  Do not create
      	nst_method_hash_list, cls_method_hash_list, cls_name_hash_list,
      	als_name_hash_list, and ivar_offset_hash_list.
      	(insert_method_into_method_map): New.
      	(objc_add_method): Use insert_method_into_method_map instead of
      	add_method_to_hash_list.
      	(start_class): Call add_interface instead of add_class.
      	* objc-act.h (cls_name_hash_list, als_name_hash_list,
      	nst_method_hash_list, cls_method_hash_list): Removed.
      
      In gcc/objcp/:
      2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* Make-lang.in (OBJCXX_OBJS): Added objc-map.o.
      	(objcp/objc-map.o): New rule.
      	(objcp/objcp-act.o): Depend on objc/objc-map.h.
      	* config-lang.in (gtfiles): Added objc-map.h.
      
      From-SVN: r179965
      Nicola Pero committed
    • re PR c++/17212 (-W(no)format-zero-length does not work with C++) · 5e678de8
      /gcc
      2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/17212
      	* c-family/c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
      	* doc/invoke.texi: Update.
      
      /testsuite
      2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/17212
      	* g++.dg/warn/format6.C: New.
      	* obj-c++.dg/warn6.mm: Likewise.
      
      From-SVN: r179964
      Paolo Carlini committed
    • re PR c++/17212 (-W(no)format-zero-length does not work with C++) · 4fbbcd7f
      /gcc
      2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/17212
      	* c-family/c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
      	* doc/invoke.texi: Update.
      
      /testsuite
      2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/17212
      	* g++.dg/warn/format6.C: New.
      	* obj-c++.dg/warn6.mm: Likewise.
      
      From-SVN: r179963
      Paolo Carlini committed
    • re PR bootstrap/50699 (Bootstrap fails on *-apple-darwin* due to revision 179820) · 80f8fdf1
      
      gcc:
      
      	PR bootstrap/50699
      	* config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
      	build for powerpc targets.  (darwin_patch_builtins): Only build for 
      	powerpc targets.
      
      From-SVN: r179962
      Iain Sandoe committed
    • configure.host: Use config/os/mingw32-w64 instead of config/os/mingw32 if vendor key is "w64". · d7a3ef97
      2011-10-14  Jonathan Yong  <jon_y@users.sourceforge.net>
      
      	* configure.host: Use config/os/mingw32-w64 instead of
      	config/os/mingw32 if vendor key is "w64".
      	* config/os/mingw32-w64: Duplicate from config/os/mingw32.
      	* config/os/mingw32-w64/os_defines.h: Enable
      	_GLIBCXX_FULLY_DYNAMIC_STRING if undefined.
      	* acinclude.m4: Set fully-dynamic-string to 1 when enabled,
      	0 when disabled or undefined if unset by user.
      	* include/bits/basic_string.h: Check if
      	_GLIBCXX_FULLY_DYNAMIC_STRING is set to 0 instead of undefined.
      	include/bits/basic_string.tcc: Likewise.
      	* configure: Regenerated.
      	* config.h.in: Likewise.
      
      From-SVN: r179961
      Jonathan Yong committed
    • sse.md (*avx_cvtdq2pd256_2): Rename to... · 4fbe3b8a
      	* config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
      	(avx_cvtdq2pd256_2): ... this.
      	(sseunpackfltmode): New mode attr.
      	(vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
      	vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
      	using VI2_AVX2 iterator.
      	(vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New
      	expanders.
      
      From-SVN: r179960
      Jakub Jelinek committed
    • Merge sparc plus/minus vector operations using a code iterator. · 8e24e409
      	* config/sparc/sparc.md (plusminus): New code iterator.
      	(plusminus_insn): New code attr.
      	(addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
      	using plusminus and plusminus_insn.
      	(fpadd64_vis, fpsub64_vis): Likewise.
      
      From-SVN: r179959
      David S. Miller committed
    • rs6000: Fix typo in rs6000_expand_vector_init · 5066ab2e
      Of course we don't support vectors of size <= 4.
      We're supposed to be checking the vector element size.
      
      From-SVN: r179957
      Richard Henderson committed
    • Move lowering of vector shifts from v/s to v/v from gimple to rtl. · bdc3ee5d
      This allows other rtl expanders to rely on shifts of vector by scalar.
      
      From-SVN: r179956
      Richard Henderson committed
    • i386: Implement vec_perm_const<mode>. · 0772d476
      From-SVN: r179955
      Richard Henderson committed
    • spu: Implement vec_permv16qi. · f6293442
      From-SVN: r179954
      Richard Henderson committed
    • rs6000: Implement vec_permv16qi. · cba86444
      From-SVN: r179953
      Richard Henderson committed
    • Daily bump. · 6fa642df
      From-SVN: r179952
      GCC Administrator committed
    • re PR libstdc++/50714 (codecvt_byname::codecvt::_M_c_locale_codecvt not initialized by destroyed) · b78eebe4
      2011-10-13  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/50714
      	* include/bits/codecvt.h (codecvt<>::codecvt(size_t)): Initialize
      	_M_c_locale_codecvt member.
      	* testsuite/22_locale/codecvt_byname/50714.cc: New.
      
      From-SVN: r179948
      Paolo Carlini committed
  2. 13 Oct, 2011 15 commits