platform/upstream/gcc.git
10 years agoEliminate n_basic_blocks macro
David Malcolm [Tue, 19 Nov 2013 01:13:23 +0000 (01:13 +0000)]
Eliminate n_basic_blocks macro

gcc/
* basic-block.h (n_basic_blocks_for_function): Rename macro to...
(n_basic_blocks_for_fn): ...this.

(n_basic_blocks): Eliminate macro as work towards making uses of
cfun be explicit.

* cfgloop.c (init_loops_structure): Update for renaming of
"n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
* graph.c (draw_cfg_nodes_no_loops): Likewise.
* ipa-utils.c (ipa_merge_profiles): Likewise.
* lto-streamer-in.c (make_new_block): Likewise.
* tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
(dump_function_to_file): Likewise.

* alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
macro with "n_basic_blocks_for_fn (cfun)".
* bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
(duplicate_computed_gotos): Likewise.
(reorder_basic_blocks): Likewise.
* bt-load.c (augment_live_range): Likewise.
* cfg.c (expunge_block): Likewise.
(compact_blocks): Likewise.
* cfganal.c (single_pred_before_succ_order): Likewise.
(compute_idf): Likewise.
(flow_dfs_compute_reverse_init): Likewise.
(pre_and_rev_post_order_compute): Likewise.
(pre_and_rev_post_order_compute_fn): Likewise.
(inverted_post_order_compute): Likewise.
(post_order_compute): Likewise.
(print_edge_list): Likewise.
(find_unreachable_blocks): Likewise.
(mark_dfs_back_edges): Likewise.
* cfgcleanup.c (try_optimize_cfg): Likewise.
(try_forward_edges): Likewise.
* cfghooks.c (dump_flow_info): Likewise.
* cfgloop.c (verify_loop_structure): Likewise.
(get_loop_body): Likewise.
(flow_loops_find): Likewise.
* cfgloopmanip.c (add_loop): Likewise.
(remove_path): Likewise.
(find_path): Likewise.
* cfgrtl.c (rtl_flow_call_edges_add): Likewise.
(rtl_verify_bb_layout): Likewise.
(entry_of_function): Likewise.
(rtl_create_basic_block): Likewise.
* coverage.c (coverage_compute_cfg_checksum): Likewise.
* cprop.c (one_cprop_pass): Likewise.
(is_too_expensive): Likewise.
* df-core.c (df_compute_cfg_image): Likewise.
(df_compact_blocks): Likewise.
(df_worklist_dataflow_doublequeue): Likewise.
* dominance.c (calculate_dominance_info): Likewise.
(calc_dfs_tree): Likewise.
(calc_dfs_tree_nonrec): Likewise.
(init_dom_info): Likewise.
* domwalk.c (cmp_bb_postorder): Likewise.
* function.c (thread_prologue_and_epilogue_insns): Likewise.
(generate_setjmp_warnings): Likewise.
* fwprop.c (build_single_def_use_links): Likewise.
* gcse.c (is_too_expensive): Likewise.
(one_code_hoisting_pass): Likewise.
(one_pre_gcse_pass): Likewise.
* graphite.c (graphite_initialize): Likewise.
* haifa-sched.c (haifa_sched_init): Likewise.
* ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
* ira.c (split_live_ranges_for_shrink_wrap): Likewise.
* ira-build.c (ira_build): Likewise.
* lcm.c (compute_nearerout): Likewise.
(compute_available): Likewise.
(compute_laterin): Likewise.
(compute_antinout_edge): Likewise.
* lra-lives.c (lra_create_live_ranges): Likewise.
* lra.c (has_nonexceptional_receiver): Likewise.
* mcf.c (create_fixup_graph): Likewise.
* profile.c (branch_prob): Likewise.
* reg-stack.c (convert_regs_2): Likewise.
* regrename.c (regrename_analyze): Likewise.
* reload1.c (has_nonexceptional_receiver): Likewise.
* reorg.c (dbr_schedule): Likewise.
* sched-deps.c (sched_deps_init): Likewise.
* sched-ebb.c (schedule_ebbs): Likewise.
* sched-rgn.c (extend_regions): Likewise.
(schedule_insns): Likewise.
(sched_rgn_init): Likewise.
(extend_rgns): Likewise.
(haifa_find_rgns): Likewise.
* sel-sched-ir.c (recompute_rev_top_order): Likewise.
(sel_recompute_toporder): Likewise.
* sel-sched.c (run_selective_scheduling): Likewise.
* store-motion.c (one_store_motion_pass): Likewise.
(remove_reachable_equiv_notes): Likewise.
* tracer.c (tracer): Likewise.
(tail_duplicate): Likewise.
* tree-cfg.c (gimple_flow_call_edges_add): Likewise.
(dump_cfg_stats): Likewise.
(gimple_dump_cfg): Likewise.
(create_bb): Likewise.
(build_gimple_cfg): Likewise.
* tree-cfgcleanup.c (merge_phi_nodes): Likewise.
* tree-inline.c (optimize_inline_calls): Likewise.
(fold_marked_statements): Likewise.
* tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
* tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
* tree-ssa-loop-im.c (analyze_memory_references): Likewise.
* tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
* tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
* tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
* tree-ssa-pre.c (do_pre): Likewise.
(init_pre): Likewise.
(compute_avail): Likewise.
* tree-ssa-reassoc.c (init_reassoc): Likewise.
* tree-ssa-sccvn.c (init_scc_vn): Likewise.
* tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
(init_worklist): Likewise.
* tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
* var-tracking.c (variable_tracking_main_1): Likewise.
(vt_find_locations): Likewise.
(vt_stack_adjustments): Likewise.
* config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
* config/spu/spu.c (spu_machine_dependent_reorg): Likewise.

From-SVN: r204995

10 years agoconfigure.ac: Check for support of __atomic extensions.
Ian Lance Taylor [Tue, 19 Nov 2013 01:09:47 +0000 (01:09 +0000)]
configure.ac: Check for support of __atomic extensions.

* configure.ac: Check for support of __atomic extensions.
* internal.h: Declare or #define atomic functions for use in
backtrace code.
* atomic.c: New file.
* dwarf.c (dwarf_lookup_pc): Use atomic functions.
(dwarf_fileline, backtrace_dwarf_add): Likewise.
* elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
(backtrace_initialize): Likewise.
* fileline.c (fileline_initialize): Likewise.
* Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
* configure, config.h.in, Makefile.in: Rebuild.

From-SVN: r204994

10 years agolibgcov-driver.c (run_accounted): Make global level static.
Jan Hubicka [Tue, 19 Nov 2013 01:08:02 +0000 (02:08 +0100)]
libgcov-driver.c (run_accounted): Make global level static.

* libgcov-driver.c (run_accounted): Make global level static.
(gcov_exit_merge_summary): Silence warning; do not clear
run_accounted here.
(gcov_exit): Clear it here.

From-SVN: r204993

10 years ago* profile.c (compute_branch_probabilities): Do not sanity check run_max.
Jan Hubicka [Tue, 19 Nov 2013 00:53:13 +0000 (01:53 +0100)]
* profile.c (compute_branch_probabilities): Do not sanity check run_max.

From-SVN: r204992

10 years agolibgcov-driver.c (gcov_exit_merge_summary): Fix setting run_accounted.
Jan Hubicka [Tue, 19 Nov 2013 00:50:53 +0000 (01:50 +0100)]
libgcov-driver.c (gcov_exit_merge_summary): Fix setting run_accounted.

* libgcov-driver.c (gcov_exit_merge_summary): Fix setting
run_accounted.

From-SVN: r204991

10 years agoDaily bump.
GCC Administrator [Tue, 19 Nov 2013 00:16:46 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r204990

10 years agotree.c (int_fits_type_p): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
Kenneth Zadeck [Tue, 19 Nov 2013 00:00:17 +0000 (00:00 +0000)]
tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.

2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>

* tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
GET_MODE_PRECISION.
* fold-const.c (fold_single_bit_test_into_sign_test)
(fold_binary_loc):  Change GET_MODE_BITSIZE to
GET_MODE_PRECISION.

From-SVN: r204987

10 years agoThis patch fixes an lto profiledbootstrap failure with -freorder-blocks-and-partition...
Teresa Johnson [Mon, 18 Nov 2013 22:38:51 +0000 (22:38 +0000)]
This patch fixes an lto profiledbootstrap failure with -freorder-blocks-and-partition enabled.

This patch fixes an lto profiledbootstrap failure with
-freorder-blocks-and-partition enabled. Currently compgotos
is the only pass that goes into cfglayout mode after bb reordering,
which is undesireable (and in the case of -freorder-blocks-and-partition
can cause illegal partitioning) because of the optimizations performed
on the cfg when going into cfglayout mode. Moved compgoto before
bb reordering to avoid these problems.

2013-11-18  Teresa Johnson  <tejohnson@google.com>

* gcc/cfgrtl.c (cfg_layout_initialize): Assert if we
try to go into cfglayout after bb reordering.
* gcc/passes.def: Move compgotos before bb reordering
since it goes into cfglayout.

From-SVN: r204985

10 years agoRemove all_lto_gen_passes, replace with plain function calls
Bernd Schmidt [Mon, 18 Nov 2013 22:16:37 +0000 (22:16 +0000)]
Remove all_lto_gen_passes, replace with plain function calls

* cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
* lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
static.
(pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
* lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
* pass-manager.h (GCC_PASS_LISTS, class pass_manager):
Remove all_lto_gen_passes.
* passes.c (pass_manager::dump_passes): Remove its use.
(pass_manager::register_pass): Likewise.
(ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
(pass_manager::pass_manager): Don't initialize or use it.
(write_lto): New static function.
(ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
instead of using all_lto_gen_passes.
* passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
pass_ipa_lto_finish_out): Delete.
* tree-pass.h (make_pass_ipa_lto_gimple_out,
make_pass_ipa_lto_finish_out): Don't declare.

From-SVN: r204984

10 years agolibgcov-driver.c (get_gcov_dump_complete): Update comments.
Jan Hubicka [Mon, 18 Nov 2013 22:04:48 +0000 (23:04 +0100)]
libgcov-driver.c (get_gcov_dump_complete): Update comments.

* libgcov-driver.c (get_gcov_dump_complete): Update comments.
(all_prg, crc32): Remove static vars.
(gcov_exit_compute_summary): Rewrite to return crc32; do not clear
all_prg.
(gcov_exit_merge_gcda): Add crc32 parameter.
(gcov_exit_merge_summary): Add crc32 and all_prg parameter;
do not account run if it was already accounted.
(gcov_exit_dump_gcov): Add crc32 and all_prg parameters.
(gcov_exit): Initialize all_prg; update.

From-SVN: r204983

10 years agotree-ssa-threadupdate.c (redirection_data): Record two duplicated blocks instead...
Jeff Law [Mon, 18 Nov 2013 21:57:35 +0000 (14:57 -0700)]
tree-ssa-threadupdate.c (redirection_data): Record two duplicated blocks instead of just one.

* tree-ssa-threadupdate.c (redirection_data): Record two
duplicated blocks instead of just one.
(local_info): Explain why we don't create a template for the
second duplicated block in a thread path.
(create_block_for_threading): Accept argument indicating array
index into redirection_data to store its result.
(lookup_redirection_data): Initialize both duplicate blocks.
(ssa_create_duplicates): If a jump threading path needs multiple
blocks duplicated, then duplicate them.
(ssa_fix_duplicate_block_edges): Corresponding changes.
(ssa_fixup_template_block, thread_single_edge):  Likewise.

From-SVN: r204982

10 years agoinvoke.texi: Extend -fsanitize=undefined documentation.
Marek Polacek [Mon, 18 Nov 2013 19:25:33 +0000 (19:25 +0000)]
invoke.texi: Extend -fsanitize=undefined documentation.

* doc/invoke.texi: Extend -fsanitize=undefined documentation.

From-SVN: r204980

10 years agore PR middle-end/56552 (conditional move can generate unnecessary conversion code)
Andrew Pinski [Mon, 18 Nov 2013 19:20:12 +0000 (19:20 +0000)]
re PR middle-end/56552 (conditional move can generate unnecessary conversion code)

2013-11-18  Andrew Pinski <apinski@cavium.com>
    Steve Ellcey  <sellcey@mips.com>

PR target/56552
* config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
type restriction from equality_operator on conditonal move.
(*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
(*mov<GPR:mode>_on_<GPR2:mode>_ne): New.

Co-Authored-By: Steve Ellcey <sellcey@mips.com>
From-SVN: r204979

10 years agotree-ssa-threadupdate.c: Fix file block comment.
Jeff Law [Mon, 18 Nov 2013 19:10:41 +0000 (12:10 -0700)]
tree-ssa-threadupdate.c: Fix file block comment.

        * tree-ssa-threadupdate.c: Fix file block comment.
        Fix minor indention issue.

From-SVN: r204978

10 years agoreduction-3.c: Use stdlib.h.
Dominique d'Humieres [Mon, 18 Nov 2013 18:44:49 +0000 (19:44 +0100)]
reduction-3.c: Use stdlib.h.

       * c-c++-common/cilk-plus/PS/reduction-3.c: Use stdlib.h.
        Remove spurious FIXME.

From-SVN: r204977

10 years agoi386.c (ix86_decompose_address): Use REG_P instead of ix86_address_subreg_operand.
Uros Bizjak [Mon, 18 Nov 2013 18:01:00 +0000 (19:01 +0100)]
i386.c (ix86_decompose_address): Use REG_P instead of ix86_address_subreg_operand.

* config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
ix86_address_subreg_operand.  Move subreg checks to
ix86_validate_address_register.  Move address override check to
ix86_legitimate_address_p.
(ix86_validate_address_register): New function.
(ix86_legitimate_address_p): Call ix86_validate_address_register
to validate base and index registers.  Add address override check
from ix86_decompose_address.
(ix86_decompose_address): Remove.

From-SVN: r204976

10 years agoelf.c (SHN_UNDEF): Define.
Jakub Jelinek [Mon, 18 Nov 2013 17:15:07 +0000 (18:15 +0100)]
elf.c (SHN_UNDEF): Define.

* elf.c (SHN_UNDEF): Define.
(elf_initialize_syminfo): Add base_address argument.  Ignore symbols
with st_shndx == SHN_UNDEF.  Add base_address to address fields.
(elf_add): Adjust caller.

From-SVN: r204975

10 years ago* elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
Jakub Jelinek [Mon, 18 Nov 2013 16:30:44 +0000 (17:30 +0100)]
* elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.

From-SVN: r204971

10 years agolex.c (search_line_fast): Correct for little endian.
Bill Schmidt [Mon, 18 Nov 2013 16:21:42 +0000 (16:21 +0000)]
lex.c (search_line_fast): Correct for little endian.

2013-11-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* lex.c (search_line_fast): Correct for little endian.

From-SVN: r204970

10 years ago[gcc/testsuite]
Kyrylo Tkachov [Mon, 18 Nov 2013 15:50:20 +0000 (15:50 +0000)]
[gcc/testsuite]

* c-c++-common/cilk-plus/PS/body.c: Add fopenmp effective target check.

From-SVN: r204968

10 years agore PR c++/53473 ([C++11] static constexpr noexcept cannot be specialized)
Paolo Carlini [Mon, 18 Nov 2013 15:26:45 +0000 (15:26 +0000)]
re PR c++/53473 ([C++11] static constexpr noexcept cannot be specialized)

2013-11-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53473
* g++.dg/cpp0x/constexpr-noexcept7.C: New.

From-SVN: r204967

10 years agore PR middle-end/59125 (gcc triggers wrong strncpy_chk)
Richard Biener [Mon, 18 Nov 2013 15:25:05 +0000 (15:25 +0000)]
re PR middle-end/59125 (gcc triggers wrong strncpy_chk)

2013-11-18  Richard Biener  <rguenther@suse.de>

PR tree-optimization/59125
PR tree-optimization/54570
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
is not complete do not treat component-references with offset zero
but different fields as equal.
* tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
(compute_object_sizes): Apply TLC.  Propagate the constant
results into all uses and fold their stmts.
* passes.def (pass_all_optimizations): Move pass_object_sizes
after the first pass_forwprop and before pass_fre.

* gcc.dg/builtin-object-size-8.c: Un-xfail.
* gcc.dg/builtin-object-size-14.c: New testcase.
* gcc.dg/strlenopt-14gf.c: Adjust.
* gcc.dg/strlenopt-1f.c: Likewise.
* gcc.dg/strlenopt-4gf.c: Likewise.

From-SVN: r204966

10 years agoc-common.c (convert_vector_to_pointer_for_subscript): Remove cast to unsigned type.
Richard Sandiford [Mon, 18 Nov 2013 14:52:56 +0000 (14:52 +0000)]
c-common.c (convert_vector_to_pointer_for_subscript): Remove cast to unsigned type.

gcc/c-family/
* c-common.c (convert_vector_to_pointer_for_subscript): Remove
cast to unsigned type.

gcc/
* tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
* tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
(tree_ctz): Remove cast to unsigned type.
* builtins.c (fold_builtin_memory_op): Likewise.
* dwarf2out.c (descr_info_loc): Likewise.
* godump.c (go_output_typedef): Likewise.
* omp-low.c (expand_omp_simd): Likewise.
* stor-layout.c (excess_unit_span): Likewise.
* tree-object-size.c (addr_object_size): Likewise.
* tree-sra.c (analyze_all_variable_accesses): Likewise.
* tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
(simplify_rotate): Likewise.
* tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
(handle_pointer_plus): Likewise.
* tree-switch-conversion.c (check_range): Likewise.
* tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
* tsan.c (instrument_builtin_call): Likewise.
* cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
* trans-mem.c (tm_log_add): Likewise.
* config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
* config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
* config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
* config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.

From-SVN: r204964

10 years agotree.h (host_integerp, [...]): Delete.
Richard Sandiford [Mon, 18 Nov 2013 14:52:42 +0000 (14:52 +0000)]
tree.h (host_integerp, [...]): Delete.

gcc/
* tree.h (host_integerp, tree_low_cst): Delete.
* tree.c (host_integerp, tree_low_cst): Delete.

From-SVN: r204963

10 years agocuintp.c (UI_From_gnu): Use tree_to_shwi rather than tree_low_cst.
Richard Sandiford [Mon, 18 Nov 2013 14:52:29 +0000 (14:52 +0000)]
cuintp.c (UI_From_gnu): Use tree_to_shwi rather than tree_low_cst.

gcc/ada/
* gcc-interface/cuintp.c (UI_From_gnu): Use tree_to_shwi rather than
tree_low_cst.

gcc/c-family/
* c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
tree_low_cst.
(complete_array_type): Update comment to refer to tree_to_[su]hwi
rather than tree_low_cst.

gcc/c/
* c-decl.c (grokdeclarator): Update comment to refer to
tree_to_[su]hwi rather than tree_low_cst.

gcc/cp/
* decl.c (reshape_init_array_1): Use tree_to_uhwi rather than
tree_low_cst.
(grokdeclarator): Update comment to refer to tree_to_[su]hwi rather
than tree_low_cst.

gcc/
* expr.h: Update comments to refer to tree_to_[su]hwi rather
than tree_low_cst.
* fold-const.c (fold_binary_loc): Likewise.
* expr.c (store_constructor): Use tree_to_uhwi rather than
tree_low_cst.
* ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
* stmt.c (emit_case_dispatch_table): Likewise.
* tree-switch-conversion.c (emit_case_bit_tests): Likewise.

From-SVN: r204962

10 years agodecl.c, [...]: Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
Richard Sandiford [Mon, 18 Nov 2013 14:52:19 +0000 (14:52 +0000)]
decl.c, [...]: Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.

gcc/ada/
* gcc-interface/decl.c, gcc-interface/utils.c, gcc-interface/utils2.c:
Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.

gcc/c-family/
* c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
tree_to_uhwi throughout.

gcc/c/
* c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
tree_to_uhwi throughout.

gcc/cp/
* call.c, class.c, decl.c, error.c: Replace tree_low_cst (..., 1) with
tree_to_uhwi throughout.

gcc/objc/
* objc-encoding.c: Replace tree_low_cst (..., 1) with tree_to_uhwi
throughout.

gcc/
* alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
config/aarch64/aarch64.c, config/alpha/predicates.md,
config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
config/mep/mep-pragma.c, config/mips/mips.c,
config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.

From-SVN: r204961

10 years agoc-common.c, [...]: Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
Richard Sandiford [Mon, 18 Nov 2013 14:52:03 +0000 (14:52 +0000)]
c-common.c, [...]: Replace tree_low_cst (..., 0) with tree_to_shwi throughout.

gcc/c-family/
* c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
tree_low_cst (..., 0) with tree_to_shwi throughout.

gcc/c/
* c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
throughout.

gcc/cp/
* class.c, dump.c, error.c, init.c, method.c, parser.c, semantics.c:
Replace tree_low_cst (..., 0) with tree_to_shwi throughout.

gcc/go/
* gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
tree_to_shwi throughout.

gcc/java/
* class.c, expr.c: Replace tree_low_cst (..., 0) with tree_to_shwi
throughout.

gcc/objc/
* objc-next-runtime-abi-02.c: Replace tree_low_cst (..., 0) with
tree_to_shwi throughout.

gcc/
* builtins.c, cilk-common.c, config/aarch64/aarch64.c,
config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
Replace tree_low_cst (..., 0) with tree_to_shwi throughout.

From-SVN: r204959

10 years agotree.h (tree_to_shwi, [...]): Declare, with inline expansions.
Richard Sandiford [Mon, 18 Nov 2013 14:51:45 +0000 (14:51 +0000)]
tree.h (tree_to_shwi, [...]): Declare, with inline expansions.

gcc/
* tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
* tree.c (tree_to_shwi, tree_to_uhwi): New functions.

From-SVN: r204958

10 years agocuintp.c: Update comments to refer to tree_fits_shwi_p rather than host_integerp.
Richard Sandiford [Mon, 18 Nov 2013 14:51:35 +0000 (14:51 +0000)]
cuintp.c: Update comments to refer to tree_fits_shwi_p rather than host_integerp.

gcc/ada/
* gcc-interface/cuintp.c: Update comments to refer to
tree_fits_shwi_p rather than host_integerp.
* gcc-interface/decl.c (gnat_to_gnu_entity): Use tree_fits_uhwi_p
rather than host_integerp.
* gcc-interface/utils.c (rest_of_record_type_compilation): Likewise.

gcc/
* expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
than host_integerp.

From-SVN: r204957

10 years agodecl.c, [...]: Replace host_integerp (..., 1) with tree_fits_uhwi_p throughout.
Richard Sandiford [Mon, 18 Nov 2013 14:51:26 +0000 (14:51 +0000)]
decl.c, [...]: Replace host_integerp (..., 1) with tree_fits_uhwi_p throughout.

gcc/ada/
* gcc-interface/decl.c, gcc-interface/misc.c, gcc-interface/utils.c:
Replace host_integerp (..., 1) with tree_fits_uhwi_p throughout.

gcc/c-family/
* c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
host_integerp (..., 1) with tree_fits_uhwi_p throughout.

gcc/cp/
* decl.c: Replace host_integerp (..., 1) with tree_fits_uhwi_p
throughout.

gcc/
* builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
tree_fits_uhwi_p throughout.

From-SVN: r204956

10 years agocuintp.c: Replace host_integerp (..., 0) with tree_fits_shwi_p throughout.
Richard Sandiford [Mon, 18 Nov 2013 14:51:10 +0000 (14:51 +0000)]
cuintp.c: Replace host_integerp (..., 0) with tree_fits_shwi_p throughout.

gcc/ada/
* gcc-interface/cuintp.c: Replace host_integerp (..., 0) with
tree_fits_shwi_p throughout.

gcc/c-family/
* c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
host_integerp (..., 0) with tree_fits_shwi_p throughout.

gcc/c/
* c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
throughout.

gcc/cp/
* error.c, init.c, parser.c, semantics.c: Replace
host_integerp (..., 0) with tree_fits_shwi_p throughout.

gcc/go/
* gofrontend/expressions.cc: Replace host_integerp (..., 0) with
tree_fits_shwi_p throughout.

gcc/java/
* class.c, expr.c: Replace host_integerp (..., 0) with
tree_fits_shwi_p throughout.

gcc/
* builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
throughout.

From-SVN: r204955

10 years agotree.h (tree_fits_shwi_p, [...]): Declare.
Richard Sandiford [Mon, 18 Nov 2013 14:50:47 +0000 (14:50 +0000)]
tree.h (tree_fits_shwi_p, [...]): Declare.

gcc/
* tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
* tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.

From-SVN: r204954

10 years agoatomic-compare-exchange-1.c, [...]: Declare main as returning int.
Joseph Myers [Mon, 18 Nov 2013 14:50:11 +0000 (14:50 +0000)]
atomic-compare-exchange-1.c, [...]: Declare main as returning int.

* testsuite/libatomic.c/atomic-compare-exchange-1.c,
testsuite/libatomic.c/atomic-compare-exchange-2.c,
testsuite/libatomic.c/atomic-compare-exchange-3.c,
testsuite/libatomic.c/atomic-compare-exchange-4.c,
testsuite/libatomic.c/atomic-compare-exchange-5.c,
testsuite/libatomic.c/atomic-exchange-1.c,
testsuite/libatomic.c/atomic-exchange-2.c,
testsuite/libatomic.c/atomic-exchange-3.c,
testsuite/libatomic.c/atomic-exchange-4.c,
testsuite/libatomic.c/atomic-exchange-5.c,
testsuite/libatomic.c/atomic-generic.c,
testsuite/libatomic.c/atomic-load-1.c,
testsuite/libatomic.c/atomic-load-2.c,
testsuite/libatomic.c/atomic-load-3.c,
testsuite/libatomic.c/atomic-load-4.c,
testsuite/libatomic.c/atomic-load-5.c,
testsuite/libatomic.c/atomic-op-1.c,
testsuite/libatomic.c/atomic-op-2.c,
testsuite/libatomic.c/atomic-op-3.c,
testsuite/libatomic.c/atomic-op-4.c,
testsuite/libatomic.c/atomic-op-5.c,
testsuite/libatomic.c/atomic-store-1.c,
testsuite/libatomic.c/atomic-store-2.c,
testsuite/libatomic.c/atomic-store-3.c,
testsuite/libatomic.c/atomic-store-4.c,
testsuite/libatomic.c/atomic-store-5.c: Declare main as returning
int.  Do not require built-in sync support or add target-specific
options.
* testsuite/libatomic.c/atomic-exchange-1.c,
testsuite/libatomic.c/atomic-exchange-2.c,
testsuite/libatomic.c/atomic-exchange-3.c,
testsuite/libatomic.c/atomic-exchange-4.c,
testsuite/libatomic.c/atomic-exchange-5.c: Separate increments of
count from expression using value of count.

From-SVN: r204953

10 years agoshared_ptr_base.h (_Sp_counted_base<_S_single>): Use non-atomic operations.
Jonathan Wakely [Mon, 18 Nov 2013 13:52:39 +0000 (13:52 +0000)]
shared_ptr_base.h (_Sp_counted_base<_S_single>): Use non-atomic operations.

* include/bits/shared_ptr_base.h (_Sp_counted_base<_S_single>): Use
non-atomic operations.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line number.
* testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.

From-SVN: r204949

10 years agoia64.c (ia64_split_tmode_move): Mark load with `dead' flag if it kills address, not...
Kirill Yukhin [Mon, 18 Nov 2013 12:44:59 +0000 (12:44 +0000)]
ia64.c (ia64_split_tmode_move): Mark load with `dead' flag if it kills address, not its post-increment.

        * gcc/config/ia64/ia64.c (ia64_split_tmode_move): Mark
        load with `dead' flag if it kills address, not its
        post-increment.

From-SVN: r204948

10 years agobuiltin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
Ilya Enkovich [Mon, 18 Nov 2013 12:30:52 +0000 (12:30 +0000)]
builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.

        * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
        * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
        * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
        * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
        * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
        (gimple_call_with_bounds_p): New.
        (gimple_call_set_with_bounds): New.
        (gimple_call_num_nobnd_args): Remove.
        (gimple_call_nobnd_arg): Remove.
        * tree.h (CALL_WITH_BOUNDS_P): New.
        * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.

From-SVN: r204947

10 years agoremove nolonger needed {cgraph,varpool}_node_{,asm_}name () functions
Trevor Saunders [Mon, 18 Nov 2013 12:18:12 +0000 (12:18 +0000)]
remove nolonger needed {cgraph,varpool}_node_{,asm_}name () functions

From-SVN: r204946

10 years ago* gcc-interface/trans.c (TARGET_ABI_OPEN_VMS): Delete as redundant.
Eric Botcazou [Mon, 18 Nov 2013 10:18:08 +0000 (10:18 +0000)]
* gcc-interface/trans.c (TARGET_ABI_OPEN_VMS): Delete as redundant.

From-SVN: r204944

10 years agotrans.c (Call_to_gnu): For an Out parameter passed by copy and that don't need to...
Eric Botcazou [Mon, 18 Nov 2013 10:09:10 +0000 (10:09 +0000)]
trans.c (Call_to_gnu): For an Out parameter passed by copy and that don't need to be copied in...

* gcc-interface/trans.c (Call_to_gnu): For an Out parameter passed by
copy and that don't need to be  copied in, only evaluate its address.

From-SVN: r204943

10 years agodecl.c (gnat_to_gnu_entity): Deal with an error mark as renamed object in type annota...
Eric Botcazou [Mon, 18 Nov 2013 09:50:25 +0000 (09:50 +0000)]
decl.c (gnat_to_gnu_entity): Deal with an error mark as renamed object in type annotating mode.

* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Deal with an
error mark as renamed object in type annotating mode.

From-SVN: r204942

10 years agoaarch-cost-tables.h (cortexa53_extra_costs): New table.
Kyrylo Tkachov [Mon, 18 Nov 2013 09:28:17 +0000 (09:28 +0000)]
aarch-cost-tables.h (cortexa53_extra_costs): New table.

* config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
* config/arm/arm.c (arm_cortex_a53_tune): New.
* config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.

From-SVN: r204941

10 years agore PR libfortran/51828 (libgfortran build warnings)
Francois-Xavier Coudert [Mon, 18 Nov 2013 09:27:11 +0000 (09:27 +0000)]
re PR libfortran/51828 (libgfortran build warnings)

PR libfortran/51828
* intrinsics/unpack_generic.c (unpack_internal): Let the compiler
know that dim > 0 to avoid warnings.

From-SVN: r204940

10 years agoAMD bdver4 enablement
Ganesh Gopalasubramanian [Mon, 18 Nov 2013 09:25:21 +0000 (09:25 +0000)]
AMD bdver4 enablement

From-SVN: r204939

10 years agore PR sanitizer/59106 (Failure to link against static libasan)
Yury Gribov [Mon, 18 Nov 2013 08:03:16 +0000 (08:03 +0000)]
re PR sanitizer/59106 (Failure to link against static libasan)

libsanitizer:
2013-11-18  Yury Gribov  <y.gribov@samsung.com>

PR sanitizer/59106
* asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
* interception/Makefile.am (AM_CXXFLAGS): Likewise.
* lsan/Makefile.am (AM_CXXFLAGS): Likewise.
* sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
* tsan/Makefile.am (AM_CXXFLAGS): Likewise.
* asan/Makefile.in: Regenerate.
* interception/Makefile.in: Regenerate.
* tsan/Makefile.in: Regenerate.
* lsan/Makefile.in: Regenerate.
* sanitizer_common/Makefile.in: Regenerate.

gcc/testsuite:
2013-11-18  Yury Gribov  <y.gribov@samsung.com>

PR sanitizer/59106
* c-c++-common/asan/pr59106.c: New test.

From-SVN: r204934

10 years agoDaily bump.
GCC Administrator [Mon, 18 Nov 2013 00:16:55 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r204932

10 years agoFix typo in previous commit.
Jan Hubicka [Mon, 18 Nov 2013 00:04:13 +0000 (00:04 +0000)]
Fix typo in previous commit.

From-SVN: r204929

10 years agors6000.c (rs6000_emit_move): Use low word of sdmode_stack_slot also in little-endian...
Ulrich Weigand [Sun, 17 Nov 2013 23:37:20 +0000 (23:37 +0000)]
rs6000.c (rs6000_emit_move): Use low word of sdmode_stack_slot also in little-endian mode.

* config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
sdmode_stack_slot also in little-endian mode.

From-SVN: r204927

10 years agomd.texi (setmem, movstr): Update documentation.
Jan Hubicka [Sun, 17 Nov 2013 23:32:12 +0000 (00:32 +0100)]
md.texi (setmem, movstr): Update documentation.

* doc/md.texi (setmem, movstr): Update documentation.
* builtins.c (determine_block_size): New function.
(expand_builtin_memcpy): Use it and pass it to
emit_block_move_hints.
(expand_builtin_memset_args): Use it and pass it to
set_storage_via_setmem.
* expr.c (emit_block_move_via_movmem): Add min_size/max_size parameters;
update call to expander.
(emit_block_move_hints): Add min_size/max_size parameters.
(clear_storage_hints): Likewise.
(set_storage_via_setmem): Likewise.
(clear_storage): Update.
* expr.h (emit_block_move_hints, clear_storage_hints,
set_storage_via_setmem): Update prototype.
* i386.c (ix86_expand_set_or_movmem): Add bounds; export.
(ix86_expand_movmem, ix86_expand_setmem): Remove.
(ix86_expand_movmem, ix86_expand_setmem): Remove.
* i386.md (movmem, setmem): Pass parameters.

* gcc.target/i386/memcpy-2.c: New testcase.

From-SVN: r204926

10 years agore PR target/59153 (ICE: in memory_address_length, at config/i386/i386.c:24617 with...
Uros Bizjak [Sun, 17 Nov 2013 23:10:10 +0000 (00:10 +0100)]
re PR target/59153 (ICE: in memory_address_length, at config/i386/i386.c:24617 with -O -flive-range-shrinkage -mdispatch-scheduler -march=bdver1)

PR target/59153
* config/i386/i386.c (ix86_address_subreg_operand): Do not
reject non-integer subregs.
(ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
Move check for invalid x32 constant addresses ...
(ix86_legitimate_address_p): ... here.

testsuite/ChangeLog:

PR target/59153
* gcc.target/i386/pr59153.c: New test.

From-SVN: r204925

10 years agore PR c++/59123 ([c++11] can't forward-declare an object later defined constexpr)
Paolo Carlini [Sun, 17 Nov 2013 19:22:43 +0000 (19:22 +0000)]
re PR c++/59123 ([c++11] can't forward-declare an object later defined constexpr)

/cp
2013-11-17  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59123
* decl.c (validate_constexpr_redeclaration): Redeclarations of
variables can differ in constexpr.

/testsuite
2013-11-17  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59123
* g++.dg/cpp0x/constexpr-redeclaration1.C: New.
* g++.dg/cpp0x/constexpr-decl.C: Adjust.

From-SVN: r204923

10 years agors6000.c (rs6000_frame_related): Add split_reg parameter and use it in REG_FRAME_RELA...
Bill Schmidt [Sun, 17 Nov 2013 16:36:51 +0000 (16:36 +0000)]
rs6000.c (rs6000_frame_related): Add split_reg parameter and use it in REG_FRAME_RELATED_EXPR note.

2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
parameter and use it in REG_FRAME_RELATED_EXPR note.
(emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
parameter.
(rs6000_emit_prologue): Likewise, but for little endian VSX
stores, pass the source register of the store instead.

From-SVN: r204920

10 years agogimple.h: Reorder prototypes to match .c declaration order...
Andrew MacLeod [Sun, 17 Nov 2013 16:14:46 +0000 (16:14 +0000)]
gimple.h: Reorder prototypes to match .c declaration order...

* gimple.h: Reorder prototypes to match .c declaration order, and remove
protyotypes for functions not in gimple.c.
(LABEL): Move to tree-into-ssa.c.
* gimple.c: Remove unused prototypes.
(get_base_address): Move to tree.c.
* tree.c (get_base_address): Relocate from gimple.c.
* builtins.h (validate_gimple_arglist): Add prototype.
* trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
* cfgexpand.h: New File.
(gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
* tree.h (build_addr): Move to tree-nested.h.
* tree-nested.h: New File.
(build_addr, lower_nested_functions, insert_field_into_struct): Add
prototypes.
* tree-inline.h (estimated_stack_frame_size): Remove prototype.
* ipa-inline-analysis.c: Include cfgexpand.h.
* cgraphunit.c: Include tree-nested.h.
* omp-low.c: Likewise.
* tree-parloops.c: Likewise.
* gimple-low.h: Likewise.
* tree-profile.h: Likewise.
* expr.c: Include cfgexpand.h.
* tree-affine.c: Likewise.
* tree-ssa.c: Likewise.
* tree-ssa-loop-im.c: Include trans-mem.h.
* tree-ssa-tail-merge.c: Likewise.
* value-prof.c: Include builtins.h and tree-nested.h.
* tree-into-ssa.c (LABEL): Define here.

* fortran/trans-intrinsic.c: Include tree-nested.h.

From-SVN: r204919

10 years agoppc_closure.S: Don't bl .Luint128.
Alan Modra [Sun, 17 Nov 2013 14:44:03 +0000 (01:14 +1030)]
ppc_closure.S: Don't bl .Luint128.

* src/powerpc/ppc_closure.S: Don't bl .Luint128.

From-SVN: r204918

10 years agoPowerPC64 ELFv2 support
Alan Modra [Sun, 17 Nov 2013 14:35:08 +0000 (01:05 +1030)]
PowerPC64 ELFv2 support

PowerPC64 ELFv2 support
* src/powerpc/ffitarget.h: Import from upstream.
* src/powerpc/ffi.c: Likewise.
* src/powerpc/linux64.S: Likewise.
* src/powerpc/linux64_closure.S: Likewise.
* doc/libffi.texi: Likewise.
* testsuite/libffi.call/cls_double_va.c: Likewise.
* testsuite/libffi.call/cls_longdouble_va.c: Likewise.

From-SVN: r204917

10 years agoI forgot the ChangeLog and a comment fix for my last checkin.
Edward Smith-Rowland [Sun, 17 Nov 2013 01:58:29 +0000 (01:58 +0000)]
I forgot the ChangeLog and a comment fix for my last checkin.

From-SVN: r204912

10 years agoDaily bump.
GCC Administrator [Sun, 17 Nov 2013 00:16:46 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r204911

10 years ago55043.cc (equal): Add missing & on rhs parameter.
François Dumont [Sat, 16 Nov 2013 20:17:50 +0000 (20:17 +0000)]
55043.cc (equal): Add missing & on rhs parameter.

2013-11-16  François Dumont  <fdumont@gcc.gnu.org>

* testsuite/23_containers/unordered_set/55043.cc (equal): Add
missing & on rhs parameter.

From-SVN: r204906

10 years agobacktrace.h (backtrace_create_state): Correct comment about threading.
Ian Lance Taylor [Sat, 16 Nov 2013 18:27:17 +0000 (18:27 +0000)]
backtrace.h (backtrace_create_state): Correct comment about threading.

* backtrace.h (backtrace_create_state): Correct comment about
threading.

From-SVN: r204905

10 years agobacktrace.h (backtrace_syminfo): Update comment and parameter name to take any addres...
Ian Lance Taylor [Sat, 16 Nov 2013 18:20:33 +0000 (18:20 +0000)]
backtrace.h (backtrace_syminfo): Update comment and parameter name to take any address, not just a PC value.

* backtrace.h (backtrace_syminfo): Update comment and parameter
name to take any address, not just a PC value.
* elf.c (STT_OBJECT): Define.
(elf_nosyms): Rename parameter pc to addr.
(elf_symbol_search): Rename local variable pc to addr.
(elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
(elf_syminfo): Rename parameter pc to addr.
* btest.c (global): New global variable.
(test5): New test.
(main): Call test5.

From-SVN: r204904

10 years agoChanged reference to Ch21 Strings in comments in experimental/string_view*.
Edward Smith-Rowland [Sat, 16 Nov 2013 18:03:40 +0000 (18:03 +0000)]
Changed reference to Ch21 Strings in comments in experimental/string_view*.

Forgot this in the main patch.  Sorry.

From-SVN: r204903

10 years agoImplement N3762 string_view: a non-owning reference to a string.
Edward Smith-Rowland [Sat, 16 Nov 2013 17:44:48 +0000 (17:44 +0000)]
Implement N3762 string_view: a non-owning reference to a string.

2013-11-16  Edward Smith-Rowland  <3dw4rd@verizon.net>

Implement N3762 string_view: a non-owning reference to a string.
* include/Makefile.am: Add string_view and string_view.tcc.
* include/Makefile.in: Regenerate.
* include/experimental/string_view: Implement basic_string_view.
* include/experimental/string_view.tcc: Implement basic_string_view.
* testsuite/experimental/string_view/capacity/1.cc: New.
* testsuite/experimental/string_view/cons/char/1.cc: New.
* testsuite/experimental/string_view/cons/char/2.cc: New.
* testsuite/experimental/string_view/cons/char/3.cc: New.
* testsuite/experimental/string_view/cons/wchar_t/1.cc: New.
* testsuite/experimental/string_view/cons/wchar_t/2.cc: New.
* testsuite/experimental/string_view/cons/wchar_t/3.cc: New.
* testsuite/experimental/string_view/element_access/char/1.cc: New.
* testsuite/experimental/string_view/element_access/char/2.cc: New.
* testsuite/experimental/string_view/element_access/char/empty.cc: New.
* testsuite/experimental/string_view/element_access/char/front_back.cc:
New.
* testsuite/experimental/string_view/element_access/wchar_t/1.cc: New.
* testsuite/experimental/string_view/element_access/wchar_t/2.cc: New.
* testsuite/experimental/string_view/element_access/wchar_t/empty.cc:
New.
* testsuite/experimental/string_view/element_access/wchar_t/
front_back.cc: New.
* testsuite/experimental/string_view/include.cc: New.
* testsuite/experimental/string_view/inserters/char/1.cc: New.
* testsuite/experimental/string_view/inserters/char/2.cc: New.
* testsuite/experimental/string_view/inserters/char/3.cc: New.
* testsuite/experimental/string_view/inserters/pod/10081-out.cc: New.
* testsuite/experimental/string_view/inserters/wchar_t/1.cc: New.
* testsuite/experimental/string_view/inserters/wchar_t/2.cc: New.
* testsuite/experimental/string_view/inserters/wchar_t/3.cc: New.
* testsuite/experimental/string_view/literals/types.cc: New.
* testsuite/experimental/string_view/literals/values.cc: New.
* testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc:
New.
* testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/
1.cc: New.
* testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc:
New.
* testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/
1.cc: New.
* testsuite/experimental/string_view/operations/compare/char/1.cc: New.
* testsuite/experimental/string_view/operations/compare/char/13650.cc:
New.
* testsuite/experimental/string_view/operations/compare/wchar_t/1.cc:
New.
* testsuite/experimental/string_view/operations/compare/wchar_t/
13650.cc: New.
* testsuite/experimental/string_view/operations/data/char/1.cc: New.
* testsuite/experimental/string_view/operations/data/wchar_t/1.cc: New.
* testsuite/experimental/string_view/operations/find/char/1.cc: New.
* testsuite/experimental/string_view/operations/find/char/2.cc: New.
* testsuite/experimental/string_view/operations/find/char/3.cc: New.
* testsuite/experimental/string_view/operations/find/char/4.cc: New.
* testsuite/experimental/string_view/operations/find/wchar_t/1.cc: New.
* testsuite/experimental/string_view/operations/find/wchar_t/2.cc: New.
* testsuite/experimental/string_view/operations/find/wchar_t/3.cc: New.
* testsuite/experimental/string_view/operations/find/wchar_t/4.cc: New.
* testsuite/experimental/string_view/operations/rfind/char/1.cc: New.
* testsuite/experimental/string_view/operations/rfind/char/2.cc: New.
* testsuite/experimental/string_view/operations/rfind/char/3.cc: New.
* testsuite/experimental/string_view/operations/rfind/wchar_t/1.cc: New.
* testsuite/experimental/string_view/operations/rfind/wchar_t/2.cc: New.
* testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc: New.
* testsuite/experimental/string_view/operations/substr/char/1.cc: New.
* testsuite/experimental/string_view/operations/substr/wchar_t/1.cc:
New.
* testsuite/experimental/string_view/operators/char/2.cc: New.
* testsuite/experimental/string_view/operators/wchar_t/2.cc: New.
* testsuite/experimental/string_view/range_access/char/1.cc: New.
* testsuite/experimental/string_view/range_access/wchar_t/1.cc: New.
* testsuite/experimental/string_view/requirements/
explicit_instantiation/1.cc: New.
* testsuite/experimental/string_view/requirements/
explicit_instantiation/char/1.cc: New.
* testsuite/experimental/string_view/requirements/
explicit_instantiation/char16_t/1.cc: New.
* testsuite/experimental/string_view/requirements/
explicit_instantiation/char32_t/1.cc: New.
* testsuite/experimental/string_view/requirements/
explicit_instantiation/wchar_t/1.cc: New.
* testsuite/experimental/string_view/requirements/typedefs.cc: New.
* testsuite/experimental/string_view/types/1.cc: New.

From-SVN: r204902

10 years agoarc.c (arc_predicate_delay_insns): New function.
Joern Rennecke [Sat, 16 Nov 2013 11:53:21 +0000 (11:53 +0000)]
arc.c (arc_predicate_delay_insns): New function.

        * config/arc/arc.c (arc_predicate_delay_insns): New function.
        (pass_data_arc_predicate_delay_insns): New pass_data instance.
        (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
        (make_pass_arc_predicate_delay_insns): New function.
        (arc_init): Register pass_arc_predicate_delay_insns if
        flag_delayed_branch is active.

From-SVN: r204901

10 years ago* config/arc/constraints.md (Rcq): Simplify register number test.
Joern Rennecke [Sat, 16 Nov 2013 11:49:10 +0000 (11:49 +0000)]
* config/arc/constraints.md (Rcq): Simplify register number test.

From-SVN: r204900

10 years agore PR c++/29143 (address-of overloaded function does not work in function call)
Paolo Carlini [Sat, 16 Nov 2013 09:54:42 +0000 (09:54 +0000)]
re PR c++/29143 (address-of overloaded function does not work in function call)

/cp
2013-11-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/29143
* semantics.c (finish_call_expr): Ensure that for OVERLOADs too
'(&f)(...)' is the same as '(f)(...)', per 13.3.1.1.

/testsuite
2013-11-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/29143
* g++.dg/overload/addr2.C: New.
* g++.old-deja/g++.other/overload11.C: Adjust.

From-SVN: r204899

10 years agore PR c++/29143 (address-of overloaded function does not work in function call)
Paolo Carlini [Sat, 16 Nov 2013 09:54:23 +0000 (09:54 +0000)]
re PR c++/29143 (address-of overloaded function does not work in function call)

/cp
2013-11-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/29143
* semantics.c (finish_call_expr): Ensure that for OVERLOADs too
'(&f)(...)' is the same as '(f)(...)', per 13.3.1.1.

/testsuite
2013-11-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/29143
* g++.dg/overload/addr2.C: New.
* g++.old-deja/g++.other/overload11.C: Adjust.

From-SVN: r204898

10 years ago* gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
Aldy Hernandez [Sat, 16 Nov 2013 01:19:27 +0000 (01:19 +0000)]
* gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.

From-SVN: r204894

10 years ago* MAINTAINERS (Global Reviewers, c++): Remove Mark Mitchell.
David Edelsohn [Sat, 16 Nov 2013 01:16:51 +0000 (20:16 -0500)]
* MAINTAINERS (Global Reviewers, c++): Remove Mark Mitchell.

From-SVN: r204893

10 years agoDaily bump.
GCC Administrator [Sat, 16 Nov 2013 00:16:43 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r204891

10 years agoFix typo.
Mike Stump [Sat, 16 Nov 2013 00:16:13 +0000 (00:16 +0000)]
Fix typo.

From-SVN: r204888

10 years agogcc.exp (gcc_target_compile): Add support for random runtime
Mike Stump [Sat, 16 Nov 2013 00:09:34 +0000 (00:09 +0000)]
gcc.exp (gcc_target_compile): Add support for random runtime

* lib/gcc.exp (gcc_target_compile): Add support for random runtime
* lib/g++.exp (g++_target_compile): Likewise.
libraries.
* gcc.dg/cilk-plus/cilk-plus.exp: Improve support for runtime
libraries.  Remove debugging.
* g++.dg/cilk-plus/cilk-plus.exp: Add support to find runtime
libraries.  Remove -O0, redundant with default.

From-SVN: r204887

10 years agoucnid-2011-1.c: New test.
Joseph Myers [Sat, 16 Nov 2013 00:05:08 +0000 (00:05 +0000)]
ucnid-2011-1.c: New test.

gcc/testsuite:
* c-c++-common/cpp/ucnid-2011-1.c: New test.

libcpp:
* ucnid.tab: Add C11 and C11NOSTART data.
* makeucnid.c (digit): Rename enum value to N99.
(C11, N11, all_languages): New enum values.
(NUM_CODE_POINTS, MAX_CODE_POINT): New macros.
(flags, decomp, combining_value): Use NUM_CODE_POINTS as array
size.
(decomp): Use unsigned int as element type.
(all_decomp): New array.
(read_ucnid): Handle C11 and C11NOSTART.  Use MAX_CODE_POINT.
(read_table): Use MAX_CODE_POINT.  Store all decompositions in
all_decomp.
(read_derived): Use MAX_CODE_POINT.
(write_table): Use NUM_CODE_POINTS.  Print N99, C11 and N11
flags.  Print whole array variable declaration rather than just
array contents.
(char_id_valid, write_context_switch): New functions.
(main): Call write_context_switch.
* ucnid.h: Regenerate.
* include/cpplib.h (struct cpp_options): Add c11_identifiers.
* init.c (struct lang_flags): Add c11_identifiers.
(cpp_set_lang): Set c11_identifiers option from selected language.
* internal.h (struct normalize_state): Document "previous" as
previous starter character.
(NORMALIZE_STATE_UPDATE_IDNUM): Take character as argument.
* charset.c (DIG): Rename enum value to N99.
(C11, N11): New enum values.
(struct ucnrange): Give name to struct.  Use short for flags and
unsigned int for end of range.  Include ucnid.h for whole variable
declaration.
(ucn_valid_in_identifier): Allow for characters up to 0x10FFFF.
Allow for C11 in determining valid characters and valid start
characters.  Use check_nfc for non-Hangul context-dependent
checks.  Only store starter characters in nst->previous.
(_cpp_valid_ucn): Pass new argument to
NORMALIZE_STATE_UPDATE_IDNUM.
* lex.c (lex_identifier): Pass new argument to
NORMALIZE_STATE_UPDATE_IDNUM.  Call NORMALIZE_STATE_UPDATE_IDNUM
after initial non-UCN part of identifier.
(lex_number): Pass new argument to NORMALIZE_STATE_UPDATE_IDNUM.

From-SVN: r204886

10 years agore PR c++/58188 (ICE in gimple_add_tmp_var, at gimplify.c:738)
Paolo Carlini [Fri, 15 Nov 2013 23:51:23 +0000 (23:51 +0000)]
re PR c++/58188 (ICE in gimple_add_tmp_var, at gimplify.c:738)

2013-11-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58188
* g++.dg/cpp0x/nsdmi-template8.C: New.

2013-11-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58725
* g++.dg/cpp0x/nsdmi-template7.C: New.

2013-11-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58829
* g++.dg/cpp0x/nsdmi-template6.C: New.

From-SVN: r204881

10 years agore PR c++/58599 ([c++11] Trouble with non-static data member initializers in templates)
Paolo Carlini [Fri, 15 Nov 2013 23:17:23 +0000 (23:17 +0000)]
re PR c++/58599 ([c++11] Trouble with non-static data member initializers in templates)

2013-11-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58599
* g++.dg/cpp0x/nsdmi-template5.C: New.

From-SVN: r204866

10 years agosh.c (barrier_align): Return 0 when barrier_or_label is null.
Kaz Kojima [Fri, 15 Nov 2013 22:01:33 +0000 (22:01 +0000)]
sh.c (barrier_align): Return 0 when barrier_or_label is null.

* config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
is null.

From-SVN: r204865

10 years agoWhen file status is unknown, don't set O_CREAT when opening read-only.
Janne Blomqvist [Fri, 15 Nov 2013 22:00:36 +0000 (00:00 +0200)]
When file status is unknown, don't set O_CREAT when opening read-only.

2013-11-15  Janne Blomqvist  <jb@gcc.gnu.org>
    Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/59108
* io/unix.c (regular_file): Don't set O_CREAT when opening a file
read-only with unknown status. Mask out O_CREAT when falling back
to opening read-only if ACTION= is not set and read-write fails.

Co-Authored-By: Jerry DeLisle <jvdelisle@gcc.gnu.org>
From-SVN: r204864

10 years agoMakefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
Aldy Hernandez [Fri, 15 Nov 2013 21:43:59 +0000 (21:43 +0000)]
Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.

* Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
* gimple-pretty-print.c (dump_omp_for): Add case for
GF_OMP_FOR_KIND_CILKSIMD.
* gimple.h (enum gf_mask): Restructure entries to add
GF_OMP_FOR_KIND_CILKSIMD.
* gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
(gimplify_omp_for): Handle CILK_SIMD.
(gimplify_expr): Add ccase for CILK_SIMD.
* omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
(build_outer_var_ref): Same.
(check_omp_nesting_restrictions): Same.
(lower_rec_input_clauses): Same.
(lower_lastprivate_clauses): Same.
(expand_omp_for): Same.
(execute_expand_omp): Check flag_enable_cilkplus.
(execute_lower_omp): Same.
(diagnose_sb_0): Handle CILK_SIMD.
(diagnose_omp_structured_block_errors): Check
flag_enable_cilkplus.
(setjmp_or_longjmp_p): New.
(scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
* tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
* tree.def: Add tree code for CILK_SIMD.

testsuite/
* c-c++-common/cilk-plus/PS: New directory.
* g++.dg/cilk-plus/cilk-plus.exp: Run shared tests.
* g++.dg/dg.exp: Run Cilk Plus tests.
* gcc.dg/cilk-plus/cilk-plus.exp: Run shared tests.

c-family/
* c-cilkplus.c: New file.
* c-common.c (readonly_error): Add location argument.
* c-common.h (readonly_error): Same.
(c_finish_cilk_clauses): Protoize.
(c_check_cilk_loop): Same.
c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
Do not fail on error_mark_node.
Abstract increment canonicalization to here...
(c_omp_for_incr_canonicalize_ptr): New.
c-pragma.c (init_pragma): Register "simd" pragma.
c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
(enum pragma_cilk_clause): New.

c/
* c-parser.c (c_parser_cilk_simd): New.
(c_parser_cilk_verify_simd): New.
(c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
(c_parser_omp_for_loop): Add case for NE_EXPR.
Set c_break_label for CILK_SIMD.
(c_parser_cilk_clause_vectorlength): New.
(c_parser_cilk_clause_linear): New.
(c_parser_cilk_clause_name): New.
(c_parser_cilk_all_clauses): New.
* c-typeck.c (build_unary_op): Pass location argument to
readonly_error.
(build_modify_expr): Same.
(build_asm_expr): Same.
(c_finish_bc_stmt): Error on break/continue in loops.

cp/
* Make-lang.in (CXX_AND_OBJCXX_OBJS): Depend on cp/cp-cilkplus.o.
* cp-cilkplus.c: New file.
* cp-tree.h (cpp_validate_cilk_plus_loop): Protoize.
* parser.c (cp_parser_cilk_simd): New.
(cp_debug_parser): Add case for IN_CILK_SIMD_FOR.
(cp_parser_jump_statement): Same.
(cp_parser_omp_for_cond): Add new argument.
Add case for NE_EXPR.
(cp_parser_omp_for_loop): Pass new argument to
cp_parser_omp_for_cond.
Handle CILK_SIMD nodes.
Abstract initilization code to..
(cp_parser_omp_for_loop_init): ...here.
(cp_parser_pragma): Add case for PRAGMA_CILK_SIMD.
(cp_parser_cilk_simd_vectorlength): New.
(cp_parser_cilk_simd_linear): New.
(cp_parser_cilk_simd_clause_name): New.
(cp_parser_cilk_simd_all_clauses): New.
(cp_parser_cilk_simd): New.
* parser.h (IN_CILK_SIMD_FOR): New macro.
* pt.c (tsubst_expr): Add case for CILK_SIMD.
* typeck2.c (cxx_readonly_error): Pass location argument to
readonly_error.

From-SVN: r204863

10 years agoaltivec.md (UNSPEC_VPERM_X, [...]): Remove.
Bill Schmidt [Fri, 15 Nov 2013 21:16:32 +0000 (21:16 +0000)]
altivec.md (UNSPEC_VPERM_X, [...]): Remove.

gcc:

2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
Remove.
(altivec_vperm_<mode>): Revert earlier little endian change.
(*altivec_vperm_<mode>_internal): Remove.
(altivec_vperm_<mode>_uns): Revert earlier little endian change.
(*altivec_vperm_<mode>_uns_internal): Remove.
* config/rs6000/vector.md (vec_realign_load_<mode>): Revise
commentary.

gcc/testsuite:

2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.dg/vmx/3b-15.c: Revise for little endian.

From-SVN: r204862

10 years agobasic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from has_abnormal_or_outgoi...
Jeff Law [Fri, 15 Nov 2013 21:11:50 +0000 (14:11 -0700)]
basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from has_abnormal_or_outgoing_edge.

* basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
has_abnormal_or_outgoing_edge.  Check for EH edges as well.
* gimple-ssa-isolate-paths.c
(find_implicit_erroneous_behaviour): Corresponding changes.
Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
(find_explicit_erroneous_behaviour): Likewise.

From-SVN: r204861

10 years agoifcvt.c (find_cond_trap): Properly handle case where trap_bb == else_bb.
Jeff Law [Fri, 15 Nov 2013 18:14:10 +0000 (11:14 -0700)]
ifcvt.c (find_cond_trap): Properly handle case where trap_bb == else_bb.

* ifcvt.c (find_cond_trap): Properly handle case where
trap_bb == else_bb.

From-SVN: r204856

10 years agoconfigure.ac: Do not define HAVE_STRTOLD.
Steve Ellcey [Fri, 15 Nov 2013 17:50:28 +0000 (17:50 +0000)]
configure.ac: Do not define HAVE_STRTOLD.

2013-11-15  Steve Ellcey  <sellcey@mips.com>

* configure.ac: Do not define HAVE_STRTOLD.
* configure: Regenerate.

From-SVN: r204855

10 years agopicflag.m4 (m68k-*-*): Use default PIC flag.
Andreas Schwab [Fri, 15 Nov 2013 17:49:36 +0000 (17:49 +0000)]
picflag.m4 (m68k-*-*): Use default PIC flag.

config/
* picflag.m4 (m68k-*-*): Use default PIC flag.

gcc/
* configure: Regenerate.

libada/
* configure: Regenerate.

libgcc/
* configure: Regenerate.

libiberty/
* configure: Regenerate.

From-SVN: r204854

10 years agoruntime: Use runtime_m to get m value after call to runtime_mcall.
Ian Lance Taylor [Fri, 15 Nov 2013 17:20:25 +0000 (17:20 +0000)]
runtime: Use runtime_m to get m value after call to runtime_mcall.

From-SVN: r204853

10 years ago[AArch64] Remove simd_type
James Greenhalgh [Fri, 15 Nov 2013 17:05:37 +0000 (17:05 +0000)]
[AArch64] Remove simd_type

gcc/
* config/aarch64/aarch64-simd.md: Remove simd_type from all
patterns.
* config/aarch64/aarch64.md: Likewise, correct "type" attribute
where it is incorrect or missing.

From-SVN: r204852

10 years agostl_bvector.h (vector<bool>::emplace_back()): LWG 2187: Define.
Jonathan Wakely [Fri, 15 Nov 2013 16:34:06 +0000 (16:34 +0000)]
stl_bvector.h (vector<bool>::emplace_back()): LWG 2187: Define.

* include/bits/stl_bvector.h (vector<bool>::emplace_back()): LWG 2187:
Define.
(vector<bool>::emplace()): Likewise.
* testsuite/23_containers/vector/bool/emplace.cc: New.

From-SVN: r204851

10 years agobuild_hacking.xml: Fix documentation typos.
Ondřej Bílka [Fri, 15 Nov 2013 16:33:59 +0000 (17:33 +0100)]
build_hacking.xml: Fix documentation typos.

2013-11-15  Ondřej Bílka <neleai@seznam.cz>
    Jonathan Wakely  <jwakely.gcc@gmail.com>

* doc/xml/manual/build_hacking.xml: Fix documentation typos.
* doc/xml/manual/configure.xml: Likewise.
* include/bits/atomic_base.h: Fix typos in comments.
* include/bits/random.h: Likewise.
* include/ext/cast.h: Likewise.
* libsupc++/cxxabi.h: Likewise.
* testsuite/ext/pb_ds/example/hash_illegal_resize.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/special_functions/testcase.h:
Likewise.
* testsuite/util/exception/safety.h: Likewise.
* testsuite/util/testsuite_containers.h: Likewise.
* testsuite/util/testsuite_hooks.cc: Likewise.

Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com>
From-SVN: r204850

10 years agostl_map.h (map): Implement C++11 allocator-aware container requirements.
Jonathan Wakely [Fri, 15 Nov 2013 15:34:14 +0000 (15:34 +0000)]
stl_map.h (map): Implement C++11 allocator-aware container requirements.

* include/bits/stl_map.h (map): Implement C++11 allocator-aware
container requirements.
* include/bits/stl_multimap.h (multimap): Likewise.
* include/bits/stl_multiset.h (multiset): Likewise.
* include/bits/stl_set.h (set): Likewise.
* include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_buffer and
add accessors for value.
(_Rb_tree_iterator, _Rb_tree_const_iterator): Use _Rb_tree_node
accessors.
(_Rb_tree): Use allocator_traits and implement support for sets and
maps the be allocator-aware.
* include/bits/forward_list.h (_Fwd_list_base::_M_create_node): Do
not zero-initialize storage buffer.
* include/bits/hashtable_policy.h (_Hashtable_alloc::_M_allocate_node):
Likewise.
* include/bits/stl_vector.h (vector(vector&&, const allocator_type&)):
Add conditional noexcept specification.
* doc/xml/manual/status_cxx2011.xml: Update status of containers.
* testsuite/util/testsuite_allocator.h: Re-indent.
* testsuite/23_containers/forward_list/allocator/copy.cc: Test
allocator-extended copy constructor.
* testsuite/23_containers/unordered_map/allocator/copy.cc: Likewise.
* testsuite/23_containers/unordered_multimap/allocator/copy.cc:
Likewise.
* testsuite/23_containers/unordered_multiset/allocator/copy.cc:
Likewise.
* testsuite/23_containers/unordered_set/allocator/copy.cc: Likewise.
* testsuite/23_containers/vector/allocator/copy.cc: Likewise.
* testsuite/23_containers/forward_list/allocator/move.cc: New.
* testsuite/23_containers/unordered_map/allocator/move.cc: New.
* testsuite/23_containers/unordered_multimap/allocator/move.cc: New.
* testsuite/23_containers/unordered_multiset/allocator/move.cc: New.
* testsuite/23_containers/unordered_set/allocator/move.cc: New.
* testsuite/23_containers/vector/allocator/move.cc: New.
* testsuite/23_containers/map/allocator/copy.cc: New.
* testsuite/23_containers/map/allocator/copy_assign.cc: New.
* testsuite/23_containers/map/allocator/minimal.cc: New.
* testsuite/23_containers/map/allocator/move.cc: New.
* testsuite/23_containers/map/allocator/move_assign.cc: New.
* testsuite/23_containers/map/allocator/noexcept.cc: New.
* testsuite/23_containers/map/allocator/swap.cc: New.
* testsuite/23_containers/multimap/allocator/copy.cc: New.
* testsuite/23_containers/multimap/allocator/copy_assign.cc: New.
* testsuite/23_containers/multimap/allocator/minimal.cc: New.
* testsuite/23_containers/multimap/allocator/move.cc: New.
* testsuite/23_containers/multimap/allocator/move_assign.cc: New.
* testsuite/23_containers/multimap/allocator/noexcept.cc: New.
* testsuite/23_containers/multimap/allocator/swap.cc: New.
* testsuite/23_containers/multiset/allocator/copy.cc: New.
* testsuite/23_containers/multiset/allocator/copy_assign.cc: New.
* testsuite/23_containers/multiset/allocator/minimal.cc: New.
* testsuite/23_containers/multiset/allocator/move.cc: New.
* testsuite/23_containers/multiset/allocator/move_assign.cc: New.
* testsuite/23_containers/multiset/allocator/noexcept.cc: New.
* testsuite/23_containers/multiset/allocator/swap.cc: New.
* testsuite/23_containers/set/allocator/copy.cc: New.
* testsuite/23_containers/set/allocator/copy_assign.cc: New.
* testsuite/23_containers/set/allocator/minimal.cc: New.
* testsuite/23_containers/set/allocator/move.cc: New.
* testsuite/23_containers/set/allocator/move_assign.cc: New.
* testsuite/23_containers/set/allocator/noexcept.cc: New.
* testsuite/23_containers/set/allocator/swap.cc: New.
* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
Adjust dg-error line number.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
Likewise.

From-SVN: r204848

10 years agoc-pretty-print.c (pp_c_character_constant): Remove unnecessary wchar_type and host_in...
Richard Sandiford [Fri, 15 Nov 2013 14:52:36 +0000 (14:52 +0000)]
c-pretty-print.c (pp_c_character_constant): Remove unnecessary wchar_type and host_integerp checks.

gcc/c-family/
* c-pretty-print.c (pp_c_character_constant): Remove unnecessary
wchar_type and host_integerp checks.

From-SVN: r204847

10 years agodwarf2out.c (gen_enumeration_type_die): Remove unnecessary host_integerp test.
Richard Sandiford [Fri, 15 Nov 2013 14:52:23 +0000 (14:52 +0000)]
dwarf2out.c (gen_enumeration_type_die): Remove unnecessary host_integerp test.

gcc/
* dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
host_integerp test.
* tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
constant.
* fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
pair with a TREE_CODE test and TREE_INT_CST_LOW.
* tree-vect-generic.c (expand_vector_divmod): Likewise.

From-SVN: r204846

10 years agore PR middle-end/50262 (PTA doesn't disambiguate locally allocated heap objects from...
Richard Biener [Fri, 15 Nov 2013 14:48:22 +0000 (14:48 +0000)]
re PR middle-end/50262 (PTA doesn't disambiguate locally allocated heap objects from pointed to by arguments)

2013-11-15  Richard Biener  <rguenther@suse.de>

PR tree-optimization/50262
* tree-ssa-alias.h (struct pt_solution): Split
vars_contains_global into vars_contains_nonlocal,
vars_contains_escaped and vars_contains_escaped_heap.
* tree-ssa-structalias.c (label_visit): Expand comment.
(handle_lhs_call): Adjust comment.
(set_uids_in_ptset): Set the new flags appropriately.
(pt_solution_set): Adjust.
(pt_solution_set_var): Likewise.
(pt_solution_ior_into): Likewise.
(pt_solution_includes_global): Likewise.
(pt_solutions_intersect_1): Optimize escaped handling.
(compute_points_to_sets): Remove heap variable globalization.
(ipa_escaped_pt): Adjust initializer.
(pass_data_ipa_pta): Do not run TODO_update_ssa.
* gimple-pretty-print.c (pp_points_to_solution): Print split
flags.
* tree-ssa-alias.c (dump_points_to_solution): Likewise.

* gcc.dg/tree-ssa/alias-28.c: New testcase.
* gcc.dg/strlenopt-1.c: Adjust.
* gcc.dg/strlenopt-1f.c: Likewise.

From-SVN: r204845

10 years agotree-loop-distribution.c (tree_loop_distribution): Make sure to distribute all stores.
Richard Biener [Fri, 15 Nov 2013 14:43:52 +0000 (14:43 +0000)]
tree-loop-distribution.c (tree_loop_distribution): Make sure to distribute all stores.

2013-11-15  Richard Biener  <rguenther@suse.de>

* tree-loop-distribution.c (tree_loop_distribution): Make sure
to distribute all stores.

* gcc.dg/torture/20131115-1.c: New testcase.

From-SVN: r204843

10 years ago* doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
Ulrich Weigand [Fri, 15 Nov 2013 14:21:39 +0000 (14:21 +0000)]
* doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.

From-SVN: r204842

10 years agoacinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
Joseph Myers [Fri, 15 Nov 2013 12:34:28 +0000 (12:34 +0000)]
acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.

* acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure
macro.
* configure.ac: Determine target_header_dir earlier.
(--with-glibc-version): New configure option.
Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
* configure: Regenerate.
* doc/install.texi (--enable-gnu-unique-object): Don't refer to
native toolchains for default.
(--with-glibc-version): Document.

From-SVN: r204841

10 years agoAdd and use System.Linux.time_t for time_t
H.J. Lu [Fri, 15 Nov 2013 12:06:25 +0000 (12:06 +0000)]
Add and use System.Linux.time_t for time_t

PR ada/54040
* s-linux-x32.ads: New file.
* s-osprim-x32.adb: Likewise.
* s-linux.ads (time_t): New type.
* s-linux-alpha.ads (time_t):  Likewise.
* s-linux-hppa.ads (time_t):  Likewise.
* s-linux-mipsel.ads (time_t):  Likewise.
* s-linux-sparc.ads (time_t):  Likewise.
* s-osinte-linux.ads (time_t): Mark it private.  Replace long
with System.Linux.time_t.
(timespec): Replace long with time_t.
* s-osinte-posix.adb (To_Timespec): Likewise.
* s-taprop-linux.adb (timeval): Replace C.long with
System.OS_Interface.time_t.
* gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Replace
s-linux.ads with s-linux-x32.ads, s-osprim-posix.adb with
s-osprim-x32.adb for x32.

From-SVN: r204840

10 years ago* fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
Eric Botcazou [Fri, 15 Nov 2013 11:07:40 +0000 (11:07 +0000)]
* fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.

From-SVN: r204839

10 years agofix PR sanitizer/58994
Kostya Serebryany [Fri, 15 Nov 2013 10:31:14 +0000 (10:31 +0000)]
fix PR sanitizer/58994

From-SVN: r204838

10 years agolto-streamer-in.c (input function): Call cgraph_create_node if cgraph_get_node failed.
Uros Bizjak [Fri, 15 Nov 2013 08:46:54 +0000 (09:46 +0100)]
lto-streamer-in.c (input function): Call cgraph_create_node if cgraph_get_node failed.

* lto-streamer-in.c (input function): Call cgraph_create_node if
cgraph_get_node failed.

From-SVN: r204836

10 years agoucnid-9.c: New test.
Joseph Myers [Fri, 15 Nov 2013 02:15:26 +0000 (02:15 +0000)]
ucnid-9.c: New test.

gcc/testsuite:
* gcc.dg/cpp/ucnid-9.c: New test.

libcpp:
* ucnid.tab: Mark C99 digits as [C99DIG].
* makeucnid.c (read_ucnid): Handle [C99DIG].
(read_table): Don't check for digit characters.
* ucnid.h: Regenerate.

From-SVN: r204835

10 years agoDaily bump.
GCC Administrator [Fri, 15 Nov 2013 00:16:47 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r204833

10 years agocfgexpand.c (defer_stack_allocation): When optimization is enabled...
Eric Botcazou [Thu, 14 Nov 2013 23:58:39 +0000 (23:58 +0000)]
cfgexpand.c (defer_stack_allocation): When optimization is enabled...

* cfgexpand.c (defer_stack_allocation): When optimization is enabled,
defer allocation of DECL_IGNORED_P variables at toplevel unless really
small.  Factorize size threshold computation from the existing one.
(expand_used_vars): Refine comment.

From-SVN: r204830

10 years agoRevert the last change
H.J. Lu [Thu, 14 Nov 2013 22:39:21 +0000 (22:39 +0000)]
Revert the last change

* gnat.dg/specs/addr1.ads: Revert the last change.
* gnat.dg/specs/atomic1.ads: Likewise.

From-SVN: r204829