1 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
3 * config/aarch64/aarch64.md (copysigndf3): New.
4 (copysignsf3): Likewise.
6 2015-09-17 David S. Miller <davem@davemloft.net>
8 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
10 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
12 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13 (HARD_REGNO_CALLER_SAVE_MODE): Define.
14 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
16 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
17 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
18 provide when flag_pic.
20 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
22 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
23 object_allocator change.
25 2015-09-17 Bin Cheng <bin.cheng@arm.com>
27 PR tree-optimization/66388
28 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New
30 (dump_iv): Dump no_overflow information.
31 (alloc_iv): Initialize new field for struct iv.
32 (mark_bivs): Count number of no_overflow bivs.
33 (find_deriving_biv_for_expr, record_biv_for_address_use): New
35 (idx_find_step): Call new functions above.
36 (add_candidate_1, add_candidate): New paramter.
37 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
38 (get_computation_aff): Simplify convertion of cand for BIV.
39 (get_computation_cost_at): Step cand's base if necessary.
41 2015-09-17 Bin Cheng <bin.cheng@arm.com>
43 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
45 (tree_simplify_using_condition): Ditto.
46 (simplify_using_initial_conditions): Ditto.
47 (loop_exits_before_overflow): Pass new argument to function
48 simplify_using_initial_conditions. Remove case for type conversions
50 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
52 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
53 in iv base using loop initial conditions.
55 2015-09-16 Jeff Law <law@redhat.com>
57 PR tree-optimization/47679
58 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
59 (free_all_edge_infos): Use it.
60 (allocate_edge_info): Free preexisting edge info data.
61 (pass_dominator::execute): Set up initial edge info structures.
62 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
64 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument. If
65 non-null, then push/pop markers appropriately.
66 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
67 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
70 2015-09-16 James Bowman <james.bowman@ftdichip.com>
72 * config/ft32/ft32.c Fix the memory address space predicate.
74 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
77 * config/sh/sh.md (call_pcrel): Add early clobber to scratch
79 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
81 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
83 * toplev.h (check_global_declaration): Remove declaration.
84 * toplev.c (check_global_declaration): Move to ...
85 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
86 (analyze_functions): Update call.
88 2015-09-16 David S. Miller <davem@davemloft.net>
90 * lra-constraints.c (simplify_operand_subreg): Do not assume that
91 lowpart of a SUBREG has offset zero.
93 2015-09-16 Jeff Law <law@redhat.com>
95 PR tree-optimization/47679
96 * tree-ssa-dom.c (enum expr_kind): Moved from here to
97 tree-ssa-scopedtables.h.
98 (struct hashable_expr, class expr_hash_elt): Likewise.
99 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
100 Move associated methods into tree-ssa-scopedtables.c.
101 (avail_expr_hash, initialize_expr_from_cond): Similarly.
102 (hashable_expr_equal_p, add_expr_commutative): Likewise.
103 (add_hashable_expr): Likewise.
104 (record_cond): Delete element directly.
105 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
106 private copy ctor and assignment operator methods.
107 (expr_elt_hasher): Inline trivial methods.
108 (initialize_expr_from_cond): Prototype.
109 * tree-ssa-scopedtables.c: Add necessary includes, functions and
110 methods that were previously in tree-ssa-dom.c. Improve various
113 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
115 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
117 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
120 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
123 2015-09-16 Richard Biener <rguenther@suse.de>
126 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
127 location of possibly shared trees.
129 2015-09-16 Richard Biener <rguenther@suse.de>
132 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
134 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
136 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
137 offset and size computations instead of HOST_WIDE_INT.
139 2015-09-16 Richard Biener <rguenther@suse.de>
142 * fold-const.c (extract_muldiv_1): Properly extend multiplication
143 result before builting a tree via wide_int_to_tree.
145 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
147 * Makefile.in: Add memory-block.cc
148 (pool_allocator::initialize): Use fixed block size.
149 (pool_allocator::release): Use memory_block_pool.
150 (pool_allocator::allocate): Likewise.
151 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
153 * cfg.c (initialize_original_copy_tables): Likewise.
154 * cselib.c (elt_list_pool, elt_loc_list_pool,
155 cselib_val_pool): Likewise.
156 * df-problems.c (df_chain_alloc): Likewise.
157 * df-scan.c (df_scan_alloc): Likewise.
158 * dse.c (cse_store_info_pool, rtx_store_info_pool,
159 read_info_type_pool, insn_info_type_pool, bb_info_pool,
160 group_info_pool, deferred_change_pool): Likewise.
161 * et-forest.c (et_nodes, et_occurrences): Likewise.
162 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
163 ipcp_agg_lattice_pool): Likewise.
164 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
165 * ipa-profile.c (histogram_pool): Likewise.
166 * ipa-prop.c (ipa_refdesc_pool): Likewise.
167 * ira-build.c (live_range_pool, allocno_pool, object_pool,
168 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
169 * ira-color.c (update_cost_record_pool): Likewise.
170 * lra-lives.c (lra_live_range_pool): Likewise.
171 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
172 * memory-block.cc: New file.
173 * memory-block.h: New file.
174 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
175 * sched-deps.c (sched_deps_init): Likewise.
176 * sel-sched-ir.c (sched_lists_pool): Likewise.
177 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
178 * tree-sra.c (access_pool): Likewise.
179 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
180 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
181 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
182 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
183 * tree-ssa-strlen.c (strinfo_pool): Likewise.
184 * tree-ssa-structalias.c (variable_info_pool): Likewise.
185 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
186 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
188 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
190 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
192 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
195 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
197 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
198 to pass TLS call argument, according to current ABI.
199 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
200 callx0 for TLS call, according to current ABI.
202 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
204 * tree-eh.c (lower_try_finally_dup_block): Clear location information
205 on stack restore statements.
206 (decide_copy_try_finally): Do not consider a stack restore statement as
209 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
211 * config/alpha/alpha.c (alpha_expand_block_clear): Use
212 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
214 2015-09-15 Jeff Law <law@redhat.com>
216 PR tree-optimization/47679
217 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
218 methods and private members.
219 (avail_exprs_stack): Similarly. Change type of global
220 from a pair of expr_hash_elt_t to the new class.
221 (expr_elt_hasher::hash): Corresponding changes.
222 (expr_elt_hasher::equal): Similarly.
223 (avail_expr_hash): Similarly.
224 (pass_dominator::execute): Similarly.
225 (dom_opt_dom_walker::thread_across_edge): Similarly.
226 (record_cond): Similarly.
227 (dom_opt_dom_walker::before_dom_children): Similarly.
228 (dom_opt_dom_walker::after_dom_children): Similarly.
229 (lookup_avail_expr): Likewise.
230 (initialize_hash_element): Now a expr_hash_elt constructor.
231 (initialize_hash_element_from_expr): Similarly.
232 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
233 (free_expr_hash_elt): Call dtor for the element.
234 (remove_local_expressions_from_table): Now the "pop_to_marker"
235 method in the available_exprs_stack class.
236 (avail_expr_stack::record_expr): Method factored out.
237 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
239 (hashable_expr_equal_p): Fix formatting.
241 2015-09-15 David Malcolm <dmalcolm@redhat.com>
243 * input.h (location_get_source_line): Drop "expanded_location"
244 param in favor of a file and line number.
245 * input.c (location_get_source_line): Likewise.
246 (dump_location_info): Update for change in signature of
247 location_get_source_line.
248 * diagnostic.c (diagnostic_print_caret_line): Likewise.
250 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
252 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
253 Bump to 4KB for SJLJ exceptions.
254 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
255 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
256 * doc/tm.texi: Regenerate.
258 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
260 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
261 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
264 2015-09-15 Richard Biener <rguenther@suse.de>
266 PR tree-optimization/67470
267 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
268 structure for PHI hoisting by inserting a forwarder block
271 2015-09-15 Christian Bruel <christian.bruel@st.com>
273 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
274 (arm_option_print): New function.
276 2015-09-15 Christian Bruel <christian.bruel@st.com>
279 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
280 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
281 Remove flags parameter.
282 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
283 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
284 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
285 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
286 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
287 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
288 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
289 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
291 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
293 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
295 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
296 AARCH64_VALID_SIMD_DREG_MODE.
298 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
300 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
301 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
302 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
303 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
304 aarch64_ld4_lane<mode>): Combine together, making...
305 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
306 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
307 aarch64_st4_lane<mode>): Combine together, making...
308 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
309 * config/aarch64/iterators.md (nregs): Add comment.
311 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
313 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
314 Change operand mode from <V_TWO_ELEM> to BLK.
315 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
316 (aarch64_vec_store_lanesoi_lane<mode): Likewise
317 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
318 (aarch64_ld2_lane<mode>): Likewise.
319 (aarch64_st2_lane<VQ:mode>): Likewise.
320 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
322 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
324 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
325 Change operand mode from <V_FOUR_ELEM> to BLK.
326 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
327 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
328 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
329 (aarch64_ld4_lane<mode>): Likewise.
330 (aarch64_st4_lane<mode>): Likewise.
331 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
333 2015-09-15 Richard Biener <rguenther@suse.de>
336 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
337 transfer EH info from old to new stmt.
338 (replace_call_with_value): Likewise.
339 (replace_call_with_call_and_fold): Likewise.
340 (gimple_fold_builtin_memory_op): Likewise.
341 (gimple_fold_builtin_memset): Likewise.
342 (gimple_fold_builtin_stpcpy): Likewise.
343 (gimple_fold_call): Likewise.
345 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
347 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
349 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
350 (aarch64_simd_intEI_type_node): Likewise.
351 (aarch64_simd_builtin_std_type): Remove EImode case.
352 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
353 * config/aarch64/aarch64-modes.def: Remove EImode.
355 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
357 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
358 Change operand mode from <V_THREE_ELEM> to BLK.
359 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
360 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
361 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
362 (aarch64_ld3_lane<mode>): Likewise.
363 (aarch64_st3_lane<mode>): Likewise.
364 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
366 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
368 * config/aarch64/aarch64-simd.md
369 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
370 Change all TImode operands to BLKmode.
371 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
372 Change all EImode operands to BLKmode.
373 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
374 Change all OImode operands to BLKmode.
376 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
377 and call set_mem_size.
378 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
380 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
382 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
384 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
386 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
388 (vec_store_lanesci_lane<mode>): Rename to...
389 (aarch64_vec_store_lanesci_lane<mode>): ...this.
391 (vec_store_lanesxi_lane<mode>): Rename to...
392 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
394 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
395 aarch64_st4_lane<mode>): Follow renaming.
397 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
399 * config/s390/s390.c (s390_const_operand_ok): Add missing
402 2015-09-15 Richard Biener <rguenther@suse.de>
405 * lto-streamer.h (lto_location_cache::current_sysp): Properly
407 * lto-streamer-out.c (clear_line_info): Likewise.
409 2015-09-15 Richard Biener <rguenther@suse.de>
411 * doc/match-and-simplify.texi: Fix wording.
413 2015-09-15 Bin Cheng <bin.cheng@arm.com>
415 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
416 unnecessary type conversion in op1.
418 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
420 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
421 (dup_block_and_redirect): Delete function.
422 (can_dup_for_shrink_wrapping): New function.
423 (fix_fake_fallthrough_edge): New function.
424 (try_shrink_wrapping): Rewrite function.
425 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
427 2015-09-14 Rich Felker <dalias@libc.org>
429 * configure.ac: Change target pattern for sh TLS support
430 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
431 * configure: Regenerate.
433 2015-09-14 Jeff Law <law@redhat.com>
435 PR tree-optimization/47679
436 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
437 type rather than void *.
439 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
442 * diagnostic.c (diagnostic_initialize): Do not set
443 some_warnings_are_errors.
444 (diagnostic_finish): Use DK_WERROR count instead.
445 (diagnostic_report_diagnostic): Do not set
446 some_warnings_are_errors.
447 * diagnostic.h (struct diagnostic_context): Remove
448 some_warnings_are_errors.
450 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
452 * config/sparc/predicates.md (const_all_ones_operand): Use
453 CONSTM1_RTX to simplify definition.
455 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
458 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
461 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
463 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
464 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
465 OPT_fshow_column to handled saved option cases.
466 (append_compiler_options): Do not skip the above added options.
468 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
471 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
472 nopcrelative_literal_loads.
473 (aarch64_classify_address): Likewise.
474 (aarch64_constant_pool_reload_icode): Define.
475 (aarch64_secondary_reload): Handle secondary reloads for
477 (aarch64_override_options): Handle nopcrelative_literal_loads.
478 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
479 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
481 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
482 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
483 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
485 * doc/invoke.texi (mpc-relative-literal-loads): Document.
487 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
490 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
491 sync_compare_and_swap_optab libcall to target_oval.
493 2015-09-14 Marek Polacek <polacek@redhat.com>
495 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
497 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
499 2015-09-11 Mark Wielaard <mjw@redhat.com>
502 * toplev.c (check_global_declaration): Check and use
503 warn_unused_const_variable.
504 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
505 (-Wunused-variable): Remove non-constant. For C implies
506 -Wunused-const-variable.
507 (-Wunused-const-variable): New.
509 2015-09-14 Richard Biener <rguenther@suse.de>
511 * doc/match-and-simplify.texi: Update for changed syntax
512 of inner ifs and the new switch expression.
514 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
516 * config/i386/haswell.md: New file describing Haswell pipeline.
517 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
518 haswell-like processors.
519 (ix86_reassociation_width): Increase reassociation width for 64-bit
520 Haswell processor family.
521 * config/i386/i386.md: Introduce haswell cpu and include new md file.
523 2015-09-14 Richard Biener <rguenther@suse.de>
525 * doc/match-and-simplify.texi: Fixup some formatting issues
526 and document the 's' flag.
528 2015-09-13 Olivier Hainque <hainque@adacore.com>
529 Eric Botcazou <ebotcazou@adacore.com>
531 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
532 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
533 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
534 (TARGET_CPU_gr5): Likewise.
535 (TARGET_CPU_gr6): Likewise.
536 (MULTILIB_DEFAULTS): Likewise.
537 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
538 for mcpu=gr5 and mcpu=gr6.
539 (MULTILIB_DIRNAMES): Adjust accordingly.
541 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
543 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
544 (mem_ref_p): Likewise.
545 (outermost_indep_loop): Adjust.
546 (mem_ref_in_stmt): Likewise.
547 (determine_max_movement): Likewise.
548 (mem_ref_alloc): Likewise.
549 (record_mem_ref_loc): Likewise.
550 (set_ref_stored_in_loop): Likewise.
551 (mark_ref_stored): Likewise.
552 (gather_mem_refs_stmt): Likewise.
553 (mem_refs_may_alias_p): Likewise.
554 (for_all_locs_in_loop): Likewise.
555 (struct rewrite_mem_ref_loc): Likewise.
556 (rewrite_mem_refs): Likewise.
557 (struct first_mem_ref_loc_1): Likewise.
558 (first_mem_ref_loc): Likewise.
559 (struct sm_set_flag_if_changed): Likewise.
560 (execute_sm_if_changed_flag_set): Likewise.
561 (execute_sm): Likewise.
562 (hoist_memory_references):
563 (struct ref_always_accessed): Likewise.
564 (ref_always_accessed_p): Likewise.
565 (refs_independent_p): Likewise.
566 (record_dep_loop): Likewise.
567 (ref_indep_loop_p_1): Likewise.
568 (ref_indep_loop_p_2): Likewise.
569 (ref_indep_loop_p): Likewise.
570 (can_sm_ref_p): Likewise.
571 (find_refs_for_sm): Likewise.
572 (tree_ssa_lim_finalize): Likewise.
574 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
576 * dwarf2out.c (dw_attr_ref): Remove typedef.
577 (dw_line_info_ref): Likewise.
578 (pubname_ref): Likewise.
579 (dw_ranges_ref): Likewise.
580 (dw_ranges_by_label_ref): Likewise.
581 (comdat_type_node_ref): Likewise.
583 (get_AT_low_pc): Likewise.
584 (get_AT_hi_pc): Likewise.
585 (get_AT_string): Likewise.
586 (get_AT_flag): Likewise.
587 (get_AT_unsigned): Likewise.
588 (get_AT_ref): Likewise.
589 (get_AT_file): Likewise.
590 (remove_AT): Likewise.
591 (print_die): Likewise.
592 (check_die): Likewise.
593 (die_checksum): Likewise.
594 (attr_checksum_ordered): Likewise.
595 (struct checksum_attributes): Likewise.
596 (collect_checksum_attributes): Likewise.
597 (die_checksum_ordered): Likewise.
598 (same_die_p): Likewise.
599 (is_declaration_die): Likewise.
600 (clone_die): Likewise.
601 (clone_as_declaration): Likewise.
602 (copy_declaration_context): Likewise.
603 (break_out_comdat_types): Likewise.
604 (copy_decls_walk): Likewise.
605 (output_location_lists): Likewise.
606 (external_ref_hasher::hash): Likewise.
607 (optimize_external_refs_1): Likewise.
608 (build_abbrev_table): Likewise.
609 (size_of_die): Likewise.
610 (unmark_all_dies): Likewise.
611 (size_of_pubnames): Likewise.
612 (output_die_abbrevs): Likewise.
613 (output_die): Likewise.
614 (output_pubnames): Likewise.
615 (add_ranges_num): Likewise.
616 (add_ranges_by_labels): Likewise.
617 (add_high_low_attributes): Likewise.
618 (gen_producer_string): Likewise.
619 (dwarf2out_set_name): Likewise.
620 (new_line_info_table): Likewise.
621 (prune_unused_types_walk_attribs): Likewise.
622 (prune_unused_types_update_strings): Likewise.
623 (prune_unused_types): Likewise.
624 (resolve_addr): Likewise.
625 (optimize_location_lists_1): Likewise.
626 (index_location_lists): Likewise.
627 (dwarf2out_finish): Likewise.
629 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
631 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
633 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
635 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
636 (dump_asserts_for): Adjust.
637 (register_new_assert_for): Likewise.
638 (process_assert_insertions): Likewise.
639 (insert_range_assertions): Likewise.
641 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
643 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
645 (new_temp_expr_table): Adjust.
646 (free_temp_expr_table): Likewise.
647 (version_to_be_replaced_p): Likewise.
648 (make_dependent_on_partition): Likewise.
649 (add_to_partition_kill_list): Likewise.
650 (remove_from_partition_kill_list): Likewise.
651 (add_dependence): Likewise.
652 (finished_with_expr): Likewise.
653 (process_replaceable): Likewise.
654 (kill_expr): Likewise.
655 (kill_virtual_exprs): Likewise.
656 (mark_replaceable): Likewise.
657 (find_replaceable_in_bb): Likewise.
658 (find_replaceable_exprs): Likewise.
659 (debug_ter): Likewise.
661 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
663 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
664 (struct btr_user): Rename from btr_user_s.
665 (struct btr_def): Rename from btr_def_s.
666 (find_btr_def_group): Adjust.
667 (add_btr_def): Likewise.
668 (new_btr_user): Likewise.
669 (note_other_use_this_block): Likewise.
670 (compute_defs_uses_and_gen): Likewise.
671 (link_btr_uses): Likewise.
672 (build_btr_def_use_webs): Likewise.
673 (block_at_edge_of_live_range_p): Likewise.
674 (btr_def_live_range): Likewise.
675 (combine_btr_defs): Likewise.
676 (move_btr_def): Likewise.
677 (migrate_btr_def): Likewise.
678 (migrate_btr_defs): Likewise.
680 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
682 * var-tracking.c (shared_hash_def): Rename to shared_hash.
683 (shared_hash): Remove typedef.
684 (struct dataflow_set): Adjust.
685 (shared_hash_unshare): Likewise.
686 (dataflow_set_merge): Likewise.
687 (vt_initialize): Likewise.
688 (vt_finalize): Likewise.
690 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
692 * var-tracking.c (struct location_chain): Rename from
694 (struct variable_part): Adjust.
695 (variable_htab_free): Likewise.
696 (unshare_variable): Likewise.
697 (get_init_value): Likewise.
698 (get_addr_from_local_cache): Likewise.
699 (drop_overlapping_mem_locs): Likewise.
700 (val_reset): Likewise.
701 (struct variable_union_info): Likewise.
702 (variable_union): Likewise.
703 (find_loc_in_1pdv): Likewise.
704 (insert_into_intersection): Likewise.
705 (intersect_loc_chains): Likewise.
706 (canonicalize_loc_order_check): Likewise.
707 (canonicalize_values_mark): Likewise.
708 (canonicalize_values_star): Likewise.
709 (canonicalize_vars_star): Likewise.
710 (variable_merge_over_cur): Likewise.
711 (remove_duplicate_values): Likewise.
712 (variable_post_merge_new_vals): Likewise.
713 (variable_post_merge_perm_vals): Likewise.
714 (find_mem_expr_in_1pdv): Likewise.
715 (dataflow_set_preserve_mem_locs): Likewise.
716 (dataflow_set_remove_mem_locs): Likewise.
717 (variable_part_different_p): Likewise.
718 (onepart_variable_different_p): Likewise.
719 (find_src_set_src): Likewise.
720 (dump_var): Likewise.
721 (set_slot_part): Likewise.
722 (clobber_slot_part): Likewise.
723 (delete_slot_part): Likewise.
724 (vt_expand_var_loc_chain): Likewise.
725 (emit_note_insn_var_location): Likewise.
726 (vt_finalize): Likewise.
728 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
730 * dse.c (store_info_t): Remove typedef.
731 (group_info_t): Likewise.
732 (const_group_info_t): Likewise.
733 (deferred_change_t): Likewise.
734 (get_group_info): Adjust.
735 (free_store_info): Likewise.
736 (canon_address): Likewise.
737 (clear_rhs_from_active_local_stores): Likewise.
738 (record_store): Likewise.
739 (replace_read): Likewise.
740 (check_mem_read_rtx): Likewise.
741 (scan_insn): Likewise.
742 (remove_useless_values): Likewise.
743 (dse_step1): Likewise.
744 (dse_step2_init): Likewise.
745 (dse_step2_nospill): Likewise.
746 (scan_stores_nospill): Likewise.
747 (scan_reads_nospill): Likewise.
748 (dse_step3_exit_block_scan): Likewise.
749 (dse_step3): Likewise.
750 (dse_step5_nospill): Likewise.
751 (dse_step6): Likewise.
753 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
755 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
756 (alias_set_entry): Remove typedef.
757 (alias_set_subset_of): Adjust.
758 (alias_sets_conflict_p): Likewise.
759 (init_alias_set_entry): Likewise.
760 (get_alias_set): Likewise.
761 (new_alias_set): Likewise.
762 (record_alias_subset): Likewise.
764 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
766 * doc/install.texi (Downloading the source): Mark up
767 contrib/download_prerequisites properly and drop leading "./".
769 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
771 * config/arc/arc.h: Remove define of STRUCT_VALUE.
772 * config/lm32/lm32.h: Likewise.
773 * config/mep/mep.h: Likewise.
774 * config/visium/visium.h: Likewise.
775 * system.h: Poison STRUCT_VALUE macro.
777 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
779 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
782 2015-09-11 David S. Miller <davem@davemloft.net>
784 * config/sparc/constraints.md: Make "U" constraint a real register
786 * config/sparc/sparc.c (TARGET_LRA_P): Define.
787 (D_MODES, DF_MODES): Add missing cast.
788 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
789 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
790 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
792 * config/sparc/sparc.h (PROMOTE_MODE): Define.
793 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
794 provide these insn when flag_pic.
796 2015-09-11 Jeff Law <law@redhat.com>
798 PR tree-optimization/47679
799 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
800 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
801 member with m_. Update inline member functions as necessary. Add
803 * tree-ssa-scopedtables.c: Update const_and_copies's member
804 functions to use m_ prefix to access the stack.
806 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
808 * graphite-optimize-isl.c (disable_tiling): Remove.
809 (get_schedule_for_band): Do not use disable_tiling.
810 (get_prevector_map): Delete function.
811 (enable_polly_vector): Remove.
812 (get_schedule_for_band_list): Remove dead code.
814 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
816 * graphite-optimize-isl.c (get_tile_map): Refactor.
817 (get_schedule_for_band): Same.
818 (getScheduleForBand): Same.
819 (get_prevector_map): Same.
820 (get_schedule_for_band_list): Same.
821 (get_schedule_map): Same.
822 (get_single_map): Same.
823 (apply_schedule_map_to_scop): Same.
824 (optimize_isl): Same.
826 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
829 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
831 * config/aarch64/iterators.md (GPF_TF_F16): New.
834 2015-09-10 Nathan Sidwell <nathan@acm.org>
836 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
837 (nvptx_reorg): Adjust comments.
839 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
842 * configure.ac: Check if setenv and unsetenv are declared.
843 * configure: Rebuild.
844 * config.in: Rebuild.
845 * system.h: Declare setenv and unsetenv if not declared.
847 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
849 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
850 commentary to simplify permute mask adjustment equation.
851 (special_handling_values): Add SH_VPERM.
852 (const_load_sequence_p): New function.
853 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
854 the mask loaded from the constant pool.
855 (adjust_vperm): New function.
856 (handle_special_swappables): Call adjust_vperm.
857 (dump_swap_insn_table): Handle SH_VPERM.
859 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
861 * shrink-wrap.c (requires_stack_frame_p): Remove static.
862 * shrink-wrap.h (requires_stack_frame_p): Put back.
864 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
866 * reload1.c (elimination_costs_in_insn): Locally turn
867 -Wmaybe-uninitialized into a warning.
869 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
871 * shrink-wrap.c (requires_stack_frame_p): Make static.
872 (prepare_shrink_wrap): Likewise.
873 (dup_block_and_redirect): Likewise.
874 * shrink-wrap.h: Remove declarations of those functions.
876 2015-09-10 Mark Wielaard <mjw@redhat.com>
878 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
880 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
883 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
884 missing simplify_gen_subreg.
886 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
888 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
889 the vector element is bigger than 64 bit.
891 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
893 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
894 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
896 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
898 * config/s390/s390.c: Add V1TImode to constant pool modes.
900 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
903 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
904 predicate. Set predicable_short_it attr to "no".
906 2015-09-10 Jiong Wang <jiong.wang@arm.com>
908 PR rtl-optimization/67421
909 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
910 left wide shift tranformation.
912 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
914 * common/config/arc/arc-common.c: Remove references to A5.
915 * config/arc/arc-opts.h: Likewise.
916 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
917 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
918 * config/arc/t-arc-newlib: Likewise.
920 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
922 * config/arc/arc.md (length): Fix attribute length for conditional
923 executed instructions with long immediate.
925 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
927 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
928 type for second alternative.
930 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
932 * doc/invoke.texi (Downloading GCC): Mention
933 contrib/download_prerequisites script.
935 2015-09-10 Jakub Jelinek <jakub@redhat.com>
938 * gimplify.c (gimplify_omp_for): If inner stmt is not found
939 for combined loop, assert seen_error () and return GS_ERROR.
942 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
943 if decl is already in outer->variables.
946 * gimplify.c (gimplify_scan_omp_clauses): Instead of
947 asserting that decl is not specified in octx->variables,
948 break out of the loop if it is.
951 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
952 iterator is not explicitly determined, but is defined inside
953 of the combined workshare region, handle it like if it has
954 DECL_EXPR in OMP_FOR_PRE_BODY.
956 2015-09-09 Nathan Sidwell <nathan@acm.org>
958 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
959 (*cmp<mode>): Add assembler spacing.
960 (setcc_int<mode>, set_cc_float<mode>): Likewise.
961 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
963 (write_func_decl_from_insn): Refactor argument loops & comma emission.
964 (nvptx_expand_call): Likewise.
965 (nvptx_output_call_insn): Likewise.
966 (nvptx_reorg_subreg): Add spacing.
968 2015-09-09 Marek Polacek <polacek@redhat.com>
971 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
974 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
977 * doc/invoke.texi ([Wsubobject-linkage]): Document.
979 2015-09-09 Tom de Vries <tom@codesourcery.com>
981 * params-list.h: Add missing copyright notice.
983 2015-09-09 Nathan Sidwell <nathan@acm.org>
985 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
986 sel_truesi, not andsi.
988 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
990 * config/arm/arm.md (*subsi3_compare0): Rename to...
991 (subsi3_compare0): ... This.
992 (modsi3): New define_expand.
993 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
994 when operand is power of 2.
996 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
998 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
999 (*neg<mode>2_compare0): Rename to...
1000 (neg<mode>2_compare0): ... This.
1001 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
1002 Move check for speed inside the if-then-elses. Reflect
1003 CSNEG sequence in MOD by power of 2 case.
1005 2015-09-09 Alan Modra <amodra@gmail.com>
1008 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
1009 reload replacement for PRE_MODIFY address reg.
1011 2015-09-09 Sebastian Pop <s.pop@samsung.com>
1013 PR tree-optimization/53852
1014 * config.in: Regenerate.
1015 * configure: Regenerate.
1016 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
1017 * graphite-optimize-isl.c (optimize_isl): Stop computation when
1018 PARAM_MAX_ISL_OPERATIONS is reached.
1019 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
1020 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
1021 result equal to isl_stat_ok as the status now can be isl_error_quota.
1022 (subtract_commutative_associative_deps): Same.
1023 (compute_deps): Same.
1025 2015-09-08 Aditya Kumar <hiraditya@msn.com>
1026 Sebastian Pop <s.pop@samsung.com>
1028 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1029 Return the parameter if it was saved in corresponding
1030 parameter_rename_map of the region.
1031 (copy_def): Copy def from sese region to the newly created region.
1032 (copy_internal_parameters): Copy all the internal parameters defined
1033 within a region to the newly created region.
1034 (graphite_regenerate_ast_isl): Copy parameters to the new region before
1035 translating isl to gimple.
1036 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
1037 the loop-nest does not have any data-references.
1038 (build_graphite_scops): Create a scop only when there is at least one
1040 (contains_only_close_phi_nodes): Deleted.
1041 (print_graphite_scop_statistics): Deleted
1042 (print_graphite_statistics): Deleted
1043 (limit_scops): Deleted.
1044 (build_scops): Removed call to limit_scops.
1045 * sese.c (new_sese): Construct.
1046 (free_sese): Destruct.
1047 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
1049 (set_rename): Pass sese region so that parameters inside the region can
1050 be added to its parameter_rename_map.
1051 (rename_uses): Pass sese region.
1052 (graphite_copy_stmts_from_block): Do not copy parameters that have been
1053 generated in the header of the scop. For each SSA_NAME in the
1054 parameter_rename_map rename its usage.
1055 (invariant_in_sese_p_rec): Return false if tree t is defined outside
1057 (scalar_evolution_in_region): If the tree t is invariant just return t.
1058 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
1059 struct sese to keep track of all the parameters which need renaming.
1060 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
1062 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
1064 2015-09-08 Tom de Vries <tom@codesourcery.com>
1066 * Makefile.in (generated_files): Add params.list.
1067 (params.list, s-params.list): Add rule.
1068 * params.h (enum compiler_param): Include params-list.h. Move define
1069 DEFPARAM, include params.def and undef DEFPARAM ...
1070 * params-list.h: ... here. New file.
1072 2015-09-08 David Malcolm <dmalcolm@redhat.com>
1074 * pretty-print.h (printer_fn): Fix typo in comment.
1076 2015-09-07 Jeff Law <law@redhat.com>
1078 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
1080 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1082 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
1083 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
1084 (arm_neon_fp16_hw): New.
1086 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1088 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
1089 UNITS_PER_WORD >= 4.
1091 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1093 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
1094 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
1095 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
1096 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
1097 (aarch64_float_extend_lo_v2df): Rename to...
1098 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
1100 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
1101 (float_extend_lo): Add v4sf.
1103 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
1104 * config/aarch64/iterators.md (VQ_HSF): New iterator.
1105 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
1106 (Vwide): New mode_attr.
1108 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1110 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
1111 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
1112 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
1113 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
1114 V4HF and V8HF variants to iterator.
1116 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
1118 * config/aarch64/iterators.md (VDQF_F16): New.
1119 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
1121 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1123 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
1124 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
1125 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
1126 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
1127 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
1128 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
1129 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
1130 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
1131 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
1132 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
1133 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
1134 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
1135 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
1136 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
1137 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
1138 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
1139 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
1140 vld1q_dup_f16): New.
1142 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1144 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
1145 Reparameterize to...
1146 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
1147 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
1148 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
1150 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
1152 (float_truncate_lo_): Use BUILTIN_VDF iterator.
1154 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
1156 * config/aarch64/iterators.md (VDF, Vdtype): New.
1157 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
1159 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1161 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
1162 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
1163 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
1164 Add __builtin_aarch64_simd_hf.
1165 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
1166 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
1167 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
1168 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
1169 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
1170 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
1171 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
1172 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
1173 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
1175 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
1176 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
1177 (VDC, Vdbl): Add V4HF.
1179 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1181 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
1182 V4HFmode and V8HFmode.
1183 (aarch64_split_simd_move): Add case for V8HFmode.
1184 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
1185 (aarch64_simd_builtin_std_type): Handle HFmode.
1186 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
1188 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
1189 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
1190 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
1192 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
1195 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
1196 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
1198 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
1199 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
1200 vst1q_lane_f16): New.
1201 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
1202 (VALLDI_F16, VALL_F16): New.
1203 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
1204 Add cases for V4HF and V8HF.
1205 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
1207 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1209 * config/arm/arm-builtins.c (VAR11, VAR12): New.
1210 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
1211 vld4_dup): Add v4hf variant.
1212 (vget_high, vget_low): Add v8hf variant.
1213 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
1214 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
1215 v4hf and v8hf variants.
1217 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
1219 (V_DOUBLE): Add case for V4HF.
1221 (V_HALF): Add case for V8HF.
1222 (VDQX): Add V4HF, V8HF.
1223 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
1224 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
1226 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
1227 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
1228 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
1229 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
1230 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
1231 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
1232 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
1233 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
1234 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
1236 (neon_vcreate, neon_vreinterpretv8qi<mode>,
1237 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
1238 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
1239 Change VDX to VD_RE.
1241 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
1242 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
1243 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
1245 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
1246 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
1247 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
1248 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
1249 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
1250 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
1251 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
1252 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
1253 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
1255 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1257 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
1258 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
1259 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
1260 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
1261 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
1262 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
1263 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
1264 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
1265 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
1266 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
1269 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1271 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
1273 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
1275 * config/arm/arm-builtins.c (v8hf_UP): New.
1276 (arm_init_simd_builtin_types): Initialise Float16x8_t.
1278 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
1280 * config/arm/arm_neon.h (float16x8_t): New typedef.
1282 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1284 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
1285 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
1286 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
1287 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
1288 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
1289 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
1290 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
1291 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
1292 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
1293 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
1295 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
1297 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
1298 non-alphanumeric characters in the symbol name.
1300 2015-09-07 Marek Polacek <polacek@redhat.com>
1303 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
1306 2015-09-07 Marek Polacek <polacek@redhat.com>
1308 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
1310 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
1312 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
1315 2015-09-04 Jakub Jelinek <jakub@redhat.com>
1318 * tree-ssa-live.c: Include cfgloop.h.
1319 (remove_unused_locals): Clear loop->simduid if simduid is about
1320 to be removed from cfun->local_decls.
1322 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1325 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
1328 2015-09-04 Tom de Vries <tom@codesourcery.com>
1330 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
1332 2015-09-04 Jeff Law <law@redhat.com>
1334 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
1335 unnecessary constructor. It's now trivial and implemented inside...
1336 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
1337 constructor. Add comments to various methods. Remove unused
1339 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
1340 * tree-vrp.c (identify_jump_threads): Likewise.
1341 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
1343 (thread_across_edge): Similarly.
1344 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
1345 arguments in constructor call.
1347 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
1349 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
1350 temp path contains a '-'.
1352 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
1353 Petr Murzin <petr.murzin@intel.com>
1354 Kirill Yukhin <kirill.yukhin@intel.com>
1356 * config/i386/i386-builtin-types.def
1357 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
1358 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
1359 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
1360 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
1361 * config/i386/i386.c
1362 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
1363 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
1364 IX86_BUILTIN_SCATTERALTDIV16SI.
1365 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
1366 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
1367 __builtin_ia32_scatteraltdiv8si.
1368 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
1369 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
1370 IX86_BUILTIN_SCATTERALTDIV16SI.
1371 (ix86_vectorize_builtin_scatter): New.
1372 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
1373 ix86_vectorize_builtin_scatter.
1375 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
1376 Petr Murzin <petr.murzin@intel.com>
1377 Kirill Yukhin <kirill.yukhin@intel.com>
1379 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
1380 * doc/tm.texi: Regenerate.
1381 * target.def: Add scatter builtin.
1382 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
1383 for loads/stores in case of gather/scatter accordingly.
1384 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
1385 (vect_check_gather): Rename to ...
1386 (vect_check_gather_scatter): this.
1387 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
1388 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
1389 (vect_check_gather_scatter): Use it instead of vect_check_gather.
1390 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter variable
1391 and new checkings for it accordingly.
1393 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
1394 (vect_check_gather_scatter): Use it instead of vect_check_gather.
1395 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
1397 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
1399 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
1401 (mulv16qi3): New define_expand.
1403 2015-09-03 Martin Sebor <msebor@redhat.com>
1406 * doc/extend.texi (Other Builtins): Document when the address
1407 of a built-in function can be taken.
1409 2015-09-03 Richard Biener <rguenther@suse.de>
1411 * dwarf2out.c (flush_limbo_die_list): Split out from ...
1412 (dwarf2out_early_finish): ... here.
1413 (dwarf2out_finish): Do not call dwarf2out_early_finish but
1414 flush_limbo_die_list. Assert we have no deferred asm names.
1416 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1418 * optabs.c (expand_binop): Don't create a broadcast vector with a
1419 source element wider than the inner mode.
1421 2015-09-03 Richard Biener <rguenther@suse.de>
1423 * varasm.c (output_constant): Use fold_convert instead of
1426 2015-09-03 Tom de Vries <tom@codesourcery.com>
1428 PR tree-optimization/65637
1429 * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
1432 2015-09-03 Tom de Vries <tom@codesourcery.com>
1434 PR tree-optimization/65637
1435 * omp-low.c (find_phi_with_arg_on_edge): New function.
1436 (expand_omp_for_static_chunk): Fix inner loop phi.
1438 2015-09-03 Tom de Vries <tom@codesourcery.com>
1440 PR tree-optimization/65637
1441 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
1444 2015-09-03 Tom de Vries <tom@codesourcery.com>
1446 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
1448 2015-09-03 Tom de Vries <tom@codesourcery.com>
1450 * doc/invoke.texi (parloops-chunk-size): Add item.
1451 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
1452 * tree-parloops.c: Include params.h.
1453 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
1454 param parloops-chunk-size is used.
1456 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1459 * fold-const.c (fold_binary_loc) : Move
1460 Transform (x >> c) << c into x & (-1<<c) or
1461 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
1462 types using simplify and match.
1463 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
1464 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
1466 2015-09-03 Richard Biener <rguenther@suse.de>
1469 * tree-ssa-structalias.c (ctor_for_analysis): New function.
1470 (create_variable_info_for_1): Use ctor_for_analysis instead
1472 (create_variable_info_for): Likewise.
1474 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
1477 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
1478 in new callgraph edge.
1480 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
1485 * config/aarch64/aarch64-simd.md
1486 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
1487 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
1488 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
1489 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
1491 2015-09-02 Alan Modra <amodra@gmail.com>
1493 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
1494 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
1495 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
1497 2015-09-02 Alan Modra <amodra@gmail.com>
1500 * config/rs6000/predicates.md (current_file_function_operand): Don't
1501 return true for weak symbols.
1502 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
1504 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
1505 Andrew Bennett <andrew.bennett@imgtec.com>
1507 * config/mips/mips-opts.h (mips_cb_setting): New enum.
1508 * config/mips/mips-protos.h: Add definitions for
1509 mips_output_jump and mips_output_equal_conditional_branch
1510 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
1512 (mips_emit_compare): Add support for the MIPS R6 conditional
1514 (mips_process_sync_loop): Likewise.
1515 (mips_output_order_conditional_branch): Likewise.
1516 (mips16_build_call_stub): Change MIPS_CALL to
1518 (mips_print_operand_punctuation): Update 's' case to only
1519 apply to micromips r2.
1520 (mips_adjust_insn_length): Add support for forbidden slot
1522 (mips_avoid_hazard): Likewise.
1523 (mips_reorg_process_insns): Likewise.
1524 (mips_output_jump): New function.
1525 (mips_output_equal_conditional_branch): Likewise.
1526 (mips_output_conditional_branch): Use jrc/bc if compact
1527 branch support is enabled. Ensure the forbidden slots
1528 between the two branch instructions is filled with a nop.
1529 (mips_option_override): Add support to process the compact
1530 branch option and set the correct defaults. Prevent
1531 non-explict relocs being using for MIPS R6.
1532 (mips_trampoline_init): Add compact branch support.
1533 (mips_mult_zero_zero_cost): Allow zero initialisation of
1534 accumulators with TARGET_DSP.
1535 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
1536 (TARGET_CB_MAYBE): New define.
1537 (TARGET_CB_ALWAYS): New define.
1538 (ISA_HAS_DELAY_SLOTS): New define.
1539 (ISA_HAS_COMPACT_BRANCHES): New define.
1540 (ISA_HAS_JRC): New define.
1541 (MIPS_BRANCH_C): New define.
1542 (MIPS_CALL): Removed.
1543 (MICROMIPS_J): Removed.
1544 * config/mips/mips.md (compact_form): New attr.
1545 (hazard): Add support for forbidden slots.
1546 (define_delay): Add support for compact branches.
1547 (*branch_order<mode>): Likewise.
1548 (*branch_order<mode>_inverted): Likewise.
1549 (*branch_equality<mode>): Likewise.
1550 (*branch_equality<mode>_inverted): Likewise.
1551 (*jump_absolute): Likewise.
1552 (*jump_pic): Likewise.
1553 (indirect_jump): Use mips_output_jump to produce assembly output.
1554 (tablejump_<mode>"): Likewise.
1555 (*<optab>"): Likewise.
1556 (<optab>_internal): Likewise.
1557 (sibcall_internal): Likewise.
1558 (sibcall_value_internal): Likewise.
1559 (sibcall_value_multiple_internal): Likewise.
1560 (call_internal): Likewise.
1561 (call_split): Likewise.
1562 (call_internal_direct): Likewise.
1563 (call_direct_split): Likewise.
1564 (call_value_internal): Likewise.
1565 (call_value_split): Likewise.
1566 (call_value_internal_direct): Likewise.
1567 (call_value_direct_split): Likewise.
1568 (call_value_multiple_internal): Likewise.
1569 (call_value_multiple_split): Likewise.
1570 (mips_get_fcsr_mips16_<mode>): Likewise.
1571 (mips_set_fcsr_mips16_<mode>): Likewise.
1572 (tls_get_tp_mips16_<mode>): Likewise.
1573 * config/mips/mips.opt: Add -mcompact-branches option.
1574 * config/mips/predicates.md (order_operator): Ensure the
1575 conditional compact branches are only used if the ISA them.
1576 * doc/invoke.texi: Document -mcompact-branches option.
1578 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
1581 * lra-lives.c (process_bb_lives): Process move pseudos with the
1582 same value for copies and preferences
1583 * lra-constraints.c (match_reload): Create match reload pseudo
1584 with the same value from single dying input pseudo.
1586 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
1589 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
1591 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
1593 * trans-mem.c: Add contributed-by.
1594 * trans-mem.h: Same.
1596 2015-09-01 Richard Biener <rguenther@suse.de>
1598 * expr.c (expand_expr_real_1): For expanding TERed defs
1599 set the current location to that of the def if not UNKNOWN.
1601 2015-09-01 David Sherwood <david.sherwood@arm.com>
1603 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
1605 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1607 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
1608 then_cost, else_cost fields. Change branch_cost field to unsigned
1610 (end_ifcvt_sequence): Call set_used_flags on each insn in the
1613 (noce_simple_bbs): New function.
1614 (noce_try_move): Bail if basic blocks are not simple.
1615 (noce_try_store_flag): Likewise.
1616 (noce_try_store_flag_constants): Likewise.
1617 (noce_try_addcc): Likewise.
1618 (noce_try_store_flag_mask): Likewise.
1619 (noce_try_cmove): Likewise.
1620 (noce_try_minmax): Likewise.
1621 (noce_try_abs): Likewise.
1622 (noce_try_sign_mask): Likewise.
1623 (noce_try_bitop): Likewise.
1624 (bbs_ok_for_cmove_arith): New function.
1625 (noce_emit_all_but_last): Likewise.
1626 (noce_emit_insn): Likewise.
1627 (noce_emit_bb): Likewise.
1628 (noce_try_cmove_arith): Handle non-simple basic blocks.
1629 (insn_valid_noce_process_p): New function.
1630 (contains_mem_rtx_p): Likewise.
1631 (bb_valid_for_noce_process_p): Likewise.
1632 (noce_process_if_block): Allow non-simple basic blocks
1635 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
1637 * tree-ssa-dom.c (record_equivalences_from_phis,
1638 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
1639 (lookup_avail_expr): Likewise, and remove comment and unused temp.
1641 2015-09-01 Nick Clifton <nickc@redhat.com>
1643 * config/msp430/msp430.opt (mcpu): Fix typo.
1645 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1647 * config/aarch64/aarch64.c (aarch64_set_current_function):
1648 Re-layout any vector parameters have non-simd layout.
1649 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
1651 (aarch64_simd_expand_args): Delete call to the above.
1653 2015-08-31 Mike Frysinger <vapier@gentoo.org>
1655 * doc/invoke.texi (asan-stack): Add space before option.
1657 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
1659 * tree.h (zerop): New function.
1660 * tree.c (zerop): Likewise.
1661 (element_precision): Handle expressions.
1662 * match.pd (define_predicates): Add zerop.
1663 (x <= +Inf): Fix comment.
1664 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
1665 * fold-const.c (fold_binary_loc): ... here. Remove.
1667 2015-08-31 Richard Biener <rguenther@suse.de>
1670 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
1672 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
1674 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
1675 (CEXPI): New operator list.
1676 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
1677 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
1679 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
1681 2015-08-31 Tom de Vries <tom@codesourcery.com>
1683 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
1684 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
1686 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
1687 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
1688 (rewrite_into_loop_closed_ssa): ... here.
1689 (replace_uses_in_dominated_bbs): Remove function.
1690 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
1691 rewrite_into_loop_closed_ssa_1.
1693 2015-08-31 Michael Matz <matz@suse.de>
1695 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
1696 enter entry and exit blocks for reverse post order.
1698 2015-08-31 Richard Biener <rguenther@suse.de>
1700 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
1701 (lto_location_cache::current_sysp): Likewise.
1702 (output_block::current_sysp): Likewise.
1703 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
1704 (lto_location_cache::apply_location_cache): Properly record
1705 system header locations.
1706 (lto_location_cache::input_location): Input whether a file
1708 * lto-streamer-out.c (lto_output_location): Stream whether a file
1711 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1714 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
1716 2015-08-31 Tom de Vries <tom@codesourcery.com>
1718 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
1719 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
1720 Improve function header comments.
1722 2015-08-30 Michael Collison <michael.collison@linaro.org>
1725 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
1728 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1730 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
1731 special_handling bitfield.
1732 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
1733 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
1734 that represents a general xxpermdi.
1735 (insn_is_swappable_p): Add handling for vec_concat of two
1736 doublewords, which maps to a specific xxpermdi.
1737 (adjust_xxpermdi): New function.
1738 (adjust_concat): Likewise.
1739 (handle_special_swappables): Call adjust_xxpermdi and
1741 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
1743 2015-08-30 Rich Felker <dalias@libc.org>
1745 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
1746 case instead of sh[123456ble]-*-*.
1748 2015-08-29 Anatoly Sokolov <aesok@post.ru>
1750 * ira.c (print_unform_and_important_classes,
1751 print_translated_classes): Remove reg_class_names static array.
1752 (print_unform_and_important_classes): Rename to ...
1753 (print_uniform_and_important_classes): ... this.
1754 (ira_debug_allocno_classes): Update accordingly.
1756 2015-08-29 Tom de Vries <tom@codesourcery.com>
1758 PR tree-optimization/46193
1759 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
1762 2015-08-28 Jeff Law <law@redhat.com>
1765 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
1766 unable to find X NE 0 in the tables, return X as the simplified
1768 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
1769 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
1771 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
1772 after removing the control flow statement and unnecessary edges.
1774 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
1777 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
1778 PR tree-optimization/67283
1779 * tree-sra.c (type_consists_of_records_p): Rename to...
1780 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1782 (completely_scalarize_record): Rename to...
1783 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
1785 (scalarize_elem): New.
1787 2015-08-28 Jiong Wang <jiong.wang@arm.com>
1789 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
1790 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
1791 (aarch64_symbol_type): Likewise.
1792 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1794 (aarch64_expand_mov_immediate): Likewise.
1795 (aarch64_print_operand): Likewise.
1796 (aarch64_classify_tls_symbol): Likewise.
1798 2015-08-28 Richard Biener <rguenther@suse.de>
1800 * cgraphunit.c (symbol_table::compile): Move early debug generation
1802 (symbol_table::finalize_compilation_unit): ... back here and
1803 add a !seen_error () guard.
1805 2015-08-27 Sebastian Pop <s.pop@samsung.com>
1807 * toplev.c (process_options): Do not use flag_loop_block,
1808 flag_loop_interchange, and flag_loop_strip_mine. Add check for
1809 flag_loop_optimize_isl.
1811 2015-08-27 Sebastian Pop <s.pop@samsung.com>
1813 * Makefile.in (OBJS): Remove graphite-blocking.o and
1814 graphite-interchange.o.
1815 * common.opt (floop-strip-mine, floop-interchange, floop-block):
1816 Alias of floop-nest-optimize.
1817 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
1818 Document as alias of -floop-nest-optimize.
1819 * graphite-blocking.c: Remove.
1820 * graphite-interchange.c: Remove.
1821 * graphite-optimize-isl.c: Include dumpfile.h.
1822 (getScheduleForBand): Add dump for tiled loops. Use
1823 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
1824 * graphite-poly.c (scop_max_loop_depth): Remove.
1825 (print_scattering_function_1): Remove.
1826 (print_scattering_function): Remove.
1827 (print_scattering_functions): Remove.
1828 (debug_scattering_function): Remove.
1829 (debug_scattering_functions): Remove.
1830 (apply_poly_transforms): Remove use of flag_loop_block,
1831 flag_loop_strip_mine, and flag_loop_interchange.
1832 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
1834 (print_pdr_access_layout): Remove.
1835 (print_pdr): Print ISL representation.
1836 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
1837 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
1839 (openscop_print_pbb_domain): Remove.
1840 (print_pbb): Remove call to print_scattering_function.
1841 (openscop_print_scop_context): Remove.
1842 (print_scop_context): Do not print matrices anymore.
1843 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
1844 SCOP_TRANSFORMED_SCHEDULE.
1845 (print_isl_set): Add printing of a new line.
1846 (print_isl_map): Same.
1847 (print_isl_aff): Same.
1848 (print_isl_constraint): Same.
1849 (loop_to_lst): Remove.
1850 (scop_to_lst): Remove.
1851 (lst_indent_to): Remove.
1852 (print_lst): Remove.
1853 (debug_lst): Remove.
1854 (dot_lst_1): Remove.
1856 (reverse_loop_at_level): Remove.
1857 (reverse_loop_for_pbbs): Remove.
1858 * graphite-poly.h (pdr_dim_iter_domain): Remove.
1859 (pdr_nb_params): Remove.
1860 (pdr_alias_set_dim): Remove.
1861 (pdr_subscript_dim): Remove.
1862 (pdr_iterator_dim): Remove.
1863 (pdr_parameter_dim): Remove.
1864 (same_pdr_p): Remove.
1865 (struct poly_scattering): Remove.
1866 (struct poly_bb): Remove _original, _transformed, _saved.
1867 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
1868 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
1869 (PBB_NB_LOCAL_VARIABLES): Remove.
1870 (PBB_NB_SCATTERING_TRANSFORM): Remove.
1871 (schedule_to_scattering): Remove.
1872 (number_of_write_pdrs): Remove.
1873 (pbb_dim_iter_domain): Remove.
1874 (pbb_nb_params): Remove.
1875 (pbb_nb_scattering_orig): Remove.
1876 (pbb_nb_scattering_transform): Remove.
1877 (pbb_nb_dynamic_scattering_transform): Remove.
1878 (pbb_nb_local_vars): Remove.
1879 (pbb_iterator_dim): Remove.
1880 (pbb_parameter_dim): Remove.
1881 (psco_scattering_dim): Remove.
1882 (psct_scattering_dim): Remove.
1883 (psct_local_var_dim): Remove.
1884 (psco_iterator_dim): Remove.
1885 (psct_iterator_dim): Remove.
1886 (psco_parameter_dim): Remove.
1887 (psct_parameter_dim): Remove.
1888 (psct_dynamic_dim): Remove.
1889 (psct_static_dim): Remove.
1890 (psct_add_local_variable): Remove.
1891 (new_lst_loop): Remove.
1892 (new_lst_stmt): Remove.
1895 (lst_add_loop_under_loop): Remove.
1896 (lst_depth): Remove.
1897 (lst_dewey_number): Remove.
1898 (lst_dewey_number_at_depth): Remove.
1901 (lst_find_pbb): Remove.
1902 (find_lst_loop): Remove.
1903 (lst_find_first_pbb): Remove.
1904 (lst_empty_p): Remove.
1905 (lst_find_last_pbb): Remove.
1906 (lst_contains_p): Remove.
1907 (lst_contains_pbb): Remove.
1908 (lst_create_nest): Remove.
1909 (lst_remove_from_sequence): Remove.
1910 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
1911 (lst_niter_for_loop): Remove.
1912 (pbb_update_scattering): Remove.
1913 (lst_update_scattering_under): Remove.
1914 (lst_update_scattering): Remove.
1915 (lst_insert_in_sequence): Remove.
1916 (lst_replace): Remove.
1917 (lst_substitute_3): Remove.
1918 (lst_distribute_lst): Remove.
1919 (lst_remove_all_before_including_pbb): Remove.
1920 (lst_remove_all_before_excluding_pbb): Remove.
1921 (struct scop): Remove original_schedule, transformed_schedule, and
1923 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
1924 (SCOP_SAVED_SCHEDULE): Remove.
1925 (poly_scattering_new): Remove.
1926 (poly_scattering_free): Remove.
1927 (poly_scattering_copy): Remove.
1928 (store_scattering_pbb): Remove.
1929 (store_lst_schedule): Remove.
1930 (restore_lst_schedule): Remove.
1931 (store_scattering): Remove.
1932 (restore_scattering_pbb): Remove.
1933 (restore_scattering): Remove.
1934 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1935 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
1936 compute the scattering polyhedron dimension from the dimension of
1938 (build_scop_scattering): Update call to
1939 build_pbb_scattering_polyhedrons.
1940 (build_poly_scop): Remove call to scop_to_lst.
1941 * graphite.c (graphite_transform_loops): Add call to print_scop.
1942 (gate_graphite_transforms): Remove use of flag_loop_block,
1943 flag_loop_interchange, and flag_loop_strip_mine.
1945 2015-08-27 Sebastian Pop <s.pop@samsung.com>
1947 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
1948 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
1949 -floop-nest-optimize.
1950 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
1951 (generate_luj_sepclass): Remove.
1952 (generate_luj_options): Remove.
1953 (set_options): Remove opt_luj.
1954 (scop_to_isl_ast): Remove opt_luj.
1955 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
1956 flag_loop_unroll_jam.
1957 (getPrevectorMap_full): Remove.
1958 (getScheduleForBandList): Remove map_sepcl.
1959 (getScheduleMap): Same.
1960 (apply_schedule_map_to_scop): Remove sepcl.
1961 (optimize_isl): Same.
1962 * graphite-poly.c (apply_poly_transforms): Remove check for
1963 flag_loop_unroll_jam.
1964 (new_poly_bb): Remove map_sepclass.
1965 * graphite-poly.h (struct poly_bb): Same.
1966 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
1967 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
1968 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
1969 * toplev.c (process_options): Remove flag_loop_unroll_jam.
1971 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
1974 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
1976 (UNSPEC_ADD_CARRY): Remove.
1977 (addqi3_cconly_overflow): New expander.
1978 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
1979 Adjust for changed add<mode>3_carry.
1980 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
1981 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
1982 (<plusminus_insn><mode>3_carry): Remove expander.
1983 (*<plusminus_insn><mode>3_carry): Split insn pattern to
1984 add<mode>3_carry and sub<mode>3_carry.
1985 (plusminus_carry_mnemonic): Remove code attribute.
1986 (add<mode>3_carry): Canonicalize insn pattern.
1987 (*addsi3_carry_zext): Ditto.
1988 (sub<mode>3_carry): Ditto.
1989 (*subsi3_carry_zext): Ditto.
1990 (adcx<mode>3): Remove insn pattern.
1991 (addcarry<mode>): New insn pattern.
1992 (subborrow<mode>): Ditto.
1993 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
1994 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
1995 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
1996 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
1997 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
1998 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
1999 Rewrite expander to not clobber carry flag chains.
2001 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
2003 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
2004 instead of a rotate.
2006 2015-08-27 Marek Polacek <polacek@redhat.com>
2009 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
2010 an entry into an irreducible region.
2012 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2014 * configure: Regenerate.
2016 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2018 PR tree-optimization/67283
2019 * tree-sra.c (type_consists_of_records_p): Rename to...
2020 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2022 (completely_scalarize_record): Rename to...
2023 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
2024 (scalarize_elem): New.
2026 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2028 * tree-sra.c (completely_scalarize_var): Rename to...
2029 (create_total_scalarization_access): ... Here. Drop call to
2030 completely_scalarize_record.
2032 (analyze_all_variable_accesses): Replace completely_scalarize_var
2033 with create_total_scalarization_access and completely_scalarize_record.
2035 2015-08-27 Alan Modra <amodra@gmail.com>
2038 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
2041 2015-08-27 Richard Biener <rguenther@suse.de>
2043 * passes.c (rest_of_decl_compilation): Guard early_global_decl
2044 call with !seen_error ().
2045 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
2046 early debug generation and finish...
2047 (symbol_table::compile): ... here to put it after a !seen_error ()
2050 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2052 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
2055 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2056 Andre Vieira <andre.simoesdiasvieira@arm.com>
2058 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
2059 (*cb<optab><mode>1): Likewise.
2060 (*tb<optab><mode>1): Likewise.
2061 (*cb<optab><mode>1): Likewise.
2062 * config/aarch64/iterators.md (inv_cb): New code attribute.
2064 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
2065 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
2067 2015-08-27 Richard Biener <rguenther@suse.de>
2069 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
2071 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2073 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
2076 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2078 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
2081 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
2083 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
2084 floating point in VSX registers.
2085 (rs6000_output_move_128bit): Always print out the set insn if we
2086 can't generate an appropriate 128-bit move.
2087 (rs6000_generate_compare): Add support for IEEE 128-bit floating
2088 point in VSX registers comparisons.
2089 (rs6000_expand_float128_convert): Likewise.
2091 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
2092 predicate for only GPR hard registers.
2094 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
2095 modes to iterators. Add new iterators for moving 128-bit values in
2096 scalar FPR registers and VSX registers.
2097 (FMOVE128): Likewise.
2098 (FMOVE128_FPR): Likewise.
2099 (FMOVE128_GPR): Likewise.
2100 (FMOVE128_VSX): Likewise.
2101 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
2106 (RELOAD): Add IEEE 128-bit floating point modes.
2107 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
2108 floating point in VSX registers modes.
2109 (signbit<mode>2, IBM128 iterator): Likewise.
2110 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
2111 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
2113 (neg<mode>2, TFIFKF iterator): Likewise.
2114 (negtf2_internal): Likewise.
2116 (abs<mode>2, TFIFKF iterator): Likewise.
2117 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
2118 VSX insn support for negate, absolute value, and negative absolute
2120 (ieee_128bit_vsx_neg<mode>2): Likewise.
2121 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
2122 (ieee_128bit_vsx_abs<mode>2): Likewise.
2123 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2124 (ieee_128bit_vsx_nabs<mode>2): Likewise.
2125 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2126 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
2127 floating point in VSX registers.
2128 (unpack<mode>_dm): Likewise.
2129 (unpack<mode>_nodm): Likewise.
2130 (pack<mode>): Likewise.
2131 (unpackv1ti): Likewise.
2132 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
2133 (packv1ti): Likewise.
2134 (pack<mode>, FMOVE128_VSX iterator): Likewise.
2135 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
2137 (extenddftf2_internal): Likewise.
2138 (trunctfdf2): Likewise.
2139 (trunctfdf2_internal2): Likewise.
2140 (fix_trunc_helper): Likewise.
2141 (fix_trunctfdi2"): Likewise.
2142 (floatditf2): Likewise.
2143 (floatuns<mode>tf2): Likewise.
2144 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2145 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2146 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2147 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2148 (float<SDI:mode><IFKF:mode>2): Likewise.
2149 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2151 2015-08-26 Renlin Li <renlin.li@arm.com>
2153 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
2155 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
2156 Jiong Wang <jiong.wang@arm.com>
2158 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
2159 (tlsie_tiny_<mode>): New define_insn.
2160 (tlsie_tiny_sidi): Likewise.
2161 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2163 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
2164 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
2166 (aarch64_expand_mov_immediate): Likewise.
2167 (aarch64_print_operand): Likewise.
2168 (arch64_classify_tls_symbol): Likewise.
2170 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2172 * config/arm/arm-arches.def: Replace single value flags with
2173 an initializer built from ARM_FSET_MAKE_CPU1.
2174 * config/arm/arm-cores.def: Likewise.
2175 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
2176 derivation from the ARM_CORE macro definition, use the given value
2178 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
2179 ARM_ARCH macro definition, use the given value instead.
2181 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2183 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
2185 (struct builtin_description): Replace field mask with field
2187 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
2188 (IWMMXT2_BUILTIN): Likewise.
2189 (IWMMXT2_BUILTIN2): Likewise.
2190 (FP_BUILTIN): Likewise.
2191 (CRC32_BUILTIN): Likewise.
2192 (CRYPTO_BUILTIN): Likewise.
2193 (iwmmx_mbuiltin): Likewise.
2194 (iwmmx2_mbuiltin): Likewise.
2195 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
2196 struct builtin_description.
2198 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2200 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
2201 (struct builtin_description): Change type of mask to unsigned
2203 * config/arm/arm-protos.h (insn_flags): Declare as type
2205 (tune_flags): Likewise.
2206 * config/arm/arm.c (feature_count): New.
2207 (insn_flags): Define as type arm_feature_set.
2208 (tune_flags): Likewise.
2209 (struct processors): Define field flags as type arm_feature_set.
2210 (all_cores): Update for change to struct processors.
2211 (all_architectures): Likewise.
2212 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
2214 (arm_option_override_internal): Likewise.
2215 (arm_option_override): Likewise.
2217 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
2218 Jiong Wang <jiong.wang@arm.com>
2220 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
2221 tls size for tiny, small, large memory model.
2222 (aarch64_load_symref_appropriately): Support new symbol types.
2223 (aarch64_expand_mov_immediate): Likewise.
2224 (aarch64_print_operand): Likewise.
2225 (aarch64_classify_tls_symbol): Likewise.
2226 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
2227 (aarch64_symbol_type): Likewise.
2228 * config/aarch64/aarch64.md (tlsle): Deleted.
2229 (tlsle12_<mode>): New define_insn.
2230 (tlsle24_<mode>): Likewise.
2231 (tlsle32_<mode>): Likewise.
2232 (tlsle48_<mode>): Likewise.
2233 * doc/sourcebuild.texi (AArch64-specific attributes): Document
2236 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2238 * config/arm/arm-protos.h (FL_NONE): New.
2240 (arm_feature_set): New.
2241 (ARM_FSET_MAKE): New.
2242 (ARM_FSET_MAKE_CPU1): New.
2243 (ARM_FSET_MAKE_CPU2): New.
2244 (ARM_FSET_CPU1): New.
2245 (ARM_FSET_CPU2): New.
2246 (ARM_FSET_EMPTY): New.
2247 (ARM_FSET_ANY): New.
2248 (ARM_FSET_HAS_CPU1): New.
2249 (ARM_FSET_HAS_CPU2): New.
2250 (ARM_FSET_HAS_CPU): New.
2251 (ARM_FSET_ADD_CPU1): New.
2252 (ARM_FSET_ADD_CPU2): New.
2253 (ARM_FSET_DEL_CPU1): New.
2254 (ARM_FSET_DEL_CPU2): New.
2255 (ARM_FSET_UNION): New.
2256 (ARM_FSET_INTER): New.
2257 (ARM_FSET_XOR): New.
2258 (ARM_FSET_EXCLUDE): New.
2259 (AFM_FSET_IS_EMPTY): New.
2260 (ARM_FSET_CPU_SUBSET): New.
2262 2015-08-26 Jiong Wang <jiong.wang@arm.com>
2264 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
2265 SYMBOL_TLSLE to SYMBOL_TLSLE24.
2266 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2268 (aarch64_expand_mov_immediate): Likewise.
2269 (aarch64_print_operand): Likewise.
2270 (aarch64_classify_symbol): Likewise.
2272 2015-08-26 Jiong Wang <jiong.wang@arm.com>
2274 * config/aarch64/aarch64.opt (mtls-size): New entry.
2275 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
2276 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
2277 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
2279 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2281 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
2282 ARM_CORE entry. Fix some white-space.
2283 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
2284 ARM_CORE definition.
2286 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2288 * fold-const.c (fold_binary_loc) : Move Optimize
2289 root(x)*root(y) as root(x*y) to match.pd.
2290 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
2291 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
2292 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
2293 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
2294 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
2295 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
2296 (mult (exps:s @0) (exps:s @1)) : New simplifier.
2297 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
2298 (rdiv @0 (exps:s @1)) : New simplifier.
2300 2015-08-25 Joseph Myers <joseph@codesourcery.com>
2302 * gcc.c (driver::finalize): Only assign to extra_specs if
2305 2015-08-25 Marek Polacek <polacek@redhat.com>
2308 * varasm.c (declare_weak): Return after giving an error.
2310 2015-08-25 David Malcolm <dmalcolm@redhat.com>
2312 * gcc-main.c (main): Add params to driver ctor.
2313 * gcc.c (class env_manager): New.
2315 (env_manager::init): New.
2316 (env_manager::get): New.
2317 (env_manager::xput): New.
2318 (env_manager::restore): New.
2319 Poison getenv and putenv.
2320 (DEFAULT_TARGET_SYSTEM_ROOT): New.
2321 (target_system_root): Update initialization to use
2322 DEFAULT_TARGET_SYSTEM_ROOT.
2323 (struct spec_list): Add field "default_ptr".
2324 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
2325 (init_spec): Likewise.
2326 (set_spec): Clear field "default_ptr".
2327 (read_specs): Free "spec" and "buffer".
2328 (xputenv): Reimplement in terms of env_manager.
2329 (process_command): Replace ::getenv calls with calls to the
2330 env_manager singleton.
2331 (process_brace_body): Free string in three places.
2332 (driver::driver): New.
2333 (driver::~driver): New.
2334 (used_arg): Convert from a function to...
2335 (class used_arg_t): ...this class, and...
2336 (used_arg): ...this new global instance.
2337 (used_arg_t::finalize): New function.
2338 (getenv_spec_function): Add "const" to local "value". Replace
2339 ::getenv call with call to the env_manager singleton.
2340 (path_prefix_reset): New function.
2341 (driver::finalize): New function.
2342 * gcc.h (driver::driver): New.
2343 (driver::~driver): New.
2344 (driver::finalize): New.
2346 2015-08-25 Nathan Sidwell <nathan@acm.org>
2348 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
2349 target doesn't have one.
2351 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
2354 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
2356 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
2359 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
2360 a define_insn, remove second alternative.
2362 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
2363 Joseph Myers <joseph@codesourcery.com>
2365 * gcc.c (struct switchstr): Expand comment.
2367 2015-08-25 Nathan Sidwell <nathan@acm.org>
2369 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
2370 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
2372 2015-08-25 Richard Biener <rguenther@suse.de>
2375 * genmatch.c (expr::gen_transform): Verify the result of
2376 builtin_decl_implicit.
2377 (dt_simplify::gen_1): Likewise.
2379 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2381 * config/arm/constraints.md: Also list Cs and US ARM-specific
2382 constraints as used.
2384 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
2387 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
2389 (nonpic_symbol_mentioned_p): Likewise.
2390 (sh_delegitimize_address): Likewise.
2391 (sh_function_ok_for_sibcall): Take into account weak symbols.
2392 (sh_expand_sym_label2reg): New.
2393 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
2394 * config/sh/sh.md (UNSPEC_PCREL): New enum.
2395 (call_pcrel): Use sh_expand_sym_label2reg.
2396 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
2397 (symPCREL_label2reg) New expand.
2399 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
2401 * graphite-poly.c: Change type of region from void* to sese.
2402 * graphite-poly.h (struct scop): Changing the type of scop::region
2403 from void* to sese. Change accessor macro accordingly.
2404 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
2406 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
2408 * graphite-scop-detection.c (stmt_simple_for_scop_p):
2409 Constrain only on INTEGER_TYPE.
2411 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2414 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
2415 -mefficient-unaligned-vsx on ISA 2.7.
2417 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
2418 option to a masked option.
2420 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
2421 logic for -mefficient-unaligned-vsx so that it is set via an arch
2422 ISA option, instead of being set if -mtune=power8 is set. Move
2423 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
2424 near other default option handling.
2426 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2428 * genflags.c (gen_macro): Delete.
2429 (gen_proto): Don't create GEN.*CALL.* macros.
2430 * gensupport.h (get_file_location): Declare.
2431 * gensupport.c (rtx_locs): New variable.
2432 (read_md_rtx): Record rtx locations.
2433 (get_file_location): New function.
2434 * target-insns.def (call, call_pop, call_value, call_value_pop)
2435 (sibcall, sibcall_value): New patterns.
2436 * gentarget-def.c (parse_argument): New function.
2437 (def_target_insn): Use it. Handle optional operands. Raise an
2438 error if an .md pattern has the wrong number of operands for the
2439 pattern name. Remove the names of unused operands from the prototype.
2440 * builtins.c (expand_builtin_apply): Use targetm functions
2441 instead of HAVE_call_value and GEN_CALL_VALUE.
2442 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
2443 and sibcall_value_pop.
2444 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
2446 * config/alpha/alpha.md (untyped_call): Likewise.
2447 * config/iq2000/iq2000.md (untyped_call): Likewise.
2448 * config/m68k/m68k.md (untyped_call): Likewise.
2449 * config/mips/mips.md (untyped_call): Likewise.
2450 * config/pa/pa.md (untyped_call): Likewise.
2451 * config/rs6000/rs6000.md (untyped_call): Likewise.
2452 * config/sparc/sparc.md (untyped_call): Likewise.
2453 * config/tilegx/tilegx.md (untyped_call): Likewise.
2454 * config/tilepro/tilepro.md (untyped_call): Likewise.
2455 * config/visium/visium.md (untyped_call): Likewise.
2456 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
2457 gen_call_value instead of GEN_CALL_VALUE.
2458 * config/arm/arm.md (untyped_call): Likewise.
2459 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
2462 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2464 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
2465 (have_cbranchcc4): New variable.
2466 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
2467 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
2468 (if_convert): Initialize have_cbranchcc4.
2470 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2472 * builtins.c (expand_cmpstrn): Rename to...
2473 (expand_cmpstrn_or_cmpmem): ...this.
2474 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
2475 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
2476 Remove mode argument.
2477 (expand_builtin): Update accordingly.
2479 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2481 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
2482 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
2483 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
2484 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
2485 Add predicates for operands 0 and 3.
2486 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
2488 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
2489 immediate_operand to nonmemory_operand.
2491 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2493 * df-scan.c (df_insn_info_init_fields): New function, split out
2495 (df_insn_create_insn_record): ...here.
2496 (df_insn_info_free_fields): New function, split out from...
2497 (df_insn_info_delete): ...here.
2498 (df_insn_rescan): Use the new functions instead of freeing and
2499 reallocating the df_insn_info.
2501 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2503 * doc/install.texi (Binaries): Remove links no longer valid.
2505 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
2507 * config/nvptx/mkoffload.c (process): Replace
2508 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
2510 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
2513 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
2515 2015-08-24 Renlin Li <renlin.li@arm.com>
2517 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
2518 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
2519 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
2520 * config/arm/constraints.md ("j"): Add check for high code.
2522 2015-08-24 Tom de Vries <tom@codesourcery.com>
2524 PR tree-optimization/65468
2525 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
2528 2015-08-24 Nathan Sidwell <nathan@acm.org>
2530 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
2531 change to nvptx_type_from_mode call. Use arg_promotion for both
2532 split and non-split args.
2534 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2536 * target-insns.def (movstr): New pattern.
2537 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
2538 (expand_movstr): Use targetm rather than HAVE_movstr/
2541 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2543 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
2546 2015-08-24 Andrew Pinski <apinski@cavium.com>
2548 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
2549 AARCH64_EXTRA_TUNING_OPTION.
2550 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
2551 (aarch64_extra_tuning_flags): Base the shifted value on the index instead
2552 of the argument to AARCH64_EXTRA_TUNING_OPTION.
2553 * config/aarch64/aarch64.c: Remove the last argument to
2554 AARCH64_EXTRA_TUNING_OPTION.
2556 2015-08-23 Nathan Sidwell <nathan@acm.org>
2558 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
2560 (nvptx_declare_function_name): Insert formatting tabs for
2563 2015-08-23 Tom de Vries <tom@codesourcery.com>
2565 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
2566 parm_decl, rather than generating a dummy default def in cfun.
2567 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
2568 ssa_name from cfun and child_fn do not share a stmt as def stmt.
2569 (move_stmt_op): Handle PARM_DECl.
2570 (gather_ssa_name_hash_map_from): New function.
2571 (move_sese_region_to_fn): Add default defs for function params, and add
2572 them to vars_map. Release copied ssa names.
2573 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
2575 2015-08-23 Tom de Vries <tom@codesourcery.com>
2577 * doc/sourcebuild.texi: Rename vect_no_int_max with
2578 vect_no_int_min_max. Update description.
2580 2015-08-22 Andrew Pinski <apinski@cavium.com>
2582 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
2583 * config/aarch64/aarch64-protos.h
2584 (aarch64_fusion_pairs_index): New enum.
2585 (aarch64_fusion_pairs): Base the shifted value on the index instead
2586 Rewrite AARCH64_FUSE_ALL to be based on the end index.
2587 of the argument to AARCH64_FUSION_PAIR.
2588 * config/aarch64/aarch64.c: Remove the last argument to
2589 AARCH64_FUSION_PAIR.
2591 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
2593 * dominance.c (new_zero_array): Define.
2594 (dom_info): Redefine as class with proper encapsulation.
2595 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
2597 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
2598 allocations/deallocations. Pass function as parameter (instead of
2600 (dom_info::get_idom): Define accessor method.
2601 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
2602 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
2603 (calculate_dominance_info): Adjust to use dom_info class.
2604 (verify_dominators): Likewise.
2606 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
2608 * print-rtl.c (print_rtx): Check the correct range for
2609 flag_dump_unnumbered_links to behave as documented.
2611 PR rtl-optimization/67227
2612 PR rtl-optimization/64164
2613 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
2614 (nonoverlapping_memrefs_p): Test offsets and sizes when given
2615 identical gimple_reg exprs.
2617 2015-08-21 Nathan Sidwell <nathan@acm.org>
2619 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
2621 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
2622 crtl->stack_alignment_needed to determine alignment.
2623 (nvptx_get_drap_rtx): New.
2624 (TARGET_GET_DRAP_RTX): Override.
2625 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
2627 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2629 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
2631 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2633 * configure.ac: Remove uwin* cases.
2634 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
2635 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
2636 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
2637 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
2638 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
2639 i[34567]86-*-uwin*, powerpc-*-beos*.
2641 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
2643 * gencodes.c (gencodes): Print the comma for the preceding
2644 enum value rather than the current one. Use aliased enum values
2645 rather than #defines for compiled-out patterns.
2646 (main): Update accordingly. Replace LAST_INSN_CODE with
2648 * lra.c (insn_code_data): Update accordingly.
2649 (finish_insn_code_data_once, get_static_insn_data): Likewise.
2650 * recog.h (target_recog): Likewise.
2651 (preprocess_insn_constraints): Change parameter to unsigned int.
2652 * recog.c (preprocess_insn_constraints): Likewise.
2653 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
2654 * tree-vect-stmts.c (vectorizable_operation): Simplify.
2656 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
2658 PR rtl-optimization/61657
2659 * loop-iv.c (iv_number_of_iterations): Declare up and down as
2660 unsigned. Remove superflous uint64_t cast.
2662 2014-08-21 Felix Yang <felix.yang@huawei.com>
2663 Jiji Jiang <jiangjiji@huawei.com>
2665 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
2666 and get builtin function code directly from CALL.
2667 (gimple_stringop_fixed_value): Modified accordingly.
2668 (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
2669 accordingly and only accept BUILT_IN_NORMAL string operations.
2671 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
2673 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
2675 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2677 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
2679 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
2680 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
2681 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
2682 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
2683 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
2684 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
2685 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
2686 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
2687 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
2688 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
2690 * match.pd (SIN ) : New Operator.
2691 (TAN) : New Operator.
2692 (mult (SQRT@1 @0) @1) : New simplifier.
2693 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
2694 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
2695 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
2696 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
2697 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
2698 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
2699 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
2700 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
2701 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
2702 (rdiv @0 (POW:s @1 @2)) : New simplifier.
2704 2015-08-21 Bin Cheng <bin.cheng@arm.com>
2706 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
2707 loop if EXPR is simplified to const value.
2709 2015-08-21 Yury Gribov <y.gribov@samsung.com>
2711 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2712 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
2714 2015-08-21 Richard Biener <rguenther@suse.de>
2717 * gimple-fold.c (replace_stmt_with_simplification): Assert
2718 seq is empty when replacing a call with itself but different
2720 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
2721 a call require that it is const.
2723 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2725 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
2726 * builtins.c (get_object_alignment_2): Adjust.
2727 * varasm.c (align_variable): Likewise.
2728 (get_variable_align): Likewise.
2729 (build_constant_desc): Likewise.
2730 (force_const_mem): Likewise.
2731 * doc/tm.texi.in: Likewise.
2732 * doc/tm.texi: Regenerate.
2734 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2736 * genconfig.c (main): Always define HAVE_cc0.
2737 * recog.c (rest_of_handle_peephole2): Adjust.
2739 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2741 * reorg.c (relax_delay_slots): Don't use #if to check value of
2744 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2746 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
2747 * targhooks.c (default_have_conditional_execution): Adjust.
2749 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
2751 * rtl.h (rtvec_all_equal_p): Declare.
2752 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
2753 * rtl.c (rtvec_all_equal_p): New function.
2754 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
2755 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
2756 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
2757 * config/arm/arm.c (neon_vdup_constant): Likewise.
2758 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
2759 * config/tilegx/constraints.md (W, Y): Likewise.
2760 * config/tilepro/constraints.md (W, Y): Likewise.
2761 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
2762 (classify_immediate): Use unwrap_const_vec_duplicate.
2763 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
2764 (reg_or_v2s8bit_operand): Likewise.
2765 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
2766 (reg_or_v4s8bit_operand): Likewise.
2768 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2770 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
2771 (vec_shasigma_be): New #define.
2772 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
2773 (VPMSUMH): Likewise.
2774 (VPMSUMW): Likewise.
2775 (VPMSUMD): Likewise.
2776 (VPMSUM): New BU_P8V_OVERLOAD_2.
2777 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
2778 entries for VEC_MADD and VEC_VPMSUM.
2780 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
2782 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
2783 Multiply argument avr_n_flash by 64 to match unit of "KiB".
2784 (avr_pgm_check_var_decl): Same.
2786 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
2788 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
2789 initialization of HFmode scalar type (float16_t) to...
2790 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
2793 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
2795 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
2796 having an -mfp16-format.
2798 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
2800 * config/i386/predicates.md (vector_all_ones_operand): Use
2801 CONSTM1_RTX to simplify definition.
2803 2015-08-20 Richard Biener <rguenther@suse.de>
2805 * toplev.c (compile_file): Remove loop calling late_global_decl
2807 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
2808 on decls we assembled.
2810 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
2812 * common/config/aarch64/aarch64-common.c
2813 (AARCH64_CPU_NAME_LENGTH): Delete.
2814 (aarch64_option_extension): New.
2815 (all_extensions): Likewise.
2816 (processor_name_to_arch): Likewise.
2817 (arch_to_arch_name): Likewise.
2819 (all_architectures): Likewise.
2820 (aarch64_get_extension_string_for_isa_flags): Likewise.
2821 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
2823 * config/aarch64/aarch64-protos.h
2824 (aarch64_get_extension_string_for_isa_flags): New.
2825 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
2826 (aarch64_option_print): Get the string to print from
2827 aarch64_get_extension_string_for_isa_flags.
2828 (aarch64_declare_function_name): Likewise.
2829 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
2830 (MCPU_TO_MARCH_SPEC): This.
2831 (ASM_CPU_SPEC): Use it.
2832 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
2833 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
2834 (EXTRA_SPEC_FUNCTIONS): Use it.
2836 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
2838 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
2839 expansion when !ISA_HAS_LWL_LWR.
2840 (mips_block_move_straight): Update the size of elements copied to
2841 account for alignment when !ISA_HAS_LWL_LWR.
2842 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
2844 2015-08-19 Jiong Wang <jiong.wang@arm.com>
2846 * expr.c (expand_expr_real_2): Check gimple statement during
2849 2015-08-19 Magnus Granberg <zorry@gentoo.org>
2851 * common.opt (fstack-protector): Initialize to -1.
2852 (fstack-protector-all): Likewise.
2853 (fstack-protector-strong): Likewise.
2854 (fstack-protector-explicit): Likewise.
2855 * configure.ac: Add --enable-default-ssp.
2856 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
2857 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
2859 * doc/install.texi: Document --enable-default-ssp.
2860 * config.in: Regenerated.
2861 * configure: Likewise.
2863 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
2865 PR rtl-optimization/64164
2866 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
2867 (parm_in_stack_slot_p): ... this. Disregard mode, what
2868 matters is whether the parm will live in a pseudo or a stack
2870 (expand_one_ssa_partition): Deal with params without a default
2871 def. Disregard mode.
2872 * cfgexpand.h: Renamed function declaration.
2873 * tree-ssa-coalesce.c: Adjust.
2874 * function.c (split_complex_args): Allocate stack slot for
2875 unassigned parms before splitting.
2876 (parm_in_unassigned_mem_p): New. Use it instead of
2877 parm_maybe_byref_p throughout this file.
2878 (assign_parm_setup_block): Use it. Accept pseudos in the
2879 expand-assigned rtl.
2880 (assign_parm_setup_reg): Drop BLKmode requirement.
2881 (assign_parm_setup_stack): Allocate and fill in the address of
2882 unassigned MEM parms.
2884 2015-08-19 David Sherwood <david.sherwood@arm.com>
2886 * genmodes.c (emit_mode_unit_size_inline): New function.
2887 (emit_mode_unit_precision_inline): New function.
2888 (emit_insn_modes_h): Emit new #define. Emit new functions.
2889 (emit_mode_unit_size): New function.
2890 (emit_mode_unit_precision): New function.
2891 (emit_mode_adjustments): Add mode_unit_size adjustments.
2892 (emit_insn_modes_c): Emit new arrays.
2893 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
2894 use new inline methods.
2896 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2898 * config/aarch64/aarch64.c (bit_count): Delete prototype
2900 (aarch64_print_operand): Use popcount_hwi instead of the above.
2902 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2904 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
2907 2015-08-19 Marek Polacek <polacek@redhat.com>
2910 * gimple-ssa-isolate-paths.c
2911 (insert_trap_and_remove_trailing_statements): Rename to ...
2912 (insert_trap): ... this. Don't remove trailing statements; split
2914 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
2916 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
2919 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
2920 conditionalize the whole on __GNUC__. Add fallback code
2921 depending neither on undefined nor implementation-defined behaviour.
2923 2015-08-19 Jiong Wang <jiong.wang@arm.com>
2925 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
2926 whitespaces with tab.
2928 2015-08-19 Florian Weimer <fweimer@redhat.com>
2930 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
2931 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
2932 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
2933 Move Name_Ids instantiation to the Prj.Proc package, to avoid
2936 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2938 * config/arm/arm.c (bounds_check): Use %wd print format
2939 for HOST_WIDE_INT arguments.
2941 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
2943 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
2944 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
2945 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
2946 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
2947 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
2948 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
2949 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
2950 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
2951 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
2954 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
2956 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
2957 function.c, graphite-scop-detection.c, haifa-sched.c,
2958 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
2959 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
2960 varasm.c: Remove typedefs of structs.
2962 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
2964 * config/rs6000/altivec.h (vec_adde): New define.
2965 (vec_addec): Likewise.
2966 (vec_double): Likewise.
2967 (vec_bperm): Likewise.
2969 * config/rs6000/rs6000-builtin.def (ADDE): New
2970 BU_ALTIVEC_OVERLOAD_3.
2972 (DOUBLE): New BU_VSX_OVERLOAD_1.
2973 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
2974 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
2975 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
2976 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
2977 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
2978 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
2979 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
2980 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
2981 and P8V_BUILTIN_VEC_VBPERMQ.
2983 2015-08-18 Jason Merrill <jason@redhat.com>
2985 * print-tree.c (print_node): Handle TREE_BINFO.
2987 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2990 * builtins.c (expand_builtin_signbit): Add asserts to make sure
2991 we can expand BUILT_IN_SIGNBIT inline.
2992 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
2993 * doc/extend.texi: Document the type-generic __builtin_signbit.
2995 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
2997 PR rtl-optimization/67218
2998 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
2999 (simplify_unary_operation_1): Use it.
3001 2015-08-18 Marek Polacek <polacek@redhat.com>
3004 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
3005 if the call isn't valid.
3006 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
3007 gimple_call_builtin_p.
3008 (call_may_clobber_ref_p_1): Likewise.
3009 (stmt_kills_ref_p): Likewise.
3011 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
3013 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
3014 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
3015 (mips_hard_regno_scratch_ok): Likewise.
3016 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
3017 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
3019 2015-08-18 Bin Cheng <bin.cheng@arm.com>
3021 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
3022 (determine_value_range): Call refine_value_range_using_guard for
3023 each loop initial condition to improve value range.
3025 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
3027 * config/i386/i386.c: Remove include of fibheap.h.
3029 2015-08-17 Richard Biener <rguenther@suse.de>
3031 PR tree-optimization/67221
3032 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
3033 (sccvn_dom_walker::before_dom_children): Mark backedges of
3034 non-executable blocks as not executable.
3036 2015-08-17 David Sherwood <david.sherwood@arm.com>
3038 * config/arm/arm.c (neon_element_bits): Replace call to
3039 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
3040 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
3041 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
3042 (neon_vdup_lane<mode>): Likewise.
3043 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
3044 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
3045 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
3046 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
3047 * config/spu/spu.c (arith_immediate_p): Likewise.
3048 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
3049 * expr.c (expand_expr_real_2): Likewise.
3050 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
3051 * simplify-rtx.c (simplify_immed_subreg): Likewise.
3052 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
3053 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
3055 * fold-const.c (fold_binary_loc): Replace call to
3056 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
3057 GET_MODE_UNIT_PRECISION (m).
3059 2015-08-17 Mike Stump <mikestump@comcast.net>
3061 * config/arm/arm.c (arm_block_move_unaligned_straight):
3062 Emit normal move instead of unaligned load when source or destination
3063 are appropriately aligned.
3065 2015-08-17 Richard Biener <rguenther@suse.de>
3066 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3069 * match.pd (div (coss (op @0) : New simplifier.
3071 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
3073 PR rtl-optimization/64164
3076 PR rtl-optimization/67000
3079 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3080 * tree-ssa-copyrename.c: Removed.
3081 * opts.c (default_options_table): Drop -ftree-copyrename. Add
3082 -ftree-coalesce-vars.
3083 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3084 * common.opt (ftree-copyrename): Ignore.
3085 (ftree-coalesce-inlined-vars): Likewise.
3086 * doc/invoke.texi: Remove the ignored options above.
3087 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3088 * tree-ssa-coalesce.h: ... here.
3089 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3090 headers required by it.
3091 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
3092 across variables when flag_tree_coalesce_vars. Check register
3093 use and promoted modes to allow coalescing. Do not coalesce
3094 maybe-byref parms with SSA_NAMEs of other variables, or
3095 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
3096 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
3097 with its member functions to tree-ssa-coalesce.c.
3098 (var_map_base_init): Likewise. Renamed to
3099 compute_samebase_partition_bases.
3100 (partition_view_normal): Drop want_bases parameter.
3101 (partition_view_bitmap): Likewise.
3102 * tree-ssa-live.h: Adjust declarations.
3103 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
3104 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
3105 default defs at the entry point.
3106 (dump_part_var_map): New.
3107 (compute_optimized_partition_bases): New, called by...
3108 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
3109 of compute_samebase_partition_bases. Adjust.
3110 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
3111 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
3112 (ssa_default_def_partition): New.
3113 (get_rtl_for_parm_ssa_default_def): New.
3114 (align_local_variable, add_stack_var): Support anonymous SSA
3116 (defer_stack_allocation): Likewise. Declare earlier.
3117 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
3118 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
3119 Do no record deferred-allocation marker in
3120 SA.partition_to_pseudo.
3121 (expand_stack_vars): Adjust check for the marker in it.
3122 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
3123 redundant MEM attr setting.
3124 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
3126 (expand_one_stack_var): ... this. New wrapper to check and
3127 skip already expanded SSA partitions.
3128 (record_alignment_for_reg_var): New, factored out of...
3129 (expand_one_var): ... this.
3130 (expand_one_ssa_partition): New.
3131 (adjust_one_expanded_partition_var): New.
3132 (expand_one_register_var): Check and skip already expanded SSA
3134 (expand_used_vars): Don't create DECLs for anonymous SSA
3135 names. Expand all SSA partitions, then adjust all SSA names.
3136 (pass::execute): Replace the loops that set
3137 SA.partition_to_pseudo from partition leaders and cleared
3138 DECL_RTL for multi-location variables, and that which used to
3139 rename vars and set attrs, with one that clears DECL_RTL and
3140 checks that PARMs and RESULTs default_defs match DECL_RTL.
3141 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
3142 * emit-rtl.c: Include stor-layout.h.
3143 (set_reg_attrs_for_parm): Handle NULL decl.
3144 (set_reg_attrs_for_decl_rtl): Take mode from expression if
3146 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
3147 rather than its possibly-NULL DECL.
3148 * explow.c (promote_ssa_mode): New.
3149 * explow.h (promote_ssa_mode): Declare.
3150 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
3151 (read_complex_part): Export.
3152 * expr.h (read_complex_part): Declare.
3153 * cfgexpand.h (parm_maybe_byref_p): Declare.
3154 * function.c: Include cfgexpand.h.
3155 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
3156 (use_register_for_parm_decl): Wrapper for the above to
3157 special-case the result_ptr.
3158 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
3159 (split_complex_args): Take assign_parm_data_all argument.
3160 Pass it to rtl_for_parm. Set up rtl and context for split
3161 args. Reset complex parm before fetching its default decl
3163 (assign_parms_unsplit_complex): Use the default-def complex
3164 parm rtl if it matches the components.
3165 (assign_parms_augmented_arg_list): Adjust.
3166 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
3167 multiple locations. Recognize split complex args.
3168 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
3169 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
3170 (assign_parm_setup_block): Prefer SSA-assigned location, and
3171 fill in its address if the memory location of a maybe-byref
3172 parm was not assigned by cfgexpand.
3173 (assign_parm_setup_reg): Likewise. Adjust its mode as
3174 needed. Use entry_parm for equiv if stack_parm is NULL. Make
3175 sure passed_pointer parms don't need conversion. Copy address
3177 (assign_parm_setup_stack): Prefer SSA-assigned location.
3178 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
3179 rtl before testing for pointer bounds. Special-case result_ptr.
3180 (expand_function_start): Maybe reset DECL_RTL of result.
3181 Prefer SSA-assigned location for result and static chain.
3182 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
3183 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
3184 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
3185 anonymous SSA names. Use promote_ssa_mode.
3186 (get_temp_reg): Likewise.
3187 (remove_ssa_form): Adjust.
3188 * stor-layout.c (layout_decl): Don't set mem attributes of
3190 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
3191 and get its reg_usage for reg invalidation.
3192 (compute_bb_dataflow): Pass it insn.
3193 (emit_notes_in_bb): Likewise.
3195 2015-08-14 Marek Polacek <polacek@redhat.com>
3197 * tree-core.h (tree_base): Fix typo.
3199 2015-08-14 Marek Polacek <polacek@redhat.com>
3202 * gimple.c (infer_nonnull_range_by_attribute): Check that the
3203 nonnull argument position is not outside function arguments.
3205 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
3208 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
3209 'lconst_atomic' with 'const_atomic'.
3210 (atomic_fetch_<optab><mode>): Likewise.
3211 (atomic_<optab>_fetch<mode>): Likewise.
3212 * config/aarch64/iterators.md (lconst-atomic): Move below
3214 (const_atomic): New.
3216 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
3217 Bernd Schmidt <bernds@codesourcery.com>
3219 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
3221 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
3222 (DWARF2_DEBUGGING_INFO): Don't define.
3223 * debug.h (dwarf2_lineno_debug_hooks): Declare.
3224 * toplev.c (process_options): Add a case for it.
3225 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
3226 (dwarf2out_init): Skip most initializations if
3227 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
3229 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
3230 DWARF2_LINENO_DEBUGGING_INFO.
3231 * opts.c (set_debug_level): Likewise.
3233 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
3235 * config/arm/types.md (is_neon_type): Add missing types.
3237 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
3239 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
3241 * config/i386/i386.c (PTA_SKYLAKE): New macros.
3242 (processor_alias_table): Add skylake description.
3243 (enum processor_model): Add skylake processor.
3244 (arch_names_table): Add skylake record.
3245 * doc/invoke.texi: Add skylake item.
3247 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
3249 * ira-int.h: Include recog.h.
3250 * ira-build.c: Don't include recog.h.
3251 * ira-color.c: Likewise.
3252 * ira-conflicts.c: Likewise.
3253 * ira-costs.c: Likewise.
3254 * ira-emit.c: Likewise.
3255 * ira-lives.c: Likewise.
3257 * sched-deps.c: Likewise.
3258 * sel-sched.c: Likewise.
3259 * target-globals.c: Likewise.
3261 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
3264 * reload1.c (elimination_costs_in_insn): Make it obvious to the
3265 compiler that the n_dups and n_operands loop bounds are invariant.
3267 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3269 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
3270 expressions in A and B.
3272 2015-08-13 Richard Biener <rguenther@suse.de>
3274 * tree.c (nonnull_arg_p): Move from ...
3275 * tree-vrp.c (nonnull_arg_p): ... here.
3276 * tree.h (nonnull_arg_p): Declare.
3277 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
3278 here, register ptr != 0 for nonnull_arg_p pointer arguments.
3279 Properly initialize static chain and by-reference result pointer.
3280 (run_scc_vn): Adjust.
3282 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
3284 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
3287 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
3289 * config/aarch64/aarch64-protos.h
3290 (aarch64_gen_atomic_cas): Declare.
3291 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
3292 Choose appropriate instruction pattern for the target.
3293 (aarch64_gen_atomic_cas): New.
3294 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
3295 (atomic_compare_and_swap<mode>_1): Rename to
3296 aarch64_compare_and_swap<mode>. Fix some indentation.
3297 (aarch64_compare_and_swap<mode>_lse): New.
3298 (aarch64_atomic_cas<mode>): New.
3300 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
3302 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
3305 2015-08-13 Richard Biener <rguenther@suse.de>
3307 PR tree-optimization/67191
3308 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
3309 assert we value-numbered last stmts operand because it can validly
3310 trigger for unreachable code.
3312 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3314 PR rtl-optimization/67103
3315 * ifcvt.c (noce_try_store_flag_constants): Move
3316 x = (-(test != 0) & (b - a)) + a transformation to...
3317 (noce_try_cmove): ... Here. Try it if normal conditional
3320 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
3322 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
3324 * config/mips/mips.md (processor): Remove w32 and w64.
3326 2015-08-13 Richard Biener <rguenther@suse.de>
3328 PR tree-optimization/66502
3329 PR tree-optimization/67167
3330 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
3332 (vn_phi_lookup): Adjust.
3333 (vn_phi_insert): Likewise.
3334 (visit_phi): Prefer to value-number to another PHI node
3335 over value-numbering to a PHI argument.
3336 (init_scc_vn): Mark DFS back edges.
3338 2015-08-13 Richard Biener <rguenther@suse.de>
3340 * gimple.h (gcall::code_): New constant static member.
3341 (gcond::code_): Likewise.
3342 * gimple.c (gcall::code_): Define.
3343 (gcond::code_): Likewise.
3344 (is_a_helper <const gcond *>): Add.
3345 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
3346 and forward to a new gcall overload with less checking and a
3347 cheaper way to access the operand.
3348 (gimple_call_lhs_ptr): Likewise.
3349 (gimple_call_set_lhs): Likewise.
3350 (gimple_call_internal_p): Likewise.
3351 (gimple_call_with_bounds_p): Likewise.
3352 (gimple_call_set_with_bounds): Likewise.
3353 (gimple_call_internal_fn): Likewise.
3354 (gimple_call_set_ctrl_altering): Likewise.
3355 (gimple_call_ctrl_altering_p): Likewise.
3356 (gimple_call_fntype): Likewise.
3357 (gimple_call_fn): Likewise.
3358 (gimple_call_fn_ptr): Likewise.
3359 (gimple_call_set_fndecl): Likewise.
3360 (gimple_call_fndecl): Likewise.
3361 (gimple_call_chain): Likewise.
3362 (gimple_call_num_args): Likewise.
3363 (gimple_call_arg): Likewise.
3364 (gimple_call_arg_ptr): Likewise.
3365 (gimple_call_set_arg): Likewise.
3366 (gimple_call_noreturn_p): Likewise.
3367 (gimple_cond_code): Likewise.
3368 (gimple_cond_lhs): Likewise.
3369 (gimple_cond_rhs): Likewise.
3370 (gimple_has_lhs): Reduce checking.
3372 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3375 * match.pd (div (mult @0 @1) @1) : New simplifier.
3377 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3380 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
3381 predicate to allow construction of vector constants using the
3382 VSLDOI vector shift instruction.
3384 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
3387 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
3388 the number of bytes to be shifted left and filled in with either
3389 all zero or all one bits.
3390 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
3392 (output_vec_const_move): On power8, generate XXLORC to generate
3393 a vector constant with all 1's. Do a split if we need to use a
3396 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
3397 properly test for the MSB.
3399 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
3400 vector constants that can be created with VSLDOI.
3402 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
3405 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3406 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3407 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3408 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3409 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3410 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3411 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3412 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3413 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3415 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
3417 * config/xtensa/constraints.md (define_constraint "Y"): New
3419 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
3420 * config/xtensa/linux.h (ASM_SPEC): Likewise.
3421 * config/xtensa/predicates.md (move_operand): Match constants
3422 and symbols in the presence of TARGET_AUTO_LITPOOLS.
3423 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
3424 immediate references to TLS data.
3425 (xtensa_emit_move_sequence): Don't force constants to memory in
3426 the presence of TARGET_AUTO_LITPOOLS.
3427 (print_operand): Add 'y' format, same as default, but capable of
3428 printing SF mode constants as well.
3429 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
3430 (movsf_internal): Add movi pattern that loads literal.
3431 (movsf, movdf): Don't force constants to memory in the presence
3432 of TARGET_AUTO_LITPOOLS.
3433 (movdf_internal): Add 'Y' constraint.
3434 * config/xtensa/xtensa.opt (mauto-litpools): New option.
3435 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
3437 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
3439 * config/arm/arm-fpus.def: Replace booleans with feature flags.
3441 * config/arm/arm.c (ARM_FPU): Update macro.
3442 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
3443 (TARGET_FP16): Likewise.
3444 (TARGET_CRYPTO): Likewise.
3445 (TARGET_NEON): Likewise.
3446 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
3449 2015-08-12 Tom de Vries <tom@codesourcery.com>
3453 * doc/install.texi: Remove --with_host_libstdcxx item. Update
3454 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
3455 accordingly. Mention default for --with-stage1-ldflags.
3457 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
3459 * config/arm/arm.h (arm_fpu_feature_set): New.
3460 (ARM_FPU_FSET_HAS): New.
3464 (FPU_FL_CRYPTO): New.
3466 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3468 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
3469 after -mcmodel=large -fPIC sorry.
3471 2015-08-12 Richard Biener <rguenther@suse.de>
3473 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
3474 comparison operand order and commutative ternary op operand order.
3475 (sccvn_dom_walker::cond_stack): New state to track temporary
3477 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
3479 (sccvn_dom_walker::record_cond): Add a single temporary conditional
3481 (sccvn_dom_walker::record_conds): Add a temporary conditional
3482 expressions and all related expressions also true/false.
3483 (sccvn_dom_walker::before_dom_children): Record temporary
3484 expressions based on the controlling condition of a single
3485 predecessor. When trying to simplify a conditional statement
3486 lookup expressions we might have inserted earlier.
3488 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
3491 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
3492 to ARM core registers.
3494 2015-08-12 Nathan Sidwell <nathan@acm.org>
3496 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
3497 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
3499 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
3501 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
3503 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
3505 2015-08-12 Richard Biener <rguenther@suse.de>
3507 * gimple.h (remove_pointer): New trait.
3508 (GIMPLE_CHECK2): New inline template function.
3509 (gassign::code_): New constant static member.
3510 (is_a_helper<const gassign *>): Add.
3511 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
3512 and forward to a new gassign overload with less checking and a
3513 cheaper way to access the operand.
3514 (gimple_assign_lhs_ptr): Likewise.
3515 (gimple_assign_set_lhs): Likewise.
3516 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
3518 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
3520 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
3522 (gimple_assign_rhs_code): Likewise.
3523 * gimple.c (gassign::code_): Define.
3525 2015-08-12 Richard Biener <rguenther@suse.de>
3527 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3528 Eliminate edges marked as not executable by SCCVN.
3529 * tree-ssa-sccvn.c: Include gimple-iterator.h.
3530 (cond_dom_walker): Rename to sccvn_dom_walker.
3531 (sccvn_dom_walker::before_dom_children): Value-number defs
3533 (run_scc_vn): Remove loop value-numbering all SSA names.
3534 Drop not visited SSA names to varying.
3536 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
3538 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3539 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3540 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3541 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3542 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3543 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3544 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3545 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3546 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3548 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
3551 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
3552 to enum feature_priority and feature_list.
3553 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
3554 and isa_names_table.
3556 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
3558 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
3561 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3565 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
3566 account when deciding what was the command-line status.
3568 2015-08-11 Nathan Sidwell <nathan@acm.org>
3570 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
3572 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
3573 we're not the only contributor to target phi.
3575 2015-08-11 Jiong Wang <jiong.wang@arm.com>
3577 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
3580 2015-08-11 Tom de Vries <tom@codesourcery.com>
3582 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
3584 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
3586 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
3588 * config/i386/i386.md (cpu): Remove knl.
3590 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3594 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
3595 open-coded sequence.
3596 * omp-low.c (oacc_process_reduction_data): Remove handline of
3597 GOMP_DEVICE_HOST_NONSHM.
3599 * lto-streamer-in.c (lto_input_mode_table): Adjust to
3600 GET_MODE_INNER changes.
3602 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3603 Ilya Verbin <ilya.verbin@intel.com>
3605 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
3608 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3610 * doc/options.texi (EnabledBy): Document that the argument must be
3612 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
3613 Not enabled by -Wall.
3614 * optc-gen.awk: Give nicer error messages. Detect if the argument
3615 of EnabledBy is not a Common option.
3616 * common.opt (Wnull-dereference): Not enabled by -Wall.
3617 * opt-functions.awk (lang_enabled_by): Nicer error messages.
3619 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
3621 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
3622 model == 0x4f as Broadwell.
3624 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3626 PR rtl-optimization/67028
3627 * combine.c (simplify_comparison): Fix comment. Rearrange code.
3628 Add test to see if a const_int fits in the new mode.
3630 2015-08-07 DJ Delorie <dj@redhat.com>
3632 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
3634 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
3636 PR rtl-optimization/67029
3637 * ira-color.c: Include "recog.h" before including "ira-int.h".
3638 * target-globals.c: Likewise.
3639 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
3640 adds an alternative_mask argument and use it instead of
3641 preferred_alternatives.
3642 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
3643 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
3644 * sched-deps.c: Include "ira-int.h" after including "ira.h".
3645 (sched_analyze_insn): Update call to
3646 ira_implicitly_set_insn_hard_regs.
3647 * sel-sched.c: Include "ira-int.h" after including "ira.h".
3648 (implicit_clobber_conflict_p): Update call to
3649 ira_implicitly_set_insn_hard_regs.
3651 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
3653 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
3655 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
3658 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
3659 currently_expanding_to_rtl is set.
3661 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
3663 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
3664 * configure: Regenerate.
3666 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3667 Jiong Wang <jiong.wang@arm.com>
3669 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3670 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3671 (REG_CLASS_NAMES): Likewise.
3672 (REG_CLASS_CONTENTS): Likewise.
3673 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3674 (aarch64_register_move_cost): Likewise.
3675 (aarch64_load_symref_appropriately): Invoke the new added pattern if
3677 * config/aarch64/constraints.md (Uc0): New constraint.
3679 2015-08-06 Jiong Wang <jiong.wang@arm.com>
3681 * config/aarch64/constraints.md (Usf): Add the test of
3682 aarch64_is_noplt_call_p.
3684 2015-08-06 Jiong Wang <jiong.wang@arm.com>
3686 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
3688 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
3689 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
3690 (call_symbol): Likewise.
3692 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3694 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
3695 for vectorizing multiplication patterns.
3696 * tree-vectorizer.h: Adjust the number of patterns.
3698 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
3700 * config/i386/sse.md (*vec_concatv2df): Declare added
3701 alternatives as sselog type.
3703 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3705 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
3708 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3710 * config/s390/s390.c (s390_expand_tbegin): Expand either
3711 tbegin_1_z13 or tbegin_1 depending on VX flag.
3712 * config/s390/s390.md ("tbegin_1_z13"): New expander.
3714 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3716 * config/s390/s390.opt: Clarify description for -mzvector
3717 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
3720 2015-08-06 Richard Biener <rguenther@suse.de>
3722 * gimple.h (gimple_call_set_fn): Access op member directly.
3723 (gimple_call_chain_ptr): Likewise.
3724 (gimple_call_set_chain): Likewise.
3725 (gimple_cond_lhs_ptr): Likewise.
3726 (gimple_cond_set_lhs): Likewise.
3727 (gimple_cond_rhs_ptr): Likewise.
3728 (gimple_cond_set_rhs): Likewise.
3729 (gimple_cond_true_label): Likewise.
3730 (gimple_cond_set_true_label): Likewise.
3731 (gimple_cond_set_false_label): Likewise.
3732 (gimple_cond_false_label): Likewise.
3733 (gimple_label_label): Likewise.
3734 (gimple_label_set_label): Likewise.
3735 (gimple_goto_set_dest): Likewise.
3736 (gimple_asm_input_op): Likewise.
3737 (gimple_asm_input_op_ptr): Likewise.
3738 (gimple_asm_set_input_op): Likewise.
3739 (gimple_asm_output_op): Likewise.
3740 (gimple_asm_output_op_ptr): Likewise.
3741 (gimple_asm_set_output_op): Likewise.
3742 (gimple_asm_clobber_op): Likewise.
3743 (gimple_asm_set_clobber_op): Likewise.
3744 (gimple_asm_label_op): Likewise.
3745 (gimple_asm_set_label_op): Likewise.
3746 (gimple_switch_index): Likewise.
3747 (gimple_switch_index_ptr): Likewise.
3748 (gimple_return_retval_ptr): Likewise.
3749 (gimple_return_retval): Likewise.
3750 (gimple_return_set_retval): Likewise.
3751 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
3752 (gimple_switch_label): Likewise.
3753 (gimple_switch_set_label): Likewise.
3755 2015-08-06 Richard Biener <rguenther@suse.de>
3757 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
3758 bool comparison canonicalization and restrict to integers.
3760 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
3762 * coretypes.h (enum symbol_visibility): Relocate here.
3763 * flag-types.h (enum symbol_visibility): Remove.
3764 * tree-core.h (enum symbol_visibility): Remove.
3766 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
3769 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
3770 for no_split_stack function attribute along with
3772 (rs6000_expand_split_stack_prologue): Likewise.
3774 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3775 Jeff Law <law@redhat.com>
3778 * doc/invoke.texi (Wnull-dereference): New.
3779 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
3780 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
3781 Warn for potential NULL dereferences.
3782 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
3783 * ubsan.c (instrument_nonnull_arg): Call
3784 infer_nonnull_range_by_attribute.
3785 (instrument_nonnull_return): Likewise.
3786 * common.opt (Wnull-dereference); New.
3787 * gimple.c (infer_nonnull_range): Remove bool arguments.
3788 (infer_nonnull_range_by_dereference): New.
3789 (infer_nonnull_range_by_attribute): New.
3790 * gimple.h: Update declarations.
3792 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3794 * gensupport.c (sequence_num): Replace with...
3795 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
3796 ...these new variables.
3797 (init_rtx_reader_args_cb): Update accordingly.
3798 (get_num_code_insns): Likewise.
3799 (read_md_rtx): Rework to use a while loop and get_c_test.
3800 Use the new counters. Remove redundant DEFINE_SUBST case.
3801 * genoutput.c (gen_split): Delete.
3802 (main): Don't call it.
3804 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3806 * gensupport.h (get_c_test): Declare.
3807 * gensupport.c (get_c_test): New function.
3808 * genconditions.c (main): Use it.
3809 * genrecog.c (validate_pattern): Likewise.
3810 (match_pattern_1): Likewise. Remove c_test argument.
3811 (match_pattern): Update accordingly and remove c_test argument.
3812 (main): Update accordingly.
3814 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3816 * gensupport.h (get_num_insn_codes): Declare.
3817 * gensupport.c (get_num_insn_codes): New function.
3818 * genattrtab.c (optimize_attrs): Rename max_insn_code to
3820 (main): Likewise. Use get_num_insn_codes.
3821 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
3823 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3826 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
3827 is zero- rather than sign-extended.
3829 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3831 * target-insns.def (can_extend): Delete.
3833 2015-08-05 Richard Biener <rguenther@suse.de>
3835 PR tree-optimization/67121
3836 * tree-if-conv.c (combine_blocks): Clear range-info produced
3837 by stmts no longer executed conditionally.
3839 2015-08-05 Nick Clifton <nickc@redhat.com>
3841 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
3842 to allow identical far pointers to remain.
3844 2015-08-05 Richard Biener <rguenther@suse.de>
3847 * match.pd: Compare address bases with == if they are decls
3848 or SSA names, not operand_equal_p. Otherwise fail.
3850 2015-08-05 Richard Biener <rguenther@suse.de>
3852 PR tree-optimization/67055
3853 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
3856 * g++.dg/torture/pr67055.C: New testcase.
3858 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
3860 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
3862 (define_attr "enabled"): Handle avx521vl and noavx512vl.
3863 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
3864 AVX-512 alternative out of SSE.
3865 (define_insn "*vec_concatv2df"): Ditto.
3867 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
3869 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
3870 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
3871 CODE_FOR_avx_ptestv4di.
3872 * config/i386/sse.md (define_mode_iterator V_AVX): New.
3873 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
3874 (define_insn "avx_ptest256"): Merge this ...
3875 (define_insn "sse4_1_ptest"): And this ...
3876 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
3878 2015-08-05 Richard Biener <rguenther@suse.de>
3880 PR tree-optimization/67109
3881 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
3882 against too big groups. Print whether this is a load or store
3883 group. Rename from ...
3884 (vect_analyze_group_access): ... this which is now a wrapper
3885 dissolving an invalid group.
3886 (vect_analyze_data_ref_accesses): Print whether this is a load
3889 2015-08-05 Richard Biener <rguenther@suse.de>
3892 * match.pd: Guard const_binop result checking against NULL_TREE
3895 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
3897 * cse.c (cse_insn): Restoring old behaviour for src_eqv
3898 when dest and value in the REG_EQUAL are same and dest
3901 2015-08-04 Anatoly Sokolov <aesok@post.ru>
3903 * config/moxie/moxie.h (PRINT_OPERAND,
3904 PRINT_OPERAND_ADDRESS): Remove macros.
3905 * config/moxie/moxie-protos.h (moxie_print_operand,
3906 moxie_print_operand_address): Remove declaration.
3907 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
3908 TARGET_PRINT_OPERAND_ADDRESS): Define.
3909 (moxie_print_operand, moxie_print_operand_address): Make static.
3911 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3914 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
3915 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
3917 2015-08-04 Richard Biener <rguenther@suse.de>
3919 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
3921 (dt_operand::gen_gimple_expr): Adjust.
3923 2015-08-04 Richard Biener <rguenther@suse.de>
3925 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
3926 bool compares on RHS.
3927 * match.pd: Add X ==/!= !X is false/true pattern.
3929 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
3931 * config/aarch64/aarch64.c: Change inner loop statement cost
3932 to be consistent with other targets.
3934 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
3936 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
3939 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
3941 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
3942 (machine_function): Remove pseudos field.
3944 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3946 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
3947 Exit early and use target_option_current_node if processing current
3950 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3952 * doc/extend.texi (AArch64 Function Attributes): New node.
3953 (AArch64 Pragmas): Likewise.
3955 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3957 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
3958 Initialize simd builtins if TARGET_SIMD.
3959 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
3960 Make sure that the builtins are initialized only once no matter how
3961 many times the function is called.
3962 (aarch64_init_builtins): Unconditionally initialize crc builtins.
3963 (aarch64_relayout_simd_param): New function.
3964 (aarch64_simd_expand_args): Use above during argument expansion.
3965 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
3966 simd builtins if TARGET_SIMD.
3967 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
3969 (aarch64_relayout_simd_types): Likewise.
3971 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3973 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
3974 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
3975 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
3976 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
3978 (aarch64_reset_previous_fndecl): New function.
3979 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
3981 * config/aarch64/aarch64-c.c: New file.
3982 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
3983 Push and pop options at beginning and end. Remove ifdef
3984 __ARM_FEATURE_CRC32.
3985 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
3986 Add pragma +nothing+simd and +nothing+crypto where appropriate.
3987 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
3988 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
3990 (aarch64_register_pragmas): Likewise.
3991 (aarch64_reset_previous_fndecl): Likewise.
3992 (aarch64_process_target_attr): Likewise.
3993 (aarch64_override_options_internal): Likewise.
3995 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3997 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
3999 (aarch64_can_inline_p): Likewise.
4000 (TARGET_CAN_INLINE_P): Define.
4002 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4004 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4005 Remove static. Handle OPT_mgeneral_regs_only,
4006 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
4007 OPT_momit_leaf_frame_pointer.
4008 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
4009 (aarch64_attr_opt_type): New enum.
4010 (aarch64_attribute_info): New struct.
4011 (aarch64_handle_attr_arch): New function.
4012 (aarch64_handle_attr_cpu): Likewise.
4013 (aarch64_handle_attr_tune): Likewise.
4014 (aarch64_handle_attr_isa_flags): Likewise.
4015 (aarch64_attributes): New table.
4016 (aarch64_process_one_target_attr): New function.
4017 (num_occurences_in_str): Likewise.
4018 (aarch64_process_target_attr): Likewise.
4019 (aarch64_option_valid_attribute_p): Likewise.
4020 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
4021 * config/aarch64/aarch64-protos.h: Include input.h
4022 (aarch64_handle_option): Declare prototype.
4024 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4026 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
4027 * config/aarch64/aarch64.c: Include target-globals.h
4028 (aarch64_previous_fndecl): New variable.
4029 (aarch64_set_current_function): New function.
4030 (TARGET_SET_CURRENT_FUNCTION): Define.
4032 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4034 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
4035 (explicit_arch): Likewise.
4036 (x_aarch64_isa_flags): Likewise.
4037 (mgeneral-regs-only): Mark as Save.
4038 (mfix-cortex-a53-835769): Likewise.
4039 (mcmodel=): Likewise.
4040 (mstrict-align): Likewise.
4041 (momit-leaf-frame-pointer): Likewise.
4042 (mtls-dialect): Likewise.
4043 (master=): Likewise.
4044 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
4045 (aarch64_isa_flags): Remove extern declaration.
4046 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
4047 to indicate success or failure.
4048 (aarch64_validate_march): Likewise.
4049 (aarch64_validate_mtune): Likewise.
4050 (aarch64_isa_flags): Delete.
4051 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
4052 instead of aarch64_isa_flags.
4053 (aarch64_get_tune_cpu): New function.
4054 (aarch64_get_arch): Likewise.
4055 (aarch64_override_options): Use above and set up explicit_tune_core
4057 (aarch64_print_extension): Move earlier in file. Add isa_flags
4058 argument and use that instead of the global aarch64_isa_flags.
4059 (aarch64_option_save): New function.
4060 (aarch64_option_restore): Likewise.
4061 (aarch64_option_print): Likewise.
4062 (aarch64_declare_function_name): Likewise.
4063 (aarch64_start_file): Delete.
4064 (TARGET_ASM_FILE_START): Do not define.
4065 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
4066 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
4069 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4071 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
4072 flag_omit_leaf_frame_pointer to 2.
4074 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4076 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
4078 (TARGET_FIX_ERR_A53_835769): New macro.
4079 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4080 handling of opts->x_aarch64_fix_a53_err835769.
4081 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
4082 than aarch64_fix_a53_err835769.
4083 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
4084 * config/aarch64/aarch64-linux.h: Likewise.
4086 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
4088 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
4089 ix86_expand_int_movcc as boolean.
4091 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4093 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
4094 (aarch64_cpu_string): Likewise.
4095 (aarch64_tune_string): Likewise.
4096 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
4097 (aarch64_parse_extension): Return aarch64_parse_opt_result.
4098 Add extra argument to put result into.
4099 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
4100 (aarch64_parse_cpu): Add arguments to put results into. Return
4101 aarch64_parse_opt_result.
4102 (aarch64_parse_tune): Likewise.
4103 (aarch64_override_options_after_change_1): New function.
4104 (aarch64_override_options_internal): New function.
4105 (aarch64_validate_mcpu): Likewise.
4106 (aarch64_validate_march): Likewise.
4107 (aarch64_validate_mtune): Likewise.
4108 (aarch64_override_options): Update to reflect above changes.
4109 Move some logic into aarch64_override_options_internal.
4110 Initialize target_option_default_node and target_option_current_node.
4111 (aarch64_override_options_after_change): Move logic into
4112 aarch64_override_options_after_change_1 and call it with global_options.
4113 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
4114 flag values from that.
4116 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4118 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4119 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
4120 * config/aarch64/aarch64.c (struct processor): Add arch field.
4121 (all_architectures): Handle above, move above all_cores.
4122 (all_cores): Handle above.
4123 (aarch64_parse_arch): Handle above changes.
4124 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
4125 above. Update comments.
4126 (armv8.1-a): Likewise.
4127 * config/aarch64/aarch64-cores.def: Update according to above.
4128 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
4129 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
4130 aarch64_arch_driver_info.
4132 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4134 * config/aarch64/aarch64.c (struct processor): Add ident field.
4135 Rename core sched_core.
4136 (all_cores): Handle above changes.
4137 (all_architectures): Likewise.
4138 (aarch64_parse_arch): Likewise.
4139 (aarch64_override_options): Likewise.
4141 2015-08-04 Richard Biener <rguenther@suse.de>
4143 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
4144 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
4145 comparisons embedded in [VEC_]COND_EXPRs.
4147 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
4149 * tree-if-conv.c: Fix various typos in comments.
4150 * tree-vect-stmts.c: Likewise.
4152 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4154 PR tree-optimization/67043
4155 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
4156 preheader after hoisting invariant in it.
4157 (find_defs): Force recomputation of all luids.
4159 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
4161 * config/rs6000/htm.md (tabort.): Restrict the source operand to
4162 using a base register.
4164 2015-08-03 David Malcolm <dmalcolm@redhat.com>
4166 * main.c (main): Pass in NULL for toplev's external_timer.
4167 * timevar.c: Include coretypes.h.
4168 (class timer::named_items): New.
4169 (timer::named_items::named_items): New.
4170 (timer::named_items::~named_items): New.
4171 (timer::named_items::push): New.
4172 (timer::named_items::pop): New.
4173 (timer::named_items::print): New.
4174 (timer::timer): Initialize field "m_jit_client_items".
4175 (timer::~timer): New.
4176 (timer::push): Move bulk of implementation to...
4177 (timer::push_internal): ...here. New function.
4178 (timer::pop): Move bulk of implementation to...
4179 (timer::pop_internal): ...here. New function.
4180 (timer::push_client_item): New.
4181 (timer::pop_client_item): New.
4182 (timer::print_row): New function, taken from timer::print.
4183 (timer::print): Print "GCC items" header if we also have client
4184 items. Move row-printing to timer::print_row. Print any client
4186 (timer::get_topmost_item_name): New method.
4187 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
4188 (TV_JIT_CLIENT_CODE): New.
4189 * timevar.h (timer::push_client_item): New declaration.
4190 (timer::pop_client_item): New declaration.
4191 (timer::get_topmost_item_name): New method.
4192 (timer::push_internal): New declaration.
4193 (timer::pop_internal): New declaration.
4194 (timer::print_row): New declaration.
4195 (timer::named_items): New declaration.
4196 (timer::m_jit_client_items): New field.
4197 (timer): Add friend class named_items.
4198 (auto_timevar::auto_timevar): Add timer param.
4199 (auto_timevar::~auto_timevar): Use field "m_timer".
4200 (auto_timevar::m_timer): New field.
4201 * toplev.c (initialize_rtl): Add g_timer as param when
4202 constructing auto_timevar instance.
4203 (toplev::toplev): Add "external_timer" param, and use it to
4204 initialize the "g_timer" global if non-NULL.
4205 (toplev::~toplev): If this created "g_timer", delete it.
4206 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
4207 with "external_timer" timer *.
4209 2015-08-03 Alexander Basov <coohpt@gmail.com>
4214 * cfgexpand.c (expand_one_var): Add check if stack is going to
4215 be used in naked function.
4216 * expr.c (expand_expr_addr_expr_1): Remove excess checking
4217 whether expression should not reside in MEM.
4218 * function.c (use_register_for_decl): Do not use registers for
4219 non-register things (volatile, float, BLKMode) in naked functions.
4221 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
4224 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
4225 Adjust splits to match new pattern.
4227 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4229 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
4232 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
4233 point in VSX registers.
4235 * config/rs6000/constraints.md (wb constraint): Document unused
4237 (we constraint): Likewise.
4238 (wo constraint): Likewise.
4239 (wp constraint): New constraint for IEEE 128-bit floating point in
4241 (wq constraint): Likewise.
4243 * config/rs6000/predicates.md (easy_fp_constant): Add support for
4244 IEEE 128-bit floating point in VSX registers.
4245 (easy_scalar_constant): Likewise.
4247 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
4248 constraints (wp, wq) for IEEE 128-bit floating point in VSX
4250 (rs6000_init_hard_regno_mode_ok): Likewise.
4252 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
4253 floating point in VSX registers.
4262 (vsx_le_permute_<mode>): Add support to properly swap bytes for
4263 IEEE 128-bit floating point in VSX registers on little endian.
4264 (vsx_le_undo_permute_<mode>): Likewise.
4265 (vsx_le_perm_load_<mode>): Likewise.
4266 (vsx_le_perm_store_<mode>): Likewise.
4267 (splitters for IEEE 128-bit fp moves): Likewise.
4269 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
4272 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
4273 floating point in VSX registers.
4276 * doc/md.text (Machine Constraints): Document wp and wq
4277 constraints on PowerPC.
4279 2015-08-03 Jeff Law <law@redhat.com>
4282 PR gcov-profile/66899
4283 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
4284 iterate over the jump threading paths when an element in the
4285 jump threading paths array is eliminated.
4287 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
4289 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
4291 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
4293 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
4294 is_use_properly_guarded the variable def_preds. Free its
4295 contents before returning.
4296 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
4297 (is_use_properly_guarded): Replace local variable def_preds with
4298 a parameter. Adjust accordingly. Only update *def_preds if it's
4301 2015-08-03 Richard Biener <rguenther@suse.de>
4303 * genmatch.c (simplify::for_subst_vec): New member.
4304 (binary_ok): New helper for for lowering.
4305 (lower_for): Delay substituting operators into result expressions
4306 if we can merge the results eventually again.
4307 (capture_info::walk_result): Adjust for user_id appearing as
4308 result expression operator.
4309 (expr::gen_transform): Likewise.
4310 (dt_simplify::gen_1): Likewise.
4311 (dt_simplify::gen): Pass not substituted operators to tail
4312 functions or initialize local variable with it.
4313 (decision_tree::gen): Adjust function signature.
4314 * match.pd: Fix tests against global code and add default
4315 cases to switch stmts.
4317 2015-08-03 Richard Biener <rguenther@suse.de>
4319 * genmatch.c (dt_simplify::gen): Create captures array
4320 with an initializer.
4322 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4324 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
4325 the host compiler is affected by placement new aliasing bug.
4326 * configure: Regenerate.
4327 * Makefile.in (ALIASING_FLAGS): New variable.
4328 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
4330 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4333 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
4334 (negmulsf3_vfp): Likewise.
4335 (muldf3negdf_vfp): Disable for -frounding-math.
4336 (mulsf3negsf_vfp): Likewise.
4337 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
4338 fix MULT cost with -frounding-math.
4340 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4342 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
4343 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
4344 explicit. Prefer to add the flag whenever possible.
4345 (noce_process_if_block): Try noce_try_store_flag_constants before
4348 2015-08-03 Richard Biener <rguenther@suse.de>
4350 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
4351 New hash-map to record equivalent transforms.
4352 (dt_node::analyze): Populate the equivalent transforms hash-map.
4353 (dt_simplify::info): Add reference to hash-map entry.
4354 (dt_simplify::gen): If we have split out a function for the
4355 transform, generate a call to it.
4356 (sinfo_hashmap_traits::hash): New function.
4357 (compare_op): New helper function for ...
4358 (sinfo_hashmap_traits::equal_keys): ... this new function.
4359 (decision_tree::gen): Split out common equivalent transforms
4362 2015-08-03 Richard Biener <rguenther@suse.de>
4364 * gimple-fold.c (fold_gimple_assign): Remove folding of
4365 the comparison in COND_EXPRs.
4367 2015-08-03 Richard Biener <rguenther@suse.de>
4369 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
4370 on the rhs of assignments first simplify the embedded
4373 2015-08-03 Richard Biener <rguenther@suse.de>
4375 PR tree-optimization/66917
4376 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
4378 (DR_VECT_AUX): New macro.
4379 (set_dr_misalignment): Adjust.
4380 (dr_misalignment): Likewise.
4381 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4382 Compute whether the base is at least element aligned.
4383 * tree-vect-stmts.c (ensure_base_align): Adjust.
4384 (vectorizable_store): If the base is not element aligned
4385 preserve alignment of the original access if misalignment is unknown.
4386 (vectorizable_load): Likewise.
4388 2015-08-02 Martin Sebor <msebor@redhat.com>
4390 * c-family/c.opt (-Wframe-address): New warning option.
4391 * doc/invoke.texi (Wframe-address): Document it.
4392 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
4393 Clarify possible effects of calling the functions with non-zero
4394 arguments and mention -Wframe-address.
4395 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
4397 2015-08-01 Michael Collison <michael.collison@linaro.org
4398 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4400 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
4401 (*arm_umin_cmp): Likewise.
4403 2015-08-01 Caroline Tice <cmtice@google.com>
4406 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
4408 (vtbl_find_mangled_name): New function.
4409 (vtbl_register_mangled_name): New function.
4410 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
4411 mangled name in mangled name vectors.
4412 (find_or_create_vtbl_map_node): Ditto.
4413 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
4414 update recursion_depth on function entry; pass it to every recursive
4415 call; automatically exit if depth > 25 (give up looking at that point).
4416 (verify_bb_vtables): Initialize recursion_depth and pass it to
4417 var_is_used_for_virtual_call_p.
4418 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
4419 global variable decls.
4420 (vtbl_register_mangled_name): New extern function decl.
4422 2015-08-01 Tom de Vries <tom@codesourcery.com>
4424 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
4426 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
4428 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
4429 operation_no_trapping_overflow. Allow non-overflow operations.
4430 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
4433 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
4436 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
4438 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4440 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
4441 Enable for TARGET_32BIT.
4442 (*if_move_neg): Likewise.
4444 2015-07-31 Nick Clifton <nickc@redhat.com>
4446 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
4447 Returns true for __model__.
4448 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4450 2015-07-31 Alan Modra <amodra@gmail.com>
4453 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
4454 (rs6000_emit_prologue): Set it.
4455 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
4457 2015-07-31 Richard Biener <rguenther@suse.de>
4459 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
4460 -> X == (C1 ^ C2) which is already implemented in match.pd.
4461 Remove redundant dispatching to fold_relational_const.
4462 Move unordered self and NaN compares ...
4463 * match.pd: ... as patterns here. Remove some stray captures
4466 2015-07-31 Petr Murzin <petr.murzin@intel.com>
4468 * config/i386/i386.c
4469 (bdesc_special_args): Convert mask type from signed to unsigned for
4471 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
4472 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
4473 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
4474 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
4475 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
4476 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
4477 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
4478 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
4479 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
4480 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
4481 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
4482 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
4483 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
4484 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
4485 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
4486 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
4487 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
4488 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
4489 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
4490 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
4491 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
4492 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
4493 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
4494 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
4495 * config/i386/i386-builtin-types.def
4496 (V16QI_FTYPE_V16SI): Remove.
4497 (V8DF_FTYPE_V8SI): Ditto.
4498 (V8HI_FTYPE_V8DI): Ditto.
4499 (V8SI_FTYPE_V8DI): Ditto.
4500 (V8SF_FTYPE_V8DF): Ditto.
4501 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
4502 (V16HI_FTYPE_V16SI): Ditto.
4503 (V16SF_FTYPE_V16HI): Ditto.
4504 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
4505 (V16SF_FTYPE_V16SI): Ditto.
4506 (V4DI_FTYPE_V4DI): Ditto.
4507 (V16SI_FTYPE_V16SF): Ditto.
4508 (V16SF_FTYPE_FLOAT): Ditto.
4509 (V8DF_FTYPE_DOUBLE): Ditto.
4510 (V8DI_FTYPE_INT64): Ditto.
4511 (V8DI_FTYPE_V4DI): Ditto.
4512 (V16QI_FTYPE_V8DI): Ditto.
4513 (UINT_FTYPE_V4SF): Ditto.
4514 (UINT64_FTYPE_V4SF): Ditto.
4515 (UINT_FTYPE_V2DF): Ditto.
4516 (UINT64_FTYPE_V2DF): Ditto.
4517 (V16SI_FTYPE_V16SI): Ditto.
4518 (V8DI_FTYPE_V8DI): Ditto.
4519 (V16SI_FTYPE_PV4SI): Ditto.
4520 (V16SF_FTYPE_PV4SF): Ditto.
4521 (V8DI_FTYPE_PV2DI): Ditto.
4522 (V8DF_FTYPE_PV2DF): Ditto.
4523 (V4DI_FTYPE_PV2DI): Ditto.
4524 (V4DF_FTYPE_PV2DF): Ditto.
4525 (V16SI_FTYPE_PV2SI): Ditto.
4526 (V16SF_FTYPE_PV2SF): Ditto.
4527 (V8DI_FTYPE_PV4DI): Ditto.
4528 (V8DF_FTYPE_PV4DF): Ditto.
4529 (V8SF_FTYPE_FLOAT): Ditto.
4530 (V4SF_FTYPE_FLOAT): Ditto.
4531 (V4DF_FTYPE_DOUBLE): Ditto.
4532 (V8SF_FTYPE_PV4SF): Ditto.
4533 (V8SI_FTYPE_PV4SI): Ditto.
4534 (V4SI_FTYPE_PV2SI): Ditto.
4535 (V8SF_FTYPE_PV2SF): Ditto.
4536 (V8SI_FTYPE_PV2SI): Ditto.
4537 (V16SF_FTYPE_PV8SF): Ditto.
4538 (V16SI_FTYPE_PV8SI): Ditto.
4539 (V8DI_FTYPE_V8SF): Ditto.
4540 (V4DI_FTYPE_V4SF): Ditto.
4541 (V2DI_FTYPE_V4SF): Ditto.
4542 (V64QI_FTYPE_QI): Ditto.
4543 (V32HI_FTYPE_HI): Ditto.
4544 (V8UHI_FTYPE_V8UHI): Ditto.
4545 (V16UHI_FTYPE_V16UHI): Ditto.
4546 (V32UHI_FTYPE_V32UHI): Ditto.
4547 (V2UDI_FTYPE_V2UDI): Ditto.
4548 (V4UDI_FTYPE_V4UDI): Ditto.
4549 (V8UDI_FTYPE_V8UDI): Ditto.
4550 (V4USI_FTYPE_V4USI): Ditto.
4551 (V8USI_FTYPE_V8USI): Ditto.
4552 (V16USI_FTYPE_V16USI): Ditto.
4553 (V2DF_FTYPE_V2DF_UINT64): Ditto.
4554 (V2DI_FTYPE_V2DF_V2DF): Ditto.
4555 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
4556 (V8DF_FTYPE_V8DF_V8DI): Ditto.
4557 (V4SF_FTYPE_V4SF_UINT64): Ditto.
4558 (V4SI_FTYPE_V4SF_V4SF): Ditto.
4559 (V16SF_FTYPE_V16SF_V16SI): Ditto.
4560 (V64QI_FTYPE_V32HI_V32HI): Ditto.
4561 (V32HI_FTYPE_V16SI_V16SI): Ditto.
4562 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
4563 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
4564 (V32HI_FTYPE_V64QI_V64QI): Ditto.
4565 (V32HI_FTYPE_V32HI_V32HI): Ditto.
4566 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
4567 (V16SI_FTYPE_V16SI_V4SI): Ditto.
4568 (V16SI_FTYPE_V16SI_V16SI): Ditto.
4569 (V16SI_FTYPE_V32HI_V32HI): Ditto.
4570 (V16SI_FTYPE_V16SI_SI): Ditto.
4571 (V8DI_FTYPE_V8DI_V8DI): Ditto.
4572 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
4573 (V8DI_FTYPE_V16SI_V16SI): Ditto.
4574 (V8DI_FTYPE_V8DI_V2DI): Ditto.
4575 (QI_FTYPE_QI): Ditto.
4576 (SI_FTYPE_SI): Ditto.
4577 (DI_FTYPE_DI): Ditto.
4578 (QI_FTYPE_QI_QI): Ditto.
4579 (QI_FTYPE_QI_INT): Ditto.
4580 (HI_FTYPE_HI_INT): Ditto.
4581 (SI_FTYPE_SI_INT): Ditto.
4582 (DI_FTYPE_DI_INT): Ditto.
4583 (HI_FTYPE_V16QI_V16QI): Ditto.
4584 (SI_FTYPE_V32QI_V32QI): Ditto.
4585 (DI_FTYPE_V64QI_V64QI): Ditto.
4586 (QI_FTYPE_V8HI_V8HI): Ditto.
4587 (HI_FTYPE_V16HI_V16HI): Ditto.
4588 (SI_FTYPE_V32HI_V32HI): Ditto.
4589 (QI_FTYPE_V4SI_V4SI): Ditto.
4590 (QI_FTYPE_V8SI_V8SI): Ditto.
4591 (QI_FTYPE_V2DI_V2DI): Ditto.
4592 (QI_FTYPE_V4DI_V4DI): Ditto.
4593 (QI_FTYPE_V8DI_V8DI): Ditto.
4594 (HI_FTYPE_V16SI_V16SI): Ditto.
4595 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
4596 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
4597 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
4598 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
4599 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
4600 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
4601 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
4602 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
4603 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
4604 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
4605 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
4606 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
4607 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
4608 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
4609 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
4610 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
4611 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
4612 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
4613 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
4614 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
4615 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
4616 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
4617 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
4618 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
4619 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
4620 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
4621 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
4622 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
4623 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
4624 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
4625 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
4626 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
4627 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
4628 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
4629 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
4630 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
4631 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
4632 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
4633 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
4634 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
4635 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
4636 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
4637 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
4638 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
4639 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
4640 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
4641 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
4642 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
4643 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
4644 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
4645 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
4646 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
4647 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
4648 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
4649 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
4650 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
4651 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
4652 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
4653 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
4654 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
4655 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
4656 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
4657 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
4658 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
4659 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
4660 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
4661 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
4662 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
4663 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
4664 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
4665 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
4666 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
4667 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
4668 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
4669 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
4670 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
4671 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
4672 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
4673 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
4674 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
4675 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
4676 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
4677 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
4678 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
4679 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
4680 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
4681 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
4682 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
4683 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
4684 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
4685 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
4686 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
4687 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
4688 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
4689 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
4690 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
4691 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
4692 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
4693 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
4694 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
4695 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
4696 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
4697 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
4698 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
4699 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
4700 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
4701 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
4702 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
4703 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
4704 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
4705 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
4706 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
4707 (HI_FTYPE_HI): Ditto.
4708 (HI_FTYPE_V16QI): Ditto.
4709 (SI_FTYPE_V32QI): Ditto.
4710 (DI_FTYPE_V64QI): Ditto.
4711 (QI_FTYPE_V8HI): Ditto.
4712 (HI_FTYPE_V16HI): Ditto.
4713 (SI_FTYPE_V32HI): Ditto.
4714 (QI_FTYPE_V4SI): Ditto.
4715 (QI_FTYPE_V8SI): Ditto.
4716 (HI_FTYPE_V16SI): Ditto.
4717 (QI_FTYPE_V2DI): Ditto.
4718 (QI_FTYPE_V4DI): Ditto.
4719 (QI_FTYPE_V8DI): Ditto.
4720 (V16QI_FTYPE_HI): Ditto.
4721 (V32QI_FTYPE_SI): Ditto.
4722 (V64QI_FTYPE_DI): Ditto.
4723 (V8HI_FTYPE_QI): Ditto.
4724 (V16HI_FTYPE_HI): Ditto.
4725 (V32HI_FTYPE_SI): Ditto.
4726 (V4SI_FTYPE_QI): Ditto.
4727 (V4SI_FTYPE_HI): Ditto.
4728 (V8SI_FTYPE_QI): Ditto.
4729 (V8SI_FTYPE_HI): Ditto.
4730 (V2DI_FTYPE_QI): Ditto.
4731 (V4DI_FTYPE_QI): Ditto.
4732 (HI_FTYPE_HI_HI): Ditto.
4733 (SI_FTYPE_SI_SI): Ditto.
4734 (DI_FTYPE_DI_DI): Ditto.
4735 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
4736 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
4737 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
4738 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
4739 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
4740 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
4741 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
4742 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
4743 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
4744 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
4745 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
4746 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
4747 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
4748 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
4749 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
4750 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
4751 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
4752 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
4753 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
4754 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
4755 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
4756 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
4757 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
4758 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
4759 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
4760 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
4761 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
4762 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
4763 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
4764 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
4765 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
4766 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
4767 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
4768 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
4769 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
4770 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
4771 (V16SI_FTYPE_HI): Ditto.
4772 (V8DI_FTYPE_QI): Ditto.
4773 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
4774 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
4775 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
4776 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
4777 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
4778 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
4779 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
4780 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
4781 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
4782 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
4783 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
4784 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
4785 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
4786 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
4787 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
4788 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
4789 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
4790 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
4791 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
4792 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
4793 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
4794 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
4795 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
4796 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
4797 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
4798 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
4799 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
4800 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
4801 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
4802 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
4803 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
4804 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
4805 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
4806 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
4807 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
4808 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
4809 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
4810 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
4811 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
4812 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
4813 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
4814 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
4815 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
4816 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
4817 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
4818 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
4819 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
4820 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
4821 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
4822 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
4823 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
4824 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
4825 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
4826 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
4827 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
4828 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
4829 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
4830 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
4831 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
4832 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
4833 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
4834 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
4835 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
4836 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
4837 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
4838 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
4839 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
4840 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
4841 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
4842 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
4843 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
4844 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
4845 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
4846 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
4847 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
4848 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
4849 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
4850 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
4851 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
4852 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
4853 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
4854 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
4855 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
4856 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
4857 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
4858 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
4859 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
4860 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
4861 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
4862 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
4863 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
4864 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
4865 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
4866 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
4867 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
4868 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
4869 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
4870 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
4871 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
4872 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
4873 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
4874 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
4875 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
4876 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
4877 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
4878 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
4879 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
4880 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
4881 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
4882 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
4883 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
4884 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
4885 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
4886 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
4887 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
4888 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
4889 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
4890 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
4891 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
4892 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
4893 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
4894 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
4895 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
4896 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
4897 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
4898 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
4899 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
4900 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
4901 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
4902 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
4903 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
4904 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
4905 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
4906 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
4907 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
4908 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
4909 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
4910 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
4911 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
4912 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
4913 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
4914 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
4915 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
4916 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
4917 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
4918 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
4919 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
4920 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
4921 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
4922 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
4923 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
4924 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
4925 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
4926 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
4927 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
4928 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
4929 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
4930 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
4931 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
4932 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
4933 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
4934 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
4935 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
4936 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
4937 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
4938 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
4939 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
4940 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
4941 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
4942 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
4943 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
4944 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
4945 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
4946 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
4947 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
4948 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
4949 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
4950 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
4951 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
4952 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
4953 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
4954 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
4955 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
4956 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
4957 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
4958 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
4959 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
4960 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
4961 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
4962 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
4963 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
4964 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
4965 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
4966 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
4967 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
4968 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
4969 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
4970 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
4971 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
4972 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
4973 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
4974 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
4975 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
4976 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
4977 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
4978 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
4979 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
4980 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
4981 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
4982 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
4983 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
4984 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
4985 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
4986 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
4987 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
4988 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
4989 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
4990 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
4991 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
4992 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
4993 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
4994 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
4995 (QI_FTYPE_V8DF_INT_QI): Ditto.
4996 (QI_FTYPE_V4DF_INT_QI): Ditto.
4997 (QI_FTYPE_V2DF_INT_QI): Ditto.
4998 (HI_FTYPE_V16SF_INT_HI): Ditto.
4999 (QI_FTYPE_V8SF_INT_QI): Ditto.
5000 (QI_FTYPE_V4SF_INT_QI): Ditto.
5001 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
5003 2015-07-31 Richard Biener <rguenther@suse.de>
5005 * gimple-fold.c (fold_gimple_assign): Remove folding of
5008 2015-07-31 Tom de Vries <tom@codesourcery.com>
5010 PR tree-optimization/66846
5011 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
5012 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
5013 (expand_omp_target) [ENABLE_CHECKING]: Same.
5014 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
5015 cfun if !LOOPS_NEED_FIXUP.
5016 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
5017 that omp_for already has its own loop struct.
5018 * tree-parloops.c (create_phi_for_local_result)
5019 (create_call_for_reduction): Handle simple latch bb.
5020 (create_parallel_loop): Add simple latch bb to preserve
5021 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
5022 (gen_parallel_loop): Remove call to cancel_loop_tree.
5023 (parallelize_loops): Skip loops that are inner loops of parallelized
5025 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
5026 verify_loop_structure.
5028 2015-07-30 Anatoly Sokolov <aesok@post.ru>
5030 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
5031 * config/v850/v850.md (RV_REGNUM): New constants.
5032 * config/v850/v850.c (v850_libcall_value): New functions.
5033 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
5034 (TARGET_LIBCALL_VALUE): Define.
5036 2015-07-30 Anatoly Sokolov <aesok@post.ru>
5038 * rtl.h (lowpart_subreg): Move in file.
5039 * loop-iv.c (lowpart_subreg): Move to...
5040 * simplify-rtx.c (lowpart_subreg): ...here.
5041 (simplify_binary_operation_1): Use lowpart_subreg instead of
5042 simplify_gen_subreg.
5043 * expr.c (expand_expr_real_2): Ditto.
5044 * emit-rtl.c (gen_lowpart_common): Ditto.
5045 * combine.c (gen_lowpart_for_combine): Ditto.
5046 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
5047 expand_debug_source_expr): Ditto.
5049 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
5051 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
5052 (expand_builtin_atomic_clear): Remove support for atomic_clear
5055 2015-07-30 Richard Biener <rguenther@suse.de>
5057 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
5058 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
5059 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
5060 redundant operand canonicalization.
5062 2015-07-30 David Sherwood <david.sherwood@arm.com>
5064 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
5065 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
5066 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
5067 * config/arm/arm.c (neon_valid_immediate): Likewise.
5068 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
5069 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
5070 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
5071 (expand_vec_perm_vpshufb2_vpermq): Likewise.
5072 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
5073 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
5074 * config/i386/sse.md
5075 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
5076 (*ssse3_palignr<mode>_perm): Likewise.
5077 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
5078 * config/spu/spu.c (arith_immediate_p): Likewise.
5079 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5080 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
5082 2015-07-30 Richard Biener <rguenther@suse.de>
5084 * genmatch.c (decision_tree::gen_gimple): Merge with ...
5085 (decision_tree::gen_generic): ... this into ...
5086 (decision_tree::gen): ... this.
5087 (main): Adjust callers.
5089 2015-07-30 Richard Biener <rguenther@suse.de>
5091 * genmatch.c (verbose): New global.
5092 (warning_at): Add overload with source_location.
5093 (capture_info::capture_info): Add bool whether generating gimple
5094 or generic. Add gimple member.
5095 (capture_info::cinfo): Add capture member.
5096 (capture_info::walk_match): Record capture. Warn on
5098 (capture_info::walk_c_expr): Add more fragments captures cannot
5099 escape through. Warn on escaped captures.
5100 (dt_simplify::gen_1): Warn on operands we force to have no
5102 (main): Initialize verbose.
5103 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
5105 2015-07-30 Richard Biener <rguenther@suse.de>
5108 * match.pd: Allow both operands to independently have conversion
5109 when simplifying compares of addresses.
5111 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
5115 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
5116 around those cases that need one.
5118 2015-07-29 Aditya Kumar <hiraditya@msn.com>
5120 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
5122 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
5124 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
5125 New. Copied from config/i386/gnu-user.h.
5126 (ASM_COMMENT_START): Likewise.
5127 (DBX_REGISTER_NUMBER): Likewise.
5129 2015-07-29 Richard Biener <rguenther@suse.de>
5131 * gimple-fold.c (fold_gimple_cond): Remove.
5132 (fold_stmt_1): Do not call it.
5134 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
5136 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
5137 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
5139 * config/aarch64/aarch64-modes.def: Add HFmode.
5141 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5142 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
5144 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
5145 aarch64_promoted_type): New.
5147 (aarch64_float_const_representable_p): Disable HFmode.
5148 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
5149 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
5150 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
5152 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
5153 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
5155 * config/aarch64/iterators.md (GPF_F16): New.
5157 2015-07-29 Richard Biener <rguenther@suse.de>
5159 * match.pd: Merge address comparison patterns and make them
5160 handle some more cases.
5162 2015-07-29 Richard Biener <rguenther@suse.de>
5164 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
5165 (parser::parse_capture): Add bool argument on whether to reject
5167 (parser::parse_expr): Adjust.
5168 (parser::parse_op): Likewise.
5169 (parser::parse_pattern): Likewise.
5171 2015-07-29 Richard Biener <rguenther@suse.de>
5173 * gimple-fold.c (has_use_on_stmt): New function.
5174 (replace_stmt_with_simplification): Use it to allow
5175 abnormals originally referenced in the stmt.
5176 (fold_stmt_1): Canonicalize operand order.
5178 2015-07-28 David Sherwood <david.sherwood@arm.com>
5180 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
5181 GET_MODE_INNER unconditionally.
5182 * config/spu/spu.c (arith_immediate_p): Likewise.
5183 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
5184 * expmed.c (synth_mult): Remove check for VOIDmode result from
5186 (expand_mult_const): Likewise.
5187 * fold-const.c (fold_binary_loc): Replace call to element_precision
5188 with call to GET_MODE_PRECISION.
5189 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
5191 (emit_mode_inner): Likewise.
5192 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
5194 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
5195 (GET_MODE_UNIT_PRECISION): Likewise.
5196 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
5197 * simplify-rtx.c (simplify_immed_subreg): Likewise.
5198 * stor-layout.c (bitwise_type_for_mode): Update assert.
5199 (element_precision): Remove.
5201 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5203 * target-insns.def (reload_load_address): New targetm instruction
5205 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
5207 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5209 * target-insns.def (atomic_test_and_set): New targetm instruction
5211 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
5212 HAVE_*/gen_* interface.
5214 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5216 * target-insns.def (can_extend, ptr_extend): New targetm instruction
5218 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
5219 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5220 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5221 * rtlanal.c (nonzero_bits1): Likewise.
5222 (num_sign_bit_copies1): Likewise.
5224 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5226 * target-insns.def (eh_return): New targetm instruction pattern.
5227 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
5229 * function.c (thread_prologue_and_epilogue_insns): Remove
5230 preprocessor condition.
5232 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5234 * target-insns.def (indirect_jump): New targetm instruction pattern.
5235 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
5238 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5240 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
5241 instead of nonimmediate_operand. Remove C condiition.
5243 2015-07-28 Richard Biener <rguenther@suse.de>
5245 * match.pd: Add more simplification of address comparisons.
5247 2015-07-28 Richard Biener <rguenther@suse.de>
5249 * match.pd: Re-order two cases in comparison with max/min
5250 value simplification to make it apply for bools.
5252 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5254 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
5255 Handle simple SIGN_EXTEND or ZERO_EXTEND.
5256 (aarch64_rtx_costs): Properly strip extend or extract before
5257 passing down to rtx costs again.
5259 2015-07-28 Nick Clifton <nickc@redhat.com>
5261 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
5262 Optimizes the case where -mes0 is active and a constant symbolic
5264 * config/rl78/rl78-protos.h: Prototype the new function.
5265 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
5267 2015-07-28 Tom de Vries <tom@codesourcery.com>
5269 * tree-parloops.c (reduc_stmt_res): New function.
5270 (initialize_reductions, add_field_for_reduction)
5271 (create_phi_for_local_result, create_loads_for_reductions)
5272 (create_stores_for_reduction, build_new_reduction): Handle case that
5273 reduc_stmt is a phi.
5274 (gather_scalar_reductions): Allow double_reduc reductions.
5276 2015-07-28 Richard Biener <rguenther@suse.de>
5278 * fold-const.c (fold_comparison): Remove equality folding
5279 of decl addresses ...
5280 * match.pd: ... here and merge with existing pattern.
5282 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
5284 PR tree-optimization/66828
5285 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
5286 from int64_t to uint64_t.
5288 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
5290 * opts-common.c (read_cmdline_option): List DriverOnly enum values
5291 as valid only in the error message of the driver, not in the
5292 messages of the language compilers.
5294 2015-07-27 Tom de Vries <tom@codesourcery.com>
5296 * tree-parloops.c (gather_scalar_reductions): Simplify function
5299 2015-07-27 Marek Polacek <polacek@redhat.com>
5301 * ipa-devirt.c (types_same_for_odr): Fix typo.
5303 2015-07-27 Jason Merrill <jason@redhat.com>
5306 * dwarf2out.c (gen_inlined_subroutine_die): Check
5307 cgraph_function_possibly_inlined_p.
5309 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
5311 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
5312 Place integer variant first.
5313 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5315 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
5318 * config/arm/arm-builtins.c (enum arm_builtins):
5319 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
5320 (ARM_BUILTIN_NEON_BASE): Rename macro to....
5321 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
5322 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
5323 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
5325 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
5328 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
5329 Add qualifier_lane_index.
5330 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
5331 (arm_getlane_qualifiers): Use qualifier_lane_index.
5332 (arm_lanemac_qualifiers): Rename to...
5333 (arm_mac_n_qualifiers): ...this.
5334 (LANEMAC_QUALIFIERS): Rename to...
5335 (MAC_N_QUALIFIERS): ...this.
5336 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
5337 (arm_setlane_qualifiers): Use qualifier_lane_index.
5338 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
5339 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
5340 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
5341 (arm_expand_neon_builtin): Handle qualifier_lane_index.
5343 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
5344 * config/arm/arm.c (bounds_check): Likewise, improve error message.
5345 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
5346 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
5347 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
5348 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
5349 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
5350 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
5351 qualifiers to TERNOP_IMM.
5352 (vdup_lane): Change qualifiers to GETLANE.
5353 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
5354 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
5355 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
5356 vqdmlsl_n): Change qualifiers to MAC_N.
5358 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
5359 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
5360 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
5361 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
5362 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
5363 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
5364 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
5365 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
5366 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
5367 Remove call to neon_lane_bounds.
5369 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
5371 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
5372 Place integer variant first.
5374 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
5376 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
5377 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
5378 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
5379 for armv6kz targets.
5380 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
5381 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
5382 (FL_FOR_ARCH6ZK): Remove.
5383 (FL_FOR_ARCH6KZ): New.
5384 (arm_arch6zk): New declaration.
5385 * config/arm/arm-tables.opt: Regenerate.
5386 * config/arm/arm.c (arm_arch6kz): New.
5387 (arm_option_override): Set arm_arch6kz.
5388 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
5389 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
5390 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
5392 2015-07-27 Marek Polacek <polacek@redhat.com>
5396 * doc/invoke.texi: Document -Wtautological-compare.
5398 2015-07-27 Richard Biener <rguenther@suse.de>
5400 * genmatch.c (decision_tree::gen_gimple): Split out large
5401 subtrees into separate functions.
5402 (decision_tree::gen_generic): Likewise.
5404 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
5406 * config/alpha/alpha.c: Use SUBREG_P predicate.
5407 * config/alpha/predicates.md: Ditto.
5409 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
5411 * config.host (s390*-*-*): Include driver-native.c only when
5412 building with s390* as host *and* target.
5414 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
5417 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
5418 T bit register modified_between_p check.
5420 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5422 * config/i386/i386.c: Use SUBREG_P predicate.
5423 * config/i386/i386.md: Ditto.
5424 * config/i386/sse.md: Ditto.
5425 * config/i386/predicates.md: Ditto.
5427 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5430 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
5431 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
5433 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5435 * Makefile.in: Remove use of TREEBROWSER.
5436 * config.in: Regenerated.
5437 * configure: Regenerated.
5438 * configure.ac: Remove definition of TREEBROWSER.
5439 * tree-browser.c: Removed.
5440 * tree-browser.def: Removed.
5442 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5444 * graphite-scop-detection.c: Include gimple-pretty-print.h.
5445 (stmt_simple_for_scop_p): Print when a stmt is not handled in
5447 (scopdet_basic_block_info): Print when a loop or bb cannot be
5448 represented in Graphite.
5450 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5453 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
5454 execution guard when min_size is less than size_needed.
5456 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5458 * doc/install.texi: Document supported versions of ISL.
5460 2015-07-25 Jeff Law <law@redhat.com>
5464 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5465 unable to find X NE 0 in the tables, return X as the simplified
5467 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5468 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
5470 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5471 after removing the control flow statement and unnecessary edges.
5473 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
5476 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
5478 PR rtl-optimization/64164
5479 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5480 * tree-ssa-copyrename.c: Removed.
5481 * opts.c (default_options_table): Drop -ftree-copyrename. Add
5482 -ftree-coalesce-vars.
5483 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5484 * common.opt (ftree-copyrename): Ignore.
5485 (ftree-coalesce-inlined-vars): Likewise.
5486 * doc/invoke.texi: Remove the ignored options above.
5487 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5488 * tree-ssa-coalesce.h: ... here.
5489 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5490 headers required by it.
5491 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5492 across variables when flag_tree_coalesce_vars. Check register
5493 use and promoted modes to allow coalescing. Moved to
5494 tree-ssa-coalesce.c.
5495 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5496 with its member functions to tree-ssa-coalesce.c.
5497 (var_map_base_init): Likewise. Renamed to
5498 compute_samebase_partition_bases.
5499 (partition_view_normal): Drop want_bases parameter.
5500 (partition_view_bitmap): Likewise.
5501 * tree-ssa-live.h: Adjust declarations.
5502 * tree-ssa-coalesce.c: Include explow.h.
5503 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5504 default defs at the entry point.
5505 (dump_part_var_map): New.
5506 (compute_optimized_partition_bases): New, called by...
5507 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5508 of compute_samebase_partition_bases. Adjust.
5509 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5510 * cfgexpand.c (leader_merge): New.
5511 (get_rtl_for_parm_ssa_default_def): New.
5512 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5513 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5514 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
5515 redundant MEM attr setting.
5516 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
5518 (expand_one_stack_var): ... this. New wrapper to check and
5519 skip already expanded SSA partitions.
5520 (record_alignment_for_reg_var): New, factored out of...
5521 (expand_one_var): ... this.
5522 (expand_one_ssa_partition): New.
5523 (adjust_one_expanded_partition_var): New.
5524 (expand_one_register_var): Check and skip already expanded SSA
5526 (expand_used_vars): Don't create DECLs for anonymous SSA
5527 names. Expand all SSA partitions, then adjust all SSA names.
5528 (pass::execute): Replace the loops that set
5529 SA.partition_to_pseudo from partition leaders and cleared
5530 DECL_RTL for multi-location variables, and that which used to
5531 rename vars and set attrs, with one that clears DECL_RTL and
5532 checks that PARMs and RESULTs default_defs match DECL_RTL.
5533 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5534 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5535 * explow.c (promote_ssa_mode): New.
5536 * explow.h (promote_ssa_mode): Declare.
5537 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5538 * function.c: Include cfgexpand.h.
5539 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5540 (use_register_for_parm_decl): Wrapper for the above to
5541 special-case the result_ptr.
5542 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5543 (split_complex_args): Take assign_parm_data_all argument.
5544 Pass it to rtl_for_parm. Set up rtl and context for split
5546 (assign_parms_augmented_arg_list): Adjust.
5547 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5548 multiple locations. Recognize split complex args.
5549 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5550 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
5551 (assign_parm_setup_block): Prefer SSA-assigned location.
5552 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
5553 if stack_parm is NULL.
5554 (assign_parm_setup_stack): Prefer SSA-assigned location.
5555 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
5556 rtl before testing for pointer bounds. Special-case result_ptr.
5557 (expand_function_start): Maybe reset DECL_RTL of result.
5558 Prefer SSA-assigned location for result and static chain.
5559 Factor out DECL_RESULT and SET_DECL_RTL.
5560 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5561 anonymous SSA names. Use promote_ssa_mode.
5562 (get_temp_reg): Likewise.
5563 (remove_ssa_form): Adjust.
5564 * stor-layout.c (layout_decl): Don't set mem attributes of
5566 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5567 and get its reg_usage for reg invalidation.
5568 (compute_bb_dataflow): Pass it insn.
5569 (emit_notes_in_bb): Likewise.
5571 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5573 * config/i386/i386.c (ix86_va_start): Remove
5574 unneeded !TARGET_64BIT check.
5575 (ix86_gimplify_va_arg): Ditto.
5577 2015-07-24 Tom de Vries <tom@codesourcery.com>
5579 * graphite-sese-to-poly.c (build_poly_scop): Always call
5580 rewrite_commutative_reductions_out_of_ssa.
5582 2015-07-24 Tom de Vries <tom@codesourcery.com>
5584 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
5585 flag_associative_math to FLOAT_TYPE_P. Honour
5586 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
5588 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5591 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
5592 and "%qD" in warning_at instead of "%q+D" in warning.
5594 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
5596 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
5597 (ix86_function_abi): Cleanup.
5599 2015-07-24 Michael Darling <darlingm@gmail.com>
5602 * acinclude.m4: Reflects renaming of configure.in to configure.ac
5603 * configure: Likewise
5604 * configure.ac: Likewise
5605 * doc/install.texi: Likewise
5606 * doc/tm.texi: Likewise
5607 * doc/tm.texi.in: Likewise
5609 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5611 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
5612 manually swapping values.
5613 * cse.c (fold_rtx): Likewise.
5614 * lra-eliminations.c (form_sum): Likewise.
5616 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
5619 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
5620 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
5621 (*jcc_1, *jcc_2, jump, simple_return_internal)
5622 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
5623 Set length_nobnd attribute instead of length attribute.
5624 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
5625 (length_nobnd): Remove attribute.
5626 (length): Remove length_nobnd processing.
5628 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
5630 * gimplify.c (omp_default_clause): New function. Reorganize flow
5631 for clarity. Broken out of ...
5632 (omp_notice_variable): ... here.
5634 2015-07-24 Gary Funck <gary@intrepid.com>
5637 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
5638 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
5640 2015-07-24 Tom de Vries <tom@codesourcery.com>
5642 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
5643 exit-first loop transform.
5645 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5648 * tree-cfg.c (struct replace_decls_d): New struct.
5649 (replace_block_vars_by_duplicates_1): New function.
5650 (replace_block_vars_by_duplicates): Use it to replace the decls
5651 in the value exprs by duplicates.
5653 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
5655 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
5656 -shared, -symbolic, -rdynamic.
5658 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
5661 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
5662 -dynamic-linker within %{!static %{!shared, and -rdynamic within
5665 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
5668 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
5669 edge summary is available.
5671 2015-07-24 Richard Biener <rguenther@suse.de>
5673 * genmatch.c (struct dt_node): Add statistic fields.
5674 (dt_node::analyze): New method.
5675 (decision_tree::gen_gimple): Call analyze on the root node
5676 and print statistics to stderr.
5677 (decision_tree::gen_generic): Likewise.
5679 2015-07-24 Richard Biener <rguenther@suse.de>
5681 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
5682 against the highest or lowest possible integer ...
5683 * match.pd: ... as patterns here.
5685 2015-07-24 Richard Biener <rguenther@suse.de>
5687 * genmatch.c (struct capture_info): Add same_as field.
5688 (capture_info::capture_info): Initialize same_as.
5689 (capture_info::walk_match): Compute same_as.
5690 (capture_info::walk_result): Compute stuff for the leader.
5691 (capture_info::walk_c_expr): Likewise.
5692 (dt_simplify::gen_1): Only look at leaders when deciding
5693 to force no side-effects or emit side-effects of omitted operands.
5695 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5697 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
5698 reg note to the GPR -> FPR save instructions.
5700 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5702 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
5704 (s390_expand_insv): Don't generate risbg pattern for constant zero
5706 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
5707 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
5710 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5712 * config/s390/s390.c (s390_reorg): Clean up handling of processors
5715 (s390_issue_rate): Likewise.
5716 (s390_sched_reorder): Likewise.
5717 (s390_sched_variable_issue): Likewise.
5718 (s390_loop_unroll_adjust): Likewise.
5719 (s390_option_override): Likewise.
5721 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5723 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
5724 processor capabilities with -march=native.
5725 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
5726 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
5727 (S390_TARGET_BITS_STRING): Macro to simplify specs.
5729 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5731 * config/s390/s390.c (s390_issue_rate): Handle
5732 PROCESSOR_2094_Z9_EC.
5733 (s390_option_override): Likewise.
5734 (s390_adjust_priority): Likewise.
5736 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5738 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
5739 when cross compiling.
5741 2015-07-24 Richard Biener <rguenther@suse.de>
5743 * fold-const.c (maybe_canonicalize_comparison_1): Move
5744 A code CST canonicalization ...
5745 * match.pd: ... to a pattern here.
5747 2015-07-24 Jiong Wang <jiong.wang@arm.com>
5750 2015-07-22 Jiong Wang <jiong.wang@arm.com>
5752 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
5753 (HONOR_REG_ALLOC_ORDER): Define.
5755 2015-07-24 Richard Biener <rguenther@suse.de>
5757 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
5758 * fold-const.c (fold_comparison): Move parameter does not
5759 alias &local simplification ...
5760 * match.pd: ... as a pattern here.
5762 2015-07-24 Richard Biener <rguenther@suse.de>
5764 * gimple-fold.c (replace_stmt_with_simplification): Special-case
5765 valueizing call operands.
5766 * gimple-match-head.c (maybe_push_res_to_seq): Take
5767 number of call arguments from ops array.
5768 (do_valueize): New function.
5769 (gimple_simplify): Return true if valueization changed
5770 any operand even if the result didn't simplify further.
5772 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5775 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
5777 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5780 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
5782 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
5784 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
5787 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
5789 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
5792 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
5794 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
5795 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
5797 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
5798 ms_va_list_type_node initialization.
5800 2015-07-23 Jeff Law <law@redhat.com>
5803 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5804 unable to find X NE 0 in the tables, return X as the simplified
5806 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5807 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
5809 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5810 after removing the control flow statement and unnecessary edges.
5812 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
5814 * tree-pass.h (get_current_pass_name): Removed.
5816 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
5818 PR rtl-optimization/64164
5819 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5820 * tree-ssa-copyrename.c: Removed.
5821 * opts.c (default_options_table): Drop -ftree-copyrename. Add
5822 -ftree-coalesce-vars.
5823 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5824 * common.opt (ftree-copyrename): Ignore.
5825 (ftree-coalesce-inlined-vars): Likewise.
5826 * doc/invoke.texi: Remove the ignored options above.
5827 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5828 * tree-ssa-coalesce.h: ... here.
5829 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5830 headers required by it.
5831 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5832 across variables when flag_tree_coalesce_vars. Check register
5833 use and promoted modes to allow coalescing. Moved to
5834 tree-ssa-coalesce.c.
5835 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5836 with its member functions to tree-ssa-coalesce.c.
5837 (var_map_base_init): Likewise. Renamed to
5838 compute_samebase_partition_bases.
5839 (partition_view_normal): Drop want_bases parameter.
5840 (partition_view_bitmap): Likewise.
5841 * tree-ssa-live.h: Adjust declarations.
5842 * tree-ssa-coalesce.c: Include explow.h.
5843 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5844 default defs at the entry point.
5845 (dump_part_var_map): New.
5846 (compute_optimized_partition_bases): New, called by...
5847 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5848 of compute_samebase_partition_bases. Adjust.
5849 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5850 * cfgexpand.c (leader_merge): New.
5851 (get_rtl_for_parm_ssa_default_def): New.
5852 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5853 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5854 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
5855 redundant MEM attr setting.
5856 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
5858 (expand_one_stack_var): ... this. New wrapper to check and
5859 skip already expanded SSA partitions.
5860 (record_alignment_for_reg_var): New, factored out of...
5861 (expand_one_var): ... this.
5862 (expand_one_ssa_partition): New.
5863 (adjust_one_expanded_partition_var): New.
5864 (expand_one_register_var): Check and skip already expanded SSA
5866 (expand_used_vars): Don't create DECLs for anonymous SSA
5867 names. Expand all SSA partitions, then adjust all SSA names.
5868 (pass::execute): Replace the loops that set
5869 SA.partition_to_pseudo from partition leaders and cleared
5870 DECL_RTL for multi-location variables, and that which used to
5871 rename vars and set attrs, with one that clears DECL_RTL and
5872 checks that PARMs and RESULTs default_defs match DECL_RTL.
5873 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5874 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5875 * explow.c (promote_ssa_mode): New.
5876 * explow.h (promote_ssa_mode): Declare.
5877 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5878 * function.c: Include cfgexpand.h.
5879 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5880 (use_register_for_parm_decl): Wrapper for the above to
5881 special-case the result_ptr.
5882 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5883 (split_complex_args): Take assign_parm_data_all argument.
5884 Pass it to rtl_for_parm. Set up rtl and context for split
5886 (assign_parms_augmented_arg_list): Adjust.
5887 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5888 multiple locations. Recognize split complex args.
5889 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5890 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
5891 (assign_parm_setup_block): Prefer SSA-assigned location.
5892 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
5893 if stack_parm is NULL.
5894 (assign_parm_setup_stack): Prefer SSA-assigned location.
5895 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
5896 rtl before testing for pointer bounds. Special-case result_ptr.
5897 (expand_function_start): Maybe reset DECL_RTL of result.
5898 Prefer SSA-assigned location for result and static chain.
5899 Factor out DECL_RESULT and SET_DECL_RTL.
5900 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5901 anonymous SSA names. Use promote_ssa_mode.
5902 (get_temp_reg): Likewise.
5903 (remove_ssa_form): Adjust.
5904 * stor-layout.c (layout_decl): Don't set mem attributes of
5906 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5907 and get its reg_usage for reg invalidation.
5908 (compute_bb_dataflow): Pass it insn.
5909 (emit_notes_in_bb): Likewise.
5911 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
5914 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
5916 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
5917 (rs6000_emit_2insn_and): Handle dot forms.
5918 * config/rs6000/rs6000.md (and<mode>3): Adjust.
5919 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
5920 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
5922 2015-07-23 Richard Biener <rguenther@suse.de>
5924 * generic-match-head.c: Include cgraph.h.
5925 * gimple-match-head.c: Likewise.
5926 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
5928 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
5929 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
5932 2015-07-23 Richard Biener <rguenther@suse.de>
5934 * gimple-fold.c (fold_gimple_cond): Do not require folding
5935 results to pass valid_gimple_rhs_p.
5936 * tree-cfg.h (fold_cond_expr_cond): Remove.
5937 * tree-cfg.c (fold_cond_expr_cond): Likewise.
5938 (make_edges): Do not call it.
5939 * tree-inline.c (tree_function_versioning): Likewise.
5941 2015-07-23 Tom de Vries <tom@codesourcery.com>
5943 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
5944 vect_force_simple_reduction.
5945 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
5946 (vect_is_simple_reduction_1): Add and handle
5947 need_wrapping_integral_overflow parameter.
5948 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
5949 need_wrapping_integral_overflow parameter.
5950 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
5951 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
5954 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
5956 PR tree-optimization/66926,66951
5957 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
5958 INNER_LOOP and fix up condition for renaming virtual operands.
5960 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5962 * combine.c (try_combine): Use std::swap instead of manually
5965 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
5967 * config/mips/i6400.md: New file.
5968 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
5969 (mips64r6): Likewise.
5971 * config/mips/mips-tables.opt: Regenerate.
5972 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
5973 (mips_issue_rate): Add support for i6400.
5974 (mips_multipass_dfa_lookahead): Likewise.
5975 * config/mips/mips.h (TUNE_I6400): Define.
5976 * config/mips/mips.md: Include i6400.md.
5977 (processor): Add i6400.
5978 * doc/invoke.texi (-march=@var{arch}): Add i6400.
5980 2015-07-23 Richard Biener <rguenther@suse.de>
5983 * match.pd: Guard widen and sign-change comparison simplification
5986 2015-07-23 Richard Biener <rguenther@suse.de>
5988 PR tree-optimization/66945
5989 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
5990 ::before_dom_children): Force the propagators idea of
5991 non-executable edges to materialize, not what the folder
5994 2015-07-23 Richard Biener <rguenther@suse.de>
5996 * gimple.h (gimple_cond_make_false): Use 0 != 0.
5997 (gimple_cond_make_true): Use 1 != 0.
5999 2015-07-22 DJ Delorie <dj@redhat.com>
6001 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
6004 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
6005 (ashrhi3): Likewise.
6006 (lshrhi3): Likewise.
6007 (movhi): Take advantage of zero-extend to load small constants.
6009 (and<mode>3): Likewise.
6010 (zero_extendqihi2): Likewise.
6011 (zero_extendqisi2): New.
6012 * config/msp430/constraints.md (N,O): New.
6013 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
6015 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
6018 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
6019 to enum feature_priority and feature_list.
6020 (fold_builtin_cpu): Add F_AES to enum processor_features
6021 and isa_names_table.
6023 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
6026 * config/i386/linux-common.h (MPX_SPEC): Use linker option
6027 for 64bit target only.
6029 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
6031 * config/nvptx/nvptx.c: Expand some comments.
6033 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
6035 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
6036 (cortex_a53_advsimd): ...This.
6038 2015-07-22 Richard Biener <rguenther@suse.de>
6040 * genmatch.c (expr::gen_transform): Clarify error message
6041 and display location.
6043 2015-07-22 Richard Biener <rguenther@suse.de>
6045 * genmatch.c (struct operand): Add location member.
6046 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
6048 (struct simplify): Remove match_location and result_location
6050 (elsehwere): Adjust.
6052 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
6054 * config/mips/m5100.md: New file.
6055 * config/mips/mips-cpus.def (m5100, m5101): Define.
6056 * config/mips/mips-tables.opt: Regenerate.
6057 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
6058 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
6059 -march=m5101 to -mips32r5.
6060 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
6061 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
6063 * config/mips/mips.md: Include m5100.md.
6064 (processor): Add m5100.
6065 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
6067 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
6069 * config/mips/mips-cpus.def (interaptiv): Define.
6070 * config/mips/mips-tables.opt: Regenerate.
6071 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
6073 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
6074 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
6076 2015-07-22 Jiong Wang <jiong.wang@arm.com>
6079 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6080 (HONOR_REG_ALLOC_ORDER): Define.
6082 2015-07-22 Richard Biener <rguenther@suse.de>
6084 PR tree-optimization/66952
6085 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
6086 blocks we end up executing unconditionally reset all SSA
6087 info such as range and alignment.
6088 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
6089 * tree-ssanames.c (reset_flow_sensitive_info): New function.
6091 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
6093 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
6096 2015-07-22 Richard Biener <rguenther@suse.de>
6098 * genmatch.c (parser::parse_result): Properly handle
6099 match with result operands and conditions.
6101 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
6104 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6105 Add qualifier_struct_load_store_lane_index.
6106 (aarch64_types_loadstruct_lane_qualifiers): Use
6107 qualifier_struct_load_store_lane_index for lane index argument for
6109 (aarch64_types_storestruct_lane_qualifiers): Ditto.
6110 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6111 (aarch64_simd_expand_args): Add new argument describing mode of
6112 builtin. Check lane bounds for arguments with
6113 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6114 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
6115 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6116 (aarch64_simd_expand_builtin): Handle arguments with
6117 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
6118 aarch64_simd_expand_args.
6119 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
6120 vst[234]_lane with BUILTIN_VALLDIF.
6121 * config/aarch64/aarch64-simd.md:
6122 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
6123 endianness reversal on lane index.
6124 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
6125 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
6126 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
6127 (vec_store_lanesci_lane<mode>): Ditto.
6128 (vec_store_lanesxi_lane<mode>): Ditto.
6129 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
6130 reversal of lane index.
6131 (aarch64_ld3_lane<mode>): Ditto.
6132 (aarch64_ld4_lane<mode>): Ditto.
6133 (aarch64_st2_lane<mode>): Ditto.
6134 (aarch64_st3_lane<mode>): Ditto.
6135 (aarch64_st4_lane<mode>): Ditto.
6136 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
6137 to qmode. Add new mode parameter. Update uses.
6138 (__LD3_LANE_FUNC): Ditto.
6139 (__LD4_LANE_FUNC): Ditto.
6140 (__ST2_LANE_FUNC): Ditto.
6141 (__ST3_LANE_FUNC): Ditto.
6142 (__ST4_LANE_FUNC): Ditto.
6144 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
6146 * doc/invoke.texi (Language Independent Options): Rename node to
6147 Diagnostic Message Formatting Options.
6149 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
6152 * lra-remat.c (operand_to_remat): Prevent using insns with input
6153 subregs processed separately by IRA.
6155 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
6157 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
6159 (single_imm_use): Check for iterator node.
6160 (num_imm_uses): Likewise.
6161 * tree-ssa-operands.c (has_zero_uses_1): Delete.
6162 (single_imm_use_1): Check for iterator node.
6164 2015-07-21 Mike Frysinger <vapier@gentoo.org>
6165 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6167 * configure.ac: Add check for new options in isl-0.15.
6168 * config.in, configure: Rebuilt.
6169 * graphite-blocking.c: Include <isl/constraint.h>
6170 * graphite-interchange.c, graphite-poly.c: Likewise.
6171 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
6172 * graphite.c: Likewise.
6173 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
6175 * graphite-dependences.c: Include <isl/constraint.h>.
6176 (max_number_of_out_dimensions): Returns isl_stat.
6177 (extend_schedule_1): Likewise
6178 (extend_schedule): Corresponding changes.
6179 * graphite-optimize-isl.c: Include <isl/constraint.h> and
6181 (getSingleMap): Change return type of isl_stat.
6182 (optimize_isl): Conditionally use
6183 isl_options_set_schedule_serialize_sccs.
6184 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
6185 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
6187 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
6190 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
6191 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
6193 2015-07-21 Richard Biener <rguenther@suse.de>
6195 PR tree-optimization/66948
6196 * genmatch.c (capture_info::walk_match): Also recurse to
6197 captures. Properly compute expr state from captures of
6199 * match.pd: Add single-use guards to
6200 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
6202 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
6204 * config/nvptx/mkoffload.c (process): Add static destructor call.
6206 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6209 * match.pd (A - B -> A + (-B)): Don't allow folding
6210 when type if a fixed-point type.
6212 2015-07-20 DJ Delorie <dj@redhat.com>
6214 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
6215 (iorqi3_real): Likewise for set1.
6217 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
6219 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
6222 2015-07-20 Aditya Kumar <hiraditya@msn.com>
6224 * graphite-isl-ast-to-gimple.c:
6225 Refactor so that each function can access 'region'. This will help
6226 maintain a parameter rename_map within a region.
6228 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6230 * config/rs6000/rs6000.md (*lt0_disi): New.
6232 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6235 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
6236 "available letters" comment.
6237 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
6238 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
6239 and_2rld_operand): Delete.
6240 (and_operand): Adjust.
6241 (rotate_mask_operator): New.
6242 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
6243 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
6244 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
6245 extract_ME): Delete.
6246 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
6247 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
6248 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
6249 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
6250 rs6000_emit_2insn_and): New.
6251 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
6252 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
6253 includes_rldic_lshift_p, includes_rldicr_lshift_p,
6254 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
6255 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
6256 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
6257 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
6258 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
6259 rs6000_emit_2insn_and): New.
6260 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
6261 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
6263 <NOT>: Don't fall through to next case.
6264 <AND>: Handle the various rotate-and-mask cases directly.
6265 <IOR>: Always cost as one insn.
6266 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
6267 (and<mode>3): Adjust expander for the new patterns.
6268 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
6269 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
6270 (*and<mode>3_imm_dot_shifted): New.
6271 (*and<mode>3_mask): Delete, rewrite as ...
6272 (and<mode>3_mask): ... New.
6273 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
6274 (andsi3_internal0_nomc): Delete.
6275 (*andsi3_internal6): Delete.
6276 (*and<mode>3_2insn): New.
6277 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
6278 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
6279 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
6280 *insvdi_internal3): Delete.
6281 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
6282 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
6283 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
6284 *ior<mode>_mask): New.
6285 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
6286 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
6287 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
6288 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
6290 (ashr<mode>3): Delete expander.
6291 (*ashr<mode>3): Rename to ...
6292 (ashr<mode>3): ... This.
6293 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
6294 (*rotldi3_internal4, *rotldi3_internal5 and split,
6295 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
6296 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
6297 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
6298 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
6299 (splitter for loading a mask): Adjust.
6300 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
6302 2015-07-20 Marek Polacek <polacek@redhat.com>
6304 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
6305 output_add_clobbers, output_added_clobbers_hard_reg_p,
6306 gen_rtx_scratch): Remove declarations.
6308 2015-07-20 Marek Polacek <polacek@redhat.com>
6311 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
6313 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6315 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
6316 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
6318 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6320 * combine.c (combine_simplify_rtx): Move simplification step
6321 before various transformations/substitutions.
6323 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
6325 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
6326 (struct int_traits): Likewise.
6328 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6330 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
6331 function to vmsdbgout_function_decl.
6333 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
6336 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
6337 from misaligned positions.
6338 (ix86_expand_pinsr): Reject insertions to misaligned positions.
6340 2015-07-18 Sebastian Pop <s.pop@samsung.com>
6344 * Makefile.in: Removed omega.o.
6345 * common.opt: Document flag fcheck-data-deps as deprecated.
6346 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
6347 its associated params: omega-max-vars, omega-max-geqs,
6348 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
6349 omega-max-keys, omega-eliminate-redundant-constraints.
6350 * doc/loop.texi: Remove all the section on Omega.
6351 * graphite-blocking.c: Include missing params.h: it used to be
6352 included through tree-data-ref.h and omega.h.
6353 * graphite-isl-ast-to-gimple.c: Same.
6354 * graphite-optimize-isl.c: Same.
6355 * graphite-sese-to-poly.c: Same.
6359 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
6360 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
6361 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
6362 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
6363 * passes.def: Remove pass_check_data_deps.
6364 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
6365 (dump_conflict_function): Same.
6366 (dump_subscript): Same.
6367 (print_direction_vector): Same.
6368 (print_dir_vectors): Same.
6369 (print_lambda_vector): Same.
6370 (print_dist_vectors): Same.
6371 (dump_data_dependence_relation): Same.
6372 (dump_data_dependence_relations): Same.
6373 (dump_dist_dir_vectors): Same.
6375 (init_omega_eq_with_af): Removed.
6376 (omega_extract_distance_vectors): Removed.
6377 (omega_setup_subscript): Removed.
6378 (init_omega_for_ddr_1): Removed.
6379 (init_omega_for_ddr): Removed.
6380 (ddr_consistent_p): Removed.
6381 (compute_affine_dependence): Do not use omega to check data
6383 (compute_data_dependences_for_bb): Removed.
6384 (analyze_all_data_dependences): Removed.
6385 (tree_check_data_deps): Removed.
6386 * tree-data-ref.h: Do not include omega.h.
6387 (compute_data_dependences_for_bb): Removed.
6388 (tree_check_data_deps): Removed.
6389 * tree-ssa-loop.c (pass_check_data_deps): Removed.
6390 (make_pass_check_data_deps): Removed.
6391 * tree-ssa-phiopt.c: Include params.h.
6392 * tree-vect-data-refs.c: Same.
6393 * tree-vect-slp.c: Same.
6395 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
6397 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
6398 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
6399 (mem->fpreg splitters): Ditto.
6400 (general_operand->nonimmediate_operand splitter): Use explicit modes.
6401 Disable DFmode for TARGET_64BIT.
6403 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
6406 * config/i386/i386.c (ix86_expand_prologue): Replicate static
6409 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6411 * config/nvptx/mkoffload.c (process): Constify host data.
6412 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
6414 (generate_host_descr_file): Likewise.
6416 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
6417 Sebastian Pop <s.pop@samsung.com>
6420 * graphite-dependences.c (add_pdr_constraints): Renamed
6421 pdr->extent to pdr->subscript_sizes.
6422 * graphite-interchange.c (build_linearized_memory_access): Add
6423 back all gcc_assert's that the "isl_int to isl_val conversion"
6424 patch has removed. Refactored.
6425 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
6426 * graphite-poly.c (new_poly_dr): Same.
6427 (free_poly_dr): Same.
6428 * graphite-poly.h (struct poly_dr): Same.
6429 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
6430 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
6431 * graphite-scop-detection.h: Fix space.
6432 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
6433 back all gcc_assert's removed by a previous patch.
6434 (wrap): Remove the_isl_ctx global variable that the same patch has
6436 (build_loop_iteration_domains): Same.
6437 (add_param_constraints): Same.
6438 (pdr_add_data_dimensions): Same. Refactored.
6439 (build_poly_dr): Renamed extent to subscript_sizes.
6441 2015-07-17 Marek Polacek <polacek@redhat.com>
6443 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
6444 * match.pd: ... here.
6446 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6448 * config/nvptx/mkoffload.c (process): Constify target data.
6449 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
6450 Constify target data.
6451 (generate_target_offloadend_file): Likewise.
6453 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
6455 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
6456 to allow renaming of PHI arguments on edges incoming from outer
6457 loop header, add corresponding check before start PHI iterator.
6458 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
6459 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
6460 with true force_vectorize. Set-up dominator for outer loop too.
6461 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
6462 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
6463 was marked with force_vectorize and has restricted cfg.
6464 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
6466 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
6467 do peeling for outer loops.
6469 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
6470 Matthias Klose <doko@ubuntu.com>
6472 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
6473 build-sysroot, sysroot from the `Miscenalleous configure options' to
6474 the `Directories' section and strip trailing `/' from with_sysroot.
6475 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
6476 * configure: Regenerated.
6478 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
6481 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
6482 (TARGET_HARD_DF_REGS): Ditto.
6483 (TARGET_HARD_XF_REGS): Ditto.
6484 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
6485 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
6486 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
6487 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
6488 (*movsf_internal): Add alternatives 16 and 17. Enable
6489 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
6491 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
6493 PR rtl-optimization/66891
6494 * calls.c (expand_call): Wrap precompute_register_parameters with
6495 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
6497 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
6499 * config/nvptx/mkoffload.c (process): Constify mapping variables.
6500 Define target data struct and initialize it.
6502 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
6504 PR rtl-optimization/66626
6505 * ira.h (emit-rtl.h): Include.
6506 (non_spilled_static_chain_regno_p): New.
6507 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
6508 unless it is non spilled static chain pseudo.
6509 (assign_hard_rego): Spill memory profitable allocno unless it is
6510 non spilled static chain pseudo.
6511 (allocno_spill_priority_compare): Put non spilled static chain
6512 pseudo at the end of sorted array.
6513 (improve_allocation): Do nothing if we have static chain and
6515 (allocno__priority_compare_func): Put non spilled static chain
6516 pseudo at the beginning of sorted array.
6517 (move_spill_restore): Ignore non spilled static chain pseudo.
6518 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
6519 to non spilled static chain pseudo.
6520 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
6521 pseudo at the beginning of sorted array.
6522 (spill_for): Spill non spilled static chain pseudo last.
6523 * lra-constraints.c (lra_constraints): Remove static chain pseudo
6524 check for equivalence.
6526 2015-07-16 Martin Liska <mliska@suse.cz>
6529 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
6530 dst_ctx if it does not exist.
6532 2015-07-16 Martin Liska <mliska@suse.cz>
6534 * hash-set.h (remove): New function.
6535 (iterator): New iteration class for hash_set.
6537 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6539 * genattrtab.c (make_canonical): Add a file_location parameter.
6540 Use fatal_at rather than fatal.
6541 (get_attr_value): Likewise. Update call to make_canonical.
6542 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
6543 (make_internal_attr): Update calls accordingly.
6545 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6547 * read-md.h (message_with_line, error_with_line): Delete.
6548 * read-md.c (message_with_line, error_with_line): Delete.
6549 * gensupport.h: Include read-md.h.
6550 (md_rtx_info): New structure.
6551 (read_md_rtx): Use it. Return a bool success value.
6552 * gensupport.c (read_md_rtx): Likewise.
6553 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
6554 (main): Update after interface changes.
6555 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
6556 (main): Update after interface changes.
6557 * genattrtab.c (insn_code_number): Delete.
6558 (optimize_attrs): Add a max_insn_code parameter and use it instead
6559 of insn_code_number.
6560 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
6561 Use *_at rather than *_with_line functions.
6562 (gen_insn): Likewise.
6563 (gen_delay): Likewise.
6564 (gen_insn_reserv): Likewise.
6565 (gen_bypass): Take an md_rtx_info rather than an rtx.
6566 (main): Update after interface changes. Use a local max_insn_code
6567 variable instead of insn_code_number.
6568 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
6569 an rtx. Use fatal_at rather than fatal.
6570 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
6571 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
6572 (gen_absence_set, gen_final_absence_set, gen_automaton)
6573 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
6574 (main): Update after interface changes.
6575 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
6577 (main): Update after interface changes.
6578 * genconditions.c (main): Use new read_md_rtx interface.
6579 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
6580 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
6581 (main): Update after interface changes.
6582 * genemit.c (insn_code_number, insn_index_number): Delete.
6583 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6584 Use fatal_at rather than fatal.
6585 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
6587 (gen_split): Likewise.
6588 (main): Update after interface changes.
6589 * genextract.c (line_no): Delete.
6590 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6591 Update call to walk_rtx.
6592 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
6593 rather than message_with_line.
6594 (walk_rtx): Add an md_rtx_info argument. Update call to
6595 VEC_safe_set_locstr.
6596 (main): Update after interface changes.
6597 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
6598 and lineno. Use error_at rather than separate message_with_line
6599 calls and have_error assignments.
6600 (main): Update after interface changes.
6601 * genmddump.c (main): Use new read_md_rtx interface.
6602 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
6603 (main): Update after interface changes.
6604 * genoutput.c (next_code_number): Delete.
6605 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6606 (gen_peephole, gen_expand, gen_split): Likewise.
6607 (note_constraint): Likewise. Use *_at rather than *_with_line
6609 (main): Update after interface changes.
6610 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
6612 (main): Update after interface changes.
6613 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
6614 than an rtx and lineno.
6615 (process_define_constraint): Likewise.
6616 (process_define_register_constraint): Likewise.
6617 (main): Update after interface changes.
6618 * genrecog.c (next_insn_code, pattern_lineno): Delete.
6619 (validate_pattern): Replace top-level rtx with an md_rtx_info.
6620 Use *_at rather than *_with_line functions.
6621 (match_pattern_2): Likewise.
6622 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
6623 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
6624 Use *_at rather than *_with_line functions.
6625 * gentarget-def.c (add_insn): New function.
6626 (main): Use it. Use new read_md_rtx interface.
6628 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6630 * gensupport.h (compute_test_codes): Take a file_location rather
6632 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
6633 rather than *_with_line functions.
6634 (process_define_predicate): Update call to compute_test_codes.
6635 * genpreds.c (validate_exp): Take a file_location rather than a
6636 line number. Use *_at functions rather than *_with_line functions.
6637 (process_define_predicate): Update call to validate_exp.
6638 (constraint_data): Replace lineno field with a file_location.
6639 (add_constraint): Take a file_location rather than a line number.
6640 Use *_at functions rather than *_with_line functions. Fix error
6641 message for address constraints. Update after changes to
6642 validate_exp, constraint_data and compute_test_codes.
6643 (process_define_constraint): Update accordingly.
6644 (process_define_register_constraint): Likewise.
6646 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6648 * genoutput.c (data): Use a file_location to record the source
6651 (idata, idata_end): Remove initialization.
6652 (constraint_data): Replace lineno with a file_location.
6653 (output_insn_data): Update after changes to data.
6654 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
6655 (scan_operands): Likewise, using *_at rather than *_with_line
6657 (process_template): Likewise.
6658 (validate_insn_alternatives): Likewise.
6659 (validate_insn_operands): Likewise.
6660 (validate_optab_operands): Likewise.
6661 (init_insn_for_nothing): Initialize idata and idata_end.
6662 (note_constraint): Update after changes to constraint_data,
6663 using at rather than with_line functions.
6664 (mdep_constraint_len): Take a file_location rather than a
6665 line number. Use at rather than with_line functions.
6667 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6669 * read-md.h (fatal_at): Declare.
6670 * read-md.c (fatal_at): New function.
6671 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
6672 to record the source position.
6673 (check_attr_test): Take a file_location instead of a line number.
6674 Use fatal_at instead of fatal.
6675 (check_attr_value): Update after above changes, using "at"
6676 rather than "with_line" reporting functions.
6677 (convert_set_attr_alternative): Likewise.
6678 (gen_attr): Likewise.
6679 (check_defs): Likewise. Don't assign to read_md_filename.
6680 (gen_insn): Update initialization after above changes.
6681 (gen_delay): Likewise.
6682 (write_insn_cases): Print the filename for a define_peephole.
6683 (gen_insn_reserv): Take a line number as argument and update
6684 the call to check_attr_test.
6685 (main): Pass a line number to gen_insn_reserv.
6687 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6689 * read-md.h (file_location): New structure.
6690 (directive_handler_t): Take a file_location rather than a line number.
6691 (message_at, error_at): Declare.
6692 (read_skip_construct): Delete.
6693 * read-md.c (message_with_line_1): Replace with...
6694 (message_at_1): ...this new function.
6695 (message_at, error_at): New functions.
6696 (message_with_line, error_with_line): Update to use message_at_1.
6697 (handle_enum): Take a file_location rather than a line number
6698 and use error_at for error reporting.
6699 (handle_include): Likewise.
6700 (read_skip_construct): Likewise. Make static.
6701 (handle_file): Update after above changes. Pass a file_location
6702 rather than a line number to handle_directive.
6703 * gensupport.c (queue_elem): Replace separate filename and lineno
6704 with a file_location.
6705 (queue_pattern): Replace filename and lineno arguments with a
6706 file_location. Update after change to queue_elem.
6707 (process_define_predicate): Replace lineno argument with a
6708 file_location and use error_at for error reporting. Update
6709 after above changes.
6710 (process_rtx): Likewise.
6711 (subst_pattern_match): Likewise.
6712 (get_alternatives_number): Likewise.
6713 (alter_predicate_for_insn): Likewise.
6714 (rtx_handle_directive): Likewise.
6715 (is_predicable): Update after above changes, using error_at rather
6716 than error_with_line.
6717 (has_subst_attribute): Likewise.
6718 (identify_predicable_attribute): Likewise.
6719 (alter_attrs_for_subst_insn): Likewise.
6720 (process_one_cond_exec): Likewise.
6721 (process_substs_on_one_elem): Likewise.
6722 (process_define_subst): Likewise.
6723 (check_define_attr_duplicates): Likewise.
6724 (read_md_rtx): Update after change to queue_elem.
6726 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6728 * genoutput.c (next_index_number): Delete.
6729 (data): Remove index_number.
6730 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
6731 (main): Remove manipulation of next_index_number.
6733 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6735 * genattrtab.c (check_attr_value): Remove handling of null attrs.
6736 (make_canonical): Likewise.
6738 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
6740 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
6741 instead of adjust_address_nv.
6742 (restore_stack_nonlocal): Likewise.
6743 (nonlocal_goto): Likewise.
6745 2015-07-16 Tom de Vries <tom@codesourcery.com>
6747 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
6748 not have a corresponding loop header phi.
6750 2015-07-16 Tom de Vries <tom@codesourcery.com>
6752 * tree-parloops.c (create_loads_for_reductions): Handle case that
6753 reduction is unused.
6755 2015-07-16 Richard Biener <rguenther@suse.de>
6757 PR tree-optimization/66894
6758 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
6759 about deriving NE_EXPR from truncated values.
6761 2015-07-16 Martin Liska <mliska@suse.cz>
6764 (object_allocator): Add new class.
6765 (pool_allocator::initialize): Use the underlying class.
6766 (pool_allocator::allocate): Likewise.
6767 (pool_allocator::remove): Likewise.
6768 (operator new): A new generic allocator.
6769 * asan.c (struct asan_mem_ref): Remove unused members.
6770 (asan_mem_ref_new): Replace new operator with
6771 object_allocator::allocate.
6772 (free_mem_ref_resources): Change deallocation.
6773 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
6774 with object_allocator.
6775 * config/sh/sh.c (add_constant): Replace new operator with
6776 object_allocator::allocate.
6777 (sh_reorg): Change call to a release method.
6778 * cselib.c (struct elt_list): Remove unused members.
6779 (new_elt_list): Replace new operator with
6780 object_allocator::allocate.
6781 (new_elt_loc_list): Likewise.
6782 (new_cselib_val): Likewise.
6783 (unchain_one_elt_list): Change delete operator with remove method.
6784 (unchain_one_elt_loc_list): Likewise.
6785 (unchain_one_value): Likewise.
6786 (cselib_finish): Release newly added static allocators.
6787 * cselib.h (struct cselib_val): Remove unused members.
6788 (struct elt_loc_list): Likewise.
6789 * df-problems.c (df_chain_alloc): Replace pool_allocator with
6791 * df-scan.c (struct df_scan_problem_data): Likewise.
6792 (df_scan_alloc): Likewise.
6793 * df.h (struct dataflow): Likewise.
6794 * dse.c (struct read_info_type): Likewise.
6795 (struct insn_info_type): Likewise.
6796 (struct dse_bb_info_type): Likewise.
6797 (struct group_info): Likewise.
6798 (struct deferred_change): Likewise.
6799 (get_group_info): Likewise.
6800 (delete_dead_store_insn): Likewise.
6801 (free_read_records): Likewise.
6802 (replace_read): Likewise.
6803 (check_mem_read_rtx): Likewise.
6804 (scan_insn): Likewise.
6805 (dse_step1): Likewise.
6806 (dse_step7): Likewise.
6807 * et-forest.c (struct et_occ): Remove unused members.
6808 (et_new_occ): Use allocate instead of new operator.
6809 (et_new_tree): Likewise.
6810 (et_free_tree): Call release method explicitly.
6811 (et_free_tree_force): Likewise.
6812 (et_free_pools): Likewise.
6813 (et_split): Use remove instead of delete operator.
6814 * et-forest.h (struct et_node): Remove unused members.
6815 * ipa-cp.c: Change pool_allocator to object_allocator.
6816 * ipa-inline-analysis.c: Likewise.
6817 * ipa-profile.c: Likewise.
6818 * ipa-prop.c: Likewise.
6819 * ipa-prop.h: Likewise.
6820 * ira-build.c (initiate_cost_vectors): Cast return value.
6821 (ira_allocate_cost_vector): Likewise.
6822 * ira-color.c (struct update_cost_record): Remove unused members.
6823 * lra-int.h (struct lra_live_range): Likewise.
6824 (struct lra_copy): Likewise.
6825 (struct lra_insn_reg): Likewise.
6826 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
6827 * lra.c (new_insn_reg): Replace new operator with allocate method.
6828 (free_insn_regs): Same for operator delete.
6829 (finish_insn_regs): Release new static allocator.
6830 (finish_insn_recog_data): Likewise.
6831 (lra_free_copies): Replace delete operator with remove method.
6832 (lra_create_copy): Replace operator new with allocate method.
6833 (invalidate_insn_data_regno_info): Same for remove method.
6834 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
6835 (free_debug_insn_changes): Replace delete operator with remove method.
6836 (replace_oldest_value_reg): Replace operator new with allocate method.
6837 (pass_cprop_hardreg::execute): Release new static variable.
6838 * sched-deps.c (sched_deps_init): Change pool_allocator to
6840 * sel-sched-ir.c: Likewise.
6841 * sel-sched-ir.h: Likewise.
6842 * stmt.c (expand_case): Likewise.
6843 (expand_sjlj_dispatch_table): Likewise.
6844 * tree-sra.c (struct access): Remove unused members.
6845 (struct assign_link): Likewise.
6846 (sra_deinitialize): Release newly added static pools.
6847 (create_access_1):Replace operator new with allocate method.
6848 (build_accesses_from_assign): Likewise.
6849 (create_artificial_child_access): Likewise.
6850 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
6851 pool_allocator to object_allocator.
6852 * tree-ssa-pre.c: Likewise.
6853 * tree-ssa-reassoc.c: Likewise.
6854 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
6855 * tree-ssa-strlen.c: Likewise.
6856 * tree-ssa-structalias.c: Likewise.
6857 * var-tracking.c (onepart_pool_allocate): New function.
6858 (unshare_variable): Use the newly added function.
6859 (variable_merge_over_cur): Likewise.
6860 (variable_from_dropped): Likewise.
6861 (variable_was_changed): Likewise.
6862 (set_slot_part): Likewise.
6863 (emit_notes_for_differences_1): Likewise.
6864 (vt_finalize): Release newly added static pools.
6866 2015-07-16 Martin Jambor <mjambor@suse.cz>
6868 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
6869 all uses. Fix two typos in its general comment.
6870 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
6872 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
6874 * config/i386/linux-common.h (LINK_MPX): New.
6875 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
6876 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
6877 indicating '-z bndplt' support by linker.
6878 * configure: Regenerate.
6879 * config.in: Regenerate.
6881 2015-07-16 Richard Biener <rguenther@suse.de>
6883 * fold-const.c (fold_widened_comparison): Remove.
6884 (fold_sign_changed_comparison): Likewise.
6885 (fold_comparison): Move widened and sign-changed comparison
6887 * match.pd: ... to patterns here.
6888 * generic-match-head.c: Include target.h.
6889 * gimple-match-head.c: Likewise.
6891 2015-07-16 Richard Biener <rguenther@suse.de>
6893 * tree-ssa-dom.c (dom_valueize): New function.
6894 (record_temporary_equivalences): Also record equivalences
6895 for dominating stmts that have uses of equivalences we are
6898 2015-07-16 Bin Cheng <bin.cheng@arm.com>
6900 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
6901 add_autoinc_candidates.
6902 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
6903 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
6904 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
6905 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
6907 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
6908 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
6909 Remove parameter struct iv*. Call add_autoinc_candidates here.
6910 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
6911 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
6913 (find_iv_candidates): Call new functions.
6915 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
6917 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
6918 uninitialized-variable warning.
6920 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
6923 * config/sh/sh.md (movdi): Split simple reg move to two movsi
6924 when the destination is R0.
6926 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
6929 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
6930 * config/i386/i386.c (ix86_expand_pextr): New function.
6931 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
6932 for non-lowpart subregs.
6933 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
6934 (insv<mode>): Use SWI248 mode iterator.
6935 (insv<mode>_1): Ditto.
6937 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
6938 Sebastian Pop <s.pop@samsung.com>
6940 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
6941 iterator to use_stmt.
6943 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
6944 Sebastian Pop <s.pop@samsung.com>
6946 * graphite-scop-detection.c (build_scops_1): Discard scops for
6949 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
6950 Sebastian Pop <s.pop@samsung.com>
6952 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
6953 case of a return statement in scop.
6955 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
6956 Sebastian Pop <s.pop@samsung.com>
6958 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
6959 INTEGER_TYPE parameters.
6960 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
6961 VECTOR_CST in scan_tree_for_params.
6962 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
6964 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
6966 * gimple-pretty-print.h: Don't include pretty-print.h.
6967 * tree-streamer.h: Don't include lto-streamer.h.
6968 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
6969 * gimple-streamer-in.c: Remove redundant includes.
6970 * gimple-streamer-out.c: Likewise.
6971 * ipa-devirt.c: Likewise.
6972 * ipa-icf.c: Likewise.
6973 * ipa-inline-analysis.c: Likewise.
6974 * ipa-polymorphic-call.c: Likewise.
6975 * ipa-profile.c: Likewise.
6976 * ipa-prop.c: Likewise.
6977 * ipa-pure-const.c: Likewise.
6978 * lto-cgraph.c: Likewise.
6979 * lto-streamer-in.c: Likewise.
6980 * lto-streamer-out.c: Likewise.
6981 * lto-streamer.c: Likewise.
6982 * tree-streamer-in.c: Likewise.
6983 * tree-streamer-out.c: Likewise.
6984 * tree-streamer.c: Likewise.
6986 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
6988 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
6990 * opts.c: Remove multiline #include comment.
6992 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
6994 * config/nvptx/mkoffload.c (process): Add C++ protection to
6997 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7000 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
7001 null before IEEE 128-bit floating point support patch.
7003 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7005 * simplify-rtx.c (simplify_ternary_operation): Add simplification
7006 for (!c) != {0,...,0} ? a : b for vector modes.
7008 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
7009 Martin Jambor <mjambor@suse.cz>
7011 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
7012 struct func_body_info* instead of struct ipa_node_params*, expecting
7013 fbi->info to be filled in. Replace throughout. Adjust call to
7014 ipa_load_from_parm_agg.
7015 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
7016 instead of struct ipa_node_params*. Adjust calls to other functions
7017 so that they pass either fbi or fbi->info.
7018 (set_switch_stmt_execution_predicate): Likewise.
7019 (will_be_nonconstant_predicate): Likewise.
7020 (compute_bb_predicates): Likewise.
7021 (estimate_function_body_sizes): Move asserts earlier. Fill in
7022 struct func_body_info, replace parms_info with fbi.info. Adjust
7023 calls to functions that now accept struct func_body_info.
7024 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
7025 (struct func_body_info): Likewise.
7026 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
7027 remove static. Adjust callers.
7028 (ipa_load_from_parm_agg): Remove.
7029 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
7030 (func_body_info): Likewise.
7031 (ipa_load_from_parm_agg): Adjust prototype.
7033 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7035 * gensupport.c (rtx_handle_directive): Adjust.
7036 * read-rtl.c (apply_iterators): Take vector to add rtxs to
7037 instead of expr list rtx.
7038 (add_define_attr_for_define_subst): Likewise.
7039 (add_define_subst_attr): Likewise.
7040 (read_subst_mapping): Likewise.
7041 (read_rtx): Likewise.
7042 * rtl.h (read_rtx): Adjust.
7044 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7046 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
7048 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7051 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
7052 (*tls_local_dynamic_base_64_<mode>): Ditto.
7053 (*tls_local_dynamic_base_64_largepic): Ditto.
7054 (tls_global_dynamic_64_<mode>): Update expander pattern.
7055 (tls_local_dynamic_base_64_<mode>): Ditto.
7057 2015-07-15 Richard Biener <rguenther@suse.de>
7059 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
7060 and bool_var == 1 -> bool_var simplifications ...
7061 * match.pd: ... to patterns here. Factor out negate_expr_p
7062 cases from the A - B -> A + (-B) patterns as negate_expr_p
7063 predicate and add a -(A + B) -> (-B) - A pattern.
7065 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
7067 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
7069 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
7070 Robert Suchanek <robert.suchanek@imgtec.com>
7072 * config/mips/mips.c (mips_int_mask): New enum.
7073 (mips_shadow_set): Likewise.
7074 (int_mask): New variable.
7075 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
7076 (machine_function): Add int_mask and use_shadow_register_set.
7077 (mips_attribute_table): Add attribute handlers for interrupt and
7078 use_shadow_register_set.
7079 (mips_interrupt_mask): New static function.
7080 (mips_handle_interrupt_attr): Likewise.
7081 (mips_handle_use_shadow_register_set_attr): Likewise.
7082 (mips_use_shadow_register_set): Change return type to enum
7083 mips_shadow_set. Add argument handling for use_shadow_register_set
7085 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
7086 compare with mips_shadow_set enum.
7087 (mips_compute_frame_info): Add interrupt mask and
7088 use_shadow_register_set to per-function information structure.
7089 Add a stack slot for EPC unconditionally.
7090 (mips_expand_prologue): Compare use_shadow_register_set value
7091 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
7092 masked interrupt register but in EIC mode use K0 and save Cause in K0.
7093 EPC saved and restored unconditionally. Use PMODE_INSN macro when
7094 copying the stack pointer from the shadow register set.
7095 * config/mips/mips.h (SR_IM0): New define.
7096 * config/mips/mips.md (mips_rdpgpr): Rename to...
7097 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
7098 * doc/extend.texi (Declaring Attributes of Functions): Document
7099 optional arguments for interrupt and use_shadow_register_set
7102 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
7104 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
7105 interrupt attribute.
7106 (mips_expand_prologue): Disable the floating point unit in an ISR.
7107 * config/mips/mips.h (SR_COP1): New define.
7109 2015-07-15 Richard Biener <rguenther@suse.de>
7111 * genmatch.c (parser::peek, parser::peek_ident): Add argument
7112 to tell how many tokens to peek ahead (default 1).
7113 (parser::eat_token, parser::eat_ident): Return token consumed.
7114 (parser::parse_result): Parse new switch statement.
7115 * match.pd: Use case statements where appropriate.
7117 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7119 PR rtl-optimization/58066
7120 * calls.c (expand_call): Precompute register parameters before stack
7121 alignment is performed.
7123 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7125 PR rtl-optimization/66838
7126 * postreload.c (reload_cse_move2add): Also process
7127 CALL_INSN_FUNCTION_USAGE when resetting information of
7128 call-clobbered registers.
7130 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7131 Cesar Philippidis <cesar@codesourcery.com>
7132 Chung-Lin Tang <cltang@codesourcery.com>
7134 * config/nios2/constraints.md (U, v): New constraints.
7135 * config/nios2/predicates.md (rdprs_dcache_operand): New.
7136 (ldstex_memory_operand): New.
7137 * config/nios2/sync.md: New file.
7138 * config/nios2/nios2.md (unspecv): Add new builtin function
7140 (rdprs, flushd, flushda, wrpie, eni): New patterns.
7141 (top-level): Include sync.md.
7142 * config/nios2/nios2.c (N2_FTYPES): Add function types for
7144 (N2_BUILTINS): Add arch field setting, add new builtins.
7145 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
7147 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
7148 Also handle ldex/stex/ldsex/stsex builtins.
7149 (nios2_expand_rdprs_builtin): New function.
7150 (nios2_expand_cache_builtin): New function.
7151 (nios2_expand_wrpie_builtin): New function.
7152 (nios2_expand_eni_builtin): New function.
7153 (nios2_expand_builtin): Add arch field handling and new builtin
7155 * doc/extend.texi (Altera Nios II Built-in Functions): Document
7157 * doc/md.texi (Machine Constraints): Document U and v constraints.
7159 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7160 Cesar Philippidis <cesar@codesourcery.com>
7161 Chung-Lin Tang <cltang@codesourcery.com>
7163 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
7164 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
7165 callee_save_reg_size and uses_anonymous_args fields.
7166 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
7167 (nios2_create_cfa_notes): New function.
7168 (nios2_adjust_stack): New function for adjusting stack.
7169 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
7170 Use nios2_adjust_stack.
7171 (nios2_expand_epilogue): Likewise.
7172 (nios2_expand_return): New function.
7173 (nios2_can_use_return_insn): Update for CDX pop.n usage.
7174 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
7175 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
7176 * config/nios2/nios2.md (return): Use nios2_expand_return.
7178 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7179 Cesar Philippidis <cesar@codesourcery.com>
7180 Chung-Lin Tang <cltang@codesourcery.com>
7182 * config/nios2/predicates.md (pop_operation): New.
7183 (ldwm_operation, stwm_operation): New.
7184 (nios2_hard_register_operand): New.
7185 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
7186 (ldstwm_operation_p): Declare.
7187 (gen_ldstwm_peep): Declare.
7188 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
7189 (base_reg_adjustment_p): New.
7190 (pop_operation_p): New.
7191 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
7192 (nios2_ldstwm_regset_p): New.
7193 (ldstwm_operation_p): New.
7195 (nios2_ldst_parallel): New.
7196 (struct ldswm_operand): Declare.
7197 (compare_ldstwm_operands): New.
7198 (can_use_cdx_ldstw): New.
7199 (gen_ldstwm_peep): New.
7200 * config/nios2/nios2-ldstwm.sml: New.
7201 * config/nios2/nios2.md: Include ldstwm.md.
7202 * config/nios2/ldstwm.md: Generated.
7204 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7205 Cesar Philippidis <cesar@codesourcery.com>
7206 Chung-Lin Tang <cltang@codesourcery.com>
7208 * config/nios2/nios2.h (LABEL_ALIGN): Define.
7209 (REG_ALLOC_ORDER): Define.
7210 (ADJUST_REG_ALLOC_ORDER): Define.
7211 (HONOR_REG_ALLOC_ORDER): Define.
7212 (CDX_REG_P): Define.
7213 (ANDCLEAR_INT): Define.
7214 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
7215 (nios2_label_align): Declare.
7216 (nios2_cdx_narrow_form_p): Declare.
7217 (nios2_adjust_reg_alloc_order): Declare.
7218 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
7220 (nios2_large_unspec_reloc_p): New function, split from...
7221 (nios2_legitimate_pic_operand_p): ...here.
7222 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
7223 (nios2_print_operand_punct_valid_p): New.
7224 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
7225 (split_mem_address): New.
7226 (split_alu_insn): New.
7228 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
7229 (enum nios2_add_insn_kind): New.
7230 (nios2_add_insn_names, nios2_add_insn_narrow): New.
7231 (nios2_add_insn_classify): New.
7232 (nios2_add_insn_asm): New.
7233 (nios2_cdx_narrow_form_p): New.
7234 (label_align, min_labelno, max_labelno): New.
7236 (nios2_label_align): New.
7237 (nios2_adjust_reg_alloc_order): New.
7238 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7239 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7240 * config/nios2/constraints.md (P): New constraint.
7241 * config/nios2/predicates.md (const_and_operand): New.
7243 (stack_memory_operand): New.
7244 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
7245 (length): Update to use nios2_cdx_narrow_form_p().
7246 (type): Add new insn type values.
7247 (control, alu, st, ld, shift): Update insn reservations with
7248 new insn type values.
7249 (*high, *lo_sum): Define new insn patterns for constant generation.
7250 (movqi_internal, movhi_internal, movsi_internal): Reduce
7251 alternatives, update asm template to handle CDX variants, update
7253 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
7254 template, update type attributes.
7255 (extendhisi2, extendqi<mode>2): Likewise.
7256 (addsi3): Change to use function for asm string.
7257 (subsi3): Add CDX notation to asm template, update type attributes.
7258 (negsi3, one_cmplsi3): Likewise.
7259 (andsi3): New pattern, specialized from logical patterns.
7260 (<code>si3): Remove and case, combine alternatives, update asm
7262 (<shift_op>si3): Add CDX notation, update type attributes.
7263 (rotrsi3): Update type attribute.
7264 (*merge, extzv, insv): New insn patterns.
7265 (return): Change to define_expand.
7266 (simple_return): Add CDX notation, update type attributes.
7267 (indirect_jump): Add CDX notation.
7268 (jump): Update asm cases, update length attribute expression.
7269 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
7270 (nios2_cbranch): Update asm cases and length attribute expression
7271 to handle CDX variants.
7272 (nios2_cmp<code>): Update asm template.
7273 (nop): Add CDX notation, update type attributes.
7274 (trap): Add CDX notation.
7275 (ctrapsi4): Update asm cases and length attribute expression to
7277 * doc/md.texi (Machine Constraints): Document P constraint.
7279 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7280 Cesar Philippidis <cesar@codesourcery.com>
7281 Chung-Lin Tang <cltang@codesourcery.com>
7283 * config/nios2/nios2.h (SMALL_INT12): New macro.
7284 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
7285 (nios2_valid_addr_expr_p): Use it.
7286 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
7287 with implicit "io" instructions on R2.
7288 * config/nios2/constraints.md (w): New constraint.
7289 * config/nios2/predicates.md (ldstio_memory_operand): New.
7290 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
7291 operand predicate and constraint.
7292 (ld<bh>io_signed, st<bhw>io>): Likewise.
7293 * doc/md.texi (Machine Constraints): Document w constraint.
7295 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7296 Cesar Philippidis <cesar@codesourcery.com>
7297 Chung-Lin Tang <cltang@codesourcery.com>
7299 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
7300 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
7301 Nios II architecture level.
7302 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
7303 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
7304 (OPTION_DEFAULT_SPECS): Define.
7305 (ASM_SPEC): Add -march= spec strings.
7306 * config/nios2/nios2.c (nios2_option_override): Check for
7307 conflicts involving new options.
7308 * config.gcc (nios2*-*-*): Support --with-arch=.
7309 * doc/invoke.texi (Option Summary, Nios II Options): Document
7310 -march=, -mbmx, and -mcdx.
7312 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
7314 PR rtl-optimization/66626
7315 * lra-constraints.c (lra_constraints): Prevent equivalence
7316 substitution for static chain pseudo in functions with nonlocal
7319 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7321 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
7322 (nios2_emit_stack_limit_check): Add size parameter. Handle
7323 -fstack-limit-symbol as well as -fstack-limit-register.
7324 (nios2_expand_prologue): Emit only a single stack limit check,
7325 even if multiple stack adjustments are required.
7326 (nios2_option_override): Diagnose unsupported combination of -fpic
7327 and -stack-limit-symbol.
7329 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
7331 * Makefile.in (top_srcdir): New.
7332 * configure.ac: Use AM_ZLIB.
7333 * configure: Regeneated.
7335 2015-07-14 Matthias Klose <doko@ubuntu.com>
7338 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
7340 2015-07-14 Richard Biener <rguenther@suse.de>
7342 PR tree-optimization/66863
7343 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
7344 what we record for conversion use stmt lhs inequalities.
7346 2015-07-14 Richard Biener <rguenther@suse.de>
7348 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
7349 (decision_tree::gen_gimple): Likewise.
7351 2015-07-14 Tom de Vries <tom@codesourcery.com>
7353 * gcc.c (greater_than_spec_func): Declare forward.
7354 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
7355 -ftree-parallelize-loops={0,1}.
7356 (static_spec_functions): Add greater_than_spec_func function with name
7358 (greater_than_spec_func): New function.
7360 2015-07-14 Richard Biener <rguenther@suse.de>
7362 * tree-ssa-dom.c (record_temporary_equivalences): Merge
7363 wideing type conversion case from record_equivalences_from_incoming_edge
7364 and use record_equality to record equivalences.
7365 (record_equivalences_from_incoming_edge): Call
7366 record_temporary_equivalences.
7368 2015-07-14 Richard Biener <rguenther@suse.de>
7370 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
7371 (struct if_expr): New.
7372 (struct with_expr): Likewise.
7373 (is_a_helper): Add helpers for if_expr and with_expr.
7374 (struct simplify): Add simplify_kind enum and member. Remove
7376 (simplify::simplify): Adjust.
7377 (lower_commutative): Adjust.
7378 (lower_opt_convert): Likewise.
7379 (lower_cond): Likewise.
7380 (replace_id): Handle with_expr and if_expr.
7381 (lower_for): Adjust.
7382 (dt_simplify::gen_1): New recursive worker, split out from ...
7383 (dt_simplify::gen): ... here. Deal with if and with expansion
7385 (capture_info::capture_info): Take context argument
7386 (capture_info::walk_result): Only analyze specific result.
7387 (parser::parse_result): New function.
7388 (parser::parse_simplify): Adjust to parse ifs with then end
7390 (parser::parse_if): Simplify.
7391 (parser::parse_pattern): Pass down simplify kind.
7392 * match.pd: Convert if structure to new syntax.
7394 2015-07-13 Marek Polacek <polacek@redhat.com>
7396 * rtl.c (rtx_equal_p_cb): Fix typo.
7398 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
7400 * omega.h: Don't include config.h, don't include params.h again if
7401 omega.h has already been included.
7402 * graphite-poly.h: Include sese.h.
7403 * graphite.c: Don't include sese.h, remove needless includes and
7404 minimize includes outside #ifdef HAVE_isl block.
7405 * graphite-blocking.c: Don't include sese.h, remove needless includes,
7406 and wrap entire file in #ifdef HAVE_isl
7407 * graphite-dependences.c: Likewise.
7408 * graphite-interchange.c: Likewise.
7409 * graphite-isl-ast-to-gimple.c: Likewise.
7410 * graphite-optimize-isl.c: Likewise.
7411 * graphite-poly.c: Likewise.
7412 * graphite-scop-detection.c: Likewise.
7413 * graphite-sese-to-poly.c: Likewise.
7415 2015-07-13 Tom de Vries <tom@codesourcery.com>
7417 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
7419 2015-07-13 Renlin Li <renlin.li@arm.com>
7422 * simplify-rtx.c (simplify_const_relational_operation): Add
7423 side_effects_p checks.
7425 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
7427 * bitmap.h: Fix double word typos.
7430 * cfgloopmanip.c: Same.
7433 * cgraphclones.c: Same.
7435 * config/aarch64/aarch64-protos.h: Same.
7436 * config/aarch64/aarch64.c: Same.
7437 * config/aarch64/aarch64.md: Same.
7438 * config/arm/arm.md: Same.
7439 * config/arm/arm1020e.md: Same.
7440 * config/arm/arm1026ejs.md: Same.
7441 * config/arm/arm926ejs.md: Same.
7442 * config/arm/fa526.md: Same.
7443 * config/arm/fa606te.md: Same.
7444 * config/arm/fa626te.md: Same.
7445 * config/arm/fa726te.md: Same.
7446 * config/arm/fmp626.md: Same.
7447 * config/darwin.c: Same.
7448 * config/epiphany/epiphany.c: Same.
7449 * config/frv/frv.c: Same.
7450 * config/ft32/ft32.c: Same.
7451 * config/gnu-user.h: Same.
7452 * config/h8300/constraints.md: Same.
7453 * config/i386/i386.c: Same.
7454 * config/i386/i386.md: Same.
7455 * config/iq2000/iq2000.md: Same.
7456 * config/mips/mips.c: Same.
7457 * config/mmix/mmix.md: Same.
7458 * config/moxie/moxie.c: Same.
7459 * config/nds32/nds32.md: Same.
7460 * config/pa/pa.h: Same.
7461 * config/rs6000/aix.h: Same.
7462 * config/rs6000/rs6000.h: Same.
7463 * config/sh/sh.c: Same.
7464 * config/tilegx/tilegx.md: Same.
7465 * config/tilepro/gen-mul-tables.cc: Same.
7468 * doc/invoke.texi: Same.
7470 * dwarf2out.c: Same.
7475 * hash-table.h: Same.
7476 * internal-fn.c: Same.
7478 * ipa-devirt.c: Same.
7481 * ipa-profile.c: Same.
7486 * reg-stack.c: Same.
7492 * tree-inline.c: Same.
7494 * tree-ssa-dom.c: Same.
7495 * tree-ssa-loop-ivopts.c: Same.
7496 * tree-ssa-structalias.c: Same.
7497 * tree-ssa-tail-merge.c: Same.
7498 * tree-ssa-ter.c: Same.
7499 * tree-ssa-threadupdate.c: Same.
7500 * tree-ssa-uninit.c: Same.
7501 * tree-ssanames.c: Same.
7502 * tree-vect-loop-manip.c: Same.
7508 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7511 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
7512 tree_ssa_phiopt_worker): Call it.
7514 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7516 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
7517 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
7520 2015-07-11 Marek Polacek <polacek@redhat.com>
7523 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
7524 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
7525 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
7526 rather than bb_has_abnormal_call_pred.
7527 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
7528 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
7529 rather than bb_has_abnormal_call_pred.
7531 2015-07-10 Anatoly Sokolov <aesok@post.ru>
7533 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7534 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
7535 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7536 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
7537 v850_legitimate_address_p): New functions.
7538 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7540 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
7543 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
7544 indirect sibcall with register arguments if register available
7545 for argument passing.
7546 (init_cumulative_args): Set cfun->machine->arg_reg_available
7547 to (cum->nregs > 0) or to true if function has a variable
7549 (function_arg_advance_32): Set cfun->machine->arg_reg_available
7550 to false if cum->nregs <= 0.
7551 * config/i386/i386.h (machine_function): Add arg_reg_available.
7553 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
7555 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
7556 and gen_higpart instead of gen_rtx_SUBREG.
7557 * config/i386/i386.md
7558 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
7559 (read-modify peephole2): Use gen_lowpart instead of
7560 gen_rtx_SUBREG for operand 5.
7562 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
7564 * config/tilepro/gen-mul-tables.cc (main): Change include list for
7566 * config/tilepro/mul-tables.c: Regenerate.
7567 * config/tilegx/mul-tables.c: Regenerate.
7569 2015-07-10 Richard Biener <rguenther@suse.de>
7571 * fold-const.c (distribute_bit_expr): Remove.
7572 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
7573 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
7574 to A & (B | C) and simplifying A << C1 << C2 to ...
7575 * match.pd: ... patterns here.
7577 2015-07-10 Jiong Wang <jiong.wang@arm.com>
7579 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7580 Mark mem as READONLY and NOTRAP for PIC symbol.
7582 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
7584 * gimple-predict.h: New file.
7585 (gimple_predict_predictor, gimple_predict_set_predictor,
7586 gimple_predict_outcome, gimple_predict_set_outcome,
7587 gimple_build_predict): Relocate here.
7588 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
7589 gimple_predict_outcome, gimple_predict_set_outcome): Move to
7591 * gimple.c (gimple_build_predict): Move to gimple-predict.h
7592 * basic-block.h: Don't include cfghooks.h.
7593 * backend.h: Don't include predict.h.
7594 * cfghooks.h: Include predict.h.
7595 * gimple-pretty-print.c: Include gimple-predict.h.
7596 * gimplify.c: Likwise.
7597 * predict.c: Adjust includes.
7598 * tree-inline.c: Likewise.
7600 * auto-inc-dec.c: Likewise.
7601 * auto-profile.c: Likewise.
7602 * bb-reorder.c: Likewise.
7603 * builtins.c: Likewise.
7604 * caller-save.c: Likewise.
7605 * calls.c: Likewise.
7606 * cfganal.c: Likewise.
7607 * cfgbuild.c: Likewise.
7609 * cfgcleanup.c: Likewise.
7610 * cfgexpand.c: Likewise.
7611 * cfghooks.c: Likewise.
7612 * cfgloopanal.c: Likewise.
7613 * cfgloop.c: Likewise.
7614 * cfgloopmanip.c: Likewise.
7615 * cfgrtl.c: Likewise.
7616 * cgraph.c: Likewise.
7617 * cgraphunit.c: Likewise.
7618 * combine.c: Likewise.
7619 * cprop.c: Likewise.
7622 * dojump.c: Likewise.
7624 * except.c: Likewise.
7625 * expmed.c: Likewise.
7627 * final.c: Likewise.
7628 * fold-const.c: Likewise.
7629 * function.c: Likewise.
7630 * fwprop.c: Likewise.
7631 * gcc-plugin.h: Likewise.
7633 * genattrtab.c: Likewise.
7634 * genemit.c: Likewise.
7635 * gengtype.c: Likewise.
7636 * genopinit.c: Likewise.
7637 * genoutput.c: Likewise.
7638 * genpreds.c: Likewise.
7639 * genrecog.c: Likewise.
7640 * gimple-fold.c: Likewise.
7641 * gimple-iterator.c: Likewise.
7642 * gimple-ssa-isolate-paths.c: Likewise.
7643 * gimple-ssa-strength-reduction.c: Likewise.
7644 * graph.c: Likewise.
7645 * graphite-blocking.c: Likewise.
7646 * graphite.c: Likewise.
7647 * graphite-dependences.c: Likewise.
7648 * graphite-interchange.c: Likewise.
7649 * graphite-isl-ast-to-gimple.c: Likewise.
7650 * graphite-optimize-isl.c: Likewise.
7651 * graphite-poly.c: Likewise.
7652 * graphite-scop-detection.c: Likewise.
7653 * graphite-sese-to-poly.c: Likewise.
7654 * haifa-sched.c: Likewise.
7655 * ifcvt.c: Likewise.
7656 * internal-fn.c: Likewise.
7657 * ipa-cp.c: Likewise.
7658 * ipa-profile.c: Likewise.
7659 * ipa-split.c: Likewise.
7660 * ipa-utils.c: Likewise.
7661 * ira-build.c: Likewise.
7662 * ira-color.c: Likewise.
7663 * ira-conflicts.c: Likewise.
7664 * ira-costs.c: Likewise.
7665 * ira-emit.c: Likewise.
7666 * ira-lives.c: Likewise.
7668 * loop-doloop.c: Likewise.
7669 * loop-init.c: Likewise.
7670 * loop-invariant.c: Likewise.
7671 * loop-unroll.c: Likewise.
7672 * lower-subreg.c: Likewise.
7673 * lra-assigns.c: Likewise.
7675 * lra-coalesce.c: Likewise.
7676 * lra-constraints.c: Likewise.
7677 * lra-lives.c: Likewise.
7678 * lto-cgraph.c: Likewise.
7679 * lto-streamer-in.c: Likewise.
7680 * mode-switching.c: Likewise.
7681 * modulo-sched.c: Likewise.
7682 * omp-low.c: Likewise.
7683 * optabs.c: Likewise.
7684 * passes.c: Likewise.
7685 * postreload.c: Likewise.
7686 * postreload-gcse.c: Likewise.
7687 * profile.c: Likewise.
7688 * recog.c: Likewise.
7689 * regstat.c: Likewise.
7690 * reload1.c: Likewise.
7691 * reorg.c: Likewise.
7692 * rtlanal.c: Likewise.
7693 * sched-ebb.c: Likewise.
7694 * sel-sched-ir.c: Likewise.
7696 * shrink-wrap.c: Likewise.
7697 * simplify-rtx.c: Likewise.
7699 * store-motion.c: Likewise.
7700 * tracer.c: Likewise.
7701 * trans-mem.c: Likewise.
7702 * tree-call-cdce.c: Likewise.
7703 * tree-cfg.c: Likewise.
7704 * tree-cfgcleanup.c: Likewise.
7705 * tree-chkp.c: Likewise.
7706 * tree-complex.c: Likewise.
7707 * tree-eh.c: Likewise.
7708 * tree-if-conv.c: Likewise.
7709 * tree-loop-distribution.c: Likewise.
7710 * tree-outof-ssa.c: Likewise.
7711 * tree-parloops.c: Likewise.
7712 * tree-predcom.c: Likewise.
7713 * tree-pretty-print.c: Likewise.
7714 * tree-profile.c: Likewise.
7715 * tree-sra.c: Likewise.
7716 * tree-ssa.c: Likewise.
7717 * tree-ssa-coalesce.c: Likewise.
7718 * tree-ssa-dce.c: Likewise.
7719 * tree-ssa-dom.c: Likewise.
7720 * tree-ssa-forwprop.c: Likewise.
7721 * tree-ssa-ifcombine.c: Likewise.
7722 * tree-ssa-loop-ch.c: Likewise.
7723 * tree-ssa-loop-im.c: Likewise.
7724 * tree-ssa-loop-ivcanon.c: Likewise.
7725 * tree-ssa-loop-ivopts.c: Likewise.
7726 * tree-ssa-loop-manip.c: Likewise.
7727 * tree-ssa-loop-prefetch.c: Likewise.
7728 * tree-ssa-loop-unswitch.c: Likewise.
7729 * tree-ssa-math-opts.c: Likewise.
7730 * tree-ssa-phiopt.c: Likewise.
7731 * tree-ssa-pre.c: Likewise.
7732 * tree-ssa-reassoc.c: Likewise.
7733 * tree-ssa-sink.c: Likewise.
7734 * tree-ssa-tail-merge.c: Likewise.
7735 * tree-ssa-threadedge.c: Likewise.
7736 * tree-ssa-threadupdate.c: Likewise.
7737 * tree-switch-conversion.c: Likewise.
7738 * tree-tailcall.c: Likewise.
7739 * tree-vect-data-refs.c: Likewise.
7740 * tree-vect-loop.c: Likewise.
7741 * tree-vect-loop-manip.c: Likewise.
7742 * tree-vectorizer.c: Likewise.
7743 * tree-vrp.c: Likewise.
7744 * ubsan.c: Likewise.
7745 * value-prof.c: Likewise.
7746 * varasm.c: Likewise.
7747 * var-tracking.c: Likewise.
7748 * config/aarch64/aarch64-builtins.c: Likewise.
7749 * config/aarch64/aarch64.c: Likewise.
7750 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7751 * config/alpha/alpha.c: Likewise.
7752 * config/arc/arc.c: Likewise.
7753 * config/arm/arm.c: Likewise.
7754 * config/avr/avr.c: Likewise.
7755 * config/bfin/bfin.c: Likewise.
7756 * config/c6x/c6x.c: Likewise.
7757 * config/cr16/cr16.c: Likewise.
7758 * config/cris/cris.c: Likewise.
7759 * config/darwin.c: Likewise.
7760 * config/darwin-c.c: Likewise.
7761 * config/epiphany/epiphany.c: Likewise.
7762 * config/epiphany/mode-switch-use.c: Likewise.
7763 * config/epiphany/resolve-sw-modes.c: Likewise.
7764 * config/fr30/fr30.c: Likewise.
7765 * config/frv/frv.c: Likewise.
7766 * config/ft32/ft32.c: Likewise.
7767 * config/h8300/h8300.c: Likewise.
7768 * config/i386/i386.c: Likewise.
7769 * config/i386/winnt.c: Likewise.
7770 * config/ia64/ia64.c: Likewise.
7771 * config/iq2000/iq2000.c: Likewise.
7772 * config/lm32/lm32.c: Likewise.
7773 * config/m32c/m32c.c: Likewise.
7774 * config/m32r/m32r.c: Likewise.
7775 * config/m68k/m68k.c: Likewise.
7776 * config/mcore/mcore.c: Likewise.
7777 * config/mep/mep.c: Likewise.
7778 * config/microblaze/microblaze.c: Likewise.
7779 * config/mips/mips.c: Likewise.
7780 * config/mmix/mmix.c: Likewise.
7781 * config/mn10300/mn10300.c: Likewise.
7782 * config/moxie/moxie.c: Likewise.
7783 * config/msp430/msp430.c: Likewise.
7784 * config/nds32/nds32.c: Likewise.
7785 * config/nds32/nds32-cost.c: Likewise.
7786 * config/nds32/nds32-fp-as-gp.c: Likewise.
7787 * config/nds32/nds32-intrinsic.c: Likewise.
7788 * config/nds32/nds32-isr.c: Likewise.
7789 * config/nds32/nds32-md-auxiliary.c: Likewise.
7790 * config/nds32/nds32-memory-manipulation.c: Likewise.
7791 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7792 * config/nds32/nds32-predicates.c: Likewise.
7793 * config/nios2/nios2.c: Likewise.
7794 * config/nvptx/nvptx.c: Likewise.
7795 * config/pa/pa.c: Likewise.
7796 * config/pdp11/pdp11.c: Likewise.
7797 * config/rl78/rl78.c: Likewise.
7798 * config/rs6000/rs6000.c: Likewise.
7799 * config/rx/rx.c: Likewise.
7800 * config/s390/s390.c: Likewise.
7801 * config/sh/sh.c: Likewise.
7802 * config/sh/sh-mem.cc: Likewise.
7803 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7804 * config/sh/sh_treg_combine.cc: Likewise.
7805 * config/sparc/sparc.c: Likewise.
7806 * config/spu/spu.c: Likewise.
7807 * config/stormy16/stormy16.c: Likewise.
7808 * config/tilegx/tilegx.c: Likewise.
7809 * config/tilepro/tilepro.c: Likewise.
7810 * config/v850/v850.c: Likewise.
7811 * config/vax/vax.c: Likewise.
7812 * config/visium/visium.c: Likewise.
7813 * config/xtensa/xtensa.c: Likewise.
7815 2015-07-10 Richard Biener <rguenther@suse.de>
7817 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
7818 (decision_tree::gen_gimple): Likewise.
7819 (decision_tree::gen_generic): Likewise.
7821 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
7824 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
7825 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
7827 2015-07-10 Jakub Jelinek <jakub@redhat.com>
7830 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
7831 or ORT_TASK contexts.
7832 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
7835 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7837 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
7840 2015-07-10 Tom de Vries <tom@codesourcery.com>
7842 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
7843 insert nit + 1 bound.
7845 2015-07-10 Richard Biener <rguenther@suse.de>
7847 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
7848 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
7849 (if_convertible_loop_p_1): For this always compute bb predicates.
7850 (if_convertible_loop_p): And free them.
7852 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7854 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
7857 2015-07-10 Richard Biener <rguenther@suse.de>
7859 PR tree-optimization/66823
7860 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
7863 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
7865 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
7866 to handle mips[32|64]r3 and mips[32|64]r5.
7868 2015-07-09 Jakub Jelinek <jakub@redhat.com>
7871 * tree-nested.c (get_static_chain): Or in a flag into
7872 info->static_chain_added.
7873 (get_frame_field, get_nonlocal_debug_decl): Likewise.
7874 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
7876 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
7877 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
7880 PR tree-optimization/66718
7881 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
7883 (vect_simd_lane_linear): New function.
7884 (vectorizable_simd_clone_call): Support using linear arguments for
7885 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
7887 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
7890 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
7892 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7894 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
7895 Use machine mode, not enum machine_mode in the prototype.
7897 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
7898 classify 128-bit floating point support.
7899 (FLOAT128_IBM_P): Likewise.
7900 (FLOAT128_VECTOR_P): Likewise.
7901 (FLOAT128_2REG_P): Likewise.
7902 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
7903 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
7904 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7905 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
7907 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
7908 tests against TFmode/TDmode, since those modes do not use VSX
7910 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
7912 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
7913 tests against TFmode, etc.
7914 (invalid_e500_subreg): Add tests against IFmode/KFmode.
7915 (reg_offset_addressing_ok_p): Likewise.
7916 (rs6000_legitimate_offset_address_p): Likewise.
7917 (rs6000_legitimize_address): Likewise.
7918 (rs6000_legitimize_reload_address): Likewise.
7919 (rs6000_legitimate_address_p): Clean up tests against TFmode and
7920 TDmode to use the new helper macros, which will include IFmode and
7922 (rs6000_emit_move): Likewise.
7923 (rs6000_darwin64_record_arg_recurse): Likewise.
7924 (print_operand): Likewise.
7925 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
7926 that uses a single vector register as a vector and not as a
7927 floating point register in terms of the calling sequence.
7928 (rs6000_discover_homogeneous_aggregate): Likewise.
7929 (rs6000_return_in_memory): Likewise.
7930 (init_cumulative_args): Likewise.
7931 (rs6000_function_arg_boundary): Likewise.
7932 (rs6000_function_arg_advance_1): Likewise.
7933 (rs6000_function_arg): Likewise.
7934 (rs6000_pass_by_reference): Likewise.
7935 (rs6000_gimplify_va_arg): Likewise.
7936 (rs6000_secondary_reload_memory): Use machine_mode not enum
7938 (rs6000_split_multireg_move): Use new helper macros.
7939 (spe_func_has_64bit_regs_p): Likewise.
7940 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
7941 (output_toc): Use new helper macros.
7942 (rs6000_register_move_cost): Likewise.
7943 (rs6000_function_value): Add IEEE 128-bit floating point calling
7945 (rs6000_libcall_value): Likewise.
7946 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
7947 floating point support.
7948 (rs6000_vector_mode_supported_p): Likewise.
7950 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
7952 PR rtl-optimization/66782
7953 * lra-int.h (struct lra_insn_recog_data): Add comment about
7954 clobbered hard regs for arg_hard_regs.
7955 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
7956 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
7957 Add condition for processing used hard regs.
7958 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
7959 Process clobbered hard regs.
7961 2015-07-09 Michael Matz <matz@suse.de>
7963 * genmatch.c (fprintf_indent): New function.
7964 (operand::gen_transform): Add indent parameter.
7965 (expr::gen_transform, c_expr::gen_transform,
7966 capture::gen_transform): Ditto and use fprintf_indent.
7967 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
7968 (dt_operand::gen, dt_operand::gen_predicate,
7969 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
7970 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
7971 (decision_tree::gen_gimple): Adjust calls and indent generated
7973 (decision_tree::gen_generic): Ditto.
7974 (write_predicate): Ditto.
7976 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
7979 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
7980 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
7981 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
7982 {GENERAL,SSE,MMX}_REG_P where appropriate.
7984 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
7986 * lto-streamer.h: Don't include target.h and alloc-pool.h.
7987 * builtins.c: Adjust includes.
7988 * gimple.c: Likewise.
7989 * ipa-icf.c: Likewise.
7990 * lto-opts.c: Likewise.
7991 * ipa-reference.c: Likewise.
7992 * lto-section-out.c: Likewise.
7993 * lto-streamer-in.c: Likewise.
7994 * lto-streamer-out.c: Likewise.
7995 * opts-global.c: Likewise.
7996 * symtab.c: Likewise.
7997 * tree-chkp.c: Likewise.
7998 * tree-ssa-live.c: Likewise.
7999 * tree-streamer-in.c: Likewise.
8000 * tree-streamer-out.c: Likewise.
8001 * config/darwin.c: Likewise.
8002 * config/i386/winnt.c: Likewise.
8004 2015-07-09 Richard Biener <rguenther@suse.de>
8006 * genmatch.c (struct expr): Add force_single_use flag.
8007 (expr::expr): Add copy constructor.
8008 (capture_info::walk_match): Gather force_single_use captures.
8009 (expr::gen_transform): Use possibly NULLified sequence.
8010 (dt_simplify::gen): Apply single-use restrictions by NULLifying
8011 seq if any constrained expr is not single-use.
8012 (parser::parse_expr): Refactor to allow multiple flags. Handle
8013 's' flag to force an expression have a single-use if the pattern
8014 simplifies to more than one statement.
8015 * match.pd: Convert most single_use conditionals to :s flags.
8017 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8019 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
8020 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8021 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
8023 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
8025 * flags.h: Don't include flag-types.h or options.h.
8026 * opts-common.c: Adjust includes.
8027 * opts-global.c: Likewise.
8028 * common/config/epiphany/epiphany-common.c: Likewise.
8030 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8033 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
8036 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8039 * config/i386/i386.c (ix86_return_in_memory): Return true
8040 if int_size_in_bytes returns negative for IA MCU.
8042 2015-07-09 Marek Polacek <polacek@redhat.com>
8044 PR tree-optimization/66718
8045 * Makefile.in (OBJS): Add gimple-laddress.o.
8046 * passes.def: Schedule pass_laddress.
8047 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
8048 * tree-pass.h (make_pass_laddress): Declare.
8049 * gimple-laddress.c: New file.
8051 2015-07-09 Richard Biener <rguenther@suse.de>
8053 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
8055 2015-07-09 Richard Biener <rguenther@suse.de>
8057 PR tree-optimization/66807
8058 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
8060 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
8062 * function.c (stack_protect_epilogue): Use if rather than switch for
8063 check targetm.have_stack_protect_test.
8065 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8067 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
8068 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
8069 * config/arc/arc.h: Likewise.
8070 * config/arm/arm.h: Likewise.
8071 * config/bfin/bfin.h: Likewise.
8072 * config/epiphany/epiphany.h: Likewise.
8073 * config/frv/frv.h: Likewise.
8074 * config/ia64/ia64.h: Likewise.
8075 * config/iq2000/iq2000.h: Likewise.
8076 * config/lm32/lm32.h: Likewise.
8077 * config/m32r/m32r.h: Likewise.
8078 * config/mcore/mcore.h: Likewise.
8079 * config/mep/mep.h: Likewise.
8080 * config/microblaze/microblaze.h: Likewise.
8081 * config/mips/mips.h: Likewise.
8082 * config/mmix/mmix.h: Likewise.
8083 * config/mn10300/mn10300.h: Likewise.
8084 * config/nds32/nds32.h: Likewise.
8085 * config/nios2/nios2.h: Likewise.
8086 * config/pa/pa.h: Likewise.
8087 * config/rl78/rl78.h: Likewise.
8088 * config/sh/sh.h: Likewise.
8089 * config/sparc/sparc.h: Likewise.
8090 * config/stormy16/stormy16.h: Likewise.
8091 * config/tilegx/tilegx.h: Likewise.
8092 * config/tilepro/tilepro.h: Likewise.
8093 * config/v850/v850.h: Likewise.
8094 * config/xtensa/xtensa.h: Likewise.
8095 * doc/tm.texi: Regenerate.
8096 * doc/tm.texi.in: Adjust.
8097 * combine.c (simplify_set): Likewise.
8098 (simplify_comparison): Likewise.
8099 * expr.c (store_constructor): Likewise.
8100 * internal-fn.c (expand_arith_overflow): Likewise.
8101 * reload.c (push_reload): Likewise.
8102 (find_reloads): Likewise.
8103 (find_reloads_subreg_address): Likewise.
8104 * reload1.c (eliminate_regs_1): Likewise.
8105 * rtlanal.c (nonzero_bits1): Likewise.
8106 (num_sign_bit_copies1): Likewise.
8107 * simplify-rtx.c (simplify_truncation): Likewise.
8109 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8111 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
8112 of AUTO_INC_DEC with the preprocessor.
8113 * combine.c (combine_instructions): Likewise.
8114 (can_combine_p): Likewise.
8115 (try_combine): Likewise.
8116 * emit-rtl.c (try_split): Likewise.
8117 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8118 * lower-subreg.c (resolve_simple_move): Likewise.
8119 * lra.c (update_inc_notes): Likewise.
8120 * recog.c (asm_operand_ok): Likewise.
8121 (constrain_operands): Likewise.
8122 * regrename.c (scan_rtx_address): Likewise.
8123 * reload.c (update_auto_inc_notes): Likewise.
8124 (reg_inc_found_and_valid_p): Likewise.
8125 * reload1.c (reload): Likewise.
8126 (emit_input_reload_insns): Likewise.
8127 (delete_output_reload): Likewise.
8128 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8129 * valtrack.c (cleanup_auto_inc_dec): Likewise.
8131 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8133 * rtl.h: Always define AUTO_INC_DEC.
8134 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
8135 * combine.c (combine_instructions): Likewise.
8136 (can_combine_p): Likewise.
8137 (try_combine): Likewise.
8138 * emit-rtl.c (try_split): Likewise.
8139 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8140 * lower-subreg.c (resolve_simple_move): Likewise.
8141 * lra.c (update_inc_notes): Likewise.
8142 * recog.c (asm_operand_ok): Likewise.
8143 (constrain_operands): Likewise.
8144 * regrename.c (scan_rtx_address): Likewise.
8145 * reload.c (update_auto_inc_notes): Likewise.
8146 (find_equiv_reg): Likewise.
8147 * reload1.c (reload): Likewise.
8148 (reload_as_needed): Likewise.
8149 (choose_reload_regs): Likewise.
8150 (emit_input_reload_insns): Likewise.
8151 (delete_output_reload): Likewise.
8152 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8153 * valtrack.c (cleanup_auto_inc_dec): Likewise.
8155 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8157 * combine.c (can_combine_def_p): Don't check the value of
8158 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
8159 (combinable_i3pat): Likewise.
8160 (mark_used_regs_combine): Likewise.
8161 * regrename.c (rename_chains): Likewise.
8162 * reload.c (find_reloads_address): Likewise.
8163 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8165 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8167 * combine.c (update_rsp_from_reg_equal): Don't check if
8168 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
8169 (reg_nonzero_bits_for_combine): Likewise.
8170 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
8172 * config/frv/frv.h: Likewise.
8173 * config/lm32/lm32.h: Likewise.
8174 * config/mep/mep.h: Likewise.
8175 * config/mips/mips.h: Likewise.
8176 * config/rs6000/rs6000.h: Likewise.
8177 * config/sh/sh.h: Likewise.
8178 * config/tilegx/tilegx.h (enum reg_class): Likewise.
8179 * config/tilepro/tilepro.h: Likewise.
8180 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
8181 * doc/tm.texi: Regenerate.
8182 * doc/tm.texi.in: Adjust.
8183 * rtlanal.c (nonzero_bits1): Likewise.
8185 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8187 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
8188 with the preprocessor.
8189 (combine_instructions): Likewise.
8190 (try_combine): Likewise.
8192 (distribute_notes): Likewise.
8194 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8196 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
8198 (simplify_set): Likewise.
8199 * cse.c (cse_insn): Likewise.
8200 * fold-const.c (fold_single_bit_test): Likewise.
8201 (fold_unary_loc): Likewise.
8202 * postreload.c (reload_cse_simplify_set): Likewise.
8203 (reload_cse_simplify_operands): Likewise.
8205 2015-07-08 Jiong Wang <jiong.wang@arm.com>
8207 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
8208 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
8210 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
8213 * config/i386/x86intrin.h: Include <adxintrin.h> even if
8214 __iamcu__ is defined.
8216 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8218 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
8220 2015-07-08 Iain Sandoe <iain@codesourcery.com>
8223 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
8224 names from preservation.
8226 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
8229 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
8231 (function_arg_advance_32): Don't pass vectors in registers for
8233 (function_arg_32): Likewise.
8234 (ix86_return_in_memory): Don't return vectors in registers for
8237 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
8240 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
8241 hard regno live at the start of BB with incoming abnormal edges.
8242 * lra-lives.c (process_bb_lives): Ditto.
8244 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
8247 * config/nvptx/mkoffload.c (main): Create an offload image only in
8248 64-bit configurations.
8250 2015-07-08 Martin Liska <mliska@suse.cz>
8253 * tree-sra.c (create_access_1): Call ctor without brackets.
8254 (create_artificial_child_access): Likewise.
8256 2015-07-08 Richard Biener <rguenther@suse.de>
8258 PR tree-optimization/66793
8259 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
8260 Properly split the block after stmts ending it.
8262 2015-07-08 Richard Biener <rguenther@suse.de>
8264 PR tree-optimization/66794
8265 * passes.c (execute_function_todo): Assert that post-dominators
8267 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
8268 Free post-dominators.
8270 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8272 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
8275 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8277 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
8278 more than or equal 8 and less than 32 when optimizing for size.
8280 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8282 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
8283 COSTS_N_INSNS (1) and increment it appropriately throughout the
8286 2015-07-08 Richard Biener <rguenther@suse.de>
8288 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
8290 2015-07-08 Alan Modra <amodra@gmail.com>
8292 * target.def (rtx_costs): Remove "code" param, add "mode".
8293 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
8294 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
8295 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
8296 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
8297 call. Track mode when given in rtx.
8298 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
8299 (default_address_cost): Pass Pmode to rtx_cost.
8300 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
8301 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
8303 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
8304 (notreg_cost): Add mode param. Use it.
8305 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
8306 mode param and pass to set_src_cost. Update all calls.
8307 (hash_scan_set): Formatting.
8308 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
8309 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
8311 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
8312 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
8313 emit_store_flag): Update set_src_cost and rtx_cost calls.
8314 * auto-inc-dec.c (attempt_change): Likewise.
8315 * calls.c (precompute_register_parameters): Likewise.
8316 * combine.c (expand_compound_operation, make_extraction,
8317 force_to_mode, distribute_and_simplify_rtx): Likewise.
8318 * dojump.c (prefer_and_bit_test): Likewise.
8319 * dse.c (find_shift_sequence): Likewise.
8320 * expr.c (compress_float_constant): Likewise.
8321 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
8322 * ifcvt.c (noce_try_sign_mask): Likewise.
8323 * loop-doloop.c (doloop_optimize): Likewise.
8324 * loop-invariant.c (create_new_invariant): Likewise.
8325 * lower-subreg.c (shift_cost, compute_costs): Likewise.
8326 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
8327 lshift_cheap_p): Likewise.
8328 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
8329 try_replace_in_use, reload_cse_move2add): Likewise.
8330 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
8332 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8333 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8334 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
8335 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
8336 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
8337 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
8339 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
8340 * config/arc/arc.c (arc_rtx_costs): Likewise.
8341 * config/arm/arm.c (arm_rtx_costs): Likewise.
8342 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
8343 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
8344 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
8345 * config/cris/cris.c (cris_rtx_costs): Likewise.
8346 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
8347 * config/frv/frv.c (frv_rtx_costs): Likewise.
8348 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
8349 * config/i386/i386.c (ix86_rtx_costs): Likewise.
8350 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
8351 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
8352 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
8353 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
8354 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
8355 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
8356 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
8357 * config/mep/mep.c (mep_rtx_cost): Likewise.
8358 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
8359 * config/mips/mips.c (mips_rtx_costs): Likewise.
8360 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
8361 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
8362 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
8363 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
8364 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
8365 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
8366 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
8367 * config/pa/pa.c (hppa_rtx_costs): Likewise.
8368 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
8369 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
8370 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
8371 * config/s390/s390.c (s390_rtx_costs): Likewise.
8372 * config/sh/sh.c (sh_rtx_costs): Likewise.
8373 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
8374 * config/spu/spu.c (spu_rtx_costs): Likewise.
8375 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
8376 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
8377 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
8378 * config/v850/v850.c (v850_rtx_costs): Likewise.
8379 * config/vax/vax.c (vax_rtx_costs): Likewise.
8380 * config/visium/visium.c (visium_rtx_costs): Likewise.
8381 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
8382 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
8383 "code" param, and pass as outer_code to first rtx_cost call. Pass
8384 mode to rtx_cost calls.
8385 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
8387 (aarch64_rtx_costs_wrapper): Update.
8388 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
8389 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
8391 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
8393 (avr_operand_rtx_cost): Similarly.
8394 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
8395 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
8396 * config/mips/mips.c (mips_stack_address_p): Comment typo.
8397 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
8398 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
8399 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
8401 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
8402 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
8403 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
8404 * doc/tm.texi: Regenerate.
8406 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
8408 * tree-core.h: Include symtab.h.
8409 * rtl.h: Include hard-reg-set.h but not flags.h.
8410 (HARD_CONST): Remove condition compilation involving HARD_CONST since
8411 hard-reg-set.h is always included.
8412 * regs.h: Don't include hard-reg-set.h or rtl.h.
8413 * cfg.h: Include dominance.h.
8414 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
8415 * backend.h: New. Aggregate commonly used backend header files.
8416 * gimple-ssa.h: Don't include tree-hasher.h.
8417 * ssa.h: New. Aggregate commonly used SSA header files.
8418 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
8419 * sel-sched-ir.h: Flatten includes.
8420 * lra-int.h: Flatten completely.
8421 * sel-sched-dump.h: Flatten includes.
8422 * ira-int.h: Flatten includes.
8423 * gimple-streamer.h: Remove all includes.
8424 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
8425 * resource.h: Flatten hard-reg-set.h and df.h.
8426 * sched-int.h: Flatten insn-arrt.h and df.h.
8427 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
8428 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
8429 * genattrtab.c (write_header): Adjust generated includes.
8430 * genautomata.c (main): Likewise.
8431 * genconditions.c (write-header): Likewise.
8432 * genemit.c (main): Likewise.
8433 * gengtype.c (open_base_files): Likewise.
8434 * genopinit.c (main): Likewise.
8435 * genoutput.c (output_prologue): Likewise.
8436 * genpeep.c (main): Likewise.
8437 * genpreds.c (write_insn_preds_c): Likewise.
8438 * genrecog.c (write_header): Likewise.
8439 * alias.c: Adjust includes.
8441 * attribs.c: Likewise.
8442 * auto-inc-dec.c: Likewise.
8443 * auto-profile.c: Likewise.
8444 * bb-reorder.c: Likewise.
8445 * bt-load.c: Likewise.
8446 * builtins.c: Likewise.
8447 * caller-save.c: Likewise.
8448 * calls.c: Likewise.
8451 * cfganal.c: Likewise.
8452 * cfgbuild.c: Likewise.
8453 * cfgcleanup.c: Likewise.
8454 * cfgexpand.c: Likewise.
8455 * cfghooks.c: Likewise.
8456 * cfgloop.c: Likewise.
8457 * cfgloopanal.c: Likewise.
8458 * cfgloopmanip.c: Likewise.
8459 * cfgrtl.c: Likewise.
8460 * cgraph.c: Likewise.
8461 * cgraphbuild.c: Likewise.
8462 * cgraphclones.c: Likewise.
8463 * cgraphunit.c: Likewise.
8464 * cilk-common.c: Likewise.
8465 * combine-stack-adj.c: Likewise.
8466 * combine.c: Likewise.
8467 * compare-elim.c: Likewise.
8468 * convert.c: Likewise.
8469 * coverage.c: Likewise.
8470 * cppbuiltin.c: Likewise.
8471 * cprop.c: Likewise.
8473 * cselib.c: Likewise.
8474 * data-streamer-in.c: Likewise.
8475 * data-streamer-out.c: Likewise.
8476 * data-streamer.c: Likewise.
8477 * dbxout.c: Likewise.
8480 * debug.c: Likewise.
8481 * df-core.c: Likewise.
8482 * df-problems.c: Likewise.
8483 * df-scan.c: Likewise.
8485 * dojump.c: Likewise.
8486 * dominance.c: Likewise.
8487 * domwalk.c: Likewise.
8488 * double-int.c: Likewise.
8490 * dumpfile.c: Likewise.
8491 * dwarf2asm.c: Likewise.
8492 * dwarf2cfi.c: Likewise.
8493 * dwarf2out.c: Likewise.
8494 * emit-rtl.c: Likewise.
8495 * et-forest.c: Likewise.
8496 * except.c: Likewise.
8497 * explow.c: Likewise.
8498 * expmed.c: Likewise.
8500 * final.c: Likewise.
8501 * fixed-value.c: Likewise.
8502 * fold-const.c: Likewise.
8503 * function.c: Likewise.
8504 * fwprop.c: Likewise.
8505 * gcc-plugin.h: Likewise.
8506 * gcse-common.c: Likewise.
8508 * generic-match-head.c: Likewise.
8509 * ggc-page.c: Likewise.
8510 * gimple-builder.c: Likewise.
8511 * gimple-expr.c: Likewise.
8512 * gimple-fold.c: Likewise.
8513 * gimple-iterator.c: Likewise.
8514 * gimple-low.c: Likewise.
8515 * gimple-match-head.c: Likewise.
8516 * gimple-pretty-print.c: Likewise.
8517 * gimple-ssa-isolate-paths.c: Likewise.
8518 * gimple-ssa-strength-reduction.c: Likewise.
8519 * gimple-streamer-in.c: Likewise.
8520 * gimple-streamer-out.c: Likewise.
8521 * gimple-walk.c: Likewise.
8522 * gimple.c: Likewise.
8523 * gimplify-me.c: Likewise.
8524 * gimplify.c: Likewise.
8525 * godump.c: Likewise.
8526 * graph.c: Likewise.
8527 * graphite-blocking.c: Likewise.
8528 * graphite-dependences.c: Likewise.
8529 * graphite-interchange.c: Likewise.
8530 * graphite-isl-ast-to-gimple.c: Likewise.
8531 * graphite-optimize-isl.c: Likewise.
8532 * graphite-poly.c: Likewise.
8533 * graphite-scop-detection.c: Likewise.
8534 * graphite-sese-to-poly.c: Likewise.
8535 * graphite.c: Likewise.
8536 * haifa-sched.c: Likewise.
8537 * hw-doloop.c: Likewise.
8538 * ifcvt.c: Likewise.
8539 * init-regs.c: Likewise.
8540 * internal-fn.c: Likewise.
8541 * ipa-chkp.c: Likewise.
8542 * ipa-comdats.c: Likewise.
8543 * ipa-cp.c: Likewise.
8544 * ipa-devirt.c: Likewise.
8545 * ipa-icf-gimple.c: Likewise.
8546 * ipa-icf.c: Likewise.
8547 * ipa-inline-analysis.c: Likewise.
8548 * ipa-inline-transform.c: Likewise.
8549 * ipa-inline.c: Likewise.
8550 * ipa-polymorphic-call.c: Likewise.
8551 * ipa-profile.c: Likewise.
8552 * ipa-prop.c: Likewise.
8553 * ipa-pure-const.c: Likewise.
8554 * ipa-ref.c: Likewise.
8555 * ipa-reference.c: Likewise.
8556 * ipa-split.c: Likewise.
8557 * ipa-utils.c: Likewise.
8558 * ipa-visibility.c: Likewise.
8560 * ira-build.c: Likewise.
8561 * ira-color.c: Likewise.
8562 * ira-conflicts.c: Likewise.
8563 * ira-costs.c: Likewise.
8564 * ira-emit.c: Likewise.
8565 * ira-lives.c: Likewise.
8568 * langhooks.c: Likewise.
8570 * loop-doloop.c: Likewise.
8571 * loop-init.c: Likewise.
8572 * loop-invariant.c: Likewise.
8573 * loop-iv.c: Likewise.
8574 * loop-unroll.c: Likewise.
8575 * lower-subreg.c: Likewise.
8576 * lra-assigns.c: Likewise.
8577 * lra-coalesce.c: Likewise.
8578 * lra-constraints.c: Likewise.
8579 * lra-eliminations.c: Likewise.
8580 * lra-lives.c: Likewise.
8581 * lra-remat.c: Likewise.
8582 * lra-spills.c: Likewise.
8584 * lto-cgraph.c: Likewise.
8585 * lto-compress.c: Likewise.
8586 * lto-opts.c: Likewise.
8587 * lto-section-in.c: Likewise.
8588 * lto-section-out.c: Likewise.
8589 * lto-streamer-in.c: Likewise.
8590 * lto-streamer-out.c: Likewise.
8591 * lto-streamer.c: Likewise.
8593 * mode-switching.c: Likewise.
8594 * modulo-sched.c: Likewise.
8595 * omega.c: Likewise.
8596 * omp-low.c: Likewise.
8597 * optabs.c: Likewise.
8598 * opts-global.c: Likewise.
8599 * passes.c: Likewise.
8600 * plugin.c: Likewise.
8601 * postreload-gcse.c: Likewise.
8602 * postreload.c: Likewise.
8603 * predict.c: Likewise.
8604 * print-rtl.c: Likewise.
8605 * print-tree.c: Likewise.
8606 * profile.c: Likewise.
8608 * realmpfr.c: Likewise.
8609 * recog.c: Likewise.
8611 * reg-stack.c: Likewise.
8612 * regcprop.c: Likewise.
8613 * reginfo.c: Likewise.
8614 * regrename.c: Likewise.
8615 * regstat.c: Likewise.
8616 * reload.c: Likewise.
8617 * reload1.c: Likewise.
8618 * reorg.c: Likewise.
8619 * resource.c: Likewise.
8620 * rtl-chkp.c: Likewise.
8621 * rtlanal.c: Likewise.
8622 * rtlhooks.c: Likewise.
8623 * sanopt.c: Likewise.
8624 * sched-deps.c: Likewise.
8625 * sched-ebb.c: Likewise.
8626 * sched-rgn.c: Likewise.
8627 * sched-vis.c: Likewise.
8628 * sdbout.c: Likewise.
8629 * sel-sched-dump.c: Likewise.
8630 * sel-sched-ir.c: Likewise.
8631 * sel-sched.c: Likewise.
8633 * shrink-wrap.c: Likewise.
8634 * simplify-rtx.c: Likewise.
8635 * stack-ptr-mod.c: Likewise.
8637 * stor-layout.c: Likewise.
8638 * store-motion.c: Likewise.
8639 * stringpool.c: Likewise.
8640 * symtab.c: Likewise.
8641 * target-globals.c: Likewise.
8642 * targhooks.c: Likewise.
8643 * toplev.c: Likewise.
8644 * tracer.c: Likewise.
8645 * trans-mem.c: Likewise.
8646 * tree-affine.c: Likewise.
8647 * tree-browser.c: Likewise.
8648 * tree-call-cdce.c: Likewise.
8649 * tree-cfg.c: Likewise.
8650 * tree-cfgcleanup.c: Likewise.
8651 * tree-chkp-opt.c: Likewise.
8652 * tree-chkp.c: Likewise.
8653 * tree-chrec.c: Likewise.
8654 * tree-complex.c: Likewise.
8655 * tree-data-ref.c: Likewise.
8656 * tree-dfa.c: Likewise.
8657 * tree-diagnostic.c: Likewise.
8658 * tree-dump.c: Likewise.
8659 * tree-eh.c: Likewise.
8660 * tree-emutls.c: Likewise.
8661 * tree-if-conv.c: Likewise.
8662 * tree-inline.c: Likewise.
8663 * tree-into-ssa.c: Likewise.
8664 * tree-iterator.c: Likewise.
8665 * tree-loop-distribution.c: Likewise.
8666 * tree-nested.c: Likewise.
8667 * tree-nrv.c: Likewise.
8668 * tree-object-size.c: Likewise.
8669 * tree-outof-ssa.c: Likewise.
8670 * tree-parloops.c: Likewise.
8671 * tree-phinodes.c: Likewise.
8672 * tree-predcom.c: Likewise.
8673 * tree-pretty-print.c: Likewise.
8674 * tree-profile.c: Likewise.
8675 * tree-scalar-evolution.c: Likewise.
8676 * tree-sra.c: Likewise.
8677 * tree-ssa-address.c: Likewise.
8678 * tree-ssa-alias.c: Likewise.
8679 * tree-ssa-ccp.c: Likewise.
8680 * tree-ssa-coalesce.c: Likewise.
8681 * tree-ssa-copy.c: Likewise.
8682 * tree-ssa-copyrename.c: Likewise.
8683 * tree-ssa-dce.c: Likewise.
8684 * tree-ssa-dom.c: Likewise.
8685 * tree-ssa-dse.c: Likewise.
8686 * tree-ssa-forwprop.c: Likewise.
8687 * tree-ssa-ifcombine.c: Likewise.
8688 * tree-ssa-live.c: Likewise.
8689 * tree-ssa-loop-ch.c: Likewise.
8690 * tree-ssa-loop-im.c: Likewise.
8691 * tree-ssa-loop-ivcanon.c: Likewise.
8692 * tree-ssa-loop-ivopts.c: Likewise.
8693 * tree-ssa-loop-manip.c: Likewise.
8694 * tree-ssa-loop-niter.c: Likewise.
8695 * tree-ssa-loop-prefetch.c: Likewise.
8696 * tree-ssa-loop-unswitch.c: Likewise.
8697 * tree-ssa-loop.c: Likewise.
8698 * tree-ssa-math-opts.c: Likewise.
8699 * tree-ssa-operands.c: Likewise.
8700 * tree-ssa-phiopt.c: Likewise.
8701 * tree-ssa-phiprop.c: Likewise.
8702 * tree-ssa-pre.c: Likewise.
8703 * tree-ssa-propagate.c: Likewise.
8704 * tree-ssa-reassoc.c: Likewise.
8705 * tree-ssa-sccvn.c: Likewise.
8706 * tree-ssa-scopedtables.c: Likewise.
8707 * tree-ssa-sink.c: Likewise.
8708 * tree-ssa-strlen.c: Likewise.
8709 * tree-ssa-structalias.c: Likewise.
8710 * tree-ssa-tail-merge.c: Likewise.
8711 * tree-ssa-ter.c: Likewise.
8712 * tree-ssa-threadedge.c: Likewise.
8713 * tree-ssa-threadupdate.c: Likewise.
8714 * tree-ssa-uncprop.c: Likewise.
8715 * tree-ssa-uninit.c: Likewise.
8716 * tree-ssa.c: Likewise.
8717 * tree-ssanames.c: Likewise.
8718 * tree-stdarg.c: Likewise.
8719 * tree-streamer-in.c: Likewise.
8720 * tree-streamer-out.c: Likewise.
8721 * tree-streamer.c: Likewise.
8722 * tree-switch-conversion.c: Likewise.
8723 * tree-tailcall.c: Likewise.
8724 * tree-vect-data-refs.c: Likewise.
8725 * tree-vect-generic.c: Likewise.
8726 * tree-vect-loop-manip.c: Likewise.
8727 * tree-vect-loop.c: Likewise.
8728 * tree-vect-patterns.c: Likewise.
8729 * tree-vect-slp.c: Likewise.
8730 * tree-vect-stmts.c: Likewise.
8731 * tree-vectorizer.c: Likewise.
8732 * tree-vrp.c: Likewise.
8735 * ubsan.c: Likewise.
8736 * valtrack.c: Likewise.
8737 * value-prof.c: Likewise.
8738 * var-tracking.c: Likewise.
8739 * varasm.c: Likewise.
8740 * varpool.c: Likewise.
8741 * vmsdbgout.c: Likewise.
8742 * vtable-verify.c: Likewise.
8744 * wide-int.cc: Likewise.
8745 * xcoffout.c: Likewise.
8746 * config/aarch64/aarch64-builtins.c: Likewise.
8747 * config/aarch64/aarch64.c: Likewise.
8748 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8749 * config/alpha/alpha.c: Likewise.
8750 * config/arc/arc.c: Likewise.
8751 * config/arm/aarch-common.c: Likewise.
8752 * config/arm/arm-builtins.c: Likewise.
8753 * config/arm/arm-c.c: Likewise.
8754 * config/arm/arm.c: Likewise.
8755 * config/avr/avr-c.c: Likewise.
8756 * config/avr/avr-log.c: Likewise.
8757 * config/avr/avr.c: Likewise.
8758 * config/bfin/bfin.c: Likewise.
8759 * config/c6x/c6x.c: Likewise.
8760 * config/cr16/cr16.c: Likewise.
8761 * config/cris/cris.c: Likewise.
8762 * config/darwin-c.c: Likewise.
8763 * config/darwin.c: Likewise.
8764 * config/epiphany/epiphany.c: Likewise.
8765 * config/epiphany/mode-switch-use.c: Likewise.
8766 * config/epiphany/resolve-sw-modes.c: Likewise.
8767 * config/fr30/fr30.c: Likewise.
8768 * config/frv/frv.c: Likewise.
8769 * config/ft32/ft32.c: Likewise.
8770 * config/h8300/h8300.c: Likewise.
8771 * config/i386/i386-c.c: Likewise.
8772 * config/i386/i386.c: Likewise.
8773 * config/i386/msformat-c.c: Likewise.
8774 * config/i386/winnt-cxx.c: Likewise.
8775 * config/i386/winnt-stubs.c: Likewise.
8776 * config/i386/winnt.c: Likewise.
8777 * config/ia64/ia64-c.c: Likewise.
8778 * config/ia64/ia64.c: Likewise.
8779 * config/iq2000/iq2000.c: Likewise.
8780 * config/lm32/lm32.c: Likewise.
8781 * config/m32c/m32c-pragma.c: Likewise.
8782 * config/m32c/m32c.c: Likewise.
8783 * config/m32r/m32r.c: Likewise.
8784 * config/m68k/m68k.c: Likewise.
8785 * config/mcore/mcore.c: Likewise.
8786 * config/mep/mep-pragma.c: Likewise.
8787 * config/mep/mep.c: Likewise.
8788 * config/microblaze/microblaze-c.c: Likewise.
8789 * config/microblaze/microblaze.c: Likewise.
8790 * config/mips/mips.c: Likewise.
8791 * config/mmix/mmix.c: Likewise.
8792 * config/mn10300/mn10300.c: Likewise.
8793 * config/moxie/moxie.c: Likewise.
8794 * config/msp430/msp430-c.c: Likewise.
8795 * config/msp430/msp430.c: Likewise.
8796 * config/nds32/nds32-cost.c: Likewise.
8797 * config/nds32/nds32-fp-as-gp.c: Likewise.
8798 * config/nds32/nds32-intrinsic.c: Likewise.
8799 * config/nds32/nds32-isr.c: Likewise.
8800 * config/nds32/nds32-md-auxiliary.c: Likewise.
8801 * config/nds32/nds32-memory-manipulation.c: Likewise.
8802 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8803 * config/nds32/nds32-predicates.c: Likewise.
8804 * config/nds32/nds32.c: Likewise.
8805 * config/nios2/nios2.c: Likewise.
8806 * config/nvptx/nvptx.c: Likewise.
8807 * config/pa/pa.c: Likewise.
8808 * config/pdp11/pdp11.c: Likewise.
8809 * config/rl78/rl78-c.c: Likewise.
8810 * config/rl78/rl78.c: Likewise.
8811 * config/rs6000/rs6000-c.c: Likewise.
8812 * config/rs6000/rs6000.c: Likewise.
8813 * config/rx/rx.c: Likewise.
8814 * config/s390/s390-c.c: Likewise.
8815 * config/s390/s390.c: Likewise.
8816 * config/sh/sh-c.c: Likewise.
8817 * config/sh/sh-mem.cc: Likewise.
8818 * config/sh/sh.c: Likewise.
8819 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8820 * config/sh/sh_treg_combine.cc: Likewise.
8821 * config/sol2-c.c: Likewise.
8822 * config/sol2-cxx.c: Likewise.
8823 * config/sol2-stubs.c: Likewise.
8824 * config/sol2.c: Likewise.
8825 * config/sparc/sparc-c.c: Likewise.
8826 * config/sparc/sparc.c: Likewise.
8827 * config/spu/spu-c.c: Likewise.
8828 * config/spu/spu.c: Likewise.
8829 * config/stormy16/stormy16.c: Likewise.
8830 * config/tilegx/mul-tables.c: Likewise.
8831 * config/tilegx/tilegx-c.c: Likewise.
8832 * config/tilegx/tilegx.c: Likewise.
8833 * config/tilepro/mul-tables.c: Likewise.
8834 * config/tilepro/tilepro-c.c: Likewise.
8835 * config/tilepro/tilepro.c: Likewise.
8836 * config/v850/v850-c.c: Likewise.
8837 * config/v850/v850.c: Likewise.
8838 * config/vax/vax.c: Likewise.
8839 * config/visium/visium.c: Likewise.
8840 * config/vms/vms-c.c: Likewise.
8841 * config/vms/vms.c: Likewise.
8842 * config/vxworks.c: Likewise.
8843 * config/xtensa/xtensa.c: Likewise.
8845 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
8847 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
8848 Remove operand constraints. Change operand 2 predicate to
8849 nonmemory operand. Limit const_int values to mode bitsize. Only
8850 allow const_int values less than 32 when optimizing for size.
8851 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
8852 Remove operand constraints.
8853 (*bt<mode>): Use SImode for const_int values less than 32.
8854 (regmode): Remove mode attribute.
8856 2015-07-07 Anatoly Sokolov <aesok@post.ru>
8858 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8859 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
8860 moxie_legitimate_address_p): New functions.
8861 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8863 2015-07-07 Tom de Vries <tom@codesourcery.com>
8865 PR tree-optimization/66642
8866 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
8867 header comment. Rename split_edge variable to edge_at_split. Split
8868 exit edge to create new loop exit bb. Insert loop exit phis in new
8871 2015-07-07 Tom de Vries <tom@codesourcery.com>
8873 * tree-cfg.c (get_virtual_phi): New function.
8874 * tree-cfg.h (get_virtual_phi): Declare.
8875 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
8876 (rewrite_virtuals_into_loop_closed_ssa): New function.
8877 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
8879 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
8880 (transform_to_exit_first_loop_alt): Use
8881 rewrite_virtuals_into_loop_closed_ssa.
8883 2015-07-07 Richard Biener <rguenther@suse.de>
8885 * fold-const.c (fold_binary_loc): Move
8886 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
8887 * match.pd: ... here.
8888 Add (X * C1) % C2 -> 0 simplification pattern derived from
8891 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
8894 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
8895 change for target/65249.
8897 2015-07-07 Paulo Matos <pmatos@broadcom.com>
8899 * symtab.c (address_matters_1): Fix typo in comment above.
8900 (can_increase_alignment_p): Likewise.
8902 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8904 * function.c (free_after_compilation): Clear PROP_cfg in
8907 2015-07-07 Richard Biener <rguenther@suse.de>
8909 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
8911 (add_control_edge): Remove excessive vertical space in dumping.
8912 (process_ssa_edge_worklist): Simulate at most one statement and
8913 return whether we did. Do not simulate PHIs if they are in a
8914 BB not yet simulated.
8915 (ssa_propagate): Adjust to always drain the BB worklist whenever
8916 a BB is available there, likewise the VARYING edges list before
8917 the interesting edge list.
8919 2015-07-07 Christian Bruel <christian.bruel@st.com>
8922 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
8924 2015-07-07 Richard Biener <rguenther@suse.de>
8927 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
8930 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
8932 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
8933 modes for operands 0 and 3. Use SImode for operands 2 and 3.
8934 Copy operand 0 to a temporary if !ext_register_operand. Remove
8935 ancient extract_bit_field workaround.
8936 (insv<mode>_1): Rename from mov<mode>_insv_1.
8937 (*insvqi): Rename from *movqi_insv_2.
8938 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
8939 for renamed insvsi_1.
8940 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
8942 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
8944 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
8945 call to nvptx_reorg_subreg.
8947 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
8949 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
8950 * graphite-dependencies.c, graphite-interchange.c,
8951 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
8952 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
8955 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
8957 * match.pd: Remove element_mode inside HONOR_*.
8958 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
8959 (~X | X -> -1, ~X ^ X -> -1): Merge.
8960 * tree.c (build_each_one_cst): New function.
8961 * tree.h (build_each_one_cst): Likewise.
8963 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
8965 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8968 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
8970 * config.gcc <mips*-*-*>: Add fused-madd.opt.
8971 * config/mips/mips.opt (mfused-madd): Remove.
8972 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
8973 * config/mips/mips.h (TARGET_MIPS8000): New.
8974 (ISA_HAS_FP_MADD4_MSUB4): Remove.
8975 (ISA_HAS_FP_MADDF_MSUBF): Remove.
8976 (ISA_HAS_FP_MADD3_MSUB3): Remove.
8977 (ISA_HAS_NMADD4_NMSUB4): Remove.
8978 (ISA_HAS_NMADD3_NMSUB3): Remove.
8979 (ISA_HAS_FUSED_MADD4): New.
8980 (ISA_HAS_UNFUSED_MADD4): New.
8981 (ISA_HAS_FUSED_MADDF): New.
8982 (ISA_HAS_FUSED_MADD3): New.
8983 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
8984 (*fma<mode>4_madd3) New.
8985 (*fma<mode>4_madd4) New.
8986 (*fma<mode>4_maddf) New.
8988 (*fms<mode>4_msub3) New.
8989 (*fms<mode>4_msub4) New.
8991 (*fnma<mode>4_nmadd3) New.
8992 (*fnma<mode>4_nmadd4) New.
8994 (*fnms<mode>4_nmsub3) New.
8995 (*fnms<mode>4_nmsub4) New.
8996 (*madd4<mode>) Modify to be unfused only.
8997 (*msub4<mode>) Modify to be unfused only.
8998 (*nmadd4<mode>) Modify to be unfused only.
8999 (*nmsub4<mode>) Modify to be unfused only.
9000 (*madd3<mode>) Remove.
9001 (*msub3<mode>) Remove.
9002 (*nmadd3<mode>) Remove.
9003 (*nmsub3<mode>) Remove.
9004 (*nmadd3<mode>_fastmath) Remove.
9005 (*nmsub3<mode>_fastmath) Remove.
9006 (*nmadd4<mode>_fastmath) Update condition.
9007 (*nmsub4<mode>_fastmath) Update condition.
9009 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
9012 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
9013 alignment attribute, exploring one level down for records and arrays.
9015 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
9017 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
9018 modes for operands 0 and 1. Use SImode for operands 2 and 3.
9019 Copy operand 1 to a temporary if !ext_register_operand. Remove
9020 ancient extract_bit_field workaround.
9021 (*extv<mode>): Rename from *mov<mode>_extv_1.
9022 (*extvqi): Rename from *movqi_extv_1.
9023 (extzv<mode>): Rename from extzv. Use SWI248 modes for
9024 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
9025 to a temporary if !ext_register_operand. Remove ancient
9026 extract_bit_field workaround.
9027 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
9028 (*extzvqi): Rename from *movqi_extzv_2.
9029 (*testqi_ext_3): Remove modes from const_int_operand predicated
9030 operands. Add "n" constraint.
9031 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
9032 operand. Add "J" constraint.
9033 (*btsq, *btrq, *btcq peephole2s): Remove mode from
9034 const_0_to_63 predicated operand.
9035 (regmode): New insn attribute.
9036 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
9037 to nonmemory_operand. Use regmode insn attribute.
9038 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
9039 (*jcc_bt<mode>_mask): Remove mode from operand 3.
9040 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
9041 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
9042 operands. Use "N" constraint instead of "n".
9044 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
9046 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
9048 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9051 * config/i386/i386.c (iamcu_cost): New.
9052 (m_IAMCU): Likewise.
9053 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
9054 (processor_target_table): Add an entry for "iamcu".
9055 (processor_alias_table): Likewise.
9056 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
9057 (ix86_adjust_cost): Likewise.
9058 (ia32_multipass_dfa_lookahead): Likewise.
9059 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
9060 * config/i386/x86-tune.def: Updated for m_IAMCU.
9062 2015-07-06 Richard Biener <rguenther@suse.de>
9064 PR tree-optimization/66772
9065 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
9066 values are available in the PHI node BB when there are
9067 still unexecutable edges.
9069 2015-07-06 Richard Biener <rguenther@suse.de>
9071 PR tree-optimization/66767
9072 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
9073 Make sure to build the alignment test on a SSA name without
9074 final alignment info valid only if the alignment test
9077 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
9080 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
9081 loop start when inserting LSETUP.
9083 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9086 * config/i386/i386.c (ix86_option_override_internal): Allow
9087 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
9089 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9091 * read-md.c (decimal_string): Rename to ...
9092 (md_decimal_string): ... this.
9093 (handle_enum): Reflect this.
9095 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9098 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
9100 2015-07-06 Richard Biener <rguenther@suse.de>
9103 * match.pd: Add missing constraint of y to REAL_CST in
9104 REAL_CST - x CMP y to y - CST CMP x simplification.
9106 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
9108 PR tree-optimization/66757
9109 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
9111 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
9112 Sandra Loosemore <sandra@codesourcery.com>
9114 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
9115 Delete extern declaration.
9116 (gprel_constant_p): Add extern declaration.
9117 * config/nios2/constraints.md ("S"): Use gprel_constant_p
9118 instead of nios2_symbol_ref_in_small_data_p.
9119 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
9120 (nios2_symbol_ref_in_small_data_p): Make static.
9121 (gprel_constant_p): Make non-static.
9123 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9125 * doc/fragments.texi (Target Fragment): Convert debian.org
9127 * doc/install.texi (Configuration): Ditto.
9129 2015-07-05 Jakub Jelinek <jakub@redhat.com>
9131 PR tree-optimization/66718
9132 * tree-vect-stmts.c (vectorizable_call): Replace uses of
9133 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
9135 PR tree-optimization/66718
9136 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
9137 vectorizable_load, vectorizable_condition): Move vectype,
9138 nunits, ncopies computation after checking what kind of statement
9141 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9143 * target-insns.def (extv, extzv, insv): New targetm instruction
9145 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
9147 * recog.c (simplify_while_replacing): Likewise.
9149 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9151 * target-insns.def (doloop_begin, doloop_end): New targetm
9152 instruction patterns.
9153 * loop-init.c: Include target.h.
9154 (pass_loop2::gate): Use the new targetm patterns instead of
9155 HAVE_*/gen_* interface.
9156 (pass_rtl_doloop::gate): Likewise.
9157 (pass_rtl_doloop::execute): Remove preprocessor condition.
9158 * hw-doloop.c: Build unconditionally.
9159 * loop-doloop.c: Likewise.
9160 (doloop_optimize): Use the new targetm patterns instead of
9161 HAVE_*/gen_* interface.
9162 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
9163 * modulo-sched.c (doloop_register_get): Likewise.
9165 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9167 * target-insns.def (clear_cache): New targetm instruction pattern.
9168 * builtins.c (expand_builtin___clear_cache): Use it instead of
9169 HAVE_*/gen_* interface.
9171 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9173 * target-insns.def (allocate_stack, check_stack, probe_stack)
9174 (probe_stack_address, split_stack_prologue, split_stack_space_check):
9175 New targetm instruction patterns.
9176 * explow.c (allocate_dynamic_stack_space): Use them instead of
9177 HAVE_*/gen_* interface.
9178 (emit_stack_probe): Likewise.
9179 (probe_stack_range): Likewise.
9180 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9182 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9184 * target-insns.def (stack_protect_set, stack_protect_test): New
9185 targetm instruction patterns.
9186 * cfgexpand.c (stack_protect_prologue): Use them instead of
9187 HAVE_*/gen_* interface.
9188 * function.c (stack_protect_epilogue): Likewise.
9190 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9192 * expr.h (gen_move_insn_uncast): Delete.
9193 * expr.c (gen_move_insn_uncast): Delete.
9195 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9197 * target-insns.def (restore_stack_block, restore_stack_function)
9198 (restore_stack_nonlocal, save_stack_block, save_stack_function)
9199 (save_stack_nonlocal): New targetm instruction patterns.
9200 * builtins.c (expand_builtin_apply): Use them instead of
9201 HAVE_*/gen_* interface.
9202 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
9204 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9206 * target-insns.def (trap): New targetm instruction pattern.
9207 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
9209 * explow.c (allocate_dynamic_stack_space): Likewise.
9210 * ifcvt.c (find_if_header): Likewise.
9212 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9214 * target-insns.def (prefetch): New targetm instruction pattern.
9215 * tree-ssa-loop-prefetch.c: Include targeth.
9216 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
9217 of HAVE_*/gen_* interface.
9218 * builtins.c (expand_builtin_prefetch): Likewise.
9219 * toplev.c (process_options): Likewise.
9221 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9223 * target-insns.def (untyped_call, untyped_return): New targetm
9224 instruction patterns.
9225 * builtins.c (expand_builtin_apply): Use them instead of
9226 HAVE_*/gen_* interface.
9227 (result_vector): Define unconditionally.
9229 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9231 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
9232 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
9233 (nonlocal_goto_receiver): New targetm instruction patterns.
9234 * builtins.c (expand_builtin_setjmp_setup): Use them instead
9235 of HAVE_*/gen_* interface.
9236 (expand_builtin_setjmp_receiver): Likewise.
9237 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
9238 * except.c (expand_dw2_landing_pad_for_region): Likewise.
9240 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9242 * target.def: Add code_for_* hooks.
9243 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
9244 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
9245 * target-insns.def (casesi, tablejump): New targetm instruction
9247 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
9248 (do_tablejump): Likewise.
9249 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
9250 (expand_sjlj_dispatch_table): Likewise.
9251 * targhooks.c (default_case_values_threshold): Likewise.
9253 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
9255 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
9256 Use rtx_insn * instead of rtx.
9257 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
9258 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
9259 (nios2_call_tls_get_addr): Likewise.
9260 (nios2_emit_expensive_div): Likewise.
9261 (nios2_emit_move_sequence): Change return type to bool.
9262 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
9263 Change return type to bool.
9265 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9268 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
9270 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
9273 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
9274 of register_operand. Remove constraint.
9276 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
9278 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
9281 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
9283 * attribs.c (decl_attributes): Guard inform with the return value
9284 of the preceding warning.
9286 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
9288 * doc/invoke.texi (moverride): Move to correct section.
9290 2015-07-03 Richard Biener <rguenther@suse.de>
9292 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
9294 (dt_operand::gen_gimple_expr): After valueizing operands
9295 re-canonicalize operand order for commutative tree codes.
9297 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
9300 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
9302 (__crc32w): Likewise.
9303 (__crc32d): Likewise.
9304 (__rdpmc): Likewise.
9305 (__rdtscp): Likewise.
9307 (_rdtscp): Likewise.
9308 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
9311 2015-07-03 Richard Biener <rguenther@suse.de>
9313 * fold-const.c (fold_mathfn_compare): Remove.
9314 (fold_inf_compare): Likewise.
9315 (fold_comparison): Move floating point comparison simplifications...
9316 * match.pd: ... to patterns here. Introduce simple_comparisons
9317 operator list and use it for patterns formerly in fold_comparison.
9319 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
9321 PR tree-optimization/66119
9322 * toplev.c (process_options): Don't set up default values for
9323 the sra_max_scalarization_size_{speed,size} parameters.
9324 * tree-sra (analyze_all_variable_accesses): If no values
9325 have been set for the sra_max_scalarization_size_{speed,size}
9326 parameters, call get_move_ratio to get target defaults.
9328 2015-07-03 Richard Biener <rguenther@suse.de>
9330 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
9331 * match.pd: ... here.
9333 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
9336 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
9337 is not actually the default on FreeBSD.
9339 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9341 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
9343 (CMPGE_8HI): Likewise.
9344 (CMPGE_4SI): Likewise.
9345 (CMPGE_2DI): Likewise.
9346 (CMPGE_U16QI): Likewise.
9347 (CMPGE_U8HI): Likewise.
9348 (CMPGE_U4SI): Likewise.
9349 (CMPGE_U2DI): Likewise.
9350 (CMPLE_16QI): Likewise.
9351 (CMPLE_8HI): Likewise.
9352 (CMPLE_4SI): Likewise.
9353 (CMPLE_2DI): Likewise.
9354 (CMPLE_U16QI): Likewise.
9355 (CMPLE_U8HI): Likewise.
9356 (CMPLE_U4SI): Likewise.
9357 (CMPLE_U2DI): Likewise.
9358 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9359 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
9360 ALTIVEC_BUILTIN_VEC_CMPLE.
9361 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
9362 floating-point vector modes.
9363 (vector_nlt<mode>): New define_expand.
9364 (vector_nltu<mode>): Likewise.
9365 (vector_ngt<mode>): Likewise.
9366 (vector_ngtu<mode>): Likewise.
9368 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9370 PR rtl-optimization/66706
9371 * combine.c (make_compound_operation): If an AND of SUBREG of
9372 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
9374 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
9376 * tree-pass.h (make_pass_ch_vect): New.
9377 * passes.def: Add pass_ch_vect just before pass_if_conversion.
9379 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
9380 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
9381 make_pass_ch_vect): New.
9382 (pass_ch): Extend ch_base.
9384 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
9385 (ch_base::copy_headers): ...here.
9387 2015-07-02 Richard Biener <rguenther@suse.de>
9389 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
9390 * fold-const.c (get_pointer_modulus_and_residue): Remove.
9391 (fold_binary_loc): Implement (T)ptr & CST in terms of
9392 get_pointer_alignment_1.
9393 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
9394 Make sure to build the alignment test on a SSA name without
9395 final alignment info valid only after the prologue.
9397 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
9399 * config/cris/cris.md ("epilogue"): Remove condition.
9400 ("prologue"): Ditto.
9402 2015-07-02 Richard Biener <rguenther@suse.de>
9404 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
9405 parameter to record a condition that is false.
9406 (record_conditions): When recording an extra NE_EXPR that is
9407 true also record a EQ_EXPR that is false.
9409 2015-07-02 Bin Cheng <bin.cheng@arm.com>
9411 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
9412 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
9413 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
9414 (set_iv, find_interesting_uses_address, add_candidate_1): New
9415 argument to alloc_iv.
9416 (find_interesting_uses_op, find_interesting_uses_cond): Don't
9417 duplicate struct iv.
9418 (free_loop_data): Don't free struct iv explicitly.
9419 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
9421 2015-07-01 DJ Delorie <dj@redhat.com>
9423 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
9425 (SUPPORTS_DISCRIMINATOR): Define.
9427 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
9430 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
9431 there are no CALLs in the same pattern.
9433 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9435 PR rtl-optimization/61047
9436 * rtlanal.c (get_initial_register_offset): New function.
9437 (rtx_addr_can_trap_p_1): Check offsets of stack references.
9439 2015-07-01 Richard Biener <rguenther@suse.de>
9441 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
9442 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
9443 ~X CMP C -> X CMP' ~C to ...
9444 * match.pd: ... patterns here.
9446 2015-07-01 Nick Clifton <nickc@redhat.com>
9448 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
9449 a 16-bit value into a 20-bit memory slot.
9451 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9453 * doc/sourcebuild.texi (AArch64-specific attributes): Document
9454 "aarch64_tiny", "aarch64_small", "aarch64_large",
9455 "aarch64_little_endian", "aarch64_big_endian".
9457 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9459 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
9460 Document "aarch64_small_fpic".
9462 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9464 * configure.ac: Add check for aarch64 assembler -fpic relocation
9466 * configure: Regenerate.
9467 * config.in: Regenerate.
9468 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
9469 to -fPIC if not support of -fpic relocation modifier in assembler.
9471 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
9474 * rtl.c (classify_insn): Handle returns in PARALLELs.
9476 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
9479 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
9480 to true if the function is nested and if not optimizing.
9481 (convert_local_omp_clauses): Initialize need_frame to true if the
9482 function contains nested functions and if not optimizing.
9484 2015-07-01 Richard Biener <rguenther@suse.de>
9486 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
9487 (X & Y) ^ Y -> ~X & Y transforms to ...
9488 * match.pd: ... here.
9490 2015-07-01 Richard Biener <rguenther@suse.de>
9492 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
9493 of converts to avoid uninteresting noise from the conversion
9494 simplifying patterns.
9496 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
9498 * config/c6x/c6x.c (try_rename_operands): Do not depend on
9499 gcc_assert evaluating its argument for side-effect.
9501 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
9504 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
9507 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
9509 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
9510 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
9511 (hash_scc): Add this_ref_p and ref_p parameters and pass them
9512 to the inner DFS walk.
9514 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9516 * target-insns.def (jump): New targetm instruction pattern.
9517 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
9518 instead of gen_jump.
9519 (fix_up_crossing_landing_pad): Likewise.
9520 (add_labels_and_missing_jumps): Likewise.
9521 (fix_crossing_conditional_branches): Likewise.
9522 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9523 (force_nonfallthru_and_redirect): Likewise.
9524 * cse.c (cse_insn): Likewise.
9525 * expmed.c (expand_divmod): Likewise.
9526 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
9527 * haifa-sched.c (init_before_recovery): Likewise.
9528 (sched_create_recovery_edges): Likewise.
9529 * ifcvt.c (find_cond_trap): Likewise.
9530 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
9531 (expand_float, expand_fix): Likewise.
9532 * stmt.c (emit_jump): Likewise.
9534 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9536 * defaults.h (HAVE_load_multiple, gen_load_multiple)
9537 (HAVE_store_multiple, gen_store_multiple): Delete.
9538 * target-insns.def (load_multiple, store_multiple): New targetm
9539 instruction patterns.
9540 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
9541 of HAVE_*/gen_* interface.
9543 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9545 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
9546 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
9547 (gen_mem_signal_fence): Delete.
9548 * target-insns.def (mem_signal_fence, mem_thread_fence)
9549 (memory_barrier): New targetm instruction patterns.
9550 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
9552 (expand_mem_signal_fence): Likewise.
9554 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9556 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
9557 * target-insns.def (epilogue, prologue, sibcall_prologue): New
9558 targetm instruction patterns.
9559 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
9561 * calls.c (expand_call): Likewise.
9562 * cfgrtl.c (cfg_layout_finalize): Likewise.
9563 * df-scan.c (df_get_entry_block_def_set): Likewise.
9564 (df_get_exit_block_use_set): Likewise.
9565 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
9566 * final.c (final_start_function): Likewise.
9567 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9568 (reposition_prologue_and_epilogue_notes): Likewise.
9569 * reorg.c (find_end_label): Likewise.
9570 * toplev.c (process_options): Likewise.
9572 2015-06-30 David Malcolm <dmalcolm@redhat.com>
9574 * typed-splay-tree.h: New file.
9576 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
9579 * lra-int.h (lra_substitute_pseudo): Add a parameter.
9580 (lra_substitute_pseudo_within_insn): Ditto.
9581 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
9583 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
9584 to lra_substitute_pseudo.
9585 * lra-lives.c (process_bb_lives): Add an argument to
9586 lra_substitute_pseudo_within_insn call.
9587 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
9588 argument to lra_substitute_pseudo and
9589 lra_substitute_pseudo_within_insn calls.
9590 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
9592 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
9594 * configure: Regenerated.
9596 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
9598 * config.gcc: Support i[34567]86-*-elfiamcu target.
9599 * config/i386/iamcu.h: New.
9600 * config/i386/i386.opt: Add -miamcu.
9601 * doc/invoke.texi: Document -miamcu.
9602 * common/config/i386/i386-common.c (ix86_handle_option): Turn
9603 off x87/MMX/SSE/AVX codegen for -miamcu.
9604 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9605 __iamcu/__iamcu__ for -miamcu.
9606 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
9607 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
9608 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
9609 * config/i386/i386.c (ix86_option_override_internal): Ignore and
9610 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
9611 MCU by default. Default long double to 64-bit for Intel MCU.
9612 Turn on -freg-struct-return for Intel MCU. Issue an error when
9613 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
9615 (function_arg_advance_32): Pass value whose size is no larger
9616 than 8 bytes in registers for Intel MCU.
9617 (function_arg_32): Likewise.
9618 (ix86_return_in_memory): Return value whose size is no larger
9619 than 8 bytes in registers for Intel MCU.
9620 (iamcu_alignment): New function.
9621 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
9623 (ix86_local_alignment): Don't increase alignment for Intel MCU.
9624 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
9627 2015-06-30 Marek Polacek <polacek@redhat.com>
9629 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
9630 both operands of the resulting expression.
9632 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
9633 the final expression with the operand's type and then convert
9634 it to the type of the expression.
9636 2015-06-30 Richard Biener <rguenther@suse.de>
9638 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
9639 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
9640 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
9641 * match.pd: ... to patterns here.
9643 2015-06-30 Richard Biener <rguenther@suse.de>
9645 PR tree-optimization/66704
9646 * tree-vect-data-refs.c (vect_setup_realignment): Use
9647 make_ssa_name for non-SSA name source.
9649 2015-06-30 Jakub Jelinek <jakub@redhat.com>
9652 * omp-low.c (simd_clone_adjust): Handle addressable linear
9653 or uniform parameters or non-gimple type uniform parameters.
9655 2015-06-30 Richard Biener <rguenther@suse.de>
9657 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
9658 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
9659 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
9660 * match.pd: ... here.
9661 Add a few cases of A - B -> A + (-B) when B "easily" negates.
9662 Move (x & y) | x -> x and friends before
9663 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
9665 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
9667 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
9668 -mfix-ut699 is not specified.
9669 (leon3_load): Rename into...
9670 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
9673 2015-06-30 Marek Polacek <polacek@redhat.com>
9675 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
9676 * match.pd: ... here.
9678 2015-06-30 Richard Biener <rguenther@suse.de>
9680 * target-insns.def (canonicalize_funcptr_for_compare): Add.
9681 * fold-const.c (build_range_check): Replace uses of
9682 HAVE_canonicalize_funcptr_for_compare.
9683 (fold_widened_comparison): Likewise.
9684 (fold_sign_changed_comparison): Likewise.
9685 * dojump.c: Include "target.h".
9686 (do_compare_and_jump): Replace uses of
9687 HAVE_canonicalize_funcptr_for_compare and
9688 gen_canonicalize_funcptr_for_compare.
9689 * expr.c (do_store_flag): Likewise.
9691 2015-06-30 Tom de Vries <tom@codesourcery.com>
9693 PR tree-optimization/66652
9694 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
9695 max_loop_iterations to determine if nit + 1 overflows.
9697 2015-06-30 Richard Biener <rguenther@suse.de>
9699 * tree-vrp.c (register_edge_assert_for_2): Also register
9700 asserts for dominating conversion results.
9702 2015-06-30 Bin Cheng <bin.cheng@arm.com>
9704 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
9707 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
9710 * configure.ac: Fix filds and fildq test for 64-bit.
9711 * configure: Regenerated.
9713 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
9715 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
9716 (nvptx_reorg): Here. Keep the non-subreg pieces.
9718 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
9720 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
9721 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
9723 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
9725 * config/i386/i386.md (*jcc_1): Use %! in asm template.
9726 Set attribute "length_nobnd" instead of "length".
9729 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
9731 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
9733 * config/nios2/nios2.c (nios2_delegitimize_address): Make
9734 assert less restrictive.
9736 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
9739 * cgraphunit.c (cgraph_node::finalize_function): Do not call
9740 do_warn_unused_parameter.
9741 * function.c (do_warn_unused_parameter): Move from here.
9742 * function.h (do_warn_unused_parameter): Do not declare.
9744 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9747 * gcc.target/arm/armv-sync-comp-swap.c: New.
9748 * gcc.target/arm/armv-sync-op-acquire.c: New.
9749 * gcc.target/arm/armv-sync-op-full.c: New.
9750 * gcc.target/arm/armv-sync-op-release.c: New.
9752 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9755 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
9756 initial acquire barrier with final barrier.
9758 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9761 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
9762 initial acquire barrier with final barrier.
9764 2015-06-29 Richard Henderson <rth@redhat.com>
9766 * config/i386/constraints.md (Bf): New constraint.
9767 * config/i386/i386-c.c (ix86_target_macros): Define
9768 __GCC_ASM_FLAG_OUTPUTS__.
9769 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
9771 * doc/extend.texi (FlagOutputOperands): Document them.
9773 2015-06-29 Jiong Wang <jiong.wang@arm.com>
9775 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
9776 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
9778 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
9779 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
9780 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
9781 (aarch64_symbol_context): Ditto.
9782 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
9783 and use new pattern name.
9784 (aarch64_expand_mov_immediate): Ditto.
9785 (aarch64_print_operand): Ditto.
9786 (aarch64_classify_tls_symbol): Ditto.
9788 2015-06-29 Marek Polacek <polacek@redhat.com>
9789 Marc Glisse <marc.glisse@inria.fr>
9791 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
9792 * match.pd: ... pattern here.
9794 2015-06-29 Tom de Vries <tom@codesourcery.com>
9796 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
9799 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9801 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
9802 feature description, split out the native option, add a link to
9803 the feature documentation, rearrange and slightly rewrite text.
9804 (Aarch64 options, -mcpu): Likewise.
9805 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
9806 +rdma implies Adv. SIMD.
9808 2015-06-29 Marek Polacek <polacek@redhat.com>
9811 * function.c (stack_protect_epilogue): Remove a cast to int.
9812 * doc/invoke.texi: Update -Wswitch-bool description.
9814 2015-06-29 Richard Biener <rguenther@suse.de>
9816 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
9817 * fold-const.c (fold_binary_loc): Move &A - &B simplification
9818 via ptr_difference_const ...
9819 * match.pd: ... here.
9820 When matching (X ^ Y) == Y also match with swapped operands.
9822 2015-06-29 Richard Biener <rguenther@suse.de>
9824 * lto-streamer.h (LTO_major_version): Bump to 5.
9826 2015-06-29 Richard Biener <rguenther@suse.de>
9828 PR tree-optimization/66677
9829 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
9830 STMT_VINFO_VEC_STMT clobbering less strict.
9832 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
9835 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
9836 division, compute max and min when value ranges for dividend and
9837 divisor are available.
9839 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
9840 Sandra Loosemore <sandra@codesourcery.com>
9842 * regrename.h (regrename_do_replace): Change to return bool.
9843 * regrename.c (rename_chains): Check return value of
9845 (regrename_do_replace): Re-validate the modified insns and
9847 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
9848 Update to match rename_chains changes.
9849 * config/c6x/c6x.c (try_rename_operands): Assert that
9850 regrename_do_replace returns true.
9852 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
9854 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
9855 operand 2 here. Use copy_addr_to_reg to copy non-index
9856 register operand 2 to a temporary.
9857 (<mode>_stx): Ditto for operand 1.
9858 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
9859 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
9860 (ix86_store_bounds): Ditto.
9862 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
9864 * print-tree.c (print_node) [TREE_VEC]: Print its length.
9866 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
9868 * gimple.c (gimple_call_set_fndecl): Remove.
9869 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
9870 build1_loc directly instead of build_fold_addr_expr_loc.
9872 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
9874 * hash-map.h (hash_map::traverse): Use the definition of the
9875 Key typedef rather than the typedef itself.
9877 2015-06-26 Martin Jambor <mjambor@suse.cz>
9880 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
9881 NULL instead of calling dump_enabled_p.
9883 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9885 * config/aarch64/aarch64.opt: (override): New.
9886 * doc/invoke.texi (override): Document.
9887 * config/aarch64/aarch64.c (aarch64_flag_desc): New
9888 (aarch64_fusible_pairs): Likewise.
9889 (aarch64_tuning_flags): Likewise.
9890 (aarch64_tuning_override_function): Likewise.
9891 (aarch64_tuning_override_functions): Likewise.
9892 (aarch64_parse_one_option_token): Likewise.
9893 (aarch64_parse_boolean_options): Likewise.
9894 (aarch64_parse_fuse_string): Likewise.
9895 (aarch64_parse_tune_string): Likewise.
9896 (aarch64_parse_one_override_token): Likewise.
9897 (aarch64_parse_override_string): Likewise.
9898 (aarch64_override_options): Parse the -override string if it
9901 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9903 * config/aarch64/aarch64-protos.h (tune_params): Remove
9905 (aarch64_tune_params): Remove const, change to no longer be
9907 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
9908 change to no longer be a pointer, initialize to generic_tunings.
9909 (aarch64_min_divisions_for_recip_mul): Change dereference of
9910 aarch64_tune_params to member access.
9911 (aarch64_reassociation_width): Likewise.
9912 (aarch64_rtx_mult_cost): Likewise.
9913 (aarch64_address_cost): Likewise.
9914 (aarch64_branch_cost): Likewise.
9915 (aarch64_rtx_costs): Likewise.
9916 (aarch64_register_move_cost): Likewise.
9917 (aarch64_memory_move_cost): Likewise.
9918 (aarch64_sched_issue_rate): Likewise.
9919 (aarch64_builtin_vectorization_cost): Likewise.
9920 (aarch64_override_options): Take a copy of the selected tuning
9921 struct in to aarch64_tune_params, rather than just setting
9922 a pointer, change dereferences of aarch64_tune_params to member
9924 (aarch64_override_options_after_change): Change dereferences of
9925 aarch64_tune_params to member access.
9926 (aarch64_macro_fusion_p): Likewise.
9927 (aarch_macro_fusion_pair_p): Likewise.
9928 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
9930 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9932 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
9933 (aarch64_tune_flags): Likewise.
9934 (AARCH64_TUNE_FMA_STEERING): Likewise.
9935 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
9936 to AARCH64_FL_USE_FMA_STEERING_PASS.
9937 (cortex-a57.cortex-a53): Likewise.
9938 (cortex-a72): Use cortexa72_tunings.
9939 (cortex-a72.cortex-a53): Likewise.
9940 (exynos-m1): Likewise.
9941 * config/aarch64/aarch64-protos.h (tune_params): Add
9942 a field: extra_tuning_flags.
9943 * config/aarch64/aarch64-tuning-flags.def: New.
9944 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
9945 (aarch64_extra_tuning_flags): Likewise.
9946 (aarch64_tune_params): Declare here.
9947 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
9948 (cortexa53_tunings): Likewise.
9949 (cortexa57_tunings): Likewise.
9950 (thunderx_tunings): Likewise.
9951 (xgene1_tunings): Likewise.
9952 (cortexa72_tunings): New.
9953 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
9954 (gate): Check against aarch64_tune_params.
9955 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
9958 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9960 * config/aarch64/aarch64-fusion-pairs.def: New.
9961 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
9962 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
9963 aarch64_fusion_pairs.
9964 (AARCH64_FUSE_MOV_MOVK): Likewise.
9965 (AARCH64_FUSE_ADRP_ADD): Likewise.
9966 (AARCH64_FUSE_MOVK_MOVK): Likewise.
9967 (AARCH64_FUSE_ADRP_LDR): Likewise.
9968 (AARCH64_FUSE_CMP_BRANCH): Likewise.
9970 2015-06-26 Jiong Wang <jiong.wang@arm.com>
9972 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
9973 SYMBOL_SMALL_GOT_28K.
9974 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
9975 relocation modifiers.
9976 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
9977 (ldr_got_small_28k_<mode>): New.
9978 (ldr_got_small_28k_sidi): New.
9979 * config/aarch64/iterators.md (got_modifier): New mode iterator.
9980 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
9981 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
9982 SYMBOL_SMALL_GOT_28K.
9983 (aarch64_rtx_costs): Add costs for new instruction sequences.
9984 (initialize_aarch64_code_model): Initialize new model.
9985 (aarch64_classify_symbol): Recognize new model and new symbol classification.
9986 (aarch64_asm_preferred_eh_data_format): Support new model.
9987 (aarch64_load_symref_appropriately): Generate new instruction
9988 sequences for -fpic.
9989 (TARGET_USE_PSEUDO_PIC_REG): New definition.
9990 (aarch64_use_pseudo_pic_reg): New function.
9992 2015-06-26 Jiong Wang <jiong.wang@arm.com>
9994 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
9995 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
9996 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
9997 (aarch64_expand_mov_immediate): Ditto.
9998 (aarch64_print_operand): Ditto.
9999 (aarch64_classify_symbol): Ditto.
10001 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
10003 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
10005 2015-06-26 Bin Cheng <bin.cheng@arm.com>
10008 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
10009 assertion failed. Remove assertion itself.
10011 2015-06-26 Richard Biener <rguenther@suse.de>
10013 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
10014 and -A CMP CST -> A CMP -CST which is redundant with a pattern
10016 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
10017 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
10018 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
10019 * match.pd: ... patterns here.
10021 2015-06-26 Marek Polacek <polacek@redhat.com>
10023 * match.pd ((x | y) & ~(x & y) -> x ^ y,
10024 (x | y) & (~x ^ y) -> x & y): New patterns.
10026 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
10028 * rtl.h (emit): Add an optional boolean parameter to control
10029 whether barriers are emitted.
10030 * emit-rtl.c (emit): Likewise.
10031 * gensupport.c (get_emit_function): Return null rather than "emit".
10032 * genemit.c (gen_emit_seq): Handle the null return value.
10033 Don't emit barriers after the final instruction in the sequence.
10034 * gentarget-def.c (main): Don't emit barriers after the instruction.
10036 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10038 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
10039 TARGET_UNIFIED_ASM.
10041 2015-06-26 Richard Biener <rguenther@suse.de>
10043 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
10045 2015-06-26 Richard Biener <rguenther@suse.de>
10047 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
10048 irrespective on whether the inner operation has a single use
10049 of both off are constant.
10051 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
10052 Segher Boessenkool <segher@kernel.crashing.org>
10055 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
10056 before doing PUT_MODE or PUT_CODE on operands to avoid
10057 in-place RTX modification.
10059 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
10061 * gentarget-def.c (def_target_insn): Cast return of strtol to
10064 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10066 * gimple.h (gimple_call_set_fn): Move inline function.
10067 * gimple.c (gimple_call_set_fn): Relocate here.
10069 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
10073 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
10074 the replacement insn will work.
10076 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
10078 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
10081 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10083 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
10084 * cgraph.h: Include ipa-ref.h and plugin-api.h.
10085 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
10086 (symtab_node::address_can_be_compared_p): Move function.
10087 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
10089 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
10090 * auto-profile.c: Likewise.
10091 * bb-reorder.c: Likewise.
10092 * builtins.c: Likewise.
10093 * calls.c: Likewise.
10094 * cfgexpand.c: Likewise.
10095 * cgraphbuild.c: Likewise.
10096 * cgraphclones.c: Likewise.
10097 * cgraphunit.c: Likewise.
10098 * combine.c: Likewise.
10099 * coverage.c: Likewise.
10100 * data-streamer-in.c: Likewise.
10101 * data-streamer-out.c: Likewise.
10102 * data-streamer.c: Likewise.
10103 * dbxout.c: Likewise.
10104 * dwarf2out.c: Likewise.
10105 * except.c: Likewise.
10106 * expr.c: Likewise.
10107 * final.c: Likewise.
10108 * fold-const.c: Likewise.
10109 * ggc-page.c: Likewise.
10110 * gimple-fold.c: Likewise.
10111 * gimple-iterator.c: Likewise.
10112 * gimple-pretty-print.c: Likewise.
10113 * gimple-streamer-in.c: Likewise.
10114 * gimple-streamer-out.c: Likewise.
10115 * gimple.c: Likewise.
10116 * gimplify.c: Likewise.
10117 * ipa-chkp.c: Likewise.
10118 * ipa-comdats.c: Likewise.
10119 * ipa-cp.c: Likewise.
10120 * ipa-devirt.c: Likewise.
10121 * ipa-icf-gimple.c: Likewise.
10122 * ipa-icf.c: Likewise.
10123 * ipa-inline-analysis.c: Likewise.
10124 * ipa-inline-transform.c: Likewise.
10125 * ipa-inline.c: Likewise.
10126 * ipa-polymorphic-call.c: Likewise.
10127 * ipa-profile.c: Likewise.
10128 * ipa-prop.c: Likewise.
10129 * ipa-pure-const.c: Likewise.
10130 * ipa-ref.c: Likewise.
10131 * ipa-reference.c: Likewise.
10132 * ipa-split.c: Likewise.
10133 * ipa-utils.c: Likewise.
10134 * ipa-visibility.c: Likewise.
10136 * langhooks.c: Likewise.
10137 * lto-cgraph.c: Likewise.
10138 * lto-compress.c: Likewise.
10139 * lto-opts.c: Likewise.
10140 * lto-section-in.c: Likewise.
10141 * lto-section-out.c: Likewise.
10142 * lto-streamer-in.c: Likewise.
10143 * lto-streamer-out.c: Likewise.
10144 * lto-streamer.c: Likewise.
10145 * omp-low.c: Likewise.
10146 * opts-global.c: Likewise.
10147 * passes.c: Likewise.
10148 * predict.c: Likewise.
10149 * print-tree.c: Likewise.
10150 * profile.c: Likewise.
10152 * sanopt.c: Likewise.
10153 * stor-layout.c: Likewise.
10154 * symtab.c: Likewise.
10155 * toplev.c: Likewise.
10156 * trans-mem.c: Likewise.
10157 * tree-cfg.c: Likewise.
10158 * tree-chkp.c: Likewise.
10159 * tree-eh.c: Likewise.
10160 * tree-emutls.c: Likewise.
10161 * tree-inline.c: Likewise.
10162 * tree-nested.c: Likewise.
10163 * tree-parloops.c: Likewise.
10164 * tree-pretty-print.c: Likewise.
10165 * tree-profile.c: Likewise.
10166 * tree-sra.c: Likewise.
10167 * tree-ssa-alias.c: Likewise.
10168 * tree-ssa-live.c: Likewise.
10169 * tree-ssa-loop-ivcanon.c: Likewise.
10170 * tree-ssa-loop-ivopts.c: Likewise.
10171 * tree-ssa-pre.c: Likewise.
10172 * tree-ssa-sccvn.c: Likewise.
10173 * tree-ssa-strlen.c: Likewise.
10174 * tree-ssa-structalias.c: Likewise.
10175 * tree-streamer-in.c: Likewise.
10176 * tree-streamer-out.c: Likewise.
10177 * tree-streamer.c: Likewise.
10178 * tree-switch-conversion.c: Likewise.
10179 * tree-tailcall.c: Likewise.
10180 * tree-vect-data-refs.c: Likewise.
10181 * tree-vect-stmts.c: Likewise.
10182 * tree-vectorizer.c: Likewise.
10183 * tree.c: Likewise.
10184 * tsan.c: Likewise.
10185 * ubsan.c: Likewise.
10186 * value-prof.c: Likewise.
10187 * varasm.c: Likewise.
10188 * varpool.c: Likewise.
10189 * config/arm/arm.c: Likewise.
10190 * config/bfin/bfin.c: Likewise.
10191 * config/c6x/c6x.c: Likewise.
10192 * config/cris/cris.c: Likewise.
10193 * config/darwin-c.c: Likewise.
10194 * config/darwin.c: Likewise.
10195 * config/i386/i386.c: Likewise.
10196 * config/i386/winnt.c: Likewise.
10197 * config/microblaze/microblaze.c: Likewise.
10198 * config/mips/mips.c: Likewise.
10199 * config/rs6000/rs6000.c: Likewise.
10200 * config/rx/rx.c: Likewise.
10201 * config/s390/s390.c: Likewise.
10202 * config/tilegx/mul-tables.c: Likewise.
10204 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10206 * config/aarch64/aarch64.c, config/alpha/alpha.c,
10207 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
10208 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
10209 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
10210 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
10211 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
10212 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
10213 config/microblaze/microblaze.c, config/mips/mips.c,
10214 config/mmix/mmix.c, config/mn10300/mn10300.c,
10215 config/moxie/moxie.c, config/msp430/msp430.c,
10216 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
10217 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
10218 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
10219 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
10220 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10221 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
10222 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
10223 target-def.h include.
10224 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
10226 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10228 * Makefile.in (TARGET_DEF): Add target-insns.def.
10229 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
10230 (build/gentarget-def.o): New rule.
10231 (genprogrtl): Add target-def.
10232 * target-insns.def, gentarget-def.c: New files.
10233 * target.def: Add targetm.have_* and targetm.gen_* hooks,
10234 based on the contents of target-insns.def.
10235 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
10236 (HAVE_return, gen_return): Delete.
10237 * target-def.h: Include insn-target-def.h.
10238 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
10239 instead of direct calls. Rely on them to do the appropriate assertions.
10240 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
10241 (convert_jumps_to_returns): Use targetm interface instead of
10243 (thread_prologue_and_epilogue_insns): Likewise.
10244 * reorg.c (find_end_label, dbr_schedule): Likewise.
10245 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
10246 * shrink-wrap.c (convert_to_simple_return): Likewise.
10247 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
10249 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10251 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
10252 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10253 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
10254 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
10255 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
10256 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
10257 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
10258 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
10259 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
10260 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
10261 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
10262 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
10263 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
10264 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10265 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
10266 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
10269 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10271 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
10272 (unbounded_int_hashmap_traits::key_type): Likewise.
10273 * hash-map.h (hash_map): Get the key type from the traits.
10274 * hash-traits.h (default_hash_traits): By default, inherit from the
10275 template parameter.
10276 * alias.c (alias_set_traits): Delete.
10277 (alias_set_entry_d::children): Use alias_set_hash as the first
10278 template parameter.
10279 (record_alias_subset): Update accordingly.
10280 * except.c (tree_hash_traits): Delete.
10281 (type_to_runtime_map): Use tree_hash as the first template parameter.
10282 (init_eh): Update accordingly.
10283 * genmatch.c (capture_id_map_hasher): Delete.
10284 (cid_map_t): Use nofree_string_hash as first template parameter.
10285 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
10286 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
10287 Use symbol_compare_hash as the first template parameter in
10288 subdivide_hash_map.
10289 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
10290 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
10291 template parameter.
10292 * passes.c (pass_registry_hasher): Delete.
10293 (name_to_pass_map): Use nofree_string_hash as the first template
10295 (register_pass_name): Update accordingly.
10296 * sanopt.c (sanopt_tree_map_traits): Delete.
10297 (sanopt_tree_triplet_map_traits): Delete.
10298 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
10299 template parameter.
10300 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
10301 the first template parameter.
10302 * sese.c (rename_map_hasher): Delete.
10303 (rename_map_type): Use tree_ssa_name_hash as the first template
10305 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
10306 (function_summary::m_map): Use map_hash as the first template
10308 (function_summary::release): Update accordingly.
10309 * tree-if-conv.c (phi_args_hash_traits): Delete.
10310 (predicate_scalar_phi): Use tree_operand_hash as the first template
10311 parameter to phi_arg_map.
10312 * tree-inline.h (dependence_hasher): Delete.
10313 (copy_body_data::dependence_map): Use dependence_hash as the first
10314 template parameter.
10315 * tree-inline.c (remap_dependence_clique): Update accordingly.
10316 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
10317 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
10319 (addr_stridxptr): Update accordingly.
10320 * value-prof.c (profile_id_traits): Delete.
10321 (cgraph_node_map): Use profile_id_hash as the first template
10323 (init_node_map): Update accordingly.
10324 * config/alpha/alpha.c (string_traits): Delete.
10325 (machine_function::links): Use nofree_string_hash as the first
10326 template parameter.
10327 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
10328 * config/m32c/m32c.c (pragma_traits): Delete.
10329 (pragma_htab): Use nofree_string_hash as the first template parameter.
10330 (m32c_note_pragma_address): Update accordingly.
10331 * config/mep/mep.c (pragma_traits): Delete.
10332 (pragma_htab): Use nofree_string_hash as the first template parameter.
10333 (mep_note_pragma_flag): Update accordingly.
10334 * config/mips/mips.c (mips16_flip_traits): Delete.
10335 (mflip_mips16_htab): Use nofree_string_hash as the first template
10337 (mflip_mips16_use_mips16_p): Update accordingly.
10338 (local_alias_traits): Delete.
10339 (mips16_local_aliases): Use nofree_string_hash as the first template
10341 (mips16_local_alias): Update accordingly.
10343 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10345 * hash-map-traits.h (default_hashmap_traits): Delete.
10347 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10349 * hash-map-traits.h (unbounded_hashmap_traits): New class.
10350 (unbounded_int_hashmap_traits): Likewise.
10351 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
10353 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10355 * ipa-icf.h (symbol_compare_hash): New class.
10356 (symbol_compare_hashmap_traits): Use it.
10357 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
10358 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
10359 (mem_alloc_description::reverse_mem_map_t): Remove redundant
10360 default_hashmap_traits.
10361 * sanopt.c (sanopt_tree_triplet_hash): New class.
10362 (sanopt_tree_triplet_map_traits): Use it.
10364 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10366 * gengtype-parse.c (require_template_declaration): Allow '+' in
10367 template parameters. Consolidate cases.
10368 * hash-traits.h (int_hash): New class.
10369 * alias.c (alias_set_hash): New structure.
10370 (alias_set_traits): Use it.
10371 * symbol-summary.h (function_summary::map_hash): New class.
10372 (function_summary::summary_hashmap_traits): Use it.
10373 * tree-inline.h (dependence_hash): New class.
10374 (dependence_hasher): Use it.
10375 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
10376 * value-prof.c (profile_id_hash): New class.
10377 (profile_id_traits): Use it.
10379 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10381 * config/mips/mips.c (mips16_flip_traits): Use it.
10382 (local_alias_traits, mips16_local_aliases): Convert from a map of
10383 rtxes to a map of symbol names.
10384 (mips16_local_alias): Update accordingly.
10386 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10388 * hash-traits.h (string_hash, nofree_string_hash): New classes.
10389 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
10390 * passes.c (pass_registry_hasher): Likewise.
10391 * config/alpha/alpha.c (string_traits): Likewise.
10392 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
10393 * config/m32c/m32c.c (pragma_traits): Likewise.
10394 * config/mep/mep.c (pragma_traits): Likewise.
10396 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10398 * tree-hash-traits.h (tree_hash): New class.
10399 * except.c: Include tree-hash-traits.h.
10400 (tree_hash_traits): Use tree_hash.
10402 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10404 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
10405 * sese.c: Include tree-hash-traits.h.
10406 (rename_map_hasher): Use tree_ssa_name_hasher.
10408 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10410 * tree-hash-traits.h (tree_decl_hash): New class.
10411 * tree-ssa-strlen.c: Include tree-hash-traits.h.
10412 (stridxlist_hash_traits): Use tree_decl_hash.
10414 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10416 * tree-hash-traits.h: New file.
10417 (tree_operand_hash): New class.
10418 * sanopt.c: Include tree-hash-traits.h.
10419 (sanopt_tree_map_traits): Use tree_operand_hash.
10420 * tree-if-conv.c: Include tree-hash-traits.h.
10421 (phi_args_hash_traits): Use tree_operand_hash.
10422 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
10423 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
10425 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10427 * hash-map-traits.h: Include hash-traits.h.
10428 (simple_hashmap_traits): New class.
10429 * mem-stats.h (hash_map): Change the default traits to
10430 simple_hashmap_traits<default_hash_traits<Key> >.
10432 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10434 * hash-table.h: Update comments.
10436 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10438 * hash-traits.h (default_hash_traits): New structure.
10439 * hash-set.h (default_hashset_traits): Delete.
10440 (hash_set): Use default_hash_traits<Key> instead of
10441 default_hashset_traits. Delete hash_entry type and use Key directly.
10442 * ipa-devirt.c (pair_traits): Delete.
10443 (default_hash_traits <type_pair>): Override.
10444 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
10445 (odr_types_equivalent_p, add_type_duplicate): Likewise.
10447 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10449 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
10451 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10453 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
10454 (has_is_empty, is_empty_helper): Delete.
10455 (has_mark_deleted, mark_deleted_helper): Delete.
10456 (has_mark_empty, mark_empty_helper): Delete.
10457 (hash_table::is_deleted): Call the Descriptor unconditionally.
10458 (hash_table::is_empty): Likewise.
10459 (hash_table::mark_deleted): Likewise.
10460 (hash_table::mark_empty): Likewise.
10462 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10464 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
10465 redundant typedefs and members.
10466 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
10467 redundant typedefs.
10468 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
10469 * ipa-devirt.c (odr_name_hasher): Likewise.
10470 (polymorphic_call_target_hasher): Likewise.
10471 * ira-costs.c (cost_classes_hasher): Likewise.
10472 * statistics.c (stats_counter_hasher): Likewise.
10473 * trans-mem.c (log_entry_hasher): Likewise.
10474 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10475 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
10476 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
10477 * var-tracking.c (variable_hasher): Likewise.
10478 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
10479 Remove redundant typedefs and members.
10481 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10483 * hash-traits.h (ggc_cache_hasher): Rename to...
10484 (ggc_cache_remove): ...this and remove typedefs.
10485 (ggc_cache_ptr_hash): New class.
10486 * hash-table.h: Update commentary.
10487 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
10488 rather than ggc_cache_hasher.
10489 (const_wide_int_hasher, reg_attr_hasher): Likewise.
10490 (const_double_hasher, const_fixed_hasher): Likewise.
10491 * function.c (insn_cache_hasher): Likewise.
10492 * trans-mem.c (tm_wrapper_hasher): Likewise.
10493 * tree.h (tree_decl_map_cache_hasher): Likewise.
10494 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
10495 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
10496 * ubsan.c (tree_type_map_cache_hasher): Likewise.
10497 * varasm.c (tm_clone_hasher): Likewise.
10498 * config/i386/i386.c (dllimport_hasher): Likewise.
10499 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
10500 (tree_hasher): Likewise.
10502 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10504 * hash-traits.h (ggc_hasher): Rename to...
10505 (ggc_remover): ...this and remove typedefs.
10506 (ggc_cache_hasher): Update accordingly. Add typedefs.
10507 (ggc_ptr_hash): New class.
10508 * hash-table.h: Update comment.
10509 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
10511 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
10512 (tree_descriptor_hasher): Likewise.
10513 * cgraph.c (function_version_hasher): Likewise.
10514 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
10515 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
10516 (dw_loc_list_hasher, addr_hasher): Likewise.
10517 * function.h (used_type_hasher): Likewise.
10518 * function.c (temp_address_hasher): Likewise.
10519 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
10520 * libfuncs.h (libfunc_hasher): Likewise.
10521 * lto-streamer.h (decl_state_hasher): Likewise.
10522 * optabs.c (libfunc_decl_hasher): Likewise.
10523 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
10524 * varasm.c (section_hasher, object_block_hasher): Likewise.
10525 (const_rtx_desc_hasher): Likewise.
10526 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
10527 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
10529 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10531 * hash-traits.h (free_ptr_hash): New class.
10532 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
10533 rather than typed_free_remove. Remove redudant typedefs.
10534 (external_ref_hasher): Likewise.
10535 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
10536 (ehspec_hasher): Likewise.
10537 * ggc-common.c (saving_hasher): Likewise.
10538 * gimplify.c (gimplify_hasher): Likewise.
10539 * haifa-sched.c (delay_i2_hasher): Likewise.
10540 * loop-invariant.c (invariant_expr_hasher): Likewise.
10541 * loop-iv.c (biv_entry_hasher): Likewise.
10542 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
10543 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
10544 * tree-cfg.c (locus_discrim_hasher): Likewise.
10545 * tree-eh.c (finally_tree_hasher): Likewise.
10546 * tree-into-ssa.c (var_info_hasher): Likewise.
10547 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
10548 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
10549 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
10550 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
10551 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
10552 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
10553 (shared_bitmap_hasher): Likewise.
10554 * tree-ssa-threadupdate.c (redirection_data): Likewise.
10555 * tree-vectorizer.h (peel_info_hasher): Likewise.
10556 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
10557 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
10559 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10561 * hash-table.h: Update comments.
10562 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
10563 (nofree_ptr_hash): New class.
10564 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
10565 than typed_noop_remove. Remove redudant typedefs.
10566 * attribs.c (attribute_hasher): Likewise.
10567 * cfg.c (bb_copy_hasher): Likewise.
10568 * cselib.c (cselib_hasher): Likewise.
10569 * dse.c (invariant_group_base_hasher): Likewise.
10570 * dwarf2cfi.c (trace_info_hasher): Likewise.
10571 * dwarf2out.c (macinfo_entry_hasher): Likewise.
10572 (comdat_type_hasher, loc_list_hasher): Likewise.
10573 * gcse.c (pre_ldst_expr_hasher): Likewise.
10574 * genmatch.c (id_base): Likewise.
10575 * genrecog.c (test_pattern_hasher): Likewise.
10576 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
10577 * haifa-sched.c (delay_i1_hasher): Likewise.
10578 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
10579 * ipa-icf.h (congruence_class_group_hash): Likewise.
10580 * ipa-profile.c (histogram_hash): Likewise.
10581 * ira-color.c (allocno_hard_regs_hasher): Likewise.
10582 * lto-streamer.h (string_slot_hasher): Likewise.
10583 * lto-streamer.c (tree_entry_hasher): Likewise.
10584 * plugin.c (event_hasher): Likewise.
10585 * postreload-gcse.c (expr_hasher): Likewise.
10586 * store-motion.c (st_expr_hasher): Likewise.
10587 * tree-sra.c (uid_decl_hasher): Likewise.
10588 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
10589 (ssa_name_var_hash): Likewise.
10590 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
10591 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
10592 * tree-ssa-pre.c (pre_expr_d): Likewise.
10593 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
10594 * vtable-verify.h (registration_hasher): Likewise.
10595 * vtable-verify.c (vtbl_map_hasher): Likewise.
10596 * config/arm/arm.c (libcall_hasher): Likewise.
10597 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
10598 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
10599 * config/sol2.c (comdat_entry_hasher): Likewise.
10600 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
10601 (print_fold_checksum, fold_checksum_tree): Likewise.
10602 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
10603 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
10604 (fold_build_call_array_loc): Likewise.
10605 * tree-ssa-ccp.c (gimple_htab): Likewise.
10606 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
10607 rather than pointer_type.
10609 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10611 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
10612 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
10614 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10616 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
10617 (ggc_hasher::ggc_mx): Likewise.
10618 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
10619 that duplicate ggc_hasher ones.
10621 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10623 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
10624 (gt_cleare_cache): Check here for deleted and empty entries.
10625 Replace handle_cache_entry with a call to keep_cache_entry.
10626 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
10627 (ggc_cache_hasher::keep_cache_entry): New function.
10628 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
10629 (tm_wrapper_hasher::keep_cache_entry): New function.
10630 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
10631 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
10632 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
10633 (type_cache_hasher::keep_cache_entry): New function.
10634 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
10635 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
10636 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
10637 (tree_type_map_cache_hasher::keep_cache_entry): New function.
10638 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
10639 (tm_clone_hasher::keep_cache_entry): New function.
10640 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
10641 (dllimport_hasher::keep_cache_entry): New function.
10643 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10645 * hash-table.h: Include hash-traits.h.
10646 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
10647 (ggc_cache_hasher): Move to...
10648 * hash-traits.h: ...this new file.
10650 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10652 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
10653 struct cl_optimization.
10654 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
10655 * tree.c (make_node_stat): Allocate cl_optimization struct.
10656 (copy_node_stat): Allocate and copy cl_optimization struct.
10658 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10660 * function.h (struct incoming_args): Move struct.
10661 (pass_by_reference, reference_callee_copied): Remove prototypes.
10662 * emit-rtl.h (struct incoming_args): Relocate struct here.
10663 * calls.h (pass_by_reference, reference_callee_copied): Relocate
10665 * function.c (pass_by_reference, reference_callee_copied): Move.
10666 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
10667 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
10668 * ipa-chkp.c: Include calls.h.
10670 2015-06-25 Andrew Macleod <amacleod@redhat.com>
10672 * alias.h (alias_set_type): Move typedef.
10673 * coretypes.h (alias_set_type): Relocate typedef here.
10674 * rtl.h: Don't include alias.h.
10676 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10678 * cgraph.h (cgraph_rtl_info): Move to rtl.h
10679 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
10681 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
10682 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
10684 * calls.c: Include hard-reg-set.h before rtl.h.
10687 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10688 Vladimir Makarov <vmakarov@redhat.com>
10690 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
10693 2015-06-25 Richard Biener <rguenther@suse.de>
10695 * fold-const.c (fold_binary_loc): Move simplification of
10696 (X <<>> C1) & C2 ...
10697 * match.pd: ... here.
10699 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
10701 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
10703 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10705 * match.pd: Add patterns for vec_conds between 1 and 0.
10707 2015-06-25 Richard Biener <rguenther@suse.de>
10709 * tree-vect-stmts.c (vectorizable_conversion): Do not set
10710 STMT_VINFO_VEC_STMT for SLP.
10711 (vectorizable_store): Likewise.
10712 (vectorizable_load): Likewise.
10713 (vect_transform_stmt): Catch SLP vectorization clobbering
10714 STMT_VINFO_VEC_STMT.
10716 2015-06-25 Richard Biener <rguenther@suse.de>
10718 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
10720 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
10721 cleanup resulting dead code and parameters.
10722 (vect_transform_slp_perm_load): Adjust.
10724 2015-06-25 Nick Clifton <nickc@redhat.com>
10726 * config/bfin/bfin.c (bfin_expand_prologue): Set
10727 current_function_static_stack_size if flag_stack_usage_info is set.
10728 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
10729 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
10730 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10731 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
10733 2015-06-25 Tom de Vries <tom@codesourcery.com>
10735 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
10736 comment that the generated IV is unsigned.
10738 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10741 * config/arm/arm.c (arm_dbx_register_number): Return
10742 DWARF_FRAME_REGISTERS by default.
10744 2015-06-25 Tom de Vries <tom@codesourcery.com>
10746 * dominance.c (calculate_dominance_info): Fix verify_dominators call
10747 argument. Call verify_dominator when reusing dominator info.
10749 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
10752 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
10753 an additional element of the unspec vector. Modify indices
10755 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
10756 * config/sh/sh.c (prepare_move_operands): Pass incremented
10757 const_int to gen_GOTaddr2picreg.
10758 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
10760 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
10762 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
10763 Condition on TARGET_FLOAT.
10765 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
10767 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
10770 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
10772 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
10774 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
10775 aarch64_err_no_fpadvsimd.
10777 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
10778 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
10779 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
10780 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
10781 Turn error into assert, test TARGET_FLOAT.
10782 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
10785 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
10788 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
10790 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
10792 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
10794 2015-06-24 Renlin Li <renlin.li@arm.com>
10796 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
10797 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
10799 2015-06-24 Richard Biener <rguenther@suse.de>
10801 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
10803 (lower_opt_convert): Support lowering of conditional view_convert.
10804 (parser::parse_operation): Likewise.
10805 (parser::parse_for): Likewise.
10807 2015-06-24 Renlin Li <renlin.li@arm.com>
10809 * varasm.c (emit_local): Use unsigned int for align variable.
10811 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10814 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
10815 for negative numbers.
10817 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10819 PR rtl-optimization/66306
10820 * reload.c (find_reloads): Swap the match_dup info for
10821 commutative operands.
10823 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10825 * config/s390/vx-builtins.md
10826 ("vec_scatter_element<mode>_<non_vec_int>")
10827 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
10828 attribute with bhfgq.
10830 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10832 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
10834 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10836 * config/s390/s390-builtin-types.def: Add flag to indicate the
10837 options under which the function type is needed.
10838 * config/s390/s390-builtins.def: Add flag to indicate the options
10839 under which the builtin is enabled.
10840 * config/s390/s390-builtins.h: Add flags parameter to macro
10842 (bflags_for_builtin): New function.
10843 (flags_for_builtin): Renamed to ...
10844 (opflags_for_builtin): ... this.
10845 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
10846 flags_for_builtin to bflags_for_builtin and
10847 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
10848 * config/s390/s390.c: Add initialization of bflags_builtin and
10849 opflags_builtin arrays.
10850 Remove code for flags_builtin.
10851 (s390_init_builtins): Only create builtin function types if one of
10852 their flags is active.
10853 Only create builtins if all of their flags are active.
10854 (s390_expand_builtin): Rename flags_for_builtin to
10855 opflags_for_builtin.
10857 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10859 * config/s390/vecintrin.h: Remove internal builtins.
10861 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10863 * config/s390/s390.c (s390_secondary_reload): Fix check for
10864 GENERAL_REGS register class.
10866 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10868 * config/s390/s390.c (s390_support_vector_misalignment): Call
10869 default implementation for !TARGET_VX.
10871 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10873 * config/s390/s390.c (s390_legitimate_constant_p): Add
10876 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10878 * config/s390/s390.c (s390_vector_abi): New variable definition.
10879 (s390_check_type_for_vector_abi): New function.
10880 (TARGET_ASM_FILE_END): New macro definition.
10881 (s390_asm_file_end): New function.
10882 (s390_function_arg): Call s390_check_type_for_vector_abi.
10883 (s390_gimplify_va_arg): Likewise.
10884 * configure: Regenerate.
10885 * configure.ac: Check for .gnu_attribute Binutils feature.
10887 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
10890 * config/bfin/bfin.c (hwloop_optimize): Initialize
10891 JUMP_LABEL for newly created jump.
10893 2015-06-23 Tristan Gingold <gingold@adacore.com>
10895 * collect-utils.c (collect_wait): Unlink the response file here
10897 (do_wait): ...here.
10898 (utils_cleanup): ...and here.
10900 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
10902 * df-scan.c: Don't include target-def.h.
10903 * targhooks.c: Likewise.
10904 * config/arm/arm-c.c: Likewise.
10905 * config/i386/i386-c.c: Likewise.
10906 * config/nds32/nds32-cost.c: Likewise.
10907 * config/nds32/nds32-fp-as-gp.c: Likewise.
10908 * config/nds32/nds32-intrinsic.c: Likewise.
10909 * config/nds32/nds32-isr.c: Likewise.
10910 * config/nds32/nds32-md-auxiliary.c: Likewise.
10911 * config/nds32/nds32-memory-manipulation.c: Likewise.
10912 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10913 * config/nds32/nds32-predicates.c: Likewise.
10915 2015-06-23 Richard Biener <rguenther@suse.de>
10917 PR tree-optimization/66636
10918 * tree-vect-stmts.c (vectorizable_store): Properly compute the
10919 def type for further defs for strided stores.
10921 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
10923 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
10924 conditional selects.
10925 (setcc_int<mode>, setcc_float<mode>): Reformat.
10927 2015-06-23 Marek Polacek <polacek@redhat.com>
10929 * match.pd ((x + y) - (x | y) -> x & y,
10930 (x + y) - (x & y) -> x | y): New patterns.
10932 2015-06-23 Ludovic Courtès <ludo@gnu.org>
10935 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
10936 '-dynamic-linker' within %{!shared: ...}.
10938 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
10941 * config/i386/predicates.md (addsub_vm_operator): New predicate.
10942 (addsub_vs_operator): Ditto.
10943 (addsub_vs_parallel): Ditto.
10944 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
10945 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
10946 Put minus RTX before plus and adjust vec_merge selector.
10947 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
10948 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
10949 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
10950 (addsub vec_merge splitters): New combiner splitters.
10951 (addsub vec_select/vec_concat splitters): Ditto.
10953 2015-06-23 Bin Cheng <bin.cheng@arm.com>
10955 PR tree-optimization/66449
10956 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
10957 POINTER_PLUS_EXPR for pointers.
10959 2015-06-23 Alan Modra <amodra@gmail.com>
10961 * rtlanal.c (commutative_operand_precedence): Correct comments.
10962 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
10963 declaration. Return an int. Distinguish REG,REG return from
10965 (struct simplify_plus_minus_op_data): Make local to function.
10966 (simplify_plus_minus): Don't set canonicalized if merely sorting
10967 registers. Avoid packing ops if nothing changes. White space fixes.
10969 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
10971 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
10972 -fdump-ada-spec is passed but not if -fsyntax-only is.
10974 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
10977 * lra-lives.c (process_bb_lives): Check insn copying the same
10978 reload pseudo and don't create a copy for it.
10980 2015-06-22 Tom de Vries <tom@codesourcery.com>
10982 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
10985 2015-06-22 Tom de Vries <tom@codesourcery.com>
10987 * builtins.def (DEF_GOMP_BUILTIN): Test
10988 'flag_tree_parallelize_loops > 1' instead of
10989 'flag_tree_parallelize_loops'. Test flag_cilkplus.
10991 2015-06-22 Tom de Vries <tom@codesourcery.com>
10993 * dominance.c (calculate_dominance_info): Verify dominators if
10996 2015-06-22 Marek Polacek <polacek@redhat.com>
10998 * match.pd ((x ^ y) ^ (x | y) -> x & y,
10999 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
11000 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
11001 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
11003 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
11006 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
11007 cost of embedded comparison.
11009 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11012 * config/rs6000/predicates.md (altivec_register_operand): Permit
11013 virtual stack registers.
11014 (vsx_register_operand): Likewise.
11015 (vfloat_operand): Likewise.
11016 (vint_operand): Likewise.
11017 (vlogical_operand): Likewise.
11019 2015-06-22 Richard Biener <rguenther@suse.de>
11021 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
11022 and single_scalar_iteration_cost members.
11023 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
11024 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
11025 (vect_get_single_scalar_iteration_cost): Remove.
11026 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11027 Use LOOP_VINFO_SCALAR_ITERATION_COST.
11028 * tree-vect-loop.c (destroy_loop_vec_info): Free
11030 (vect_get_single_scalar_iteration_cost): Compute result into
11031 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
11032 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
11033 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
11034 (vect_estimate_min_profitable_iters): Use them.
11036 2015-06-22 Christian Bruel <christian.bruel@st.com>
11039 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
11040 (TARGET_INSERT_ATTRIBUTES): Define.
11041 (thumb_flipper): New var.
11042 * config/arm/arm.opt (-mflip-thumb): New switch.
11044 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
11045 Martin Liska <mliska@suse.cz>
11048 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
11049 construction of arg_types.
11050 (sem_function::sem_function): Likewise.
11051 (sem_function::~sem_function): Remove destruction of arg_types.
11052 (sem_function::compatible_parm_types_p): New function.
11053 (sem_function::equals_wpa): Reorg matching of return values
11054 and parameter types.
11055 (sem_function::equals_private): Reorg mathcing of argument types.
11056 (sem_function::parse_tree_args): Remove.
11057 * ipa-icf.h (init_wpa): Do not call it.
11058 (parse_tree_args): Remove.
11059 (compatible_parm_types_p): Declare.
11060 (result_type): Remove.
11061 (arg_types): Remove.
11063 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
11066 * ipa-polymorphic-call.c
11067 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
11068 initializing alias oracle; fix formating; set base_alias_set if it
11071 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
11073 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
11074 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
11075 (find_inc): Likewise.
11076 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
11078 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
11079 * df-scan.c (df_swap_refs): Remove.
11080 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
11081 * dominance.c (link_roots): Use std::swap instead of manually swapping.
11082 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
11083 * fold-const.c (fold_relational_const): Likewise.
11084 * genattrtab.c (simplify_test_exp): Likewise.
11085 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
11086 gimple_simplify): Likewise.
11087 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
11088 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
11089 * ipa-devirt.c (add_type_duplicate): Likewise.
11090 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
11091 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
11092 * lra.c (lra_create_copy): Likewise.
11093 * lto-streamer-out.c (DFS::DFS): Likewise.
11094 * modulo-sched.c (get_sched_window): Likewise.
11095 * omega.c (omega_pretty_print_problem): Likewise.
11096 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
11097 * reload1.c (reloads_unique_chain_p): Likewise.
11098 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
11099 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
11101 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
11103 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
11104 predicate_mem_writes): Likewise.
11105 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
11106 * tree-predcom.c (combine_chains): Likewise.
11107 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
11108 refs_may_alias_p_1): Likewise.
11109 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
11110 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
11111 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
11112 number_of_iterations_cond): Likewise.
11113 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
11114 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
11115 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
11116 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
11117 * tree-vrp.c (extract_range_from_binary_expr_1,
11118 extract_range_from_unary_expr_1): Likewise.
11120 2015-06-20 Marek Polacek <polacek@redhat.com>
11122 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
11124 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
11127 * config/sh/sh.c (prepare_move_operands): Replace subreg
11128 index term with R0 for base and index addressing.
11130 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
11132 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
11134 (movsf_aarch64): Change condition from register_operand to
11135 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
11136 load1. Change type for alternative 7 to store1.
11137 (movdf_aarch64): Likewise.
11139 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
11141 * config/vax/vax.md: Adjust sign/zero extend patterns to
11142 handle SUBREGs in operands[1].
11144 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11146 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
11147 of manually swapping.
11148 (expand_vec_perm_interleave2): Likewise.
11150 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
11152 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
11153 reuse bounds created for abnormal ssa names.
11155 2015-06-19 Jakub Jelinek <jakub@redhat.com>
11157 * config/nvptx/nvptx.md (allocate_stack): Rename to...
11158 (allocate_stack_<mode>): ... this, and add :P on both
11159 match_operand and unspec.
11160 (allocate_stack): New expander.
11162 2015-06-19 Christian Bruel <christian.bruel@st.com>
11166 * config/arm/arm.c (arm_set_current_function): Handle
11167 explicit default options.
11169 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
11171 * config/i386/i386.md (*movsicc_noc_zext): New insn.
11172 (zero-extended cmove with mem peephole2): New pattern.
11173 (cmove with mem peephole2): Merge patterns.
11175 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11177 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
11179 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
11181 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
11182 * config/mips/mips.md (*madd4<mode>): Ditto.
11183 (*nmadd3<mode>) Ditto.
11184 (*nmadd4<mode>_fastmath): Ditto.
11185 (*nmadd3<mode>_fastmath): Ditto.
11186 (*nmsub4<mode>): Ditto.
11187 (*nmsub3<mode>): Ditto.
11188 (*nmsub4<mode>_fastmath): Ditto.
11189 (*nmsub3<mode>_fastmath): Ditto.
11191 2015-06-18 Michael Matz <matz@suse.de>
11193 PR middle-end/66253
11194 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
11195 grouped strided stores.
11196 (vectorizable_load): Don't use the DR from first_stmt in
11197 the non-SLP grouped strided case.
11199 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11202 * function.c (assign_bounds): Add arguments assign_regs,
11203 assign_special, assign_bt.
11204 (assign_parms): For vararg functions handle bounds in BT
11205 and special slots after incoming vararg bounds.
11207 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11209 PR middle-end/66568
11210 * cfgexpand.c (expand_return): Handle missing bounds.
11211 (expand_gimple_stmt_1): Likewise.
11212 * tree-chkp.c (chkp_expand_zero_bounds): New.
11213 * tree-chkp.h (chkp_expand_zero_bounds): New.
11215 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11217 PR middle-end/66567
11218 * ipa-chkp.c (chkp_maybe_create_clone): Require
11219 functions to be instrumentable.
11220 * tree-chkp.c (chkp_replace_function_pointer): Use
11221 chkp_instrumentable_p instead of attribute check.
11223 2015-06-18 Richard Biener <rguenther@suse.de>
11225 PR tree-optimization/66510
11226 * tree-vect-stmts.c (vectorizable_load): Properly compute the
11227 number of vector loads for SLP permuted loads.
11228 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
11229 check the stride for loop vectorization.
11230 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
11231 vectorization factor.
11232 (vect_analyze_group_access): If the group size is not a power
11233 of two require a epilogue loop.
11234 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
11235 compute and optimizing and alias test pruning after final
11236 vectorization factor computation.
11237 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
11239 (vect_transform_slp_perm_load): Properly compute the original
11240 number of vector load stmts.
11242 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
11244 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
11245 "unlikely character , in @var" warning.
11247 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
11249 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
11250 (ix86_function_arg_advance): Ditto.
11251 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
11253 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11255 * function.h (struct rtl_data): Remove struct and accessor macros.
11256 * emit-rtl.h (struct rtl_data): Relocate to here.
11257 * Makefile.in (GTFILES): Add emit-rtl.h.
11258 * df-core.c: Include emit-rtl.h.
11259 * genattrtab.c: Likewise.
11260 * genconditions.c: Likewise.
11261 * genpreds.c: Likewise.
11262 * genrecog.c: Likewise.
11263 * regcprop.c: Likewise.
11264 * resource.c: Likewise.
11265 * sched-rgn.c: Likewise.
11266 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11267 * config/i386/winnt.c: Likewise.
11269 2015-06-17 Jakub Jelinek <jakub@redhat.com>
11271 PR middle-end/66429
11272 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
11273 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
11274 and has_force_vectorize_loops flags from cfun into
11276 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
11277 if simduid is non-NULL.
11278 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
11279 * passes.def (pass_simduid_cleanup): Add new pass after loop
11281 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
11282 indirection from htab argument's type.
11283 (shrink_simd_arrays): New function.
11284 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
11285 Don't call adjust_simduid_builtins if there are no loops.
11286 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
11287 (pass_simduid_cleanup::execute): New method.
11288 (make_pass_simduid_cleanup): New function.
11290 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
11292 * tree-core.h (tree_target_option): Make opts field a pointer to a
11293 cl_target_option instead of an instance of the struct.
11294 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
11296 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
11297 TARGET_OPTION_NODE.
11298 (copy_node_stat): Allocate and copy struct cl_target_option.
11300 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11302 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
11303 Remove conditional exposure of prototypes.
11304 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
11305 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
11306 definitions in tree.h with functions.
11307 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
11309 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
11311 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
11313 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
11314 (*cmp<mode>_signed): ... this.
11315 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
11316 (*cmp<mode>_unsigned): ... this. Remove %b.
11318 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11320 * coretypes.h: Include input.h and as-a.h.
11321 * rtl.h: Include input.h and as-a.h for generator files.
11322 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
11323 * vec.c: Don't include diagnostic-core.h.
11324 * alias.c: Do not include input.h, line-map.h or is-a.h.
11325 * asan.c: Likewise.
11326 * attribs.c: Likewise.
11327 * auto-inc-dec.c: Likewise.
11328 * auto-profile.c: Likewise.
11329 * bb-reorder.c: Likewise.
11330 * bt-load.c: Likewise.
11331 * builtins.c: Likewise.
11332 * caller-save.c: Likewise.
11333 * calls.c: Likewise.
11334 * ccmp.c: Likewise.
11336 * cfganal.c: Likewise.
11337 * cfgbuild.c: Likewise.
11338 * cfgcleanup.c: Likewise.
11339 * cfgexpand.c: Likewise.
11340 * cfghooks.c: Likewise.
11341 * cfgloop.c: Likewise.
11342 * cfgloop.h: Likewise.
11343 * cfgloopanal.c: Likewise.
11344 * cfgloopmanip.c: Likewise.
11345 * cfgrtl.c: Likewise.
11346 * cgraph.c: Likewise.
11347 * cgraphbuild.c: Likewise.
11348 * cgraphclones.c: Likewise.
11349 * cgraphunit.c: Likewise.
11350 * cilk-common.c: Likewise.
11351 * combine-stack-adj.c: Likewise.
11352 * combine.c: Likewise.
11353 * compare-elim.c: Likewise.
11354 * convert.c: Likewise.
11355 * coverage.c: Likewise.
11356 * cppbuiltin.c: Likewise.
11357 * cprop.c: Likewise.
11359 * cselib.c: Likewise.
11360 * data-streamer-in.c: Likewise.
11361 * data-streamer-out.c: Likewise.
11362 * data-streamer.c: Likewise.
11363 * dbxout.c: Likewise.
11366 * debug.c: Likewise.
11367 * df-core.c: Likewise.
11368 * df-problems.c: Likewise.
11369 * df-scan.c: Likewise.
11372 * diagnostic-core.h: Likewise.
11373 * diagnostic.c: Likewise.
11374 * dojump.c: Likewise.
11375 * dominance.c: Likewise.
11376 * domwalk.c: Likewise.
11377 * double-int.c: Likewise.
11379 * dumpfile.c: Likewise.
11380 * dumpfile.h: Likewise.
11381 * dwarf2asm.c: Likewise.
11382 * dwarf2cfi.c: Likewise.
11383 * dwarf2out.c: Likewise.
11384 * emit-rtl.c: Likewise.
11385 * et-forest.c: Likewise.
11386 * except.c: Likewise.
11387 * explow.c: Likewise.
11388 * expmed.c: Likewise.
11389 * expr.c: Likewise.
11390 * final.c: Likewise.
11391 * fixed-value.c: Likewise.
11392 * fold-const.c: Likewise.
11393 * function.c: Likewise.
11394 * fwprop.c: Likewise.
11395 * gcc-plugin.h: Likewise.
11396 * gcse.c: Likewise.
11397 * generic-match-head.c: Likewise.
11398 * ggc-page.c: Likewise.
11399 * gimple-builder.c: Likewise.
11400 * gimple-expr.c: Likewise.
11401 * gimple-fold.c: Likewise.
11402 * gimple-iterator.c: Likewise.
11403 * gimple-low.c: Likewise.
11404 * gimple-match-head.c: Likewise.
11405 * gimple-pretty-print.c: Likewise.
11406 * gimple-ssa-isolate-paths.c: Likewise.
11407 * gimple-ssa-strength-reduction.c: Likewise.
11408 * gimple-streamer-in.c: Likewise.
11409 * gimple-streamer-out.c: Likewise.
11410 * gimple-streamer.h: Likewise.
11411 * gimple-walk.c: Likewise.
11412 * gimple.c: Likewise.
11413 * gimplify-me.c: Likewise.
11414 * gimplify.c: Likewise.
11415 * godump.c: Likewise.
11416 * graph.c: Likewise.
11417 * graphite-blocking.c: Likewise.
11418 * graphite-dependences.c: Likewise.
11419 * graphite-interchange.c: Likewise.
11420 * graphite-isl-ast-to-gimple.c: Likewise.
11421 * graphite-optimize-isl.c: Likewise.
11422 * graphite-poly.c: Likewise.
11423 * graphite-scop-detection.c: Likewise.
11424 * graphite-sese-to-poly.c: Likewise.
11425 * graphite.c: Likewise.
11426 * haifa-sched.c: Likewise.
11427 * hw-doloop.c: Likewise.
11428 * ifcvt.c: Likewise.
11429 * init-regs.c: Likewise.
11430 * input.c: Likewise.
11431 * internal-fn.c: Likewise.
11432 * ipa-chkp.c: Likewise.
11433 * ipa-comdats.c: Likewise.
11434 * ipa-cp.c: Likewise.
11435 * ipa-devirt.c: Likewise.
11436 * ipa-icf-gimple.c: Likewise.
11437 * ipa-icf.c: Likewise.
11438 * ipa-inline-analysis.c: Likewise.
11439 * ipa-inline-transform.c: Likewise.
11440 * ipa-inline.c: Likewise.
11441 * ipa-polymorphic-call.c: Likewise.
11442 * ipa-profile.c: Likewise.
11443 * ipa-prop.c: Likewise.
11444 * ipa-pure-const.c: Likewise.
11445 * ipa-ref.c: Likewise.
11446 * ipa-reference.c: Likewise.
11447 * ipa-split.c: Likewise.
11448 * ipa-utils.c: Likewise.
11449 * ipa-visibility.c: Likewise.
11451 * ira-build.c: Likewise.
11452 * ira-color.c: Likewise.
11453 * ira-conflicts.c: Likewise.
11454 * ira-costs.c: Likewise.
11455 * ira-emit.c: Likewise.
11456 * ira-lives.c: Likewise.
11458 * jump.c: Likewise.
11459 * langhooks.c: Likewise.
11461 * loop-doloop.c: Likewise.
11462 * loop-init.c: Likewise.
11463 * loop-invariant.c: Likewise.
11464 * loop-iv.c: Likewise.
11465 * loop-unroll.c: Likewise.
11466 * lower-subreg.c: Likewise.
11467 * lra-assigns.c: Likewise.
11468 * lra-coalesce.c: Likewise.
11469 * lra-constraints.c: Likewise.
11470 * lra-eliminations.c: Likewise.
11471 * lra-lives.c: Likewise.
11472 * lra-remat.c: Likewise.
11473 * lra-spills.c: Likewise.
11475 * lto-cgraph.c: Likewise.
11476 * lto-compress.c: Likewise.
11477 * lto-opts.c: Likewise.
11478 * lto-section-in.c: Likewise.
11479 * lto-section-out.c: Likewise.
11480 * lto-streamer-in.c: Likewise.
11481 * lto-streamer-out.c: Likewise.
11482 * lto-streamer.c: Likewise.
11484 * mode-switching.c: Likewise.
11485 * modulo-sched.c: Likewise.
11486 * omega.c: Likewise.
11487 * omp-low.c: Likewise.
11488 * optabs.c: Likewise.
11489 * opts-global.c: Likewise.
11490 * opts.h: Likewise.
11491 * passes.c: Likewise.
11492 * plugin.c: Likewise.
11493 * postreload-gcse.c: Likewise.
11494 * postreload.c: Likewise.
11495 * predict.c: Likewise.
11496 * pretty-print.h: Likewise.
11497 * print-rtl.c: Likewise.
11498 * print-tree.c: Likewise.
11499 * profile.c: Likewise.
11500 * real.c: Likewise.
11501 * realmpfr.c: Likewise.
11502 * recog.c: Likewise.
11504 * reg-stack.c: Likewise.
11505 * regcprop.c: Likewise.
11506 * reginfo.c: Likewise.
11507 * regrename.c: Likewise.
11508 * regstat.c: Likewise.
11509 * reload.c: Likewise.
11510 * reload1.c: Likewise.
11511 * reorg.c: Likewise.
11512 * resource.c: Likewise.
11513 * rtl-chkp.c: Likewise.
11514 * rtl-error.c: Likewise.
11515 * rtlanal.c: Likewise.
11516 * rtlhooks.c: Likewise.
11517 * sanopt.c: Likewise.
11518 * sched-deps.c: Likewise.
11519 * sched-ebb.c: Likewise.
11520 * sched-rgn.c: Likewise.
11521 * sched-vis.c: Likewise.
11522 * sdbout.c: Likewise.
11523 * sel-sched-dump.c: Likewise.
11524 * sel-sched-ir.c: Likewise.
11525 * sel-sched.c: Likewise.
11526 * sese.c: Likewise.
11527 * shrink-wrap.c: Likewise.
11528 * simplify-rtx.c: Likewise.
11529 * stack-ptr-mod.c: Likewise.
11530 * statistics.c: Likewise.
11531 * stmt.c: Likewise.
11532 * stor-layout.c: Likewise.
11533 * store-motion.c: Likewise.
11534 * streamer-hooks.c: Likewise.
11535 * stringpool.c: Likewise.
11536 * symtab.c: Likewise.
11537 * target-globals.c: Likewise.
11538 * targhooks.c: Likewise.
11539 * toplev.c: Likewise.
11540 * tracer.c: Likewise.
11541 * trans-mem.c: Likewise.
11542 * tree-affine.c: Likewise.
11543 * tree-browser.c: Likewise.
11544 * tree-call-cdce.c: Likewise.
11545 * tree-cfg.c: Likewise.
11546 * tree-cfgcleanup.c: Likewise.
11547 * tree-chkp-opt.c: Likewise.
11548 * tree-chkp.c: Likewise.
11549 * tree-chrec.c: Likewise.
11550 * tree-complex.c: Likewise.
11551 * tree-data-ref.c: Likewise.
11552 * tree-dfa.c: Likewise.
11553 * tree-diagnostic.c: Likewise.
11554 * tree-dump.c: Likewise.
11555 * tree-eh.c: Likewise.
11556 * tree-emutls.c: Likewise.
11557 * tree-if-conv.c: Likewise.
11558 * tree-inline.c: Likewise.
11559 * tree-into-ssa.c: Likewise.
11560 * tree-iterator.c: Likewise.
11561 * tree-loop-distribution.c: Likewise.
11562 * tree-nested.c: Likewise.
11563 * tree-nrv.c: Likewise.
11564 * tree-object-size.c: Likewise.
11565 * tree-outof-ssa.c: Likewise.
11566 * tree-parloops.c: Likewise.
11567 * tree-phinodes.c: Likewise.
11568 * tree-predcom.c: Likewise.
11569 * tree-pretty-print.c: Likewise.
11570 * tree-profile.c: Likewise.
11571 * tree-scalar-evolution.c: Likewise.
11572 * tree-sra.c: Likewise.
11573 * tree-ssa-address.c: Likewise.
11574 * tree-ssa-alias.c: Likewise.
11575 * tree-ssa-ccp.c: Likewise.
11576 * tree-ssa-coalesce.c: Likewise.
11577 * tree-ssa-copy.c: Likewise.
11578 * tree-ssa-copyrename.c: Likewise.
11579 * tree-ssa-dce.c: Likewise.
11580 * tree-ssa-dom.c: Likewise.
11581 * tree-ssa-dse.c: Likewise.
11582 * tree-ssa-forwprop.c: Likewise.
11583 * tree-ssa-ifcombine.c: Likewise.
11584 * tree-ssa-live.c: Likewise.
11585 * tree-ssa-loop-ch.c: Likewise.
11586 * tree-ssa-loop-im.c: Likewise.
11587 * tree-ssa-loop-ivcanon.c: Likewise.
11588 * tree-ssa-loop-ivopts.c: Likewise.
11589 * tree-ssa-loop-manip.c: Likewise.
11590 * tree-ssa-loop-niter.c: Likewise.
11591 * tree-ssa-loop-prefetch.c: Likewise.
11592 * tree-ssa-loop-unswitch.c: Likewise.
11593 * tree-ssa-loop.c: Likewise.
11594 * tree-ssa-math-opts.c: Likewise.
11595 * tree-ssa-operands.c: Likewise.
11596 * tree-ssa-phiopt.c: Likewise.
11597 * tree-ssa-phiprop.c: Likewise.
11598 * tree-ssa-pre.c: Likewise.
11599 * tree-ssa-propagate.c: Likewise.
11600 * tree-ssa-reassoc.c: Likewise.
11601 * tree-ssa-sccvn.c: Likewise.
11602 * tree-ssa-scopedtables.c: Likewise.
11603 * tree-ssa-sink.c: Likewise.
11604 * tree-ssa-strlen.c: Likewise.
11605 * tree-ssa-structalias.c: Likewise.
11606 * tree-ssa-tail-merge.c: Likewise.
11607 * tree-ssa-ter.c: Likewise.
11608 * tree-ssa-threadedge.c: Likewise.
11609 * tree-ssa-threadupdate.c: Likewise.
11610 * tree-ssa-uncprop.c: Likewise.
11611 * tree-ssa-uninit.c: Likewise.
11612 * tree-ssa.c: Likewise.
11613 * tree-ssanames.c: Likewise.
11614 * tree-stdarg.c: Likewise.
11615 * tree-streamer-in.c: Likewise.
11616 * tree-streamer-out.c: Likewise.
11617 * tree-streamer.c: Likewise.
11618 * tree-switch-conversion.c: Likewise.
11619 * tree-tailcall.c: Likewise.
11620 * tree-vect-data-refs.c: Likewise.
11621 * tree-vect-generic.c: Likewise.
11622 * tree-vect-loop-manip.c: Likewise.
11623 * tree-vect-loop.c: Likewise.
11624 * tree-vect-patterns.c: Likewise.
11625 * tree-vect-slp.c: Likewise.
11626 * tree-vect-stmts.c: Likewise.
11627 * tree-vectorizer.c: Likewise.
11628 * tree-vrp.c: Likewise.
11629 * tree.c: Likewise.
11630 * tsan.c: Likewise.
11631 * ubsan.c: Likewise.
11632 * valtrack.c: Likewise.
11633 * value-prof.c: Likewise.
11634 * var-tracking.c: Likewise.
11635 * varasm.c: Likewise.
11636 * varpool.c: Likewise.
11637 * vmsdbgout.c: Likewise.
11638 * vtable-verify.c: Likewise.
11640 * wide-int.cc: Likewise.
11641 * xcoffout.c: Likewise.
11642 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
11643 * common/common-targhooks.c: Likewise.
11644 * config/aarch64/aarch64-builtins.c: Likewise.
11645 * config/aarch64/aarch64.c: Likewise.
11646 * config/alpha/alpha.c: Likewise.
11647 * config/arc/arc.c: Likewise.
11648 * config/arm/aarch-common.c: Likewise.
11649 * config/arm/arm-builtins.c: Likewise.
11650 * config/arm/arm-c.c: Likewise.
11651 * config/arm/arm.c: Likewise.
11652 * config/avr/avr-c.c: Likewise.
11653 * config/avr/avr-log.c: Likewise.
11654 * config/avr/avr.c: Likewise.
11655 * config/bfin/bfin.c: Likewise.
11656 * config/c6x/c6x.c: Likewise.
11657 * config/cr16/cr16.c: Likewise.
11658 * config/cris/cris.c: Likewise.
11659 * config/darwin-c.c: Likewise.
11660 * config/darwin.c: Likewise.
11661 * config/default-c.c: Likewise.
11662 * config/epiphany/epiphany.c: Likewise.
11663 * config/epiphany/mode-switch-use.c: Likewise.
11664 * config/epiphany/resolve-sw-modes.c: Likewise.
11665 * config/fr30/fr30.c: Likewise.
11666 * config/frv/frv.c: Likewise.
11667 * config/ft32/ft32.c: Likewise.
11668 * config/glibc-c.c: Likewise.
11669 * config/h8300/h8300.c: Likewise.
11670 * config/i386/i386-c.c: Likewise.
11671 * config/i386/i386.c: Likewise.
11672 * config/i386/msformat-c.c: Likewise.
11673 * config/i386/winnt-cxx.c: Likewise.
11674 * config/i386/winnt-stubs.c: Likewise.
11675 * config/i386/winnt.c: Likewise.
11676 * config/ia64/ia64-c.c: Likewise.
11677 * config/ia64/ia64.c: Likewise.
11678 * config/iq2000/iq2000.c: Likewise.
11679 * config/lm32/lm32.c: Likewise.
11680 * config/m32c/m32c-pragma.c: Likewise.
11681 * config/m32c/m32c.c: Likewise.
11682 * config/m32r/m32r.c: Likewise.
11683 * config/m68k/m68k.c: Likewise.
11684 * config/mcore/mcore.c: Likewise.
11685 * config/mep/mep-pragma.c: Likewise.
11686 * config/mep/mep.c: Likewise.
11687 * config/microblaze/microblaze-c.c: Likewise.
11688 * config/microblaze/microblaze.c: Likewise.
11689 * config/mips/mips.c: Likewise.
11690 * config/mmix/mmix.c: Likewise.
11691 * config/mn10300/mn10300.c: Likewise.
11692 * config/moxie/moxie.c: Likewise.
11693 * config/msp430/msp430-c.c: Likewise.
11694 * config/msp430/msp430.c: Likewise.
11695 * config/nds32/nds32-cost.c: Likewise.
11696 * config/nds32/nds32-fp-as-gp.c: Likewise.
11697 * config/nds32/nds32-intrinsic.c: Likewise.
11698 * config/nds32/nds32-isr.c: Likewise.
11699 * config/nds32/nds32-md-auxiliary.c: Likewise.
11700 * config/nds32/nds32-memory-manipulation.c: Likewise.
11701 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11702 * config/nds32/nds32-predicates.c: Likewise.
11703 * config/nds32/nds32.c: Likewise.
11704 * config/nios2/nios2.c: Likewise.
11705 * config/nvptx/nvptx.c: Likewise.
11706 * config/pa/pa.c: Likewise.
11707 * config/pdp11/pdp11.c: Likewise.
11708 * config/rl78/rl78-c.c: Likewise.
11709 * config/rl78/rl78.c: Likewise.
11710 * config/rs6000/rs6000-c.c: Likewise.
11711 * config/rs6000/rs6000.c: Likewise.
11712 * config/rx/rx.c: Likewise.
11713 * config/s390/s390-c.c: Likewise.
11714 * config/s390/s390.c: Likewise.
11715 * config/sh/sh-c.c: Likewise.
11716 * config/sh/sh-mem.cc: Likewise.
11717 * config/sh/sh.c: Likewise.
11718 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11719 * config/sh/sh_treg_combine.cc: Likewise.
11720 * config/sol2-c.c: Likewise.
11721 * config/sol2-cxx.c: Likewise.
11722 * config/sol2-stubs.c: Likewise.
11723 * config/sol2.c: Likewise.
11724 * config/sparc/sparc-c.c: Likewise.
11725 * config/sparc/sparc.c: Likewise.
11726 * config/spu/spu-c.c: Likewise.
11727 * config/spu/spu.c: Likewise.
11728 * config/stormy16/stormy16.c: Likewise.
11729 * config/tilegx/mul-tables.c: Likewise.
11730 * config/tilegx/tilegx-c.c: Likewise.
11731 * config/tilegx/tilegx.c: Likewise.
11732 * config/tilepro/mul-tables.c: Likewise.
11733 * config/tilepro/tilepro-c.c: Likewise.
11734 * config/tilepro/tilepro.c: Likewise.
11735 * config/v850/v850-c.c: Likewise.
11736 * config/v850/v850.c: Likewise.
11737 * config/vax/vax.c: Likewise.
11738 * config/visium/visium.c: Likewise.
11739 * config/vms/vms-c.c: Likewise.
11740 * config/vms/vms.c: Likewise.
11741 * config/vxworks.c: Likewise.
11742 * config/winnt-c.c: Likewise.
11743 * config/xtensa/xtensa.c: Likewise.
11745 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
11747 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
11749 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
11751 2015-06-17 Richard Biener <rguenther@suse.de>
11753 PR tree-optimization/66251
11754 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
11755 stmts for SLP strided stores.
11758 2015-05-22 Richard Biener <rguenther@suse.de>
11760 PR tree-optimization/66251
11761 * tree-vect-stmts.c (vectorizable_conversion): Properly
11762 set STMT_VINFO_VEC_STMT even for the SLP case.
11764 2015-05-26 Michael Matz <matz@suse.de>
11766 PR middle-end/66251
11767 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
11768 STMT_VINFO_VEC_STMT, also with SLP.
11770 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
11773 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
11774 (*avx_addsubv4df3_1s): Ditto.
11775 (*sse3_addsubv2df3_1): Ditto.
11776 (*sse3_addsubv2df3_1s): Ditto.
11777 (*avx_addsubv8sf3_1): Ditto.
11778 (*avx_addsubv8sf3_1s): Ditto.
11779 (*sse3_addsubv4sf3_1): Ditto.
11780 (*sse3_addsubv4sf3_1s): Ditto.
11782 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
11784 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
11785 (SYSROOT_SUFFIX_SPEC): Update.
11786 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
11787 (STARTFILE_PREFIX_SPEC): Update.
11788 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
11789 (MULTILIB_REQUIRED): New.
11790 (MULTILIB_OSDIRNAMES): New.
11791 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
11792 (MULTILIB_REQUIRED): New.
11793 (MULTILIB_OSDIRNAMES): New.
11795 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
11797 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
11798 * config/aarch64/aarch64-options-extensions.def: Update "fP",
11799 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
11800 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
11801 (AARCH64_FL_PAN): New.
11802 (AARCH64_FL_LOR): New.
11803 (AARCH64_FL_RDMA): New.
11804 (AARCH64_FL_FOR_ARCH8_1): New.
11805 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
11806 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
11808 2015-06-16 Martin Liska <mliska@suse.cz>
11810 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
11811 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
11814 2015-06-16 Richard Biener <rguenther@suse.de>
11816 * tree-vect-stmts.c (vectorizable_store): Adjust.
11817 (vectorizable_load): Likewise.
11818 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11820 (vect_create_data_ref_ptr): Likewise.
11821 (bump_vector_ptr): Adjust.
11823 2015-06-16 Richard Biener <rguenther@suse.de>
11825 * tree-vect-stmts.c (vectorizable_load): Properly start loads
11826 with the first element if this is grouped loads.
11828 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
11830 * config/arm/arm-protos.h (struct tune_params): Rename
11831 log_op_non_sc to log_op_non_short_circuit, and rename enum
11832 values to expand SC to SHORT_CIRCUIT.
11833 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
11834 to LOG_OP_NON_SHORT_CIRCUIT.
11835 (arm_fastmul_tune):Likewise
11836 (arm_strongarm_tune): Likewise.
11837 (arm_xscale_tune): Likewise.
11838 (arm_9e_tune): Likewise.
11839 (arm_marvell_pj4_tune): Likewise.
11840 (arm_v6t2_tune): Likewise.
11841 (arm_cortex_tune): Likewise.
11842 (arm_cortex_a8_tune): Likewise.
11843 (arm_cortex_a7_tune): Likewise.
11844 (arm_cortex_a15_tune): Likewise.
11845 (arm_cortex_a53_tune): Likewise.
11846 (arm_cortex_a57_tune): Likewise.
11847 (arm_xgene1_tune): Likewise.
11848 (arm_cortex_a5_tune): Likewise.
11849 (arm_cortex_a9_tune): Likewise.
11850 (arm_cortex_a12_tune): Likewise.
11851 (arm_v7m_tune): Likewise.
11852 (arm_cortex_m7_tune): Likewise.
11853 (arm_v6m_tune): Likewise.
11854 (arm_fa726te_tune): Likewise.
11856 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
11858 * altivec.md: Delete UNSPEC_VMLADDUHM.
11859 (mulv4si3_p8): New pattern.
11860 (mulv4si3): Use it for POWER8.
11861 (mulv8hi3): Use vmladduhm with zero addend.
11862 (altivec_vmladduhm): Descriptive RTL.
11864 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
11866 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
11867 to use neon_move instead of mov_imm.
11868 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
11869 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
11871 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
11872 aarch64_float_const_zero_rtx_p check before TFmode check.
11873 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
11875 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
11876 code and attributes to match. Change condition from register_operand
11877 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
11878 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
11881 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
11884 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
11885 there is no parent.
11887 2015-06-14 Shiva Chen <shiva0217@gmail.com>
11889 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
11890 HOST_WIDE_INT parameter.
11892 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
11895 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
11896 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
11898 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
11900 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
11902 * rtl.h (classify_insn): Declare.
11903 * emit-rtl.c (classify_insn): Move to...
11904 * rtl.c: ...here and add generator support.
11905 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
11906 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
11907 * genemit.c (gen_emit_seq): New function.
11908 (gen_expand, gen_split): Use it.
11910 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
11912 * tree.c (make_vector_stat): Fix comment to state that the
11913 function returns a VECTOR_CST.
11915 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
11917 * gensupport.h (add_implicit_parallel): Declare.
11918 * genrecog.c (add_implicit_parallel): Move to...
11919 * gensupport.c (add_implicit_parallel): ...here.
11920 (process_one_cond_exec): Use it.
11921 * genemit.c (gen_insn): Likewise.
11923 2015-06-13 Iain Sandoe <iain@codesourcery.com>
11926 * passes.c (rest_of_decl_compilation): Do not register globals for
11927 early debug if they are declared in built-ins.
11929 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
11931 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
11933 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11935 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
11937 (noce_try_cmove_arith): Likewise.
11938 (noce_get_alt_condition): Likewise.
11940 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11942 * common/config/i386/i386-common.c
11943 (OPTION_MASK_ISA_MWAITX_SET): New.
11944 (ix86_handle_option): Handle mwaitx.
11945 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
11946 (x86_64-*-*): Likewise.
11947 * config/i386/mwaitxintrin.h: New header.
11948 * config/i386/cpuid.h (bit_MWAITX): Define.
11949 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11951 * config/i386/i386.opt (mwaitx): New.
11952 * config/i386/i386-builtin-types.def
11953 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
11954 * config/i386/i386-c.c: Define __MWAITX__ if needed.
11955 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
11957 (ix86_option_override_internal): Handle new option.
11958 (processor_alias_table): Added PTA_MWAITX.
11959 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
11960 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
11961 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
11962 IX86_BUILTIN_MONITORX built-ins.
11963 * config/i386/i386.h (TARGET_MWAITX): New.
11964 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
11966 (mwaitx): New pattern.
11967 (monitorx_<mode>): New pattern.
11968 * config/i386/x86intrin.h: Include mwaitxintrin.h.
11969 * doc/extend.texi: Document monitorx and mwaitx builtins.
11970 * doc/invoke.texi: Document -mmwaitx option.
11972 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
11974 * emit-rtl.c (need_atomic_barrier_p): Mask model with
11975 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
11977 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
11979 * dbxout.c (xcoff_debug_hooks): Provide a function for
11980 register_main_translation_unit hook.
11982 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
11984 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
11985 variants cases from switch.
11986 (rs6000_post_atomic_barrier): Same.
11987 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
11988 (rs6000_expand_atomic_exchange): Same.
11989 (rs6000_expand_atomic_op): Same.
11990 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
11991 SYNC variants cases from switch.
11992 (atomic_load): Same.
11993 (atomic_store): Same.
11995 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
11997 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
11998 CONST_INT for goto.
12000 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
12003 * dwarf2out.c (check_die): Check for common duplicate attributes.
12004 (add_location_or_const_value_attribute): Do not add duplicate
12006 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
12008 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
12009 (gen_type_die_with_usage): Call check_die.
12010 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
12012 2015-06-11 Jason Merrill <jason@redhat.com>
12014 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
12017 2015-06-11 Marek Polacek <polacek@redhat.com>
12019 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
12021 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
12024 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
12025 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
12026 (*addx_extend_sp32): Fix pasto.
12027 (*subx_extend): Rename into...
12028 (*subx_extend_sp32): ...this.
12029 (*adddi3_extend_sp32): Add earlyclobber.
12030 (*subdi3_insn_sp32): Likewise.
12031 (*subdi3_extend_sp32): Likewise.
12032 (*and_not_di_sp32): Likewise.
12033 (*or_not_di_sp32): Likewise.
12034 (*xor_not_di_sp32): Likewise.
12035 (*negdi2_sp32): Likewise.
12036 (*one_cmpldi2_sp32): Likewise.
12038 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
12040 * debug.h (struct gcc_debug_hooks): Add a
12041 register_main_translation_unit hook.
12042 * debug.c (do_nothing_debug_hooks): Provide a function for this
12044 * dbxout.c (dbx_debug_hooks): Likewise.
12045 * sdbout.c (sdb_debug_hooks): Likewise.
12046 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12047 * dwarf2out.c (main_translation_unit): New global variable.
12048 (dwarf2out_register_main_translation_unit): New function
12049 implementing the new hook.
12050 (dwarf2_debug_hooks): Assign
12051 dwarf2out_register_main_translation_unit to this new hook.
12052 (dwarf2out_init): Associate any main translation unit to
12055 2015-06-11 Marek Polacek <polacek@redhat.com>
12057 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
12059 2015-06-11 Marek Polacek <polacek@redhat.com>
12061 * match.pd: Use single_use throughout.
12063 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12065 * config/arm/arm.c (arm_option_params_internal): When optimising
12066 for speed set max_insns_skipped when arm_restrict_it.
12068 2015-06-11 Christian Bruel <christian.bruel@st.com>
12071 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
12073 (arm_cpu_builtins): New function.
12074 (arm_pragma_target_parse): Call arm_cpu_builtins.
12075 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
12076 (arm_register_target_pragmas): Likewise.
12077 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
12078 Call arm_register_target_pragmas.
12079 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
12080 (arm_pragma_target_parse): Likewise.
12082 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
12084 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
12085 of the second operand.
12087 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
12090 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
12091 to prepare mask operand for AVX512 modes.
12093 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12096 * doc/md.texi (Machine Constraints): Document that on the PowerPC
12097 if you use a constraint that targets a VSX register, you must use
12098 %x<n> in the template.
12100 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
12102 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
12103 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
12104 (define_insn "trap"): New definition.
12106 2015-06-10 Richard Biener <rguenther@suse.de>
12108 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
12110 (vect_supported_load_permutation_p): ... here. Handle
12111 supportable permutations in reductions.
12112 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
12113 for vectorizing strided group loads.
12115 2015-06-10 Jakub Jelinek <jakub@redhat.com>
12118 * config/i386/i386.c (ix86_split_long_move): For collisions
12119 involving direct tls segment refs, move the UNSPEC_TP possibly
12120 wrapped in ZERO_EXTEND out of the address for lea, to each of
12123 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12125 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
12126 dmb sy. Adjust tabs.
12128 2015-06-10 Tom de Vries <tom@codesourcery.com>
12130 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
12132 2015-06-10 Martin Liska <mliska@suse.cz>
12135 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
12136 all enum values in mem_alloc_origin.
12137 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
12139 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
12140 * bitmap.c (bitmap_register): Likewise.
12141 (dump_bitmap_statistics): Likewise.
12142 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
12143 (ggc_record_overhead): Likewise.
12144 * hash-map.h: Likewise.
12145 * hash-set.h: Likewise.
12146 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
12147 * hash-table.h: Likewise.
12148 * vec.c (vec_prefix::register_overhead): Likewise.
12149 (vec_prefix::release_overhead): Likewise.
12150 (dump_vec_loc_statistics): Likewise.
12152 2015-06-09 Christian Bruel <christian.bruel@st.com>
12155 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
12156 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
12157 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
12158 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
12159 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
12160 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
12161 (arm_valid_target_attribute_p): Likewise.
12162 (arm_set_current_function, arm_can_inline_p): Likewise.
12163 (arm_valid_target_attribute_rec): Likewise.
12164 (arm_previous_fndecl): New variable.
12165 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
12166 (TARGET_CAN_INLINE_P): Define.
12167 (arm_asm_trampoline_template): Emit mode.
12168 (arm_file_start): Don't set unified syntax.
12169 (arm_declare_function_name): Set unified syntax and mode.
12170 (arm_option_override): Init target_option_default_node.
12171 and target_option_current_node.
12172 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
12173 (*call_symbol): Likewise.
12174 * doc/extend.texi: Document ARM/Thumb target attribute.
12175 * doc/invoke.texi: Likewise.
12177 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12180 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12181 PR rtl-optimization/64164
12182 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12183 * tree-ssa-copyrename.c: Removed.
12184 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12185 -ftree-coalesce-vars.
12186 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12187 * common.opt (ftree-copyrename): Ignore.
12188 (ftree-coalesce-inlined-vars): Likewise.
12189 * doc/invoke.texi: Remove the ignored options above.
12190 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12191 * tree-ssa-coalesce.h: ... here.
12192 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12193 headers required by it.
12194 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12195 across variables when flag_tree_coalesce_vars. Check register
12196 use and promoted modes to allow coalescing. Moved to
12197 tree-ssa-coalesce.c.
12198 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12199 with its member functions to tree-ssa-coalesce.c.
12200 (var_map_base_init): Likewise. Renamed to
12201 compute_samebase_partition_bases.
12202 (partition_view_normal): Drop want_bases parameter.
12203 (partition_view_bitmap): Likewise.
12204 * tree-ssa-live.h: Adjust declarations.
12205 * tree-ssa-coalesce.c: Include explow.h.
12206 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12207 default defs at the entry point.
12208 (dump_part_var_map): New.
12209 (compute_optimized_partition_bases): New, called by...
12210 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12211 of compute_samebase_partition_bases. Adjust.
12212 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12213 * cfgexpand.c (leader_merge): New.
12214 (get_rtl_for_parm_ssa_default_def): New.
12215 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12216 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12217 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12218 redundant MEM attr setting.
12219 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12221 (expand_one_stack_var): ... this. New wrapper to check and
12222 skip already expanded SSA partitions.
12223 (record_alignment_for_reg_var): New, factored out of...
12224 (expand_one_var): ... this.
12225 (expand_one_ssa_partition): New.
12226 (adjust_one_expanded_partition_var): New.
12227 (expand_one_register_var): Check and skip already expanded SSA
12229 (expand_used_vars): Don't create DECLs for anonymous SSA
12230 names. Expand all SSA partitions, then adjust all SSA names.
12231 (pass::execute): Replace the loops that set
12232 SA.partition_to_pseudo from partition leaders and cleared
12233 DECL_RTL for multi-location variables, and that which used to
12234 rename vars and set attrs, with one that clears DECL_RTL and
12235 checks that PARMs and RESULTs default_defs match DECL_RTL.
12236 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12237 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12238 * explow.c (promote_ssa_mode): New.
12239 * explow.h (promote_ssa_mode): Declare.
12240 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12241 * function.c: Include cfgexpand.h.
12242 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12243 (use_register_for_parm_decl): Wrapper for the above to
12244 special-case the result_ptr.
12245 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12246 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12247 multiple locations.
12248 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12249 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12250 (assign_parm_setup_block): Prefer SSA-assigned location.
12251 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12252 if stack_parm is NULL.
12253 (assign_parm_setup_stack): Prefer SSA-assigned location.
12254 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12255 rtl before testing for pointer bounds. Special-case result_ptr.
12256 (expand_function_start): Maybe reset DECL_RTL of result.
12257 Prefer SSA-assigned location for result and static chain.
12258 Factor out DECL_RESULT and SET_DECL_RTL.
12259 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12260 anonymous SSA names. Use promote_ssa_mode.
12261 (get_temp_reg): Likewise.
12262 (remove_ssa_form): Adjust.
12263 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12264 and get its reg_usage for reg invalidation.
12265 (compute_bb_dataflow): Pass it insn.
12266 (emit_notes_in_bb): Likewise.
12267 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
12268 fail assert on conversion between unsigned types.
12270 2015-06-09 Tom de Vries <tom@codesourcery.com>
12272 PR tree-optimization/65460
12273 * omp-low.c (expand_omp_target): Set parallelized_function on
12274 cgraph_node for child_fn.
12276 2015-06-09 Tom de Vries <tom@codesourcery.com>
12278 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
12279 parallelized_function before add_new_function.
12281 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
12283 * gcc-plugin.h: Move decls to plugin.h and include it.
12284 * plugin.h: Relocate decls from gcc-plugin.h
12285 * ggc-page.c: Include required header files.
12286 * passes.c: Likewise.
12287 * cgraphunit.c: Likewise.
12289 2015-06-09 Tom de Vries <tom@codesourcery.com>
12291 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
12293 2015-06-09 Jason Merrill <jason@redhat.com>
12296 * toplev.c (check_global_declaration): Don't warn about a clone.
12298 2015-06-09 Marek Polacek <polacek@redhat.com>
12300 PR tree-optimization/66299
12301 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
12302 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
12305 2015-06-09 Richard Biener <rguenther@suse.de>
12307 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
12308 (vect_analyze_slp_instance): Instead do not falsely drop
12311 2015-06-09 Richard Biener <rguenther@suse.de>
12313 PR middle-end/66423
12314 * match.pd: Handle A % (unsigned)(1 << B).
12316 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
12318 * varasm.c (output_object_block_htab): Remove.
12319 (output_object_block_compare): New.
12320 (output_object_blocks): Sort named object_blocks before outputting
12323 2015-06-09 Richard Biener <rguenther@suse.de>
12325 PR tree-optimization/66419
12326 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
12327 consider GROUP_GAP when detecting a perfect subchain.
12329 2015-06-09 Nick Clifton <nickc@redhat.com>
12331 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
12332 place read only data in the .frodata section.
12334 2015-06-09 Shiva Chen <shiva0217@gmail.com>
12336 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
12337 (atomic_store<mode>): Likewise.
12339 2015-06-09 Richard Biener <rguenther@suse.de>
12341 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
12343 2015-06-09 Richard Biener <rguenther@suse.de>
12345 PR middle-end/66413
12346 * tree-inline.c (insert_init_debug_bind): Unshare value.
12348 2015-06-09 Richard Biener <rguenther@suse.de>
12350 PR tree-optimization/66396
12351 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
12352 Rename virtual operands.
12354 2015-06-09 Tom de Vries <tom@codesourcery.com>
12356 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
12357 always return false.
12359 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12361 PR rtl-optimization/64164
12362 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12363 * tree-ssa-copyrename.c: Removed.
12364 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12365 -ftree-coalesce-vars.
12366 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12367 * common.opt (ftree-copyrename): Ignore.
12368 (ftree-coalesce-inlined-vars): Likewise.
12369 * doc/invoke.texi: Remove the ignored options above.
12370 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12371 * tree-ssa-coalesce.h: ... here.
12372 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12373 headers required by it.
12374 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12375 across variables when flag_tree_coalesce_vars. Check register
12376 use and promoted modes to allow coalescing. Moved to
12377 tree-ssa-coalesce.c.
12378 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12379 with its member functions to tree-ssa-coalesce.c.
12380 (var_map_base_init): Likewise. Renamed to
12381 compute_samebase_partition_bases.
12382 (partition_view_normal): Drop want_bases parameter.
12383 (partition_view_bitmap): Likewise.
12384 * tree-ssa-live.h: Adjust declarations.
12385 * tree-ssa-coalesce.c: Include explow.h.
12386 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12387 default defs at the entry point.
12388 (dump_part_var_map): New.
12389 (compute_optimized_partition_bases): New, called by...
12390 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12391 of compute_samebase_partition_bases. Adjust.
12392 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12393 * cfgexpand.c (leader_merge): New.
12394 (get_rtl_for_parm_ssa_default_def): New.
12395 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12396 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12397 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12398 redundant MEM attr setting.
12399 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12401 (expand_one_stack_var): ... this. New wrapper to check and
12402 skip already expanded SSA partitions.
12403 (record_alignment_for_reg_var): New, factored out of...
12404 (expand_one_var): ... this.
12405 (expand_one_ssa_partition): New.
12406 (adjust_one_expanded_partition_var): New.
12407 (expand_one_register_var): Check and skip already expanded SSA
12409 (expand_used_vars): Don't create DECLs for anonymous SSA
12410 names. Expand all SSA partitions, then adjust all SSA names.
12411 (pass::execute): Replace the loops that set
12412 SA.partition_to_pseudo from partition leaders and cleared
12413 DECL_RTL for multi-location variables, and that which used to
12414 rename vars and set attrs, with one that clears DECL_RTL and
12415 checks that PARMs and RESULTs default_defs match DECL_RTL.
12416 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12417 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12418 * explow.c (promote_ssa_mode): New.
12419 * explow.h (promote_ssa_mode): Declare.
12420 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12421 * function.c: Include cfgexpand.h.
12422 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12423 (use_register_for_parm_decl): Wrapper for the above to
12424 special-case the result_ptr.
12425 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12426 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12427 multiple locations.
12428 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12429 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12430 (assign_parm_setup_block): Prefer SSA-assigned location.
12431 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12432 if stack_parm is NULL.
12433 (assign_parm_setup_stack): Prefer SSA-assigned location.
12434 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12435 rtl before testing for pointer bounds. Special-case result_ptr.
12436 (expand_function_start): Maybe reset DECL_RTL of result.
12437 Prefer SSA-assigned location for result and static chain.
12438 Factor out DECL_RESULT and SET_DECL_RTL.
12439 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12440 anonymous SSA names. Use promote_ssa_mode.
12441 (get_temp_reg): Likewise.
12442 (remove_ssa_form): Adjust.
12443 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12444 and get its reg_usage for reg invalidation.
12445 (compute_bb_dataflow): Pass it insn.
12446 (emit_notes_in_bb): Likewise.
12447 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
12448 fail assert on conversion between unsigned types.
12450 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12453 * tree-inline.c (reset_debug_binding): New.
12454 (reset_debug_bindings): Likewise.
12455 (expand_call_inline): Call it.
12457 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
12459 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
12462 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
12464 * lto-streamer-out.c (lto_output_location): Stream
12465 reserved locations correctly.
12466 * lto-streamer-in.c (lto_output_location): Likewise.
12468 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
12470 * coretypes.h: Include hash-table.h and hash-set.h for host files.
12471 * ggc.h: Don't include statistics.h>
12472 * hash-map.h: Remove all includes.
12473 * hash-set.h: Likewise.
12474 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
12475 the include list. Remove <new>.
12476 * inchash.h: Remove all includes.
12477 * mem-stats.h: Likewise.
12478 * vec.h: No special processing for generators or ggc.
12479 * alias.c : Adjust include files.
12480 * alloc-pool.c : Likewise.
12481 * alloc-pool.h : Likewise.
12482 * asan.c : Likewise.
12483 * attribs.c : Likewise.
12484 * auto-inc-dec.c : Likewise.
12485 * auto-profile.c : Likewise.
12486 * bb-reorder.c : Likewise.
12487 * bitmap.c : Likewise.
12488 * bitmap.h : Likewise.
12489 * bt-load.c : Likewise.
12490 * builtins.c : Likewise.
12491 * caller-save.c : Likewise.
12492 * calls.c : Likewise.
12493 * ccmp.c : Likewise.
12494 * cfg.c : Likewise.
12495 * cfganal.c : Likewise.
12496 * cfgbuild.c : Likewise.
12497 * cfgcleanup.c : Likewise.
12498 * cfgexpand.c : Likewise.
12499 * cfghooks.c : Likewise.
12500 * cfgloop.c : Likewise.
12501 * cfgloop.h : Likewise.
12502 * cfgloopanal.c : Likewise.
12503 * cfgloopmanip.c : Likewise.
12504 * cfgrtl.c : Likewise.
12505 * cgraph.c : Likewise.
12506 * cgraphbuild.c : Likewise.
12507 * cgraphclones.c : Likewise.
12508 * cgraphunit.c : Likewise.
12509 * cilk-common.c : Likewise.
12510 * combine-stack-adj.c : Likewise.
12511 * combine.c : Likewise.
12512 * compare-elim.c : Likewise.
12513 * context.c : Likewise.
12514 * convert.c : Likewise.
12515 * coverage.c : Likewise.
12516 * cppbuiltin.c : Likewise.
12517 * cprop.c : Likewise.
12518 * cse.c : Likewise.
12519 * cselib.c : Likewise.
12520 * data-streamer-in.c : Likewise.
12521 * data-streamer-out.c : Likewise.
12522 * data-streamer.c : Likewise.
12523 * data-streamer.h : Likewise.
12524 * dbxout.c : Likewise.
12525 * dce.c : Likewise.
12526 * ddg.c : Likewise.
12527 * debug.c : Likewise.
12528 * df-core.c : Likewise.
12529 * df-problems.c : Likewise.
12530 * df-scan.c : Likewise.
12532 * dfp.c : Likewise.
12533 * dojump.c : Likewise.
12534 * dominance.c : Likewise.
12535 * domwalk.c : Likewise.
12536 * double-int.c : Likewise.
12537 * dse.c : Likewise.
12538 * dumpfile.c : Likewise.
12539 * dwarf2asm.c : Likewise.
12540 * dwarf2cfi.c : Likewise.
12541 * dwarf2out.c : Likewise.
12542 * emit-rtl.c : Likewise.
12543 * et-forest.c : Likewise.
12544 * except.c : Likewise.
12545 * except.h : Likewise.
12546 * explow.c : Likewise.
12547 * expmed.c : Likewise.
12548 * expr.c : Likewise.
12549 * final.c : Likewise.
12550 * fixed-value.c : Likewise.
12551 * fold-const.c : Likewise.
12552 * function.c : Likewise.
12553 * fwprop.c : Likewise.
12554 * gcc-plugin.h : Likewise.
12555 * gcc.c : Likewise.
12556 * gcse-common.c : Likewise.
12557 * gcse.c : Likewise.
12558 * genattrtab.c : Likewise.
12559 * genautomata.c : Likewise.
12560 * genconditions.c : Likewise.
12561 * genemit.c : Likewise.
12562 * generic-match-head.c : Likewise.
12563 * genextract.c : Likewise.
12564 * gengtype-state.c : Likewise.
12565 * gengtype.c : Likewise.
12566 * genhooks.c : Likewise.
12567 * genmatch.c : Likewise.
12568 * genmodes.c : Likewise.
12569 * genrecog.c : Likewise.
12570 * gensupport.c : Likewise.
12571 * ggc-common.c : Likewise.
12572 * ggc-internal.h : Likewise.
12573 * ggc-none.c : Likewise.
12574 * ggc-page.c : Likewise.
12575 * gimple-builder.c : Likewise.
12576 * gimple-expr.c : Likewise.
12577 * gimple-fold.c : Likewise.
12578 * gimple-iterator.c : Likewise.
12579 * gimple-low.c : Likewise.
12580 * gimple-match-head.c : Likewise.
12581 * gimple-pretty-print.c : Likewise.
12582 * gimple-ssa-isolate-paths.c : Likewise.
12583 * gimple-ssa-strength-reduction.c : Likewise.
12584 * gimple-ssa.h : Likewise.
12585 * gimple-streamer-in.c : Likewise.
12586 * gimple-streamer-out.c : Likewise.
12587 * gimple-streamer.h : Likewise.
12588 * gimple-walk.c : Likewise.
12589 * gimple.c : Likewise.
12590 * gimplify-me.c : Likewise.
12591 * gimplify.c : Likewise.
12592 * godump.c : Likewise.
12593 * graph.c : Likewise.
12594 * graphds.c : Likewise.
12595 * graphite-blocking.c : Likewise.
12596 * graphite-dependences.c : Likewise.
12597 * graphite-interchange.c : Likewise.
12598 * graphite-isl-ast-to-gimple.c : Likewise.
12599 * graphite-optimize-isl.c : Likewise.
12600 * graphite-poly.c : Likewise.
12601 * graphite-scop-detection.c : Likewise.
12602 * graphite-sese-to-poly.c : Likewise.
12603 * graphite.c : Likewise.
12604 * haifa-sched.c : Likewise.
12605 * hard-reg-set.h : Likewise.
12606 * hw-doloop.c : Likewise.
12607 * ifcvt.c : Likewise.
12608 * inchash.c : Likewise.
12609 * incpath.c : Likewise.
12610 * init-regs.c : Likewise.
12611 * input.c : Likewise.
12612 * internal-fn.c : Likewise.
12613 * ipa-chkp.c : Likewise.
12614 * ipa-comdats.c : Likewise.
12615 * ipa-cp.c : Likewise.
12616 * ipa-devirt.c : Likewise.
12617 * ipa-icf-gimple.c : Likewise.
12618 * ipa-icf.c : Likewise.
12619 * ipa-inline-analysis.c : Likewise.
12620 * ipa-inline-transform.c : Likewise.
12621 * ipa-inline.c : Likewise.
12622 * ipa-polymorphic-call.c : Likewise.
12623 * ipa-profile.c : Likewise.
12624 * ipa-prop.c : Likewise.
12625 * ipa-pure-const.c : Likewise.
12626 * ipa-ref.c : Likewise.
12627 * ipa-reference.c : Likewise.
12628 * ipa-split.c : Likewise.
12629 * ipa-utils.c : Likewise.
12630 * ipa-visibility.c : Likewise.
12631 * ipa.c : Likewise.
12632 * ira-build.c : Likewise.
12633 * ira-color.c : Likewise.
12634 * ira-conflicts.c : Likewise.
12635 * ira-costs.c : Likewise.
12636 * ira-emit.c : Likewise.
12637 * ira-lives.c : Likewise.
12638 * ira.c : Likewise.
12639 * jump.c : Likewise.
12640 * langhooks.c : Likewise.
12641 * lcm.c : Likewise.
12642 * libfuncs.h : Likewise.
12643 * lists.c : Likewise.
12644 * loop-doloop.c : Likewise.
12645 * loop-init.c : Likewise.
12646 * loop-invariant.c : Likewise.
12647 * loop-iv.c : Likewise.
12648 * loop-unroll.c : Likewise.
12649 * lower-subreg.c : Likewise.
12650 * lra-assigns.c : Likewise.
12651 * lra-coalesce.c : Likewise.
12652 * lra-constraints.c : Likewise.
12653 * lra-eliminations.c : Likewise.
12654 * lra-lives.c : Likewise.
12655 * lra-remat.c : Likewise.
12656 * lra-spills.c : Likewise.
12657 * lra.c : Likewise.
12658 * lto-cgraph.c : Likewise.
12659 * lto-compress.c : Likewise.
12660 * lto-opts.c : Likewise.
12661 * lto-section-in.c : Likewise.
12662 * lto-section-out.c : Likewise.
12663 * lto-streamer-in.c : Likewise.
12664 * lto-streamer-out.c : Likewise.
12665 * lto-streamer.c : Likewise.
12666 * lto-streamer.h : Likewise.
12667 * mcf.c : Likewise.
12668 * mode-switching.c : Likewise.
12669 * modulo-sched.c : Likewise.
12670 * omega.c : Likewise.
12671 * omp-low.c : Likewise.
12672 * optabs.c : Likewise.
12673 * opts-global.c : Likewise.
12674 * opts.h : Likewise.
12675 * passes.c : Likewise.
12676 * plugin.c : Likewise.
12677 * postreload-gcse.c : Likewise.
12678 * postreload.c : Likewise.
12679 * predict.c : Likewise.
12680 * print-rtl.c : Likewise.
12681 * print-tree.c : Likewise.
12682 * profile.c : Likewise.
12683 * read-md.c : Likewise.
12684 * read-md.h : Likewise.
12685 * read-rtl.c : Likewise.
12686 * real.c : Likewise.
12687 * realmpfr.c : Likewise.
12688 * recog.c : Likewise.
12689 * ree.c : Likewise.
12690 * reg-stack.c : Likewise.
12691 * regcprop.c : Likewise.
12692 * reginfo.c : Likewise.
12693 * regrename.c : Likewise.
12694 * regstat.c : Likewise.
12695 * reload.c : Likewise.
12696 * reload1.c : Likewise.
12697 * reorg.c : Likewise.
12698 * resource.c : Likewise.
12699 * rtl-chkp.c : Likewise.
12700 * rtl.c : Likewise.
12701 * rtl.h : Likewise.
12702 * rtlanal.c : Likewise.
12703 * rtlhash.c : Likewise.
12704 * rtlhash.h : Likewise.
12705 * rtlhooks.c : Likewise.
12706 * sanopt.c : Likewise.
12707 * sched-deps.c : Likewise.
12708 * sched-ebb.c : Likewise.
12709 * sched-rgn.c : Likewise.
12710 * sched-vis.c : Likewise.
12711 * sdbout.c : Likewise.
12712 * sel-sched-dump.c : Likewise.
12713 * sel-sched-ir.c : Likewise.
12714 * sel-sched-ir.h : Likewise.
12715 * sel-sched.c : Likewise.
12716 * sese.c : Likewise.
12717 * shrink-wrap.c : Likewise.
12718 * shrink-wrap.h : Likewise.
12719 * simplify-rtx.c : Likewise.
12720 * stack-ptr-mod.c : Likewise.
12721 * statistics.c : Likewise.
12722 * stmt.c : Likewise.
12723 * stor-layout.c : Likewise.
12724 * store-motion.c : Likewise.
12725 * stringpool.c : Likewise.
12726 * symtab.c : Likewise.
12727 * target-globals.c : Likewise.
12728 * targhooks.c : Likewise.
12729 * tlink.c : Likewise.
12730 * toplev.c : Likewise.
12731 * tracer.c : Likewise.
12732 * trans-mem.c : Likewise.
12733 * tree-affine.c : Likewise.
12734 * tree-affine.h : Likewise.
12735 * tree-browser.c : Likewise.
12736 * tree-call-cdce.c : Likewise.
12737 * tree-cfg.c : Likewise.
12738 * tree-cfgcleanup.c : Likewise.
12739 * tree-chkp-opt.c : Likewise.
12740 * tree-chkp.c : Likewise.
12741 * tree-chrec.c : Likewise.
12742 * tree-complex.c : Likewise.
12743 * tree-data-ref.c : Likewise.
12744 * tree-dfa.c : Likewise.
12745 * tree-diagnostic.c : Likewise.
12746 * tree-dump.c : Likewise.
12747 * tree-eh.c : Likewise.
12748 * tree-eh.h : Likewise.
12749 * tree-emutls.c : Likewise.
12750 * tree-hasher.h : Likewise.
12751 * tree-if-conv.c : Likewise.
12752 * tree-inline.c : Likewise.
12753 * tree-inline.h : Likewise.
12754 * tree-into-ssa.c : Likewise.
12755 * tree-iterator.c : Likewise.
12756 * tree-loop-distribution.c : Likewise.
12757 * tree-nested.c : Likewise.
12758 * tree-nrv.c : Likewise.
12759 * tree-object-size.c : Likewise.
12760 * tree-outof-ssa.c : Likewise.
12761 * tree-parloops.c : Likewise.
12762 * tree-phinodes.c : Likewise.
12763 * tree-predcom.c : Likewise.
12764 * tree-pretty-print.c : Likewise.
12765 * tree-profile.c : Likewise.
12766 * tree-scalar-evolution.c : Likewise.
12767 * tree-sra.c : Likewise.
12768 * tree-ssa-address.c : Likewise.
12769 * tree-ssa-alias.c : Likewise.
12770 * tree-ssa-ccp.c : Likewise.
12771 * tree-ssa-coalesce.c : Likewise.
12772 * tree-ssa-copy.c : Likewise.
12773 * tree-ssa-copyrename.c : Likewise.
12774 * tree-ssa-dce.c : Likewise.
12775 * tree-ssa-dom.c : Likewise.
12776 * tree-ssa-dse.c : Likewise.
12777 * tree-ssa-forwprop.c : Likewise.
12778 * tree-ssa-ifcombine.c : Likewise.
12779 * tree-ssa-live.c : Likewise.
12780 * tree-ssa-loop-ch.c : Likewise.
12781 * tree-ssa-loop-im.c : Likewise.
12782 * tree-ssa-loop-ivcanon.c : Likewise.
12783 * tree-ssa-loop-ivopts.c : Likewise.
12784 * tree-ssa-loop-manip.c : Likewise.
12785 * tree-ssa-loop-niter.c : Likewise.
12786 * tree-ssa-loop-prefetch.c : Likewise.
12787 * tree-ssa-loop-unswitch.c : Likewise.
12788 * tree-ssa-loop.c : Likewise.
12789 * tree-ssa-math-opts.c : Likewise.
12790 * tree-ssa-operands.c : Likewise.
12791 * tree-ssa-phiopt.c : Likewise.
12792 * tree-ssa-phiprop.c : Likewise.
12793 * tree-ssa-pre.c : Likewise.
12794 * tree-ssa-propagate.c : Likewise.
12795 * tree-ssa-reassoc.c : Likewise.
12796 * tree-ssa-sccvn.c : Likewise.
12797 * tree-ssa-scopedtables.c : Likewise.
12798 * tree-ssa-sink.c : Likewise.
12799 * tree-ssa-strlen.c : Likewise.
12800 * tree-ssa-structalias.c : Likewise.
12801 * tree-ssa-tail-merge.c : Likewise.
12802 * tree-ssa-ter.c : Likewise.
12803 * tree-ssa-threadedge.c : Likewise.
12804 * tree-ssa-threadupdate.c : Likewise.
12805 * tree-ssa-uncprop.c : Likewise.
12806 * tree-ssa-uninit.c : Likewise.
12807 * tree-ssa.c : Likewise.
12808 * tree-ssanames.c : Likewise.
12809 * tree-stdarg.c : Likewise.
12810 * tree-streamer-in.c : Likewise.
12811 * tree-streamer-out.c : Likewise.
12812 * tree-streamer.c : Likewise.
12813 * tree-streamer.h : Likewise.
12814 * tree-switch-conversion.c : Likewise.
12815 * tree-tailcall.c : Likewise.
12816 * tree-vect-data-refs.c : Likewise.
12817 * tree-vect-generic.c : Likewise.
12818 * tree-vect-loop-manip.c : Likewise.
12819 * tree-vect-loop.c : Likewise.
12820 * tree-vect-patterns.c : Likewise.
12821 * tree-vect-slp.c : Likewise.
12822 * tree-vect-stmts.c : Likewise.
12823 * tree-vectorizer.c : Likewise.
12824 * tree-vectorizer.h : Likewise.
12825 * tree-vrp.c : Likewise.
12826 * tree.c : Likewise.
12827 * tsan.c : Likewise.
12828 * ubsan.c : Likewise.
12829 * valtrack.c : Likewise.
12830 * valtrack.h : Likewise.
12831 * value-prof.c : Likewise.
12832 * var-tracking.c : Likewise.
12833 * varasm.c : Likewise.
12834 * varpool.c : Likewise.
12836 * vmsdbgout.c : Likewise.
12837 * vtable-verify.c : Likewise.
12838 * vtable-verify.h : Likewise.
12839 * web.c : Likewise.
12840 * wide-int.cc : Likewise.
12841 * xcoffout.c : Likewise.
12842 * config/aarch64/aarch64-builtins.c : Likewise.
12843 * config/aarch64/aarch64.c : Likewise.
12844 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
12845 * config/alpha/alpha.c : Likewise.
12846 * config/arc/arc.c : Likewise.
12847 * config/arm/aarch-common.c : Likewise.
12848 * config/arm/arm-builtins.c : Likewise.
12849 * config/arm/arm-c.c : Likewise.
12850 * config/arm/arm.c : Likewise.
12851 * config/avr/avr-c.c : Likewise.
12852 * config/avr/avr-log.c : Likewise.
12853 * config/avr/avr.c : Likewise.
12854 * config/bfin/bfin.c : Likewise.
12855 * config/c6x/c6x.c : Likewise.
12856 * config/cr16/cr16.c : Likewise.
12857 * config/cris/cris.c : Likewise.
12858 * config/darwin-c.c : Likewise.
12859 * config/darwin.c : Likewise.
12860 * config/default-c.c : Likewise.
12861 * config/epiphany/epiphany.c : Likewise.
12862 * config/epiphany/mode-switch-use.c : Likewise.
12863 * config/epiphany/resolve-sw-modes.c : Likewise.
12864 * config/fr30/fr30.c : Likewise.
12865 * config/frv/frv.c : Likewise.
12866 * config/ft32/ft32.c : Likewise.
12867 * config/glibc-c.c : Likewise.
12868 * config/h8300/h8300.c : Likewise.
12869 * config/i386/i386-c.c : Likewise.
12870 * config/i386/i386.c : Likewise.
12871 * config/i386/msformat-c.c : Likewise.
12872 * config/i386/winnt-cxx.c : Likewise.
12873 * config/i386/winnt-stubs.c : Likewise.
12874 * config/i386/winnt.c : Likewise.
12875 * config/ia64/ia64-c.c : Likewise.
12876 * config/ia64/ia64.c : Likewise.
12877 * config/iq2000/iq2000.c : Likewise.
12878 * config/lm32/lm32.c : Likewise.
12879 * config/m32c/m32c-pragma.c : Likewise.
12880 * config/m32c/m32c.c : Likewise.
12881 * config/m32r/m32r.c : Likewise.
12882 * config/m68k/m68k.c : Likewise.
12883 * config/mcore/mcore.c : Likewise.
12884 * config/mep/mep-pragma.c : Likewise.
12885 * config/mep/mep.c : Likewise.
12886 * config/microblaze/microblaze-c.c : Likewise.
12887 * config/microblaze/microblaze.c : Likewise.
12888 * config/mips/mips.c : Likewise.
12889 * config/mmix/mmix.c : Likewise.
12890 * config/mn10300/mn10300.c : Likewise.
12891 * config/moxie/moxie.c : Likewise.
12892 * config/msp430/msp430-c.c : Likewise.
12893 * config/msp430/msp430.c : Likewise.
12894 * config/nds32/nds32-cost.c : Likewise.
12895 * config/nds32/nds32-fp-as-gp.c : Likewise.
12896 * config/nds32/nds32-intrinsic.c : Likewise.
12897 * config/nds32/nds32-isr.c : Likewise.
12898 * config/nds32/nds32-md-auxiliary.c : Likewise.
12899 * config/nds32/nds32-memory-manipulation.c : Likewise.
12900 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
12901 * config/nds32/nds32-predicates.c : Likewise.
12902 * config/nds32/nds32.c : Likewise.
12903 * config/nios2/nios2.c : Likewise.
12904 * config/nvptx/nvptx.c : Likewise.
12905 * config/pa/pa.c : Likewise.
12906 * config/pdp11/pdp11.c : Likewise.
12907 * config/rl78/rl78-c.c : Likewise.
12908 * config/rl78/rl78.c : Likewise.
12909 * config/rs6000/rs6000-c.c : Likewise.
12910 * config/rs6000/rs6000.c : Likewise.
12911 * config/rx/rx.c : Likewise.
12912 * config/s390/s390-c.c : Likewise.
12913 * config/s390/s390.c : Likewise.
12914 * config/sh/sh-c.c : Likewise.
12915 * config/sh/sh-mem.cc : Likewise.
12916 * config/sh/sh.c : Likewise.
12917 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
12918 * config/sh/sh_treg_combine.cc : Likewise.
12919 * config/sol2-c.c : Likewise.
12920 * config/sol2-cxx.c : Likewise.
12921 * config/sol2-stubs.c : Likewise.
12922 * config/sol2.c : Likewise.
12923 * config/sparc/sparc-c.c : Likewise.
12924 * config/sparc/sparc.c : Likewise.
12925 * config/spu/spu-c.c : Likewise.
12926 * config/spu/spu.c : Likewise.
12927 * config/stormy16/stormy16.c : Likewise.
12928 * config/tilegx/mul-tables.c : Likewise.
12929 * config/tilegx/tilegx-c.c : Likewise.
12930 * config/tilegx/tilegx.c : Likewise.
12931 * config/tilepro/mul-tables.c : Likewise.
12932 * config/tilepro/tilepro-c.c : Likewise.
12933 * config/tilepro/tilepro.c : Likewise.
12934 * config/v850/v850-c.c : Likewise.
12935 * config/v850/v850.c : Likewise.
12936 * config/vax/vax.c : Likewise.
12937 * config/visium/visium.c : Likewise.
12938 * config/vms/vms-c.c : Likewise.
12939 * config/vms/vms.c : Likewise.
12940 * config/vxworks.c : Likewise.
12941 * config/winnt-c.c : Likewise.
12942 * config/xtensa/xtensa.c : Likewise.
12944 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
12947 * ipa-utils.h (warn_types_mismatch): Update prototype.
12948 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
12950 (type_mismatch_p): New function.
12951 (warn_types_mismatch): Reorg to work better on non-C++ types.
12952 (odr_types_equivalent_p): Add loc1/loc2 parameters.
12953 (add_type_duplicate): Update.
12955 2015-06-08 Tom de Vries <tom@codesourcery.com>
12957 PR rtl-optimization/66444
12958 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
12961 2015-06-08 Richard Biener <rguenther@suse.de>
12963 PR tree-optimization/66422
12964 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
12965 block after inserted gcc_unreachable.
12967 2015-06-08 Nick Clifton <nickc@redhat.com>
12969 * config/rx/rx.c (rx_function_value): Do not promote vector types.
12970 (rx_promote_function_mode): Likewise.
12971 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
12973 2015-06-08 Jakub Jelinek <jakub@redhat.com>
12975 * genattrtab.c (insn_alternatives): Change type from int *
12977 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
12978 (get_attr_value): Change type of num_alt to uint64_t.
12979 (compute_alternative_mask): Change return type from
12980 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
12981 (make_alternative_compare, mk_attr_alt): Change argument type
12982 from int to uint64_t.
12983 (simplify_test_exp): Change type of i from int to uint64_t.
12984 Shift ((uint64_t) 1) instead of 1 up.
12985 (main): Adjust oballocvec first argument from int to uint64_t.
12986 Shift ((uint64_t) 1) instead of 1 up.
12988 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
12991 * gdbhooks.py: Import sys.
12992 (intptr): New function. Replace int(...) by intptr(...).
12994 2015-06-08 Richard Biener <rguenther@suse.de>
12996 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
12997 adjustment for gaps at the end of a SLP load group properly.
12998 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
12999 all permutations we can generate.
13000 (vect_transform_slp_perm_load): Use the correct group-size.
13002 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
13004 * genmatch.c (expr::gen_transform): For conditions, guess the type
13005 from the second operand.
13007 2015-06-08 Tom de Vries <tom@codesourcery.com>
13009 PR tree-optimization/66442
13010 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
13011 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
13012 if the loop latch is not a singleton. Use
13013 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
13015 2015-06-08 Marek Polacek <polacek@redhat.com>
13018 * toplev.c (check_global_declaration): Don't warn about artificial
13021 2015-06-08 Tom de Vries <tom@codesourcery.com>
13023 PR tree-optimization/66436
13024 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
13026 * gimplify.c: Add tree-dump.h include.
13027 (gimplify_function_tree): Dump function to gimple dump file.
13028 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
13031 2015-06-08 Tom de Vries <tom@codesourcery.com>
13033 PR tree-optimization/66435
13034 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
13037 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
13039 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
13040 of ptr_type_node to not be ptr_to_node.
13041 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
13042 TREE_TYPE of pointers.
13043 * gimple-expr.c (useless_type_conversion): Reorder the check for
13044 function pointers and TYPE_CANONICAL.
13046 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
13049 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
13050 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
13051 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
13053 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
13054 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
13055 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
13056 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
13057 and non iso if unix2003.
13059 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
13061 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
13063 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
13065 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
13066 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
13067 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
13068 except.c, final.c, function.c, gcse-common.c, genemit.c,
13069 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
13070 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
13071 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
13072 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
13075 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
13077 * combine.c (combine_split_insns): Remove cast.
13078 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
13079 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
13080 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
13081 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
13082 * genemit.c (gen_split): Change return type of generated functions to
13084 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
13085 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
13086 gen_peephole2_* functions.
13087 (print_subroutine, main): Likewise.
13088 * recog.c (peephole2_optimize): Remove cast.
13089 (peep2_next_insn): Promote return type to rtx_insn.
13090 * recog.h (peep2_next_insn): Fix prototype.
13091 * rtl.h (try_split, split_insns): Likewise.
13093 2015-06-06 DJ Delorie <dj@redhat.com>
13095 * config/msp430/msp430.c (msp430_asm_integer): Support addition
13096 and subtraction too.
13098 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
13101 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
13102 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
13103 instead of Snd. Disparage Sid/z alternative with '^'.
13105 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
13107 * dwarf2out.c: Remove deferred_locations*.
13108 (dwarf2_debug_hooks): Add early_finish hook.
13109 Remove global_decl hook.
13110 Add early_global_decl and late_global_decl hook.
13111 New global early_dwarf.
13112 New structure set_early_dwarf.
13113 (output_die): Indicate whether a DIE was generated early
13114 when generating assembly with -dA.
13115 (struct limbo_die_struct): Document created_for field.
13116 Remove file_table_last_lookup.
13117 (remove_AT): Return TRUE if successful.
13118 (remove_child_TAG): Clear die_parent.
13119 (reparent_child): New function abstracted from...
13120 (splice_child_die): ...here.
13121 (new_die): ICE if a DIE ends up in limbo too late.
13123 (defer_location): Remove.
13124 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
13125 (fill_variable_array_bounds): New.
13126 (decl_start_label): Call fill_variable_array_bounds.
13127 (gen_formal_parameter_die): Rewrite to reuse previously generated
13129 (gen_subprogram_die): Same.
13130 (gen_variable_die): Same.
13131 (gen_const_die): Same.
13132 (gen_label_die): Same.
13133 (gen_lexical_block_die): Same.
13134 (decl_will_get_specification_p): New.
13135 (local_function_static): New.
13136 (gen_struct_or_union_type_die): Fill in variable-length fields.
13137 (gen_typedef_die): Fill in variable-length typedefs.
13138 (gen_tagged_type_die): Gracefully return on error_mark_node.
13139 Handle re-entrancy.
13140 (gen_type_die_with_usage): Handle variable-length types.
13141 Remove duplicate code for ARRAY_TYPE case.
13142 (process_scope_var): Only process imported modules during early
13144 (dwarf2out_early_global_decl): New.
13145 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
13146 (dwarf2out_type_decl): Set early_dwarf while calling
13148 (dwarf2out_decl): Verify that we did not recreate a previously
13150 Do not return on DECL_EXTERNALs in VAR_DECLs.
13151 Abstract some code to local_function_static.
13152 (lookup_filename): Remove use of file_table_last_lookup.
13153 Gracefully exit on missing file_name.
13154 (dwarf2out_finish): Verify limbo list.
13155 Remove deferred_locations_list use.
13156 Move deferred_asm_name and limbo flushing to...
13157 (dwarf2out_early_finish): ...here. New.
13158 (dwarf2out_c_finalize): Remove set of deferred_location_list,
13159 deferred_asm_name, and file_table_last_lookup.
13160 * cgraph.h (referred_to_p): Add default argument.
13161 * cgraphunit.c (referred_to_p): Add and handle include_self
13163 (analyze_functions): Add first_time argument.
13164 Call check_global_declaration for all symbols.
13165 Call late_global_decl for nodes for moribund nodes.
13166 (finalize_compilation_unit): Add new argument to
13168 Call early_global_decl for functions.
13169 Call early_finish debug hook.
13170 * dbxout.c (dbxout_early_global_decl): New.
13171 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
13172 (dbx_debug_hooks): Add new hooks.
13173 (xcoff_debug_hooks): Same.
13174 * debug.c (do_nothing_debug_hooks): Add early_finish field.
13175 Add early and late debug hooks.
13176 Remove global_decl hook.
13177 * debug.h (struct gcc_debug_hooks): Add early_finish,
13178 early_global_decl, and late_global_decl fields.
13179 Remove global_decl field.
13180 Document gcc_debug_hooks.
13181 * gengtype.c (output_typename): Remove.
13182 * godump.c (go_early_global_decl): New.
13183 (go_late_global_decl): New.
13184 (go_global_decl): Remove.
13185 (dump_go_spec_init): Remove global_decl. Add
13186 {early,late}_global_decl.
13187 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
13188 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
13189 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
13190 (write_global_declarations): Remove.
13191 (global_decl_processing): New.
13192 * langhooks.h (struct lang_hooks_for_decls): Remove
13193 final_write_globals field.
13194 Add post_compilation_parsing_cleanups field.
13195 * passes.c (rest_of_decl_compilation): Call early_global_decl.
13196 * sdbout.c: Add early and late_global_decl hooks. Remove
13197 sdbout_global_decl hook.
13198 Add early_finish field for sdb_debug_hooks.
13199 (sdbout_global_decl): Remove.
13200 (sdbout_early_global_decl): New.
13201 (sdbout_late_global_decl): New.
13202 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
13203 * toplev.c (check_global_declaration): Rename from
13204 check_global_declaration_1.
13205 Adapt to use symtab infrastructure.
13206 (check_global_declarations): Remove.
13207 (emit_debug_global_declarations): Remove.
13208 (compile_file): Remove call to final_write_globals langhook.
13209 Run the actual compilation process.
13210 Perform any post compilation parser cleanups.
13211 Generate late debug info.
13212 * toplev.h (check_global_declaration): New.
13213 (check_global_declaration_1): Remove.
13214 (check_global_declarations): Remove.
13215 (write_global_declarations): Remove.
13216 (emit_debug_global_declarations): Remove.
13217 (global_decl_processing): New.
13218 * tree-core.h (struct tree_block): Add DIE field.
13219 * tree.h (BLOCK_DIE): New.
13220 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
13222 (vmsdbgout_early_global_decl): New.
13223 (vmsdbgout_late_global_decl): New.
13224 Add early_finish debug hook field to vmsdbg_debug_hooks.
13225 Remove vmsdbgout_decl to vmsdbgout_function_decl.
13226 Add early and late_global_decl debug hooks.
13228 2015-06-05 Julian Brown <julian@codesourcery.com>
13229 Sandra Loosemore <sandra@codesourcery.com>
13231 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
13232 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
13233 to print-sysroot-suffix.sh script.
13235 2015-06-05 Tom de Vries <tom@codesourcery.com>
13237 merge from gomp4 branch:
13238 2015-05-28 Tom de Vries <tom@codesourcery.com>
13240 PR tree-optimization/65443
13241 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
13242 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
13243 (try_transform_to_exit_first_loop_alt): New function.
13244 (transform_to_exit_first_loop): Use
13245 try_transform_to_exit_first_loop_alt.
13247 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
13249 * builtins.c (expand_builtin_atomic_compare_exchange): Call
13250 emit_cmp_and_jump_insns with the mode of target.
13252 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13254 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
13256 2015-06-04 DJ Delorie <dj@redhat.com>
13258 * config/msp430/msp430.md (movsi_s): New. Special case for
13259 storing a 20-bit symbol into a 32-bit register.
13260 * config/msp430/msp430.c (msp430_subreg): Add support for it.
13261 * config/msp430/predicates.md (msp430_symbol_operand): New.
13263 2015-06-04 Sriraman Tallam <tmsriram@google.com>
13265 * c-family/c-common.c (noplt): New attribute.
13266 (handle_noplt_attribute): New handler.
13267 * calls.c (prepare_call_address): Check for noplt
13269 * config/i386/i386.c (ix86_expand_call): Check
13270 for noplt attribute.
13271 (ix86_nopic_noplt_attribute_p): New function.
13272 (ix86_output_call_insn): Output indirect call for non-pic
13274 * doc/extend.texi (noplt): Document new attribute.
13275 * doc/invoke.texi: Document new attribute.
13277 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
13279 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
13280 real.h, and fixed-value.h when included in host source files.
13281 * double-int.h: Remove redundant #includes listed above.
13282 * fixed-value.h: Likewise.
13283 * real.h: Likewise.
13284 * wide-int.h: Likewise.
13285 * inchash.h: Likewise.
13286 * rtl.h: Add some include files When included from a generator file.
13287 * target.h: Remove wide-int.h and insn-modes.h from the include list.
13288 * internal-fn.h: Don't include coretypes.h.
13289 * alias.c: Adjust includes for restructured coretypes.h.
13290 * asan.c: Likewise.
13291 * attribs.c: Likewise.
13292 * auto-inc-dec.c: Likewise.
13293 * auto-profile.c: Likewise.
13294 * bb-reorder.c: Likewise.
13295 * bt-load.c: Likewise.
13296 * builtins.c: Likewise.
13297 * caller-save.c: Likewise.
13298 * calls.c: Likewise.
13299 * ccmp.c: Likewise.
13301 * cfganal.c: Likewise.
13302 * cfgbuild.c: Likewise.
13303 * cfgcleanup.c: Likewise.
13304 * cfgexpand.c: Likewise.
13305 * cfghooks.c: Likewise.
13306 * cfgloop.c: Likewise.
13307 * cfgloop.h: Likewise.
13308 * cfgloopanal.c: Likewise.
13309 * cfgloopmanip.c: Likewise.
13310 * cfgrtl.c: Likewise.
13311 * cgraph.c: Likewise.
13312 * cgraphbuild.c: Likewise.
13313 * cgraphclones.c: Likewise.
13314 * cgraphunit.c: Likewise.
13315 * cilk-common.c: Likewise.
13316 * combine-stack-adj.c: Likewise.
13317 * combine.c: Likewise.
13318 * compare-elim.c: Likewise.
13319 * convert.c: Likewise.
13320 * coverage.c: Likewise.
13321 * cppbuiltin.c: Likewise.
13322 * cprop.c: Likewise.
13324 * cselib.c: Likewise.
13325 * data-streamer-in.c: Likewise.
13326 * data-streamer-out.c: Likewise.
13327 * data-streamer.c: Likewise.
13328 * dbxout.c: Likewise.
13331 * debug.c: Likewise.
13332 * df-core.c: Likewise.
13333 * df-problems.c: Likewise.
13334 * df-scan.c: Likewise.
13337 * dojump.c: Likewise.
13338 * dominance.c: Likewise.
13339 * domwalk.c: Likewise.
13340 * double-int.c: Likewise.
13342 * dumpfile.c: Likewise.
13343 * dwarf2asm.c: Likewise.
13344 * dwarf2cfi.c: Likewise.
13345 * dwarf2out.c: Likewise.
13346 * dwarf2out.h: Likewise.
13347 * emit-rtl.c: Likewise.
13348 * et-forest.c: Likewise.
13349 * except.c: Likewise.
13350 * explow.c: Likewise.
13351 * expmed.c: Likewise.
13352 * expr.c: Likewise.
13353 * final.c: Likewise.
13354 * fixed-value.c: Likewise.
13355 * fold-const.c: Likewise.
13356 * function.c: Likewise.
13357 * fwprop.c: Likewise.
13358 * gcc-plugin.h: Likewise.
13359 * gcse.c: Likewise.
13360 * generic-match-head.c: Likewise.
13361 * ggc-page.c: Likewise.
13362 * gimple-builder.c: Likewise.
13363 * gimple-expr.c: Likewise.
13364 * gimple-fold.c: Likewise.
13365 * gimple-iterator.c: Likewise.
13366 * gimple-low.c: Likewise.
13367 * gimple-match-head.c: Likewise.
13368 * gimple-pretty-print.c: Likewise.
13369 * gimple-ssa-isolate-paths.c: Likewise.
13370 * gimple-ssa-strength-reduction.c: Likewise.
13371 * gimple-streamer-in.c: Likewise.
13372 * gimple-streamer-out.c: Likewise.
13373 * gimple-streamer.h: Likewise.
13374 * gimple-walk.c: Likewise.
13375 * gimple.c: Likewise.
13376 * gimplify-me.c: Likewise.
13377 * gimplify.c: Likewise.
13378 * godump.c: Likewise.
13379 * graph.c: Likewise.
13380 * graphite-blocking.c: Likewise.
13381 * graphite-dependences.c: Likewise.
13382 * graphite-interchange.c: Likewise.
13383 * graphite-isl-ast-to-gimple.c: Likewise.
13384 * graphite-optimize-isl.c: Likewise.
13385 * graphite-poly.c: Likewise.
13386 * graphite-scop-detection.c: Likewise.
13387 * graphite-sese-to-poly.c: Likewise.
13388 * graphite.c: Likewise.
13389 * haifa-sched.c: Likewise.
13390 * hooks.h: Likewise.
13391 * hw-doloop.c: Likewise.
13392 * ifcvt.c: Likewise.
13393 * incpath.c: Likewise.
13394 * init-regs.c: Likewise.
13395 * internal-fn.c: Likewise.
13396 * ipa-chkp.c: Likewise.
13397 * ipa-comdats.c: Likewise.
13398 * ipa-cp.c: Likewise.
13399 * ipa-devirt.c: Likewise.
13400 * ipa-icf-gimple.c: Likewise.
13401 * ipa-icf.c: Likewise.
13402 * ipa-inline-analysis.c: Likewise.
13403 * ipa-inline-transform.c: Likewise.
13404 * ipa-inline.c: Likewise.
13405 * ipa-polymorphic-call.c: Likewise.
13406 * ipa-profile.c: Likewise.
13407 * ipa-prop.c: Likewise.
13408 * ipa-pure-const.c: Likewise.
13409 * ipa-ref.c: Likewise.
13410 * ipa-reference.c: Likewise.
13411 * ipa-split.c: Likewise.
13412 * ipa-utils.c: Likewise.
13413 * ipa-visibility.c: Likewise.
13415 * ira-build.c: Likewise.
13416 * ira-color.c: Likewise.
13417 * ira-conflicts.c: Likewise.
13418 * ira-costs.c: Likewise.
13419 * ira-emit.c: Likewise.
13420 * ira-lives.c: Likewise.
13422 * jump.c: Likewise.
13423 * langhooks.c: Likewise.
13425 * loop-doloop.c: Likewise.
13426 * loop-init.c: Likewise.
13427 * loop-invariant.c: Likewise.
13428 * loop-iv.c: Likewise.
13429 * loop-unroll.c: Likewise.
13430 * lower-subreg.c: Likewise.
13431 * lra-assigns.c: Likewise.
13432 * lra-coalesce.c: Likewise.
13433 * lra-constraints.c: Likewise.
13434 * lra-eliminations.c: Likewise.
13435 * lra-lives.c: Likewise.
13436 * lra-remat.c: Likewise.
13437 * lra-spills.c: Likewise.
13439 * lto-cgraph.c: Likewise.
13440 * lto-compress.c: Likewise.
13441 * lto-opts.c: Likewise.
13442 * lto-section-in.c: Likewise.
13443 * lto-section-out.c: Likewise.
13444 * lto-streamer-in.c: Likewise.
13445 * lto-streamer-out.c: Likewise.
13446 * lto-streamer.c: Likewise.
13448 * mode-switching.c: Likewise.
13449 * modulo-sched.c: Likewise.
13450 * omega.c: Likewise.
13451 * omp-low.c: Likewise.
13452 * optabs.c: Likewise.
13453 * opts-global.c: Likewise.
13454 * passes.c: Likewise.
13455 * plugin.c: Likewise.
13456 * postreload-gcse.c: Likewise.
13457 * postreload.c: Likewise.
13458 * predict.c: Likewise.
13459 * print-rtl.c: Likewise.
13460 * print-tree.c: Likewise.
13461 * profile.c: Likewise.
13462 * real.c: Likewise.
13463 * realmpfr.c: Likewise.
13464 * realmpfr.h: Likewise.
13465 * recog.c: Likewise.
13467 * reg-stack.c: Likewise.
13468 * regcprop.c: Likewise.
13469 * reginfo.c: Likewise.
13470 * regrename.c: Likewise.
13471 * regs.h: Likewise.
13472 * regstat.c: Likewise.
13473 * reload.c: Likewise.
13474 * reload1.c: Likewise.
13475 * reorg.c: Likewise.
13476 * resource.c: Likewise.
13477 * rtl-chkp.c: Likewise.
13478 * rtlanal.c: Likewise.
13479 * rtlhooks.c: Likewise.
13480 * sanopt.c: Likewise.
13481 * sched-deps.c: Likewise.
13482 * sched-ebb.c: Likewise.
13483 * sched-rgn.c: Likewise.
13484 * sched-vis.c: Likewise.
13485 * sdbout.c: Likewise.
13486 * sel-sched-dump.c: Likewise.
13487 * sel-sched-ir.c: Likewise.
13488 * sel-sched.c: Likewise.
13489 * sese.c: Likewise.
13490 * shrink-wrap.c: Likewise.
13491 * shrink-wrap.h: Likewise.
13492 * simplify-rtx.c: Likewise.
13493 * stack-ptr-mod.c: Likewise.
13494 * statistics.c: Likewise.
13495 * stmt.c: Likewise.
13496 * stor-layout.c: Likewise.
13497 * store-motion.c: Likewise.
13498 * stringpool.c: Likewise.
13499 * symtab.c: Likewise.
13500 * target-globals.c: Likewise.
13501 * targhooks.c: Likewise.
13502 * toplev.c: Likewise.
13503 * tracer.c: Likewise.
13504 * trans-mem.c: Likewise.
13505 * tree-affine.c: Likewise.
13506 * tree-affine.h: Likewise.
13507 * tree-browser.c: Likewise.
13508 * tree-call-cdce.c: Likewise.
13509 * tree-cfg.c: Likewise.
13510 * tree-cfgcleanup.c: Likewise.
13511 * tree-chkp-opt.c: Likewise.
13512 * tree-chkp.c: Likewise.
13513 * tree-chrec.c: Likewise.
13514 * tree-complex.c: Likewise.
13515 * tree-data-ref.c: Likewise.
13516 * tree-dfa.c: Likewise.
13517 * tree-diagnostic.c: Likewise.
13518 * tree-dump.c: Likewise.
13519 * tree-eh.c: Likewise.
13520 * tree-emutls.c: Likewise.
13521 * tree-if-conv.c: Likewise.
13522 * tree-inline.c: Likewise.
13523 * tree-into-ssa.c: Likewise.
13524 * tree-iterator.c: Likewise.
13525 * tree-loop-distribution.c: Likewise.
13526 * tree-nested.c: Likewise.
13527 * tree-nrv.c: Likewise.
13528 * tree-object-size.c: Likewise.
13529 * tree-outof-ssa.c: Likewise.
13530 * tree-parloops.c: Likewise.
13531 * tree-phinodes.c: Likewise.
13532 * tree-predcom.c: Likewise.
13533 * tree-pretty-print.c: Likewise.
13534 * tree-pretty-print.h: Likewise.
13535 * tree-profile.c: Likewise.
13536 * tree-scalar-evolution.c: Likewise.
13537 * tree-sra.c: Likewise.
13538 * tree-ssa-address.c: Likewise.
13539 * tree-ssa-alias.c: Likewise.
13540 * tree-ssa-ccp.c: Likewise.
13541 * tree-ssa-coalesce.c: Likewise.
13542 * tree-ssa-copy.c: Likewise.
13543 * tree-ssa-copyrename.c: Likewise.
13544 * tree-ssa-dce.c: Likewise.
13545 * tree-ssa-dom.c: Likewise.
13546 * tree-ssa-dse.c: Likewise.
13547 * tree-ssa-forwprop.c: Likewise.
13548 * tree-ssa-ifcombine.c: Likewise.
13549 * tree-ssa-live.c: Likewise.
13550 * tree-ssa-loop-ch.c: Likewise.
13551 * tree-ssa-loop-im.c: Likewise.
13552 * tree-ssa-loop-ivcanon.c: Likewise.
13553 * tree-ssa-loop-ivopts.c: Likewise.
13554 * tree-ssa-loop-manip.c: Likewise.
13555 * tree-ssa-loop-niter.c: Likewise.
13556 * tree-ssa-loop-prefetch.c: Likewise.
13557 * tree-ssa-loop-unswitch.c: Likewise.
13558 * tree-ssa-loop.c: Likewise.
13559 * tree-ssa-loop.h: Likewise.
13560 * tree-ssa-math-opts.c: Likewise.
13561 * tree-ssa-operands.c: Likewise.
13562 * tree-ssa-phiopt.c: Likewise.
13563 * tree-ssa-phiprop.c: Likewise.
13564 * tree-ssa-pre.c: Likewise.
13565 * tree-ssa-propagate.c: Likewise.
13566 * tree-ssa-reassoc.c: Likewise.
13567 * tree-ssa-sccvn.c: Likewise.
13568 * tree-ssa-scopedtables.c: Likewise.
13569 * tree-ssa-sink.c: Likewise.
13570 * tree-ssa-strlen.c: Likewise.
13571 * tree-ssa-structalias.c: Likewise.
13572 * tree-ssa-tail-merge.c: Likewise.
13573 * tree-ssa-ter.c: Likewise.
13574 * tree-ssa-threadedge.c: Likewise.
13575 * tree-ssa-threadupdate.c: Likewise.
13576 * tree-ssa-uncprop.c: Likewise.
13577 * tree-ssa-uninit.c: Likewise.
13578 * tree-ssa.c: Likewise.
13579 * tree-ssanames.c: Likewise.
13580 * tree-stdarg.c: Likewise.
13581 * tree-streamer-in.c: Likewise.
13582 * tree-streamer-out.c: Likewise.
13583 * tree-streamer.c: Likewise.
13584 * tree-switch-conversion.c: Likewise.
13585 * tree-tailcall.c: Likewise.
13586 * tree-vect-data-refs.c: Likewise.
13587 * tree-vect-generic.c: Likewise.
13588 * tree-vect-loop-manip.c: Likewise.
13589 * tree-vect-loop.c: Likewise.
13590 * tree-vect-patterns.c: Likewise.
13591 * tree-vect-slp.c: Likewise.
13592 * tree-vect-stmts.c: Likewise.
13593 * tree-vectorizer.c: Likewise.
13594 * tree-vrp.c: Likewise.
13595 * tree.c: Likewise.
13596 * tsan.c: Likewise.
13597 * ubsan.c: Likewise.
13598 * valtrack.c: Likewise.
13599 * value-prof.c: Likewise.
13600 * var-tracking.c: Likewise.
13601 * varasm.c: Likewise.
13602 * varpool.c: Likewise.
13603 * vmsdbgout.c: Likewise.
13604 * vtable-verify.c: Likewise.
13606 * wide-int-print.cc: Likewise.
13607 * wide-int-print.h: Likewise.
13608 * wide-int.cc: Likewise.
13609 * xcoffout.c: Likewise.
13610 * config/aarch64/aarch64-builtins.c: Likewise.
13611 * config/aarch64/aarch64.c: Likewise.
13612 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13613 * config/alpha/alpha.c: Likewise.
13614 * config/arc/arc.c: Likewise.
13615 * config/arm/aarch-common.c: Likewise.
13616 * config/arm/arm-builtins.c: Likewise.
13617 * config/arm/arm-c.c: Likewise.
13618 * config/arm/arm.c: Likewise.
13619 * config/avr/avr-c.c: Likewise.
13620 * config/avr/avr-log.c: Likewise.
13621 * config/avr/avr.c: Likewise.
13622 * config/bfin/bfin.c: Likewise.
13623 * config/c6x/c6x.c: Likewise.
13624 * config/cr16/cr16.c: Likewise.
13625 * config/cris/cris.c: Likewise.
13626 * config/darwin-c.c: Likewise.
13627 * config/darwin.c: Likewise.
13628 * config/default-c.c: Likewise.
13629 * config/epiphany/epiphany.c: Likewise.
13630 * config/epiphany/mode-switch-use.c: Likewise.
13631 * config/epiphany/resolve-sw-modes.c: Likewise.
13632 * config/fr30/fr30.c: Likewise.
13633 * config/frv/frv.c: Likewise.
13634 * config/ft32/ft32.c: Likewise.
13635 * config/glibc-c.c: Likewise.
13636 * config/h8300/h8300.c: Likewise.
13637 * config/i386/i386-c.c: Likewise.
13638 * config/i386/i386.c: Likewise.
13639 * config/i386/msformat-c.c: Likewise.
13640 * config/i386/winnt-cxx.c: Likewise.
13641 * config/i386/winnt-stubs.c: Likewise.
13642 * config/i386/winnt.c: Likewise.
13643 * config/ia64/ia64-c.c: Likewise.
13644 * config/ia64/ia64.c: Likewise.
13645 * config/iq2000/iq2000.c: Likewise.
13646 * config/lm32/lm32.c: Likewise.
13647 * config/m32c/m32c-pragma.c: Likewise.
13648 * config/m32c/m32c.c: Likewise.
13649 * config/m32r/m32r.c: Likewise.
13650 * config/m68k/m68k.c: Likewise.
13651 * config/mcore/mcore.c: Likewise.
13652 * config/mep/mep-pragma.c: Likewise.
13653 * config/mep/mep.c: Likewise.
13654 * config/microblaze/microblaze-c.c: Likewise.
13655 * config/microblaze/microblaze.c: Likewise.
13656 * config/mips/mips.c: Likewise.
13657 * config/mmix/mmix.c: Likewise.
13658 * config/mn10300/mn10300.c: Likewise.
13659 * config/moxie/moxie.c: Likewise.
13660 * config/msp430/msp430-c.c: Likewise.
13661 * config/msp430/msp430.c: Likewise.
13662 * config/nds32/nds32-cost.c: Likewise.
13663 * config/nds32/nds32-fp-as-gp.c: Likewise.
13664 * config/nds32/nds32-intrinsic.c: Likewise.
13665 * config/nds32/nds32-isr.c: Likewise.
13666 * config/nds32/nds32-md-auxiliary.c: Likewise.
13667 * config/nds32/nds32-memory-manipulation.c: Likewise.
13668 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13669 * config/nds32/nds32-predicates.c: Likewise.
13670 * config/nds32/nds32.c: Likewise.
13671 * config/nios2/nios2.c: Likewise.
13672 * config/nvptx/nvptx.c: Likewise.
13673 * config/pa/pa.c: Likewise.
13674 * config/pdp11/pdp11.c: Likewise.
13675 * config/rl78/rl78-c.c: Likewise.
13676 * config/rl78/rl78.c: Likewise.
13677 * config/rs6000/rs6000-c.c: Likewise.
13678 * config/rs6000/rs6000.c: Likewise.
13679 * config/rx/rx.c: Likewise.
13680 * config/s390/s390-c.c: Likewise.
13681 * config/s390/s390.c: Likewise.
13682 * config/sh/sh-c.c: Likewise.
13683 * config/sh/sh-mem.cc: Likewise.
13684 * config/sh/sh.c: Likewise.
13685 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13686 * config/sh/sh_treg_combine.cc: Likewise.
13687 * config/sol2-c.c: Likewise.
13688 * config/sol2-cxx.c: Likewise.
13689 * config/sol2-stubs.c: Likewise.
13690 * config/sol2.c: Likewise.
13691 * config/sparc/sparc-c.c: Likewise.
13692 * config/sparc/sparc.c: Likewise.
13693 * config/spu/spu-c.c: Likewise.
13694 * config/spu/spu.c: Likewise.
13695 * config/stormy16/stormy16.c: Likewise.
13696 * config/tilegx/mul-tables.c: Likewise.
13697 * config/tilegx/tilegx-c.c: Likewise.
13698 * config/tilegx/tilegx.c: Likewise.
13699 * config/tilepro/mul-tables.c: Likewise.
13700 * config/tilepro/tilepro-c.c: Likewise.
13701 * config/tilepro/tilepro.c: Likewise.
13702 * config/v850/v850-c.c: Likewise.
13703 * config/v850/v850.c: Likewise.
13704 * config/vax/vax.c: Likewise.
13705 * config/visium/visium.c: Likewise.
13706 * config/vms/vms-c.c: Likewise.
13707 * config/vms/vms.c: Likewise.
13708 * config/vxworks.c: Likewise.
13709 * config/winnt-c.c: Likewise.
13710 * config/xtensa/xtensa.c: Likewise.
13711 * common/config/bfin/bfin-common.c: Likewise.
13713 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
13715 * tree.h (tree_code_for_canonical_type_merging): New function.
13716 * tree.c (gimple_canonical_types_compatible_p): Use
13717 tree_code_for_canonical_type_merging..
13719 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13723 * doc/tm.texi: Regenerate.
13724 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
13725 * target.def (TARGET_RELAXED_ORDERING): Likewise.
13726 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
13727 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
13728 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
13729 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
13730 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
13731 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
13732 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
13734 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13736 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
13737 register fma steering pass.
13738 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
13739 AARCH64_TUNE_FMA_STEERING.
13741 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
13743 * tree.c (verify_type_variant): Verify that type and variant is
13745 (gimple_canonical_types_compatible_p): Look for main variants.
13747 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13749 * config.gcc (powerpc*-*-*): Add support for a new configure
13750 option --with-advance-toolchain=<xxx> which overrides using the
13751 default header files, libraries and dynamic linker.
13753 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
13754 specs to support the configure --with-advance-toolchain=<xxx>
13756 (INCLUDE_EXTRA_SPEC): Likewise.
13757 (LINK_OS_EXTRA_SPEC32): Likewise.
13758 (LINK_OK_EXTRA_SPEC64): Likewise.
13759 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
13760 (DYNAMIC_LINKER_PREFIX): Likewise.
13761 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
13763 (GLIBC_DYNAMIC_LINKER32): Likewise.
13764 (GLIBC_DYNAMIC_LINKER64): Likewise.
13765 (LINK_OS_LINUX_SPEC32): Likewise.
13766 (LINK_OS_LINUX_SPEC64): Likewise.
13768 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
13769 configuration option.
13771 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
13774 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
13775 to determine current function ABI.
13776 (ix86_function_value_regno_p): Ditto.
13778 2015-06-03 Martin Liska <mliska@suse.cz>
13780 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
13781 * bitmap.h (struct bitmap_usage): Likewise.
13782 * ggc-common.c (struct ggc_usage): Likewise.
13783 * mem-stats.h (struct mem_location): Likewise.
13784 (struct mem_usage): Likewise.
13785 * vec.c (struct vec_usage): Likewise.
13787 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
13789 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
13792 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
13794 * doc/plugins.texi (enum plugin_event): New event.
13795 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
13796 and PLUGIN_FINISH_FUNCTION.
13797 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
13798 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
13800 2015-06-03 Richard Biener <rguenther@suse.de>
13802 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
13803 compute GROUP_GAP for the first element.
13804 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
13807 2015-06-03 Nick Clifton <nickc@redhat.com>
13809 * config/rl78/rl78-real.md: Add peepholes to avoid a register
13810 copy when calling a function.
13811 * config/rl78/rl78.c (need_to_save): Do not push the frame
13812 pointer in an interrupt handler prologue if it is never used.
13814 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13816 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
13818 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
13820 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
13821 reference when cloning alias node.
13823 2015-06-03 Martin Liska <mliska@suse.cz>
13825 * alloc-pool.h (struct pool_usage): Correct space padding.
13826 * ggc-page.c (ggc_print_statistics): Align columns in a report.
13827 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
13828 * tree.c (dump_tree_statistics): Align columns in a report.
13830 2015-06-03 Martin Liska <mliska@suse.cz>
13832 * alloc-pool.c (allocate_pool_descriptor): Remove.
13833 (struct pool_output_info): Likewise.
13834 (print_alloc_pool_statistics): Likewise.
13835 (dump_alloc_pool_statistics): Likewise.
13836 * alloc-pool.h (struct pool_usage): New struct.
13837 (pool_allocator::initialize): Change usage of memory statistics
13838 to a new interface.
13839 (pool_allocator::release): Likewise.
13840 (pool_allocator::allocate): Likewise.
13841 (pool_allocator::remove): Likewise.
13842 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
13843 for a pool allocator.
13844 * mem-stats.h (struct mem_location): Add new ctor.
13845 (struct mem_usage): Add counter for number of
13847 (mem_alloc_description::register_descriptor): New overload of
13848 * mem-stats.h (mem_location::to_string): New function.
13849 * bitmap.h (struct bitmap_usage): Use this new function.
13850 * ggc-common.c (struct ggc_usage): Likewise.
13853 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
13855 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
13856 of GCC_INSN_FLAGS_H block.
13858 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13860 * explow.c (plus_constant): Update check after force_const_mem call
13861 to see if the value returned is not a NULL_RTX.
13863 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
13865 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
13866 remove instumentation thunks calling reachable functions.
13867 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
13868 * lto/lto-partition.c (privatize_symbol_name_1): New.
13869 (privatize_symbol_name): Privatize both decl and orig_decl
13870 names for instrumented functions.
13871 * cgraph.c (cgraph_node::verify_node): Add transparent
13872 alias chain check for instrumented node.
13874 2015-06-03 Marek Polacek <polacek@redhat.com>
13878 * tree.c (attribute_value_equal): Handle attribute format.
13879 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
13881 2015-06-03 Richard Biener <rguenther@suse.de>
13883 PR tree-optimization/63916
13884 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
13885 Forward-propagate non-invariant addresses by splicing their
13886 reference ops if the result isn't going to be used by PRE.
13887 (vn_reference_lookup_3): Remove pointless assert.
13889 2015-06-03 Richard Biener <rguenther@suse.de>
13891 PR tree-optimization/66375
13892 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
13893 add to the evolution before following SSA edges.
13895 2015-06-03 Bin Cheng <bin.cheng@arm.com>
13897 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
13898 (dump_use, dump_cand, find_induction_variables): Pass new argument
13900 (record_use): Preserve the ssa name information in IV.
13902 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
13904 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
13906 (add_mode_tests): Don't add mode tests if the predicate only
13907 accepts scalar constant integers. Otherwise, allow the mode
13908 of "op" to be VOIDmode if the predicate does accept such integers.
13910 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
13913 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
13914 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
13915 (aarch64_secondary_reload): Likewise
13916 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
13918 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
13921 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
13922 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13925 * cprop.c (try_replace_reg): Check cost of constants before propagating.
13927 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13929 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
13930 provide access to the IBM extended double floating point mode if
13931 long double is IEEE 128-bit floating point.
13932 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
13933 point if long double is the IBM extended double type.
13935 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
13936 enable adding IEEE 128-bit floating point support.
13937 (-mfloat128-software): Likewise.
13938 (-mfloat128-sw): Likewise.
13940 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
13941 128-bit floating point types to occupy any register if
13942 -mlong-double-64. Do not allow use of IFmode/KFmode unless
13943 -mfloat128-software is enabled.
13944 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
13946 (rs6000_option_override_internal): Add -mfloat128-* support.
13947 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
13949 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
13950 and float128 type nodes.
13951 (ieee128_float_type_node): Likewise.
13952 (ibm128_float_type_node): Likewise.
13954 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
13957 * config/aarch64/geniterators.sh: Rewrite in awk.
13959 2015-06-02 Martin Liska <mliska@suse.cz>
13961 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
13962 values to avoid -Wmaybe-uninitialized errors.
13964 2015-06-02 Richard Biener <rguenther@suse.de>
13967 * dwarf2out.c (lookup_context_die): New function.
13968 (resolve_addr): Avoid forcing a full DIE for the
13969 target of a DW_TAG_GNU_call_site during late compilation.
13970 Instead create a stub DIE without a type if we have a
13971 context DIE present.
13973 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
13975 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
13977 2015-06-02 Bin Cheng <bin.cheng@arm.com>
13979 PR tree-optimization/48052
13980 * cfgloop.h (struct control_iv): New.
13981 (struct loop): New field control_ivs.
13982 * tree-ssa-loop-niter.c : Include "stor-layout.h".
13983 (number_of_iterations_lt): Set no_overflow information.
13984 (number_of_iterations_exit): Init control iv in niter struct.
13985 (record_control_iv): New.
13986 (estimate_numbers_of_iterations_loop): Call record_control_iv.
13987 (loop_exits_before_overflow): New. Interface factored out of
13988 scev_probably_wraps_p.
13989 (scev_probably_wraps_p): Factor loop niter related code into
13990 loop_exits_before_overflow.
13991 (free_numbers_of_iterations_estimates_loop): Free control ivs.
13992 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
13994 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
13996 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
13997 the target doesn't belong to the current function.
13999 2015-06-02 Marek Polacek <polacek@redhat.com>
14001 PR middle-end/66345
14002 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
14003 get_maxval_strlen does not produce an INTEGER_CST.
14005 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
14007 * config/arc/constraints.md: Use lower-case names in match_code.
14008 * config/mmix/constraints.md: Likewise.
14010 2015-06-02 Richard Biener <rguenther@suse.de>
14012 PR tree-optimization/65961
14013 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
14014 check and clarify dump message.
14015 (vect_build_slp_tree): If all children are built up from scalars
14016 build up the parent from scalars instead.
14017 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
14019 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
14022 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
14023 instead of print ... .
14025 2015-06-02 Alan Modra <amodra@gmail.com>
14027 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
14030 2015-06-02 Bin Cheng <bin.cheng@arm.com>
14032 PR tree-optimization/52563
14033 PR tree-optimization/62173
14034 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
14035 (alloc_iv, set_iv): New parameter.
14036 (determine_biv_step): Delete.
14037 (find_bivs): Inline original determine_biv_step. Pass new
14038 argument to set_iv.
14039 (idx_find_step): Use no_overflow information for conversion.
14040 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
14041 resolve_mixers handle folded_casts.
14042 (instantiate_scev_name): Change bool parameter to bool pointer.
14043 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
14044 (instantiate_array_ref, instantiate_scev_not): Ditto.
14045 (instantiate_scev_3, instantiate_scev_2): Ditto.
14046 (instantiate_scev_1, instantiate_scev_r): Ditto.
14047 (instantiate_scev_convert, ): Change parameter. Pass argument
14048 to chrec_convert_aggressive.
14049 (instantiate_scev): Change argument.
14050 (resolve_mixers): New parameter and set it.
14051 (scev_const_prop): New argument.
14052 * tree-scalar-evolution.h (resolve_mixers): New parameter.
14053 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
14055 (chrec_convert): New parameter. Move definition below.
14056 (chrec_convert_aggressive): New parameter and set it. Call
14057 convert_affine_scev.
14058 * tree-chrec.h (chrec_convert): New parameter.
14059 (chrec_convert_aggressive): Ditto.
14061 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
14063 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
14064 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
14065 the LHS of a no-return call if its type has variable size.
14066 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14067 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
14069 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
14071 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
14072 * config.in: Regenerate.
14074 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
14076 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
14077 consecutive accesses within outer-loop with force_vectorize
14078 for references with zero step in inner-loop.
14080 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
14082 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
14083 rather than from gcc/build directory.
14085 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
14088 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
14089 for __sync memory models, emit initial loads and final barriers as
14092 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
14095 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
14096 (aarch64_split_atomic_op): Check for __sync memory models, emit
14097 appropriate initial loads and final barriers.
14099 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
14101 * Makefile.in: Fix gcov dependencies that should
14102 not point to a build folder.
14104 2015-06-01 Richard Biener <rguenther@suse.de>
14107 2015-05-29 Richard Biener <rguenther@suse.de>
14109 PR tree-optimization/66314
14110 * tree-ssa-threadupdate.c (create_block_for_threading): Add
14111 parameter that says which loop the new block belongs to.
14112 (ssa_create_duplicates): Blocks duplicated for the threaded
14113 path belong to the loop of the thread destination.
14115 2015-06-01 Martin Liska <mliska@suse.cz>
14117 * sched-deps.c: Include pool-alloc.h before
14118 cselib.h header file is included.
14120 2015-06-01 Richard Biener <rguenther@suse.de>
14122 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
14125 2015-06-01 Martin Liska <mliska@suse.cz>
14127 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
14128 a function local variable.
14130 2015-06-01 Martin Liska <mliska@suse.cz>
14132 * alloc-pool.c (create_alloc_pool): Remove.
14133 (empty_alloc_pool): Likewise.
14134 (free_alloc_pool): Likewise.
14135 (free_alloc_pool_if_empty): Likewise.
14136 (pool_alloc): Likewise.
14137 (pool_free): Likewise.
14138 * alloc-pool.h: Remove old declarations.
14140 2015-06-01 Martin Liska <mliska@suse.cz>
14142 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
14143 (ira_create_object): Likewise.
14144 (ira_create_allocno): Likewise.
14145 (ira_create_live_range): Likewise.
14146 (copy_live_range): Likewise.
14147 (ira_finish_live_range): Likewise.
14148 (ira_free_allocno_costs): Likewise.
14149 (finish_allocno): Likewise.
14150 (finish_allocnos): Likewise.
14151 (initiate_prefs): Likewise.
14152 (ira_create_pref): Likewise.
14153 (finish_pref): Likewise.
14154 (finish_prefs): Likewise.
14155 (initiate_copies): Likewise.
14156 (ira_create_copy): Likewise.
14157 (finish_copy): Likewise.
14158 (finish_copies): Likewise.
14159 (finish_prefs): Likewise.
14161 2015-06-01 Martin Liska <mliska@suse.cz>
14163 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
14164 (allocate_and_init_ipcp_value): Likewise.
14165 (ipcp_lattice::add_value): Likewise.
14166 (merge_agg_lats_step): Likewise.
14167 (ipcp_driver): Likewise.
14168 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
14169 (ipa_free_all_structures_after_iinln): Likewise.
14170 * ipa-prop.h: Likewise.
14172 2015-06-01 Martin Liska <mliska@suse.cz>
14174 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
14176 (set_hint_predicate): Likewise.
14177 (inline_summary_alloc): Likewise.
14178 (reset_inline_edge_summary): Likewise.
14179 (reset_inline_summary): Likewise.
14180 (set_cond_stmt_execution_predicate): Likewise.
14181 (set_switch_stmt_execution_predicate): Likewise.
14182 (compute_bb_predicates): Likewise.
14183 (estimate_function_body_sizes): Likewise.
14184 (inline_free_summary): Likewise.
14186 2015-06-01 Martin Liska <mliska@suse.cz>
14188 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
14189 (ipa_edge_duplication_hook): Likewise.
14190 (ipa_free_all_structures_after_ipa_cp): Likewise.
14191 (ipa_free_all_structures_after_iinln): Likewise.
14193 2015-06-01 Martin Liska <mliska@suse.cz>
14195 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
14196 (ipa_profile_generate_summary): Likewise.
14197 (ipa_profile_read_summary): Likewise.
14198 (ipa_profile): Likewise.
14200 2015-06-01 Martin Liska <mliska@suse.cz>
14202 * tree-ssa-structalias.c (new_var_info): Use new type-based
14204 (new_constraint): Likewise.
14205 (init_alias_vars): Likewise.
14206 (delete_points_to_sets): Likewise.
14208 2015-06-01 Martin Liska <mliska@suse.cz>
14210 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
14211 (free_strinfo): Likewise.
14212 (pass_strlen::execute): Likewise.
14214 2015-06-01 Martin Liska <mliska@suse.cz>
14216 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
14218 (vn_reference_insert_pieces): Likewise.
14219 (vn_phi_insert): Likewise.
14220 (visit_reference_op_call): Likewise.
14221 (copy_phi): Likewise.
14222 (copy_reference): Likewise.
14223 (process_scc): Likewise.
14224 (allocate_vn_table): Likewise.
14225 (free_vn_table): Likewise.
14227 2015-06-01 Martin Liska <mliska@suse.cz>
14229 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
14231 (add_repeat_to_ops_vec): Likewise.
14232 (get_ops): Likewise.
14233 (maybe_optimize_range_tests): Likewise.
14234 (init_reassoc): Likewise.
14235 (fini_reassoc): Likewise.
14237 2015-06-01 Martin Liska <mliska@suse.cz>
14239 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
14241 (bitmap_set_new): Likewise.
14242 (get_or_alloc_expr_for_constant): Likewise.
14243 (get_or_alloc_expr_for): Likewise.
14244 (phi_translate_1): Likewise.
14245 (compute_avail): Likewise.
14246 (init_pre): Likewise.
14247 (fini_pre): Likewise.
14249 2015-06-01 Martin Liska <mliska@suse.cz>
14251 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
14252 (delete_dep_node): Likewise.
14253 (create_deps_list): Likewise.
14254 (free_deps_list): Likewise.
14255 (sched_deps_init): Likewise.
14256 (sched_deps_finish): Likewise.
14258 2015-06-01 Martin Liska <mliska@suse.cz>
14260 * regcprop.c (free_debug_insn_changes): Use new type-based
14262 (replace_oldest_value_reg): Likewise.
14263 (pass_cprop_hardreg::execute): Likewise.
14265 2015-06-01 Martin Liska <mliska@suse.cz>
14267 * ira-build.c (initiate_cost_vectors): Use new type-based
14269 (ira_allocate_cost_vector): Likewise.
14270 (ira_free_cost_vector): Likewise.
14271 (finish_cost_vectors): Likewise.
14273 2015-06-01 Martin Liska <mliska@suse.cz>
14275 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
14277 (free_sched_pools): Likewise.
14278 * sel-sched-ir.h (_list_alloc): Likewise.
14279 (_list_remove): Likewise.
14281 2015-06-01 Martin Liska <mliska@suse.cz>
14283 * stmt.c (add_case_node): Use new type-based pool allocator.
14284 (expand_case): Likewise.
14285 (expand_sjlj_dispatch_table): Likewise.
14287 2015-06-01 Martin Liska <mliska@suse.cz>
14289 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
14290 (free_bb): Likewise.
14291 (pass_cse_reciprocals::execute): Likewise.
14293 2015-06-01 Martin Liska <mliska@suse.cz>
14295 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
14296 (sra_deinitialize) Likewise.
14297 (create_access_1) Likewise.
14298 (build_accesses_from_assign) Likewise.
14299 (create_artificial_child_access) Likewise.
14301 2015-06-01 Martin Liska <mliska@suse.cz>
14303 * dse.c (get_group_info):Use new type-based pool allocator.
14304 (dse_step0) Likewise.
14305 (free_store_info) Likewise.
14306 (delete_dead_store_insn) Likewise.
14307 (free_read_records) Likewise.
14308 (record_store) Likewise.
14309 (replace_read) Likewise.
14310 (check_mem_read_rtx) Likewise.
14311 (scan_insn) Likewise.
14312 (dse_step1) Likewise.
14313 (dse_step7) Likewise.
14315 2015-06-01 Martin Liska <mliska@suse.cz>
14317 * df-scan.c (struct df_scan_problem_data):Use new type-based
14319 (df_scan_free_internal) Likewise.
14320 (df_scan_alloc) Likewise.
14321 (df_grow_reg_info) Likewise.
14322 (df_free_ref) Likewise.
14323 (df_insn_create_insn_record) Likewise.
14324 (df_mw_hardreg_chain_delete) Likewise.
14325 (df_insn_info_delete) Likewise.
14326 (df_free_collection_rec) Likewise.
14327 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
14328 (df_sort_and_compress_mws) Likewise.
14329 (df_ref_create_structure) Likewise.
14330 (df_ref_record) Likewise.
14332 2015-06-01 Martin Liska <mliska@suse.cz>
14334 * df-problems.c (df_chain_create):Use new type-based pool allocator.
14335 (df_chain_unlink_1) Likewise.
14336 (df_chain_unlink) Likewise.
14337 (df_chain_remove_problem) Likewise.
14338 (df_chain_alloc) Likewise.
14339 (df_chain_free) Likewise.
14340 * df.h (struct dataflow) Likewise.
14342 2015-06-01 Martin Liska <mliska@suse.cz>
14344 * cselib.c (new_elt_list):Use new type-based pool allocator.
14345 (new_elt_loc_list) Likewise.
14346 (unchain_one_elt_list) Likewise.
14347 (unchain_one_elt_loc_list) Likewise.
14348 (unchain_one_value) Likewise.
14349 (new_cselib_val) Likewise.
14350 (cselib_init) Likewise.
14351 (cselib_finish) Likewise.
14353 2015-06-01 Martin Liska <mliska@suse.cz>
14355 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
14356 (sh_reorg) Likewise.
14358 2015-06-01 Martin Liska <mliska@suse.cz>
14360 * cfg.c (initialize_original_copy_tables):Use new type-based
14362 (free_original_copy_tables) Likewise.
14363 (copy_original_table_clear) Likewise.
14364 (copy_original_table_set) Likewise.
14366 2015-06-01 Martin Liska <mliska@suse.cz>
14368 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
14370 (asan_mem_ref_new) Likewise.
14371 (free_mem_ref_resources) Likewise.
14373 2015-06-01 Martin Liska <mliska@suse.cz>
14375 * var-tracking.c (variable_htab_free):Use new type-based
14377 (attrs_list_clear) Likewise.
14378 (attrs_list_insert) Likewise.
14379 (attrs_list_copy) Likewise.
14380 (shared_hash_unshare) Likewise.
14381 (shared_hash_destroy) Likewise.
14382 (unshare_variable) Likewise.
14383 (var_reg_delete_and_set) Likewise.
14384 (var_reg_delete) Likewise.
14385 (var_regno_delete) Likewise.
14386 (drop_overlapping_mem_locs) Likewise.
14387 (variable_union) Likewise.
14388 (insert_into_intersection) Likewise.
14389 (canonicalize_values_star) Likewise.
14390 (variable_merge_over_cur) Likewise.
14391 (dataflow_set_merge) Likewise.
14392 (remove_duplicate_values) Likewise.
14393 (variable_post_merge_new_vals) Likewise.
14394 (dataflow_set_preserve_mem_locs) Likewise.
14395 (dataflow_set_remove_mem_locs) Likewise.
14396 (variable_from_dropped) Likewise.
14397 (variable_was_changed) Likewise.
14398 (set_slot_part) Likewise.
14399 (clobber_slot_part) Likewise.
14400 (delete_slot_part) Likewise.
14401 (loc_exp_insert_dep) Likewise.
14402 (notify_dependents_of_changed_value) Likewise.
14403 (emit_notes_for_differences_1) Likewise.
14404 (vt_emit_notes) Likewise.
14405 (vt_initialize) Likewise.
14406 (vt_finalize) Likewise.
14408 2015-06-01 Martin Liska <mliska@suse.cz>
14410 * ira-color.c (init_update_cost_records):Use new type-based
14412 (get_update_cost_record) Likewise.
14413 (free_update_cost_record_list) Likewise.
14414 (finish_update_cost_records) Likewise.
14415 (initiate_cost_update) Likewise.
14417 2015-06-01 Martin Liska <mliska@suse.cz>
14419 * lra.c (init_insn_regs): Use new type-based pool allocator.
14420 (new_insn_reg) Likewise.
14421 (free_insn_reg) Likewise.
14422 (free_insn_regs) Likewise.
14423 (finish_insn_regs) Likewise.
14424 (init_insn_recog_data) Likewise.
14425 (init_reg_info) Likewise.
14426 (finish_reg_info) Likewise.
14427 (lra_free_copies) Likewise.
14428 (lra_create_copy) Likewise.
14429 (invalidate_insn_data_regno_info) Likewise.
14431 2015-06-01 Martin Liska <mliska@suse.cz>
14433 * lra-lives.c (free_live_range): Use new type-based pool allocator.
14434 (free_live_range_list) Likewise.
14435 (create_live_range) Likewise.
14436 (copy_live_range) Likewise.
14437 (lra_merge_live_ranges) Likewise.
14438 (remove_some_program_points_and_update_live_ranges) Likewise.
14439 (lra_live_ranges_init) Likewise.
14440 (lra_live_ranges_finish) Likewise.
14442 2015-06-01 Martin Liska <mliska@suse.cz>
14444 * et-forest.c (et_new_occ): Use new type-based pool allocator.
14445 (et_new_tree): Likewise.
14446 (et_free_tree): Likewise.
14447 (et_free_tree_force): Likewise.
14448 (et_free_pools): Likewise.
14449 (et_split): Likewise.
14451 2015-06-01 Martin Liska <mliska@suse.cz>
14453 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
14455 * alloc-pool.h (pool_allocator::pool_allocator): New function.
14456 (pool_allocator::release): Likewise.
14457 (inline pool_allocator::release_if_empty): Likewise.
14458 (inline pool_allocator::~pool_allocator): Likewise.
14459 (pool_allocator::allocate): Likewise.
14460 (pool_allocator::remove): Likewise.
14462 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14464 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
14467 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14469 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
14471 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
14472 (arm_macro_fusion_p): Likewise.
14473 (arm_macro_fusion_pair_p): Likewise.
14475 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14477 * config/aarch64/aarch64-protos.h (tune_params): Rename
14478 fuseable_ops to fusible_ops.
14479 * config/aarch64/aarch64.c (generic_tunings): Rename
14480 fuseable_ops to fusible_ops.
14481 (cortexa53_tunings): Likewise.
14482 (cortexa57_tunings): Likewise.
14483 (thunderx_tunings): Likewise.
14484 (xgene1_tunings): Likewise.
14485 (aarch64_macro_fusion_p): Likewise.
14486 (aarch64_macro_fusion_pair_p): Likewise.
14488 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
14490 * config/s390/driver-native.c: New file.
14491 * config/s390/x-native: New file.
14492 * config.host: Add new files for s390.
14493 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
14495 * config.gcc: Likewise.
14496 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
14497 * config/s390/s390-opts.h (enum processor_type): Ditto.
14498 * config/s390/s390.c (s390_option_override): Catch unhandled
14501 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
14504 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
14505 redirection for instrumented calls.
14506 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
14507 (append_compiler_options): Append -fcheck-pointer-bounds.
14508 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
14509 (chkp_redirect_edge): New.
14510 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
14511 (chkp_redirect_edge): New.
14513 2015-06-01 Richard Biener <rguenther@suse.de>
14515 PR tree-optimization/66280
14516 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
14519 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14521 * config/aarch64/aarch64.md
14522 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
14525 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
14527 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
14528 Remove obsolete kludge.
14530 2015-06-01 Richard Biener <rguenther@suse.de>
14532 * tree-ssa-reassoc.c (get_rank): Simplify.
14534 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
14536 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
14537 * configure: Regenerated.
14539 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
14541 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
14542 issue (add space between string literal and macro).
14543 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
14545 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
14547 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
14548 implict or explicit -fPIE or -fpie.
14550 2015-05-30 Mike Frysinger <vapier@gentoo.org>
14552 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
14554 2015-05-28 DJ Delorie <dj@redhat.com>
14556 * expmed.c (extract_bit_field_1): Avoid clobbering a
14557 yet-to-be-used base/index register.
14559 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
14561 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
14562 (alias_stats): Add num_universal.
14563 (alias_set_subset_of): Special case pointers; be ready for NULL
14565 (alias_sets_conflict_p): Special case pointers; be ready for NULL
14567 (init_alias_set_entry): Break out from ...
14568 (record_alias_subset): ... here; propagate new fields;
14569 allocate children only when really needed.
14570 (get_alias_set): Do less generous pointer globbing.
14571 (dump_alias_stats_in_alias_c): Update statistics.
14573 2015-05-30 Alan Modra <amodra@gmail.com>
14575 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
14576 correct block for use of r12.
14577 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
14579 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
14582 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
14585 2015-05-29 Jakub Jelinek <jakub@redhat.com>
14587 PR tree-optimization/66142
14588 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
14589 virtual phis that feed themselves.
14591 2015-05-29 Richard Biener <rguenther@suse.de>
14593 PR tree-optimization/66314
14594 * tree-ssa-threadupdate.c (create_block_for_threading): Add
14595 parameter that says which loop the new block belongs to.
14596 (ssa_create_duplicates): Blocks duplicated for the threaded
14597 path belong to the loop of the thread destination.
14599 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14601 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
14602 to cleanup-saved-temps.
14603 * doc/sourcebuild.texi (Clean up generated test files): Expand
14605 (dg-keep-saved-temps): Document new proc.
14606 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
14607 cleanup-saved-temps): Remove.
14609 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
14611 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
14612 gcc_AC_CHECK_DECLS.
14613 * configure: Regenerate.
14615 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14617 * config/nios2/linux.h (CPP_SPEC): Define.
14619 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14621 * config/microblaze/linux.h (CPP_SPEC): Define.
14623 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14625 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
14626 -pthread is specified.
14628 2015-05-28 Richard Biener <rguenther@suse.de>
14630 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
14631 (vect_fixup_scalar_cycles_with_patterns): Likewise.
14632 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
14633 after pattern recog.
14634 (vect_create_epilog_for_reduction): Properly handle reductions
14636 (vectorizable_reduction): Likewise.
14637 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
14639 (vect_get_constant_vectors): Create the correct number of
14640 initial values for reductions.
14641 (vect_schedule_slp_instance): Handle reduction chains that are
14642 type changing properly.
14643 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
14645 2015-05-28 Richard Biener <rguenther@suse.de>
14647 PR tree-optimization/66142
14648 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
14649 values better in memcpy destination handling. Handle non-aliasing
14652 2015-05-28 Lawrence Velázquez <vq@larryv.me>
14655 * config/darwin-c.c (version_components): New global enum.
14656 (parse_version, version_as_legacy_macro)
14657 (version_as_modern_macro, macosx_version_as_macro): New functions.
14658 (version_as_macro): Remove.
14659 (darwin_cpp_builtins): Use new function.
14661 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
14663 * builtins.c (expand_builtin_acc_on_device): Mark parameters
14664 with ATTRIBUTE_UNUSED.
14666 2015-05-28 Julian Brown <julian@codesourcery.com>
14670 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
14671 sequence for !ACCEL_COMPILER.
14673 2015-05-28 Nick Clifton <nickc@redhat.com>
14675 * config/rx/rx.c (push_regs): New function. Extracts code from...
14676 (rx_expand_prologue): ... here. Use push_regs to push even small
14677 spans of registers.
14678 (pop_regs): New function.
14679 (rx_expand_epilogue): Use pop_regs to pop even small spans of
14682 2015-05-28 Richard Biener <rguenther@suse.de>
14684 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
14686 (SLP_INSTANCE_BODY_COST_VEC): Remove.
14687 (vect_update_slp_costs_according_to_vf): Likewise.
14688 (vect_slp_analyze_operations): Update prototype.
14689 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
14690 vect_update_slp_costs_according_to_vf, adjust.
14691 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
14692 (vect_analyze_slp_cost_1): Likewise.
14693 (vect_analyze_slp_cost): Likewise. Properly deal with
14694 widening reduction ops. Commit body costs.
14695 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
14696 cost for loops from here.
14697 (vect_slp_analyze_operations): But do it from here when
14698 the vectorization factor is known and stmts are analyzed.
14699 (vect_bb_vectorization_profitable_p): Simplify.
14700 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
14701 (vect_update_slp_costs_according_to_vf): Remove.
14703 2015-05-27 Magnus Granberg <zorry@gentoo.org>
14704 H.J. Lu <hongjiu.lu@intel.com>
14706 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
14707 (BUILD_CFLAGS): Likewise.
14708 (BUILD_CXXFLAGS): Likewise.
14709 (LINKER): Add @NO_PIE_FLAG@.
14710 (BUILD_LDFLAGS): Likewise.
14711 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
14712 --enable-default-pie.
14713 * common.opt (fPIE): Initialize to -1.
14715 (no-pie): New option.
14716 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
14717 * configure.ac: Add --enable-default-pie.
14718 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
14719 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
14720 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
14721 * gcc.c (NO_PIE_SPEC): New.
14722 (PIE_SPEC): Likewise.
14723 (NO_FPIE1_SPEC): Likewise.
14724 (FPIE1_SPEC): Likewise.
14725 (NO_FPIE2_SPEC): Likewise.
14726 (FPIE2_SPEC): Likewise.
14727 (NO_FPIE2_SPEC): Likewise.
14728 (FPIE_SPEC): Likewise.
14729 (NO_FPIE_SPEC): Likewise.
14730 (NO_FPIC1_SPEC): Likewise.
14731 (FPIC1_SPEC): Likewise.
14732 (NO_FPIC2_SPEC): Likewise.
14733 (FPIC2_SPEC): Likewise.
14734 (NO_FPIC2_SPEC): Likewise.
14735 (FPIC_SPEC): Likewise.
14736 (NO_FPIC_SPEC): Likewise.
14737 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
14738 (FPIE1_OR_FPIC1_SPEC): Likewise.
14739 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
14740 (FPIE2_OR_FPIC2_SPEC): Likewise.
14741 (NO_FPIE_AND_FPIC_SPEC): Likewise.
14742 (FPIE_OR_FPIC_SPEC): Likewise.
14743 (LD_PIE_SPEC): Likewise.
14744 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
14745 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
14746 * config/darwin.h (PIE_SPEC): Renamed to ...
14747 (DARWIN_PIE_SPEC): This.
14748 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
14749 * config/darwin9.h (PIE_SPEC): Renamed to ...
14750 (DARWIN_PIE_SPEC): This.
14751 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
14752 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
14753 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
14754 FPIE2_OR_FPIC2_SPEC.
14755 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
14756 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
14757 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
14758 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14759 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14760 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14761 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
14762 * config/m32r/m32r.h (ASM_SPEC): Likewise.
14763 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
14764 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14765 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
14766 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
14767 * config/sparc/linux.h (ASM_SPEC): Likewise.
14768 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14769 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
14770 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
14771 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14772 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14773 * config/sparc/sparc.h (ASM_SPEC): Likewise.
14774 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
14775 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
14776 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
14777 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
14778 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
14779 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
14780 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
14781 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
14782 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
14783 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
14784 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
14785 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
14786 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14787 * config/vax/linux.h (ASM_SPEC): Likewise.
14788 * doc/install.texi: Document --enable-default-pie.
14789 * doc/invoke.texi: Document -no-pie.
14790 * config.in: Regenerated.
14791 * configure: Likewise.
14793 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
14795 PR rtl-optimization/66168
14796 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
14797 can_move_invariant_reg.
14799 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
14802 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
14803 REG_EQUAL note when doing insert.
14805 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
14806 instead of "%d" for 'o' operand.
14808 2015-05-27 Nathan Sidwell <nathan@acm.org>
14811 * tree.c (build_pointer_type_for_mode): Canonical type does not
14812 inherit can_alias_all.
14813 (build_reference_type_for_mode): Likewise.
14815 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
14817 * expr.h (array_at_struct_end_p): Move to...
14818 (array_ref_element_size): Likewise.
14819 (component_ref_field_offset): Likewise.
14820 * tree.h (array_ref_element_size): ...here.
14821 (array_at_struct_end_p): Likewise.
14822 (component_ref_field_offset): Likewise.
14823 * expr.c (array_ref_element_size): Move to...
14824 (array_ref_low_bound): Likewise.
14825 (array_at_struct_end_p): Likewise.
14826 (array_ref_up_bound): Likewise.
14827 (component_ref_field_offset): Likewise.
14828 * tree.c (array_ref_element_size): ...here.
14829 (array_ref_low_bound): Likewise.
14830 (array_ref_up_bound): Likewise.
14831 (array_at_struct_end_p): Likewise.
14832 (component_ref_field_offset): Likewise.
14834 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
14835 Szabolcs Nagy <szabolcs.nagy@arm.com>
14837 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
14839 2015-05-27 Jason Merrill <jason@redhat.com>
14842 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
14843 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
14844 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
14846 2015-05-22 Aditya Kumar <hiraditya@msn.com>
14848 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
14851 * statistics.c (statistics_fini_pass): Print pass name.
14853 2015-05-27 Richard Biener <rguenther@suse.de>
14855 PR tree-optimization/66272
14857 2014-08-15 Richard Biener <rguenther@suse.de>
14859 PR tree-optimization/62031
14860 * tree-data-ref.c (dr_analyze_indices): Do not set
14861 DR_UNCONSTRAINED_BASE.
14862 (dr_may_alias_p): All indirect accesses have to go the
14863 formerly DR_UNCONSTRAINED_BASE path.
14864 * tree-data-ref.h (struct indices): Remove
14865 unconstrained_base member.
14866 (DR_UNCONSTRAINED_BASE): Remove.
14868 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
14870 * dwarf2out.c: Remove block_map.
14871 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
14872 (gen_lexical_block_die): Same.
14873 (dwarf2out_function_decl): Remove block_map use.
14874 (dwarf2out_c_finalize): Same.
14875 * tree-core.h (struct tree_block): Add die field.
14876 * tree.h (BLOCK_DIE): New.
14878 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14881 * expr.c (memory_load_overlap): New function.
14882 (emit_push_insn): When pushing partial args to the stack would
14883 clobber the register part load the overlapping part into a pseudo
14884 and put it into the hard reg after pushing. Change return type
14885 to bool. Add bool argument.
14886 * expr.h (emit_push_insn): Change return type to bool.
14888 * calls.c (expand_call): Cancel sibcall optimization when encountering
14889 partial argument on targets with ARGS_GROW_DOWNWARD and
14890 !STACK_GROWS_DOWNWARD.
14891 (emit_library_call_value_1): Update callsite of emit_push_insn.
14892 (store_one_arg): Likewise.
14894 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
14896 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
14898 2015-05-27 Martin Liska <mliska@suse.cz>
14900 * Makefile.in: Add additional dependencies related to memory report
14902 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
14903 * bitmap.c (struct bitmap_descriptor_d): Remove.
14904 (struct loc): Likewise.
14905 (struct bitmap_desc_hasher): Likewise.
14906 (bitmap_desc_hasher::hash): Likewise.
14907 (bitmap_desc_hasher::equal): Likewise.
14908 (get_bitmap_descriptor): Likewise.
14909 (bitmap_register): User new memory descriptor API.
14910 (register_overhead): Likewise.
14911 (bitmap_find_bit): Register nsearches and search_iter statistics.
14912 (struct bitmap_output_info): Remove.
14913 (print_statistics): Likewise.
14914 (dump_bitmap_statistics): Use new memory descriptor.
14915 * bitmap.h (struct bitmap_usage): New class.
14916 * genmatch.c: Extend header file inclusion.
14917 * genpreds.c: Likewise.
14918 * ggc-common.c (struct ggc_usage): New class.
14919 (struct ggc_loc_desc_hasher): Remove.
14920 (ggc_loc_desc_hasher::hash): Likewise.
14921 (ggc_loc_desc_hasher::equal): Likewise.
14922 (struct ggc_ptr_hash_entry): Likewise.
14923 (struct ptr_hash_hasher): Likewise.
14924 (ptr_hash_hasher::hash): Likewise.
14925 (ptr_hash_hasher::equal): Likewise.
14926 (make_loc_descriptor): Likewise.
14927 (ggc_prune_ptr): Likewise.
14928 (dump_ggc_loc_statistics): Use new memory descriptor.
14929 (ggc_record_overhead): Likewise.
14930 (ggc_free_overhead): Likewise.
14931 (final_cmp_statistic): Remove.
14932 (cmp_statistic): Likewise.
14933 (ggc_add_statistics): Liekwise.
14934 (ggc_prune_overhead_list): Likewise.
14935 * hash-map-traits.h: New file.
14936 * hash-map.h (struct default_hashmap_traits): Move the traits to a
14937 separate header file.
14938 * hash-set.h: Pass memory statistics info to ctor.
14939 * hash-table.c (void dump_hash_table_loc_statistics): New function.
14940 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
14941 (hash_table::~hash_table): Register memory release operation.
14942 (hash_table::alloc_entries): Handle memory allocation operation.
14943 (hash_table::expand): Likewise.
14944 * inchash.c (iterative_hash_hashval_t): Move implementation to header
14946 (iterative_hash_host_wide_int): Likewise.
14947 * inchash.h (class hash): Likewise.
14948 * mem-stats-traits.h: New file.
14949 * mem-stats.h: New file.
14950 (mem_location): Add new class.
14951 (mem_usage): Likewise.
14952 (mem_alloc_description): Likewise.
14953 * sese.c: Add new header file inclusision.
14954 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
14956 * tree-sra.c: Add new header file inclusision.
14957 * vec.c (struct vec_descriptor): Remove.
14958 (hash_descriptor): Likewise.
14959 (struct vec_usage): Likewise.
14960 (struct ptr_hash_entry): Likewise.
14961 (hash_ptr): Likewise.
14962 (eq_ptr): Likewise.
14963 (vec_prefix::register_overhead): Use new memory descriptor API.
14964 (vec_prefix::release_overhead): Likewise.
14965 (add_statistics): Remove.
14966 (dump_vec_loc_statistics): Use new memory descriptor API.
14967 * vec.h (struct vec_prefix): Likewise.
14968 (va_heap::reserve): Likewise.
14969 (va_heap::release): Likewise.
14970 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
14972 2015-05-27 Richard Biener <rguenther@suse.de>
14974 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
14975 earlier and remove ??? comment.
14976 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
14977 and got called from loop analysis bail out. Always pass the SLP
14978 node to the vectorizable_* functions.
14979 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
14980 the premature SLP check here.
14981 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
14982 detected SLP stmts.
14983 (vect_detect_hybrid_slp_1): Likewise.
14985 2015-05-26 Jeff Law <law@redhat.com>
14987 * combine.c (find_split_point): Verify that the shift count is a
14988 constant when choosing (plus (ashift ...)) as a split point.
14990 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
14991 No functional changes.
14993 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
14995 * ipa-polymorphic-call.c
14996 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
14997 case when call target is already known.
14999 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
15002 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
15003 take into account the case that operands[1] and operands[2]
15004 are the same register.
15006 2015-05-26 Michael Matz <matz@suse.de>
15008 PR middle-end/66251
15010 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
15012 (vect_create_vectorized_demotion_stmts): Always set
15013 STMT_VINFO_VEC_STMT, also with SLP.
15014 (vectorizable_store): Handle strided group stores.
15016 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15019 * config/aarch64/aarch64.md
15020 (*adds_shift_imm_<mode>): New pattern.
15021 (*subs_shift_imm_<mode>): Likewise.
15022 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15023 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15024 (*add_uxt<mode>_shift2): Likewise.
15025 (*add_uxtsi_shift2_uxtw): Likewise.
15026 (*sub_uxt<mode>_shift2): Likewise.
15027 (*sub_uxtsi_shift2_uxtw): Likewise.
15029 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
15031 * config/rs6000/constraints.md (Y, U): Use match_test.
15033 2015-05-26 Christian Bruel <christian.bruel@st.com>
15036 * config/arm/arm.c (arm_option_check_internal)
15037 (arm_option_params_internal): Check opts->target_flags to set macros.
15038 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15039 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
15040 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15041 (builtin_define): Replaced with def_or_undef_macro.
15042 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15043 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
15044 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15045 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
15046 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
15047 (TARGET_ARM_FEATURE_LDREX_P)
15048 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
15049 * config/arm/arm-c.c (def_or_undef_macro): New function.
15050 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
15052 2015-05-26 Christian Bruel <christian.bruel@st.com>
15054 * c-common.h (builtin_define_with_int_value)
15055 (builtin_define_type_sizeof): Declare.
15056 * c-cppbuiltin.c (builtin_define_with_int_value)
15057 (builtin_define_type_sizeof): Externalize.
15058 (builtin_define_std): Cleanup declaration.
15059 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
15060 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
15061 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
15062 (builtin_define, builtin_assert): New macros.
15064 2015-05-26 Richard Biener <rguenther@suse.de>
15066 PR tree-optimization/66142
15067 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
15068 MEM_REFs for the same base address.
15070 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15073 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
15075 2015-05-26 Jason Merrill <jason@redhat.com>
15077 * configure.ac: Set CXXFLAGS for ISL test.
15078 * configure: Regenerate.
15080 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
15081 strstr and basename.
15082 * configure: Regenerate.
15084 2015-05-26 Richard Biener <rguenther@suse.de>
15086 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
15087 X % C -> X & (C - 1) for C being a power-of two to ...
15088 * match.pd: ... patterns.
15090 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
15092 * match.pd (swapped_tcc_comparison): New operator list.
15093 (-A CMP -B): New simplification.
15094 * fold-const.c (fold_comparison): Remove corresponding code.
15096 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
15098 * caller-save.c (init_caller_save): Base temporary register numbers
15099 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
15100 * cfgloopanal.c (init_set_costs): Likewise.
15101 * dojump.c (prefer_and_bit_test): Likewise.
15102 * expr.c (init_expr_target): Likewise.
15103 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15104 * lower-subreg.c (init_lower_subreg): Likewise.
15105 * postreload.c (reload_cse_regs_1): Likewise.
15107 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
15109 * gensupport.h (compute_test_codes): Declare.
15110 * gensupport.c (compute_predicate_codes): Rename to...
15111 (compute_test_codes): ...this. Generalize error message.
15112 (process_define_predicate): Update accordingly.
15113 * genpreds.c (compute_maybe_allows): Delete.
15114 (add_constraint): Use compute_test_codes to determine whether
15115 something can accept a SUBREG, REG or MEM.
15117 2015-05-26 Torvald Riegel <triegel@redhat.com>
15119 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
15120 'memory model' to align with C++11; fix description of memory orders;
15123 2015-05-26 Richard Biener <rguenther@suse.de>
15125 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
15126 (vect_analyze_loop_operations): ... here. Remove slp parameter,
15127 detect whether we apply SLP. Remove call to
15128 vect_update_slp_costs_according_to_vf.
15129 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
15130 vect_update_slp_costs_according_to_vf from here. Dispatch
15131 to vect_slp_analyze_operations to analyze SLP stmts.
15132 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
15133 unused bb_vec_info parameter, adjust assert.
15134 (vect_slp_analyze_operations): Pass in the slp instance tree
15135 instead of bb_vec_info.
15136 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
15137 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
15139 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
15141 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
15142 Q_REGS. Expand comment.
15143 (REG_CLASS_NAMES): Ditto.
15144 (REG_CLASS_CONTENTS): Ditto.
15146 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
15149 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
15150 when LEGACY_INT_REGNO_P is processed.
15152 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
15154 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
15156 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15158 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
15159 register if not marked dead/unused, before return.
15161 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15164 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
15165 is set; check for assembler name at LTO time.
15166 (type_in_anonymous_namespace): Remove hacks, check that all
15167 anonymous types are called "<anon>"
15168 (odr_type_p): Simplify; add check for "<anon>"
15169 (odr_subtypes_equivalent): Add odr_type_p check.
15170 * tree.c (need_assembler_name_p): Even anonymous namespace needs
15173 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15175 * ipa-utils.h (method_class_type): Remove.
15176 * cgraphunit.c (walk_polymorphic_call_targets): Use
15177 TYPE_METHOD_BASETYPE.
15178 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
15179 on main variants only.
15180 (method_class_type): Remove.
15181 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
15182 (build_type_inheritance_graph): Likewise.
15183 * ipa-icf.c (sem_function::equals_wpa): Likewise.
15184 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
15185 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
15187 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15189 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
15190 is_typedef_decl, typedef_variant_p): Constify.
15191 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
15192 is_typedef_decl, typedef_variant_p): Constify.
15194 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15196 * defaults.h (gen_tablejump): New function.
15197 (HAVE_tablejump): Add default value.
15199 * stmt.c: Likewise.
15201 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15203 * defaults.h (gen_store_multiple): New function.
15204 (HAVE_store_multiple): Add default value.
15205 * expr.c (move_block_from_reg): Adjust.
15207 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15209 * defaults.h (gen_load_multiple): New function.
15210 (HAVE_load_multiple): Add default value.
15211 * expr.c (move_block_to_reg): Adjust.
15213 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15215 * defaults.h (gen_mem_signal_fence): New function.
15216 (HAVE_mem_signal_fence): Add default value.
15217 * optabs.c: Adjust.
15219 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15221 * defaults.h (gen_memory_barrier): New function.
15222 (HAVE_memory_barrier): Add default value.
15223 * optabs.c: Adjust.
15225 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15227 * defaults.h (gen_mem_thread_fence): New function.
15228 (HAVE_mem_thread_fence): Add default definition.
15229 * optabs.c: Adjust.
15231 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15233 * combine.c (find_split_point): Check the value of HAVE_lo_sum
15234 instead of if it is defined.
15235 (combine_simplify_rtx): Likewise.
15236 * lra-constraints.c (process_address_1): Likewise.
15237 * config/darwin.c: Adjust.
15238 * genconfig.c (main): Always define HAVE_lo_sum.
15240 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15242 * genmatch.c (parser::parse_operation): Reject expanding
15243 operator-list inside 'for'.
15245 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15247 * genmatch.c (parser::parse_for): Reject iterator if used as
15250 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15252 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
15253 after end of id-list.
15255 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
15257 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
15258 we do not try to compute canonical type for type that does not need
15260 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
15262 * tree.h (type_with_alias_set_p): New.
15264 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
15266 * tree.c (gimple_canonical_types_compatible_p): Do not compare
15267 function attributes.
15268 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
15270 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
15272 * Makefile.in (check_gcc_parallelize): Delete.
15273 (lang_checks_parallelized): Update comment.
15275 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
15277 PR rtl-optimization/66237
15278 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
15279 location of an "as_a" cast.
15281 2015-05-22 Jeff Law <law@redhat.com>
15283 * config/pa/pa.md (non-canonical shift-add insns): Remove.
15284 (peepholes with non-canonical RTL sources): Remove.
15285 (peepholes for indexed stores of FP regs in integer modes): Match and
15286 generate canonical RTL.
15288 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15290 PR tree-optimization/63387
15291 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
15292 ((x ord x) & (y ord y) -> (x ord y),
15293 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
15294 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
15295 vectors like scalars.
15297 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15299 * convert.c (convert_to_integer, convert_to_vector): Include the
15300 types in the error message.
15302 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15304 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
15307 2015-05-22 Jeff Law <law@redhat.com>
15309 * config/pa/pa.md (integer_indexed_store splitters): Use
15310 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
15311 insns -- adjusting the constant 2nd operand accordingly.
15313 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
15314 (plus (ashift X log2) Y) if it is a split point.
15316 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
15317 out of hppa_legitimize_address to handle both forms of a multiply
15319 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
15320 Always generate the ASHIFT variant as the result is not directly
15321 used in a MEM. Update comments and refactor slightly to improve
15324 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15327 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
15328 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
15329 (aarch64_composite_type_p): Return false if given type and mode are
15330 for a short vector.
15332 2015-05-22 Richard Biener <rguenther@suse.de>
15334 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
15336 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
15337 patterns when determining whether SLP is pure.
15338 (vect_is_slp_reduction): Remove check for pattern stmts.
15339 (vect_is_simple_reduction_1): Remove dead code.
15340 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
15341 (vect_get_and_check_slp_defs): Pass in the stmt number.
15342 Allow the first def in a reduction to be not a pattern stmt when
15343 the rest of the stmts def are patterns.
15344 (vect_build_slp_tree_1): Allow tcc_expression codes like
15345 SAD_EXPR and DOT_PROD_EXPR.
15346 (vect_build_slp_tree): Adjust.
15347 (vect_analyze_slp): Refactor and move BB vect error message ...
15348 (vect_slp_analyze_bb_1): ... here.
15350 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
15352 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
15353 for CSWTCH temporary.
15355 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15357 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
15358 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
15361 2015-05-22 Richard Biener <rguenther@suse.de>
15363 PR tree-optimization/66251
15364 * tree-vect-stmts.c (vectorizable_conversion): Properly
15365 set STMT_VINFO_VEC_STMT even for the SLP case.
15367 2015-05-22 Marek Polacek <polacek@redhat.com>
15369 * doc/extend.texi: Use @pxref instead of @xref.
15371 2015-05-22 hiraditya <hiraditya@msn.com>
15373 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
15376 2015-05-22 Richard Biener <rguenther@suse.de>
15378 PR tree-optimization/65701
15379 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15380 Move peeling cost models into one place. Peel for alignment
15381 for single loads only if an aligned load is cheaper than
15384 2015-05-22 Marek Polacek <polacek@redhat.com>
15387 * doc/extend.texi (Enumerator Attributes): New section.
15388 Document syntax of enumerator attributes.
15390 2015-05-22 Richard Biener <rguenther@suse.de>
15392 * tree-vect-loop.c (get_reduction_op): New function.
15393 (vect_model_reduction_cost): Use it, add reduc_index parameter.
15394 Make ready for BB reductions.
15395 (vect_create_epilog_for_reduction): Use get_reduction_op.
15396 (vectorizable_reduction): Init reduc_index to a valid value.
15397 Adjust vect_model_reduction_cost call.
15398 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
15399 operand for reduction defaults. Add SAD_EXPR support.
15400 Assert we have a neutral op for SLP reductions.
15401 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
15402 walking pattern stmt ops only recurse to SSA names.
15404 2015-05-22 Richard Biener <rguenther@suse.de>
15406 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
15407 assert with guard, remove check on detected reduction.
15408 (vect_recog_sad_pattern): Likewise.
15409 (vect_recog_widen_sum_pattern): Likewise.
15411 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15413 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
15414 __always_inline__ attribute.
15415 (vaesdq_u8): Likewise.
15416 (vaesmcq_u8): Likewise.
15417 (vaesimcq_u8): Likewise.
15418 (vsha1cq_u32): Likewise.
15419 (vsha1mq_u32): Likewise.
15420 (vsha1pq_u32): Likewise.
15421 (vsha1h_u32): Likewise.
15422 (vsha1su0q_u32): Likewise.
15423 (vsha1su1q_u32): Likewise.
15424 (vsha256hq_u32): Likewise.
15425 (vsha256h2q_u32): Likewise.
15426 (vsha256su0q_u32): Likewise.
15427 (vsha256su1q_u32): Likewise.
15428 (vmull_p64): Likewise.
15429 (vmull_high_p64): Likewise.
15431 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15433 * final.c (final_scan_insn): Don't check HAVE_peephole with the
15435 * output.h: Likewise.
15436 * genconfig.c (main): Alwways define HAVE_peephole.
15437 * genpeep.c: Don't emit checks of HAVE_peephole.
15439 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15441 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
15442 check HAVE_conditional_move with the preprocessor.
15444 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15446 * genconfig.c (main): Always define HAVE_conditional_move.
15447 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
15448 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
15451 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15453 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
15454 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
15455 and FRAME_POINTER_REGNUM with the preprocessor.
15457 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15459 * defaults.h: Add default for STACK_PUSH_CODE.
15460 * expr.c: Don't redefine STACK_PUSH_CODE.
15461 * recog.c: Likewise.
15463 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15465 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
15466 sched-deps.c: Use if instead of preprocessor checks with
15467 STACK_GROWS_DOWNWARD.
15469 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15471 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
15473 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
15474 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
15475 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
15476 * doc/tm.texi: Regenerate.
15478 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
15481 * config/i386/constraints.md (Bg): New constraint for GOT memory
15483 * config/i386/i386.md (*call_got_x32): New pattern.
15484 (*call_value_got_x32): Likewise.
15485 * config/i386/predicates.md (GOT_memory_operand): New predicate.
15487 2015-05-21 Jakub Jelinek <jakub@redhat.com>
15489 PR tree-optimization/66233
15490 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
15493 2015-05-21 Jeff Law <law@redhat.com>
15495 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
15496 than MULT for shadd sequences.
15498 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
15500 * alias.c (alias_stats): New static var.
15501 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
15502 (dump_alias_stats_in_alias_c): New function.
15503 * alias.h (dump_alias_stats_in_alias_c): Declare.
15504 * tree-ssa-alias.c (dump_alias_stats): Call it.
15506 2015-05-08 Michael Matz <matz@suse.de>
15508 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
15510 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
15511 (STMT_VINFO_STRIDED_P): ... this.
15512 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
15513 (vect_verify_datarefs_alignment): Likewise.
15514 (vect_enhance_data_refs_alignment): Likewise.
15515 (vect_analyze_data_ref_access): Likewise.
15516 (vect_analyze_data_refs): Accept strided stores.
15517 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
15518 (vect_model_load_cost): Adjust for macro rename.
15519 (vectorizable_mask_load_store): Likewise.
15520 (vectorizable_load): Likewise.
15521 (vectorizable_store): Open code strided stores.
15523 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15525 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
15526 Document sqrt_insn.
15528 2015-05-21 Richard Biener <rguenther@suse.de>
15531 * match.pd: Guard pattern optimzing (int)(float)int
15532 conversions to apply only on GIMPLE.
15534 2015-05-21 Jeff Law <law@redhat.com>
15536 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
15537 multiply-accumulate/shift-add insn generation.
15539 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15542 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
15543 operands[1] are the same.
15545 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
15547 PR middle-end/66221
15548 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
15549 build_distinct_type_copy to copy bounds.
15551 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
15553 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
15554 Change to unsigned int.
15556 2015-05-20 Jeff Law <law@redhat.com>
15558 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
15559 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
15560 (pa_shadd_constant_p): Allow constants for shadd insns rather
15561 than valid scaling constants for memory addresses.
15562 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
15563 * config/pa/predicates.md (mem_shadd_operand): New predicate.
15564 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
15565 (shift-add insns using ASHIFT): New patterns.
15567 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
15569 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
15571 (fix_up_fall_thru_edges): Likewise.
15572 (fix_crossing_conditional_branches): Likewise. Promote jump targets
15573 from to rtx_insn to rtx_code_label where feasible.
15574 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
15575 gen_move_insn (returned type changed to rtx_insn).
15576 * builtins.c (expand_errno_check): Fix arguments of
15577 do_compare_rtx_and_jump (now expects rtx_code_label).
15578 (expand_builtin_acc_on_device): Likewise.
15579 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
15580 invert_jump (now exprects rtx_jump_insn).
15581 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
15582 (construct_init_block): Use rtx_code_label.
15583 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
15584 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
15585 calling redirect_jump.
15586 (patch_jump_insn): Likewise.
15587 (redirect_branch_edge): Likewise.
15588 (force_nonfallthru_and_redirect): Likewise.
15589 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
15591 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
15592 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
15593 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
15594 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
15595 to store the value retured by gen_label_rtx.
15596 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
15598 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
15599 (split_branches): Fix calls of redirect_jump.
15600 * dojump.c (jumpifnot): Promote argument type from rtx to
15602 (jumpifnot_1): Likewise.
15603 (jumpif): Likewise.
15604 (jumpif_1): Likewise.
15605 (do_jump_1): Likewise.
15606 (do_jump): Likewise. Use rtx_code_label when feasible.
15607 (do_jump_by_parts_greater_rtx): Likewise.
15608 (do_jump_by_parts_zero_rtx): Likewise.
15609 (do_jump_by_parts_equality_rtx): Likewise.
15610 (do_compare_rtx_and_jump): Likewise.
15611 * dojump.h: Update function prototypes.
15612 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
15614 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
15616 (emit_label_before): Likewise.
15617 (emit_jump_insn_after_noloc): Likewise.
15618 (emit_jump_insn_after_setloc): Likewise.
15619 (emit_jump_insn_after): Likewise
15620 (emit_jump_insn_before_setloc): Likewise.
15621 (emit_jump_insn_before): Likewise.
15622 (emit_label_before): Promote return type to rtx_code_label.
15623 (emit_label): Likewise.
15624 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
15625 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
15627 (emit_stack_restore): Likewise.
15628 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
15629 (do_cmp_and_jump): Likewise.
15630 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
15631 from rtx to rtx_code_label.
15632 (gen_move_insn_uncast): New function.
15633 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
15634 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
15635 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
15636 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
15637 invert_jump_1 and redirect_jump_1.
15638 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
15639 do_compare_rtx_and_jump.
15640 (expand_addsub_overflow): Likewise.
15641 (expand_neg_overflow): Likewise.
15642 (expand_mul_overflow): Likewise.
15643 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
15644 return value of gen_move_insn.
15645 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
15646 * loop-doloop.c (add_test): Use rtx_code_label.
15647 (doloop_modify): Likewise.
15648 (doloop_optimize): Likewise.
15649 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
15650 * lra-constraints.c (emit_spill_move): Remove cast of value returned
15652 (inherit_reload_reg): Add cast when calling dump_insn_slim.
15653 (split_reg): Likewise.
15654 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
15656 * optabs.c (expand_binop_directly): Remove casts of values returned by
15658 (expand_unop_direct): Likewise.
15659 (expand_abs): Likewise.
15660 (maybe_emit_unop_insn): Likewise.
15661 (maybe_gen_insn): Promote return type to rtx_insn.
15662 * optabs.h: Update prototype of maybe_gen_insn.
15663 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
15665 * recog.c (struct peep2_insn_data): Promote type of insn field to
15667 (peep2_reinit_state): Use NULL instead of NULL_RTX.
15668 (peep2_attempt): Remove casts of insn in peep2_insn_data.
15669 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
15670 * recog.h (struct insn_gen_fn): Promote return types of function
15671 pointers and operator ().from rtx to rtx_insn.
15672 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
15673 (fill_eager_delay_slots): Likewise.
15674 (relax_delay_slots): Likewise.
15675 (make_return_insns): Likewise.
15676 (dbr_schedule): Likewise.
15677 (optimize_skips): Likewise.
15678 (reorg_redirect_jump): Likewise.
15679 (fill_slots_from_thread): Likewise.
15680 * reorg.h: Update prototypes.
15681 * resource.c (find_dead_or_set_registers): Use dyn_cast to
15682 rtx_jump_insn instead of check. Use it's jump_target method.
15683 * rtl.h (rtx_jump_insn::jump_label): Define new method.
15684 (rtx_jump_insn::jump_target): Define new method.
15685 (rtx_jump_insn::set_jump_target): Define new method.
15686 * rtlanal.c (tablejump_p): Promote type of one local variable.
15687 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
15688 (sched_analyze_insn): Likewise.
15689 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
15690 (print_insn): Likewise.
15691 * stmt.c (label_rtx): Promote return type to rtx_insn.
15692 (force_label_rtx): Likewise.
15693 (jump_target_rtx): Define new function.
15694 (expand_label): Use it, get rid of one cast.
15695 (expand_naked_return): Promote rtx to rtx_code_label.
15696 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
15697 (expand_case): Use rtx_code_label instread of rtx where feasible.
15698 (expand_sjlj_dispatch_table): Likewise.
15699 (emit_case_nodes): Likewise.
15700 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
15701 * store-motion.c (insert_store): Make use of new return type of
15702 gen_move_insn and remove a cast.
15703 (replace_store_insn): Likewise.
15705 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
15707 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
15708 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
15710 2015-05-20 Jeff Law <law@redhat.com>
15712 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
15713 dispose of the jump thread path when the jump threading
15714 opportunity is cancelled.
15716 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
15718 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
15719 when printing the caret character.
15721 2015-05-20 Marek Polacek <polacek@redhat.com>
15723 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
15725 2015-05-20 Marek Polacek <polacek@redhat.com>
15727 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
15728 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
15729 * gimple-fold.c (canonicalize_bool): Likewise.
15730 (same_bool_result_p): Likewise.
15731 * tree-if-conv.c (parse_predicate): Likewise.
15733 2015-05-20 Marek Polacek <polacek@redhat.com>
15735 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
15736 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
15738 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15740 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
15741 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
15744 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
15746 * config/mips/mips.h (micromips_globals): Declare.
15748 2015-05-20 David Malcolm <dmalcolm@redhat.com>
15750 * timevar.def (TV_INITIALIZE_RTL): New.
15751 * toplev.c (initialize_rtl): Use an auto_timevar to account this
15752 function's time to TV_INITIALIZE_RTL.
15754 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
15756 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
15757 gimple_build_nop calls.
15758 (chkp_find_bounds_for_elem): Likewise.
15759 (chkp_get_zero_bounds): Likewise.
15760 (chkp_get_none_bounds): Likewise.
15761 (chkp_get_bounds_by_definition): Likewise.
15762 (chkp_generate_extern_var_bounds): Likewise.
15763 (chkp_get_bounds_for_decl_addr): Likewise.
15764 (chkp_get_bounds_for_string_cst): Likewise.
15766 2015-05-20 Bin Cheng <bin.cheng@arm.com>
15768 PR tree-optimization/65447
15769 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
15770 (dump_use, dump_uses): Support to dump sub use.
15771 (record_use): New parameters to support sub use. Remove call to
15773 (record_sub_use, record_group_use): New functions.
15774 (compute_max_addr_offset, split_all_small_groups): New functions.
15775 (group_address_uses, rewrite_use_address): New functions.
15776 (strip_offset): New declaration.
15777 (find_interesting_uses_address): Call record_group_use.
15778 (add_candidate): New assertion.
15779 (infinite_cost_p): Move definition forward.
15780 (add_costs): Check INFTY cost and return immediately.
15781 (get_computation_cost_at): Clear setup cost and dependent bitmap
15783 (determine_use_iv_cost_address): Compute cost for sub uses.
15784 (rewrite_use_address_1): Rename from old rewrite_use_address.
15785 (free_loop_data): Free sub uses.
15786 (tree_ssa_iv_optimize_loop): Call group_address_uses.
15788 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
15789 Jim Wilson <jim.wilson@linaro.org>
15791 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
15792 new fields loadv and storev.
15793 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
15794 Initialize loadv and storev.
15795 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
15796 (cortexa53_extra_costs): Likewise.
15797 (cortexa57_extra_costs): Likewise.
15798 (xgene1_extra_costs): Likewise.
15799 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
15802 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
15804 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
15806 (cortexa8_extra_costs): Likewise.
15807 (cortexa5_extra_costs): Likewise.
15808 (cortexa7_extra_costs): Likewise.
15809 (cortexa12_extra_costs): Likewise.
15810 (cortexa15_extra_costs): Likewise.
15811 (v7m_extra_costs): Likewise.
15813 2015-05-20 Jeff Law <law@redhat.com>
15815 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
15816 instead of open-coded version. Also delete the jump thread created
15817 within this function.
15819 2015-05-20 Alan Modra <amodra@gmail.com>
15821 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
15822 stack adjusting insn. Formatting.
15823 (rs6000_emit_prologue): Track stack adjusting insn, and use of
15824 r12. If possible, emit first -fsplit-stack arg pointer insn
15825 before stack adjust. Don't use r12 to save cr if split-stack.
15827 2015-05-20 Alan Modra <amodra@gmail.com>
15829 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
15831 (rs6000_supports_split_stack): New function.
15832 * gcc/config/rs6000/rs6000.c (machine_function): Add
15833 split_stack_arg_pointer.
15834 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
15835 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
15836 rather than virtual_incoming_args_rtx.
15837 (rs6000_va_start): Likewise.
15838 (split_stack_arg_pointer_used_p): New function.
15839 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
15840 (morestack_ref): New var.
15841 (gen_add3_const, rs6000_expand_split_stack_prologue,
15842 rs6000_internal_arg_pointer, rs6000_live_on_entry,
15843 rs6000_split_stack_space_check): New functions.
15844 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
15845 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
15846 (UNSPECV_SPLIT_STACK_RETURN): Define.
15847 (split_stack_prologue, load_split_stack_limit,
15848 load_split_stack_limit_di, load_split_stack_limit_si,
15849 split_stack_return, split_stack_space_check): New expands and insns.
15850 * gcc/config/rs6000/rs6000-protos.h
15851 (rs6000_expand_split_stack_prologue): Declare.
15852 (rs6000_split_stack_space_check): Declare.
15854 2015-05-20 Alan Modra <amodra@gmail.com>
15856 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
15857 (direct_return): Test vrsave_size rather than vrsave_mask.
15858 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
15859 (rs6000_emit_epilogue): Likewise.
15861 2015-05-20 Alan Modra <amodra@gmail.com>
15863 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
15864 when not saving registers.
15865 (debug_stack_info): Adjust to omit printing unused offsets,
15867 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
15870 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15873 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
15874 value_type to const char *.
15876 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
15878 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
15879 to build a biarch toolchain again.
15881 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
15883 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
15884 or implicit declarations.
15885 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
15887 (get_odr_type): Check type has linkage before adding bases.
15888 (register_odr_type): Check that type has linkage before adding it.
15889 (type_known_to_have_no_deriavations_p): Rename to ..
15890 (type_known_to_have_no_derivations_p): This one.
15891 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
15892 (type_known_to_have_no_derivations_p): This one.
15893 * ipa-polymorphic-call.c
15894 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
15897 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
15899 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
15900 (layout_type): Use RECORD_OR_UNION_TYPE_P.
15902 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15904 * config/s390/s390.c (s390_vector_bool_type_p): New function.
15905 (s390_invalid_binary_op): New function.
15906 (TARGET_INVALID_BINARY_OP): Define macro.
15908 2015-05-19 David Sherwood <david.sherwood@arm.com>
15910 * loop-invariant.c (create_new_invariant): Don't calculate address cost
15911 if mode is not a scalar integer.
15912 (get_inv_cost): Increase computational cost for unused invariants.
15914 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15916 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
15917 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
15918 * config/s390/s390-builtin-types.def: New file.
15919 * config/s390/s390-builtins.def: New file.
15920 * config/s390/s390-builtins.h: New file.
15921 * config/s390/s390-c.c: New file.
15922 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
15923 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
15924 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
15925 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
15927 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
15929 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
15930 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
15931 variable definitions.
15932 (s390_const_operand_ok): New function.
15933 (s390_expand_builtin): Rewrite.
15934 (s390_init_builtins): New function.
15935 (s390_handle_vectorbool_attribute): New function.
15936 (s390_attribute_table): Add s390_vector_bool attribute.
15937 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
15938 (s390_branch_condition_mask): Generate masks for new modes.
15939 (s390_expand_vec_compare_cc): New function.
15940 (s390_mangle_type): Add mangling for vector bool types.
15941 (enum s390_builtin): Remove.
15942 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
15944 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
15945 s390_cpu_cpp_builtins.
15946 (REGISTER_TARGET_PRAGMAS): New macro.
15947 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
15948 (insn_cmp mode attribute): Add new CC modes.
15949 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
15950 (lcbb): New pattern definition.
15951 * config/s390/s390intrin.h: Include vecintrin.h.
15952 * config/s390/t-s390: New file.
15953 * config/s390/vecintrin.h: New file.
15954 * config/s390/vector.md: Include vx-builtins.md.
15955 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
15958 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15960 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
15962 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
15963 (s390_select_ccmode): Likewise.
15964 (s390_canonicalize_comparison): Swap operands if necessary.
15965 (s390_expand_vec_compare_scalar): Expand DFmode compare using
15966 single element vector instructions.
15967 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
15968 (s390_branch_condition_mask): Generate CC masks for the new modes.
15969 * config/s390/s390.md (v0, vf, vd): New mode attributes.
15970 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
15971 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
15972 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
15973 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
15974 (*extend<DSF:mode><BFP:mode>2): New insn definition.
15975 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
15976 (extend<DSF:mode><BFP:mode>2): Turn into expander.
15977 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
15978 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
15979 (sqrt<mode>2): Add vector instruction.
15981 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15983 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
15985 * config/s390/predicates.md (const0_operand, constm1_operand)
15986 (constable_operand): Accept vector operands.
15987 * config/s390/s390-modes.def: Add supported vector modes.
15988 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
15989 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
15990 (s390_bytemask_vector_p, s390_expand_vec_strlen)
15991 (s390_expand_vec_compare, s390_expand_vcond)
15992 (s390_expand_vec_init): Add prototypes.
15993 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
15994 (s390_vector_mode_supported_p): New function.
15995 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
15996 (s390_contiguous_bitmask_vector_p): New function.
15997 (s390_bytemask_vector_p): New function.
15998 (s390_split_ok_p): Vector regs don't work either.
15999 (regclass_map): Add VEC_REGS.
16000 (s390_legitimate_constant_p): Handle vector constants.
16001 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
16002 (legitimate_reload_vector_constant_p): New function.
16003 (s390_preferred_reload_class): Handle CONST_VECTOR.
16004 (s390_reload_symref_address): Likewise.
16005 (s390_secondary_reload): Vector memory instructions only support
16006 short displacements. Rename reload*_nonoffmem* to reload*_la*.
16007 (s390_emit_ccraw_jump): New function.
16008 (s390_expand_vec_strlen): New function.
16009 (s390_expand_vec_compare): New function.
16010 (s390_expand_vcond): New function.
16011 (s390_expand_vec_init): New function.
16012 (s390_dwarf_frame_reg_mode): New function.
16013 (print_operand): Handle addresses with 'O' and 'R' constraints.
16014 (NR_C_MODES, constant_modes): Add vector modes.
16015 (s390_output_pool_entry): Handle vector constants.
16016 (s390_hard_regno_mode_ok): Handle vector registers.
16017 (s390_class_max_nregs): Likewise.
16018 (s390_cannot_change_mode_class): New function.
16019 (s390_invalid_arg_for_unprototyped_fn): New function.
16020 (s390_function_arg_vector): New function.
16021 (s390_function_arg_float): Remove size variable.
16022 (s390_pass_by_reference): Handle vector arguments.
16023 (s390_function_arg_advance): Likewise.
16024 (s390_function_arg): Likewise.
16025 (s390_return_in_memory): Vector values are returned in a VR if
16027 (s390_function_and_libcall_value): Handle vector arguments.
16028 (s390_gimplify_va_arg): Likewise.
16029 (s390_call_saved_register_used): Consider the arguments named.
16030 (s390_conditional_register_usage): Disable v16-v31 for non-vec
16032 (s390_preferred_simd_mode): New function.
16033 (s390_support_vector_misalignment): New function.
16034 (s390_vector_alignment): New function.
16035 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
16036 (TARGET_VECTOR_MODE_SUPPORTED_P)
16037 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
16038 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16039 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
16040 (TARGET_VECTOR_ALIGNMENT): Define target macro.
16041 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
16042 (FIRST_PSEUDO_REGISTER): Increase value.
16043 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
16044 (VECTOR_REG_P): Define macros.
16045 (FIXED_REGISTERS, CALL_USED_REGISTERS)
16046 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
16047 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
16048 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
16049 Add vector registers.
16050 (CANNOT_CHANGE_MODE_CLASS): Call C function.
16051 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
16052 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
16054 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
16055 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
16056 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
16057 (VR*_REGNUM): New constants.
16058 (ALL): New mode iterator.
16059 (INTALL): Remove mode iterator.
16061 (movti): Implement TImode moves for VRs.
16062 Disable TImode splitter for VR targets.
16063 Implement splitting TImode GPR<->VR moves.
16064 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
16065 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
16066 reload<mode>_la_in, reload<mode>_la_out.
16067 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
16068 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
16069 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
16070 (mov<mode> SF SD): Prefer lder, lde for loading.
16071 Add lrl and strl instructions.
16072 Add vector instructions.
16073 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
16074 Call s390_expand_vec_strlen on z13.
16075 (*cc_to_int): Change predicate to nonimmediate_operand.
16076 (addti3): Rename to *addti3. New expander.
16077 (subti3): Rename to *subti3. New expander.
16078 * config/s390/vector.md: New file.
16080 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16082 * common/config/s390/s390-common.c (processor_flags_table): Add
16084 * config.gcc: Add z13.
16085 * config/s390/s390-opts.h (enum processor_type): Add
16086 PROCESSOR_2964_Z13.
16087 * config/s390/s390.c (s390_adjust_priority): Check for
16088 PROCESSOR_2964_Z13.
16089 (s390_reorg): Likewise.
16090 (s390_sched_reorder): Likewise.
16091 (s390_sched_variable_issue): Likewise.
16092 (s390_loop_unroll_adjust): Likewise.
16093 (s390_option_override): Likewise. Default to -mvx when available.
16094 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
16095 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
16096 (TARGET_VX_ABI): Define macros.
16098 (TARGET_DEFAULT): Add MASK_OPT_VX.
16099 * config/s390/s390.md ("cpu" attribute): Add z13.
16100 ("cpu_facility" attribute): Add vec.
16101 * config/s390/s390.opt (processor_type): Add z13.
16102 (mvx): New options.
16103 * doc/invoke.texi: Add z13 option for -march.
16105 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16107 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
16108 mode check to make sure that only scalar integer values are
16111 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
16113 * tree.c (verify_type_variant): Fix #undef.
16114 (gimple_canonical_types_compatible_p): Move here from lto.c
16115 (verify_type): Verify TYPE_CANONICAL compatibility.
16116 * tree.h (gimple_canonical_types_compatible_p): Declare.
16118 2015-05-19 Jakub Jelinek <jakub@redhat.com>
16120 PR middle-end/66199
16121 * tree.h (OMP_TEAMS_COMBINED): Define.
16122 * gimplify.c (enum gimplify_omp_var_data): Add
16123 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
16124 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
16125 (omp_notice_variable): Accept both ORT_TEAMS
16126 and ORT_COMBINED_TEAMS. Don't recurse if
16127 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
16128 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
16130 (omp_no_lastprivate): New function.
16131 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
16132 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
16133 notice_outer and set appropriate bits, otherwise make
16134 sure default(none) combined constructs won't complain.
16135 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
16136 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
16137 omp_no_lastprivate either remove the clause or turn it
16138 into OMP_CLAUSE_PRIVATE.
16139 (gimplify_omp_for): Fix up handling of implicit
16140 lastprivate or linear iterators.
16141 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
16142 ORT_COMBINED_TEAMS.
16143 * omp-low.c (lower_omp_for_lastprivate): For combined
16144 for simd use fd.loop.n2 from the for rather than simd.
16146 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16148 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
16149 instead of gen_rtx_raw_REG.
16150 (cris_expand_epilogue): Likewise.
16151 * config/microblaze/microblaze.c (microblaze_classify_address):
16153 * config/sparc/sparc.md: Likewise.
16155 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
16157 * config/alpha/alpha.c (alpha_legitimize_reload_address)
16158 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
16159 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
16160 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
16161 Use CASE_CONST_SCALAR_INT.
16162 (print_operand) <case 'M'>: Use mode_width_operand to check the
16163 value of the constant.
16164 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
16165 * config/alpha/predicates.md (input_operand): Use general_operand
16166 instead of match_code as operand check.
16167 (symbolic_operand): Use match_code with subexpression digits.
16168 * config/alpha/constraints.md (Q): Ditto.
16170 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16172 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
16174 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16176 * config/s390/s390.c (s390_secondary_reload): Fix check for
16177 load/store relative.
16179 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16181 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
16182 alternative_mask to uint64_t.
16184 2015-05-19 Jakub Jelinek <jakub@redhat.com>
16186 PR tree-optimization/66187
16187 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
16188 Pass TYPE_SIGN to tree_int_cst_min_precision. If
16189 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
16191 2015-05-19 David Malcolm <dmalcolm@redhat.com>
16193 * diagnostic.c (diagnostic_report_current_module): Strengthen
16194 local "new_map" from const line_map * to
16195 const line_map_ordinary *.
16196 * genmatch.c (error_cb): Likewise for local "map".
16197 (output_line_directive): Likewise for local "map".
16198 * input.c (expand_location_1): Likewise for local "map".
16199 Pass NULL rather than &map to
16200 linemap_unwind_to_first_non_reserved_loc, since the value is never
16201 read from there, and the value written back not read from here.
16202 (is_location_from_builtin_token): Strengthen local "map" from
16203 const line_map * to const line_map_ordinary *.
16204 (dump_location_info): Strengthen locals "map" from
16205 line_map *, one to const line_map_ordinary *, the other
16206 to const line_map_macro *.
16207 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
16208 const line_map * to const line_map_macro *.
16209 (maybe_unwind_expanded_macro_loc): Add a call to
16210 linemap_check_macro when writing to the "map" field of the
16212 Introduce local const line_map_ordinary * "ord_map", using it in
16213 place of "map" in the part of the function where we know we have
16214 an ordinary map. Strengthen local "m" from const line_map * to
16215 const line_map_ordinary *.
16217 2015-05-19 Nick Clifton <nickc@redhat.com>
16220 * config/msp430/msp430.md (zero_extendhisi2): Add support for
16221 separate source and destination registers.
16223 2015-05-19 Richard Biener <rguenther@suse.de>
16225 PR tree-optimization/66165
16226 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
16227 for no load permutation.
16229 PR tree-optimization/66185
16230 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
16231 when building the SLP node from scalars.
16233 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
16234 Tristan Gingold <gingold@adacore.com>
16236 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
16237 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
16238 (expand_stack_restore): Call record_new_stack_level.
16239 (expand_stack_save): Do not call do_pending_stack_adjust.
16240 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
16241 * calls.c (expand_call): Call record_new_stack_level for alloca.
16242 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
16243 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
16244 (update_sjlj_context): New global function.
16245 * except.h (update_sjlj_context): Declare.
16246 * explow.c (record_new_stack_level): New global function.
16247 (allocate_dynamic_stack_space): Call record_new_stack_level.
16248 * explow.h (record_new_stack_level): Declare.
16249 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
16250 * cfgrtl.c (duplicate_insn_chain): Likewise.
16252 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16254 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
16255 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
16256 STACK_GROWS_DOWNWARD as normal if.
16257 (expand_call): Likewise.
16259 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
16262 * config/sh/sh.md (*round_int_even): New insn_and_split and
16263 accompanying new unnamed split.
16265 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16267 * bitmap.c (bitmap_set_range): Handle count==1 specially.
16268 (bitmap_clear_range): Likewise.
16269 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
16270 bitmap_set_range unconditionally.
16271 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
16272 * df-scan.c (df_mark_reg): Likewise.
16273 * haifa-sched.c (setup_ref_regs): Likewise.
16274 * sched-rgn.c (update_live_1): Likewise.
16276 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16278 * regs.h (END_HARD_REGNO): Delete.
16279 (END_REGNO): Move to...
16281 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
16282 * caller-save.c (mark_set_regs): Likewise.
16283 * combine.c (move_deaths, distribute_notes): Likewise.
16284 * cse.c (invalidate, invalidate_for_call): Likewise.
16285 * df-scan.c (df_ref_record): Likewise.
16286 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
16287 (record_last_reg_set_info): Likewise.
16288 * reg-stack.c (convert_regs_exit): Likewise.
16289 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
16290 * resource.c (update_live_status): Likewise.
16291 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
16293 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16295 * rtl.h (reg_info): Add an nregs field.
16296 (REG_NREGS): Use it.
16297 (SET_REGNO_RAW): Delete.
16298 (set_regno_raw): New function.
16299 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
16300 (END_REGNO): Redefine in terms of REG_NREGS.
16301 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
16303 * emit-rtl.c (set_mode_and_regno): Likewise.
16304 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
16305 instead of SET_REGNO_RAW.
16307 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16309 * rtl.h (PUT_MODE_RAW): New macro.
16310 (PUT_REG_NOTE_KIND): Use it.
16311 (set_mode_and_regno): Declare.
16312 (gen_raw_REG): Change regno to "unsigned int".
16313 (gen_rtx_REG): Change "unsigned" to "unsigned int".
16314 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
16315 use set_mode_and_regno to change the mode of registers.
16316 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
16317 * emit-rtl.c (set_mode_and_regno): New function.
16318 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
16319 * caller-save.c (reg_save_code): Use set_mode_and_regno.
16320 * expr.c (init_expr_target): Likewise.
16321 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16322 * postreload.c (reload_cse_simplify_operands): Likewise.
16324 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16326 * caller-save.c (init_caller_save): Use word_mode and
16327 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
16328 * expr.c (init_expr_target): Likewise.
16329 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16330 * postreload.c (reload_cse_regs_1): Likewise.
16332 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16334 * rtl.def (REG): Change format to "r".
16335 * rtl.h (rtunion): Remove rt_reg.
16336 (reg_info): New structure.
16337 (rtx_def): Add reg field to main union.
16338 (X0REGATTR): Delete.
16339 (REG_CHECK): New macro.
16340 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
16341 * rtl.c (rtx_format): Document "r".
16342 (rtx_code_size): Handle REG specially.
16343 * gengenrtl.c (special_format): Return true for formats
16345 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
16346 Deal with REG_ATTRS after the field loop.
16347 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
16348 * expmed.c (init_expmed): Call gen_raw_REG instead of
16350 * expr.c (init_expr_target): Likewise.
16351 * regcprop.c (maybe_mode_change): Likewise.
16352 * varasm.c (make_decl_rtl): Likewise.
16353 * final.c (leaf_renumber_regs_insn): Return early after
16355 * genemit.c (gen_exp): Handle 'r' fields.
16356 * genpeep.c (match_rtx): Likewise.
16357 * gensupport.c (subst_pattern_match): Likewise.
16358 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
16359 (alter_constraints, subst_dup): Likewise.
16360 * read-rtl.c (read_rtx_code): Likewise.
16361 * print-rtl.c (print_rtx): Likewise.
16362 * genrecog.c (find_operand, find_matching_operand): Likewise.
16363 (validate_pattern, match_pattern_2): Likewise.
16364 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
16365 (rtx_test::regno_field): New function.
16366 (operator ==, safe_to_hoist_p, transition_parameter_type)
16367 (parameter_type_string, print_parameter_value)
16368 (print_nonbool_test, print_test): Handle new enum values.
16369 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
16370 * lra-constraints.c (operands_match_p): Likewise.
16372 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16374 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
16375 Change type of new_regno to unsigned int.
16376 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
16377 new_regno to unsigned int.
16378 (df_ref_change_reg_with_loc): Remove old_regno parameter.
16379 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
16380 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
16381 (SET_REGNO_RAW): Add space after ",".
16383 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16385 * rtl.h (REG_NREGS): New macro
16386 * alias.c (record_set): Use it.
16387 * cfgcleanup.c (mark_effect): Likewise.
16388 * combine.c (likely_spilled_retval_1): Likewise.
16389 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
16390 (move_deaths, distribute_notes): Likewise.
16391 * cselib.c (cselib_record_set): Likewise.
16392 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
16393 * df-scan.c (df_mark_reg): Likewise.
16394 * dse.c (look_for_hardregs): Likewise.
16395 * dwarf2out.c (reg_loc_descriptor): Likewise.
16396 (multiple_reg_loc_descriptor): Likewise.
16397 * expr.c (write_complex_part, read_complex_part): Likewise.
16398 (emit_move_complex): Likewise.
16399 * haifa-sched.c (setup_ref_regs): Likewise.
16400 * ira-lives.c (mark_hard_reg_live): Likewise.
16401 * lra.c (lra_set_insn_recog_data): Likewise.
16402 * mode-switching.c (create_pre_exit): Likewise.
16403 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
16404 (reload_combine_recognize_pattern): Likewise.
16405 (reload_combine_note_use, move2add_record_mode): Likewise.
16406 (reload_cse_move2add): Likewise.
16407 * reg-stack.c (subst_stack_regs_pat): Likewise.
16408 * regcprop.c (kill_value, copy_value): Likewise.
16409 (copyprop_hardreg_forward_1): Likewise.
16410 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
16411 (build_def_use): Likewise.
16412 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
16413 (deps_analyze_insn): Likewise.
16414 * sched-rgn.c (check_live_1, update_live_1): Likewise.
16415 * sel-sched.c (count_occurrences_equiv): Likewise.
16416 * valtrack.c (dead_debug_insert_temp): Likewise.
16418 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16420 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
16421 * dse.c (note_add_store): Likewise.
16422 * ira-lives.c (mark_hard_reg_dead): Likewise.
16423 * loop-invariant.c (mark_reg_store): Likewise.
16424 (mark_reg_death): Likewise.
16425 * postreload.c (reload_combine): Likewise.
16426 (reload_combine_note_store): Likewise.
16427 (reload_combine_note_use): Likewise.
16428 * recog.c (peep2_reg_dead_p): Likewise.
16430 2015-05-19 Alan Modra <amodra@gmail.com>
16432 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
16433 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
16434 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
16436 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
16437 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
16438 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
16439 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
16441 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
16443 * config/mips/mips.md (JOIN_MODE): New mode iterator.
16444 (join2_load_Store<JOIN_MODE:mode>): New pattern.
16445 (join2_loadhi): Likewise.
16446 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
16447 load-load and store-stores.
16448 * config/mips/mips.opt (mload-store-pairs): New option.
16449 (TARGET_LOAD_STORE_PAIRS): New macro.
16450 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
16451 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
16452 * config/mips/mips.c (mips_load_store_bonding_p): New function.
16454 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
16456 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
16458 * dojump.c (do_compare_rtx_and_jump): Likewise.
16459 * expmed.c (emit_store_flag_1): Likewise.
16460 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
16461 * final.c (sprint_ul): Use std::reverse for reversing a string.
16462 * fold-const.c (extract_muldiv_1): Use std::swap.
16463 * genmodes.c (emit_mode_int_n): Likewise.
16464 * ifcvt.c (dead_or_predicable): Likewise.
16465 * ira-build.c (ira_merge_live_ranges): Likewise.
16466 (swap_allocno_copy_ends_if_necessary): Likewise.
16467 * ira.c (ira_setup_alts): Likewise.
16468 * loop-iv.c (iv_analyze_expr): Likewise.
16469 (implies_p): Likewise.
16470 (canon_condition): Likewise.
16471 * lra-constraints.c (swap_operands): Likewise.
16472 * lra-lives.c (lra_merge_live_ranges): Likewise.
16473 * omega.c (swap): Remove.
16475 (omega_unprotect_1): Use std::swap.
16476 (omega_solve_geq): Likewise.
16477 * optabs.c (expand_binop_directly): Likewise.
16478 (expand_binop): Likewise.
16479 (emit_conditional_move): Likewise.
16480 (emit_conditional_add): Likewise.
16481 * postreload.c (reload_cse_simplify_operands): Likewise.
16482 * reg-stack.c (emit_swap_insn): Likewise.
16483 (swap_to_top): Likewise.
16484 (compare_for_stack_reg): Likewise.
16485 (subst_asm_stack_regs): Likewise.
16486 * reload.c (find_reloads): Likewise.
16487 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
16488 * sel-sched.c (invoke_reorder_hooks): Likewise.
16489 (create_block_for_bookkeeping): Likewise.
16490 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
16491 (lambda_matrix_right_hermite): Use std::swap.
16492 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
16493 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
16494 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
16495 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
16496 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
16497 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
16498 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
16499 * tree-vrp.c (compare_ranges): Likewise.
16500 * var-tracking.c (add_with_sets): Likewise.
16501 (vt_find_locations): Likewise.
16503 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
16505 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
16507 (FBSD_ENDFILE_SPEC): Likewise.
16508 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
16509 config/freebsd-spec.h.
16510 (ENDFILE_SPEC): Likewise.
16512 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
16513 Richard Henderson <rth@redhat.com>
16516 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
16517 Check for a memory location that is not a reference (using an AND)
16518 to an unaligned location here.
16519 * config/alpha/predicates.md (normal_memory_operand): Remove.
16521 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
16523 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
16524 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
16526 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
16528 * config/mips/mips.c (micromips_globals): New variable.
16529 (mips_set_compression_mode): Save and reinitialize target-dependent
16530 state for microMIPS.
16532 2015-05-18 Martin Liska <mliska@suse.cz>
16534 * dbgcnt.def: Add new counter.
16535 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
16537 2015-05-18 Martin Liska <mliska@suse.cz>
16539 * dbgcnt.def: Sort counters.
16540 * opts.c (common_handle_option): Do not compile if
16541 -fdbg-cnt-list is enabled.
16543 2015-05-18 Tom de Vries <tom@codesourcery.com>
16545 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
16546 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
16547 address operator to va_list operand.
16548 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
16550 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
16552 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
16553 * config/s390/s390.c (s390_gimplify_va_arg): Same.
16554 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
16556 2015-05-18 Tom de Vries <tom@codesourcery.com>
16558 * tree-ssa-tail-merge.c: Fix whitespace.
16560 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
16562 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
16563 cortex-a17, and cortex-a17.cortex-a7.
16565 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
16568 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
16570 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
16573 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
16574 QImode inner modes for TARGET_AVX512BW. Force mask operand
16575 to a register for AVX512F modes.
16577 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16579 * toplev.c (emit_debug_global_declarations): Do not output debug info
16580 when doing slim LTO objects.
16582 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16584 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
16585 odr_types_equivalent_p): Declare.
16586 (odr_type_p): Use gcc_checking_assert.
16587 (type_in_anonymous_namespace_p) Declare.
16588 (type_with_linkage_p): Declare.
16589 * common.opt (Wlto-type-mismatch): New warning.
16590 * ipa-devirt.c (compound_type_base): New function.
16591 (odr_or_derived_type_p): New function.
16592 (odr_types_equivalent_p): New function.
16593 (add_type_duplicate): Simplify.
16594 (type_with_linkage_p): Add hack to prevent false positives on C types
16595 (type_in_anonymous_namespace_p): Likewise.
16596 * tree.c (need_assembler_name_p): Use type_with_linkage.
16597 * tree.h (type_in_anonymous_namespace_p): Remove.
16598 * doc/invoke.texi (-Wlto-type-mismatch): Document
16600 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16602 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
16603 (verify_type): Verify STRING_FLAG.
16605 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
16608 * tree-pretty-print.c (percent_K_format): Replace locus pointer
16609 with accessor function.
16610 * tree-diagnostic.c (diagnostic_report_current_function): Use
16611 diagnostic_location function.
16612 (maybe_unwind_expanded_macro_loc): Likewise.
16613 (virt_loc_aware_diagnostic_finalizer): Likewise.
16614 (default_tree_printer): Replace locus pointer with accessor function.
16615 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
16616 (diagnostic_set_info_translated): Initialize second location.
16617 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
16618 (diagnostic_show_locus): Handle two locations. Call
16619 diagnostic_print_caret_line.
16620 (diagnostic_print_caret_line): New.
16621 (default_diagnostic_starter): Use diagnostic_location function.
16622 (diagnostic_report_diagnostic): Use diagnostic_location function.
16623 (verbatim): Do not set text.locus.
16624 * diagnostic.h (struct diagnostic_info): Remove location field.
16625 (struct diagnostic_context): Make caret_chars an array of two.
16626 (diagnostic_location): New inline.
16627 (diagnostic_expand_location): Handle two locations.
16628 (diagnostic_same_line): New inline.
16629 (diagnostic_print_caret_line): Declare.
16630 (CARET_LINE_MARGIN): New constant.
16631 * pretty-print.c (pp_printf): Do not set text.locus.
16632 (pp_verbatim): Do not set text.locus.
16633 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
16634 (struct text_info): Replace locus pointer with locations
16635 array. Add accessor functions.
16637 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
16638 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16641 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
16642 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
16643 large constants in register instead of splitting them.
16645 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
16648 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
16649 replacements in memory addresses.
16650 (get_unaligned_address): Ditto.
16652 2015-05-16 James Bowman <james.bowman@ftdichip.com>
16654 * config/ft32/*: New files for FT32 port.
16655 * doc/install.texi: Add FT32 information.
16656 * doc/invoke.texi: Add FT32 information.
16657 * doc/md.texi: Add FT32 information.
16658 * doc/contrib.texi: Self added.
16660 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
16662 PR tree-optimization/64454
16663 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
16664 (-1 - A -> ~A): Remove unnecessary condition.
16666 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
16668 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
16669 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
16670 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
16672 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
16674 * ipa-chkp.h (chkp_wrap_function): New.
16675 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
16676 (chkp_wrap_function_name): New.
16677 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
16678 to get wrapper name.
16679 * lto-cgraph.c: Include ipa-chkp.h.
16680 (input_cgraph_1): Avoid alias chain for wrappers.
16682 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
16684 PR middle-end/66134
16685 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
16686 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
16688 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16690 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
16691 (AARCH64_FL_SLOWMUL): Delete.
16692 (AARCH64_FL_CRC): Redefine to 1<<3.
16693 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
16695 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16697 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
16700 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
16702 * config/alpha/alpha.md (extendqidi2): Use general_operand
16703 instead of some_operand for operand[1] predicate.
16704 (extendhidi2): Ditto.
16705 (cbranchdi4): Use general_operand instead of some_operand
16706 for operand[1] and operands[2] predicates.
16707 (cstoredi4): Ditto.
16708 * config/alpha/predicates.md (some_operand): Remove unused predicate.
16709 (some_ni_operand): Ditto.
16711 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
16713 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
16714 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
16715 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
16716 low part of the constant using alpha_emit_set_const_1.
16717 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
16719 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
16721 * varasm.c (output_constant_pool_1): Pass down alignment from
16722 constant pool entry's descriptor to output_constant_pool_2.
16723 (output_object_block): Add comment prior to call to
16724 output_constant_pool_1.
16726 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
16728 PR rtl-optimization/65862
16729 * target.def (ira_change_pseudo_allocno_class): New hook.
16730 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
16732 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
16733 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
16735 * ira-costs.c (find_costs_and_classes): Call the hook and change
16736 classes when it is necessary.
16737 * doc/tm.texi: Update.
16739 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
16741 * config/i386/i386.md (sibcall_memory): Check that register with
16742 callee address is not also used as one of the arguments, instead
16743 of checking that it is not live after the sibcall.
16744 (sibcall_pop_memory): Ditto.
16745 (sibcall_value_memory): Ditto.
16746 (sibcall_value_pop_memory): Ditto.
16748 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
16750 * generic-match-head.c (types_match): Handle non-types.
16751 * gimple-match-head.c (types_match): Likewise.
16752 * match.pd: Remove unnecessary TREE_TYPE for types_match.
16754 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
16756 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
16757 (csneg3<mode>_insn): Enable expansion of pattern.
16759 2015-05-14 Nick Clifton <nickc@redhat.com>
16761 * config/rl78/rl78.c (rl78_select_section): Select the correct
16762 default section based upon the category of the decl.
16764 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
16766 PR rtl-optimization/30967
16767 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
16768 destination mode for the cost of scc patterns.
16770 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
16772 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
16773 using SWIM248 mode iterator.
16774 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
16775 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
16776 for operand[2] constraint.
16777 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
16779 2015-05-13 Jakub Jelinek <jakub@redhat.com>
16781 PR middle-end/66133
16782 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
16783 make sure it is never noreturn, even when the task body does not
16785 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
16786 right before GIMPLE_OMP_RETURN.
16787 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
16788 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
16789 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
16791 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16793 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
16794 * tree-ssa-math-opts.c: Include params.h
16795 (pow_synth_sqrt_info): New struct.
16796 (representable_as_half_series_p): New function.
16797 (get_fn_chain): Likewise.
16798 (print_nested_fn): Likewise.
16799 (dump_fractional_sqrt_sequence): Likewise.
16800 (dump_integer_part): Likewise.
16801 (expand_pow_as_sqrts): Likewise.
16802 (gimple_expand_builtin_pow): Use above to attempt to expand
16803 pow as series of square roots. Removed now unused variables.
16805 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
16807 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
16808 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
16809 Remove *p0 and *p1 arguments. Rewrite function.
16810 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
16811 (alpha_split_const_mov): Update calls to alpha_extract_integer and
16812 alpha_emit_set_long_const.
16813 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
16814 (alpha_output_mi_thunk_osf): Ditto.
16815 * config/alpha/alpha.md (movti): Do not check operands[1]
16818 2015-05-13 Richard Biener <rguenther@suse.de>
16820 PR tree-optimization/66129
16821 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
16823 (vect_schedule_slp_instance): Fix typo.
16825 2015-05-13 David Malcolm <dmalcolm@redhat.com>
16827 * common.opt (fdump-internal-locations): New option.
16828 * input.c: Include diagnostic-core.h.
16829 (get_end_location): New function.
16830 (write_digit): New function.
16831 (write_digit_row): New function.
16832 (dump_location_range): New function.
16833 (dump_labelled_location_range): New function.
16834 (dump_location_info): New function.
16835 * input.h (dump_location_info): New prototype.
16836 * toplev.c (compile_file): Handle flag_dump_locations.
16838 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
16840 * gimple-expr.h (is_gimple_constant): Reorder.
16841 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
16843 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
16845 * combine.c (simplify_set): When generating a CC set, if the
16846 source already is in the correct mode, do not wrap it in a
16847 compare. Simplify the rest of that code.
16849 2015-05-13 Richard Biener <rguenther@suse.de>
16851 PR tree-optimization/66123
16852 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
16855 2015-05-13 Richard Biener <rguenther@suse.de>
16857 PR middle-end/66110
16858 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
16860 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
16862 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
16864 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
16865 * aclocal.m4: Regenerated with automake-1.11.6.
16867 2015-05-13 Tom de Vries <tom@codesourcery.com>
16869 PR tree-optimization/66010
16870 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
16871 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
16872 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
16873 and rval based on do_deref.
16875 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
16878 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
16879 link time constants into adress expressions and therefore set
16882 2015-05-13 Jakub Jelinek <jakub@redhat.com>
16885 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
16886 Use SWI248 iterator instead of SWI.
16887 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
16888 Use eq_attr "alternative" "0" instead of match_test in
16889 length_immediate attribute computation.
16890 (*mulvhi4, *mulvhi4_1): New define_insns.
16893 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
16894 SIGNED to get precision of non-negative value.
16896 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
16899 * function.c (diddle_return_value_1): Process bounds first.
16900 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
16903 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16905 PR rtl-optimization/64616
16906 * loop-invariant.c (can_move_invariant_reg): New.
16907 (move_invariant_reg): Call above new function to decide whether
16908 instruction can just be moved, skipping creation of temporary
16911 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
16913 PR target/pr66047.c
16914 * i386.c (ix86_function_sseregparm): Only return -1 if local function
16915 with implied regparm is called from -mno-sse function.
16916 (init_cumulative_args): Output error if ix86_function_sseregparm
16917 return -1 and SSE register would be needed.
16918 (function_arg_advance_32): Likewise.
16919 (function_arg_32): Likewise.
16920 * i386.h (ix86_args): Add decl field.
16922 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
16925 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
16926 inlines across optimization boundary.
16928 2015-05-12 Jason Merrill <jason@redhat.com>
16930 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
16931 string literal and macro name.
16933 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
16935 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
16936 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
16937 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
16939 2015-05-12 David Malcolm <dmalcolm@redhat.com>
16941 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
16942 (-Wmisleading-indentation): New option.
16943 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
16945 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
16947 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
16948 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
16949 (alpha_extract_integer): Ditto.
16950 (alpha_legitimate_constant_p): Ditto.
16951 (alpha_split_tmode_pair): Ditto.
16952 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
16953 (alpha_expand_mov): Ditto.
16954 (print_operand): Remove handling of 'H' modifier.
16955 <case 'm'>: Remove CONST_DOUBLE handling.
16956 (summarize_insn): Handle CONST_WIDE_INT.
16957 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
16959 (movti): Handle CONST_WIDE_INT.
16960 * config/alpha/constraints.md ('H'): Remove constraint definition.
16961 ('G'): Do not match MODE_FLOAT class.
16962 * config/alpha/predicates.md (const0_operand): Also match
16964 (non_add_const_operand): Ditto.
16965 (non_zero_const_operand): Ditto.
16966 (some_operand): Ditto.
16967 (input_operand): Ditto. Handle CONST_WIDE_INT.
16968 (and_operand): Do not match const_double.
16969 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
16971 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
16974 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
16975 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
16976 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
16977 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
16978 is_mm_seq_cst, is_mm_sync): New accessor functions.
16979 * builtins.c (expand_builtin_sync_operation,
16980 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
16981 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
16982 (get_memmodel, expand_builtin_atomic_compare_exchange,
16983 expand_builtin_atomic_load, expand_builtin_atomic_store,
16984 expand_builtin_atomic_clear): Use new accessor routines.
16985 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
16986 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
16987 (maybe_emit_sync_lock_test_and_set): Use new accessors and
16988 MEMMODEL_SYNC_ACQUIRE.
16989 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
16990 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
16991 expand_atomic_store): Use new accessors.
16992 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
16993 * tsan.c (instrument_builtin_call): Update check for memory model beyond
16994 final enum to use MEMMODEL_LAST.
16995 * c-family/c-common.c: Use new accessor for memmodel_base.
16996 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
16998 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
16999 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
17000 mem_thread_fence, *dmb): Likewise.
17001 * config/alpha/alpha.c (alpha_split_compare_and_swap,
17002 alpha_split_compare_and_swap_12): Likewise.
17003 * config/arm/arm.c (arm_expand_compare_and_swap,
17004 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
17005 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
17006 atomic_loaddi): Likewise.
17007 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
17009 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
17010 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
17012 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
17013 atomic_store<mode>, atomic_compare_and_swap<mode>,
17014 atomic_exchange<mode>): Use new accessors.
17015 * config/mips/mips.c (mips_process_sync_loop): Likewise.
17016 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
17017 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
17018 rs6000_post_atomic_barrier): Add new cases.
17019 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
17020 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
17021 (atomic_load<mode>): Add new cases and use new accessors.
17022 (store_quadpti): Add new cases.
17023 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
17025 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
17026 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
17029 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17031 * ipa-devirt.c (type_with_linkage_p): New function.
17032 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
17034 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
17035 (can_be_name_hashed_p): Simplify.
17036 (hash_odr_name): Check that type has linkage before checking if it is
17038 (types_same_for_odr): Likewise.
17039 (odr_name_hasher::equal): Likewise.
17040 (odr_subtypes_equivalent_p): Likewise.
17041 (warn_types_mismatch): Likewise.
17042 (get_odr_type): Likewise.
17043 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
17044 * ipa-utils.h (odr_type_p): Move offline.
17045 * tree.c (need_assembler_name_p): Fix handling of types
17047 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
17049 2015-05-12 David Malcolm <dmalcolm@redhat.com>
17051 * timevar.c (timevar_enable): Delete in favor of...
17052 (g_timer): New global.
17053 (struct timevar_def): Move to timevar.h inside class timer.
17054 (struct timevar_stack_def): Likewise.
17055 (timevars): Delete global in favor of field "m_timevars" within
17056 class timer in timevar.h
17057 (stack): Likewise, in favor of field "m_stack".
17058 (unused_stack_instances): Likewise, in favor of field
17059 "m_unused_stack_instances".
17060 (start_time): Likewise, in favor of field "m_start_time".
17061 (get_time): Eliminate check for timevar_enable.
17062 (timer::timer): New function, built from part of timevar_init.
17063 (timevar_init): Rewrite idempotency test from using
17064 "timevar_enable" bool to using dynamic allocation of "g_timer".
17065 Move rest of implementation into timer's constructor.
17066 (timevar_push_1): Rename to...
17067 (timer::push): ...this, adding "m_" prefixes to variables that
17068 are now fields of timer.
17069 (timevar_pop_1): Likewise, rename to...
17070 (timer::pop): ...this, and add "m_" prefixes.
17071 (timevar_start): Replace test for "timevar_enable" with one for
17072 "g_timer", and move bulk of implementation to...
17073 (timer::start): ...here, adding "m_" prefixes.
17074 (timevar_stop): Likewise, from here...
17075 (timer::stop): ...to here.
17076 (timevar_cond_start): Likewise, from here...
17077 (timer::cond_start): ...to here.
17078 (timevar_cond_stop): Likewise, from here...
17079 (timer::cond_stop): ...to here.
17080 (validate_phases): Rename to...
17081 (timer::validate_phases): ...this, and add "m_" prefixes. Make
17082 locals "total" and "tv" const.
17083 (timevar_print): Rename to...
17084 (timer::print): ...this, and add "m_" prefixes. Make locals
17085 "total" and "tv" const. Eliminate test for timevar_enable.
17086 * timevar.h (timevar_enable): Eliminate.
17087 (g_timer): New declaration.
17088 (timevar_push_1): Eliminate.
17089 (timevar_pop_1): Eliminate.
17090 (timevar_print): Eliminate.
17091 (class timer): New class.
17092 (timevar_push): Rewrite to use g_timer.
17093 (timevar_pop): Likewise.
17094 * toplev.c (toplev::~toplev): Likewise.
17096 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
17098 * arm-protos.h (arm_sched_autopref): Delete.
17099 (tune_params): Re-organize, use enums for flag values.
17100 (FUSE_OPS): New macro.
17101 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
17102 (ARM_PREFETCH_BENEFICIAL): Likewise.
17103 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
17104 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
17105 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
17106 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
17107 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
17108 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
17109 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
17110 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
17112 (arm_option_override, thumb2_reorg, arm_print_tune_info)
17113 (aarch_macro_fusion_pair_p): Update uses of current_tune.
17114 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
17116 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
17118 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
17121 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
17122 Sandra Loosemore <sandra@codesourcery.com>
17124 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
17126 (REG_CLASS_NAMES): Add "IJMP_REGS".
17127 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
17128 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
17129 use new "c" register constraint.
17130 * config/nios2/constraint.md (c): New register constraint
17131 corresponding to IJMP_REGS.
17133 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17135 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
17136 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
17137 define_splits): Delete, revamp, transmogrify into ...
17138 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
17139 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
17140 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
17143 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17145 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
17146 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
17148 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17150 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
17151 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
17152 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
17153 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
17154 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
17155 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
17156 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
17157 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
17158 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
17159 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
17160 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
17161 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
17162 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
17163 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
17164 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
17165 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
17166 and 30 corresponding splitters): Delete.
17168 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17170 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
17173 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17175 * combine.c (recog_for_combine_1): New function, factored out
17176 from recog_for_combine.
17177 (change_zero_ext): New function.
17178 (recog_for_combine): If recog fails, try again with the pattern
17179 modified by change_zero_ext; if that still fails, restore the
17182 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17184 * combine.c (get_undo_marker): New function.
17185 (undo_to_marker): New function, largely factored out from ...
17186 (undo_all): ... this. Adjust.
17188 2015-05-12 Richard Biener <rguenther@suse.de>
17190 PR tree-optimization/66101
17191 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
17192 fixup if we turn a loop exit edge to a fallthru edge.
17194 2015-05-12 Richard Biener <rguenther@suse.de>
17196 PR tree-optimization/37021
17197 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
17198 (SLP_TREE_TWO_OPERATORS): New define.
17199 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
17200 SLP_TREE_TWO_OPERATORS.
17201 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
17203 (vect_build_slp_tree): Adjust.
17204 (vect_analyze_slp_cost_1): Likewise.
17205 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
17206 emitting two vector stmts and mixing the results.
17208 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
17210 * call.c (print_z_candidates): Remove dead code.
17212 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17214 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
17215 and zEC12_simple_fp.
17216 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
17219 2015-05-12 Tom de Vries <tom@codesourcery.com>
17221 PR tree-optimization/66010
17222 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
17224 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
17225 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
17226 va_lists are passed, and remove corresponding handling.
17227 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
17228 do_deref argument to ifn_va_arg.
17229 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
17232 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17235 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
17236 REG before taking its REGNO.
17238 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17240 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
17241 rsp->sign_bit_copies and rsp->nonzero_bits into ...
17242 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
17243 present to get more accurate information about the number of sign bit
17244 copies and non zero bits.
17246 2015-05-12 Richard Biener <rguenther@suse.de>
17248 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
17249 do not allow unrolling.
17251 2015-05-11 Richard Henderson <rth@redhat.com>
17253 * config/i386/i386-modes.def (CCP): New.
17254 * config/i386/i386.c (put_condition_code): Handle it.
17255 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
17257 2015-05-11 Richard Henderson <rth@redhat.com>
17259 * target.def (md_asm_clobbers): Replace with...
17260 (md_asm_adjust): this.
17261 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
17262 (TARGET_MD_ASM_ADJUST): New.
17263 * tm.texi: Rebuild.
17264 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
17265 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
17266 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
17268 * cfgexpand.c (check_operand_nalternatives): Accept vector of
17269 constraints instead of lists of outputs and inputs.
17270 (expand_asm_stmt): Save and restore input_location around the
17271 body of the function. Move asm data into vectors instead of
17272 building tree lists. Generate cleanup sequences as needed,
17273 rather than waiting til the end. Use new md_asm_adjust hook.
17275 * config/vxworks.c: Include vec.h before target.h.
17276 * gimple.c: Likewise.
17277 * incpath.c: Likewise.
17278 * mode-switching.c: Likewise.
17280 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
17281 (cris_md_asm_adjust): this.
17282 (TARGET_MD_ASM_CLOBBERS): Remove.
17283 (TARGET_MD_ASM_ADJUST): New.
17284 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
17285 (ix86_md_asm_adjust): this.
17286 (TARGET_MD_ASM_CLOBBERS): Remove.
17287 (TARGET_MD_ASM_ADJUST): New.
17288 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
17289 (mn10300_md_asm_adjust): this.
17290 (TARGET_MD_ASM_CLOBBERS): Remove.
17291 (TARGET_MD_ASM_ADJUST): New.
17292 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
17293 (rs6000_md_asm_adjust): this.
17294 (TARGET_MD_ASM_CLOBBERS): Remove.
17295 (TARGET_MD_ASM_ADJUST): New.
17296 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
17297 (visium_md_asm_adjust): this.
17298 (TARGET_MD_ASM_CLOBBERS): Remove.
17299 (TARGET_MD_ASM_ADJUST): New.
17301 2015-05-11 Richard Henderson <rth@redhat.com>
17303 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
17304 if noutputs is zero.
17305 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
17307 * cfgexpand.c (expand_asm_operands): Merge into...
17308 (expand_asm_stmt): ... here.
17310 * cfgexpand.c (expand_asm_operands): Don't call
17311 resolve_asm_operand_names.
17312 * stmt.c (resolve_asm_operand_names): Clarify block comment.
17314 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
17316 * dwarf2out.c (gen_member_die): Sanity check that we access
17317 TYPE_MAIN_VARIANT for TYPE_METHODS.
17318 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
17319 checking TYPE_METHODS.
17320 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
17322 (build_distinct_type_copy): Clear TYPE_METHODS.
17323 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
17324 (verify_type): Allow TYPE_METHODS to be error_mark_node.
17325 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
17327 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
17329 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
17330 (emit_pattern_before_setloc): Likewise.
17332 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
17334 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
17335 for define_peephole2s.
17336 (get_peephole2_pattern): New function.
17337 (main): Use it. Call validate_pattern.
17339 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17341 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
17342 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
17343 (Last callee saved reg is different for AVR_TINY architecture)
17345 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
17347 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
17348 when looking for memory references.
17350 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
17353 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
17354 via function pointers.
17356 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
17358 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
17359 indirect call by forcing address into a pseudo with -fno-plt.
17360 * common.opt (flag_plt): New option.
17361 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
17362 ([-fno-plt]): Document.
17364 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
17367 * config/rs6000/option-defaults.h: Add space between string literal
17370 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
17372 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
17373 accross ARM targets.
17375 2015-05-11 Christian Bruel <christian.bruel@st.com>
17377 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
17378 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
17380 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
17382 PR rtl-optimization/66076
17383 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
17384 Don't grow the heap array if it is already big enough from a
17385 previous iteration.
17387 2015-05-11 Christian Bruel <christian.bruel@st.com>
17389 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
17390 (is_called_in_ARM_mode): Remove.
17391 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
17392 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
17393 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
17394 arm_declare_function_name.
17396 2015-05-11 Christian Bruel <christian.bruel@st.com>
17398 * config/arm/arm.c (arm_option_override): Reoganized and split into :
17399 (arm_option_params_internal); New function.
17400 (arm_option_check_internal): New function.
17401 (arm_option_override_internal): New function.
17402 (thumb_code, thumb1_code): Remove.
17403 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
17404 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
17405 (thumb_code, thumb1_code): Remove.
17406 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
17408 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
17410 * config/alpha/alpha.c (alpha_emit_set_const_1)
17411 (alpha_emit_set_long_const, alpha_extract_integer)
17412 (alpha_legitimate_constant_p, alpha_split_const_mov)
17413 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
17414 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17415 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
17417 * config/alpha/predicates.md (mode_mask_operand): Do not match
17419 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17420 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
17421 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
17422 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17423 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
17425 2015-05-11 Jakub Jelinek <jakub@redhat.com>
17428 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
17429 default_binds_local_p_2.
17430 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
17431 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
17433 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17435 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
17437 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17439 Patch by Richard Biener
17440 * coverage.c (coverage_obj_init): Delay building of type variant
17441 until the type is finished.
17443 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17445 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
17446 mismatch between C and C++ type; compoare correctly ARG_TYPES
17447 for non-prototypes and output correctly parameter index for METHOD_TYPE.
17448 (odr_types_equivalent_p): Fix wording of warning about attributes;
17449 it is OK to match prototype and non-prototype.
17451 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17453 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
17454 TYPE_ARG_TYPES list.
17455 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
17456 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
17458 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17460 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
17461 * tree.h (is_lang_specific): Constify.
17463 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
17465 PR tree-optimization/64454
17466 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
17469 2015-05-08 Jason Merrill <jason@redhat.com>
17471 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
17472 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
17473 config/darwin.h, config/darwin9.h, config/elfos.h,
17474 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
17475 config/microblaze/microblaze.h, config/mips/mips.h,
17476 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
17477 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
17478 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
17479 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
17480 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
17481 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
17482 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
17483 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
17484 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
17485 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
17486 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
17487 between string literal and macro name.
17489 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17491 * jump.c: Change argument types to rtx_insn *.
17494 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17496 * lra-constraints.c: Change argument type to rtx_insn *.
17498 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17500 * df-problems.c: Change argument type to rtx_insn *.
17502 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17504 * combine.c: Change argument type to rtx_insn *.
17506 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17509 * rtlanal.c: Change argument type to rtx_insn *.
17511 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17513 * sched-deps.c: Change argument types to rtx_insn *.
17514 * sched-int.h: Adjust.
17516 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17518 * dwarf2cfi.c: Change argument type to rtx_insn *.
17520 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17522 * ira.c (decrease_live_ranges_number): Changetype of local
17523 variable to rtx_insn *.
17524 * recog.c: Change argument types to rtx_insn *.
17527 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17529 * reorg.c: Change argument types to rtx_insn *.
17531 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17533 * ira-color.c: Change argument types to rtx_insn *.
17534 * lra-eliminations.c: Likewise.
17537 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17539 * gcse.c: Change argument types to rtx_insn *.
17541 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17543 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
17545 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17547 * emit-rtl.c (emit_debug_insn_before): Change argument type to
17551 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17553 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
17556 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17558 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
17561 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17563 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
17566 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17568 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
17571 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17573 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
17577 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17579 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
17583 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17585 * except.c (can_nonlocal_goto): Change type of argument to
17589 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17591 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
17594 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17596 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
17597 * cfgrtl.c (can_delete_label_p): Adjust.
17600 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17602 * reorg.c (stop_search_p): Change argument to rtx_insn *.
17604 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17606 * except.c (make_reg_eh_region_note): Change argument to
17608 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
17609 * except.h: Adjust.
17611 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17613 * mode-switching.c (commit_mode_sets): Change type of local
17614 variable from rtx to rtx_insn *.
17616 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
17618 * doc/install.texi (--enable-languages): Add missing jit and lto info.
17619 Add ^ to grep command.
17620 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
17621 arg to last gimple_simplify declaration. Add missing gimple_build
17622 declaration for built-in function case with four tree args.
17624 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
17625 Szabolcs Nagy <szabolcs.nagy@arm.com>
17627 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
17628 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
17629 (GNU_USER_DYNAMIC_LINKERN32): Update.
17631 2015-05-08 Richard Biener <rguenther@suse.de>
17633 PR tree-optimization/66036
17634 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17635 Handle strided group loads.
17636 (vect_verify_datarefs_alignment): Likewise.
17637 (vect_enhance_data_refs_alignment): Likewise.
17638 (vect_analyze_group_access): Likewise.
17639 (vect_analyze_data_ref_access): Likewise.
17640 (vect_analyze_data_ref_accesses): Likewise.
17641 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
17642 (vectorizable_load): Likewise.
17644 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
17646 * config/rs6000/rs6000.md: Require operand inequality in one
17649 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
17650 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17652 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
17654 * config/rx/rx.md (movdi, movdf): Likewise.
17655 Likewise for define_peephole2s.
17657 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17659 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
17660 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
17661 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
17662 vtst_u64): Rewrite using gcc vector extensions.
17664 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17666 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
17667 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
17669 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17671 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
17673 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17675 * config/glibc-stdint.h (OPTION_MUSL): Define.
17676 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
17677 Change the definition based on OPTION_MUSL for 64 bit targets.
17678 * config/linux.h (OPTION_MUSL): Redefine.
17679 * config/alpha/linux.h (OPTION_MUSL): Redefine.
17680 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
17681 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
17683 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
17684 Szabolcs Nagy <szabolcs.nagy@arm.com>
17686 * config.gcc (LIBC_MUSL): New tm_defines macro.
17687 * config/linux.h (OPTION_MUSL): Define.
17688 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
17689 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
17690 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17691 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17692 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17693 * config/linux.opt (mmusl): New option.
17694 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
17695 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17696 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17697 * configure: Regenerate.
17699 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
17700 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17703 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
17704 * config/i386/knetbsd-gnu64.h: New file.
17706 2015-05-08 Marek Polacek <polacek@redhat.com>
17709 * doc/invoke.texi: Document -Woverride-init-side-effects.
17711 2015-05-07 Marek Polacek <polacek@redhat.com>
17714 * doc/invoke.texi: Document -Wshift-negative-value.
17716 2015-05-06 Aditya Kumar <hiraditya@msn.com>
17718 * gcov-tool.c (do_merge): Refactore to remove int ret.
17719 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
17720 !type == FUNC to type != FUNC.
17721 * reload.h (struct target_reload): Changee to type of
17722 x_spill_indirect_levels from bool to unsigned char.
17724 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
17726 * rtl.h (always_void_p): New function.
17727 * gengenrtl.c (always_void_p): Likewise.
17728 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
17729 with code foo are always VOIDmode.
17730 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
17731 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
17732 compare-elim.c, config/aarch64/aarch64.c,
17733 config/aarch64/aarch64.md, config/alpha/alpha.c,
17734 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
17735 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
17736 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
17737 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17738 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
17739 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
17740 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
17741 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
17742 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
17743 config/ia64/vect.md, config/iq2000/iq2000.c,
17744 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
17745 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
17746 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
17747 config/mep/mep.c, config/microblaze/microblaze.c,
17748 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
17749 config/mn10300/mn10300.c, config/msp430/msp430.c,
17750 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
17751 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
17752 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
17753 config/rs6000/altivec.md, config/rs6000/rs6000.c,
17754 config/rs6000/rs6000.md, config/rs6000/vector.md,
17755 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
17756 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
17757 config/sh/sh.md, config/sh/sh_treg_combine.cc,
17758 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
17759 config/spu/spu.md, config/stormy16/stormy16.c,
17760 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
17761 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
17762 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
17763 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
17764 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
17765 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
17766 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
17767 var-tracking.c: Update calls accordingly.
17769 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17772 PR middle-end/54303
17773 * varasm.c (function_mergeable_rodata_prefix): New function.
17774 (mergeable_string_section): Use it.
17775 (mergeable_constant_section): Use it.
17777 2015-05-07 Jeff Law <law@redhat.com>
17780 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
17781 simplifier to narrow arithmetic.
17782 * generic-match-head.c: (types_match, single_use): New functions.
17783 * gimple-match-head.c: (types_match, single_use): New functions.
17785 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17787 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
17790 2015-05-07 Richard Biener <rguenther@suse.de>
17792 PR tree-optimization/66002
17793 * passes.def: Schedule another pass_merge_phi after ifcombine, right
17796 2015-05-07 Marek Polacek <polacek@redhat.com>
17797 Martin Uecker <uecker@eecs.berkeley.edu>
17799 * doc/invoke.texi: Document -fsanitize=bounds-strict.
17800 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
17801 into SANITIZE_NONDEFAULT.
17802 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
17804 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
17807 * config/alpha/alpha.c (alpha_override_options_after_change): New.
17808 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
17809 (alpha_override_options): Move align_loops, align_jumps and
17810 align_functions handling into alpha_override_options_after_change.
17812 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
17813 Chris Jones <chrisj@nvidia.com>
17814 Joshua Conner <jconner@nvidia.com>
17816 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
17817 linking of crtfastmath.o.
17818 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
17820 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17822 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
17823 (cstore<mode>4_unsigned_imm): New expander.
17824 (cstore<mode>4): Remove empty constraint strings. Use the new
17827 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
17830 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
17833 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
17835 * config/aarch64/geniterators.sh: Use standard BRE in sed.
17837 2015-05-06 Alan Modra <amodra@gmail.com>
17840 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
17841 (UNSPEC_NOP): Define.
17842 (reload_vsx_from_gpr<mode>): Add missing DONE.
17843 (reload_gpr_from_vsx<mode>): Likewise.
17844 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
17845 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
17847 2015-05-06 Christian Bruel <christian.bruel@st.com>
17850 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
17851 align_jumps, align_functions into aarch64_override_options_after_change.
17853 2015-05-06 Richard Biener <rguenther@suse.de>
17855 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
17856 vect_transform_slp_perm_load to check if we support a permutation
17857 for basic-block vectorization.
17859 2015-05-06 Nick Clifton <nickc@redhat.com>
17861 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
17862 used, even if it is not being used as a frame pointer.
17864 2015-05-05 Jason Merrill <jason@redhat.com>
17866 * dwarf2out.c (gen_member_die): Don't emit anything for an
17867 anonymous class constructor.
17869 2015-05-05 David Malcolm <dmalcolm@redhat.com>
17871 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
17872 that it reflects the block structure.
17873 (afdo_propagate_edge): Likewise.
17874 (afdo_calculate_branch_prob): Likewise.
17875 (afdo_annotate_cfg): Likewise.
17876 * cfgcleanup.c (equal_different_set_p): Likewise.
17877 (try_crossjump_to_edge): Likewise.
17878 * cgraph.c (cgraph_node::verify_node): Likewise.
17879 * cgraphunit.c (expand_all_functions): Likewise.
17880 * config/i386/i386.c (ix86_expand_copysign): Likewise.
17881 (exact_dependency_1): Likewise.
17882 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
17883 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
17884 * gensupport.c (process_define_subst): Likewise.
17885 * lto-wrapper.c (merge_and_complain): Likewise.
17886 * tree-if-conv.c (if_convertible_bb_p): Likewise.
17887 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
17888 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
17889 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
17890 * tree-vect-loop.c (vectorizable_reduction): Likewise.
17891 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
17892 * tree-vect-stmts.c (vectorizable_shift): Likewise.
17893 * tree-vrp.c (vrp_finalize): Likewise.
17894 * tree.c (variably_modified_type_p): Likewise.
17896 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
17898 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
17899 on darwin12 and later.
17900 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
17901 file to pass -rdynamic on darwin12 and later.
17902 * config/darwin.opt (rdynamic): Add.
17904 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
17906 * doc/extend.texi (C Extensions): Update menu for moved Variable
17907 Attributes and Type Attributes sections.
17909 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
17912 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
17913 if rep_8byte stringop strategy was specified for 32-bit target.
17915 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
17918 * config/i386/i386.md (vector convert to float spltiter): Check for
17919 xmm16+, when splitting scalar float conversion.
17920 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
17922 2015-05-05 Nick Clifton <nickc@redhat.com>
17924 * config/msp430/msp430-opts.h (enum msp430_regions): New.
17925 * config/msp430/msp430.c (msp430_override_options): Complain if
17926 -mcode-region or -mdata-region is used on a non MSP430X.
17927 (msp430_section_attr): New function. Checks lower, upper and
17929 (msp430_attribute_table): Add lower, upper and either.
17930 (gen_prefix): New function. Generates a prefix for a section
17932 (msp430_select_section): New function - handles the choice of
17933 section for an object. Takes into account memory region
17934 attributes and options.
17935 (msp430_function_section): Use gen_prefix.
17936 (TARGET_SECTION_TYPE_FLAGS): Define.
17937 (msp430_section_type_flags): New function.
17938 (TARGET_ASM_UNIQUE_SECTION): Define.
17939 (msp430_unique_section): New function.
17940 (msp430_output_aligned_decl_common): New function.
17941 (msp430_do_not_relax_short_jumps): New function.
17942 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
17944 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
17945 * config/msp430/msp430-protos.h
17946 (msp430_do_not_relax_short_jumps): New prototype.
17947 (msp430_output_aligned_decl_common): New prototype.
17948 * config/msp430/msp430.md (length): New attribute.
17949 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
17950 then use a long code sequence for short jumps.
17951 * config/msp430/msp430.opt (mcode-region): New.
17952 (mdata-region): New.
17953 * doc/invoke.texi: Document new options.
17954 * doc/extend.texi: Document new attributes.
17956 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
17958 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
17959 (tune_params): Add field branch_costs.
17960 (aarch64_branch_cost): Declare.
17961 * gcc/config/aarch64.c (generic_branch_cost): New.
17962 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
17963 (cortexa53_tunings): Likewise.
17964 (cortexa57_tunings): Likewise.
17965 (thunderx_tunings): Likewise.
17966 (xgene1_tunings): Likewise.
17967 (aarch64_branch_cost): Define.
17968 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
17970 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
17972 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
17973 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
17974 * config/i386/i386.md: Ditto.
17975 * config/i386/winnt.c: Ditto.
17977 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
17979 * doc/extend.texi (__atomic Builtins): Move implementation details
17980 to the end of the description, rewrite opening paragraphs, state
17981 difference with __sync builtins, state C11/C++11 assumptions,
17982 weaken itemized descriptions, add explanation of memory model
17983 behaviour, expand description of compare-exchange, simplify text.
17985 2015-05-05 Renlin Li <renlin.li@arm.com>
17987 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
17989 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
17991 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
17992 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
17993 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
17994 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
17995 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
17996 * configure: Regenerate.
17997 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
17998 * doc/install.texi (aarch64*-*-*): Document new
17999 --enable-fix-cortex-a53-843419 option.
18000 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
18001 and -mno-fix-cortex-a53-843419 options.
18003 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18006 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
18008 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
18010 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
18011 fix overactive TYPE_MIN_VALUE check and add FIXME for type
18012 compatibility problems.
18014 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
18016 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
18018 (cbranchsi4_reg): New.
18019 * config/microblaze/microblaze.c
18020 (microblaze_expand_conditional_branch_reg): New.
18021 * config/microblaze/microblaze-protos.h
18022 (microblaze_expand_conditional_branch_reg): New prototype.
18024 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
18026 * config/microblaze/microblaze.md (peephole2): New.
18028 2015-05-04 Jeff Law <law@redhat.com>
18031 2015-05-04 Jeff Law <law@redhat.com>
18033 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18034 simplifier to narrow arithmetic.
18035 * generic-match-head.c: (types_match, single_use): New functions.
18036 * gimple-match-head.c: (types_match, single_use): New functions.
18038 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
18041 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
18042 (split_branches): Likewise.
18044 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
18046 * common.opt (fdelete-null-pointer-checks): Init to -1.
18047 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
18048 override flag_delete_null_pointer_checks default.
18049 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
18050 behavior re address zero. Better document target-specific behavior.
18051 (-fisolate-errneous-paths-dereference): Mention relationship to
18052 -fdelete-null-pointer-checks.
18054 2015-05-04 Jakub Jelinek <jakub@redhat.com>
18056 PR tree-optimization/65984
18057 * ubsan.c: Include tree-cfg.h.
18058 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
18059 stmt_could_throw_p test, rename can_throw variable to ends_bb.
18061 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
18063 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
18064 to CONST_DOUBLE_P predicate.
18065 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
18066 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
18067 allow only operands that satisfy standard_sse_constant_p predicate.
18068 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
18069 to CONST_DOUBLE_P predicate.
18071 2015-05-04 Jeff Law <law@redhat.com>
18073 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18074 simplifier to narrow arithmetic.
18075 * generic-match-head.c: (types_match, single_use): New functions.
18076 * gimple-match-head.c: (types_match, single_use): New functions.
18078 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
18080 * config/arm/arm.c: Restore bootstrap.
18082 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
18084 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
18085 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
18086 as CONST_WIDE_INT, not CONST_DOUBLE.
18087 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
18088 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
18089 (ix86_find_base_term): Do not check for CONST_DOUBLE.
18090 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
18091 (ix86_build_signbit_mask): Rewrite using wide ints.
18092 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
18093 (ix86_rtx_costs): Handle CONST_WIDE_INT.
18094 (find_constant): Ditto.
18095 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
18096 using gen_int_mode.
18097 * config/i386/predicates.md (x86_64_immediate_operand)
18098 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18099 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
18100 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18101 (const0_operand): Also match const_wide_int.
18102 (constm1_operand): Ditto.
18103 (const1_operand): Ditto.
18105 2015-05-04 Richard Biener <rguenther@suse.de>
18107 PR tree-optimization/65965
18108 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
18109 store groups at gaps.
18111 2015-05-04 Richard Biener <rguenther@suse.de>
18113 PR tree-optimization/65935
18114 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
18115 then make sure to apply that swapping to the IL.
18117 2015-05-04 Jakub Jelinek <jakub@redhat.com>
18119 * Makefile.in (PATCHLEVEL_c): New variable.
18120 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
18121 expand the same way as if DEVPHASE_c was non-empty.
18123 2015-05-04 Kai Tietz <ktietz@redhat.com>
18126 * lto-wrapper.c (run_gcc): Open filename
18129 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
18131 * doc/extend.texi (Variable Attributes, Type Attributes): Move
18132 sections up in file, to immediately after the Function Attributes
18135 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
18137 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
18139 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18141 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
18142 (insert_partition_copy_on_edge): Adjust.
18143 (insert_rtx_to_part_on_edge): Likewise.
18144 (insert_part_to_rtx_on_edge): Likewise.
18146 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18148 * function.c (set_return_jump_label): Change type of argument to
18150 * function.h (set_return_jump_label): Adjust.
18152 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18154 * reload.h (struct reg_equivs_t): Change type of init to
18156 * ira.c (fix_reg_equiv_init): Adjust.
18157 * reload1.c (eliminate_regs_1): Likewise.
18158 (init_eliminable_invariants): Likewise.
18160 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18162 * cselib.c (fp_setter_insn): Take a rtx_insn *.
18163 * cselib.h (fp_setter_insn): Adjust.
18165 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18167 * recog.c (struct validate_replace_src_data): Change type of
18168 insn field to rtx_insn *.
18169 (validate_replace_src_group): Change type of argument to rtx_insn *.
18170 * recog.h (validate_replace_src_group): Adjust.
18172 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18174 * haifa-sched.c: Change the type of some variables to rtx_insn *.
18175 * sched-deps.c: Likewise.
18176 * sched-int.h: Likewise.
18177 * sched-rgn.c: Likewise.
18178 * sel-sched.c: Likewise.
18180 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18183 * config/i386/i386.c: Change the type of some arguments to
18185 * config/arm/arm.c: Likewise.
18187 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18189 * lra-constraints.c: Change type of some arguments to rtx_insn *.
18191 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18193 * regcprop.c (kill_autoinc_value): Change type of argument to
18196 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18198 * genrecog.c (print_subroutine): Adjust.
18199 * recog.c (get_bool_attr_mask_uncached): Likewise.
18200 * recog.h (struct recog_data_d): Change the type of insn to
18203 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18205 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
18207 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18209 * df-problems.c (df_set_note): Change type of argument to
18212 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18214 * builtins.c (expand_builtin_trap): Change type of local
18215 variable to rtx_insn *.
18216 (add_sched_insns_for_speculation): Likewise.
18217 (ix86_emit_save_regs): Likewise.
18218 (get_scratch_register_on_entry): Likewise.
18219 (ix86_emit_restore_reg_using_pop): Likewise.
18220 (ix86_emit_leave): Likewise.
18221 (ix86_emit_restore_regs_using_mov): Likewise.
18222 (ix86_expand_epilogue): Likewise.
18224 (rl78_alloc_physical_registers_umul): Likewise.
18225 * cselib.c (discard_useless_locs): Likewise.
18226 (cselib_invalidate_regno): Likewise.
18227 (cselib_invalidate_mem): Likewise.
18228 * function.c (expand_function_start): Likewise.
18229 (emit_use_return_register_into_block): Likewise.
18230 * gcse.c: Likewise.
18231 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
18232 * ifcvt.c (noce_get_alt_condition): Likewise.
18233 * loop-doloop.c (doloop_condition_get): Likewise.
18234 * lra-constraints.c (inherit_in_ebb): Likewise.
18235 * modulo-sched.c (sms_schedule_by_order): Likewise.
18236 * recog.c (next_insn_tests_no_inequality): Likewise.
18237 * reorg.c (emit_delay_sequence): Likewise.
18238 (update_reg_dead_notes): Likewise.
18239 (fix_reg_dead_note): Likewise.
18240 (fill_slots_from_thread): Likewise.
18241 (delete_computation): Likewise.
18243 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
18245 * doc/extend.texi (Variable Attributes): Add menu and proper
18246 @nodes to subsections. Move Microsoft Windows attributes to
18247 their own subsection.
18248 (Type Attributes): Reorganize introduction to remove duplicate
18249 list of attributes. Add menu and proper @nodes to subsections.
18250 Alphabetize the main table of common attributes.
18252 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
18254 * match.pd: New simplification patterns.
18255 (x + (x & 1)) -> ((x + 1) & ~1)
18256 (x & ~(x & y)) -> ((x & ~y))
18257 (x | ~(x | y)) -> ((x | ~y))
18259 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18261 * target.def (attribute_table): Mention that struct attribute_spec
18262 is defined in tree-core.h rather than tree.h
18263 * doc/tm.texi: Regenerate.
18265 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
18267 * genrecog.c (test): Rename to rtx_test. Update rest of file
18270 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
18272 PR translation/65959
18273 * params.h (DEFPARAM): Rename msgid to nocmsgid.
18275 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18277 * gcc/config/aarch64/aarch64-protos.h (tune_params):
18278 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
18279 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
18280 Return value depending on target.
18281 (generic_tunings): Initialize new target settings.
18282 (cortexa53_tunings): Likewise.
18283 (cortexa57_tunings): Likewise.
18284 (thunderx_tunings): Likewise.
18285 (xgene1_tunings): Likewise.
18287 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18289 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
18290 Make Cortex-A53 shift costs more accurate.
18292 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18294 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
18297 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18299 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
18300 Calculate cost of op0 and op1 in PLUS and MINUS cases.
18302 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18304 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18305 Add cost of op0 in the compare-with-fpzero case.
18307 2015-04-30 David Malcolm <dmalcolm@redhat.com>
18309 * builtins.c (fold_builtin_1): Remove spurious second
18311 * cgraph.h (symtab_node::get_availability): Likewise.
18312 * opts.c (common_handle_option): Remove spurious second semicolon.
18313 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18314 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
18316 2015-04-30 Caroline Tice <cmtice@google.com>
18318 PR gcov-profile/65929
18319 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
18320 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
18321 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
18322 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
18323 * doc/tm.texi: Regenerate.
18324 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
18325 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
18326 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
18327 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
18329 2015-04-30 Marek Polacek <polacek@redhat.com>
18331 * varasm.c (handle_cache_entry): Fix logic.
18333 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18335 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
18336 (*extrsi5_insn_uxtw_alt): Likewise.
18337 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
18338 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
18341 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18343 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
18346 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18348 * config/aarch64/aarch64.md
18349 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
18350 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
18351 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
18352 appropriately. Handle alternative EON form.
18354 2015-04-30 Renlin Li <renlin.li@arm.com>
18356 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
18357 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
18359 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
18362 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
18363 -fstrict-aliasing boundaries.
18365 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18367 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
18368 and [SU]MNEGL patterns.
18370 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18372 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
18373 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
18374 combined arithmetic-shift ops. Properly handle all shift and extend
18375 operations that can occur in combination with PLUS/MINUS.
18376 Rename maybe_fma to compound_p.
18377 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
18378 arithmetic and shift operations.
18380 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18382 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
18383 rather than arith_shift cost when costing ADD/MINUS of an
18386 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
18389 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
18392 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
18394 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
18395 are for the same position.
18397 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
18399 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
18401 (vectorize_loops): Use it.
18403 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18405 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
18406 for aggregate types.
18407 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
18408 type to be non_ODR.
18409 * tree.c (need_assembler_name_p): Compute mangled name for
18410 non-fundamental types and integer types.
18412 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
18414 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
18416 * expr.c (expand_expr_real_2): Likewise.
18418 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18420 * tree.c (build_common_builtin_nodes): Do not build
18421 __builtin_alloca_with_align as equivalent of library alloca.
18423 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18425 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
18426 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
18428 * tree.c: Include print-tree.h and ipa-utils.h
18429 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
18430 (free_lang_data_in_cgraph): Call verify_type.
18431 (verify_type_variant): New function.
18432 (verify_type): New function.
18433 * tree.h (verify_type): Declare.
18435 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
18437 * config/mips/mips-cpus.def: (mips4): Change default processor
18438 from PROCESSOR_R8000 to PROCESSOR_R10000.
18440 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
18442 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
18443 la/jalr instead of jal.
18445 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
18448 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
18449 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
18450 (setcc+movzbl peephole2): Check also clobbered reg.
18451 (setcc+andl peephole2): Ditto.
18453 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
18456 * config/nvptx/mkoffload.c (target_ilp32): New variable.
18457 (main): Set it depending on "-foffload-abi=[...]".
18458 (compile_native, main): Use it to pass "-m32" or "-m64" to the
18461 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
18464 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
18465 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
18466 Flip lane index back at assembly time for bigendian.
18468 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
18470 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
18471 * gimplify.c (gimplify_omp_workshare): Use it.
18473 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18475 * Makefile.in (build/genrecog.o): Depend on inchash.h.
18476 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
18478 * genrecog.c: Rewrite most of the code except for the third page.
18480 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18482 * inchash.h, inchash.c: Include bconfig.h for build objects.
18483 * Makefile.in (build/inchash.o): New rule.
18485 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
18488 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
18489 number in type attribute expression.
18491 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18493 * loop-iv.c (canon_condition): Generalize to all types of integer
18496 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
18498 * gimple-walk.c: Prune duplicate or unneeded includes.
18499 (walk_gimple_asm): Only call parse_input_constraint or
18500 parse_output_constraint if their findings are used.
18501 Honour parse_input_constraint and parse_output_constraint
18504 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
18506 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
18508 2015-04-29 Tom de Vries <tom@codesourcery.com>
18510 PR tree-optimization/65893
18511 * passes.def (pass_all_optimizations): Move pass_stdarg to after
18514 2015-04-29 Richard Biener <rguenther@suse.de>
18516 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18517 compute GROUP_SIZE for basic-block SLP.
18518 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
18519 take into account gaps.
18520 (vect_get_mask_element): Properly reject references to previous
18522 (vect_transform_slp_perm_load): Likewise.
18524 2015-04-29 Christian Bruel <christian.bruel@st.com>
18527 * config/i386/i386.c (ix86_default_align): New function.
18528 (ix86_override_options_after_change): Call ix86_default_align.
18529 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
18530 (ix86_override_options_after_change): New function.
18532 2015-04-28 Jeff Law <law@redhat.com>
18534 * tree-ssa-dom.c (record_equality); Fix comment typos.
18536 2015-04-28 Tom de Vries <tom@codesourcery.com>
18538 PR tree-optimization/65887
18539 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
18541 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
18543 * doc/extend.texi (Declaring Attributes of Functions): Split into
18544 subsections by target. Alphabetize the table of common attributes.
18545 Rewrite some of the introductory text to reflect the new structure.
18546 Update some cross-references to point to the new subsections.
18547 (Attribute Syntax): Put paragraph about "__" naming here. Remove
18548 duplicate copies in the discussion of function, label, and type
18551 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
18554 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
18556 2015-04-28 Jason Merrill <jason@redhat.com>
18559 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
18560 (finalize_type_size): Respect TYPE_USER_ALIGN.
18561 (layout_type) [ARRAY_TYPE]: Likewise.
18563 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
18565 * config/arm/arm.md (*arm_movt): Fix type attribute.
18566 (*cmpsi_shiftsi): Likewise.
18567 (*cmpsi_shiftsi_swp): Likewise.
18568 (*movsicc_insn): Likewise.
18569 (*cond_move): Likewise.
18570 (*if_plus_move): Likewise.
18571 (*if_move_plus): Likewise.
18572 (*if_arith_move): Likewise.
18573 (*if_move_arith): Likewise.
18574 (*if_shift_move): Likewise.
18575 (*if_move_shift): Likewise.
18576 (*arm_movtas_ze): Likewise.
18577 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
18578 redundancy and type attribute.
18579 (*thumb2_movsi_insn): Fix type attribute.
18580 (*thumb2_addsi_short): Likewise.
18581 (thumb2_addsi3_compare0): Likewise.
18582 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
18583 attributes accordingly.
18585 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
18588 * function.c (pad_to_arg_alignment): Add parentheses.
18590 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
18592 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
18593 libgcc/config/frv/elf-lib.h.
18595 2015-04-28 Tom de Vries <tom@codesourcery.com>
18597 * tree-call-cdce.c: Fix example in header comment.
18599 2015-04-28 Richard Biener <rguenther@suse.de>
18601 PR tree-optimization/62283
18602 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
18603 fails fatally and we are vectorizing a basic-block simply
18604 cause the child to be constructed piecewise.
18605 (vect_analyze_slp_cost_1): Adjust.
18606 (vect_detect_hybrid_slp_stmts): Likewise.
18607 (vect_bb_slp_scalar_cost): Likewise.
18608 (vect_get_constant_vectors): For piecewise constructed
18609 constants place them after the last def.
18610 (vect_get_slp_defs): Adjust.
18611 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
18612 externals for basic-block vectorization.
18614 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18617 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
18619 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
18620 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
18621 (AARCH64_TUNE_FMA_STEERING): Likewise.
18622 * config/aarch64/aarch64-cores.def: Set
18623 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
18624 FMUL/FMADD instructions.
18625 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
18626 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
18627 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
18628 * config/aarch64/cortex-a57-fma-steering.h: New file.
18629 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18631 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
18633 * gensupport.c (std_preds): Add missing codes to address_operand entry.
18635 2015-04-28 Richard Biener <rguenther@suse.de>
18637 PR tree-optimization/65851
18638 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
18639 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
18640 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
18641 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
18642 (ccp_visit_phi_node): Adjust.
18643 (evaluate_stmt): For simplifications to SSA names return its
18644 lattice value if that isn't VARYING. Return immediately when
18645 simplified to a constant.
18646 (visit_assignment): Adjust.
18647 (ccp_visit_stmt): Likewise.
18649 2015-04-28 Tom de Vries <tom@codesourcery.com>
18651 PR tree-optimization/65818
18652 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
18655 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18657 * calls.c (save_fixed_argument_area): Don't check
18658 ARGS_GROW_DOWNWARD with the preprocessor.
18659 (restore_fixed_argument_area): Likewise.
18660 (mem_overlaps_already_clobbered_arg_p): Likewise.
18661 (check_sibcall_argument_overlap): Likewise.
18662 (expand_call): Likewise.
18663 (emit_library_call_value_1): Likewise.
18664 (store_one_arg): Likewise.
18665 * function.c (assign_parms): Likewise.
18666 (locate_and_pad_parm): Likewise.
18667 (pad_to_arg_alignment): Likewise.
18668 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
18670 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18672 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
18673 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
18674 * calls.c (save_fixed_argument_area): Don't chekc if
18675 ARGS_GROW_DOWNWARD is defined.
18676 (restore_fixed_argument_area): Likewise.
18677 (mem_overlaps_already_clobbered_arg_p): Likewise.
18678 (check_sibcall_argument_overlap): Likewise.
18679 (expand_call): Likewise.
18680 (emit_library_call_value_1): Likewise.
18681 (store_one_arg): Likewise.
18682 * function.c (assign_parms): Likewise.
18683 (locate_and_pad_parm): Likewise.
18684 (pad_to_arg_alignment): Likewise.
18685 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
18687 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18689 * defaults.h (gen_epilogue): New function.
18690 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
18692 * cfgrtl.c (cfg_layout_finalize): Likewise.
18693 * df-scan.c: Likewise.
18694 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18695 (reposition_prologue_and_epilogue_notes): Likewise.
18696 * reorg.c (find_end_label): Likewise.
18697 * toplev.c: Likewise.
18699 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18701 * bb-reorder.c (HAVE_return): Don't check if its undefined.
18702 * defaults.h (gen_simple_return): New function.
18703 (gen_simple_return): Likewise.
18704 (HAVE_return): Add default definition to false.
18705 (HAVE_simple_return): Likewise.
18706 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
18707 HAVE_return and HAVE_simple_return are defined.
18708 * function.c (gen_return_pattern): Likewise.
18709 (convert_jumps_to_returns): Likewise.
18710 (thread_prologue_and_epilogue_insns): Likewise.
18711 * reorg.c (find_end_label): Likewise.
18712 (dbr_schedule): Likewise.
18713 * shrink-wrap.c: Likewise.
18714 * shrink-wrap.h: Likewise.
18716 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18718 * defaults.h (EPILOGUE_USES): Add default definition of false.
18719 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
18720 * resource.c (init_resource_info): Likewise.
18722 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18724 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
18726 * dwarf2out.c (field_byte_offset): REmove check if
18727 PCC_BITFIELD_TYPE_MATTERS is defined.
18728 * stor-layout.c (layout_decl): Likewise.
18729 (update_alignment_for_field): Likewise.
18730 (place_field): Likewise.
18732 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18734 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
18736 * regrename.c (check_new_reg_p): Remove check if
18737 HARD_REGNO_RENAME_OK is defined.
18738 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
18740 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18742 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
18743 * cse.c (fold_rtx): Likewise.
18744 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
18745 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
18746 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
18747 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
18748 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
18749 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
18750 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
18751 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
18752 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
18753 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
18755 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
18756 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
18757 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
18758 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
18759 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
18760 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
18761 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
18762 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
18763 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
18764 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
18765 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
18766 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
18767 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
18768 * doc/tm.texi: Regenerate.
18769 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
18770 either true or false.
18772 2015-04-27 Jeff Law <law@redhat.com>
18774 PR tree-optimization/65217
18775 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
18776 of them has a single use, make sure it is the LHS of the implied
18779 2015-04-28 Alan Modra <amodra@gmail.com>
18782 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
18783 (offsettable_ok_by_alignment): Use minimum of decl and toc
18784 pointer alignment. Replace dead code with assertion.
18785 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
18786 case if size exceeds toc pointer alignment.
18787 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
18788 (rs6000_emit_move): Likewise.
18789 * configure.ac: Add linker toc pointer alignment check.
18790 * configure: Regenerate.
18791 * config.in: Regenerate.
18793 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
18795 * config.gcc: Add h8300-*-linux.
18796 * config/h8300/linux.h: New.
18797 * config/h8300/t-linux: New.
18798 * config/h8300/h8300.c (h8300_option_override): Normal mode
18799 is not supported for h8300-*-linux.
18800 (h8300_file_start): Target priority change.
18801 (get_shift_alg): Likewise.
18802 (h8300_shift_need_scratch_p): Likewise.
18803 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
18804 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
18806 2015-04-27 Caroline Tice <cmtice@google.com>
18808 * final.c (final_scan_insn): Output cold_function_name as function
18810 * varasm.c (cold_function_name): Make global.
18811 (assemble_start_function): Re-set cold_function_name.
18812 (assemble_end_function): Output cold partition size.
18813 * varasm.h (cold_function_name): Declare global.
18815 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
18817 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
18818 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
18820 (*movxi_internal_avx512f): Ditto.
18821 (define_split): Check for xmm16+, when splitting scalar float_extend.
18822 (*extendsfdf2_mixed): Use "v" constraint.
18823 (define_split): Check for xmm16+, when splitting scalar float_truncate.
18824 (*truncdfsf_fast_sse): Use "v" constraint.
18825 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
18826 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
18827 (define_peephole2): Check for xmm16+, when converting scalar
18829 (define_peephole2): Check for xmm16+, when converting scalar
18831 (*fop_<mode>_comm_mixed): Use "v" constraint.
18832 (*fop_<mode>_comm_sse): Ditto.
18833 (*fop_<mode>_1_mixed): Ditto.
18834 (*sqrt<mode>2_sse): Ditto.
18835 (*ieee_s<ieee_maxmin><mode>3): Ditto.
18837 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18839 * combine.c (simplify_if_then_else): Use std::swap instead
18840 of manually swapping.
18841 (known_cond): Likewise.
18842 (simplify_comparison): Likewise.
18844 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
18847 * config/rs6000/htm.md: Remove all define_expands.
18848 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
18849 UNSPECV_HTM_TABORTWCI): Remove.
18850 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
18851 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
18852 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
18853 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
18854 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
18855 tabortwci_internal): Remove define_insns.
18856 (tabort<wd>c, tabort<wd>ci): New define_insns.
18857 (tabort): Use gpc_reg_operand.
18858 (tcheck): Remove operand.
18859 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
18860 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
18862 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
18863 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
18864 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
18865 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
18866 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
18867 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
18868 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
18869 (tcheck): Remove builtin argument.
18870 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
18872 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
18873 tabortdc and tabortdci builtins when not in 64-bit mode.
18874 Modify code to handle the loss of the HTM define_expands.
18875 Emit code to copy the CR register to TARGET.
18876 (htm_init_builtins): Modify code to handle the loss of the HTM
18878 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
18879 (RS6000_BTC_64BIT): Likewise.
18880 (RS6000_BTC_CR): New macro.
18881 * doc/extend.texi: Update documentation for htm builtins.
18883 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18885 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
18886 of manually swapping.
18887 (simplify_associative_operation): Likewise.
18888 (simplify_binary_operation): Likewise.
18889 (simplify_plus_minus): Likewise.
18890 (simplify_relational_operation): Likewise.
18891 (simplify_ternary_operation): Likewise.
18893 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
18895 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
18896 (xs_hi_nonmemory_operand): Remove error.
18897 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
18898 general_operand rather than xs_hi_general_operand.
18900 2015-04-27 Richard Biener <rguenther@suse.de>
18902 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
18903 (record_equivalences_from_stmt): Valueize rhs.
18904 (record_equality): Canonicalize x and y order via
18905 tree_swap_operands_p. Do not swap operands for same loop depth.
18907 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
18911 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
18912 Add hint how to use own spec file.
18914 2015-04-27 Jakub Jelinek <jakub@redhat.com>
18916 PR tree-optimization/65875
18917 * tree-vrp.c (update_value_range): If in is_new case setting
18918 old_vr to VR_VARYING, also set new_vr to it. Remove
18919 old_vr->type == VR_VARYING test.
18920 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
18921 SSA_PROP_INTERESTING if update_value_range returned true,
18922 but new range is VR_VARYING.
18924 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
18926 * combine.c (sign_extend_short_imm): New.
18927 (set_nonzero_bits_and_sign_copies): Use above new function for sign
18928 extension of src short immediate.
18929 (reg_nonzero_bits_for_combine): Likewise for tem.
18931 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
18933 * stor-layout.c (self_referential_component_ref_p): New predicate.
18934 (copy_self_referential_tree_r): Use it.
18935 (self_referential_size): Punt for simple operations directly involving
18936 self-referential component references.
18937 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
18939 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
18941 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
18943 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
18945 * vec.h (vec): Make splice arguments const. Update definitions
18948 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
18950 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
18953 2015-04-26 Tom de Vries <tom@codesourcery.com>
18955 PR tree-optimization/65826
18956 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
18958 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
18960 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
18961 (*madd3<mode>): Ditto.
18962 (*msub4<mode>): Ditto.
18963 (*msub3<mode>): Ditto.
18964 (*nmadd4<mode>): Ditto.
18965 (*nmadd3<mode>): Ditto.
18966 (*nmadd4<mode>_fastmath): Ditto.
18967 (*nmadd3<mode>_fastmath): Ditto.
18968 (*nmsub4<mode>): Ditto.
18969 (*nmsub3<mode>): Ditto.
18970 (*nmsub4<mode>_fastmath): Ditto.
18971 (*nmsub3<mode>_fastmath): Ditto.
18973 2015-04-24 Jason Merrill <jason@redhat.com>
18976 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
18977 down when building TYPE_CANONICAL.
18978 (build_pointer_type_for_mode): Likewise.
18980 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
18982 * genrecog.c (validate_pattern): Check matching constraint refers
18983 to a lower numbered operand.
18985 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18988 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
18989 save to independent variables use the Save attribute. This will
18990 allow these options to be modified with the #pragma/attribute
18992 (-mallow-movmisalign): Likewise.
18993 (-mallow-df-permute): Likewise.
18994 (-msched-groups): Likewise.
18995 (-malways-hint): Likewise.
18996 (-malign-branch-targets): Likewise.
18997 (-mvectorize-builtins): Likewise.
18998 (-msave-toc-indirect): Likewise.
19000 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
19001 can be set via the #pragma/attribute target support.
19002 (rs6000_opt_vars): Likewise.
19003 (rs6000_inner_target_options): If VSX was set, also set
19004 -mno-avoid-indexed-addresses.
19006 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19008 * config/arm/iterators.md (shiftable_ops): Rename to...
19009 (SHIFTABLE_OPS): ... This. Update use in comments.
19010 (ior_xor): Rename to...
19011 (IOR_XOR): ... This.
19012 (vqh_ops): Rename to...
19013 (VQH_OPS): ... This.
19014 (vqhs_ops): Rename to...
19015 (VQHS_OPS): ... This.
19016 (rshifts): Rename to...
19017 (RSHIFTS): ... This.
19018 (returns): Rename to...
19019 (RETURNS): ... This.
19020 * config/arm/arm.md: Update uses of the above.
19021 * config/arm/neon.md: Likewise.
19023 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19025 * config.host (case ${host}): Add aarch64*-*-linux case.
19026 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
19027 fields to all the cores.
19028 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
19029 Add MCPU_MTUNE_NATIVE_SPECS.
19030 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
19031 field to all extensions.
19032 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
19033 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
19034 Adjust definition of AARCH64_OPT_EXTENSION.
19035 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
19036 (MCPU_MTUNE_NATIVE_SPECS): Define.
19037 * config/aarch64/driver-aarch64.c: New file.
19038 * config/aarch64/x-arch64: New file.
19039 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
19042 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19043 Wei Mi <wmi@google.com>
19045 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
19046 * config/i386/i386.c (extract_base_offset_in_addr): New function.
19047 (ix86_operands_ok_for_move_multiple): Ditto.
19048 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
19049 (movlpd/movhpd to movupd peephole2): Ditto.
19051 2015-04-24 Marek Polacek <polacek@redhat.com>
19054 * input.h (from_macro_expansion_at): Define.
19057 * doc/invoke.texi: Update description of -Wlogical-op.
19059 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
19061 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
19062 ternary operator in fprintf and harmonize spacing.
19064 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19066 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
19067 Mark operand1 commutative.
19069 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19071 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
19072 input operands in memory.
19073 (*vec_concatv2si_sse4_1): Ditto.
19074 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
19075 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
19077 (vec_extract_hi_v32hi): Ditto.
19078 (vec_extract_hi_v64hi): Ditto.
19079 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
19081 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
19082 Steven Bosscher <steven@gcc.gnu.org>
19084 PR rtl-optimization/34503
19085 * cprop.c (cprop_reg_p): New.
19086 (hash_scan_set): Use above function to check if register can be
19088 (find_avail_set): Return up to two sets, one whose source is a
19089 register and one whose source is a constant. Sets are returned in an
19090 array passed as parameter rather than as a return value.
19091 (cprop_insn): Use a do while loop rather than a goto. Try each of the
19092 sets returned by find_avail_set, starting with the one whose source is
19093 a constant. Use cprop_reg_p to check if register can be propagated.
19094 (do_local_cprop): Use cprop_reg_p to check if register can be
19096 (implicit_set_cond_p): Likewise.
19098 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19100 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
19101 (sem_function::equals): IGNORED_NODES parameter is now unused;
19102 update call of equals_private.
19103 (sem_function::equals_private): Do not call equals_wpa; skip
19104 gimple body matching if there is no body.
19105 (sem_function::init): Add logic to hash tthunk info.
19106 (sem_function::parse): Also parse thunks.
19107 * ipa-icf.h (equals_private): Update declaration.
19109 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19111 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
19112 asterisk from name so this can be generated directly.
19113 (*altivec_stvx_<mode>_internal): Likewise.
19114 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
19115 that this is never called during or after reload/lra.
19116 (rs6000_frame_related): Remove split_reg
19117 argument and logic that references it.
19118 (emit_frame_save): Remove last parameter from call to
19119 rs6000_frame_related.
19120 (rs6000_emit_prologue): Remove last parameter from eight calls to
19121 rs6000_frame_related. Force generation of stvx instruction for
19122 Altivec register saves. Remove split_reg handling, which is no
19124 (rs6000_emit_epilogue): Force generation of lvx instruction for
19125 Altivec register restores.
19127 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19129 * config/rs6000/rs6000.opt (mcrypto): Change option description to
19130 match category changes in ISA 2.07B.
19132 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19134 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
19136 (cmp_op, cmp_type): New code attributes.
19137 (NEON_VCMP, NEON_VACMP): New int iterators.
19138 (cmp_op_unsp): New int attribute.
19139 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
19140 (neon_vceq<mode>): Delete.
19141 (neon_vc<cmp_op><mode>_insn): New pattern.
19142 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
19143 (neon_vcgeu<mode>): Delete.
19144 (neon_vcle<mode>): Likewise.
19145 (neon_vclt<mode>: Likewise.
19146 (neon_vcage<mode>): Likewise.
19147 (neon_vcagt<mode>): Likewise.
19148 (neon_vca<cmp_op><mode>): New define_expand.
19149 (neon_vca<cmp_op><mode>_insn): New pattern.
19150 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
19152 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19154 * tree.h (attribute_value_equal): Declare.
19155 * tree.c (attribute_value_equal): Export.
19157 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19159 * ipa-icf.c (sem_item::compare_attributes): New function.
19160 (sem_item::compare_referenced_symbol_properties): Compare variable
19162 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
19163 (sem_function::param_used_p): New function.
19164 (sem_function::equals_wpa): Fix attribute comparsion; match
19165 parameter type codes; do not compare paremter flags when
19166 they are not used; compare edge flags; compare indirect calls.
19167 (sem_item::update_hash_by_addr_refs): Hash reference type.
19168 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
19169 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
19170 reference use type.
19171 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
19172 * ipa-icf.h (compare_attributes, param_used_p): Declare.
19174 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19176 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
19178 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
19179 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
19180 (sem_item::compare_referenced_symbol_properties): New.
19181 (sem_item::hash_referenced_symbol_properties): New.
19182 (sem_item::compare_cgraph_references): Rename to ...
19183 (sem_item::compare_symbol_references): ... this one; use
19184 compare_referenced_symbol_properties.
19185 (sem_function::equals_wpa): Do not compare
19186 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
19187 DECL_IS_OPERATOR_NEW; compare pointer sizes.
19188 (sem_item::update_hash_by_addr_refs): Call
19189 hash_referenced_symbol_properties.
19190 (sem_item::update_hash_by_local_refs): Cleanup.
19191 (sem_function::merge): Do not mix up symbol properties.
19192 (sem_variable::equals_wpa): Use compare_symbol_references.
19193 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
19194 (sem_item::hash_referenced_symbol_properties): New.
19195 (sem_item::compare_symbol_references): New.
19196 (sem_item::compare_cgraph_references): Remove.
19198 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
19201 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
19202 Emit size of local.
19204 2015-04-23 Nick Clifton <nickc@redhat.com>
19206 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
19207 ATTRIBUTE_UNUSED to x parameter.
19208 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
19210 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19212 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
19213 TARGET_CRYPTO to TARGET_P8_VECTOR>
19214 (crypto_vpermxor_<mode>): Likewise.
19215 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
19216 (BU_CRYPTO_3A): Likewise.
19217 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
19218 (BU_CRYPTO_OVERLOAD_3A): New #define.
19219 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
19220 (VPMSUMH): Likewise.
19221 (VPMSUMW): Likewise.
19222 (VPMSUMD): Likewise.
19223 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
19224 (VPERMXOR_V4SI): Likewise.
19225 (VPERMXOR_V8HI): Likewise.
19226 (VPERMXOR_V16QI): Likewise.
19227 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
19228 BU_CRYPTO_OVERLOAD_2A.
19229 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
19230 BU_CRYPTO_OVERLOAD_3A.
19231 * config/rs6000/rs6000.opt (mcrypto): Change description of
19234 2015-04-23 Richard Biener <rguenther@suse.de>
19236 * passes.def: Remove copy propagation passes run directly after CCP.
19237 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
19239 (ccp_visit_phi_node): Rework to handle first executable edge
19242 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
19244 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
19245 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
19246 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
19247 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
19248 (thumb_legimitimize_reload_address): Remove.
19249 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
19251 (thumb_legimitimize_reload_address): Remove.
19253 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19255 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
19257 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19259 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
19261 (store_multiple): Likewise.
19263 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19265 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
19266 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
19267 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
19268 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
19269 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
19270 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
19271 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
19272 Specify issue_rate value.
19273 (arm_issue_rate): Look up issue rate from tuning structs. Remove
19274 large switch statement.
19275 (arm_marvell_pj4_tune): New struct.
19276 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
19279 2015-04-23 Richard Biener <rguenther@suse.de>
19281 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
19282 (vect_find_last_store_in_slp_instance): Rename to ...
19283 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
19284 (vect_analyze_slp_cost_1): Use vector_load for constant defs
19285 and vec_construct for external defs when estimating prologue cost.
19286 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
19287 Compute costs here only when vectorizing loops.
19288 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
19289 have been determined.
19290 (vect_schedule_slp_instance): Simplify vectorized code placement
19291 and prepare for in-BB external defs.
19292 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
19293 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
19294 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
19296 (vect_model_load_cost): Likewise.
19297 (vectorizable_store): Instead add it here.
19298 (vectorizable_load): Likewise.
19299 (vect_is_simple_use): Dump def type textually.
19301 2015-04-23 Richard Biener <rguenther@suse.de>
19303 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
19304 * cfgloop.c (verify_loop_structure): Verify the root loop node.
19305 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
19306 instead of get_eh_region_from_lp_number.
19307 * loop-init.c (fix_loop_structure): If we removed a loop, reset
19310 2015-04-23 Anton Blanchard <anton@samba.org>
19312 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
19313 need for -mprofile-kernel to save LR to stack.
19315 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19317 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
19319 (insn_is_swappable_p): Return 1 for a convert from double to
19320 single precision when all of its uses are splats of BE element
19323 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19325 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
19327 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19330 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
19331 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
19332 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
19334 (rs6000_builtin_mask_for_load): Return 0 for targets with
19335 efficient unaligned VSX accesses so that the vectorizer will use
19336 direct unaligned loads.
19337 (rs6000_builtin_support_vector_misalignment): Always return true
19338 for targets with efficient unaligned VSX accesses.
19339 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
19340 stores on targets with efficient unaligned VSX accesses is almost
19341 always the same as the cost of an aligned load or store, so model
19343 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
19344 unaligned vectors if we have efficient unaligned VSX accesses.
19345 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
19346 undocumented option.
19348 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19351 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
19353 * config.gcc (LIBC_MUSL): New tm_defines macro.
19354 * config/linux.h (OPTION_MUSL): Define.
19355 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19356 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19357 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19359 * config/linux.opt (mmusl): New option.
19360 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19361 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19363 * configure: Regenerate.
19365 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
19367 * config.gcc (LIBC_MUSL): New tm_defines macro.
19368 * config/linux.h (OPTION_MUSL): Define.
19369 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19370 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19371 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19373 * config/linux.opt (mmusl): New option.
19374 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19375 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19377 * configure: Regenerate.
19379 2015-04-22 Yury Gribov <y.gribov@samsung.com>
19381 * doc/invoke.texi (-fsanitize-sections): Update description.
19382 * asan.c (set_sanitized_sections): Parse incoming arg.
19383 (section_sanitized_p): Support wildcards.
19385 2015-04-22 Tom de Vries <tom@codesourcery.com>
19387 PR tree-optimization/65823
19388 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
19389 equality between ap_copy and ap.
19391 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19394 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
19396 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19399 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
19401 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19404 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
19405 remove already contained t-files.
19407 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19409 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
19410 Remove unneeded forward declarations.
19411 (suitable_for_tail_call_opt_p): Commentary typo fix.
19413 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19415 * varasm.c (emit_bss): Remove redundant guard.
19417 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19419 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
19421 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19423 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
19425 2015-04-22 Hale Wang <hale.wang@arm.com>
19426 Terry Guo <terry.guo@arm.com>
19428 PR rtl-optimization/64818
19429 * combine.c (can_combine_p): Don't combine user-specified
19430 register if it is in an asm input.
19432 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
19435 * passes.def (early_optimizations): Add pass_dse.
19437 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19439 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
19440 * reorg.c (redundant_insn): Remove ifdef
19441 INSN_REFERENCES_ARE_DELAYED.
19442 * resource.c (mark_referenced_resources): Likewise.
19444 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19446 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
19447 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
19448 * resource.c (mark_set_resources): Likewise.
19450 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19452 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
19453 * cfgcleanup.c (flow_find_cross_jump): Likewise.
19454 (flow_find_head_matching_sequence): Likewise.
19455 (try_head_merge_bb): Likewise.
19456 * combine.c (can_combine_p): Likewise.
19457 (try_combine): Likewise.
19458 (distribute_notes): Likewise.
19459 * df-problems.c (can_move_insns_across): Likewise.
19460 * final.c (final): Likewise.
19461 * gcse.c (insert_insn_end_basic_block): Likewise.
19462 * ira.c (find_moveable_pseudos): Likewise.
19463 * reorg.c (try_merge_delay_insns): Likewise.
19464 (fill_simple_delay_slots): Likewise.
19465 (fill_slots_from_thread): Likewise.
19466 * sched-deps.c (sched_analyze_2): Likewise.
19468 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19470 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
19471 PIC_OFFSET_TABLE_REGNUM.
19473 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19475 * alias.c (init_alias_target): Remove ifdef
19476 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
19477 * df-scan.c (df_insn_refs_collect): Likewise.
19478 (df_get_regular_block_artificial_uses): Likewise.
19479 (df_get_eh_block_artificial_uses): Likewise.
19480 (df_get_entry_block_def_set): Likewise.
19481 (df_get_exit_block_use_set): Likewise.
19482 * emit-rtl.c (gen_rtx_REG): Likewise.
19483 * ira.c (ira_setup_eliminable_regset): Likewise.
19484 * reginfo.c (init_reg_sets_1): Likewise.
19485 * regrename.c (rename_chains): Likewise.
19486 * reload1.c (reload): Likewise.
19487 (eliminate_regs_in_insn): Likewise.
19488 * resource.c (mark_referenced_resources): Likewise.
19489 (init_resource_info): Likewise.
19491 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19493 * defaults.h (MASK_RETURN_ADDR): New definition.
19494 * except.c (expand_builtin_extract_return_addr): Remove ifdef
19497 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19499 * defaults.h (RETURN_ADDR_OFFSET): New definition.
19500 * except.c (expand_builtin_extract_return_addr): Remove ifdef
19501 RETURN_ADDR_OFFSET.
19502 (expand_builtin_frob_return_addr): Likewise.
19504 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19506 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
19507 (try_redirect_by_replacing_jump): Likewise.
19508 (rtl_tidy_fallthru_edge): Likewise.
19509 * combine.c (insn_a_feeds_b): Likewise.
19510 (find_split_point): Likewise.
19511 (simplify_set): Likewise.
19512 * cprop.c (cprop_jump): Likewise.
19513 * cse.c (cse_extended_basic_block): Likewise.
19514 * df-problems.c (can_move_insns_across): Likewise.
19515 * function.c (emit_use_return_register_into_block): Likewise.
19516 * haifa-sched.c (sched_init): Likewise.
19517 * ira.c (find_moveable_pseudos): Likewise.
19518 * loop-invariant.c (find_invariant_insn): Likewise.
19519 * lra-constraints.c (curr_insn_transform): Likewise.
19520 * postreload.c (reload_combine_recognize_const_pattern):
19522 * reload.c (find_reloads): Likewise.
19523 * reorg.c (delete_scheduled_jump): Likewise.
19524 (steal_delay_list_from_target): Likewise.
19525 (steal_delay_list_from_fallthrough): Likewise.
19526 (redundant_insn): Likewise.
19527 (fill_simple_delay_slots): Likewise.
19528 (fill_slots_from_thread): Likewise.
19529 (delete_computation): Likewise.
19530 * sched-rgn.c (add_branch_dependences): Likewise.
19532 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19534 * genconfig.c (main): Always define HAVE_cc0.
19535 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
19537 * cfgcleanup.c (flow_find_cross_jump): Likewise.
19538 (flow_find_head_matching_sequence): Likewise.
19539 (try_head_merge_bb): Likewise.
19540 * cfgrtl.c (rtl_merge_blocks): Likewise.
19541 (try_redirect_by_replacing_jump): Likewise.
19542 (rtl_tidy_fallthru_edge): Likewise.
19543 * combine.c (do_SUBST_MODE): Likewise.
19544 (insn_a_feeds_b): Likewise.
19545 (combine_instructions): Likewise.
19546 (can_combine_p): Likewise.
19547 (try_combine): Likewise.
19548 (find_split_point): Likewise.
19550 (simplify_set): Likewise.
19551 (distribute_notes): Likewise.
19552 * cprop.c (cprop_jump): Likewise.
19553 * cse.c (cse_extended_basic_block): Likewise.
19554 * df-problems.c (can_move_insns_across): Likewise.
19555 * final.c (final): Likewise.
19556 (final_scan_insn): Likewise.
19557 * function.c (emit_use_return_register_into_block): Likewise.
19558 * gcse.c (insert_insn_end_basic_block): Likewise.
19559 * haifa-sched.c (sched_init): Likewise.
19560 * ira.c (find_moveable_pseudos): Likewise.
19561 * loop-invariant.c (find_invariant_insn): Likewise.
19562 * lra-constraints.c (curr_insn_transform): Likewise.
19563 * optabs.c (prepare_cmp_insn): Likewise.
19564 * postreload.c (reload_combine_recognize_const_pattern):
19566 * reload.c (find_reloads): Likewise.
19567 (find_reloads_address_1): Likewise.
19568 * reorg.c (delete_scheduled_jump): Likewise.
19569 (steal_delay_list_from_target): Likewise.
19570 (steal_delay_list_from_fallthrough): Likewise.
19571 (try_merge_delay_insns): Likewise.
19572 (redundant_insn): Likewise.
19573 (fill_simple_delay_slots): Likewise.
19574 (fill_slots_from_thread): Likewise.
19575 (delete_computation): Likewise.
19576 (relax_delay_slots): Likewise.
19577 * sched-deps.c (sched_analyze_2): Likewise.
19578 * sched-rgn.c (add_branch_dependences): Likewise.
19580 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19582 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
19583 that is trivially ded on non cc0 targets.
19584 (simplify_set): Likewise.
19585 (mark_used_regs_combine): Likewise.
19586 * cse.c (new_basic_block): Likewise.
19587 (fold_rtx): Likewise.
19588 (cse_insn): Likewise.
19589 (cse_extended_basic_block): Likewise.
19590 (set_live_p): Likewise.
19591 * rtlanal.c (canonicalize_condition): Likewise.
19592 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19594 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19596 * conditions.h: Define macros even if HAVE_cc0 is undefined.
19597 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
19598 * final.c: Likewise.
19599 * jump.c: Likewise.
19600 * recog.c: Likewise.
19601 * recog.h: Declare functions even when HAVE_cc0 is undefined.
19602 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
19604 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19606 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
19607 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
19608 * builtins.c (expand_builtin): Remove check if
19609 EH_RETURN_DATA_REGNO is defined.
19610 * df-scan.c (df_bb_refs_collect): Likewise.
19611 (df_get_exit_block_use_set): Likewise.
19612 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
19613 * ira-lives.c (process_bb_node_lives): Likewise.
19614 * lra-lives.c (process_bb_lives): Likewise.
19616 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
19618 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
19619 FIRST_PSEUDO_REG): New.
19620 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
19621 (ARG_POINTER_REGNUM): Define to ARGP_REG.
19622 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
19623 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
19624 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
19625 (FIRST_INT_REG): New.
19626 (LAST_INT_REG): New.
19627 (FIRST_*_REG): Define using *_REG.
19628 (LAST_*_REG): Ditto.
19629 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
19630 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
19631 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
19633 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19635 * expmed.c: (synth_mult): Only assume overlapping
19636 shift with previous steps in alg_sub_t_m2 case.
19638 2015-04-21 Richard Biener <rguenther@suse.de>
19640 PR tree-optimization/65650
19641 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
19642 transitions involving copies.
19643 (set_lattice_value): Adjust for copy lattice state.
19644 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
19645 if that doesn't dominate the merge point.
19646 (bit_value_unop): Adjust what we treat as varying mask.
19647 (bit_value_binop): Likewise.
19648 (bit_value_assume_aligned): Likewise.
19649 (evaluate_stmt): When we simplified to a SSA name record a copy
19650 instead of dropping to varying.
19651 (visit_assignment): Simplify.
19653 * gimple-match.h (gimple_simplify): Add another callback.
19654 * gimple-fold.c (fold_stmt_1): Adjust caller.
19655 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
19656 for the 2nd callback.
19657 * gimple-match-head.c (gimple_simplify): Add a callback that is
19658 used to valueize the stmt operands and use it that way.
19660 2015-04-21 Richard Biener <rguenther@suse.de>
19662 PR tree-optimization/65788
19663 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
19665 2015-04-21 Richard Biener <rguenther@suse.de>
19667 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
19668 vec_construct cost by vec_stmt_cost.
19670 2015-04-21 Richard Biener <rguenther@suse.de>
19672 * cfghooks.h (create_basic_block): Replace with two overloads
19673 for RTL and GIMPLE.
19674 (split_block): Likewise.
19675 * cfghooks.c (split_block): Rename to ...
19676 (split_block_1): ... this.
19677 (split_block): Add two type-safe overloads for RTL and GIMPLE.
19678 (split_block_after_labels): Call split_block_1.
19679 (create_basic_block): Rename to ...
19680 (create_basic_block_1): ... this.
19681 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
19682 (create_empty_bb): Call create_basic_block_1.
19683 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
19684 split_block_after_labels.
19685 * omp-low.c (expand_parallel_call): Likewise.
19686 (expand_omp_target): Likewise.
19687 (simd_clone_adjust): Likewise.
19688 * tree-chkp.c (chkp_get_entry_block): Likewise.
19689 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
19690 create_basic_block overload.
19691 (cgraph_node::expand_thunk): Likewise.
19692 * tree-cfg.c (make_blocks): Likewise.
19693 (handle_abnormal_edges): Likewise.
19694 * tree-inline.c (copy_bb): Likewise.
19696 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19698 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
19700 (*xor_one_cmplsidi3_ze): Likewise.
19702 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
19704 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
19705 use df_remove_problem rather than manually removing problems, leaving
19706 holes in df->problems_in_order[].
19708 2015-04-21 Tom de Vries <tom@codesourcery.com>
19710 PR tree-optimization/65802
19711 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
19713 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19715 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
19717 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
19718 at '.'. Assert that there's enough space for everything.
19720 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
19722 PR tree-optimization/64950
19724 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
19727 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
19730 2015-04-20 Shiva Chen <shiva0217@gmail.com>
19732 PR rtl-optimization/64916
19733 * cfgcleanup.c (values_equal_p): New function.
19734 (can_replace_by): Use it.
19736 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
19739 * doc/invoke.texi ([-Wnarrowing]): Update.
19741 2015-04-20 Jeff Law <law@redhat.com>
19743 PR tree-optimization/65658
19744 * tree-ssa-threadupdate.c (redirection_block_p): Remove
19745 redundant test for GIMPLE_ASSIGN in last change.
19747 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
19749 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
19750 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
19751 (legitimize_tls_address): Ditto.
19752 (ix86_expand_move): Ditto.
19753 (ix86_expand_binary_operator): Remove reload_in_progress checks.
19754 (ix86_expand_unary_operator): Ditto.
19755 * config/i386/predicates.md (index_register_operand): Ditto.
19757 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
19759 * reorg.c (try_merge_delay_insns): Improve correctness checking
19760 for targets with multiple delay slots.
19762 2015-04-20 Jeff Law <law@redhat.com>
19764 PR tree-optimization/65658
19765 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
19768 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
19770 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
19771 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
19774 2015-04-20 Jakub Jelinek <jakub@redhat.com>
19777 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
19779 2015-04-20 Richard Biener <rguenther@suse.de>
19781 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
19782 * gimple-fold.c (gimple_build_valueize): New function.
19783 (gimple_build): Always use gimple_build_valueize as valueize hook.
19785 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
19788 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
19789 and overwrite variable parts if <= 1/2 the elements are variable.
19791 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
19793 PR rtl-optimization/65805
19794 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
19795 Don't use difference of offset and previous offset if
19796 update_sp_offset is non-zero.
19797 (eliminate_regs_in_insn): Ditto.
19798 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
19799 lra_eliminate_regs_1 call.
19800 * lra-constraints.c (get_equiv_with_elimination): Ditto.
19802 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
19804 * hash-table.h: Remove version of hash_table that stored value_type *.
19805 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
19806 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
19807 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
19808 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
19809 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
19810 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
19811 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19812 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
19813 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
19814 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
19815 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
19816 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
19817 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
19818 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19819 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
19820 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
19822 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19823 Jakub Jelinek <jakub@redhat.com>
19826 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
19827 subsequent SH_NONE operand does not overwrite an existing *special
19829 (adjust_extract): Handle case where a vec_extract operation is
19830 wrapped in a PARALLEL.
19832 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
19835 * config/i386/i386.c (ix86_binds_local_p): Define only if
19836 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
19838 2015-04-17 Jeff Law <law@redhat.com>
19840 PR tree-optimization/47679
19841 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
19842 * tree-ssa-scopedtables.c: New file.
19843 * tree-ssa-scopedtables.h: New file.
19844 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
19845 (const_and_copies): Change name/type.
19846 (record_const_or_copy): Move into tree-ssa-scopedtables.c
19847 (record_const_or_copy_1): Similarly.
19848 (restore_vars_to_original_value): Similarly.
19849 (pass_dominator::execute): Create and destroy const_and_copies table.
19850 (thread_across_edge): Update passing of const_and_copies.
19851 (record_temporary_equivalence): Use method calls rather than
19852 manipulating const_and_copies directly.
19853 (record_equality, cprop_into_successor_phis): Similarly.
19854 (dom_opt_dom_walker::before_dom_children): Similarly.
19855 (dom_opt_dom_walker::after_dom_children): Similarly.
19856 (eliminate_redundant_computations): Similarly.
19857 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
19858 (record_temporary_equivalence): Likewise.
19859 (invalidate_equivalences): Likewise.
19860 (record_temporary_equivalences_from_phis): Update due to type
19861 change of const_and_copies. Use method calls rather than
19862 manipulating the stack directly.
19863 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
19864 (thread_through_normal_block, thread_across_edge): Likewise.
19865 (thread_across_edge): Likewise.
19866 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
19867 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
19869 (identify_jump_threads): Update due to type change of equiv_stack.
19870 (finalize_jump_threads): Delete the equiv_stack when complete.
19872 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
19874 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
19875 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
19876 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
19878 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
19881 * config.gcc: Exit with a comment when we do not have a major version
19882 number for the FreeBSD target.
19884 2015-04-17 Jakub Jelinek <jakub@redhat.com>
19887 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
19888 maybe_allows_mem bitfields.
19889 (maybe_allows_none_start, maybe_allows_none_end,
19890 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
19891 maybe_allows_mem_end): New variables.
19892 (compute_maybe_allows): New function.
19893 (add_constraint): Use it to initialize maybe_allows_reg and
19894 maybe_allows_mem fields.
19895 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
19896 is_address constraints such that those that allow neither mem nor
19897 reg come first, then those that only allow reg but not mem, then
19898 those that only allow mem but not reg, then the rest.
19899 (write_allows_reg_mem_function): New function.
19900 (write_tm_preds_h): Call it.
19901 * stmt.c (parse_output_constraint, parse_input_constraint): Use
19902 the generated insn_extra_constraint_allows_reg_mem function
19903 instead of always setting *allows_reg = true; *allows_mem = true;
19904 for unknown extra constraints.
19906 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
19909 * output.h (default_binds_local_p_3): New.
19910 * varasm.c (default_binds_local_p_3): Make it public. Take an
19911 argument to indicate if common symbol may be local. If common
19912 symbol may be local, treat non-external variable as defined
19914 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
19915 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
19916 * config/i386/i386.c (ix86_binds_local_p): New.
19917 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
19918 ix86_binds_local_p.
19920 2015-04-17 Jakub Jelinek <jakub@redhat.com>
19923 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
19924 trying mem_loc_descriptor on XEXP (rtl, 0).
19926 2015-04-17 Martin Liska <mliska@suse.cz>
19928 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
19929 Release symbol_compare_collection.
19930 * ipa-reference.c: Add TODO that a vector should be released.
19932 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
19935 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
19936 to new AVR-LibC file layout (bug #44574).
19937 (*avrlibc_devicelib): Same.
19938 * config/avr/avr-mcus.def: Adjust comments.
19939 * config/avr/avr.opt (nodevicelib): Adjust help.
19941 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
19943 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
19945 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
19948 * gimplify.c (gimplify_init_constructor): Always emit a
19949 side-effecting constructor.
19951 2015-04-17 Tom de Vries <tom@codesourcery.com>
19953 PR tree-optimization/64950
19954 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
19955 in cfun->curr_properties.
19956 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
19957 if we generate an IFN_VA_ARG.
19958 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
19959 function if PROP_gimple_lva is not set in src function.
19961 2015-04-17 Tom de Vries <tom@codesourcery.com>
19962 Michael Matz <matz@suse.de>
19964 PR tree-optimization/64950
19965 * gimple-iterator.c (update_modified_stmts): Remove static.
19966 * gimple-iterator.h (update_modified_stmts): Declare.
19967 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
19968 (gimplify_va_arg_internal): New function.
19969 (gimplify_va_arg_expr): Use IFN_VA_ARG.
19970 * gimplify.h (gimplify_va_arg_internal): Declare.
19971 * internal-fn.c (expand_VA_ARG): New unreachable function.
19972 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
19973 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
19974 (expand_ifn_va_arg): New function.
19975 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
19976 (pass_stdarg::execute): Call expand_ifn_va_arg.
19977 (pass_data_lower_vaarg): New pass_data.
19978 (pass_lower_vaarg): New gimple_opt_pass.
19979 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
19980 (make_pass_lower_vaarg): New function.
19981 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
19982 properties_required field.
19983 * passes.def (all_passes): Add pass_lower_vaarg.
19984 * tree-pass.h (PROP_gimple_lva): Add define.
19985 (make_pass_lower_vaarg): Declare.
19987 2015-04-17 Tom de Vries <tom@codesourcery.com>
19989 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
19990 * calls.c (call_expr_flags): Same.
19992 2015-04-17 Tom de Vries <tom@codesourcery.com>
19994 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
19995 (pass_stdarg::execute): ... here.
19997 2015-04-17 Tom de Vries <tom@codesourcery.com>
19998 Michael Matz <matz@suse.de>
20000 * tree-cfg.c (make_blocks_1): Factor out of ...
20001 (make_blocks): ... here.
20002 (make_edges_bb): Factor out of ...
20003 (make_edges): ... here.
20004 (gimple_find_sub_bbs): New function.
20005 * tree-cfg.h (gimple_find_sub_bbs): Declare.
20007 2015-04-17 Tom de Vries <tom@codesourcery.com>
20009 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
20011 2015-04-17 Yury Gribov <y.gribov@samsung.com>
20013 * asan.c (set_sanitized_sections): New function.
20014 (section_sanitized_p): Ditto.
20015 (asan_protect_global): Optionally sanitize user-defined
20017 * asan.h (set_sanitized_sections): Declare new function.
20018 * common.opt (fsanitize-sections): New option.
20019 * doc/invoke.texi (-fsanitize-sections): Document new option.
20020 * opts-global.c (handle_common_deferred_options): Handle new
20023 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20026 * dwarf2out.c (loc_list_from_tree): Return NULL
20027 for DEBUG_EXPR_DECL.
20029 2015-04-17 Christian Bruel <christian.bruel@st.com>
20031 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
20034 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20036 * ira-color.c (setup_left_conflict_sizes_p): Do not process
20037 node itself when computing left conflict subnode size.
20039 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
20041 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
20042 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
20043 *fop_<mode>_1_sse using enabled attribute. Use
20044 register_mixssei387nonimm_operand operand 1 predicate. Change
20045 alternative 3 constraints from "x" to "v".
20047 2015-04-16 Richard Biener <rguenther@suse.de>
20049 PR tree-optimization/65774
20050 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
20051 bit-value tracking on.
20053 2015-04-16 Richard Biener <rguenther@suse.de>
20055 PR tree-optimization/64277
20056 * tree-vrp.c (check_array_ref): Fix anti-range handling,
20057 simplify upper bound handling.
20058 (search_for_addr_array): Simplify.
20059 (check_array_bounds): Handle ADDR_EXPRs here.
20060 (check_all_array_refs): Simplify.
20062 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
20064 * config/i386/i386.c (print_reg): Rewrite function.
20066 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20068 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
20069 Invert the condition.
20071 2015-04-16 Renlin Li <renlin.li@arm.com>
20073 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
20074 simplifications for UNSIGNED_FLOAT.
20076 2015-04-16 Nick Clifton <nickc@redhat.com>
20078 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
20080 (enum rl78_cpu_type): New.
20081 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
20082 (umulhi3_shift_virt): Remove m constraint from operand 1.
20083 (umulqihi3_virt): Likewise.
20084 * config/rl78/rl78.c (rl78_option_override): Add code to process
20085 -mcpu and -mmul options.
20086 (rl78_alloc_physical_registers): Add code to handle divhi and
20087 divsi valloc attributes.
20088 (set_origin): Likewise.
20089 * config/rl78/rl78.h (RL78_MUL_G14): Define.
20090 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
20091 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
20093 (ASM_SPEC): Pass -mcpu on to assembler.
20094 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
20095 (mulqi3_rl78): Likewise.
20096 (mulhi3_g13): Likewise.
20097 (mulhi3): Generate the G13 or G14 versions of the insn directly.
20098 (mulsi3): Likewise.
20099 (mulhi3_g14): Add clobbers of AX and BC.
20100 (mulsi3_g14): Likewise.
20101 (mulsi3_g13): Likewise.
20102 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
20103 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
20104 * config/rl78/rl78.opt (mmul): Initialise value to
20106 (mcpu): New option.
20107 (m13, m14, mrl78): New option aliases.
20108 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
20109 (MULTILIB_DIRNAMES): Add g13 and g14.
20110 * doc/invoke.texi: Document -mcpu and -mmul options.
20112 2015-04-16 Richard Biener <rguenther@suse.de>
20114 * tree-ssa-ccp.c (likely_value): See if we have operands that
20115 are marked as never simulate again and return CONSTANT in this
20117 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
20118 not have any operands that will be simulated again as
20119 not being simulated again.
20121 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
20123 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
20124 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
20125 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
20127 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
20129 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
20130 *float<SWI48:mode><MODEF:mode>2_sse.
20131 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
20133 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
20136 2015-04-15 Tom de Vries <tom@codesourcery.com>
20139 * function.c (push_dummy_function): New function.
20140 (init_dummy_function_start): Use push_dummy_function.
20141 (pop_dummy_function): New function. Factored out of ...
20142 (expand_dummy_function_end): ... here.
20143 * function.h (push_dummy_function, pop_dummy_function): Declare.
20144 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
20145 pop_dummy_function.
20146 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
20148 2015-04-15 Jeff Law <law@redhat.com>
20150 PR tree-optimization/47679
20151 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
20152 need for forward declaration in upcoming changes.
20153 (record_conditions, record_edge_info): Likewise.
20155 PR rtl-optimization/42522
20156 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
20157 SIGN_EXTRACT as a whole object rather than simplifying
20160 2015-04-15 Jakub Jelinek <jakub@redhat.com>
20163 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
20164 and GIMPLE_PREDICT use break instead of return true. For
20165 GIMPLE_EH_DISPATCH, compare dispatch region.
20167 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
20169 * doc/extend.texi (__sync Builtins): Simplify some text. Update
20170 details about the implementation. Make clear preference for
20171 __atomic builtins. Reduce possibility of future change.
20173 2015-04-15 Nick Clifton <nickc@redhat.com>
20175 * config/rx/rx.opt (mallow-string-insns): New option.
20176 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
20177 builtin if string instructions are denied.
20178 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
20179 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
20181 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
20182 * config/rx/rx.md (movstr): Enable pattern only if string
20183 instructions are allowed.
20184 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
20185 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
20186 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
20187 (MULTILIB_DIRNAMES): Add no-strings.
20188 * doc/invoke.texi: Document -mno-allow-string-insns.
20190 2015-04-15 Alan Modra <amodra@gmail.com>
20194 PR middle-end/36043
20195 * calls.c (load_register_parameters): Don't load past end of
20196 mem unless suitably aligned.
20198 2015-04-15 Nick Clifton <nickc@redhat.com>
20200 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
20201 decrement instruction as being frame related.
20202 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
20204 If zero extending a function address enclose the operation in
20206 (rl78_preferred_reload_class): New function.
20207 (TARGET_PREFERRED_RELOAD_CLASS): Define.
20208 * config/rl78/rl78.md: Remove useless constraints in expanders.
20209 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
20210 (mulhi3_rl78): Likewise.
20211 (mulhi3_g13): Likewise.
20212 (mulsi3_rl78): Likewise.
20213 (es_addr): Move to before the multiply patterns.
20215 2015-04-15 Alan Modra <amodra@gmail.com>
20217 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
20218 and sequence_stack. Add seq.
20219 (seq_stack): Delete.
20220 * function.c (prepare_function_start): Don't access x_last_insn.
20221 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
20222 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
20223 * emit_rtl.c (start_sequence, push_topmost_sequence,
20224 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
20225 sequence accessors.
20226 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
20227 remove_insn): Likewise. Simplify.
20228 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
20229 and pop_topmost_sequence.
20230 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
20232 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
20234 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
20237 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
20240 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
20242 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
20243 (LEGACY_INT_REGNO_P): Ditto.
20244 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
20245 (ANY_MASK_REG_P): Remove.
20246 (BND_REG_P): Rename from ANY_BND_REG_P.
20247 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
20248 legacy integer registers. Do not handle MMX_REG_P in a special way.
20249 Merge 64byte and 32byte SSE handling.
20251 2015-04-14 Nick Clifton <nickc@redhat.com>
20253 * expr.c (expand_assignment): Force an address offset computation
20254 into a register before changing its mode.
20255 (expand_expr_real_1): Likewise.
20257 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
20259 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
20260 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
20261 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
20262 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
20263 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
20264 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
20265 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
20266 and __aarch64_vget_lane_any.
20268 2015-04-14 Jakub Jelinek <jakub@redhat.com>
20270 PR rtl-optimization/65761
20271 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
20272 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
20274 2015-04-14 Richard Biener <rguenther@suse.de>
20276 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
20277 (graphite_can_represent_scev): Use POINTER_TYPE_P.
20279 2015-04-14 Richard Biener <rguenther@suse.de>
20281 PR tree-optimization/65758
20282 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
20284 (ccp_lattice_meet): Likewise.
20285 (bit_value_unop): Likewise.
20286 (bit_value_binop): Likewise.
20287 (bit_value_assume_aligned): Likewise.
20289 2015-04-14 Christian Bruel <christian.bruel@st.com>
20291 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
20294 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
20296 PR tree-optimization/63387
20297 * match.pd ((x unord x) | (y unord y) -> (x unord y),
20298 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
20300 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
20302 * config/i386/predicates.md (any_QIreg_operand): Rename from
20303 q_regs_operand. Do not process subregs.
20304 (QIreg_operand): Use QI_REGNO_P predicate.
20305 (ext_QIreg_operand): Ditto.
20306 (ext_register_operand): Ditto.
20307 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
20308 (AND splitters): Ditto.
20309 (AND with -65536 splitter): Add SWI48 mode for operand 0.
20310 (AND with -256 splitter): Use any_QIreg_operand predicate and
20311 SWI248 mode for operand 0.
20312 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
20313 mode for operand 0.
20314 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
20316 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
20318 * doc/plugins.texi: Rewrite first introductory paragraph.
20320 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20322 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
20323 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
20325 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20327 * ipa-profie.c (ipa_profile): Check number of parameters
20328 and possible polymorphic call targets before
20331 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
20333 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
20334 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
20336 2015-04-13 Richard Biener <rguenther@suse.de>
20338 PR tree-optimization/65204
20339 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
20340 takens for bit-CCP.
20342 2015-04-13 Richard Biener <rguenther@suse.de>
20345 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
20346 and cond_not_taken_branch_cost to 4 and 2.
20347 (bdver2_cost): Likewise.
20348 (bdver3_cost): Likewise.
20349 (bdver4_cost): Likewise.
20351 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20353 * hash-table.h (hash_table constructor): Add mem stats.
20354 (alloc_entries): Likewise.
20356 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20358 * ipa-cp.c (ipcp_driver): Relase prev_edge.
20359 * passes.c (execute_one_pass): Only add transform if pass has one.
20361 2015-04-12 Joseph Myers <joseph@codesourcery.com>
20363 * config/i386/i386.c (ix86_option_override_internal): Don't set
20364 -fprefetch-loop-arrays if optimizing for size.
20366 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20367 Gerald Pfeifer <gerald@pfeifer.com>
20369 * doc/contrib.texi (Contributors): Add Martin Jambor and
20372 2015-04-12 Jakub Jelinek <jakub@redhat.com>
20374 * BASE-VER: Set to 6.0.0.
20376 PR tree-optimization/65747
20377 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
20378 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
20380 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
20382 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
20383 sentence. Improve grammar.
20385 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
20387 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
20389 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
20392 * ipa-inline-transform.c (speculation_removed): Remove static var.
20393 (check_speculations): New function.
20394 (clone_inlined_nodes): Do not check spculations.
20395 (inline_call): Call check_speculations.
20396 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
20397 consider non-invariants.
20399 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
20400 Martin Liska <mliska@suse.cz>
20403 * ipa-icf.c (sem_item::compare_cgraph_references): function and
20404 variable can not match.
20405 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
20406 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
20408 2015-04-11 Jakub Jelinek <jakub@redhat.com>
20410 PR tree-optimization/65735
20411 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
20412 Remove visited_phis argument, add visited_bbs, avoid recursing into the
20413 same bb rather than just into the same phi node.
20414 (thread_through_normal_block): Adjust caller.
20416 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
20418 * doc/contrib.texi (Contributors): Add Ira Rosen.
20420 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
20422 * gcov.c (find_source): Fix miswording in error message.
20423 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
20424 (ix86_expand_sse_comi_round): Fix typo in error message.
20426 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
20428 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
20430 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
20432 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
20434 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
20437 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
20438 Print bad_spills_num and insn_pseudos_num.
20440 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20443 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
20444 when creating +1 values for SImode.
20446 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
20449 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
20452 2015-04-10 Jakub Jelinek <jakub@redhat.com>
20453 Iain Sandoe <iain@codesourcery.com>
20456 * configure: Regenerate.
20458 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
20461 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
20463 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
20465 * doc/contrib.texi (Contributors): Add John Marino.
20467 2015-04-09 Jakub Jelinek <jakub@redhat.com>
20469 PR tree-optimization/65709
20470 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
20471 TREE_TYPE (TREE_TYPE (t)).
20473 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
20476 * lra-int.h (lra_bad_spill_regno_start): New.
20477 * lra.c (lra_bad_spill_regno_start): New.
20478 (lra): Set up lra_bad_spill_regno_start. Set up
20479 lra_constraint_new_regno_start unconditionally.
20480 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
20483 2015-04-09 Marek Polacek <polacek@redhat.com>
20484 Jakub Jelinek <jakub@redhat.com>
20486 PR middle-end/65554
20487 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
20488 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
20491 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
20493 PR rtl-optimization/65693
20494 * combine.c (is_parallel_of_n_reg_sets): Move outside of
20497 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
20500 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
20501 device specs file if "device-specs%s" didn't resolve to a path.
20503 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
20506 * config/i386/i386.c (fixup_modeless_constant): New.
20507 (ix86_expand_args_builtin): Fixup modeless constant operand.
20508 (ix86_expand_round_builtin): Ditto.
20509 (ix86_expand_special_args_builtin): Ditto.
20510 (ix86_expand_builtin): Ditto.
20512 2015-04-09 Jakub Jelinek <jakub@redhat.com>
20515 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
20516 any pow2 integer in between 2 and 0x80000000U inclusive.
20518 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
20520 PR rtl-optimization/65693
20521 * combine.c (is_parallel_of_n_reg_sets): Change first argument
20522 from an rtx_insn * to an rtx.
20523 (try_combine): Adjust both callers. Use it once more.
20525 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20527 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
20528 (chkp_make_static_const_bounds): Search existing
20529 symbol by assembler name. Use make_decl_one_only.
20530 (chkp_get_zero_bounds_var): Remove node search which
20531 is now performed in chkp_make_static_const_bounds.
20532 (chkp_get_none_bounds_var): Likewise.
20534 2015-04-08 Michael Witten <mfwitten@gmail.com>
20536 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
20539 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20541 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
20543 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
20545 * doc/extend.texi (__sync Builtins): Fix grammar.
20547 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20549 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
20551 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20553 * varasm.c (emit_local): Move definition of align.
20555 2015-04-08 Julian Brown <julian@codesourcery.com>
20557 * config/nvptx/mkoffload.c (process): Support variable mapping.
20559 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
20561 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
20563 (alpha_write_one_linkage): Correct typo.
20565 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20567 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
20569 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
20571 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
20573 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20575 * tree-chkp.h (chkp_insert_retbnd_call): New.
20576 * tree-chkp.c (chkp_insert_retbnd_call): New.
20577 * ipa-split.c (insert_bndret_call_after): Remove.
20578 (split_function): Use chkp_insert_retbnd_call.
20579 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
20580 bounds for instrumented functions.
20582 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
20585 * calls.c (initialize_argument_information): When producing tail
20586 call also turn SSA_NAMES passed by references to original PARM_DECLs
20588 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
20591 * lra-remat.c (do_remat): Process input and non-input insn
20592 registers separately.
20594 2015-04-07 Jakub Jelinek <jakub@redhat.com>
20597 * valtrack.c (debug_lowpart_subreg): New function.
20598 (dead_debug_insert_temp): Use it.
20600 PR middle-end/65680
20601 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
20602 into signed HOST_WIDE_INT the same as negative bit_offset.
20604 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
20606 * ipa-comdats.c (ipa_comdats): Visit all thunks
20607 to set proper comdat group.
20609 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20612 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
20613 on constants for NEON VSTRUCT modes.
20615 2015-04-07 Jakub Jelinek <jakub@redhat.com>
20616 Iain Sandoe <iain@codesourcery.com>
20619 * configure: Regenerate.
20621 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20624 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
20625 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
20626 that LFD is used to load double constants instead of LFS. Add
20627 defaults for all costs structures. Add comments for missing
20628 initialization fields.
20629 (size32_cost): Likewise.
20630 (size64_cost): Likewise.
20631 (rs64a_cost): Likewise.
20632 (mpccore_cost): Likewise.
20633 (ppc403_cost): Likewise.
20634 (ppc405_cost): Likewise.
20635 (ppc440_cost): Likewise.
20636 (ppc476_cost): Likewise.
20637 (ppc601_cost): Likewise.
20638 (ppc603_cost): Likewise.
20639 (ppc604_cost): Likewise.
20640 (ppc604e_cost): Likewise.
20641 (ppc620_cost): Likewise.
20642 (ppc630_cost): Likewise.
20643 (ppccell_cost): Likewise.
20644 (ppc750_cost): Likewise.
20645 (ppc7450_cost): Likewise.
20646 (ppc8540_cost): Likewise.
20647 (ppce300c2c3_cost): Likewise.
20648 (ppce500mc_cost): Likewise.
20649 (ppce500mc64_cost): Likewise.
20650 (ppce5500_cost): Likewise.
20651 (ppce6500_cost): Likewise.
20652 (titan_cost): Likewise.
20653 (power4_cost): Likewise.
20654 (power6_cost): Likewise.
20655 (power7_cost): Likewise.
20656 (power8_cost): Likewise.
20657 (ppca2_cost): Likewise.
20658 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
20660 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
20661 instead of XXLOR to copy SFmode to clear out dirty bits created
20662 when SFmode denormals are generated.
20663 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
20664 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
20666 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
20668 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
20669 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
20670 * config/aarch64/aarch64-tune.md: Regenerate.
20672 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
20674 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
20675 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
20676 * config/arm/arm-cores.def (exynos-m1): New core.
20677 * config/arm/arm-tune.md: Regenerate.
20678 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
20679 * config/arm/bpabi.h: Likewise.
20681 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
20683 * ipa-cp (set_single_call_flag): Remove too
20684 restrictive assert.
20686 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
20688 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
20689 GOMP_offload_unregister from the destructor.
20691 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
20693 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
20694 flags for instrumentation thunk.
20695 (chkp_produce_thunks): Likewise.
20697 2015-04-05 Martin Liska <mliska@suse.cz>
20700 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
20701 has computed data structure.
20702 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
20704 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
20706 * invoke.texi (inline-unit-growth): Increase growth to 20%
20707 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
20709 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
20712 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
20714 (lra_rematerialization_iter): New.
20715 * lra.c (lra): Initialize lra_rematerialization_iter.
20716 Stop updating lra_constraint_new_regno_start after switching of
20717 inheritance and rematerialization.
20718 * lra-remat.c (lra_rematerialization_iter): New.
20719 (lra_remat): Add printing pass iteration. Do rematerialization
20720 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
20722 2015-04-04 Richard Biener <rguenther@suse.de>
20724 PR tree-optimization/64909
20725 PR tree-optimization/65660
20726 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
20727 to take a cost vector for scalar iteration cost.
20728 (vect_get_single_scalar_iteration_cost): Likewise.
20729 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
20730 Compute the scalar iteration cost into a cost vector.
20731 (vect_get_known_peeling_cost): Use the scalar cost vector to
20732 account for the cost of the peeled iterations.
20733 (vect_estimate_min_profitable_iters): Likewise.
20734 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20737 2015-04-04 Alan Modra <amodra@gmail.com>
20741 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
20742 0.0 constant unless TARGET_VSX.
20743 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
20746 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
20749 * ipa-inline-transform.c (inline_call): Skip sanity check to work
20752 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
20755 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
20756 speculative indirect edges to avoid ordering issue.
20758 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
20761 * ipa-inline.c (edge_badness): Add combined size to the denominator.
20763 2015-04-03 Jakub Jelinek <jakub@redhat.com>
20765 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
20766 TYPE_ARTIFICIAL on the .omp_data* types.
20768 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20770 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
20771 instrumentation thunks.
20773 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20775 * config/i386/i386.c (ix86_expand_call): Avoid nested
20776 PARALLEL in returned call value.
20778 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20780 * lto-cgraph.c (input_cgraph_1): Always link instrumented
20781 assembler name with original one.
20783 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
20785 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
20787 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
20789 Revert parts of r216820.
20790 * config/i386/i386.md (movqi_internal): Correct type calculation
20791 for alternatives 3 and 5.
20793 2015-04-02 Jakub Jelinek <jakub@redhat.com>
20795 PR preprocessor/61977
20796 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
20797 predefine __vector/__bool/__pixel macros nor context sensitive
20798 macros for CLK_ASM.
20799 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
20801 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
20803 * config/pa/pa.c (pa_output_move_double): Directly handle register
20804 indexed memory operand. Simplify handling of scaled register indexed
20807 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20810 * config/i386/linux-common.h (MPX_SPEC): New.
20811 (CHKP_SPEC): Add MPX_SPEC.
20812 * doc/invoke.texi (-fcheck-pointer-boudns): Document
20813 possible issues with '-z bndplt' support in linker.
20815 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
20817 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
20818 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
20819 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
20820 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
20821 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
20823 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
20825 * config/i386/sync.md (UNSPEC_MOVA): Remove.
20826 (atomic_load<mode>): Change operand 0 predicate to
20827 nonimmediate_operand and fix up the destination when needed.
20829 (atomic_loaddi_fpu): Use UNSPEC_LDA.
20830 (atomic_store<mode>): Change operand 1 predicate to
20831 nonimmendate_operand and move the source to register when needed.
20833 (atomic_store<mode>_1): Use UNSPEC_STA.
20834 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
20835 Fix moves from memory operand. Use UNSPEC_STA.
20837 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
20839 * expmed.c (strict_volatile_bitfield_p): Check that the access will
20840 not cross a MODESIZE boundary.
20841 (store_bit_field, extract_bit_field): Added assertions in the
20842 strict volatile bitfields code path.
20844 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
20847 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
20848 Increase args array size by one to avoid buffer overflow.
20850 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
20852 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
20854 * ipa-inline.c (edge_badness): Add wrapper penalty.
20855 (sum_callers): Move up.
20856 (inline_small_functions): Set single_caller.
20857 * ipa-inline.h (inline_summary): Add single_caller.
20858 * ipa-split.c (split_function): Set split_part.
20859 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
20860 * cgraph.h (cgraph_node): Add split_part.
20862 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
20865 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
20866 Do not split operands 0 and operands 2 to halfmode.
20867 (atomic_compare_and_swap<mode>): Update for
20868 atomic_compare_and_swap<dwi>_doubleword changes.
20870 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
20872 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
20873 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
20874 no caching is done.
20876 2015-03-31 Martin Liska <mliska@suse.cz>
20879 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
20880 has already filled up function summary.
20881 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
20883 2015-03-31 Richard Biener <rguenther@suse.de>
20885 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
20888 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
20890 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
20892 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
20893 (s390_asm_output_function_label): Adapt to new signature of
20894 s390_function_num_hotpatch_hw
20895 Optimise the code generating assembler output.
20896 Add comments to assembler file.
20898 2015-03-31 Richard Biener <rguenther@suse.de>
20900 PR middle-end/65626
20901 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
20902 of the noreturn call so it is last and cleanup_control_flow_bb
20903 can do the CFG part.
20905 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
20908 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
20909 same_comdat_group for external symbols.
20910 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
20911 infinite same_comdat_group traversal loop.
20913 2015-03-31 Jakub Jelinek <jakub@redhat.com>
20916 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
20917 automatically to $headers.
20919 2015-03-30 Jakub Jelinek <jakub@redhat.com>
20922 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
20923 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
20925 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
20927 * ipa-prop.c (param_type_may_change_p): Likewise.
20928 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
20929 (remove_unused_scope_block_p): Add in_ctor_dtor_block
20930 argument. Before inlining, preserve
20931 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
20932 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
20934 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
20936 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
20939 * ipa-inline.c (edge_badness): Base denominator on callee's
20942 2015-03-27 Martin Jambor <mjambor@suse.cz>
20945 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
20946 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
20947 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
20948 node_calling_single_call.
20949 * ipa-cp.c (count_callers): New function.
20950 (set_single_call_flag): Likewise.
20951 (initialize_node_lattices): Count callers and set single_flag_call if
20953 (incorporate_penalties): New function.
20954 (good_cloning_opportunity_p): Use it, dump new flags.
20955 (propagate_constants_topo): Set node_within_scc flag if appropriate.
20956 * doc/invoke.texi (ipa-cp-recursion-penalty,
20957 ipa-cp-single-call-pentalty): Document.
20959 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
20962 * symtab.c (symtab_node::get_partitioning_class): Register vars
20964 * varpool.c (symbol_table::output_variables) Do not assemble unefined
20965 decls for non-symbols.
20967 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
20970 * output.h (default_binds_local_p_2): New.
20971 * varasm.c (default_binds_local_p_2): Renamed to ...
20972 (default_binds_local_p_3): This. Don't return true on protected
20973 data symbol if protected data may be external.
20974 (default_binds_local_p): Use default_binds_local_p_3.
20975 (default_binds_local_p_1): Likewise.
20976 (default_binds_local_p_2): New.
20977 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
20978 default_binds_local_p_2 if TARGET_MACHO is undefined.
20980 2015-03-27 Jakub Jelinek <jakub@redhat.com>
20983 * config/i386/i386.c (legitimize_pic_address): If base
20984 is SYMBOL_REF or LABEL_REF using %rip addressing, force
20985 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
20987 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
20990 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
20993 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
20996 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
20997 of optimized out indirect call.
20998 (redirect_to_unreachable): Always build symbol table node for
20999 BUILT_IN_UNREACHABLE
21001 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
21004 * ira-costs.c (record_reg_classes): Process all constraint string
21007 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
21009 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
21013 * config/c6x/constraints.md (S3): New constraint.
21014 * config/c6x/c6x.md (real_jump): Use it.
21016 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21018 PR middle-end/65595
21019 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
21020 do redirection if the call is not optimized out.
21022 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
21025 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
21026 (fchkp-check-incomplete-type): Add LTO.
21027 (fchkp-zero-input-bounds-for-main): Likewise.
21028 (fchkp-first-field-has-own-bounds): Likewise.
21029 (fchkp-narrow-bounds): Likewise.
21030 (fchkp-narrow-to-innermost-array): Likewise.
21031 (fchkp-use-static-bounds): Likewise.
21032 (fchkp-use-static-const-bounds): Likewise.
21033 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21035 2015-03-27 Marek Polacek <polacek@redhat.com>
21037 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
21039 2015-03-27 Marek Polacek <polacek@redhat.com>
21042 * ubsan.c (ubsan_create_edge): New function.
21043 (instrument_bool_enum_load): Call it.
21044 (instrument_nonnull_arg): Likewise.
21045 (instrument_nonnull_return): Likewise.
21046 (instrument_object_size): Likewise.
21048 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21050 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
21053 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21056 * lto-streamer.h (class lto_location_cache): New.
21057 (struct data_in): Add location_cache.
21058 (lto_input_location): Update prototype.
21059 (stream_input_location_now): New.
21060 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
21061 pointer to location.
21062 (stream_input_location): Update.
21063 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
21064 (warn_odr): Apply location cache before warning.
21065 (lto_input_location): Update prototype.
21066 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
21067 Use stream_input_location_now.
21068 * lto-streamer-in.c (lto_location_cache::current_cache): New static
21070 (lto_location_cache::cmp_loc): New function.
21071 (lto_location_cache::apply_location_cache): New function.
21072 (lto_location_cache::accept_location_cache): New function.
21073 (lto_location_cache::revert_location_cache): New function.
21074 (lto_location_cache::input_location): New function.
21075 (lto_input_location): Do location caching.
21076 (stream_input_location_now): New function.
21077 (input_eh_region, input_struct_function_base): Use
21078 stream_input_location_now.
21079 (lto_data_in_create): use new.
21080 (lto_data_in_delete): Use delete.
21081 * tree-streamer-in.c (unpack_ts_block_value_fields,
21082 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
21083 lto_input_ts_exp_tree_pointers): Update for cached location api.
21085 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21088 * passes.def: Add pass_nothrow.
21089 * ipa-pure-const.c: (pass_data_nothrow): New.
21090 (pass_nothrow): New.
21091 (pass_nothrow::execute): New.
21092 (make_pass_nothrow): New.
21093 * tree-pass.h (make_pass_nothrow): Declare.
21095 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21097 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
21098 edge to change by speculation resolution or redirection.
21099 (edge_set_predicate): Likewise.
21100 (inline_summary_t::duplicate): Likewise.
21101 (remap_edge_summaries): Likewise.
21103 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21105 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
21107 (can_inline_edge_p): Relax option matching for always inline functions.
21109 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
21112 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
21113 Check operand 4 and operand 0 for equality.
21114 (avx512f_vextract<shuffletype>32x4_1_maskm):
21115 Check operand 6 and operand 0 for equality.
21116 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
21118 (vec_extract_hi_<mode>_maskm): Ditto.
21120 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21122 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
21123 dead calls back to live.
21124 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
21126 (cgraph_node::verify_node): ... here; verify only callee edges,
21128 * cif-code.def (CILK_SPAWN): New code.
21130 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21132 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
21133 (edge_set_predicate): Use it to mark unreachable edges.
21134 (inline_summary_t::duplicate): Remove unnecesary code.
21135 (remap_edge_summaries): Likewise.
21136 (dump_inline_summary): Report contains_cilk_spawn.
21137 (compute_inline_parameters): Compute contains_cilk_spawn.
21138 (inline_read_section, inline_write_summary): Stream
21139 contains_cilk_spawn.
21140 * ipa-inline.c (can_inline_edge_p): Do not touch
21141 DECL_STRUCT_FUNCTION that may not be available;
21142 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
21143 remove check for callee_fun->can_throw_non_call_exceptions and
21144 replace it by optimization attribute check; check for flag_exceptions.
21145 * ipa-inline-transform.c (inline_call): Maintain
21146 DECL_FUNCTION_PERSONALITY
21147 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
21149 2015-03-26 Jakub Jelinek <jakub@redhat.com>
21151 PR tree-optimization/65551
21152 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
21153 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
21155 2015-03-26 Richard Biener <rguenther@suse.de>
21157 PR middle-end/65555
21158 * tree-cfg.c (verify_gimple_call): Do not require a call to
21159 have no LHS if it wasn't recognized as control altering yet.
21161 2015-03-26 Jakub Jelinek <jakub@redhat.com>
21163 PR tree-optimization/64715
21164 * passes.def: Add another instance of pass_object_sizes before ccp1.
21165 * tree-object-size.c (pass_object_sizes::execute): In
21166 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
21167 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
21168 __bos result and the computed constant. Remove redundant
21169 checks, obsoleted by gimple_call_builtin_p test.
21171 * var-tracking.c (variable_tracking_main_1): Don't track
21172 variables for targetm.no_register_allocation targets.
21174 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
21176 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
21177 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
21179 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
21182 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
21183 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
21184 0.0 is correctly setup.
21185 (extenddftf2_internal): Likewise.
21187 2015-03-25 Sebastian Pop <s.pop@samsung.com>
21189 PR tree-optimization/65177
21190 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
21192 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
21193 edges not adjacent on the path to the original code.
21195 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
21198 * doc/install.texi (Building a native compiler): Document new
21199 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
21200 configuration assumes that the host supports the linker plugin.
21202 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
21205 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
21206 chain for generated call.
21208 2015-03-25 Richard Biener <rguenther@suse.de>
21210 * passes.c (pass_manager::execute_early_local_passes): Guard
21211 execution of pass_chkp_instrumentation_passes with
21212 flag_check_pointer_bounds.
21213 (pass_chkp_instrumentation_passes::gate): Likewise.
21215 2015-03-25 Martin Liska <mliska@suse.cz>
21217 PR tree-optimization/65538
21218 * symbol-summary.h (function_summary::~function_summary):
21219 Relese memory for allocated summaries.
21220 (function_summary::release): New function.
21222 2015-03-25 Jakub Jelinek <jakub@redhat.com>
21225 * lto-streamer-out.c (DFS::worklist): New struct.
21226 (DFS::worklist_vec): New data member.
21227 (DFS::next_dfs_num): Remove.
21228 (DFS::DFS): Rewritten using worklist instead of recursion,
21229 using most of code from DFS::DFS_write_tree.
21230 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
21231 pass it to DFS_write_tree calls.
21232 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
21233 quick initial checks push it into worklist_vec and return.
21235 2015-03-25 Richard Biener <rguenther@suse.de>
21237 PR middle-end/65519
21238 * genmatch.c (expr::gen_transform): Re-write to avoid
21239 using gimple_build.
21241 2015-03-25 Bin Cheng <bin.cheng@arm.com>
21243 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
21245 2015-03-25 Bin Cheng <bin.cheng@arm.com>
21247 * config/arm/arm.opt (print_tune_info): New option.
21248 * config/arm/arm.c (arm_print_tune_info): New function.
21249 (arm_file_start): Call arm_print_tune_info.
21250 * config/arm/arm-protos.h (struct tune_params): Add comment.
21251 * doc/invoke.texi (@item -mprint-tune-info): New item.
21252 (-mtune): mention it in ARM Option Summary.
21254 2015-03-25 DJ Delorie <dj@redhat.com>
21256 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
21259 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
21260 Martin Liska <mliska@suse.cz>
21262 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
21263 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
21264 (sem_item::add_type): New function.
21265 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
21266 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
21267 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
21268 (sem_function::equals_wpa): Fix typo.
21269 * ipa-icf.h (sem_item::add_type): New function.
21270 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
21273 2015-03-24 Jakub Jelinek <jakub@redhat.com>
21275 PR tree-optimization/65533
21276 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
21277 with swapped operands, call vect_free_slp_tree on
21278 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
21281 2015-03-24 Richard Biener <rguenther@suse.de>
21283 PR middle-end/65517
21284 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
21285 for fixup if necessary.
21287 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
21289 * doc/extend.texi (Function Attributes): Add @cindex entries
21290 for all attributes and regularize their format. Delete text
21291 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
21292 information about "eightbit_data", "tiny_data", and "model"
21293 variable attributes to the Variable Attributes section. Fix
21294 some obvious typos and copy-editing issues.
21295 (Variable Attributes, Type Attributes): Likewise add/fix
21296 @cindex entries for all attributes.
21298 2015-03-23 Jakub Jelinek <jakub@redhat.com>
21301 * tree-chkp.c (chkp_build_returned_bound): Ignore
21302 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
21304 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
21307 * config/sh/predicates.md (simple_mem_operand,
21308 displacement_mem_operand): Add test for reg.
21309 (short_displacement_mem_operand): Test for displacement_mem_operand
21310 before invoking sh_disp_addr_displacement.
21311 * config/sh/constraints.md (Sdd, Sra): Simplify.
21312 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
21313 Remove redundant displacement_mem_operand tests.
21315 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
21318 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
21319 the same -mmcu=MCU more than once.
21321 2015-03-23 Jakub Jelinek <jakub@redhat.com>
21324 * ipa-devirt.c: Remove duplicate demangle.h include.
21327 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
21329 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
21330 REG_POINTER on *destptr after adjusting it for prologue size.
21333 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
21334 ultimate_alias_target ()->order ints instead of
21335 ultimate_alias_target () pointers.
21337 2015-03-23 Richard Biener <rguenther@suse.de>
21339 PR tree-optimization/65518
21340 * tree-vect-stmts.c (vectorizable_load): Reject single-element
21341 interleaving cases we generate absymal code for.
21343 2015-03-23 Richard Biener <rguenther@suse.de>
21345 PR tree-optimization/65494
21346 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
21348 (vect_analyze_slp_instance): But do that here, always and once.
21350 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21352 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
21353 adding T or multiplying by T+1 and subracting T.
21355 2015-03-22 Jeff Law <law@redhat.com>
21357 PR rtl-optimization/64317
21358 * Makefile.in (OBJS): Add gcse-common.c
21359 * gcse.c: Include gcse-common.h
21360 (struct modify_pair_s): Move structure definition to gcse-common.h
21361 (compute_transp): Move function to gcse-common.c.
21362 (canon_list_insert): Similarly.
21363 (record_last_mem_set_info): Break out some code and put it into
21364 gcse-common.c. Call into the new common code.
21365 (compute_local_properties): Pass additional arguments to compute_transp.
21366 * postreload-gcse.c: Include gcse-common.h and df.h
21367 (modify_mem_list_set, blocks_with_calls): New variables.
21368 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
21369 (get_bb_avail_insn): Pass in the expression index too.
21370 (alloc_mem): Allocate memory for the new bitmaps and lists.
21371 (free_mem): Free memory for the new bitmaps and lists.
21372 (insert_expr_in_table): Record a bitmap index for each entry we
21374 (record_last_mem_set_info): Call into common code in gcse-common.c.
21375 (get_bb_avail_insn): If no available insn was found in the requested
21376 BB. If BB has a single predecessor, see if the expression is
21377 transparent in BB and available in that single predecessor.
21378 (compute_expr_transp): New wrapper for compute_transp.
21379 (eliminate_partially_redundant_load): Pass expression's bitmap_index
21380 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
21381 (gcse_after_reload_main): If there are elements in the hash table,
21382 then compute transparency for all the elements in the hash table.
21383 * gcse-common.h: New file.
21384 * gcse-common.c: New file.
21386 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
21388 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
21390 (System Headers): Likewise.
21392 (Traditional macros): Likewise.
21393 (Invocation): Likewise.
21394 (Option Index): Likewise.
21395 * doc/cppopts.texi (-M): Likewise.
21396 (-finput-charset): Likewise.
21397 (--help): Likewise.
21398 * doc.invoke.texi (AVR Options): Likewise.
21399 (V850 Options): Likewise.
21401 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
21404 * ipa-devirt.c: Include demangle.h
21405 (odr_type_d): Add field rtti_broken.
21406 (odr_subtypes_equivalent_p): Do not require name to match.
21407 (compare_virtual_tables): Fix typo; if type already has ODR violation,
21408 bypass the tests; be ready for function referneces in vtables that are
21409 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
21410 (warn_odr): Give up for nameless types.
21411 (warn_types_mismatch): Report mismatch in mangled names;
21412 report mismatch in anonymous namespaces; look into component types to
21413 give useful error; report when mismatch is dragged in from other ODR
21415 (odr_types_equivalent_p): Match types for being polymorphic; avoid
21416 duplicated diagnostics.
21417 (add_type_duplicate): Reorder checks so more informative ones come
21418 first; fix typo; do not output "the extra base is defined here" when
21420 (BINFO_N_BASE_BINFOS): Relax sanity check.
21422 2015-03-22 Martin Liska <mliska@suse.cz>
21423 Jakub Jelinek <jakub@redhat.com>
21425 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
21426 masks that can potentially include a builtin.
21427 (ix86_add_new_builtins): Introduce fast filter for isa values
21428 that cannot trigger builtin inclusion.
21430 2015-03-22 Martin Liska <mliska@suse.cz>
21432 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
21433 (sem_item::update_hash_by_local_refs): Likewise.
21434 (sem_variable::get_hash): Empty line is fixed.
21435 (sem_item_optimizer::execute): Include adding of hash references.
21436 (sem_item_optimizer::update_hash_by_addr_refs): New function.
21437 (sem_item_optimizer::build_hash_based_classes): Use local hash.
21438 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
21439 (sem_item::update_hash_by_local_refs): Likewise.
21441 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21444 * ipa-comdats.c (enqueue_references): Walk through thunks.
21445 (ipa_comdats): Likewise.
21446 (set_comdat_group_1): New function.
21448 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21451 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
21454 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
21455 Gerald Pfeifer <gerald@pfeifer.com>
21457 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
21459 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
21460 Sandra Loosemore <sandra@codesourcery.com>
21462 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
21463 function parameter declaration.
21464 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
21465 Update arguments to nios2_adjust_call_address().
21466 (sibcall_internal): Rename from *sibcall.
21467 (sibcall_value_internal): Rename from *sibcall_value.
21468 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
21469 (nios2_large_got_address): Add target temp reg parameter.
21470 (nios2_got_address): Adjust call to nios2_large_got_address, add
21471 force_reg around it.
21472 (nios2_load_pic_address): Add target temp reg parameter, replace call
21473 to nios2_got_address with corresponding code.
21474 (nios2_legitimize_constant_address): Update call to
21475 nios2_load_pic_address.
21476 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
21477 to use temp reg for PIC loading purposes.
21478 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
21479 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
21480 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
21482 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21484 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
21485 usage of "the @option{...}".
21486 (-Wopenmp-simd): Likewise.
21487 (-fsanitize-recover): Likewise.
21488 (-fsanitize-undefined-trap-on-error): Likewise.
21490 (tracer-dynamic-coverage-feedback): Likewise.
21491 (reorder-block-duplicate-feedback): Likewise.
21492 (loop-unroll-jam-size): Likewise.
21495 (-mabs=legacy): Likewise.
21496 (-mupper-regs-df): Likewise.
21497 (-mupper-regs-sf): Likewise.
21498 (-mpointers-to-nested-functions): Likewise.
21500 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21502 * doc/extend.texi (Cilk Plus Builtins): Add markup.
21504 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21506 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
21507 additional index entries and cross-references.
21508 (-fchkp-check-incomplete-type): Likewise.
21509 (-fchkp-first-field-has-own-bounds): Likewise.
21510 (-fchkp-narrow-to-innermost-array): Likewise.
21511 (-fchkp-use-fast-string-functions): Likewise.
21512 (-fchkp-use-nochk-string-functions): Likewise.
21513 (-fchkp-use-static-const-bounds): Likewise.
21514 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21515 (-fchkp-instrument-marked-only): Likewise.
21516 (-fchkp-use-wrappers): Likewise.
21517 (-static-libmpx): Likewise.
21518 (-static-libmpxwrappers): Likewise.
21519 * doc/extend.texi (bnd_legacy): Likewise.
21520 (bnd_instrument): Likewise.
21521 (bnd_variable_size): Likewise.
21522 (Pointer Bounds Checker builtins): Likewise.
21524 2015-03-21 Tom de Vries <tom@codesourcery.com>
21526 PR tree-optimization/65458
21527 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
21528 * cgraph.h (cgraph_node): Add parallelized_function field.
21529 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
21530 (input_overwrite_node): Read parallelized_function field.
21531 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
21532 parallelized_function on cgraph_node for child_fn.
21533 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
21534 Remove include of gt-tree-parloops.h.
21535 (parallelized_functions): Remove static variable.
21536 (parallelized_function_p): Rewrite using parallelized_function field of
21538 (create_loop_fn): Remove adding to parallelized_functions.
21539 * Makefile.in (GTFILES): Remove tree-parloops.c
21541 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
21543 PR rtl-optimization/64366
21544 * lra.c (lra_update_insn_regno_info): Consider regs in
21545 CALL_INSN_FUNCTION_USAGE memory.
21547 2015-03-20 Richard Biener <rguenther@suse.de>
21549 PR middle-end/64715
21550 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
21551 for type comparison and gcc_checking_assert.
21552 (chrec_fold_plus_poly_poly): Likewise.
21553 (chrec_fold_multiply_poly_poly): Likewise.
21554 (chrec_convert_1): Likewise.
21555 * gimplify.c (gimplify_expr): Remove premature folding of
21556 &X + CST to &MEM[&X, CST].
21558 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21560 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
21562 (ipa_inline): Recompute inline_failed codes.
21563 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21564 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
21567 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
21569 PR rtl-optimization/60851
21570 * recog.c (constrain_operands): Accept a pseudo register before reload
21571 for LRA enabled targets.
21573 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
21576 * config/rs6000/predicates.md (easy_fp_constant): Remove special
21577 -ffast-math handling that kept non-0 constants live in the RTL
21578 until reload. Remove logic testing the number of instructions it
21579 took to create a constant in a GPR that was never used, due to a
21580 test for soft-float earlier.
21581 (memory_fp_constant): Delete, no longer used.
21583 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
21584 alternatives for loading non-0 constants into GPRs for hard
21585 floating point that is no longer needed due to changes in
21586 easy_fp_constant. Add support for loading 0.0 into GPRs.
21587 (mov<mode>_hardfloat32): Likewise.
21588 (mov<mode>_hardfloat64): Likewise.
21589 (mov<mode>_64bit_dm): Likewise.
21590 (movtd_64bit_nodm): Likewise.
21591 (pre-reload move FP constant define_split): Delete define_split,
21592 since it is no longer used.
21593 (extenddftf2_internal): Remove GHF constraints that are not valid
21596 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
21598 PR rtl-optimization/63491
21599 * lra-constraints.c (check_and_process_move): Use src instead of
21600 sreg. Remove some dead code.
21602 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
21605 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
21606 (sem_variable::merge): Likewise.
21608 2015-03-19 Martin Liska <mliska@suse.cz>
21611 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
21612 all fields of cgraph_thunk_info.
21614 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
21616 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
21617 clone instrumented thunks.
21619 2015-03-19 Richard Biener <rguenther@suse.de>
21622 2015-03-10 Richard Biener <rguenther@suse.de>
21624 PR middle-end/63155
21625 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
21626 * tree-ssa-coalesce.c: Include timevar.h.
21627 (attempt_coalesce): Handle graph being NULL.
21628 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
21629 Split out abnormal coalescing to ...
21630 (perform_abnormal_coalescing): ... this function.
21631 (coalesce_ssa_name): Perform abnormal coalescing without computing
21633 (verify_ssa_coalescing_worker): New function.
21634 (verify_ssa_coalescing): Likewise.
21636 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
21637 Jakub Jelinek <jakub@redhat.com>
21640 * tsan.c (instrument_gimple): Clear tail call flag on
21643 2015-03-19 Jakub Jelinek <jakub@redhat.com>
21646 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
21647 call in the return bb.
21648 (find_split_points): Add RETURN_BB argument, don't call
21650 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
21651 if true append TSAN_FUNC_EXIT internal call after the call to
21652 the split off function.
21653 (execute_split_functions): Call find_return_bb here.
21654 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
21655 Adjust find_split_points and split_function calls.
21657 2015-03-18 DJ Delorie <dj@redhat.com>
21659 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
21660 (iorqi3_virt): Likewise.
21662 2015-03-18 Tom de Vries <tom@codesourcery.com>
21664 * tree-parloops.c (parallelize_loops): Make static.
21665 * tree-parloops.h (parallelize_loops): Remove extern declaration.
21667 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
21669 PR middle-end/64491
21671 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
21673 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
21674 condition would be removed due to undefined behaviour.
21676 2015-03-18 Martin Liska <mliska@suse.cz>
21679 * cgraph.c (cgraph_node::get_create): Remove unnecessary
21680 xstrdup_for_dump wrapper.
21681 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
21683 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
21684 with xstrdup_for_dump.
21685 (sem_variable::equals): Likewise.
21686 (sem_item_optimizer::read_section): Use symtab_node::name instead of
21688 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
21689 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
21690 symtab_node::asm_name with xstrdup_for_dump.
21691 (congruence_class::dump): Use symtab_node::name instead of
21693 * ipa-icf.h (symtab_node::name): Remove.
21694 (symtab_node::asm_name): Likewise.
21696 2015-03-18 Jakub Jelinek <jakub@redhat.com>
21698 PR tree-optimization/65450
21699 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
21701 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
21702 it instead of duplicate_ssa_name_ptr_info.
21705 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
21707 2015-03-18 Richard Biener <rguenther@suse.de>
21709 * tree-data-ref.h (struct access_matrix): Remove.
21710 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
21711 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
21712 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
21713 (am_vector_index_for_loop): Likewise.
21714 (struct data_reference): Remove access_matrix member.
21715 (DR_ACCESS_MATRIX): Remove.
21716 (lambda_vector_new): Add comment.
21717 (lambda_matrix_new): Use XOBNEWVEC.
21719 2015-03-18 Richard Biener <rguenther@suse.de>
21721 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
21722 (pass_ch::execute): Cleanup the CFG only if we did sth.
21723 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
21725 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21727 * expmed.c (synth_mult): Use std::swap instead of manually
21728 swapping algorithms.
21730 2015-03-18 Jakub Jelinek <jakub@redhat.com>
21733 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
21735 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
21738 * config/avr/avr.opt (-nodevicelib): New option.
21739 * doc/invoke.texi (AVR Options): Document it.
21740 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
21741 libgcc.a, libc.a, libm.a.
21742 * config/avr/specs.h: Same.
21743 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
21744 which don't (directly) depend on the device. Print more help.
21745 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
21746 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
21747 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
21749 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
21750 for specs file name.
21751 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
21752 * config/avr/avr-mcus.def: Adjust initializers and comments.
21754 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
21756 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
21757 DECL_ONE_ONLY to check if decl is one only.
21758 * ipa-split.c (consider_split): Limit splitt of one only functions.
21760 2015-03-16 Jakub Jelinek <jakub@redhat.com>
21762 PR tree-optimization/65427
21763 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
21765 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
21767 2015-03-16 Marek Polacek <polacek@redhat.com>
21769 * cgraph.h (add_new_static_var): Remove declaration.
21770 * varpool.c (add_new_static_var): Remove function.
21772 2015-03-16 Jakub Jelinek <jakub@redhat.com>
21774 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
21775 instead of vec<tree> * with vec_alloc and release for args.
21778 PR middle-end/65431
21779 * omp-low.c (delete_omp_context): Only splay_tree_delete
21780 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
21781 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
21783 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
21786 * cfgexpand.c (align_base): New function.
21787 (alloc_stack_frame_space): Call it.
21788 (expand_stack_vars): Align prev_frame to be sure
21789 data->asan_vec elements aligned properly.
21791 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
21793 PR middle-end/65409
21794 * expr.c (store_field): Do not do a direct block copy if the source is
21795 a PARALLEL with BLKmode.
21797 2015-03-16 Tom de Vries <tom@codesourcery.com>
21799 PR middle-end/65414
21801 2015-03-12 Tom de Vries <tom@codesourcery.com>
21803 PR rtl-optimization/64895
21804 * lra-lives.c (check_pseudos_live_through_calls): Use
21805 actual_call_used_reg_set instead of call_used_reg_set, if available.
21807 2015-03-16 Alan Modra <amodra@gmail.com>
21810 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
21811 Modify Z->r bswapdi splitter to use dest in place of scratch.
21812 In r->Z and Z->r bswapdi splitter rename word_high, word_low
21813 to word1, word2 and rearrange logic to suit.
21814 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
21815 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
21816 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
21817 Add one '?' on r->r. Modify Z->r splitter to avoid need for
21820 2015-03-14 Jakub Jelinek <jakub@redhat.com>
21822 PR tree-optimization/65369
21823 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
21824 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
21825 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
21827 PR tree-optimization/65418
21828 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
21829 are casts in the first PLUS_EXPR operand, ensure tbias and
21830 *totallowp are in the inner type.
21832 PR rtl-optimization/65401
21833 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
21834 argument. If true, adjust_address_nv of x with big-endian
21835 correction for the mode widening to GET_MODE (y).
21836 (make_field_assignment): Don't do MEM mode widening here.
21837 Use MEM_P instead of GET_CODE == MEM.
21839 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
21841 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
21842 the external decls.
21844 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21847 * config/arm/arm.c (arm_gen_constant, AND case): Use
21848 ARM_SIGN_EXTEND when constructing AND mask.
21850 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21852 * graph.c (print_graph_cfg): Make function names visible and append
21853 parenthesis to it. Also make groups of basic blocks belonging to the
21854 same function visible.
21856 2015-03-12 Richard Biener <rguenther@suse.de>
21858 PR middle-end/44563
21859 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
21860 to avoid quadratic behavior with inline expansion splitting blocks.
21861 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
21862 with the successor if the predecessor will be merged with it.
21863 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
21864 entry block with its successor.
21866 2015-03-13 Richard Biener <rguenther@suse.de>
21868 PR middle-end/44563
21869 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
21870 (cleanup_tree_cfg_1): Do not call it.
21871 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
21872 (fixup_noreturn_call): Mark the stmt as control altering.
21873 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
21875 (pass_data_fixup_cfg): Produce a dump file.
21876 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
21877 (need_noreturn_fixup): New global.
21878 (pass_dominator::execute): Fixup queued noreturn calls.
21879 (optimize_stmt): Queue calls that became noreturn for fixup.
21880 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
21881 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
21882 (el_to_fixup): New global.
21883 (eliminate_dom_walker::before_dom_childre): Queue calls that
21884 became noreturn for fixup.
21885 (eliminate): Fixup queued noreturn calls.
21886 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
21887 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
21888 (substitute_and_fold_dom_walker::before_dom_children): Queue
21889 alls that became noreturn for fixup.
21890 (substitute_and_fold): Fixup queued noreturn calls.
21892 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
21894 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
21895 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
21896 are building; for methods check ODR type of class they belong to if
21897 they may lead to a polymorphic call.
21898 (sem_function::compare_polymorphic_p): Be bit smarter about testing
21899 when function may lead to a polymorphic call.
21900 (sem_function::compare_type_list): Remove.
21901 (sem_variable::equals): Update use of compatible_types_p.
21902 (sem_variable::parse_tree_refs): Remove.
21903 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
21905 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
21907 (func_checker::compatible_polymorphic_types_p): Break out from ...
21908 (unc_checker::compatible_types_p): ... here.
21909 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
21911 (unc_checker::compatible_types_p): Update.
21912 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
21915 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21917 PR rtl-optimization/65235
21918 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
21919 When first element of vec_concat is const_int, calculate its size
21920 using second element.
21922 2015-03-12 Richard Biener <rguenther@suse.de>
21924 PR middle-end/65270
21925 * fold-const.c (operand_equal_p): Fix ordering of resetting
21926 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
21928 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
21930 * config/s390/s390.c (s390_reorg): Move code to output nops after label
21932 (s390_asm_output_function_label): Likewise.
21933 * config/s390/s390.c (s390_asm_output_function_label):
21934 Fix function label alignment with -mhtopatch.
21935 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
21936 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
21937 ("nop_2_byte"): New define_insn.
21938 ("nop_4_byte"): Likewise.
21939 ("nop_6_byte"): Likewise.
21940 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
21941 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
21943 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
21946 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
21949 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
21952 * toplev.c (process_options): Restrict Pointer Bounds Checker
21953 usage with Address Sanitizer.
21955 2015-03-12 Richard Biener <rguenther@suse.de>
21957 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
21959 * omp-low.c (expand_omp_taskreg): Split block before removing
21961 (expand_omp_target): Likewise.
21962 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
21963 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
21964 stmt to split_block.
21966 2015-03-12 Tom de Vries <tom@codesourcery.com>
21968 PR rtl-optimization/64895
21969 * lra-lives.c (check_pseudos_live_through_calls): Use
21970 actual_call_used_reg_set instead of call_used_reg_set, if available.
21972 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
21974 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
21975 (cgraph_node::remove): Likewise.
21976 (cgraph_node::get_untransformed_body): Likewise.
21977 * varpool.c (varpool_node::remove): Likewise.
21978 (varpool_node::get_constructor): Add sanity check.
21980 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
21982 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
21984 (-fabi-compat-version): Likewise.
21985 (-ffriend-injection): Likewise.
21986 (-Wdeclaration-after-statement): Likewise.
21987 (-fomit-frame-pointer): Likewise.
21988 (-ftree-coalesce-inlined-vars): Likewise.
21989 (-fvisibility=): Likewise.
21990 * doc/extend.texi (Typeof): Likewise.
21991 (Zero Length): Likewise.
21992 (Escaped Newlines): Likewise.
21993 (Compound Literals): Likewise.
21994 (Function Attributes): Likewise.
21995 (Label Attributes): Likewise.
21996 (Type Attributes): Likewise.
21997 (Function Names): Likewise.
21998 (Other Builtins): Likewise.
21999 (Function Specific Option Pragmas): Likewise.
22000 (C++ Interface): Likewise.
22002 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
22004 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
22006 2015-03-11 Marek Polacek <polacek@redhat.com>
22008 PR tree-optimization/65388
22009 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
22011 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
22014 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
22015 * configure: Regenerate.
22016 * config.in: Regenerate.
22017 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
22018 [-mn-flash]: Document it.
22019 [__AVR_ARCH__]: Document avrtiny.
22021 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
22022 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
22023 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
22025 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22027 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
22029 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22032 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
22033 allow reloads of PLUS in floating point/VSX registers.
22035 2015-03-11 Junmo Park <junmoz.park@samsung.com>
22037 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
22038 crypto_sha256_fast.
22039 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
22041 2015-03-11 Richard Biener <rguenther@suse.de>
22043 PR tree-optimization/65310
22044 * tree-sra.c (build_ref_for_offset): Also preserve larger
22047 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
22049 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
22051 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22054 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
22056 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
22058 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22060 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
22061 (sem_function::equals_wpa): ... here.
22063 2015-03-10 Marek Polacek <polacek@redhat.com>
22064 Jakub Jelinek <jakub@redhat.com>
22067 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
22068 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
22071 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22074 * config/rs6000/t-linux: For powerpc64* target set
22075 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
22077 2015-03-10 Richard Biener <rguenther@suse.de>
22079 PR middle-end/44563
22080 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
22081 for redirect_all_calls.
22083 2015-03-10 Marek Polacek <polacek@redhat.com>
22085 * gdbinit.in (pcfun): Define and document.
22087 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
22089 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
22090 of libgomp-plugin.h.
22091 (find_target_compiler): Support a case when the path to gcc is
22092 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
22093 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
22094 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
22096 (main): Use GCC_INSTALL_NAME as target_driver_name.
22097 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
22099 (mkoffload.o): Remove obsolete include path and defines.
22100 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
22102 2015-03-10 Richard Biener <rguenther@suse.de>
22104 PR middle-end/63155
22105 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22106 * tree-ssa-coalesce.c: Include timevar.h.
22107 (attempt_coalesce): Handle graph being NULL.
22108 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22109 Split out abnormal coalescing to ...
22110 (perform_abnormal_coalescing): ... this function.
22111 (coalesce_ssa_name): Perform abnormal coalescing without computing
22113 (verify_ssa_coalescing_worker): New function.
22114 (verify_ssa_coalescing): Likewise.
22116 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
22119 * config.gcc (extra_options) [avr]: Remove.
22120 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
22121 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
22122 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
22124 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
22125 (-mmcu=): Add Var and MissingArgError properties.
22127 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
22128 * config/avr/t-multilib: Regenerate.
22129 * config/avr/specs.h: New file.
22130 * config/avr/driver-avr.c: New file.
22131 * config/avr/genopt.sh: Remove file.
22132 * config/avr/avr-tables.opt: Remove file.
22133 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
22134 * config/avr/avr-c.c: Same.
22135 * avr-arch.h: Same.
22136 (avr_current_device): Remove proto.
22137 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
22138 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
22139 (EXTRA_SPEC_FUNCTIONS): Define.
22140 (avr_devicespecs_file): New specs function proto.
22141 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
22142 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
22143 (avr_current_device): Remove definition and usage.
22144 (avr_set_core_architecture): New static function.
22145 (avr_option_override): Use it.
22146 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
22147 (mcu_name): New static array.
22148 (comparator, avr_archs_str, avr_mcus_str): New static functions.
22149 (avr_inform_devices, avr_inform_core_architectures): New functions.
22150 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
22151 (avrlibc.h) [WITH_AVRLIBC]: Include.
22152 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
22153 (print_mcu): Rewrite from scratch.
22154 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
22155 Forward to avr-specific specs defined in device-specs file.
22156 * config/avr/t-avr (driver-avr.o): New rule.
22157 (avr-devices.o): Depend on avr-arch.h.
22158 (avr-mcus): No more depend on avr-tables.opt.
22159 (avr-tables.opt): Remove rule.
22160 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
22162 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22164 * c-family/c.opt (fchkp-use-wrappers): New.
22165 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
22166 (chkp_wrap_function): New.
22167 (chkp_build_instrumented_fndecl): Support wrapped
22169 * doc/invoke.texi (-fcheck-pointer-bounds): New.
22170 (-fchkp-check-incomplete-type): New.
22171 (-fchkp-first-field-has-own-bounds): New.
22172 (-fchkp-narrow-bounds): New.
22173 (-fchkp-narrow-to-innermost-array): New.
22174 (-fchkp-optimize): New.
22175 (-fchkp-use-fast-string-functions): New.
22176 (-fchkp-use-nochk-string-functions): New.
22177 (-fchkp-use-static-bounds): New.
22178 (-fchkp-use-static-const-bounds): New.
22179 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
22180 (-fchkp-check-read): New.
22181 (-fchkp-check-write): New.
22182 (-fchkp-store-bounds): New.
22183 (-fchkp-instrument-calls): New.
22184 (-fchkp-instrument-marked-only): New.
22185 (-fchkp-use-wrappers): New.
22186 (-static-libmpx): New.
22187 (-static-libmpxwrappers): New.
22189 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22191 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
22192 (CHKP_SPEC): Add wrappers library.
22193 * c-family/c.opt (static-libmpxwrappers): New.
22195 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22197 * config/i386/linux-common.h (LIBMPX_LIBS): New.
22198 (LIBMPX_SPEC): New.
22200 * gcc.c (CHKP_SPEC): New.
22201 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
22202 * c-family/c.opt (static-libmpx): New.
22204 2015-03-10 Richard Biener <rguenther@suse.de>
22206 PR middle-end/44563
22207 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
22209 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
22210 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
22211 (cgraph_add_edge_to_call_site_hash): Likewise.
22212 (cgraph_node::get_edge): Likewise.
22213 (cgraph_edge::set_call_stmt): Likewise.
22214 (cgraph_edge::remove_caller): Likewise.
22216 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
22218 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
22219 (callee_saved_gpr_regs_size): ... this.
22220 (callee_saved_regs_first_regno): Rename to ...
22221 (callee_saved_first_gpr_regno): ... this.
22222 (callee_saved_regs_last_regno) Rename to ...
22223 (callee_saved_last_gpr_regno): ... this.
22224 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
22226 (nds32_initial_elimination_offset): Likewise.
22227 (nds32_expand_prologue): Likewise.
22228 (nds32_expand_epilogue): Likewise.
22229 (nds32_expand_prologue_v3push): Likewise.
22230 (nds32_expand_epilogue_v3pop): Likewise.
22231 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
22232 Adjust renamed variables.
22233 (nds32_output_stack_pop): Likewise.
22235 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
22237 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
22240 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22242 PR rtl-optimization/65321
22243 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
22245 * var-tracking.c (use_narrower_mode): Likewise.
22247 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22249 PR tree-optimization/65355
22250 * varasm.c (notice_global_symbol): Do not produce RTL.
22251 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
22253 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
22254 check for section anchors.
22256 2015-03-10 Alan Modra <amodra@gmail.com>
22259 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
22260 to be single-arch by default. Set cpu_is_64bit for powerpc64
22261 given --with-cpu=native.
22262 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
22263 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
22265 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
22266 rs6000_isa_flags rather than TARGET_64BIT.
22268 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
22269 Kaz Kojima <kkojima@gcc.gnu.org>
22271 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
22273 2015-03-09 Jakub Jelinek <jakub@redhat.com>
22276 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
22277 on a TREE_BINFO, instead use BINFO_TYPE.
22279 2015-03-09 Richard Biener <rguenther@suse.de>
22281 PR middle-end/65270
22282 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
22283 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
22284 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
22285 of that. When comparing dereferences compare alignment.
22286 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
22288 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
22290 * ipa-inline-analysis.c (check_callers): Check
22291 node->can_remove_if_no_direct_calls_and_refs_p.
22292 (growth_likely_positive): Reorganize to call
22293 can_remove_if_no_direct_calls_p later.
22294 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
22295 will_be_removed_from_program_if_no_direct_calls_p): Add
22296 will_inline parameter.
22297 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
22298 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
22299 Handle inliner case correctly.
22301 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
22303 PR tree-optimization/63743
22304 * cfgexpand.c (reorder_operands): Also reorder if only second operand
22305 had its definition forwarded by TER.
22307 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
22310 * ipa-utils.h (types_odr_comparable): Add strict argument.
22311 * ipa-devirt.c: Fix whitespace;
22312 (odr_hasher): Remove.
22313 (odr_name_hasher, odr_vtable_hasher): New hashers.
22314 (can_be_name_hashed_p): New predicate.
22315 (hash_type_name): remove.
22316 (hash_odr_name): New.
22317 (odr_name_hasher::hash): new.
22318 (can_be_vtable_hashed_p): New.
22319 (hash_odr_vtable): New.
22320 (odr_vtable_hasher::hash): New.
22321 (types_same_for_odr): Add strict parameter.
22322 (types_odr_comparable): Likewise.
22323 (odr_name_hasher::equal): New.
22324 (odr_vtable_hasher::equal): New.
22325 (odr_name_hasher::remove): New.
22326 (odr_hash_type): Change to hash_table<odr_name_hasher>.
22327 (odr_vtable_hash_type): New.
22328 (odr_vtable_hash): New.
22329 (odr_subtypes_equivalent_p): Do strict comparsion.
22330 (add_type_duplicate): Merge type names; cleanup; avoid type
22332 (register_odr_type): Initialize vtable hash.
22333 (build_type_inheritance_graph): Likewise
22334 (get_odr_type): Reorg to use two hashes.
22335 (dump_possible_polymorphic_call_targets): Move sanity check after debug
22337 (ipa_devirt): Dump type_inheritance_graph.
22338 (types_same_for_odr): Add strict mode.
22340 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22343 * cgraph.h (symtab_node): Add definition_alignment,
22344 can_increase_alignment_p and increase_alignment.
22345 * symtab.c (symtab_node::can_increase_alignment_p,
22346 increase_alignment_1, symtab_node::increase_alignment,
22347 symtab_node::definition_alignment): New.
22348 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
22349 can_increase_alignment_p.
22350 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
22351 * tree-vect-stmts.c (ensure_base_align): Likewise.
22352 * varasm.c (function_section_1): Use definition_alignment.
22353 (assemble_start_function): Likewise.
22354 (emit_local): likewise.
22355 (build_constant_desc): Likewsie.
22356 (output_constant_def_contents): Likewise.
22357 (place_block_symbol): Likewise.
22358 (output_object_block): Likewise.
22360 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22363 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
22364 when outputting debug.
22366 2015-03-07 Marek Polacek <polacek@redhat.com>
22367 Martin Uecker <uecker@eecs.berkeley.edu>
22370 * doc/invoke.texi: Update description of -fsanitize=bounds.
22372 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
22374 * tree-ssa-phiopt.c (neg_replacement): Remove.
22375 (tree_ssa_phiopt_worker): Remove negate optimization.
22377 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22380 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
22382 2015-03-06 Richard Biener <rguenther@suse.de>
22384 PR middle-end/64928
22385 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
22386 and liveout_obstack members.
22387 (calculate_live_on_exit): Remove.
22388 (calculate_live_ranges): Change declaration.
22389 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
22390 (new_tree_live_info): Adjust.
22391 (calculate_live_ranges): Delete livein when not wanted.
22392 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
22393 Deal with partly deleted live info.
22394 (loe_visit_block): Remove temporary bitmap by using
22395 bitmap_ior_and_compl_into.
22396 (live_worklist): Adjust accordingly.
22397 (calculate_live_on_exit): Make static.
22398 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
22399 we do not need livein.
22401 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
22403 * real.c (real_from_string): Fix typo in assertion.
22405 2015-03-06 Alex Velenko <alex.velenko@arm.com>
22407 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
22410 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22412 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
22414 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
22417 * lra-assigns.c (find_hard_regno_for): Rename to
22418 find_hard_regno_for_1. Add a new parameter.
22419 (find_hard_regno_for): New function using find_hard_regno_for_1.
22421 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
22423 PR rtl-optimization/65067
22424 * expmed.c (store_bit_field, extract_bit_field): Reworked the
22425 strict volatile bitfield handling.
22427 2015-03-05 Martin Liska <mliska@suse.cz>
22430 * ipa-icf.c (sem_variable::equals): Compare variables types.
22432 2015-03-05 Richard Henderson <rth@redhat.com>
22435 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
22436 correctly check weak symbol binding.
22438 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
22440 PR middle-end/65315
22441 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
22444 2015-03-05 Martin Liska <mliska@suse.cz>
22446 * ipa-inline.c (inline_small_functions): Set default value to
22447 prevent warning during bootstrap.
22448 * tree.h: Add pragma guard that ignores false positives during
22451 2015-03-05 Richard Biener <rguenther@suse.de>
22453 PR tree-optimization/65310
22454 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22455 Properly preserve alignment of the base of the access.
22457 2015-03-05 Richard Biener <rguenther@suse.de>
22460 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
22461 Compare dependence info.
22463 2015-03-05 Richard Biener <rguenther@suse.de>
22465 PR middle-end/65233
22466 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
22468 (walk_ssa_copies): Revert last chage. Instead do not walk
22469 SSA names registered for SSA update.
22471 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22474 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
22475 vtable references for their containing type.
22476 (sem_function::equals_wpa): Compare TYPE_RESTRICT
22477 and type attributes.
22479 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
22481 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
22482 before negating it.
22483 * stor-layout.c (finalize_record_size): Revert latest change.
22485 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
22487 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
22489 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22491 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
22492 for correct comdat handling.
22493 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
22495 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
22496 (used_from_object_file_p_worker): Remove.
22497 (cgraph_node::only_called_directly_or_alised): Add
22498 used_from_object_file_p.
22499 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
22500 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
22501 can_remove_if_no_direct_calls_and_refs_p.
22503 2015-03-04 Nick Clifton <nickc@redhat.com>
22505 * config/rl78/rl78.h (enum reg_class): Remove real registers from
22506 General register class.
22507 * config/rl78/rl78-real.md: Replace general register constraints
22508 with real+virtual register constraints.
22510 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22512 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
22513 from checking for -mhtm option.
22515 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22517 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
22518 (struct ipa_sra_check_caller_data): Add has_thunk field.
22519 (ipa_sra_check_caller): Check for thunk.
22520 (ipa_sra_preliminary_function_checks): Give up on function with
22522 (ipa_early_sra): Use call_for_symbol_and_aliases.
22524 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
22527 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
22528 called for __stack_chk_guard symbol.
22530 2015-03-03 DJ Delorie <dj@redhat.com>
22532 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
22534 (*addhi3_real): Likewise.
22535 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
22536 pattern to match incrementing memory.
22537 * config/rl78/predicates.md (rl78_1_2_operand): New.
22538 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
22539 it's the same and only mem.
22540 (rl78_alloc_physical_registers_op2): If there's effectively only
22541 one MEM, transcode it into HL.
22542 (rl78_far_p): Reject addresses that aren't legitimate.
22544 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
22546 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
22549 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
22551 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
22553 Implement call0 ABI for xtensa
22554 * config/xtensa/constraints.md ("a" constraint): Include stack
22555 pointer in case of call0 ABI.
22556 ("q" constraint): Make empty in case of call0 ABI.
22557 ("D" constraint): Include stack pointer in case of call0 ABI.
22558 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
22559 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
22561 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
22563 (xtensa_regno_to_class): Make it a local variable in the
22564 function xtensa_regno_to_class.
22565 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
22566 macro, function prototype and implementation.
22567 (reg_nonleaf_alloc_order): Make it a local variable in the
22568 function order_regs_for_local_alloc.
22569 (xtensa_conditional_register_usage): New function.
22570 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
22571 (xtensa_valid_move): Allow direct moves to stack pointer
22572 register in call0 ABI.
22573 (xtensa_setup_frame_addresses): Only spill register windows in
22575 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
22576 call0 ABI respectively.
22577 (xtensa_function_arg_1): Only mark a7 register for copying in
22579 (xtensa_call_save_reg): New function.
22580 (compute_frame_size): Add space for callee saved register
22581 storage to the frame size in call0 ABI.
22582 (xtensa_expand_prologue): Generate code to set up stack frame
22583 and save callee-saved registers in call0 ABI.
22584 (xtensa_expand_epilogue): New function.
22585 (xtensa_set_return_address): New function.
22586 (xtensa_return_addr): Calculate return address in call0 ABI.
22587 (xtensa_builtin_saveregs): Only mark a7 register for copying and
22588 emit copying code in windowed ABI.
22589 (order_regs_for_local_alloc): Add preferred register allocation
22590 order for non-leaf function in call0 ABI.
22591 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
22592 (xtensa_asm_trampoline_template): Add trampoline generation for
22594 (xtensa_trampoline_init): Add trampoline initialization for
22596 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
22598 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
22599 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
22600 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
22601 ABI call-used registers.
22602 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
22603 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
22605 (REG_CLASS_CONTENTS): Include all registers into the preferred
22606 reload registers set, adjust the set in the
22607 xtensa_conditional_register_usage.
22608 (xtensa_regno_to_class): Drop variable declaration.
22609 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
22611 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
22613 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
22614 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
22615 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
22616 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
22617 location in call0 ABI.
22618 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
22619 stack adjustment size when handling exception.
22620 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
22621 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
22623 ("return" pattern): Generate ret.n/ret in call0 ABI.
22624 ("epilogue" pattern): Expand epilogue.
22625 ("nonlocal_goto" pattern): Use default in call0 ABI.
22626 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
22627 emit eh_set_a0_* depending on ABI.
22628 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
22629 ("eh_set_a0_call0", "blockage"): New patterns.
22631 2015-03-03 Martin Liska <mliska@suse.cz>
22634 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
22636 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22639 * config/rs6000/rs6000-tables.opt: Regenerate table.
22641 2015-03-03 Renlin Li <renlin.li@arm.com>
22643 * doc/md.texi (@item ^): Change ? into ^.
22645 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
22647 * doc/tm.texi: Regenerated.
22649 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
22651 * builtins.c (expand_builtin_return_addr): Add
22652 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
22653 surrounding #ifdef.
22654 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
22656 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
22658 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
22660 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
22663 2015-03-03 Martin Jambor <mjambor@suse.cz>
22664 Eric Botcazou <ebotcazou@adacore.com>
22666 * tree-sra.c (ipa_sra_check_caller_data): New type.
22667 (has_caller_p): Removed.
22668 (ipa_sra_check_caller): New function.
22669 (ipa_sra_preliminary_function_checks): Use it.
22671 2015-03-03 Martin Liska <mliska@suse.cz>
22673 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
22674 instead of if branch.
22676 2015-03-03 Martin Liska <mliska@suse.cz>
22679 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
22681 2015-03-23 Jeff Law <law@redhat.com>
22683 PR tree-optimization/65241
22684 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
22685 hash table if INSERT is true.
22687 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
22690 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
22692 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
22695 * config/avr/avr.c (context.h, tree-pass.h): Include them.
22696 (avr_pass_data_recompute_notes): New static variable.
22697 (avr_pass_recompute_notes): New class.
22698 (avr_register_passes): New static function.
22699 (avr_option_override): Call it.
22701 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
22703 Fix various problems with specs file generation.
22706 * config.gcc (extra_gcc_objs) [avr]: Remove.
22707 * config/avr/driver-avr.c: Remove file.
22708 * config/avr/t-avr (driver-avr.o): Remove rule.
22709 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
22710 INCLUDES to build. Depend on TM_H.
22711 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
22712 build warnings. Fix non-matching types and non-existing %-codes.
22714 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
22715 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
22716 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
22717 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
22718 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
22719 (LIBGCC_SPEC): Remove definitions.
22721 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
22723 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
22724 to create a register in testing mode.
22726 2015-03-03 Martin Liska <mliska@suse.cz>
22727 Jan Hubicka <hubicka@ucw.cz>
22730 * cgraph.c (cgraph_node::has_thunk_p): New function.
22731 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
22732 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
22733 (sem_function::merge): Assert is changed.
22735 2015-03-03 Martin Liska <mliska@suse.cz>
22736 Martin Jambor <mjambor@suse.cz>
22739 * ipa-icf.c (sem_item_optimizer::execute): Change function
22740 return value to boolean.
22741 (sem_item_optimizer::merge_classes): Likewise.
22742 (ipa_icf_driver): Return TODO_remove_functions in case there's
22743 a merge operation processed.
22744 * ipa-icf.h: Change function return value to boolean.
22746 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22749 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
22750 processor type for 64-bit little endian PowerPC.
22752 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22753 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
22754 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
22755 printing built-in mask so it does not pass NULL pointers.
22757 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
22760 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
22763 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
22764 !ISA_HAS_FP_CONDMOVE.
22766 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
22768 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
22771 2015-03-02 Ulrich Drepper <drepper@gmail.com>
22773 * doc/invoke.texi (Options for Code Generation Conventions):
22774 Fix URL of DSO paper.
22776 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
22779 * ipa-inline.c (check_callers): Looks for recursion.
22780 (inline_to_all_callers): Give up on uninlinable or recursive edges.
22781 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
22782 summary of inline clones.
22783 (do_estimate_growth_1): Fix recursion check.
22785 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
22788 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
22791 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
22792 Aldy Hernandez <aldyh@redhat.com>
22795 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
22796 when checking TYPE_BINFO.
22798 2015-03-02 Richard Biener <rguenther@suse.de>
22801 * ipa-icf-gimple.c: Include builtins.h.
22802 (func_checker::compare_memory_operand): Compare base alignment.
22804 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
22807 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
22808 are never passed by reference.
22810 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
22813 * tree-chkp.c (chkp_check_lower): Don't check against
22814 zero bounds for already instrumented functions.
22815 (chkp_check_upper): Likewise.
22816 (chkp_fini): Clean pass local data to avoid wrong reusage.
22818 2015-02-28 Martin Liska <mliska@suse.cz>
22819 Jan Hubicka <hubicka@ucw.cz>
22821 * ipa-icf.c (sem_variable::equals): Improve debug output;
22822 get variable constructor.
22823 (sem_variable::parse): Do not filter out too early; give up on
22824 volatile and register vars.
22825 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
22827 * ipa-icf.h (sem_variable::init): Do not set ctor.
22828 (sem_variable::ctor): Remove.
22830 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
22832 PR middle-end/65233
22833 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
22835 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22837 * ipa-icf.c: Include stor-layout.h
22838 (sem_function::compare_cgraph_references): Rename to ...
22839 (sem_item::compare_cgraph_references): ... this one.
22840 (sem_variable::equals_wpa): New function
22841 (sem_variable::equals): Do not check stuff already verified by
22843 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
22844 * ipa-icf.h (sem_item): Add compare_cgraph_references.
22845 (sem_function): Remove compare_cgraph_references.
22846 (sem_variable): Turns equals_wpa into non-inline.
22848 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22850 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
22851 (sem_item::add_expr): New function.
22852 (sem_function::hash_stmt): Handle operands of most statements.
22853 (sem_variable::get_hash): Hash the actual constructor.
22854 * ipa-icf.h (sem_item): Add add_expr.
22855 (sem_function): Update prototype of hash_stmt
22857 2015-02-28 Martin Liska <mliska@suse.cz>
22858 Jan Hubicka <hubicka@ucw.cz>
22861 * ipa-icf-gimple.c (func_checker::compare_function_decl):
22863 (func_checker::compare_variable_decl): Skip symtab vars.
22864 (func_checker::compare_cst_or_decl): Update.
22865 * ipa-icf.c (sem_function::parse): Do not consider aliases.
22866 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
22867 use correct symtab predicates.
22868 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
22869 (sem_variable::parse): Update comment.
22870 (sem_item_optimizer::build_graph): Consider ultimate aliases
22873 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22875 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
22878 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22880 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
22881 (sem_variable::merge) Likewise.
22883 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22885 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
22886 target; also match flag_ipa_devirt.
22888 2015-03-01 Martin Liska <mliska@suse.cz>
22889 Jan Hubicka <hubicka@ucw.cz>
22891 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
22892 Validate variable alignment.
22893 * ipa-icf.c (sem_function::equals_private): Be more precise
22894 about non-common function attributes.
22895 (sem_variable::equals): Likewise.
22897 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22900 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
22901 across COMDAT group boundary.
22903 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22906 * ipa-icf.c (clear_decl_rtl): New function.
22907 (sem_function::merge): Clear RTL before forming alias.
22908 (sem_variable::merge): Clear RTL before forming alias.
22910 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22913 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
22915 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
22917 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
22920 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
22922 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
22923 a typo in the description.
22925 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
22928 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
22929 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
22930 * lra-constraints.c: Include "params.h".
22931 (EBB_PROBABILITY_CUTOFF): Use
22932 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
22933 (lra_inheritance): Use '<' instead of '<=' for
22934 EBB_PROBABILITY_CUTOFF.
22935 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
22938 2015-02-27 Martin Liska <mliska@suse.cz>
22940 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
22941 vector length condition.
22943 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
22945 * doc/extend.texi (x86 transactional memory intrinsics):
22946 Reorganize discussion of _xbegin. Clarify that the return
22947 value is a bit mask. Expand example and move to end of section.
22949 2015-02-26 Jakub Jelinek <jakub@redhat.com>
22950 Aldy Hernandez <aldyh@redhat.com>
22952 PR rtl-optimization/65220
22953 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
22955 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
22958 * lra-remat.c (update_scratch_ops): New.
22959 (do_remat): Call it.
22960 * lra.c (lra_register_new_scratch_op): New. Take code from ...
22961 (remove_scratches): ... here.
22962 * lra-int.h (lra_register_new_scratch_op): New prototype.
22964 2015-02-27 Marek Polacek <polacek@redhat.com>
22967 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
22968 -Wformat-signedness anymore.
22970 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22972 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
22974 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
22976 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22978 * config/s390/s390.c (enum s390_builtin):
22979 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
22980 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
22981 (s390_init_builtins): Generate new builtin functions.
22982 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
22983 (s390_sfpc, s390_efpc): New pattern definitions.
22985 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22987 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
22988 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
22989 (s390_builtin_decls): New array.
22990 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
22991 (s390_builtin_decl): New function.
22992 (TARGET_BUILTIN_DECL): Define macro.
22994 2015-02-27 Richard Biener <rguenther@suse.de>
22996 PR middle-end/63175
22997 * builtins.c (get_object_alignment_2): Make sure to re-apply
22998 the ANDed mask after recursing to its operand gets us a new
22999 misalignment bit position.
23001 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
23002 Martin Liska <mliska@suse.cz>
23005 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
23006 Use address_matters_p.
23007 (redirect_all_callers, set_addressable): New functions.
23008 (sem_function::merge): Reorganize and fix merging issues.
23009 (sem_variable::merge): Likewise.
23010 (sem_variable::compare_sections): Remove.
23011 * common.opt (fmerge-all-constants, fmerge-constants): Remove
23013 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
23015 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
23017 (address_matters_1): New function.
23018 (symtab_node::address_matters_p): New function.
23019 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
23020 check for merged flag.
23021 * cgraph.h (address_matters_p): Declare.
23022 (symtab_node::address_taken_from_non_vtable_p): Remove.
23023 (symtab_node::address_can_be_compared_p): New method.
23024 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
23025 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
23027 (comdat_can_be_unshared_p_1) Use address_matters_p.
23028 (update_vtable_references): Fix formating.
23029 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
23030 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
23031 * cgraphclones.c: Preserve merged and icf_merged flags.
23033 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
23035 * doc/extend.texi (Function Attributes): Fix spelling and typos.
23036 (Label Attributes): Likewise.
23037 (Cilk Plus Builtins): Likewise.
23038 (ARC SIMD Built-in Functions): Likewise.
23039 (ARM C Language Extensions (ACLE)): Likewise.
23040 (PowerPC Built-in Functions): Likewise.
23041 (PowerPC Hardware Transactional Memory Built-in Functions):
23044 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23046 PR tree-optimization/65216
23047 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
23048 new stmt and new SSA_NAME for lhs whenever the arguments have
23049 changed and weren't just swapped. Fix comment typo.
23051 PR tree-optimization/65215
23052 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
23053 for PDP endian targets.
23054 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
23055 Fix up formatting issues.
23056 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
23057 size is smaller than the original, adjust MEM_REF offset by the
23058 difference of sizes. Use is_gimple_mem_ref_addr instead of
23059 is_gimple_min_invariant test to avoid adding address temporaries.
23061 2015-02-26 Martin Liska <mliska@suse.cz>
23062 Jan Hubicka <hubicka@ucw.cz>
23065 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
23066 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
23067 (sem_item_optimizer::process_cong_reduction): Include division by
23068 sensitive references.
23069 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
23070 * ipa-ref.c (ipa_ref::address_matters_p): New function.
23071 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
23073 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
23076 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
23078 * config/avr/avr.c: Same.
23079 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
23080 Refuse any constant address not in 0..0xbf.
23081 * config/avr/avr.md (*mov<mode>, *movsf): Remove
23082 tiny_valid_direct_memory_access_range from insn conditions.
23083 (mov<mode>): Don't special-case expansion of avrtiny addresses.
23085 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
23088 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
23089 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
23090 * config/sh/predicates.md (const_logical_operand): New predicate.
23091 * config/sh/sh.md: Add new peephole2 patterns.
23093 2015-02-26 Marek Polacek <polacek@redhat.com>
23096 * ipa-inline.c (early_inliner): Recompute inline parameters.
23098 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23101 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
23102 instructions with TImode operands are included in the analysis.
23104 2015-02-26 Sebastian Pop <s.pop@samsung.com>
23106 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
23107 of an EDGE_FSM_THREAD.
23109 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
23111 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
23113 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
23116 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
23118 2015-02-26 Sebastian Pop <s.pop@samsung.com>
23120 PR tree-optimization/65048
23121 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
23122 (thread_through_all_blocks): Call valid_jump_thread_path.
23123 Remove invalid FSM jump-thread paths.
23125 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23127 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
23128 (ipa_write_optimization_summaries): Likewise.
23129 * tree-streamer.h: Include data-streamer.h.
23130 (streamer_mode_table): Declare extern variable.
23131 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
23132 * lto-streamer-out.c (lto_output_init_mode_table,
23133 lto_write_mode_table): New functions.
23134 (produce_asm_for_decls): Call lto_write_mode_table when streaming
23136 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
23137 (lto_create_simple_input_block): Add mode_table argument to the
23138 lto_input_block constructors.
23139 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
23141 * data-streamer-in.c (string_for_index): Likewise.
23142 * ipa-inline-analysis.c (inline_read_section): Likewise.
23143 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
23144 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
23145 * lto-streamer-in.c (lto_read_body_or_constructor,
23146 lto_input_toplevel_asms): Likewise.
23147 (lto_input_mode_table): New function.
23148 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
23149 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
23150 Use bp_pack_machine_mode.
23151 * real.h (struct real_format): Add name field.
23152 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
23153 (class lto_input_block): Add mode_table member.
23154 (lto_input_block::lto_input_block): Add mode_table_ argument,
23155 initialize mode_table.
23156 (struct lto_file_decl_data): Add mode_table field.
23157 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
23158 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
23159 unpack_ts_decl_common_value_fields,
23160 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
23161 * tree-streamer.c (streamer_mode_table): New variable.
23162 * real.c (ieee_single_format, mips_single_format,
23163 motorola_single_format, spu_single_format, ieee_double_format,
23164 mips_double_format, motorola_double_format,
23165 ieee_extended_motorola_format, ieee_extended_intel_96_format,
23166 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
23167 ibm_extended_format, mips_extended_format, ieee_quad_format,
23168 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
23169 decimal_single_format, decimal_double_format, decimal_quad_format,
23170 ieee_half_format, arm_half_format, real_internal_format): Add name
23172 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
23174 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
23177 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
23178 reordering for selective scheduling.
23180 2015-02-26 Terry Guo <terry.guo@arm.com>
23182 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
23183 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
23184 (arm_arch_no_volatile_ce): Declare new global variable.
23185 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
23186 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
23187 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
23188 (TARGET_NO_VOLATILE_CE): New macro.
23189 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
23190 volatile memory access in IT block
23192 2015-02-25 Kai Tietz <ktietz@redhat.com>
23194 PR tree-optimization/61917
23195 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
23196 that reduc_def_stmt is null.
23198 2015-02-25 Martin Liska <mliska@suse.cz>
23200 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
23201 hard register variables.
23203 2015-02-25 Kai Tietz <ktietz@redhat.com>
23206 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
23207 (symtab::noninterposable_alias): Likewise.
23209 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
23212 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
23214 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
23216 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
23219 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
23220 as split condition; force split via '#' in output pattern.
23222 2015-02-25 Richard Biener <rguenther@suse.de>
23223 Kai Tietz <ktietz@redhat.com>
23225 PR tree-optimization/61917
23226 * tree-vect-loop.c (vectorizable_reduction): Allow
23227 vect_internal_def without reduction to exit graceful.
23229 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
23232 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
23233 only with NONDEBUG_INSN_P.
23235 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
23237 Use variadic macros with avr-log.c.
23239 * config/avr/avr-protos.h (avr_vdump): New prototype.
23240 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
23241 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
23242 * config/avr/avr-log.c: Adjust comments.
23243 (avr_vdump): New function.
23244 (avr_vadump): Pass caller as 2nd argument instead of format string.
23245 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
23246 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
23248 2015-02-25 Jakub Jelinek <jakub@redhat.com>
23251 * target.def (target_option_stream_in): New target hook.
23252 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
23253 targetm.target_option.post_stream_in if non-NULL.
23254 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
23255 * doc/tm.texi: Updated.
23256 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
23258 (TARGET_OPTION_POST_STREAM_IN): Redefine.
23260 2015-02-24 Jeff Law <law@redhat.com>
23263 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
23264 of operand 0 and operand 2.
23265 (zero_cost_loop_end, loop_end): Similarly.
23267 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
23269 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
23272 2015-02-24 DJ Delorie <dj@redhat.com>
23274 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
23275 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
23276 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
23277 instead of hardcoding SImode.
23279 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
23281 * omp-low.c (create_omp_child_function): Tag entrypoint
23282 functions with a special attribute.
23284 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23287 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
23289 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
23291 PR rtl-optimization/65123
23292 * lra-remat.c (operand_to_remat): Check hard regs in insn
23295 2015-02-24 Nick Clifton <nickc@redhat.com>
23297 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
23300 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
23303 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
23304 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
23305 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
23306 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
23307 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
23308 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
23309 (BUILT_IN_GOACC_PARALLEL): Specify as
23310 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
23311 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
23312 * builtin-types.def
23313 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23314 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23315 Remove function types.
23316 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
23317 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23318 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23319 New function types.
23321 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
23323 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
23325 2015-02-24 Jakub Jelinek <jakub@redhat.com>
23327 PR tree-optimization/65170
23328 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
23329 if val[1] < 0, clear also val[2] and return 3.
23331 2015-02-24 Alan Modra <amodra@gmail.com>
23334 * config/rs6000/rs6000.c (get_memref_parts): Only return true
23335 when *base is a reg. Handle nested plus addresses. Simplify
23338 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
23340 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
23341 use natural alignment when optimizing for size.
23343 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
23346 * config/sh/sh.md (movsicc_true+3): Remove peephole.
23347 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
23348 * config/sh/sh.c (replace_n_hard_rtx): Remove.
23350 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
23353 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
23354 too big for a wide_int. Implement missing wrapping operation.
23356 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
23359 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
23360 instead of const_int 4294901760.
23362 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
23364 * config/avr/t-avr: Fix typo in comment.
23366 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
23368 * doc/rtl.texi (fma): Clarify documentation.
23370 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
23373 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
23374 over input_location.
23376 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23378 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
23379 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
23380 restrict alignments to absolute_biggest_alignment.
23381 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
23383 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
23384 * doc/tm.texi: Regenerate.
23385 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
23387 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
23390 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
23392 2015-02-20 Richard Biener <rguenther@suse.de>
23394 PR tree-optimization/65136
23395 * tree-ssa-propagate.c: Include cfgloop.h.
23396 (replace_phi_args_in): Avoid replacing loop latch edge PHI
23397 arguments with constants.
23399 2015-02-20 Jakub Jelinek <jakub@redhat.com>
23400 Martin Liska <mliska@suse.cz>
23403 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
23404 don't try to create_thunk if stdarg_p. If
23405 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
23406 redirect_callers if possible.
23407 (sem_item_optimizer::execute): Call unregister_hooks here...
23408 (ipa_icf_driver): ... instead of here.
23410 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23412 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
23413 Mark operand 0 as earlyclobber in 2nd alternative.
23414 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
23415 Write negated shift amount into QI lowpart operand 0 and use it
23417 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23419 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23421 * cgraph.h (clone_function_name_1): Declare.
23422 * cgraphclones.c (clone_function_name_1): New function.
23423 (clone_function_name): Use it.
23424 * lto-partition.c: Include "stringpool.h".
23425 (must_not_rename, maybe_rewrite_identifier)
23426 (validize_symbol_for_target): New static functions.
23427 (privatize_symbol_name): Use must_not_rename.
23428 (promote_symbol): Call validize_symbol_for_target.
23429 (lto_promote_cross_file_statics): Likewise.
23430 (lto_promote_statics_nonwpa): Likewise.
23432 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
23435 * config/avr/avr.md (pushhi_insn): New insn.
23436 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
23438 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23439 Jakub Jelinek <jakub@redhat.com>
23441 * tree-streamer.c (preload_common_nodes): Don't preload
23442 TI_VA_LIST* for offloading.
23443 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
23446 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
23448 * config/pa/pa.c (pa_emit_move_sequence): Always force
23449 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
23452 * config/pa/pa.c (pa_reloc_rw_mask): New function.
23453 (TARGET_ASM_RELOC_RW_MASK): Define.
23454 (pa_cannot_force_const_mem): Revert previous change.
23456 2015-02-19 Martin Jambor <mjmabor@suse.cz>
23457 Jan Hubicka <hubicka@ucw.cz>
23460 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
23461 across jump functions.
23463 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
23465 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
23467 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
23469 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
23471 2015-02-19 Richard Henderson <rth@redhat.com>
23473 PR middle-end/65074
23474 * varasm.c (default_binds_local_p_2): Don't test node->definition;
23475 test DECL_EXTERNAL independent of symtab_node.
23477 2015-02-19 Jakub Jelinek <jakub@redhat.com>
23480 * varpool.c (varpool_node::get_constructor): Return early
23481 if this->lto_file_data is NULL.
23483 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23485 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
23486 (rank_for_schedule_debug): Update.
23487 (ready_sort): Make static. Move sorting logic to ...
23488 (ready_sort_debug, ready_sort_real): New static functions.
23489 (schedule_block): Sort both debug insns and real insns in preparation
23490 for ready list trimming. Improve debug output.
23491 * sched-int.h (ready_sort): Remove global declaration.
23493 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
23495 * ipa-icf.c (sem_function::equals_private): Adjust.
23496 (sem_function::bb_dict_test): Take a vec<int> * instead of
23498 * ipa-icf.h (bb_dict_test): Likewise.
23500 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23502 PR gcov-profile/64634
23503 * tree-eh.c (frob_into_branch_around): Fix up typos
23504 in function comment.
23505 (lower_catch): Put eh_seq resulting from EH lowering of
23506 the cleanup sequence after the cleanup rather than before it.
23508 2015-02-18 Tom de Vries <tom@codesourcery.com>
23510 * common.opt (fstdarg-opt): New option.
23511 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
23512 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
23513 (@item -fstdarg-opt): New item.
23515 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
23518 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
23519 for common symbols.
23521 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23523 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
23525 (ALL_HOST_OBJS): Add mkoffload.o.
23526 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
23528 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
23530 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
23531 (compare_virtual_tables): Be smarter about skipping typeinfos;
23532 do sane output on virtual table table mismatch.
23533 (warn_odr): Be ready for forward declarations of enums;
23534 output sane info on base mismatch and virtual table mismatch.
23535 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
23536 when only one type is polymorphic.
23537 (get_odr_type): Fix hashtable corruption.
23538 (dump_odr_type): Dump mangled names.
23540 2015-02-18 Richard Biener <rguenther@suse.de>
23542 PR tree-optimization/65063
23543 * tree-predcom.c (determine_unroll_factor): Return 1 if we
23544 have replaced looparound PHIs.
23546 2015-02-18 Martin Liska <mliska@suse.cz>
23548 * lto-streamer.c (lto_streamer_init): Encapsulate
23549 streamer_check_handled_ts_structures with checking macro.
23551 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23554 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
23555 section if !implicit_section.
23556 (cgraph_node::create_version_clone_with_body): Likewise.
23557 * trans-mem.c (ipa_tm_create_version): Likewise.
23559 2015-02-18 Richard Biener <rguenther@suse.de>
23561 PR tree-optimization/62217
23562 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
23565 2015-02-18 Marek Polacek <polacek@redhat.com>
23568 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
23569 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
23570 is in range [-16K, -1]. Don't issue run-time error if
23571 (ptr > ptr + offset).
23573 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
23575 * doc/install.texi (nvptx-*-none): New section.
23576 * doc/invoke.texi (Nvidia PTX Options): Likewise.
23577 * config/nvptx/nvptx.opt: Update.
23579 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
23580 (access_check): New functions, copied from
23581 config/i386/intelmic-mkoffload.c.
23582 (main): For non-installed testing, look in all COMPILER_PATHs for
23585 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
23587 2015-02-18 Andrew Pinski <apinski@cavium.com>
23588 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
23590 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
23591 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
23593 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
23595 * ipa-visibility.c (function_and_variable_visibility): Only
23596 check locality if node is not already local.
23597 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23598 call_for_symbol_and_aliases instead of
23599 call_for_symbol_thunks_and_aliases.
23600 (ipa_inline): Likewise.
23601 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23602 first walk aliases.
23603 * ipa.c (symbol_table::remove_unreachable_nodes): Use
23604 call_for_symbol_and_aliases.
23605 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23606 (ipa_propagate_frequency_1): Use it; use opt_for_fn
23607 (ipa_propagate_frequency): Update.
23608 (ipa_profile): Add opt_for_fn gueards.
23610 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
23612 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
23613 * doc/invoke.texi (SH options): Document it.
23614 * config/sh/sh.c (sh_insn_length_adjustment): Check
23615 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
23617 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
23619 * common.opt (fipa-cp-alignment): New.
23620 * ipa-cp.c (ipcp_store_alignment_results): Check
23621 flag_ipa_cp_alignment.
23622 * opts.c (default_options_table): Enable -fipa-cp-alignment for
23624 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
23625 * doc/invoke.texi: Document -fipa-cp-alignment.
23627 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
23630 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
23631 to nil. Adjust comments.
23633 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
23635 * ipa-visibility.c (function_and_variable_visibility): Only
23636 check locality if node is not already local.
23637 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23638 call_for_symbol_and_aliases instead of
23639 call_for_symbol_thunks_and_aliases.
23640 (ipa_inline): Likewise.
23641 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23642 first walk aliases.
23643 * ipa.c (symbol_table::remove_unreachable_nodes): Use
23644 call_for_symbol_and_aliases.
23645 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23646 (ipa_propagate_frequency_1): Use it; use opt_for_fn
23647 (ipa_propagate_frequency): Update.
23648 (ipa_profile): Add opt_for_fn guards.
23650 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
23652 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
23653 skipping of "strange" tokens.
23655 2015-02-17 Jeff Law <law@redhat.com>
23657 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
23660 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
23662 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
23663 as forcing a HARD_DEP between instructions, thereby
23664 disallowing rewriting to break dependencies.
23666 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
23668 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
23669 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
23670 variables in boundary that have no inlitalizer encoded and are
23672 * varasm.c (default_binds_local_p_2): External definitions do not
23673 count as definitions here.
23675 2015-02-16 Jeff Law <law@redhat.com>
23677 PR tree-optimization/64823
23678 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
23680 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
23681 threading through blocks with PHIs, but no statements.
23682 (thread_through_normal_block): Distinguish between blocks where
23683 we did not process all the statements and blocks with no statements.
23685 2015-02-16 Jakub Jelinek <jakub@redhat.com>
23686 James Greenhalgh <james.greenhalgh@arm.com>
23689 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
23690 section if not linkonce. Fix up formatting.
23691 (cgraph_node::create_version_clone_with_body): Copy section.
23692 * trans-mem.c (ipa_tm_create_version): Likewise.
23694 2015-02-16 Richard Biener <rguenther@suse.de>
23696 PR tree-optimization/65077
23697 * tree-ssa-structalias.c (get_constraint_for_1): Handle
23698 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
23699 (find_func_aliases): Allow float values to carry pointers again.
23701 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
23703 * doc/install.texi (Specific): Reorder targets list to put
23704 aarch64 in alphabetical order. Add a link to aarch64*-*-*
23707 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23708 David Edelsohn <dje.gcc@gmail.com>
23711 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
23712 mapping class to external variable or function reference.
23713 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
23716 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
23719 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
23720 ASM_WEAKEN_DECL if defined.
23722 2015-02-16 Richard Biener <rguenther@suse.de>
23725 * varasm.c (default_file_start): For LTO produced units
23726 emit <artificial> as file directive.
23728 2015-02-16 Richard Biener <rguenther@suse.de>
23730 PR tree-optimization/63593
23731 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
23732 stmts and releasing SSA names until...
23733 (execute_pred_commoning): ... after processing all chains.
23735 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
23738 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
23739 external functions.
23741 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
23743 * doc/bugreport.texi: Adjust section titles throughout the file
23744 to use "Title Case".
23745 * doc/extend.texi: Likewise.
23746 * doc/gcov.texi: Likewise.
23747 * doc/implement-c.texi: Likewise.
23748 * doc/implement-cxx.texi: Likewise.
23749 * doc/invoke.texi: Likewise.
23750 * doc/objc.texi: Likewise.
23751 * doc/standards.texi: Likewise.
23752 * doc/trouble.texi: Likewise.
23754 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
23756 * cgraph.h (symtab_node::has_aliases_p): Simplify.
23757 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
23758 * tree.c (lookup_binfo_at_offset): Make static.
23759 (get_binfo_at_offset): Do not shadow offset; add explanatory
23762 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
23764 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
23765 for all floading point loads and stores except those using a register
23767 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
23770 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
23772 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
23773 (do_estimate_growth_1): Record if any uninlinable edge was seen.
23774 (estimate_growth): Handle uninlinable edges correctly.
23775 (check_callers): New.
23776 (growth_likely_positive): Handle aliases correctly.
23778 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
23780 * ipa-chkp.c: Use iterate_direct_aliases.
23781 * symtab.c (resolution_used_from_other_file_p): Move inline.
23782 (symtab_node::create_reference): Fix formating.
23783 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
23784 (symtab_node::iterate_reference): Move inline.
23785 (symtab_node::iterate_referring): Move inline.
23786 (symtab_node::iterate_direct_aliases): Move inline.
23787 (symtab_node::used_from_object_file_p_worker): Inline into ...
23788 (symtab_node::used_from_object_file_p): ... this one; move inline.
23789 (symtab_node::call_for_symbol_and_aliases): Move inline;
23790 use iterate_direct_aliases.
23791 (symtab_node::call_for_symbol_and_aliases_1): New method.
23792 (cgraph_node::call_for_symbol_and_aliases): Move inline;
23793 use iterate_direct_aliases.
23794 (cgraph_node::call_for_symbol_and_aliases_1): New method.
23795 (varpool_node::call_for_node_and_aliases): Rename to ...
23796 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
23797 use iterate_direct_aliases.
23798 (varpool_node::call_for_symbol_and_aliases_1): New method.
23799 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
23800 (ipa_discover_readonly_nonaddressable_var): Update.
23801 * ipa-devirt.c: Fix formating.
23802 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
23804 (cgraph_node::call_for_symbol_and_aliases): Move inline.
23805 (cgraph_node::call_for_symbol_and_aliases_1): New function..
23806 * cgraph.h (used_from_object_file_p_worker): Remove.
23807 (resolution_used_from_other_file_p): Move inline.
23808 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
23809 (symtab_node::iterate_reference): Move inline.
23810 (symtab_node::iterate_referring): Move inline.
23811 (symtab_node::iterate_direct_aliases): Move inline.
23812 (symtab_node::used_from_object_file_p_worker): Inline into ...
23813 (symtab_node::used_from_object_file_p): Move inline.
23814 * tree-emutls.c (ipa_lower_emutls): Update.
23815 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
23816 (varpool_node::call_for_node_and_aliases): Remove.
23818 2015-02-14 Jakub Jelinek <jakub@redhat.com>
23820 PR tree-optimization/62209
23821 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
23822 op == range->exp, insert seq and gimplified code after labels
23823 instead of after the phi.
23825 2015-02-13 Jeff Law <law@redhat.com>
23828 Revert my change for tree-optimization/64823.
23830 2015-02-13 Jakub Jelinek <jakub@redhat.com>
23832 PR tree-optimization/65053
23833 * tree-ssa-phiopt.c (value_replacement): When moving assign before
23834 cond, either reset VR on lhs or set it to phi result VR.
23836 2015-02-13 Jeff Law <law@redhat.com>
23838 PR tree-optimization/64823
23839 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
23840 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
23841 threading through blocks with PHIs, but no statements.
23842 (thread_through_normal_block): Distinguish between blocks where
23843 we did not process all the statements and blocks with no statements.
23845 PR rtl-optimization/47477
23846 * match.pd (convert (plus/minus (convert @0) (convert @1): New
23847 simplifier to narrow arithmetic.
23849 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
23852 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
23853 polymorphic call info when type is not known to be preserved.
23855 2015-02-13 Maritn Jambor <mjambor@suse.cz>
23858 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
23859 (inline_call): Use it.
23861 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
23863 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
23864 GOMP_DEVICE_NVIDIA_PTX.
23866 2015-02-13 Jakub Jelinek <jakub@redhat.com>
23869 * stmt.c (emit_case_nodes): Use void_type_node instead of
23870 NULL_TREE as LABEL_DECL type.
23872 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
23874 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
23876 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
23877 symbolic references to data to be forced to constant memory on the
23880 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
23882 PR tree-optimization/65002
23883 * tree-cfg.c (pass_data_fixup_cfg): Don't update
23885 * tree-sra.c (some_callers_have_no_vuse_p): New.
23886 (ipa_early_sra): Reject functions whose callers
23887 assume function is read only.
23889 2015-02-13 Richard Biener <rguenther@suse.de>
23892 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
23893 for LTO produced CUs.
23895 2015-02-13 Bin Cheng <bin.cheng@arm.com>
23897 PR tree-optimization/64705
23898 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
23899 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
23900 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
23901 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
23902 expand_simple_operations.
23904 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
23905 Richard Henderson <rth@redhat.com>
23908 * cgraphunit.c (cgraph_node::finalize_function): Set definition
23909 before notice_global_symbol.
23910 (varpool_node::finalize_decl): Likewise.
23911 * varasm.c (default_binds_local_p_2): Rename from
23912 default_binds_local_p_1, add weak_dominate argument. Use direct
23913 returns instead of assigning to local variable. Unify varpool and
23914 cgraph paths via symtab_node. Reject undef weak variables before
23915 testing visibility. Reorder tests for simplicity.
23916 (default_binds_local_p): Use default_binds_local_p_2.
23917 (default_binds_local_p_1): Likewise.
23918 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
23920 (default_elf_asm_output_external): Emit visibility when specified.
23922 2015-02-13 Alan Modra <amodra@gmail.com>
23924 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
23925 code setting up r11 for out-of-line fp restore.
23927 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
23929 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
23930 (muser-mode): Likewise.
23932 2015-02-13 Alan Modra <amodra@gmail.com>
23934 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
23935 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
23937 2015-02-12 David Howells <dhowells@redhat.com>
23939 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
23941 * tree-ssa-uninit.c (dump_predicates): Likewise.
23942 * opts.c (print_filtered_help): Likewise.
23944 2015-02-12 Jakub Jelinek <jakub@redhat.com>
23946 * dwarf2out.c (output_die): Use "%s", name instead of name to
23947 avoid -Wformat-security warning.
23949 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
23950 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
23951 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
23952 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
23954 2015-02-12 Jason Merrill <jason@redhat.com>
23956 * common.opt (-flifetime-dse): New.
23958 2015-02-12 Jakub Jelinek <jakub@redhat.com>
23961 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
23963 PR tree-optimization/65014
23964 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
23965 use original second operand of arg0 or arg1 instead of
23966 that adjusted by STRIP_NOPS.
23968 2015-02-11 Jeff Law <law@redhat.com>
23971 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
23972 that needs to be queued, just queue it for a single cycle.
23974 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
23976 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
23977 bodies of thunks; comment on why.
23978 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
23979 symbols are extern.
23981 2015-02-11 Richard Henderson <rth@redhat.com>
23984 * tree-eh.c (mark_reachable_handlers): Mark source and destination
23985 regions of __builtin_eh_copy_values.
23987 2015-02-11 Jakub Jelinek <jakub@redhat.com>
23989 PR middle-end/65003
23990 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
23991 ultimate alias is MEM with SYMBOL_REF satisfying
23992 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
23993 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
23995 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
23997 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
23998 "diagnostic-core.h".
23999 (main): Initialize progname, and call diagnostic_initialize.
24001 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
24002 instead of __OPENMP_TARGET__.
24004 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
24005 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
24006 hard-coding PTX_ID.
24008 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
24010 * doc/sourcebuild.texi (pie_enabled): Document.
24012 2015-02-11 Martin Liska <mliska@suse.cz>
24015 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
24016 a return value for call to a function that is noreturn.
24018 2015-02-11 Richard Biener <rguenther@suse.de>
24021 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
24024 2015-02-11 Andrew Pinski <apinski@cavium.com>
24027 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
24028 Change the first argument type to size_type_node and add another
24030 (aarch64_simd_expand_builtin): Handle the new argument to
24031 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
24032 print an out when the first two arguments are not
24033 nonzero integer constants.
24034 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
24035 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
24037 2015-02-11 Jakub Jelinek <jakub@redhat.com>
24040 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
24041 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
24042 (ix86_set_current_function): Rewritten.
24043 (ix86_add_new_builtins): Temporarily clear current_target_pragma
24044 when creating builtin fndecls.
24046 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24049 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
24051 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
24052 have no comdat group.
24053 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
24054 (lto_output_varpool_node): Always output alias info.
24055 (output_refs): Output refs of boundary aliases, too.
24056 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
24057 (output_symtab): Output call eges in thunks in boundary.
24058 (get_alias_symbol): Remove.
24059 (input_node, input_varpool_node): Do not special case weakrefs.
24060 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
24061 alias and thunks targets in the boundary; do not take removed symbols
24062 from their comdat groups.
24063 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
24064 (cgraph_node::global_info): Remove.
24065 (cgraph_node::rtl_info): Look through aliases and thunks.
24066 * cgrpah.h (global_info): Remove.
24067 (non_local_p): Remove.
24069 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24070 Sandra Loosemore <sandra@codesourcery.com>
24072 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
24073 to inline asm. List dialects in proper order.
24075 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24076 Sandra Loosemore <sandra@codesourcery.com>
24078 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
24080 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24082 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
24083 modified) reference to Solaris.
24085 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
24087 * doc/extend.texi (Extended Asm): Fix typos.
24089 2015-02-10 Jakub Jelinek <jakub@redhat.com>
24092 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
24094 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
24097 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
24098 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
24099 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
24100 * config/sh/constraints.md (Ara, Add): New constraints.
24101 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
24103 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
24104 atomic_mem_operand_0. Don't use force_reg on the memory address.
24105 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
24106 Sra constraint. Convert to insn_and_split. Add workaround for
24108 (atomic_compare_and_swap<mode>_hard): Copy to
24109 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
24110 Use atomic_mem_operand_0 predicate.
24111 (atomic_compare_and_swap<mode>_soft_gusa,
24112 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
24113 AraAdd constraints.
24114 (atomic_compare_and_swap<mode>_soft_tcb,
24115 atomic_compare_and_swap<mode>_soft_imask,
24116 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
24117 atomic_mem_operand_0 predicate and SraSdd constraints.
24118 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
24120 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
24121 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
24122 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
24123 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
24124 force_reg on the memory address.
24125 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
24126 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
24127 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
24128 atomic_mem_operand_1 predicate and Sra constraint.
24129 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
24130 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
24131 Use atomic_mem_operand_1 predicate.
24132 (atomic_<fetchop_name><mode>_hard): Copy to
24133 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
24134 Use atomic_mem_operand_1 predicate.
24135 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
24136 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
24137 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
24138 insn_and_split. Use atomic_mem_operand_1 predicate.
24139 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
24140 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
24141 Use atomic_mem_operand_1 predicate.
24142 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
24143 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
24144 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
24145 in generated insn with original mem operand before emitting the insn.
24146 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
24147 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
24148 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
24149 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
24150 Use atomic_mem_operand_1 predicate and AraAdd constraints.
24151 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
24152 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
24153 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
24154 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
24155 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
24156 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
24157 atomic_not_fetch<mode>_soft_tcb,
24158 atomic_<fetchop_name>_fetch<mode>_soft_imask,
24159 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
24160 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
24161 Use atomic_mem_operand_1 predicate and SraSdd constraints.
24163 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
24165 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
24166 and 3 earlyclobber operands.
24168 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24170 * common.opt (fstack-reuse): Mark as optimization.
24172 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24175 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
24177 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
24179 PR tree-optimization/64326
24180 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
24182 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
24184 PR gcov-profile/61889
24185 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
24187 2015-02-10 Richard Biener <rguenther@suse.de>
24189 PR tree-optimization/64995
24190 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
24191 value we use is final.
24192 (visit_reference_op_store): Always valueize op.
24193 (visit_use): Properly valueize vuses.
24195 2015-02-10 Richard Biener <rguenther@suse.de>
24197 PR tree-optimization/64909
24198 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
24199 pass a scalar-stmt count estimate to the cost model.
24200 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
24202 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
24204 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
24205 enabled by default together with var-tracking.
24207 2015-02-10 Nick Clifton <nickc@redhat.com>
24209 * config/rl78/rl78.c: Remove DIV attribute code accidentally
24210 included in previous rl78 commit.
24212 2015-02-10 Richard Biener <rguenther@suse.de>
24214 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
24215 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
24216 return the bitpack.
24218 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
24220 PR gcov-profile/61889
24221 * config.in: regenerate.
24222 * configure.in: Likewise.
24223 * configure.ac: Check for ftw.h.
24224 * gcov-tool.c: Check for ftw.h before using nftw.
24226 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
24229 * ipa-visibility.c (update_visibility_by_resolution_info): Only
24230 assert when not in lto mode.
24232 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24234 * ira-color.c (setup_left_conflict_sizes_p): Simplify
24235 initialization/assignment of conflict_size.
24237 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
24240 * ipa-cp.c (gather_caller_stats): Skip thunks.
24241 (propagate_constants_topo): Skip aliases.
24243 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
24246 * config/sh/sh.c (sh_option_override): Don't change
24247 -freorder-blocks-and-partition to -freorder-blocks even when
24248 unwinding is enabled.
24249 (sh_can_follow_jump): Return false if the followee jump is
24250 a crossing jump when -freorder-blocks-and-partition is specified.
24251 * config/sh/sh.md (*jump_compact_crossing): New insn.
24253 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
24254 Kaz Kojima <kkojima@gcc.gnu.org>
24257 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
24258 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
24259 (sh_can_redirect_branch): Rename to ...
24260 (sh_can_follow_jump): ... this. Constify argument types.
24261 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
24262 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
24263 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
24264 * doc/tm.texi: Regenerate.
24266 2015-02-09 Jakub Jelinek <jakub@redhat.com>
24269 * builtins.c (expand_builtin): Call targetm.expand_builtin
24270 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
24272 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24275 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
24277 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24280 * ipa-icf.c (set_local): New function.
24281 (sem_function::merge): Use it.
24283 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24285 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
24286 (add_type_duplicate): Fix comparison of BINFOs.
24288 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24290 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
24291 on getting VOID pointer.
24293 2015-02-09 Jakub Jelinek <jakub@redhat.com>
24296 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
24299 2015-02-09 Richard Biener <rguenther@suse.de>
24301 * genmatch.c (replace_id): Copy expr_type.
24303 2015-02-09 Richard Biener <rguenther@suse.de>
24305 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
24306 (streamer_write_tree_bitfields): Declare.
24307 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
24308 properly unpack padding.
24309 (unpack_value_fields): Inline ...
24310 (streamer_read_tree_bitfields): ... here.
24311 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
24312 and properly add padding bits.
24313 (streamer_pack_tree_bitfields): Fold into ...
24314 (streamer_write_tree_bitfields): ... this new function,
24315 exposing the bitpack object.
24316 * lto-streamer-out.c (lto_write_tree_1): Call
24317 streamer_write_tree_bitfields.
24319 2015-02-09 Richard Biener <rguenther@suse.de>
24321 PR tree-optimization/54000
24322 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
24323 (struct ivopts_data): Add loop_loc member.
24324 (tree_ssa_iv_optimize_loop): Dump loop location.
24325 (create_new_ivs): Likewise, also dump number of IVs generated.
24327 2015-02-09 Martin Liska <mliska@suse.cz>
24329 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
24330 just if not yet registered.
24331 (ipa_icf_generate_summary): Register callgraph hooks.
24333 2015-02-08 Andrew Pinski <apinski@cavium.com>
24335 * config/aarch64/aarch64.c (gty_dummy): Delete.
24337 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24340 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
24341 (cgraph_node::local_p): Remove thunk related FIXME.
24343 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24346 * i386.c (ix86_function_regparm): Look through aliases to see if callee
24347 is local and optimized.
24348 (ix86_function_sseregparm): Likewise; also use target's SSE math
24349 settings; error out instead of silently generating wrong code
24351 (init_cumulative_args): Look through aliases.
24353 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24356 * ipa-split.c (execute_split_functions): Split if function has aliases.
24358 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24361 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
24362 aliases before trying to expand it.
24363 (cgraph_node::expand_thunk): Fix formating.
24365 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
24367 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
24368 (Using Assembly Language with C): Expand introduction.
24369 (Basic Asm): Copy-edit. Add more information about uses of
24371 (Extended Asm): Copy-edit. Document new escape syntax and
24373 (Global Reg Vars): Copy-edit.
24374 (Local Reg Vars): Likewise.
24376 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
24380 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
24381 (DBX_CONTIN_CHAR): Define.
24383 2015-02-06 Sebastian Pop <s.pop@samsung.com>
24384 Brian Rzycki <b.rzycki@samsung.com>
24386 PR tree-optimization/64878
24387 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
24388 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
24389 Stop recursion at loop phi nodes after having visited a loop phi node.
24391 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24393 * toplev.c (process_options): Change flag_ipa_ra before creating
24394 optimization_{default,current}_node.
24397 * cgraphunit.c (cgraph_node::expand_thunk): If
24398 restype is not is_gimple_reg_type nor the thunk_fndecl
24399 returns aggregate_value_p, set restmp to a temporary variable
24400 instead of resdecl.
24402 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
24404 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
24406 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24409 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
24410 add a general secondary reload handler for SDmode, unless we have
24411 both read/write support for SDmode.
24413 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24415 PR middle-end/64937
24416 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
24417 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
24418 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
24419 1 before, push it to abstract_vec.
24420 (dwarf2out_abstract_function): Adjust caller. Don't call
24421 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
24422 DECL_ABSTRACT_P flags for all abstract_vec elts.
24424 2015-02-06 Renlin Li <renlin.li@arm.com>
24426 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
24428 * tree-ssa.c (execute_update_addresses_taken): Likewise.
24430 2015-02-06 Jeff Law <law@redhat.com>
24433 * config/h8300/h8300.c (push): New argument "in_prologue".
24434 Pass "in_prologue" along to "F".
24435 (h8300_push_pop): Corresponding changes.
24436 (h8300_expand_prologue): Likewise.
24437 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
24439 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24441 PR rtl-optimization/64957
24443 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
24444 IOR rather than for AND.
24446 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
24449 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
24450 of shift-add and (add + shift) operations. Rename local variable.
24452 2015-02-05 Jeff Law <law@redhat.com>
24455 * config/h8300/constraints.md (U): Correctly dectect
24456 "eightbit_data" memory addresses.
24457 * config/h8300/h8300.c (eightbit_constant_address_p): Also
24458 handle (const (plus (symbol_ref (x)))) where x is declared
24459 as an 8-bit data memory address.
24460 * config/h8300/h8300.md (call, call_value): Correctly detect
24461 "funcvec" functions.
24464 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
24465 24 to 28 bits for the H8/300.
24467 2015-02-06 Alan Modra <amodra@gmail.com>
24470 * config/rs6000/rs6000.c (chain_already_loaded): New function.
24471 (rs6000_call_aix): Use it.
24473 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
24475 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
24478 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
24480 * config/h8300/constraints.md ("U" constraint): Use strict
24481 variant of REG_OK_FOR_BASE_P after reload has started.
24483 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
24485 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
24486 define to zero if !TARGET_NEON.
24487 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
24489 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24490 Trevor Saunders <tsaunders@mozilla.com>
24493 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
24495 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24498 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
24499 when removing varpool nodes.
24501 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24504 * varpool.c (varpool_node::remove): Fix order of variables.
24506 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24509 * ipa-inline.c (inline_small_functions): Fix ordering issue between
24510 speculation resolution and key updates.
24512 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24514 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
24515 about not letting any speculative edges unupdated.
24517 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24520 * gcov-io.c (gcov_var): Export.
24522 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24524 PR middle-end/64922
24525 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
24526 edges that become speculative.
24528 2015-02-04 Jakub Jelinek <jakub@redhat.com>
24530 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
24531 or DW_LANG_Fortran08.
24532 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
24534 (gen_compile_unit_die): Handle "GNU Fortran2003" and
24535 "GNU Fortran2008" language strings.
24536 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
24537 * langhooks.h (lang_GNU_Fortran): New prototype.
24538 * langhooks.c (lang_GNU_Fortran): New function.
24539 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
24542 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
24544 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
24545 (RTX_OK_FOR_OLO10_P): Likewise.
24547 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
24549 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
24551 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24553 PR middle-end/64922
24554 * gimple.c: Include gimple-ssa.h.
24555 (maybe_remove_unused_call_args): New function.
24556 * gimple.h (maybe_remove_unused_call_args): Declare.
24557 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
24558 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
24559 * gimple-fold.c (gimple_fold_call): Likewise.
24561 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
24563 PR rtl-optimization/64905
24564 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
24565 pointer alignment if it isn't needed.
24567 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
24569 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
24570 cortex-a72.cortex-a53.
24571 * config/aarch64/aarch64-tune.md: Regenerate.
24572 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
24574 2015-02-04 Nick Clifton <nickc@redhat.com>
24576 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
24579 2015-02-04 Jakub Jelinek <jakub@redhat.com>
24581 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
24582 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
24583 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
24585 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
24586 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
24587 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
24588 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
24589 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
24590 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
24591 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
24592 * tree-core.h (enum built_in_function): In between
24593 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
24594 for builtins that use DEF_BUILTIN_CHKP macro.
24596 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
24599 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
24600 operands for tcc_comparison exprs. Fix typos.
24603 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
24604 of two XORs that have an intervening AND or IOR.
24607 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
24608 simplification of XOR of AND to not allocate new rtx before
24609 committing to a simplification.
24611 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24613 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
24614 manual swaps in all peepholes.
24616 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24618 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
24619 of manual swapping implementation.
24620 (aarch64_expand_vec_perm_const_1): Likewise.
24622 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
24624 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
24625 (generic_addrcost_table): Remove NAMED_PARAM.
24626 (cortexa57_addrcost_table): Likewise.
24627 (xgene1_addrcost_table): Likewise.
24628 (generic_regmove_table): Likewise.
24629 (cortexa53_regmove_table): Likewise.
24630 (xgene1_regmove_table): Likewise.
24631 (generic_vector_table): Likewise.
24632 (cortexa57_vector_table): Likewise.
24633 (xgene1_vector_table): Likewise.
24634 (generic_tunings): Likewise.
24635 (cortexa53_tunings): Likewise.
24636 (cortexa57_tunings): Likewise.
24637 (xgene1_tunings): Likewise.
24639 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
24641 * config/arm/arm-cores.def: Add cortex-a72 and
24642 cortex-a72.cortex-a53.
24643 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
24644 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
24645 * config/arm/arm-tune.md: Regenerate.
24646 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
24647 "cortex-a72.cortex-a53".
24648 * doc/invoke.texi (ARM Options/-mtune): Likewise.
24650 2015-02-04 Nick Clifton <nickc@redhat.com>
24653 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
24655 (nonimmediate_di_operand): Likewise.
24657 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
24658 prefixes of known F5 using MSP430 MCUs.
24660 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24662 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
24663 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
24664 instead of __builtin_sqrt.
24666 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
24668 * varasm.c (do_assemble_alias): Follow transparent alias
24670 (default_assemble_visibility): Follow transparent alias
24671 chain for decl name.
24673 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24675 PR middle-end/62103
24676 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
24677 to compute size of referenced value in the constant case.
24679 2015-02-03 Jakub Jelinek <jakub@redhat.com>
24681 PR rtl-optimization/64756
24682 * cse.c (invalidate_dest): New function.
24683 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
24684 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
24685 invalidate and do not record it.
24687 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
24690 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
24691 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
24692 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
24693 atomic_nand<mode>_soft_tcb): New insns.
24694 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
24695 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
24696 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
24697 Split into atomic_not_fetchsi_hard if operands[0] is unused.
24698 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
24699 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
24700 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
24701 atomic_not<mode>_hard if operands[0] is unused.
24702 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
24703 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
24704 if operands[0] is unused.
24705 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
24706 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
24707 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
24708 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
24710 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
24711 into atomic_not<mode>_soft_tcb if operands[0] is unused.
24712 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
24713 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
24714 if operands[0] is unused.
24715 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
24716 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
24717 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
24718 atomic_nand_fetchsi_hard if operands[0] is unused.
24719 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
24720 atomic_nand<mode>_hard if operands[0] is unused.
24721 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
24722 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
24723 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
24724 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
24725 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
24726 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
24727 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
24728 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
24729 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
24730 atomic_not<mode>_hard if operands[0] is unused.
24731 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
24732 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
24734 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
24735 into atomic_not<mode>_soft_tcb if operands[0] is unused.
24736 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
24737 atomic_nand<mode>_hard if operands[0] is unused.
24738 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
24739 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
24741 2015-02-03 David Malcolm <dmalcolm@redhat.com>
24744 * Makefile.in (GCC_OBJS): Add gcc-main.o.
24745 * gcc-main.c: New file, containing "main" taken from gcc.c.
24746 * gcc.c (do_self_spec): Free decoded_options.
24747 (class driver): Move declaration to gcc.h.
24748 (main): Move declaration and implementation to new file
24750 (driver_get_configure_time_options): New function.
24751 * gcc.h (class driver): Move this declaration here, from
24753 (driver_get_configure_time_options): New declaration.
24755 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
24757 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
24758 cross-module inlining.
24759 * cgraph.h (cgraph_node): Add flag merged.
24760 * ipa-icf.c (sem_function::merge): Maintain it.
24762 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
24764 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
24765 instead of OBJECT_P.
24767 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
24770 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
24771 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
24772 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
24773 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
24775 2015-02-03 Jakub Jelinek <jakub@redhat.com>
24778 * combine.c (reg_n_sets_max): New variable.
24779 (can_change_dest_mode, reg_nonzero_bits_for_combine,
24780 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
24781 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
24782 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
24783 (rest_of_handle_combine): Initialize reg_n_sets_max.
24785 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
24787 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
24788 if some always_inline was inlined, apply changes before inlining
24791 2015-02-02 David Malcolm <dmalcolm@redhat.com>
24794 * config/arm/arm.c (arm_option_override): Set
24795 arm_selected_arch/cpu/tune to NULL on entry.
24797 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
24798 Andrew Pinski <pinskia@gcc.gnu.org>
24799 Jakub Jelinek <jakub@gcc.gnu.org>
24802 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
24803 integer typing for small model. Use IN_RANGE.
24805 2015-02-02 Richard Biener <rguenther@suse.de>
24807 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
24808 * tree-vrp.c (vrp_valueize_1): Likewise.
24810 2015-02-02 Alan Modra <amodra@gmail.com>
24812 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
24813 than mem for toc_restore.
24814 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
24815 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
24816 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
24818 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
24821 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
24822 explicit default options.
24824 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
24827 * ipa-utils.c (ipa_merge_profiles): Add release argument.
24828 * ipa-icf.c (sem_function::merge): Do not release body when merging.
24829 * ipa-utils.h (ipa_merge_profiles): Update prototype.
24831 2015-02-01 Jakub Jelinek <jakub@redhat.com>
24834 * cfgexpand.c (deep_ter_debug_map): New variable.
24835 (avoid_deep_ter_for_debug): New function.
24836 (expand_debug_expr): If TERed SSA_NAME is in
24837 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
24838 instead of trying to expand SSA_NAME's def stmt.
24839 (expand_debug_locations): When expanding debug bind
24840 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
24841 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
24843 (pass_expand::execute): Call avoid_deep_ter_for_debug on
24844 all debug bind stmts. Delete deep_ter_debug_map after
24845 expand_debug_location if non-NULL and clear it.
24847 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
24850 * config/sh/sync.md (atomic_fetch_notsi_hard,
24851 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
24852 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
24853 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
24854 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
24855 atomic_not_fetch<mode>_soft_imask): New insns.
24857 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24859 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
24860 (rank_for_schedule_debug): Split from ...
24861 (rank_for_schedule): ... this.
24862 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
24863 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
24865 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
24867 * doc/md.texi (Machine Constraints): Alphabetize table by target.
24868 * doc/extend.texi (x86 Variable Attributes): Move section to
24869 correct alphabetization after renaming.
24870 (x86 Type Attributes): Likewise.
24871 (Target Builtins): Re-alphabetize menu.
24872 (x86 Built-in Functions): Move section to correct alphabetization
24874 (x86 transactional memory intrinsics): Likewise.
24875 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
24876 and x86 Windows Options in table and menu.
24877 (x86 Options): Move section to correct alphabetization after
24879 (x86 Windows Options): Likewise.
24881 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
24883 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
24884 preferred names of the architecture and its 32- and 64-bit
24886 * doc/invoke.texi: Likewise.
24887 * doc/md.texi: Likewise.
24889 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
24892 * config/i386/predicates.md (address_no_seg_operand): Reject
24893 non-CONST_INT_P operands in invalid mode.
24895 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
24897 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
24898 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
24899 * config/i386/predicates.md (address_no_seg_operand): Call
24900 address_operand with VOIDmode.
24901 (vsib_address_operand): Ditto.
24902 (address_mpx_no_base_operand): Ditto.
24903 (address_mpx_no_index_operand): Ditto.
24905 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
24908 * lra-constraints.c (original_subreg_reg_mode): New.
24909 (simplify_operand_subreg): Try to simplify subreg of const. Use
24910 original_subreg_reg_mode for it.
24911 (swap_operands): Update original_subreg_reg_mode.
24912 (curr_insn_transform): Set up original_subreg_reg_mode.
24914 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
24917 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
24919 (process_alt_operands): Use it.
24920 (curr_insn_transform): Check the optional reload pseudo class is
24923 2015-01-30 Joseph Myers <joseph@codesourcery.com>
24925 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
24926 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
24928 * toplev.h (init_asm_output): Update comment on use of
24929 UNKNOWN_LOCATION with fatal_error.
24930 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
24931 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
24932 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
24933 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
24934 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
24935 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
24936 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
24937 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
24938 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
24939 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
24940 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
24941 fatal_error changed to pass input_location as first argument.
24943 2015-01-30 Martin Liska <mliska@suse.cz>
24945 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
24946 in #pragma GCC diagnostic guards.
24948 2015-01-30 Richard Biener <rguenther@suse.de>
24950 PR tree-optimization/64829
24951 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
24952 not add a widening conversion pattern but hand off extra
24953 widenings to callers.
24954 (vect_recog_widen_mult_pattern): Handle extra widening produced
24955 by vect_handle_widen_op_by_const.
24956 (vect_recog_widen_shift_pattern): Likewise.
24957 (vect_pattern_recog_1): Remove excess vertical space in dumping.
24958 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
24959 (vect_init_vector_1): Likewise.
24960 (vect_get_vec_def_for_operand): Likewise.
24961 (vect_finish_stmt_generation): Likewise.
24962 (vectorizable_load): Likewise.
24963 (vect_analyze_stmt): Likewise.
24964 (vect_is_simple_use): Likewise.
24966 2015-01-29 Jeff Law <law@redhat.com>
24968 * combine.c (try_combine): Fix typo in comment.
24970 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
24973 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
24974 (rs6000_stack_info): Add assert.
24975 (rs6000_output_savres_externs): New function, split off from...
24976 (rs6000_output_function_prologue): ... here. Do not call it for
24979 2015-01-29 Jeff Law <law@redhat.com>
24982 * combine.c (try_combine): If I0 is a memory load and I3 a store
24983 to a related address, increase the "goodness" of doing a 4-insn
24984 combination with I0-I3.
24985 (make_field_assignment): Handle SUBREGs in the ior+and case.
24987 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
24989 PR tree-optimization/64746
24990 * tree-if-conv.c (mask_exists): New function.
24991 (predicate_mem_writes): Save created mask with given size for further
24993 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
24994 (ifcvt_repair_bool_pattern): Collect all statements that are root
24995 of bool pattern and use iterative algorithm to remove multiple uses
24996 of predicates, display number of required iterations.
24998 2015-01-29 Richard Biener <rguenther@suse.de>
25000 PR tree-optimization/64853
25001 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
25002 stmt will get simulated again.
25003 * tree-ssa-ccp.c (valueize_op_1): Likewise.
25005 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25007 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
25008 return_in_pc. Remove redundant assignments.
25009 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
25010 (arm_expand_epilogue): Don't compare boolean with true in if condition.
25012 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
25014 * config/i386/i386.c (ix86_mode_after): Make static.
25016 2015-01-29 Richard Biener <rguenther@suse.de>
25018 PR tree-optimization/64844
25019 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
25020 dump cost model analysis.
25021 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25022 Do not register adjusted load/store costs here.
25024 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
25025 Uros Bizjak <ubizjak@gmail.com>
25027 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
25028 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
25029 using x86_use_pseudo_pic_reg.
25030 * config/i386/i386.c (ix86_conditional_register_usage): Remove
25031 support for fixed PIC register.
25032 (ix86_use_pseudo_pic_reg): Not static any more.
25034 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
25036 PR middle-end/64805
25037 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
25038 to avoid error in cgraph node verification.
25040 2015-01-29 Marek Polacek <polacek@redhat.com>
25042 * doc/standards.texi: Reflect that the default for C is gnu11.
25044 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
25047 * reorg.c (switch_text_sections_between_p): New function.
25048 (relax_delay_slots): Call it when testing if the jump insn
25049 is removable. Use targetm.can_follow_jump when testing if
25050 the conditional branch can follow an unconditional jump.
25052 2015-01-27 Caroline Tice <cmtice@google.com>
25054 Committing VTV Cywin/Ming patch for Patrick Wollgast
25055 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
25056 if -fvtable-verify=preinit/std is used.
25057 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
25058 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
25059 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
25060 if -fvtable-verify=preinit/std is used.
25061 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25062 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
25063 if -fvtable-verify=preinit/std is used.
25064 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
25065 * config/i386/mingw32.h (LIB_SPEC): Likewise.
25066 * varasm.c (assemble_variable): Add code to properly set the comdat
25067 section and name for the .vtable_map_vars section in case the
25068 target is PE or COFF.
25070 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
25073 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
25074 make sane BB profile.
25075 (cgraph_node::expand_thunk): Make sane BB profile.
25076 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
25077 * cgraph.h (init_lowered_empty_function): Update prototype.
25078 * config/i386/i386.c (make_resolver_func): Update call.
25079 * predict.c (gate): Disable branch prediction pass if
25080 profile is already there.
25082 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
25084 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
25085 * opth-gen.awk: Likewise.
25086 * common.opt: Mark flag_fp_contract_mode as Optimization.
25088 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
25090 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
25091 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
25093 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
25096 * config/sh/predicates.md (atomic_arith_operand,
25097 atomic_logical_operand): Remove.
25098 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
25099 (atomic_arith_operand_0): New predicate.
25100 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
25101 Use atomic_arith_operand_0 for input values.
25102 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
25103 atomic_compare_and_swap<mode>_soft_gusa,
25104 atomic_compare_and_swap<mode>_soft_tcb,
25105 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
25106 arith_reg_operand instead of register_operand.
25107 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
25108 atomic_arith_operand_0 for newval input.
25109 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
25110 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
25111 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
25112 arith_reg_operand instead of register_operand.
25113 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
25114 fetchop_predicate_1, fetchop_constraint_1_llcs,
25115 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
25116 fetchop_constraint_1_imask): New code iterator attributes.
25117 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
25118 register_operand. Use fetchop_predicate_1.
25119 (atomic_fetch_<fetchop_name>si_hard,
25120 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
25121 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
25122 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
25123 and arith_reg_operand instead of register_operand. Use
25124 fetchop_predicate_1, fetchop_constraint_1_gusa.
25125 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
25126 and arith_reg_operand instead of register_operand. Use
25127 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
25129 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
25130 and arith_reg_operand instead of register_operand. Use
25131 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
25133 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
25134 register_operand. Use atomic_logical_operand_1.
25135 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
25136 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
25137 arith_reg_operand instead of register_operand.
25138 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
25139 Use arith_reg_dest and arith_reg_operand instead of register_operand.
25140 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
25141 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
25142 register_operand. Use fetchop_predicate_1.
25143 (atomic_<fetchop_name>_fetchsi_hard,
25144 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
25145 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25146 fetchop_constraint_1_llcs.
25147 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
25148 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25149 fetchop_constraint_1_gusa.
25150 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
25151 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25152 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
25153 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
25154 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25155 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
25156 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
25157 register_operand. Use atomic_logical_operand_1.
25158 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
25159 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
25160 arith_reg_operand instead of register_operand.
25161 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
25162 arith_reg_operand instead of register_operand. Use logical_operand
25163 and K08. Adjust asm sequence to allow R0 usage.
25164 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
25165 arith_reg_operand instead of register_operand. Use logical_operand
25168 2015-01-28 Jakub Jelinek <jakub@redhat.com>
25171 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
25172 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
25173 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
25174 only get_full_len HOST_WIDE_INTs from get_val () array rather than
25175 all bits in *val_wide.
25177 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
25179 * varpool.c (tls_model_names): Fix names.
25180 (varpool_node::dump): Dump tls- prefix for tls models.
25182 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
25183 Bernd Schmidt <bernds@codesourcery.com>
25184 Nathan Sidwell <nathan@codesourcery.com>
25186 * config/nvptx/mkoffload.c: New file.
25187 * config/nvptx/t-nvptx: Add build rules for it.
25188 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
25189 (extra_programs): Add mkoffload.
25190 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
25192 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
25194 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
25196 PR middle-end/64809
25197 * cfgexpand.c (reorder_operands): Skip debug gimples.
25199 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
25201 PR tree-optimization/64277
25202 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
25203 range info when possible to refine estimation.
25205 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25207 PR tree-optimization/64718
25208 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
25209 be a 16bit unsigned integer when n->range is 16.
25210 (bswap_replace): Convert src to that type if necessary for all bswap
25211 sizes. Fix rotation right notation in nearby comment. Use bswap_type
25212 set in pass_optimize_bswap::execute ().
25214 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
25216 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
25217 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
25218 integer and floating point variants.
25219 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
25221 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
25223 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
25224 for all vector modes.
25226 2015-01-28 Jakub Jelinek <jakub@redhat.com>
25229 * doc/sourcebuild.texi (comdat_group): Document.
25231 2015-01-28 Terry Guo <terry.guo@arm.com>
25233 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
25235 2015-01-27 David Malcolm <dmalcolm@redhat.com>
25237 * toplev.c (print_version): Add param "show_global_state", and
25238 only print GGC and plugin information if it is true.
25239 (init_asm_output): Pass in "true" for the new param when calling
25241 (process_options): Likewise.
25242 (toplev::main): Likewise.
25243 * toplev.h (print_version): Add new param to decl.
25245 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
25249 * tree.c (lookup_binfo_at_offset): New function.
25250 (get_binfo_at_offset): Use it.
25252 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
25255 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
25256 on vtable being vtable.
25258 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
25260 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
25261 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
25262 -mhotpatch= option.
25263 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
25264 -mno-hotpatch options. Change syntax of -mhotpatch= option.
25265 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
25267 (s390_hotpatch_trampoline_halfwords_max): Renamed.
25268 (s390_hotpatch_hw_max): New name.
25269 (s390_hotpatch_trampoline_halfwords): Renamed.
25270 (s390_hotpatch_hw_before_label): New name.
25271 (get_hotpatch_attribute): Removed.
25272 (s390_hotpatch_hw_after_label): New name.
25273 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
25275 (s390_attribute_table): Ditto.
25276 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
25277 (s390_function_num_hotpatch_hw): New name.
25278 Remove special handling of inline functions and hotpatching.
25279 Return number of nops before and after the function label.
25280 (s390_can_inline_p): Removed.
25281 (s390_asm_output_function_label): Emit a configurable number of nops
25282 after the function label.
25283 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
25284 (TARGET_CAN_INLINE_P) Removed.
25285 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
25287 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25288 Jiong Wang <jiong.wang@arm.com>
25290 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
25292 (cb<optab><mode>1): Likewise.
25293 * config/aarch64/iterators.md (bcond): New define_code_attr.
25295 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25297 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
25300 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25302 * config/s390/s390.c (s390_register_move_cost): Increase costs for
25305 2015-01-27 Richard Biener <rguenther@suse.de>
25307 * tree-vrp.c (update_value_range): Intersect the range with
25308 old recorded SSA name range information.
25310 2015-01-27 Nick Clifton <nickc@redhat.com>
25312 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
25313 BC, DE and HL registers directly, not via AX.
25314 When decrementing the stack pointer by a large amount, transfer SP
25315 into AX and perform the subtraction there.
25316 (rl78_expand_epilogue): Perform the inverse of the above
25319 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25321 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
25323 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25324 Yury Gribov <y.gribov@samsung.com>
25327 * ubsan.c (ubsan_source_location): Refactor code.
25328 (ubsan_type_descriptor): Update type size. Refactor code.
25330 2015-01-27 Richard Biener <rguenther@suse.de>
25332 PR tree-optimization/56273
25333 PR tree-optimization/59124
25334 PR tree-optimization/64277
25335 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
25336 from the first VRP pass.
25338 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25341 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
25342 handle the first argument in the same loop as all the other arguments.
25344 PR rtl-optimization/61058
25345 * jump.c (cleanup_barriers): Update basic block boundaries
25346 if BLOCK_FOR_INSN is non-NULL on PREV.
25348 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
25350 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
25351 bounds narrowing, already instrumented calls and calls to
25352 not instrumentable functions.
25354 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25356 PR tree-optimization/64807
25357 * wide-int.cc (wi::divmod_internal): Clear
25358 b_dividend[dividend_blocks_needed].
25360 2015-01-26 DJ Delorie <dj@redhat.com>
25362 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
25363 volatile memory references.
25365 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
25368 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
25370 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
25371 shifts if it already fits into K08.
25373 2015-01-26 Jakub Jelinek <jakub@redhat.com>
25376 * ipa-inline.c (inline_small_functions): Print "unknown" even
25377 if edge->call_stmt is non-NULL, but has builtins or unknown
25380 PR middle-end/64421
25381 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
25382 with asterisk, skip the first character.
25384 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
25387 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
25390 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
25393 * config/i386/i386.md (*movdi_internal): Also check operand 0
25394 to determine TYPE_LEA operand.
25395 (*movsi_internal): Ditto.
25397 2015-01-26 Jakub Jelinek <jakub@redhat.com>
25399 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
25400 OPTION_MASK_QUAD_MEMORY_ATOMIC.
25402 2015-01-26 Renlin Li <renlin.li@arm.com>
25404 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
25406 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
25409 2015-01-26 Richard Biener <rguenther@suse.de>
25411 PR middle-end/64764
25412 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
25413 combining two BIT_AND_EXPR predicates.
25415 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
25418 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
25420 2015-01-26 Terry Guo <terry.guo@arm.com>
25422 * config/arm/arm.c (arm_file_start): Update the assignment of
25423 Tag_ABI_HardFP_use.
25425 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
25427 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
25429 config/arm/arm.md: Include the new Cortex-A57 model.
25430 (generic_sched): Don't use generic_sched when tuning for
25433 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
25434 Uros Bizjak <ubizjak@gmail.com>
25436 * config/i386/i386.c (get_builtin_code_for_version): Add
25437 support for BMI and BMI2 multiversion functions.
25439 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25441 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
25442 (extract_bit_field): Likewise.
25443 (extract_low_bits): Likewise.
25444 (expand_mult): Likewise.
25445 (expand_mult_highpart_adjust): Likewise.
25447 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
25449 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
25450 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
25451 * config/i386/i386.c (processor_model): Add
25452 M_INTEL_COREI7_BROADWELL.
25453 (arch_names_table): Add "broadwell".
25455 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
25464 * config/sh/sh-protos.h
25465 (sh_extending_set_of_reg::can_use_as_unextended_reg,
25466 sh_extending_set_of_reg::use_as_unextended_reg,
25467 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
25468 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
25469 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
25470 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
25471 (sh_treg_insns): New class.
25472 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
25473 (scope_counter): New class.
25474 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
25475 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
25476 sh_extending_set_of_reg::can_use_as_unextended_reg,
25477 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
25478 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
25479 sh_split_treg_set_expr): New functions.
25480 (addsubcosts): Handle treg_set_expr.
25481 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
25482 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
25483 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
25484 (sh_insn_operands_modified_between_p): Make non-static.
25485 * config/sh/predicates.md (zero_extend_movu_operand): Allow
25486 simple_mem_operand in addition to displacement_mem_operand.
25487 (zero_extend_operand): Don't allow zero_extend_movu_operand.
25488 (treg_set_expr, treg_set_expr_not_const01,
25489 arith_reg_or_treg_set_expr): New predicates.
25490 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
25491 arith_or_int_operand instead of logical_operand. Convert to
25492 insn_and_split. Try to optimize constant operand in splitter.
25493 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
25494 (*tstqi_t_zero): Delete.
25495 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
25496 (tstsi_t_and_not): Delete.
25497 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
25498 Convert to insn_and_split.
25499 (unnamed split, tstsi_t_zero_extract_xor,
25500 tstsi_t_zero_extract_subreg_xor_little,
25501 tstsi_t_zero_extract_subreg_xor_big): Delete.
25502 (*tstsi_t_shift_mask): New insn_and_split.
25503 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
25504 to recombine with surrounding insns when splitting.
25505 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
25506 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
25507 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
25508 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
25509 (*cbranch_div0s: Delete.
25510 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
25511 Try to recombine with surrounding insns when splitting. Add operand
25513 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
25514 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
25515 *addc_r_r_msb, *addc_2r_msb): Delete.
25516 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
25518 (*addc_negreg_t): New insn_and_split.
25519 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
25520 Try to recombine with surrounding insns when splitting.
25521 Add operand order variants.
25522 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
25523 insn_and_split patterns.
25524 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
25525 surrounding insns when splitting.
25526 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
25527 (*rotcl): Likewise. Add zero_extract variant.
25528 (*ashrsi2_31): New insn_and_split.
25529 (*negc): Convert to insn_and_split. Use treg_set_expr.
25530 (*zero_extend<mode>si2_disp_mem): Update comment.
25531 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
25533 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
25534 with surrounding insns when splitting.
25535 (any_treg_expr_to_reg): New insn_and_split.
25536 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
25537 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
25538 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
25539 *zero_extract_2): New single bit zero extract patterns.
25540 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
25541 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
25542 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
25543 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
25545 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
25546 register_operand for set source.
25548 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
25550 * i386.opt (prefetch_sse): New targetsave.
25551 * i386.c (ix86_function_specific_save): Save prefetch_sse.
25552 (ix86_function_specific_restore): Restore prefetch_sse and initialize
25553 ix86_cost/ix86_tune_cost.
25555 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25557 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
25558 Support the JIT by using 0 as the language type.
25560 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
25563 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
25564 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
25565 (mark_regno_live, process_bb_lives): Pass new parameter value to
25566 make_hard_regno_born.
25568 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25570 PR rtl-optimization/63637
25571 PR rtl-optimization/60663
25572 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
25573 if elt->cost is MAX_COST for ASM_OPERANDS.
25574 (find_sets_in_insn): Fix up comment typo.
25575 (cse_insn): Don't set src_volatile for all non-volatile
25576 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
25577 or with "memory" clobber. Set elt->cost to MAX_COST
25578 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
25579 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
25581 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
25583 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
25586 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
25588 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
25589 libgcc/config/i386/elf-lib.h.
25591 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25594 * gcc.c (print_configuration): Don't print a blank line at the end
25596 (run_attempt): ... but here unstead.
25598 PR middle-end/64734
25599 * omp-low.c (scan_sharing_clauses): Don't ignore
25600 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
25601 on target data/update constructs.
25603 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
25606 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
25607 (DEBUG_RELOAD): Removed define.
25608 (m32c_limit_reload_class): Enable traces with if DEBUG0.
25609 (m32c_function_arg): Added a type cast.
25610 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
25611 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
25612 * config/m32c/bitops.md (andqi3_16): Likewise.
25613 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
25614 (push_a01_l): Likewise.
25616 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25619 * main.c (main): Construct toplev instances with init_signals=true.
25620 * toplev.c (general_init): Add param "init_signals", and use it to
25621 conditionalize the calls to signal and host_hooks.extra_signals.
25622 (toplev::toplev): Add param "init_signals".
25623 (toplev::main): When invoking general_init, pass m_init_signals
25624 to control whether signal-handlers are installed.
25625 * toplev.h (toplev::toplev): Add param "init_signals".
25626 (toplev::m_init_signals): New field.
25628 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25631 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
25632 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
25633 latter may be affected by the former (e.g. on i686).
25635 2015-01-23 Martin Liska <mliska@suse.cz>
25637 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
25638 false positive during profiledbootstrap.
25640 2015-01-23 Tom de Vries <tom@codesourcery.com>
25643 * lto-opts.c (lto_write_options): Output non-explicit conservative
25645 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
25646 (append_compiler_options): Pass -fopenacc through.
25648 2015-01-23 Tom de Vries <tom@codesourcery.com>
25651 * lto-opts.c (lto_write_options): Output non-explicit conservative
25653 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
25654 (append_compiler_options): Pass -fopenmp through.
25656 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25659 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
25662 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
25663 * diagnostic.def (DK_ICE_NOBT): New kind.
25664 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
25665 like DK_ICE, but never print backtrace.
25666 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
25667 (internal_error_no_backtrace): New function.
25668 * gcc.c (execute): Use internal_error_no_backtrace instead of
25671 2015-01-22 Jeff Law <law@redhat.com>
25674 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
25675 improve code density for small immediate to memory case.
25676 (insv): Better handle bitfield assignments when the field is
25677 being set to all ones.
25678 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
25681 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25682 Jakub Jelinek <jakub@redhat.com>
25684 PR middle-end/64729
25685 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
25686 for !TARGET_LIBC_PROVIDES_SSP version and
25687 -fstack-protector-{all,strong,explicit} otherwise.
25688 * config/freebsd.h (LINK_SSP_SPEC): Handle
25689 -fstack-protector-{strong,explicit}.
25691 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
25692 H.J. Lu <hongjiu.lu@intel.com>
25695 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
25698 2015-01-22 Wei Mi <wmi@google.com>
25700 PR rtl-optimization/64557
25701 * dse.c (record_store): Call get_addr for mem_addr.
25702 (check_mem_read_rtx): Likewise.
25704 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
25706 * fold-const.c (const_binop): Add early return for non-tcc_binary.
25708 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
25710 * toplev.c (init_local_tick): Process the failure when read
25711 fails for random_seed.
25713 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
25714 'pretty_name' to avoid memory overflow.
25716 2015-01-22 Richard Biener <rguenther@suse.de>
25718 PR middle-end/64728
25719 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
25720 abnormal coalescing on undefined SSA names.
25722 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
25726 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
25728 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
25730 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
25732 PR middle-end/63325
25733 * fold-const.c (fold_checksum_tree): Don't include value of
25734 expr->decl_with_vis.symtab_node in the checksum.
25736 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25738 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
25740 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
25743 * gcc.c (insert_comments): New function.
25744 (try_generate_repro): Call it.
25745 (append_text): Removed.
25747 2015-01-22 Richard Biener <rguenther@suse.de>
25749 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
25750 with IL incompatible options. Properly honor user optimize
25753 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
25755 PR rtl-optimization/64682
25756 * combine.c (distribute_notes): When moving a death note for
25757 a register that is set in the new I2, make sure to put it
25758 before that new I2.
25760 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
25762 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
25763 not TARGET_DEFAULT.
25765 2015-01-21 Jakub Jelinek <jakub@redhat.com>
25768 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
25769 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
25770 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
25773 * doc/invoke.texi (-fsanitize=vptr): Document.
25775 PR rtl-optimization/62078
25776 * dse.c: Include cfgcleanup.h.
25777 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
25778 anything call purge_all_dead_edges and cleanup_cfg at the end
25781 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
25783 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
25786 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25788 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
25791 2015-01-21 David Sherwood <david.sherwood@arm.com>
25792 Tejas Belagod <Tejas.Belagod@arm.com>
25794 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
25795 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
25796 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
25799 2015-01-21 David Sherwood <david.sherwood@arm.com>
25800 Tejas Belagod <Tejas.Belagod@arm.com>
25802 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
25803 (aarch64_reverse_mask): New decls.
25804 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
25805 (insn_count): New mode_attr.
25806 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
25807 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
25808 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
25809 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
25810 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
25811 (aarch64_simd_st4): New patterns.
25812 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
25813 (aarch64_reverse_mask): New functions.
25815 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
25817 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
25819 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
25820 addressing modes for BE.
25821 (aarch64_print_operand): Add 'R' specifier.
25822 (aarch64_simd_disambiguate_copy): Delete.
25823 (aarch64_simd_emit_reg_reg_move): New function.
25824 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
25825 in define_splits for structural moves.
25826 (mov<mode>): Use less restrictive predicates.
25827 (*aarch64_mov<mode>): Simplify and only allow for LE.
25828 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
25830 2015-01-21 Alan Hayward <alan.hayward@arm.com>
25832 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
25834 2015-01-21 Richard Henderson <rth@redhat.com>
25837 * ccmp.c (used_in_cond_stmt_p): Remove.
25838 (expand_ccmp_expr): Don't use it.
25840 2015-01-21 Nick Clifton <nickc@redhat.com>
25842 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
25845 2015-01-21 Richard Biener <rguenther@suse.de>
25847 PR middle-end/64313
25848 * tree-core.h (builtin_info, builtin_info_type): Turn from
25849 an object with two arrays into an array of an object with
25850 decl and two flags, implicit_p and declared_p.
25851 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
25852 set_builtin_decl, set_builtin_decl_implicit_p,
25853 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
25854 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
25855 * builtins.c (builtin_info): Adjust.
25856 * gimplify.c (gimplify_addr_expr): References to builtins
25857 that have been declared by the user makes them eligible for
25858 use by the compiler. Call set_builtin_decl_implicit_p on them.
25860 2015-01-20 Jeff Law <law@redhat.com>
25863 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
25864 allow pc-relative addresses in operand predicates or constraints.
25866 2015-01-21 Bin Cheng <bin.cheng@arm.com>
25868 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
25869 neon on aarch32 processors for stringops.
25871 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25874 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
25876 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25879 * ipa-inline.c: Include lto-streamer.h
25880 (report_inline_failed_reason): Output source file differences and
25881 flags on optimization/target node mismatch.
25882 (can_inline_edge_p): Consider caller to be the outer inline function;
25883 be less restrictive about matching opimize and optimize_size attributes.
25884 (inline_account_function_p): Break out from ...
25885 (inline_small_functions): ... here.
25886 * ipa-inline-transform.c (clone_inlined_nodes): Use
25887 inline_account_function_p.
25888 (inline_call): Use optimize attribution; use inline_account_function_p.
25889 (inline_transform): Use opt_for_fn.
25890 * ipa-inline.h (inline_account_function_p): Declare.
25892 2015-01-20 Jakub Jelinek <jakub@redhat.com>
25895 * dwarf2out.c (decl_piece_node): Don't put bitsize into
25896 mode if bitsize <= 0.
25897 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
25898 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
25899 sizes and positions.
25901 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
25903 * config/nios2/nios2.c (nios2_asm_file_end): Implement
25904 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
25906 (TARGET_ASM_FILE_END): Define.
25908 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25910 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
25911 (struct tune_params): Use the enum.
25912 * arm.c (arm_*_tune): Update.
25913 (arm_option_override): Update.
25915 2015-01-20 Richard Biener <rguenther@suse.de>
25918 * ipa-reference.c (add_static_var): Inline ...
25919 (analyze_function): ... here after splitting out from ...
25920 (is_proper_for_analysis): ... this.
25922 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
25925 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
25926 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
25927 replace the conditional with it's true branch.
25928 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
25929 (arm_lra_p): Remove.
25931 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
25933 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
25935 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25937 * config/tilegx/mul-tables.c: Move symtab.h include after
25938 coretypes.h include.
25939 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
25940 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
25941 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
25942 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
25943 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
25945 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
25949 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
25951 PR rtl-optimization/64081
25952 * loop-iv.c (def_pred_latch_p): New function.
25953 (latch_dominating_def): Allow specific cases with non-single
25955 (iv_get_reaching_def): Likewise.
25956 (check_complex_exit_p): New function.
25957 (check_simple_exit): Use check_complex_exit_p to allow certain cases
25958 with exits not executing on any iteration.
25960 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25963 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
25964 to set branch cost.
25966 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25969 * i386.c (gate): Check flag_expensive_optimizations and
25971 (ix86_option_override_internal): Drop optimize_size condition
25972 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
25973 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
25974 MASK_PREFER_AVX128.
25975 (ix86_avx256_split_vector_move_misalign,
25976 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
25977 * sse.md (all uses of TARGET_PREFER_AVX128): Add
25978 optimize_insn_for_speed_p check.
25980 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
25982 * config/mips/mips.h (FP_ASM_SPEC): New define.
25983 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
25986 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
25989 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
25990 nullptr for insn when reaching the first insn.
25991 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
25992 (sh_insn_operands_modified_between_p): Add nullptr check.
25993 (sh_find_extending_set_of_reg): Fix log message. Don't accept
25994 sign extending mem load if the insn contains any UNSPEC or
25997 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25999 * params.def (inline-unit-growth): Drop to 15%.
26000 * invoke.texi (inline-unit-growth): Document change.
26002 2015-01-19 Martin Liska <mliska@suse.cz>
26005 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
26006 function for second argument of OBJ_TYPE_REF.
26008 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26011 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
26012 whether function is an alias.
26014 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26016 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
26019 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
26021 PR rtl-optimization/64671
26022 * lra-remat.c (operand_to_remat): Don't consider jump and call
26025 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
26028 * config/rs6000/default64.h: Include rs6000-cpus.def.
26029 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
26030 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
26031 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
26033 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
26035 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
26036 pseudo-op to specify assembler dialect.
26038 2015-01-19 Martin Liska <mliska@suse.cz>
26041 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
26042 Handle safe potentially removed nodes during filtering.
26044 2015-01-19 Martin Liska <mliska@suse.cz>
26046 * doc/extend.texi (no_icf): Add new attribute description.
26047 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
26048 where the pass attempts to merge a function with no_icf attribute.
26050 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26053 * doc/md.texi (ARM Options): Document register constraints.
26055 2015-01-19 Jiong Wang <jiong.wang@arm.com>
26056 Andrew Pinski <apinski@cavium.com>
26059 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
26060 (ashl<mode>3): Don't expand if operands[2] is not constant.
26062 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26065 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
26066 Match xor-and-xor RTL pattern.
26068 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
26070 PR rtl-optimization/64081
26071 * loop-iv.c (def_pred_latch_p): New function.
26072 (latch_dominating_def): Allow specific cases with non-single
26074 (iv_get_reaching_def): Likewise.
26075 (check_complex_exit_p): New function.
26076 (check_simple_exit): Use check_complex_exit_p to allow certain cases
26077 with exits not executing on any iteration.
26079 2015-01-19 Jakub Jelinek <jakub@redhat.com>
26081 * common.opt (fgraphite): Fix a typo.
26083 2015-01-19 Felix Yang <felix.yang@huawei.com>
26085 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
26087 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
26088 uminp, smax_nanp, smin_nanp): New builtins.
26089 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
26090 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
26091 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
26092 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
26093 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
26094 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
26095 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
26096 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
26097 vpminnms_f32): Rewrite using builtin functions.
26099 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
26102 * omp-low.c (offload_symbol_decl): Remove variable.
26103 (get_offload_symbol_decl): Remove function.
26104 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
26105 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
26106 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
26107 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
26108 BUILT_IN_GOACC_UPDATE don't pass it at all.
26110 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
26112 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
26115 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
26117 * ipa-chkp.c (chkp_produce_thunks): Add early param
26118 to split thunks production into two passes. Keep
26119 'always_inline' function bodies after the first pass.
26120 (pass_data_ipa_chkp_early_produce_thunks): New.
26121 (pass_ipa_chkp_early_produce_thunks): New.
26122 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
26123 chkp_produce_thunks signature.
26124 (make_pass_ipa_chkp_early_produce_thunks): New.
26125 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
26126 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
26127 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
26129 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26131 * cgraph.c (cgraph_node::dump): Dump profile flags.
26133 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
26136 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
26137 reg appear first in the parallel.
26139 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26141 * ipa-reference.c (set_reference_optimization_summary,
26142 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
26144 (ignore_module_statics): New static var.
26145 (propagate_bits): If ipa-reference is disabled, do not look into local
26147 (analyze_function): Disable analysis when ipa_reference is disabled.
26148 (generate_summary): Do not dump when reference is disabled;
26149 collect vars accessed from functions with ipa-reference disabled.
26150 (get_read_write_all_from_node): When ipa-reference is disabled, use the
26152 (gate): Enable for LTO.
26153 (ignore_edge_p): New function.
26154 (propagate): Skip functions w/o ipa-reference analysis.
26155 * optc-save-gen.awk: Handle optimize_debug correctly.
26156 * opth-gen.awk: Likewise.
26157 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
26158 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
26159 fira-share-save-slots, fira-share-spill-slots,
26160 fmodulo-sched-allow-regmoves, fpartial-inlining,
26161 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
26162 ftracer, ftree-parallelize-loops, fassociative-math,
26163 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
26165 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
26166 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
26168 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
26171 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26174 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
26176 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
26178 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
26180 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
26181 Remove duplicate option listings.
26183 2015-01-18 Felix Yang <felix.yang@huawei.com>
26185 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
26186 (autofdo_source_profile::get_callsite_total_count,
26187 function_instance::get_function_instance_by_decl,
26188 string_table::get_index, string_table::get_index_by_decl,
26189 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
26190 Fix comment typos. Reformatting and minor code rearrangement.
26192 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26194 * config/rs6000/rs6000.md (probe_stack): Delete.
26195 (probe_stack_address): New.
26197 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26199 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
26200 to test for 32-bit ABIs, not !TARGET_POWERPC64.
26202 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26204 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
26205 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
26206 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
26208 (rs6000_libcall_value): Use the new function.
26210 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
26212 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
26214 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
26216 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
26217 implement a more precise life analysis for it during backward scan.
26219 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
26221 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
26223 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
26225 PR rtl-optimization/52773
26226 * calls.c (emit_library_call_value): When pushing arguments use
26227 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
26228 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
26229 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
26231 2015-01-17 Jeff Law <law@redhat.com>
26233 PR rtl-optimization/32790
26234 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
26235 not ZERO_EXTEND in SET_DESTs.
26237 2015-01-17 Alan Modra <amodra@gmail.com>
26239 * cprop.c (do_local_cprop): Revert last change.
26241 2015-01-16 DJ Delorie <dj@redhat.com>
26242 Nick Clifton <nickc@redhat.com>
26244 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
26245 (addhi3_real): Likewise. Fix [HL+0] syntax.
26246 (subqi3_real): Likewise.
26247 (subhi3_real): Likewise.
26248 (cbranchqi4_real): Likewise. Allow saddr,#imm.
26249 (cbranchhi4_real): Likewise.
26250 (cbranchhi4_real_inverted): Likewise.
26251 (cbranchsi4_real_lt): Likewise.
26252 (cbranchsi4_real_ge): Likewise.
26253 (cbranchsi4_real_ge): Likewise.
26254 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
26255 (sub<mode>3_virt): Likewise.
26256 (cbranchqi4_virt): Likewise.
26257 (cbranchhi4_virt): Likewise.
26258 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
26259 always use '[reg+imm]' even when imm is zero.
26260 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
26261 (rl78_general_operand): New.
26262 (rl78_nonimmediate_operand): New.
26263 (rl78_nonfar_operand): Use them.
26264 (rl78_nonfar_nonimm_operand): Likewise.
26265 (rl78_stack_based_mem): Fix.
26266 * config/rl78/constraints.md (Ibqi): New.
26271 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
26272 (iorqi3): Likewise.
26273 (xorqi3): Likewise.
26274 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
26276 * config/rl78/constrains (Qs8): New constraint.
26277 * config/rl78/rl78.c (rl78_flags_already_set): New function.
26278 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
26279 * config/rl78/rl78-real.md (update_Z): New attribute.
26280 Update patterns to set it.
26281 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
26282 shorter compare and branch sequence can be used.
26283 (cbranchhi4_real): Likewise.
26284 (cbranchhi4_real_inverted): Likewise.
26286 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
26287 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
26289 * config/rl78/rl78.c (rl78_get_name_encoding): New.
26290 (rl78_option_override): Allow -mes0 only if C.
26291 (characterize_address): Support subregs of symbol_refs.
26292 (rl78_addr_space_address_mode): Move. Add __near.
26293 (rl78_far_p): Likewise.
26294 (rl78_addr_space_pointer_mode): Likewise.
26295 (rl78_as_legitimate_address): Likewise.
26296 (rl78_addr_space_subset_p): Likewise.
26297 (rl78_addr_space_convert): Likewise.
26298 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
26299 symbols with -mes0.
26300 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
26302 (rl78_alloc_physical_registers_op1): Change logic to prefer
26303 symbol[BC] addressing.
26304 (frodata_section): New.
26305 (rl78_asm_init_sections): Initialize it.
26306 (rl78_select_section): Put __far readonly symbols in .frodata.
26307 (rl78_make_type_far): New.
26308 (rl78_insert_attributes): Force all readonly symbols to be
26310 (rl78_asm_out_integer): New.
26311 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
26312 * config/rl78/rl78.opt (-mes0): New.
26314 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
26315 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
26316 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
26317 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
26318 (rl78_saddr_p): New.
26319 (rl78_output_aligned_common): New.
26320 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
26321 (rl78_handle_saddr_attribute): New.
26322 (rl78_handle_naked_attribute): New.
26323 (rl78_attribute_table): Add saddr.
26324 (rl78_print_operand_1): Don't print '!' on saddr operands.
26325 (rl78_print_operand_1): Strip encodings.
26327 (rl78_strip_name_encoding): New.
26328 (rl78_attrlist_to_encoding): New.
26329 (rl78_encode_section_info): New.
26330 (rl78_asm_init_sections): New.
26331 (rl78_select_section): New.
26332 (rl78_output_labelref): New.
26333 (rl78_output_aligned_common): New.
26334 (rl78_asm_out_integer): New.
26335 (rl78_asm_ctor_dtor): New.
26336 (rl78_asm_constructor): New.
26337 (rl78_asm_destructor): New.
26339 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
26340 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
26341 (transcode_memory_rtx): Update.
26342 (rl78_expand_epilogue): Use A_REG instead of 0.
26344 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26346 * config/arm/arm-protos.h (struct tune_params): New field
26347 sched_autopref_queue_depth.
26348 * config/arm/arm.c (sched-int.h): Include header.
26349 (arm_first_cycle_multipass_dfa_lookahead_guard,)
26350 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
26351 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
26352 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
26353 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
26354 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
26355 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
26356 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
26357 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
26358 * config/arm/t-arm (arm.o): Update.
26359 * haifa-sched.c (update_insn_after_change): Update.
26360 (rank_for_schedule): Use auto-prefetcher model, if requested.
26361 (autopref_multipass_init): New static function.
26362 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
26363 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
26364 variable for debug dumps.
26365 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
26366 (autopref_multipass_dfa_lookahead_guard): New global function that
26367 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
26368 (init_h_i_d): Update.
26369 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
26370 * sched-int.h (enum autopref_multipass_data_status): New const enum.
26371 (autopref_multipass_data_): Structure for auto-prefetcher data.
26372 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
26373 (struct _haifa_insn_data:autopref_multipass_data): New field.
26374 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
26375 (autopref_multipass_dfa_lookahead_guard): Declare.
26377 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26379 * rtlanal.c (get_base_term): Handle SCRATCH.
26381 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26383 * config/aarch64/aarch64.c
26384 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
26385 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
26387 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
26388 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
26390 2015-01-17 Alan Modra <amodra@gmail.com>
26392 * cprop.c (do_local_cprop): Disallow replacement of fixed
26395 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26398 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
26401 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
26403 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
26404 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
26406 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26408 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
26409 * config/arm/thumb1.md: ... Here.
26411 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26413 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
26414 TImode for TARGET_32BIT.
26416 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26418 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
26419 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
26421 (rs6000_abi_word_mode): New function.
26423 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26425 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
26426 instead of UNITS_PER_WORD to describe the size of stack slots.
26428 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26430 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
26431 as rs6000_promote_function_mode. Move comment to there.
26432 (rs6000_promote_function_mode): New function.
26434 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26436 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
26437 -mpowerpc64 is active.
26439 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26441 PR middle-end/64353
26442 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
26445 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
26447 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
26448 introduced in revision 219724.
26450 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26451 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26454 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
26455 destination is not a GP reg.
26456 (*movdi_aarch64): Likewise.
26458 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
26461 * config/rs6000/default64.h: Revert ISA change.
26463 2015-01-16 Richard Biener <rguenther@suse.de>
26465 PR middle-end/64614
26466 * tree-ssa-uninit.c: Include tree-cfg.h.
26467 (MAX_SWITCH_CASES): New define.
26468 (convert_control_dep_chain_into_preds): Handle switch statements.
26469 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
26470 (normalize_one_pred_1): Do not split bit-manipulations.
26473 2015-01-16 Richard Biener <rguenther@suse.de>
26475 PR tree-optimization/64568
26476 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
26477 complex load rewriting for TARGET_MEM_REFs.
26479 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
26481 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
26483 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
26486 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
26488 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
26489 (aarch64_lra_p): Remove.
26491 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26494 * ipa-chkp.h (chkp_instrumentable_p): New.
26495 * ipa-chkp.c: Include tree-inline.h.
26496 (chkp_instrumentable_p): New.
26497 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
26498 Fix processing of not instrumentable functions.
26499 (chkp_versioning): Use chkp_instrumentable_p. Warn about
26500 not instrumentable functions.
26501 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
26502 chkp_instrumentable_p.
26503 * tree-inline.h (copy_forbidden): New.
26504 * tree-inline.c (copy_forbidden): Not static anymore.
26506 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26508 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
26511 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
26513 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
26514 type OP_OUT to OP_INOUT.
26516 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
26518 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
26519 (high x) y) to y if x and y have the same base.
26521 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
26523 * config/arm/cortex-a57.md: New.
26524 * config/aarch64/aarch64.md: Include it.
26525 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
26526 * config/aarch64/aarch64-tune.md: Regenerate.
26528 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
26531 * ccmp.c (expand_ccmp_next): New function.
26532 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
26533 and compare insn sequence.
26534 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
26535 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
26536 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
26537 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
26538 (*ccmp_ior): Changed to ccmp_ior<mode>.
26539 (cmp<mode>): New pattern.
26540 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
26542 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
26544 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
26546 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
26547 _mm256_bsrli_epi128): New.
26548 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
26550 2015-01-15 Jiong Wang <jiong.wang@arm.com>
26552 * expmed.c (store_bit_field_using_insv): Improve warning message.
26553 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
26555 2015-01-15 Jiong Wang <jiong.wang@arm.com>
26557 PR rtl-optimization/64011
26558 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
26559 there is partial overflow.
26561 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26563 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
26565 (nds32_expand_epilogue_v3pop): Likewise.
26566 * config/nds32/nds32.md (sibcall): Define this for sibling call
26568 (sibcall_register): Likewise.
26569 (sibcall_immediate): Likewise.
26570 (sibcall_value): Likewise.
26571 (sibcall_value_register): Likewise.
26572 (sibcall_value_immediate): Likewise.
26573 (sibcall_epilogue): Likewise.
26574 (epilogue): Pass false to indicate this is not a sibcall epilogue.
26575 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
26576 (nds32_expand_epilogue_v3pop): Likewise.
26578 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26580 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
26581 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
26582 (return_internal): New.
26583 (return): Define this named pattern.
26584 (simple_return): Define this named pattern.
26585 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
26586 pattern instead of unspec_volatile_func_return.
26587 (nds32_expand_epilogue_v3pop): Likewise.
26588 (nds32_can_use_return_insn): New function.
26590 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26592 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
26593 * config/nds32/nds32.md (pop25return): New.
26594 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
26595 pop25return pattern.
26597 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26599 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
26600 -mforbid-fp-as-gp, and -mex9 options.
26602 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26604 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
26605 remove -mgp-direct option.
26607 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26609 * doc/invoke.texi (--param early-inlining-insns): Update default value.
26610 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
26612 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26614 * ipa-inline.c (inline_small_functions): Work around hints
26617 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
26620 * doc/invoke.texi (Option Summary): Document new Nios II
26622 (Nios II Options): Likewise.
26623 * config/nios2/nios2.opt: Add -mgpopt= option support.
26624 Modify existing -mgpopt and -mno-gpopt options to be aliases.
26625 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
26626 * config/nios2/nios2.c (nios2_option_override): Adjust
26627 -mgpopt defaulting.
26628 (nios2_in_small_data_p): Return true for explicit small data
26629 sections even with -G0.
26630 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
26633 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26636 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
26638 (inline_call): Fix removal of aliases.
26640 2015-01-15 Jakub Jelinek <jakub@redhat.com>
26642 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
26643 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
26644 * opts.c (common_handle_option): Add -fsanitize=vptr.
26645 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
26646 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
26647 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
26648 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
26649 (ubsan_expand_vptr_ifn): New prototype.
26650 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
26651 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
26652 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
26653 expand_LOOP_VECTORIZED): Make argument nameless, remove
26655 (expand_UBSAN_VPTR): New function.
26656 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
26658 (UBSAN_VPTR): New internal function.
26659 * sanopt.c (tree_map_traits): Renamed to ...
26660 (sanopt_tree_map_traits): ... this.
26661 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
26662 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
26663 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
26664 (maybe_optimize_ubsan_vptr_ifn): New function.
26665 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
26666 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
26668 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
26669 internal calls like pure functions for aliasing, even when they
26670 have other side-effects that prevent making them ECF_PURE.
26671 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
26672 (ubsan_expand_vptr_ifn): New function.
26674 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
26676 PR rtl-optimization/64110
26677 * stmt.c (parse_output_constraint): Process '^' and '$'.
26678 (parse_input_constraint): Ditto.
26679 * lra-constraints.c (process_alt_operands): Process the new
26681 * ira-costs.c (record_reg_classes): Process the new constraint
26683 * genoutput.c (indep_constraints): Add '^' and '$'.
26684 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
26685 * doc/md.texi: Add description of the new constraints.
26687 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
26688 Bernd Schmidt <bernds@codesourcery.com>
26689 Cesar Philippidis <cesar@codesourcery.com>
26690 James Norris <jnorris@codesourcery.com>
26691 Tom de Vries <tom@codesourcery.com>
26692 Ilmir Usmanov <i.usmanov@samsung.com>
26693 Dmitry Bocharnikov <dmitry.b@samsung.com>
26694 Evgeny Gavrin <e.gavrin@samsung.com>
26695 Jakub Jelinek <jakub@redhat.com>
26697 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
26698 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
26699 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
26700 New function types.
26701 * builtins.c: Include "gomp-constants.h".
26702 (expand_builtin_acc_on_device): New function.
26703 (expand_builtin, is_inexpensive_builtin): Handle
26704 BUILT_IN_ACC_ON_DEVICE.
26705 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
26707 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
26709 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
26710 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
26711 i386/intelmic-offload.h.
26712 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
26713 to libgomp and its dependencies.
26714 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
26715 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
26716 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
26717 * config/ia64/hpux.h (LIB_SPEC): Likewise.
26718 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26719 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
26720 * doc/generic.texi: Update for OpenACC changes.
26721 * doc/gimple.texi: Likewise.
26722 * doc/invoke.texi: Likewise.
26723 * doc/sourcebuild.texi: Likewise.
26724 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
26725 GF_OMP_FOR_KIND_OACC_LOOP.
26726 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
26727 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
26728 GF_OMP_TARGET_KIND_OACC_UPDATE,
26729 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
26731 * gimple.c: Update comments for OpenACC changes.
26732 * gimple.def: Likewise.
26733 * gimple.h: Likewise.
26734 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
26735 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
26736 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
26737 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
26738 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
26740 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
26741 * gimplify.c: Include "gomp-constants.h".
26742 Update comments for OpenACC changes.
26743 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
26744 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
26745 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
26746 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
26747 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
26748 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
26749 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
26750 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
26751 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
26753 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
26754 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
26755 OMP_CLAUSE_SET_MAP_KIND.
26756 (gimplify_oacc_cache): New function.
26757 (gimplify_omp_for): Handle OACC_LOOP.
26758 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
26760 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
26761 OACC_EXIT_DATA, OACC_UPDATE.
26762 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
26763 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
26764 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
26765 (gimplify_body): Consider flag_openacc next to flag_openmp.
26766 * lto-streamer-out.c: Include "gomp-constants.h".
26767 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
26768 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
26769 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
26770 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
26771 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
26772 (BUILT_IN_ACC_ON_DEVICE): New builtins.
26773 * omp-low.c: Include "gomp-constants.h".
26774 Update comments for OpenACC changes.
26775 (struct omp_context): Add reduction_map, gwv_below, gwv_this
26777 (extract_omp_for_data, use_pointer_for_field, install_var_field)
26778 (new_omp_context, delete_omp_context, scan_sharing_clauses)
26779 (create_omp_child_function, scan_omp_for, scan_omp_target)
26780 (check_omp_nesting_restrictions, lower_reduction_clauses)
26781 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
26782 Update for OpenACC changes.
26783 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
26784 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
26785 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
26786 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
26787 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
26788 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
26790 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26791 Handle GF_OMP_FOR_KIND_OACC_LOOP.
26792 (expand_omp_target, lower_omp_target): Handle
26793 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
26794 GF_OMP_TARGET_KIND_OACC_UPDATE,
26795 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
26796 GF_OMP_TARGET_KIND_OACC_DATA.
26797 (pass_expand_omp::execute, execute_lower_omp)
26798 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
26800 (offload_symbol_decl): New variable.
26801 (oacc_get_reduction_array_id, oacc_max_threads)
26802 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
26803 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
26804 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
26805 (oacc_gimple_assign, oacc_initialize_reduction_data)
26806 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
26808 (is_targetreg_ctx): Remove function.
26809 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
26810 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
26811 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
26812 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
26813 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
26814 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
26815 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
26816 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
26817 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
26818 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
26819 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
26820 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
26821 * tree-core.h: Update comments for OpenACC changes.
26822 (enum omp_clause_map_kind): Remove.
26823 (struct tree_omp_clause): Change type of map_kind member from enum
26824 omp_clause_map_kind to unsigned char.
26825 * tree-inline.c: Update comments for OpenACC changes.
26826 * tree-nested.c: Likewise. Include "gomp-constants.h".
26827 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
26828 (convert_tramp_reference_stmt, convert_gimple_call): Update for
26829 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
26830 OMP_CLAUSE_SET_MAP_KIND.
26831 * tree-pretty-print.c: Include "gomp-constants.h".
26832 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
26833 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
26834 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
26835 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
26836 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
26837 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
26838 instead of OMP_CLAUSE_MAP_*.
26839 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
26840 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
26841 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
26842 * tree-streamer-in.c: Include "gomp-constants.h".
26843 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
26844 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
26845 * tree-streamer-out.c: Include "gomp-constants.h".
26846 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
26848 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
26849 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
26850 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
26851 * tree.c (omp_clause_num_ops): Update accordingly.
26852 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
26854 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
26855 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
26856 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
26857 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
26858 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
26859 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
26860 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
26861 (OMP_CLAUSE_SET_MAP_KIND): New macro.
26862 * varpool.c (varpool_node::get_create): Consider flag_openacc next
26864 * config/i386/intelmic-offload.h: New file.
26865 * config/nvptx/offload.h: Likewise.
26867 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26869 * explow.h: Remove duplicate contents.
26870 * dojump.h: Likewise.
26872 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
26874 * arm.c (arm_xgene_tune): Add default initializer for instruction
26877 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26881 * ipa.c (symbol_table::remove_unreachable_nodes):
26882 Do not put abstract origins into boundary.
26884 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
26886 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
26887 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
26889 2015-01-15 Steve Ellcey <sellcey@mips.com>
26891 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
26892 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
26893 builtins.def, and chkp-builtins.def.
26895 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
26897 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
26900 2015-01-15 Richard Biener <rguenther@suse.de>
26902 PR tree-optimization/61743
26903 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
26904 information on PHIs for some simple cases.
26906 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
26908 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
26910 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
26911 * config/arm/arm-cores.def (xgene1): New entry.
26912 * config/arm/arm-tables.opt: Regenerate.
26913 * config/arm/arm-tune.md: Regenerate.
26914 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
26916 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
26918 * tree-if-conv.c: Include hash-map.h.
26919 (aggressive_if_conv): New variable.
26920 (fold_build_cond_expr): Add simplification of non-zero condition.
26921 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
26922 destination block is not always executed.
26923 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
26924 than two predecessors if AGGRESSIVE_IF_CONV is true.
26925 (if_convertible_stmt_p): Fix commentary.
26926 (all_preds_critical_p): New function.
26927 (has_pred_critical_p): New function.
26928 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
26929 BB can have more than two predecessors and all incoming edges can be
26931 (predicate_bbs): Skip predication for loop exit block, use build2_loc
26932 to compute predicate for true edge.
26933 (find_phi_replacement_condition): Delete this function.
26934 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
26935 Allow interchange PHI arguments if EXTENDED is false.
26936 Change check that block containing reduction statement candidate
26937 is predecessor of phi-block since phi may have more than two arguments.
26938 (phi_args_hash_traits): New helper structure.
26939 (struct phi_args_hash_traits): New type.
26940 (phi_args_hash_traits::hash): New function.
26941 (phi_args_hash_traits::equal_keys): New function.
26942 (gen_phi_arg_condition): New function.
26943 (predicate_scalar_phi): Add handling of phi nodes with more than two
26944 arguments, delete COND and TRUE_BB arguments, insert body of
26945 find_phi_replacement_condition to predicate ordinary phi nodes.
26946 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
26947 delete call of find_phi_replacement_condition and invoke
26948 predicate_scalar_phi with two arguments.
26949 (insert_gimplified_predicates): Add assert that non-predicated block
26950 don't have statements to insert.
26951 (ifcvt_split_critical_edges): New function.
26952 (ifcvt_split_def_stmt): Likewise.
26953 (ifcvt_walk_pattern_tree): Likewise.
26954 (stmt_is_root_of_bool_pattern): Likewise.
26955 (ifcvt_repair_bool_pattern): Likewise.
26956 (ifcvt_local_dce): Likewise.
26957 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
26958 is copy of inner or outer loop force_vectorize field, invoke
26959 ifcvt_split_critical_edges, ifcvt_local_dce and
26960 ifcvt_repair_bool_pattern for aggressive if-conversion.
26962 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
26964 * config/aarch64/aarch64.md: Include xgene1.md.
26965 * config/aarch64/xgene1.md: New file.
26967 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
26969 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
26970 xgene1 (APM XGene-1) core definition.
26971 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
26972 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
26973 * doc/invoke.texi: Document -mcpu=xgene1.
26975 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26977 * dojump.h: New header file.
26978 * explow.h: Likewise.
26979 * expr.h: Remove includes.
26980 Move expmed.c prototypes to expmed.h.
26981 Move dojump.c prototypes to dojump.h.
26982 Move alias.c prototypes to alias.h.
26983 Move explow.c prototypes to explow.h.
26984 Move calls.c prototypes to calls.h.
26985 Move emit-rtl.c prototypes to emit-rtl.h.
26986 Move varasm.c prototypes to varasm.h.
26987 Move stmt.c prototypes to stmt.h.
26988 (saved_pending_stack_adjust): Move to dojump.h.
26989 (adjust_address): Move to explow.h.
26990 (adjust_address_nv): Move to emit-rtl.h.
26991 (adjust_bitfield_address): Likewise.
26992 (adjust_bitfield_address_size): Likewise.
26993 (adjust_bitfield_address_nv): Likewise.
26994 (adjust_automodify_address_nv): Likewise.
26995 * explow.c (expr_size): Move to expr.c.
26996 (int_expr_size): Likewise.
26997 (tree_expr_size): Likewise.
26998 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26999 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27000 * genemit.c (main): Generate includes statistics.h, real.h,
27001 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
27003 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
27004 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
27005 explow.h, emit-rtl.h, stmt.h.
27006 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
27007 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
27008 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
27009 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
27010 emit-rtl.h, varasm.h, stmt.h.
27011 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
27012 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
27013 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
27014 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
27015 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27016 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
27017 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
27018 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
27019 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
27020 tm.h tree.h varasm.h vec.h wide-int.h.
27021 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27022 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27023 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
27024 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
27025 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
27026 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
27027 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
27028 * loop-iv.c: Likewise.
27029 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
27030 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
27031 statistics.h stmt.h tree.h varasm.h wide-int.h.
27032 * lra-constraints.c: Likewise.
27033 * lra-eliminations.c: Likewise.
27034 * lra-lives.c: Likewise.
27035 * lra-remat.c: Likewise.
27036 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27037 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
27038 statistics.h stmt.h tree.h varasm.h wide-int.h.
27039 * hw-doloop.c: Likewise.
27040 * ira-color.c: Likewise.
27041 * ira-emit.c: Likewise.
27042 * loop-doloop.c: Likewise.
27043 * loop-invariant.c: Likewise.
27044 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27045 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
27046 statistics.h stmt.h tree.h varasm.h wide-int.h.
27047 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
27048 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
27049 statistics.h stmt.h tree.h varasm.h wide-int.h.
27050 * combine-stack-adj.c: Likewise.
27053 * ifcvt.c: Likewise.
27054 * ira-costs.c: Likewise.
27055 * jump.c: Likewise.
27056 * lra-coalesce.c: Likewise.
27057 * lra-spills.c: Likewise.
27058 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27059 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
27060 stmt.h varasm.h wide-int.h.
27061 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27062 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27064 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
27065 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
27066 statistics.h stmt.h varasm.h wide-int.h.
27067 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
27068 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
27069 varasm.h wide-int.h.
27070 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
27071 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27072 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
27073 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
27074 statistics.h stmt.h.
27075 * config/tilepro/tilepro.c: Likewise.
27076 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
27077 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
27078 * config/pdp11/pdp11.c: Likewise.
27079 * config/xtensa/xtensa.c: Likewise.
27080 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
27081 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27083 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27084 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27085 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
27086 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27087 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27088 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
27089 * rtl-chkp.c: Likewise.
27090 * tree-chkp-opt.c: Likewise.
27091 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
27092 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27093 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
27094 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27095 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27096 statistics.h stmt.h.
27097 * tree-vect-data-refs.c: Likewise.
27098 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
27099 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27100 rtl.h statistics.h stmt.h varasm.h.
27101 * internal-fn.c: Likewise.
27102 * ipa-icf-gimple.c: Likewise.
27103 * lto-section-out.c: Likewise.
27104 * tree-data-ref.c: Likewise.
27105 * tree-nested.c: Likewise.
27106 * tree-outof-ssa.c: Likewise.
27107 * tree-predcom.c: Likewise.
27108 * tree-pretty-print.c: Likewise.
27109 * tree-scalar-evolution.c: Likewise.
27110 * tree-ssa-strlen.c: Likewise.
27111 * tree-vect-loop.c: Likewise.
27112 * tree-vect-patterns.c: Likewise.
27113 * tree-vect-slp.c: Likewise.
27114 * tree-vect-stmts.c: Likewise.
27115 * tsan.c: Likewise.
27116 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27117 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
27119 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
27120 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27121 statistics.h stmt.h varasm.h.
27122 * loop-unroll.c: Likewise.
27123 * ubsan.c: Likewise.
27124 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
27125 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
27127 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27128 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
27129 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
27130 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
27131 statistics.h stmt.h.
27132 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
27133 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
27134 statistics.h stmt.h varasm.h.
27135 * gimple-match-head.c: Likewise.
27136 * lto-cgraph.c: Likewise.
27137 * lto-section-in.c: Likewise.
27138 * lto-streamer-in.c: Likewise.
27139 * lto-streamer-out.c: Likewise.
27140 * tree-affine.c: Likewise.
27141 * tree-cfg.c: Likewise.
27142 * tree-cfgcleanup.c: Likewise.
27143 * tree-if-conv.c: Likewise.
27144 * tree-into-ssa.c: Likewise.
27145 * tree-ssa-alias.c: Likewise.
27146 * tree-ssa-copyrename.c: Likewise.
27147 * tree-ssa-dse.c: Likewise.
27148 * tree-ssa-forwprop.c: Likewise.
27149 * tree-ssa-live.c: Likewise.
27150 * tree-ssa-math-opts.c: Likewise.
27151 * tree-ssa-pre.c: Likewise.
27152 * tree-ssa-sccvn.c: Likewise.
27153 * tree-tailcall.c: Likewise.
27154 * tree-vect-generic.c: Likewise.
27155 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27156 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
27157 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27158 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
27159 * varasm.c: Likewise.
27160 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27161 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
27163 * init-regs.c: Likewise.
27165 * omp-low.c: Likewise.
27166 * stack-ptr-mod.c: Likewise.
27167 * tree-ssa-reassoc.c: Likewise.
27168 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27169 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
27171 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27172 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
27173 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27174 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
27175 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27176 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
27177 * tree-ssa-phiopt.c: Likewise.
27178 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27179 fixed-value.h hashtab.h real.h statistics.h stmt.h.
27180 * config/fr30/fr30.c: Likewise.
27181 * config/frv/frv.c: Likewise.
27182 * expr.c: Likewise.
27183 * final.c: Likewise.
27184 * optabs.c: Likewise.
27185 * passes.c: Likewise.
27186 * simplify-rtx.c: Likewise.
27187 * stmt.c: Likewise.
27188 * toplev.c: Likewise.
27189 * var-tracking.c: Likewise.
27190 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27191 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27192 * lower-subreg.c: Likewise.
27193 * postreload-gcse.c: Likewise.
27195 * reginfo.c: Likewise.
27196 * store-motion.c: Likewise.
27197 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27198 fixed-value.h hashtab.h real.h stmt.h varasm.h.
27199 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27200 fixed-value.h hashtab.h statistics.h stmt.h.
27201 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27202 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27203 * except.c: Likewise.
27204 * explow.c: Likewise.
27205 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27206 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
27208 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27209 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
27210 * tree-ssa-structalias.c: Likewise.
27211 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27212 fixed-value.h insn-config.h real.h statistics.h.
27213 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27214 fixed-value.h insn-config.h real.h statistics.h stmt.h.
27215 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27216 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
27217 * cfgbuild.c: Likewise.
27218 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27219 fixed-value.h real.h rtl.h statistics.h stmt.h.
27220 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27221 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27222 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27223 fixed-value.h real.h statistics.h stmt.h.
27224 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27225 fixed-value.h real.h statistics.h stmt.h varasm.h.
27226 * cprop.c: Likewise.
27227 * modulo-sched.c: Likewise.
27228 * postreload.c: Likewise.
27229 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
27230 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
27231 statistics.h stmt.h varasm.h.
27232 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
27233 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27234 rtl.h statistics.h stmt.h varasm.h.
27235 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
27236 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
27238 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
27239 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
27241 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
27242 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
27244 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
27245 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27246 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27247 function.h real.h statistics.h stmt.h varasm.h.
27248 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27249 insn-config.h real.h statistics.h stmt.h.
27250 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27251 statistics.h stmt.h.
27252 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
27253 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
27254 statistics.h stmt.h varasm.h.
27255 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
27256 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
27257 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27258 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
27259 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
27260 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27261 statistics.h stmt.h varasm.h.
27262 * ipa-polymorphic-call.c: Likewise.
27263 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
27264 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27265 statistics.h stmt.h.
27266 * config/c6x/c6x.c: Likewise.
27267 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
27268 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27269 statistics.h stmt.h varasm.h.
27270 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
27271 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
27273 * ipa-split.c: Likewise.
27274 * tree-eh.c: Likewise.
27275 * tree-ssa-dce.c: Likewise.
27276 * tree-ssa-loop-niter.c: Likewise.
27277 * tree-vrp.c: Likewise.
27278 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
27279 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
27281 * config/nds32/nds32-fp-as-gp.c: Likewise.
27282 * config/nds32/nds32-intrinsic.c: Likewise.
27283 * config/nds32/nds32-isr.c: Likewise.
27284 * config/nds32/nds32-md-auxiliary.c: Likewise.
27285 * config/nds32/nds32-memory-manipulation.c: Likewise.
27286 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27287 * config/nds32/nds32-predicates.c: Likewise.
27288 * config/nds32/nds32.c: Likewise.
27289 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
27290 fixed-value.h hashtab.h real.h statistics.h.
27291 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
27292 fixed-value.h hashtab.h real.h statistics.h stmt.h.
27293 * config/arm/arm.c: Likewise.
27294 * config/avr/avr.c: Likewise.
27295 * config/bfin/bfin.c: Likewise.
27296 * config/h8300/h8300.c: Likewise.
27297 * config/i386/i386.c: Likewise.
27298 * config/ia64/ia64.c: Likewise.
27299 * config/iq2000/iq2000.c: Likewise.
27300 * config/m32c/m32c.c: Likewise.
27301 * config/m32r/m32r.c: Likewise.
27302 * config/m68k/m68k.c: Likewise.
27303 * config/mcore/mcore.c: Likewise.
27304 * config/mep/mep.c: Likewise.
27305 * config/mips/mips.c: Likewise.
27306 * config/mn10300/mn10300.c: Likewise.
27307 * config/moxie/moxie.c: Likewise.
27308 * config/pa/pa.c: Likewise.
27309 * config/rl78/rl78.c: Likewise.
27310 * config/rx/rx.c: Likewise.
27311 * config/s390/s390.c: Likewise.
27312 * config/sh/sh.c: Likewise.
27313 * config/sparc/sparc.c: Likewise.
27314 * config/spu/spu.c: Likewise.
27315 * config/stormy16/stormy16.c: Likewise.
27316 * config/v850/v850.c: Likewise.
27317 * config/vax/vax.c: Likewise.
27318 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
27319 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27320 * config/msp430/msp430.c: Likewise.
27321 * predict.c: Likewise.
27322 * value-prof.c: Likewise.
27323 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
27324 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
27325 * config/microblaze/microblaze.c: Likewise.
27326 * config/nios2/nios2.c: Likewise.
27327 * config/rs6000/rs6000.c: Likewise.
27328 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27329 insn-config.h real.h rtl.h statistics.h stmt.h.
27330 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27331 insn-config.h real.h statistics.h stmt.h.
27332 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
27333 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
27334 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
27335 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27336 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
27337 fixed-value.h real.h statistics.h stmt.h.
27338 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
27339 fixed-value.h statistics.h stmt.h.
27340 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
27343 2015-01-15 Jakub Jelinek <jakub@redhat.com>
27345 * gengtype.c (create_user_defined_type): Workaround
27346 -Wmaybe-uninitialized false positives.
27347 * cse.c (fold_rtx): Likewise.
27348 * loop-invariant.c (gain_for_invariant): Likewise.
27350 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
27352 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
27353 set the memory attributes in all cases but clear MEM_EXPR if need be.
27355 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
27357 PR tree-optimization/64434
27358 * cfgexpand.c (reorder_operands): New function.
27359 (expand_gimple_basic_block): Insert call of reorder_operands if
27362 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
27364 * config/mips/micromips.md (*swp): Remove explicit parallel.
27365 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
27366 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
27367 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
27368 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
27369 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
27370 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
27371 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
27372 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
27373 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
27374 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
27375 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
27376 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
27377 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
27378 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
27379 (mips_wrdsp): Likewise.
27380 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
27382 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
27383 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
27384 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
27385 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
27386 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
27387 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
27388 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
27389 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
27390 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
27392 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27394 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
27395 (mips_print_operand): Support 'y' to print exact log2 in decimal
27397 * config/mips/mips.h (ISA_HAS_LSA): New define.
27398 (ISA_HAS_DLSA): Likewise.
27399 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
27400 * config/mips/predicates.md (const_immlsa_operand): New predicate.
27402 2015-01-15 Martin Liska <mliska@suse.cz>
27405 * optc-save-gen.awk: Add support for array types.
27407 2015-01-15 Richard Biener <rguenther@suse.de>
27409 PR middle-end/64365
27410 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
27411 for MEM_REF access functions with the same base can never partially
27414 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
27416 * common.opt: New option -fstack-protector-explicit.
27417 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
27418 (stack_protect_decl_phase): Handle stack_protect attribute for
27419 explicit stack protection requests.
27420 (expand_used_vars): Similarly.
27421 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
27422 * doc/extend.texi: Add documentation for "stack_protect" attribute.
27423 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
27425 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
27428 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
27430 (sh_extending_set_of_reg): New struct.
27431 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
27432 sh_remove_reg_dead_or_unused_notes): New Declarations.
27433 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
27434 sh_find_extending_set_of_reg, sh_split_tst_subregs,
27435 sh_extending_set_of_reg::use_as_extended_reg): New functions.
27436 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
27437 convert to insn_and_split and use new function sh_split_tst_subregs.
27439 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
27441 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
27443 (Optimization Options): Move -fuse-ld documentation to...
27444 (Link Options): ...here.
27446 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27448 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
27450 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
27451 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
27452 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
27453 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
27454 instead of ZR for the memory operand of LL/SC.
27455 (compare_and_swap_12, sync_add<mode>): Likewise.
27456 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
27457 (sync_new_<optab>_12, sync_nand_12): Likewise.
27458 (sync_old_nand_12, sync_new_nand_12): Likewise.
27459 (sync_sub<mode>, sync_old_add<mode>): Likewise.
27460 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
27461 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
27462 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
27463 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
27464 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
27465 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
27466 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
27467 * doc/md.texi (ZC): Update description.
27469 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
27471 * builtins.c (expand_builtin_atomic_exchange): Remove error when
27472 memory model is CONSUME.
27473 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
27474 expand_builtin_atomic_store): Change invalid memory model errors to
27476 (expand_builtin_atomic_clear): Change invalid model errors to warnings
27477 and issue warning for CONSUME.
27479 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
27481 * lto-cgraph: Update function comments for
27482 lto_symtab_encoder_encode_*.
27484 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
27486 * Makefile.in (site.exp): Do not set ENABLE_LTO.
27488 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
27490 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
27491 * lto-cgraph.c (select_what_to_stream): Remove argument, use
27492 lto_stream_offload_p instead.
27493 * lto-streamer.h (select_what_to_stream): Remove argument.
27494 * passes.c (ipa_write_summaries): Likewise.
27495 * tree-pass.h (ipa_write_summaries): Likewise.
27497 2015-01-14 Richard Biener <rguenther@suse.de>
27499 PR tree-optimization/59354
27500 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
27501 groups larger than the slp group size as having gaps.
27503 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
27505 PR middle-end/59448
27506 * builtins.c (get_memmodel): Promote consume to acquire always.
27508 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27511 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
27514 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27517 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
27519 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
27520 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
27521 AVX512VBMI, as it implies AVX512BW.
27523 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27526 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
27527 (vec_unpacks_hi_v16sf): Ditto.
27529 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27531 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
27534 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27536 * doc/invoke.texi (mapcs): Mention deprecation.
27537 (mapcs-frame): Likewise.
27539 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
27542 * config/arm/arm.c (callee_saved_reg_p): Define.
27543 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
27544 register is callee saved instead of !call_used_regs[reg].
27545 (thumb1_compute_save_reg_mask): Likewise.
27547 2015-01-14 Hale Wang <hale.wang@arm.com>
27549 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
27552 2015-01-14 Richard Biener <rguenther@suse.de>
27555 * tree-inline.c (insert_debug_decl_map): Check destination
27556 function MAY_HAVE_DEBUG_STMTS.
27557 (insert_init_debug_bind): Likewise.
27558 (insert_init_stmt): Remove redundant check.
27559 (remap_gimple_stmt): Drop debug stmts if the destination
27560 function has var-tracking assignments disabled.
27562 2015-01-14 Martin Liska <mliska@suse.cz>
27564 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
27565 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
27567 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27570 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
27571 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
27573 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27575 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
27576 level from an ARCH; do not inject the default.
27577 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
27578 MIPS_ISA_LEVEL_SPEC.
27579 (MIPS_ISA_NAN2008_SPEC): Update comment.
27580 (BASE_DRIVER_SELF_SPECS): Likewise.
27581 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
27582 MIPS_DEFAULT_ISA_LEVEL_SPEC.
27583 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
27584 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
27585 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
27587 2015-01-14 Richard Biener <rguenther@suse.de>
27589 PR tree-optimization/64493
27590 PR tree-optimization/64495
27591 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
27592 assign the proper vectorized PHI to the inner loop exit PHIs.
27594 2015-01-14 Joey Ye <joey.ye@arm.com>
27596 * config/arm/arm.c (arm_compute_save_reg_mask):
27597 Do not save lr in case of tail call.
27598 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
27600 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
27602 * tree-vrp.c (check_array_ref): Emit more warnings
27603 for warn_array_bounds >= 2.
27604 * common.opt: New option -Warray-bounds=.
27605 * doc/invoke.texi: Document -Warray-bounds=.
27607 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
27609 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
27610 (mforbid-fp-as-gp): Remove.
27612 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
27613 (nds32_symbol_load_store_p): Remove.
27614 (nds32_fp_as_gp_check_available): Clean up implementation.
27615 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
27617 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
27618 fp-as-gp and ex9 cases.
27620 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27622 * tree-profile.c (init_ic_make_global_vars): Drop workaround
27623 for bintuils bug 14342.
27624 (init_ic_make_global_vars): Likewise.
27625 (gimple_init_edge_profiler): Likewise.
27626 (gimple_gen_ic_func_profiler): Likewise.
27628 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27630 * ipa-inline.c (inline_small_functions): Swap the operands in
27633 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27636 * ipa-inline-analysis.c (node_growth_cache): Remove.
27637 (initialize_growth_caches): Do not initialize it.
27638 (free_growth_caches): Do not free it.
27639 (do_estimate_growth): Rename to ...
27640 (estimate_growth): ... this one; drop growth cache code.
27641 (growth_likely_positive): Always go the heuristics way.
27642 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
27643 (reset_edge_caches): Do not reset node growth.
27644 (heap_edge_removal_hook): Do not maintain cache.
27645 (inline_small_functions): Likewise; strenghten sanity check.
27646 (ipa_inline): Do not maintain caches.
27647 * ipa-inline.h (node_growth_cache): Remove.
27648 (do_estimate_growth): Remove to ...
27649 (estimate_growth): this one; remove inline version.
27650 (reset_node_growth_cache): Remove.
27652 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27655 * ipa-inline.c (inline_small_functions): Update callee keys after
27656 resolving speculation
27657 (inline_small_functions): Always check monotonicity of the queue.
27659 2015-01-13 Marek Polacek <polacek@redhat.com>
27661 PR middle-end/64391
27662 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
27664 2015-01-13 Jakub Jelinek <jakub@redhat.com>
27666 PR rtl-optimization/64286
27667 * ree.c (combine_reaching_defs): Move part of comment earlier,
27668 remove !SCALAR_INT_MODE_P check.
27669 (add_removable_extension): Don't add vector mode
27670 extensions if all uses of the source register aren't the same
27673 2015-01-13 Renlin Li <renlin.li@arm.com>
27675 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
27676 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
27678 2015-01-13 Martin Liska <mliska@suse.cz>
27680 * ipa-icf.c (sem_function::equals_private): Call new functions
27681 cl_target_option_print_diff and cl_optimization_print_diff.
27682 * optc-save-gen.awk (cl_target_option_print_diff): New function.
27683 (cl_optimization_print_diff): Likewise.
27684 * opth-gen.awk: Likewise.
27686 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
27688 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
27689 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
27690 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
27691 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
27692 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
27693 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
27695 2015-01-13 Andrew Pinski <apinski@cavium.com>
27697 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
27698 instead of src mode.
27700 2015-01-13 Richard Biener <rguenther@suse.de>
27703 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
27706 2015-01-13 Andrew Pinski <apinski@cavium.com>
27708 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
27710 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
27712 2015-01-13 Jakub Jelinek <jakub@redhat.com>
27714 PR middle-end/63974
27715 * cfgexpand.c (expand_computed_goto): Don't call
27716 convert_memory_address here.
27718 2015-01-13 Richard Biener <rguenther@suse.de>
27720 PR tree-optimization/64406
27721 * tree-loop-distibution.c (pass_loop_distribution::execute):
27722 Reset the SCEV hashtable if we distributed anything.
27724 2015-01-13 Richard Biener <rguenther@suse.de>
27726 PR tree-optimization/64404
27727 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
27728 SLP types for CSEd loads.
27730 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27732 PR tree-optimization/64436
27733 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
27734 merge of two symbolic numbers for a bitwise OR to ...
27735 (perform_symbolic_merge): This. Also fix computation of the range and
27736 end of the symbolic number corresponding to the result of a bitwise OR.
27738 2015-01-13 Richard Biener <rguenther@suse.de>
27740 PR tree-optimization/64568
27741 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
27742 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
27744 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27746 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
27747 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
27749 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27751 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
27752 target-specific symbol_ref flag.
27753 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
27754 resides in rodata section.
27755 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
27756 (nds32_encode_section_info): New function.
27758 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27760 * config/nds32/nds32.md (call): Use pseudo instruction bal which
27761 clobbers TA_REGNUM if large code model is specified.
27762 (call_register): Likewise.
27763 (call_immediate): Likewise.
27764 (call_value): Likewise.
27765 (call_value_register): Likewise.
27766 (call_value_immediate): Likewise.
27768 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27770 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
27771 (TARGET_CMODEL_MEDIUM): New macro.
27772 (TARGET_CMODEL_LARGE): New macro.
27773 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
27774 code model setting in assembly code.
27776 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27778 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27779 Remove MASK_GP_DIRECT flag.
27780 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
27781 one of the multilib default options.
27782 * config/nds32/nds32.opt (mgp-direct): Remove.
27783 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
27784 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
27786 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27788 * config/nds32/nds32.opt (mcmodel): Add new option.
27789 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
27790 to describe code model.
27792 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
27795 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
27797 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
27799 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
27800 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27801 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
27802 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
27803 __builtin_sh_set_fpscr.
27805 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
27807 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
27808 after a funtion name just to indicate it is a function.
27809 ([-fsanitize-undefined-trap-on-error]): Likewise.
27810 ([-fdbg-cnt=]): Likewise.
27811 ([-mmemcpy]): Likewise.
27812 ([-mflush-func]): Likewise.
27813 ([-msynci]): Likewise.
27815 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
27817 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
27820 2015-01-12 Jakub Jelinek <jakub@redhat.com>
27822 PR tree-optimization/64563
27823 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
27824 instead of != VR_VARYING.
27827 * config/i386/i386.c (ix86_expand_prologue): Add
27828 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
27830 PR tree-optimization/64454
27831 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
27832 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
27833 for signed or [0, op1 - 1] for unsigned modulo.
27834 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
27835 even if op1 does not satisfy integer_pow2p.
27838 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
27840 2015-01-12 Jeff Law <law@redhat.com>
27843 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
27844 (trunchiqi2, truncsihi2): Similarly.
27846 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
27847 rather than calling F.
27849 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
27851 * tsan.c (instrument_expr): Use force_gimple_operand.
27852 Use may_be_nonaddressable_p instead of is_gimple_addressable.
27854 2015-01-12 Richard Biener <rguenther@suse.de>
27856 PR tree-optimization/64530
27857 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
27860 2015-01-12 Richard Biener <rguenther@suse.de>
27862 PR middle-end/64357
27863 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
27866 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27868 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
27869 Cortex-A17 tuning parameters.
27870 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
27872 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27874 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
27875 * config/arm/arm.c (arm_macro_fusion_p): New function.
27876 (arm_macro_fusion_pair_p): Likewise.
27877 (TARGET_SCHED_MACRO_FUSION_P): Define.
27878 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
27879 (ARM_FUSE_NOTHING): Likewise.
27880 (ARM_FUSE_MOVW_MOVT): Likewise.
27881 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
27882 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
27883 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
27884 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
27885 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
27886 arm_cortex_a5_tune): Specify fuseable_ops value.
27888 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
27891 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
27892 test for PIE with copy reloc.
27893 * configure: Regenerated.
27895 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27897 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
27899 (arm_tls_descseq_addr): Likewise.
27900 (arm_gen_movmemqi): Likewise.
27901 (arm_expand_epilogue_apcs_frame): Likewise.
27902 (arm_expand_epilogue): Likewise.
27903 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
27906 2015-01-12 Martin Liska <mliska@suse.cz>
27909 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
27910 volatility for correct operands.
27912 2015-01-12 Martin Liska <mliska@suse.cz>
27914 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
27915 indication that a function is not leaf.
27916 (sem_function::compare_polymorphic_p): Likewise.
27918 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27920 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
27921 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
27922 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
27923 fold-const.h, tree-check.h.
27925 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
27929 * ipa-inline.c (compute_uninlined_call_time,
27930 compute_inlined_call_time): Use counts for extra precision when
27932 (big_speedup_p): Fix formating.
27933 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
27934 (relative_time_benefit): Remove.
27935 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
27936 merge guessed and read profile paths.
27937 (inline_small_functions): Count only !optimize_size functions into
27938 initial size; be more lax about sanity check when profile is used;
27939 be sure to update inlined function profile when profile is read.
27941 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
27944 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
27945 cost when edge becomes direct.
27946 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
27947 is resolved or when introducing new speculation.
27949 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
27953 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
27954 '||' to fix typo issue.
27956 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
27957 accept and return NULL.
27959 2015-01-12 Martin Liska <mliska@suse.cz>
27961 * cgraph.c (cgraph_edge::remove_callee): Move function to header
27962 file for being inlined.
27963 (cgraph_set_edge_callee): Delete.
27964 (cgraph_edge::redirect_callee): Move function to header file
27966 (cgraph_edge::make_direct): Use new function.
27967 (cgraph_edge::dump_edge_flags): New function created from
27968 static dump_edge_flags function.
27969 (cgraph_node::dump): Use new function.
27970 (cgraph_edge::verify_count_and_frequency): New function created
27971 from verify_edge_count_and_frequency.
27972 (cgraph_edge::verify_corresponds_to_fndecl): New function created
27973 from verify_edge_corresponds_to_fndecl.
27974 (verify_edge_corresponds_to_fndecl): Delete.
27975 (cgraph_node::verify_node): Use new function.
27976 * cgraph.h (cgraph_edge::set_callee): New function.
27977 (cgraph_edge::dump_edge_flags): Likewise.
27978 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
27980 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
27982 * ipa-utils.c (estimate_function_body_sizes): Do not
27983 free node params when called late with early=true.
27985 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
27987 * doc/md.texi (Instruction Patterns): Rewrite text for
27989 (Example): Likewise.
27991 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
27993 * doc/invoke.texi (Option Summary): Break long lines.
27994 [(-fdiagnostics-color)]: Put long literal in @smallexample
27996 [(-fsanitize-recover)]: Likewise.
27997 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
27998 [(-ffast-math)]: Likewise.
27999 [(--param max-inline-insns-recursive)]: Likewise.
28000 [(--param max-inline-recursive-depth)]: Likewise.
28001 [(-mno-text-section-literals)]: Likewise.
28003 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
28005 * doc/install.texi: Update for libgomp being renamed from "GNU
28006 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
28008 * doc/sourcebuild.texi: Likewise.
28010 2015-01-10 Anthony Green <green@moxielogic.com>
28012 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
28013 mul.x availability for moxiebox configuration.
28015 2015-01-09 Anthony Green <green@moxielogic.com>
28017 * config/moxie/moxie.md: Tabify assembly output.
28019 2015-01-09 Anthony Green <green@moxielogic.com>
28021 * config/moxie/moxie.md (CC_REG): Correct register definition.
28023 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
28025 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
28026 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
28029 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28031 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
28033 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
28034 Jakub Jelinek <jakub@redhat.com>
28036 PR middle-end/64412
28037 * lto-streamer.h (lto_stream_offload_p): New declaration.
28038 * lto-streamer.c (lto_stream_offload_p): New variable.
28039 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
28040 at the same time as section_name_prefix.
28041 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
28042 if lto_stream_offload_p.
28043 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
28044 stream TREE_TARGET_OPTION if lto_stream_offload_p.
28045 (write_ts_function_decl_tree_pointers): Don't
28046 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
28047 * tree-streamer-in.c (unpack_value_fields): Don't stream
28048 TREE_TARGET_OPTION in if ACCEL_COMPILER.
28049 (lto_input_ts_function_decl_tree_pointers): Don't stream
28050 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
28051 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
28052 instead of section_name_prefix string comparisons.
28054 2015-01-09 Jakub Jelinek <jakub@redhat.com>
28056 PR rtl-optimization/64536
28057 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
28060 2015-01-09 Michael Collison <michael.collison@linaro.org>
28062 PR tree-optimization/64322
28063 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
28064 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
28066 2015-01-09 Tom de Vries <tom@codesourcery.com>
28068 PR rtl-optimization/64539
28069 * regcprop.c (kill_clobbered_values): Factor out of ...
28070 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
28071 instead of note_stores with kill_clobbered_value.
28073 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28075 * ginclude/unwind-arm-common.h: Revert previous commit.
28077 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28079 * config.gcc (arm*-*-freebsd*): New configuration.
28080 * config/arm/freebsd.h: New file.
28081 * config.host: Add extra components for arm*-*-freebsd*.
28082 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
28083 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
28085 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28087 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
28089 * config/rs6000/t-rtems: Add e6500 multilibs.
28091 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28093 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
28096 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28098 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
28099 MULTILIB_EXCEPTIONS.
28101 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28103 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
28104 MULTILIB_EXCEPTIONS.
28106 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28108 * config/arm/t-rtems-eabi: Rename to...
28109 * config/arm/t-rtems: ...this.
28110 * config/arm/rtems-eabi.h: Rename to...
28111 * config/arm/rtems.h: ...this.
28112 * config.gcc (arm*-*-rtems*): Reflect changes above.
28114 2015-01-09 Richard Biener <rguenther@suse.de>
28116 PR tree-optimization/64410
28117 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
28119 (execute_update_addresses_taken): Deal with that.
28120 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
28121 loads/stores for complex variables.
28123 2015-01-09 Martin Liska <mliska@suse.cz>
28125 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
28127 (func_checker::compare_memory_operand): New function.
28128 (func_checker::compare_operand): Split case to newly
28130 (func_checker::compare_cst_or_decl): New function.
28131 (func_checker::compare_gimple_call): Identify
28133 (func_checker::compare_gimple_assign): Likewise.
28134 * ipa-icf-gimple.h: New function.
28136 2015-01-09 Martin Liska <mliska@suse.cz>
28139 * sreal.c (sreal::dump): Change unsigned format to signed for
28141 (sreal::to_double): Replace exp2 with scalbln.
28143 2015-01-09 Martin Liska <mliska@suse.cz>
28145 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
28146 * ipa-icf.c (sem_function::equals_private): Add support for target and
28147 (sem_item_optimizer::merge_classes): Remove redundant function
28148 optimization flags comparison.
28149 * tree.h (target_opts_for_fn): New function.
28151 2015-01-09 Tom de Vries <tom@codesourcery.com>
28153 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
28155 2015-01-09 Kito Cheng <kito@0xlab.org>
28157 PR rtl-optimization/64348
28158 * lra-constraints.c (split_reg): Fix caller-save store/restore
28159 instruction generation.
28161 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
28163 PR gcov-profile/61790
28164 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
28165 long long. Fallback to int64_t if host doesn't have long long and
28166 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
28168 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28170 PR tree-optimization/63989
28171 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
28172 from 1000 to 10000.
28173 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
28174 (get_stridx): If we don't have a record for certain SSA_NAME,
28175 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
28176 constant offset, call get_stridx_plus_constant.
28177 (get_stridx_plus_constant): New function.
28178 (zero_length_string): Don't use get_stridx here.
28181 PR middle-end/64388
28182 * dse.c (struct insn_info): Mention frame_read set also
28183 before reload for tail calls on some targets.
28184 (scan_insn): Revert 2014-12-22 change. Set frame_read
28185 also before reload for tail calls if
28186 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
28187 instead of add_non_frame_wild_read for non-const/memset
28188 tail calls after reload.
28190 2015-01-08 Jason Merrill <jason@redhat.com>
28192 * ubsan.c (do_ubsan_in_current_function): New.
28193 (pass_ubsan::gate): Use it.
28194 * ubsan.h: Declare it.
28195 * convert.c (convert_to_integer): Use it.
28197 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28200 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
28201 compare_code when it is unconditionally overwritten afterwards.
28202 Use ix86_reverse_condition instead of reverse_condition. Don't
28203 change code if *reverse_condition* returned UNKNOWN and don't
28204 swap ct/cf and negate diff in that case.
28206 2015-01-08 Mike Stump <mikestump@comcast.net>
28208 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
28209 (pass_tsan_O0::gate): Likewise.
28210 * extend.texi (Function Attributes): Add no_sanitize_thread
28213 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
28215 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
28216 for registering builtins.
28217 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
28218 add -fopenmp to the argv_obstack used when invoking
28219 compile_for_target.
28221 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
28222 add "-m32" or "-m64" to argv_obstack.
28223 (generate_host_descr_file): Likewise, when invoking host_compiler.
28224 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
28227 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
28229 * config/sh/sh-mem.cc: Use constant as second operand when emitting
28232 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
28235 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
28236 constant load if constant operand fits into I08.
28238 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28241 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
28242 and TREE_THIS_VOLATILE for MEM_REFs.
28243 (build5_stat): Fix up initialization of TREE_READONLY and
28244 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
28246 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
28249 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
28250 of r for the second alternative of the destination operand.
28252 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
28255 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
28257 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
28259 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
28261 ([-fivar-visibility], [-fvisibility]): Likewise.
28263 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
28265 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
28266 the file where @code, @command, etc is more appropriate.
28268 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
28270 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
28271 of -mrecip= documentation.
28273 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28276 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
28277 correct reload handler if -m32 -mpowerpc64 is used.
28279 2015-01-06 Tom de Vries <tom@codesourcery.com>
28281 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
28283 2015-01-08 Christian Bruel <christian.bruel@st.com>
28286 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
28288 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
28290 PR tree-optimization/63259
28291 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
28292 if optab exists for 16bit byteswap.
28294 2015-01-06 Jakub Jelinek <jakub@redhat.com>
28296 * opts.c (common_handle_option): Add support for
28297 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
28298 * doc/invoke.texi: Document -fno-sanitize=all,
28299 -f{,no-}sanitize-recover=all. Document that
28300 -fsanitize=float-cast-overflow is not enabled
28301 by -fsanitize=undefined. Fix up documentation
28302 of -f{,no-}sanitize-recover.
28304 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
28306 * config.gcc: Add Visium support.
28307 * configure.ac: Likewise.
28308 * configure: Regenerate.
28309 * doc/extend.texi (interrupt attribute): Add Visium.
28310 * doc/invoke.texi: Document Visium options.
28311 * doc/install.texi: Document Visium target.
28312 * doc/md.texi: Document Visium constraints.
28313 * common/config/visium: New directory.
28314 * config/visium: Likewise.
28316 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
28318 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
28319 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
28321 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
28323 * combine.c (combine_validate_cost): Do not count the cost of a
28324 split I2 twice. Do not display it twice in the dump, either.
28326 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
28328 Revert parts of r219199.
28329 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
28331 ([-Wtraditional]): Restore markup on <limits.h>.
28333 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
28336 * doc/invoke.texi: Document -Wsuggest-override.
28338 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
28340 PR rtl-optimization/64287
28341 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
28342 (process_options): Disable flag_ipa_ra if profiling.
28344 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
28346 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
28348 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
28350 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
28351 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
28352 put under #if TARGET_LOOPS guard.
28354 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
28356 * config/i386/i386.c (output_387_binary_op): Use std::swap.
28358 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
28360 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
28361 * rtl.h (refers_to_regno_p): Add overload.
28363 * bt-load.c: Likewise.
28364 * combine.c: Likewise.
28365 * df-scan.c: Likewise.
28366 * sched-deps.c: Likewise.
28367 * config/s390/s390.c: Likewise.
28368 * config/m32r/m32r.c: Likewise.
28369 * config/rs6000/spe.md: Likewise.
28370 * config/rs6000/rs6000.c: Likewise.
28371 * config/pa/pa.c: Likewise.
28372 * config/stormy16/stormy16.c: Likewise.
28373 * config/cris/cris.c: Likewise.
28374 * config/arc/arc.md: Likewise.
28375 * config/arc/arc.c: Likewise.
28376 * config/sh/sh.md: Likewise.
28377 * config/sh/sh.c: Likewise.
28378 * config/frv/frv.c: Likewise.
28380 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28383 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
28384 call as cleanup of the whole body.
28385 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
28386 * tsan.c (replace_func_exit): New function.
28387 (instrument_func_exit): Moved earlier.
28388 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
28389 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
28391 (tsan_pass): Don't call instrument_func_exit.
28392 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
28393 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
28397 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
28398 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
28399 it to libubsan handler instead of EXPR. Fold comparisons earlier,
28400 if the result is integer_zerop, return NULL_TREE.
28401 * convert.c (convert_to_integer): Pass expr as ARG.
28403 PR tree-optimization/64465
28404 * tree-inline.c (redirect_all_calls): During inlining
28405 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
28406 changed the stmt to a non-throwing call.
28408 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
28410 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
28411 etc markup throughout the file.
28413 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
28415 Enable experimental TSAN support for Ada.
28416 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
28418 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28420 PR tree-optimization/64494
28421 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
28422 clear SSA_NAME_ANTI_RANGE_P flag.
28424 2015-01-05 Marek Polacek <polacek@redhat.com>
28426 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
28428 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28430 Update copyright years.
28432 * gcc.c (process_command): Update copyright notice dates.
28433 * gcov-dump.c: Ditto.
28435 * doc/cpp.texi: Bump @copying's copyright year.
28436 * doc/cppinternals.texi: Ditto.
28437 * doc/gcc.texi: Ditto.
28438 * doc/gccint.texi: Ditto.
28439 * doc/gcov.texi: Ditto.
28440 * doc/install.texi: Ditto.
28441 * doc/invoke.texi: Ditto.
28443 * auto-profile.c, auto-profile.h: Fix up Copyright line.
28445 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
28447 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
28449 ([-fvtable-verify], [-fvtv-debug]): Likewise.
28450 ([-Wabi]): Likewise.
28451 ([-fmessage-length]): Likewise.
28452 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
28453 ([-Wno-discarded-qualifiers]): Likewise.
28454 ([-Wnodiscarded-array-qualifiers]): Likewise.
28455 ([-Wno-virtual-move-assign]): Likewise.
28456 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
28457 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
28458 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
28459 ([-fsanitize-undefined-trap-on-error]): Likewise.
28460 ([-floop-interchange]): Likewise.
28461 ([-ftree-coalesce-inlined-vars]): Likewise.
28462 ([-fvect-cost-model]): Likewise.
28463 ([-flto]): Likewise.
28464 ([--param]): Likewise.
28465 (Spec Files): Likewise.
28466 ([-mstrict-align]): Likewise.
28467 ([-mfix-cortex-a53-835769]): Likewise.
28468 ([-march], [-mtune]): Likewise.
28469 ([-mpic-register]): Likewise.
28470 ([-munaligned-access]): Likewise.
28471 ([-msp8]): Likewise.
28472 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
28473 (AVR Built-in Macros): Likewise.
28474 ([-mpreferred-stack-boundary]): Likewise.
28475 ([-mtune-crtl]): Likewise.
28476 ([-mashf]): Likewise.
28477 ([-mmcu=]): Likewise.
28478 ([-minrt]): Likewise.
28479 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
28480 ([-mupper-regs]): Likewise.
28481 ([-matomic-model]): Likewise.
28482 ([-mdiv]): Likewise.
28483 ([-mzdcbranch]): Likewise.
28484 ([-mdisable-callt]): Likewise.
28485 ([-msoft-float]): Likewise.
28486 ([-m8byte-align]): Likewise.
28487 ([-fstack-reuse]): Likewise.
28489 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28491 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
28492 Fix markup, light copy-editing.
28493 ([-fauto-profile]): Rewrite to fix formatting and content
28496 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28498 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
28499 Copy-edit description.
28500 ([-fisolate-erroneous-paths-attribute]): Likewise.
28501 * common.opt (fisolate-erroneous-paths-dereference):
28502 Copy-edit description.
28503 (fisolate-erroneous-paths-attribute): Likewise.
28505 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28507 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
28510 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28512 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
28513 ([-fvtv-debug]): Likewise.
28514 ([-Wc++-compat]): Likewise.
28515 ([-Wc++11-compat]): Likewise.
28516 ([-Wc++14-compat]): Likewise.
28517 ([-Wno-sized-deallocation]): Likewise.
28518 ([-femit-class-debug-always]): Likewise.
28519 ([-femit-struct-debug-detailed]): Likewise.
28520 ([-fno-keep-inline-dllexport]): Likewise.
28521 ([-fira-algorithm]): Likewise.
28522 ([-fira-region]): Likewise.
28523 ([-flra-remat]): Likewise.
28524 ([-fipa-ra]): Likewise.
28525 ([-fhoist-adjacent-loads]): Likewise.
28526 ([-fisolate-erroneous-paths-dereference]): Likewise.
28527 ([-fisolate-erroneous-paths-attribute]): Likewise.
28528 ([-ftree-switch-conversion]): Likewise.
28529 ([-ftree-tail-merge]): Likewise.
28530 ([-ftree-loop-if-convert]): Likewise.
28531 ([-ftree-loop-if-convert-stores]): Likewise.
28532 ([-ftree-loop-distribution]): Likewise.
28533 ([-ftree-loop-distribute-patterns]): Likewise.
28534 ([-flto-compression-level]): Likewise.
28535 ([-flto-report]): Likewise.
28536 ([-flto-report-wpa]): Likewise.
28537 ([-fuse-linker-plugin]): Likewise.
28538 ([-mfix-cortex-a53-835769]): Likewise.
28539 ([-mno-fix-cortex-a53-835769]): Likewise.
28540 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
28541 explicit listing; add a note to the discussion indicating they
28542 exist. Reorder table to group similar options. Add missing
28543 @opindex entries. Add @need commands throughout the table to
28544 allow it to be split across multiple pages.
28545 ([-m8bit-idiv]): Fix @opindex.
28546 ([-mavx256-split-unaligned-load]): Likewise.
28547 ([-mavx256-split-unaligned-store]): Likewise.
28548 ([-mstack-protector-guard]): Likewise.
28549 ([-mcpu=]): Likewise.
28550 ([-mcpu]): Likewise.
28551 ([-mpointer-size=]): Likewise.
28553 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
28555 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
28556 instead of `m' constraint. Likewise for unnamed movb comparison
28557 patterns using reg_before_reload_operand predicate.
28558 * config/pa/predicates.md (reg_before_reload_operand): Tighten
28559 predicate to reject register index and LO_SUM DLT memory forms
28562 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
28564 * doc/invoke.texi (Option Summary): Fix spelling of
28565 -fdevirtualize-at-ltrans.
28566 ([-fdevirtualize]): Fix markup.
28567 ([-fdevirtualize-speculatively]): Fix typo.
28568 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
28569 implementor-speaky.
28570 * common.opt (fdevirtualize-at-ltrans): Likewise.
28571 * ipa-devirt.c: Fix typos in comments throughout the file.
28572 (ipa_devirt): Fix typos in format strings for dump output.
28574 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
28576 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
28577 discussion of defaults, light copy-editing.
28579 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
28581 * tsan.c (instrument_expr): corrected previous checkin.
28583 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
28585 Instrument bit field and unaligned accesses for TSAN.
28586 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
28587 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
28588 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
28589 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
28590 unaligned memory regions.
28592 2015-01-01 Anthony Green <green@moxielogic.com>
28594 * config/moxie/predicates.md (moxie_general_movsrc_operand):
28595 Restrict move source register offsets to 16 bits.
28597 Copyright (C) 2015 Free Software Foundation, Inc.
28599 Copying and distribution of this file, with or without modification,
28600 are permitted in any medium without royalty provided the copyright
28601 notice and this notice are preserved.