- 24 Oct, 2011 2 commits
-
-
PR libstdc++/50834 * doc/xml/manual/using.xml: Update thread safety docs w.r.t. C++11. From-SVN: r180359
Jonathan Wakely committed -
From-SVN: r180358
GCC Administrator committed
-
- 23 Oct, 2011 19 commits
-
-
* config/sparc/sparc.c (sparc_split_regreg_legitimate): New function. * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate): Declare it. * config/sparc/sparc.md (DImode reg/reg split): Use it. (DFmode reg/reg split): Likewise. From-SVN: r180354
David S. Miller committed -
2011-10-23 Steven G. Kargl <kargl@gcc.gnu.org> * simplify.c (simplify_transformation_to_array): Fix memory leak. From-SVN: r180353
Steven G. Kargl committed -
* config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for generating fzero and fone instructions. (DImode const_int --> reg splitter): Only trigger for integer regs. From-SVN: r180352
David S. Miller committed -
* config/sparc/predicates.md (input_operand): Disallow vector constants other than 0 and -1. * config/sparc/sparc.c (sparc_preferred_reload_class): Return NO_REGS for vector constants other than 0 and -1. From-SVN: r180351
David S. Miller committed -
* config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG, SPARC_INT_REG_P): Define. (HARD_REGNO_NREGS): Use SPARC_INT_REG_P. (REGNO_OK_FOR_INDEX_P): Likewise. * config/sparc/sparc.c (gen_df_reg): Likewise. (eligible_for_return_delay): Likewise. (eligible_for_sibcall_delay): Likewise. (sparc_legitimate_address_p): Likewise. (emit_save_or_restore_regs): Likewise. (registers_ok_for_ldd_peep): Likewise. * config/spac/sparc.md (DI mode splitters): Likewise. (SF mode const splitters): Likewise. (DF mode splitters): Likewise. (32-bit DI mode logical op splitters): Likewise. From-SVN: r180350
David S. Miller committed -
re PR c++/50841 (bootstrap failure: narrowing conversion of '-0x00000000000000001' from 'int' in tree-object-size.c) /c-family 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50841 Revert: 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50810 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default Wnarrowing for C++0x and C++98. * c.opt ([Wnarrowing]): Update. /cp 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50841 Revert: 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50810 * typeck2.c (check_narrowing): Adjust OPT_Wnarrowing diagnostics. (digest_init_r): Call check_narrowing irrespective of the C++ dialect. * decl.c (check_initializer): Likewise. * semantics.c (finish_compound_literal): Likewise. /testsuite 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50841 Revert: 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50810 * g++.dg/cpp0x/warn_cxx0x2.C: New. * g++.dg/cpp0x/warn_cxx0x3.C: Likewise. 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50841 Revert: 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50810 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update. From-SVN: r180349
Paolo Carlini committed -
re PR c++/50841 (bootstrap failure: narrowing conversion of '-0x00000000000000001' from 'int' in tree-object-size.c) /c-family 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50841 Revert: 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50810 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default Wnarrowing for C++0x and C++98. * c.opt ([Wnarrowing]): Update. /cp 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50841 Revert: 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50810 * typeck2.c (check_narrowing): Adjust OPT_Wnarrowing diagnostics. (digest_init_r): Call check_narrowing irrespective of the C++ dialect. * decl.c (check_initializer): Likewise. * semantics.c (finish_compound_literal): Likewise. /testsuite 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50841 Revert: 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50810 * g++.dg/cpp0x/warn_cxx0x2.C: New. * g++.dg/cpp0x/warn_cxx0x3.C: Likewise. 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50841 Revert: 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50810 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update. From-SVN: r180348
Paolo Carlini committed -
From-SVN: r180347
Eric Botcazou committed -
* config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern. (VI248_256): Remove mode iterator. * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3 instead of gen_avx2_lshlv4di3. (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3. From-SVN: r180346
Uros Bizjak committed -
Calls to library functions now use entersyscall and exitsyscall as appropriate. This is a first step toward multiplexing goroutines onto threads. From-SVN: r180345
Ian Lance Taylor committed -
* config/i386/sse.md (sseintprefix): Rename from gthrfirstp. (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander. (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode iterator. Use sseintprefix mode attribute. (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander. (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode iterator. Use sseintprefix mode attribute. (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode attributes. (*avx2_gatherdi<mode>): Ditto. (*avx2_gatherdi<mode>256): Ditto. (VI48_AVX2): Remove mode iterator. (gthrlastfp): Remove mode attribute. From-SVN: r180344
Uros Bizjak committed -
/c-family 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50810 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default Wnarrowing for C++0x and C++98. * c.opt ([Wnarrowing]): Update. /cp 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50810 * typeck2.c (check_narrowing): Adjust OPT_Wnarrowing diagnostics. (digest_init_r): Call check_narrowing irrespective of the C++ dialect. * decl.c (check_initializer): Likewise. * semantics.c (finish_compound_literal): Likewise. /testsuite 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50810 * g++.dg/cpp0x/warn_cxx0x2.C: New. * g++.dg/cpp0x/warn_cxx0x3.C: Likewise. 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50810 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update. From-SVN: r180343
Paolo Carlini committed -
2011-10-23 Tom de Vries <tom@codesourcery.com> PR tree-optimization/50763 * gcc.dg/pr50763.c: New test. From-SVN: r180342
Tom de Vries committed -
2011-10-23 Tom de Vries <tom@codesourcery.com> PR tree-optimization/50763 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored out of ... (same_succ_flush_bbs): Use same_succ_flush_bb. (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs, release_last_vdef and delete_basic_block. (unlink_virtual_phi): New function. (update_vuses): Add and use vuse1_phi_args argument. Set var to SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that def_stmt2 is NULL. Use phi result as phi arg in case vuse1 or vuse2 is NULL_TREE. Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code to limit replacement of uses. Propagate phi argument for phis with a single argument. (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE. Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add vuse1_phi_args as argument to call to update_vuses. Call release_last_vdef, same_succ_flush_bb, delete_basic_block. Update CDI_DOMINATORS info. (tail_merge_optimize): Remove argument in call to purge_bbs. Remove call to free_dominance_info. Only call calculate_dominance_info once. From-SVN: r180341
Tom de Vries committed -
* fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR. PR tree-optimization/44683 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if we can be sure that there are no signed zeros involved. From-SVN: r180340
Eric Botcazou committed -
From-SVN: r180336
Jan Hubicka committed -
re PR target/50788 (ICE: in merge_overlapping_regs, at regrename.c:318 with -mavx -fpeel-loops -fstack-protector-all and __builtin_ia32_maskloadpd256) PR target/50788 * config/i386/sse.md (avx2_maskload<ssemodesuffix><avxsizesuffix>): Remove (match_dup 0). (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern. (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto. (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto. (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto. (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern. (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto. testsuite/ChangeLog: 2011-10-23 Uros Bizjak <ubizjak@gmail.com> PR target/50788 * testsuite/gcc.target/i386/pr50788.c: New test. From-SVN: r180335
Uros Bizjak committed -
PR tree-optimization/50819 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove the last argument. * tree-vect-loop.c (vect_analyze_loop_2): Update call to vect_analyze_data_ref_dependences. * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove the last argument. Check load-after-store dependence for unknown dependencies in basic blocks. (vect_analyze_data_ref_dependences): Update call to vect_analyze_data_ref_dependences. * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo. * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove. (vect_slp_analyze_bb_1): Update call to vect_analyze_data_ref_dependences. Don't call vect_bb_vectorizable_with_dependencies. From-SVN: r180334
Ira Rosen committed -
From-SVN: r180333
GCC Administrator committed
-
- 22 Oct, 2011 8 commits
-
-
PR libstdc++/50196 * acinclude.m4 (GLIBCXX_HAS_GTHREADS): Don't depend on _POSIX_TIMEOUTS. * configure: Regenerate. * include/std/mutex (timed_mutex, recursive_timed_mutex): Define conditionally on GTHREADS_HAS_MUTEX_TIMEDLOCK. * testsuite/lib/libstdc++.exp (check_v3_target_gthreads_timed): Define. * testsuite/lib/dg-options.exp (dg-require-gthreads-timed): Define. * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc: Use dg-require-gthreads-timed instead of dg-require-gthreads. * testsuite/30_threads/recursive_timed_mutex/native_handle/ typesizes.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/requirements/typedefs.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc: Likewise. * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise. * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise. * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise. * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise. * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise. * testsuite/30_threads/timed_mutex/requirements/standard_layout.cc: Likewise. * testsuite/30_threads/timed_mutex/requirements/typedefs.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise. * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise. * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise. * testsuite/30_threads/unique_lock/cons/5.cc: Likewise. * testsuite/30_threads/unique_lock/cons/6.cc: Likewise. * testsuite/30_threads/unique_lock/locking/3.cc: Likewise. * testsuite/30_threads/unique_lock/locking/4.cc: Likewise. From-SVN: r180329
Jonathan Wakely committed -
libcpp/ * include/internal.h (_cpp_remaining_tokens_num_in_context): Take the context to act upon. * lex.c (_cpp_remaining_tokens_num_in_context): Likewise. Update comment. (cpp_token_from_context_at): Likewise. (cpp_peek_token): Use the context to peek tokens from. From-SVN: r180328
Dodji Seketeli committed -
From-SVN: r180327
Ian Lance Taylor committed -
* config/sparc/sparc.c (short_branch, reg_unused_after): Delete. * config/sparc/sparc-protos.h (short_branch, reg_unused_after): Get rid of declarations. From-SVN: r180325
David S. Miller committed -
* config/sparc/sparc.h (sparc_costs): Remove extern decl. (struct processor_costs): Move from here.. * config/sparc/sparc.c (struct processor_costs): To here. (sparc_costs): Mark static. From-SVN: r180324
David S. Miller committed -
gcc/ * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS): Delete. * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine. (sparc_secondary_reload): New function. From-SVN: r180323
David S. Miller committed -
* obstack.h [!GNUC] (obstack_free): Avoid cast to int. * ansidecl.h (ENUM_BITFIELD): Always use enum in C++ From-SVN: r180321
DJ Delorie committed -
From-SVN: r180320
GCC Administrator committed
-
- 21 Oct, 2011 11 commits
-
-
2011-10-20 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/50821 * check.c (gfc_check_ishftc): Check args are constant before extracting the integer. From-SVN: r180316
Steven G. Kargl committed -
* config/c6x/c6x.c (c6x_asm_emit_except_personality, c6x_asm_init_sections): New functions. (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define. From-SVN: r180314
Paul Brook committed -
From-SVN: r180313
Paul Brook committed -
/cp 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> PR c++/45385 * init.c (build_vec_init): Early return error_mark_node if maxindex is -1. /c-family 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> PR c++/45385 * c-common.c (conversion_warning): Remove code looking for artificial operands. /testsuite 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> PR c++/45385 * g++.dg/warn/Wconversion4.C: New. From-SVN: r180312
Paolo Carlini committed -
PR target/50813 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle V4DImode and V8SImode for !TARGET_AVX2. * gcc.dg/torture/vshuf-32.inc: Add broadcast permutation from element other than first and reverse permutation. * gcc.dg/torture/vshuf-16.inc: Likewise. * gcc.dg/torture/vshuf-8.inc: Likewise. * gcc.dg/torture/vshuf-4.inc: Likewise. From-SVN: r180311
Jakub Jelinek committed -
PR bootstrap/50825 * sched-deps.c (add_dependence): If not doing predication, promote REG_DEP_CONTROL to REG_DEP_ANTI. From-SVN: r180310
Bernd Schmidt committed -
/cp 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> PR c++/31423 * typeck2.c (cxx_incomplete_type_diagnostic): Improve error message for invalid use of member function. /testsuite 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> PR c++/31423 * g++.dg/parse/error43.C: New. * g++.dg/parse/error44.C: Likewise. From-SVN: r180309
Paolo Carlini committed -
* config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X instead of X to avr_legitimize_reload_address. * config/avr/avr-protos.h (avr_legitimize_reload_address): Change first argument's type from rtx to rtx*. * config/avr/avr.c (avr_legitimize_reload_address): Ditto. Pass PX to push_reload instead of &X. Change log messages for better distinction. From-SVN: r180308
Georg-Johann Lay committed -
2011-10-21 Roland Stigge <stigge@antcom.de> PR translation/47064 * params.def: Fix typo "compilatoin" -> "compilation". From-SVN: r180307
Roland Stigge committed -
From-SVN: r180305
Uros Bizjak committed -
re PR driver/50740 (CPUID leaf 7 for BMI/BMI2/AVX2 feature detection not qualified with max_level and doesn't use subleaf) PR target/50740 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only if max_level allows that. testsuite/ChangeLog: PR target/50740 * gcc.target/i386/avx2-check.h (main): Check CPUID level correctly. * gcc.target/i386/bmi2-check.h: Ditto. From-SVN: r180304
H.J. Lu committed
-