1. 21 Feb, 2014 28 commits
  2. 20 Feb, 2014 12 commits
    • re PR target/57896 (ICE in expand_expr_real_2) · aa637f66
      	PR target/57896
      	* config/i386/i386.c (expand_vec_perm_interleave2): Don't call
      	gen_reg_rtx if d->testing_p.
      	(expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
      	if d->testing_p and we will certainly return true.
      	(expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
      	if d->testing_p.
      
      From-SVN: r207969
      Jakub Jelinek committed
    • emit-rtl.c (gen_reg_rtx): Assert that crtl->emit.regno_pointer_align_length is non-zero. · 004a7e45
      	* emit-rtl.c (gen_reg_rtx): Assert that
      	crtl->emit.regno_pointer_align_length is non-zero.
      
      From-SVN: r207968
      Uros Bizjak committed
    • lto-partition.c (add_symbol_to_partition_1, [...]): Aliases have no defined size. · 39434bce
      
      	* lto-partition.c (add_symbol_to_partition_1,
      	undo_partition, lto_balanced_map): Aliases have no
      	defined size.
      	(lto_balanced_map): Do not follow refering variables
      	if they can be optimized out.
      
      From-SVN: r207967
      Jan Hubicka committed
    • re PR c++/60272 (atomic<>::compare_exchange_weak has spurious store and can cause race conditions) · 672ce939
      PR c++/60272
      
      gcc/
      	* builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
      	on failure the store back into EXPECT.
      libatomic/
      	* cas_n.c (libat_compare_exchange): Conditionalize on failure
      	the store back to EPTR.
      
      From-SVN: r207966
      Richard Henderson committed
    • nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum. · 95ce7613
      2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
      	    Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	* config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
      	* config/nios2/nios2.c (nios2_function_profiler):
      	Add -fPIC (flag_pic == 2) support.
      	(nios2_handle_custom_fpu_cfg): Fix warning parameter.
      	(nios2_large_offset_p): New function.
      	(nios2_unspec_reloc_p): Move up position, update to use
      	nios2_large_offset_p.
      	(nios2_unspec_address): Remove function.
      	(nios2_unspec_offset): New function.
      	(nios2_large_got_address): New function.
      	(nios2_got_address): Add large offset support.
      	(nios2_legitimize_tls_address): Update usage of removed and new
      	functions.
      	(nios2_symbol_binds_local_p): New function.
      	(nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
      	(nios2_legitimize_address): Update to use nios2_large_offset_p.
      	(nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
      	(nios2_print_operand): Merge H/L processing, add hiadj/lo
      	processing for (const (unspec ...)).
      	(nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
      
      	gcc/testsuite/
      	* gcc.target/nios2/biggot-1.c: New.
      	* gcc.target/nios2/biggot-2.c: New.
      
      	libgcc/
      	* config/nios2/t-nios2 (CRTSTUFF_T_CFLAGS): Add -mno-gpopt.
      	* config/nios2/crti.S: Remove .file directive.
      	* config/nios2/crtn.S: Likewise.
      
      From-SVN: r207965
      Chung-Lin Tang committed
    • Rename shared_mutex to shared_timed_mutex per C++14 acceptance of N3891. · 4bbfc5fa
      2014-02-20  Ed Smith-Rowland  <3dw4rd@verizon.net>
      
      	Rename shared_mutex to shared_timed_mutex per C++14 acceptance of N3891.
      	* include/std/shared_mutex: Rename shared_mutex to shared_timed_mutex.
      	* testsuite/30_threads/shared_lock/locking/2.cc: Ditto.
      	* testsuite/30_threads/shared_lock/locking/4.cc: Ditto.
      	* testsuite/30_threads/shared_lock/locking/1.cc: Ditto.
      	* testsuite/30_threads/shared_lock/locking/3.cc: Ditto.
      	* testsuite/30_threads/shared_lock/requirements/
      	explicit_instantiation.cc: Ditto.
      	* testsuite/30_threads/shared_lock/requirements/typedefs.cc: Ditto.
      	* testsuite/30_threads/shared_lock/cons/2.cc: Ditto.
      	* testsuite/30_threads/shared_lock/cons/4.cc: Ditto.
      	* testsuite/30_threads/shared_lock/cons/1.cc: Ditto.
      	* testsuite/30_threads/shared_lock/cons/6.cc: Ditto.
      	* testsuite/30_threads/shared_lock/cons/3.cc: Ditto.
      	* testsuite/30_threads/shared_lock/cons/5.cc: Ditto.
      	* testsuite/30_threads/shared_lock/modifiers/2.cc: Ditto.
      	* testsuite/30_threads/shared_lock/modifiers/1.cc: Ditto.
      	* testsuite/30_threads/shared_mutex/requirements/
      	standard_layout.cc: Ditto.
      	* testsuite/30_threads/shared_mutex/cons/copy_neg.cc: Ditto.
      	* testsuite/30_threads/shared_mutex/cons/1.cc: Ditto.
      	* testsuite/30_threads/shared_mutex/cons/assign_neg.cc: Ditto.
      	* testsuite/30_threads/shared_mutex/try_lock/2.cc: Ditto.
      	* testsuite/30_threads/shared_mutex/try_lock/1.cc: Ditto.
      
      From-SVN: r207964
      Ed Smith-Rowland committed
    • re PR c++/58873 ([c++11] ICE with __underlying_type for broken enum) · f1dbbe42
      	PR c++/58873
      	* parser.c (cp_parser_functional_cast): Treat NULL_TREE
      	valued type argument as error_mark_node.
      
      From-SVN: r207961
      Kai Tietz committed
    • re PR go/60288 (gccgo crashes compiling '*func_ptr(0)') · 7f5e8188
      	PR go/60288
      compiler: Avoid crash, give error for *&x when x is not addressable.
      
      From-SVN: r207960
      Ian Lance Taylor committed
    • tree-cfg.c (replace_uses_by): Mark altered BBs before doing the substitution. · efd2d3c8
      2014-02-20  Richard Biener  <rguenther@suse.de>
      
      	* tree-cfg.c (replace_uses_by): Mark altered BBs before
      	doing the substitution.
      	(verify_gimple_assign_single): Also verify bare MEM_REFs
      	on the lhs.
      
      From-SVN: r207958
      Richard Biener committed
    • re PR c++/58835 (ICE with __PRETTY_FUNCTION__ in broken function) · f2381074
      	PR c++/58835
      	* semantics.c (finish_fname): Handle error_mark_node.
      
      From-SVN: r207955
      Kai Tietz committed
    • 2014-02-20 Sergey Rybin <rybin@adacore.com frybin> · 350b83cc
      	* gnat_ugn.texi, vms_data.ads (gnatelim): Add description of
      	project-specific options.
      
      2014-02-20  Ed Schonberg  <schonberg@adacore.com>
      
      	* a-cbdlli.adb (Insert): When capacity exceeded, raise Capacity_Error,
      	not Constraint_Error.
      	* a-cbmutr.adb (Append_Child, Insert_Child, Prepend_Child): Ditto.
      	* sem_ch5.adb: Code clean up.
      
      From-SVN: r207954
      Arnaud Charlet committed
    • [multiple changes] · 8880426d
      2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_prag.adb (Usage_Error): Remove local
      	constant Typ. Remove the specialized diagnostics for unconstrained
      	or tagged items as those are not part of the explicit input set
      	of the related subprogram and should not be flagged.
      
      2014-02-20  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_attr.adb: Add guard to preserve all errors.
      
      2014-02-20  Vincent Celier  <celier@adacore.com>
      
      	* switch-m.adb (Normalize_Compiler_Switches): Take into account
      	switches that are recorded in ALI files: -gnateA, -gnateE,
      	-gnateF, -gnateinn, -gnateu, -gnateV and -gnateY.
      
      2014-02-20  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch5.adb (Analyze_Iterator_Specification): Check legality
      	of an element iterator form over a formal container with an
      	Iterable aspect.
      	* exp_ch5.adb (Build_Formal_Container_Iteration): Utility
      	to create declaration and loop statements for both forms of
      	container iterators.
      	(Expand_Formal_Container_Element_Iterator): New procedure
      	to handle loops of the form  "for E of C" when C is a formal
      	container.
      	(Expand_Formal_Container_Iterator): Code cleanup.
      
      From-SVN: r207953
      Arnaud Charlet committed