- 28 Mar, 2015 3 commits
-
-
2015-03-28 Paolo Carlini <paolo.carlini@oracle.com> PR c++/42328 * g++.dg/template/friend58.C: New. * g++.dg/template/friend59.C: Likewise. From-SVN: r221751
Paolo Carlini committed -
PR libstdc++/65420 * include/bits/regex_constants.h: Use constexpr variables for flags. * testsuite/28_regex/constants/constexpr.cc: New testcase. From-SVN: r221750
Tim Shen committed -
From-SVN: r221749
GCC Administrator committed
-
- 27 Mar, 2015 27 commits
-
-
PR ipa/65588 * symtab.c (symtab_node::get_partitioning_class): Register vars are duplicated. * varpool.c (symbol_table::output_variables) Do not assemble unefined decls for non-symbols. From-SVN: r221745
Jan Hubicka committed -
2015-03-27 Tobias Burnus <burnus@net-b.de> PR c/65586 gcc/c/ * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't error out. (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute, c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare): Update calls to not error for skipped omp pragmas with -fopenmp-simd. gcc/cp/ * parser.c (cp_parser_omp_for, cp_parser_omp_parallel, cp_parser_omp_distribute, cp_parser_omp_teams, cp_parser_omp_target, cp_parser_omp_declare): Don't show error for skipped omp pragmas with -fopenmp-simd. gcc/testsuite/ * g++.dg/gomp/openmp-simd-3.C: New. * gcc.dg/gomp/openmp-simd-3.c: New. From-SVN: r221744
Tobias Burnus committed -
Protected data symbol means that it can't be pre-emptied. It doesn't mean its address won't be external. This is true for pointer to protected function. With copy relocation, address of protected data defined in the shared library may also be external. We only know that for sure at run-time. TARGET_BINDS_LOCAL_P should return false on protected data symbol. gcc/ PR target/65248 * output.h (default_binds_local_p_2): New. * varasm.c (default_binds_local_p_2): Renamed to ... (default_binds_local_p_3): This. Don't return true on protected data symbol if protected data may be external. (default_binds_local_p): Use default_binds_local_p_3. (default_binds_local_p_1): Likewise. (default_binds_local_p_2): New. * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to default_binds_local_p_2 if TARGET_MACHO is undefined. gcc/testsuite/ PR target/65248 * gcc.target/i386/pr65248-1.c: New file. * gcc.target/i386/pr65248-2.c: Likewise. * gcc.target/i386/pr65248-3.c: Likewise. * gcc.target/i386/pr65248-4.c: Likewise. From-SVN: r221742
H.J. Lu committed -
PR target/65593 * config/i386/i386.c (legitimize_pic_address): If base is SYMBOL_REF or LABEL_REF using %rip addressing, force it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register. * gcc.c-torture/compile/pr65593.c: New test. From-SVN: r221741
Jakub Jelinek committed -
2015-03-27 Paolo Carlini <paolo.carlini@oracle.com> PR c++/59329 * g++.dg/cpp1y/constexpr-assert1.C: New. From-SVN: r221740
Paolo Carlini committed -
From-SVN: r221739
Uros Bizjak committed -
PR c++/65556 * semantics.c (finish_switch_cond): If the unlowered type is not an enum, use the type of the condition. * c-c++-common/pr65556.c: New test. From-SVN: r221738
Marek Polacek committed -
PR c++/65509 * decl.c (make_rtl_for_nonlocal_decl): Don't defer static constants. From-SVN: r221737
Jason Merrill committed -
re PR target/65531 (ICE: symtab_node::verify failed: Two symbols with same comdat_group are not linked by the same_comdat_group list. with -fcheck-pointer-bounds -mmpx) PR target/65531 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of comdat groups. From-SVN: r221736
Jan Hubicka committed -
PR ipa/65600 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case of optimized out indirect call. (redirect_to_unreachable): Always build symbol table node for BUILT_IN_UNREACHABLE * g++.dg/torture/pr65600.C: New testcase. From-SVN: r221735
Jan Hubicka committed -
2015-03-27 Vladimir Makarov <vmakarov@redhat.com> PR target/65407 * ira-costs.c (record_reg_classes): Process all constraint string containing 0-9. 2015-03-27 Vladimir Makarov <vmakarov@redhat.com> PR target/65407 * gcc.target/i386/avx512f-kandnw-1.c: Add scanning kmovw. From-SVN: r221734
Vladimir Makarov committed -
* config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not memory_operand. From-SVN: r221732
Bernd Schmidt committed -
* config/c6x/constraints.md (S3): New constraint. * config/c6x/c6x.md (real_jump): Use it. From-SVN: r221731
Bernd Schmidt committed -
PR libstdc++/65499 * include/std/chrono: Add using-directive for literals to std::chrono. * testsuite/20_util/duration/literals/65499.cc: New. From-SVN: r221730
Jonathan Wakely committed -
* gfortran.dg/unlimited_polymorphic_24.f03: Added copyright statement and cleanup. Fixed typos. From-SVN: r221729
Andre Vehreschild committed -
2015-03-27 Tom de Vries <tom@codesourcery.com> PR testsuite/65594 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare. (init, check): New function. (foo): Change return type to void. (main): Call init and check. From-SVN: r221728
Tom de Vries committed -
2015-03-27 Tom de Vries <tom@codesourcery.com> PR testsuite/65594 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define. (foo): Use M for non-inner loops to scale down test-case. From-SVN: r221727
Tom de Vries committed -
PR middle-end/65595 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only do redirection if the call is not optimized out. * gcc.c-torture/compile/pr65595.c: New testcase. From-SVN: r221726
Jan Hubicka committed -
re PR target/65495 (ICE: chkp_make_addressed_object_bounds: Unexpected tree code const_decl with -fcheck-pointer-bounds -mmpx and fortran) PR target/65495 * c-family/c.opt (fcheck-pointer-bounds): List supported languages. (fchkp-check-incomplete-type): Add LTO. (fchkp-zero-input-bounds-for-main): Likewise. (fchkp-first-field-has-own-bounds): Likewise. (fchkp-narrow-bounds): Likewise. (fchkp-narrow-to-innermost-array): Likewise. (fchkp-use-static-bounds): Likewise. (fchkp-use-static-const-bounds): Likewise. (fchkp-treat-zero-dynamic-size-as-infinite): Likewise. From-SVN: r221725
Ilya Enkovich committed -
From-SVN: r221724
Marek Polacek committed -
PR sanitizer/65583 * ubsan.c (ubsan_create_edge): New function. (instrument_bool_enum_load): Call it. (instrument_nonnull_arg): Likewise. (instrument_nonnull_return): Likewise. (instrument_object_size): Likewise. * g++.dg/ubsan/pr65583.C: New test. From-SVN: r221723
Marek Polacek committed -
* lto-streamer.h (class lto_location_cache): Turn loc_cache into auto_vec. From-SVN: r221722
Jan Hubicka committed -
* lto-streamer.h (class lto_location_cache): New. (struct data_in): Add location_cache. (lto_input_location): Update prototype. (stream_input_location_now): New. * streamer-hooks.h (struct streamer_hooks): Make input_location to take pointer to location. (stream_input_location): Update. * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h (warn_odr): Apply location cache before warning. (lto_input_location): Update prototype. * gimple-streamer-in.c (input_phi, input_gimple_stmt): Use stream_input_location_now. * lto-streamer-in.c (lto_location_cache::current_cache): New static variable. (lto_location_cache::cmp_loc): New function. (lto_location_cache::apply_location_cache): New function. (lto_location_cache::accept_location_cache): New function. (lto_location_cache::revert_location_cache): New function. (lto_location_cache::input_location): New function. (lto_input_location): Do location caching. (stream_input_location_now): New function. (input_eh_region, input_struct_function_base): Use stream_input_location_now. (lto_data_in_create): use new. (lto_data_in_delete): Use delete. * tree-streamer-in.c (unpack_ts_block_value_fields, unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields, lto_input_ts_exp_tree_pointers): Update for cached location api. From-SVN: r221721
Jan Hubicka committed -
PR lto/65536 * lto-streamer.h (class lto_location_cache): New. (struct data_in): Add location_cache. (lto_input_location): Update prototype. (stream_input_location_now): New. * streamer-hooks.h (struct streamer_hooks): Make input_location to take pointer to location. (stream_input_location): Update. * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h (warn_odr): Apply location cache before warning. (lto_input_location): Update prototype. * gimple-streamer-in.c (input_phi, input_gimple_stmt): Use stream_input_location_now. * lto/lto.c (unify_scc): Revert location cache when unification suceeded. (lto_read_decls): Accept location cache after sucess; apply location cache before calling debug hooks. * lto-streamer-in.c (lto_location_cache::current_cache): New static variable. (lto_location_cache::cmp_loc): New function. (lto_location_cache::apply_location_cache): New function. (lto_location_cache::accept_location_cache): New function. (lto_location_cache::revert_location_cache): New function. (lto_location_cache::input_location): New function. (lto_input_location): Do location caching. (stream_input_location_now): New function. (input_eh_region, input_struct_function_base): Use stream_input_location_now. (lto_data_in_create): use new. (lto_data_in_delete): Use delete. * tree-streamer-in.c (unpack_ts_block_value_fields, unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields, lto_input_ts_exp_tree_pointers): Update for cached location api. From-SVN: r221720
Jan Hubicka committed -
PR ipa/65076 * passes.def: Add pass_nothrow. * ipa-pure-const.c: (pass_data_nothrow): New. (pass_nothrow): New. (pass_nothrow::execute): New. (make_pass_nothrow): New. * tree-pass.h (make_pass_nothrow): Declare. From-SVN: r221719
Jan Hubicka committed -
ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for edge to change by speculation resolution or redirection. * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for edge to change by speculation resolution or redirection. (edge_set_predicate): Likewise. (inline_summary_t::duplicate): Likewise. (remap_edge_summaries): Likewise. * gcc.c-torture/compile/20150327.c: New testcase. From-SVN: r221718
Jan Hubicka committed -
From-SVN: r221717
GCC Administrator committed
-
- 26 Mar, 2015 10 commits
-
-
* ipa-inline.c (check_maybe_up, check_maybe_down, check_match): New macros. (can_inline_edge_p): Relax option matching for always inline functions. From-SVN: r221714
Jan Hubicka committed -
From-SVN: r221711
Eric Botcazou committed -
From-SVN: r221710
Jan Hubicka committed -
re PR target/65561 (avx512fintrin.h:5344:1: internal compiler error: in curr_insn_transform, at lra-constraints.c:3494) PR target/65561 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm): Check operand 4 and operand 0 for equality. (avx512f_vextract<shuffletype>32x4_1_maskm): Check operand 6 and operand 0 for equality. (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0 for equality. (vec_extract_hi_<mode>_maskm): Ditto. From-SVN: r221709
Uros Bizjak committed -
PR libstdc++/58038 PR libstdc++/60421 * include/std/thread (this_thread::sleep_for): Check for negative durations. (this_thread::sleep_until): Check for times in the past. * testsuite/30_threads/this_thread/58038.cc: New. * testsuite/30_threads/this_thread/60421.cc: New. From-SVN: r221708
Jonathan Wakely committed -
* cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring dead calls back to live. (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency cross check to ... (cgraph_node::verify_node): ... here; verify only callee edges, not caller. From-SVN: r221707
Jan Hubicka committed -
* ipa-inline-analysis.c (redirect_to_unreachable): New function. (edge_set_predicate): Use it to mark unreachable edges. (inline_summary_t::duplicate): Remove unnecesary code. (remap_edge_summaries): Likewise. (dump_inline_summary): Report contains_cilk_spawn. (compute_inline_parameters): Compute contains_cilk_spawn. (inline_read_section, inline_write_summary): Stream contains_cilk_spawn. * ipa-inline.c (can_inline_edge_p): Do not tuch DECL_STRUCT_FUNCTION that may not be available; use CIF_CILK_SPAWN for cilk; fix optimization attribute checks; remove check for callee_fun->can_throw_non_call_exceptions and replace it by optimization attribute check; check for flag_exceptions. * ipa-inline-transform.c (inline_call): Maintain DECL_FUNCTION_PERSONALITY * ipa-inline.h (inline_summary): Add contains_cilk_spawn. From-SVN: r221706
Jan Hubicka committed -
PR c++/65154 * init.c (build_vec_init): Fix initializing aggregates with empty init list. From-SVN: r221704
Mikhail Maltsev committed -
PR libstdc++/62259 PR libstdc++/65147 * include/std/atomic (atomic<T>): Increase alignment for types with the same size as one of the integral types. * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number. * testsuite/29_atomics/atomic/62259.cc: New. From-SVN: r221703
Jonathan Wakely committed -
PR tree-optimization/65551 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION only for INTEGRAL_TYPE_P types. From-SVN: r221702
Jakub Jelinek committed
-