aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-11-08Merge from trunk.C11-atomicJoseph Myers
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/C11-atomic@204607 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08Move Cilk Plus Builtins node before Other Builtins nodeH.J. Lu
PR other/59055 * doc/extend.texi: Move Cilk Plus Builtins node before Other Builtins node. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204604 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-082013-11-08 Andrew MacLeod <amacleod@redhat.com>Joseph Myers
Joseph Myers <joseph@codesourcery.com> * ginclude/stdatomic.h: New file. * Makefile.in (USER_H): Add stdatomic.h. testsuite: 2013-11-08 Joseph Myers <joseph@codesourcery.com> * gcc.dg/atomic/stdatomic-compare-exchange-1.c, gcc.dg/atomic/stdatomic-compare-exchange-2.c, gcc.dg/atomic/stdatomic-compare-exchange-3.c, gcc.dg/atomic/stdatomic-compare-exchange-4.c, gcc.dg/atomic/stdatomic-exchange-1.c, gcc.dg/atomic/stdatomic-exchange-2.c, gcc.dg/atomic/stdatomic-exchange-3.c, gcc.dg/atomic/stdatomic-exchange-4.c, gcc.dg/atomic/stdatomic-fence.c, gcc.dg/atomic/stdatomic-flag.c, gcc.dg/atomic/stdatomic-generic.c, gcc.dg/atomic/stdatomic-kill-dep.c, gcc.dg/atomic/stdatomic-load-1.c, gcc.dg/atomic/stdatomic-load-2.c, gcc.dg/atomic/stdatomic-load-3.c, gcc.dg/atomic/stdatomic-load-4.c, gcc.dg/atomic/stdatomic-lockfree.c, gcc.dg/atomic/stdatomic-op-1.c, gcc.dg/atomic/stdatomic-op-2.c, gcc.dg/atomic/stdatomic-op-3.c, gcc.dg/atomic/stdatomic-op-4.c, gcc.dg/atomic/stdatomic-store-1.c, gcc.dg/atomic/stdatomic-store-2.c, gcc.dg/atomic/stdatomic-store-3.c, gcc.dg/atomic/stdatomic-store-4.c, gcc.dg/c11-stdatomic-1.c: New tests. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204603 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-082013-11-08 François Dumont <fdumont@gcc.gnu.org>François Dumont
* include/debug/safe_iterator.h (_BeforeBeginHelper<>::_S_Is): Take only a const safe iterator reference. (_BeforeBeginHelper<>::_S_Is_beginnest): Likewise. (__get_distance): Take only one type of iterator. (_Safe_iterator<>::_M_valid_range<>): Not template anymore. (_Safe_iterator<>::_M_get_sequence()): Return pointer to const sequence from a const_iterator and a pointer to sequence from an iterator. * include/debug/safe_iterator.tcc: Adapt. * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_M_valid_range<>): Not template anymore. (_Safe_local_iterator<>::_M_get_sequence()): Return pointer to const sequence from a const_iterator and a pointer to sequence from an iterator. * include/debug/safe_local_iterator.tcc: Adapt. * include/debug/forward_list (_BeforeBeginHelper<std::__debug::forward_list<>>): Adapt. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204598 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08gcc:Joseph Myers
* ginclude/stdatomic.h: Reformat contents of file. Include macro names in names of local temporaries. (memory_order): Do not use enum tag. (atomic_init): Use do { } while (0). (atomic_thread_fence, atomic_signal_fence): Make function-like macros. (atomic_is_lock_free): Pass object pointer to __atomic_is_lock_free. (__atomic_type_lock_free): New macro. (ATOMIC_BOOL_LOCK_FREE, ATOMIC_CHAR_LOCK_FREE) (ATOMIC_CHAR16_T_LOCK_FREE, ATOMIC_CHAR32_T_LOCK_FREE) (ATOMIC_WCHAR_T_LOCK_FREE, ATOMIC_SHORT_LOCK_FREE) (ATOMIC_INT_LOCK_FREE, ATOMIC_LONG_LOCK_FREE) (ATOMIC_LLONG_LOCK_FREE, ATOMIC_POINTER_LOCK_FREE): Define using __atomic_type_lock_free. (atomic_load_explicit): Use given memory order, not __ATOMIC_SEQ_CST. (atomic_exchange_explicit): Use __atomic_exchange with pointer to temporary for value. (atomic_compare_exchange_strong_explicit) (atomic_compare_exchange_weak_explicit): Use __atomic_compare_exchange. (atomic_flag): Make into a structure type. (ATOMIC_FLAG_INIT): Use braced initializer. (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit): Use __atomic_test_and_set. (atomic_flag_clear, atomic_flag_clear_explicit): Use __atomic_clear. gcc/testsuite: * gcc.dg/atomic/stdatomic-compare-exchange-1.c, gcc.dg/atomic/stdatomic-compare-exchange-2.c, gcc.dg/atomic/stdatomic-compare-exchange-3.c, gcc.dg/atomic/stdatomic-compare-exchange-4.c, gcc.dg/atomic/stdatomic-exchange-1.c, gcc.dg/atomic/stdatomic-exchange-2.c, gcc.dg/atomic/stdatomic-exchange-3.c, gcc.dg/atomic/stdatomic-exchange-4.c, gcc.dg/atomic/stdatomic-fence.c, gcc.dg/atomic/stdatomic-flag.c, gcc.dg/atomic/stdatomic-generic.c, gcc.dg/atomic/stdatomic-kill-dep.c, gcc.dg/atomic/stdatomic-load-1.c, gcc.dg/atomic/stdatomic-load-2.c, gcc.dg/atomic/stdatomic-load-3.c, gcc.dg/atomic/stdatomic-load-4.c, gcc.dg/atomic/stdatomic-lockfree.c, gcc.dg/atomic/stdatomic-op-1.c, gcc.dg/atomic/stdatomic-op-2.c, gcc.dg/atomic/stdatomic-op-3.c, gcc.dg/atomic/stdatomic-op-4.c, gcc.dg/atomic/stdatomic-store-1.c, gcc.dg/atomic/stdatomic-store-2.c, gcc.dg/atomic/stdatomic-store-3.c, gcc.dg/atomic/stdatomic-store-4.c, gcc.dg/c11-stdatomic-1.c: New tests. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/C11-atomic@204596 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08+2013-11-08 Balaji V. Iyer <balaji.v.iyer@intel.com>Balaji V. Iyer
+ + PR c/59039 + * runtime/cilk_fiber-unix.cpp: Fixed a crash in run() function + when optimization is turned on. + git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204592 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-082013-11-08 Cong Hou <congh@google.com>Cong Hou
PR tree-optimization/58508 * gcc.dg/vect/pr58508.c: Update. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204590 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 * config/arm/arm.c (arm_new_rtx_costs): Break after handlingKyrylo Tkachov
comparisons. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204584 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08compiler: Fix bogus init loop error with struct composite literal.Ian Lance Taylor
This should eventually be bug482.go in the master testsuite. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204583 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 * include/bits/regex_compiler.h (__detail::__has_contiguous_iter):Jonathan Wakely
vector<bool> storage is not contiguous. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204582 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 * tree-ssa-threadupdate.h (delete_thread_path): Declare.Jeff Law
* tree-ssa-threadupdate.c (delete_thread_path): New function. (ssa_redirect_edges, thread_block_1): Use it. (thread_through_loop_header, mark_threaded_blocks): Likewise. (thread_through_all_blocks, register_jump_thread): Likewise. * tree-ssa-threadedge.c (thread_across_edge): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204579 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08[ARM, AArch64] Make aarch-common.c files more robust.James Greenhalgh
gcc/ * config/arm/aarch-common.c (search_term): New typedef. (shift_rtx_costs): New array. (arm_rtx_shift_left_p): New. (arm_find_sub_rtx_with_search_term): Likewise. (arm_find_sub_rtx_with_code): Likewise. (arm_early_load_addr_dep): Add sanity checking. (arm_no_early_alu_shift_dep): Likewise. (arm_no_early_alu_shift_value_dep): Likewise. (arm_no_early_mul_dep): Likewise. (arm_no_early_store_addr_dep): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204575 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 * include/bits/regex_compiler.h (__detail::__compile_nfa): OverloadJonathan Wakely
so that std::basic_string<C> and std::vector<C> iterators dispatch to the const C* compiler. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204574 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 * include/bits/regex_compiler.h (__detail::_AnyMatcher,Jonathan Wakely
__detail::_CharMatcher, __detail::_BracketMatcher): Remove redundant _CharT template parameters. * include/bits/regex_compiler.tcc: Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204573 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 * include/bits/regex_automaton.h (__detail::_State, __detail::_NFA,Jonathan Wakely
__detail::_StateSeq): Remove redundant _CharT template parameters. * include/bits/regex_automaton.tcc: Likewise. * include/bits/regex_compiler.h (__detail::_Compiler): Likewise. (__compile_nfa): Add object generator for _Compiler. * include/bits/regex_compiler.tcc: Remove _CharT template parameters. * include/bits/regex_executor.h: Likewise. * include/bits/regex_executor.tcc: Likewise. * include/bits/regex.h (basic_regex): Assert char_type matches. Use __compile_nfa object generator. Remove _CharT template parameter. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204572 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 * include/bits/regex_automaton.h (__detail::_State): SplitJonathan Wakely
non-dependent parts into new _State_base. (__detail::_NFA): Likewise for _NFA_base. Use std::move() to avoid copies when inserting _MatcherT and _StateT objects. * include/bits/regex_automaton.tcc: Move member definitions to base class. Qualify dependent names. * include/bits/regex_compiler.h (__detail::_Compiler::_M_get_nfa): Make non-const and use std::move to avoid copying. * include/bits/regex_compiler.tcc: Likewise. * include/bits/regex_executor.h (__detail::_Executor::_M_is_word): Use array, so past-the-end iterator is valid. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204571 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-082013-11-08 Richard Biener <rguenther@suse.de>Richard Biener
PR tree-optimization/59047 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly. * gcc.dg/torture/pr59047.c: New testcase. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204566 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 * common.opt (fcheck-pointer-bounds): Move to ...Ilya Enkovich
* c-family/c.opt: ... here. * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove. (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED. * langhooks.h (lang_hooks): Remove chkp_supported field. * toplev.c (process_options): Remove chkp_supported check. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204563 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08libgcc: check for fenv.h in dfp configure checkBernhard Reutner-Fischer
uClibc can be built without fenv support, extend the configure check for decimal floating point to probe the existance of fenv.h, too. libgcc/ChangeLog: 2013-03-24 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> * configure.ac (libgcc_cv_dfp): Extend check to probe fenv.h availability. * configure: Regenerate git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204562 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-082013-11-08 Richard Biener <rguenther@suse.de>Richard Biener
PR tree-optimization/59038 PR tree-optimization/58955 * tree-loop-distribution.c (pg_add_dependence_edges): Revert previous change. Handle known dependences correctly. * gcc.dg/torture/pr59038.c: New testcase. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204561 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08compiler: Correct types when type conversion makes backend call.Ian Lance Taylor
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204559 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08Remove duplicate contents in gcc/config/rs6000/t-xilinxTom de Vries
2013-11-08 Tom de Vries <tom@codesourcery.com> * config/rs6000/t-xilinx: Remove duplicate contents. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204555 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08Daily bump.GCC Administrator
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204554 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07runtime: Fixes for Alpha.Ian Lance Taylor
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204551 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07Merge from trunk.Joseph Myers
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/C11-atomic@204550 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-072013-11-07 Janus Weil <janus@gcc.gnu.org>Janus Weil
PR fortran/58471 * primary.c (gfc_expr_attr): Check for result symbol. 2013-11-07 Janus Weil <janus@gcc.gnu.org> PR fortran/58471 * gfortran.dg/constructor_9.f90: New. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204547 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * config/i386/sfp-exceptions.c (__sfp_handle_exceptions): RewriteUros Bizjak
FP_EX_INEXACT handling. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204546 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * gcc.dg/atomic-compare-exchange-1.c,Joseph Myers
gcc.dg/atomic-compare-exchange-2.c, gcc.dg/atomic-compare-exchange-3.c, gcc.dg/atomic-compare-exchange-4.c, gcc.dg/atomic-compare-exchange-5.c, gcc.dg/atomic-exchange-1.c, gcc.dg/atomic-exchange-2.c, gcc.dg/atomic-exchange-3.c, gcc.dg/atomic-exchange-4.c, gcc.dg/atomic-exchange-5.c, gcc.dg/atomic-fence.c, gcc.dg/atomic-flag.c, gcc.dg/atomic-generic.c, gcc.dg/atomic-invalid.c, gcc.dg/atomic-load-1.c, gcc.dg/atomic-load-2.c, gcc.dg/atomic-load-3.c, gcc.dg/atomic-load-4.c, gcc.dg/atomic-load-5.c, gcc.dg/atomic-lockfree.c, gcc.dg/atomic-noinline.c, gcc.dg/atomic-op-1.c, gcc.dg/atomic-op-2.c, gcc.dg/atomic-op-3.c, gcc.dg/atomic-op-4.c, gcc.dg/atomic-op-5.c, gcc.dg/atomic-param.c, gcc.dg/atomic-store-1.c, gcc.dg/atomic-store-2.c, gcc.dg/atomic-store-3.c, gcc.dg/atomic-store-4.c, gcc.dg/atomic-store-5.c: Declare main as returning int. * gcc.dg/atomic-exchange-1.c, gcc.dg/atomic-exchange-2.c, gcc.dg/atomic-exchange-3.c, gcc.dg/atomic-exchange-4.c, gcc.dg/atomic-exchange-5.c: Separate increments of count from expression using value of count. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204545 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07gcc:Joseph Myers
2013-11-05 Andrew MacLeod <amacleod@redhat.com> Joseph Myers <joseph@codesourcery.com> * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC. (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE, TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE. (struct tree_base): Add atomic_flag field. * tree.h (TYPE_ATOMIC): New accessor macro. (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC. (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro. (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node) (atomicDI_type_node, atomicTI_type_node): New macros for type nodes. * tree.c (set_type_quals): Set TYPE_ATOMIC. (find_atomic_core_type): New function. (build_qualified_type): Adjust alignment for qualified types. (build_atomic_base): New function (build_common_tree_nodes): Build atomicQI_type_node, atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and atomicTI_type_node. * print-tree.c (print_node): Print atomic qualifier. * tree-pretty-print.c (dump_generic_node): Print atomic type attribute. * target.def (atomic_assign_expand_fenv): New hook. * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook. * doc/tm.texi: Regenerate. * targhooks.c (default_atomic_assign_expand_fenv): New function. * targhooks.h (default_atomic_assign_expand_fenv): Declare. * sync-builtins.def (__atomic_feraiseexcept): New built-in function. * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New function type. * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and IX86_BUILTIN_FNCLEX. (bdesc_special_args): Add __builtin_ia32_fnstenv, __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex. (ix86_expand_builtin): Handle the new built-in functions. (ix86_atomic_assign_expand_fenv): New function. (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro. * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV) (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs. (fnstenv, fldenv, fnstsw, fnclex): New insns. gcc/c-family: 2013-11-05 Andrew MacLeod <amacleod@redhat.com> Joseph Myers <joseph@codesourcery.com> * c-common.h (enum rid): Add RID_ATOMIC. * c-common.c (c_common_reswords): Add _Atomic. (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument. (keyword_is_type_qualifier): Accept RID_ATOMIC. * c-format.c (check_format_types): Check for extra _Atomic qualifiers in format argument. * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier. (pp_c_type_qualifier_list): Mention _Atomic in comment. gcc/c: 2013-11-05 Joseph Myers <joseph@codesourcery.com> Andrew MacLeod <amacleod@redhat.com> * c-aux-info.c (gen_type): Handle atomic qualifier. * c-decl.c (validate_proto_after_old_defn): Do not remove atomic qualifiers when compating types. (shadow_tag_warned): Handle atomic_p in declspecs. (quals_from_declspecs): Likewise. (start_decl): Use c_type_promotes_to when promoting argument types. (grokdeclarator): Handle _Atomic. (get_parm_info): Diagnose any qualifier on "void" as only parameter. (store_parm_decls_oldstyle): Do not remove atomic qualifiers when comparing types. Use c_type_promotes_to when promoting argument types. (finish_function): Use c_type_promotes_to when promoting argument types. (build_null_declspecs): Handle atomic_p in declspecs. (declspecs_add_qual): Handle RID_ATOMIC. * c-parser.c (c_token_starts_typename, c_token_is_qualifier) (c_token_starts_declspecs): Handle RID_ATOMIC. (c_parser_declspecs): Handle atomic type specifiers and qualifiers. (c_parser_typeof_specifier): Remove const and _Atomic qualifiers from types of expressions with atomic type. (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue. (c_parser_attribute_any_word): Handle RID_ATOMIC. (c_parser_initializer, c_parser_initelt, c_parser_initval) (c_parser_statement_after_labels, c_parser_switch_statement) (c_parser_for_statement, c_parser_expr_no_commas) (c_parser_conditional_expression, c_parser_binary_expression) (c_parser_cast_expression, c_parser_unary_expression) (c_parser_postfix_expression) (c_parser_postfix_expression_after_primary, c_parser_expression): Use convert_lvalue_to_rvalue. (c_parser_expression_conv, c_parser_expr_list): Document conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue. (c_parser_objc_synchronized_statement): Use convert_lvalue_to_rvalue. (c_parser_objc_selector): Handle RID_ATOMIC. (c_parser_objc_receiver, c_parser_array_notation): Use convert_lvalue_to_rvalue. * c-tree.h (ctsk_typeof): Adjust comment to mention use for _Atomic (type-name). (struct c_declspecs): Add atomic_p field. (convert_lvalue_to_rvalue): Declare. * c-typeck.c (c_type_promotes_to): Promote atomic types to corresponding atomic types. (qualify_type): Don't add _Atomic qualifiers from second argument. (comp_target_types): Do not allow _Atomic mismatches. (type_lists_compatible_p): Do not remove atomic qualifiers when comparing types. (really_atomic_lvalue, convert_lvalue_to_rvalue) (build_atomic_assign): New functions. (build_unary_op): Use build_atomic_assign for atomic increment and decrement. (build_conditional_expr): Do not treat _Atomic void as a qualified version of void. (build_modify_expr): Use build_atomic_assign for atomic LHS. (find_anonymous_field_with_type, convert_to_anonymous_field) (convert_for_assignment): Do not remove atomic qualifiers when comparing types. (digest_init): Do not accept initialization of arrays of atomic elements by string constants. (build_asm_expr): Use convert_lvalue_to_rvalue. (build_binary_op): Do not treat _Atomic void as a qualified version of void. gcc/objc: 2013-11-05 Andrew MacLeod <amacleod@redhat.com> * objc-act.c (objc_push_parm): Handle atomic qualifier. gcc/testsuite: 2013-11-05 Joseph Myers <joseph@codesourcery.com> * lib/target-supports.exp (check_effective_target_fenv_exceptions): New function. * lib/atomic-dg.exp, gcc.dg/atomic/atomic.exp: New files. * gcc.dg/atomic/c11-atomic-exec-1.c, gcc.dg/atomic/c11-atomic-exec-2.c, gcc.dg/atomic/c11-atomic-exec-3.c, gcc.dg/atomic/c11-atomic-exec-4.c, gcc.dg/atomic/c11-atomic-exec-5.c, gcc.dg/c11-atomic-1.c, gcc.dg/c11-atomic-2.c, gcc.dg/c11-atomic-3.c, gcc.dg/c90-atomic-1.c, gcc.dg/c99-atomic-1.c: New tests. libatomic: 2013-11-05 Joseph Myers <joseph@codesourcery.com> * fenv.c: New file. * libatomic.map (LIBATOMIC_1.1): New symbol version. Include __atomic_feraiseexcept. * configure.ac (libtool_VERSION): Change to 2:0:1. (fenv.h): Test for header. * Makefile.am (libatomic_la_SOURCES): Add fenv.c. * Makefile.in, auto-config.h.in, configure: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204544 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-072013-11-07 Steve Ellcey <sellcey@mips.com>Steve Ellcey
* config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory. * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag. (MULTILIB_DIRNAMES): Add fp64 directory. (MULTILIB_EXCEPTIONS): Add new exclusions. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204542 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * gimplify.c (gimple_regimplify_operands): Do not setAldy Hernandez
SSA_NAME_DEF_STMT. * graphite-sese-to-poly.c (remove_simple_copy_phi): Same. (rewrite_close_phi_out_of_ssa): Same. (rewrite_phi_out_of_ssa): Same. (rewrite_degenerate_phi): Same. (handle_scalar_deps_crossing_scop_limits): Same. * tree-if-conv.c (predicate_scalar_phi): Same. * tree-parloops.c (create_loads_for_reductions): Same. (create_final_loads_for_reduction): Same. (create_loads_and_stores_for_name): Same. (transform_to_exit_first_loop): Same. (create_parallel_loop): Same. * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom_children): Same. * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same. * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same. * tree-ssa-propagate.c (substitute_and_fold): Same. * tree-vect-loop.c (vect_finalize_reduction): Same. * tree-vect-stmts.c (vectorizable_call): Same. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204541 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * config/i386/sfp-exceptions.c (__sfp_handle_exceptions): HandleUros Bizjak
FP_EX_DENORM. Store result to volatile location after SSE division to close interrupt window. Remove unneeded fwait after x87 division since interrupt window will be closed by emitted fstp. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204540 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * config/pdp11/pdp11.c: Include dbxout.h.Mike Stump
* config/picochip/picochip.c: Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204539 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-072013-11-07 Cong Hou <congh@google.com>Cong Hou
PR tree-optimization/56764 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Combine alias checks if it is possible to amortize the runtime overhead. Return the number of alias checks after merging. * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Use the function vect_create_cond_for_alias_checks () to check the number of alias checks. 2013-11-07 Cong Hou <congh@google.com> * gcc.dg/vect/vect-alias-check.c: New. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204538 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * varpool.c (ctor_for_folding): Fix typo in comment.Jeff Law
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204537 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * Makefile.in: Regenerate.Thomas Schwinge
Follow-up to r204173. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204536 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:Joern Rennecke
reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204534 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * doc/invoke.texi (-fisolate-erroneous-paths): Document.Jeff Law
* gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths): No longer check if we have __builtin_trap, assume it's available. java/ * builtins.c (initialize_builtins): Provide __builtin_trap. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204533 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 gcc/Thomas Schwinge
* doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use linker plugins, too. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204521 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * Makefile.tpl: Fix typo.Thomas Schwinge
* Makefile.in: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204520 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07libgomp: Prepare for testcases without -fopenmp.Thomas Schwinge
libgomp/ * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to ALWAYS_CFLAGS. * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp. * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise. * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise. * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204519 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07Add missing include.Thomas Schwinge
libgomp/ * libgomp_g.h: Include <stddef.h> for size_t. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204518 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07Generally link to libgomp for -ftree-parallelize-loops=*.Thomas Schwinge
gcc/ * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*, link to libgomp and its dependencies. * config/ia64/hpux.h (LIB_SPEC): Likewise. * config/pa/pa-hpux11.h (LIB_SPEC): Likewise. * config/pa/pa64-hpux.h (LIB_SPEC): Likewise. * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies. libgomp/ * libgomp.spec.in: Update comment about libgomp's dependencies. * configure.ac: Likewise. * configure: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204517 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * tree-ssa-loop-niter.c: Include tree-ssanames.h.Jakub Jelinek
(determine_value_range): Add loop argument. Use get_range_info to improve range. (bound_difference): Adjust caller. * gcc.dg/tree-ssa/loop-39.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204516 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loopJakub Jelinek
latches from header PHI arguments from the latch edge. * gcc.dg/unroll_1.c: Add -fno-tree-vrp to dg-options. * gcc.dg/unroll_2.c: Likewise. * gcc.dg/unroll_3.c: Likewise. * gcc.dg/unroll_4.c: Likewise. * gcc.dg/vrp90.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204515 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-072013-11-07 Paolo Carlini <paolo.carlini@oracle.com>Paolo Carlini
PR c++/58176 * varasm.c (output_constant): Handle NULLPTR_TYPE. /testsuite 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58176 * g++.dg/cpp0x/nullptr30.C: New. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204514 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07Don't set misaligned_prologue_used twiceH.J. Lu
* config/i386/i386.c (ix86_expand_set_or_movmem): Don't set misaligned_prologue_used when it has been set. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204512 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07Fixed typo in ChangeLog.Yury Gribov
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204509 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07Allow integer literals as addresses in instrumented builtins.Yury Gribov
gcc/ PR sanitizer/59029 * gcc/asan.c (get_mem_refs_of_builtin_call): Allow integer literals as addresses in instrumented builtins. gcc-testsuite/ PR sanitizer/59029 * c-c++-common/asan/pr59029.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204508 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-07 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):Kyrylo Tkachov
Explain why plus_constant is not used. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204507 138bc75d-0d04-0410-961f-82ee72b054a4