platform/upstream/linaro-gcc.git
10 years agogotest: Recognize PPC ELF v2 function pointers in text section.
ian [Tue, 19 Nov 2013 02:14:40 +0000 (02:14 +0000)]
gotest: Recognize PPC ELF v2 function pointers in text section.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205000 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agolibgo: Fix typo for is_dragonfly in configure script.
ian [Tue, 19 Nov 2013 02:11:38 +0000 (02:11 +0000)]
libgo: Fix typo for is_dragonfly in configure script.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204999 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * md.texi (setmem): Document new parameter.
hubicka [Tue, 19 Nov 2013 01:42:47 +0000 (01:42 +0000)]
* md.texi (setmem): Document new parameter.
* optabs.c (maybe_gen_insn): Support 9 operands.
* builtins.c (determine_block_size): Add probable_max_size;
support anti-ranges.
(expand_builtin_memcpy. expand_builtin_memset_args): Pass around
probable_max_size.
* expr.c (emit_block_move_via_movmem, emit_block_move_hints,
emit_block_move, clear_storage_hints, set_storage_via_setmem):
Likewise.
* expr.h (emit_block_move_hints, clear_storage_hints,
set_storage_via_setmem): Update prototype.
* i386.md (setmem, movmem patterns): Add 9th operand.
* i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
* i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
argument; pass it to decide_alg.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204998 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * md.texi (setmem): Document new parameter.
hubicka [Tue, 19 Nov 2013 01:42:34 +0000 (01:42 +0000)]
* md.texi (setmem): Document new parameter.
* optabs.c (maybe_gen_insn): Support 9 operands.
* builtins.c (determine_block_size): Add probable_max_size;
support anti-ranges.
(expand_builtin_memcpy. expand_builtin_memset_args): Pass around
probable_max_size.
* expr.c (emit_block_move_via_movmem, emit_block_move_hints,
emit_block_move, clear_storage_hints, set_storage_via_setmem):
Likewise.
* expr.h (emit_block_move_hints, clear_storage_hints,
set_storage_via_setmem): Update prototype.
* i386.md (setmem, movmem patterns): Add 9th operand.
* i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
* i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
argument; pass it to decide_alg.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204997 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR middle-end/59175
hubicka [Tue, 19 Nov 2013 01:30:51 +0000 (01:30 +0000)]
PR middle-end/59175
* gcc.target/i386/memcpy-2.c: Fix template;
add +1 so the testcase passes at 32bit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204996 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoEliminate n_basic_blocks macro
dmalcolm [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204995 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * configure.ac: Check for support of __atomic extensions.
ian [Tue, 19 Nov 2013 01:09:47 +0000 (01:09 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204994 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * libgcov-driver.c (run_accounted): Make global level static.
hubicka [Tue, 19 Nov 2013 01:08:02 +0000 (01:08 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204993 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204992 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * libgcov-driver.c (gcov_exit_merge_summary): Fix setting
hubicka [Tue, 19 Nov 2013 00:50:53 +0000 (00:50 +0000)]
* libgcov-driver.c (gcov_exit_merge_summary): Fix setting
run_accounted.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204991 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204990 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
zadeck [Tue, 19 Nov 2013 00:00:17 +0000 (00:00 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204987 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoThis patch fixes an lto profiledbootstrap failure with
tejohnson [Mon, 18 Nov 2013 22:38:51 +0000 (22:38 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204985 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoRemove all_lto_gen_passes, replace with plain function calls
bernds [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204984 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * libgcov-driver.c (get_gcov_dump_complete): Update comments.
hubicka [Mon, 18 Nov 2013 22:04:48 +0000 (22:04 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204983 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * tree-ssa-threadupdate.c (redirection_data): Record two
law [Mon, 18 Nov 2013 21:57:35 +0000 (21:57 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204982 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * doc/invoke.texi: Extend -fsanitize=undefined documentation.
mpolacek [Mon, 18 Nov 2013 19:25:33 +0000 (19:25 +0000)]
* doc/invoke.texi: Extend -fsanitize=undefined documentation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204980 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-18 Andrew Pinski <apinski@cavium.com>
sje [Mon, 18 Nov 2013 19:20:12 +0000 (19:20 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204979 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * tree-ssa-threadupdate.c: Fix file block comment.
law [Mon, 18 Nov 2013 19:10:41 +0000 (19:10 +0000)]
    * tree-ssa-threadupdate.c: Fix file block comment.
        Fix minor indention issue.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204978 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * c-c++-common/cilk-plus/PS/reduction-3.c: Use stdlib.h.
law [Mon, 18 Nov 2013 18:44:49 +0000 (18:44 +0000)]
   * c-c++-common/cilk-plus/PS/reduction-3.c: Use stdlib.h.
        Remove spurious FIXME.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204977 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
uros [Mon, 18 Nov 2013 18:01:00 +0000 (18:01 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204976 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * elf.c (SHN_UNDEF): Define.
jakub [Mon, 18 Nov 2013 17:15:07 +0000 (17:15 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204975 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204971 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Mon, 18 Nov 2013 16:21:42 +0000 (16:21 +0000)]
2013-11-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204970 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago [gcc/testsuite]
ktkachov [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204968 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-18 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 18 Nov 2013 15:26:45 +0000 (15:26 +0000)]
2013-11-18  Paolo Carlini  <paolo.carlini@oracle.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204967 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-18 Richard Biener <rguenther@suse.de>
rguenth [Mon, 18 Nov 2013 15:25:05 +0000 (15:25 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204966 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/c-family/
rsandifo [Mon, 18 Nov 2013 14:52:56 +0000 (14:52 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204964 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/
rsandifo [Mon, 18 Nov 2013 14:52:42 +0000 (14:52 +0000)]
gcc/
* tree.h (host_integerp, tree_low_cst): Delete.
* tree.c (host_integerp, tree_low_cst): Delete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204963 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/ada/
rsandifo [Mon, 18 Nov 2013 14:52:29 +0000 (14:52 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204962 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/ada/
rsandifo [Mon, 18 Nov 2013 14:52:19 +0000 (14:52 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204961 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/c-family/
rsandifo [Mon, 18 Nov 2013 14:52:03 +0000 (14:52 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204959 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/
rsandifo [Mon, 18 Nov 2013 14:51:45 +0000 (14:51 +0000)]
gcc/
* tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
* tree.c (tree_to_shwi, tree_to_uhwi): New functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204958 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/ada/
rsandifo [Mon, 18 Nov 2013 14:51:35 +0000 (14:51 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204957 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/ada/
rsandifo [Mon, 18 Nov 2013 14:51:26 +0000 (14:51 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204956 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/ada/
rsandifo [Mon, 18 Nov 2013 14:51:10 +0000 (14:51 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204955 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/
rsandifo [Mon, 18 Nov 2013 14:50:47 +0000 (14:50 +0000)]
gcc/
* tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
* tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204954 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * testsuite/libatomic.c/atomic-compare-exchange-1.c,
jsm28 [Mon, 18 Nov 2013 14:50:11 +0000 (14:50 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204953 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * include/bits/shared_ptr_base.h (_Sp_counted_base<_S_single>): Use
redi [Mon, 18 Nov 2013 13:52:39 +0000 (13:52 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204949 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204948 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
kyukhin [Mon, 18 Nov 2013 12:30:52 +0000 (12:30 +0000)]
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204947 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204946 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204944 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * gcc-interface/trans.c (Call_to_gnu): For an Out parameter passed by
ebotcazou [Mon, 18 Nov 2013 10:09:10 +0000 (10:09 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204943 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Deal with an
ebotcazou [Mon, 18 Nov 2013 09:50:25 +0000 (09:50 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Deal with an
error mark as renamed object in type annotating mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204942 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
ktkachov [Mon, 18 Nov 2013 09:28:17 +0000 (09:28 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204941 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR libfortran/51828
fxcoudert [Mon, 18 Nov 2013 09:27:11 +0000 (09:27 +0000)]
PR libfortran/51828
* intrinsics/unpack_generic.c (unpack_internal): Let the compiler
know that dim > 0 to avoid warnings.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204940 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204939 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agolibsanitizer:
ygribov [Mon, 18 Nov 2013 08:03:16 +0000 (08:03 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204934 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204932 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204929 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204927 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * doc/md.texi (setmem, movstr): Update documentation.
hubicka [Sun, 17 Nov 2013 23:32:12 +0000 (23:32 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204926 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR target/59153
uros [Sun, 17 Nov 2013 23:10:10 +0000 (23:10 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204925 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago/cp
paolo [Sun, 17 Nov 2013 19:22:43 +0000 (19:22 +0000)]
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204923 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Sun, 17 Nov 2013 16:36:51 +0000 (16:36 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204920 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * gimple.h: Reorder prototypes to match .c declaration order, and remove
amacleod [Sun, 17 Nov 2013 16:14:46 +0000 (16:14 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204919 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * src/powerpc/ppc_closure.S: Don't bl .Luint128.
amodra [Sun, 17 Nov 2013 14:44:03 +0000 (14:44 +0000)]
* src/powerpc/ppc_closure.S: Don't bl .Luint128.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204918 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoPowerPC64 ELFv2 support
amodra [Sun, 17 Nov 2013 14:35:08 +0000 (14:35 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204917 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204912 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204911 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-16 François Dumont <fdumont@gcc.gnu.org>
fdumont [Sat, 16 Nov 2013 20:17:50 +0000 (20:17 +0000)]
2013-11-16  François Dumont  <fdumont@gcc.gnu.org>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204906 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * backtrace.h (backtrace_create_state): Correct comment about
ian [Sat, 16 Nov 2013 18:27:17 +0000 (18:27 +0000)]
* backtrace.h (backtrace_create_state): Correct comment about
threading.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204905 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * backtrace.h (backtrace_syminfo): Update comment and parameter
ian [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.
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204904 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoChanged reference to Ch21 Strings in comments in experimental/string_view*.
emsr [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204903 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-16 Edward Smith-Rowland <3dw4rd@verizon.net>
emsr [Sat, 16 Nov 2013 17:44:48 +0000 (17:44 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204902 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * config/arc/arc.c (arc_predicate_delay_insns): New function.
amylaar [Sat, 16 Nov 2013 11:53:21 +0000 (11:53 +0000)]
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204901 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204900 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago/cp
paolo [Sat, 16 Nov 2013 09:54:42 +0000 (09:54 +0000)]
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204899 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago/cp
paolo [Sat, 16 Nov 2013 09:54:23 +0000 (09:54 +0000)]
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204898 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204894 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204893 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204891 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204888 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * lib/gcc.exp (gcc_target_compile): Add support for random runtime
mrs [Sat, 16 Nov 2013 00:09:34 +0000 (00:09 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204887 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/testsuite:
jsm28 [Sat, 16 Nov 2013 00:05:08 +0000 (00:05 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204886 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-15 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 15 Nov 2013 23:51:23 +0000 (23:51 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204881 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-15 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 15 Nov 2013 23:17:23 +0000 (23:17 +0000)]
2013-11-15  Paolo Carlini  <paolo.carlini@oracle.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204866 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
kkojima [Fri, 15 Nov 2013 22:01:33 +0000 (22:01 +0000)]
* config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
is null.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204865 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoWhen file status is unknown, don't set O_CREAT when opening read-only.
jb [Fri, 15 Nov 2013 22:00:36 +0000 (22:00 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204864 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
aldyh [Fri, 15 Nov 2013 21:43:59 +0000 (21:43 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204863 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc:
wschmidt [Fri, 15 Nov 2013 21:16:32 +0000 (21:16 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204862 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
law [Fri, 15 Nov 2013 21:11:50 +0000 (21:11 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204861 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * ifcvt.c (find_cond_trap): Properly handle case where
law [Fri, 15 Nov 2013 18:14:10 +0000 (18:14 +0000)]
* ifcvt.c (find_cond_trap): Properly handle case where
trap_bb == else_bb.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204856 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-15 Steve Ellcey <sellcey@mips.com>
sje [Fri, 15 Nov 2013 17:50:28 +0000 (17:50 +0000)]
2013-11-15  Steve Ellcey  <sellcey@mips.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204855 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoconfig/
schwab [Fri, 15 Nov 2013 17:49:36 +0000 (17:49 +0000)]
config/
* picflag.m4 (m68k-*-*): Use default PIC flag.

gcc/
* configure: Regenerate.

libada/
* configure: Regenerate.

libgcc/
* configure: Regenerate.

libiberty/
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204854 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204853 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago[AArch64] Remove simd_type
jgreenhalgh [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204852 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * include/bits/stl_bvector.h (vector<bool>::emplace_back()): LWG 2187:
redi [Fri, 15 Nov 2013 16:34:06 +0000 (16:34 +0000)]
* include/bits/stl_bvector.h (vector<bool>::emplace_back()): LWG 2187:
Define.
(vector<bool>::emplace()): Likewise.
* testsuite/23_containers/vector/bool/emplace.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204851 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-15 Ondřej Bílka <neleai@seznam.cz>
redi [Fri, 15 Nov 2013 16:33:59 +0000 (16:33 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204850 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * include/bits/stl_map.h (map): Implement C++11 allocator-aware
redi [Fri, 15 Nov 2013 15:34:14 +0000 (15:34 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204848 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/c-family/
rsandifo [Fri, 15 Nov 2013 14:52:36 +0000 (14:52 +0000)]
gcc/c-family/
* c-pretty-print.c (pp_c_character_constant): Remove unnecessary
wchar_type and host_integerp checks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204847 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/
rsandifo [Fri, 15 Nov 2013 14:52:23 +0000 (14:52 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204846 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-15 Richard Biener <rguenther@suse.de>
rguenth [Fri, 15 Nov 2013 14:48:22 +0000 (14:48 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204845 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-15 Richard Biener <rguenther@suse.de>
rguenth [Fri, 15 Nov 2013 14:43:52 +0000 (14:43 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204843 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204842 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure
jsm28 [Fri, 15 Nov 2013 12:34:28 +0000 (12:34 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204841 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoAdd and use System.Linux.time_t for time_t
hjl [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204840 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204839 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204838 138bc75d-0d04-0410-961f-82ee72b054a4