]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
switch from gimple to gimple*
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
2
3 * coretypes.h (gimple): Change typedef to be a forward
4 declaration.
5 * gimple.h (gimple_statement_base): rename to gimple.
6 * (all functions and types using gimple): Adjust.
7 * *.[ch]: Likewise.
8
9 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
10 David Edelsohn <dje.gcc@gmail.com>
11
12 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14 (EH_FRAME_THROUGH_COLLECT2): Define.
15 (EH_TABLES_CAN_BE_READ_ONLY): Define.
16 (ASM_OUTPUT_DWARF_PCREL): Define.
17 (ASM_OUTPUT_DWARF_DATAREL): Define.
18
19 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
20
21 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
22 of TARGET_ELF32.
23
24 2015-09-18 Jeff Law <law@redhat.com>
25
26 PR tree-optimization/47679
27 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
28 it here ...
29 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
30 object. Update constructor.
31 (pass_dominator::execute): Corresponding chagnes to declaration
32 and initialization of avail_exprs_stack. Update constructor call
33 for dom_opt_dom_walker object.
34 (lookup_avail_expr, record_cond): Accept additional argument. Pass
35 it down to children as needed.
36 (record_equivalences_from_incoming_edge): Likewise.
37 (eliminate_redundant_computations): Likewise.
38 (record_equivalences_from_stmt): Likewise.
39 (simplify_stmt_for_jump_threading): Likewise.
40 (record_temporary_equivalences): Likewise.
41 (optimize_stmt): Likewise.
42 (dom_opt_dom_walker::thread_across_edge): Update access to
43 avail_exprs_stack object and pass it to children as needed.
44 (dom_opt_dom_walker::before_dom_children): Similarly.
45 (dom_opt_dom_walker::after_dom_children): Similarly.
46 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
47 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
48 Add avail_expr_stack argument. Pass it to children as needed.
49 (dummy_simplify): Likewise.
50 (simplify_control_stmt_condition): Likewise.
51 (thread_around_empty_blocks): Likewise.
52 (thread_through_normal_block): Likewise.
53 (thread_across_edge): Likewise.
54 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
55 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
56
57 PR tree-optimization/47679
58 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
59 it here ...
60 (dom_opt_dom_walker): New private member holding the const_and_copies
61 object. Update constructor.
62 (pass_dominator::execute): Corresponding changes to declaration
63 and initialization of const_and_copies. Update constructor call
64 for the dom_opt_dom_walker object.
65 (record_temporary_equivalences): Accept const_and_copies argument
66 pass it down to children as needed.
67 (record_equality): Likewise.
68 (record_equivalences_from_incoming_edge): Likewise.
69 (cprop_into_successor_phis, optimize_stmt): Likewise.
70 (eliminate_redundant_computations): Likewise.
71 (dom_opt_dom_walker::thread_across_edge): Update access to
72 const_and_copies object and pass it to children as needed.
73 (dom_opt_dom_walker::before_dom_children): Similarly.
74 (dom_opt_dom_walker::after_dom_children): Similarly.
75
76 PR tree-optimization/47679
77 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
78 it into the avail_exprs_stack class.
79 (pass_dominator::execute): Corresponding changes to declaration
80 and initialization of avail_exprs. Pass avail_exprs to
81 dump_dominator_optimization_stats.
82 (record_cond): Extract avail_exprs from avail_exprs_stack.
83 (lookup_avail_expr): Similarly.
84 (htab_staticstics): Remove unnecessary prototype. Move to earlier
85 position in file.
86 (dump_dominator_optimization_stats): Make static and prototype.
87 Add argument for the hash table to dump.
88 (debug_dominator_optimization_stats): Remove.
89 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
90 prototype.
91 (debug_dominator_optimization_stats): Similarly.
92 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
93 "void" in prototype for pop_to_marker method. Add accessor method
94 for the underlying avail_exprs table.
95
96 * tree-ssa-threadedge.c: Remove trailing whitespace.
97
98 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
99
100 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
101 unsigned.
102 (pa_ldil_cint_p): Likewise.
103 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
104 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
105 Update callers.
106 * config/pa/pa.md: Likewise.
107
108 2015-09-18 David Malcolm <dmalcolm@redhat.com>
109
110 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
111 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
112 (diagnostic_show_locus): Likewise.
113 (diagnostic_print_caret_line): Likewise.
114 * diagnostic-show-locus.c: New file.
115
116 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
117
118 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
119 "back" parameter. Declare label in #if block.
120
121 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
122
123 PR middle-end/67619
124 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
125 the address to a register.
126
127 2015-09-18 Jeff Law <law@redhat.com>
128
129 PR tree-optimization/47679
130 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
131 * tree-ssa-dom.c: Remove unnecessary header includes.
132 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
133 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
134 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
135 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
136 (pass_phi_only_cprop::execute): Likewise.
137 (make_pass_phi_only_cprop): Likewise.
138 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
139 uses of file scoped statics by passing the required objects
140 as parameters wherever needed.
141
142 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
143 David Edelsohn <dje.gcc@gmail.com>
144
145 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
146 EH_FRAME_THROUGH_COLLECT2.
147 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
148 DW_EH_PE_datarel.
149 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
150 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
151 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
152 * except.c (switch_to_exception_section): Use a read-only section
153 even if EH_FRAME_SECTION_NAME is undefined.
154 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
155 * collect2.c (write_c_file_stat): Provide dbase on AIX.
156 (scan_prog_file): Don't export __dso_handle nor
157 __gcc_unwind_dbase.
158 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
159 (EH_TABLES_CAN_BE_READ_ONLY): Define.
160 (ASM_OUTPUT_DWARF_PCREL): Define.
161 (ASM_OUTPUT_DWARF_DATAREL): Define.
162 (EH_FRAME_THROUGH_COLLECT2): Define.
163 (EH_FRAME_IN_DATA_SECTION): Delete.
164 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
165 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
166 Declare.
167 (rs6000_asm_output_dwarf_datarel): Declare.
168 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
169 (rs6000_aix_asm_output_dwarf_datarel): New.
170 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
171 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
172 (EH_FRAME_THROUGH_COLLECT2): Define.
173 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
174 (EH_FRAME_THROUGH_COLLECT2): Define.
175 (EH_TABLES_CAN_BE_READ_ONLY): Define.
176 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
177 (EH_FRAME_THROUGH_COLLECT2): New.
178 (ASM_OUTPUT_DWARF_DATAREL): New.
179 * doc/tm.texi: Regenerate.
180
181 2015-09-18 Richard Biener <rguenther@suse.de>
182
183 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
184 we're in early phase.
185 (schedule_generic_params_dies_gen): Likewise.
186 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
187 work as possible, retaining unhandled cases.
188 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
189 clear out generic_type_instances at the end.
190 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
191 (dwarf2out_early_finish): ... here. Do most of
192 gen_remaining_tmpl_value_param_die_attribute here.
193
194 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
195
196 PR tree-optimization/67283
197 * tree-sra.c (type_consists_of_records_p): Rename to...
198 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
199 (completely_scalarize_record): Rename to...
200 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
201 (scalarize_elem): New.
202 (analyze_all_variable_accesses): Follow renamings.
203
204 2015-09-18 Richard Biener <rguenther@suse.de>
205
206 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
207 in early-dwarf.
208
209 2015-09-18 Richard Biener <rguenther@suse.de>
210
211 PR tree-optimization/66142
212 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
213 treat MEM[&x] and x the same.
214 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
215 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
216 when we simplified sth.
217 (vn_reference_maybe_forwprop_address): Likewise.
218 (valueize_refs_1): When we simplified through
219 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
220 set valueized_anything to true.
221 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
222 one ref kills the other instead of just a offset-based test.
223 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
224 for the operand_equal_p test to compare bases and also compare
225 sizes.
226
227 2015-09-17 Christian Bruel <christian.bruel@st.com>
228
229 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
230
231 2015-09-17 Richard Henderson <rth@redhat.com>
232
233 PR libstdc++/65913
234 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
235 pointers that encode the alignment of the object.
236
237 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
238
239 PR rtl-optimization/66790
240 * df-problems.c (LIVE): Amend documentation.
241
242 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
243
244 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
245 and optabs-tree.o.
246 (GTFILES): Replace optabs.c with optabs-libfunc.c.
247 * genopinit.c (main): Add an include guard to insn-opinit.h.
248 Protect the rtx_code parts with NUM_RTX_CODE.
249 * optabs.h: Split parts out to...
250 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these
251 new files.
252 * optabs.c: Split parts out to...
253 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these
254 new files.
255 * cilk-common.c: Include optabs-query.h rather than optabs.h.
256 * fold-const.c: Likewise.
257 * target-globals.c: Likewise.
258 * tree-if-conv.c: Likewise.
259 * tree-ssa-forwprop.c: Likewise.
260 * tree-ssa-loop-prefetch.c: Likewise.
261 * tree-ssa-math-opts.c: Include optabs-tree.h rather than
262 optabs.h. Remove unncessary include files.
263 * tree-ssa-phiopt.c: Likewise.
264 * tree-ssa-reassoc.c: Likewise.
265 * tree-switch-conversion.c: Likewise.
266 * tree-vect-data-refs.c: Likewise.
267 * tree-vect-generic.c: Likewise.
268 * tree-vect-loop.c: Likewise.
269 * tree-vect-patterns.c: Likewise.
270 * tree-vect-slp.c: Likewise.
271 * tree-vect-stmts.c: Likewise.
272 * tree-vrp.c: Likewise.
273 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
274 rather than optabs.h.
275 * expr.c: Include optabs-tree.h.
276 * function.c: Likewise.
277
278 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
279
280 PR middle-end/65958
281 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
282 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
283 * config/arm/arm.c: Include common/common-target.h.
284 (use_return_insn): Return 0 if the static chain register was saved
285 above a non-APCS frame.
286 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
287 (struct scratch_reg): New.
288 (get_scratch_register_on_entry): New function.
289 (release_scratch_register_on_entry): Likewise.
290 (arm_emit_probe_stack_range): Likewise.
291 (output_probe_stack_range): Likewise.
292 (arm_expand_prologue): Factor out code dealing with the IP register
293 for nested function and adjust it for stack checking.
294 Invoke arm_emit_probe_stack_range if static builtin stack checking
295 is enabled.
296 (thumb1_expand_prologue): Sorry out if static builtin stack checking
297 is enabled.
298 (arm_expand_epilogue): Add the saved static chain register, if any, to
299 the amount of pre-pushed registers to pop.
300 (arm_frame_pointer_required): Return true if static stack checking is
301 enabled and we want to catch the exception with the EABI unwinder.
302 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
303 (UNSPEC_PROBE_STACK_RANGE): Likewise.
304 * config/arm/arm.md (probe_stack): New insn.
305 (probe_stack_range): Likewise.
306
307 2015-09-17 Richard Biener <rguenther@suse.de>
308
309 * genmatch.c (parser::parse_expr): Improve error message
310 for mis-placed flags.
311
312 2015-09-17 Richard Biener <rguenther@suse.de>
313
314 * passes.c (rest_of_decl_compilation): Always call early_global_decl
315 debug hook when we created a varpool node.
316 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
317 dwarf2out_early_global_decl, when not just add location or
318 value attributes to existing DIEs.
319
320 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
321
322 * config/aarch64/aarch64.md (copysigndf3): New.
323 (copysignsf3): Likewise.
324
325 2015-09-17 David S. Miller <davem@davemloft.net>
326
327 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
328 Declare.
329 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
330 function.
331 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
332 (HARD_REGNO_CALLER_SAVE_MODE): Define.
333 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
334 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
335 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
336 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
337 provide when flag_pic.
338
339 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
340
341 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
342 object_allocator change.
343
344 2015-09-17 Bin Cheng <bin.cheng@arm.com>
345
346 PR tree-optimization/66388
347 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New
348 fields.
349 (dump_iv): Dump no_overflow information.
350 (alloc_iv): Initialize new field for struct iv.
351 (mark_bivs): Count number of no_overflow bivs.
352 (find_deriving_biv_for_expr, record_biv_for_address_use): New
353 functions.
354 (idx_find_step): Call new functions above.
355 (add_candidate_1, add_candidate): New paramter.
356 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
357 (get_computation_aff): Simplify convertion of cand for BIV.
358 (get_computation_cost_at): Step cand's base if necessary.
359
360 2015-09-17 Bin Cheng <bin.cheng@arm.com>
361
362 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
363 parameter.
364 (tree_simplify_using_condition): Ditto.
365 (simplify_using_initial_conditions): Ditto.
366 (loop_exits_before_overflow): Pass new argument to function
367 simplify_using_initial_conditions. Remove case for type conversions
368 simplification.
369 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
370 parameter.
371 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
372 in iv base using loop initial conditions.
373
374 2015-09-16 Jeff Law <law@redhat.com>
375
376 PR tree-optimization/47679
377 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
378 (free_all_edge_infos): Use it.
379 (allocate_edge_info): Free preexisting edge info data.
380 (pass_dominator::execute): Set up initial edge info structures.
381 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
382 thread_across_edge.
383 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument. If
384 non-null, then push/pop markers appropriately.
385 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
386 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
387 thread-across_edge.
388
389 2015-09-16 James Bowman <james.bowman@ftdichip.com>
390
391 * config/ft32/ft32.c Fix the memory address space predicate.
392
393 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
394
395 PR target/67573
396 * config/sh/sh.md (call_pcrel): Add early clobber to scratch
397 operand.
398 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
399
400 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
401
402 * toplev.h (check_global_declaration): Remove declaration.
403 * toplev.c (check_global_declaration): Move to ...
404 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
405 (analyze_functions): Update call.
406
407 2015-09-16 David S. Miller <davem@davemloft.net>
408
409 * lra-constraints.c (simplify_operand_subreg): Do not assume that
410 lowpart of a SUBREG has offset zero.
411
412 2015-09-16 Jeff Law <law@redhat.com>
413
414 PR tree-optimization/47679
415 * tree-ssa-dom.c (enum expr_kind): Moved from here to
416 tree-ssa-scopedtables.h.
417 (struct hashable_expr, class expr_hash_elt): Likewise.
418 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
419 Move associated methods into tree-ssa-scopedtables.c.
420 (avail_expr_hash, initialize_expr_from_cond): Similarly.
421 (hashable_expr_equal_p, add_expr_commutative): Likewise.
422 (add_hashable_expr): Likewise.
423 (record_cond): Delete element directly.
424 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
425 private copy ctor and assignment operator methods.
426 (expr_elt_hasher): Inline trivial methods.
427 (initialize_expr_from_cond): Prototype.
428 * tree-ssa-scopedtables.c: Add necessary includes, functions and
429 methods that were previously in tree-ssa-dom.c. Improve various
430 comments.
431
432 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
433
434 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
435
436 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
437
438 PR bootstrap/67587
439 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
440 fixup_partitions.
441
442 2015-09-16 Richard Biener <rguenther@suse.de>
443
444 PR middle-end/67253
445 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
446 location of possibly shared trees.
447
448 2015-09-16 Richard Biener <rguenther@suse.de>
449
450 PR middle-end/67271
451 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
452
453 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
454
455 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
456 offset and size computations instead of HOST_WIDE_INT.
457
458 2015-09-16 Richard Biener <rguenther@suse.de>
459
460 PR middle-end/67442
461 * fold-const.c (extract_muldiv_1): Properly extend multiplication
462 result before builting a tree via wide_int_to_tree.
463
464 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
465
466 * Makefile.in: Add memory-block.cc
467 (pool_allocator::initialize): Use fixed block size.
468 (pool_allocator::release): Use memory_block_pool.
469 (pool_allocator::allocate): Likewise.
470 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
471 object pools.
472 * cfg.c (initialize_original_copy_tables): Likewise.
473 * cselib.c (elt_list_pool, elt_loc_list_pool,
474 cselib_val_pool): Likewise.
475 * df-problems.c (df_chain_alloc): Likewise.
476 * df-scan.c (df_scan_alloc): Likewise.
477 * dse.c (cse_store_info_pool, rtx_store_info_pool,
478 read_info_type_pool, insn_info_type_pool, bb_info_pool,
479 group_info_pool, deferred_change_pool): Likewise.
480 * et-forest.c (et_nodes, et_occurrences): Likewise.
481 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
482 ipcp_agg_lattice_pool): Likewise.
483 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
484 * ipa-profile.c (histogram_pool): Likewise.
485 * ipa-prop.c (ipa_refdesc_pool): Likewise.
486 * ira-build.c (live_range_pool, allocno_pool, object_pool,
487 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
488 * ira-color.c (update_cost_record_pool): Likewise.
489 * lra-lives.c (lra_live_range_pool): Likewise.
490 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
491 * memory-block.cc: New file.
492 * memory-block.h: New file.
493 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
494 * sched-deps.c (sched_deps_init): Likewise.
495 * sel-sched-ir.c (sched_lists_pool): Likewise.
496 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
497 * tree-sra.c (access_pool): Likewise.
498 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
499 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
500 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
501 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
502 * tree-ssa-strlen.c (strinfo_pool): Likewise.
503 * tree-ssa-structalias.c (variable_info_pool): Likewise.
504 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
505 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
506
507 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
508
509 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
510 definition.
511 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
512 call0 ABI.
513
514 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
515
516 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
517 to pass TLS call argument, according to current ABI.
518 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
519 callx0 for TLS call, according to current ABI.
520
521 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
522
523 * tree-eh.c (lower_try_finally_dup_block): Clear location information
524 on stack restore statements.
525 (decide_copy_try_finally): Do not consider a stack restore statement as
526 coming from sources.
527
528 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
529
530 * config/alpha/alpha.c (alpha_expand_block_clear): Use
531 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
532
533 2015-09-15 Jeff Law <law@redhat.com>
534
535 PR tree-optimization/47679
536 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
537 methods and private members.
538 (avail_exprs_stack): Similarly. Change type of global
539 from a pair of expr_hash_elt_t to the new class.
540 (expr_elt_hasher::hash): Corresponding changes.
541 (expr_elt_hasher::equal): Similarly.
542 (avail_expr_hash): Similarly.
543 (pass_dominator::execute): Similarly.
544 (dom_opt_dom_walker::thread_across_edge): Similarly.
545 (record_cond): Similarly.
546 (dom_opt_dom_walker::before_dom_children): Similarly.
547 (dom_opt_dom_walker::after_dom_children): Similarly.
548 (lookup_avail_expr): Likewise.
549 (initialize_hash_element): Now a expr_hash_elt constructor.
550 (initialize_hash_element_from_expr): Similarly.
551 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
552 (free_expr_hash_elt): Call dtor for the element.
553 (remove_local_expressions_from_table): Now the "pop_to_marker"
554 method in the available_exprs_stack class.
555 (avail_expr_stack::record_expr): Method factored out.
556 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
557 Fix formatting.
558 (hashable_expr_equal_p): Fix formatting.
559
560 2015-09-15 David Malcolm <dmalcolm@redhat.com>
561
562 * input.h (location_get_source_line): Drop "expanded_location"
563 param in favor of a file and line number.
564 * input.c (location_get_source_line): Likewise.
565 (dump_location_info): Update for change in signature of
566 location_get_source_line.
567 * diagnostic.c (diagnostic_print_caret_line): Likewise.
568
569 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
570
571 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
572 Bump to 4KB for SJLJ exceptions.
573 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
574 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
575 * doc/tm.texi: Regenerate.
576
577 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
578
579 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
580 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
581 Update prototype.
582
583 2015-09-15 Richard Biener <rguenther@suse.de>
584
585 PR tree-optimization/67470
586 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
587 structure for PHI hoisting by inserting a forwarder block
588 if appropriate.
589
590 2015-09-15 Christian Bruel <christian.bruel@st.com>
591
592 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
593 (arm_option_print): New function.
594
595 2015-09-15 Christian Bruel <christian.bruel@st.com>
596
597 PR target/52144
598 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
599 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
600 Remove flags parameter.
601 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
602 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
603 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
604 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
605 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
606 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
607 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
608 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
609
610 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
611
612 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
613
614 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
615 AARCH64_VALID_SIMD_DREG_MODE.
616
617 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
618
619 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
620 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
621 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
622 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
623 aarch64_ld4_lane<mode>): Combine together, making...
624 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
625 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
626 aarch64_st4_lane<mode>): Combine together, making...
627 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
628 * config/aarch64/iterators.md (nregs): Add comment.
629
630 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
631
632 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
633 Change operand mode from <V_TWO_ELEM> to BLK.
634 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
635 (aarch64_vec_store_lanesoi_lane<mode): Likewise
636 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
637 (aarch64_ld2_lane<mode>): Likewise.
638 (aarch64_st2_lane<VQ:mode>): Likewise.
639 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
640
641 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
642
643 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
644 Change operand mode from <V_FOUR_ELEM> to BLK.
645 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
646 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
647 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
648 (aarch64_ld4_lane<mode>): Likewise.
649 (aarch64_st4_lane<mode>): Likewise.
650 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
651
652 2015-09-15 Richard Biener <rguenther@suse.de>
653
654 PR middle-end/67563
655 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
656 transfer EH info from old to new stmt.
657 (replace_call_with_value): Likewise.
658 (replace_call_with_call_and_fold): Likewise.
659 (gimple_fold_builtin_memory_op): Likewise.
660 (gimple_fold_builtin_memset): Likewise.
661 (gimple_fold_builtin_stpcpy): Likewise.
662 (gimple_fold_call): Likewise.
663
664 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
665
666 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
667 comment.
668 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
669 (aarch64_simd_intEI_type_node): Likewise.
670 (aarch64_simd_builtin_std_type): Remove EImode case.
671 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
672 * config/aarch64/aarch64-modes.def: Remove EImode.
673
674 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
675
676 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
677 Change operand mode from <V_THREE_ELEM> to BLK.
678 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
679 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
680 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
681 (aarch64_ld3_lane<mode>): Likewise.
682 (aarch64_st3_lane<mode>): Likewise.
683 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
684
685 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
686
687 * config/aarch64/aarch64-simd.md
688 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
689 Change all TImode operands to BLKmode.
690 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
691 Change all EImode operands to BLKmode.
692 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
693 Change all OImode operands to BLKmode.
694
695 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
696 and call set_mem_size.
697 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
698
699 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
700
701 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
702
703 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
704 to...
705 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
706
707 (vec_store_lanesci_lane<mode>): Rename to...
708 (aarch64_vec_store_lanesci_lane<mode>): ...this.
709
710 (vec_store_lanesxi_lane<mode>): Rename to...
711 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
712
713 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
714 aarch64_st4_lane<mode>): Follow renaming.
715
716 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
717
718 * config/s390/s390.c (s390_const_operand_ok): Add missing
719 brackets.
720
721 2015-09-15 Richard Biener <rguenther@suse.de>
722
723 PR lto/67568
724 * lto-streamer.h (lto_location_cache::current_sysp): Properly
725 initialize.
726 * lto-streamer-out.c (clear_line_info): Likewise.
727
728 2015-09-15 Richard Biener <rguenther@suse.de>
729
730 * doc/match-and-simplify.texi: Fix wording.
731
732 2015-09-15 Bin Cheng <bin.cheng@arm.com>
733
734 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
735 unnecessary type conversion in op1.
736
737 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
738
739 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
740 (dup_block_and_redirect): Delete function.
741 (can_dup_for_shrink_wrapping): New function.
742 (fix_fake_fallthrough_edge): New function.
743 (try_shrink_wrapping): Rewrite function.
744 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
745
746 2015-09-14 Rich Felker <dalias@libc.org>
747
748 * configure.ac: Change target pattern for sh TLS support
749 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
750 * configure: Regenerate.
751
752 2015-09-14 Jeff Law <law@redhat.com>
753
754 PR tree-optimization/47679
755 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
756 type rather than void *.
757
758 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
759
760 PR fortran/67460
761 * diagnostic.c (diagnostic_initialize): Do not set
762 some_warnings_are_errors.
763 (diagnostic_finish): Use DK_WERROR count instead.
764 (diagnostic_report_diagnostic): Do not set
765 some_warnings_are_errors.
766 * diagnostic.h (struct diagnostic_context): Remove
767 some_warnings_are_errors.
768
769 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
770
771 * config/sparc/predicates.md (const_all_ones_operand): Use
772 CONSTM1_RTX to simplify definition.
773
774 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
775
776 PR target/67061
777 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
778 Handle call insns.
779
780 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
781
782 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
783 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
784 OPT_fshow_column to handled saved option cases.
785 (append_compiler_options): Do not skip the above added options.
786
787 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
788
789 PR target/63304
790 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
791 nopcrelative_literal_loads.
792 (aarch64_classify_address): Likewise.
793 (aarch64_constant_pool_reload_icode): Define.
794 (aarch64_secondary_reload): Handle secondary reloads for
795 literal pools.
796 (aarch64_override_options): Handle nopcrelative_literal_loads.
797 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
798 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
799 Define.
800 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
801 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
802 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
803 predicate.
804 * doc/invoke.texi (mpc-relative-literal-loads): Document.
805
806 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
807
808 PR middle-end/67401
809 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
810 sync_compare_and_swap_optab libcall to target_oval.
811
812 2015-09-14 Marek Polacek <polacek@redhat.com>
813
814 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
815 value.
816 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
817
818 2015-09-11 Mark Wielaard <mjw@redhat.com>
819
820 PR c/28901
821 * toplev.c (check_global_declaration): Check and use
822 warn_unused_const_variable.
823 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
824 (-Wunused-variable): Remove non-constant. For C implies
825 -Wunused-const-variable.
826 (-Wunused-const-variable): New.
827
828 2015-09-14 Richard Biener <rguenther@suse.de>
829
830 * doc/match-and-simplify.texi: Update for changed syntax
831 of inner ifs and the new switch expression.
832
833 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
834
835 * config/i386/haswell.md: New file describing Haswell pipeline.
836 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
837 haswell-like processors.
838 (ix86_reassociation_width): Increase reassociation width for 64-bit
839 Haswell processor family.
840 * config/i386/i386.md: Introduce haswell cpu and include new md file.
841
842 2015-09-14 Richard Biener <rguenther@suse.de>
843
844 * doc/match-and-simplify.texi: Fixup some formatting issues
845 and document the 's' flag.
846
847 2015-09-13 Olivier Hainque <hainque@adacore.com>
848 Eric Botcazou <ebotcazou@adacore.com>
849
850 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
851 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
852 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
853 (TARGET_CPU_gr5): Likewise.
854 (TARGET_CPU_gr6): Likewise.
855 (MULTILIB_DEFAULTS): Likewise.
856 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
857 for mcpu=gr5 and mcpu=gr6.
858 (MULTILIB_DIRNAMES): Adjust accordingly.
859
860 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
861
862 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
863 (mem_ref_p): Likewise.
864 (outermost_indep_loop): Adjust.
865 (mem_ref_in_stmt): Likewise.
866 (determine_max_movement): Likewise.
867 (mem_ref_alloc): Likewise.
868 (record_mem_ref_loc): Likewise.
869 (set_ref_stored_in_loop): Likewise.
870 (mark_ref_stored): Likewise.
871 (gather_mem_refs_stmt): Likewise.
872 (mem_refs_may_alias_p): Likewise.
873 (for_all_locs_in_loop): Likewise.
874 (struct rewrite_mem_ref_loc): Likewise.
875 (rewrite_mem_refs): Likewise.
876 (struct first_mem_ref_loc_1): Likewise.
877 (first_mem_ref_loc): Likewise.
878 (struct sm_set_flag_if_changed): Likewise.
879 (execute_sm_if_changed_flag_set): Likewise.
880 (execute_sm): Likewise.
881 (hoist_memory_references):
882 (struct ref_always_accessed): Likewise.
883 (ref_always_accessed_p): Likewise.
884 (refs_independent_p): Likewise.
885 (record_dep_loop): Likewise.
886 (ref_indep_loop_p_1): Likewise.
887 (ref_indep_loop_p_2): Likewise.
888 (ref_indep_loop_p): Likewise.
889 (can_sm_ref_p): Likewise.
890 (find_refs_for_sm): Likewise.
891 (tree_ssa_lim_finalize): Likewise.
892
893 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
894
895 * dwarf2out.c (dw_attr_ref): Remove typedef.
896 (dw_line_info_ref): Likewise.
897 (pubname_ref): Likewise.
898 (dw_ranges_ref): Likewise.
899 (dw_ranges_by_label_ref): Likewise.
900 (comdat_type_node_ref): Likewise.
901 (get_AT): Adjust.
902 (get_AT_low_pc): Likewise.
903 (get_AT_hi_pc): Likewise.
904 (get_AT_string): Likewise.
905 (get_AT_flag): Likewise.
906 (get_AT_unsigned): Likewise.
907 (get_AT_ref): Likewise.
908 (get_AT_file): Likewise.
909 (remove_AT): Likewise.
910 (print_die): Likewise.
911 (check_die): Likewise.
912 (die_checksum): Likewise.
913 (attr_checksum_ordered): Likewise.
914 (struct checksum_attributes): Likewise.
915 (collect_checksum_attributes): Likewise.
916 (die_checksum_ordered): Likewise.
917 (same_die_p): Likewise.
918 (is_declaration_die): Likewise.
919 (clone_die): Likewise.
920 (clone_as_declaration): Likewise.
921 (copy_declaration_context): Likewise.
922 (break_out_comdat_types): Likewise.
923 (copy_decls_walk): Likewise.
924 (output_location_lists): Likewise.
925 (external_ref_hasher::hash): Likewise.
926 (optimize_external_refs_1): Likewise.
927 (build_abbrev_table): Likewise.
928 (size_of_die): Likewise.
929 (unmark_all_dies): Likewise.
930 (size_of_pubnames): Likewise.
931 (output_die_abbrevs): Likewise.
932 (output_die): Likewise.
933 (output_pubnames): Likewise.
934 (add_ranges_num): Likewise.
935 (add_ranges_by_labels): Likewise.
936 (add_high_low_attributes): Likewise.
937 (gen_producer_string): Likewise.
938 (dwarf2out_set_name): Likewise.
939 (new_line_info_table): Likewise.
940 (prune_unused_types_walk_attribs): Likewise.
941 (prune_unused_types_update_strings): Likewise.
942 (prune_unused_types): Likewise.
943 (resolve_addr): Likewise.
944 (optimize_location_lists_1): Likewise.
945 (index_location_lists): Likewise.
946 (dwarf2out_finish): Likewise.
947
948 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
949
950 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
951
952 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
953
954 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
955 (dump_asserts_for): Adjust.
956 (register_new_assert_for): Likewise.
957 (process_assert_insertions): Likewise.
958 (insert_range_assertions): Likewise.
959
960 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
961
962 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
963 and remove typedef.
964 (new_temp_expr_table): Adjust.
965 (free_temp_expr_table): Likewise.
966 (version_to_be_replaced_p): Likewise.
967 (make_dependent_on_partition): Likewise.
968 (add_to_partition_kill_list): Likewise.
969 (remove_from_partition_kill_list): Likewise.
970 (add_dependence): Likewise.
971 (finished_with_expr): Likewise.
972 (process_replaceable): Likewise.
973 (kill_expr): Likewise.
974 (kill_virtual_exprs): Likewise.
975 (mark_replaceable): Likewise.
976 (find_replaceable_in_bb): Likewise.
977 (find_replaceable_exprs): Likewise.
978 (debug_ter): Likewise.
979
980 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
981
982 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
983 (struct btr_user): Rename from btr_user_s.
984 (struct btr_def): Rename from btr_def_s.
985 (find_btr_def_group): Adjust.
986 (add_btr_def): Likewise.
987 (new_btr_user): Likewise.
988 (note_other_use_this_block): Likewise.
989 (compute_defs_uses_and_gen): Likewise.
990 (link_btr_uses): Likewise.
991 (build_btr_def_use_webs): Likewise.
992 (block_at_edge_of_live_range_p): Likewise.
993 (btr_def_live_range): Likewise.
994 (combine_btr_defs): Likewise.
995 (move_btr_def): Likewise.
996 (migrate_btr_def): Likewise.
997 (migrate_btr_defs): Likewise.
998
999 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1000
1001 * var-tracking.c (shared_hash_def): Rename to shared_hash.
1002 (shared_hash): Remove typedef.
1003 (struct dataflow_set): Adjust.
1004 (shared_hash_unshare): Likewise.
1005 (dataflow_set_merge): Likewise.
1006 (vt_initialize): Likewise.
1007 (vt_finalize): Likewise.
1008
1009 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1010
1011 * var-tracking.c (struct location_chain): Rename from
1012 location_chain_def.
1013 (struct variable_part): Adjust.
1014 (variable_htab_free): Likewise.
1015 (unshare_variable): Likewise.
1016 (get_init_value): Likewise.
1017 (get_addr_from_local_cache): Likewise.
1018 (drop_overlapping_mem_locs): Likewise.
1019 (val_reset): Likewise.
1020 (struct variable_union_info): Likewise.
1021 (variable_union): Likewise.
1022 (find_loc_in_1pdv): Likewise.
1023 (insert_into_intersection): Likewise.
1024 (intersect_loc_chains): Likewise.
1025 (canonicalize_loc_order_check): Likewise.
1026 (canonicalize_values_mark): Likewise.
1027 (canonicalize_values_star): Likewise.
1028 (canonicalize_vars_star): Likewise.
1029 (variable_merge_over_cur): Likewise.
1030 (remove_duplicate_values): Likewise.
1031 (variable_post_merge_new_vals): Likewise.
1032 (variable_post_merge_perm_vals): Likewise.
1033 (find_mem_expr_in_1pdv): Likewise.
1034 (dataflow_set_preserve_mem_locs): Likewise.
1035 (dataflow_set_remove_mem_locs): Likewise.
1036 (variable_part_different_p): Likewise.
1037 (onepart_variable_different_p): Likewise.
1038 (find_src_set_src): Likewise.
1039 (dump_var): Likewise.
1040 (set_slot_part): Likewise.
1041 (clobber_slot_part): Likewise.
1042 (delete_slot_part): Likewise.
1043 (vt_expand_var_loc_chain): Likewise.
1044 (emit_note_insn_var_location): Likewise.
1045 (vt_finalize): Likewise.
1046
1047 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1048
1049 * dse.c (store_info_t): Remove typedef.
1050 (group_info_t): Likewise.
1051 (const_group_info_t): Likewise.
1052 (deferred_change_t): Likewise.
1053 (get_group_info): Adjust.
1054 (free_store_info): Likewise.
1055 (canon_address): Likewise.
1056 (clear_rhs_from_active_local_stores): Likewise.
1057 (record_store): Likewise.
1058 (replace_read): Likewise.
1059 (check_mem_read_rtx): Likewise.
1060 (scan_insn): Likewise.
1061 (remove_useless_values): Likewise.
1062 (dse_step1): Likewise.
1063 (dse_step2_init): Likewise.
1064 (dse_step2_nospill): Likewise.
1065 (scan_stores_nospill): Likewise.
1066 (scan_reads_nospill): Likewise.
1067 (dse_step3_exit_block_scan): Likewise.
1068 (dse_step3): Likewise.
1069 (dse_step5_nospill): Likewise.
1070 (dse_step6): Likewise.
1071
1072 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1073
1074 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
1075 (alias_set_entry): Remove typedef.
1076 (alias_set_subset_of): Adjust.
1077 (alias_sets_conflict_p): Likewise.
1078 (init_alias_set_entry): Likewise.
1079 (get_alias_set): Likewise.
1080 (new_alias_set): Likewise.
1081 (record_alias_subset): Likewise.
1082
1083 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
1084
1085 * doc/install.texi (Downloading the source): Mark up
1086 contrib/download_prerequisites properly and drop leading "./".
1087
1088 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1089
1090 * config/arc/arc.h: Remove define of STRUCT_VALUE.
1091 * config/lm32/lm32.h: Likewise.
1092 * config/mep/mep.h: Likewise.
1093 * config/visium/visium.h: Likewise.
1094 * system.h: Poison STRUCT_VALUE macro.
1095
1096 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
1097
1098 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
1099 CONSTANT_P operands.
1100
1101 2015-09-11 David S. Miller <davem@davemloft.net>
1102
1103 * config/sparc/constraints.md: Make "U" constraint a real register
1104 constraint.
1105 * config/sparc/sparc.c (TARGET_LRA_P): Define.
1106 (D_MODES, DF_MODES): Add missing cast.
1107 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1108 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1109 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1110 cost to 8.
1111 * config/sparc/sparc.h (PROMOTE_MODE): Define.
1112 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1113 provide these insn when flag_pic.
1114
1115 2015-09-11 Jeff Law <law@redhat.com>
1116
1117 PR tree-optimization/47679
1118 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
1119 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
1120 member with m_. Update inline member functions as necessary. Add
1121 toplevel comment.
1122 * tree-ssa-scopedtables.c: Update const_and_copies's member
1123 functions to use m_ prefix to access the stack.
1124
1125 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
1126
1127 * graphite-optimize-isl.c (disable_tiling): Remove.
1128 (get_schedule_for_band): Do not use disable_tiling.
1129 (get_prevector_map): Delete function.
1130 (enable_polly_vector): Remove.
1131 (get_schedule_for_band_list): Remove dead code.
1132
1133 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
1134
1135 * graphite-optimize-isl.c (get_tile_map): Refactor.
1136 (get_schedule_for_band): Same.
1137 (getScheduleForBand): Same.
1138 (get_prevector_map): Same.
1139 (get_schedule_for_band_list): Same.
1140 (get_schedule_map): Same.
1141 (get_single_map): Same.
1142 (apply_schedule_map_to_scop): Same.
1143 (optimize_isl): Same.
1144
1145 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1146
1147 PR target/63304
1148 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
1149 (movtf): Delete.
1150 * config/aarch64/iterators.md (GPF_TF_F16): New.
1151 (GPF_F16): Delete.
1152
1153 2015-09-10 Nathan Sidwell <nathan@acm.org>
1154
1155 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
1156 (nvptx_reorg): Adjust comments.
1157
1158 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
1159
1160 PR bootstrap/67363
1161 * configure.ac: Check if setenv and unsetenv are declared.
1162 * configure: Rebuild.
1163 * config.in: Rebuild.
1164 * system.h: Declare setenv and unsetenv if not declared.
1165
1166 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1167
1168 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
1169 commentary to simplify permute mask adjustment equation.
1170 (special_handling_values): Add SH_VPERM.
1171 (const_load_sequence_p): New function.
1172 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
1173 the mask loaded from the constant pool.
1174 (adjust_vperm): New function.
1175 (handle_special_swappables): Call adjust_vperm.
1176 (dump_swap_insn_table): Handle SH_VPERM.
1177
1178 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
1179
1180 * shrink-wrap.c (requires_stack_frame_p): Remove static.
1181 * shrink-wrap.h (requires_stack_frame_p): Put back.
1182
1183 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
1184
1185 * reload1.c (elimination_costs_in_insn): Locally turn
1186 -Wmaybe-uninitialized into a warning.
1187
1188 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
1189
1190 * shrink-wrap.c (requires_stack_frame_p): Make static.
1191 (prepare_shrink_wrap): Likewise.
1192 (dup_block_and_redirect): Likewise.
1193 * shrink-wrap.h: Remove declarations of those functions.
1194
1195 2015-09-10 Mark Wielaard <mjw@redhat.com>
1196
1197 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
1198
1199 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
1200
1201 PR target/67506
1202 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
1203 missing simplify_gen_subreg.
1204
1205 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1206
1207 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
1208 the vector element is bigger than 64 bit.
1209
1210 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1211
1212 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
1213 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
1214
1215 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1216
1217 * config/s390/s390.c: Add V1TImode to constant pool modes.
1218
1219 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1220
1221 PR target/67439
1222 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
1223 predicate. Set predicable_short_it attr to "no".
1224
1225 2015-09-10 Jiong Wang <jiong.wang@arm.com>
1226
1227 PR rtl-optimization/67421
1228 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
1229 left wide shift tranformation.
1230
1231 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
1232
1233 * common/config/arc/arc-common.c: Remove references to A5.
1234 * config/arc/arc-opts.h: Likewise.
1235 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
1236 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
1237 * config/arc/t-arc-newlib: Likewise.
1238
1239 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
1240
1241 * config/arc/arc.md (length): Fix attribute length for conditional
1242 executed instructions with long immediate.
1243
1244 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1245
1246 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
1247 type for second alternative.
1248
1249 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
1250
1251 * doc/invoke.texi (Downloading GCC): Mention
1252 contrib/download_prerequisites script.
1253
1254 2015-09-10 Jakub Jelinek <jakub@redhat.com>
1255
1256 PR c++/67523
1257 * gimplify.c (gimplify_omp_for): If inner stmt is not found
1258 for combined loop, assert seen_error () and return GS_ERROR.
1259
1260 PR middle-end/67521
1261 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
1262 if decl is already in outer->variables.
1263
1264 PR middle-end/67517
1265 * gimplify.c (gimplify_scan_omp_clauses): Instead of
1266 asserting that decl is not specified in octx->variables,
1267 break out of the loop if it is.
1268
1269 PR c++/67514
1270 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
1271 iterator is not explicitly determined, but is defined inside
1272 of the combined workshare region, handle it like if it has
1273 DECL_EXPR in OMP_FOR_PRE_BODY.
1274
1275 2015-09-09 Nathan Sidwell <nathan@acm.org>
1276
1277 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
1278 (*cmp<mode>): Add assembler spacing.
1279 (setcc_int<mode>, set_cc_float<mode>): Likewise.
1280 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
1281 level.
1282 (write_func_decl_from_insn): Refactor argument loops & comma emission.
1283 (nvptx_expand_call): Likewise.
1284 (nvptx_output_call_insn): Likewise.
1285 (nvptx_reorg_subreg): Add spacing.
1286
1287 2015-09-09 Marek Polacek <polacek@redhat.com>
1288
1289 PR middle-end/67512
1290 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
1291 for comparisons.
1292
1293 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1294
1295 PR c++/53184
1296 * doc/invoke.texi ([Wsubobject-linkage]): Document.
1297
1298 2015-09-09 Tom de Vries <tom@codesourcery.com>
1299
1300 * params-list.h: Add missing copyright notice.
1301
1302 2015-09-09 Nathan Sidwell <nathan@acm.org>
1303
1304 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
1305 sel_truesi, not andsi.
1306
1307 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1308
1309 * config/arm/arm.md (*subsi3_compare0): Rename to...
1310 (subsi3_compare0): ... This.
1311 (modsi3): New define_expand.
1312 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
1313 when operand is power of 2.
1314
1315 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1316
1317 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
1318 (*neg<mode>2_compare0): Rename to...
1319 (neg<mode>2_compare0): ... This.
1320 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
1321 Move check for speed inside the if-then-elses. Reflect
1322 CSNEG sequence in MOD by power of 2 case.
1323
1324 2015-09-09 Alan Modra <amodra@gmail.com>
1325
1326 PR target/67378
1327 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
1328 reload replacement for PRE_MODIFY address reg.
1329
1330 2015-09-09 Sebastian Pop <s.pop@samsung.com>
1331
1332 PR tree-optimization/53852
1333 * config.in: Regenerate.
1334 * configure: Regenerate.
1335 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
1336 * graphite-optimize-isl.c (optimize_isl): Stop computation when
1337 PARAM_MAX_ISL_OPERATIONS is reached.
1338 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
1339 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
1340 result equal to isl_stat_ok as the status now can be isl_error_quota.
1341 (subtract_commutative_associative_deps): Same.
1342 (compute_deps): Same.
1343
1344 2015-09-08 Aditya Kumar <hiraditya@msn.com>
1345 Sebastian Pop <s.pop@samsung.com>
1346
1347 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1348 Return the parameter if it was saved in corresponding
1349 parameter_rename_map of the region.
1350 (copy_def): Copy def from sese region to the newly created region.
1351 (copy_internal_parameters): Copy all the internal parameters defined
1352 within a region to the newly created region.
1353 (graphite_regenerate_ast_isl): Copy parameters to the new region before
1354 translating isl to gimple.
1355 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
1356 the loop-nest does not have any data-references.
1357 (build_graphite_scops): Create a scop only when there is at least one
1358 loop inside it.
1359 (contains_only_close_phi_nodes): Deleted.
1360 (print_graphite_scop_statistics): Deleted
1361 (print_graphite_statistics): Deleted
1362 (limit_scops): Deleted.
1363 (build_scops): Removed call to limit_scops.
1364 * sese.c (new_sese): Construct.
1365 (free_sese): Destruct.
1366 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
1367 added.
1368 (set_rename): Pass sese region so that parameters inside the region can
1369 be added to its parameter_rename_map.
1370 (rename_uses): Pass sese region.
1371 (graphite_copy_stmts_from_block): Do not copy parameters that have been
1372 generated in the header of the scop. For each SSA_NAME in the
1373 parameter_rename_map rename its usage.
1374 (invariant_in_sese_p_rec): Return false if tree t is defined outside
1375 sese region.
1376 (scalar_evolution_in_region): If the tree t is invariant just return t.
1377 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
1378 struct sese to keep track of all the parameters which need renaming.
1379 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
1380 any data-refs.
1381 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
1382
1383 2015-09-08 Tom de Vries <tom@codesourcery.com>
1384
1385 * Makefile.in (generated_files): Add params.list.
1386 (params.list, s-params.list): Add rule.
1387 * params.h (enum compiler_param): Include params-list.h. Move define
1388 DEFPARAM, include params.def and undef DEFPARAM ...
1389 * params-list.h: ... here. New file.
1390
1391 2015-09-08 David Malcolm <dmalcolm@redhat.com>
1392
1393 * pretty-print.h (printer_fn): Fix typo in comment.
1394
1395 2015-09-07 Jeff Law <law@redhat.com>
1396
1397 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
1398
1399 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1400
1401 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
1402 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
1403 (arm_neon_fp16_hw): New.
1404
1405 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1406
1407 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
1408 UNITS_PER_WORD >= 4.
1409
1410 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1411
1412 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
1413 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
1414 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
1415 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
1416 (aarch64_float_extend_lo_v2df): Rename to...
1417 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
1418
1419 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
1420 (float_extend_lo): Add v4sf.
1421
1422 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
1423 * config/aarch64/iterators.md (VQ_HSF): New iterator.
1424 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
1425 (Vwide): New mode_attr.
1426
1427 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1428
1429 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
1430 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
1431 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
1432 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
1433 V4HF and V8HF variants to iterator.
1434
1435 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
1436
1437 * config/aarch64/iterators.md (VDQF_F16): New.
1438 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
1439
1440 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1441
1442 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
1443 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
1444 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
1445 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
1446 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
1447 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
1448 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
1449 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
1450 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
1451 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
1452 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
1453 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
1454 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
1455 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
1456 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
1457 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
1458 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
1459 vld1q_dup_f16): New.
1460
1461 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1462
1463 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
1464 Reparameterize to...
1465 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
1466 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
1467 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
1468
1469 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
1470 v8hf variant.
1471 (float_truncate_lo_): Use BUILTIN_VDF iterator.
1472
1473 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
1474
1475 * config/aarch64/iterators.md (VDF, Vdtype): New.
1476 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
1477
1478 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1479
1480 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
1481 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
1482 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
1483 Add __builtin_aarch64_simd_hf.
1484 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
1485 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
1486 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
1487 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
1488 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
1489 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
1490 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
1491 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
1492 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
1493
1494 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
1495 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
1496 (VDC, Vdbl): Add V4HF.
1497
1498 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1499
1500 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
1501 V4HFmode and V8HFmode.
1502 (aarch64_split_simd_move): Add case for V8HFmode.
1503 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
1504 (aarch64_simd_builtin_std_type): Handle HFmode.
1505 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
1506
1507 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
1508 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
1509 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
1510
1511 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
1512 Float16x8_t.
1513
1514 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
1515 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
1516 New typedefs.
1517 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
1518 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
1519 vst1q_lane_f16): New.
1520 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
1521 (VALLDI_F16, VALL_F16): New.
1522 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
1523 Add cases for V4HF and V8HF.
1524 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
1525
1526 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1527
1528 * config/arm/arm-builtins.c (VAR11, VAR12): New.
1529 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
1530 vld4_dup): Add v4hf variant.
1531 (vget_high, vget_low): Add v8hf variant.
1532 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
1533 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
1534 v4hf and v8hf variants.
1535
1536 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
1537 (VDX): Add V4HF.
1538 (V_DOUBLE): Add case for V4HF.
1539 (VQX): Add V8HF.
1540 (V_HALF): Add case for V8HF.
1541 (VDQX): Add V4HF, V8HF.
1542 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
1543 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
1544
1545 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
1546 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
1547 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
1548 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
1549 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
1550 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
1551 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
1552 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
1553 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
1554
1555 (neon_vcreate, neon_vreinterpretv8qi<mode>,
1556 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
1557 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
1558 Change VDX to VD_RE.
1559
1560 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
1561 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
1562 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
1563
1564 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
1565 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
1566 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
1567 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
1568 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
1569 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
1570 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
1571 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
1572 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
1573
1574 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1575
1576 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
1577 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
1578 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
1579 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
1580 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
1581 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
1582 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
1583 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
1584 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
1585 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
1586 New.
1587
1588 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1589
1590 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
1591
1592 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
1593
1594 * config/arm/arm-builtins.c (v8hf_UP): New.
1595 (arm_init_simd_builtin_types): Initialise Float16x8_t.
1596
1597 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
1598
1599 * config/arm/arm_neon.h (float16x8_t): New typedef.
1600
1601 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1602
1603 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
1604 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
1605 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
1606 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
1607 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
1608 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
1609 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
1610 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
1611 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
1612 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
1613
1614 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
1615
1616 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
1617 non-alphanumeric characters in the symbol name.
1618
1619 2015-09-07 Marek Polacek <polacek@redhat.com>
1620
1621 PR inline-asm/67448
1622 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
1623 a memory input.
1624
1625 2015-09-07 Marek Polacek <polacek@redhat.com>
1626
1627 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
1628
1629 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
1630
1631 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
1632 not warn.
1633
1634 2015-09-04 Jakub Jelinek <jakub@redhat.com>
1635
1636 PR middle-end/67452
1637 * tree-ssa-live.c: Include cfgloop.h.
1638 (remove_unused_locals): Clear loop->simduid if simduid is about
1639 to be removed from cfun->local_decls.
1640
1641 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1642
1643 PR target/65210
1644 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
1645 attribute as well.
1646
1647 2015-09-04 Tom de Vries <tom@codesourcery.com>
1648
1649 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
1650
1651 2015-09-04 Jeff Law <law@redhat.com>
1652
1653 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
1654 unnecessary constructor. It's now trivial and implemented inside...
1655 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
1656 constructor. Add comments to various methods. Remove unused
1657 private fields.
1658 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
1659 * tree-vrp.c (identify_jump_threads): Likewise.
1660 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
1661 indentation issues.
1662 (thread_across_edge): Similarly.
1663 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
1664 arguments in constructor call.
1665
1666 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
1667
1668 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
1669 temp path contains a '-'.
1670
1671 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
1672 Petr Murzin <petr.murzin@intel.com>
1673 Kirill Yukhin <kirill.yukhin@intel.com>
1674
1675 * config/i386/i386-builtin-types.def
1676 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
1677 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
1678 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
1679 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
1680 * config/i386/i386.c
1681 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
1682 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
1683 IX86_BUILTIN_SCATTERALTDIV16SI.
1684 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
1685 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
1686 __builtin_ia32_scatteraltdiv8si.
1687 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
1688 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
1689 IX86_BUILTIN_SCATTERALTDIV16SI.
1690 (ix86_vectorize_builtin_scatter): New.
1691 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
1692 ix86_vectorize_builtin_scatter.
1693
1694 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
1695 Petr Murzin <petr.murzin@intel.com>
1696 Kirill Yukhin <kirill.yukhin@intel.com>
1697
1698 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
1699 * doc/tm.texi: Regenerate.
1700 * target.def: Add scatter builtin.
1701 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
1702 for loads/stores in case of gather/scatter accordingly.
1703 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
1704 (vect_check_gather): Rename to ...
1705 (vect_check_gather_scatter): this.
1706 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
1707 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
1708 (vect_check_gather_scatter): Use it instead of vect_check_gather.
1709 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter variable
1710 and new checkings for it accordingly.
1711 * tree-vect-stmts.c
1712 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
1713 (vect_check_gather_scatter): Use it instead of vect_check_gather.
1714 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
1715
1716 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
1717
1718 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
1719 define_insn.
1720 (mulv16qi3): New define_expand.
1721
1722 2015-09-03 Martin Sebor <msebor@redhat.com>
1723
1724 PR c/66516
1725 * doc/extend.texi (Other Builtins): Document when the address
1726 of a built-in function can be taken.
1727
1728 2015-09-03 Richard Biener <rguenther@suse.de>
1729
1730 * dwarf2out.c (flush_limbo_die_list): Split out from ...
1731 (dwarf2out_early_finish): ... here.
1732 (dwarf2out_finish): Do not call dwarf2out_early_finish but
1733 flush_limbo_die_list. Assert we have no deferred asm names.
1734
1735 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1736
1737 * optabs.c (expand_binop): Don't create a broadcast vector with a
1738 source element wider than the inner mode.
1739
1740 2015-09-03 Richard Biener <rguenther@suse.de>
1741
1742 * varasm.c (output_constant): Use fold_convert instead of
1743 wide_int_to_tree.
1744
1745 2015-09-03 Tom de Vries <tom@codesourcery.com>
1746
1747 PR tree-optimization/65637
1748 * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
1749 predecessors.
1750
1751 2015-09-03 Tom de Vries <tom@codesourcery.com>
1752
1753 PR tree-optimization/65637
1754 * omp-low.c (find_phi_with_arg_on_edge): New function.
1755 (expand_omp_for_static_chunk): Fix inner loop phi.
1756
1757 2015-09-03 Tom de Vries <tom@codesourcery.com>
1758
1759 PR tree-optimization/65637
1760 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
1761 that head is NULL.
1762
1763 2015-09-03 Tom de Vries <tom@codesourcery.com>
1764
1765 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
1766
1767 2015-09-03 Tom de Vries <tom@codesourcery.com>
1768
1769 * doc/invoke.texi (parloops-chunk-size): Add item.
1770 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
1771 * tree-parloops.c: Include params.h.
1772 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
1773 param parloops-chunk-size is used.
1774
1775 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1776
1777 PR middle-end/67351
1778 * fold-const.c (fold_binary_loc) : Move
1779 Transform (x >> c) << c into x & (-1<<c) or
1780 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
1781 types using simplify and match.
1782 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
1783 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
1784
1785 2015-09-03 Richard Biener <rguenther@suse.de>
1786
1787 PR ipa/66705
1788 * tree-ssa-structalias.c (ctor_for_analysis): New function.
1789 (create_variable_info_for_1): Use ctor_for_analysis instead
1790 of get_constructor.
1791 (create_variable_info_for): Likewise.
1792
1793 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
1794
1795 PR ipa/67280
1796 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
1797 in new callgraph edge.
1798
1799 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
1800
1801 PR target/59810
1802 PR target/63652
1803 PR target/63653
1804 * config/aarch64/aarch64-simd.md
1805 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
1806 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
1807 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
1808 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
1809
1810 2015-09-02 Alan Modra <amodra@gmail.com>
1811
1812 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
1813 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
1814 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
1815
1816 2015-09-02 Alan Modra <amodra@gmail.com>
1817
1818 PR target/67417
1819 * config/rs6000/predicates.md (current_file_function_operand): Don't
1820 return true for weak symbols.
1821 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
1822
1823 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
1824 Andrew Bennett <andrew.bennett@imgtec.com>
1825
1826 * config/mips/mips-opts.h (mips_cb_setting): New enum.
1827 * config/mips/mips-protos.h: Add definitions for
1828 mips_output_jump and mips_output_equal_conditional_branch
1829 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
1830 JIC instruction.
1831 (mips_emit_compare): Add support for the MIPS R6 conditional
1832 compact branches.
1833 (mips_process_sync_loop): Likewise.
1834 (mips_output_order_conditional_branch): Likewise.
1835 (mips16_build_call_stub): Change MIPS_CALL to
1836 mips_output_jump.
1837 (mips_print_operand_punctuation): Update 's' case to only
1838 apply to micromips r2.
1839 (mips_adjust_insn_length): Add support for forbidden slot
1840 hazards.
1841 (mips_avoid_hazard): Likewise.
1842 (mips_reorg_process_insns): Likewise.
1843 (mips_output_jump): New function.
1844 (mips_output_equal_conditional_branch): Likewise.
1845 (mips_output_conditional_branch): Use jrc/bc if compact
1846 branch support is enabled. Ensure the forbidden slots
1847 between the two branch instructions is filled with a nop.
1848 (mips_option_override): Add support to process the compact
1849 branch option and set the correct defaults. Prevent
1850 non-explict relocs being using for MIPS R6.
1851 (mips_trampoline_init): Add compact branch support.
1852 (mips_mult_zero_zero_cost): Allow zero initialisation of
1853 accumulators with TARGET_DSP.
1854 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
1855 (TARGET_CB_MAYBE): New define.
1856 (TARGET_CB_ALWAYS): New define.
1857 (ISA_HAS_DELAY_SLOTS): New define.
1858 (ISA_HAS_COMPACT_BRANCHES): New define.
1859 (ISA_HAS_JRC): New define.
1860 (MIPS_BRANCH_C): New define.
1861 (MIPS_CALL): Removed.
1862 (MICROMIPS_J): Removed.
1863 * config/mips/mips.md (compact_form): New attr.
1864 (hazard): Add support for forbidden slots.
1865 (define_delay): Add support for compact branches.
1866 (*branch_order<mode>): Likewise.
1867 (*branch_order<mode>_inverted): Likewise.
1868 (*branch_equality<mode>): Likewise.
1869 (*branch_equality<mode>_inverted): Likewise.
1870 (*jump_absolute): Likewise.
1871 (*jump_pic): Likewise.
1872 (indirect_jump): Use mips_output_jump to produce assembly output.
1873 (tablejump_<mode>"): Likewise.
1874 (*<optab>"): Likewise.
1875 (<optab>_internal): Likewise.
1876 (sibcall_internal): Likewise.
1877 (sibcall_value_internal): Likewise.
1878 (sibcall_value_multiple_internal): Likewise.
1879 (call_internal): Likewise.
1880 (call_split): Likewise.
1881 (call_internal_direct): Likewise.
1882 (call_direct_split): Likewise.
1883 (call_value_internal): Likewise.
1884 (call_value_split): Likewise.
1885 (call_value_internal_direct): Likewise.
1886 (call_value_direct_split): Likewise.
1887 (call_value_multiple_internal): Likewise.
1888 (call_value_multiple_split): Likewise.
1889 (mips_get_fcsr_mips16_<mode>): Likewise.
1890 (mips_set_fcsr_mips16_<mode>): Likewise.
1891 (tls_get_tp_mips16_<mode>): Likewise.
1892 * config/mips/mips.opt: Add -mcompact-branches option.
1893 * config/mips/predicates.md (order_operator): Ensure the
1894 conditional compact branches are only used if the ISA them.
1895 * doc/invoke.texi: Document -mcompact-branches option.
1896
1897 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
1898
1899 PR target/61578
1900 * lra-lives.c (process_bb_lives): Process move pseudos with the
1901 same value for copies and preferences
1902 * lra-constraints.c (match_reload): Create match reload pseudo
1903 with the same value from single dying input pseudo.
1904
1905 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
1906
1907 PR target/67405
1908 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
1909
1910 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
1911
1912 * trans-mem.c: Add contributed-by.
1913 * trans-mem.h: Same.
1914
1915 2015-09-01 Richard Biener <rguenther@suse.de>
1916
1917 * expr.c (expand_expr_real_1): For expanding TERed defs
1918 set the current location to that of the def if not UNKNOWN.
1919
1920 2015-09-01 David Sherwood <david.sherwood@arm.com>
1921
1922 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
1923
1924 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1925
1926 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
1927 then_cost, else_cost fields. Change branch_cost field to unsigned
1928 int.
1929 (end_ifcvt_sequence): Call set_used_flags on each insn in the
1930 sequence.
1931 Include rtl-iter.h.
1932 (noce_simple_bbs): New function.
1933 (noce_try_move): Bail if basic blocks are not simple.
1934 (noce_try_store_flag): Likewise.
1935 (noce_try_store_flag_constants): Likewise.
1936 (noce_try_addcc): Likewise.
1937 (noce_try_store_flag_mask): Likewise.
1938 (noce_try_cmove): Likewise.
1939 (noce_try_minmax): Likewise.
1940 (noce_try_abs): Likewise.
1941 (noce_try_sign_mask): Likewise.
1942 (noce_try_bitop): Likewise.
1943 (bbs_ok_for_cmove_arith): New function.
1944 (noce_emit_all_but_last): Likewise.
1945 (noce_emit_insn): Likewise.
1946 (noce_emit_bb): Likewise.
1947 (noce_try_cmove_arith): Handle non-simple basic blocks.
1948 (insn_valid_noce_process_p): New function.
1949 (contains_mem_rtx_p): Likewise.
1950 (bb_valid_for_noce_process_p): Likewise.
1951 (noce_process_if_block): Allow non-simple basic blocks
1952 where appropriate.
1953
1954 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
1955
1956 * tree-ssa-dom.c (record_equivalences_from_phis,
1957 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
1958 (lookup_avail_expr): Likewise, and remove comment and unused temp.
1959
1960 2015-09-01 Nick Clifton <nickc@redhat.com>
1961
1962 * config/msp430/msp430.opt (mcpu): Fix typo.
1963
1964 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1965
1966 * config/aarch64/aarch64.c (aarch64_set_current_function):
1967 Re-layout any vector parameters have non-simd layout.
1968 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
1969 Delete.
1970 (aarch64_simd_expand_args): Delete call to the above.
1971
1972 2015-08-31 Mike Frysinger <vapier@gentoo.org>
1973
1974 * doc/invoke.texi (asan-stack): Add space before option.
1975
1976 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
1977
1978 * tree.h (zerop): New function.
1979 * tree.c (zerop): Likewise.
1980 (element_precision): Handle expressions.
1981 * match.pd (define_predicates): Add zerop.
1982 (x <= +Inf): Fix comment.
1983 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
1984 * fold-const.c (fold_binary_loc): ... here. Remove.
1985
1986 2015-08-31 Richard Biener <rguenther@suse.de>
1987
1988 PR middle-end/67381
1989 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
1990
1991 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
1992
1993 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
1994 (CEXPI): New operator list.
1995 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
1996 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
1997 Converted from ...
1998 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
1999
2000 2015-08-31 Tom de Vries <tom@codesourcery.com>
2001
2002 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
2003 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
2004 parameter.
2005 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
2006 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
2007 (rewrite_into_loop_closed_ssa): ... here.
2008 (replace_uses_in_dominated_bbs): Remove function.
2009 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
2010 rewrite_into_loop_closed_ssa_1.
2011
2012 2015-08-31 Michael Matz <matz@suse.de>
2013
2014 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
2015 enter entry and exit blocks for reverse post order.
2016
2017 2015-08-31 Richard Biener <rguenther@suse.de>
2018
2019 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
2020 (lto_location_cache::current_sysp): Likewise.
2021 (output_block::current_sysp): Likewise.
2022 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
2023 (lto_location_cache::apply_location_cache): Properly record
2024 system header locations.
2025 (lto_location_cache::input_location): Input whether a file
2026 is a system header.
2027 * lto-streamer-out.c (lto_output_location): Stream whether a file
2028 is a system header.
2029
2030 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2031
2032 PR bootstrap/67363
2033 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
2034
2035 2015-08-31 Tom de Vries <tom@codesourcery.com>
2036
2037 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
2038 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
2039 Improve function header comments.
2040
2041 2015-08-30 Michael Collison <michael.collison@linaro.org>
2042
2043 PR other/67320
2044 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
2045 standard names
2046
2047 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2048
2049 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
2050 special_handling bitfield.
2051 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
2052 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
2053 that represents a general xxpermdi.
2054 (insn_is_swappable_p): Add handling for vec_concat of two
2055 doublewords, which maps to a specific xxpermdi.
2056 (adjust_xxpermdi): New function.
2057 (adjust_concat): Likewise.
2058 (handle_special_swappables): Call adjust_xxpermdi and
2059 adjust_concat.
2060 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
2061
2062 2015-08-30 Rich Felker <dalias@libc.org>
2063
2064 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
2065 case instead of sh[123456ble]-*-*.
2066
2067 2015-08-29 Anatoly Sokolov <aesok@post.ru>
2068
2069 * ira.c (print_unform_and_important_classes,
2070 print_translated_classes): Remove reg_class_names static array.
2071 (print_unform_and_important_classes): Rename to ...
2072 (print_uniform_and_important_classes): ... this.
2073 (ira_debug_allocno_classes): Update accordingly.
2074
2075 2015-08-29 Tom de Vries <tom@codesourcery.com>
2076
2077 PR tree-optimization/46193
2078 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
2079 clause.
2080
2081 2015-08-28 Jeff Law <law@redhat.com>
2082
2083 PR lto/66752
2084 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2085 unable to find X NE 0 in the tables, return X as the simplified
2086 condition.
2087 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2088 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2089 to VISISTED_BBS.
2090 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2091 after removing the control flow statement and unnecessary edges.
2092
2093 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
2094
2095 Revert:
2096 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2097 PR tree-optimization/67283
2098 * tree-sra.c (type_consists_of_records_p): Rename to...
2099 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2100
2101 (completely_scalarize_record): Rename to...
2102 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
2103 code to:
2104 (scalarize_elem): New.
2105
2106 2015-08-28 Jiong Wang <jiong.wang@arm.com>
2107
2108 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
2109 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
2110 (aarch64_symbol_type): Likewise.
2111 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2112 Likewise.
2113 (aarch64_expand_mov_immediate): Likewise.
2114 (aarch64_print_operand): Likewise.
2115 (aarch64_classify_tls_symbol): Likewise.
2116
2117 2015-08-28 Richard Biener <rguenther@suse.de>
2118
2119 * cgraphunit.c (symbol_table::compile): Move early debug generation
2120 and finish...
2121 (symbol_table::finalize_compilation_unit): ... back here and
2122 add a !seen_error () guard.
2123
2124 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2125
2126 * toplev.c (process_options): Do not use flag_loop_block,
2127 flag_loop_interchange, and flag_loop_strip_mine. Add check for
2128 flag_loop_optimize_isl.
2129
2130 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2131
2132 * Makefile.in (OBJS): Remove graphite-blocking.o and
2133 graphite-interchange.o.
2134 * common.opt (floop-strip-mine, floop-interchange, floop-block):
2135 Alias of floop-nest-optimize.
2136 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
2137 Document as alias of -floop-nest-optimize.
2138 * graphite-blocking.c: Remove.
2139 * graphite-interchange.c: Remove.
2140 * graphite-optimize-isl.c: Include dumpfile.h.
2141 (getScheduleForBand): Add dump for tiled loops. Use
2142 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
2143 * graphite-poly.c (scop_max_loop_depth): Remove.
2144 (print_scattering_function_1): Remove.
2145 (print_scattering_function): Remove.
2146 (print_scattering_functions): Remove.
2147 (debug_scattering_function): Remove.
2148 (debug_scattering_functions): Remove.
2149 (apply_poly_transforms): Remove use of flag_loop_block,
2150 flag_loop_strip_mine, and flag_loop_interchange.
2151 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
2152 PBB_ORIGINAL.
2153 (print_pdr_access_layout): Remove.
2154 (print_pdr): Print ISL representation.
2155 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
2156 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2157 (free_scop): Same.
2158 (openscop_print_pbb_domain): Remove.
2159 (print_pbb): Remove call to print_scattering_function.
2160 (openscop_print_scop_context): Remove.
2161 (print_scop_context): Do not print matrices anymore.
2162 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
2163 SCOP_TRANSFORMED_SCHEDULE.
2164 (print_isl_set): Add printing of a new line.
2165 (print_isl_map): Same.
2166 (print_isl_aff): Same.
2167 (print_isl_constraint): Same.
2168 (loop_to_lst): Remove.
2169 (scop_to_lst): Remove.
2170 (lst_indent_to): Remove.
2171 (print_lst): Remove.
2172 (debug_lst): Remove.
2173 (dot_lst_1): Remove.
2174 (dot_lst): Remove.
2175 (reverse_loop_at_level): Remove.
2176 (reverse_loop_for_pbbs): Remove.
2177 * graphite-poly.h (pdr_dim_iter_domain): Remove.
2178 (pdr_nb_params): Remove.
2179 (pdr_alias_set_dim): Remove.
2180 (pdr_subscript_dim): Remove.
2181 (pdr_iterator_dim): Remove.
2182 (pdr_parameter_dim): Remove.
2183 (same_pdr_p): Remove.
2184 (struct poly_scattering): Remove.
2185 (struct poly_bb): Remove _original, _transformed, _saved.
2186 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
2187 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
2188 (PBB_NB_LOCAL_VARIABLES): Remove.
2189 (PBB_NB_SCATTERING_TRANSFORM): Remove.
2190 (schedule_to_scattering): Remove.
2191 (number_of_write_pdrs): Remove.
2192 (pbb_dim_iter_domain): Remove.
2193 (pbb_nb_params): Remove.
2194 (pbb_nb_scattering_orig): Remove.
2195 (pbb_nb_scattering_transform): Remove.
2196 (pbb_nb_dynamic_scattering_transform): Remove.
2197 (pbb_nb_local_vars): Remove.
2198 (pbb_iterator_dim): Remove.
2199 (pbb_parameter_dim): Remove.
2200 (psco_scattering_dim): Remove.
2201 (psct_scattering_dim): Remove.
2202 (psct_local_var_dim): Remove.
2203 (psco_iterator_dim): Remove.
2204 (psct_iterator_dim): Remove.
2205 (psco_parameter_dim): Remove.
2206 (psct_parameter_dim): Remove.
2207 (psct_dynamic_dim): Remove.
2208 (psct_static_dim): Remove.
2209 (psct_add_local_variable): Remove.
2210 (new_lst_loop): Remove.
2211 (new_lst_stmt): Remove.
2212 (free_lst): Remove.
2213 (copy_lst): Remove.
2214 (lst_add_loop_under_loop): Remove.
2215 (lst_depth): Remove.
2216 (lst_dewey_number): Remove.
2217 (lst_dewey_number_at_depth): Remove.
2218 (lst_pred): Remove.
2219 (lst_succ): Remove.
2220 (lst_find_pbb): Remove.
2221 (find_lst_loop): Remove.
2222 (lst_find_first_pbb): Remove.
2223 (lst_empty_p): Remove.
2224 (lst_find_last_pbb): Remove.
2225 (lst_contains_p): Remove.
2226 (lst_contains_pbb): Remove.
2227 (lst_create_nest): Remove.
2228 (lst_remove_from_sequence): Remove.
2229 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
2230 (lst_niter_for_loop): Remove.
2231 (pbb_update_scattering): Remove.
2232 (lst_update_scattering_under): Remove.
2233 (lst_update_scattering): Remove.
2234 (lst_insert_in_sequence): Remove.
2235 (lst_replace): Remove.
2236 (lst_substitute_3): Remove.
2237 (lst_distribute_lst): Remove.
2238 (lst_remove_all_before_including_pbb): Remove.
2239 (lst_remove_all_before_excluding_pbb): Remove.
2240 (struct scop): Remove original_schedule, transformed_schedule, and
2241 saved_schedule.
2242 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
2243 (SCOP_SAVED_SCHEDULE): Remove.
2244 (poly_scattering_new): Remove.
2245 (poly_scattering_free): Remove.
2246 (poly_scattering_copy): Remove.
2247 (store_scattering_pbb): Remove.
2248 (store_lst_schedule): Remove.
2249 (restore_lst_schedule): Remove.
2250 (store_scattering): Remove.
2251 (restore_scattering_pbb): Remove.
2252 (restore_scattering): Remove.
2253 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2254 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
2255 compute the scattering polyhedron dimension from the dimension of
2256 pbb->domain.
2257 (build_scop_scattering): Update call to
2258 build_pbb_scattering_polyhedrons.
2259 (build_poly_scop): Remove call to scop_to_lst.
2260 * graphite.c (graphite_transform_loops): Add call to print_scop.
2261 (gate_graphite_transforms): Remove use of flag_loop_block,
2262 flag_loop_interchange, and flag_loop_strip_mine.
2263
2264 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2265
2266 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
2267 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
2268 -floop-nest-optimize.
2269 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
2270 (generate_luj_sepclass): Remove.
2271 (generate_luj_options): Remove.
2272 (set_options): Remove opt_luj.
2273 (scop_to_isl_ast): Remove opt_luj.
2274 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
2275 flag_loop_unroll_jam.
2276 (getPrevectorMap_full): Remove.
2277 (getScheduleForBandList): Remove map_sepcl.
2278 (getScheduleMap): Same.
2279 (apply_schedule_map_to_scop): Remove sepcl.
2280 (optimize_isl): Same.
2281 * graphite-poly.c (apply_poly_transforms): Remove check for
2282 flag_loop_unroll_jam.
2283 (new_poly_bb): Remove map_sepclass.
2284 * graphite-poly.h (struct poly_bb): Same.
2285 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
2286 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
2287 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
2288 * toplev.c (process_options): Remove flag_loop_unroll_jam.
2289
2290 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
2291
2292 PR target/67317
2293 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
2294 (addqi3_cc): Ditto.
2295 (UNSPEC_ADD_CARRY): Remove.
2296 (addqi3_cconly_overflow): New expander.
2297 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
2298 Adjust for changed add<mode>3_carry.
2299 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
2300 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
2301 (<plusminus_insn><mode>3_carry): Remove expander.
2302 (*<plusminus_insn><mode>3_carry): Split insn pattern to
2303 add<mode>3_carry and sub<mode>3_carry.
2304 (plusminus_carry_mnemonic): Remove code attribute.
2305 (add<mode>3_carry): Canonicalize insn pattern.
2306 (*addsi3_carry_zext): Ditto.
2307 (sub<mode>3_carry): Ditto.
2308 (*subsi3_carry_zext): Ditto.
2309 (adcx<mode>3): Remove insn pattern.
2310 (addcarry<mode>): New insn pattern.
2311 (subborrow<mode>): Ditto.
2312 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
2313 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
2314 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
2315 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
2316 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
2317 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
2318 Rewrite expander to not clobber carry flag chains.
2319
2320 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
2321
2322 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
2323 instead of a rotate.
2324
2325 2015-08-27 Marek Polacek <polacek@redhat.com>
2326
2327 PR middle-end/67005
2328 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
2329 an entry into an irreducible region.
2330
2331 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2332
2333 * configure: Regenerate.
2334
2335 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2336
2337 PR tree-optimization/67283
2338 * tree-sra.c (type_consists_of_records_p): Rename to...
2339 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2340
2341 (completely_scalarize_record): Rename to...
2342 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
2343 (scalarize_elem): New.
2344
2345 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2346
2347 * tree-sra.c (completely_scalarize_var): Rename to...
2348 (create_total_scalarization_access): ... Here. Drop call to
2349 completely_scalarize_record.
2350
2351 (analyze_all_variable_accesses): Replace completely_scalarize_var
2352 with create_total_scalarization_access and completely_scalarize_record.
2353
2354 2015-08-27 Alan Modra <amodra@gmail.com>
2355
2356 PR target/67356
2357 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
2358 for operand 1.
2359
2360 2015-08-27 Richard Biener <rguenther@suse.de>
2361
2362 * passes.c (rest_of_decl_compilation): Guard early_global_decl
2363 call with !seen_error ().
2364 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
2365 early debug generation and finish...
2366 (symbol_table::compile): ... here to put it after a !seen_error ()
2367 guard.
2368
2369 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2370
2371 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
2372 Solaris 12+.
2373
2374 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2375 Andre Vieira <andre.simoesdiasvieira@arm.com>
2376
2377 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
2378 (*cb<optab><mode>1): Likewise.
2379 (*tb<optab><mode>1): Likewise.
2380 (*cb<optab><mode>1): Likewise.
2381 * config/aarch64/iterators.md (inv_cb): New code attribute.
2382 (inv_tb): Likewise.
2383 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
2384 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
2385
2386 2015-08-27 Richard Biener <rguenther@suse.de>
2387
2388 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
2389
2390 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2391
2392 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
2393 trap to fix ICE.
2394
2395 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2396
2397 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
2398 Add declaration.
2399
2400 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
2401 comment.
2402 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
2403 floating point in VSX registers.
2404 (rs6000_output_move_128bit): Always print out the set insn if we
2405 can't generate an appropriate 128-bit move.
2406 (rs6000_generate_compare): Add support for IEEE 128-bit floating
2407 point in VSX registers comparisons.
2408 (rs6000_expand_float128_convert): Likewise.
2409
2410 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
2411 predicate for only GPR hard registers.
2412
2413 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
2414 modes to iterators. Add new iterators for moving 128-bit values in
2415 scalar FPR registers and VSX registers.
2416 (FMOVE128): Likewise.
2417 (FMOVE128_FPR): Likewise.
2418 (FMOVE128_GPR): Likewise.
2419 (FMOVE128_VSX): Likewise.
2420 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
2421 in VSX registers.
2422 (IFKF): Likewise.
2423 (IBM128): Likewise.
2424 (TFIFKF): Likewise.
2425 (RELOAD): Add IEEE 128-bit floating point modes.
2426 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
2427 floating point in VSX registers modes.
2428 (signbit<mode>2, IBM128 iterator): Likewise.
2429 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
2430 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
2431 (negtf2): Likewise.
2432 (neg<mode>2, TFIFKF iterator): Likewise.
2433 (negtf2_internal): Likewise.
2434 (abstf2): Likewise.
2435 (abs<mode>2, TFIFKF iterator): Likewise.
2436 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
2437 VSX insn support for negate, absolute value, and negative absolute
2438 value.
2439 (ieee_128bit_vsx_neg<mode>2): Likewise.
2440 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
2441 (ieee_128bit_vsx_abs<mode>2): Likewise.
2442 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2443 (ieee_128bit_vsx_nabs<mode>2): Likewise.
2444 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2445 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
2446 floating point in VSX registers.
2447 (unpack<mode>_dm): Likewise.
2448 (unpack<mode>_nodm): Likewise.
2449 (pack<mode>): Likewise.
2450 (unpackv1ti): Likewise.
2451 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
2452 (packv1ti): Likewise.
2453 (pack<mode>, FMOVE128_VSX iterator): Likewise.
2454 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
2455 registers.
2456 (extenddftf2_internal): Likewise.
2457 (trunctfdf2): Likewise.
2458 (trunctfdf2_internal2): Likewise.
2459 (fix_trunc_helper): Likewise.
2460 (fix_trunctfdi2"): Likewise.
2461 (floatditf2): Likewise.
2462 (floatuns<mode>tf2): Likewise.
2463 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2464 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2465 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2466 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2467 (float<SDI:mode><IFKF:mode>2): Likewise.
2468 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2469
2470 2015-08-26 Renlin Li <renlin.li@arm.com>
2471
2472 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
2473
2474 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
2475 Jiong Wang <jiong.wang@arm.com>
2476
2477 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
2478 (tlsie_tiny_<mode>): New define_insn.
2479 (tlsie_tiny_sidi): Likewise.
2480 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2481 SYMBOL_TINY_TLSIE.
2482 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
2483 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
2484 SYMBOL_TINY_TLSIE.
2485 (aarch64_expand_mov_immediate): Likewise.
2486 (aarch64_print_operand): Likewise.
2487 (arch64_classify_tls_symbol): Likewise.
2488
2489 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2490
2491 * config/arm/arm-arches.def: Replace single value flags with
2492 an initializer built from ARM_FSET_MAKE_CPU1.
2493 * config/arm/arm-cores.def: Likewise.
2494 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
2495 derivation from the ARM_CORE macro definition, use the given value
2496 instead.
2497 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
2498 ARM_ARCH macro definition, use the given value instead.
2499
2500 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2501
2502 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
2503 feature set.
2504 (struct builtin_description): Replace field mask with field
2505 features.
2506 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
2507 (IWMMXT2_BUILTIN): Likewise.
2508 (IWMMXT2_BUILTIN2): Likewise.
2509 (FP_BUILTIN): Likewise.
2510 (CRC32_BUILTIN): Likewise.
2511 (CRYPTO_BUILTIN): Likewise.
2512 (iwmmx_mbuiltin): Likewise.
2513 (iwmmx2_mbuiltin): Likewise.
2514 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
2515 struct builtin_description.
2516
2517 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2518
2519 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
2520 (struct builtin_description): Change type of mask to unsigned
2521 long.
2522 * config/arm/arm-protos.h (insn_flags): Declare as type
2523 arm_feature_set.
2524 (tune_flags): Likewise.
2525 * config/arm/arm.c (feature_count): New.
2526 (insn_flags): Define as type arm_feature_set.
2527 (tune_flags): Likewise.
2528 (struct processors): Define field flags as type arm_feature_set.
2529 (all_cores): Update for change to struct processors.
2530 (all_architectures): Likewise.
2531 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
2532 macros.
2533 (arm_option_override_internal): Likewise.
2534 (arm_option_override): Likewise.
2535
2536 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
2537 Jiong Wang <jiong.wang@arm.com>
2538
2539 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
2540 tls size for tiny, small, large memory model.
2541 (aarch64_load_symref_appropriately): Support new symbol types.
2542 (aarch64_expand_mov_immediate): Likewise.
2543 (aarch64_print_operand): Likewise.
2544 (aarch64_classify_tls_symbol): Likewise.
2545 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
2546 (aarch64_symbol_type): Likewise.
2547 * config/aarch64/aarch64.md (tlsle): Deleted.
2548 (tlsle12_<mode>): New define_insn.
2549 (tlsle24_<mode>): Likewise.
2550 (tlsle32_<mode>): Likewise.
2551 (tlsle48_<mode>): Likewise.
2552 * doc/sourcebuild.texi (AArch64-specific attributes): Document
2553 "aarch64_tlsle32".
2554
2555 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2556
2557 * config/arm/arm-protos.h (FL_NONE): New.
2558 (FL_ANY): New.
2559 (arm_feature_set): New.
2560 (ARM_FSET_MAKE): New.
2561 (ARM_FSET_MAKE_CPU1): New.
2562 (ARM_FSET_MAKE_CPU2): New.
2563 (ARM_FSET_CPU1): New.
2564 (ARM_FSET_CPU2): New.
2565 (ARM_FSET_EMPTY): New.
2566 (ARM_FSET_ANY): New.
2567 (ARM_FSET_HAS_CPU1): New.
2568 (ARM_FSET_HAS_CPU2): New.
2569 (ARM_FSET_HAS_CPU): New.
2570 (ARM_FSET_ADD_CPU1): New.
2571 (ARM_FSET_ADD_CPU2): New.
2572 (ARM_FSET_DEL_CPU1): New.
2573 (ARM_FSET_DEL_CPU2): New.
2574 (ARM_FSET_UNION): New.
2575 (ARM_FSET_INTER): New.
2576 (ARM_FSET_XOR): New.
2577 (ARM_FSET_EXCLUDE): New.
2578 (AFM_FSET_IS_EMPTY): New.
2579 (ARM_FSET_CPU_SUBSET): New.
2580
2581 2015-08-26 Jiong Wang <jiong.wang@arm.com>
2582
2583 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
2584 SYMBOL_TLSLE to SYMBOL_TLSLE24.
2585 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2586 Likewise.
2587 (aarch64_expand_mov_immediate): Likewise.
2588 (aarch64_print_operand): Likewise.
2589 (aarch64_classify_symbol): Likewise.
2590
2591 2015-08-26 Jiong Wang <jiong.wang@arm.com>
2592
2593 * config/aarch64/aarch64.opt (mtls-size): New entry.
2594 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
2595 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
2596 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
2597
2598 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2599
2600 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
2601 ARM_CORE entry. Fix some white-space.
2602 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
2603 ARM_CORE definition.
2604
2605 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2606
2607 * fold-const.c (fold_binary_loc) : Move Optimize
2608 root(x)*root(y) as root(x*y) to match.pd.
2609 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
2610 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
2611 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
2612 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
2613 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
2614 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
2615 (mult (exps:s @0) (exps:s @1)) : New simplifier.
2616 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
2617 (rdiv @0 (exps:s @1)) : New simplifier.
2618
2619 2015-08-25 Joseph Myers <joseph@codesourcery.com>
2620
2621 * gcc.c (driver::finalize): Only assign to extra_specs if
2622 [EXTRA_SPECS].
2623
2624 2015-08-25 Marek Polacek <polacek@redhat.com>
2625
2626 PR middle-end/67330
2627 * varasm.c (declare_weak): Return after giving an error.
2628
2629 2015-08-25 David Malcolm <dmalcolm@redhat.com>
2630
2631 * gcc-main.c (main): Add params to driver ctor.
2632 * gcc.c (class env_manager): New.
2633 (env): New global.
2634 (env_manager::init): New.
2635 (env_manager::get): New.
2636 (env_manager::xput): New.
2637 (env_manager::restore): New.
2638 Poison getenv and putenv.
2639 (DEFAULT_TARGET_SYSTEM_ROOT): New.
2640 (target_system_root): Update initialization to use
2641 DEFAULT_TARGET_SYSTEM_ROOT.
2642 (struct spec_list): Add field "default_ptr".
2643 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
2644 (init_spec): Likewise.
2645 (set_spec): Clear field "default_ptr".
2646 (read_specs): Free "spec" and "buffer".
2647 (xputenv): Reimplement in terms of env_manager.
2648 (process_command): Replace ::getenv calls with calls to the
2649 env_manager singleton.
2650 (process_brace_body): Free string in three places.
2651 (driver::driver): New.
2652 (driver::~driver): New.
2653 (used_arg): Convert from a function to...
2654 (class used_arg_t): ...this class, and...
2655 (used_arg): ...this new global instance.
2656 (used_arg_t::finalize): New function.
2657 (getenv_spec_function): Add "const" to local "value". Replace
2658 ::getenv call with call to the env_manager singleton.
2659 (path_prefix_reset): New function.
2660 (driver::finalize): New function.
2661 * gcc.h (driver::driver): New.
2662 (driver::~driver): New.
2663 (driver::finalize): New.
2664
2665 2015-08-25 Nathan Sidwell <nathan@acm.org>
2666
2667 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
2668 target doesn't have one.
2669
2670 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
2671
2672 PR target/67346
2673 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
2674
2675 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
2676
2677 PR target/67344
2678 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
2679 a define_insn, remove second alternative.
2680
2681 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
2682 Joseph Myers <joseph@codesourcery.com>
2683
2684 * gcc.c (struct switchstr): Expand comment.
2685
2686 2015-08-25 Nathan Sidwell <nathan@acm.org>
2687
2688 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
2689 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
2690
2691 2015-08-25 Richard Biener <rguenther@suse.de>
2692
2693 PR middle-end/67306
2694 * genmatch.c (expr::gen_transform): Verify the result of
2695 builtin_decl_implicit.
2696 (dt_simplify::gen_1): Likewise.
2697
2698 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2699
2700 * config/arm/constraints.md: Also list Cs and US ARM-specific
2701 constraints as used.
2702
2703 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
2704
2705 PR target/66609
2706 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
2707 UNSPEC_PCREL.
2708 (nonpic_symbol_mentioned_p): Likewise.
2709 (sh_delegitimize_address): Likewise.
2710 (sh_function_ok_for_sibcall): Take into account weak symbols.
2711 (sh_expand_sym_label2reg): New.
2712 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
2713 * config/sh/sh.md (UNSPEC_PCREL): New enum.
2714 (call_pcrel): Use sh_expand_sym_label2reg.
2715 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
2716 (symPCREL_label2reg) New expand.
2717
2718 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
2719
2720 * graphite-poly.c: Change type of region from void* to sese.
2721 * graphite-poly.h (struct scop): Changing the type of scop::region
2722 from void* to sese. Change accessor macro accordingly.
2723 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
2724
2725 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
2726
2727 * graphite-scop-detection.c (stmt_simple_for_scop_p):
2728 Constrain only on INTEGER_TYPE.
2729
2730 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2731
2732 PR target/67211
2733 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
2734 -mefficient-unaligned-vsx on ISA 2.7.
2735
2736 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
2737 option to a masked option.
2738
2739 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
2740 logic for -mefficient-unaligned-vsx so that it is set via an arch
2741 ISA option, instead of being set if -mtune=power8 is set. Move
2742 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
2743 near other default option handling.
2744
2745 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2746
2747 * genflags.c (gen_macro): Delete.
2748 (gen_proto): Don't create GEN.*CALL.* macros.
2749 * gensupport.h (get_file_location): Declare.
2750 * gensupport.c (rtx_locs): New variable.
2751 (read_md_rtx): Record rtx locations.
2752 (get_file_location): New function.
2753 * target-insns.def (call, call_pop, call_value, call_value_pop)
2754 (sibcall, sibcall_value): New patterns.
2755 * gentarget-def.c (parse_argument): New function.
2756 (def_target_insn): Use it. Handle optional operands. Raise an
2757 error if an .md pattern has the wrong number of operands for the
2758 pattern name. Remove the names of unused operands from the prototype.
2759 * builtins.c (expand_builtin_apply): Use targetm functions
2760 instead of HAVE_call_value and GEN_CALL_VALUE.
2761 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
2762 and sibcall_value_pop.
2763 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
2764 of GEN_CALL.
2765 * config/alpha/alpha.md (untyped_call): Likewise.
2766 * config/iq2000/iq2000.md (untyped_call): Likewise.
2767 * config/m68k/m68k.md (untyped_call): Likewise.
2768 * config/mips/mips.md (untyped_call): Likewise.
2769 * config/pa/pa.md (untyped_call): Likewise.
2770 * config/rs6000/rs6000.md (untyped_call): Likewise.
2771 * config/sparc/sparc.md (untyped_call): Likewise.
2772 * config/tilegx/tilegx.md (untyped_call): Likewise.
2773 * config/tilepro/tilepro.md (untyped_call): Likewise.
2774 * config/visium/visium.md (untyped_call): Likewise.
2775 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
2776 gen_call_value instead of GEN_CALL_VALUE.
2777 * config/arm/arm.md (untyped_call): Likewise.
2778 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
2779 GEN_CALL.
2780
2781 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2782
2783 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
2784 (have_cbranchcc4): New variable.
2785 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
2786 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
2787 (if_convert): Initialize have_cbranchcc4.
2788
2789 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2790
2791 * builtins.c (expand_cmpstrn): Rename to...
2792 (expand_cmpstrn_or_cmpmem): ...this.
2793 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
2794 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
2795 Remove mode argument.
2796 (expand_builtin): Update accordingly.
2797
2798 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2799
2800 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
2801 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
2802 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
2803 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
2804 Add predicates for operands 0 and 3.
2805 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
2806 operand.
2807 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
2808 immediate_operand to nonmemory_operand.
2809
2810 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2811
2812 * df-scan.c (df_insn_info_init_fields): New function, split out
2813 from...
2814 (df_insn_create_insn_record): ...here.
2815 (df_insn_info_free_fields): New function, split out from...
2816 (df_insn_info_delete): ...here.
2817 (df_insn_rescan): Use the new functions instead of freeing and
2818 reallocating the df_insn_info.
2819
2820 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2821
2822 * doc/install.texi (Binaries): Remove links no longer valid.
2823
2824 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
2825
2826 * config/nvptx/mkoffload.c (process): Replace
2827 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
2828
2829 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
2830
2831 PR target/67329
2832 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
2833
2834 2015-08-24 Renlin Li <renlin.li@arm.com>
2835
2836 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
2837 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
2838 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
2839 * config/arm/constraints.md ("j"): Add check for high code.
2840
2841 2015-08-24 Tom de Vries <tom@codesourcery.com>
2842
2843 PR tree-optimization/65468
2844 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
2845 chunk_size is one.
2846
2847 2015-08-24 Nathan Sidwell <nathan@acm.org>
2848
2849 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
2850 change to nvptx_type_from_mode call. Use arg_promotion for both
2851 split and non-split args.
2852
2853 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2854
2855 * target-insns.def (movstr): New pattern.
2856 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
2857 (expand_movstr): Use targetm rather than HAVE_movstr/
2858 CODE_FOR_movstr.
2859
2860 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2861
2862 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
2863 cast syntax.
2864
2865 2015-08-24 Andrew Pinski <apinski@cavium.com>
2866
2867 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
2868 AARCH64_EXTRA_TUNING_OPTION.
2869 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
2870 (aarch64_extra_tuning_flags): Base the shifted value on the index instead
2871 of the argument to AARCH64_EXTRA_TUNING_OPTION.
2872 * config/aarch64/aarch64.c: Remove the last argument to
2873 AARCH64_EXTRA_TUNING_OPTION.
2874
2875 2015-08-23 Nathan Sidwell <nathan@acm.org>
2876
2877 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
2878 decls.
2879 (nvptx_declare_function_name): Insert formatting tabs for
2880 consistency.
2881
2882 2015-08-23 Tom de Vries <tom@codesourcery.com>
2883
2884 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
2885 parm_decl, rather than generating a dummy default def in cfun.
2886 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
2887 ssa_name from cfun and child_fn do not share a stmt as def stmt.
2888 (move_stmt_op): Handle PARM_DECl.
2889 (gather_ssa_name_hash_map_from): New function.
2890 (move_sese_region_to_fn): Add default defs for function params, and add
2891 them to vars_map. Release copied ssa names.
2892 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
2893
2894 2015-08-23 Tom de Vries <tom@codesourcery.com>
2895
2896 * doc/sourcebuild.texi: Rename vect_no_int_max with
2897 vect_no_int_min_max. Update description.
2898
2899 2015-08-22 Andrew Pinski <apinski@cavium.com>
2900
2901 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
2902 * config/aarch64/aarch64-protos.h
2903 (aarch64_fusion_pairs_index): New enum.
2904 (aarch64_fusion_pairs): Base the shifted value on the index instead
2905 Rewrite AARCH64_FUSE_ALL to be based on the end index.
2906 of the argument to AARCH64_FUSION_PAIR.
2907 * config/aarch64/aarch64.c: Remove the last argument to
2908 AARCH64_FUSION_PAIR.
2909
2910 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
2911
2912 * dominance.c (new_zero_array): Define.
2913 (dom_info): Redefine as class with proper encapsulation.
2914 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
2915 Add new members.
2916 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
2917 allocations/deallocations. Pass function as parameter (instead of
2918 using cfun).
2919 (dom_info::get_idom): Define accessor method.
2920 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
2921 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
2922 (calculate_dominance_info): Adjust to use dom_info class.
2923 (verify_dominators): Likewise.
2924
2925 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
2926
2927 * print-rtl.c (print_rtx): Check the correct range for
2928 flag_dump_unnumbered_links to behave as documented.
2929
2930 PR rtl-optimization/67227
2931 PR rtl-optimization/64164
2932 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
2933 (nonoverlapping_memrefs_p): Test offsets and sizes when given
2934 identical gimple_reg exprs.
2935
2936 2015-08-21 Nathan Sidwell <nathan@acm.org>
2937
2938 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
2939 expansion.
2940 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
2941 crtl->stack_alignment_needed to determine alignment.
2942 (nvptx_get_drap_rtx): New.
2943 (TARGET_GET_DRAP_RTX): Override.
2944 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
2945
2946 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2947
2948 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
2949
2950 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2951
2952 * configure.ac: Remove uwin* cases.
2953 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
2954 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
2955 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
2956 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
2957 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
2958 i[34567]86-*-uwin*, powerpc-*-beos*.
2959
2960 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
2961
2962 * gencodes.c (gencodes): Print the comma for the preceding
2963 enum value rather than the current one. Use aliased enum values
2964 rather than #defines for compiled-out patterns.
2965 (main): Update accordingly. Replace LAST_INSN_CODE with
2966 NUM_INSN_CODES.
2967 * lra.c (insn_code_data): Update accordingly.
2968 (finish_insn_code_data_once, get_static_insn_data): Likewise.
2969 * recog.h (target_recog): Likewise.
2970 (preprocess_insn_constraints): Change parameter to unsigned int.
2971 * recog.c (preprocess_insn_constraints): Likewise.
2972 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
2973 * tree-vect-stmts.c (vectorizable_operation): Simplify.
2974
2975 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
2976
2977 PR rtl-optimization/61657
2978 * loop-iv.c (iv_number_of_iterations): Declare up and down as
2979 unsigned. Remove superflous uint64_t cast.
2980
2981 2014-08-21 Felix Yang <felix.yang@huawei.com>
2982 Jiji Jiang <jiangjiji@huawei.com>
2983
2984 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
2985 and get builtin function code directly from CALL.
2986 (gimple_stringop_fixed_value): Modified accordingly.
2987 (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
2988 accordingly and only accept BUILT_IN_NORMAL string operations.
2989
2990 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
2991
2992 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
2993
2994 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2995
2996 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
2997 to match.pd.
2998 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
2999 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
3000 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
3001 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
3002 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
3003 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
3004 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
3005 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
3006 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
3007 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
3008
3009 * match.pd (SIN ) : New Operator.
3010 (TAN) : New Operator.
3011 (mult (SQRT@1 @0) @1) : New simplifier.
3012 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
3013 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3014 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3015 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
3016 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
3017 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
3018 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
3019 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
3020 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
3021 (rdiv @0 (POW:s @1 @2)) : New simplifier.
3022
3023 2015-08-21 Bin Cheng <bin.cheng@arm.com>
3024
3025 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
3026 loop if EXPR is simplified to const value.
3027
3028 2015-08-21 Yury Gribov <y.gribov@samsung.com>
3029
3030 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3031 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
3032
3033 2015-08-21 Richard Biener <rguenther@suse.de>
3034
3035 PR middle-end/67285
3036 * gimple-fold.c (replace_stmt_with_simplification): Assert
3037 seq is empty when replacing a call with itself but different
3038 arguments.
3039 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
3040 a call require that it is const.
3041
3042 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3043
3044 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
3045 * builtins.c (get_object_alignment_2): Adjust.
3046 * varasm.c (align_variable): Likewise.
3047 (get_variable_align): Likewise.
3048 (build_constant_desc): Likewise.
3049 (force_const_mem): Likewise.
3050 * doc/tm.texi.in: Likewise.
3051 * doc/tm.texi: Regenerate.
3052
3053 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3054
3055 * genconfig.c (main): Always define HAVE_cc0.
3056 * recog.c (rest_of_handle_peephole2): Adjust.
3057
3058 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3059
3060 * reorg.c (relax_delay_slots): Don't use #if to check value of
3061 HAVE_cc0.
3062
3063 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3064
3065 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
3066 * targhooks.c (default_have_conditional_execution): Adjust.
3067
3068 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
3069
3070 * rtl.h (rtvec_all_equal_p): Declare.
3071 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
3072 * rtl.c (rtvec_all_equal_p): New function.
3073 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
3074 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
3075 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
3076 * config/arm/arm.c (neon_vdup_constant): Likewise.
3077 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
3078 * config/tilegx/constraints.md (W, Y): Likewise.
3079 * config/tilepro/constraints.md (W, Y): Likewise.
3080 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
3081 (classify_immediate): Use unwrap_const_vec_duplicate.
3082 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
3083 (reg_or_v2s8bit_operand): Likewise.
3084 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
3085 (reg_or_v4s8bit_operand): Likewise.
3086
3087 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3088
3089 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
3090 (vec_shasigma_be): New #define.
3091 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
3092 (VPMSUMH): Likewise.
3093 (VPMSUMW): Likewise.
3094 (VPMSUMD): Likewise.
3095 (VPMSUM): New BU_P8V_OVERLOAD_2.
3096 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
3097 entries for VEC_MADD and VEC_VPMSUM.
3098
3099 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
3100
3101 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
3102 Multiply argument avr_n_flash by 64 to match unit of "KiB".
3103 (avr_pgm_check_var_decl): Same.
3104
3105 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
3106
3107 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
3108 initialization of HFmode scalar type (float16_t) to...
3109 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
3110 code.
3111
3112 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
3113
3114 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
3115 having an -mfp16-format.
3116
3117 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
3118
3119 * config/i386/predicates.md (vector_all_ones_operand): Use
3120 CONSTM1_RTX to simplify definition.
3121
3122 2015-08-20 Richard Biener <rguenther@suse.de>
3123
3124 * toplev.c (compile_file): Remove loop calling late_global_decl
3125 on all symbols.
3126 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
3127 on decls we assembled.
3128
3129 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
3130
3131 * common/config/aarch64/aarch64-common.c
3132 (AARCH64_CPU_NAME_LENGTH): Delete.
3133 (aarch64_option_extension): New.
3134 (all_extensions): Likewise.
3135 (processor_name_to_arch): Likewise.
3136 (arch_to_arch_name): Likewise.
3137 (all_cores): New.
3138 (all_architectures): Likewise.
3139 (aarch64_get_extension_string_for_isa_flags): Likewise.
3140 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
3141 architecture names.
3142 * config/aarch64/aarch64-protos.h
3143 (aarch64_get_extension_string_for_isa_flags): New.
3144 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
3145 (aarch64_option_print): Get the string to print from
3146 aarch64_get_extension_string_for_isa_flags.
3147 (aarch64_declare_function_name): Likewise.
3148 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
3149 (MCPU_TO_MARCH_SPEC): This.
3150 (ASM_CPU_SPEC): Use it.
3151 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
3152 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
3153 (EXTRA_SPEC_FUNCTIONS): Use it.
3154
3155 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
3156
3157 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
3158 expansion when !ISA_HAS_LWL_LWR.
3159 (mips_block_move_straight): Update the size of elements copied to
3160 account for alignment when !ISA_HAS_LWL_LWR.
3161 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
3162
3163 2015-08-19 Jiong Wang <jiong.wang@arm.com>
3164
3165 * expr.c (expand_expr_real_2): Check gimple statement during
3166 LSHIFT_EXPR expand.
3167
3168 2015-08-19 Magnus Granberg <zorry@gentoo.org>
3169
3170 * common.opt (fstack-protector): Initialize to -1.
3171 (fstack-protector-all): Likewise.
3172 (fstack-protector-strong): Likewise.
3173 (fstack-protector-explicit): Likewise.
3174 * configure.ac: Add --enable-default-ssp.
3175 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
3176 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
3177 -1.
3178 * doc/install.texi: Document --enable-default-ssp.
3179 * config.in: Regenerated.
3180 * configure: Likewise.
3181
3182 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
3183
3184 PR rtl-optimization/64164
3185 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
3186 (parm_in_stack_slot_p): ... this. Disregard mode, what
3187 matters is whether the parm will live in a pseudo or a stack
3188 slot.
3189 (expand_one_ssa_partition): Deal with params without a default
3190 def. Disregard mode.
3191 * cfgexpand.h: Renamed function declaration.
3192 * tree-ssa-coalesce.c: Adjust.
3193 * function.c (split_complex_args): Allocate stack slot for
3194 unassigned parms before splitting.
3195 (parm_in_unassigned_mem_p): New. Use it instead of
3196 parm_maybe_byref_p throughout this file.
3197 (assign_parm_setup_block): Use it. Accept pseudos in the
3198 expand-assigned rtl.
3199 (assign_parm_setup_reg): Drop BLKmode requirement.
3200 (assign_parm_setup_stack): Allocate and fill in the address of
3201 unassigned MEM parms.
3202
3203 2015-08-19 David Sherwood <david.sherwood@arm.com>
3204
3205 * genmodes.c (emit_mode_unit_size_inline): New function.
3206 (emit_mode_unit_precision_inline): New function.
3207 (emit_insn_modes_h): Emit new #define. Emit new functions.
3208 (emit_mode_unit_size): New function.
3209 (emit_mode_unit_precision): New function.
3210 (emit_mode_adjustments): Add mode_unit_size adjustments.
3211 (emit_insn_modes_c): Emit new arrays.
3212 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
3213 use new inline methods.
3214
3215 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3216
3217 * config/aarch64/aarch64.c (bit_count): Delete prototype
3218 and definition.
3219 (aarch64_print_operand): Use popcount_hwi instead of the above.
3220
3221 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3222
3223 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
3224 comment.
3225
3226 2015-08-19 Marek Polacek <polacek@redhat.com>
3227
3228 PR middle-end/67133
3229 * gimple-ssa-isolate-paths.c
3230 (insert_trap_and_remove_trailing_statements): Rename to ...
3231 (insert_trap): ... this. Don't remove trailing statements; split
3232 block instead.
3233 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
3234
3235 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
3236
3237 PR other/67042
3238 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
3239 conditionalize the whole on __GNUC__. Add fallback code
3240 depending neither on undefined nor implementation-defined behaviour.
3241
3242 2015-08-19 Jiong Wang <jiong.wang@arm.com>
3243
3244 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
3245 whitespaces with tab.
3246
3247 2015-08-19 Florian Weimer <fweimer@redhat.com>
3248
3249 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
3250 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
3251 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
3252 Move Name_Ids instantiation to the Prj.Proc package, to avoid
3253 trampolines.
3254
3255 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3256
3257 * config/arm/arm.c (bounds_check): Use %wd print format
3258 for HOST_WIDE_INT arguments.
3259
3260 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3261
3262 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
3263 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
3264 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
3265 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
3266 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
3267 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
3268 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
3269 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
3270 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
3271 typedefs.
3272
3273 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
3274
3275 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
3276 function.c, graphite-scop-detection.c, haifa-sched.c,
3277 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
3278 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
3279 varasm.c: Remove typedefs of structs.
3280
3281 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
3282
3283 * config/rs6000/altivec.h (vec_adde): New define.
3284 (vec_addec): Likewise.
3285 (vec_double): Likewise.
3286 (vec_bperm): Likewise.
3287 (vec_gb): Likewise.
3288 * config/rs6000/rs6000-builtin.def (ADDE): New
3289 BU_ALTIVEC_OVERLOAD_3.
3290 (ADDEC): Likewise.
3291 (DOUBLE): New BU_VSX_OVERLOAD_1.
3292 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
3293 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
3294 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
3295 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
3296 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
3297 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
3298 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
3299 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
3300 and P8V_BUILTIN_VEC_VBPERMQ.
3301
3302 2015-08-18 Jason Merrill <jason@redhat.com>
3303
3304 * print-tree.c (print_node): Handle TREE_BINFO.
3305
3306 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3307
3308 PR middle-end/36757
3309 * builtins.c (expand_builtin_signbit): Add asserts to make sure
3310 we can expand BUILT_IN_SIGNBIT inline.
3311 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
3312 * doc/extend.texi: Document the type-generic __builtin_signbit.
3313
3314 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
3315
3316 PR rtl-optimization/67218
3317 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
3318 (simplify_unary_operation_1): Use it.
3319
3320 2015-08-18 Marek Polacek <polacek@redhat.com>
3321
3322 PR middle-end/67222
3323 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
3324 if the call isn't valid.
3325 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
3326 gimple_call_builtin_p.
3327 (call_may_clobber_ref_p_1): Likewise.
3328 (stmt_kills_ref_p): Likewise.
3329
3330 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
3331
3332 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
3333 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
3334 (mips_hard_regno_scratch_ok): Likewise.
3335 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
3336 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
3337
3338 2015-08-18 Bin Cheng <bin.cheng@arm.com>
3339
3340 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
3341 (determine_value_range): Call refine_value_range_using_guard for
3342 each loop initial condition to improve value range.
3343
3344 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
3345
3346 * config/i386/i386.c: Remove include of fibheap.h.
3347
3348 2015-08-17 Richard Biener <rguenther@suse.de>
3349
3350 PR tree-optimization/67221
3351 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
3352 (sccvn_dom_walker::before_dom_children): Mark backedges of
3353 non-executable blocks as not executable.
3354
3355 2015-08-17 David Sherwood <david.sherwood@arm.com>
3356
3357 * config/arm/arm.c (neon_element_bits): Replace call to
3358 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
3359 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
3360 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
3361 (neon_vdup_lane<mode>): Likewise.
3362 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
3363 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
3364 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
3365 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
3366 * config/spu/spu.c (arith_immediate_p): Likewise.
3367 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
3368 * expr.c (expand_expr_real_2): Likewise.
3369 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
3370 * simplify-rtx.c (simplify_immed_subreg): Likewise.
3371 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
3372 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
3373 New variable.
3374 * fold-const.c (fold_binary_loc): Replace call to
3375 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
3376 GET_MODE_UNIT_PRECISION (m).
3377
3378 2015-08-17 Mike Stump <mikestump@comcast.net>
3379
3380 * config/arm/arm.c (arm_block_move_unaligned_straight):
3381 Emit normal move instead of unaligned load when source or destination
3382 are appropriately aligned.
3383
3384 2015-08-17 Richard Biener <rguenther@suse.de>
3385 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3386
3387 PR middle-end/16107
3388 * match.pd (div (coss (op @0) : New simplifier.
3389
3390 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
3391
3392 PR rtl-optimization/64164
3393 PR bootstrap/66978
3394 PR middle-end/66983
3395 PR rtl-optimization/67000
3396 PR middle-end/67034
3397 PR middle-end/67035
3398 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3399 * tree-ssa-copyrename.c: Removed.
3400 * opts.c (default_options_table): Drop -ftree-copyrename. Add
3401 -ftree-coalesce-vars.
3402 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3403 * common.opt (ftree-copyrename): Ignore.
3404 (ftree-coalesce-inlined-vars): Likewise.
3405 * doc/invoke.texi: Remove the ignored options above.
3406 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3407 * tree-ssa-coalesce.h: ... here.
3408 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3409 headers required by it.
3410 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
3411 across variables when flag_tree_coalesce_vars. Check register
3412 use and promoted modes to allow coalescing. Do not coalesce
3413 maybe-byref parms with SSA_NAMEs of other variables, or
3414 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
3415 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
3416 with its member functions to tree-ssa-coalesce.c.
3417 (var_map_base_init): Likewise. Renamed to
3418 compute_samebase_partition_bases.
3419 (partition_view_normal): Drop want_bases parameter.
3420 (partition_view_bitmap): Likewise.
3421 * tree-ssa-live.h: Adjust declarations.
3422 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
3423 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
3424 default defs at the entry point.
3425 (dump_part_var_map): New.
3426 (compute_optimized_partition_bases): New, called by...
3427 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
3428 of compute_samebase_partition_bases. Adjust.
3429 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
3430 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
3431 (ssa_default_def_partition): New.
3432 (get_rtl_for_parm_ssa_default_def): New.
3433 (align_local_variable, add_stack_var): Support anonymous SSA
3434 names.
3435 (defer_stack_allocation): Likewise. Declare earlier.
3436 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
3437 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
3438 Do no record deferred-allocation marker in
3439 SA.partition_to_pseudo.
3440 (expand_stack_vars): Adjust check for the marker in it.
3441 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
3442 redundant MEM attr setting.
3443 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
3444 from...
3445 (expand_one_stack_var): ... this. New wrapper to check and
3446 skip already expanded SSA partitions.
3447 (record_alignment_for_reg_var): New, factored out of...
3448 (expand_one_var): ... this.
3449 (expand_one_ssa_partition): New.
3450 (adjust_one_expanded_partition_var): New.
3451 (expand_one_register_var): Check and skip already expanded SSA
3452 partitions.
3453 (expand_used_vars): Don't create DECLs for anonymous SSA
3454 names. Expand all SSA partitions, then adjust all SSA names.
3455 (pass::execute): Replace the loops that set
3456 SA.partition_to_pseudo from partition leaders and cleared
3457 DECL_RTL for multi-location variables, and that which used to
3458 rename vars and set attrs, with one that clears DECL_RTL and
3459 checks that PARMs and RESULTs default_defs match DECL_RTL.
3460 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
3461 * emit-rtl.c: Include stor-layout.h.
3462 (set_reg_attrs_for_parm): Handle NULL decl.
3463 (set_reg_attrs_for_decl_rtl): Take mode from expression if
3464 it's not a DECL.
3465 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
3466 rather than its possibly-NULL DECL.
3467 * explow.c (promote_ssa_mode): New.
3468 * explow.h (promote_ssa_mode): Declare.
3469 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
3470 (read_complex_part): Export.
3471 * expr.h (read_complex_part): Declare.
3472 * cfgexpand.h (parm_maybe_byref_p): Declare.
3473 * function.c: Include cfgexpand.h.
3474 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
3475 (use_register_for_parm_decl): Wrapper for the above to
3476 special-case the result_ptr.
3477 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
3478 (split_complex_args): Take assign_parm_data_all argument.
3479 Pass it to rtl_for_parm. Set up rtl and context for split
3480 args. Reset complex parm before fetching its default decl
3481 rtl.
3482 (assign_parms_unsplit_complex): Use the default-def complex
3483 parm rtl if it matches the components.
3484 (assign_parms_augmented_arg_list): Adjust.
3485 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
3486 multiple locations. Recognize split complex args.
3487 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
3488 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
3489 (assign_parm_setup_block): Prefer SSA-assigned location, and
3490 fill in its address if the memory location of a maybe-byref
3491 parm was not assigned by cfgexpand.
3492 (assign_parm_setup_reg): Likewise. Adjust its mode as
3493 needed. Use entry_parm for equiv if stack_parm is NULL. Make
3494 sure passed_pointer parms don't need conversion. Copy address
3495 or value as needed.
3496 (assign_parm_setup_stack): Prefer SSA-assigned location.
3497 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
3498 rtl before testing for pointer bounds. Special-case result_ptr.
3499 (expand_function_start): Maybe reset DECL_RTL of result.
3500 Prefer SSA-assigned location for result and static chain.
3501 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
3502 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
3503 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
3504 anonymous SSA names. Use promote_ssa_mode.
3505 (get_temp_reg): Likewise.
3506 (remove_ssa_form): Adjust.
3507 * stor-layout.c (layout_decl): Don't set mem attributes of
3508 non-MEMs.
3509 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
3510 and get its reg_usage for reg invalidation.
3511 (compute_bb_dataflow): Pass it insn.
3512 (emit_notes_in_bb): Likewise.
3513
3514 2015-08-14 Marek Polacek <polacek@redhat.com>
3515
3516 * tree-core.h (tree_base): Fix typo.
3517
3518 2015-08-14 Marek Polacek <polacek@redhat.com>
3519
3520 PR middle-end/67133
3521 * gimple.c (infer_nonnull_range_by_attribute): Check that the
3522 nonnull argument position is not outside function arguments.
3523
3524 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
3525
3526 PR target/67143
3527 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
3528 'lconst_atomic' with 'const_atomic'.
3529 (atomic_fetch_<optab><mode>): Likewise.
3530 (atomic_<optab>_fetch<mode>): Likewise.
3531 * config/aarch64/iterators.md (lconst-atomic): Move below
3532 'const_atomic'.
3533 (const_atomic): New.
3534
3535 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
3536 Bernd Schmidt <bernds@codesourcery.com>
3537
3538 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
3539 debug options.
3540 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
3541 (DWARF2_DEBUGGING_INFO): Don't define.
3542 * debug.h (dwarf2_lineno_debug_hooks): Declare.
3543 * toplev.c (process_options): Add a case for it.
3544 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
3545 (dwarf2out_init): Skip most initializations if
3546 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
3547 case.
3548 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
3549 DWARF2_LINENO_DEBUGGING_INFO.
3550 * opts.c (set_debug_level): Likewise.
3551
3552 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
3553
3554 * config/arm/types.md (is_neon_type): Add missing types.
3555
3556 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
3557
3558 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
3559 for skylake.
3560 * config/i386/i386.c (PTA_SKYLAKE): New macros.
3561 (processor_alias_table): Add skylake description.
3562 (enum processor_model): Add skylake processor.
3563 (arch_names_table): Add skylake record.
3564 * doc/invoke.texi: Add skylake item.
3565
3566 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
3567
3568 * ira-int.h: Include recog.h.
3569 * ira-build.c: Don't include recog.h.
3570 * ira-color.c: Likewise.
3571 * ira-conflicts.c: Likewise.
3572 * ira-costs.c: Likewise.
3573 * ira-emit.c: Likewise.
3574 * ira-lives.c: Likewise.
3575 * ira.c: Likewise.
3576 * sched-deps.c: Likewise.
3577 * sel-sched.c: Likewise.
3578 * target-globals.c: Likewise.
3579
3580 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
3581
3582 PR bootstrap/55035
3583 * reload1.c (elimination_costs_in_insn): Make it obvious to the
3584 compiler that the n_dups and n_operands loop bounds are invariant.
3585
3586 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3587
3588 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
3589 expressions in A and B.
3590
3591 2015-08-13 Richard Biener <rguenther@suse.de>
3592
3593 * tree.c (nonnull_arg_p): Move from ...
3594 * tree-vrp.c (nonnull_arg_p): ... here.
3595 * tree.h (nonnull_arg_p): Declare.
3596 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
3597 here, register ptr != 0 for nonnull_arg_p pointer arguments.
3598 Properly initialize static chain and by-reference result pointer.
3599 (run_scc_vn): Adjust.
3600
3601 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
3602
3603 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
3604 TUNE_I6400.
3605
3606 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
3607
3608 * config/aarch64/aarch64-protos.h
3609 (aarch64_gen_atomic_cas): Declare.
3610 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
3611 Choose appropriate instruction pattern for the target.
3612 (aarch64_gen_atomic_cas): New.
3613 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
3614 (atomic_compare_and_swap<mode>_1): Rename to
3615 aarch64_compare_and_swap<mode>. Fix some indentation.
3616 (aarch64_compare_and_swap<mode>_lse): New.
3617 (aarch64_atomic_cas<mode>): New.
3618
3619 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
3620
3621 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
3622 (TARGET_LSE): New.
3623
3624 2015-08-13 Richard Biener <rguenther@suse.de>
3625
3626 PR tree-optimization/67191
3627 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
3628 assert we value-numbered last stmts operand because it can validly
3629 trigger for unreachable code.
3630
3631 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3632
3633 PR rtl-optimization/67103
3634 * ifcvt.c (noce_try_store_flag_constants): Move
3635 x = (-(test != 0) & (b - a)) + a transformation to...
3636 (noce_try_cmove): ... Here. Try it if normal conditional
3637 move fails.
3638
3639 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
3640
3641 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
3642 pseudo-processors.
3643 * config/mips/mips.md (processor): Remove w32 and w64.
3644
3645 2015-08-13 Richard Biener <rguenther@suse.de>
3646
3647 PR tree-optimization/66502
3648 PR tree-optimization/67167
3649 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
3650 backedge arguments.
3651 (vn_phi_lookup): Adjust.
3652 (vn_phi_insert): Likewise.
3653 (visit_phi): Prefer to value-number to another PHI node
3654 over value-numbering to a PHI argument.
3655 (init_scc_vn): Mark DFS back edges.
3656
3657 2015-08-13 Richard Biener <rguenther@suse.de>
3658
3659 * gimple.h (gcall::code_): New constant static member.
3660 (gcond::code_): Likewise.
3661 * gimple.c (gcall::code_): Define.
3662 (gcond::code_): Likewise.
3663 (is_a_helper <const gcond *>): Add.
3664 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
3665 and forward to a new gcall overload with less checking and a
3666 cheaper way to access the operand.
3667 (gimple_call_lhs_ptr): Likewise.
3668 (gimple_call_set_lhs): Likewise.
3669 (gimple_call_internal_p): Likewise.
3670 (gimple_call_with_bounds_p): Likewise.
3671 (gimple_call_set_with_bounds): Likewise.
3672 (gimple_call_internal_fn): Likewise.
3673 (gimple_call_set_ctrl_altering): Likewise.
3674 (gimple_call_ctrl_altering_p): Likewise.
3675 (gimple_call_fntype): Likewise.
3676 (gimple_call_fn): Likewise.
3677 (gimple_call_fn_ptr): Likewise.
3678 (gimple_call_set_fndecl): Likewise.
3679 (gimple_call_fndecl): Likewise.
3680 (gimple_call_chain): Likewise.
3681 (gimple_call_num_args): Likewise.
3682 (gimple_call_arg): Likewise.
3683 (gimple_call_arg_ptr): Likewise.
3684 (gimple_call_set_arg): Likewise.
3685 (gimple_call_noreturn_p): Likewise.
3686 (gimple_cond_code): Likewise.
3687 (gimple_cond_lhs): Likewise.
3688 (gimple_cond_rhs): Likewise.
3689 (gimple_has_lhs): Reduce checking.
3690
3691 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3692
3693 PR middle-end/25529
3694 * match.pd (div (mult @0 @1) @1) : New simplifier.
3695
3696 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3697
3698 PR target/67071
3699 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
3700 predicate to allow construction of vector constants using the
3701 VSLDOI vector shift instruction.
3702
3703 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
3704 declaration.
3705
3706 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
3707 the number of bytes to be shifted left and filled in with either
3708 all zero or all one bits.
3709 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
3710 methods exist.
3711 (output_vec_const_move): On power8, generate XXLORC to generate
3712 a vector constant with all 1's. Do a split if we need to use a
3713 VSLDOI instruction.
3714
3715 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
3716 properly test for the MSB.
3717
3718 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
3719 vector constants that can be created with VSLDOI.
3720
3721 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
3722
3723 revert:
3724 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3725 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3726 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3727 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3728 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3729 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3730 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3731 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3732 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3733
3734 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
3735
3736 * config/xtensa/constraints.md (define_constraint "Y"): New
3737 constraint.
3738 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
3739 * config/xtensa/linux.h (ASM_SPEC): Likewise.
3740 * config/xtensa/predicates.md (move_operand): Match constants
3741 and symbols in the presence of TARGET_AUTO_LITPOOLS.
3742 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
3743 immediate references to TLS data.
3744 (xtensa_emit_move_sequence): Don't force constants to memory in
3745 the presence of TARGET_AUTO_LITPOOLS.
3746 (print_operand): Add 'y' format, same as default, but capable of
3747 printing SF mode constants as well.
3748 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
3749 (movsf_internal): Add movi pattern that loads literal.
3750 (movsf, movdf): Don't force constants to memory in the presence
3751 of TARGET_AUTO_LITPOOLS.
3752 (movdf_internal): Add 'Y' constraint.
3753 * config/xtensa/xtensa.opt (mauto-litpools): New option.
3754 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
3755
3756 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
3757
3758 * config/arm/arm-fpus.def: Replace booleans with feature flags.
3759 Update comment.
3760 * config/arm/arm.c (ARM_FPU): Update macro.
3761 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
3762 (TARGET_FP16): Likewise.
3763 (TARGET_CRYPTO): Likewise.
3764 (TARGET_NEON): Likewise.
3765 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
3766 field features.
3767
3768 2015-08-12 Tom de Vries <tom@codesourcery.com>
3769
3770 PR other/67092
3771 PR other/67098
3772 * doc/install.texi: Remove --with_host_libstdcxx item. Update
3773 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
3774 accordingly. Mention default for --with-stage1-ldflags.
3775
3776 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
3777
3778 * config/arm/arm.h (arm_fpu_feature_set): New.
3779 (ARM_FPU_FSET_HAS): New.
3780 (FPU_FL_NONE): New.
3781 (FPU_FL_NEON): New.
3782 (FPU_FL_FP16): New.
3783 (FPU_FL_CRYPTO): New.
3784
3785 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3786
3787 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
3788 after -mcmodel=large -fPIC sorry.
3789
3790 2015-08-12 Richard Biener <rguenther@suse.de>
3791
3792 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
3793 comparison operand order and commutative ternary op operand order.
3794 (sccvn_dom_walker::cond_stack): New state to track temporary
3795 expressions.
3796 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
3797 no longer valid.
3798 (sccvn_dom_walker::record_cond): Add a single temporary conditional
3799 expression.
3800 (sccvn_dom_walker::record_conds): Add a temporary conditional
3801 expressions and all related expressions also true/false.
3802 (sccvn_dom_walker::before_dom_children): Record temporary
3803 expressions based on the controlling condition of a single
3804 predecessor. When trying to simplify a conditional statement
3805 lookup expressions we might have inserted earlier.
3806
3807 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
3808
3809 PR target/67127
3810 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
3811 to ARM core registers.
3812
3813 2015-08-12 Nathan Sidwell <nathan@acm.org>
3814
3815 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
3816 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
3817
3818 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
3819
3820 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
3821 line with comments.
3822 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
3823
3824 2015-08-12 Richard Biener <rguenther@suse.de>
3825
3826 * gimple.h (remove_pointer): New trait.
3827 (GIMPLE_CHECK2): New inline template function.
3828 (gassign::code_): New constant static member.
3829 (is_a_helper<const gassign *>): Add.
3830 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
3831 and forward to a new gassign overload with less checking and a
3832 cheaper way to access the operand.
3833 (gimple_assign_lhs_ptr): Likewise.
3834 (gimple_assign_set_lhs): Likewise.
3835 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
3836 Likewise.
3837 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
3838 Likewise.
3839 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
3840 Likewise.
3841 (gimple_assign_rhs_code): Likewise.
3842 * gimple.c (gassign::code_): Define.
3843
3844 2015-08-12 Richard Biener <rguenther@suse.de>
3845
3846 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3847 Eliminate edges marked as not executable by SCCVN.
3848 * tree-ssa-sccvn.c: Include gimple-iterator.h.
3849 (cond_dom_walker): Rename to sccvn_dom_walker.
3850 (sccvn_dom_walker::before_dom_children): Value-number defs
3851 of all stmts.
3852 (run_scc_vn): Remove loop value-numbering all SSA names.
3853 Drop not visited SSA names to varying.
3854
3855 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
3856
3857 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3858 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3859 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3860 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3861 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3862 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3863 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3864 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3865 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3866
3867 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
3868
3869 PR target/66954
3870 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
3871 to enum feature_priority and feature_list.
3872 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
3873 and isa_names_table.
3874
3875 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
3876
3877 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
3878 vect_induction_def.
3879
3880 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3881
3882 PR c/66098
3883 PR c/66711
3884 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
3885 account when deciding what was the command-line status.
3886
3887 2015-08-11 Nathan Sidwell <nathan@acm.org>
3888
3889 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
3890
3891 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
3892 we're not the only contributor to target phi.
3893
3894 2015-08-11 Jiong Wang <jiong.wang@arm.com>
3895
3896 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
3897 FIXED_REG0.
3898
3899 2015-08-11 Tom de Vries <tom@codesourcery.com>
3900
3901 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
3902
3903 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
3904
3905 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
3906 with CPU_SLM.
3907 * config/i386/i386.md (cpu): Remove knl.
3908
3909 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3910
3911 PR libgomp/65742
3912 PR middle-end/66332
3913 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
3914 open-coded sequence.
3915 * omp-low.c (oacc_process_reduction_data): Remove handline of
3916 GOMP_DEVICE_HOST_NONSHM.
3917
3918 * lto-streamer-in.c (lto_input_mode_table): Adjust to
3919 GET_MODE_INNER changes.
3920
3921 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3922 Ilya Verbin <ilya.verbin@intel.com>
3923
3924 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
3925 iterator.
3926
3927 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3928
3929 * doc/options.texi (EnabledBy): Document that the argument must be
3930 a Common option.
3931 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
3932 Not enabled by -Wall.
3933 * optc-gen.awk: Give nicer error messages. Detect if the argument
3934 of EnabledBy is not a Common option.
3935 * common.opt (Wnull-dereference): Not enabled by -Wall.
3936 * opt-functions.awk (lang_enabled_by): Nicer error messages.
3937
3938 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
3939
3940 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
3941 model == 0x4f as Broadwell.
3942
3943 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3944
3945 PR rtl-optimization/67028
3946 * combine.c (simplify_comparison): Fix comment. Rearrange code.
3947 Add test to see if a const_int fits in the new mode.
3948
3949 2015-08-07 DJ Delorie <dj@redhat.com>
3950
3951 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
3952
3953 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
3954
3955 PR rtl-optimization/67029
3956 * ira-color.c: Include "recog.h" before including "ira-int.h".
3957 * target-globals.c: Likewise.
3958 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
3959 adds an alternative_mask argument and use it instead of
3960 preferred_alternatives.
3961 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
3962 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
3963 * sched-deps.c: Include "ira-int.h" after including "ira.h".
3964 (sched_analyze_insn): Update call to
3965 ira_implicitly_set_insn_hard_regs.
3966 * sel-sched.c: Include "ira-int.h" after including "ira.h".
3967 (implicit_clobber_conflict_p): Update call to
3968 ira_implicitly_set_insn_hard_regs.
3969
3970 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
3971
3972 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
3973
3974 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
3975
3976 PR target/67002
3977 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
3978 currently_expanding_to_rtl is set.
3979
3980 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
3981
3982 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
3983 * configure: Regenerate.
3984
3985 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3986 Jiong Wang <jiong.wang@arm.com>
3987
3988 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3989 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3990 (REG_CLASS_NAMES): Likewise.
3991 (REG_CLASS_CONTENTS): Likewise.
3992 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3993 (aarch64_register_move_cost): Likewise.
3994 (aarch64_load_symref_appropriately): Invoke the new added pattern if
3995 possible.
3996 * config/aarch64/constraints.md (Uc0): New constraint.
3997
3998 2015-08-06 Jiong Wang <jiong.wang@arm.com>
3999
4000 * config/aarch64/constraints.md (Usf): Add the test of
4001 aarch64_is_noplt_call_p.
4002
4003 2015-08-06 Jiong Wang <jiong.wang@arm.com>
4004
4005 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
4006 declaration.
4007 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
4008 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
4009 (call_symbol): Likewise.
4010
4011 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4012
4013 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
4014 for vectorizing multiplication patterns.
4015 * tree-vectorizer.h: Adjust the number of patterns.
4016
4017 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
4018
4019 * config/i386/sse.md (*vec_concatv2df): Declare added
4020 alternatives as sselog type.
4021
4022 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4023
4024 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
4025 all GPRs.
4026
4027 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4028
4029 * config/s390/s390.c (s390_expand_tbegin): Expand either
4030 tbegin_1_z13 or tbegin_1 depending on VX flag.
4031 * config/s390/s390.md ("tbegin_1_z13"): New expander.
4032
4033 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4034
4035 * config/s390/s390.opt: Clarify description for -mzvector
4036 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
4037 -mzvector.
4038
4039 2015-08-06 Richard Biener <rguenther@suse.de>
4040
4041 * gimple.h (gimple_call_set_fn): Access op member directly.
4042 (gimple_call_chain_ptr): Likewise.
4043 (gimple_call_set_chain): Likewise.
4044 (gimple_cond_lhs_ptr): Likewise.
4045 (gimple_cond_set_lhs): Likewise.
4046 (gimple_cond_rhs_ptr): Likewise.
4047 (gimple_cond_set_rhs): Likewise.
4048 (gimple_cond_true_label): Likewise.
4049 (gimple_cond_set_true_label): Likewise.
4050 (gimple_cond_set_false_label): Likewise.
4051 (gimple_cond_false_label): Likewise.
4052 (gimple_label_label): Likewise.
4053 (gimple_label_set_label): Likewise.
4054 (gimple_goto_set_dest): Likewise.
4055 (gimple_asm_input_op): Likewise.
4056 (gimple_asm_input_op_ptr): Likewise.
4057 (gimple_asm_set_input_op): Likewise.
4058 (gimple_asm_output_op): Likewise.
4059 (gimple_asm_output_op_ptr): Likewise.
4060 (gimple_asm_set_output_op): Likewise.
4061 (gimple_asm_clobber_op): Likewise.
4062 (gimple_asm_set_clobber_op): Likewise.
4063 (gimple_asm_label_op): Likewise.
4064 (gimple_asm_set_label_op): Likewise.
4065 (gimple_switch_index): Likewise.
4066 (gimple_switch_index_ptr): Likewise.
4067 (gimple_return_retval_ptr): Likewise.
4068 (gimple_return_retval): Likewise.
4069 (gimple_return_set_retval): Likewise.
4070 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
4071 (gimple_switch_label): Likewise.
4072 (gimple_switch_set_label): Likewise.
4073
4074 2015-08-06 Richard Biener <rguenther@suse.de>
4075
4076 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
4077 bool comparison canonicalization and restrict to integers.
4078
4079 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
4080
4081 * coretypes.h (enum symbol_visibility): Relocate here.
4082 * flag-types.h (enum symbol_visibility): Remove.
4083 * tree-core.h (enum symbol_visibility): Remove.
4084
4085 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
4086
4087 PR target/66870
4088 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
4089 for no_split_stack function attribute along with
4090 flag_split_stack.
4091 (rs6000_expand_split_stack_prologue): Likewise.
4092
4093 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4094 Jeff Law <law@redhat.com>
4095
4096 PR c/16351
4097 * doc/invoke.texi (Wnull-dereference): New.
4098 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
4099 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
4100 Warn for potential NULL dereferences.
4101 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
4102 * ubsan.c (instrument_nonnull_arg): Call
4103 infer_nonnull_range_by_attribute.
4104 (instrument_nonnull_return): Likewise.
4105 * common.opt (Wnull-dereference); New.
4106 * gimple.c (infer_nonnull_range): Remove bool arguments.
4107 (infer_nonnull_range_by_dereference): New.
4108 (infer_nonnull_range_by_attribute): New.
4109 * gimple.h: Update declarations.
4110
4111 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4112
4113 * gensupport.c (sequence_num): Replace with...
4114 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
4115 ...these new variables.
4116 (init_rtx_reader_args_cb): Update accordingly.
4117 (get_num_code_insns): Likewise.
4118 (read_md_rtx): Rework to use a while loop and get_c_test.
4119 Use the new counters. Remove redundant DEFINE_SUBST case.
4120 * genoutput.c (gen_split): Delete.
4121 (main): Don't call it.
4122
4123 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4124
4125 * gensupport.h (get_c_test): Declare.
4126 * gensupport.c (get_c_test): New function.
4127 * genconditions.c (main): Use it.
4128 * genrecog.c (validate_pattern): Likewise.
4129 (match_pattern_1): Likewise. Remove c_test argument.
4130 (match_pattern): Update accordingly and remove c_test argument.
4131 (main): Update accordingly.
4132
4133 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4134
4135 * gensupport.h (get_num_insn_codes): Declare.
4136 * gensupport.c (get_num_insn_codes): New function.
4137 * genattrtab.c (optimize_attrs): Rename max_insn_code to
4138 num_insn_codes.
4139 (main): Likewise. Use get_num_insn_codes.
4140 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
4141
4142 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4143
4144 PR middle-end/66311
4145 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
4146 is zero- rather than sign-extended.
4147
4148 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4149
4150 * target-insns.def (can_extend): Delete.
4151
4152 2015-08-05 Richard Biener <rguenther@suse.de>
4153
4154 PR tree-optimization/67121
4155 * tree-if-conv.c (combine_blocks): Clear range-info produced
4156 by stmts no longer executed conditionally.
4157
4158 2015-08-05 Nick Clifton <nickc@redhat.com>
4159
4160 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
4161 to allow identical far pointers to remain.
4162
4163 2015-08-05 Richard Biener <rguenther@suse.de>
4164
4165 PR middle-end/67120
4166 * match.pd: Compare address bases with == if they are decls
4167 or SSA names, not operand_equal_p. Otherwise fail.
4168
4169 2015-08-05 Richard Biener <rguenther@suse.de>
4170
4171 PR tree-optimization/67055
4172 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
4173 NULL gimple_block.
4174
4175 * g++.dg/torture/pr67055.C: New testcase.
4176
4177 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
4178
4179 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
4180 noavx512vl.
4181 (define_attr "enabled"): Handle avx521vl and noavx512vl.
4182 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
4183 AVX-512 alternative out of SSE.
4184 (define_insn "*vec_concatv2df"): Ditto.
4185
4186 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
4187
4188 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
4189 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
4190 CODE_FOR_avx_ptestv4di.
4191 * config/i386/sse.md (define_mode_iterator V_AVX): New.
4192 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
4193 (define_insn "avx_ptest256"): Merge this ...
4194 (define_insn "sse4_1_ptest"): And this ...
4195 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
4196
4197 2015-08-05 Richard Biener <rguenther@suse.de>
4198
4199 PR tree-optimization/67109
4200 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
4201 against too big groups. Print whether this is a load or store
4202 group. Rename from ...
4203 (vect_analyze_group_access): ... this which is now a wrapper
4204 dissolving an invalid group.
4205 (vect_analyze_data_ref_accesses): Print whether this is a load
4206 or store group.
4207
4208 2015-08-05 Richard Biener <rguenther@suse.de>
4209
4210 PR middle-end/67107
4211 * match.pd: Guard const_binop result checking against NULL_TREE
4212 result.
4213
4214 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
4215
4216 * cse.c (cse_insn): Restoring old behaviour for src_eqv
4217 when dest and value in the REG_EQUAL are same and dest
4218 is STRICT_LOW_PART.
4219
4220 2015-08-04 Anatoly Sokolov <aesok@post.ru>
4221
4222 * config/moxie/moxie.h (PRINT_OPERAND,
4223 PRINT_OPERAND_ADDRESS): Remove macros.
4224 * config/moxie/moxie-protos.h (moxie_print_operand,
4225 moxie_print_operand_address): Remove declaration.
4226 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
4227 TARGET_PRINT_OPERAND_ADDRESS): Define.
4228 (moxie_print_operand, moxie_print_operand_address): Make static.
4229
4230 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
4231
4232 PR target/66731
4233 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
4234 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
4235
4236 2015-08-04 Richard Biener <rguenther@suse.de>
4237
4238 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
4239 generated code.
4240 (dt_operand::gen_gimple_expr): Adjust.
4241
4242 2015-08-04 Richard Biener <rguenther@suse.de>
4243
4244 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
4245 bool compares on RHS.
4246 * match.pd: Add X ==/!= !X is false/true pattern.
4247
4248 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
4249
4250 * config/aarch64/aarch64.c: Change inner loop statement cost
4251 to be consistent with other targets.
4252
4253 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
4254
4255 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
4256 targets.
4257
4258 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
4259
4260 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
4261 (machine_function): Remove pseudos field.
4262
4263 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4264
4265 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4266 Exit early and use target_option_current_node if processing current
4267 pragma.
4268
4269 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4270
4271 * doc/extend.texi (AArch64 Function Attributes): New node.
4272 (AArch64 Pragmas): Likewise.
4273
4274 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4275
4276 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4277 Initialize simd builtins if TARGET_SIMD.
4278 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
4279 Make sure that the builtins are initialized only once no matter how
4280 many times the function is called.
4281 (aarch64_init_builtins): Unconditionally initialize crc builtins.
4282 (aarch64_relayout_simd_param): New function.
4283 (aarch64_simd_expand_args): Use above during argument expansion.
4284 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
4285 simd builtins if TARGET_SIMD.
4286 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
4287 prototype.
4288 (aarch64_relayout_simd_types): Likewise.
4289
4290 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4291
4292 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
4293 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
4294 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
4295 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4296 static keyword.
4297 (aarch64_reset_previous_fndecl): New function.
4298 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
4299 the string.
4300 * config/aarch64/aarch64-c.c: New file.
4301 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
4302 Push and pop options at beginning and end. Remove ifdef
4303 __ARM_FEATURE_CRC32.
4304 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
4305 Add pragma +nothing+simd and +nothing+crypto where appropriate.
4306 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
4307 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
4308 Define prototype.
4309 (aarch64_register_pragmas): Likewise.
4310 (aarch64_reset_previous_fndecl): Likewise.
4311 (aarch64_process_target_attr): Likewise.
4312 (aarch64_override_options_internal): Likewise.
4313
4314 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4315
4316 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
4317 New function.
4318 (aarch64_can_inline_p): Likewise.
4319 (TARGET_CAN_INLINE_P): Define.
4320
4321 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4322
4323 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4324 Remove static. Handle OPT_mgeneral_regs_only,
4325 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
4326 OPT_momit_leaf_frame_pointer.
4327 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
4328 (aarch64_attr_opt_type): New enum.
4329 (aarch64_attribute_info): New struct.
4330 (aarch64_handle_attr_arch): New function.
4331 (aarch64_handle_attr_cpu): Likewise.
4332 (aarch64_handle_attr_tune): Likewise.
4333 (aarch64_handle_attr_isa_flags): Likewise.
4334 (aarch64_attributes): New table.
4335 (aarch64_process_one_target_attr): New function.
4336 (num_occurences_in_str): Likewise.
4337 (aarch64_process_target_attr): Likewise.
4338 (aarch64_option_valid_attribute_p): Likewise.
4339 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
4340 * config/aarch64/aarch64-protos.h: Include input.h
4341 (aarch64_handle_option): Declare prototype.
4342
4343 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4344
4345 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
4346 * config/aarch64/aarch64.c: Include target-globals.h
4347 (aarch64_previous_fndecl): New variable.
4348 (aarch64_set_current_function): New function.
4349 (TARGET_SET_CURRENT_FUNCTION): Define.
4350
4351 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4352
4353 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
4354 (explicit_arch): Likewise.
4355 (x_aarch64_isa_flags): Likewise.
4356 (mgeneral-regs-only): Mark as Save.
4357 (mfix-cortex-a53-835769): Likewise.
4358 (mcmodel=): Likewise.
4359 (mstrict-align): Likewise.
4360 (momit-leaf-frame-pointer): Likewise.
4361 (mtls-dialect): Likewise.
4362 (master=): Likewise.
4363 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
4364 (aarch64_isa_flags): Remove extern declaration.
4365 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
4366 to indicate success or failure.
4367 (aarch64_validate_march): Likewise.
4368 (aarch64_validate_mtune): Likewise.
4369 (aarch64_isa_flags): Delete.
4370 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
4371 instead of aarch64_isa_flags.
4372 (aarch64_get_tune_cpu): New function.
4373 (aarch64_get_arch): Likewise.
4374 (aarch64_override_options): Use above and set up explicit_tune_core
4375 and explicit_arch.
4376 (aarch64_print_extension): Move earlier in file. Add isa_flags
4377 argument and use that instead of the global aarch64_isa_flags.
4378 (aarch64_option_save): New function.
4379 (aarch64_option_restore): Likewise.
4380 (aarch64_option_print): Likewise.
4381 (aarch64_declare_function_name): Likewise.
4382 (aarch64_start_file): Delete.
4383 (TARGET_ASM_FILE_START): Do not define.
4384 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
4385 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
4386 Declare prototype.
4387
4388 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4389
4390 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
4391 flag_omit_leaf_frame_pointer to 2.
4392
4393 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4394
4395 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
4396 define to 0 or 1.
4397 (TARGET_FIX_ERR_A53_835769): New macro.
4398 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4399 handling of opts->x_aarch64_fix_a53_err835769.
4400 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
4401 than aarch64_fix_a53_err835769.
4402 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
4403 * config/aarch64/aarch64-linux.h: Likewise.
4404
4405 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
4406
4407 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
4408 ix86_expand_int_movcc as boolean.
4409
4410 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4411
4412 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
4413 (aarch64_cpu_string): Likewise.
4414 (aarch64_tune_string): Likewise.
4415 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
4416 (aarch64_parse_extension): Return aarch64_parse_opt_result.
4417 Add extra argument to put result into.
4418 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
4419 (aarch64_parse_cpu): Add arguments to put results into. Return
4420 aarch64_parse_opt_result.
4421 (aarch64_parse_tune): Likewise.
4422 (aarch64_override_options_after_change_1): New function.
4423 (aarch64_override_options_internal): New function.
4424 (aarch64_validate_mcpu): Likewise.
4425 (aarch64_validate_march): Likewise.
4426 (aarch64_validate_mtune): Likewise.
4427 (aarch64_override_options): Update to reflect above changes.
4428 Move some logic into aarch64_override_options_internal.
4429 Initialize target_option_default_node and target_option_current_node.
4430 (aarch64_override_options_after_change): Move logic into
4431 aarch64_override_options_after_change_1 and call it with global_options.
4432 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
4433 flag values from that.
4434
4435 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4436
4437 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4438 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
4439 * config/aarch64/aarch64.c (struct processor): Add arch field.
4440 (all_architectures): Handle above, move above all_cores.
4441 (all_cores): Handle above.
4442 (aarch64_parse_arch): Handle above changes.
4443 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
4444 above. Update comments.
4445 (armv8.1-a): Likewise.
4446 * config/aarch64/aarch64-cores.def: Update according to above.
4447 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
4448 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
4449 aarch64_arch_driver_info.
4450
4451 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4452
4453 * config/aarch64/aarch64.c (struct processor): Add ident field.
4454 Rename core sched_core.
4455 (all_cores): Handle above changes.
4456 (all_architectures): Likewise.
4457 (aarch64_parse_arch): Likewise.
4458 (aarch64_override_options): Likewise.
4459
4460 2015-08-04 Richard Biener <rguenther@suse.de>
4461
4462 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
4463 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
4464 comparisons embedded in [VEC_]COND_EXPRs.
4465
4466 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
4467
4468 * tree-if-conv.c: Fix various typos in comments.
4469 * tree-vect-stmts.c: Likewise.
4470
4471 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4472
4473 PR tree-optimization/67043
4474 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
4475 preheader after hoisting invariant in it.
4476 (find_defs): Force recomputation of all luids.
4477
4478 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
4479
4480 * config/rs6000/htm.md (tabort.): Restrict the source operand to
4481 using a base register.
4482
4483 2015-08-03 David Malcolm <dmalcolm@redhat.com>
4484
4485 * main.c (main): Pass in NULL for toplev's external_timer.
4486 * timevar.c: Include coretypes.h.
4487 (class timer::named_items): New.
4488 (timer::named_items::named_items): New.
4489 (timer::named_items::~named_items): New.
4490 (timer::named_items::push): New.
4491 (timer::named_items::pop): New.
4492 (timer::named_items::print): New.
4493 (timer::timer): Initialize field "m_jit_client_items".
4494 (timer::~timer): New.
4495 (timer::push): Move bulk of implementation to...
4496 (timer::push_internal): ...here. New function.
4497 (timer::pop): Move bulk of implementation to...
4498 (timer::pop_internal): ...here. New function.
4499 (timer::push_client_item): New.
4500 (timer::pop_client_item): New.
4501 (timer::print_row): New function, taken from timer::print.
4502 (timer::print): Print "GCC items" header if we also have client
4503 items. Move row-printing to timer::print_row. Print any client
4504 items.
4505 (timer::get_topmost_item_name): New method.
4506 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
4507 (TV_JIT_CLIENT_CODE): New.
4508 * timevar.h (timer::push_client_item): New declaration.
4509 (timer::pop_client_item): New declaration.
4510 (timer::get_topmost_item_name): New method.
4511 (timer::push_internal): New declaration.
4512 (timer::pop_internal): New declaration.
4513 (timer::print_row): New declaration.
4514 (timer::named_items): New declaration.
4515 (timer::m_jit_client_items): New field.
4516 (timer): Add friend class named_items.
4517 (auto_timevar::auto_timevar): Add timer param.
4518 (auto_timevar::~auto_timevar): Use field "m_timer".
4519 (auto_timevar::m_timer): New field.
4520 * toplev.c (initialize_rtl): Add g_timer as param when
4521 constructing auto_timevar instance.
4522 (toplev::toplev): Add "external_timer" param, and use it to
4523 initialize the "g_timer" global if non-NULL.
4524 (toplev::~toplev): If this created "g_timer", delete it.
4525 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
4526 with "external_timer" timer *.
4527
4528 2015-08-03 Alexander Basov <coohpt@gmail.com>
4529
4530 PR middle-end/64744
4531 PR middle-end/48470
4532 PR middle-end/43404
4533 * cfgexpand.c (expand_one_var): Add check if stack is going to
4534 be used in naked function.
4535 * expr.c (expand_expr_addr_expr_1): Remove excess checking
4536 whether expression should not reside in MEM.
4537 * function.c (use_register_for_decl): Do not use registers for
4538 non-register things (volatile, float, BLKMode) in naked functions.
4539
4540 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
4541
4542 PR target/67060
4543 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
4544 Adjust splits to match new pattern.
4545
4546 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4547
4548 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
4549 (VEC_M): Likewise.
4550 (VEC_N): Likewise.
4551 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
4552 point in VSX registers.
4553
4554 * config/rs6000/constraints.md (wb constraint): Document unused
4555 w<x> constraint.
4556 (we constraint): Likewise.
4557 (wo constraint): Likewise.
4558 (wp constraint): New constraint for IEEE 128-bit floating point in
4559 VSX registers.
4560 (wq constraint): Likewise.
4561
4562 * config/rs6000/predicates.md (easy_fp_constant): Add support for
4563 IEEE 128-bit floating point in VSX registers.
4564 (easy_scalar_constant): Likewise.
4565
4566 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
4567 constraints (wp, wq) for IEEE 128-bit floating point in VSX
4568 registers.
4569 (rs6000_init_hard_regno_mode_ok): Likewise.
4570
4571 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
4572 floating point in VSX registers.
4573 (VSX_L): Likewise.
4574 (VSX_M): Likewise.
4575 (VSX_M2): Likewise.
4576 (VSm): Likewise.
4577 (VSs): Likewise.
4578 (VSr): Likewise.
4579 (VSa): Likewise.
4580 (VSv): Likewise.
4581 (vsx_le_permute_<mode>): Add support to properly swap bytes for
4582 IEEE 128-bit floating point in VSX registers on little endian.
4583 (vsx_le_undo_permute_<mode>): Likewise.
4584 (vsx_le_perm_load_<mode>): Likewise.
4585 (vsx_le_perm_store_<mode>): Likewise.
4586 (splitters for IEEE 128-bit fp moves): Likewise.
4587
4588 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
4589 wq constraints.
4590
4591 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
4592 floating point in VSX registers.
4593 (VM2): Likewise.
4594
4595 * doc/md.text (Machine Constraints): Document wp and wq
4596 constraints on PowerPC.
4597
4598 2015-08-03 Jeff Law <law@redhat.com>
4599
4600 PR middle-end/66314
4601 PR gcov-profile/66899
4602 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
4603 iterate over the jump threading paths when an element in the
4604 jump threading paths array is eliminated.
4605
4606 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
4607
4608 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
4609
4610 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
4611
4612 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
4613 is_use_properly_guarded the variable def_preds. Free its
4614 contents before returning.
4615 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
4616 (is_use_properly_guarded): Replace local variable def_preds with
4617 a parameter. Adjust accordingly. Only update *def_preds if it's
4618 the empty vector.
4619
4620 2015-08-03 Richard Biener <rguenther@suse.de>
4621
4622 * genmatch.c (simplify::for_subst_vec): New member.
4623 (binary_ok): New helper for for lowering.
4624 (lower_for): Delay substituting operators into result expressions
4625 if we can merge the results eventually again.
4626 (capture_info::walk_result): Adjust for user_id appearing as
4627 result expression operator.
4628 (expr::gen_transform): Likewise.
4629 (dt_simplify::gen_1): Likewise.
4630 (dt_simplify::gen): Pass not substituted operators to tail
4631 functions or initialize local variable with it.
4632 (decision_tree::gen): Adjust function signature.
4633 * match.pd: Fix tests against global code and add default
4634 cases to switch stmts.
4635
4636 2015-08-03 Richard Biener <rguenther@suse.de>
4637
4638 * genmatch.c (dt_simplify::gen): Create captures array
4639 with an initializer.
4640
4641 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4642
4643 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
4644 the host compiler is affected by placement new aliasing bug.
4645 * configure: Regenerate.
4646 * Makefile.in (ALIASING_FLAGS): New variable.
4647 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
4648
4649 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4650
4651 PR target/66731
4652 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
4653 (negmulsf3_vfp): Likewise.
4654 (muldf3negdf_vfp): Disable for -frounding-math.
4655 (mulsf3negsf_vfp): Likewise.
4656 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
4657 fix MULT cost with -frounding-math.
4658
4659 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4660
4661 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
4662 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
4663 explicit. Prefer to add the flag whenever possible.
4664 (noce_process_if_block): Try noce_try_store_flag_constants before
4665 noce_try_cmove.
4666
4667 2015-08-03 Richard Biener <rguenther@suse.de>
4668
4669 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
4670 New hash-map to record equivalent transforms.
4671 (dt_node::analyze): Populate the equivalent transforms hash-map.
4672 (dt_simplify::info): Add reference to hash-map entry.
4673 (dt_simplify::gen): If we have split out a function for the
4674 transform, generate a call to it.
4675 (sinfo_hashmap_traits::hash): New function.
4676 (compare_op): New helper function for ...
4677 (sinfo_hashmap_traits::equal_keys): ... this new function.
4678 (decision_tree::gen): Split out common equivalent transforms
4679 into functions.
4680
4681 2015-08-03 Richard Biener <rguenther@suse.de>
4682
4683 * gimple-fold.c (fold_gimple_assign): Remove folding of
4684 the comparison in COND_EXPRs.
4685
4686 2015-08-03 Richard Biener <rguenther@suse.de>
4687
4688 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
4689 on the rhs of assignments first simplify the embedded
4690 GENERIC condition.
4691
4692 2015-08-03 Richard Biener <rguenther@suse.de>
4693
4694 PR tree-optimization/66917
4695 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
4696 field.
4697 (DR_VECT_AUX): New macro.
4698 (set_dr_misalignment): Adjust.
4699 (dr_misalignment): Likewise.
4700 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4701 Compute whether the base is at least element aligned.
4702 * tree-vect-stmts.c (ensure_base_align): Adjust.
4703 (vectorizable_store): If the base is not element aligned
4704 preserve alignment of the original access if misalignment is unknown.
4705 (vectorizable_load): Likewise.
4706
4707 2015-08-02 Martin Sebor <msebor@redhat.com>
4708
4709 * c-family/c.opt (-Wframe-address): New warning option.
4710 * doc/invoke.texi (Wframe-address): Document it.
4711 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
4712 Clarify possible effects of calling the functions with non-zero
4713 arguments and mention -Wframe-address.
4714 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
4715
4716 2015-08-01 Michael Collison <michael.collison@linaro.org
4717 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4718
4719 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
4720 (*arm_umin_cmp): Likewise.
4721
4722 2015-08-01 Caroline Tice <cmtice@google.com>
4723
4724 PR 66521
4725 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
4726 global variables.
4727 (vtbl_find_mangled_name): New function.
4728 (vtbl_register_mangled_name): New function.
4729 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
4730 mangled name in mangled name vectors.
4731 (find_or_create_vtbl_map_node): Ditto.
4732 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
4733 update recursion_depth on function entry; pass it to every recursive
4734 call; automatically exit if depth > 25 (give up looking at that point).
4735 (verify_bb_vtables): Initialize recursion_depth and pass it to
4736 var_is_used_for_virtual_call_p.
4737 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
4738 global variable decls.
4739 (vtbl_register_mangled_name): New extern function decl.
4740
4741 2015-08-01 Tom de Vries <tom@codesourcery.com>
4742
4743 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
4744 function.
4745 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
4746 Declare.
4747 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
4748 operation_no_trapping_overflow. Allow non-overflow operations.
4749 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
4750 operations.
4751
4752 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
4753
4754 PR target/67049
4755 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
4756
4757 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4758
4759 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
4760 Enable for TARGET_32BIT.
4761 (*if_move_neg): Likewise.
4762
4763 2015-07-31 Nick Clifton <nickc@redhat.com>
4764
4765 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
4766 Returns true for __model__.
4767 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4768
4769 2015-07-31 Alan Modra <amodra@gmail.com>
4770
4771 PR target/66870
4772 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
4773 (rs6000_emit_prologue): Set it.
4774 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
4775
4776 2015-07-31 Richard Biener <rguenther@suse.de>
4777
4778 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
4779 -> X == (C1 ^ C2) which is already implemented in match.pd.
4780 Remove redundant dispatching to fold_relational_const.
4781 Move unordered self and NaN compares ...
4782 * match.pd: ... as patterns here. Remove some stray captures
4783 and add a comment.
4784
4785 2015-07-31 Petr Murzin <petr.murzin@intel.com>
4786
4787 * config/i386/i386.c
4788 (bdesc_special_args): Convert mask type from signed to unsigned for
4789 masked builtins.
4790 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
4791 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
4792 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
4793 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
4794 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
4795 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
4796 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
4797 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
4798 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
4799 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
4800 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
4801 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
4802 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
4803 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
4804 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
4805 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
4806 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
4807 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
4808 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
4809 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
4810 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
4811 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
4812 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
4813 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
4814 * config/i386/i386-builtin-types.def
4815 (V16QI_FTYPE_V16SI): Remove.
4816 (V8DF_FTYPE_V8SI): Ditto.
4817 (V8HI_FTYPE_V8DI): Ditto.
4818 (V8SI_FTYPE_V8DI): Ditto.
4819 (V8SF_FTYPE_V8DF): Ditto.
4820 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
4821 (V16HI_FTYPE_V16SI): Ditto.
4822 (V16SF_FTYPE_V16HI): Ditto.
4823 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
4824 (V16SF_FTYPE_V16SI): Ditto.
4825 (V4DI_FTYPE_V4DI): Ditto.
4826 (V16SI_FTYPE_V16SF): Ditto.
4827 (V16SF_FTYPE_FLOAT): Ditto.
4828 (V8DF_FTYPE_DOUBLE): Ditto.
4829 (V8DI_FTYPE_INT64): Ditto.
4830 (V8DI_FTYPE_V4DI): Ditto.
4831 (V16QI_FTYPE_V8DI): Ditto.
4832 (UINT_FTYPE_V4SF): Ditto.
4833 (UINT64_FTYPE_V4SF): Ditto.
4834 (UINT_FTYPE_V2DF): Ditto.
4835 (UINT64_FTYPE_V2DF): Ditto.
4836 (V16SI_FTYPE_V16SI): Ditto.
4837 (V8DI_FTYPE_V8DI): Ditto.
4838 (V16SI_FTYPE_PV4SI): Ditto.
4839 (V16SF_FTYPE_PV4SF): Ditto.
4840 (V8DI_FTYPE_PV2DI): Ditto.
4841 (V8DF_FTYPE_PV2DF): Ditto.
4842 (V4DI_FTYPE_PV2DI): Ditto.
4843 (V4DF_FTYPE_PV2DF): Ditto.
4844 (V16SI_FTYPE_PV2SI): Ditto.
4845 (V16SF_FTYPE_PV2SF): Ditto.
4846 (V8DI_FTYPE_PV4DI): Ditto.
4847 (V8DF_FTYPE_PV4DF): Ditto.
4848 (V8SF_FTYPE_FLOAT): Ditto.
4849 (V4SF_FTYPE_FLOAT): Ditto.
4850 (V4DF_FTYPE_DOUBLE): Ditto.
4851 (V8SF_FTYPE_PV4SF): Ditto.
4852 (V8SI_FTYPE_PV4SI): Ditto.
4853 (V4SI_FTYPE_PV2SI): Ditto.
4854 (V8SF_FTYPE_PV2SF): Ditto.
4855 (V8SI_FTYPE_PV2SI): Ditto.
4856 (V16SF_FTYPE_PV8SF): Ditto.
4857 (V16SI_FTYPE_PV8SI): Ditto.
4858 (V8DI_FTYPE_V8SF): Ditto.
4859 (V4DI_FTYPE_V4SF): Ditto.
4860 (V2DI_FTYPE_V4SF): Ditto.
4861 (V64QI_FTYPE_QI): Ditto.
4862 (V32HI_FTYPE_HI): Ditto.
4863 (V8UHI_FTYPE_V8UHI): Ditto.
4864 (V16UHI_FTYPE_V16UHI): Ditto.
4865 (V32UHI_FTYPE_V32UHI): Ditto.
4866 (V2UDI_FTYPE_V2UDI): Ditto.
4867 (V4UDI_FTYPE_V4UDI): Ditto.
4868 (V8UDI_FTYPE_V8UDI): Ditto.
4869 (V4USI_FTYPE_V4USI): Ditto.
4870 (V8USI_FTYPE_V8USI): Ditto.
4871 (V16USI_FTYPE_V16USI): Ditto.
4872 (V2DF_FTYPE_V2DF_UINT64): Ditto.
4873 (V2DI_FTYPE_V2DF_V2DF): Ditto.
4874 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
4875 (V8DF_FTYPE_V8DF_V8DI): Ditto.
4876 (V4SF_FTYPE_V4SF_UINT64): Ditto.
4877 (V4SI_FTYPE_V4SF_V4SF): Ditto.
4878 (V16SF_FTYPE_V16SF_V16SI): Ditto.
4879 (V64QI_FTYPE_V32HI_V32HI): Ditto.
4880 (V32HI_FTYPE_V16SI_V16SI): Ditto.
4881 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
4882 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
4883 (V32HI_FTYPE_V64QI_V64QI): Ditto.
4884 (V32HI_FTYPE_V32HI_V32HI): Ditto.
4885 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
4886 (V16SI_FTYPE_V16SI_V4SI): Ditto.
4887 (V16SI_FTYPE_V16SI_V16SI): Ditto.
4888 (V16SI_FTYPE_V32HI_V32HI): Ditto.
4889 (V16SI_FTYPE_V16SI_SI): Ditto.
4890 (V8DI_FTYPE_V8DI_V8DI): Ditto.
4891 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
4892 (V8DI_FTYPE_V16SI_V16SI): Ditto.
4893 (V8DI_FTYPE_V8DI_V2DI): Ditto.
4894 (QI_FTYPE_QI): Ditto.
4895 (SI_FTYPE_SI): Ditto.
4896 (DI_FTYPE_DI): Ditto.
4897 (QI_FTYPE_QI_QI): Ditto.
4898 (QI_FTYPE_QI_INT): Ditto.
4899 (HI_FTYPE_HI_INT): Ditto.
4900 (SI_FTYPE_SI_INT): Ditto.
4901 (DI_FTYPE_DI_INT): Ditto.
4902 (HI_FTYPE_V16QI_V16QI): Ditto.
4903 (SI_FTYPE_V32QI_V32QI): Ditto.
4904 (DI_FTYPE_V64QI_V64QI): Ditto.
4905 (QI_FTYPE_V8HI_V8HI): Ditto.
4906 (HI_FTYPE_V16HI_V16HI): Ditto.
4907 (SI_FTYPE_V32HI_V32HI): Ditto.
4908 (QI_FTYPE_V4SI_V4SI): Ditto.
4909 (QI_FTYPE_V8SI_V8SI): Ditto.
4910 (QI_FTYPE_V2DI_V2DI): Ditto.
4911 (QI_FTYPE_V4DI_V4DI): Ditto.
4912 (QI_FTYPE_V8DI_V8DI): Ditto.
4913 (HI_FTYPE_V16SI_V16SI): Ditto.
4914 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
4915 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
4916 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
4917 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
4918 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
4919 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
4920 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
4921 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
4922 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
4923 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
4924 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
4925 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
4926 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
4927 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
4928 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
4929 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
4930 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
4931 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
4932 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
4933 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
4934 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
4935 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
4936 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
4937 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
4938 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
4939 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
4940 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
4941 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
4942 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
4943 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
4944 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
4945 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
4946 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
4947 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
4948 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
4949 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
4950 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
4951 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
4952 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
4953 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
4954 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
4955 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
4956 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
4957 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
4958 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
4959 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
4960 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
4961 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
4962 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
4963 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
4964 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
4965 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
4966 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
4967 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
4968 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
4969 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
4970 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
4971 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
4972 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
4973 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
4974 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
4975 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
4976 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
4977 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
4978 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
4979 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
4980 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
4981 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
4982 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
4983 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
4984 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
4985 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
4986 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
4987 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
4988 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
4989 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
4990 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
4991 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
4992 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
4993 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
4994 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
4995 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
4996 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
4997 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
4998 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
4999 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
5000 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
5001 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
5002 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
5003 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
5004 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
5005 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
5006 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
5007 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
5008 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
5009 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
5010 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
5011 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
5012 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
5013 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
5014 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
5015 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
5016 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
5017 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
5018 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
5019 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
5020 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
5021 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
5022 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
5023 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
5024 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
5025 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
5026 (HI_FTYPE_HI): Ditto.
5027 (HI_FTYPE_V16QI): Ditto.
5028 (SI_FTYPE_V32QI): Ditto.
5029 (DI_FTYPE_V64QI): Ditto.
5030 (QI_FTYPE_V8HI): Ditto.
5031 (HI_FTYPE_V16HI): Ditto.
5032 (SI_FTYPE_V32HI): Ditto.
5033 (QI_FTYPE_V4SI): Ditto.
5034 (QI_FTYPE_V8SI): Ditto.
5035 (HI_FTYPE_V16SI): Ditto.
5036 (QI_FTYPE_V2DI): Ditto.
5037 (QI_FTYPE_V4DI): Ditto.
5038 (QI_FTYPE_V8DI): Ditto.
5039 (V16QI_FTYPE_HI): Ditto.
5040 (V32QI_FTYPE_SI): Ditto.
5041 (V64QI_FTYPE_DI): Ditto.
5042 (V8HI_FTYPE_QI): Ditto.
5043 (V16HI_FTYPE_HI): Ditto.
5044 (V32HI_FTYPE_SI): Ditto.
5045 (V4SI_FTYPE_QI): Ditto.
5046 (V4SI_FTYPE_HI): Ditto.
5047 (V8SI_FTYPE_QI): Ditto.
5048 (V8SI_FTYPE_HI): Ditto.
5049 (V2DI_FTYPE_QI): Ditto.
5050 (V4DI_FTYPE_QI): Ditto.
5051 (HI_FTYPE_HI_HI): Ditto.
5052 (SI_FTYPE_SI_SI): Ditto.
5053 (DI_FTYPE_DI_DI): Ditto.
5054 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
5055 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
5056 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
5057 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
5058 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
5059 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
5060 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
5061 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
5062 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
5063 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
5064 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
5065 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
5066 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
5067 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
5068 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
5069 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
5070 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
5071 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
5072 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
5073 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
5074 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
5075 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
5076 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
5077 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
5078 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
5079 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
5080 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
5081 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
5082 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
5083 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
5084 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
5085 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
5086 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
5087 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
5088 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
5089 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
5090 (V16SI_FTYPE_HI): Ditto.
5091 (V8DI_FTYPE_QI): Ditto.
5092 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
5093 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
5094 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
5095 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
5096 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
5097 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
5098 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
5099 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
5100 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
5101 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
5102 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
5103 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
5104 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
5105 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
5106 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
5107 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
5108 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
5109 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
5110 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
5111 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
5112 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
5113 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
5114 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
5115 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
5116 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
5117 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
5118 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
5119 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
5120 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
5121 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
5122 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
5123 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
5124 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
5125 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
5126 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
5127 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
5128 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
5129 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
5130 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
5131 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
5132 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
5133 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
5134 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
5135 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
5136 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
5137 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
5138 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
5139 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
5140 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
5141 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
5142 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
5143 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
5144 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
5145 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
5146 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
5147 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
5148 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
5149 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
5150 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
5151 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
5152 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
5153 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
5154 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
5155 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
5156 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
5157 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
5158 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
5159 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
5160 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
5161 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
5162 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
5163 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
5164 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
5165 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
5166 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
5167 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
5168 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
5169 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
5170 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
5171 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
5172 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
5173 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
5174 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
5175 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
5176 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
5177 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
5178 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
5179 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
5180 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
5181 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
5182 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
5183 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
5184 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
5185 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
5186 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
5187 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
5188 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
5189 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
5190 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
5191 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
5192 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
5193 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
5194 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
5195 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
5196 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
5197 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
5198 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
5199 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
5200 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
5201 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
5202 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
5203 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
5204 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
5205 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
5206 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
5207 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
5208 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
5209 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
5210 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
5211 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
5212 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
5213 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
5214 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
5215 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
5216 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
5217 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
5218 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
5219 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
5220 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
5221 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
5222 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
5223 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
5224 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
5225 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
5226 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
5227 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
5228 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
5229 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
5230 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
5231 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
5232 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
5233 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
5234 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
5235 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
5236 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
5237 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
5238 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
5239 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
5240 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
5241 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
5242 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
5243 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
5244 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
5245 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
5246 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
5247 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
5248 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
5249 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
5250 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
5251 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
5252 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
5253 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
5254 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
5255 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
5256 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
5257 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
5258 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
5259 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
5260 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
5261 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
5262 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
5263 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
5264 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
5265 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
5266 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
5267 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
5268 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
5269 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
5270 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
5271 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
5272 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
5273 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
5274 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
5275 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
5276 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
5277 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
5278 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
5279 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
5280 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
5281 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
5282 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
5283 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
5284 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
5285 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
5286 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
5287 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
5288 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
5289 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
5290 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
5291 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
5292 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
5293 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
5294 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
5295 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
5296 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
5297 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
5298 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
5299 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
5300 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
5301 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
5302 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
5303 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
5304 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
5305 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
5306 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
5307 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
5308 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
5309 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
5310 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
5311 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
5312 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
5313 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
5314 (QI_FTYPE_V8DF_INT_QI): Ditto.
5315 (QI_FTYPE_V4DF_INT_QI): Ditto.
5316 (QI_FTYPE_V2DF_INT_QI): Ditto.
5317 (HI_FTYPE_V16SF_INT_HI): Ditto.
5318 (QI_FTYPE_V8SF_INT_QI): Ditto.
5319 (QI_FTYPE_V4SF_INT_QI): Ditto.
5320 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
5321
5322 2015-07-31 Richard Biener <rguenther@suse.de>
5323
5324 * gimple-fold.c (fold_gimple_assign): Remove folding of
5325 GIMPLE_BINARY_RHS.
5326
5327 2015-07-31 Tom de Vries <tom@codesourcery.com>
5328
5329 PR tree-optimization/66846
5330 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
5331 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
5332 (expand_omp_target) [ENABLE_CHECKING]: Same.
5333 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
5334 cfun if !LOOPS_NEED_FIXUP.
5335 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
5336 that omp_for already has its own loop struct.
5337 * tree-parloops.c (create_phi_for_local_result)
5338 (create_call_for_reduction): Handle simple latch bb.
5339 (create_parallel_loop): Add simple latch bb to preserve
5340 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
5341 (gen_parallel_loop): Remove call to cancel_loop_tree.
5342 (parallelize_loops): Skip loops that are inner loops of parallelized
5343 loops.
5344 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
5345 verify_loop_structure.
5346
5347 2015-07-30 Anatoly Sokolov <aesok@post.ru>
5348
5349 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
5350 * config/v850/v850.md (RV_REGNUM): New constants.
5351 * config/v850/v850.c (v850_libcall_value): New functions.
5352 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
5353 (TARGET_LIBCALL_VALUE): Define.
5354
5355 2015-07-30 Anatoly Sokolov <aesok@post.ru>
5356
5357 * rtl.h (lowpart_subreg): Move in file.
5358 * loop-iv.c (lowpart_subreg): Move to...
5359 * simplify-rtx.c (lowpart_subreg): ...here.
5360 (simplify_binary_operation_1): Use lowpart_subreg instead of
5361 simplify_gen_subreg.
5362 * expr.c (expand_expr_real_2): Ditto.
5363 * emit-rtl.c (gen_lowpart_common): Ditto.
5364 * combine.c (gen_lowpart_for_combine): Ditto.
5365 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
5366 expand_debug_source_expr): Ditto.
5367
5368 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
5369
5370 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
5371 (expand_builtin_atomic_clear): Remove support for atomic_clear
5372 pattern.
5373
5374 2015-07-30 Richard Biener <rguenther@suse.de>
5375
5376 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
5377 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
5378 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
5379 redundant operand canonicalization.
5380
5381 2015-07-30 David Sherwood <david.sherwood@arm.com>
5382
5383 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
5384 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
5385 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
5386 * config/arm/arm.c (neon_valid_immediate): Likewise.
5387 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
5388 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
5389 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
5390 (expand_vec_perm_vpshufb2_vpermq): Likewise.
5391 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
5392 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
5393 * config/i386/sse.md
5394 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
5395 (*ssse3_palignr<mode>_perm): Likewise.
5396 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
5397 * config/spu/spu.c (arith_immediate_p): Likewise.
5398 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5399 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
5400
5401 2015-07-30 Richard Biener <rguenther@suse.de>
5402
5403 * genmatch.c (decision_tree::gen_gimple): Merge with ...
5404 (decision_tree::gen_generic): ... this into ...
5405 (decision_tree::gen): ... this.
5406 (main): Adjust callers.
5407
5408 2015-07-30 Richard Biener <rguenther@suse.de>
5409
5410 * genmatch.c (verbose): New global.
5411 (warning_at): Add overload with source_location.
5412 (capture_info::capture_info): Add bool whether generating gimple
5413 or generic. Add gimple member.
5414 (capture_info::cinfo): Add capture member.
5415 (capture_info::walk_match): Record capture. Warn on
5416 non-captured leafs.
5417 (capture_info::walk_c_expr): Add more fragments captures cannot
5418 escape through. Warn on escaped captures.
5419 (dt_simplify::gen_1): Warn on operands we force to have no
5420 side-effects.
5421 (main): Initialize verbose.
5422 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
5423
5424 2015-07-30 Richard Biener <rguenther@suse.de>
5425
5426 PR middle-end/67053
5427 * match.pd: Allow both operands to independently have conversion
5428 when simplifying compares of addresses.
5429
5430 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
5431
5432 PR target/66217
5433 PR target/67045
5434 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
5435 around those cases that need one.
5436
5437 2015-07-29 Aditya Kumar <hiraditya@msn.com>
5438
5439 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
5440
5441 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
5442
5443 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
5444 New. Copied from config/i386/gnu-user.h.
5445 (ASM_COMMENT_START): Likewise.
5446 (DBX_REGISTER_NUMBER): Likewise.
5447
5448 2015-07-29 Richard Biener <rguenther@suse.de>
5449
5450 * gimple-fold.c (fold_gimple_cond): Remove.
5451 (fold_stmt_1): Do not call it.
5452
5453 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
5454
5455 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
5456 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
5457
5458 * config/aarch64/aarch64-modes.def: Add HFmode.
5459
5460 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5461 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
5462
5463 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
5464 aarch64_promoted_type): New.
5465
5466 (aarch64_float_const_representable_p): Disable HFmode.
5467 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
5468 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
5469 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
5470
5471 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
5472 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
5473
5474 * config/aarch64/iterators.md (GPF_F16): New.
5475
5476 2015-07-29 Richard Biener <rguenther@suse.de>
5477
5478 * match.pd: Merge address comparison patterns and make them
5479 handle some more cases.
5480
5481 2015-07-29 Richard Biener <rguenther@suse.de>
5482
5483 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
5484 (parser::parse_capture): Add bool argument on whether to reject
5485 unknown captures.
5486 (parser::parse_expr): Adjust.
5487 (parser::parse_op): Likewise.
5488 (parser::parse_pattern): Likewise.
5489
5490 2015-07-29 Richard Biener <rguenther@suse.de>
5491
5492 * gimple-fold.c (has_use_on_stmt): New function.
5493 (replace_stmt_with_simplification): Use it to allow
5494 abnormals originally referenced in the stmt.
5495 (fold_stmt_1): Canonicalize operand order.
5496
5497 2015-07-28 David Sherwood <david.sherwood@arm.com>
5498
5499 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
5500 GET_MODE_INNER unconditionally.
5501 * config/spu/spu.c (arith_immediate_p): Likewise.
5502 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
5503 * expmed.c (synth_mult): Remove check for VOIDmode result from
5504 GET_MODE_INNER.
5505 (expand_mult_const): Likewise.
5506 * fold-const.c (fold_binary_loc): Replace call to element_precision
5507 with call to GET_MODE_PRECISION.
5508 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
5509 m->name.
5510 (emit_mode_inner): Likewise.
5511 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
5512 result check.
5513 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
5514 (GET_MODE_UNIT_PRECISION): Likewise.
5515 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
5516 * simplify-rtx.c (simplify_immed_subreg): Likewise.
5517 * stor-layout.c (bitwise_type_for_mode): Update assert.
5518 (element_precision): Remove.
5519
5520 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5521
5522 * target-insns.def (reload_load_address): New targetm instruction
5523 pattern.
5524 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
5525
5526 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5527
5528 * target-insns.def (atomic_test_and_set): New targetm instruction
5529 pattern.
5530 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
5531 HAVE_*/gen_* interface.
5532
5533 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5534
5535 * target-insns.def (can_extend, ptr_extend): New targetm instruction
5536 patterns.
5537 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
5538 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5539 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5540 * rtlanal.c (nonzero_bits1): Likewise.
5541 (num_sign_bit_copies1): Likewise.
5542
5543 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5544
5545 * target-insns.def (eh_return): New targetm instruction pattern.
5546 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
5547 interface.
5548 * function.c (thread_prologue_and_epilogue_insns): Remove
5549 preprocessor condition.
5550
5551 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5552
5553 * target-insns.def (indirect_jump): New targetm instruction pattern.
5554 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
5555 interface.
5556
5557 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5558
5559 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
5560 instead of nonimmediate_operand. Remove C condiition.
5561
5562 2015-07-28 Richard Biener <rguenther@suse.de>
5563
5564 * match.pd: Add more simplification of address comparisons.
5565
5566 2015-07-28 Richard Biener <rguenther@suse.de>
5567
5568 * match.pd: Re-order two cases in comparison with max/min
5569 value simplification to make it apply for bools.
5570
5571 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5572
5573 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
5574 Handle simple SIGN_EXTEND or ZERO_EXTEND.
5575 (aarch64_rtx_costs): Properly strip extend or extract before
5576 passing down to rtx costs again.
5577
5578 2015-07-28 Nick Clifton <nickc@redhat.com>
5579
5580 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
5581 Optimizes the case where -mes0 is active and a constant symbolic
5582 address is used.
5583 * config/rl78/rl78-protos.h: Prototype the new function.
5584 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
5585
5586 2015-07-28 Tom de Vries <tom@codesourcery.com>
5587
5588 * tree-parloops.c (reduc_stmt_res): New function.
5589 (initialize_reductions, add_field_for_reduction)
5590 (create_phi_for_local_result, create_loads_for_reductions)
5591 (create_stores_for_reduction, build_new_reduction): Handle case that
5592 reduc_stmt is a phi.
5593 (gather_scalar_reductions): Allow double_reduc reductions.
5594
5595 2015-07-28 Richard Biener <rguenther@suse.de>
5596
5597 * fold-const.c (fold_comparison): Remove equality folding
5598 of decl addresses ...
5599 * match.pd: ... here and merge with existing pattern.
5600
5601 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
5602
5603 PR tree-optimization/66828
5604 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
5605 from int64_t to uint64_t.
5606
5607 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
5608
5609 * opts-common.c (read_cmdline_option): List DriverOnly enum values
5610 as valid only in the error message of the driver, not in the
5611 messages of the language compilers.
5612
5613 2015-07-27 Tom de Vries <tom@codesourcery.com>
5614
5615 * tree-parloops.c (gather_scalar_reductions): Simplify function
5616 structure.
5617
5618 2015-07-27 Marek Polacek <polacek@redhat.com>
5619
5620 * ipa-devirt.c (types_same_for_odr): Fix typo.
5621
5622 2015-07-27 Jason Merrill <jason@redhat.com>
5623
5624 PR debug/66468
5625 * dwarf2out.c (gen_inlined_subroutine_die): Check
5626 cgraph_function_possibly_inlined_p.
5627
5628 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
5629
5630 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
5631 Place integer variant first.
5632 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5633
5634 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
5635
5636 PR/63870
5637 * config/arm/arm-builtins.c (enum arm_builtins):
5638 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
5639 (ARM_BUILTIN_NEON_BASE): Rename macro to....
5640 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
5641 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
5642 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
5643
5644 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
5645
5646 PR/63870
5647 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
5648 Add qualifier_lane_index.
5649 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
5650 (arm_getlane_qualifiers): Use qualifier_lane_index.
5651 (arm_lanemac_qualifiers): Rename to...
5652 (arm_mac_n_qualifiers): ...this.
5653 (LANEMAC_QUALIFIERS): Rename to...
5654 (MAC_N_QUALIFIERS): ...this.
5655 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
5656 (arm_setlane_qualifiers): Use qualifier_lane_index.
5657 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
5658 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
5659 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
5660 (arm_expand_neon_builtin): Handle qualifier_lane_index.
5661
5662 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
5663 * config/arm/arm.c (bounds_check): Likewise, improve error message.
5664 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
5665 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
5666 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
5667 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
5668 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
5669 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
5670 qualifiers to TERNOP_IMM.
5671 (vdup_lane): Change qualifiers to GETLANE.
5672 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
5673 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
5674 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
5675 vqdmlsl_n): Change qualifiers to MAC_N.
5676
5677 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
5678 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
5679 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
5680 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
5681 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
5682 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
5683 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
5684 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
5685 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
5686 Remove call to neon_lane_bounds.
5687
5688 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
5689
5690 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
5691 Place integer variant first.
5692
5693 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
5694
5695 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
5696 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
5697 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
5698 for armv6kz targets.
5699 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
5700 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
5701 (FL_FOR_ARCH6ZK): Remove.
5702 (FL_FOR_ARCH6KZ): New.
5703 (arm_arch6zk): New declaration.
5704 * config/arm/arm-tables.opt: Regenerate.
5705 * config/arm/arm.c (arm_arch6kz): New.
5706 (arm_option_override): Set arm_arch6kz.
5707 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
5708 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
5709 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
5710
5711 2015-07-27 Marek Polacek <polacek@redhat.com>
5712
5713 PR c++/66555
5714 PR c/54979
5715 * doc/invoke.texi: Document -Wtautological-compare.
5716
5717 2015-07-27 Richard Biener <rguenther@suse.de>
5718
5719 * genmatch.c (decision_tree::gen_gimple): Split out large
5720 subtrees into separate functions.
5721 (decision_tree::gen_generic): Likewise.
5722
5723 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
5724
5725 * config/alpha/alpha.c: Use SUBREG_P predicate.
5726 * config/alpha/predicates.md: Ditto.
5727
5728 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
5729
5730 * config.host (s390*-*-*): Include driver-native.c only when
5731 building with s390* as host *and* target.
5732
5733 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
5734
5735 PR target/66930
5736 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
5737 T bit register modified_between_p check.
5738
5739 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5740
5741 * config/i386/i386.c: Use SUBREG_P predicate.
5742 * config/i386/i386.md: Ditto.
5743 * config/i386/sse.md: Ditto.
5744 * config/i386/predicates.md: Ditto.
5745
5746 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5747
5748 PR target/67004
5749 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
5750 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
5751
5752 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5753
5754 * Makefile.in: Remove use of TREEBROWSER.
5755 * config.in: Regenerated.
5756 * configure: Regenerated.
5757 * configure.ac: Remove definition of TREEBROWSER.
5758 * tree-browser.c: Removed.
5759 * tree-browser.def: Removed.
5760
5761 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5762
5763 * graphite-scop-detection.c: Include gimple-pretty-print.h.
5764 (stmt_simple_for_scop_p): Print when a stmt is not handled in
5765 Graphite.
5766 (scopdet_basic_block_info): Print when a loop or bb cannot be
5767 represented in Graphite.
5768
5769 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5770
5771 PR target/66648
5772 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
5773 execution guard when min_size is less than size_needed.
5774
5775 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5776
5777 * doc/install.texi: Document supported versions of ISL.
5778
5779 2015-07-25 Jeff Law <law@redhat.com>
5780
5781 Revert:
5782 PR lto/66752
5783 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5784 unable to find X NE 0 in the tables, return X as the simplified
5785 condition.
5786 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5787 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
5788 to VISISTED_BBS. */
5789 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5790 after removing the control flow statement and unnecessary edges.
5791
5792 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
5793
5794 Revert:
5795 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
5796
5797 PR rtl-optimization/64164
5798 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5799 * tree-ssa-copyrename.c: Removed.
5800 * opts.c (default_options_table): Drop -ftree-copyrename. Add
5801 -ftree-coalesce-vars.
5802 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5803 * common.opt (ftree-copyrename): Ignore.
5804 (ftree-coalesce-inlined-vars): Likewise.
5805 * doc/invoke.texi: Remove the ignored options above.
5806 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5807 * tree-ssa-coalesce.h: ... here.
5808 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5809 headers required by it.
5810 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5811 across variables when flag_tree_coalesce_vars. Check register
5812 use and promoted modes to allow coalescing. Moved to
5813 tree-ssa-coalesce.c.
5814 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5815 with its member functions to tree-ssa-coalesce.c.
5816 (var_map_base_init): Likewise. Renamed to
5817 compute_samebase_partition_bases.
5818 (partition_view_normal): Drop want_bases parameter.
5819 (partition_view_bitmap): Likewise.
5820 * tree-ssa-live.h: Adjust declarations.
5821 * tree-ssa-coalesce.c: Include explow.h.
5822 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5823 default defs at the entry point.
5824 (dump_part_var_map): New.
5825 (compute_optimized_partition_bases): New, called by...
5826 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5827 of compute_samebase_partition_bases. Adjust.
5828 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5829 * cfgexpand.c (leader_merge): New.
5830 (get_rtl_for_parm_ssa_default_def): New.
5831 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5832 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5833 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
5834 redundant MEM attr setting.
5835 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
5836 from...
5837 (expand_one_stack_var): ... this. New wrapper to check and
5838 skip already expanded SSA partitions.
5839 (record_alignment_for_reg_var): New, factored out of...
5840 (expand_one_var): ... this.
5841 (expand_one_ssa_partition): New.
5842 (adjust_one_expanded_partition_var): New.
5843 (expand_one_register_var): Check and skip already expanded SSA
5844 partitions.
5845 (expand_used_vars): Don't create DECLs for anonymous SSA
5846 names. Expand all SSA partitions, then adjust all SSA names.
5847 (pass::execute): Replace the loops that set
5848 SA.partition_to_pseudo from partition leaders and cleared
5849 DECL_RTL for multi-location variables, and that which used to
5850 rename vars and set attrs, with one that clears DECL_RTL and
5851 checks that PARMs and RESULTs default_defs match DECL_RTL.
5852 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5853 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5854 * explow.c (promote_ssa_mode): New.
5855 * explow.h (promote_ssa_mode): Declare.
5856 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5857 * function.c: Include cfgexpand.h.
5858 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5859 (use_register_for_parm_decl): Wrapper for the above to
5860 special-case the result_ptr.
5861 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5862 (split_complex_args): Take assign_parm_data_all argument.
5863 Pass it to rtl_for_parm. Set up rtl and context for split
5864 args.
5865 (assign_parms_augmented_arg_list): Adjust.
5866 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5867 multiple locations. Recognize split complex args.
5868 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5869 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
5870 (assign_parm_setup_block): Prefer SSA-assigned location.
5871 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
5872 if stack_parm is NULL.
5873 (assign_parm_setup_stack): Prefer SSA-assigned location.
5874 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
5875 rtl before testing for pointer bounds. Special-case result_ptr.
5876 (expand_function_start): Maybe reset DECL_RTL of result.
5877 Prefer SSA-assigned location for result and static chain.
5878 Factor out DECL_RESULT and SET_DECL_RTL.
5879 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5880 anonymous SSA names. Use promote_ssa_mode.
5881 (get_temp_reg): Likewise.
5882 (remove_ssa_form): Adjust.
5883 * stor-layout.c (layout_decl): Don't set mem attributes of
5884 non-MEMs.
5885 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5886 and get its reg_usage for reg invalidation.
5887 (compute_bb_dataflow): Pass it insn.
5888 (emit_notes_in_bb): Likewise.
5889
5890 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5891
5892 * config/i386/i386.c (ix86_va_start): Remove
5893 unneeded !TARGET_64BIT check.
5894 (ix86_gimplify_va_arg): Ditto.
5895
5896 2015-07-24 Tom de Vries <tom@codesourcery.com>
5897
5898 * graphite-sese-to-poly.c (build_poly_scop): Always call
5899 rewrite_commutative_reductions_out_of_ssa.
5900
5901 2015-07-24 Tom de Vries <tom@codesourcery.com>
5902
5903 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
5904 flag_associative_math to FLOAT_TYPE_P. Honour
5905 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
5906
5907 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5908
5909 PR c++/64079
5910 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
5911 and "%qD" in warning_at instead of "%q+D" in warning.
5912
5913 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
5914
5915 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
5916 (ix86_function_abi): Cleanup.
5917
5918 2015-07-24 Michael Darling <darlingm@gmail.com>
5919
5920 PR other/66259
5921 * acinclude.m4: Reflects renaming of configure.in to configure.ac
5922 * configure: Likewise
5923 * configure.ac: Likewise
5924 * doc/install.texi: Likewise
5925 * doc/tm.texi: Likewise
5926 * doc/tm.texi.in: Likewise
5927
5928 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5929
5930 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
5931 manually swapping values.
5932 * cse.c (fold_rtx): Likewise.
5933 * lra-eliminations.c (form_sum): Likewise.
5934
5935 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
5936
5937 PR target/64003
5938 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
5939 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
5940 (*jcc_1, *jcc_2, jump, simple_return_internal)
5941 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
5942 Set length_nobnd attribute instead of length attribute.
5943 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
5944 (length_nobnd): Remove attribute.
5945 (length): Remove length_nobnd processing.
5946
5947 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
5948
5949 * gimplify.c (omp_default_clause): New function. Reorganize flow
5950 for clarity. Broken out of ...
5951 (omp_notice_variable): ... here.
5952
5953 2015-07-24 Gary Funck <gary@intrepid.com>
5954
5955 PR middle-end/66984
5956 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
5957 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
5958
5959 2015-07-24 Tom de Vries <tom@codesourcery.com>
5960
5961 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
5962 exit-first loop transform.
5963
5964 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5965
5966 PR 66714
5967 * tree-cfg.c (struct replace_decls_d): New struct.
5968 (replace_block_vars_by_duplicates_1): New function.
5969 (replace_block_vars_by_duplicates): Use it to replace the decls
5970 in the value exprs by duplicates.
5971
5972 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
5973
5974 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
5975 -shared, -symbolic, -rdynamic.
5976
5977 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
5978
5979 PR target/65711
5980 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
5981 -dynamic-linker within %{!static %{!shared, and -rdynamic within
5982 %{!static.
5983
5984 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
5985
5986 PR ipa/66566
5987 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
5988 edge summary is available.
5989
5990 2015-07-24 Richard Biener <rguenther@suse.de>
5991
5992 * genmatch.c (struct dt_node): Add statistic fields.
5993 (dt_node::analyze): New method.
5994 (decision_tree::gen_gimple): Call analyze on the root node
5995 and print statistics to stderr.
5996 (decision_tree::gen_generic): Likewise.
5997
5998 2015-07-24 Richard Biener <rguenther@suse.de>
5999
6000 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
6001 against the highest or lowest possible integer ...
6002 * match.pd: ... as patterns here.
6003
6004 2015-07-24 Richard Biener <rguenther@suse.de>
6005
6006 * genmatch.c (struct capture_info): Add same_as field.
6007 (capture_info::capture_info): Initialize same_as.
6008 (capture_info::walk_match): Compute same_as.
6009 (capture_info::walk_result): Compute stuff for the leader.
6010 (capture_info::walk_c_expr): Likewise.
6011 (dt_simplify::gen_1): Only look at leaders when deciding
6012 to force no side-effects or emit side-effects of omitted operands.
6013
6014 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6015
6016 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
6017 reg note to the GPR -> FPR save instructions.
6018
6019 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6020
6021 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
6022 cheaper.
6023 (s390_expand_insv): Don't generate risbg pattern for constant zero
6024 sources.
6025 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
6026 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
6027 splitters.
6028
6029 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6030
6031 * config/s390/s390.c (s390_reorg): Clean up handling of processors
6032 with
6033 -mtune=
6034 (s390_issue_rate): Likewise.
6035 (s390_sched_reorder): Likewise.
6036 (s390_sched_variable_issue): Likewise.
6037 (s390_loop_unroll_adjust): Likewise.
6038 (s390_option_override): Likewise.
6039
6040 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6041
6042 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
6043 processor capabilities with -march=native.
6044 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
6045 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
6046 (S390_TARGET_BITS_STRING): Macro to simplify specs.
6047
6048 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6049
6050 * config/s390/s390.c (s390_issue_rate): Handle
6051 PROCESSOR_2094_Z9_EC.
6052 (s390_option_override): Likewise.
6053 (s390_adjust_priority): Likewise.
6054
6055 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6056
6057 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
6058 when cross compiling.
6059
6060 2015-07-24 Richard Biener <rguenther@suse.de>
6061
6062 * fold-const.c (maybe_canonicalize_comparison_1): Move
6063 A code CST canonicalization ...
6064 * match.pd: ... to a pattern here.
6065
6066 2015-07-24 Jiong Wang <jiong.wang@arm.com>
6067
6068 Revert:
6069 2015-07-22 Jiong Wang <jiong.wang@arm.com>
6070 PR target/63521
6071 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6072 (HONOR_REG_ALLOC_ORDER): Define.
6073
6074 2015-07-24 Richard Biener <rguenther@suse.de>
6075
6076 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
6077 * fold-const.c (fold_comparison): Move parameter does not
6078 alias &local simplification ...
6079 * match.pd: ... as a pattern here.
6080
6081 2015-07-24 Richard Biener <rguenther@suse.de>
6082
6083 * gimple-fold.c (replace_stmt_with_simplification): Special-case
6084 valueizing call operands.
6085 * gimple-match-head.c (maybe_push_res_to_seq): Take
6086 number of call arguments from ops array.
6087 (do_valueize): New function.
6088 (gimple_simplify): Return true if valueization changed
6089 any operand even if the result didn't simplify further.
6090
6091 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6092
6093 PR middle-end/25530
6094 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
6095
6096 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6097
6098 PR middle-end/25529
6099 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
6100
6101 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6102
6103 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
6104 instruction.
6105
6106 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6107
6108 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
6109 clean up.
6110
6111 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
6112
6113 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
6114 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
6115 targets here.
6116 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
6117 ms_va_list_type_node initialization.
6118
6119 2015-07-23 Jeff Law <law@redhat.com>
6120
6121 PR lto/66752
6122 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6123 unable to find X NE 0 in the tables, return X as the simplified
6124 condition.
6125 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6126 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6127 to VISISTED_BBS. */
6128 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6129 after removing the control flow statement and unnecessary edges.
6130
6131 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
6132
6133 * tree-pass.h (get_current_pass_name): Removed.
6134
6135 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
6136
6137 PR rtl-optimization/64164
6138 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6139 * tree-ssa-copyrename.c: Removed.
6140 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6141 -ftree-coalesce-vars.
6142 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6143 * common.opt (ftree-copyrename): Ignore.
6144 (ftree-coalesce-inlined-vars): Likewise.
6145 * doc/invoke.texi: Remove the ignored options above.
6146 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6147 * tree-ssa-coalesce.h: ... here.
6148 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6149 headers required by it.
6150 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6151 across variables when flag_tree_coalesce_vars. Check register
6152 use and promoted modes to allow coalescing. Moved to
6153 tree-ssa-coalesce.c.
6154 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6155 with its member functions to tree-ssa-coalesce.c.
6156 (var_map_base_init): Likewise. Renamed to
6157 compute_samebase_partition_bases.
6158 (partition_view_normal): Drop want_bases parameter.
6159 (partition_view_bitmap): Likewise.
6160 * tree-ssa-live.h: Adjust declarations.
6161 * tree-ssa-coalesce.c: Include explow.h.
6162 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6163 default defs at the entry point.
6164 (dump_part_var_map): New.
6165 (compute_optimized_partition_bases): New, called by...
6166 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6167 of compute_samebase_partition_bases. Adjust.
6168 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6169 * cfgexpand.c (leader_merge): New.
6170 (get_rtl_for_parm_ssa_default_def): New.
6171 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6172 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6173 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6174 redundant MEM attr setting.
6175 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6176 from...
6177 (expand_one_stack_var): ... this. New wrapper to check and
6178 skip already expanded SSA partitions.
6179 (record_alignment_for_reg_var): New, factored out of...
6180 (expand_one_var): ... this.
6181 (expand_one_ssa_partition): New.
6182 (adjust_one_expanded_partition_var): New.
6183 (expand_one_register_var): Check and skip already expanded SSA
6184 partitions.
6185 (expand_used_vars): Don't create DECLs for anonymous SSA
6186 names. Expand all SSA partitions, then adjust all SSA names.
6187 (pass::execute): Replace the loops that set
6188 SA.partition_to_pseudo from partition leaders and cleared
6189 DECL_RTL for multi-location variables, and that which used to
6190 rename vars and set attrs, with one that clears DECL_RTL and
6191 checks that PARMs and RESULTs default_defs match DECL_RTL.
6192 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6193 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6194 * explow.c (promote_ssa_mode): New.
6195 * explow.h (promote_ssa_mode): Declare.
6196 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6197 * function.c: Include cfgexpand.h.
6198 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6199 (use_register_for_parm_decl): Wrapper for the above to
6200 special-case the result_ptr.
6201 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6202 (split_complex_args): Take assign_parm_data_all argument.
6203 Pass it to rtl_for_parm. Set up rtl and context for split
6204 args.
6205 (assign_parms_augmented_arg_list): Adjust.
6206 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6207 multiple locations. Recognize split complex args.
6208 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6209 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6210 (assign_parm_setup_block): Prefer SSA-assigned location.
6211 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6212 if stack_parm is NULL.
6213 (assign_parm_setup_stack): Prefer SSA-assigned location.
6214 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6215 rtl before testing for pointer bounds. Special-case result_ptr.
6216 (expand_function_start): Maybe reset DECL_RTL of result.
6217 Prefer SSA-assigned location for result and static chain.
6218 Factor out DECL_RESULT and SET_DECL_RTL.
6219 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6220 anonymous SSA names. Use promote_ssa_mode.
6221 (get_temp_reg): Likewise.
6222 (remove_ssa_form): Adjust.
6223 * stor-layout.c (layout_decl): Don't set mem attributes of
6224 non-MEMs.
6225 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6226 and get its reg_usage for reg invalidation.
6227 (compute_bb_dataflow): Pass it insn.
6228 (emit_notes_in_bb): Likewise.
6229
6230 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
6231
6232 PR target/66217
6233 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
6234 prototype.
6235 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
6236 (rs6000_emit_2insn_and): Handle dot forms.
6237 * config/rs6000/rs6000.md (and<mode>3): Adjust.
6238 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
6239 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
6240
6241 2015-07-23 Richard Biener <rguenther@suse.de>
6242
6243 * generic-match-head.c: Include cgraph.h.
6244 * gimple-match-head.c: Likewise.
6245 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
6246 SSA names.
6247 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
6248 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
6249 pattern.
6250
6251 2015-07-23 Richard Biener <rguenther@suse.de>
6252
6253 * gimple-fold.c (fold_gimple_cond): Do not require folding
6254 results to pass valid_gimple_rhs_p.
6255 * tree-cfg.h (fold_cond_expr_cond): Remove.
6256 * tree-cfg.c (fold_cond_expr_cond): Likewise.
6257 (make_edges): Do not call it.
6258 * tree-inline.c (tree_function_versioning): Likewise.
6259
6260 2015-07-23 Tom de Vries <tom@codesourcery.com>
6261
6262 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
6263 vect_force_simple_reduction.
6264 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
6265 (vect_is_simple_reduction_1): Add and handle
6266 need_wrapping_integral_overflow parameter.
6267 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
6268 need_wrapping_integral_overflow parameter.
6269 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
6270 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
6271 decl.
6272
6273 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
6274
6275 PR tree-optimization/66926,66951
6276 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
6277 INNER_LOOP and fix up condition for renaming virtual operands.
6278
6279 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6280
6281 * combine.c (try_combine): Use std::swap instead of manually
6282 swapping.
6283
6284 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
6285
6286 * config/mips/i6400.md: New file.
6287 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
6288 (mips64r6): Likewise.
6289 (i6400): Define.
6290 * config/mips/mips-tables.opt: Regenerate.
6291 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
6292 (mips_issue_rate): Add support for i6400.
6293 (mips_multipass_dfa_lookahead): Likewise.
6294 * config/mips/mips.h (TUNE_I6400): Define.
6295 * config/mips/mips.md: Include i6400.md.
6296 (processor): Add i6400.
6297 * doc/invoke.texi (-march=@var{arch}): Add i6400.
6298
6299 2015-07-23 Richard Biener <rguenther@suse.de>
6300
6301 PR middle-end/66916
6302 * match.pd: Guard widen and sign-change comparison simplification
6303 with single_use.
6304
6305 2015-07-23 Richard Biener <rguenther@suse.de>
6306
6307 PR tree-optimization/66945
6308 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
6309 ::before_dom_children): Force the propagators idea of
6310 non-executable edges to materialize, not what the folder
6311 chooses.
6312
6313 2015-07-23 Richard Biener <rguenther@suse.de>
6314
6315 * gimple.h (gimple_cond_make_false): Use 0 != 0.
6316 (gimple_cond_make_true): Use 1 != 0.
6317
6318 2015-07-22 DJ Delorie <dj@redhat.com>
6319
6320 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
6321 slashes.
6322
6323 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
6324 (ashrhi3): Likewise.
6325 (lshrhi3): Likewise.
6326 (movhi): Take advantage of zero-extend to load small constants.
6327 (movpsi): Likewise.
6328 (and<mode>3): Likewise.
6329 (zero_extendqihi2): Likewise.
6330 (zero_extendqisi2): New.
6331 * config/msp430/constraints.md (N,O): New.
6332 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
6333
6334 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
6335
6336 PR target/66954
6337 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
6338 to enum feature_priority and feature_list.
6339 (fold_builtin_cpu): Add F_AES to enum processor_features
6340 and isa_names_table.
6341
6342 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
6343
6344 PR driver/66737
6345 * config/i386/linux-common.h (MPX_SPEC): Use linker option
6346 for 64bit target only.
6347
6348 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
6349
6350 * config/nvptx/nvptx.c: Expand some comments.
6351
6352 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
6353
6354 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
6355 (cortex_a53_advsimd): ...This.
6356
6357 2015-07-22 Richard Biener <rguenther@suse.de>
6358
6359 * genmatch.c (expr::gen_transform): Clarify error message
6360 and display location.
6361
6362 2015-07-22 Richard Biener <rguenther@suse.de>
6363
6364 * genmatch.c (struct operand): Add location member.
6365 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
6366 constructors.
6367 (struct simplify): Remove match_location and result_location
6368 members.
6369 (elsehwere): Adjust.
6370
6371 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
6372
6373 * config/mips/m5100.md: New file.
6374 * config/mips/mips-cpus.def (m5100, m5101): Define.
6375 * config/mips/mips-tables.opt: Regenerate.
6376 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
6377 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
6378 -march=m5101 to -mips32r5.
6379 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
6380 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
6381 !-msoft-float.
6382 * config/mips/mips.md: Include m5100.md.
6383 (processor): Add m5100.
6384 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
6385
6386 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
6387
6388 * config/mips/mips-cpus.def (interaptiv): Define.
6389 * config/mips/mips-tables.opt: Regenerate.
6390 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
6391 -mips32r2.
6392 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
6393 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
6394
6395 2015-07-22 Jiong Wang <jiong.wang@arm.com>
6396
6397 PR target/63521
6398 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6399 (HONOR_REG_ALLOC_ORDER): Define.
6400
6401 2015-07-22 Richard Biener <rguenther@suse.de>
6402
6403 PR tree-optimization/66952
6404 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
6405 blocks we end up executing unconditionally reset all SSA
6406 info such as range and alignment.
6407 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
6408 * tree-ssanames.c (reset_flow_sensitive_info): New function.
6409
6410 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
6411
6412 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
6413 typo in attribute.
6414
6415 2015-07-22 Richard Biener <rguenther@suse.de>
6416
6417 * genmatch.c (parser::parse_result): Properly handle
6418 match with result operands and conditions.
6419
6420 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
6421
6422 PR target/63870
6423 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6424 Add qualifier_struct_load_store_lane_index.
6425 (aarch64_types_loadstruct_lane_qualifiers): Use
6426 qualifier_struct_load_store_lane_index for lane index argument for
6427 last argument.
6428 (aarch64_types_storestruct_lane_qualifiers): Ditto.
6429 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6430 (aarch64_simd_expand_args): Add new argument describing mode of
6431 builtin. Check lane bounds for arguments with
6432 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6433 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
6434 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6435 (aarch64_simd_expand_builtin): Handle arguments with
6436 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
6437 aarch64_simd_expand_args.
6438 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
6439 vst[234]_lane with BUILTIN_VALLDIF.
6440 * config/aarch64/aarch64-simd.md:
6441 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
6442 endianness reversal on lane index.
6443 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
6444 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
6445 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
6446 (vec_store_lanesci_lane<mode>): Ditto.
6447 (vec_store_lanesxi_lane<mode>): Ditto.
6448 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
6449 reversal of lane index.
6450 (aarch64_ld3_lane<mode>): Ditto.
6451 (aarch64_ld4_lane<mode>): Ditto.
6452 (aarch64_st2_lane<mode>): Ditto.
6453 (aarch64_st3_lane<mode>): Ditto.
6454 (aarch64_st4_lane<mode>): Ditto.
6455 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
6456 to qmode. Add new mode parameter. Update uses.
6457 (__LD3_LANE_FUNC): Ditto.
6458 (__LD4_LANE_FUNC): Ditto.
6459 (__ST2_LANE_FUNC): Ditto.
6460 (__ST3_LANE_FUNC): Ditto.
6461 (__ST4_LANE_FUNC): Ditto.
6462
6463 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
6464
6465 * doc/invoke.texi (Language Independent Options): Rename node to
6466 Diagnostic Message Formatting Options.
6467
6468 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
6469
6470 PR ipa/66424.
6471 * lra-remat.c (operand_to_remat): Prevent using insns with input
6472 subregs processed separately by IRA.
6473
6474 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
6475
6476 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
6477 straight loops.
6478 (single_imm_use): Check for iterator node.
6479 (num_imm_uses): Likewise.
6480 * tree-ssa-operands.c (has_zero_uses_1): Delete.
6481 (single_imm_use_1): Check for iterator node.
6482
6483 2015-07-21 Mike Frysinger <vapier@gentoo.org>
6484 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6485
6486 * configure.ac: Add check for new options in isl-0.15.
6487 * config.in, configure: Rebuilt.
6488 * graphite-blocking.c: Include <isl/constraint.h>
6489 * graphite-interchange.c, graphite-poly.c: Likewise.
6490 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
6491 * graphite.c: Likewise.
6492 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
6493 <isl/union_set.h>.
6494 * graphite-dependences.c: Include <isl/constraint.h>.
6495 (max_number_of_out_dimensions): Returns isl_stat.
6496 (extend_schedule_1): Likewise
6497 (extend_schedule): Corresponding changes.
6498 * graphite-optimize-isl.c: Include <isl/constraint.h> and
6499 <isl/union_set.h>.
6500 (getSingleMap): Change return type of isl_stat.
6501 (optimize_isl): Conditionally use
6502 isl_options_set_schedule_serialize_sccs.
6503 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
6504 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
6505
6506 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
6507
6508 PR target/66956
6509 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
6510 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
6511
6512 2015-07-21 Richard Biener <rguenther@suse.de>
6513
6514 PR tree-optimization/66948
6515 * genmatch.c (capture_info::walk_match): Also recurse to
6516 captures. Properly compute expr state from captures of
6517 captures.
6518 * match.pd: Add single-use guards to
6519 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
6520
6521 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
6522
6523 * config/nvptx/mkoffload.c (process): Add static destructor call.
6524
6525 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6526
6527 PR middle-end/66915
6528 * match.pd (A - B -> A + (-B)): Don't allow folding
6529 when type if a fixed-point type.
6530
6531 2015-07-20 DJ Delorie <dj@redhat.com>
6532
6533 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
6534 (iorqi3_real): Likewise for set1.
6535
6536 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
6537
6538 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
6539 for !TARGET_64BIT.
6540
6541 2015-07-20 Aditya Kumar <hiraditya@msn.com>
6542
6543 * graphite-isl-ast-to-gimple.c:
6544 Refactor so that each function can access 'region'. This will help
6545 maintain a parameter rename_map within a region.
6546
6547 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6548
6549 * config/rs6000/rs6000.md (*lt0_disi): New.
6550
6551 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6552
6553 PR target/66217
6554 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
6555 "available letters" comment.
6556 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
6557 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
6558 and_2rld_operand): Delete.
6559 (and_operand): Adjust.
6560 (rotate_mask_operator): New.
6561 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
6562 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
6563 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
6564 extract_ME): Delete.
6565 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
6566 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
6567 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
6568 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
6569 rs6000_emit_2insn_and): New.
6570 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
6571 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
6572 includes_rldic_lshift_p, includes_rldicr_lshift_p,
6573 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
6574 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
6575 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
6576 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
6577 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
6578 rs6000_emit_2insn_and): New.
6579 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
6580 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
6581 handling.
6582 <NOT>: Don't fall through to next case.
6583 <AND>: Handle the various rotate-and-mask cases directly.
6584 <IOR>: Always cost as one insn.
6585 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
6586 (and<mode>3): Adjust expander for the new patterns.
6587 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
6588 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
6589 (*and<mode>3_imm_dot_shifted): New.
6590 (*and<mode>3_mask): Delete, rewrite as ...
6591 (and<mode>3_mask): ... New.
6592 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
6593 (andsi3_internal0_nomc): Delete.
6594 (*andsi3_internal6): Delete.
6595 (*and<mode>3_2insn): New.
6596 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
6597 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
6598 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
6599 *insvdi_internal3): Delete.
6600 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
6601 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
6602 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
6603 *ior<mode>_mask): New.
6604 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
6605 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
6606 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
6607 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
6608 Delete.
6609 (ashr<mode>3): Delete expander.
6610 (*ashr<mode>3): Rename to ...
6611 (ashr<mode>3): ... This.
6612 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
6613 (*rotldi3_internal4, *rotldi3_internal5 and split,
6614 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
6615 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
6616 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
6617 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
6618 (splitter for loading a mask): Adjust.
6619 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
6620
6621 2015-07-20 Marek Polacek <polacek@redhat.com>
6622
6623 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
6624 output_add_clobbers, output_added_clobbers_hard_reg_p,
6625 gen_rtx_scratch): Remove declarations.
6626
6627 2015-07-20 Marek Polacek <polacek@redhat.com>
6628
6629 PR c++/55095
6630 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
6631
6632 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6633
6634 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
6635 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
6636
6637 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6638
6639 * combine.c (combine_simplify_rtx): Move simplification step
6640 before various transformations/substitutions.
6641
6642 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
6643
6644 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
6645 (struct int_traits): Likewise.
6646
6647 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6648
6649 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
6650 function to vmsdbgout_function_decl.
6651
6652 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
6653
6654 PR target/66922
6655 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
6656 from misaligned positions.
6657 (ix86_expand_pinsr): Reject insertions to misaligned positions.
6658
6659 2015-07-18 Sebastian Pop <s.pop@samsung.com>
6660
6661 PR middle-end/46851
6662 PR middle-end/60340
6663 * Makefile.in: Removed omega.o.
6664 * common.opt: Document flag fcheck-data-deps as deprecated.
6665 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
6666 its associated params: omega-max-vars, omega-max-geqs,
6667 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
6668 omega-max-keys, omega-eliminate-redundant-constraints.
6669 * doc/loop.texi: Remove all the section on Omega.
6670 * graphite-blocking.c: Include missing params.h: it used to be
6671 included through tree-data-ref.h and omega.h.
6672 * graphite-isl-ast-to-gimple.c: Same.
6673 * graphite-optimize-isl.c: Same.
6674 * graphite-sese-to-poly.c: Same.
6675 * graphite.c: Same.
6676 * omega.c: Remove.
6677 * omega.h: Remove.
6678 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
6679 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
6680 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
6681 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
6682 * passes.def: Remove pass_check_data_deps.
6683 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
6684 (dump_conflict_function): Same.
6685 (dump_subscript): Same.
6686 (print_direction_vector): Same.
6687 (print_dir_vectors): Same.
6688 (print_lambda_vector): Same.
6689 (print_dist_vectors): Same.
6690 (dump_data_dependence_relation): Same.
6691 (dump_data_dependence_relations): Same.
6692 (dump_dist_dir_vectors): Same.
6693 (dump_ddrs): Same.
6694 (init_omega_eq_with_af): Removed.
6695 (omega_extract_distance_vectors): Removed.
6696 (omega_setup_subscript): Removed.
6697 (init_omega_for_ddr_1): Removed.
6698 (init_omega_for_ddr): Removed.
6699 (ddr_consistent_p): Removed.
6700 (compute_affine_dependence): Do not use omega to check data
6701 dependences.
6702 (compute_data_dependences_for_bb): Removed.
6703 (analyze_all_data_dependences): Removed.
6704 (tree_check_data_deps): Removed.
6705 * tree-data-ref.h: Do not include omega.h.
6706 (compute_data_dependences_for_bb): Removed.
6707 (tree_check_data_deps): Removed.
6708 * tree-ssa-loop.c (pass_check_data_deps): Removed.
6709 (make_pass_check_data_deps): Removed.
6710 * tree-ssa-phiopt.c: Include params.h.
6711 * tree-vect-data-refs.c: Same.
6712 * tree-vect-slp.c: Same.
6713
6714 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
6715
6716 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
6717 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
6718 (mem->fpreg splitters): Ditto.
6719 (general_operand->nonimmediate_operand splitter): Use explicit modes.
6720 Disable DFmode for TARGET_64BIT.
6721
6722 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
6723
6724 PR target/66906
6725 * config/i386/i386.c (ix86_expand_prologue): Replicate static
6726 chain on the stack.
6727
6728 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6729
6730 * config/nvptx/mkoffload.c (process): Constify host data.
6731 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
6732 Constify host data.
6733 (generate_host_descr_file): Likewise.
6734
6735 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
6736 Sebastian Pop <s.pop@samsung.com>
6737
6738 PR middle-end/61929
6739 * graphite-dependences.c (add_pdr_constraints): Renamed
6740 pdr->extent to pdr->subscript_sizes.
6741 * graphite-interchange.c (build_linearized_memory_access): Add
6742 back all gcc_assert's that the "isl_int to isl_val conversion"
6743 patch has removed. Refactored.
6744 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
6745 * graphite-poly.c (new_poly_dr): Same.
6746 (free_poly_dr): Same.
6747 * graphite-poly.h (struct poly_dr): Same.
6748 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
6749 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
6750 * graphite-scop-detection.h: Fix space.
6751 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
6752 back all gcc_assert's removed by a previous patch.
6753 (wrap): Remove the_isl_ctx global variable that the same patch has
6754 added.
6755 (build_loop_iteration_domains): Same.
6756 (add_param_constraints): Same.
6757 (pdr_add_data_dimensions): Same. Refactored.
6758 (build_poly_dr): Renamed extent to subscript_sizes.
6759
6760 2015-07-17 Marek Polacek <polacek@redhat.com>
6761
6762 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
6763 * match.pd: ... here.
6764
6765 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6766
6767 * config/nvptx/mkoffload.c (process): Constify target data.
6768 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
6769 Constify target data.
6770 (generate_target_offloadend_file): Likewise.
6771
6772 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
6773
6774 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
6775 to allow renaming of PHI arguments on edges incoming from outer
6776 loop header, add corresponding check before start PHI iterator.
6777 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
6778 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
6779 with true force_vectorize. Set-up dominator for outer loop too.
6780 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
6781 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
6782 was marked with force_vectorize and has restricted cfg.
6783 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
6784 inner loop.
6785 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
6786 do peeling for outer loops.
6787
6788 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
6789 Matthias Klose <doko@ubuntu.com>
6790
6791 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
6792 build-sysroot, sysroot from the `Miscenalleous configure options' to
6793 the `Directories' section and strip trailing `/' from with_sysroot.
6794 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
6795 * configure: Regenerated.
6796
6797 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
6798
6799 PR target/66824
6800 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
6801 (TARGET_HARD_DF_REGS): Ditto.
6802 (TARGET_HARD_XF_REGS): Ditto.
6803 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
6804 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
6805 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
6806 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
6807 (*movsf_internal): Add alternatives 16 and 17. Enable
6808 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
6809
6810 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
6811
6812 PR rtl-optimization/66891
6813 * calls.c (expand_call): Wrap precompute_register_parameters with
6814 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
6815
6816 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
6817
6818 * config/nvptx/mkoffload.c (process): Constify mapping variables.
6819 Define target data struct and initialize it.
6820
6821 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
6822
6823 PR rtl-optimization/66626
6824 * ira.h (emit-rtl.h): Include.
6825 (non_spilled_static_chain_regno_p): New.
6826 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
6827 unless it is non spilled static chain pseudo.
6828 (assign_hard_rego): Spill memory profitable allocno unless it is
6829 non spilled static chain pseudo.
6830 (allocno_spill_priority_compare): Put non spilled static chain
6831 pseudo at the end of sorted array.
6832 (improve_allocation): Do nothing if we have static chain and
6833 non-local goto.
6834 (allocno__priority_compare_func): Put non spilled static chain
6835 pseudo at the beginning of sorted array.
6836 (move_spill_restore): Ignore non spilled static chain pseudo.
6837 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
6838 to non spilled static chain pseudo.
6839 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
6840 pseudo at the beginning of sorted array.
6841 (spill_for): Spill non spilled static chain pseudo last.
6842 * lra-constraints.c (lra_constraints): Remove static chain pseudo
6843 check for equivalence.
6844
6845 2015-07-16 Martin Liska <mliska@suse.cz>
6846
6847 PR ipa/66896.
6848 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
6849 dst_ctx if it does not exist.
6850
6851 2015-07-16 Martin Liska <mliska@suse.cz>
6852
6853 * hash-set.h (remove): New function.
6854 (iterator): New iteration class for hash_set.
6855
6856 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6857
6858 * genattrtab.c (make_canonical): Add a file_location parameter.
6859 Use fatal_at rather than fatal.
6860 (get_attr_value): Likewise. Update call to make_canonical.
6861 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
6862 (make_internal_attr): Update calls accordingly.
6863
6864 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6865
6866 * read-md.h (message_with_line, error_with_line): Delete.
6867 * read-md.c (message_with_line, error_with_line): Delete.
6868 * gensupport.h: Include read-md.h.
6869 (md_rtx_info): New structure.
6870 (read_md_rtx): Use it. Return a bool success value.
6871 * gensupport.c (read_md_rtx): Likewise.
6872 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
6873 (main): Update after interface changes.
6874 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
6875 (main): Update after interface changes.
6876 * genattrtab.c (insn_code_number): Delete.
6877 (optimize_attrs): Add a max_insn_code parameter and use it instead
6878 of insn_code_number.
6879 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
6880 Use *_at rather than *_with_line functions.
6881 (gen_insn): Likewise.
6882 (gen_delay): Likewise.
6883 (gen_insn_reserv): Likewise.
6884 (gen_bypass): Take an md_rtx_info rather than an rtx.
6885 (main): Update after interface changes. Use a local max_insn_code
6886 variable instead of insn_code_number.
6887 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
6888 an rtx. Use fatal_at rather than fatal.
6889 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
6890 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
6891 (gen_absence_set, gen_final_absence_set, gen_automaton)
6892 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
6893 (main): Update after interface changes.
6894 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
6895 and code number.
6896 (main): Update after interface changes.
6897 * genconditions.c (main): Use new read_md_rtx interface.
6898 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
6899 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
6900 (main): Update after interface changes.
6901 * genemit.c (insn_code_number, insn_index_number): Delete.
6902 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6903 Use fatal_at rather than fatal.
6904 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
6905 rather than fatal.
6906 (gen_split): Likewise.
6907 (main): Update after interface changes.
6908 * genextract.c (line_no): Delete.
6909 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6910 Update call to walk_rtx.
6911 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
6912 rather than message_with_line.
6913 (walk_rtx): Add an md_rtx_info argument. Update call to
6914 VEC_safe_set_locstr.
6915 (main): Update after interface changes.
6916 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
6917 and lineno. Use error_at rather than separate message_with_line
6918 calls and have_error assignments.
6919 (main): Update after interface changes.
6920 * genmddump.c (main): Use new read_md_rtx interface.
6921 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
6922 (main): Update after interface changes.
6923 * genoutput.c (next_code_number): Delete.
6924 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6925 (gen_peephole, gen_expand, gen_split): Likewise.
6926 (note_constraint): Likewise. Use *_at rather than *_with_line
6927 functions.
6928 (main): Update after interface changes.
6929 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
6930 rtx and lineno.
6931 (main): Update after interface changes.
6932 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
6933 than an rtx and lineno.
6934 (process_define_constraint): Likewise.
6935 (process_define_register_constraint): Likewise.
6936 (main): Update after interface changes.
6937 * genrecog.c (next_insn_code, pattern_lineno): Delete.
6938 (validate_pattern): Replace top-level rtx with an md_rtx_info.
6939 Use *_at rather than *_with_line functions.
6940 (match_pattern_2): Likewise.
6941 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
6942 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
6943 Use *_at rather than *_with_line functions.
6944 * gentarget-def.c (add_insn): New function.
6945 (main): Use it. Use new read_md_rtx interface.
6946
6947 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6948
6949 * gensupport.h (compute_test_codes): Take a file_location rather
6950 than a line number.
6951 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
6952 rather than *_with_line functions.
6953 (process_define_predicate): Update call to compute_test_codes.
6954 * genpreds.c (validate_exp): Take a file_location rather than a
6955 line number. Use *_at functions rather than *_with_line functions.
6956 (process_define_predicate): Update call to validate_exp.
6957 (constraint_data): Replace lineno field with a file_location.
6958 (add_constraint): Take a file_location rather than a line number.
6959 Use *_at functions rather than *_with_line functions. Fix error
6960 message for address constraints. Update after changes to
6961 validate_exp, constraint_data and compute_test_codes.
6962 (process_define_constraint): Update accordingly.
6963 (process_define_register_constraint): Likewise.
6964
6965 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6966
6967 * genoutput.c (data): Use a file_location to record the source
6968 position.
6969 (nothing): Delete.
6970 (idata, idata_end): Remove initialization.
6971 (constraint_data): Replace lineno with a file_location.
6972 (output_insn_data): Update after changes to data.
6973 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
6974 (scan_operands): Likewise, using *_at rather than *_with_line
6975 functions.
6976 (process_template): Likewise.
6977 (validate_insn_alternatives): Likewise.
6978 (validate_insn_operands): Likewise.
6979 (validate_optab_operands): Likewise.
6980 (init_insn_for_nothing): Initialize idata and idata_end.
6981 (note_constraint): Update after changes to constraint_data,
6982 using at rather than with_line functions.
6983 (mdep_constraint_len): Take a file_location rather than a
6984 line number. Use at rather than with_line functions.
6985
6986 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6987
6988 * read-md.h (fatal_at): Declare.
6989 * read-md.c (fatal_at): New function.
6990 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
6991 to record the source position.
6992 (check_attr_test): Take a file_location instead of a line number.
6993 Use fatal_at instead of fatal.
6994 (check_attr_value): Update after above changes, using "at"
6995 rather than "with_line" reporting functions.
6996 (convert_set_attr_alternative): Likewise.
6997 (gen_attr): Likewise.
6998 (check_defs): Likewise. Don't assign to read_md_filename.
6999 (gen_insn): Update initialization after above changes.
7000 (gen_delay): Likewise.
7001 (write_insn_cases): Print the filename for a define_peephole.
7002 (gen_insn_reserv): Take a line number as argument and update
7003 the call to check_attr_test.
7004 (main): Pass a line number to gen_insn_reserv.
7005
7006 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7007
7008 * read-md.h (file_location): New structure.
7009 (directive_handler_t): Take a file_location rather than a line number.
7010 (message_at, error_at): Declare.
7011 (read_skip_construct): Delete.
7012 * read-md.c (message_with_line_1): Replace with...
7013 (message_at_1): ...this new function.
7014 (message_at, error_at): New functions.
7015 (message_with_line, error_with_line): Update to use message_at_1.
7016 (handle_enum): Take a file_location rather than a line number
7017 and use error_at for error reporting.
7018 (handle_include): Likewise.
7019 (read_skip_construct): Likewise. Make static.
7020 (handle_file): Update after above changes. Pass a file_location
7021 rather than a line number to handle_directive.
7022 * gensupport.c (queue_elem): Replace separate filename and lineno
7023 with a file_location.
7024 (queue_pattern): Replace filename and lineno arguments with a
7025 file_location. Update after change to queue_elem.
7026 (process_define_predicate): Replace lineno argument with a
7027 file_location and use error_at for error reporting. Update
7028 after above changes.
7029 (process_rtx): Likewise.
7030 (subst_pattern_match): Likewise.
7031 (get_alternatives_number): Likewise.
7032 (alter_predicate_for_insn): Likewise.
7033 (rtx_handle_directive): Likewise.
7034 (is_predicable): Update after above changes, using error_at rather
7035 than error_with_line.
7036 (has_subst_attribute): Likewise.
7037 (identify_predicable_attribute): Likewise.
7038 (alter_attrs_for_subst_insn): Likewise.
7039 (process_one_cond_exec): Likewise.
7040 (process_substs_on_one_elem): Likewise.
7041 (process_define_subst): Likewise.
7042 (check_define_attr_duplicates): Likewise.
7043 (read_md_rtx): Update after change to queue_elem.
7044
7045 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7046
7047 * genoutput.c (next_index_number): Delete.
7048 (data): Remove index_number.
7049 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
7050 (main): Remove manipulation of next_index_number.
7051
7052 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7053
7054 * genattrtab.c (check_attr_value): Remove handling of null attrs.
7055 (make_canonical): Likewise.
7056
7057 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
7058
7059 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
7060 instead of adjust_address_nv.
7061 (restore_stack_nonlocal): Likewise.
7062 (nonlocal_goto): Likewise.
7063
7064 2015-07-16 Tom de Vries <tom@codesourcery.com>
7065
7066 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
7067 not have a corresponding loop header phi.
7068
7069 2015-07-16 Tom de Vries <tom@codesourcery.com>
7070
7071 * tree-parloops.c (create_loads_for_reductions): Handle case that
7072 reduction is unused.
7073
7074 2015-07-16 Richard Biener <rguenther@suse.de>
7075
7076 PR tree-optimization/66894
7077 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
7078 about deriving NE_EXPR from truncated values.
7079
7080 2015-07-16 Martin Liska <mliska@suse.cz>
7081
7082 * alloc-pool.h
7083 (object_allocator): Add new class.
7084 (pool_allocator::initialize): Use the underlying class.
7085 (pool_allocator::allocate): Likewise.
7086 (pool_allocator::remove): Likewise.
7087 (operator new): A new generic allocator.
7088 * asan.c (struct asan_mem_ref): Remove unused members.
7089 (asan_mem_ref_new): Replace new operator with
7090 object_allocator::allocate.
7091 (free_mem_ref_resources): Change deallocation.
7092 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
7093 with object_allocator.
7094 * config/sh/sh.c (add_constant): Replace new operator with
7095 object_allocator::allocate.
7096 (sh_reorg): Change call to a release method.
7097 * cselib.c (struct elt_list): Remove unused members.
7098 (new_elt_list): Replace new operator with
7099 object_allocator::allocate.
7100 (new_elt_loc_list): Likewise.
7101 (new_cselib_val): Likewise.
7102 (unchain_one_elt_list): Change delete operator with remove method.
7103 (unchain_one_elt_loc_list): Likewise.
7104 (unchain_one_value): Likewise.
7105 (cselib_finish): Release newly added static allocators.
7106 * cselib.h (struct cselib_val): Remove unused members.
7107 (struct elt_loc_list): Likewise.
7108 * df-problems.c (df_chain_alloc): Replace pool_allocator with
7109 object_allocator.
7110 * df-scan.c (struct df_scan_problem_data): Likewise.
7111 (df_scan_alloc): Likewise.
7112 * df.h (struct dataflow): Likewise.
7113 * dse.c (struct read_info_type): Likewise.
7114 (struct insn_info_type): Likewise.
7115 (struct dse_bb_info_type): Likewise.
7116 (struct group_info): Likewise.
7117 (struct deferred_change): Likewise.
7118 (get_group_info): Likewise.
7119 (delete_dead_store_insn): Likewise.
7120 (free_read_records): Likewise.
7121 (replace_read): Likewise.
7122 (check_mem_read_rtx): Likewise.
7123 (scan_insn): Likewise.
7124 (dse_step1): Likewise.
7125 (dse_step7): Likewise.
7126 * et-forest.c (struct et_occ): Remove unused members.
7127 (et_new_occ): Use allocate instead of new operator.
7128 (et_new_tree): Likewise.
7129 (et_free_tree): Call release method explicitly.
7130 (et_free_tree_force): Likewise.
7131 (et_free_pools): Likewise.
7132 (et_split): Use remove instead of delete operator.
7133 * et-forest.h (struct et_node): Remove unused members.
7134 * ipa-cp.c: Change pool_allocator to object_allocator.
7135 * ipa-inline-analysis.c: Likewise.
7136 * ipa-profile.c: Likewise.
7137 * ipa-prop.c: Likewise.
7138 * ipa-prop.h: Likewise.
7139 * ira-build.c (initiate_cost_vectors): Cast return value.
7140 (ira_allocate_cost_vector): Likewise.
7141 * ira-color.c (struct update_cost_record): Remove unused members.
7142 * lra-int.h (struct lra_live_range): Likewise.
7143 (struct lra_copy): Likewise.
7144 (struct lra_insn_reg): Likewise.
7145 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
7146 * lra.c (new_insn_reg): Replace new operator with allocate method.
7147 (free_insn_regs): Same for operator delete.
7148 (finish_insn_regs): Release new static allocator.
7149 (finish_insn_recog_data): Likewise.
7150 (lra_free_copies): Replace delete operator with remove method.
7151 (lra_create_copy): Replace operator new with allocate method.
7152 (invalidate_insn_data_regno_info): Same for remove method.
7153 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
7154 (free_debug_insn_changes): Replace delete operator with remove method.
7155 (replace_oldest_value_reg): Replace operator new with allocate method.
7156 (pass_cprop_hardreg::execute): Release new static variable.
7157 * sched-deps.c (sched_deps_init): Change pool_allocator to
7158 object_allocator.
7159 * sel-sched-ir.c: Likewise.
7160 * sel-sched-ir.h: Likewise.
7161 * stmt.c (expand_case): Likewise.
7162 (expand_sjlj_dispatch_table): Likewise.
7163 * tree-sra.c (struct access): Remove unused members.
7164 (struct assign_link): Likewise.
7165 (sra_deinitialize): Release newly added static pools.
7166 (create_access_1):Replace operator new with allocate method.
7167 (build_accesses_from_assign): Likewise.
7168 (create_artificial_child_access): Likewise.
7169 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
7170 pool_allocator to object_allocator.
7171 * tree-ssa-pre.c: Likewise.
7172 * tree-ssa-reassoc.c: Likewise.
7173 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7174 * tree-ssa-strlen.c: Likewise.
7175 * tree-ssa-structalias.c: Likewise.
7176 * var-tracking.c (onepart_pool_allocate): New function.
7177 (unshare_variable): Use the newly added function.
7178 (variable_merge_over_cur): Likewise.
7179 (variable_from_dropped): Likewise.
7180 (variable_was_changed): Likewise.
7181 (set_slot_part): Likewise.
7182 (emit_notes_for_differences_1): Likewise.
7183 (vt_finalize): Release newly added static pools.
7184
7185 2015-07-16 Martin Jambor <mjambor@suse.cz>
7186
7187 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
7188 all uses. Fix two typos in its general comment.
7189 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
7190
7191 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
7192
7193 * config/i386/linux-common.h (LINK_MPX): New.
7194 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
7195 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
7196 indicating '-z bndplt' support by linker.
7197 * configure: Regenerate.
7198 * config.in: Regenerate.
7199
7200 2015-07-16 Richard Biener <rguenther@suse.de>
7201
7202 * fold-const.c (fold_widened_comparison): Remove.
7203 (fold_sign_changed_comparison): Likewise.
7204 (fold_comparison): Move widened and sign-changed comparison
7205 simplification ...
7206 * match.pd: ... to patterns here.
7207 * generic-match-head.c: Include target.h.
7208 * gimple-match-head.c: Likewise.
7209
7210 2015-07-16 Richard Biener <rguenther@suse.de>
7211
7212 * tree-ssa-dom.c (dom_valueize): New function.
7213 (record_temporary_equivalences): Also record equivalences
7214 for dominating stmts that have uses of equivalences we are
7215 about to record.
7216
7217 2015-07-16 Bin Cheng <bin.cheng@arm.com>
7218
7219 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
7220 add_autoinc_candidates.
7221 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
7222 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
7223 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
7224 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
7225 Call new function.
7226 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
7227 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
7228 Remove parameter struct iv*. Call add_autoinc_candidates here.
7229 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
7230 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
7231 Call new function.
7232 (find_iv_candidates): Call new functions.
7233
7234 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
7235
7236 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
7237 uninitialized-variable warning.
7238
7239 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
7240
7241 PR target/65249
7242 * config/sh/sh.md (movdi): Split simple reg move to two movsi
7243 when the destination is R0.
7244
7245 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
7246
7247 PR target/66866
7248 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
7249 * config/i386/i386.c (ix86_expand_pextr): New function.
7250 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
7251 for non-lowpart subregs.
7252 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
7253 (insv<mode>): Use SWI248 mode iterator.
7254 (insv<mode>_1): Ditto.
7255
7256 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7257 Sebastian Pop <s.pop@samsung.com>
7258
7259 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
7260 iterator to use_stmt.
7261
7262 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7263 Sebastian Pop <s.pop@samsung.com>
7264
7265 * graphite-scop-detection.c (build_scops_1): Discard scops for
7266 which entry==exit.
7267
7268 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7269 Sebastian Pop <s.pop@samsung.com>
7270
7271 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
7272 case of a return statement in scop.
7273
7274 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7275 Sebastian Pop <s.pop@samsung.com>
7276
7277 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
7278 INTEGER_TYPE parameters.
7279 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
7280 VECTOR_CST in scan_tree_for_params.
7281 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
7282
7283 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
7284
7285 * gimple-pretty-print.h: Don't include pretty-print.h.
7286 * tree-streamer.h: Don't include lto-streamer.h.
7287 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
7288 * gimple-streamer-in.c: Remove redundant includes.
7289 * gimple-streamer-out.c: Likewise.
7290 * ipa-devirt.c: Likewise.
7291 * ipa-icf.c: Likewise.
7292 * ipa-inline-analysis.c: Likewise.
7293 * ipa-polymorphic-call.c: Likewise.
7294 * ipa-profile.c: Likewise.
7295 * ipa-prop.c: Likewise.
7296 * ipa-pure-const.c: Likewise.
7297 * lto-cgraph.c: Likewise.
7298 * lto-streamer-in.c: Likewise.
7299 * lto-streamer-out.c: Likewise.
7300 * lto-streamer.c: Likewise.
7301 * tree-streamer-in.c: Likewise.
7302 * tree-streamer-out.c: Likewise.
7303 * tree-streamer.c: Likewise.
7304
7305 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
7306
7307 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
7308 include input.h.
7309 * opts.c: Remove multiline #include comment.
7310
7311 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
7312
7313 * config/nvptx/mkoffload.c (process): Add C++ protection to
7314 emitted code.
7315
7316 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7317
7318 PR target/66854
7319 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
7320 null before IEEE 128-bit floating point support patch.
7321
7322 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7323
7324 * simplify-rtx.c (simplify_ternary_operation): Add simplification
7325 for (!c) != {0,...,0} ? a : b for vector modes.
7326
7327 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
7328 Martin Jambor <mjambor@suse.cz>
7329
7330 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
7331 struct func_body_info* instead of struct ipa_node_params*, expecting
7332 fbi->info to be filled in. Replace throughout. Adjust call to
7333 ipa_load_from_parm_agg.
7334 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
7335 instead of struct ipa_node_params*. Adjust calls to other functions
7336 so that they pass either fbi or fbi->info.
7337 (set_switch_stmt_execution_predicate): Likewise.
7338 (will_be_nonconstant_predicate): Likewise.
7339 (compute_bb_predicates): Likewise.
7340 (estimate_function_body_sizes): Move asserts earlier. Fill in
7341 struct func_body_info, replace parms_info with fbi.info. Adjust
7342 calls to functions that now accept struct func_body_info.
7343 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
7344 (struct func_body_info): Likewise.
7345 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
7346 remove static. Adjust callers.
7347 (ipa_load_from_parm_agg): Remove.
7348 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
7349 (func_body_info): Likewise.
7350 (ipa_load_from_parm_agg): Adjust prototype.
7351
7352 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7353
7354 * gensupport.c (rtx_handle_directive): Adjust.
7355 * read-rtl.c (apply_iterators): Take vector to add rtxs to
7356 instead of expr list rtx.
7357 (add_define_attr_for_define_subst): Likewise.
7358 (add_define_subst_attr): Likewise.
7359 (read_subst_mapping): Likewise.
7360 (read_rtx): Likewise.
7361 * rtl.h (read_rtx): Adjust.
7362
7363 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7364
7365 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
7366
7367 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7368
7369 PR target/58066
7370 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
7371 (*tls_local_dynamic_base_64_<mode>): Ditto.
7372 (*tls_local_dynamic_base_64_largepic): Ditto.
7373 (tls_global_dynamic_64_<mode>): Update expander pattern.
7374 (tls_local_dynamic_base_64_<mode>): Ditto.
7375
7376 2015-07-15 Richard Biener <rguenther@suse.de>
7377
7378 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
7379 and bool_var == 1 -> bool_var simplifications ...
7380 * match.pd: ... to patterns here. Factor out negate_expr_p
7381 cases from the A - B -> A + (-B) patterns as negate_expr_p
7382 predicate and add a -(A + B) -> (-B) - A pattern.
7383
7384 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
7385
7386 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
7387
7388 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
7389 Robert Suchanek <robert.suchanek@imgtec.com>
7390
7391 * config/mips/mips.c (mips_int_mask): New enum.
7392 (mips_shadow_set): Likewise.
7393 (int_mask): New variable.
7394 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
7395 (machine_function): Add int_mask and use_shadow_register_set.
7396 (mips_attribute_table): Add attribute handlers for interrupt and
7397 use_shadow_register_set.
7398 (mips_interrupt_mask): New static function.
7399 (mips_handle_interrupt_attr): Likewise.
7400 (mips_handle_use_shadow_register_set_attr): Likewise.
7401 (mips_use_shadow_register_set): Change return type to enum
7402 mips_shadow_set. Add argument handling for use_shadow_register_set
7403 attribute.
7404 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
7405 compare with mips_shadow_set enum.
7406 (mips_compute_frame_info): Add interrupt mask and
7407 use_shadow_register_set to per-function information structure.
7408 Add a stack slot for EPC unconditionally.
7409 (mips_expand_prologue): Compare use_shadow_register_set value
7410 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
7411 masked interrupt register but in EIC mode use K0 and save Cause in K0.
7412 EPC saved and restored unconditionally. Use PMODE_INSN macro when
7413 copying the stack pointer from the shadow register set.
7414 * config/mips/mips.h (SR_IM0): New define.
7415 * config/mips/mips.md (mips_rdpgpr): Rename to...
7416 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
7417 * doc/extend.texi (Declaring Attributes of Functions): Document
7418 optional arguments for interrupt and use_shadow_register_set
7419 attributes.
7420
7421 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
7422
7423 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
7424 interrupt attribute.
7425 (mips_expand_prologue): Disable the floating point unit in an ISR.
7426 * config/mips/mips.h (SR_COP1): New define.
7427
7428 2015-07-15 Richard Biener <rguenther@suse.de>
7429
7430 * genmatch.c (parser::peek, parser::peek_ident): Add argument
7431 to tell how many tokens to peek ahead (default 1).
7432 (parser::eat_token, parser::eat_ident): Return token consumed.
7433 (parser::parse_result): Parse new switch statement.
7434 * match.pd: Use case statements where appropriate.
7435
7436 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7437
7438 PR rtl-optimization/58066
7439 * calls.c (expand_call): Precompute register parameters before stack
7440 alignment is performed.
7441
7442 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7443
7444 PR rtl-optimization/66838
7445 * postreload.c (reload_cse_move2add): Also process
7446 CALL_INSN_FUNCTION_USAGE when resetting information of
7447 call-clobbered registers.
7448
7449 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7450 Cesar Philippidis <cesar@codesourcery.com>
7451 Chung-Lin Tang <cltang@codesourcery.com>
7452
7453 * config/nios2/constraints.md (U, v): New constraints.
7454 * config/nios2/predicates.md (rdprs_dcache_operand): New.
7455 (ldstex_memory_operand): New.
7456 * config/nios2/sync.md: New file.
7457 * config/nios2/nios2.md (unspecv): Add new builtin function
7458 UNSPECV codes.
7459 (rdprs, flushd, flushda, wrpie, eni): New patterns.
7460 (top-level): Include sync.md.
7461 * config/nios2/nios2.c (N2_FTYPES): Add function types for
7462 new builtins.
7463 (N2_BUILTINS): Add arch field setting, add new builtins.
7464 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
7465 for arch field.
7466 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
7467 Also handle ldex/stex/ldsex/stsex builtins.
7468 (nios2_expand_rdprs_builtin): New function.
7469 (nios2_expand_cache_builtin): New function.
7470 (nios2_expand_wrpie_builtin): New function.
7471 (nios2_expand_eni_builtin): New function.
7472 (nios2_expand_builtin): Add arch field handling and new builtin
7473 cases.
7474 * doc/extend.texi (Altera Nios II Built-in Functions): Document
7475 new builtins.
7476 * doc/md.texi (Machine Constraints): Document U and v constraints.
7477
7478 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7479 Cesar Philippidis <cesar@codesourcery.com>
7480 Chung-Lin Tang <cltang@codesourcery.com>
7481
7482 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
7483 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
7484 callee_save_reg_size and uses_anonymous_args fields.
7485 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
7486 (nios2_create_cfa_notes): New function.
7487 (nios2_adjust_stack): New function for adjusting stack.
7488 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
7489 Use nios2_adjust_stack.
7490 (nios2_expand_epilogue): Likewise.
7491 (nios2_expand_return): New function.
7492 (nios2_can_use_return_insn): Update for CDX pop.n usage.
7493 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
7494 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
7495 * config/nios2/nios2.md (return): Use nios2_expand_return.
7496
7497 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7498 Cesar Philippidis <cesar@codesourcery.com>
7499 Chung-Lin Tang <cltang@codesourcery.com>
7500
7501 * config/nios2/predicates.md (pop_operation): New.
7502 (ldwm_operation, stwm_operation): New.
7503 (nios2_hard_register_operand): New.
7504 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
7505 (ldstwm_operation_p): Declare.
7506 (gen_ldstwm_peep): Declare.
7507 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
7508 (base_reg_adjustment_p): New.
7509 (pop_operation_p): New.
7510 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
7511 (nios2_ldstwm_regset_p): New.
7512 (ldstwm_operation_p): New.
7513 (gen_ldst): New.
7514 (nios2_ldst_parallel): New.
7515 (struct ldswm_operand): Declare.
7516 (compare_ldstwm_operands): New.
7517 (can_use_cdx_ldstw): New.
7518 (gen_ldstwm_peep): New.
7519 * config/nios2/nios2-ldstwm.sml: New.
7520 * config/nios2/nios2.md: Include ldstwm.md.
7521 * config/nios2/ldstwm.md: Generated.
7522
7523 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7524 Cesar Philippidis <cesar@codesourcery.com>
7525 Chung-Lin Tang <cltang@codesourcery.com>
7526
7527 * config/nios2/nios2.h (LABEL_ALIGN): Define.
7528 (REG_ALLOC_ORDER): Define.
7529 (ADJUST_REG_ALLOC_ORDER): Define.
7530 (HONOR_REG_ALLOC_ORDER): Define.
7531 (CDX_REG_P): Define.
7532 (ANDCLEAR_INT): Define.
7533 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
7534 (nios2_label_align): Declare.
7535 (nios2_cdx_narrow_form_p): Declare.
7536 (nios2_adjust_reg_alloc_order): Declare.
7537 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
7538 operation.
7539 (nios2_large_unspec_reloc_p): New function, split from...
7540 (nios2_legitimate_pic_operand_p): ...here.
7541 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
7542 (nios2_print_operand_punct_valid_p): New.
7543 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
7544 (split_mem_address): New.
7545 (split_alu_insn): New.
7546 (cdxreg): New.
7547 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
7548 (enum nios2_add_insn_kind): New.
7549 (nios2_add_insn_names, nios2_add_insn_narrow): New.
7550 (nios2_add_insn_classify): New.
7551 (nios2_add_insn_asm): New.
7552 (nios2_cdx_narrow_form_p): New.
7553 (label_align, min_labelno, max_labelno): New.
7554 (nios2_reorg): New.
7555 (nios2_label_align): New.
7556 (nios2_adjust_reg_alloc_order): New.
7557 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7558 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7559 * config/nios2/constraints.md (P): New constraint.
7560 * config/nios2/predicates.md (const_and_operand): New.
7561 (and_operand): New.
7562 (stack_memory_operand): New.
7563 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
7564 (length): Update to use nios2_cdx_narrow_form_p().
7565 (type): Add new insn type values.
7566 (control, alu, st, ld, shift): Update insn reservations with
7567 new insn type values.
7568 (*high, *lo_sum): Define new insn patterns for constant generation.
7569 (movqi_internal, movhi_internal, movsi_internal): Reduce
7570 alternatives, update asm template to handle CDX variants, update
7571 type attributes.
7572 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
7573 template, update type attributes.
7574 (extendhisi2, extendqi<mode>2): Likewise.
7575 (addsi3): Change to use function for asm string.
7576 (subsi3): Add CDX notation to asm template, update type attributes.
7577 (negsi3, one_cmplsi3): Likewise.
7578 (andsi3): New pattern, specialized from logical patterns.
7579 (<code>si3): Remove and case, combine alternatives, update asm
7580 template.
7581 (<shift_op>si3): Add CDX notation, update type attributes.
7582 (rotrsi3): Update type attribute.
7583 (*merge, extzv, insv): New insn patterns.
7584 (return): Change to define_expand.
7585 (simple_return): Add CDX notation, update type attributes.
7586 (indirect_jump): Add CDX notation.
7587 (jump): Update asm cases, update length attribute expression.
7588 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
7589 (nios2_cbranch): Update asm cases and length attribute expression
7590 to handle CDX variants.
7591 (nios2_cmp<code>): Update asm template.
7592 (nop): Add CDX notation, update type attributes.
7593 (trap): Add CDX notation.
7594 (ctrapsi4): Update asm cases and length attribute expression to
7595 handle CDX variant.
7596 * doc/md.texi (Machine Constraints): Document P constraint.
7597
7598 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7599 Cesar Philippidis <cesar@codesourcery.com>
7600 Chung-Lin Tang <cltang@codesourcery.com>
7601
7602 * config/nios2/nios2.h (SMALL_INT12): New macro.
7603 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
7604 (nios2_valid_addr_expr_p): Use it.
7605 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
7606 with implicit "io" instructions on R2.
7607 * config/nios2/constraints.md (w): New constraint.
7608 * config/nios2/predicates.md (ldstio_memory_operand): New.
7609 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
7610 operand predicate and constraint.
7611 (ld<bh>io_signed, st<bhw>io>): Likewise.
7612 * doc/md.texi (Machine Constraints): Document w constraint.
7613
7614 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7615 Cesar Philippidis <cesar@codesourcery.com>
7616 Chung-Lin Tang <cltang@codesourcery.com>
7617
7618 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
7619 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
7620 Nios II architecture level.
7621 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
7622 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
7623 (OPTION_DEFAULT_SPECS): Define.
7624 (ASM_SPEC): Add -march= spec strings.
7625 * config/nios2/nios2.c (nios2_option_override): Check for
7626 conflicts involving new options.
7627 * config.gcc (nios2*-*-*): Support --with-arch=.
7628 * doc/invoke.texi (Option Summary, Nios II Options): Document
7629 -march=, -mbmx, and -mcdx.
7630
7631 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
7632
7633 PR rtl-optimization/66626
7634 * lra-constraints.c (lra_constraints): Prevent equivalence
7635 substitution for static chain pseudo in functions with nonlocal
7636 goto.
7637
7638 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7639
7640 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
7641 (nios2_emit_stack_limit_check): Add size parameter. Handle
7642 -fstack-limit-symbol as well as -fstack-limit-register.
7643 (nios2_expand_prologue): Emit only a single stack limit check,
7644 even if multiple stack adjustments are required.
7645 (nios2_option_override): Diagnose unsupported combination of -fpic
7646 and -stack-limit-symbol.
7647
7648 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
7649
7650 * Makefile.in (top_srcdir): New.
7651 * configure.ac: Use AM_ZLIB.
7652 * configure: Regeneated.
7653
7654 2015-07-14 Matthias Klose <doko@ubuntu.com>
7655
7656 PR target/66840
7657 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
7658
7659 2015-07-14 Richard Biener <rguenther@suse.de>
7660
7661 PR tree-optimization/66863
7662 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
7663 what we record for conversion use stmt lhs inequalities.
7664
7665 2015-07-14 Richard Biener <rguenther@suse.de>
7666
7667 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
7668 (decision_tree::gen_gimple): Likewise.
7669
7670 2015-07-14 Tom de Vries <tom@codesourcery.com>
7671
7672 * gcc.c (greater_than_spec_func): Declare forward.
7673 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
7674 -ftree-parallelize-loops={0,1}.
7675 (static_spec_functions): Add greater_than_spec_func function with name
7676 "gt".
7677 (greater_than_spec_func): New function.
7678
7679 2015-07-14 Richard Biener <rguenther@suse.de>
7680
7681 * tree-ssa-dom.c (record_temporary_equivalences): Merge
7682 wideing type conversion case from record_equivalences_from_incoming_edge
7683 and use record_equality to record equivalences.
7684 (record_equivalences_from_incoming_edge): Call
7685 record_temporary_equivalences.
7686
7687 2015-07-14 Richard Biener <rguenther@suse.de>
7688
7689 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
7690 (struct if_expr): New.
7691 (struct with_expr): Likewise.
7692 (is_a_helper): Add helpers for if_expr and with_expr.
7693 (struct simplify): Add simplify_kind enum and member. Remove
7694 ifexpr_vec member.
7695 (simplify::simplify): Adjust.
7696 (lower_commutative): Adjust.
7697 (lower_opt_convert): Likewise.
7698 (lower_cond): Likewise.
7699 (replace_id): Handle with_expr and if_expr.
7700 (lower_for): Adjust.
7701 (dt_simplify::gen_1): New recursive worker, split out from ...
7702 (dt_simplify::gen): ... here. Deal with if and with expansion
7703 recursively.
7704 (capture_info::capture_info): Take context argument
7705 (capture_info::walk_result): Only analyze specific result.
7706 (parser::parse_result): New function.
7707 (parser::parse_simplify): Adjust to parse ifs with then end
7708 else case.
7709 (parser::parse_if): Simplify.
7710 (parser::parse_pattern): Pass down simplify kind.
7711 * match.pd: Convert if structure to new syntax.
7712
7713 2015-07-13 Marek Polacek <polacek@redhat.com>
7714
7715 * rtl.c (rtx_equal_p_cb): Fix typo.
7716
7717 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
7718
7719 * omega.h: Don't include config.h, don't include params.h again if
7720 omega.h has already been included.
7721 * graphite-poly.h: Include sese.h.
7722 * graphite.c: Don't include sese.h, remove needless includes and
7723 minimize includes outside #ifdef HAVE_isl block.
7724 * graphite-blocking.c: Don't include sese.h, remove needless includes,
7725 and wrap entire file in #ifdef HAVE_isl
7726 * graphite-dependences.c: Likewise.
7727 * graphite-interchange.c: Likewise.
7728 * graphite-isl-ast-to-gimple.c: Likewise.
7729 * graphite-optimize-isl.c: Likewise.
7730 * graphite-poly.c: Likewise.
7731 * graphite-scop-detection.c: Likewise.
7732 * graphite-sese-to-poly.c: Likewise.
7733
7734 2015-07-13 Tom de Vries <tom@codesourcery.com>
7735
7736 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
7737
7738 2015-07-13 Renlin Li <renlin.li@arm.com>
7739
7740 PR rtl/66556
7741 * simplify-rtx.c (simplify_const_relational_operation): Add
7742 side_effects_p checks.
7743
7744 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
7745
7746 * bitmap.h: Fix double word typos.
7747 * builtins.c: Same.
7748 * calls.c: Same.
7749 * cfgloopmanip.c: Same.
7750 * cgraph.c: Same.
7751 * cgraph.h: Same.
7752 * cgraphclones.c: Same.
7753 * combine.c: Same.
7754 * config/aarch64/aarch64-protos.h: Same.
7755 * config/aarch64/aarch64.c: Same.
7756 * config/aarch64/aarch64.md: Same.
7757 * config/arm/arm.md: Same.
7758 * config/arm/arm1020e.md: Same.
7759 * config/arm/arm1026ejs.md: Same.
7760 * config/arm/arm926ejs.md: Same.
7761 * config/arm/fa526.md: Same.
7762 * config/arm/fa606te.md: Same.
7763 * config/arm/fa626te.md: Same.
7764 * config/arm/fa726te.md: Same.
7765 * config/arm/fmp626.md: Same.
7766 * config/darwin.c: Same.
7767 * config/epiphany/epiphany.c: Same.
7768 * config/frv/frv.c: Same.
7769 * config/ft32/ft32.c: Same.
7770 * config/gnu-user.h: Same.
7771 * config/h8300/constraints.md: Same.
7772 * config/i386/i386.c: Same.
7773 * config/i386/i386.md: Same.
7774 * config/iq2000/iq2000.md: Same.
7775 * config/mips/mips.c: Same.
7776 * config/mmix/mmix.md: Same.
7777 * config/moxie/moxie.c: Same.
7778 * config/nds32/nds32.md: Same.
7779 * config/pa/pa.h: Same.
7780 * config/rs6000/aix.h: Same.
7781 * config/rs6000/rs6000.h: Same.
7782 * config/sh/sh.c: Same.
7783 * config/tilegx/tilegx.md: Same.
7784 * config/tilepro/gen-mul-tables.cc: Same.
7785 * cse.c: Same.
7786 * dbxout.c: Same.
7787 * doc/invoke.texi: Same.
7788 * dse.c: Same.
7789 * dwarf2out.c: Same.
7790 * final.c: Same.
7791 * gcc.c: Same.
7792 * genmatch.c: Same.
7793 * gimplify.c: Same.
7794 * hash-table.h: Same.
7795 * internal-fn.c: Same.
7796 * ipa-cp.c: Same.
7797 * ipa-devirt.c: Same.
7798 * ipa-icf.c: Same.
7799 * ipa-icf.h: Same.
7800 * ipa-profile.c: Same.
7801 * ipa-prop.c: Same.
7802 * ipa-prop.h: Same.
7803 * ira.c: Same.
7804 * omp-low.c: Same.
7805 * reg-stack.c: Same.
7806 * regcprop.c: Same.
7807 * reorg.c: Same.
7808 * rtl.h: Same.
7809 * sbitmap.h: Same.
7810 * tree-eh.c: Same.
7811 * tree-inline.c: Same.
7812 * tree-sra.c: Same.
7813 * tree-ssa-dom.c: Same.
7814 * tree-ssa-loop-ivopts.c: Same.
7815 * tree-ssa-structalias.c: Same.
7816 * tree-ssa-tail-merge.c: Same.
7817 * tree-ssa-ter.c: Same.
7818 * tree-ssa-threadupdate.c: Same.
7819 * tree-ssa-uninit.c: Same.
7820 * tree-ssanames.c: Same.
7821 * tree-vect-loop-manip.c: Same.
7822 * tree-vrp.c: Same.
7823 * tree.c: Same.
7824 * valtrack.c: Same.
7825 * vec.h: Same.
7826
7827 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7828
7829 PR middle-end/66726
7830 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
7831 tree_ssa_phiopt_worker): Call it.
7832
7833 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7834
7835 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
7836 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
7837 REG_EQUAL note.
7838
7839 2015-07-11 Marek Polacek <polacek@redhat.com>
7840
7841 PR middle-end/66353
7842 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
7843 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
7844 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
7845 rather than bb_has_abnormal_call_pred.
7846 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
7847 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
7848 rather than bb_has_abnormal_call_pred.
7849
7850 2015-07-10 Anatoly Sokolov <aesok@post.ru>
7851
7852 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7853 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
7854 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7855 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
7856 v850_legitimate_address_p): New functions.
7857 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7858
7859 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
7860
7861 PR target/66819
7862 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
7863 indirect sibcall with register arguments if register available
7864 for argument passing.
7865 (init_cumulative_args): Set cfun->machine->arg_reg_available
7866 to (cum->nregs > 0) or to true if function has a variable
7867 argument list.
7868 (function_arg_advance_32): Set cfun->machine->arg_reg_available
7869 to false if cum->nregs <= 0.
7870 * config/i386/i386.h (machine_function): Add arg_reg_available.
7871
7872 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
7873
7874 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
7875 and gen_higpart instead of gen_rtx_SUBREG.
7876 * config/i386/i386.md
7877 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
7878 (read-modify peephole2): Use gen_lowpart instead of
7879 gen_rtx_SUBREG for operand 5.
7880
7881 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
7882
7883 * config/tilepro/gen-mul-tables.cc (main): Change include list for
7884 generated files.
7885 * config/tilepro/mul-tables.c: Regenerate.
7886 * config/tilegx/mul-tables.c: Regenerate.
7887
7888 2015-07-10 Richard Biener <rguenther@suse.de>
7889
7890 * fold-const.c (distribute_bit_expr): Remove.
7891 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
7892 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
7893 to A & (B | C) and simplifying A << C1 << C2 to ...
7894 * match.pd: ... patterns here.
7895
7896 2015-07-10 Jiong Wang <jiong.wang@arm.com>
7897
7898 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7899 Mark mem as READONLY and NOTRAP for PIC symbol.
7900
7901 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
7902
7903 * gimple-predict.h: New file.
7904 (gimple_predict_predictor, gimple_predict_set_predictor,
7905 gimple_predict_outcome, gimple_predict_set_outcome,
7906 gimple_build_predict): Relocate here.
7907 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
7908 gimple_predict_outcome, gimple_predict_set_outcome): Move to
7909 gimple-predict.h.
7910 * gimple.c (gimple_build_predict): Move to gimple-predict.h
7911 * basic-block.h: Don't include cfghooks.h.
7912 * backend.h: Don't include predict.h.
7913 * cfghooks.h: Include predict.h.
7914 * gimple-pretty-print.c: Include gimple-predict.h.
7915 * gimplify.c: Likwise.
7916 * predict.c: Adjust includes.
7917 * tree-inline.c: Likewise.
7918 * asan.c: Likewise.
7919 * auto-inc-dec.c: Likewise.
7920 * auto-profile.c: Likewise.
7921 * bb-reorder.c: Likewise.
7922 * builtins.c: Likewise.
7923 * caller-save.c: Likewise.
7924 * calls.c: Likewise.
7925 * cfganal.c: Likewise.
7926 * cfgbuild.c: Likewise.
7927 * cfg.c: Likewise.
7928 * cfgcleanup.c: Likewise.
7929 * cfgexpand.c: Likewise.
7930 * cfghooks.c: Likewise.
7931 * cfgloopanal.c: Likewise.
7932 * cfgloop.c: Likewise.
7933 * cfgloopmanip.c: Likewise.
7934 * cfgrtl.c: Likewise.
7935 * cgraph.c: Likewise.
7936 * cgraphunit.c: Likewise.
7937 * combine.c: Likewise.
7938 * cprop.c: Likewise.
7939 * cse.c: Likewise.
7940 * dce.c: Likewise.
7941 * dojump.c: Likewise.
7942 * dse.c: Likewise.
7943 * except.c: Likewise.
7944 * expmed.c: Likewise.
7945 * expr.c: Likewise.
7946 * final.c: Likewise.
7947 * fold-const.c: Likewise.
7948 * function.c: Likewise.
7949 * fwprop.c: Likewise.
7950 * gcc-plugin.h: Likewise.
7951 * gcse.c: Likewise.
7952 * genattrtab.c: Likewise.
7953 * genemit.c: Likewise.
7954 * gengtype.c: Likewise.
7955 * genopinit.c: Likewise.
7956 * genoutput.c: Likewise.
7957 * genpreds.c: Likewise.
7958 * genrecog.c: Likewise.
7959 * gimple-fold.c: Likewise.
7960 * gimple-iterator.c: Likewise.
7961 * gimple-ssa-isolate-paths.c: Likewise.
7962 * gimple-ssa-strength-reduction.c: Likewise.
7963 * graph.c: Likewise.
7964 * graphite-blocking.c: Likewise.
7965 * graphite.c: Likewise.
7966 * graphite-dependences.c: Likewise.
7967 * graphite-interchange.c: Likewise.
7968 * graphite-isl-ast-to-gimple.c: Likewise.
7969 * graphite-optimize-isl.c: Likewise.
7970 * graphite-poly.c: Likewise.
7971 * graphite-scop-detection.c: Likewise.
7972 * graphite-sese-to-poly.c: Likewise.
7973 * haifa-sched.c: Likewise.
7974 * ifcvt.c: Likewise.
7975 * internal-fn.c: Likewise.
7976 * ipa-cp.c: Likewise.
7977 * ipa-profile.c: Likewise.
7978 * ipa-split.c: Likewise.
7979 * ipa-utils.c: Likewise.
7980 * ira-build.c: Likewise.
7981 * ira-color.c: Likewise.
7982 * ira-conflicts.c: Likewise.
7983 * ira-costs.c: Likewise.
7984 * ira-emit.c: Likewise.
7985 * ira-lives.c: Likewise.
7986 * jump.c: Likewise.
7987 * loop-doloop.c: Likewise.
7988 * loop-init.c: Likewise.
7989 * loop-invariant.c: Likewise.
7990 * loop-unroll.c: Likewise.
7991 * lower-subreg.c: Likewise.
7992 * lra-assigns.c: Likewise.
7993 * lra.c: Likewise.
7994 * lra-coalesce.c: Likewise.
7995 * lra-constraints.c: Likewise.
7996 * lra-lives.c: Likewise.
7997 * lto-cgraph.c: Likewise.
7998 * lto-streamer-in.c: Likewise.
7999 * mode-switching.c: Likewise.
8000 * modulo-sched.c: Likewise.
8001 * omp-low.c: Likewise.
8002 * optabs.c: Likewise.
8003 * passes.c: Likewise.
8004 * postreload.c: Likewise.
8005 * postreload-gcse.c: Likewise.
8006 * profile.c: Likewise.
8007 * recog.c: Likewise.
8008 * regstat.c: Likewise.
8009 * reload1.c: Likewise.
8010 * reorg.c: Likewise.
8011 * rtlanal.c: Likewise.
8012 * sched-ebb.c: Likewise.
8013 * sel-sched-ir.c: Likewise.
8014 * sese.c: Likewise.
8015 * shrink-wrap.c: Likewise.
8016 * simplify-rtx.c: Likewise.
8017 * stmt.c: Likewise.
8018 * store-motion.c: Likewise.
8019 * tracer.c: Likewise.
8020 * trans-mem.c: Likewise.
8021 * tree-call-cdce.c: Likewise.
8022 * tree-cfg.c: Likewise.
8023 * tree-cfgcleanup.c: Likewise.
8024 * tree-chkp.c: Likewise.
8025 * tree-complex.c: Likewise.
8026 * tree-eh.c: Likewise.
8027 * tree-if-conv.c: Likewise.
8028 * tree-loop-distribution.c: Likewise.
8029 * tree-outof-ssa.c: Likewise.
8030 * tree-parloops.c: Likewise.
8031 * tree-predcom.c: Likewise.
8032 * tree-pretty-print.c: Likewise.
8033 * tree-profile.c: Likewise.
8034 * tree-sra.c: Likewise.
8035 * tree-ssa.c: Likewise.
8036 * tree-ssa-coalesce.c: Likewise.
8037 * tree-ssa-dce.c: Likewise.
8038 * tree-ssa-dom.c: Likewise.
8039 * tree-ssa-forwprop.c: Likewise.
8040 * tree-ssa-ifcombine.c: Likewise.
8041 * tree-ssa-loop-ch.c: Likewise.
8042 * tree-ssa-loop-im.c: Likewise.
8043 * tree-ssa-loop-ivcanon.c: Likewise.
8044 * tree-ssa-loop-ivopts.c: Likewise.
8045 * tree-ssa-loop-manip.c: Likewise.
8046 * tree-ssa-loop-prefetch.c: Likewise.
8047 * tree-ssa-loop-unswitch.c: Likewise.
8048 * tree-ssa-math-opts.c: Likewise.
8049 * tree-ssa-phiopt.c: Likewise.
8050 * tree-ssa-pre.c: Likewise.
8051 * tree-ssa-reassoc.c: Likewise.
8052 * tree-ssa-sink.c: Likewise.
8053 * tree-ssa-tail-merge.c: Likewise.
8054 * tree-ssa-threadedge.c: Likewise.
8055 * tree-ssa-threadupdate.c: Likewise.
8056 * tree-switch-conversion.c: Likewise.
8057 * tree-tailcall.c: Likewise.
8058 * tree-vect-data-refs.c: Likewise.
8059 * tree-vect-loop.c: Likewise.
8060 * tree-vect-loop-manip.c: Likewise.
8061 * tree-vectorizer.c: Likewise.
8062 * tree-vrp.c: Likewise.
8063 * ubsan.c: Likewise.
8064 * value-prof.c: Likewise.
8065 * varasm.c: Likewise.
8066 * var-tracking.c: Likewise.
8067 * config/aarch64/aarch64-builtins.c: Likewise.
8068 * config/aarch64/aarch64.c: Likewise.
8069 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8070 * config/alpha/alpha.c: Likewise.
8071 * config/arc/arc.c: Likewise.
8072 * config/arm/arm.c: Likewise.
8073 * config/avr/avr.c: Likewise.
8074 * config/bfin/bfin.c: Likewise.
8075 * config/c6x/c6x.c: Likewise.
8076 * config/cr16/cr16.c: Likewise.
8077 * config/cris/cris.c: Likewise.
8078 * config/darwin.c: Likewise.
8079 * config/darwin-c.c: Likewise.
8080 * config/epiphany/epiphany.c: Likewise.
8081 * config/epiphany/mode-switch-use.c: Likewise.
8082 * config/epiphany/resolve-sw-modes.c: Likewise.
8083 * config/fr30/fr30.c: Likewise.
8084 * config/frv/frv.c: Likewise.
8085 * config/ft32/ft32.c: Likewise.
8086 * config/h8300/h8300.c: Likewise.
8087 * config/i386/i386.c: Likewise.
8088 * config/i386/winnt.c: Likewise.
8089 * config/ia64/ia64.c: Likewise.
8090 * config/iq2000/iq2000.c: Likewise.
8091 * config/lm32/lm32.c: Likewise.
8092 * config/m32c/m32c.c: Likewise.
8093 * config/m32r/m32r.c: Likewise.
8094 * config/m68k/m68k.c: Likewise.
8095 * config/mcore/mcore.c: Likewise.
8096 * config/mep/mep.c: Likewise.
8097 * config/microblaze/microblaze.c: Likewise.
8098 * config/mips/mips.c: Likewise.
8099 * config/mmix/mmix.c: Likewise.
8100 * config/mn10300/mn10300.c: Likewise.
8101 * config/moxie/moxie.c: Likewise.
8102 * config/msp430/msp430.c: Likewise.
8103 * config/nds32/nds32.c: Likewise.
8104 * config/nds32/nds32-cost.c: Likewise.
8105 * config/nds32/nds32-fp-as-gp.c: Likewise.
8106 * config/nds32/nds32-intrinsic.c: Likewise.
8107 * config/nds32/nds32-isr.c: Likewise.
8108 * config/nds32/nds32-md-auxiliary.c: Likewise.
8109 * config/nds32/nds32-memory-manipulation.c: Likewise.
8110 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8111 * config/nds32/nds32-predicates.c: Likewise.
8112 * config/nios2/nios2.c: Likewise.
8113 * config/nvptx/nvptx.c: Likewise.
8114 * config/pa/pa.c: Likewise.
8115 * config/pdp11/pdp11.c: Likewise.
8116 * config/rl78/rl78.c: Likewise.
8117 * config/rs6000/rs6000.c: Likewise.
8118 * config/rx/rx.c: Likewise.
8119 * config/s390/s390.c: Likewise.
8120 * config/sh/sh.c: Likewise.
8121 * config/sh/sh-mem.cc: Likewise.
8122 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8123 * config/sh/sh_treg_combine.cc: Likewise.
8124 * config/sparc/sparc.c: Likewise.
8125 * config/spu/spu.c: Likewise.
8126 * config/stormy16/stormy16.c: Likewise.
8127 * config/tilegx/tilegx.c: Likewise.
8128 * config/tilepro/tilepro.c: Likewise.
8129 * config/v850/v850.c: Likewise.
8130 * config/vax/vax.c: Likewise.
8131 * config/visium/visium.c: Likewise.
8132 * config/xtensa/xtensa.c: Likewise.
8133
8134 2015-07-10 Richard Biener <rguenther@suse.de>
8135
8136 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
8137 (decision_tree::gen_gimple): Likewise.
8138 (decision_tree::gen_generic): Likewise.
8139
8140 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
8141
8142 PR target/66813
8143 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
8144 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
8145
8146 2015-07-10 Jakub Jelinek <jakub@redhat.com>
8147
8148 PR middle-end/66820
8149 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
8150 or ORT_TASK contexts.
8151 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
8152 is non-zero.
8153
8154 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8155
8156 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
8157 above function.
8158
8159 2015-07-10 Tom de Vries <tom@codesourcery.com>
8160
8161 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
8162 insert nit + 1 bound.
8163
8164 2015-07-10 Richard Biener <rguenther@suse.de>
8165
8166 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
8167 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
8168 (if_convertible_loop_p_1): For this always compute bb predicates.
8169 (if_convertible_loop_p): And free them.
8170
8171 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8172
8173 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
8174 in dump message.
8175
8176 2015-07-10 Richard Biener <rguenther@suse.de>
8177
8178 PR tree-optimization/66823
8179 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
8180 inverted predicate.
8181
8182 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
8183
8184 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
8185 to handle mips[32|64]r3 and mips[32|64]r5.
8186
8187 2015-07-09 Jakub Jelinek <jakub@redhat.com>
8188
8189 PR middle-end/66633
8190 * tree-nested.c (get_static_chain): Or in a flag into
8191 info->static_chain_added.
8192 (get_frame_field, get_nonlocal_debug_decl): Likewise.
8193 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
8194 2015-07-01 changes.
8195 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
8196 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
8197 add it to clauses.
8198
8199 PR tree-optimization/66718
8200 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
8201 field.
8202 (vect_simd_lane_linear): New function.
8203 (vectorizable_simd_clone_call): Support using linear arguments for
8204 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
8205
8206 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8207
8208 PR target/66821
8209 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
8210
8211 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
8212
8213 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
8214 Use machine mode, not enum machine_mode in the prototype.
8215
8216 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
8217 classify 128-bit floating point support.
8218 (FLOAT128_IBM_P): Likewise.
8219 (FLOAT128_VECTOR_P): Likewise.
8220 (FLOAT128_2REG_P): Likewise.
8221 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
8222 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
8223 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8224 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
8225
8226 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
8227 tests against TFmode/TDmode, since those modes do not use VSX
8228 addresses.
8229 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
8230 support.
8231 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
8232 tests against TFmode, etc.
8233 (invalid_e500_subreg): Add tests against IFmode/KFmode.
8234 (reg_offset_addressing_ok_p): Likewise.
8235 (rs6000_legitimate_offset_address_p): Likewise.
8236 (rs6000_legitimize_address): Likewise.
8237 (rs6000_legitimize_reload_address): Likewise.
8238 (rs6000_legitimate_address_p): Clean up tests against TFmode and
8239 TDmode to use the new helper macros, which will include IFmode and
8240 KFmode.
8241 (rs6000_emit_move): Likewise.
8242 (rs6000_darwin64_record_arg_recurse): Likewise.
8243 (print_operand): Likewise.
8244 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
8245 that uses a single vector register as a vector and not as a
8246 floating point register in terms of the calling sequence.
8247 (rs6000_discover_homogeneous_aggregate): Likewise.
8248 (rs6000_return_in_memory): Likewise.
8249 (init_cumulative_args): Likewise.
8250 (rs6000_function_arg_boundary): Likewise.
8251 (rs6000_function_arg_advance_1): Likewise.
8252 (rs6000_function_arg): Likewise.
8253 (rs6000_pass_by_reference): Likewise.
8254 (rs6000_gimplify_va_arg): Likewise.
8255 (rs6000_secondary_reload_memory): Use machine_mode not enum
8256 machine mode.
8257 (rs6000_split_multireg_move): Use new helper macros.
8258 (spe_func_has_64bit_regs_p): Likewise.
8259 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
8260 (output_toc): Use new helper macros.
8261 (rs6000_register_move_cost): Likewise.
8262 (rs6000_function_value): Add IEEE 128-bit floating point calling
8263 sequence support.
8264 (rs6000_libcall_value): Likewise.
8265 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
8266 floating point support.
8267 (rs6000_vector_mode_supported_p): Likewise.
8268
8269 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
8270
8271 PR rtl-optimization/66782
8272 * lra-int.h (struct lra_insn_recog_data): Add comment about
8273 clobbered hard regs for arg_hard_regs.
8274 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
8275 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
8276 Add condition for processing used hard regs.
8277 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
8278 Process clobbered hard regs.
8279
8280 2015-07-09 Michael Matz <matz@suse.de>
8281
8282 * genmatch.c (fprintf_indent): New function.
8283 (operand::gen_transform): Add indent parameter.
8284 (expr::gen_transform, c_expr::gen_transform,
8285 capture::gen_transform): Ditto and use fprintf_indent.
8286 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
8287 (dt_operand::gen, dt_operand::gen_predicate,
8288 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
8289 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
8290 (decision_tree::gen_gimple): Adjust calls and indent generated
8291 code.
8292 (decision_tree::gen_generic): Ditto.
8293 (write_predicate): Ditto.
8294
8295 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8296
8297 PR target/66814
8298 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
8299 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
8300 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
8301 {GENERAL,SSE,MMX}_REG_P where appropriate.
8302
8303 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
8304
8305 * lto-streamer.h: Don't include target.h and alloc-pool.h.
8306 * builtins.c: Adjust includes.
8307 * gimple.c: Likewise.
8308 * ipa-icf.c: Likewise.
8309 * lto-opts.c: Likewise.
8310 * ipa-reference.c: Likewise.
8311 * lto-section-out.c: Likewise.
8312 * lto-streamer-in.c: Likewise.
8313 * lto-streamer-out.c: Likewise.
8314 * opts-global.c: Likewise.
8315 * symtab.c: Likewise.
8316 * tree-chkp.c: Likewise.
8317 * tree-ssa-live.c: Likewise.
8318 * tree-streamer-in.c: Likewise.
8319 * tree-streamer-out.c: Likewise.
8320 * config/darwin.c: Likewise.
8321 * config/i386/winnt.c: Likewise.
8322
8323 2015-07-09 Richard Biener <rguenther@suse.de>
8324
8325 * genmatch.c (struct expr): Add force_single_use flag.
8326 (expr::expr): Add copy constructor.
8327 (capture_info::walk_match): Gather force_single_use captures.
8328 (expr::gen_transform): Use possibly NULLified sequence.
8329 (dt_simplify::gen): Apply single-use restrictions by NULLifying
8330 seq if any constrained expr is not single-use.
8331 (parser::parse_expr): Refactor to allow multiple flags. Handle
8332 's' flag to force an expression have a single-use if the pattern
8333 simplifies to more than one statement.
8334 * match.pd: Convert most single_use conditionals to :s flags.
8335
8336 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8337
8338 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
8339 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8340 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
8341
8342 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
8343
8344 * flags.h: Don't include flag-types.h or options.h.
8345 * opts-common.c: Adjust includes.
8346 * opts-global.c: Likewise.
8347 * common/config/epiphany/epiphany-common.c: Likewise.
8348
8349 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8350
8351 PR target/66818
8352 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
8353 for IA MCU.
8354
8355 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8356
8357 PR target/66817
8358 * config/i386/i386.c (ix86_return_in_memory): Return true
8359 if int_size_in_bytes returns negative for IA MCU.
8360
8361 2015-07-09 Marek Polacek <polacek@redhat.com>
8362
8363 PR tree-optimization/66718
8364 * Makefile.in (OBJS): Add gimple-laddress.o.
8365 * passes.def: Schedule pass_laddress.
8366 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
8367 * tree-pass.h (make_pass_laddress): Declare.
8368 * gimple-laddress.c: New file.
8369
8370 2015-07-09 Richard Biener <rguenther@suse.de>
8371
8372 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
8373
8374 2015-07-09 Richard Biener <rguenther@suse.de>
8375
8376 PR tree-optimization/66807
8377 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
8378
8379 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
8380
8381 * function.c (stack_protect_epilogue): Use if rather than switch for
8382 check targetm.have_stack_protect_test.
8383
8384 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8385
8386 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
8387 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
8388 * config/arc/arc.h: Likewise.
8389 * config/arm/arm.h: Likewise.
8390 * config/bfin/bfin.h: Likewise.
8391 * config/epiphany/epiphany.h: Likewise.
8392 * config/frv/frv.h: Likewise.
8393 * config/ia64/ia64.h: Likewise.
8394 * config/iq2000/iq2000.h: Likewise.
8395 * config/lm32/lm32.h: Likewise.
8396 * config/m32r/m32r.h: Likewise.
8397 * config/mcore/mcore.h: Likewise.
8398 * config/mep/mep.h: Likewise.
8399 * config/microblaze/microblaze.h: Likewise.
8400 * config/mips/mips.h: Likewise.
8401 * config/mmix/mmix.h: Likewise.
8402 * config/mn10300/mn10300.h: Likewise.
8403 * config/nds32/nds32.h: Likewise.
8404 * config/nios2/nios2.h: Likewise.
8405 * config/pa/pa.h: Likewise.
8406 * config/rl78/rl78.h: Likewise.
8407 * config/sh/sh.h: Likewise.
8408 * config/sparc/sparc.h: Likewise.
8409 * config/stormy16/stormy16.h: Likewise.
8410 * config/tilegx/tilegx.h: Likewise.
8411 * config/tilepro/tilepro.h: Likewise.
8412 * config/v850/v850.h: Likewise.
8413 * config/xtensa/xtensa.h: Likewise.
8414 * doc/tm.texi: Regenerate.
8415 * doc/tm.texi.in: Adjust.
8416 * combine.c (simplify_set): Likewise.
8417 (simplify_comparison): Likewise.
8418 * expr.c (store_constructor): Likewise.
8419 * internal-fn.c (expand_arith_overflow): Likewise.
8420 * reload.c (push_reload): Likewise.
8421 (find_reloads): Likewise.
8422 (find_reloads_subreg_address): Likewise.
8423 * reload1.c (eliminate_regs_1): Likewise.
8424 * rtlanal.c (nonzero_bits1): Likewise.
8425 (num_sign_bit_copies1): Likewise.
8426 * simplify-rtx.c (simplify_truncation): Likewise.
8427
8428 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8429
8430 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
8431 of AUTO_INC_DEC with the preprocessor.
8432 * combine.c (combine_instructions): Likewise.
8433 (can_combine_p): Likewise.
8434 (try_combine): Likewise.
8435 * emit-rtl.c (try_split): Likewise.
8436 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8437 * lower-subreg.c (resolve_simple_move): Likewise.
8438 * lra.c (update_inc_notes): Likewise.
8439 * recog.c (asm_operand_ok): Likewise.
8440 (constrain_operands): Likewise.
8441 * regrename.c (scan_rtx_address): Likewise.
8442 * reload.c (update_auto_inc_notes): Likewise.
8443 (reg_inc_found_and_valid_p): Likewise.
8444 * reload1.c (reload): Likewise.
8445 (emit_input_reload_insns): Likewise.
8446 (delete_output_reload): Likewise.
8447 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8448 * valtrack.c (cleanup_auto_inc_dec): Likewise.
8449
8450 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8451
8452 * rtl.h: Always define AUTO_INC_DEC.
8453 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
8454 * combine.c (combine_instructions): Likewise.
8455 (can_combine_p): Likewise.
8456 (try_combine): Likewise.
8457 * emit-rtl.c (try_split): Likewise.
8458 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8459 * lower-subreg.c (resolve_simple_move): Likewise.
8460 * lra.c (update_inc_notes): Likewise.
8461 * recog.c (asm_operand_ok): Likewise.
8462 (constrain_operands): Likewise.
8463 * regrename.c (scan_rtx_address): Likewise.
8464 * reload.c (update_auto_inc_notes): Likewise.
8465 (find_equiv_reg): Likewise.
8466 * reload1.c (reload): Likewise.
8467 (reload_as_needed): Likewise.
8468 (choose_reload_regs): Likewise.
8469 (emit_input_reload_insns): Likewise.
8470 (delete_output_reload): Likewise.
8471 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8472 * valtrack.c (cleanup_auto_inc_dec): Likewise.
8473
8474 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8475
8476 * combine.c (can_combine_def_p): Don't check the value of
8477 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
8478 (combinable_i3pat): Likewise.
8479 (mark_used_regs_combine): Likewise.
8480 * regrename.c (rename_chains): Likewise.
8481 * reload.c (find_reloads_address): Likewise.
8482 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8483
8484 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8485
8486 * combine.c (update_rsp_from_reg_equal): Don't check if
8487 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
8488 (reg_nonzero_bits_for_combine): Likewise.
8489 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
8490 1.
8491 * config/frv/frv.h: Likewise.
8492 * config/lm32/lm32.h: Likewise.
8493 * config/mep/mep.h: Likewise.
8494 * config/mips/mips.h: Likewise.
8495 * config/rs6000/rs6000.h: Likewise.
8496 * config/sh/sh.h: Likewise.
8497 * config/tilegx/tilegx.h (enum reg_class): Likewise.
8498 * config/tilepro/tilepro.h: Likewise.
8499 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
8500 * doc/tm.texi: Regenerate.
8501 * doc/tm.texi.in: Adjust.
8502 * rtlanal.c (nonzero_bits1): Likewise.
8503
8504 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8505
8506 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
8507 with the preprocessor.
8508 (combine_instructions): Likewise.
8509 (try_combine): Likewise.
8510 (subst): Likewise.
8511 (distribute_notes): Likewise.
8512
8513 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8514
8515 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
8516 defined.
8517 (simplify_set): Likewise.
8518 * cse.c (cse_insn): Likewise.
8519 * fold-const.c (fold_single_bit_test): Likewise.
8520 (fold_unary_loc): Likewise.
8521 * postreload.c (reload_cse_simplify_set): Likewise.
8522 (reload_cse_simplify_operands): Likewise.
8523
8524 2015-07-08 Jiong Wang <jiong.wang@arm.com>
8525
8526 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
8527 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
8528
8529 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
8530
8531 PR target/66746
8532 * config/i386/x86intrin.h: Include <adxintrin.h> even if
8533 __iamcu__ is defined.
8534
8535 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8536
8537 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
8538
8539 2015-07-08 Iain Sandoe <iain@codesourcery.com>
8540
8541 PR target/66523
8542 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
8543 names from preservation.
8544
8545 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
8546
8547 PR target/66806
8548 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
8549 change for IAMCU.
8550 (function_arg_advance_32): Don't pass vectors in registers for
8551 IAMCU.
8552 (function_arg_32): Likewise.
8553 (ix86_return_in_memory): Don't return vectors in registers for
8554 IAMCU.
8555
8556 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
8557
8558 PR middle-end/66334
8559 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
8560 hard regno live at the start of BB with incoming abnormal edges.
8561 * lra-lives.c (process_bb_lives): Ditto.
8562
8563 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
8564
8565 PR libgomp/65099
8566 * config/nvptx/mkoffload.c (main): Create an offload image only in
8567 64-bit configurations.
8568
8569 2015-07-08 Martin Liska <mliska@suse.cz>
8570
8571 PR bootstrap/66744
8572 * tree-sra.c (create_access_1): Call ctor without brackets.
8573 (create_artificial_child_access): Likewise.
8574
8575 2015-07-08 Richard Biener <rguenther@suse.de>
8576
8577 PR tree-optimization/66793
8578 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
8579 Properly split the block after stmts ending it.
8580
8581 2015-07-08 Richard Biener <rguenther@suse.de>
8582
8583 PR tree-optimization/66794
8584 * passes.c (execute_function_todo): Assert that post-dominators
8585 are not computed.
8586 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
8587 Free post-dominators.
8588
8589 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8590
8591 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
8592 with early exit.
8593
8594 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8595
8596 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
8597 more than or equal 8 and less than 32 when optimizing for size.
8598
8599 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8600
8601 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
8602 COSTS_N_INSNS (1) and increment it appropriately throughout the
8603 function.
8604
8605 2015-07-08 Richard Biener <rguenther@suse.de>
8606
8607 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
8608
8609 2015-07-08 Alan Modra <amodra@gmail.com>
8610
8611 * target.def (rtx_costs): Remove "code" param, add "mode".
8612 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
8613 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
8614 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
8615 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
8616 call. Track mode when given in rtx.
8617 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
8618 (default_address_cost): Pass Pmode to rtx_cost.
8619 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
8620 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
8621 with NULL set.
8622 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
8623 (notreg_cost): Add mode param. Use it.
8624 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
8625 mode param and pass to set_src_cost. Update all calls.
8626 (hash_scan_set): Formatting.
8627 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
8628 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
8629 * hooks.h: Ditto.
8630 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
8631 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
8632 emit_store_flag): Update set_src_cost and rtx_cost calls.
8633 * auto-inc-dec.c (attempt_change): Likewise.
8634 * calls.c (precompute_register_parameters): Likewise.
8635 * combine.c (expand_compound_operation, make_extraction,
8636 force_to_mode, distribute_and_simplify_rtx): Likewise.
8637 * dojump.c (prefer_and_bit_test): Likewise.
8638 * dse.c (find_shift_sequence): Likewise.
8639 * expr.c (compress_float_constant): Likewise.
8640 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
8641 * ifcvt.c (noce_try_sign_mask): Likewise.
8642 * loop-doloop.c (doloop_optimize): Likewise.
8643 * loop-invariant.c (create_new_invariant): Likewise.
8644 * lower-subreg.c (shift_cost, compute_costs): Likewise.
8645 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
8646 lshift_cheap_p): Likewise.
8647 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
8648 try_replace_in_use, reload_cse_move2add): Likewise.
8649 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
8650 Likewise.
8651 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8652 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8653 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
8654 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
8655 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
8656 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
8657 to rtx_cost calls.
8658 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
8659 * config/arc/arc.c (arc_rtx_costs): Likewise.
8660 * config/arm/arm.c (arm_rtx_costs): Likewise.
8661 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
8662 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
8663 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
8664 * config/cris/cris.c (cris_rtx_costs): Likewise.
8665 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
8666 * config/frv/frv.c (frv_rtx_costs): Likewise.
8667 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
8668 * config/i386/i386.c (ix86_rtx_costs): Likewise.
8669 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
8670 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
8671 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
8672 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
8673 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
8674 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
8675 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
8676 * config/mep/mep.c (mep_rtx_cost): Likewise.
8677 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
8678 * config/mips/mips.c (mips_rtx_costs): Likewise.
8679 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
8680 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
8681 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
8682 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
8683 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
8684 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
8685 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
8686 * config/pa/pa.c (hppa_rtx_costs): Likewise.
8687 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
8688 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
8689 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
8690 * config/s390/s390.c (s390_rtx_costs): Likewise.
8691 * config/sh/sh.c (sh_rtx_costs): Likewise.
8692 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
8693 * config/spu/spu.c (spu_rtx_costs): Likewise.
8694 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
8695 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
8696 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
8697 * config/v850/v850.c (v850_rtx_costs): Likewise.
8698 * config/vax/vax.c (vax_rtx_costs): Likewise.
8699 * config/visium/visium.c (visium_rtx_costs): Likewise.
8700 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
8701 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
8702 "code" param, and pass as outer_code to first rtx_cost call. Pass
8703 mode to rtx_cost calls.
8704 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
8705 calls.
8706 (aarch64_rtx_costs_wrapper): Update.
8707 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
8708 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
8709 rtx_cost calls.
8710 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
8711 and rtx_cost calls.
8712 (avr_operand_rtx_cost): Similarly.
8713 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
8714 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
8715 * config/mips/mips.c (mips_stack_address_p): Comment typo.
8716 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
8717 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
8718 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
8719 rtx_cost.
8720 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
8721 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
8722 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
8723 * doc/tm.texi: Regenerate.
8724
8725 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
8726
8727 * tree-core.h: Include symtab.h.
8728 * rtl.h: Include hard-reg-set.h but not flags.h.
8729 (HARD_CONST): Remove condition compilation involving HARD_CONST since
8730 hard-reg-set.h is always included.
8731 * regs.h: Don't include hard-reg-set.h or rtl.h.
8732 * cfg.h: Include dominance.h.
8733 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
8734 * backend.h: New. Aggregate commonly used backend header files.
8735 * gimple-ssa.h: Don't include tree-hasher.h.
8736 * ssa.h: New. Aggregate commonly used SSA header files.
8737 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
8738 * sel-sched-ir.h: Flatten includes.
8739 * lra-int.h: Flatten completely.
8740 * sel-sched-dump.h: Flatten includes.
8741 * ira-int.h: Flatten includes.
8742 * gimple-streamer.h: Remove all includes.
8743 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
8744 * resource.h: Flatten hard-reg-set.h and df.h.
8745 * sched-int.h: Flatten insn-arrt.h and df.h.
8746 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
8747 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
8748 * genattrtab.c (write_header): Adjust generated includes.
8749 * genautomata.c (main): Likewise.
8750 * genconditions.c (write-header): Likewise.
8751 * genemit.c (main): Likewise.
8752 * gengtype.c (open_base_files): Likewise.
8753 * genopinit.c (main): Likewise.
8754 * genoutput.c (output_prologue): Likewise.
8755 * genpeep.c (main): Likewise.
8756 * genpreds.c (write_insn_preds_c): Likewise.
8757 * genrecog.c (write_header): Likewise.
8758 * alias.c: Adjust includes.
8759 * asan.c: Likewise.
8760 * attribs.c: Likewise.
8761 * auto-inc-dec.c: Likewise.
8762 * auto-profile.c: Likewise.
8763 * bb-reorder.c: Likewise.
8764 * bt-load.c: Likewise.
8765 * builtins.c: Likewise.
8766 * caller-save.c: Likewise.
8767 * calls.c: Likewise.
8768 * ccmp.c: Likewise.
8769 * cfg.c: Likewise.
8770 * cfganal.c: Likewise.
8771 * cfgbuild.c: Likewise.
8772 * cfgcleanup.c: Likewise.
8773 * cfgexpand.c: Likewise.
8774 * cfghooks.c: Likewise.
8775 * cfgloop.c: Likewise.
8776 * cfgloopanal.c: Likewise.
8777 * cfgloopmanip.c: Likewise.
8778 * cfgrtl.c: Likewise.
8779 * cgraph.c: Likewise.
8780 * cgraphbuild.c: Likewise.
8781 * cgraphclones.c: Likewise.
8782 * cgraphunit.c: Likewise.
8783 * cilk-common.c: Likewise.
8784 * combine-stack-adj.c: Likewise.
8785 * combine.c: Likewise.
8786 * compare-elim.c: Likewise.
8787 * convert.c: Likewise.
8788 * coverage.c: Likewise.
8789 * cppbuiltin.c: Likewise.
8790 * cprop.c: Likewise.
8791 * cse.c: Likewise.
8792 * cselib.c: Likewise.
8793 * data-streamer-in.c: Likewise.
8794 * data-streamer-out.c: Likewise.
8795 * data-streamer.c: Likewise.
8796 * dbxout.c: Likewise.
8797 * dce.c: Likewise.
8798 * ddg.c: Likewise.
8799 * debug.c: Likewise.
8800 * df-core.c: Likewise.
8801 * df-problems.c: Likewise.
8802 * df-scan.c: Likewise.
8803 * dfp.c: Likewise.
8804 * dojump.c: Likewise.
8805 * dominance.c: Likewise.
8806 * domwalk.c: Likewise.
8807 * double-int.c: Likewise.
8808 * dse.c: Likewise.
8809 * dumpfile.c: Likewise.
8810 * dwarf2asm.c: Likewise.
8811 * dwarf2cfi.c: Likewise.
8812 * dwarf2out.c: Likewise.
8813 * emit-rtl.c: Likewise.
8814 * et-forest.c: Likewise.
8815 * except.c: Likewise.
8816 * explow.c: Likewise.
8817 * expmed.c: Likewise.
8818 * expr.c: Likewise.
8819 * final.c: Likewise.
8820 * fixed-value.c: Likewise.
8821 * fold-const.c: Likewise.
8822 * function.c: Likewise.
8823 * fwprop.c: Likewise.
8824 * gcc-plugin.h: Likewise.
8825 * gcse-common.c: Likewise.
8826 * gcse.c: Likewise.
8827 * generic-match-head.c: Likewise.
8828 * ggc-page.c: Likewise.
8829 * gimple-builder.c: Likewise.
8830 * gimple-expr.c: Likewise.
8831 * gimple-fold.c: Likewise.
8832 * gimple-iterator.c: Likewise.
8833 * gimple-low.c: Likewise.
8834 * gimple-match-head.c: Likewise.
8835 * gimple-pretty-print.c: Likewise.
8836 * gimple-ssa-isolate-paths.c: Likewise.
8837 * gimple-ssa-strength-reduction.c: Likewise.
8838 * gimple-streamer-in.c: Likewise.
8839 * gimple-streamer-out.c: Likewise.
8840 * gimple-walk.c: Likewise.
8841 * gimple.c: Likewise.
8842 * gimplify-me.c: Likewise.
8843 * gimplify.c: Likewise.
8844 * godump.c: Likewise.
8845 * graph.c: Likewise.
8846 * graphite-blocking.c: Likewise.
8847 * graphite-dependences.c: Likewise.
8848 * graphite-interchange.c: Likewise.
8849 * graphite-isl-ast-to-gimple.c: Likewise.
8850 * graphite-optimize-isl.c: Likewise.
8851 * graphite-poly.c: Likewise.
8852 * graphite-scop-detection.c: Likewise.
8853 * graphite-sese-to-poly.c: Likewise.
8854 * graphite.c: Likewise.
8855 * haifa-sched.c: Likewise.
8856 * hw-doloop.c: Likewise.
8857 * ifcvt.c: Likewise.
8858 * init-regs.c: Likewise.
8859 * internal-fn.c: Likewise.
8860 * ipa-chkp.c: Likewise.
8861 * ipa-comdats.c: Likewise.
8862 * ipa-cp.c: Likewise.
8863 * ipa-devirt.c: Likewise.
8864 * ipa-icf-gimple.c: Likewise.
8865 * ipa-icf.c: Likewise.
8866 * ipa-inline-analysis.c: Likewise.
8867 * ipa-inline-transform.c: Likewise.
8868 * ipa-inline.c: Likewise.
8869 * ipa-polymorphic-call.c: Likewise.
8870 * ipa-profile.c: Likewise.
8871 * ipa-prop.c: Likewise.
8872 * ipa-pure-const.c: Likewise.
8873 * ipa-ref.c: Likewise.
8874 * ipa-reference.c: Likewise.
8875 * ipa-split.c: Likewise.
8876 * ipa-utils.c: Likewise.
8877 * ipa-visibility.c: Likewise.
8878 * ipa.c: Likewise.
8879 * ira-build.c: Likewise.
8880 * ira-color.c: Likewise.
8881 * ira-conflicts.c: Likewise.
8882 * ira-costs.c: Likewise.
8883 * ira-emit.c: Likewise.
8884 * ira-lives.c: Likewise.
8885 * ira.c: Likewise.
8886 * jump.c: Likewise.
8887 * langhooks.c: Likewise.
8888 * lcm.c: Likewise.
8889 * loop-doloop.c: Likewise.
8890 * loop-init.c: Likewise.
8891 * loop-invariant.c: Likewise.
8892 * loop-iv.c: Likewise.
8893 * loop-unroll.c: Likewise.
8894 * lower-subreg.c: Likewise.
8895 * lra-assigns.c: Likewise.
8896 * lra-coalesce.c: Likewise.
8897 * lra-constraints.c: Likewise.
8898 * lra-eliminations.c: Likewise.
8899 * lra-lives.c: Likewise.
8900 * lra-remat.c: Likewise.
8901 * lra-spills.c: Likewise.
8902 * lra.c: Likewise.
8903 * lto-cgraph.c: Likewise.
8904 * lto-compress.c: Likewise.
8905 * lto-opts.c: Likewise.
8906 * lto-section-in.c: Likewise.
8907 * lto-section-out.c: Likewise.
8908 * lto-streamer-in.c: Likewise.
8909 * lto-streamer-out.c: Likewise.
8910 * lto-streamer.c: Likewise.
8911 * mcf.c: Likewise.
8912 * mode-switching.c: Likewise.
8913 * modulo-sched.c: Likewise.
8914 * omega.c: Likewise.
8915 * omp-low.c: Likewise.
8916 * optabs.c: Likewise.
8917 * opts-global.c: Likewise.
8918 * passes.c: Likewise.
8919 * plugin.c: Likewise.
8920 * postreload-gcse.c: Likewise.
8921 * postreload.c: Likewise.
8922 * predict.c: Likewise.
8923 * print-rtl.c: Likewise.
8924 * print-tree.c: Likewise.
8925 * profile.c: Likewise.
8926 * real.c: Likewise.
8927 * realmpfr.c: Likewise.
8928 * recog.c: Likewise.
8929 * ree.c: Likewise.
8930 * reg-stack.c: Likewise.
8931 * regcprop.c: Likewise.
8932 * reginfo.c: Likewise.
8933 * regrename.c: Likewise.
8934 * regstat.c: Likewise.
8935 * reload.c: Likewise.
8936 * reload1.c: Likewise.
8937 * reorg.c: Likewise.
8938 * resource.c: Likewise.
8939 * rtl-chkp.c: Likewise.
8940 * rtlanal.c: Likewise.
8941 * rtlhooks.c: Likewise.
8942 * sanopt.c: Likewise.
8943 * sched-deps.c: Likewise.
8944 * sched-ebb.c: Likewise.
8945 * sched-rgn.c: Likewise.
8946 * sched-vis.c: Likewise.
8947 * sdbout.c: Likewise.
8948 * sel-sched-dump.c: Likewise.
8949 * sel-sched-ir.c: Likewise.
8950 * sel-sched.c: Likewise.
8951 * sese.c: Likewise.
8952 * shrink-wrap.c: Likewise.
8953 * simplify-rtx.c: Likewise.
8954 * stack-ptr-mod.c: Likewise.
8955 * stmt.c: Likewise.
8956 * stor-layout.c: Likewise.
8957 * store-motion.c: Likewise.
8958 * stringpool.c: Likewise.
8959 * symtab.c: Likewise.
8960 * target-globals.c: Likewise.
8961 * targhooks.c: Likewise.
8962 * toplev.c: Likewise.
8963 * tracer.c: Likewise.
8964 * trans-mem.c: Likewise.
8965 * tree-affine.c: Likewise.
8966 * tree-browser.c: Likewise.
8967 * tree-call-cdce.c: Likewise.
8968 * tree-cfg.c: Likewise.
8969 * tree-cfgcleanup.c: Likewise.
8970 * tree-chkp-opt.c: Likewise.
8971 * tree-chkp.c: Likewise.
8972 * tree-chrec.c: Likewise.
8973 * tree-complex.c: Likewise.
8974 * tree-data-ref.c: Likewise.
8975 * tree-dfa.c: Likewise.
8976 * tree-diagnostic.c: Likewise.
8977 * tree-dump.c: Likewise.
8978 * tree-eh.c: Likewise.
8979 * tree-emutls.c: Likewise.
8980 * tree-if-conv.c: Likewise.
8981 * tree-inline.c: Likewise.
8982 * tree-into-ssa.c: Likewise.
8983 * tree-iterator.c: Likewise.
8984 * tree-loop-distribution.c: Likewise.
8985 * tree-nested.c: Likewise.
8986 * tree-nrv.c: Likewise.
8987 * tree-object-size.c: Likewise.
8988 * tree-outof-ssa.c: Likewise.
8989 * tree-parloops.c: Likewise.
8990 * tree-phinodes.c: Likewise.
8991 * tree-predcom.c: Likewise.
8992 * tree-pretty-print.c: Likewise.
8993 * tree-profile.c: Likewise.
8994 * tree-scalar-evolution.c: Likewise.
8995 * tree-sra.c: Likewise.
8996 * tree-ssa-address.c: Likewise.
8997 * tree-ssa-alias.c: Likewise.
8998 * tree-ssa-ccp.c: Likewise.
8999 * tree-ssa-coalesce.c: Likewise.
9000 * tree-ssa-copy.c: Likewise.
9001 * tree-ssa-copyrename.c: Likewise.
9002 * tree-ssa-dce.c: Likewise.
9003 * tree-ssa-dom.c: Likewise.
9004 * tree-ssa-dse.c: Likewise.
9005 * tree-ssa-forwprop.c: Likewise.
9006 * tree-ssa-ifcombine.c: Likewise.
9007 * tree-ssa-live.c: Likewise.
9008 * tree-ssa-loop-ch.c: Likewise.
9009 * tree-ssa-loop-im.c: Likewise.
9010 * tree-ssa-loop-ivcanon.c: Likewise.
9011 * tree-ssa-loop-ivopts.c: Likewise.
9012 * tree-ssa-loop-manip.c: Likewise.
9013 * tree-ssa-loop-niter.c: Likewise.
9014 * tree-ssa-loop-prefetch.c: Likewise.
9015 * tree-ssa-loop-unswitch.c: Likewise.
9016 * tree-ssa-loop.c: Likewise.
9017 * tree-ssa-math-opts.c: Likewise.
9018 * tree-ssa-operands.c: Likewise.
9019 * tree-ssa-phiopt.c: Likewise.
9020 * tree-ssa-phiprop.c: Likewise.
9021 * tree-ssa-pre.c: Likewise.
9022 * tree-ssa-propagate.c: Likewise.
9023 * tree-ssa-reassoc.c: Likewise.
9024 * tree-ssa-sccvn.c: Likewise.
9025 * tree-ssa-scopedtables.c: Likewise.
9026 * tree-ssa-sink.c: Likewise.
9027 * tree-ssa-strlen.c: Likewise.
9028 * tree-ssa-structalias.c: Likewise.
9029 * tree-ssa-tail-merge.c: Likewise.
9030 * tree-ssa-ter.c: Likewise.
9031 * tree-ssa-threadedge.c: Likewise.
9032 * tree-ssa-threadupdate.c: Likewise.
9033 * tree-ssa-uncprop.c: Likewise.
9034 * tree-ssa-uninit.c: Likewise.
9035 * tree-ssa.c: Likewise.
9036 * tree-ssanames.c: Likewise.
9037 * tree-stdarg.c: Likewise.
9038 * tree-streamer-in.c: Likewise.
9039 * tree-streamer-out.c: Likewise.
9040 * tree-streamer.c: Likewise.
9041 * tree-switch-conversion.c: Likewise.
9042 * tree-tailcall.c: Likewise.
9043 * tree-vect-data-refs.c: Likewise.
9044 * tree-vect-generic.c: Likewise.
9045 * tree-vect-loop-manip.c: Likewise.
9046 * tree-vect-loop.c: Likewise.
9047 * tree-vect-patterns.c: Likewise.
9048 * tree-vect-slp.c: Likewise.
9049 * tree-vect-stmts.c: Likewise.
9050 * tree-vectorizer.c: Likewise.
9051 * tree-vrp.c: Likewise.
9052 * tree.c: Likewise.
9053 * tsan.c: Likewise.
9054 * ubsan.c: Likewise.
9055 * valtrack.c: Likewise.
9056 * value-prof.c: Likewise.
9057 * var-tracking.c: Likewise.
9058 * varasm.c: Likewise.
9059 * varpool.c: Likewise.
9060 * vmsdbgout.c: Likewise.
9061 * vtable-verify.c: Likewise.
9062 * web.c: Likewise.
9063 * wide-int.cc: Likewise.
9064 * xcoffout.c: Likewise.
9065 * config/aarch64/aarch64-builtins.c: Likewise.
9066 * config/aarch64/aarch64.c: Likewise.
9067 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9068 * config/alpha/alpha.c: Likewise.
9069 * config/arc/arc.c: Likewise.
9070 * config/arm/aarch-common.c: Likewise.
9071 * config/arm/arm-builtins.c: Likewise.
9072 * config/arm/arm-c.c: Likewise.
9073 * config/arm/arm.c: Likewise.
9074 * config/avr/avr-c.c: Likewise.
9075 * config/avr/avr-log.c: Likewise.
9076 * config/avr/avr.c: Likewise.
9077 * config/bfin/bfin.c: Likewise.
9078 * config/c6x/c6x.c: Likewise.
9079 * config/cr16/cr16.c: Likewise.
9080 * config/cris/cris.c: Likewise.
9081 * config/darwin-c.c: Likewise.
9082 * config/darwin.c: Likewise.
9083 * config/epiphany/epiphany.c: Likewise.
9084 * config/epiphany/mode-switch-use.c: Likewise.
9085 * config/epiphany/resolve-sw-modes.c: Likewise.
9086 * config/fr30/fr30.c: Likewise.
9087 * config/frv/frv.c: Likewise.
9088 * config/ft32/ft32.c: Likewise.
9089 * config/h8300/h8300.c: Likewise.
9090 * config/i386/i386-c.c: Likewise.
9091 * config/i386/i386.c: Likewise.
9092 * config/i386/msformat-c.c: Likewise.
9093 * config/i386/winnt-cxx.c: Likewise.
9094 * config/i386/winnt-stubs.c: Likewise.
9095 * config/i386/winnt.c: Likewise.
9096 * config/ia64/ia64-c.c: Likewise.
9097 * config/ia64/ia64.c: Likewise.
9098 * config/iq2000/iq2000.c: Likewise.
9099 * config/lm32/lm32.c: Likewise.
9100 * config/m32c/m32c-pragma.c: Likewise.
9101 * config/m32c/m32c.c: Likewise.
9102 * config/m32r/m32r.c: Likewise.
9103 * config/m68k/m68k.c: Likewise.
9104 * config/mcore/mcore.c: Likewise.
9105 * config/mep/mep-pragma.c: Likewise.
9106 * config/mep/mep.c: Likewise.
9107 * config/microblaze/microblaze-c.c: Likewise.
9108 * config/microblaze/microblaze.c: Likewise.
9109 * config/mips/mips.c: Likewise.
9110 * config/mmix/mmix.c: Likewise.
9111 * config/mn10300/mn10300.c: Likewise.
9112 * config/moxie/moxie.c: Likewise.
9113 * config/msp430/msp430-c.c: Likewise.
9114 * config/msp430/msp430.c: Likewise.
9115 * config/nds32/nds32-cost.c: Likewise.
9116 * config/nds32/nds32-fp-as-gp.c: Likewise.
9117 * config/nds32/nds32-intrinsic.c: Likewise.
9118 * config/nds32/nds32-isr.c: Likewise.
9119 * config/nds32/nds32-md-auxiliary.c: Likewise.
9120 * config/nds32/nds32-memory-manipulation.c: Likewise.
9121 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9122 * config/nds32/nds32-predicates.c: Likewise.
9123 * config/nds32/nds32.c: Likewise.
9124 * config/nios2/nios2.c: Likewise.
9125 * config/nvptx/nvptx.c: Likewise.
9126 * config/pa/pa.c: Likewise.
9127 * config/pdp11/pdp11.c: Likewise.
9128 * config/rl78/rl78-c.c: Likewise.
9129 * config/rl78/rl78.c: Likewise.
9130 * config/rs6000/rs6000-c.c: Likewise.
9131 * config/rs6000/rs6000.c: Likewise.
9132 * config/rx/rx.c: Likewise.
9133 * config/s390/s390-c.c: Likewise.
9134 * config/s390/s390.c: Likewise.
9135 * config/sh/sh-c.c: Likewise.
9136 * config/sh/sh-mem.cc: Likewise.
9137 * config/sh/sh.c: Likewise.
9138 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9139 * config/sh/sh_treg_combine.cc: Likewise.
9140 * config/sol2-c.c: Likewise.
9141 * config/sol2-cxx.c: Likewise.
9142 * config/sol2-stubs.c: Likewise.
9143 * config/sol2.c: Likewise.
9144 * config/sparc/sparc-c.c: Likewise.
9145 * config/sparc/sparc.c: Likewise.
9146 * config/spu/spu-c.c: Likewise.
9147 * config/spu/spu.c: Likewise.
9148 * config/stormy16/stormy16.c: Likewise.
9149 * config/tilegx/mul-tables.c: Likewise.
9150 * config/tilegx/tilegx-c.c: Likewise.
9151 * config/tilegx/tilegx.c: Likewise.
9152 * config/tilepro/mul-tables.c: Likewise.
9153 * config/tilepro/tilepro-c.c: Likewise.
9154 * config/tilepro/tilepro.c: Likewise.
9155 * config/v850/v850-c.c: Likewise.
9156 * config/v850/v850.c: Likewise.
9157 * config/vax/vax.c: Likewise.
9158 * config/visium/visium.c: Likewise.
9159 * config/vms/vms-c.c: Likewise.
9160 * config/vms/vms.c: Likewise.
9161 * config/vxworks.c: Likewise.
9162 * config/xtensa/xtensa.c: Likewise.
9163
9164 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
9165
9166 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
9167 Remove operand constraints. Change operand 2 predicate to
9168 nonmemory operand. Limit const_int values to mode bitsize. Only
9169 allow const_int values less than 32 when optimizing for size.
9170 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
9171 Remove operand constraints.
9172 (*bt<mode>): Use SImode for const_int values less than 32.
9173 (regmode): Remove mode attribute.
9174
9175 2015-07-07 Anatoly Sokolov <aesok@post.ru>
9176
9177 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9178 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
9179 moxie_legitimate_address_p): New functions.
9180 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9181
9182 2015-07-07 Tom de Vries <tom@codesourcery.com>
9183
9184 PR tree-optimization/66642
9185 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
9186 header comment. Rename split_edge variable to edge_at_split. Split
9187 exit edge to create new loop exit bb. Insert loop exit phis in new
9188 loop exit bb.
9189
9190 2015-07-07 Tom de Vries <tom@codesourcery.com>
9191
9192 * tree-cfg.c (get_virtual_phi): New function.
9193 * tree-cfg.h (get_virtual_phi): Declare.
9194 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
9195 (rewrite_virtuals_into_loop_closed_ssa): New function.
9196 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
9197 Declare.
9198 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
9199 (transform_to_exit_first_loop_alt): Use
9200 rewrite_virtuals_into_loop_closed_ssa.
9201
9202 2015-07-07 Richard Biener <rguenther@suse.de>
9203
9204 * fold-const.c (fold_binary_loc): Move
9205 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
9206 * match.pd: ... here.
9207 Add (X * C1) % C2 -> 0 simplification pattern derived from
9208 extract_muldiv_1.
9209
9210 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
9211
9212 PR target/66780
9213 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
9214 change for target/65249.
9215
9216 2015-07-07 Paulo Matos <pmatos@broadcom.com>
9217
9218 * symtab.c (address_matters_1): Fix typo in comment above.
9219 (can_increase_alignment_p): Likewise.
9220
9221 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9222
9223 * function.c (free_after_compilation): Clear PROP_cfg in
9224 f->curr_properties.
9225
9226 2015-07-07 Richard Biener <rguenther@suse.de>
9227
9228 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
9229 add which use to.
9230 (add_control_edge): Remove excessive vertical space in dumping.
9231 (process_ssa_edge_worklist): Simulate at most one statement and
9232 return whether we did. Do not simulate PHIs if they are in a
9233 BB not yet simulated.
9234 (ssa_propagate): Adjust to always drain the BB worklist whenever
9235 a BB is available there, likewise the VARYING edges list before
9236 the interesting edge list.
9237
9238 2015-07-07 Christian Bruel <christian.bruel@st.com>
9239
9240 PR target/52144
9241 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
9242
9243 2015-07-07 Richard Biener <rguenther@suse.de>
9244
9245 PR middle-end/66739
9246 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
9247 A - B.
9248
9249 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
9250
9251 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
9252 modes for operands 0 and 3. Use SImode for operands 2 and 3.
9253 Copy operand 0 to a temporary if !ext_register_operand. Remove
9254 ancient extract_bit_field workaround.
9255 (insv<mode>_1): Rename from mov<mode>_insv_1.
9256 (*insvqi): Rename from *movqi_insv_2.
9257 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
9258 for renamed insvsi_1.
9259 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
9260
9261 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
9262
9263 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
9264 call to nvptx_reorg_subreg.
9265
9266 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
9267
9268 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
9269 * graphite-dependencies.c, graphite-interchange.c,
9270 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
9271 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
9272 Likewise.
9273
9274 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
9275
9276 * match.pd: Remove element_mode inside HONOR_*.
9277 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
9278 (~X | X -> -1, ~X ^ X -> -1): Merge.
9279 * tree.c (build_each_one_cst): New function.
9280 * tree.h (build_each_one_cst): Likewise.
9281
9282 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9283
9284 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9285 PROCESSOR_IAMCU.
9286
9287 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
9288
9289 * config.gcc <mips*-*-*>: Add fused-madd.opt.
9290 * config/mips/mips.opt (mfused-madd): Remove.
9291 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
9292 * config/mips/mips.h (TARGET_MIPS8000): New.
9293 (ISA_HAS_FP_MADD4_MSUB4): Remove.
9294 (ISA_HAS_FP_MADDF_MSUBF): Remove.
9295 (ISA_HAS_FP_MADD3_MSUB3): Remove.
9296 (ISA_HAS_NMADD4_NMSUB4): Remove.
9297 (ISA_HAS_NMADD3_NMSUB3): Remove.
9298 (ISA_HAS_FUSED_MADD4): New.
9299 (ISA_HAS_UNFUSED_MADD4): New.
9300 (ISA_HAS_FUSED_MADDF): New.
9301 (ISA_HAS_FUSED_MADD3): New.
9302 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
9303 (*fma<mode>4_madd3) New.
9304 (*fma<mode>4_madd4) New.
9305 (*fma<mode>4_maddf) New.
9306 (fms<mode>4) New.
9307 (*fms<mode>4_msub3) New.
9308 (*fms<mode>4_msub4) New.
9309 (fnma<mode>4) New.
9310 (*fnma<mode>4_nmadd3) New.
9311 (*fnma<mode>4_nmadd4) New.
9312 (fnms<mode>4) New.
9313 (*fnms<mode>4_nmsub3) New.
9314 (*fnms<mode>4_nmsub4) New.
9315 (*madd4<mode>) Modify to be unfused only.
9316 (*msub4<mode>) Modify to be unfused only.
9317 (*nmadd4<mode>) Modify to be unfused only.
9318 (*nmsub4<mode>) Modify to be unfused only.
9319 (*madd3<mode>) Remove.
9320 (*msub3<mode>) Remove.
9321 (*nmadd3<mode>) Remove.
9322 (*nmsub3<mode>) Remove.
9323 (*nmadd3<mode>_fastmath) Remove.
9324 (*nmsub3<mode>_fastmath) Remove.
9325 (*nmadd4<mode>_fastmath) Update condition.
9326 (*nmsub4<mode>_fastmath) Update condition.
9327
9328 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
9329
9330 PR target/65956
9331 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
9332 alignment attribute, exploring one level down for records and arrays.
9333
9334 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
9335
9336 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
9337 modes for operands 0 and 1. Use SImode for operands 2 and 3.
9338 Copy operand 1 to a temporary if !ext_register_operand. Remove
9339 ancient extract_bit_field workaround.
9340 (*extv<mode>): Rename from *mov<mode>_extv_1.
9341 (*extvqi): Rename from *movqi_extv_1.
9342 (extzv<mode>): Rename from extzv. Use SWI248 modes for
9343 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
9344 to a temporary if !ext_register_operand. Remove ancient
9345 extract_bit_field workaround.
9346 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
9347 (*extzvqi): Rename from *movqi_extzv_2.
9348 (*testqi_ext_3): Remove modes from const_int_operand predicated
9349 operands. Add "n" constraint.
9350 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
9351 operand. Add "J" constraint.
9352 (*btsq, *btrq, *btcq peephole2s): Remove mode from
9353 const_0_to_63 predicated operand.
9354 (regmode): New insn attribute.
9355 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
9356 to nonmemory_operand. Use regmode insn attribute.
9357 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
9358 (*jcc_bt<mode>_mask): Remove mode from operand 3.
9359 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
9360 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
9361 operands. Use "N" constraint instead of "n".
9362
9363 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
9364
9365 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
9366
9367 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9368
9369 PR target/66749
9370 * config/i386/i386.c (iamcu_cost): New.
9371 (m_IAMCU): Likewise.
9372 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
9373 (processor_target_table): Add an entry for "iamcu".
9374 (processor_alias_table): Likewise.
9375 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
9376 (ix86_adjust_cost): Likewise.
9377 (ia32_multipass_dfa_lookahead): Likewise.
9378 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
9379 * config/i386/x86-tune.def: Updated for m_IAMCU.
9380
9381 2015-07-06 Richard Biener <rguenther@suse.de>
9382
9383 PR tree-optimization/66772
9384 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
9385 values are available in the PHI node BB when there are
9386 still unexecutable edges.
9387
9388 2015-07-06 Richard Biener <rguenther@suse.de>
9389
9390 PR tree-optimization/66767
9391 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
9392 Make sure to build the alignment test on a SSA name without
9393 final alignment info valid only if the alignment test
9394 evaluates to true.
9395
9396 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
9397
9398 PR target/66620
9399 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
9400 loop start when inserting LSETUP.
9401
9402 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9403
9404 PR target/53383
9405 * config/i386/i386.c (ix86_option_override_internal): Allow
9406 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
9407
9408 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9409
9410 * read-md.c (decimal_string): Rename to ...
9411 (md_decimal_string): ... this.
9412 (handle_enum): Reflect this.
9413
9414 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9415
9416 PR target/66731
9417 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
9418
9419 2015-07-06 Richard Biener <rguenther@suse.de>
9420
9421 PR middle-end/66759
9422 * match.pd: Add missing constraint of y to REAL_CST in
9423 REAL_CST - x CMP y to y - CST CMP x simplification.
9424
9425 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
9426
9427 PR tree-optimization/66757
9428 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
9429
9430 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
9431 Sandra Loosemore <sandra@codesourcery.com>
9432
9433 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
9434 Delete extern declaration.
9435 (gprel_constant_p): Add extern declaration.
9436 * config/nios2/constraints.md ("S"): Use gprel_constant_p
9437 instead of nios2_symbol_ref_in_small_data_p.
9438 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
9439 (nios2_symbol_ref_in_small_data_p): Make static.
9440 (gprel_constant_p): Make non-static.
9441
9442 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9443
9444 * doc/fragments.texi (Target Fragment): Convert debian.org
9445 link to use https.
9446 * doc/install.texi (Configuration): Ditto.
9447
9448 2015-07-05 Jakub Jelinek <jakub@redhat.com>
9449
9450 PR tree-optimization/66718
9451 * tree-vect-stmts.c (vectorizable_call): Replace uses of
9452 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
9453
9454 PR tree-optimization/66718
9455 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
9456 vectorizable_load, vectorizable_condition): Move vectype,
9457 nunits, ncopies computation after checking what kind of statement
9458 stmt is.
9459
9460 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9461
9462 * target-insns.def (extv, extzv, insv): New targetm instruction
9463 patterns.
9464 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
9465 interface.
9466 * recog.c (simplify_while_replacing): Likewise.
9467
9468 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9469
9470 * target-insns.def (doloop_begin, doloop_end): New targetm
9471 instruction patterns.
9472 * loop-init.c: Include target.h.
9473 (pass_loop2::gate): Use the new targetm patterns instead of
9474 HAVE_*/gen_* interface.
9475 (pass_rtl_doloop::gate): Likewise.
9476 (pass_rtl_doloop::execute): Remove preprocessor condition.
9477 * hw-doloop.c: Build unconditionally.
9478 * loop-doloop.c: Likewise.
9479 (doloop_optimize): Use the new targetm patterns instead of
9480 HAVE_*/gen_* interface.
9481 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
9482 * modulo-sched.c (doloop_register_get): Likewise.
9483
9484 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9485
9486 * target-insns.def (clear_cache): New targetm instruction pattern.
9487 * builtins.c (expand_builtin___clear_cache): Use it instead of
9488 HAVE_*/gen_* interface.
9489
9490 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9491
9492 * target-insns.def (allocate_stack, check_stack, probe_stack)
9493 (probe_stack_address, split_stack_prologue, split_stack_space_check):
9494 New targetm instruction patterns.
9495 * explow.c (allocate_dynamic_stack_space): Use them instead of
9496 HAVE_*/gen_* interface.
9497 (emit_stack_probe): Likewise.
9498 (probe_stack_range): Likewise.
9499 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9500
9501 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9502
9503 * target-insns.def (stack_protect_set, stack_protect_test): New
9504 targetm instruction patterns.
9505 * cfgexpand.c (stack_protect_prologue): Use them instead of
9506 HAVE_*/gen_* interface.
9507 * function.c (stack_protect_epilogue): Likewise.
9508
9509 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9510
9511 * expr.h (gen_move_insn_uncast): Delete.
9512 * expr.c (gen_move_insn_uncast): Delete.
9513
9514 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9515
9516 * target-insns.def (restore_stack_block, restore_stack_function)
9517 (restore_stack_nonlocal, save_stack_block, save_stack_function)
9518 (save_stack_nonlocal): New targetm instruction patterns.
9519 * builtins.c (expand_builtin_apply): Use them instead of
9520 HAVE_*/gen_* interface.
9521 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
9522
9523 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9524
9525 * target-insns.def (trap): New targetm instruction pattern.
9526 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
9527 interface.
9528 * explow.c (allocate_dynamic_stack_space): Likewise.
9529 * ifcvt.c (find_if_header): Likewise.
9530
9531 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9532
9533 * target-insns.def (prefetch): New targetm instruction pattern.
9534 * tree-ssa-loop-prefetch.c: Include targeth.
9535 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
9536 of HAVE_*/gen_* interface.
9537 * builtins.c (expand_builtin_prefetch): Likewise.
9538 * toplev.c (process_options): Likewise.
9539
9540 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9541
9542 * target-insns.def (untyped_call, untyped_return): New targetm
9543 instruction patterns.
9544 * builtins.c (expand_builtin_apply): Use them instead of
9545 HAVE_*/gen_* interface.
9546 (result_vector): Define unconditionally.
9547
9548 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9549
9550 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
9551 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
9552 (nonlocal_goto_receiver): New targetm instruction patterns.
9553 * builtins.c (expand_builtin_setjmp_setup): Use them instead
9554 of HAVE_*/gen_* interface.
9555 (expand_builtin_setjmp_receiver): Likewise.
9556 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
9557 * except.c (expand_dw2_landing_pad_for_region): Likewise.
9558
9559 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9560
9561 * target.def: Add code_for_* hooks.
9562 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
9563 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
9564 * target-insns.def (casesi, tablejump): New targetm instruction
9565 patterns.
9566 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
9567 (do_tablejump): Likewise.
9568 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
9569 (expand_sjlj_dispatch_table): Likewise.
9570 * targhooks.c (default_case_values_threshold): Likewise.
9571
9572 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
9573
9574 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
9575 Use rtx_insn * instead of rtx.
9576 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
9577 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
9578 (nios2_call_tls_get_addr): Likewise.
9579 (nios2_emit_expensive_div): Likewise.
9580 (nios2_emit_move_sequence): Change return type to bool.
9581 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
9582 Change return type to bool.
9583
9584 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9585
9586 PR target/66747
9587 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
9588
9589 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
9590
9591 PR target/66114
9592 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
9593 of register_operand. Remove constraint.
9594
9595 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
9596
9597 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
9598 the first argument.
9599
9600 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
9601
9602 * attribs.c (decl_attributes): Guard inform with the return value
9603 of the preceding warning.
9604
9605 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
9606
9607 * doc/invoke.texi (moverride): Move to correct section.
9608
9609 2015-07-03 Richard Biener <rguenther@suse.de>
9610
9611 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
9612 Copy from tree.c
9613 (dt_operand::gen_gimple_expr): After valueizing operands
9614 re-canonicalize operand order for commutative tree codes.
9615
9616 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
9617
9618 PR target/66746.
9619 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
9620 is defined.
9621 (__crc32w): Likewise.
9622 (__crc32d): Likewise.
9623 (__rdpmc): Likewise.
9624 (__rdtscp): Likewise.
9625 (_rdpmc): Likewise.
9626 (_rdtscp): Likewise.
9627 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
9628 is defined.
9629
9630 2015-07-03 Richard Biener <rguenther@suse.de>
9631
9632 * fold-const.c (fold_mathfn_compare): Remove.
9633 (fold_inf_compare): Likewise.
9634 (fold_comparison): Move floating point comparison simplifications...
9635 * match.pd: ... to patterns here. Introduce simple_comparisons
9636 operator list and use it for patterns formerly in fold_comparison.
9637
9638 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
9639
9640 PR tree-optimization/66119
9641 * toplev.c (process_options): Don't set up default values for
9642 the sra_max_scalarization_size_{speed,size} parameters.
9643 * tree-sra (analyze_all_variable_accesses): If no values
9644 have been set for the sra_max_scalarization_size_{speed,size}
9645 parameters, call get_move_ratio to get target defaults.
9646
9647 2015-07-03 Richard Biener <rguenther@suse.de>
9648
9649 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
9650 * match.pd: ... here.
9651
9652 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
9653
9654 PR target/37072
9655 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
9656 is not actually the default on FreeBSD.
9657
9658 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9659
9660 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
9661 definition.
9662 (CMPGE_8HI): Likewise.
9663 (CMPGE_4SI): Likewise.
9664 (CMPGE_2DI): Likewise.
9665 (CMPGE_U16QI): Likewise.
9666 (CMPGE_U8HI): Likewise.
9667 (CMPGE_U4SI): Likewise.
9668 (CMPGE_U2DI): Likewise.
9669 (CMPLE_16QI): Likewise.
9670 (CMPLE_8HI): Likewise.
9671 (CMPLE_4SI): Likewise.
9672 (CMPLE_2DI): Likewise.
9673 (CMPLE_U16QI): Likewise.
9674 (CMPLE_U8HI): Likewise.
9675 (CMPLE_U4SI): Likewise.
9676 (CMPLE_U2DI): Likewise.
9677 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9678 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
9679 ALTIVEC_BUILTIN_VEC_CMPLE.
9680 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
9681 floating-point vector modes.
9682 (vector_nlt<mode>): New define_expand.
9683 (vector_nltu<mode>): Likewise.
9684 (vector_ngt<mode>): Likewise.
9685 (vector_ngtu<mode>): Likewise.
9686
9687 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9688
9689 PR rtl-optimization/66706
9690 * combine.c (make_compound_operation): If an AND of SUBREG of
9691 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
9692
9693 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
9694
9695 * tree-pass.h (make_pass_ch_vect): New.
9696 * passes.def: Add pass_ch_vect just before pass_if_conversion.
9697
9698 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
9699 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
9700 make_pass_ch_vect): New.
9701 (pass_ch): Extend ch_base.
9702
9703 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
9704 (ch_base::copy_headers): ...here.
9705
9706 2015-07-02 Richard Biener <rguenther@suse.de>
9707
9708 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
9709 * fold-const.c (get_pointer_modulus_and_residue): Remove.
9710 (fold_binary_loc): Implement (T)ptr & CST in terms of
9711 get_pointer_alignment_1.
9712 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
9713 Make sure to build the alignment test on a SSA name without
9714 final alignment info valid only after the prologue.
9715
9716 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
9717
9718 * config/cris/cris.md ("epilogue"): Remove condition.
9719 ("prologue"): Ditto.
9720
9721 2015-07-02 Richard Biener <rguenther@suse.de>
9722
9723 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
9724 parameter to record a condition that is false.
9725 (record_conditions): When recording an extra NE_EXPR that is
9726 true also record a EQ_EXPR that is false.
9727
9728 2015-07-02 Bin Cheng <bin.cheng@arm.com>
9729
9730 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
9731 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
9732 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
9733 (set_iv, find_interesting_uses_address, add_candidate_1): New
9734 argument to alloc_iv.
9735 (find_interesting_uses_op, find_interesting_uses_cond): Don't
9736 duplicate struct iv.
9737 (free_loop_data): Don't free struct iv explicitly.
9738 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
9739
9740 2015-07-01 DJ Delorie <dj@redhat.com>
9741
9742 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
9743 (LIB_SPEC): Add.
9744 (SUPPORTS_DISCRIMINATOR): Define.
9745
9746 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
9747
9748 PR bootstrap/66685
9749 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
9750 there are no CALLs in the same pattern.
9751
9752 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9753
9754 PR rtl-optimization/61047
9755 * rtlanal.c (get_initial_register_offset): New function.
9756 (rtx_addr_can_trap_p_1): Check offsets of stack references.
9757
9758 2015-07-01 Richard Biener <rguenther@suse.de>
9759
9760 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
9761 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
9762 ~X CMP C -> X CMP' ~C to ...
9763 * match.pd: ... patterns here.
9764
9765 2015-07-01 Nick Clifton <nickc@redhat.com>
9766
9767 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
9768 a 16-bit value into a 20-bit memory slot.
9769
9770 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9771
9772 * doc/sourcebuild.texi (AArch64-specific attributes): Document
9773 "aarch64_tiny", "aarch64_small", "aarch64_large",
9774 "aarch64_little_endian", "aarch64_big_endian".
9775
9776 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9777
9778 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
9779 Document "aarch64_small_fpic".
9780
9781 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9782
9783 * configure.ac: Add check for aarch64 assembler -fpic relocation
9784 modifier support.
9785 * configure: Regenerate.
9786 * config.in: Regenerate.
9787 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
9788 to -fPIC if not support of -fpic relocation modifier in assembler.
9789
9790 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
9791
9792 PR bootstrap/66685
9793 * rtl.c (classify_insn): Handle returns in PARALLELs.
9794
9795 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
9796
9797 PR middle-end/66633
9798 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
9799 to true if the function is nested and if not optimizing.
9800 (convert_local_omp_clauses): Initialize need_frame to true if the
9801 function contains nested functions and if not optimizing.
9802
9803 2015-07-01 Richard Biener <rguenther@suse.de>
9804
9805 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
9806 (X & Y) ^ Y -> ~X & Y transforms to ...
9807 * match.pd: ... here.
9808
9809 2015-07-01 Richard Biener <rguenther@suse.de>
9810
9811 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
9812 of converts to avoid uninteresting noise from the conversion
9813 simplifying patterns.
9814
9815 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
9816
9817 * config/c6x/c6x.c (try_rename_operands): Do not depend on
9818 gcc_assert evaluating its argument for side-effect.
9819
9820 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
9821
9822 PR target/64833
9823 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
9824 flag_pic is set.
9825
9826 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
9827
9828 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
9829 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
9830 (hash_scc): Add this_ref_p and ref_p parameters and pass them
9831 to the inner DFS walk.
9832
9833 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9834
9835 * target-insns.def (jump): New targetm instruction pattern.
9836 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
9837 instead of gen_jump.
9838 (fix_up_crossing_landing_pad): Likewise.
9839 (add_labels_and_missing_jumps): Likewise.
9840 (fix_crossing_conditional_branches): Likewise.
9841 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9842 (force_nonfallthru_and_redirect): Likewise.
9843 * cse.c (cse_insn): Likewise.
9844 * expmed.c (expand_divmod): Likewise.
9845 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
9846 * haifa-sched.c (init_before_recovery): Likewise.
9847 (sched_create_recovery_edges): Likewise.
9848 * ifcvt.c (find_cond_trap): Likewise.
9849 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
9850 (expand_float, expand_fix): Likewise.
9851 * stmt.c (emit_jump): Likewise.
9852
9853 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9854
9855 * defaults.h (HAVE_load_multiple, gen_load_multiple)
9856 (HAVE_store_multiple, gen_store_multiple): Delete.
9857 * target-insns.def (load_multiple, store_multiple): New targetm
9858 instruction patterns.
9859 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
9860 of HAVE_*/gen_* interface.
9861
9862 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9863
9864 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
9865 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
9866 (gen_mem_signal_fence): Delete.
9867 * target-insns.def (mem_signal_fence, mem_thread_fence)
9868 (memory_barrier): New targetm instruction patterns.
9869 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
9870 interface.
9871 (expand_mem_signal_fence): Likewise.
9872
9873 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9874
9875 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
9876 * target-insns.def (epilogue, prologue, sibcall_prologue): New
9877 targetm instruction patterns.
9878 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
9879 interface.
9880 * calls.c (expand_call): Likewise.
9881 * cfgrtl.c (cfg_layout_finalize): Likewise.
9882 * df-scan.c (df_get_entry_block_def_set): Likewise.
9883 (df_get_exit_block_use_set): Likewise.
9884 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
9885 * final.c (final_start_function): Likewise.
9886 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9887 (reposition_prologue_and_epilogue_notes): Likewise.
9888 * reorg.c (find_end_label): Likewise.
9889 * toplev.c (process_options): Likewise.
9890
9891 2015-06-30 David Malcolm <dmalcolm@redhat.com>
9892
9893 * typed-splay-tree.h: New file.
9894
9895 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
9896
9897 PR debug/66691
9898 * lra-int.h (lra_substitute_pseudo): Add a parameter.
9899 (lra_substitute_pseudo_within_insn): Ditto.
9900 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
9901 of constant.
9902 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
9903 to lra_substitute_pseudo.
9904 * lra-lives.c (process_bb_lives): Add an argument to
9905 lra_substitute_pseudo_within_insn call.
9906 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
9907 argument to lra_substitute_pseudo and
9908 lra_substitute_pseudo_within_insn calls.
9909 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
9910
9911 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
9912
9913 * configure: Regenerated.
9914
9915 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
9916
9917 * config.gcc: Support i[34567]86-*-elfiamcu target.
9918 * config/i386/iamcu.h: New.
9919 * config/i386/i386.opt: Add -miamcu.
9920 * doc/invoke.texi: Document -miamcu.
9921 * common/config/i386/i386-common.c (ix86_handle_option): Turn
9922 off x87/MMX/SSE/AVX codegen for -miamcu.
9923 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9924 __iamcu/__iamcu__ for -miamcu.
9925 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
9926 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
9927 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
9928 * config/i386/i386.c (ix86_option_override_internal): Ignore and
9929 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
9930 MCU by default. Default long double to 64-bit for Intel MCU.
9931 Turn on -freg-struct-return for Intel MCU. Issue an error when
9932 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
9933 AVX is turned on.
9934 (function_arg_advance_32): Pass value whose size is no larger
9935 than 8 bytes in registers for Intel MCU.
9936 (function_arg_32): Likewise.
9937 (ix86_return_in_memory): Return value whose size is no larger
9938 than 8 bytes in registers for Intel MCU.
9939 (iamcu_alignment): New function.
9940 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
9941 true.
9942 (ix86_local_alignment): Don't increase alignment for Intel MCU.
9943 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
9944 true.
9945
9946 2015-06-30 Marek Polacek <polacek@redhat.com>
9947
9948 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
9949 both operands of the resulting expression.
9950
9951 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
9952 the final expression with the operand's type and then convert
9953 it to the type of the expression.
9954
9955 2015-06-30 Richard Biener <rguenther@suse.de>
9956
9957 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
9958 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
9959 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
9960 * match.pd: ... to patterns here.
9961
9962 2015-06-30 Richard Biener <rguenther@suse.de>
9963
9964 PR tree-optimization/66704
9965 * tree-vect-data-refs.c (vect_setup_realignment): Use
9966 make_ssa_name for non-SSA name source.
9967
9968 2015-06-30 Jakub Jelinek <jakub@redhat.com>
9969
9970 PR middle-end/66702
9971 * omp-low.c (simd_clone_adjust): Handle addressable linear
9972 or uniform parameters or non-gimple type uniform parameters.
9973
9974 2015-06-30 Richard Biener <rguenther@suse.de>
9975
9976 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
9977 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
9978 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
9979 * match.pd: ... here.
9980 Add a few cases of A - B -> A + (-B) when B "easily" negates.
9981 Move (x & y) | x -> x and friends before
9982 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
9983
9984 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
9985
9986 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
9987 -mfix-ut699 is not specified.
9988 (leon3_load): Rename into...
9989 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
9990 is specified.
9991
9992 2015-06-30 Marek Polacek <polacek@redhat.com>
9993
9994 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
9995 * match.pd: ... here.
9996
9997 2015-06-30 Richard Biener <rguenther@suse.de>
9998
9999 * target-insns.def (canonicalize_funcptr_for_compare): Add.
10000 * fold-const.c (build_range_check): Replace uses of
10001 HAVE_canonicalize_funcptr_for_compare.
10002 (fold_widened_comparison): Likewise.
10003 (fold_sign_changed_comparison): Likewise.
10004 * dojump.c: Include "target.h".
10005 (do_compare_and_jump): Replace uses of
10006 HAVE_canonicalize_funcptr_for_compare and
10007 gen_canonicalize_funcptr_for_compare.
10008 * expr.c (do_store_flag): Likewise.
10009
10010 2015-06-30 Tom de Vries <tom@codesourcery.com>
10011
10012 PR tree-optimization/66652
10013 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
10014 max_loop_iterations to determine if nit + 1 overflows.
10015
10016 2015-06-30 Richard Biener <rguenther@suse.de>
10017
10018 * tree-vrp.c (register_edge_assert_for_2): Also register
10019 asserts for dominating conversion results.
10020
10021 2015-06-30 Bin Cheng <bin.cheng@arm.com>
10022
10023 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
10024 field in struct iv.
10025
10026 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
10027
10028 PR target/66509
10029 * configure.ac: Fix filds and fildq test for 64-bit.
10030 * configure: Regenerated.
10031
10032 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
10033
10034 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
10035 (nvptx_reorg): Here. Keep the non-subreg pieces.
10036
10037 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
10038
10039 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
10040 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
10041
10042 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
10043
10044 * config/i386/i386.md (*jcc_1): Use %! in asm template.
10045 Set attribute "length_nobnd" instead of "length".
10046 (*jcc_2): Ditto.
10047 (jump): Ditto.
10048 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
10049
10050 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
10051
10052 * config/nios2/nios2.c (nios2_delegitimize_address): Make
10053 assert less restrictive.
10054
10055 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
10056
10057 PR fortran/66605
10058 * cgraphunit.c (cgraph_node::finalize_function): Do not call
10059 do_warn_unused_parameter.
10060 * function.c (do_warn_unused_parameter): Move from here.
10061 * function.h (do_warn_unused_parameter): Do not declare.
10062
10063 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10064
10065 PR target/65697
10066 * gcc.target/arm/armv-sync-comp-swap.c: New.
10067 * gcc.target/arm/armv-sync-op-acquire.c: New.
10068 * gcc.target/arm/armv-sync-op-full.c: New.
10069 * gcc.target/arm/armv-sync-op-release.c: New.
10070
10071 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10072
10073 PR target/65697
10074 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
10075 initial acquire barrier with final barrier.
10076
10077 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10078
10079 PR target/65697
10080 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
10081 initial acquire barrier with final barrier.
10082
10083 2015-06-29 Richard Henderson <rth@redhat.com>
10084
10085 * config/i386/constraints.md (Bf): New constraint.
10086 * config/i386/i386-c.c (ix86_target_macros): Define
10087 __GCC_ASM_FLAG_OUTPUTS__.
10088 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
10089 as flags outputs.
10090 * doc/extend.texi (FlagOutputOperands): Document them.
10091
10092 2015-06-29 Jiong Wang <jiong.wang@arm.com>
10093
10094 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
10095 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
10096 unspec name.
10097 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
10098 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
10099 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
10100 (aarch64_symbol_context): Ditto.
10101 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
10102 and use new pattern name.
10103 (aarch64_expand_mov_immediate): Ditto.
10104 (aarch64_print_operand): Ditto.
10105 (aarch64_classify_tls_symbol): Ditto.
10106
10107 2015-06-29 Marek Polacek <polacek@redhat.com>
10108 Marc Glisse <marc.glisse@inria.fr>
10109
10110 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
10111 * match.pd: ... pattern here.
10112
10113 2015-06-29 Tom de Vries <tom@codesourcery.com>
10114
10115 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
10116 function structure.
10117
10118 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10119
10120 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
10121 feature description, split out the native option, add a link to
10122 the feature documentation, rearrange and slightly rewrite text.
10123 (Aarch64 options, -mcpu): Likewise.
10124 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
10125 +rdma implies Adv. SIMD.
10126
10127 2015-06-29 Marek Polacek <polacek@redhat.com>
10128
10129 PR c/66322
10130 * function.c (stack_protect_epilogue): Remove a cast to int.
10131 * doc/invoke.texi: Update -Wswitch-bool description.
10132
10133 2015-06-29 Richard Biener <rguenther@suse.de>
10134
10135 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
10136 * fold-const.c (fold_binary_loc): Move &A - &B simplification
10137 via ptr_difference_const ...
10138 * match.pd: ... here.
10139 When matching (X ^ Y) == Y also match with swapped operands.
10140
10141 2015-06-29 Richard Biener <rguenther@suse.de>
10142
10143 * lto-streamer.h (LTO_major_version): Bump to 5.
10144
10145 2015-06-29 Richard Biener <rguenther@suse.de>
10146
10147 PR tree-optimization/66677
10148 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
10149 STMT_VINFO_VEC_STMT clobbering less strict.
10150
10151 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
10152
10153 PR middle-end/64130
10154 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
10155 division, compute max and min when value ranges for dividend and
10156 divisor are available.
10157
10158 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
10159 Sandra Loosemore <sandra@codesourcery.com>
10160
10161 * regrename.h (regrename_do_replace): Change to return bool.
10162 * regrename.c (rename_chains): Check return value of
10163 regname_do_replace.
10164 (regrename_do_replace): Re-validate the modified insns and
10165 return bool status.
10166 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10167 Update to match rename_chains changes.
10168 * config/c6x/c6x.c (try_rename_operands): Assert that
10169 regrename_do_replace returns true.
10170
10171 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
10172
10173 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
10174 operand 2 here. Use copy_addr_to_reg to copy non-index
10175 register operand 2 to a temporary.
10176 (<mode>_stx): Ditto for operand 1.
10177 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
10178 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
10179 (ix86_store_bounds): Ditto.
10180
10181 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
10182
10183 * print-tree.c (print_node) [TREE_VEC]: Print its length.
10184
10185 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
10186
10187 * gimple.c (gimple_call_set_fndecl): Remove.
10188 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
10189 build1_loc directly instead of build_fold_addr_expr_loc.
10190
10191 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
10192
10193 * hash-map.h (hash_map::traverse): Use the definition of the
10194 Key typedef rather than the typedef itself.
10195
10196 2015-06-26 Martin Jambor <mjambor@suse.cz>
10197
10198 PR debug/66301
10199 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
10200 NULL instead of calling dump_enabled_p.
10201
10202 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10203
10204 * config/aarch64/aarch64.opt: (override): New.
10205 * doc/invoke.texi (override): Document.
10206 * config/aarch64/aarch64.c (aarch64_flag_desc): New
10207 (aarch64_fusible_pairs): Likewise.
10208 (aarch64_tuning_flags): Likewise.
10209 (aarch64_tuning_override_function): Likewise.
10210 (aarch64_tuning_override_functions): Likewise.
10211 (aarch64_parse_one_option_token): Likewise.
10212 (aarch64_parse_boolean_options): Likewise.
10213 (aarch64_parse_fuse_string): Likewise.
10214 (aarch64_parse_tune_string): Likewise.
10215 (aarch64_parse_one_override_token): Likewise.
10216 (aarch64_parse_override_string): Likewise.
10217 (aarch64_override_options): Parse the -override string if it
10218 is present.
10219
10220 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10221
10222 * config/aarch64/aarch64-protos.h (tune_params): Remove
10223 const from members.
10224 (aarch64_tune_params): Remove const, change to no longer be
10225 a pointer.
10226 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
10227 change to no longer be a pointer, initialize to generic_tunings.
10228 (aarch64_min_divisions_for_recip_mul): Change dereference of
10229 aarch64_tune_params to member access.
10230 (aarch64_reassociation_width): Likewise.
10231 (aarch64_rtx_mult_cost): Likewise.
10232 (aarch64_address_cost): Likewise.
10233 (aarch64_branch_cost): Likewise.
10234 (aarch64_rtx_costs): Likewise.
10235 (aarch64_register_move_cost): Likewise.
10236 (aarch64_memory_move_cost): Likewise.
10237 (aarch64_sched_issue_rate): Likewise.
10238 (aarch64_builtin_vectorization_cost): Likewise.
10239 (aarch64_override_options): Take a copy of the selected tuning
10240 struct in to aarch64_tune_params, rather than just setting
10241 a pointer, change dereferences of aarch64_tune_params to member
10242 accesses.
10243 (aarch64_override_options_after_change): Change dereferences of
10244 aarch64_tune_params to member access.
10245 (aarch64_macro_fusion_p): Likewise.
10246 (aarch_macro_fusion_pair_p): Likewise.
10247 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
10248
10249 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10250
10251 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
10252 (aarch64_tune_flags): Likewise.
10253 (AARCH64_TUNE_FMA_STEERING): Likewise.
10254 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
10255 to AARCH64_FL_USE_FMA_STEERING_PASS.
10256 (cortex-a57.cortex-a53): Likewise.
10257 (cortex-a72): Use cortexa72_tunings.
10258 (cortex-a72.cortex-a53): Likewise.
10259 (exynos-m1): Likewise.
10260 * config/aarch64/aarch64-protos.h (tune_params): Add
10261 a field: extra_tuning_flags.
10262 * config/aarch64/aarch64-tuning-flags.def: New.
10263 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
10264 (aarch64_extra_tuning_flags): Likewise.
10265 (aarch64_tune_params): Declare here.
10266 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
10267 (cortexa53_tunings): Likewise.
10268 (cortexa57_tunings): Likewise.
10269 (thunderx_tunings): Likewise.
10270 (xgene1_tunings): Likewise.
10271 (cortexa72_tunings): New.
10272 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
10273 (gate): Check against aarch64_tune_params.
10274 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
10275 aarch64-protos.h.
10276
10277 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10278
10279 * config/aarch64/aarch64-fusion-pairs.def: New.
10280 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
10281 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
10282 aarch64_fusion_pairs.
10283 (AARCH64_FUSE_MOV_MOVK): Likewise.
10284 (AARCH64_FUSE_ADRP_ADD): Likewise.
10285 (AARCH64_FUSE_MOVK_MOVK): Likewise.
10286 (AARCH64_FUSE_ADRP_LDR): Likewise.
10287 (AARCH64_FUSE_CMP_BRANCH): Likewise.
10288
10289 2015-06-26 Jiong Wang <jiong.wang@arm.com>
10290
10291 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
10292 SYMBOL_SMALL_GOT_28K.
10293 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
10294 relocation modifiers.
10295 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
10296 (ldr_got_small_28k_<mode>): New.
10297 (ldr_got_small_28k_sidi): New.
10298 * config/aarch64/iterators.md (got_modifier): New mode iterator.
10299 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
10300 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
10301 SYMBOL_SMALL_GOT_28K.
10302 (aarch64_rtx_costs): Add costs for new instruction sequences.
10303 (initialize_aarch64_code_model): Initialize new model.
10304 (aarch64_classify_symbol): Recognize new model and new symbol classification.
10305 (aarch64_asm_preferred_eh_data_format): Support new model.
10306 (aarch64_load_symref_appropriately): Generate new instruction
10307 sequences for -fpic.
10308 (TARGET_USE_PSEUDO_PIC_REG): New definition.
10309 (aarch64_use_pseudo_pic_reg): New function.
10310
10311 2015-06-26 Jiong Wang <jiong.wang@arm.com>
10312
10313 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
10314 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
10315 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
10316 (aarch64_expand_mov_immediate): Ditto.
10317 (aarch64_print_operand): Ditto.
10318 (aarch64_classify_symbol): Ditto.
10319
10320 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
10321
10322 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
10323
10324 2015-06-26 Bin Cheng <bin.cheng@arm.com>
10325
10326 PR bootstrap/66638
10327 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
10328 assertion failed. Remove assertion itself.
10329
10330 2015-06-26 Richard Biener <rguenther@suse.de>
10331
10332 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
10333 and -A CMP CST -> A CMP -CST which is redundant with a pattern
10334 in match.pd.
10335 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
10336 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
10337 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
10338 * match.pd: ... patterns here.
10339
10340 2015-06-26 Marek Polacek <polacek@redhat.com>
10341
10342 * match.pd ((x | y) & ~(x & y) -> x ^ y,
10343 (x | y) & (~x ^ y) -> x & y): New patterns.
10344
10345 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
10346
10347 * rtl.h (emit): Add an optional boolean parameter to control
10348 whether barriers are emitted.
10349 * emit-rtl.c (emit): Likewise.
10350 * gensupport.c (get_emit_function): Return null rather than "emit".
10351 * genemit.c (gen_emit_seq): Handle the null return value.
10352 Don't emit barriers after the final instruction in the sequence.
10353 * gentarget-def.c (main): Don't emit barriers after the instruction.
10354
10355 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10356
10357 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
10358 TARGET_UNIFIED_ASM.
10359
10360 2015-06-26 Richard Biener <rguenther@suse.de>
10361
10362 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
10363
10364 2015-06-26 Richard Biener <rguenther@suse.de>
10365
10366 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
10367 irrespective on whether the inner operation has a single use
10368 of both off are constant.
10369
10370 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
10371 Segher Boessenkool <segher@kernel.crashing.org>
10372
10373 PR target/66412
10374 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
10375 before doing PUT_MODE or PUT_CODE on operands to avoid
10376 in-place RTX modification.
10377
10378 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
10379
10380 * gentarget-def.c (def_target_insn): Cast return of strtol to
10381 unsigned int.
10382
10383 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10384
10385 * gimple.h (gimple_call_set_fn): Move inline function.
10386 * gimple.c (gimple_call_set_fn): Relocate here.
10387
10388 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
10389
10390 PR target/65979
10391 PR target/66611
10392 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
10393 the replacement insn will work.
10394
10395 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
10396
10397 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
10398 by default.
10399
10400 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10401
10402 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
10403 * cgraph.h: Include ipa-ref.h and plugin-api.h.
10404 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
10405 (symtab_node::address_can_be_compared_p): Move function.
10406 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
10407 definition here.
10408 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
10409 * auto-profile.c: Likewise.
10410 * bb-reorder.c: Likewise.
10411 * builtins.c: Likewise.
10412 * calls.c: Likewise.
10413 * cfgexpand.c: Likewise.
10414 * cgraphbuild.c: Likewise.
10415 * cgraphclones.c: Likewise.
10416 * cgraphunit.c: Likewise.
10417 * combine.c: Likewise.
10418 * coverage.c: Likewise.
10419 * data-streamer-in.c: Likewise.
10420 * data-streamer-out.c: Likewise.
10421 * data-streamer.c: Likewise.
10422 * dbxout.c: Likewise.
10423 * dwarf2out.c: Likewise.
10424 * except.c: Likewise.
10425 * expr.c: Likewise.
10426 * final.c: Likewise.
10427 * fold-const.c: Likewise.
10428 * ggc-page.c: Likewise.
10429 * gimple-fold.c: Likewise.
10430 * gimple-iterator.c: Likewise.
10431 * gimple-pretty-print.c: Likewise.
10432 * gimple-streamer-in.c: Likewise.
10433 * gimple-streamer-out.c: Likewise.
10434 * gimple.c: Likewise.
10435 * gimplify.c: Likewise.
10436 * ipa-chkp.c: Likewise.
10437 * ipa-comdats.c: Likewise.
10438 * ipa-cp.c: Likewise.
10439 * ipa-devirt.c: Likewise.
10440 * ipa-icf-gimple.c: Likewise.
10441 * ipa-icf.c: Likewise.
10442 * ipa-inline-analysis.c: Likewise.
10443 * ipa-inline-transform.c: Likewise.
10444 * ipa-inline.c: Likewise.
10445 * ipa-polymorphic-call.c: Likewise.
10446 * ipa-profile.c: Likewise.
10447 * ipa-prop.c: Likewise.
10448 * ipa-pure-const.c: Likewise.
10449 * ipa-ref.c: Likewise.
10450 * ipa-reference.c: Likewise.
10451 * ipa-split.c: Likewise.
10452 * ipa-utils.c: Likewise.
10453 * ipa-visibility.c: Likewise.
10454 * ipa.c: Likewise.
10455 * langhooks.c: Likewise.
10456 * lto-cgraph.c: Likewise.
10457 * lto-compress.c: Likewise.
10458 * lto-opts.c: Likewise.
10459 * lto-section-in.c: Likewise.
10460 * lto-section-out.c: Likewise.
10461 * lto-streamer-in.c: Likewise.
10462 * lto-streamer-out.c: Likewise.
10463 * lto-streamer.c: Likewise.
10464 * omp-low.c: Likewise.
10465 * opts-global.c: Likewise.
10466 * passes.c: Likewise.
10467 * predict.c: Likewise.
10468 * print-tree.c: Likewise.
10469 * profile.c: Likewise.
10470 * ree.c: Likewise.
10471 * sanopt.c: Likewise.
10472 * stor-layout.c: Likewise.
10473 * symtab.c: Likewise.
10474 * toplev.c: Likewise.
10475 * trans-mem.c: Likewise.
10476 * tree-cfg.c: Likewise.
10477 * tree-chkp.c: Likewise.
10478 * tree-eh.c: Likewise.
10479 * tree-emutls.c: Likewise.
10480 * tree-inline.c: Likewise.
10481 * tree-nested.c: Likewise.
10482 * tree-parloops.c: Likewise.
10483 * tree-pretty-print.c: Likewise.
10484 * tree-profile.c: Likewise.
10485 * tree-sra.c: Likewise.
10486 * tree-ssa-alias.c: Likewise.
10487 * tree-ssa-live.c: Likewise.
10488 * tree-ssa-loop-ivcanon.c: Likewise.
10489 * tree-ssa-loop-ivopts.c: Likewise.
10490 * tree-ssa-pre.c: Likewise.
10491 * tree-ssa-sccvn.c: Likewise.
10492 * tree-ssa-strlen.c: Likewise.
10493 * tree-ssa-structalias.c: Likewise.
10494 * tree-streamer-in.c: Likewise.
10495 * tree-streamer-out.c: Likewise.
10496 * tree-streamer.c: Likewise.
10497 * tree-switch-conversion.c: Likewise.
10498 * tree-tailcall.c: Likewise.
10499 * tree-vect-data-refs.c: Likewise.
10500 * tree-vect-stmts.c: Likewise.
10501 * tree-vectorizer.c: Likewise.
10502 * tree.c: Likewise.
10503 * tsan.c: Likewise.
10504 * ubsan.c: Likewise.
10505 * value-prof.c: Likewise.
10506 * varasm.c: Likewise.
10507 * varpool.c: Likewise.
10508 * config/arm/arm.c: Likewise.
10509 * config/bfin/bfin.c: Likewise.
10510 * config/c6x/c6x.c: Likewise.
10511 * config/cris/cris.c: Likewise.
10512 * config/darwin-c.c: Likewise.
10513 * config/darwin.c: Likewise.
10514 * config/i386/i386.c: Likewise.
10515 * config/i386/winnt.c: Likewise.
10516 * config/microblaze/microblaze.c: Likewise.
10517 * config/mips/mips.c: Likewise.
10518 * config/rs6000/rs6000.c: Likewise.
10519 * config/rx/rx.c: Likewise.
10520 * config/s390/s390.c: Likewise.
10521 * config/tilegx/mul-tables.c: Likewise.
10522
10523 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10524
10525 * config/aarch64/aarch64.c, config/alpha/alpha.c,
10526 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
10527 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
10528 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
10529 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
10530 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
10531 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
10532 config/microblaze/microblaze.c, config/mips/mips.c,
10533 config/mmix/mmix.c, config/mn10300/mn10300.c,
10534 config/moxie/moxie.c, config/msp430/msp430.c,
10535 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
10536 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
10537 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
10538 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
10539 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10540 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
10541 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
10542 target-def.h include.
10543 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
10544
10545 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10546
10547 * Makefile.in (TARGET_DEF): Add target-insns.def.
10548 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
10549 (build/gentarget-def.o): New rule.
10550 (genprogrtl): Add target-def.
10551 * target-insns.def, gentarget-def.c: New files.
10552 * target.def: Add targetm.have_* and targetm.gen_* hooks,
10553 based on the contents of target-insns.def.
10554 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
10555 (HAVE_return, gen_return): Delete.
10556 * target-def.h: Include insn-target-def.h.
10557 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
10558 instead of direct calls. Rely on them to do the appropriate assertions.
10559 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
10560 (convert_jumps_to_returns): Use targetm interface instead of
10561 direct calls.
10562 (thread_prologue_and_epilogue_insns): Likewise.
10563 * reorg.c (find_end_label, dbr_schedule): Likewise.
10564 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
10565 * shrink-wrap.c (convert_to_simple_return): Likewise.
10566 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
10567
10568 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10569
10570 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
10571 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10572 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
10573 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
10574 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
10575 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
10576 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
10577 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
10578 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
10579 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
10580 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
10581 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
10582 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
10583 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10584 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
10585 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
10586 includes to end.
10587
10588 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10589
10590 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
10591 (unbounded_int_hashmap_traits::key_type): Likewise.
10592 * hash-map.h (hash_map): Get the key type from the traits.
10593 * hash-traits.h (default_hash_traits): By default, inherit from the
10594 template parameter.
10595 * alias.c (alias_set_traits): Delete.
10596 (alias_set_entry_d::children): Use alias_set_hash as the first
10597 template parameter.
10598 (record_alias_subset): Update accordingly.
10599 * except.c (tree_hash_traits): Delete.
10600 (type_to_runtime_map): Use tree_hash as the first template parameter.
10601 (init_eh): Update accordingly.
10602 * genmatch.c (capture_id_map_hasher): Delete.
10603 (cid_map_t): Use nofree_string_hash as first template parameter.
10604 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
10605 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
10606 Use symbol_compare_hash as the first template parameter in
10607 subdivide_hash_map.
10608 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
10609 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
10610 template parameter.
10611 * passes.c (pass_registry_hasher): Delete.
10612 (name_to_pass_map): Use nofree_string_hash as the first template
10613 parameter.
10614 (register_pass_name): Update accordingly.
10615 * sanopt.c (sanopt_tree_map_traits): Delete.
10616 (sanopt_tree_triplet_map_traits): Delete.
10617 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
10618 template parameter.
10619 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
10620 the first template parameter.
10621 * sese.c (rename_map_hasher): Delete.
10622 (rename_map_type): Use tree_ssa_name_hash as the first template
10623 parameter.
10624 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
10625 (function_summary::m_map): Use map_hash as the first template
10626 parameter.
10627 (function_summary::release): Update accordingly.
10628 * tree-if-conv.c (phi_args_hash_traits): Delete.
10629 (predicate_scalar_phi): Use tree_operand_hash as the first template
10630 parameter to phi_arg_map.
10631 * tree-inline.h (dependence_hasher): Delete.
10632 (copy_body_data::dependence_map): Use dependence_hash as the first
10633 template parameter.
10634 * tree-inline.c (remap_dependence_clique): Update accordingly.
10635 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
10636 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
10637 parameter.
10638 (addr_stridxptr): Update accordingly.
10639 * value-prof.c (profile_id_traits): Delete.
10640 (cgraph_node_map): Use profile_id_hash as the first template
10641 parameter.
10642 (init_node_map): Update accordingly.
10643 * config/alpha/alpha.c (string_traits): Delete.
10644 (machine_function::links): Use nofree_string_hash as the first
10645 template parameter.
10646 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
10647 * config/m32c/m32c.c (pragma_traits): Delete.
10648 (pragma_htab): Use nofree_string_hash as the first template parameter.
10649 (m32c_note_pragma_address): Update accordingly.
10650 * config/mep/mep.c (pragma_traits): Delete.
10651 (pragma_htab): Use nofree_string_hash as the first template parameter.
10652 (mep_note_pragma_flag): Update accordingly.
10653 * config/mips/mips.c (mips16_flip_traits): Delete.
10654 (mflip_mips16_htab): Use nofree_string_hash as the first template
10655 parameter.
10656 (mflip_mips16_use_mips16_p): Update accordingly.
10657 (local_alias_traits): Delete.
10658 (mips16_local_aliases): Use nofree_string_hash as the first template
10659 parameter.
10660 (mips16_local_alias): Update accordingly.
10661
10662 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10663
10664 * hash-map-traits.h (default_hashmap_traits): Delete.
10665
10666 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10667
10668 * hash-map-traits.h (unbounded_hashmap_traits): New class.
10669 (unbounded_int_hashmap_traits): Likewise.
10670 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
10671
10672 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10673
10674 * ipa-icf.h (symbol_compare_hash): New class.
10675 (symbol_compare_hashmap_traits): Use it.
10676 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
10677 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
10678 (mem_alloc_description::reverse_mem_map_t): Remove redundant
10679 default_hashmap_traits.
10680 * sanopt.c (sanopt_tree_triplet_hash): New class.
10681 (sanopt_tree_triplet_map_traits): Use it.
10682
10683 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10684
10685 * gengtype-parse.c (require_template_declaration): Allow '+' in
10686 template parameters. Consolidate cases.
10687 * hash-traits.h (int_hash): New class.
10688 * alias.c (alias_set_hash): New structure.
10689 (alias_set_traits): Use it.
10690 * symbol-summary.h (function_summary::map_hash): New class.
10691 (function_summary::summary_hashmap_traits): Use it.
10692 * tree-inline.h (dependence_hash): New class.
10693 (dependence_hasher): Use it.
10694 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
10695 * value-prof.c (profile_id_hash): New class.
10696 (profile_id_traits): Use it.
10697
10698 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10699
10700 * config/mips/mips.c (mips16_flip_traits): Use it.
10701 (local_alias_traits, mips16_local_aliases): Convert from a map of
10702 rtxes to a map of symbol names.
10703 (mips16_local_alias): Update accordingly.
10704
10705 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10706
10707 * hash-traits.h (string_hash, nofree_string_hash): New classes.
10708 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
10709 * passes.c (pass_registry_hasher): Likewise.
10710 * config/alpha/alpha.c (string_traits): Likewise.
10711 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
10712 * config/m32c/m32c.c (pragma_traits): Likewise.
10713 * config/mep/mep.c (pragma_traits): Likewise.
10714
10715 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10716
10717 * tree-hash-traits.h (tree_hash): New class.
10718 * except.c: Include tree-hash-traits.h.
10719 (tree_hash_traits): Use tree_hash.
10720
10721 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10722
10723 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
10724 * sese.c: Include tree-hash-traits.h.
10725 (rename_map_hasher): Use tree_ssa_name_hasher.
10726
10727 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10728
10729 * tree-hash-traits.h (tree_decl_hash): New class.
10730 * tree-ssa-strlen.c: Include tree-hash-traits.h.
10731 (stridxlist_hash_traits): Use tree_decl_hash.
10732
10733 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10734
10735 * tree-hash-traits.h: New file.
10736 (tree_operand_hash): New class.
10737 * sanopt.c: Include tree-hash-traits.h.
10738 (sanopt_tree_map_traits): Use tree_operand_hash.
10739 * tree-if-conv.c: Include tree-hash-traits.h.
10740 (phi_args_hash_traits): Use tree_operand_hash.
10741 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
10742 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
10743
10744 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10745
10746 * hash-map-traits.h: Include hash-traits.h.
10747 (simple_hashmap_traits): New class.
10748 * mem-stats.h (hash_map): Change the default traits to
10749 simple_hashmap_traits<default_hash_traits<Key> >.
10750
10751 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10752
10753 * hash-table.h: Update comments.
10754
10755 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10756
10757 * hash-traits.h (default_hash_traits): New structure.
10758 * hash-set.h (default_hashset_traits): Delete.
10759 (hash_set): Use default_hash_traits<Key> instead of
10760 default_hashset_traits. Delete hash_entry type and use Key directly.
10761 * ipa-devirt.c (pair_traits): Delete.
10762 (default_hash_traits <type_pair>): Override.
10763 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
10764 (odr_types_equivalent_p, add_type_duplicate): Likewise.
10765
10766 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10767
10768 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
10769
10770 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10771
10772 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
10773 (has_is_empty, is_empty_helper): Delete.
10774 (has_mark_deleted, mark_deleted_helper): Delete.
10775 (has_mark_empty, mark_empty_helper): Delete.
10776 (hash_table::is_deleted): Call the Descriptor unconditionally.
10777 (hash_table::is_empty): Likewise.
10778 (hash_table::mark_deleted): Likewise.
10779 (hash_table::mark_empty): Likewise.
10780
10781 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10782
10783 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
10784 redundant typedefs and members.
10785 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
10786 redundant typedefs.
10787 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
10788 * ipa-devirt.c (odr_name_hasher): Likewise.
10789 (polymorphic_call_target_hasher): Likewise.
10790 * ira-costs.c (cost_classes_hasher): Likewise.
10791 * statistics.c (stats_counter_hasher): Likewise.
10792 * trans-mem.c (log_entry_hasher): Likewise.
10793 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10794 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
10795 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
10796 * var-tracking.c (variable_hasher): Likewise.
10797 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
10798 Remove redundant typedefs and members.
10799
10800 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10801
10802 * hash-traits.h (ggc_cache_hasher): Rename to...
10803 (ggc_cache_remove): ...this and remove typedefs.
10804 (ggc_cache_ptr_hash): New class.
10805 * hash-table.h: Update commentary.
10806 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
10807 rather than ggc_cache_hasher.
10808 (const_wide_int_hasher, reg_attr_hasher): Likewise.
10809 (const_double_hasher, const_fixed_hasher): Likewise.
10810 * function.c (insn_cache_hasher): Likewise.
10811 * trans-mem.c (tm_wrapper_hasher): Likewise.
10812 * tree.h (tree_decl_map_cache_hasher): Likewise.
10813 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
10814 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
10815 * ubsan.c (tree_type_map_cache_hasher): Likewise.
10816 * varasm.c (tm_clone_hasher): Likewise.
10817 * config/i386/i386.c (dllimport_hasher): Likewise.
10818 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
10819 (tree_hasher): Likewise.
10820
10821 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10822
10823 * hash-traits.h (ggc_hasher): Rename to...
10824 (ggc_remover): ...this and remove typedefs.
10825 (ggc_cache_hasher): Update accordingly. Add typedefs.
10826 (ggc_ptr_hash): New class.
10827 * hash-table.h: Update comment.
10828 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
10829 ggc_hasher.
10830 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
10831 (tree_descriptor_hasher): Likewise.
10832 * cgraph.c (function_version_hasher): Likewise.
10833 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
10834 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
10835 (dw_loc_list_hasher, addr_hasher): Likewise.
10836 * function.h (used_type_hasher): Likewise.
10837 * function.c (temp_address_hasher): Likewise.
10838 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
10839 * libfuncs.h (libfunc_hasher): Likewise.
10840 * lto-streamer.h (decl_state_hasher): Likewise.
10841 * optabs.c (libfunc_decl_hasher): Likewise.
10842 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
10843 * varasm.c (section_hasher, object_block_hasher): Likewise.
10844 (const_rtx_desc_hasher): Likewise.
10845 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
10846 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
10847
10848 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10849
10850 * hash-traits.h (free_ptr_hash): New class.
10851 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
10852 rather than typed_free_remove. Remove redudant typedefs.
10853 (external_ref_hasher): Likewise.
10854 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
10855 (ehspec_hasher): Likewise.
10856 * ggc-common.c (saving_hasher): Likewise.
10857 * gimplify.c (gimplify_hasher): Likewise.
10858 * haifa-sched.c (delay_i2_hasher): Likewise.
10859 * loop-invariant.c (invariant_expr_hasher): Likewise.
10860 * loop-iv.c (biv_entry_hasher): Likewise.
10861 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
10862 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
10863 * tree-cfg.c (locus_discrim_hasher): Likewise.
10864 * tree-eh.c (finally_tree_hasher): Likewise.
10865 * tree-into-ssa.c (var_info_hasher): Likewise.
10866 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
10867 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
10868 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
10869 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
10870 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
10871 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
10872 (shared_bitmap_hasher): Likewise.
10873 * tree-ssa-threadupdate.c (redirection_data): Likewise.
10874 * tree-vectorizer.h (peel_info_hasher): Likewise.
10875 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
10876 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
10877
10878 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10879
10880 * hash-table.h: Update comments.
10881 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
10882 (nofree_ptr_hash): New class.
10883 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
10884 than typed_noop_remove. Remove redudant typedefs.
10885 * attribs.c (attribute_hasher): Likewise.
10886 * cfg.c (bb_copy_hasher): Likewise.
10887 * cselib.c (cselib_hasher): Likewise.
10888 * dse.c (invariant_group_base_hasher): Likewise.
10889 * dwarf2cfi.c (trace_info_hasher): Likewise.
10890 * dwarf2out.c (macinfo_entry_hasher): Likewise.
10891 (comdat_type_hasher, loc_list_hasher): Likewise.
10892 * gcse.c (pre_ldst_expr_hasher): Likewise.
10893 * genmatch.c (id_base): Likewise.
10894 * genrecog.c (test_pattern_hasher): Likewise.
10895 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
10896 * haifa-sched.c (delay_i1_hasher): Likewise.
10897 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
10898 * ipa-icf.h (congruence_class_group_hash): Likewise.
10899 * ipa-profile.c (histogram_hash): Likewise.
10900 * ira-color.c (allocno_hard_regs_hasher): Likewise.
10901 * lto-streamer.h (string_slot_hasher): Likewise.
10902 * lto-streamer.c (tree_entry_hasher): Likewise.
10903 * plugin.c (event_hasher): Likewise.
10904 * postreload-gcse.c (expr_hasher): Likewise.
10905 * store-motion.c (st_expr_hasher): Likewise.
10906 * tree-sra.c (uid_decl_hasher): Likewise.
10907 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
10908 (ssa_name_var_hash): Likewise.
10909 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
10910 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
10911 * tree-ssa-pre.c (pre_expr_d): Likewise.
10912 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
10913 * vtable-verify.h (registration_hasher): Likewise.
10914 * vtable-verify.c (vtbl_map_hasher): Likewise.
10915 * config/arm/arm.c (libcall_hasher): Likewise.
10916 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
10917 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
10918 * config/sol2.c (comdat_entry_hasher): Likewise.
10919 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
10920 (print_fold_checksum, fold_checksum_tree): Likewise.
10921 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
10922 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
10923 (fold_build_call_array_loc): Likewise.
10924 * tree-ssa-ccp.c (gimple_htab): Likewise.
10925 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
10926 rather than pointer_type.
10927
10928 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10929
10930 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
10931 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
10932
10933 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10934
10935 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
10936 (ggc_hasher::ggc_mx): Likewise.
10937 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
10938 that duplicate ggc_hasher ones.
10939
10940 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10941
10942 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
10943 (gt_cleare_cache): Check here for deleted and empty entries.
10944 Replace handle_cache_entry with a call to keep_cache_entry.
10945 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
10946 (ggc_cache_hasher::keep_cache_entry): New function.
10947 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
10948 (tm_wrapper_hasher::keep_cache_entry): New function.
10949 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
10950 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
10951 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
10952 (type_cache_hasher::keep_cache_entry): New function.
10953 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
10954 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
10955 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
10956 (tree_type_map_cache_hasher::keep_cache_entry): New function.
10957 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
10958 (tm_clone_hasher::keep_cache_entry): New function.
10959 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
10960 (dllimport_hasher::keep_cache_entry): New function.
10961
10962 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10963
10964 * hash-table.h: Include hash-traits.h.
10965 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
10966 (ggc_cache_hasher): Move to...
10967 * hash-traits.h: ...this new file.
10968
10969 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10970
10971 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
10972 struct cl_optimization.
10973 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
10974 * tree.c (make_node_stat): Allocate cl_optimization struct.
10975 (copy_node_stat): Allocate and copy cl_optimization struct.
10976
10977 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10978
10979 * function.h (struct incoming_args): Move struct.
10980 (pass_by_reference, reference_callee_copied): Remove prototypes.
10981 * emit-rtl.h (struct incoming_args): Relocate struct here.
10982 * calls.h (pass_by_reference, reference_callee_copied): Relocate
10983 prototypes here.
10984 * function.c (pass_by_reference, reference_callee_copied): Move.
10985 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
10986 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
10987 * ipa-chkp.c: Include calls.h.
10988
10989 2015-06-25 Andrew Macleod <amacleod@redhat.com>
10990
10991 * alias.h (alias_set_type): Move typedef.
10992 * coretypes.h (alias_set_type): Relocate typedef here.
10993 * rtl.h: Don't include alias.h.
10994
10995 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10996
10997 * cgraph.h (cgraph_rtl_info): Move to rtl.h
10998 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
10999 and instance.
11000 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
11001 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
11002 doesn't exist.
11003 * calls.c: Include hard-reg-set.h before rtl.h.
11004 * ira.c: Likewise.
11005
11006 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11007 Vladimir Makarov <vmakarov@redhat.com>
11008
11009 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
11010 Add assert.
11011
11012 2015-06-25 Richard Biener <rguenther@suse.de>
11013
11014 * fold-const.c (fold_binary_loc): Move simplification of
11015 (X <<>> C1) & C2 ...
11016 * match.pd: ... here.
11017
11018 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
11019
11020 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
11021
11022 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11023
11024 * match.pd: Add patterns for vec_conds between 1 and 0.
11025
11026 2015-06-25 Richard Biener <rguenther@suse.de>
11027
11028 * tree-vect-stmts.c (vectorizable_conversion): Do not set
11029 STMT_VINFO_VEC_STMT for SLP.
11030 (vectorizable_store): Likewise.
11031 (vectorizable_load): Likewise.
11032 (vect_transform_stmt): Catch SLP vectorization clobbering
11033 STMT_VINFO_VEC_STMT.
11034
11035 2015-06-25 Richard Biener <rguenther@suse.de>
11036
11037 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
11038 dumping.
11039 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
11040 cleanup resulting dead code and parameters.
11041 (vect_transform_slp_perm_load): Adjust.
11042
11043 2015-06-25 Nick Clifton <nickc@redhat.com>
11044
11045 * config/bfin/bfin.c (bfin_expand_prologue): Set
11046 current_function_static_stack_size if flag_stack_usage_info is set.
11047 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11048 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
11049 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11050 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
11051
11052 2015-06-25 Tom de Vries <tom@codesourcery.com>
11053
11054 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
11055 comment that the generated IV is unsigned.
11056
11057 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11058
11059 PR target/29693
11060 * config/arm/arm.c (arm_dbx_register_number): Return
11061 DWARF_FRAME_REGISTERS by default.
11062
11063 2015-06-25 Tom de Vries <tom@codesourcery.com>
11064
11065 * dominance.c (calculate_dominance_info): Fix verify_dominators call
11066 argument. Call verify_dominator when reusing dominator info.
11067
11068 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
11069
11070 PR target/66563
11071 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
11072 an additional element of the unspec vector. Modify indices
11073 of operands.
11074 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
11075 * config/sh/sh.c (prepare_move_operands): Pass incremented
11076 const_int to gen_GOTaddr2picreg.
11077 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
11078
11079 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11080
11081 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
11082 Condition on TARGET_FLOAT.
11083
11084 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11085
11086 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
11087 and (no)crypto.
11088
11089 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11090
11091 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
11092
11093 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
11094 aarch64_err_no_fpadvsimd.
11095
11096 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
11097 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
11098 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
11099 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
11100 Turn error into assert, test TARGET_FLOAT.
11101 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
11102 TARGET_FLOAT.
11103
11104 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
11105
11106 PR debug/66482
11107 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
11108
11109 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
11110
11111 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
11112
11113 2015-06-24 Renlin Li <renlin.li@arm.com>
11114
11115 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
11116 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
11117
11118 2015-06-24 Richard Biener <rguenther@suse.de>
11119
11120 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
11121 (main): Likewise.
11122 (lower_opt_convert): Support lowering of conditional view_convert.
11123 (parser::parse_operation): Likewise.
11124 (parser::parse_for): Likewise.
11125
11126 2015-06-24 Renlin Li <renlin.li@arm.com>
11127
11128 * varasm.c (emit_local): Use unsigned int for align variable.
11129
11130 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11131
11132 PR target/63408
11133 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
11134 for negative numbers.
11135
11136 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11137
11138 PR rtl-optimization/66306
11139 * reload.c (find_reloads): Swap the match_dup info for
11140 commutative operands.
11141
11142 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11143
11144 * config/s390/vx-builtins.md
11145 ("vec_scatter_element<mode>_<non_vec_int>")
11146 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
11147 attribute with bhfgq.
11148
11149 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11150
11151 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
11152
11153 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11154
11155 * config/s390/s390-builtin-types.def: Add flag to indicate the
11156 options under which the function type is needed.
11157 * config/s390/s390-builtins.def: Add flag to indicate the options
11158 under which the builtin is enabled.
11159 * config/s390/s390-builtins.h: Add flags parameter to macro
11160 definitions.
11161 (bflags_for_builtin): New function.
11162 (flags_for_builtin): Renamed to ...
11163 (opflags_for_builtin): ... this.
11164 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
11165 flags_for_builtin to bflags_for_builtin and
11166 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
11167 * config/s390/s390.c: Add initialization of bflags_builtin and
11168 opflags_builtin arrays.
11169 Remove code for flags_builtin.
11170 (s390_init_builtins): Only create builtin function types if one of
11171 their flags is active.
11172 Only create builtins if all of their flags are active.
11173 (s390_expand_builtin): Rename flags_for_builtin to
11174 opflags_for_builtin.
11175
11176 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11177
11178 * config/s390/vecintrin.h: Remove internal builtins.
11179
11180 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11181
11182 * config/s390/s390.c (s390_secondary_reload): Fix check for
11183 GENERAL_REGS register class.
11184
11185 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11186
11187 * config/s390/s390.c (s390_support_vector_misalignment): Call
11188 default implementation for !TARGET_VX.
11189
11190 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11191
11192 * config/s390/s390.c (s390_legitimate_constant_p): Add
11193 TARGET_VX check.
11194
11195 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11196
11197 * config/s390/s390.c (s390_vector_abi): New variable definition.
11198 (s390_check_type_for_vector_abi): New function.
11199 (TARGET_ASM_FILE_END): New macro definition.
11200 (s390_asm_file_end): New function.
11201 (s390_function_arg): Call s390_check_type_for_vector_abi.
11202 (s390_gimplify_va_arg): Likewise.
11203 * configure: Regenerate.
11204 * configure.ac: Check for .gnu_attribute Binutils feature.
11205
11206 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
11207
11208 PR target/65803
11209 * config/bfin/bfin.c (hwloop_optimize): Initialize
11210 JUMP_LABEL for newly created jump.
11211
11212 2015-06-23 Tristan Gingold <gingold@adacore.com>
11213
11214 * collect-utils.c (collect_wait): Unlink the response file here
11215 instead of...
11216 (do_wait): ...here.
11217 (utils_cleanup): ...and here.
11218
11219 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
11220
11221 * df-scan.c: Don't include target-def.h.
11222 * targhooks.c: Likewise.
11223 * config/arm/arm-c.c: Likewise.
11224 * config/i386/i386-c.c: Likewise.
11225 * config/nds32/nds32-cost.c: Likewise.
11226 * config/nds32/nds32-fp-as-gp.c: Likewise.
11227 * config/nds32/nds32-intrinsic.c: Likewise.
11228 * config/nds32/nds32-isr.c: Likewise.
11229 * config/nds32/nds32-md-auxiliary.c: Likewise.
11230 * config/nds32/nds32-memory-manipulation.c: Likewise.
11231 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11232 * config/nds32/nds32-predicates.c: Likewise.
11233
11234 2015-06-23 Richard Biener <rguenther@suse.de>
11235
11236 PR tree-optimization/66636
11237 * tree-vect-stmts.c (vectorizable_store): Properly compute the
11238 def type for further defs for strided stores.
11239
11240 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
11241
11242 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
11243 conditional selects.
11244 (setcc_int<mode>, setcc_float<mode>): Reformat.
11245
11246 2015-06-23 Marek Polacek <polacek@redhat.com>
11247
11248 * match.pd ((x + y) - (x | y) -> x & y,
11249 (x + y) - (x & y) -> x | y): New patterns.
11250
11251 2015-06-23 Ludovic Courtès <ludo@gnu.org>
11252
11253 PR 65711
11254 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
11255 '-dynamic-linker' within %{!shared: ...}.
11256
11257 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
11258
11259 PR target/66560
11260 * config/i386/predicates.md (addsub_vm_operator): New predicate.
11261 (addsub_vs_operator): Ditto.
11262 (addsub_vs_parallel): Ditto.
11263 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
11264 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
11265 Put minus RTX before plus and adjust vec_merge selector.
11266 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
11267 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
11268 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
11269 (addsub vec_merge splitters): New combiner splitters.
11270 (addsub vec_select/vec_concat splitters): Ditto.
11271
11272 2015-06-23 Bin Cheng <bin.cheng@arm.com>
11273
11274 PR tree-optimization/66449
11275 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
11276 POINTER_PLUS_EXPR for pointers.
11277
11278 2015-06-23 Alan Modra <amodra@gmail.com>
11279
11280 * rtlanal.c (commutative_operand_precedence): Correct comments.
11281 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
11282 declaration. Return an int. Distinguish REG,REG return from
11283 others.
11284 (struct simplify_plus_minus_op_data): Make local to function.
11285 (simplify_plus_minus): Don't set canonicalized if merely sorting
11286 registers. Avoid packing ops if nothing changes. White space fixes.
11287
11288 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
11289
11290 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
11291 -fdump-ada-spec is passed but not if -fsyntax-only is.
11292
11293 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
11294
11295 PR bootstrap/63740
11296 * lra-lives.c (process_bb_lives): Check insn copying the same
11297 reload pseudo and don't create a copy for it.
11298
11299 2015-06-22 Tom de Vries <tom@codesourcery.com>
11300
11301 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
11302 for cond_stmt.
11303
11304 2015-06-22 Tom de Vries <tom@codesourcery.com>
11305
11306 * builtins.def (DEF_GOMP_BUILTIN): Test
11307 'flag_tree_parallelize_loops > 1' instead of
11308 'flag_tree_parallelize_loops'. Test flag_cilkplus.
11309
11310 2015-06-22 Tom de Vries <tom@codesourcery.com>
11311
11312 * dominance.c (calculate_dominance_info): Verify dominators if
11313 early-out.
11314
11315 2015-06-22 Marek Polacek <polacek@redhat.com>
11316
11317 * match.pd ((x ^ y) ^ (x | y) -> x & y,
11318 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
11319 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
11320 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
11321
11322 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
11323
11324 PR target/65871
11325 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
11326 cost of embedded comparison.
11327
11328 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11329
11330 PR target/65914
11331 * config/rs6000/predicates.md (altivec_register_operand): Permit
11332 virtual stack registers.
11333 (vsx_register_operand): Likewise.
11334 (vfloat_operand): Likewise.
11335 (vint_operand): Likewise.
11336 (vlogical_operand): Likewise.
11337
11338 2015-06-22 Richard Biener <rguenther@suse.de>
11339
11340 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
11341 and single_scalar_iteration_cost members.
11342 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
11343 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
11344 (vect_get_single_scalar_iteration_cost): Remove.
11345 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11346 Use LOOP_VINFO_SCALAR_ITERATION_COST.
11347 * tree-vect-loop.c (destroy_loop_vec_info): Free
11348 scalar_cost_vec.
11349 (vect_get_single_scalar_iteration_cost): Compute result into
11350 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
11351 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
11352 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
11353 (vect_estimate_min_profitable_iters): Use them.
11354
11355 2015-06-22 Christian Bruel <christian.bruel@st.com>
11356
11357 PR target/52144
11358 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
11359 (TARGET_INSERT_ATTRIBUTES): Define.
11360 (thumb_flipper): New var.
11361 * config/arm/arm.opt (-mflip-thumb): New switch.
11362
11363 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
11364 Martin Liska <mliska@suse.cz>
11365
11366 PR ipa/65908
11367 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
11368 construction of arg_types.
11369 (sem_function::sem_function): Likewise.
11370 (sem_function::~sem_function): Remove destruction of arg_types.
11371 (sem_function::compatible_parm_types_p): New function.
11372 (sem_function::equals_wpa): Reorg matching of return values
11373 and parameter types.
11374 (sem_function::equals_private): Reorg mathcing of argument types.
11375 (sem_function::parse_tree_args): Remove.
11376 * ipa-icf.h (init_wpa): Do not call it.
11377 (parse_tree_args): Remove.
11378 (compatible_parm_types_p): Declare.
11379 (result_type): Remove.
11380 (arg_types): Remove.
11381
11382 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
11383
11384 PR ipa/66351
11385 * ipa-polymorphic-call.c
11386 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
11387 initializing alias oracle; fix formating; set base_alias_set if it
11388 is known.
11389
11390 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
11391
11392 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
11393 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
11394 (find_inc): Likewise.
11395 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
11396 swapping.
11397 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
11398 * df-scan.c (df_swap_refs): Remove.
11399 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
11400 * dominance.c (link_roots): Use std::swap instead of manually swapping.
11401 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
11402 * fold-const.c (fold_relational_const): Likewise.
11403 * genattrtab.c (simplify_test_exp): Likewise.
11404 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
11405 gimple_simplify): Likewise.
11406 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
11407 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
11408 * ipa-devirt.c (add_type_duplicate): Likewise.
11409 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
11410 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
11411 * lra.c (lra_create_copy): Likewise.
11412 * lto-streamer-out.c (DFS::DFS): Likewise.
11413 * modulo-sched.c (get_sched_window): Likewise.
11414 * omega.c (omega_pretty_print_problem): Likewise.
11415 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
11416 * reload1.c (reloads_unique_chain_p): Likewise.
11417 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
11418 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
11419 use std::swap.
11420 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
11421 manually swapping.
11422 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
11423 predicate_mem_writes): Likewise.
11424 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
11425 * tree-predcom.c (combine_chains): Likewise.
11426 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
11427 refs_may_alias_p_1): Likewise.
11428 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
11429 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
11430 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
11431 number_of_iterations_cond): Likewise.
11432 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
11433 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
11434 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
11435 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
11436 * tree-vrp.c (extract_range_from_binary_expr_1,
11437 extract_range_from_unary_expr_1): Likewise.
11438
11439 2015-06-20 Marek Polacek <polacek@redhat.com>
11440
11441 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
11442
11443 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
11444
11445 PR target/66591
11446 * config/sh/sh.c (prepare_move_operands): Replace subreg
11447 index term with R0 for base and index addressing.
11448
11449 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
11450
11451 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
11452 op1 is an fp zero.
11453 (movsf_aarch64): Change condition from register_operand to
11454 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
11455 load1. Change type for alternative 7 to store1.
11456 (movdf_aarch64): Likewise.
11457
11458 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
11459
11460 * config/vax/vax.md: Adjust sign/zero extend patterns to
11461 handle SUBREGs in operands[1].
11462
11463 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11464
11465 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
11466 of manually swapping.
11467 (expand_vec_perm_interleave2): Likewise.
11468
11469 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
11470
11471 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
11472 reuse bounds created for abnormal ssa names.
11473
11474 2015-06-19 Jakub Jelinek <jakub@redhat.com>
11475
11476 * config/nvptx/nvptx.md (allocate_stack): Rename to...
11477 (allocate_stack_<mode>): ... this, and add :P on both
11478 match_operand and unspec.
11479 (allocate_stack): New expander.
11480
11481 2015-06-19 Christian Bruel <christian.bruel@st.com>
11482
11483 PR target/66541
11484 PR target/52144
11485 * config/arm/arm.c (arm_set_current_function): Handle
11486 explicit default options.
11487
11488 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
11489
11490 * config/i386/i386.md (*movsicc_noc_zext): New insn.
11491 (zero-extended cmove with mem peephole2): New pattern.
11492 (cmove with mem peephole2): Merge patterns.
11493
11494 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11495
11496 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
11497
11498 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
11499
11500 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
11501 * config/mips/mips.md (*madd4<mode>): Ditto.
11502 (*nmadd3<mode>) Ditto.
11503 (*nmadd4<mode>_fastmath): Ditto.
11504 (*nmadd3<mode>_fastmath): Ditto.
11505 (*nmsub4<mode>): Ditto.
11506 (*nmsub3<mode>): Ditto.
11507 (*nmsub4<mode>_fastmath): Ditto.
11508 (*nmsub3<mode>_fastmath): Ditto.
11509
11510 2015-06-18 Michael Matz <matz@suse.de>
11511
11512 PR middle-end/66253
11513 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
11514 grouped strided stores.
11515 (vectorizable_load): Don't use the DR from first_stmt in
11516 the non-SLP grouped strided case.
11517
11518 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11519
11520 PR target/66569
11521 * function.c (assign_bounds): Add arguments assign_regs,
11522 assign_special, assign_bt.
11523 (assign_parms): For vararg functions handle bounds in BT
11524 and special slots after incoming vararg bounds.
11525
11526 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11527
11528 PR middle-end/66568
11529 * cfgexpand.c (expand_return): Handle missing bounds.
11530 (expand_gimple_stmt_1): Likewise.
11531 * tree-chkp.c (chkp_expand_zero_bounds): New.
11532 * tree-chkp.h (chkp_expand_zero_bounds): New.
11533
11534 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11535
11536 PR middle-end/66567
11537 * ipa-chkp.c (chkp_maybe_create_clone): Require
11538 functions to be instrumentable.
11539 * tree-chkp.c (chkp_replace_function_pointer): Use
11540 chkp_instrumentable_p instead of attribute check.
11541
11542 2015-06-18 Richard Biener <rguenther@suse.de>
11543
11544 PR tree-optimization/66510
11545 * tree-vect-stmts.c (vectorizable_load): Properly compute the
11546 number of vector loads for SLP permuted loads.
11547 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
11548 check the stride for loop vectorization.
11549 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
11550 vectorization factor.
11551 (vect_analyze_group_access): If the group size is not a power
11552 of two require a epilogue loop.
11553 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
11554 compute and optimizing and alias test pruning after final
11555 vectorization factor computation.
11556 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
11557 vector alignment.
11558 (vect_transform_slp_perm_load): Properly compute the original
11559 number of vector load stmts.
11560
11561 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
11562
11563 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
11564 "unlikely character , in @var" warning.
11565
11566 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
11567
11568 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
11569 (ix86_function_arg_advance): Ditto.
11570 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
11571
11572 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11573
11574 * function.h (struct rtl_data): Remove struct and accessor macros.
11575 * emit-rtl.h (struct rtl_data): Relocate to here.
11576 * Makefile.in (GTFILES): Add emit-rtl.h.
11577 * df-core.c: Include emit-rtl.h.
11578 * genattrtab.c: Likewise.
11579 * genconditions.c: Likewise.
11580 * genpreds.c: Likewise.
11581 * genrecog.c: Likewise.
11582 * regcprop.c: Likewise.
11583 * resource.c: Likewise.
11584 * sched-rgn.c: Likewise.
11585 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11586 * config/i386/winnt.c: Likewise.
11587
11588 2015-06-17 Jakub Jelinek <jakub@redhat.com>
11589
11590 PR middle-end/66429
11591 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
11592 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
11593 and has_force_vectorize_loops flags from cfun into
11594 child_cfun.
11595 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
11596 if simduid is non-NULL.
11597 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
11598 * passes.def (pass_simduid_cleanup): Add new pass after loop
11599 passes.
11600 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
11601 indirection from htab argument's type.
11602 (shrink_simd_arrays): New function.
11603 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
11604 Don't call adjust_simduid_builtins if there are no loops.
11605 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
11606 (pass_simduid_cleanup::execute): New method.
11607 (make_pass_simduid_cleanup): New function.
11608
11609 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
11610
11611 * tree-core.h (tree_target_option): Make opts field a pointer to a
11612 cl_target_option instead of an instance of the struct.
11613 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
11614 the structure.
11615 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
11616 TARGET_OPTION_NODE.
11617 (copy_node_stat): Allocate and copy struct cl_target_option.
11618
11619 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11620
11621 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
11622 Remove conditional exposure of prototypes.
11623 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
11624 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
11625 definitions in tree.h with functions.
11626 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
11627 anon_aggrname_p.
11628 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
11629
11630 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
11631
11632 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
11633 (*cmp<mode>_signed): ... this.
11634 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
11635 (*cmp<mode>_unsigned): ... this. Remove %b.
11636
11637 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11638
11639 * coretypes.h: Include input.h and as-a.h.
11640 * rtl.h: Include input.h and as-a.h for generator files.
11641 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
11642 * vec.c: Don't include diagnostic-core.h.
11643 * alias.c: Do not include input.h, line-map.h or is-a.h.
11644 * asan.c: Likewise.
11645 * attribs.c: Likewise.
11646 * auto-inc-dec.c: Likewise.
11647 * auto-profile.c: Likewise.
11648 * bb-reorder.c: Likewise.
11649 * bt-load.c: Likewise.
11650 * builtins.c: Likewise.
11651 * caller-save.c: Likewise.
11652 * calls.c: Likewise.
11653 * ccmp.c: Likewise.
11654 * cfg.c: Likewise.
11655 * cfganal.c: Likewise.
11656 * cfgbuild.c: Likewise.
11657 * cfgcleanup.c: Likewise.
11658 * cfgexpand.c: Likewise.
11659 * cfghooks.c: Likewise.
11660 * cfgloop.c: Likewise.
11661 * cfgloop.h: Likewise.
11662 * cfgloopanal.c: Likewise.
11663 * cfgloopmanip.c: Likewise.
11664 * cfgrtl.c: Likewise.
11665 * cgraph.c: Likewise.
11666 * cgraphbuild.c: Likewise.
11667 * cgraphclones.c: Likewise.
11668 * cgraphunit.c: Likewise.
11669 * cilk-common.c: Likewise.
11670 * combine-stack-adj.c: Likewise.
11671 * combine.c: Likewise.
11672 * compare-elim.c: Likewise.
11673 * convert.c: Likewise.
11674 * coverage.c: Likewise.
11675 * cppbuiltin.c: Likewise.
11676 * cprop.c: Likewise.
11677 * cse.c: Likewise.
11678 * cselib.c: Likewise.
11679 * data-streamer-in.c: Likewise.
11680 * data-streamer-out.c: Likewise.
11681 * data-streamer.c: Likewise.
11682 * dbxout.c: Likewise.
11683 * dce.c: Likewise.
11684 * ddg.c: Likewise.
11685 * debug.c: Likewise.
11686 * df-core.c: Likewise.
11687 * df-problems.c: Likewise.
11688 * df-scan.c: Likewise.
11689 * df.h: Likewise.
11690 * dfp.c: Likewise.
11691 * diagnostic-core.h: Likewise.
11692 * diagnostic.c: Likewise.
11693 * dojump.c: Likewise.
11694 * dominance.c: Likewise.
11695 * domwalk.c: Likewise.
11696 * double-int.c: Likewise.
11697 * dse.c: Likewise.
11698 * dumpfile.c: Likewise.
11699 * dumpfile.h: Likewise.
11700 * dwarf2asm.c: Likewise.
11701 * dwarf2cfi.c: Likewise.
11702 * dwarf2out.c: Likewise.
11703 * emit-rtl.c: Likewise.
11704 * et-forest.c: Likewise.
11705 * except.c: Likewise.
11706 * explow.c: Likewise.
11707 * expmed.c: Likewise.
11708 * expr.c: Likewise.
11709 * final.c: Likewise.
11710 * fixed-value.c: Likewise.
11711 * fold-const.c: Likewise.
11712 * function.c: Likewise.
11713 * fwprop.c: Likewise.
11714 * gcc-plugin.h: Likewise.
11715 * gcse.c: Likewise.
11716 * generic-match-head.c: Likewise.
11717 * ggc-page.c: Likewise.
11718 * gimple-builder.c: Likewise.
11719 * gimple-expr.c: Likewise.
11720 * gimple-fold.c: Likewise.
11721 * gimple-iterator.c: Likewise.
11722 * gimple-low.c: Likewise.
11723 * gimple-match-head.c: Likewise.
11724 * gimple-pretty-print.c: Likewise.
11725 * gimple-ssa-isolate-paths.c: Likewise.
11726 * gimple-ssa-strength-reduction.c: Likewise.
11727 * gimple-streamer-in.c: Likewise.
11728 * gimple-streamer-out.c: Likewise.
11729 * gimple-streamer.h: Likewise.
11730 * gimple-walk.c: Likewise.
11731 * gimple.c: Likewise.
11732 * gimplify-me.c: Likewise.
11733 * gimplify.c: Likewise.
11734 * godump.c: Likewise.
11735 * graph.c: Likewise.
11736 * graphite-blocking.c: Likewise.
11737 * graphite-dependences.c: Likewise.
11738 * graphite-interchange.c: Likewise.
11739 * graphite-isl-ast-to-gimple.c: Likewise.
11740 * graphite-optimize-isl.c: Likewise.
11741 * graphite-poly.c: Likewise.
11742 * graphite-scop-detection.c: Likewise.
11743 * graphite-sese-to-poly.c: Likewise.
11744 * graphite.c: Likewise.
11745 * haifa-sched.c: Likewise.
11746 * hw-doloop.c: Likewise.
11747 * ifcvt.c: Likewise.
11748 * init-regs.c: Likewise.
11749 * input.c: Likewise.
11750 * internal-fn.c: Likewise.
11751 * ipa-chkp.c: Likewise.
11752 * ipa-comdats.c: Likewise.
11753 * ipa-cp.c: Likewise.
11754 * ipa-devirt.c: Likewise.
11755 * ipa-icf-gimple.c: Likewise.
11756 * ipa-icf.c: Likewise.
11757 * ipa-inline-analysis.c: Likewise.
11758 * ipa-inline-transform.c: Likewise.
11759 * ipa-inline.c: Likewise.
11760 * ipa-polymorphic-call.c: Likewise.
11761 * ipa-profile.c: Likewise.
11762 * ipa-prop.c: Likewise.
11763 * ipa-pure-const.c: Likewise.
11764 * ipa-ref.c: Likewise.
11765 * ipa-reference.c: Likewise.
11766 * ipa-split.c: Likewise.
11767 * ipa-utils.c: Likewise.
11768 * ipa-visibility.c: Likewise.
11769 * ipa.c: Likewise.
11770 * ira-build.c: Likewise.
11771 * ira-color.c: Likewise.
11772 * ira-conflicts.c: Likewise.
11773 * ira-costs.c: Likewise.
11774 * ira-emit.c: Likewise.
11775 * ira-lives.c: Likewise.
11776 * ira.c: Likewise.
11777 * jump.c: Likewise.
11778 * langhooks.c: Likewise.
11779 * lcm.c: Likewise.
11780 * loop-doloop.c: Likewise.
11781 * loop-init.c: Likewise.
11782 * loop-invariant.c: Likewise.
11783 * loop-iv.c: Likewise.
11784 * loop-unroll.c: Likewise.
11785 * lower-subreg.c: Likewise.
11786 * lra-assigns.c: Likewise.
11787 * lra-coalesce.c: Likewise.
11788 * lra-constraints.c: Likewise.
11789 * lra-eliminations.c: Likewise.
11790 * lra-lives.c: Likewise.
11791 * lra-remat.c: Likewise.
11792 * lra-spills.c: Likewise.
11793 * lra.c: Likewise.
11794 * lto-cgraph.c: Likewise.
11795 * lto-compress.c: Likewise.
11796 * lto-opts.c: Likewise.
11797 * lto-section-in.c: Likewise.
11798 * lto-section-out.c: Likewise.
11799 * lto-streamer-in.c: Likewise.
11800 * lto-streamer-out.c: Likewise.
11801 * lto-streamer.c: Likewise.
11802 * mcf.c: Likewise.
11803 * mode-switching.c: Likewise.
11804 * modulo-sched.c: Likewise.
11805 * omega.c: Likewise.
11806 * omp-low.c: Likewise.
11807 * optabs.c: Likewise.
11808 * opts-global.c: Likewise.
11809 * opts.h: Likewise.
11810 * passes.c: Likewise.
11811 * plugin.c: Likewise.
11812 * postreload-gcse.c: Likewise.
11813 * postreload.c: Likewise.
11814 * predict.c: Likewise.
11815 * pretty-print.h: Likewise.
11816 * print-rtl.c: Likewise.
11817 * print-tree.c: Likewise.
11818 * profile.c: Likewise.
11819 * real.c: Likewise.
11820 * realmpfr.c: Likewise.
11821 * recog.c: Likewise.
11822 * ree.c: Likewise.
11823 * reg-stack.c: Likewise.
11824 * regcprop.c: Likewise.
11825 * reginfo.c: Likewise.
11826 * regrename.c: Likewise.
11827 * regstat.c: Likewise.
11828 * reload.c: Likewise.
11829 * reload1.c: Likewise.
11830 * reorg.c: Likewise.
11831 * resource.c: Likewise.
11832 * rtl-chkp.c: Likewise.
11833 * rtl-error.c: Likewise.
11834 * rtlanal.c: Likewise.
11835 * rtlhooks.c: Likewise.
11836 * sanopt.c: Likewise.
11837 * sched-deps.c: Likewise.
11838 * sched-ebb.c: Likewise.
11839 * sched-rgn.c: Likewise.
11840 * sched-vis.c: Likewise.
11841 * sdbout.c: Likewise.
11842 * sel-sched-dump.c: Likewise.
11843 * sel-sched-ir.c: Likewise.
11844 * sel-sched.c: Likewise.
11845 * sese.c: Likewise.
11846 * shrink-wrap.c: Likewise.
11847 * simplify-rtx.c: Likewise.
11848 * stack-ptr-mod.c: Likewise.
11849 * statistics.c: Likewise.
11850 * stmt.c: Likewise.
11851 * stor-layout.c: Likewise.
11852 * store-motion.c: Likewise.
11853 * streamer-hooks.c: Likewise.
11854 * stringpool.c: Likewise.
11855 * symtab.c: Likewise.
11856 * target-globals.c: Likewise.
11857 * targhooks.c: Likewise.
11858 * toplev.c: Likewise.
11859 * tracer.c: Likewise.
11860 * trans-mem.c: Likewise.
11861 * tree-affine.c: Likewise.
11862 * tree-browser.c: Likewise.
11863 * tree-call-cdce.c: Likewise.
11864 * tree-cfg.c: Likewise.
11865 * tree-cfgcleanup.c: Likewise.
11866 * tree-chkp-opt.c: Likewise.
11867 * tree-chkp.c: Likewise.
11868 * tree-chrec.c: Likewise.
11869 * tree-complex.c: Likewise.
11870 * tree-data-ref.c: Likewise.
11871 * tree-dfa.c: Likewise.
11872 * tree-diagnostic.c: Likewise.
11873 * tree-dump.c: Likewise.
11874 * tree-eh.c: Likewise.
11875 * tree-emutls.c: Likewise.
11876 * tree-if-conv.c: Likewise.
11877 * tree-inline.c: Likewise.
11878 * tree-into-ssa.c: Likewise.
11879 * tree-iterator.c: Likewise.
11880 * tree-loop-distribution.c: Likewise.
11881 * tree-nested.c: Likewise.
11882 * tree-nrv.c: Likewise.
11883 * tree-object-size.c: Likewise.
11884 * tree-outof-ssa.c: Likewise.
11885 * tree-parloops.c: Likewise.
11886 * tree-phinodes.c: Likewise.
11887 * tree-predcom.c: Likewise.
11888 * tree-pretty-print.c: Likewise.
11889 * tree-profile.c: Likewise.
11890 * tree-scalar-evolution.c: Likewise.
11891 * tree-sra.c: Likewise.
11892 * tree-ssa-address.c: Likewise.
11893 * tree-ssa-alias.c: Likewise.
11894 * tree-ssa-ccp.c: Likewise.
11895 * tree-ssa-coalesce.c: Likewise.
11896 * tree-ssa-copy.c: Likewise.
11897 * tree-ssa-copyrename.c: Likewise.
11898 * tree-ssa-dce.c: Likewise.
11899 * tree-ssa-dom.c: Likewise.
11900 * tree-ssa-dse.c: Likewise.
11901 * tree-ssa-forwprop.c: Likewise.
11902 * tree-ssa-ifcombine.c: Likewise.
11903 * tree-ssa-live.c: Likewise.
11904 * tree-ssa-loop-ch.c: Likewise.
11905 * tree-ssa-loop-im.c: Likewise.
11906 * tree-ssa-loop-ivcanon.c: Likewise.
11907 * tree-ssa-loop-ivopts.c: Likewise.
11908 * tree-ssa-loop-manip.c: Likewise.
11909 * tree-ssa-loop-niter.c: Likewise.
11910 * tree-ssa-loop-prefetch.c: Likewise.
11911 * tree-ssa-loop-unswitch.c: Likewise.
11912 * tree-ssa-loop.c: Likewise.
11913 * tree-ssa-math-opts.c: Likewise.
11914 * tree-ssa-operands.c: Likewise.
11915 * tree-ssa-phiopt.c: Likewise.
11916 * tree-ssa-phiprop.c: Likewise.
11917 * tree-ssa-pre.c: Likewise.
11918 * tree-ssa-propagate.c: Likewise.
11919 * tree-ssa-reassoc.c: Likewise.
11920 * tree-ssa-sccvn.c: Likewise.
11921 * tree-ssa-scopedtables.c: Likewise.
11922 * tree-ssa-sink.c: Likewise.
11923 * tree-ssa-strlen.c: Likewise.
11924 * tree-ssa-structalias.c: Likewise.
11925 * tree-ssa-tail-merge.c: Likewise.
11926 * tree-ssa-ter.c: Likewise.
11927 * tree-ssa-threadedge.c: Likewise.
11928 * tree-ssa-threadupdate.c: Likewise.
11929 * tree-ssa-uncprop.c: Likewise.
11930 * tree-ssa-uninit.c: Likewise.
11931 * tree-ssa.c: Likewise.
11932 * tree-ssanames.c: Likewise.
11933 * tree-stdarg.c: Likewise.
11934 * tree-streamer-in.c: Likewise.
11935 * tree-streamer-out.c: Likewise.
11936 * tree-streamer.c: Likewise.
11937 * tree-switch-conversion.c: Likewise.
11938 * tree-tailcall.c: Likewise.
11939 * tree-vect-data-refs.c: Likewise.
11940 * tree-vect-generic.c: Likewise.
11941 * tree-vect-loop-manip.c: Likewise.
11942 * tree-vect-loop.c: Likewise.
11943 * tree-vect-patterns.c: Likewise.
11944 * tree-vect-slp.c: Likewise.
11945 * tree-vect-stmts.c: Likewise.
11946 * tree-vectorizer.c: Likewise.
11947 * tree-vrp.c: Likewise.
11948 * tree.c: Likewise.
11949 * tsan.c: Likewise.
11950 * ubsan.c: Likewise.
11951 * valtrack.c: Likewise.
11952 * value-prof.c: Likewise.
11953 * var-tracking.c: Likewise.
11954 * varasm.c: Likewise.
11955 * varpool.c: Likewise.
11956 * vmsdbgout.c: Likewise.
11957 * vtable-verify.c: Likewise.
11958 * web.c: Likewise.
11959 * wide-int.cc: Likewise.
11960 * xcoffout.c: Likewise.
11961 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
11962 * common/common-targhooks.c: Likewise.
11963 * config/aarch64/aarch64-builtins.c: Likewise.
11964 * config/aarch64/aarch64.c: Likewise.
11965 * config/alpha/alpha.c: Likewise.
11966 * config/arc/arc.c: Likewise.
11967 * config/arm/aarch-common.c: Likewise.
11968 * config/arm/arm-builtins.c: Likewise.
11969 * config/arm/arm-c.c: Likewise.
11970 * config/arm/arm.c: Likewise.
11971 * config/avr/avr-c.c: Likewise.
11972 * config/avr/avr-log.c: Likewise.
11973 * config/avr/avr.c: Likewise.
11974 * config/bfin/bfin.c: Likewise.
11975 * config/c6x/c6x.c: Likewise.
11976 * config/cr16/cr16.c: Likewise.
11977 * config/cris/cris.c: Likewise.
11978 * config/darwin-c.c: Likewise.
11979 * config/darwin.c: Likewise.
11980 * config/default-c.c: Likewise.
11981 * config/epiphany/epiphany.c: Likewise.
11982 * config/epiphany/mode-switch-use.c: Likewise.
11983 * config/epiphany/resolve-sw-modes.c: Likewise.
11984 * config/fr30/fr30.c: Likewise.
11985 * config/frv/frv.c: Likewise.
11986 * config/ft32/ft32.c: Likewise.
11987 * config/glibc-c.c: Likewise.
11988 * config/h8300/h8300.c: Likewise.
11989 * config/i386/i386-c.c: Likewise.
11990 * config/i386/i386.c: Likewise.
11991 * config/i386/msformat-c.c: Likewise.
11992 * config/i386/winnt-cxx.c: Likewise.
11993 * config/i386/winnt-stubs.c: Likewise.
11994 * config/i386/winnt.c: Likewise.
11995 * config/ia64/ia64-c.c: Likewise.
11996 * config/ia64/ia64.c: Likewise.
11997 * config/iq2000/iq2000.c: Likewise.
11998 * config/lm32/lm32.c: Likewise.
11999 * config/m32c/m32c-pragma.c: Likewise.
12000 * config/m32c/m32c.c: Likewise.
12001 * config/m32r/m32r.c: Likewise.
12002 * config/m68k/m68k.c: Likewise.
12003 * config/mcore/mcore.c: Likewise.
12004 * config/mep/mep-pragma.c: Likewise.
12005 * config/mep/mep.c: Likewise.
12006 * config/microblaze/microblaze-c.c: Likewise.
12007 * config/microblaze/microblaze.c: Likewise.
12008 * config/mips/mips.c: Likewise.
12009 * config/mmix/mmix.c: Likewise.
12010 * config/mn10300/mn10300.c: Likewise.
12011 * config/moxie/moxie.c: Likewise.
12012 * config/msp430/msp430-c.c: Likewise.
12013 * config/msp430/msp430.c: Likewise.
12014 * config/nds32/nds32-cost.c: Likewise.
12015 * config/nds32/nds32-fp-as-gp.c: Likewise.
12016 * config/nds32/nds32-intrinsic.c: Likewise.
12017 * config/nds32/nds32-isr.c: Likewise.
12018 * config/nds32/nds32-md-auxiliary.c: Likewise.
12019 * config/nds32/nds32-memory-manipulation.c: Likewise.
12020 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12021 * config/nds32/nds32-predicates.c: Likewise.
12022 * config/nds32/nds32.c: Likewise.
12023 * config/nios2/nios2.c: Likewise.
12024 * config/nvptx/nvptx.c: Likewise.
12025 * config/pa/pa.c: Likewise.
12026 * config/pdp11/pdp11.c: Likewise.
12027 * config/rl78/rl78-c.c: Likewise.
12028 * config/rl78/rl78.c: Likewise.
12029 * config/rs6000/rs6000-c.c: Likewise.
12030 * config/rs6000/rs6000.c: Likewise.
12031 * config/rx/rx.c: Likewise.
12032 * config/s390/s390-c.c: Likewise.
12033 * config/s390/s390.c: Likewise.
12034 * config/sh/sh-c.c: Likewise.
12035 * config/sh/sh-mem.cc: Likewise.
12036 * config/sh/sh.c: Likewise.
12037 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12038 * config/sh/sh_treg_combine.cc: Likewise.
12039 * config/sol2-c.c: Likewise.
12040 * config/sol2-cxx.c: Likewise.
12041 * config/sol2-stubs.c: Likewise.
12042 * config/sol2.c: Likewise.
12043 * config/sparc/sparc-c.c: Likewise.
12044 * config/sparc/sparc.c: Likewise.
12045 * config/spu/spu-c.c: Likewise.
12046 * config/spu/spu.c: Likewise.
12047 * config/stormy16/stormy16.c: Likewise.
12048 * config/tilegx/mul-tables.c: Likewise.
12049 * config/tilegx/tilegx-c.c: Likewise.
12050 * config/tilegx/tilegx.c: Likewise.
12051 * config/tilepro/mul-tables.c: Likewise.
12052 * config/tilepro/tilepro-c.c: Likewise.
12053 * config/tilepro/tilepro.c: Likewise.
12054 * config/v850/v850-c.c: Likewise.
12055 * config/v850/v850.c: Likewise.
12056 * config/vax/vax.c: Likewise.
12057 * config/visium/visium.c: Likewise.
12058 * config/vms/vms-c.c: Likewise.
12059 * config/vms/vms.c: Likewise.
12060 * config/vxworks.c: Likewise.
12061 * config/winnt-c.c: Likewise.
12062 * config/xtensa/xtensa.c: Likewise.
12063
12064 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
12065
12066 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
12067 function.
12068 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
12069
12070 2015-06-17 Richard Biener <rguenther@suse.de>
12071
12072 PR tree-optimization/66251
12073 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
12074 stmts for SLP strided stores.
12075
12076 Revert
12077 2015-05-22 Richard Biener <rguenther@suse.de>
12078
12079 PR tree-optimization/66251
12080 * tree-vect-stmts.c (vectorizable_conversion): Properly
12081 set STMT_VINFO_VEC_STMT even for the SLP case.
12082
12083 2015-05-26 Michael Matz <matz@suse.de>
12084
12085 PR middle-end/66251
12086 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
12087 STMT_VINFO_VEC_STMT, also with SLP.
12088
12089 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
12090
12091 PR target/56766
12092 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
12093 (*avx_addsubv4df3_1s): Ditto.
12094 (*sse3_addsubv2df3_1): Ditto.
12095 (*sse3_addsubv2df3_1s): Ditto.
12096 (*avx_addsubv8sf3_1): Ditto.
12097 (*avx_addsubv8sf3_1s): Ditto.
12098 (*sse3_addsubv4sf3_1): Ditto.
12099 (*sse3_addsubv4sf3_1s): Ditto.
12100
12101 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
12102
12103 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
12104 (SYSROOT_SUFFIX_SPEC): Update.
12105 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
12106 (STARTFILE_PREFIX_SPEC): Update.
12107 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
12108 (MULTILIB_REQUIRED): New.
12109 (MULTILIB_OSDIRNAMES): New.
12110 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
12111 (MULTILIB_REQUIRED): New.
12112 (MULTILIB_OSDIRNAMES): New.
12113
12114 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
12115
12116 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
12117 * config/aarch64/aarch64-options-extensions.def: Update "fP",
12118 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
12119 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
12120 (AARCH64_FL_PAN): New.
12121 (AARCH64_FL_LOR): New.
12122 (AARCH64_FL_RDMA): New.
12123 (AARCH64_FL_FOR_ARCH8_1): New.
12124 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
12125 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
12126
12127 2015-06-16 Martin Liska <mliska@suse.cz>
12128
12129 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
12130 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
12131 guard.
12132
12133 2015-06-16 Richard Biener <rguenther@suse.de>
12134
12135 * tree-vect-stmts.c (vectorizable_store): Adjust.
12136 (vectorizable_load): Likewise.
12137 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
12138 Simplify.
12139 (vect_create_data_ref_ptr): Likewise.
12140 (bump_vector_ptr): Adjust.
12141
12142 2015-06-16 Richard Biener <rguenther@suse.de>
12143
12144 * tree-vect-stmts.c (vectorizable_load): Properly start loads
12145 with the first element if this is grouped loads.
12146
12147 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
12148
12149 * config/arm/arm-protos.h (struct tune_params): Rename
12150 log_op_non_sc to log_op_non_short_circuit, and rename enum
12151 values to expand SC to SHORT_CIRCUIT.
12152 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
12153 to LOG_OP_NON_SHORT_CIRCUIT.
12154 (arm_fastmul_tune):Likewise
12155 (arm_strongarm_tune): Likewise.
12156 (arm_xscale_tune): Likewise.
12157 (arm_9e_tune): Likewise.
12158 (arm_marvell_pj4_tune): Likewise.
12159 (arm_v6t2_tune): Likewise.
12160 (arm_cortex_tune): Likewise.
12161 (arm_cortex_a8_tune): Likewise.
12162 (arm_cortex_a7_tune): Likewise.
12163 (arm_cortex_a15_tune): Likewise.
12164 (arm_cortex_a53_tune): Likewise.
12165 (arm_cortex_a57_tune): Likewise.
12166 (arm_xgene1_tune): Likewise.
12167 (arm_cortex_a5_tune): Likewise.
12168 (arm_cortex_a9_tune): Likewise.
12169 (arm_cortex_a12_tune): Likewise.
12170 (arm_v7m_tune): Likewise.
12171 (arm_cortex_m7_tune): Likewise.
12172 (arm_v6m_tune): Likewise.
12173 (arm_fa726te_tune): Likewise.
12174
12175 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
12176
12177 * altivec.md: Delete UNSPEC_VMLADDUHM.
12178 (mulv4si3_p8): New pattern.
12179 (mulv4si3): Use it for POWER8.
12180 (mulv8hi3): Use vmladduhm with zero addend.
12181 (altivec_vmladduhm): Descriptive RTL.
12182
12183 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
12184
12185 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
12186 to use neon_move instead of mov_imm.
12187 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
12188 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
12189
12190 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
12191 aarch64_float_const_zero_rtx_p check before TFmode check.
12192 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
12193 an fp zero.
12194 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
12195 code and attributes to match. Change condition from register_operand
12196 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
12197 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
12198 to store2.
12199
12200 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
12201
12202 PR debug/66535
12203 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
12204 there is no parent.
12205
12206 2015-06-14 Shiva Chen <shiva0217@gmail.com>
12207
12208 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
12209 HOST_WIDE_INT parameter.
12210
12211 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
12212
12213 PR ipa/66181
12214 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
12215 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
12216 TYPE_NO_FORCE_BLK.
12217 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
12218
12219 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
12220
12221 * rtl.h (classify_insn): Declare.
12222 * emit-rtl.c (classify_insn): Move to...
12223 * rtl.c: ...here and add generator support.
12224 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
12225 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
12226 * genemit.c (gen_emit_seq): New function.
12227 (gen_expand, gen_split): Use it.
12228
12229 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
12230
12231 * tree.c (make_vector_stat): Fix comment to state that the
12232 function returns a VECTOR_CST.
12233
12234 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
12235
12236 * gensupport.h (add_implicit_parallel): Declare.
12237 * genrecog.c (add_implicit_parallel): Move to...
12238 * gensupport.c (add_implicit_parallel): ...here.
12239 (process_one_cond_exec): Use it.
12240 * genemit.c (gen_insn): Likewise.
12241
12242 2015-06-13 Iain Sandoe <iain@codesourcery.com>
12243
12244 PR bootstrap/66448
12245 * passes.c (rest_of_decl_compilation): Do not register globals for
12246 early debug if they are declared in built-ins.
12247
12248 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
12249
12250 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
12251
12252 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12253
12254 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
12255 manually swapping.
12256 (noce_try_cmove_arith): Likewise.
12257 (noce_get_alt_condition): Likewise.
12258
12259 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12260
12261 * common/config/i386/i386-common.c
12262 (OPTION_MASK_ISA_MWAITX_SET): New.
12263 (ix86_handle_option): Handle mwaitx.
12264 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
12265 (x86_64-*-*): Likewise.
12266 * config/i386/mwaitxintrin.h: New header.
12267 * config/i386/cpuid.h (bit_MWAITX): Define.
12268 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12269 MWAITX support.
12270 * config/i386/i386.opt (mwaitx): New.
12271 * config/i386/i386-builtin-types.def
12272 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
12273 * config/i386/i386-c.c: Define __MWAITX__ if needed.
12274 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
12275 (PTA_MWAITX): New.
12276 (ix86_option_override_internal): Handle new option.
12277 (processor_alias_table): Added PTA_MWAITX.
12278 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
12279 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
12280 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
12281 IX86_BUILTIN_MONITORX built-ins.
12282 * config/i386/i386.h (TARGET_MWAITX): New.
12283 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
12284 UNSPEC_MONITORX.
12285 (mwaitx): New pattern.
12286 (monitorx_<mode>): New pattern.
12287 * config/i386/x86intrin.h: Include mwaitxintrin.h.
12288 * doc/extend.texi: Document monitorx and mwaitx builtins.
12289 * doc/invoke.texi: Document -mmwaitx option.
12290
12291 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
12292
12293 * emit-rtl.c (need_atomic_barrier_p): Mask model with
12294 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
12295
12296 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
12297
12298 * dbxout.c (xcoff_debug_hooks): Provide a function for
12299 register_main_translation_unit hook.
12300
12301 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
12302
12303 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
12304 variants cases from switch.
12305 (rs6000_post_atomic_barrier): Same.
12306 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
12307 (rs6000_expand_atomic_exchange): Same.
12308 (rs6000_expand_atomic_op): Same.
12309 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
12310 SYNC variants cases from switch.
12311 (atomic_load): Same.
12312 (atomic_store): Same.
12313
12314 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
12315
12316 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
12317 CONST_INT for goto.
12318
12319 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
12320
12321 PR bootstrap/66448
12322 * dwarf2out.c (check_die): Check for common duplicate attributes.
12323 (add_location_or_const_value_attribute): Do not add duplicate
12324 attributes.
12325 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
12326 time around.
12327 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
12328 (gen_type_die_with_usage): Call check_die.
12329 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
12330
12331 2015-06-11 Jason Merrill <jason@redhat.com>
12332
12333 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
12334 dies.
12335
12336 2015-06-11 Marek Polacek <polacek@redhat.com>
12337
12338 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
12339
12340 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
12341
12342 PR bootstrap/66252
12343 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
12344 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
12345 (*addx_extend_sp32): Fix pasto.
12346 (*subx_extend): Rename into...
12347 (*subx_extend_sp32): ...this.
12348 (*adddi3_extend_sp32): Add earlyclobber.
12349 (*subdi3_insn_sp32): Likewise.
12350 (*subdi3_extend_sp32): Likewise.
12351 (*and_not_di_sp32): Likewise.
12352 (*or_not_di_sp32): Likewise.
12353 (*xor_not_di_sp32): Likewise.
12354 (*negdi2_sp32): Likewise.
12355 (*one_cmpldi2_sp32): Likewise.
12356
12357 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
12358
12359 * debug.h (struct gcc_debug_hooks): Add a
12360 register_main_translation_unit hook.
12361 * debug.c (do_nothing_debug_hooks): Provide a function for this
12362 new hook.
12363 * dbxout.c (dbx_debug_hooks): Likewise.
12364 * sdbout.c (sdb_debug_hooks): Likewise.
12365 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12366 * dwarf2out.c (main_translation_unit): New global variable.
12367 (dwarf2out_register_main_translation_unit): New function
12368 implementing the new hook.
12369 (dwarf2_debug_hooks): Assign
12370 dwarf2out_register_main_translation_unit to this new hook.
12371 (dwarf2out_init): Associate any main translation unit to
12372 comp_unit_die ().
12373
12374 2015-06-11 Marek Polacek <polacek@redhat.com>
12375
12376 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
12377
12378 2015-06-11 Marek Polacek <polacek@redhat.com>
12379
12380 * match.pd: Use single_use throughout.
12381
12382 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12383
12384 * config/arm/arm.c (arm_option_params_internal): When optimising
12385 for speed set max_insns_skipped when arm_restrict_it.
12386
12387 2015-06-11 Christian Bruel <christian.bruel@st.com>
12388
12389 PR target/52144
12390 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
12391 macros in ...
12392 (arm_cpu_builtins): New function.
12393 (arm_pragma_target_parse): Call arm_cpu_builtins.
12394 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
12395 (arm_register_target_pragmas): Likewise.
12396 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
12397 Call arm_register_target_pragmas.
12398 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
12399 (arm_pragma_target_parse): Likewise.
12400
12401 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
12402
12403 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
12404 of the second operand.
12405
12406 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
12407
12408 PR target/66473
12409 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
12410 to prepare mask operand for AVX512 modes.
12411
12412 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12413
12414 PR target/66474
12415 * doc/md.texi (Machine Constraints): Document that on the PowerPC
12416 if you use a constraint that targets a VSX register, you must use
12417 %x<n> in the template.
12418
12419 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
12420
12421 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
12422 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
12423 (define_insn "trap"): New definition.
12424
12425 2015-06-10 Richard Biener <rguenther@suse.de>
12426
12427 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
12428 out from ...
12429 (vect_supported_load_permutation_p): ... here. Handle
12430 supportable permutations in reductions.
12431 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
12432 for vectorizing strided group loads.
12433
12434 2015-06-10 Jakub Jelinek <jakub@redhat.com>
12435
12436 PR target/66470
12437 * config/i386/i386.c (ix86_split_long_move): For collisions
12438 involving direct tls segment refs, move the UNSPEC_TP possibly
12439 wrapped in ZERO_EXTEND out of the address for lea, to each of
12440 the memory loads.
12441
12442 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12443
12444 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
12445 dmb sy. Adjust tabs.
12446
12447 2015-06-10 Tom de Vries <tom@codesourcery.com>
12448
12449 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
12450
12451 2015-06-10 Martin Liska <mliska@suse.cz>
12452
12453 PR bootstrap/66471
12454 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
12455 all enum values in mem_alloc_origin.
12456 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
12457 name.
12458 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
12459 * bitmap.c (bitmap_register): Likewise.
12460 (dump_bitmap_statistics): Likewise.
12461 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
12462 (ggc_record_overhead): Likewise.
12463 * hash-map.h: Likewise.
12464 * hash-set.h: Likewise.
12465 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
12466 * hash-table.h: Likewise.
12467 * vec.c (vec_prefix::register_overhead): Likewise.
12468 (vec_prefix::release_overhead): Likewise.
12469 (dump_vec_loc_statistics): Likewise.
12470
12471 2015-06-09 Christian Bruel <christian.bruel@st.com>
12472
12473 PR target/52144
12474 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
12475 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
12476 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
12477 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
12478 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
12479 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
12480 (arm_valid_target_attribute_p): Likewise.
12481 (arm_set_current_function, arm_can_inline_p): Likewise.
12482 (arm_valid_target_attribute_rec): Likewise.
12483 (arm_previous_fndecl): New variable.
12484 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
12485 (TARGET_CAN_INLINE_P): Define.
12486 (arm_asm_trampoline_template): Emit mode.
12487 (arm_file_start): Don't set unified syntax.
12488 (arm_declare_function_name): Set unified syntax and mode.
12489 (arm_option_override): Init target_option_default_node.
12490 and target_option_current_node.
12491 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
12492 (*call_symbol): Likewise.
12493 * doc/extend.texi: Document ARM/Thumb target attribute.
12494 * doc/invoke.texi: Likewise.
12495
12496 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12497
12498 Revert:
12499 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12500 PR rtl-optimization/64164
12501 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12502 * tree-ssa-copyrename.c: Removed.
12503 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12504 -ftree-coalesce-vars.
12505 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12506 * common.opt (ftree-copyrename): Ignore.
12507 (ftree-coalesce-inlined-vars): Likewise.
12508 * doc/invoke.texi: Remove the ignored options above.
12509 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12510 * tree-ssa-coalesce.h: ... here.
12511 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12512 headers required by it.
12513 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12514 across variables when flag_tree_coalesce_vars. Check register
12515 use and promoted modes to allow coalescing. Moved to
12516 tree-ssa-coalesce.c.
12517 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12518 with its member functions to tree-ssa-coalesce.c.
12519 (var_map_base_init): Likewise. Renamed to
12520 compute_samebase_partition_bases.
12521 (partition_view_normal): Drop want_bases parameter.
12522 (partition_view_bitmap): Likewise.
12523 * tree-ssa-live.h: Adjust declarations.
12524 * tree-ssa-coalesce.c: Include explow.h.
12525 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12526 default defs at the entry point.
12527 (dump_part_var_map): New.
12528 (compute_optimized_partition_bases): New, called by...
12529 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12530 of compute_samebase_partition_bases. Adjust.
12531 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12532 * cfgexpand.c (leader_merge): New.
12533 (get_rtl_for_parm_ssa_default_def): New.
12534 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12535 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12536 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12537 redundant MEM attr setting.
12538 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12539 from...
12540 (expand_one_stack_var): ... this. New wrapper to check and
12541 skip already expanded SSA partitions.
12542 (record_alignment_for_reg_var): New, factored out of...
12543 (expand_one_var): ... this.
12544 (expand_one_ssa_partition): New.
12545 (adjust_one_expanded_partition_var): New.
12546 (expand_one_register_var): Check and skip already expanded SSA
12547 partitions.
12548 (expand_used_vars): Don't create DECLs for anonymous SSA
12549 names. Expand all SSA partitions, then adjust all SSA names.
12550 (pass::execute): Replace the loops that set
12551 SA.partition_to_pseudo from partition leaders and cleared
12552 DECL_RTL for multi-location variables, and that which used to
12553 rename vars and set attrs, with one that clears DECL_RTL and
12554 checks that PARMs and RESULTs default_defs match DECL_RTL.
12555 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12556 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12557 * explow.c (promote_ssa_mode): New.
12558 * explow.h (promote_ssa_mode): Declare.
12559 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12560 * function.c: Include cfgexpand.h.
12561 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12562 (use_register_for_parm_decl): Wrapper for the above to
12563 special-case the result_ptr.
12564 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12565 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12566 multiple locations.
12567 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12568 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12569 (assign_parm_setup_block): Prefer SSA-assigned location.
12570 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12571 if stack_parm is NULL.
12572 (assign_parm_setup_stack): Prefer SSA-assigned location.
12573 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12574 rtl before testing for pointer bounds. Special-case result_ptr.
12575 (expand_function_start): Maybe reset DECL_RTL of result.
12576 Prefer SSA-assigned location for result and static chain.
12577 Factor out DECL_RESULT and SET_DECL_RTL.
12578 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12579 anonymous SSA names. Use promote_ssa_mode.
12580 (get_temp_reg): Likewise.
12581 (remove_ssa_form): Adjust.
12582 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12583 and get its reg_usage for reg invalidation.
12584 (compute_bb_dataflow): Pass it insn.
12585 (emit_notes_in_bb): Likewise.
12586 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
12587 fail assert on conversion between unsigned types.
12588
12589 2015-06-09 Tom de Vries <tom@codesourcery.com>
12590
12591 PR tree-optimization/65460
12592 * omp-low.c (expand_omp_target): Set parallelized_function on
12593 cgraph_node for child_fn.
12594
12595 2015-06-09 Tom de Vries <tom@codesourcery.com>
12596
12597 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
12598 parallelized_function before add_new_function.
12599
12600 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
12601
12602 * gcc-plugin.h: Move decls to plugin.h and include it.
12603 * plugin.h: Relocate decls from gcc-plugin.h
12604 * ggc-page.c: Include required header files.
12605 * passes.c: Likewise.
12606 * cgraphunit.c: Likewise.
12607
12608 2015-06-09 Tom de Vries <tom@codesourcery.com>
12609
12610 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
12611
12612 2015-06-09 Jason Merrill <jason@redhat.com>
12613
12614 PR bootstrap/66448
12615 * toplev.c (check_global_declaration): Don't warn about a clone.
12616
12617 2015-06-09 Marek Polacek <polacek@redhat.com>
12618
12619 PR tree-optimization/66299
12620 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
12621 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
12622 patterns.
12623
12624 2015-06-09 Richard Biener <rguenther@suse.de>
12625
12626 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
12627 (vect_analyze_slp_instance): Instead do not falsely drop
12628 load permutations.
12629
12630 2015-06-09 Richard Biener <rguenther@suse.de>
12631
12632 PR middle-end/66423
12633 * match.pd: Handle A % (unsigned)(1 << B).
12634
12635 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
12636
12637 * varasm.c (output_object_block_htab): Remove.
12638 (output_object_block_compare): New.
12639 (output_object_blocks): Sort named object_blocks before outputting
12640 them.
12641
12642 2015-06-09 Richard Biener <rguenther@suse.de>
12643
12644 PR tree-optimization/66419
12645 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
12646 consider GROUP_GAP when detecting a perfect subchain.
12647
12648 2015-06-09 Nick Clifton <nickc@redhat.com>
12649
12650 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
12651 place read only data in the .frodata section.
12652
12653 2015-06-09 Shiva Chen <shiva0217@gmail.com>
12654
12655 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
12656 (atomic_store<mode>): Likewise.
12657
12658 2015-06-09 Richard Biener <rguenther@suse.de>
12659
12660 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
12661
12662 2015-06-09 Richard Biener <rguenther@suse.de>
12663
12664 PR middle-end/66413
12665 * tree-inline.c (insert_init_debug_bind): Unshare value.
12666
12667 2015-06-09 Richard Biener <rguenther@suse.de>
12668
12669 PR tree-optimization/66396
12670 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
12671 Rename virtual operands.
12672
12673 2015-06-09 Tom de Vries <tom@codesourcery.com>
12674
12675 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
12676 always return false.
12677
12678 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12679
12680 PR rtl-optimization/64164
12681 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12682 * tree-ssa-copyrename.c: Removed.
12683 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12684 -ftree-coalesce-vars.
12685 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12686 * common.opt (ftree-copyrename): Ignore.
12687 (ftree-coalesce-inlined-vars): Likewise.
12688 * doc/invoke.texi: Remove the ignored options above.
12689 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12690 * tree-ssa-coalesce.h: ... here.
12691 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12692 headers required by it.
12693 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12694 across variables when flag_tree_coalesce_vars. Check register
12695 use and promoted modes to allow coalescing. Moved to
12696 tree-ssa-coalesce.c.
12697 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12698 with its member functions to tree-ssa-coalesce.c.
12699 (var_map_base_init): Likewise. Renamed to
12700 compute_samebase_partition_bases.
12701 (partition_view_normal): Drop want_bases parameter.
12702 (partition_view_bitmap): Likewise.
12703 * tree-ssa-live.h: Adjust declarations.
12704 * tree-ssa-coalesce.c: Include explow.h.
12705 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12706 default defs at the entry point.
12707 (dump_part_var_map): New.
12708 (compute_optimized_partition_bases): New, called by...
12709 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12710 of compute_samebase_partition_bases. Adjust.
12711 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12712 * cfgexpand.c (leader_merge): New.
12713 (get_rtl_for_parm_ssa_default_def): New.
12714 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12715 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12716 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12717 redundant MEM attr setting.
12718 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12719 from...
12720 (expand_one_stack_var): ... this. New wrapper to check and
12721 skip already expanded SSA partitions.
12722 (record_alignment_for_reg_var): New, factored out of...
12723 (expand_one_var): ... this.
12724 (expand_one_ssa_partition): New.
12725 (adjust_one_expanded_partition_var): New.
12726 (expand_one_register_var): Check and skip already expanded SSA
12727 partitions.
12728 (expand_used_vars): Don't create DECLs for anonymous SSA
12729 names. Expand all SSA partitions, then adjust all SSA names.
12730 (pass::execute): Replace the loops that set
12731 SA.partition_to_pseudo from partition leaders and cleared
12732 DECL_RTL for multi-location variables, and that which used to
12733 rename vars and set attrs, with one that clears DECL_RTL and
12734 checks that PARMs and RESULTs default_defs match DECL_RTL.
12735 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12736 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12737 * explow.c (promote_ssa_mode): New.
12738 * explow.h (promote_ssa_mode): Declare.
12739 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12740 * function.c: Include cfgexpand.h.
12741 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12742 (use_register_for_parm_decl): Wrapper for the above to
12743 special-case the result_ptr.
12744 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12745 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12746 multiple locations.
12747 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12748 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12749 (assign_parm_setup_block): Prefer SSA-assigned location.
12750 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12751 if stack_parm is NULL.
12752 (assign_parm_setup_stack): Prefer SSA-assigned location.
12753 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12754 rtl before testing for pointer bounds. Special-case result_ptr.
12755 (expand_function_start): Maybe reset DECL_RTL of result.
12756 Prefer SSA-assigned location for result and static chain.
12757 Factor out DECL_RESULT and SET_DECL_RTL.
12758 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12759 anonymous SSA names. Use promote_ssa_mode.
12760 (get_temp_reg): Likewise.
12761 (remove_ssa_form): Adjust.
12762 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12763 and get its reg_usage for reg invalidation.
12764 (compute_bb_dataflow): Pass it insn.
12765 (emit_notes_in_bb): Likewise.
12766 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
12767 fail assert on conversion between unsigned types.
12768
12769 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12770
12771 PR debug/58315
12772 * tree-inline.c (reset_debug_binding): New.
12773 (reset_debug_bindings): Likewise.
12774 (expand_call_inline): Call it.
12775
12776 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
12777
12778 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
12779 TYPE_STRING_FLAG.
12780
12781 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
12782
12783 * lto-streamer-out.c (lto_output_location): Stream
12784 reserved locations correctly.
12785 * lto-streamer-in.c (lto_output_location): Likewise.
12786
12787 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
12788
12789 * coretypes.h: Include hash-table.h and hash-set.h for host files.
12790 * ggc.h: Don't include statistics.h>
12791 * hash-map.h: Remove all includes.
12792 * hash-set.h: Likewise.
12793 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
12794 the include list. Remove <new>.
12795 * inchash.h: Remove all includes.
12796 * mem-stats.h: Likewise.
12797 * vec.h: No special processing for generators or ggc.
12798 * alias.c : Adjust include files.
12799 * alloc-pool.c : Likewise.
12800 * alloc-pool.h : Likewise.
12801 * asan.c : Likewise.
12802 * attribs.c : Likewise.
12803 * auto-inc-dec.c : Likewise.
12804 * auto-profile.c : Likewise.
12805 * bb-reorder.c : Likewise.
12806 * bitmap.c : Likewise.
12807 * bitmap.h : Likewise.
12808 * bt-load.c : Likewise.
12809 * builtins.c : Likewise.
12810 * caller-save.c : Likewise.
12811 * calls.c : Likewise.
12812 * ccmp.c : Likewise.
12813 * cfg.c : Likewise.
12814 * cfganal.c : Likewise.
12815 * cfgbuild.c : Likewise.
12816 * cfgcleanup.c : Likewise.
12817 * cfgexpand.c : Likewise.
12818 * cfghooks.c : Likewise.
12819 * cfgloop.c : Likewise.
12820 * cfgloop.h : Likewise.
12821 * cfgloopanal.c : Likewise.
12822 * cfgloopmanip.c : Likewise.
12823 * cfgrtl.c : Likewise.
12824 * cgraph.c : Likewise.
12825 * cgraphbuild.c : Likewise.
12826 * cgraphclones.c : Likewise.
12827 * cgraphunit.c : Likewise.
12828 * cilk-common.c : Likewise.
12829 * combine-stack-adj.c : Likewise.
12830 * combine.c : Likewise.
12831 * compare-elim.c : Likewise.
12832 * context.c : Likewise.
12833 * convert.c : Likewise.
12834 * coverage.c : Likewise.
12835 * cppbuiltin.c : Likewise.
12836 * cprop.c : Likewise.
12837 * cse.c : Likewise.
12838 * cselib.c : Likewise.
12839 * data-streamer-in.c : Likewise.
12840 * data-streamer-out.c : Likewise.
12841 * data-streamer.c : Likewise.
12842 * data-streamer.h : Likewise.
12843 * dbxout.c : Likewise.
12844 * dce.c : Likewise.
12845 * ddg.c : Likewise.
12846 * debug.c : Likewise.
12847 * df-core.c : Likewise.
12848 * df-problems.c : Likewise.
12849 * df-scan.c : Likewise.
12850 * df.h : Likewise.
12851 * dfp.c : Likewise.
12852 * dojump.c : Likewise.
12853 * dominance.c : Likewise.
12854 * domwalk.c : Likewise.
12855 * double-int.c : Likewise.
12856 * dse.c : Likewise.
12857 * dumpfile.c : Likewise.
12858 * dwarf2asm.c : Likewise.
12859 * dwarf2cfi.c : Likewise.
12860 * dwarf2out.c : Likewise.
12861 * emit-rtl.c : Likewise.
12862 * et-forest.c : Likewise.
12863 * except.c : Likewise.
12864 * except.h : Likewise.
12865 * explow.c : Likewise.
12866 * expmed.c : Likewise.
12867 * expr.c : Likewise.
12868 * final.c : Likewise.
12869 * fixed-value.c : Likewise.
12870 * fold-const.c : Likewise.
12871 * function.c : Likewise.
12872 * fwprop.c : Likewise.
12873 * gcc-plugin.h : Likewise.
12874 * gcc.c : Likewise.
12875 * gcse-common.c : Likewise.
12876 * gcse.c : Likewise.
12877 * genattrtab.c : Likewise.
12878 * genautomata.c : Likewise.
12879 * genconditions.c : Likewise.
12880 * genemit.c : Likewise.
12881 * generic-match-head.c : Likewise.
12882 * genextract.c : Likewise.
12883 * gengtype-state.c : Likewise.
12884 * gengtype.c : Likewise.
12885 * genhooks.c : Likewise.
12886 * genmatch.c : Likewise.
12887 * genmodes.c : Likewise.
12888 * genrecog.c : Likewise.
12889 * gensupport.c : Likewise.
12890 * ggc-common.c : Likewise.
12891 * ggc-internal.h : Likewise.
12892 * ggc-none.c : Likewise.
12893 * ggc-page.c : Likewise.
12894 * gimple-builder.c : Likewise.
12895 * gimple-expr.c : Likewise.
12896 * gimple-fold.c : Likewise.
12897 * gimple-iterator.c : Likewise.
12898 * gimple-low.c : Likewise.
12899 * gimple-match-head.c : Likewise.
12900 * gimple-pretty-print.c : Likewise.
12901 * gimple-ssa-isolate-paths.c : Likewise.
12902 * gimple-ssa-strength-reduction.c : Likewise.
12903 * gimple-ssa.h : Likewise.
12904 * gimple-streamer-in.c : Likewise.
12905 * gimple-streamer-out.c : Likewise.
12906 * gimple-streamer.h : Likewise.
12907 * gimple-walk.c : Likewise.
12908 * gimple.c : Likewise.
12909 * gimplify-me.c : Likewise.
12910 * gimplify.c : Likewise.
12911 * godump.c : Likewise.
12912 * graph.c : Likewise.
12913 * graphds.c : Likewise.
12914 * graphite-blocking.c : Likewise.
12915 * graphite-dependences.c : Likewise.
12916 * graphite-interchange.c : Likewise.
12917 * graphite-isl-ast-to-gimple.c : Likewise.
12918 * graphite-optimize-isl.c : Likewise.
12919 * graphite-poly.c : Likewise.
12920 * graphite-scop-detection.c : Likewise.
12921 * graphite-sese-to-poly.c : Likewise.
12922 * graphite.c : Likewise.
12923 * haifa-sched.c : Likewise.
12924 * hard-reg-set.h : Likewise.
12925 * hw-doloop.c : Likewise.
12926 * ifcvt.c : Likewise.
12927 * inchash.c : Likewise.
12928 * incpath.c : Likewise.
12929 * init-regs.c : Likewise.
12930 * input.c : Likewise.
12931 * internal-fn.c : Likewise.
12932 * ipa-chkp.c : Likewise.
12933 * ipa-comdats.c : Likewise.
12934 * ipa-cp.c : Likewise.
12935 * ipa-devirt.c : Likewise.
12936 * ipa-icf-gimple.c : Likewise.
12937 * ipa-icf.c : Likewise.
12938 * ipa-inline-analysis.c : Likewise.
12939 * ipa-inline-transform.c : Likewise.
12940 * ipa-inline.c : Likewise.
12941 * ipa-polymorphic-call.c : Likewise.
12942 * ipa-profile.c : Likewise.
12943 * ipa-prop.c : Likewise.
12944 * ipa-pure-const.c : Likewise.
12945 * ipa-ref.c : Likewise.
12946 * ipa-reference.c : Likewise.
12947 * ipa-split.c : Likewise.
12948 * ipa-utils.c : Likewise.
12949 * ipa-visibility.c : Likewise.
12950 * ipa.c : Likewise.
12951 * ira-build.c : Likewise.
12952 * ira-color.c : Likewise.
12953 * ira-conflicts.c : Likewise.
12954 * ira-costs.c : Likewise.
12955 * ira-emit.c : Likewise.
12956 * ira-lives.c : Likewise.
12957 * ira.c : Likewise.
12958 * jump.c : Likewise.
12959 * langhooks.c : Likewise.
12960 * lcm.c : Likewise.
12961 * libfuncs.h : Likewise.
12962 * lists.c : Likewise.
12963 * loop-doloop.c : Likewise.
12964 * loop-init.c : Likewise.
12965 * loop-invariant.c : Likewise.
12966 * loop-iv.c : Likewise.
12967 * loop-unroll.c : Likewise.
12968 * lower-subreg.c : Likewise.
12969 * lra-assigns.c : Likewise.
12970 * lra-coalesce.c : Likewise.
12971 * lra-constraints.c : Likewise.
12972 * lra-eliminations.c : Likewise.
12973 * lra-lives.c : Likewise.
12974 * lra-remat.c : Likewise.
12975 * lra-spills.c : Likewise.
12976 * lra.c : Likewise.
12977 * lto-cgraph.c : Likewise.
12978 * lto-compress.c : Likewise.
12979 * lto-opts.c : Likewise.
12980 * lto-section-in.c : Likewise.
12981 * lto-section-out.c : Likewise.
12982 * lto-streamer-in.c : Likewise.
12983 * lto-streamer-out.c : Likewise.
12984 * lto-streamer.c : Likewise.
12985 * lto-streamer.h : Likewise.
12986 * mcf.c : Likewise.
12987 * mode-switching.c : Likewise.
12988 * modulo-sched.c : Likewise.
12989 * omega.c : Likewise.
12990 * omp-low.c : Likewise.
12991 * optabs.c : Likewise.
12992 * opts-global.c : Likewise.
12993 * opts.h : Likewise.
12994 * passes.c : Likewise.
12995 * plugin.c : Likewise.
12996 * postreload-gcse.c : Likewise.
12997 * postreload.c : Likewise.
12998 * predict.c : Likewise.
12999 * print-rtl.c : Likewise.
13000 * print-tree.c : Likewise.
13001 * profile.c : Likewise.
13002 * read-md.c : Likewise.
13003 * read-md.h : Likewise.
13004 * read-rtl.c : Likewise.
13005 * real.c : Likewise.
13006 * realmpfr.c : Likewise.
13007 * recog.c : Likewise.
13008 * ree.c : Likewise.
13009 * reg-stack.c : Likewise.
13010 * regcprop.c : Likewise.
13011 * reginfo.c : Likewise.
13012 * regrename.c : Likewise.
13013 * regstat.c : Likewise.
13014 * reload.c : Likewise.
13015 * reload1.c : Likewise.
13016 * reorg.c : Likewise.
13017 * resource.c : Likewise.
13018 * rtl-chkp.c : Likewise.
13019 * rtl.c : Likewise.
13020 * rtl.h : Likewise.
13021 * rtlanal.c : Likewise.
13022 * rtlhash.c : Likewise.
13023 * rtlhash.h : Likewise.
13024 * rtlhooks.c : Likewise.
13025 * sanopt.c : Likewise.
13026 * sched-deps.c : Likewise.
13027 * sched-ebb.c : Likewise.
13028 * sched-rgn.c : Likewise.
13029 * sched-vis.c : Likewise.
13030 * sdbout.c : Likewise.
13031 * sel-sched-dump.c : Likewise.
13032 * sel-sched-ir.c : Likewise.
13033 * sel-sched-ir.h : Likewise.
13034 * sel-sched.c : Likewise.
13035 * sese.c : Likewise.
13036 * shrink-wrap.c : Likewise.
13037 * shrink-wrap.h : Likewise.
13038 * simplify-rtx.c : Likewise.
13039 * stack-ptr-mod.c : Likewise.
13040 * statistics.c : Likewise.
13041 * stmt.c : Likewise.
13042 * stor-layout.c : Likewise.
13043 * store-motion.c : Likewise.
13044 * stringpool.c : Likewise.
13045 * symtab.c : Likewise.
13046 * target-globals.c : Likewise.
13047 * targhooks.c : Likewise.
13048 * tlink.c : Likewise.
13049 * toplev.c : Likewise.
13050 * tracer.c : Likewise.
13051 * trans-mem.c : Likewise.
13052 * tree-affine.c : Likewise.
13053 * tree-affine.h : Likewise.
13054 * tree-browser.c : Likewise.
13055 * tree-call-cdce.c : Likewise.
13056 * tree-cfg.c : Likewise.
13057 * tree-cfgcleanup.c : Likewise.
13058 * tree-chkp-opt.c : Likewise.
13059 * tree-chkp.c : Likewise.
13060 * tree-chrec.c : Likewise.
13061 * tree-complex.c : Likewise.
13062 * tree-data-ref.c : Likewise.
13063 * tree-dfa.c : Likewise.
13064 * tree-diagnostic.c : Likewise.
13065 * tree-dump.c : Likewise.
13066 * tree-eh.c : Likewise.
13067 * tree-eh.h : Likewise.
13068 * tree-emutls.c : Likewise.
13069 * tree-hasher.h : Likewise.
13070 * tree-if-conv.c : Likewise.
13071 * tree-inline.c : Likewise.
13072 * tree-inline.h : Likewise.
13073 * tree-into-ssa.c : Likewise.
13074 * tree-iterator.c : Likewise.
13075 * tree-loop-distribution.c : Likewise.
13076 * tree-nested.c : Likewise.
13077 * tree-nrv.c : Likewise.
13078 * tree-object-size.c : Likewise.
13079 * tree-outof-ssa.c : Likewise.
13080 * tree-parloops.c : Likewise.
13081 * tree-phinodes.c : Likewise.
13082 * tree-predcom.c : Likewise.
13083 * tree-pretty-print.c : Likewise.
13084 * tree-profile.c : Likewise.
13085 * tree-scalar-evolution.c : Likewise.
13086 * tree-sra.c : Likewise.
13087 * tree-ssa-address.c : Likewise.
13088 * tree-ssa-alias.c : Likewise.
13089 * tree-ssa-ccp.c : Likewise.
13090 * tree-ssa-coalesce.c : Likewise.
13091 * tree-ssa-copy.c : Likewise.
13092 * tree-ssa-copyrename.c : Likewise.
13093 * tree-ssa-dce.c : Likewise.
13094 * tree-ssa-dom.c : Likewise.
13095 * tree-ssa-dse.c : Likewise.
13096 * tree-ssa-forwprop.c : Likewise.
13097 * tree-ssa-ifcombine.c : Likewise.
13098 * tree-ssa-live.c : Likewise.
13099 * tree-ssa-loop-ch.c : Likewise.
13100 * tree-ssa-loop-im.c : Likewise.
13101 * tree-ssa-loop-ivcanon.c : Likewise.
13102 * tree-ssa-loop-ivopts.c : Likewise.
13103 * tree-ssa-loop-manip.c : Likewise.
13104 * tree-ssa-loop-niter.c : Likewise.
13105 * tree-ssa-loop-prefetch.c : Likewise.
13106 * tree-ssa-loop-unswitch.c : Likewise.
13107 * tree-ssa-loop.c : Likewise.
13108 * tree-ssa-math-opts.c : Likewise.
13109 * tree-ssa-operands.c : Likewise.
13110 * tree-ssa-phiopt.c : Likewise.
13111 * tree-ssa-phiprop.c : Likewise.
13112 * tree-ssa-pre.c : Likewise.
13113 * tree-ssa-propagate.c : Likewise.
13114 * tree-ssa-reassoc.c : Likewise.
13115 * tree-ssa-sccvn.c : Likewise.
13116 * tree-ssa-scopedtables.c : Likewise.
13117 * tree-ssa-sink.c : Likewise.
13118 * tree-ssa-strlen.c : Likewise.
13119 * tree-ssa-structalias.c : Likewise.
13120 * tree-ssa-tail-merge.c : Likewise.
13121 * tree-ssa-ter.c : Likewise.
13122 * tree-ssa-threadedge.c : Likewise.
13123 * tree-ssa-threadupdate.c : Likewise.
13124 * tree-ssa-uncprop.c : Likewise.
13125 * tree-ssa-uninit.c : Likewise.
13126 * tree-ssa.c : Likewise.
13127 * tree-ssanames.c : Likewise.
13128 * tree-stdarg.c : Likewise.
13129 * tree-streamer-in.c : Likewise.
13130 * tree-streamer-out.c : Likewise.
13131 * tree-streamer.c : Likewise.
13132 * tree-streamer.h : Likewise.
13133 * tree-switch-conversion.c : Likewise.
13134 * tree-tailcall.c : Likewise.
13135 * tree-vect-data-refs.c : Likewise.
13136 * tree-vect-generic.c : Likewise.
13137 * tree-vect-loop-manip.c : Likewise.
13138 * tree-vect-loop.c : Likewise.
13139 * tree-vect-patterns.c : Likewise.
13140 * tree-vect-slp.c : Likewise.
13141 * tree-vect-stmts.c : Likewise.
13142 * tree-vectorizer.c : Likewise.
13143 * tree-vectorizer.h : Likewise.
13144 * tree-vrp.c : Likewise.
13145 * tree.c : Likewise.
13146 * tsan.c : Likewise.
13147 * ubsan.c : Likewise.
13148 * valtrack.c : Likewise.
13149 * valtrack.h : Likewise.
13150 * value-prof.c : Likewise.
13151 * var-tracking.c : Likewise.
13152 * varasm.c : Likewise.
13153 * varpool.c : Likewise.
13154 * vec.c: Likewise.
13155 * vmsdbgout.c : Likewise.
13156 * vtable-verify.c : Likewise.
13157 * vtable-verify.h : Likewise.
13158 * web.c : Likewise.
13159 * wide-int.cc : Likewise.
13160 * xcoffout.c : Likewise.
13161 * config/aarch64/aarch64-builtins.c : Likewise.
13162 * config/aarch64/aarch64.c : Likewise.
13163 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
13164 * config/alpha/alpha.c : Likewise.
13165 * config/arc/arc.c : Likewise.
13166 * config/arm/aarch-common.c : Likewise.
13167 * config/arm/arm-builtins.c : Likewise.
13168 * config/arm/arm-c.c : Likewise.
13169 * config/arm/arm.c : Likewise.
13170 * config/avr/avr-c.c : Likewise.
13171 * config/avr/avr-log.c : Likewise.
13172 * config/avr/avr.c : Likewise.
13173 * config/bfin/bfin.c : Likewise.
13174 * config/c6x/c6x.c : Likewise.
13175 * config/cr16/cr16.c : Likewise.
13176 * config/cris/cris.c : Likewise.
13177 * config/darwin-c.c : Likewise.
13178 * config/darwin.c : Likewise.
13179 * config/default-c.c : Likewise.
13180 * config/epiphany/epiphany.c : Likewise.
13181 * config/epiphany/mode-switch-use.c : Likewise.
13182 * config/epiphany/resolve-sw-modes.c : Likewise.
13183 * config/fr30/fr30.c : Likewise.
13184 * config/frv/frv.c : Likewise.
13185 * config/ft32/ft32.c : Likewise.
13186 * config/glibc-c.c : Likewise.
13187 * config/h8300/h8300.c : Likewise.
13188 * config/i386/i386-c.c : Likewise.
13189 * config/i386/i386.c : Likewise.
13190 * config/i386/msformat-c.c : Likewise.
13191 * config/i386/winnt-cxx.c : Likewise.
13192 * config/i386/winnt-stubs.c : Likewise.
13193 * config/i386/winnt.c : Likewise.
13194 * config/ia64/ia64-c.c : Likewise.
13195 * config/ia64/ia64.c : Likewise.
13196 * config/iq2000/iq2000.c : Likewise.
13197 * config/lm32/lm32.c : Likewise.
13198 * config/m32c/m32c-pragma.c : Likewise.
13199 * config/m32c/m32c.c : Likewise.
13200 * config/m32r/m32r.c : Likewise.
13201 * config/m68k/m68k.c : Likewise.
13202 * config/mcore/mcore.c : Likewise.
13203 * config/mep/mep-pragma.c : Likewise.
13204 * config/mep/mep.c : Likewise.
13205 * config/microblaze/microblaze-c.c : Likewise.
13206 * config/microblaze/microblaze.c : Likewise.
13207 * config/mips/mips.c : Likewise.
13208 * config/mmix/mmix.c : Likewise.
13209 * config/mn10300/mn10300.c : Likewise.
13210 * config/moxie/moxie.c : Likewise.
13211 * config/msp430/msp430-c.c : Likewise.
13212 * config/msp430/msp430.c : Likewise.
13213 * config/nds32/nds32-cost.c : Likewise.
13214 * config/nds32/nds32-fp-as-gp.c : Likewise.
13215 * config/nds32/nds32-intrinsic.c : Likewise.
13216 * config/nds32/nds32-isr.c : Likewise.
13217 * config/nds32/nds32-md-auxiliary.c : Likewise.
13218 * config/nds32/nds32-memory-manipulation.c : Likewise.
13219 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
13220 * config/nds32/nds32-predicates.c : Likewise.
13221 * config/nds32/nds32.c : Likewise.
13222 * config/nios2/nios2.c : Likewise.
13223 * config/nvptx/nvptx.c : Likewise.
13224 * config/pa/pa.c : Likewise.
13225 * config/pdp11/pdp11.c : Likewise.
13226 * config/rl78/rl78-c.c : Likewise.
13227 * config/rl78/rl78.c : Likewise.
13228 * config/rs6000/rs6000-c.c : Likewise.
13229 * config/rs6000/rs6000.c : Likewise.
13230 * config/rx/rx.c : Likewise.
13231 * config/s390/s390-c.c : Likewise.
13232 * config/s390/s390.c : Likewise.
13233 * config/sh/sh-c.c : Likewise.
13234 * config/sh/sh-mem.cc : Likewise.
13235 * config/sh/sh.c : Likewise.
13236 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
13237 * config/sh/sh_treg_combine.cc : Likewise.
13238 * config/sol2-c.c : Likewise.
13239 * config/sol2-cxx.c : Likewise.
13240 * config/sol2-stubs.c : Likewise.
13241 * config/sol2.c : Likewise.
13242 * config/sparc/sparc-c.c : Likewise.
13243 * config/sparc/sparc.c : Likewise.
13244 * config/spu/spu-c.c : Likewise.
13245 * config/spu/spu.c : Likewise.
13246 * config/stormy16/stormy16.c : Likewise.
13247 * config/tilegx/mul-tables.c : Likewise.
13248 * config/tilegx/tilegx-c.c : Likewise.
13249 * config/tilegx/tilegx.c : Likewise.
13250 * config/tilepro/mul-tables.c : Likewise.
13251 * config/tilepro/tilepro-c.c : Likewise.
13252 * config/tilepro/tilepro.c : Likewise.
13253 * config/v850/v850-c.c : Likewise.
13254 * config/v850/v850.c : Likewise.
13255 * config/vax/vax.c : Likewise.
13256 * config/visium/visium.c : Likewise.
13257 * config/vms/vms-c.c : Likewise.
13258 * config/vms/vms.c : Likewise.
13259 * config/vxworks.c : Likewise.
13260 * config/winnt-c.c : Likewise.
13261 * config/xtensa/xtensa.c : Likewise.
13262
13263 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13264
13265 PR lto/65378
13266 * ipa-utils.h (warn_types_mismatch): Update prototype.
13267 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
13268 parameters.
13269 (type_mismatch_p): New function.
13270 (warn_types_mismatch): Reorg to work better on non-C++ types.
13271 (odr_types_equivalent_p): Add loc1/loc2 parameters.
13272 (add_type_duplicate): Update.
13273
13274 2015-06-08 Tom de Vries <tom@codesourcery.com>
13275
13276 PR rtl-optimization/66444
13277 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
13278 call_used_regs.
13279
13280 2015-06-08 Richard Biener <rguenther@suse.de>
13281
13282 PR tree-optimization/66422
13283 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
13284 block after inserted gcc_unreachable.
13285
13286 2015-06-08 Nick Clifton <nickc@redhat.com>
13287
13288 * config/rx/rx.c (rx_function_value): Do not promote vector types.
13289 (rx_promote_function_mode): Likewise.
13290 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
13291
13292 2015-06-08 Jakub Jelinek <jakub@redhat.com>
13293
13294 * genattrtab.c (insn_alternatives): Change type from int *
13295 to uint64_t *.
13296 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
13297 (get_attr_value): Change type of num_alt to uint64_t.
13298 (compute_alternative_mask): Change return type from
13299 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
13300 (make_alternative_compare, mk_attr_alt): Change argument type
13301 from int to uint64_t.
13302 (simplify_test_exp): Change type of i from int to uint64_t.
13303 Shift ((uint64_t) 1) instead of 1 up.
13304 (main): Adjust oballocvec first argument from int to uint64_t.
13305 Shift ((uint64_t) 1) instead of 1 up.
13306
13307 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13308
13309 PR other/65366
13310 * gdbhooks.py: Import sys.
13311 (intptr): New function. Replace int(...) by intptr(...).
13312
13313 2015-06-08 Richard Biener <rguenther@suse.de>
13314
13315 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
13316 adjustment for gaps at the end of a SLP load group properly.
13317 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
13318 all permutations we can generate.
13319 (vect_transform_slp_perm_load): Use the correct group-size.
13320
13321 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
13322
13323 * genmatch.c (expr::gen_transform): For conditions, guess the type
13324 from the second operand.
13325
13326 2015-06-08 Tom de Vries <tom@codesourcery.com>
13327
13328 PR tree-optimization/66442
13329 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
13330 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
13331 if the loop latch is not a singleton. Use
13332 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
13333
13334 2015-06-08 Marek Polacek <polacek@redhat.com>
13335
13336 PR sanitizer/66452
13337 * toplev.c (check_global_declaration): Don't warn about artificial
13338 decls.
13339
13340 2015-06-08 Tom de Vries <tom@codesourcery.com>
13341
13342 PR tree-optimization/66436
13343 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
13344 dump file.
13345 * gimplify.c: Add tree-dump.h include.
13346 (gimplify_function_tree): Dump function to gimple dump file.
13347 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
13348 dump file.
13349
13350 2015-06-08 Tom de Vries <tom@codesourcery.com>
13351
13352 PR tree-optimization/66435
13353 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
13354 function.
13355
13356 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
13357
13358 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
13359 of ptr_type_node to not be ptr_to_node.
13360 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
13361 TREE_TYPE of pointers.
13362 * gimple-expr.c (useless_type_conversion): Reorder the check for
13363 function pointers and TYPE_CANONICAL.
13364
13365 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
13366
13367 PR bootstrap/66319
13368 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
13369 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
13370 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
13371 later.
13372 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
13373 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
13374 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
13375 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
13376 and non iso if unix2003.
13377
13378 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
13379
13380 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
13381
13382 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
13383
13384 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
13385 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
13386 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
13387 except.c, final.c, function.c, gcse-common.c, genemit.c,
13388 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
13389 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
13390 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
13391 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
13392 more derived ones.
13393
13394 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
13395
13396 * combine.c (combine_split_insns): Remove cast.
13397 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
13398 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
13399 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
13400 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
13401 * genemit.c (gen_split): Change return type of generated functions to
13402 rtx_insn.
13403 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
13404 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
13405 gen_peephole2_* functions.
13406 (print_subroutine, main): Likewise.
13407 * recog.c (peephole2_optimize): Remove cast.
13408 (peep2_next_insn): Promote return type to rtx_insn.
13409 * recog.h (peep2_next_insn): Fix prototype.
13410 * rtl.h (try_split, split_insns): Likewise.
13411
13412 2015-06-06 DJ Delorie <dj@redhat.com>
13413
13414 * config/msp430/msp430.c (msp430_asm_integer): Support addition
13415 and subtraction too.
13416
13417 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
13418
13419 PR target/66410
13420 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
13421 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
13422 instead of Snd. Disparage Sid/z alternative with '^'.
13423
13424 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
13425
13426 * dwarf2out.c: Remove deferred_locations*.
13427 (dwarf2_debug_hooks): Add early_finish hook.
13428 Remove global_decl hook.
13429 Add early_global_decl and late_global_decl hook.
13430 New global early_dwarf.
13431 New structure set_early_dwarf.
13432 (output_die): Indicate whether a DIE was generated early
13433 when generating assembly with -dA.
13434 (struct limbo_die_struct): Document created_for field.
13435 Remove file_table_last_lookup.
13436 (remove_AT): Return TRUE if successful.
13437 (remove_child_TAG): Clear die_parent.
13438 (reparent_child): New function abstracted from...
13439 (splice_child_die): ...here.
13440 (new_die): ICE if a DIE ends up in limbo too late.
13441 (check_die): New.
13442 (defer_location): Remove.
13443 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
13444 (fill_variable_array_bounds): New.
13445 (decl_start_label): Call fill_variable_array_bounds.
13446 (gen_formal_parameter_die): Rewrite to reuse previously generated
13447 DIEs.
13448 (gen_subprogram_die): Same.
13449 (gen_variable_die): Same.
13450 (gen_const_die): Same.
13451 (gen_label_die): Same.
13452 (gen_lexical_block_die): Same.
13453 (decl_will_get_specification_p): New.
13454 (local_function_static): New.
13455 (gen_struct_or_union_type_die): Fill in variable-length fields.
13456 (gen_typedef_die): Fill in variable-length typedefs.
13457 (gen_tagged_type_die): Gracefully return on error_mark_node.
13458 Handle re-entrancy.
13459 (gen_type_die_with_usage): Handle variable-length types.
13460 Remove duplicate code for ARRAY_TYPE case.
13461 (process_scope_var): Only process imported modules during early
13462 dwarf.
13463 (dwarf2out_early_global_decl): New.
13464 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
13465 (dwarf2out_type_decl): Set early_dwarf while calling
13466 dwarf2out_decl.
13467 (dwarf2out_decl): Verify that we did not recreate a previously
13468 generated DIE.
13469 Do not return on DECL_EXTERNALs in VAR_DECLs.
13470 Abstract some code to local_function_static.
13471 (lookup_filename): Remove use of file_table_last_lookup.
13472 Gracefully exit on missing file_name.
13473 (dwarf2out_finish): Verify limbo list.
13474 Remove deferred_locations_list use.
13475 Move deferred_asm_name and limbo flushing to...
13476 (dwarf2out_early_finish): ...here. New.
13477 (dwarf2out_c_finalize): Remove set of deferred_location_list,
13478 deferred_asm_name, and file_table_last_lookup.
13479 * cgraph.h (referred_to_p): Add default argument.
13480 * cgraphunit.c (referred_to_p): Add and handle include_self
13481 argument.
13482 (analyze_functions): Add first_time argument.
13483 Call check_global_declaration for all symbols.
13484 Call late_global_decl for nodes for moribund nodes.
13485 (finalize_compilation_unit): Add new argument to
13486 analyze_functions.
13487 Call early_global_decl for functions.
13488 Call early_finish debug hook.
13489 * dbxout.c (dbxout_early_global_decl): New.
13490 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
13491 (dbx_debug_hooks): Add new hooks.
13492 (xcoff_debug_hooks): Same.
13493 * debug.c (do_nothing_debug_hooks): Add early_finish field.
13494 Add early and late debug hooks.
13495 Remove global_decl hook.
13496 * debug.h (struct gcc_debug_hooks): Add early_finish,
13497 early_global_decl, and late_global_decl fields.
13498 Remove global_decl field.
13499 Document gcc_debug_hooks.
13500 * gengtype.c (output_typename): Remove.
13501 * godump.c (go_early_global_decl): New.
13502 (go_late_global_decl): New.
13503 (go_global_decl): Remove.
13504 (dump_go_spec_init): Remove global_decl. Add
13505 {early,late}_global_decl.
13506 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
13507 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
13508 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
13509 (write_global_declarations): Remove.
13510 (global_decl_processing): New.
13511 * langhooks.h (struct lang_hooks_for_decls): Remove
13512 final_write_globals field.
13513 Add post_compilation_parsing_cleanups field.
13514 * passes.c (rest_of_decl_compilation): Call early_global_decl.
13515 * sdbout.c: Add early and late_global_decl hooks. Remove
13516 sdbout_global_decl hook.
13517 Add early_finish field for sdb_debug_hooks.
13518 (sdbout_global_decl): Remove.
13519 (sdbout_early_global_decl): New.
13520 (sdbout_late_global_decl): New.
13521 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
13522 * toplev.c (check_global_declaration): Rename from
13523 check_global_declaration_1.
13524 Adapt to use symtab infrastructure.
13525 (check_global_declarations): Remove.
13526 (emit_debug_global_declarations): Remove.
13527 (compile_file): Remove call to final_write_globals langhook.
13528 Run the actual compilation process.
13529 Perform any post compilation parser cleanups.
13530 Generate late debug info.
13531 * toplev.h (check_global_declaration): New.
13532 (check_global_declaration_1): Remove.
13533 (check_global_declarations): Remove.
13534 (write_global_declarations): Remove.
13535 (emit_debug_global_declarations): Remove.
13536 (global_decl_processing): New.
13537 * tree-core.h (struct tree_block): Add DIE field.
13538 * tree.h (BLOCK_DIE): New.
13539 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
13540 throughout.
13541 (vmsdbgout_early_global_decl): New.
13542 (vmsdbgout_late_global_decl): New.
13543 Add early_finish debug hook field to vmsdbg_debug_hooks.
13544 Remove vmsdbgout_decl to vmsdbgout_function_decl.
13545 Add early and late_global_decl debug hooks.
13546
13547 2015-06-05 Julian Brown <julian@codesourcery.com>
13548 Sandra Loosemore <sandra@codesourcery.com>
13549
13550 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
13551 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
13552 to print-sysroot-suffix.sh script.
13553
13554 2015-06-05 Tom de Vries <tom@codesourcery.com>
13555
13556 merge from gomp4 branch:
13557 2015-05-28 Tom de Vries <tom@codesourcery.com>
13558
13559 PR tree-optimization/65443
13560 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
13561 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
13562 (try_transform_to_exit_first_loop_alt): New function.
13563 (transform_to_exit_first_loop): Use
13564 try_transform_to_exit_first_loop_alt.
13565
13566 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
13567
13568 * builtins.c (expand_builtin_atomic_compare_exchange): Call
13569 emit_cmp_and_jump_insns with the mode of target.
13570
13571 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13572
13573 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
13574
13575 2015-06-04 DJ Delorie <dj@redhat.com>
13576
13577 * config/msp430/msp430.md (movsi_s): New. Special case for
13578 storing a 20-bit symbol into a 32-bit register.
13579 * config/msp430/msp430.c (msp430_subreg): Add support for it.
13580 * config/msp430/predicates.md (msp430_symbol_operand): New.
13581
13582 2015-06-04 Sriraman Tallam <tmsriram@google.com>
13583
13584 * c-family/c-common.c (noplt): New attribute.
13585 (handle_noplt_attribute): New handler.
13586 * calls.c (prepare_call_address): Check for noplt
13587 attribute.
13588 * config/i386/i386.c (ix86_expand_call): Check
13589 for noplt attribute.
13590 (ix86_nopic_noplt_attribute_p): New function.
13591 (ix86_output_call_insn): Output indirect call for non-pic
13592 no plt calls.
13593 * doc/extend.texi (noplt): Document new attribute.
13594 * doc/invoke.texi: Document new attribute.
13595
13596 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
13597
13598 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
13599 real.h, and fixed-value.h when included in host source files.
13600 * double-int.h: Remove redundant #includes listed above.
13601 * fixed-value.h: Likewise.
13602 * real.h: Likewise.
13603 * wide-int.h: Likewise.
13604 * inchash.h: Likewise.
13605 * rtl.h: Add some include files When included from a generator file.
13606 * target.h: Remove wide-int.h and insn-modes.h from the include list.
13607 * internal-fn.h: Don't include coretypes.h.
13608 * alias.c: Adjust includes for restructured coretypes.h.
13609 * asan.c: Likewise.
13610 * attribs.c: Likewise.
13611 * auto-inc-dec.c: Likewise.
13612 * auto-profile.c: Likewise.
13613 * bb-reorder.c: Likewise.
13614 * bt-load.c: Likewise.
13615 * builtins.c: Likewise.
13616 * caller-save.c: Likewise.
13617 * calls.c: Likewise.
13618 * ccmp.c: Likewise.
13619 * cfg.c: Likewise.
13620 * cfganal.c: Likewise.
13621 * cfgbuild.c: Likewise.
13622 * cfgcleanup.c: Likewise.
13623 * cfgexpand.c: Likewise.
13624 * cfghooks.c: Likewise.
13625 * cfgloop.c: Likewise.
13626 * cfgloop.h: Likewise.
13627 * cfgloopanal.c: Likewise.
13628 * cfgloopmanip.c: Likewise.
13629 * cfgrtl.c: Likewise.
13630 * cgraph.c: Likewise.
13631 * cgraphbuild.c: Likewise.
13632 * cgraphclones.c: Likewise.
13633 * cgraphunit.c: Likewise.
13634 * cilk-common.c: Likewise.
13635 * combine-stack-adj.c: Likewise.
13636 * combine.c: Likewise.
13637 * compare-elim.c: Likewise.
13638 * convert.c: Likewise.
13639 * coverage.c: Likewise.
13640 * cppbuiltin.c: Likewise.
13641 * cprop.c: Likewise.
13642 * cse.c: Likewise.
13643 * cselib.c: Likewise.
13644 * data-streamer-in.c: Likewise.
13645 * data-streamer-out.c: Likewise.
13646 * data-streamer.c: Likewise.
13647 * dbxout.c: Likewise.
13648 * dce.c: Likewise.
13649 * ddg.c: Likewise.
13650 * debug.c: Likewise.
13651 * df-core.c: Likewise.
13652 * df-problems.c: Likewise.
13653 * df-scan.c: Likewise.
13654 * df.h: Likewise.
13655 * dfp.c: Likewise.
13656 * dojump.c: Likewise.
13657 * dominance.c: Likewise.
13658 * domwalk.c: Likewise.
13659 * double-int.c: Likewise.
13660 * dse.c: Likewise.
13661 * dumpfile.c: Likewise.
13662 * dwarf2asm.c: Likewise.
13663 * dwarf2cfi.c: Likewise.
13664 * dwarf2out.c: Likewise.
13665 * dwarf2out.h: Likewise.
13666 * emit-rtl.c: Likewise.
13667 * et-forest.c: Likewise.
13668 * except.c: Likewise.
13669 * explow.c: Likewise.
13670 * expmed.c: Likewise.
13671 * expr.c: Likewise.
13672 * final.c: Likewise.
13673 * fixed-value.c: Likewise.
13674 * fold-const.c: Likewise.
13675 * function.c: Likewise.
13676 * fwprop.c: Likewise.
13677 * gcc-plugin.h: Likewise.
13678 * gcse.c: Likewise.
13679 * generic-match-head.c: Likewise.
13680 * ggc-page.c: Likewise.
13681 * gimple-builder.c: Likewise.
13682 * gimple-expr.c: Likewise.
13683 * gimple-fold.c: Likewise.
13684 * gimple-iterator.c: Likewise.
13685 * gimple-low.c: Likewise.
13686 * gimple-match-head.c: Likewise.
13687 * gimple-pretty-print.c: Likewise.
13688 * gimple-ssa-isolate-paths.c: Likewise.
13689 * gimple-ssa-strength-reduction.c: Likewise.
13690 * gimple-streamer-in.c: Likewise.
13691 * gimple-streamer-out.c: Likewise.
13692 * gimple-streamer.h: Likewise.
13693 * gimple-walk.c: Likewise.
13694 * gimple.c: Likewise.
13695 * gimplify-me.c: Likewise.
13696 * gimplify.c: Likewise.
13697 * godump.c: Likewise.
13698 * graph.c: Likewise.
13699 * graphite-blocking.c: Likewise.
13700 * graphite-dependences.c: Likewise.
13701 * graphite-interchange.c: Likewise.
13702 * graphite-isl-ast-to-gimple.c: Likewise.
13703 * graphite-optimize-isl.c: Likewise.
13704 * graphite-poly.c: Likewise.
13705 * graphite-scop-detection.c: Likewise.
13706 * graphite-sese-to-poly.c: Likewise.
13707 * graphite.c: Likewise.
13708 * haifa-sched.c: Likewise.
13709 * hooks.h: Likewise.
13710 * hw-doloop.c: Likewise.
13711 * ifcvt.c: Likewise.
13712 * incpath.c: Likewise.
13713 * init-regs.c: Likewise.
13714 * internal-fn.c: Likewise.
13715 * ipa-chkp.c: Likewise.
13716 * ipa-comdats.c: Likewise.
13717 * ipa-cp.c: Likewise.
13718 * ipa-devirt.c: Likewise.
13719 * ipa-icf-gimple.c: Likewise.
13720 * ipa-icf.c: Likewise.
13721 * ipa-inline-analysis.c: Likewise.
13722 * ipa-inline-transform.c: Likewise.
13723 * ipa-inline.c: Likewise.
13724 * ipa-polymorphic-call.c: Likewise.
13725 * ipa-profile.c: Likewise.
13726 * ipa-prop.c: Likewise.
13727 * ipa-pure-const.c: Likewise.
13728 * ipa-ref.c: Likewise.
13729 * ipa-reference.c: Likewise.
13730 * ipa-split.c: Likewise.
13731 * ipa-utils.c: Likewise.
13732 * ipa-visibility.c: Likewise.
13733 * ipa.c: Likewise.
13734 * ira-build.c: Likewise.
13735 * ira-color.c: Likewise.
13736 * ira-conflicts.c: Likewise.
13737 * ira-costs.c: Likewise.
13738 * ira-emit.c: Likewise.
13739 * ira-lives.c: Likewise.
13740 * ira.c: Likewise.
13741 * jump.c: Likewise.
13742 * langhooks.c: Likewise.
13743 * lcm.c: Likewise.
13744 * loop-doloop.c: Likewise.
13745 * loop-init.c: Likewise.
13746 * loop-invariant.c: Likewise.
13747 * loop-iv.c: Likewise.
13748 * loop-unroll.c: Likewise.
13749 * lower-subreg.c: Likewise.
13750 * lra-assigns.c: Likewise.
13751 * lra-coalesce.c: Likewise.
13752 * lra-constraints.c: Likewise.
13753 * lra-eliminations.c: Likewise.
13754 * lra-lives.c: Likewise.
13755 * lra-remat.c: Likewise.
13756 * lra-spills.c: Likewise.
13757 * lra.c: Likewise.
13758 * lto-cgraph.c: Likewise.
13759 * lto-compress.c: Likewise.
13760 * lto-opts.c: Likewise.
13761 * lto-section-in.c: Likewise.
13762 * lto-section-out.c: Likewise.
13763 * lto-streamer-in.c: Likewise.
13764 * lto-streamer-out.c: Likewise.
13765 * lto-streamer.c: Likewise.
13766 * mcf.c: Likewise.
13767 * mode-switching.c: Likewise.
13768 * modulo-sched.c: Likewise.
13769 * omega.c: Likewise.
13770 * omp-low.c: Likewise.
13771 * optabs.c: Likewise.
13772 * opts-global.c: Likewise.
13773 * passes.c: Likewise.
13774 * plugin.c: Likewise.
13775 * postreload-gcse.c: Likewise.
13776 * postreload.c: Likewise.
13777 * predict.c: Likewise.
13778 * print-rtl.c: Likewise.
13779 * print-tree.c: Likewise.
13780 * profile.c: Likewise.
13781 * real.c: Likewise.
13782 * realmpfr.c: Likewise.
13783 * realmpfr.h: Likewise.
13784 * recog.c: Likewise.
13785 * ree.c: Likewise.
13786 * reg-stack.c: Likewise.
13787 * regcprop.c: Likewise.
13788 * reginfo.c: Likewise.
13789 * regrename.c: Likewise.
13790 * regs.h: Likewise.
13791 * regstat.c: Likewise.
13792 * reload.c: Likewise.
13793 * reload1.c: Likewise.
13794 * reorg.c: Likewise.
13795 * resource.c: Likewise.
13796 * rtl-chkp.c: Likewise.
13797 * rtlanal.c: Likewise.
13798 * rtlhooks.c: Likewise.
13799 * sanopt.c: Likewise.
13800 * sched-deps.c: Likewise.
13801 * sched-ebb.c: Likewise.
13802 * sched-rgn.c: Likewise.
13803 * sched-vis.c: Likewise.
13804 * sdbout.c: Likewise.
13805 * sel-sched-dump.c: Likewise.
13806 * sel-sched-ir.c: Likewise.
13807 * sel-sched.c: Likewise.
13808 * sese.c: Likewise.
13809 * shrink-wrap.c: Likewise.
13810 * shrink-wrap.h: Likewise.
13811 * simplify-rtx.c: Likewise.
13812 * stack-ptr-mod.c: Likewise.
13813 * statistics.c: Likewise.
13814 * stmt.c: Likewise.
13815 * stor-layout.c: Likewise.
13816 * store-motion.c: Likewise.
13817 * stringpool.c: Likewise.
13818 * symtab.c: Likewise.
13819 * target-globals.c: Likewise.
13820 * targhooks.c: Likewise.
13821 * toplev.c: Likewise.
13822 * tracer.c: Likewise.
13823 * trans-mem.c: Likewise.
13824 * tree-affine.c: Likewise.
13825 * tree-affine.h: Likewise.
13826 * tree-browser.c: Likewise.
13827 * tree-call-cdce.c: Likewise.
13828 * tree-cfg.c: Likewise.
13829 * tree-cfgcleanup.c: Likewise.
13830 * tree-chkp-opt.c: Likewise.
13831 * tree-chkp.c: Likewise.
13832 * tree-chrec.c: Likewise.
13833 * tree-complex.c: Likewise.
13834 * tree-data-ref.c: Likewise.
13835 * tree-dfa.c: Likewise.
13836 * tree-diagnostic.c: Likewise.
13837 * tree-dump.c: Likewise.
13838 * tree-eh.c: Likewise.
13839 * tree-emutls.c: Likewise.
13840 * tree-if-conv.c: Likewise.
13841 * tree-inline.c: Likewise.
13842 * tree-into-ssa.c: Likewise.
13843 * tree-iterator.c: Likewise.
13844 * tree-loop-distribution.c: Likewise.
13845 * tree-nested.c: Likewise.
13846 * tree-nrv.c: Likewise.
13847 * tree-object-size.c: Likewise.
13848 * tree-outof-ssa.c: Likewise.
13849 * tree-parloops.c: Likewise.
13850 * tree-phinodes.c: Likewise.
13851 * tree-predcom.c: Likewise.
13852 * tree-pretty-print.c: Likewise.
13853 * tree-pretty-print.h: Likewise.
13854 * tree-profile.c: Likewise.
13855 * tree-scalar-evolution.c: Likewise.
13856 * tree-sra.c: Likewise.
13857 * tree-ssa-address.c: Likewise.
13858 * tree-ssa-alias.c: Likewise.
13859 * tree-ssa-ccp.c: Likewise.
13860 * tree-ssa-coalesce.c: Likewise.
13861 * tree-ssa-copy.c: Likewise.
13862 * tree-ssa-copyrename.c: Likewise.
13863 * tree-ssa-dce.c: Likewise.
13864 * tree-ssa-dom.c: Likewise.
13865 * tree-ssa-dse.c: Likewise.
13866 * tree-ssa-forwprop.c: Likewise.
13867 * tree-ssa-ifcombine.c: Likewise.
13868 * tree-ssa-live.c: Likewise.
13869 * tree-ssa-loop-ch.c: Likewise.
13870 * tree-ssa-loop-im.c: Likewise.
13871 * tree-ssa-loop-ivcanon.c: Likewise.
13872 * tree-ssa-loop-ivopts.c: Likewise.
13873 * tree-ssa-loop-manip.c: Likewise.
13874 * tree-ssa-loop-niter.c: Likewise.
13875 * tree-ssa-loop-prefetch.c: Likewise.
13876 * tree-ssa-loop-unswitch.c: Likewise.
13877 * tree-ssa-loop.c: Likewise.
13878 * tree-ssa-loop.h: Likewise.
13879 * tree-ssa-math-opts.c: Likewise.
13880 * tree-ssa-operands.c: Likewise.
13881 * tree-ssa-phiopt.c: Likewise.
13882 * tree-ssa-phiprop.c: Likewise.
13883 * tree-ssa-pre.c: Likewise.
13884 * tree-ssa-propagate.c: Likewise.
13885 * tree-ssa-reassoc.c: Likewise.
13886 * tree-ssa-sccvn.c: Likewise.
13887 * tree-ssa-scopedtables.c: Likewise.
13888 * tree-ssa-sink.c: Likewise.
13889 * tree-ssa-strlen.c: Likewise.
13890 * tree-ssa-structalias.c: Likewise.
13891 * tree-ssa-tail-merge.c: Likewise.
13892 * tree-ssa-ter.c: Likewise.
13893 * tree-ssa-threadedge.c: Likewise.
13894 * tree-ssa-threadupdate.c: Likewise.
13895 * tree-ssa-uncprop.c: Likewise.
13896 * tree-ssa-uninit.c: Likewise.
13897 * tree-ssa.c: Likewise.
13898 * tree-ssanames.c: Likewise.
13899 * tree-stdarg.c: Likewise.
13900 * tree-streamer-in.c: Likewise.
13901 * tree-streamer-out.c: Likewise.
13902 * tree-streamer.c: Likewise.
13903 * tree-switch-conversion.c: Likewise.
13904 * tree-tailcall.c: Likewise.
13905 * tree-vect-data-refs.c: Likewise.
13906 * tree-vect-generic.c: Likewise.
13907 * tree-vect-loop-manip.c: Likewise.
13908 * tree-vect-loop.c: Likewise.
13909 * tree-vect-patterns.c: Likewise.
13910 * tree-vect-slp.c: Likewise.
13911 * tree-vect-stmts.c: Likewise.
13912 * tree-vectorizer.c: Likewise.
13913 * tree-vrp.c: Likewise.
13914 * tree.c: Likewise.
13915 * tsan.c: Likewise.
13916 * ubsan.c: Likewise.
13917 * valtrack.c: Likewise.
13918 * value-prof.c: Likewise.
13919 * var-tracking.c: Likewise.
13920 * varasm.c: Likewise.
13921 * varpool.c: Likewise.
13922 * vmsdbgout.c: Likewise.
13923 * vtable-verify.c: Likewise.
13924 * web.c: Likewise.
13925 * wide-int-print.cc: Likewise.
13926 * wide-int-print.h: Likewise.
13927 * wide-int.cc: Likewise.
13928 * xcoffout.c: Likewise.
13929 * config/aarch64/aarch64-builtins.c: Likewise.
13930 * config/aarch64/aarch64.c: Likewise.
13931 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13932 * config/alpha/alpha.c: Likewise.
13933 * config/arc/arc.c: Likewise.
13934 * config/arm/aarch-common.c: Likewise.
13935 * config/arm/arm-builtins.c: Likewise.
13936 * config/arm/arm-c.c: Likewise.
13937 * config/arm/arm.c: Likewise.
13938 * config/avr/avr-c.c: Likewise.
13939 * config/avr/avr-log.c: Likewise.
13940 * config/avr/avr.c: Likewise.
13941 * config/bfin/bfin.c: Likewise.
13942 * config/c6x/c6x.c: Likewise.
13943 * config/cr16/cr16.c: Likewise.
13944 * config/cris/cris.c: Likewise.
13945 * config/darwin-c.c: Likewise.
13946 * config/darwin.c: Likewise.
13947 * config/default-c.c: Likewise.
13948 * config/epiphany/epiphany.c: Likewise.
13949 * config/epiphany/mode-switch-use.c: Likewise.
13950 * config/epiphany/resolve-sw-modes.c: Likewise.
13951 * config/fr30/fr30.c: Likewise.
13952 * config/frv/frv.c: Likewise.
13953 * config/ft32/ft32.c: Likewise.
13954 * config/glibc-c.c: Likewise.
13955 * config/h8300/h8300.c: Likewise.
13956 * config/i386/i386-c.c: Likewise.
13957 * config/i386/i386.c: Likewise.
13958 * config/i386/msformat-c.c: Likewise.
13959 * config/i386/winnt-cxx.c: Likewise.
13960 * config/i386/winnt-stubs.c: Likewise.
13961 * config/i386/winnt.c: Likewise.
13962 * config/ia64/ia64-c.c: Likewise.
13963 * config/ia64/ia64.c: Likewise.
13964 * config/iq2000/iq2000.c: Likewise.
13965 * config/lm32/lm32.c: Likewise.
13966 * config/m32c/m32c-pragma.c: Likewise.
13967 * config/m32c/m32c.c: Likewise.
13968 * config/m32r/m32r.c: Likewise.
13969 * config/m68k/m68k.c: Likewise.
13970 * config/mcore/mcore.c: Likewise.
13971 * config/mep/mep-pragma.c: Likewise.
13972 * config/mep/mep.c: Likewise.
13973 * config/microblaze/microblaze-c.c: Likewise.
13974 * config/microblaze/microblaze.c: Likewise.
13975 * config/mips/mips.c: Likewise.
13976 * config/mmix/mmix.c: Likewise.
13977 * config/mn10300/mn10300.c: Likewise.
13978 * config/moxie/moxie.c: Likewise.
13979 * config/msp430/msp430-c.c: Likewise.
13980 * config/msp430/msp430.c: Likewise.
13981 * config/nds32/nds32-cost.c: Likewise.
13982 * config/nds32/nds32-fp-as-gp.c: Likewise.
13983 * config/nds32/nds32-intrinsic.c: Likewise.
13984 * config/nds32/nds32-isr.c: Likewise.
13985 * config/nds32/nds32-md-auxiliary.c: Likewise.
13986 * config/nds32/nds32-memory-manipulation.c: Likewise.
13987 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13988 * config/nds32/nds32-predicates.c: Likewise.
13989 * config/nds32/nds32.c: Likewise.
13990 * config/nios2/nios2.c: Likewise.
13991 * config/nvptx/nvptx.c: Likewise.
13992 * config/pa/pa.c: Likewise.
13993 * config/pdp11/pdp11.c: Likewise.
13994 * config/rl78/rl78-c.c: Likewise.
13995 * config/rl78/rl78.c: Likewise.
13996 * config/rs6000/rs6000-c.c: Likewise.
13997 * config/rs6000/rs6000.c: Likewise.
13998 * config/rx/rx.c: Likewise.
13999 * config/s390/s390-c.c: Likewise.
14000 * config/s390/s390.c: Likewise.
14001 * config/sh/sh-c.c: Likewise.
14002 * config/sh/sh-mem.cc: Likewise.
14003 * config/sh/sh.c: Likewise.
14004 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14005 * config/sh/sh_treg_combine.cc: Likewise.
14006 * config/sol2-c.c: Likewise.
14007 * config/sol2-cxx.c: Likewise.
14008 * config/sol2-stubs.c: Likewise.
14009 * config/sol2.c: Likewise.
14010 * config/sparc/sparc-c.c: Likewise.
14011 * config/sparc/sparc.c: Likewise.
14012 * config/spu/spu-c.c: Likewise.
14013 * config/spu/spu.c: Likewise.
14014 * config/stormy16/stormy16.c: Likewise.
14015 * config/tilegx/mul-tables.c: Likewise.
14016 * config/tilegx/tilegx-c.c: Likewise.
14017 * config/tilegx/tilegx.c: Likewise.
14018 * config/tilepro/mul-tables.c: Likewise.
14019 * config/tilepro/tilepro-c.c: Likewise.
14020 * config/tilepro/tilepro.c: Likewise.
14021 * config/v850/v850-c.c: Likewise.
14022 * config/v850/v850.c: Likewise.
14023 * config/vax/vax.c: Likewise.
14024 * config/visium/visium.c: Likewise.
14025 * config/vms/vms-c.c: Likewise.
14026 * config/vms/vms.c: Likewise.
14027 * config/vxworks.c: Likewise.
14028 * config/winnt-c.c: Likewise.
14029 * config/xtensa/xtensa.c: Likewise.
14030 * common/config/bfin/bfin-common.c: Likewise.
14031
14032 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
14033
14034 * tree.h (tree_code_for_canonical_type_merging): New function.
14035 * tree.c (gimple_canonical_types_compatible_p): Use
14036 tree_code_for_canonical_type_merging..
14037
14038 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14039
14040 PR c++/66192
14041 PR target/66200
14042 * doc/tm.texi: Regenerate.
14043 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
14044 * target.def (TARGET_RELAXED_ORDERING): Likewise.
14045 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
14046 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
14047 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
14048 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
14049 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
14050 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
14051 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
14052
14053 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14054
14055 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
14056 register fma steering pass.
14057 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
14058 AARCH64_TUNE_FMA_STEERING.
14059
14060 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
14061
14062 * tree.c (verify_type_variant): Verify that type and variant is
14063 compatible.
14064 (gimple_canonical_types_compatible_p): Look for main variants.
14065
14066 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14067
14068 * config.gcc (powerpc*-*-*): Add support for a new configure
14069 option --with-advance-toolchain=<xxx> which overrides using the
14070 default header files, libraries and dynamic linker.
14071
14072 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
14073 specs to support the configure --with-advance-toolchain=<xxx>
14074 option.
14075 (INCLUDE_EXTRA_SPEC): Likewise.
14076 (LINK_OS_EXTRA_SPEC32): Likewise.
14077 (LINK_OK_EXTRA_SPEC64): Likewise.
14078 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
14079 (DYNAMIC_LINKER_PREFIX): Likewise.
14080 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
14081 toolchain support.
14082 (GLIBC_DYNAMIC_LINKER32): Likewise.
14083 (GLIBC_DYNAMIC_LINKER64): Likewise.
14084 (LINK_OS_LINUX_SPEC32): Likewise.
14085 (LINK_OS_LINUX_SPEC64): Likewise.
14086
14087 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
14088 configuration option.
14089
14090 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
14091
14092 PR target/66275
14093 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
14094 to determine current function ABI.
14095 (ix86_function_value_regno_p): Ditto.
14096
14097 2015-06-03 Martin Liska <mliska@suse.cz>
14098
14099 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
14100 * bitmap.h (struct bitmap_usage): Likewise.
14101 * ggc-common.c (struct ggc_usage): Likewise.
14102 * mem-stats.h (struct mem_location): Likewise.
14103 (struct mem_usage): Likewise.
14104 * vec.c (struct vec_usage): Likewise.
14105
14106 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
14107
14108 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
14109 -Bsymbolic.
14110
14111 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
14112
14113 * doc/plugins.texi (enum plugin_event): New event.
14114 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
14115 and PLUGIN_FINISH_FUNCTION.
14116 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
14117 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
14118
14119 2015-06-03 Richard Biener <rguenther@suse.de>
14120
14121 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
14122 compute GROUP_GAP for the first element.
14123 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
14124 on in-group gaps.
14125
14126 2015-06-03 Nick Clifton <nickc@redhat.com>
14127
14128 * config/rl78/rl78-real.md: Add peepholes to avoid a register
14129 copy when calling a function.
14130 * config/rl78/rl78.c (need_to_save): Do not push the frame
14131 pointer in an interrupt handler prologue if it is never used.
14132
14133 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14134
14135 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
14136
14137 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
14138
14139 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
14140 reference when cloning alias node.
14141
14142 2015-06-03 Martin Liska <mliska@suse.cz>
14143
14144 * alloc-pool.h (struct pool_usage): Correct space padding.
14145 * ggc-page.c (ggc_print_statistics): Align columns in a report.
14146 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
14147 * tree.c (dump_tree_statistics): Align columns in a report.
14148
14149 2015-06-03 Martin Liska <mliska@suse.cz>
14150
14151 * alloc-pool.c (allocate_pool_descriptor): Remove.
14152 (struct pool_output_info): Likewise.
14153 (print_alloc_pool_statistics): Likewise.
14154 (dump_alloc_pool_statistics): Likewise.
14155 * alloc-pool.h (struct pool_usage): New struct.
14156 (pool_allocator::initialize): Change usage of memory statistics
14157 to a new interface.
14158 (pool_allocator::release): Likewise.
14159 (pool_allocator::allocate): Likewise.
14160 (pool_allocator::remove): Likewise.
14161 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
14162 for a pool allocator.
14163 * mem-stats.h (struct mem_location): Add new ctor.
14164 (struct mem_usage): Add counter for number of
14165 instances.
14166 (mem_alloc_description::register_descriptor): New overload of
14167 * mem-stats.h (mem_location::to_string): New function.
14168 * bitmap.h (struct bitmap_usage): Use this new function.
14169 * ggc-common.c (struct ggc_usage): Likewise.
14170 the function.
14171
14172 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
14173
14174 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
14175 of GCC_INSN_FLAGS_H block.
14176
14177 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
14178
14179 * explow.c (plus_constant): Update check after force_const_mem call
14180 to see if the value returned is not a NULL_RTX.
14181
14182 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
14183
14184 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
14185 remove instumentation thunks calling reachable functions.
14186 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
14187 * lto/lto-partition.c (privatize_symbol_name_1): New.
14188 (privatize_symbol_name): Privatize both decl and orig_decl
14189 names for instrumented functions.
14190 * cgraph.c (cgraph_node::verify_node): Add transparent
14191 alias chain check for instrumented node.
14192
14193 2015-06-03 Marek Polacek <polacek@redhat.com>
14194
14195 PR c/64223
14196 PR c/29358
14197 * tree.c (attribute_value_equal): Handle attribute format.
14198 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
14199
14200 2015-06-03 Richard Biener <rguenther@suse.de>
14201
14202 PR tree-optimization/63916
14203 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14204 Forward-propagate non-invariant addresses by splicing their
14205 reference ops if the result isn't going to be used by PRE.
14206 (vn_reference_lookup_3): Remove pointless assert.
14207
14208 2015-06-03 Richard Biener <rguenther@suse.de>
14209
14210 PR tree-optimization/66375
14211 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
14212 add to the evolution before following SSA edges.
14213
14214 2015-06-03 Bin Cheng <bin.cheng@arm.com>
14215
14216 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
14217 (dump_use, dump_cand, find_induction_variables): Pass new argument
14218 to dump_iv.
14219 (record_use): Preserve the ssa name information in IV.
14220
14221 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
14222
14223 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
14224 NO_MODE_TEST.
14225 (add_mode_tests): Don't add mode tests if the predicate only
14226 accepts scalar constant integers. Otherwise, allow the mode
14227 of "op" to be VOIDmode if the predicate does accept such integers.
14228
14229 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
14230
14231 PR target/66258
14232 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
14233 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
14234 (aarch64_secondary_reload): Likewise
14235 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
14236 to !TARGET_FLOAT.
14237 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
14238 Likewise.
14239
14240 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
14241 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14242
14243 PR target/65768
14244 * cprop.c (try_replace_reg): Check cost of constants before propagating.
14245
14246 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14247
14248 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
14249 provide access to the IBM extended double floating point mode if
14250 long double is IEEE 128-bit floating point.
14251 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
14252 point if long double is the IBM extended double type.
14253
14254 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
14255 enable adding IEEE 128-bit floating point support.
14256 (-mfloat128-software): Likewise.
14257 (-mfloat128-sw): Likewise.
14258
14259 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
14260 128-bit floating point types to occupy any register if
14261 -mlong-double-64. Do not allow use of IFmode/KFmode unless
14262 -mfloat128-software is enabled.
14263 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
14264 support.
14265 (rs6000_option_override_internal): Add -mfloat128-* support.
14266 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
14267
14268 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
14269 and float128 type nodes.
14270 (ieee128_float_type_node): Likewise.
14271 (ibm128_float_type_node): Likewise.
14272
14273 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
14274
14275 PR target/66136
14276 * config/aarch64/geniterators.sh: Rewrite in awk.
14277
14278 2015-06-02 Martin Liska <mliska@suse.cz>
14279
14280 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
14281 values to avoid -Wmaybe-uninitialized errors.
14282
14283 2015-06-02 Richard Biener <rguenther@suse.de>
14284
14285 PR debug/65549
14286 * dwarf2out.c (lookup_context_die): New function.
14287 (resolve_addr): Avoid forcing a full DIE for the
14288 target of a DW_TAG_GNU_call_site during late compilation.
14289 Instead create a stub DIE without a type if we have a
14290 context DIE present.
14291
14292 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
14293
14294 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
14295
14296 2015-06-02 Bin Cheng <bin.cheng@arm.com>
14297
14298 PR tree-optimization/48052
14299 * cfgloop.h (struct control_iv): New.
14300 (struct loop): New field control_ivs.
14301 * tree-ssa-loop-niter.c : Include "stor-layout.h".
14302 (number_of_iterations_lt): Set no_overflow information.
14303 (number_of_iterations_exit): Init control iv in niter struct.
14304 (record_control_iv): New.
14305 (estimate_numbers_of_iterations_loop): Call record_control_iv.
14306 (loop_exits_before_overflow): New. Interface factored out of
14307 scev_probably_wraps_p.
14308 (scev_probably_wraps_p): Factor loop niter related code into
14309 loop_exits_before_overflow.
14310 (free_numbers_of_iterations_estimates_loop): Free control ivs.
14311 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
14312
14313 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
14314
14315 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
14316 the target doesn't belong to the current function.
14317
14318 2015-06-02 Marek Polacek <polacek@redhat.com>
14319
14320 PR middle-end/66345
14321 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
14322 get_maxval_strlen does not produce an INTEGER_CST.
14323
14324 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
14325
14326 * config/arc/constraints.md: Use lower-case names in match_code.
14327 * config/mmix/constraints.md: Likewise.
14328
14329 2015-06-02 Richard Biener <rguenther@suse.de>
14330
14331 PR tree-optimization/65961
14332 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
14333 check and clarify dump message.
14334 (vect_build_slp_tree): If all children are built up from scalars
14335 build up the parent from scalars instead.
14336 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
14337
14338 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
14339
14340 PR other/65366
14341 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
14342 instead of print ... .
14343
14344 2015-06-02 Alan Modra <amodra@gmail.com>
14345
14346 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
14347 2014-08-11 change.
14348
14349 2015-06-02 Bin Cheng <bin.cheng@arm.com>
14350
14351 PR tree-optimization/52563
14352 PR tree-optimization/62173
14353 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
14354 (alloc_iv, set_iv): New parameter.
14355 (determine_biv_step): Delete.
14356 (find_bivs): Inline original determine_biv_step. Pass new
14357 argument to set_iv.
14358 (idx_find_step): Use no_overflow information for conversion.
14359 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
14360 resolve_mixers handle folded_casts.
14361 (instantiate_scev_name): Change bool parameter to bool pointer.
14362 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
14363 (instantiate_array_ref, instantiate_scev_not): Ditto.
14364 (instantiate_scev_3, instantiate_scev_2): Ditto.
14365 (instantiate_scev_1, instantiate_scev_r): Ditto.
14366 (instantiate_scev_convert, ): Change parameter. Pass argument
14367 to chrec_convert_aggressive.
14368 (instantiate_scev): Change argument.
14369 (resolve_mixers): New parameter and set it.
14370 (scev_const_prop): New argument.
14371 * tree-scalar-evolution.h (resolve_mixers): New parameter.
14372 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
14373 of chrec_conert_1.
14374 (chrec_convert): New parameter. Move definition below.
14375 (chrec_convert_aggressive): New parameter and set it. Call
14376 convert_affine_scev.
14377 * tree-chrec.h (chrec_convert): New parameter.
14378 (chrec_convert_aggressive): Ditto.
14379
14380 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
14381
14382 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
14383 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
14384 the LHS of a no-return call if its type has variable size.
14385 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14386 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
14387
14388 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
14389
14390 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
14391 * config.in: Regenerate.
14392
14393 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
14394
14395 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
14396 consecutive accesses within outer-loop with force_vectorize
14397 for references with zero step in inner-loop.
14398
14399 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
14400
14401 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
14402 rather than from gcc/build directory.
14403
14404 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
14405
14406 PR target/65697
14407 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
14408 for __sync memory models, emit initial loads and final barriers as
14409 appropriate.
14410
14411 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
14412
14413 PR target/65697
14414 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
14415 (aarch64_split_atomic_op): Check for __sync memory models, emit
14416 appropriate initial loads and final barriers.
14417
14418 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
14419
14420 * Makefile.in: Fix gcov dependencies that should
14421 not point to a build folder.
14422
14423 2015-06-01 Richard Biener <rguenther@suse.de>
14424
14425 Revert
14426 2015-05-29 Richard Biener <rguenther@suse.de>
14427
14428 PR tree-optimization/66314
14429 * tree-ssa-threadupdate.c (create_block_for_threading): Add
14430 parameter that says which loop the new block belongs to.
14431 (ssa_create_duplicates): Blocks duplicated for the threaded
14432 path belong to the loop of the thread destination.
14433
14434 2015-06-01 Martin Liska <mliska@suse.cz>
14435
14436 * sched-deps.c: Include pool-alloc.h before
14437 cselib.h header file is included.
14438
14439 2015-06-01 Richard Biener <rguenther@suse.de>
14440
14441 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
14442 functions.
14443
14444 2015-06-01 Martin Liska <mliska@suse.cz>
14445
14446 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
14447 a function local variable.
14448
14449 2015-06-01 Martin Liska <mliska@suse.cz>
14450
14451 * alloc-pool.c (create_alloc_pool): Remove.
14452 (empty_alloc_pool): Likewise.
14453 (free_alloc_pool): Likewise.
14454 (free_alloc_pool_if_empty): Likewise.
14455 (pool_alloc): Likewise.
14456 (pool_free): Likewise.
14457 * alloc-pool.h: Remove old declarations.
14458
14459 2015-06-01 Martin Liska <mliska@suse.cz>
14460
14461 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
14462 (ira_create_object): Likewise.
14463 (ira_create_allocno): Likewise.
14464 (ira_create_live_range): Likewise.
14465 (copy_live_range): Likewise.
14466 (ira_finish_live_range): Likewise.
14467 (ira_free_allocno_costs): Likewise.
14468 (finish_allocno): Likewise.
14469 (finish_allocnos): Likewise.
14470 (initiate_prefs): Likewise.
14471 (ira_create_pref): Likewise.
14472 (finish_pref): Likewise.
14473 (finish_prefs): Likewise.
14474 (initiate_copies): Likewise.
14475 (ira_create_copy): Likewise.
14476 (finish_copy): Likewise.
14477 (finish_copies): Likewise.
14478 (finish_prefs): Likewise.
14479
14480 2015-06-01 Martin Liska <mliska@suse.cz>
14481
14482 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
14483 (allocate_and_init_ipcp_value): Likewise.
14484 (ipcp_lattice::add_value): Likewise.
14485 (merge_agg_lats_step): Likewise.
14486 (ipcp_driver): Likewise.
14487 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
14488 (ipa_free_all_structures_after_iinln): Likewise.
14489 * ipa-prop.h: Likewise.
14490
14491 2015-06-01 Martin Liska <mliska@suse.cz>
14492
14493 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
14494 pool allocator.
14495 (set_hint_predicate): Likewise.
14496 (inline_summary_alloc): Likewise.
14497 (reset_inline_edge_summary): Likewise.
14498 (reset_inline_summary): Likewise.
14499 (set_cond_stmt_execution_predicate): Likewise.
14500 (set_switch_stmt_execution_predicate): Likewise.
14501 (compute_bb_predicates): Likewise.
14502 (estimate_function_body_sizes): Likewise.
14503 (inline_free_summary): Likewise.
14504
14505 2015-06-01 Martin Liska <mliska@suse.cz>
14506
14507 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
14508 (ipa_edge_duplication_hook): Likewise.
14509 (ipa_free_all_structures_after_ipa_cp): Likewise.
14510 (ipa_free_all_structures_after_iinln): Likewise.
14511
14512 2015-06-01 Martin Liska <mliska@suse.cz>
14513
14514 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
14515 (ipa_profile_generate_summary): Likewise.
14516 (ipa_profile_read_summary): Likewise.
14517 (ipa_profile): Likewise.
14518
14519 2015-06-01 Martin Liska <mliska@suse.cz>
14520
14521 * tree-ssa-structalias.c (new_var_info): Use new type-based
14522 pool allocator.
14523 (new_constraint): Likewise.
14524 (init_alias_vars): Likewise.
14525 (delete_points_to_sets): Likewise.
14526
14527 2015-06-01 Martin Liska <mliska@suse.cz>
14528
14529 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
14530 (free_strinfo): Likewise.
14531 (pass_strlen::execute): Likewise.
14532
14533 2015-06-01 Martin Liska <mliska@suse.cz>
14534
14535 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
14536 pool allocator.
14537 (vn_reference_insert_pieces): Likewise.
14538 (vn_phi_insert): Likewise.
14539 (visit_reference_op_call): Likewise.
14540 (copy_phi): Likewise.
14541 (copy_reference): Likewise.
14542 (process_scc): Likewise.
14543 (allocate_vn_table): Likewise.
14544 (free_vn_table): Likewise.
14545
14546 2015-06-01 Martin Liska <mliska@suse.cz>
14547
14548 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
14549 pool allocator.
14550 (add_repeat_to_ops_vec): Likewise.
14551 (get_ops): Likewise.
14552 (maybe_optimize_range_tests): Likewise.
14553 (init_reassoc): Likewise.
14554 (fini_reassoc): Likewise.
14555
14556 2015-06-01 Martin Liska <mliska@suse.cz>
14557
14558 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
14559 pool allocator.
14560 (bitmap_set_new): Likewise.
14561 (get_or_alloc_expr_for_constant): Likewise.
14562 (get_or_alloc_expr_for): Likewise.
14563 (phi_translate_1): Likewise.
14564 (compute_avail): Likewise.
14565 (init_pre): Likewise.
14566 (fini_pre): Likewise.
14567
14568 2015-06-01 Martin Liska <mliska@suse.cz>
14569
14570 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
14571 (delete_dep_node): Likewise.
14572 (create_deps_list): Likewise.
14573 (free_deps_list): Likewise.
14574 (sched_deps_init): Likewise.
14575 (sched_deps_finish): Likewise.
14576
14577 2015-06-01 Martin Liska <mliska@suse.cz>
14578
14579 * regcprop.c (free_debug_insn_changes): Use new type-based
14580 pool allocator.
14581 (replace_oldest_value_reg): Likewise.
14582 (pass_cprop_hardreg::execute): Likewise.
14583
14584 2015-06-01 Martin Liska <mliska@suse.cz>
14585
14586 * ira-build.c (initiate_cost_vectors): Use new type-based
14587 pool allocator.
14588 (ira_allocate_cost_vector): Likewise.
14589 (ira_free_cost_vector): Likewise.
14590 (finish_cost_vectors): Likewise.
14591
14592 2015-06-01 Martin Liska <mliska@suse.cz>
14593
14594 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
14595 pool allocator.
14596 (free_sched_pools): Likewise.
14597 * sel-sched-ir.h (_list_alloc): Likewise.
14598 (_list_remove): Likewise.
14599
14600 2015-06-01 Martin Liska <mliska@suse.cz>
14601
14602 * stmt.c (add_case_node): Use new type-based pool allocator.
14603 (expand_case): Likewise.
14604 (expand_sjlj_dispatch_table): Likewise.
14605
14606 2015-06-01 Martin Liska <mliska@suse.cz>
14607
14608 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
14609 (free_bb): Likewise.
14610 (pass_cse_reciprocals::execute): Likewise.
14611
14612 2015-06-01 Martin Liska <mliska@suse.cz>
14613
14614 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
14615 (sra_deinitialize) Likewise.
14616 (create_access_1) Likewise.
14617 (build_accesses_from_assign) Likewise.
14618 (create_artificial_child_access) Likewise.
14619
14620 2015-06-01 Martin Liska <mliska@suse.cz>
14621
14622 * dse.c (get_group_info):Use new type-based pool allocator.
14623 (dse_step0) Likewise.
14624 (free_store_info) Likewise.
14625 (delete_dead_store_insn) Likewise.
14626 (free_read_records) Likewise.
14627 (record_store) Likewise.
14628 (replace_read) Likewise.
14629 (check_mem_read_rtx) Likewise.
14630 (scan_insn) Likewise.
14631 (dse_step1) Likewise.
14632 (dse_step7) Likewise.
14633
14634 2015-06-01 Martin Liska <mliska@suse.cz>
14635
14636 * df-scan.c (struct df_scan_problem_data):Use new type-based
14637 pool allocator.
14638 (df_scan_free_internal) Likewise.
14639 (df_scan_alloc) Likewise.
14640 (df_grow_reg_info) Likewise.
14641 (df_free_ref) Likewise.
14642 (df_insn_create_insn_record) Likewise.
14643 (df_mw_hardreg_chain_delete) Likewise.
14644 (df_insn_info_delete) Likewise.
14645 (df_free_collection_rec) Likewise.
14646 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
14647 (df_sort_and_compress_mws) Likewise.
14648 (df_ref_create_structure) Likewise.
14649 (df_ref_record) Likewise.
14650
14651 2015-06-01 Martin Liska <mliska@suse.cz>
14652
14653 * df-problems.c (df_chain_create):Use new type-based pool allocator.
14654 (df_chain_unlink_1) Likewise.
14655 (df_chain_unlink) Likewise.
14656 (df_chain_remove_problem) Likewise.
14657 (df_chain_alloc) Likewise.
14658 (df_chain_free) Likewise.
14659 * df.h (struct dataflow) Likewise.
14660
14661 2015-06-01 Martin Liska <mliska@suse.cz>
14662
14663 * cselib.c (new_elt_list):Use new type-based pool allocator.
14664 (new_elt_loc_list) Likewise.
14665 (unchain_one_elt_list) Likewise.
14666 (unchain_one_elt_loc_list) Likewise.
14667 (unchain_one_value) Likewise.
14668 (new_cselib_val) Likewise.
14669 (cselib_init) Likewise.
14670 (cselib_finish) Likewise.
14671
14672 2015-06-01 Martin Liska <mliska@suse.cz>
14673
14674 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
14675 (sh_reorg) Likewise.
14676
14677 2015-06-01 Martin Liska <mliska@suse.cz>
14678
14679 * cfg.c (initialize_original_copy_tables):Use new type-based
14680 pool allocator.
14681 (free_original_copy_tables) Likewise.
14682 (copy_original_table_clear) Likewise.
14683 (copy_original_table_set) Likewise.
14684
14685 2015-06-01 Martin Liska <mliska@suse.cz>
14686
14687 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
14688 pool allocator.
14689 (asan_mem_ref_new) Likewise.
14690 (free_mem_ref_resources) Likewise.
14691
14692 2015-06-01 Martin Liska <mliska@suse.cz>
14693
14694 * var-tracking.c (variable_htab_free):Use new type-based
14695 pool allocator.
14696 (attrs_list_clear) Likewise.
14697 (attrs_list_insert) Likewise.
14698 (attrs_list_copy) Likewise.
14699 (shared_hash_unshare) Likewise.
14700 (shared_hash_destroy) Likewise.
14701 (unshare_variable) Likewise.
14702 (var_reg_delete_and_set) Likewise.
14703 (var_reg_delete) Likewise.
14704 (var_regno_delete) Likewise.
14705 (drop_overlapping_mem_locs) Likewise.
14706 (variable_union) Likewise.
14707 (insert_into_intersection) Likewise.
14708 (canonicalize_values_star) Likewise.
14709 (variable_merge_over_cur) Likewise.
14710 (dataflow_set_merge) Likewise.
14711 (remove_duplicate_values) Likewise.
14712 (variable_post_merge_new_vals) Likewise.
14713 (dataflow_set_preserve_mem_locs) Likewise.
14714 (dataflow_set_remove_mem_locs) Likewise.
14715 (variable_from_dropped) Likewise.
14716 (variable_was_changed) Likewise.
14717 (set_slot_part) Likewise.
14718 (clobber_slot_part) Likewise.
14719 (delete_slot_part) Likewise.
14720 (loc_exp_insert_dep) Likewise.
14721 (notify_dependents_of_changed_value) Likewise.
14722 (emit_notes_for_differences_1) Likewise.
14723 (vt_emit_notes) Likewise.
14724 (vt_initialize) Likewise.
14725 (vt_finalize) Likewise.
14726
14727 2015-06-01 Martin Liska <mliska@suse.cz>
14728
14729 * ira-color.c (init_update_cost_records):Use new type-based
14730 pool allocator.
14731 (get_update_cost_record) Likewise.
14732 (free_update_cost_record_list) Likewise.
14733 (finish_update_cost_records) Likewise.
14734 (initiate_cost_update) Likewise.
14735
14736 2015-06-01 Martin Liska <mliska@suse.cz>
14737
14738 * lra.c (init_insn_regs): Use new type-based pool allocator.
14739 (new_insn_reg) Likewise.
14740 (free_insn_reg) Likewise.
14741 (free_insn_regs) Likewise.
14742 (finish_insn_regs) Likewise.
14743 (init_insn_recog_data) Likewise.
14744 (init_reg_info) Likewise.
14745 (finish_reg_info) Likewise.
14746 (lra_free_copies) Likewise.
14747 (lra_create_copy) Likewise.
14748 (invalidate_insn_data_regno_info) Likewise.
14749
14750 2015-06-01 Martin Liska <mliska@suse.cz>
14751
14752 * lra-lives.c (free_live_range): Use new type-based pool allocator.
14753 (free_live_range_list) Likewise.
14754 (create_live_range) Likewise.
14755 (copy_live_range) Likewise.
14756 (lra_merge_live_ranges) Likewise.
14757 (remove_some_program_points_and_update_live_ranges) Likewise.
14758 (lra_live_ranges_init) Likewise.
14759 (lra_live_ranges_finish) Likewise.
14760
14761 2015-06-01 Martin Liska <mliska@suse.cz>
14762
14763 * et-forest.c (et_new_occ): Use new type-based pool allocator.
14764 (et_new_tree): Likewise.
14765 (et_free_tree): Likewise.
14766 (et_free_tree_force): Likewise.
14767 (et_free_pools): Likewise.
14768 (et_split): Likewise.
14769
14770 2015-06-01 Martin Liska <mliska@suse.cz>
14771
14772 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
14773 to header file.
14774 * alloc-pool.h (pool_allocator::pool_allocator): New function.
14775 (pool_allocator::release): Likewise.
14776 (inline pool_allocator::release_if_empty): Likewise.
14777 (inline pool_allocator::~pool_allocator): Likewise.
14778 (pool_allocator::allocate): Likewise.
14779 (pool_allocator::remove): Likewise.
14780
14781 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14782
14783 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
14784 in comment.
14785
14786 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14787
14788 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
14789 to fusible_ops.
14790 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
14791 (arm_macro_fusion_p): Likewise.
14792 (arm_macro_fusion_pair_p): Likewise.
14793
14794 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14795
14796 * config/aarch64/aarch64-protos.h (tune_params): Rename
14797 fuseable_ops to fusible_ops.
14798 * config/aarch64/aarch64.c (generic_tunings): Rename
14799 fuseable_ops to fusible_ops.
14800 (cortexa53_tunings): Likewise.
14801 (cortexa57_tunings): Likewise.
14802 (thunderx_tunings): Likewise.
14803 (xgene1_tunings): Likewise.
14804 (aarch64_macro_fusion_p): Likewise.
14805 (aarch64_macro_fusion_pair_p): Likewise.
14806
14807 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
14808
14809 * config/s390/driver-native.c: New file.
14810 * config/s390/x-native: New file.
14811 * config.host: Add new files for s390.
14812 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
14813 and -march=native
14814 * config.gcc: Likewise.
14815 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
14816 * config/s390/s390-opts.h (enum processor_type): Ditto.
14817 * config/s390/s390.c (s390_option_override): Catch unhandled
14818 PROCESSOR_NATIVE
14819
14820 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
14821
14822 PR target/65527
14823 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
14824 redirection for instrumented calls.
14825 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
14826 (append_compiler_options): Append -fcheck-pointer-bounds.
14827 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
14828 (chkp_redirect_edge): New.
14829 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
14830 (chkp_redirect_edge): New.
14831
14832 2015-06-01 Richard Biener <rguenther@suse.de>
14833
14834 PR tree-optimization/66280
14835 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
14836 def-use walking.
14837
14838 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14839
14840 * config/aarch64/aarch64.md
14841 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
14842 logic_shift_imm.
14843
14844 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
14845
14846 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
14847 Remove obsolete kludge.
14848
14849 2015-06-01 Richard Biener <rguenther@suse.de>
14850
14851 * tree-ssa-reassoc.c (get_rank): Simplify.
14852
14853 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
14854
14855 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
14856 * configure: Regenerated.
14857
14858 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
14859
14860 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
14861 issue (add space between string literal and macro).
14862 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
14863
14864 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
14865
14866 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
14867 implict or explicit -fPIE or -fpie.
14868
14869 2015-05-30 Mike Frysinger <vapier@gentoo.org>
14870
14871 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
14872
14873 2015-05-28 DJ Delorie <dj@redhat.com>
14874
14875 * expmed.c (extract_bit_field_1): Avoid clobbering a
14876 yet-to-be-used base/index register.
14877
14878 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
14879
14880 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
14881 (alias_stats): Add num_universal.
14882 (alias_set_subset_of): Special case pointers; be ready for NULL
14883 children.
14884 (alias_sets_conflict_p): Special case pointers; be ready for NULL
14885 children.
14886 (init_alias_set_entry): Break out from ...
14887 (record_alias_subset): ... here; propagate new fields;
14888 allocate children only when really needed.
14889 (get_alias_set): Do less generous pointer globbing.
14890 (dump_alias_stats_in_alias_c): Update statistics.
14891
14892 2015-05-30 Alan Modra <amodra@gmail.com>
14893
14894 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
14895 correct block for use of r12.
14896 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
14897
14898 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
14899
14900 PR target/66215
14901 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
14902 with -mhotpatch=.
14903
14904 2015-05-29 Jakub Jelinek <jakub@redhat.com>
14905
14906 PR tree-optimization/66142
14907 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
14908 virtual phis that feed themselves.
14909
14910 2015-05-29 Richard Biener <rguenther@suse.de>
14911
14912 PR tree-optimization/66314
14913 * tree-ssa-threadupdate.c (create_block_for_threading): Add
14914 parameter that says which loop the new block belongs to.
14915 (ssa_create_duplicates): Blocks duplicated for the threaded
14916 path belong to the loop of the thread destination.
14917
14918 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14919
14920 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
14921 to cleanup-saved-temps.
14922 * doc/sourcebuild.texi (Clean up generated test files): Expand
14923 introduction.
14924 (dg-keep-saved-temps): Document new proc.
14925 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
14926 cleanup-saved-temps): Remove.
14927
14928 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
14929
14930 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
14931 gcc_AC_CHECK_DECLS.
14932 * configure: Regenerate.
14933
14934 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14935
14936 * config/nios2/linux.h (CPP_SPEC): Define.
14937
14938 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14939
14940 * config/microblaze/linux.h (CPP_SPEC): Define.
14941
14942 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14943
14944 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
14945 -pthread is specified.
14946
14947 2015-05-28 Richard Biener <rguenther@suse.de>
14948
14949 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
14950 (vect_fixup_scalar_cycles_with_patterns): Likewise.
14951 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
14952 after pattern recog.
14953 (vect_create_epilog_for_reduction): Properly handle reductions
14954 with patterns.
14955 (vectorizable_reduction): Likewise.
14956 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
14957 reduction chains.
14958 (vect_get_constant_vectors): Create the correct number of
14959 initial values for reductions.
14960 (vect_schedule_slp_instance): Handle reduction chains that are
14961 type changing properly.
14962 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
14963
14964 2015-05-28 Richard Biener <rguenther@suse.de>
14965
14966 PR tree-optimization/66142
14967 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
14968 values better in memcpy destination handling. Handle non-aliasing
14969 we discover here.
14970
14971 2015-05-28 Lawrence Velázquez <vq@larryv.me>
14972
14973 PR target/63810
14974 * config/darwin-c.c (version_components): New global enum.
14975 (parse_version, version_as_legacy_macro)
14976 (version_as_modern_macro, macosx_version_as_macro): New functions.
14977 (version_as_macro): Remove.
14978 (darwin_cpp_builtins): Use new function.
14979
14980 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
14981
14982 * builtins.c (expand_builtin_acc_on_device): Mark parameters
14983 with ATTRIBUTE_UNUSED.
14984
14985 2015-05-28 Julian Brown <julian@codesourcery.com>
14986
14987 PR libgomp/65742
14988
14989 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
14990 sequence for !ACCEL_COMPILER.
14991
14992 2015-05-28 Nick Clifton <nickc@redhat.com>
14993
14994 * config/rx/rx.c (push_regs): New function. Extracts code from...
14995 (rx_expand_prologue): ... here. Use push_regs to push even small
14996 spans of registers.
14997 (pop_regs): New function.
14998 (rx_expand_epilogue): Use pop_regs to pop even small spans of
14999 registers.
15000
15001 2015-05-28 Richard Biener <rguenther@suse.de>
15002
15003 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
15004 member.
15005 (SLP_INSTANCE_BODY_COST_VEC): Remove.
15006 (vect_update_slp_costs_according_to_vf): Likewise.
15007 (vect_slp_analyze_operations): Update prototype.
15008 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
15009 vect_update_slp_costs_according_to_vf, adjust.
15010 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
15011 (vect_analyze_slp_cost_1): Likewise.
15012 (vect_analyze_slp_cost): Likewise. Properly deal with
15013 widening reduction ops. Commit body costs.
15014 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
15015 cost for loops from here.
15016 (vect_slp_analyze_operations): But do it from here when
15017 the vectorization factor is known and stmts are analyzed.
15018 (vect_bb_vectorization_profitable_p): Simplify.
15019 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
15020 (vect_update_slp_costs_according_to_vf): Remove.
15021
15022 2015-05-27 Magnus Granberg <zorry@gentoo.org>
15023 H.J. Lu <hongjiu.lu@intel.com>
15024
15025 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
15026 (BUILD_CFLAGS): Likewise.
15027 (BUILD_CXXFLAGS): Likewise.
15028 (LINKER): Add @NO_PIE_FLAG@.
15029 (BUILD_LDFLAGS): Likewise.
15030 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
15031 --enable-default-pie.
15032 * common.opt (fPIE): Initialize to -1.
15033 (fpie): Likewise.
15034 (no-pie): New option.
15035 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
15036 * configure.ac: Add --enable-default-pie.
15037 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
15038 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
15039 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
15040 * gcc.c (NO_PIE_SPEC): New.
15041 (PIE_SPEC): Likewise.
15042 (NO_FPIE1_SPEC): Likewise.
15043 (FPIE1_SPEC): Likewise.
15044 (NO_FPIE2_SPEC): Likewise.
15045 (FPIE2_SPEC): Likewise.
15046 (NO_FPIE2_SPEC): Likewise.
15047 (FPIE_SPEC): Likewise.
15048 (NO_FPIE_SPEC): Likewise.
15049 (NO_FPIC1_SPEC): Likewise.
15050 (FPIC1_SPEC): Likewise.
15051 (NO_FPIC2_SPEC): Likewise.
15052 (FPIC2_SPEC): Likewise.
15053 (NO_FPIC2_SPEC): Likewise.
15054 (FPIC_SPEC): Likewise.
15055 (NO_FPIC_SPEC): Likewise.
15056 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
15057 (FPIE1_OR_FPIC1_SPEC): Likewise.
15058 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
15059 (FPIE2_OR_FPIC2_SPEC): Likewise.
15060 (NO_FPIE_AND_FPIC_SPEC): Likewise.
15061 (FPIE_OR_FPIC_SPEC): Likewise.
15062 (LD_PIE_SPEC): Likewise.
15063 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
15064 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
15065 * config/darwin.h (PIE_SPEC): Renamed to ...
15066 (DARWIN_PIE_SPEC): This.
15067 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
15068 * config/darwin9.h (PIE_SPEC): Renamed to ...
15069 (DARWIN_PIE_SPEC): This.
15070 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
15071 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15072 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
15073 FPIE2_OR_FPIC2_SPEC.
15074 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
15075 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
15076 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
15077 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15078 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15079 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15080 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
15081 * config/m32r/m32r.h (ASM_SPEC): Likewise.
15082 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
15083 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15084 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
15085 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
15086 * config/sparc/linux.h (ASM_SPEC): Likewise.
15087 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15088 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
15089 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
15090 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15091 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15092 * config/sparc/sparc.h (ASM_SPEC): Likewise.
15093 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
15094 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
15095 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
15096 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
15097 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
15098 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
15099 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
15100 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
15101 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
15102 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
15103 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
15104 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
15105 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15106 * config/vax/linux.h (ASM_SPEC): Likewise.
15107 * doc/install.texi: Document --enable-default-pie.
15108 * doc/invoke.texi: Document -no-pie.
15109 * config.in: Regenerated.
15110 * configure: Likewise.
15111
15112 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15113
15114 PR rtl-optimization/66168
15115 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
15116 can_move_invariant_reg.
15117
15118 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
15119
15120 PR target/66148
15121 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
15122 REG_EQUAL note when doing insert.
15123
15124 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
15125 instead of "%d" for 'o' operand.
15126
15127 2015-05-27 Nathan Sidwell <nathan@acm.org>
15128
15129 PR c++/66270
15130 * tree.c (build_pointer_type_for_mode): Canonical type does not
15131 inherit can_alias_all.
15132 (build_reference_type_for_mode): Likewise.
15133
15134 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
15135
15136 * expr.h (array_at_struct_end_p): Move to...
15137 (array_ref_element_size): Likewise.
15138 (component_ref_field_offset): Likewise.
15139 * tree.h (array_ref_element_size): ...here.
15140 (array_at_struct_end_p): Likewise.
15141 (component_ref_field_offset): Likewise.
15142 * expr.c (array_ref_element_size): Move to...
15143 (array_ref_low_bound): Likewise.
15144 (array_at_struct_end_p): Likewise.
15145 (array_ref_up_bound): Likewise.
15146 (component_ref_field_offset): Likewise.
15147 * tree.c (array_ref_element_size): ...here.
15148 (array_ref_low_bound): Likewise.
15149 (array_ref_up_bound): Likewise.
15150 (array_at_struct_end_p): Likewise.
15151 (component_ref_field_offset): Likewise.
15152
15153 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
15154 Szabolcs Nagy <szabolcs.nagy@arm.com>
15155
15156 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
15157
15158 2015-05-27 Jason Merrill <jason@redhat.com>
15159
15160 PR bootstrap/66304
15161 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
15162 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
15163 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
15164
15165 2015-05-22 Aditya Kumar <hiraditya@msn.com>
15166
15167 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
15168 is true.
15169
15170 * statistics.c (statistics_fini_pass): Print pass name.
15171
15172 2015-05-27 Richard Biener <rguenther@suse.de>
15173
15174 PR tree-optimization/66272
15175 Revert parts of
15176 2014-08-15 Richard Biener <rguenther@suse.de>
15177
15178 PR tree-optimization/62031
15179 * tree-data-ref.c (dr_analyze_indices): Do not set
15180 DR_UNCONSTRAINED_BASE.
15181 (dr_may_alias_p): All indirect accesses have to go the
15182 formerly DR_UNCONSTRAINED_BASE path.
15183 * tree-data-ref.h (struct indices): Remove
15184 unconstrained_base member.
15185 (DR_UNCONSTRAINED_BASE): Remove.
15186
15187 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
15188
15189 * dwarf2out.c: Remove block_map.
15190 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
15191 (gen_lexical_block_die): Same.
15192 (dwarf2out_function_decl): Remove block_map use.
15193 (dwarf2out_c_finalize): Same.
15194 * tree-core.h (struct tree_block): Add die field.
15195 * tree.h (BLOCK_DIE): New.
15196
15197 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15198
15199 PR target/65358
15200 * expr.c (memory_load_overlap): New function.
15201 (emit_push_insn): When pushing partial args to the stack would
15202 clobber the register part load the overlapping part into a pseudo
15203 and put it into the hard reg after pushing. Change return type
15204 to bool. Add bool argument.
15205 * expr.h (emit_push_insn): Change return type to bool.
15206 Add bool argument.
15207 * calls.c (expand_call): Cancel sibcall optimization when encountering
15208 partial argument on targets with ARGS_GROW_DOWNWARD and
15209 !STACK_GROWS_DOWNWARD.
15210 (emit_library_call_value_1): Update callsite of emit_push_insn.
15211 (store_one_arg): Likewise.
15212
15213 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
15214
15215 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
15216
15217 2015-05-27 Martin Liska <mliska@suse.cz>
15218
15219 * Makefile.in: Add additional dependencies related to memory report
15220 enhancement.
15221 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
15222 * bitmap.c (struct bitmap_descriptor_d): Remove.
15223 (struct loc): Likewise.
15224 (struct bitmap_desc_hasher): Likewise.
15225 (bitmap_desc_hasher::hash): Likewise.
15226 (bitmap_desc_hasher::equal): Likewise.
15227 (get_bitmap_descriptor): Likewise.
15228 (bitmap_register): User new memory descriptor API.
15229 (register_overhead): Likewise.
15230 (bitmap_find_bit): Register nsearches and search_iter statistics.
15231 (struct bitmap_output_info): Remove.
15232 (print_statistics): Likewise.
15233 (dump_bitmap_statistics): Use new memory descriptor.
15234 * bitmap.h (struct bitmap_usage): New class.
15235 * genmatch.c: Extend header file inclusion.
15236 * genpreds.c: Likewise.
15237 * ggc-common.c (struct ggc_usage): New class.
15238 (struct ggc_loc_desc_hasher): Remove.
15239 (ggc_loc_desc_hasher::hash): Likewise.
15240 (ggc_loc_desc_hasher::equal): Likewise.
15241 (struct ggc_ptr_hash_entry): Likewise.
15242 (struct ptr_hash_hasher): Likewise.
15243 (ptr_hash_hasher::hash): Likewise.
15244 (ptr_hash_hasher::equal): Likewise.
15245 (make_loc_descriptor): Likewise.
15246 (ggc_prune_ptr): Likewise.
15247 (dump_ggc_loc_statistics): Use new memory descriptor.
15248 (ggc_record_overhead): Likewise.
15249 (ggc_free_overhead): Likewise.
15250 (final_cmp_statistic): Remove.
15251 (cmp_statistic): Likewise.
15252 (ggc_add_statistics): Liekwise.
15253 (ggc_prune_overhead_list): Likewise.
15254 * hash-map-traits.h: New file.
15255 * hash-map.h (struct default_hashmap_traits): Move the traits to a
15256 separate header file.
15257 * hash-set.h: Pass memory statistics info to ctor.
15258 * hash-table.c (void dump_hash_table_loc_statistics): New function.
15259 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
15260 (hash_table::~hash_table): Register memory release operation.
15261 (hash_table::alloc_entries): Handle memory allocation operation.
15262 (hash_table::expand): Likewise.
15263 * inchash.c (iterative_hash_hashval_t): Move implementation to header
15264 file.
15265 (iterative_hash_host_wide_int): Likewise.
15266 * inchash.h (class hash): Likewise.
15267 * mem-stats-traits.h: New file.
15268 * mem-stats.h: New file.
15269 (mem_location): Add new class.
15270 (mem_usage): Likewise.
15271 (mem_alloc_description): Likewise.
15272 * sese.c: Add new header file inclusision.
15273 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
15274 and hash_set.
15275 * tree-sra.c: Add new header file inclusision.
15276 * vec.c (struct vec_descriptor): Remove.
15277 (hash_descriptor): Likewise.
15278 (struct vec_usage): Likewise.
15279 (struct ptr_hash_entry): Likewise.
15280 (hash_ptr): Likewise.
15281 (eq_ptr): Likewise.
15282 (vec_prefix::register_overhead): Use new memory descriptor API.
15283 (vec_prefix::release_overhead): Likewise.
15284 (add_statistics): Remove.
15285 (dump_vec_loc_statistics): Use new memory descriptor API.
15286 * vec.h (struct vec_prefix): Likewise.
15287 (va_heap::reserve): Likewise.
15288 (va_heap::release): Likewise.
15289 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
15290
15291 2015-05-27 Richard Biener <rguenther@suse.de>
15292
15293 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
15294 earlier and remove ??? comment.
15295 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
15296 and got called from loop analysis bail out. Always pass the SLP
15297 node to the vectorizable_* functions.
15298 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
15299 the premature SLP check here.
15300 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
15301 detected SLP stmts.
15302 (vect_detect_hybrid_slp_1): Likewise.
15303
15304 2015-05-26 Jeff Law <law@redhat.com>
15305
15306 * combine.c (find_split_point): Verify that the shift count is a
15307 constant when choosing (plus (ashift ...)) as a split point.
15308
15309 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
15310 No functional changes.
15311
15312 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
15313
15314 * ipa-polymorphic-call.c
15315 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
15316 case when call target is already known.
15317
15318 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
15319
15320 PR target/65979
15321 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
15322 take into account the case that operands[1] and operands[2]
15323 are the same register.
15324
15325 2015-05-26 Michael Matz <matz@suse.de>
15326
15327 PR middle-end/66251
15328
15329 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
15330 stores.
15331 (vect_create_vectorized_demotion_stmts): Always set
15332 STMT_VINFO_VEC_STMT, also with SLP.
15333 (vectorizable_store): Handle strided group stores.
15334
15335 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15336
15337 PR target/66049
15338 * config/aarch64/aarch64.md
15339 (*adds_shift_imm_<mode>): New pattern.
15340 (*subs_shift_imm_<mode>): Likewise.
15341 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15342 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15343 (*add_uxt<mode>_shift2): Likewise.
15344 (*add_uxtsi_shift2_uxtw): Likewise.
15345 (*sub_uxt<mode>_shift2): Likewise.
15346 (*sub_uxtsi_shift2_uxtw): Likewise.
15347
15348 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
15349
15350 * config/rs6000/constraints.md (Y, U): Use match_test.
15351
15352 2015-05-26 Christian Bruel <christian.bruel@st.com>
15353
15354 PR target/52144
15355 * config/arm/arm.c (arm_option_check_internal)
15356 (arm_option_params_internal): Check opts->target_flags to set macros.
15357 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15358 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
15359 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15360 (builtin_define): Replaced with def_or_undef_macro.
15361 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15362 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
15363 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15364 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
15365 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
15366 (TARGET_ARM_FEATURE_LDREX_P)
15367 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
15368 * config/arm/arm-c.c (def_or_undef_macro): New function.
15369 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
15370
15371 2015-05-26 Christian Bruel <christian.bruel@st.com>
15372
15373 * c-common.h (builtin_define_with_int_value)
15374 (builtin_define_type_sizeof): Declare.
15375 * c-cppbuiltin.c (builtin_define_with_int_value)
15376 (builtin_define_type_sizeof): Externalize.
15377 (builtin_define_std): Cleanup declaration.
15378 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
15379 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
15380 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
15381 (builtin_define, builtin_assert): New macros.
15382
15383 2015-05-26 Richard Biener <rguenther@suse.de>
15384
15385 PR tree-optimization/66142
15386 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
15387 MEM_REFs for the same base address.
15388
15389 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15390
15391 PR ipa/66181
15392 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
15393
15394 2015-05-26 Jason Merrill <jason@redhat.com>
15395
15396 * configure.ac: Set CXXFLAGS for ISL test.
15397 * configure: Regenerate.
15398
15399 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
15400 strstr and basename.
15401 * configure: Regenerate.
15402
15403 2015-05-26 Richard Biener <rguenther@suse.de>
15404
15405 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
15406 X % C -> X & (C - 1) for C being a power-of two to ...
15407 * match.pd: ... patterns.
15408
15409 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
15410
15411 * match.pd (swapped_tcc_comparison): New operator list.
15412 (-A CMP -B): New simplification.
15413 * fold-const.c (fold_comparison): Remove corresponding code.
15414
15415 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
15416
15417 * caller-save.c (init_caller_save): Base temporary register numbers
15418 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
15419 * cfgloopanal.c (init_set_costs): Likewise.
15420 * dojump.c (prefer_and_bit_test): Likewise.
15421 * expr.c (init_expr_target): Likewise.
15422 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15423 * lower-subreg.c (init_lower_subreg): Likewise.
15424 * postreload.c (reload_cse_regs_1): Likewise.
15425
15426 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
15427
15428 * gensupport.h (compute_test_codes): Declare.
15429 * gensupport.c (compute_predicate_codes): Rename to...
15430 (compute_test_codes): ...this. Generalize error message.
15431 (process_define_predicate): Update accordingly.
15432 * genpreds.c (compute_maybe_allows): Delete.
15433 (add_constraint): Use compute_test_codes to determine whether
15434 something can accept a SUBREG, REG or MEM.
15435
15436 2015-05-26 Torvald Riegel <triegel@redhat.com>
15437
15438 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
15439 'memory model' to align with C++11; fix description of memory orders;
15440 fix a few typos.
15441
15442 2015-05-26 Richard Biener <rguenther@suse.de>
15443
15444 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
15445 (vect_analyze_loop_operations): ... here. Remove slp parameter,
15446 detect whether we apply SLP. Remove call to
15447 vect_update_slp_costs_according_to_vf.
15448 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
15449 vect_update_slp_costs_according_to_vf from here. Dispatch
15450 to vect_slp_analyze_operations to analyze SLP stmts.
15451 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
15452 unused bb_vec_info parameter, adjust assert.
15453 (vect_slp_analyze_operations): Pass in the slp instance tree
15454 instead of bb_vec_info.
15455 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
15456 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
15457
15458 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
15459
15460 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
15461 Q_REGS. Expand comment.
15462 (REG_CLASS_NAMES): Ditto.
15463 (REG_CLASS_CONTENTS): Ditto.
15464
15465 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
15466
15467 PR target/66274
15468 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
15469 when LEGACY_INT_REGNO_P is processed.
15470
15471 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
15472
15473 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
15474
15475 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15476
15477 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
15478 register if not marked dead/unused, before return.
15479
15480 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15481
15482 PR lto/66180
15483 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
15484 is set; check for assembler name at LTO time.
15485 (type_in_anonymous_namespace): Remove hacks, check that all
15486 anonymous types are called "<anon>"
15487 (odr_type_p): Simplify; add check for "<anon>"
15488 (odr_subtypes_equivalent): Add odr_type_p check.
15489 * tree.c (need_assembler_name_p): Even anonymous namespace needs
15490 assembler name.
15491
15492 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15493
15494 * ipa-utils.h (method_class_type): Remove.
15495 * cgraphunit.c (walk_polymorphic_call_targets): Use
15496 TYPE_METHOD_BASETYPE.
15497 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
15498 on main variants only.
15499 (method_class_type): Remove.
15500 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
15501 (build_type_inheritance_graph): Likewise.
15502 * ipa-icf.c (sem_function::equals_wpa): Likewise.
15503 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
15504 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
15505
15506 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15507
15508 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
15509 is_typedef_decl, typedef_variant_p): Constify.
15510 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
15511 is_typedef_decl, typedef_variant_p): Constify.
15512
15513 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15514
15515 * defaults.h (gen_tablejump): New function.
15516 (HAVE_tablejump): Add default value.
15517 * expr.c: Adjust.
15518 * stmt.c: Likewise.
15519
15520 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15521
15522 * defaults.h (gen_store_multiple): New function.
15523 (HAVE_store_multiple): Add default value.
15524 * expr.c (move_block_from_reg): Adjust.
15525
15526 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15527
15528 * defaults.h (gen_load_multiple): New function.
15529 (HAVE_load_multiple): Add default value.
15530 * expr.c (move_block_to_reg): Adjust.
15531
15532 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15533
15534 * defaults.h (gen_mem_signal_fence): New function.
15535 (HAVE_mem_signal_fence): Add default value.
15536 * optabs.c: Adjust.
15537
15538 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15539
15540 * defaults.h (gen_memory_barrier): New function.
15541 (HAVE_memory_barrier): Add default value.
15542 * optabs.c: Adjust.
15543
15544 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15545
15546 * defaults.h (gen_mem_thread_fence): New function.
15547 (HAVE_mem_thread_fence): Add default definition.
15548 * optabs.c: Adjust.
15549
15550 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15551
15552 * combine.c (find_split_point): Check the value of HAVE_lo_sum
15553 instead of if it is defined.
15554 (combine_simplify_rtx): Likewise.
15555 * lra-constraints.c (process_address_1): Likewise.
15556 * config/darwin.c: Adjust.
15557 * genconfig.c (main): Always define HAVE_lo_sum.
15558
15559 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15560
15561 * genmatch.c (parser::parse_operation): Reject expanding
15562 operator-list inside 'for'.
15563
15564 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15565
15566 * genmatch.c (parser::parse_for): Reject iterator if used as
15567 operator-list.
15568
15569 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15570
15571 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
15572 after end of id-list.
15573
15574 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
15575
15576 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
15577 we do not try to compute canonical type for type that does not need
15578 alias set.
15579 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
15580 FUNCITON_TYPE.
15581 * tree.h (type_with_alias_set_p): New.
15582
15583 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
15584
15585 * tree.c (gimple_canonical_types_compatible_p): Do not compare
15586 function attributes.
15587 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
15588
15589 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
15590
15591 * Makefile.in (check_gcc_parallelize): Delete.
15592 (lang_checks_parallelized): Update comment.
15593
15594 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
15595
15596 PR rtl-optimization/66237
15597 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
15598 location of an "as_a" cast.
15599
15600 2015-05-22 Jeff Law <law@redhat.com>
15601
15602 * config/pa/pa.md (non-canonical shift-add insns): Remove.
15603 (peepholes with non-canonical RTL sources): Remove.
15604 (peepholes for indexed stores of FP regs in integer modes): Match and
15605 generate canonical RTL.
15606
15607 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15608
15609 PR tree-optimization/63387
15610 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
15611 ((x ord x) & (y ord y) -> (x ord y),
15612 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
15613 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
15614 vectors like scalars.
15615
15616 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15617
15618 * convert.c (convert_to_integer, convert_to_vector): Include the
15619 types in the error message.
15620
15621 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15622
15623 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
15624 simplifications.
15625
15626 2015-05-22 Jeff Law <law@redhat.com>
15627
15628 * config/pa/pa.md (integer_indexed_store splitters): Use
15629 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
15630 insns -- adjusting the constant 2nd operand accordingly.
15631
15632 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
15633 (plus (ashift X log2) Y) if it is a split point.
15634
15635 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
15636 out of hppa_legitimize_address to handle both forms of a multiply
15637 by 2, 4 or 8.
15638 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
15639 Always generate the ASHIFT variant as the result is not directly
15640 used in a MEM. Update comments and refactor slightly to improve
15641 readability.
15642
15643 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15644
15645 PR target/65491
15646 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
15647 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
15648 (aarch64_composite_type_p): Return false if given type and mode are
15649 for a short vector.
15650
15651 2015-05-22 Richard Biener <rguenther@suse.de>
15652
15653 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
15654 member.
15655 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
15656 patterns when determining whether SLP is pure.
15657 (vect_is_slp_reduction): Remove check for pattern stmts.
15658 (vect_is_simple_reduction_1): Remove dead code.
15659 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
15660 (vect_get_and_check_slp_defs): Pass in the stmt number.
15661 Allow the first def in a reduction to be not a pattern stmt when
15662 the rest of the stmts def are patterns.
15663 (vect_build_slp_tree_1): Allow tcc_expression codes like
15664 SAD_EXPR and DOT_PROD_EXPR.
15665 (vect_build_slp_tree): Adjust.
15666 (vect_analyze_slp): Refactor and move BB vect error message ...
15667 (vect_slp_analyze_bb_1): ... here.
15668
15669 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
15670
15671 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
15672 for CSWTCH temporary.
15673
15674 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15675
15676 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
15677 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
15678 unknown unspecs.
15679
15680 2015-05-22 Richard Biener <rguenther@suse.de>
15681
15682 PR tree-optimization/66251
15683 * tree-vect-stmts.c (vectorizable_conversion): Properly
15684 set STMT_VINFO_VEC_STMT even for the SLP case.
15685
15686 2015-05-22 Marek Polacek <polacek@redhat.com>
15687
15688 * doc/extend.texi: Use @pxref instead of @xref.
15689
15690 2015-05-22 hiraditya <hiraditya@msn.com>
15691
15692 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
15693 redundant if.
15694
15695 2015-05-22 Richard Biener <rguenther@suse.de>
15696
15697 PR tree-optimization/65701
15698 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15699 Move peeling cost models into one place. Peel for alignment
15700 for single loads only if an aligned load is cheaper than
15701 an unaligned load.
15702
15703 2015-05-22 Marek Polacek <polacek@redhat.com>
15704
15705 PR c/47043
15706 * doc/extend.texi (Enumerator Attributes): New section.
15707 Document syntax of enumerator attributes.
15708
15709 2015-05-22 Richard Biener <rguenther@suse.de>
15710
15711 * tree-vect-loop.c (get_reduction_op): New function.
15712 (vect_model_reduction_cost): Use it, add reduc_index parameter.
15713 Make ready for BB reductions.
15714 (vect_create_epilog_for_reduction): Use get_reduction_op.
15715 (vectorizable_reduction): Init reduc_index to a valid value.
15716 Adjust vect_model_reduction_cost call.
15717 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
15718 operand for reduction defaults. Add SAD_EXPR support.
15719 Assert we have a neutral op for SLP reductions.
15720 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
15721 walking pattern stmt ops only recurse to SSA names.
15722
15723 2015-05-22 Richard Biener <rguenther@suse.de>
15724
15725 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
15726 assert with guard, remove check on detected reduction.
15727 (vect_recog_sad_pattern): Likewise.
15728 (vect_recog_widen_sum_pattern): Likewise.
15729
15730 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15731
15732 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
15733 __always_inline__ attribute.
15734 (vaesdq_u8): Likewise.
15735 (vaesmcq_u8): Likewise.
15736 (vaesimcq_u8): Likewise.
15737 (vsha1cq_u32): Likewise.
15738 (vsha1mq_u32): Likewise.
15739 (vsha1pq_u32): Likewise.
15740 (vsha1h_u32): Likewise.
15741 (vsha1su0q_u32): Likewise.
15742 (vsha1su1q_u32): Likewise.
15743 (vsha256hq_u32): Likewise.
15744 (vsha256h2q_u32): Likewise.
15745 (vsha256su0q_u32): Likewise.
15746 (vsha256su1q_u32): Likewise.
15747 (vmull_p64): Likewise.
15748 (vmull_high_p64): Likewise.
15749
15750 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15751
15752 * final.c (final_scan_insn): Don't check HAVE_peephole with the
15753 preprocessor.
15754 * output.h: Likewise.
15755 * genconfig.c (main): Alwways define HAVE_peephole.
15756 * genpeep.c: Don't emit checks of HAVE_peephole.
15757
15758 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15759
15760 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
15761 check HAVE_conditional_move with the preprocessor.
15762
15763 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15764
15765 * genconfig.c (main): Always define HAVE_conditional_move.
15766 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
15767 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
15768 is defined.
15769
15770 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15771
15772 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
15773 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
15774 and FRAME_POINTER_REGNUM with the preprocessor.
15775
15776 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15777
15778 * defaults.h: Add default for STACK_PUSH_CODE.
15779 * expr.c: Don't redefine STACK_PUSH_CODE.
15780 * recog.c: Likewise.
15781
15782 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15783
15784 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
15785 sched-deps.c: Use if instead of preprocessor checks with
15786 STACK_GROWS_DOWNWARD.
15787
15788 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15789
15790 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
15791 is defined.
15792 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
15793 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
15794 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
15795 * doc/tm.texi: Regenerate.
15796
15797 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
15798
15799 PR target/66232
15800 * config/i386/constraints.md (Bg): New constraint for GOT memory
15801 operand.
15802 * config/i386/i386.md (*call_got_x32): New pattern.
15803 (*call_value_got_x32): Likewise.
15804 * config/i386/predicates.md (GOT_memory_operand): New predicate.
15805
15806 2015-05-21 Jakub Jelinek <jakub@redhat.com>
15807
15808 PR tree-optimization/66233
15809 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
15810 Simplify.
15811
15812 2015-05-21 Jeff Law <law@redhat.com>
15813
15814 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
15815 than MULT for shadd sequences.
15816
15817 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
15818
15819 * alias.c (alias_stats): New static var.
15820 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
15821 (dump_alias_stats_in_alias_c): New function.
15822 * alias.h (dump_alias_stats_in_alias_c): Declare.
15823 * tree-ssa-alias.c (dump_alias_stats): Call it.
15824
15825 2015-05-08 Michael Matz <matz@suse.de>
15826
15827 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
15828 to strided_p.
15829 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
15830 (STMT_VINFO_STRIDED_P): ... this.
15831 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
15832 (vect_verify_datarefs_alignment): Likewise.
15833 (vect_enhance_data_refs_alignment): Likewise.
15834 (vect_analyze_data_ref_access): Likewise.
15835 (vect_analyze_data_refs): Accept strided stores.
15836 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
15837 (vect_model_load_cost): Adjust for macro rename.
15838 (vectorizable_mask_load_store): Likewise.
15839 (vectorizable_load): Likewise.
15840 (vectorizable_store): Open code strided stores.
15841
15842 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15843
15844 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
15845 Document sqrt_insn.
15846
15847 2015-05-21 Richard Biener <rguenther@suse.de>
15848
15849 PR c++/66211
15850 * match.pd: Guard pattern optimzing (int)(float)int
15851 conversions to apply only on GIMPLE.
15852
15853 2015-05-21 Jeff Law <law@redhat.com>
15854
15855 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
15856 multiply-accumulate/shift-add insn generation.
15857
15858 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15859
15860 PR target/54236
15861 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
15862 operands[1] are the same.
15863
15864 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
15865
15866 PR middle-end/66221
15867 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
15868 build_distinct_type_copy to copy bounds.
15869
15870 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
15871
15872 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
15873 Change to unsigned int.
15874
15875 2015-05-20 Jeff Law <law@redhat.com>
15876
15877 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
15878 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
15879 (pa_shadd_constant_p): Allow constants for shadd insns rather
15880 than valid scaling constants for memory addresses.
15881 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
15882 * config/pa/predicates.md (mem_shadd_operand): New predicate.
15883 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
15884 (shift-add insns using ASHIFT): New patterns.
15885
15886 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
15887
15888 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
15889 feasible.
15890 (fix_up_fall_thru_edges): Likewise.
15891 (fix_crossing_conditional_branches): Likewise. Promote jump targets
15892 from to rtx_insn to rtx_code_label where feasible.
15893 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
15894 gen_move_insn (returned type changed to rtx_insn).
15895 * builtins.c (expand_errno_check): Fix arguments of
15896 do_compare_rtx_and_jump (now expects rtx_code_label).
15897 (expand_builtin_acc_on_device): Likewise.
15898 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
15899 invert_jump (now exprects rtx_jump_insn).
15900 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
15901 (construct_init_block): Use rtx_code_label.
15902 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
15903 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
15904 calling redirect_jump.
15905 (patch_jump_insn): Likewise.
15906 (redirect_branch_edge): Likewise.
15907 (force_nonfallthru_and_redirect): Likewise.
15908 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
15909 when suitable.
15910 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
15911 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
15912 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
15913 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
15914 to store the value retured by gen_label_rtx.
15915 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
15916 rtx_jump_insn.
15917 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
15918 (split_branches): Fix calls of redirect_jump.
15919 * dojump.c (jumpifnot): Promote argument type from rtx to
15920 rtx_code_label.
15921 (jumpifnot_1): Likewise.
15922 (jumpif): Likewise.
15923 (jumpif_1): Likewise.
15924 (do_jump_1): Likewise.
15925 (do_jump): Likewise. Use rtx_code_label when feasible.
15926 (do_jump_by_parts_greater_rtx): Likewise.
15927 (do_jump_by_parts_zero_rtx): Likewise.
15928 (do_jump_by_parts_equality_rtx): Likewise.
15929 (do_compare_rtx_and_jump): Likewise.
15930 * dojump.h: Update function prototypes.
15931 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
15932 returns rtx_insn).
15933 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
15934 rtx_jump_insn.
15935 (emit_label_before): Likewise.
15936 (emit_jump_insn_after_noloc): Likewise.
15937 (emit_jump_insn_after_setloc): Likewise.
15938 (emit_jump_insn_after): Likewise
15939 (emit_jump_insn_before_setloc): Likewise.
15940 (emit_jump_insn_before): Likewise.
15941 (emit_label_before): Promote return type to rtx_code_label.
15942 (emit_label): Likewise.
15943 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
15944 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
15945 gen_move_insn.
15946 (emit_stack_restore): Likewise.
15947 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
15948 (do_cmp_and_jump): Likewise.
15949 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
15950 from rtx to rtx_code_label.
15951 (gen_move_insn_uncast): New function.
15952 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
15953 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
15954 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
15955 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
15956 invert_jump_1 and redirect_jump_1.
15957 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
15958 do_compare_rtx_and_jump.
15959 (expand_addsub_overflow): Likewise.
15960 (expand_neg_overflow): Likewise.
15961 (expand_mul_overflow): Likewise.
15962 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
15963 return value of gen_move_insn.
15964 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
15965 * loop-doloop.c (add_test): Use rtx_code_label.
15966 (doloop_modify): Likewise.
15967 (doloop_optimize): Likewise.
15968 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
15969 * lra-constraints.c (emit_spill_move): Remove cast of value returned
15970 by gen_move_insn.
15971 (inherit_reload_reg): Add cast when calling dump_insn_slim.
15972 (split_reg): Likewise.
15973 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
15974 gen_move_insn.
15975 * optabs.c (expand_binop_directly): Remove casts of values returned by
15976 maybe_gen_insn.
15977 (expand_unop_direct): Likewise.
15978 (expand_abs): Likewise.
15979 (maybe_emit_unop_insn): Likewise.
15980 (maybe_gen_insn): Promote return type to rtx_insn.
15981 * optabs.h: Update prototype of maybe_gen_insn.
15982 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
15983 redundant cast.
15984 * recog.c (struct peep2_insn_data): Promote type of insn field to
15985 rtx_insn.
15986 (peep2_reinit_state): Use NULL instead of NULL_RTX.
15987 (peep2_attempt): Remove casts of insn in peep2_insn_data.
15988 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
15989 * recog.h (struct insn_gen_fn): Promote return types of function
15990 pointers and operator ().from rtx to rtx_insn.
15991 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
15992 (fill_eager_delay_slots): Likewise.
15993 (relax_delay_slots): Likewise.
15994 (make_return_insns): Likewise.
15995 (dbr_schedule): Likewise.
15996 (optimize_skips): Likewise.
15997 (reorg_redirect_jump): Likewise.
15998 (fill_slots_from_thread): Likewise.
15999 * reorg.h: Update prototypes.
16000 * resource.c (find_dead_or_set_registers): Use dyn_cast to
16001 rtx_jump_insn instead of check. Use it's jump_target method.
16002 * rtl.h (rtx_jump_insn::jump_label): Define new method.
16003 (rtx_jump_insn::jump_target): Define new method.
16004 (rtx_jump_insn::set_jump_target): Define new method.
16005 * rtlanal.c (tablejump_p): Promote type of one local variable.
16006 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
16007 (sched_analyze_insn): Likewise.
16008 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
16009 (print_insn): Likewise.
16010 * stmt.c (label_rtx): Promote return type to rtx_insn.
16011 (force_label_rtx): Likewise.
16012 (jump_target_rtx): Define new function.
16013 (expand_label): Use it, get rid of one cast.
16014 (expand_naked_return): Promote rtx to rtx_code_label.
16015 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
16016 (expand_case): Use rtx_code_label instread of rtx where feasible.
16017 (expand_sjlj_dispatch_table): Likewise.
16018 (emit_case_nodes): Likewise.
16019 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
16020 * store-motion.c (insert_store): Make use of new return type of
16021 gen_move_insn and remove a cast.
16022 (replace_store_insn): Likewise.
16023
16024 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
16025
16026 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
16027 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
16028
16029 2015-05-20 Jeff Law <law@redhat.com>
16030
16031 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
16032 dispose of the jump thread path when the jump threading
16033 opportunity is cancelled.
16034
16035 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16036
16037 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
16038 when printing the caret character.
16039
16040 2015-05-20 Marek Polacek <polacek@redhat.com>
16041
16042 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
16043
16044 2015-05-20 Marek Polacek <polacek@redhat.com>
16045
16046 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
16047 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
16048 * gimple-fold.c (canonicalize_bool): Likewise.
16049 (same_bool_result_p): Likewise.
16050 * tree-if-conv.c (parse_predicate): Likewise.
16051
16052 2015-05-20 Marek Polacek <polacek@redhat.com>
16053
16054 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
16055 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
16056
16057 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16058
16059 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
16060 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
16061 values.
16062
16063 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
16064
16065 * config/mips/mips.h (micromips_globals): Declare.
16066
16067 2015-05-20 David Malcolm <dmalcolm@redhat.com>
16068
16069 * timevar.def (TV_INITIALIZE_RTL): New.
16070 * toplev.c (initialize_rtl): Use an auto_timevar to account this
16071 function's time to TV_INITIALIZE_RTL.
16072
16073 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
16074
16075 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
16076 gimple_build_nop calls.
16077 (chkp_find_bounds_for_elem): Likewise.
16078 (chkp_get_zero_bounds): Likewise.
16079 (chkp_get_none_bounds): Likewise.
16080 (chkp_get_bounds_by_definition): Likewise.
16081 (chkp_generate_extern_var_bounds): Likewise.
16082 (chkp_get_bounds_for_decl_addr): Likewise.
16083 (chkp_get_bounds_for_string_cst): Likewise.
16084
16085 2015-05-20 Bin Cheng <bin.cheng@arm.com>
16086
16087 PR tree-optimization/65447
16088 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
16089 (dump_use, dump_uses): Support to dump sub use.
16090 (record_use): New parameters to support sub use. Remove call to
16091 dump_use.
16092 (record_sub_use, record_group_use): New functions.
16093 (compute_max_addr_offset, split_all_small_groups): New functions.
16094 (group_address_uses, rewrite_use_address): New functions.
16095 (strip_offset): New declaration.
16096 (find_interesting_uses_address): Call record_group_use.
16097 (add_candidate): New assertion.
16098 (infinite_cost_p): Move definition forward.
16099 (add_costs): Check INFTY cost and return immediately.
16100 (get_computation_cost_at): Clear setup cost and dependent bitmap
16101 for sub uses.
16102 (determine_use_iv_cost_address): Compute cost for sub uses.
16103 (rewrite_use_address_1): Rename from old rewrite_use_address.
16104 (free_loop_data): Free sub uses.
16105 (tree_ssa_iv_optimize_loop): Call group_address_uses.
16106
16107 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16108 Jim Wilson <jim.wilson@linaro.org>
16109
16110 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
16111 new fields loadv and storev.
16112 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
16113 Initialize loadv and storev.
16114 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
16115 (cortexa53_extra_costs): Likewise.
16116 (cortexa57_extra_costs): Likewise.
16117 (xgene1_extra_costs): Likewise.
16118 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
16119 rtx_costs.
16120
16121 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16122
16123 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
16124 storev.
16125 (cortexa8_extra_costs): Likewise.
16126 (cortexa5_extra_costs): Likewise.
16127 (cortexa7_extra_costs): Likewise.
16128 (cortexa12_extra_costs): Likewise.
16129 (cortexa15_extra_costs): Likewise.
16130 (v7m_extra_costs): Likewise.
16131
16132 2015-05-20 Jeff Law <law@redhat.com>
16133
16134 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
16135 instead of open-coded version. Also delete the jump thread created
16136 within this function.
16137
16138 2015-05-20 Alan Modra <amodra@gmail.com>
16139
16140 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
16141 stack adjusting insn. Formatting.
16142 (rs6000_emit_prologue): Track stack adjusting insn, and use of
16143 r12. If possible, emit first -fsplit-stack arg pointer insn
16144 before stack adjust. Don't use r12 to save cr if split-stack.
16145
16146 2015-05-20 Alan Modra <amodra@gmail.com>
16147
16148 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
16149 Define.
16150 (rs6000_supports_split_stack): New function.
16151 * gcc/config/rs6000/rs6000.c (machine_function): Add
16152 split_stack_arg_pointer.
16153 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
16154 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
16155 rather than virtual_incoming_args_rtx.
16156 (rs6000_va_start): Likewise.
16157 (split_stack_arg_pointer_used_p): New function.
16158 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
16159 (morestack_ref): New var.
16160 (gen_add3_const, rs6000_expand_split_stack_prologue,
16161 rs6000_internal_arg_pointer, rs6000_live_on_entry,
16162 rs6000_split_stack_space_check): New functions.
16163 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
16164 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
16165 (UNSPECV_SPLIT_STACK_RETURN): Define.
16166 (split_stack_prologue, load_split_stack_limit,
16167 load_split_stack_limit_di, load_split_stack_limit_si,
16168 split_stack_return, split_stack_space_check): New expands and insns.
16169 * gcc/config/rs6000/rs6000-protos.h
16170 (rs6000_expand_split_stack_prologue): Declare.
16171 (rs6000_split_stack_space_check): Declare.
16172
16173 2015-05-20 Alan Modra <amodra@gmail.com>
16174
16175 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
16176 (direct_return): Test vrsave_size rather than vrsave_mask.
16177 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
16178 (rs6000_emit_epilogue): Likewise.
16179
16180 2015-05-20 Alan Modra <amodra@gmail.com>
16181
16182 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
16183 when not saving registers.
16184 (debug_stack_info): Adjust to omit printing unused offsets,
16185 as before.
16186 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
16187 expression.
16188
16189 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16190
16191 PR c++/65835
16192 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
16193 value_type to const char *.
16194
16195 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
16196
16197 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
16198 to build a biarch toolchain again.
16199
16200 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
16201
16202 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
16203 or implicit declarations.
16204 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
16205 into it.
16206 (get_odr_type): Check type has linkage before adding bases.
16207 (register_odr_type): Check that type has linkage before adding it.
16208 (type_known_to_have_no_deriavations_p): Rename to ..
16209 (type_known_to_have_no_derivations_p): This one.
16210 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
16211 (type_known_to_have_no_derivations_p): This one.
16212 * ipa-polymorphic-call.c
16213 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
16214 type has linkage.
16215
16216 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
16217
16218 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
16219 (layout_type): Use RECORD_OR_UNION_TYPE_P.
16220
16221 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16222
16223 * config/s390/s390.c (s390_vector_bool_type_p): New function.
16224 (s390_invalid_binary_op): New function.
16225 (TARGET_INVALID_BINARY_OP): Define macro.
16226
16227 2015-05-19 David Sherwood <david.sherwood@arm.com>
16228
16229 * loop-invariant.c (create_new_invariant): Don't calculate address cost
16230 if mode is not a scalar integer.
16231 (get_inv_cost): Increase computational cost for unused invariants.
16232
16233 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16234
16235 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
16236 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
16237 * config/s390/s390-builtin-types.def: New file.
16238 * config/s390/s390-builtins.def: New file.
16239 * config/s390/s390-builtins.h: New file.
16240 * config/s390/s390-c.c: New file.
16241 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
16242 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
16243 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
16244 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
16245 prototypes.
16246 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
16247 Include.
16248 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
16249 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
16250 variable definitions.
16251 (s390_const_operand_ok): New function.
16252 (s390_expand_builtin): Rewrite.
16253 (s390_init_builtins): New function.
16254 (s390_handle_vectorbool_attribute): New function.
16255 (s390_attribute_table): Add s390_vector_bool attribute.
16256 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
16257 (s390_branch_condition_mask): Generate masks for new modes.
16258 (s390_expand_vec_compare_cc): New function.
16259 (s390_mangle_type): Add mangling for vector bool types.
16260 (enum s390_builtin): Remove.
16261 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
16262 efpc builtins.
16263 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
16264 s390_cpu_cpp_builtins.
16265 (REGISTER_TARGET_PRAGMAS): New macro.
16266 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
16267 (insn_cmp mode attribute): Add new CC modes.
16268 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
16269 (lcbb): New pattern definition.
16270 * config/s390/s390intrin.h: Include vecintrin.h.
16271 * config/s390/t-s390: New file.
16272 * config/s390/vecintrin.h: New file.
16273 * config/s390/vector.md: Include vx-builtins.md.
16274 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
16275 support.
16276
16277 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16278
16279 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
16280 CCVFHE.
16281 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
16282 (s390_select_ccmode): Likewise.
16283 (s390_canonicalize_comparison): Swap operands if necessary.
16284 (s390_expand_vec_compare_scalar): Expand DFmode compare using
16285 single element vector instructions.
16286 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
16287 (s390_branch_condition_mask): Generate CC masks for the new modes.
16288 * config/s390/s390.md (v0, vf, vd): New mode attributes.
16289 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
16290 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
16291 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
16292 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
16293 (*extend<DSF:mode><BFP:mode>2): New insn definition.
16294 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
16295 (extend<DSF:mode><BFP:mode>2): Turn into expander.
16296 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
16297 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
16298 (sqrt<mode>2): Add vector instruction.
16299
16300 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16301
16302 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
16303 constraints.
16304 * config/s390/predicates.md (const0_operand, constm1_operand)
16305 (constable_operand): Accept vector operands.
16306 * config/s390/s390-modes.def: Add supported vector modes.
16307 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
16308 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
16309 (s390_bytemask_vector_p, s390_expand_vec_strlen)
16310 (s390_expand_vec_compare, s390_expand_vcond)
16311 (s390_expand_vec_init): Add prototypes.
16312 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
16313 (s390_vector_mode_supported_p): New function.
16314 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
16315 (s390_contiguous_bitmask_vector_p): New function.
16316 (s390_bytemask_vector_p): New function.
16317 (s390_split_ok_p): Vector regs don't work either.
16318 (regclass_map): Add VEC_REGS.
16319 (s390_legitimate_constant_p): Handle vector constants.
16320 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
16321 (legitimate_reload_vector_constant_p): New function.
16322 (s390_preferred_reload_class): Handle CONST_VECTOR.
16323 (s390_reload_symref_address): Likewise.
16324 (s390_secondary_reload): Vector memory instructions only support
16325 short displacements. Rename reload*_nonoffmem* to reload*_la*.
16326 (s390_emit_ccraw_jump): New function.
16327 (s390_expand_vec_strlen): New function.
16328 (s390_expand_vec_compare): New function.
16329 (s390_expand_vcond): New function.
16330 (s390_expand_vec_init): New function.
16331 (s390_dwarf_frame_reg_mode): New function.
16332 (print_operand): Handle addresses with 'O' and 'R' constraints.
16333 (NR_C_MODES, constant_modes): Add vector modes.
16334 (s390_output_pool_entry): Handle vector constants.
16335 (s390_hard_regno_mode_ok): Handle vector registers.
16336 (s390_class_max_nregs): Likewise.
16337 (s390_cannot_change_mode_class): New function.
16338 (s390_invalid_arg_for_unprototyped_fn): New function.
16339 (s390_function_arg_vector): New function.
16340 (s390_function_arg_float): Remove size variable.
16341 (s390_pass_by_reference): Handle vector arguments.
16342 (s390_function_arg_advance): Likewise.
16343 (s390_function_arg): Likewise.
16344 (s390_return_in_memory): Vector values are returned in a VR if
16345 possible.
16346 (s390_function_and_libcall_value): Handle vector arguments.
16347 (s390_gimplify_va_arg): Likewise.
16348 (s390_call_saved_register_used): Consider the arguments named.
16349 (s390_conditional_register_usage): Disable v16-v31 for non-vec
16350 targets.
16351 (s390_preferred_simd_mode): New function.
16352 (s390_support_vector_misalignment): New function.
16353 (s390_vector_alignment): New function.
16354 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
16355 (TARGET_VECTOR_MODE_SUPPORTED_P)
16356 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
16357 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16358 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
16359 (TARGET_VECTOR_ALIGNMENT): Define target macro.
16360 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
16361 (FIRST_PSEUDO_REGISTER): Increase value.
16362 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
16363 (VECTOR_REG_P): Define macros.
16364 (FIXED_REGISTERS, CALL_USED_REGISTERS)
16365 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
16366 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
16367 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
16368 Add vector registers.
16369 (CANNOT_CHANGE_MODE_CLASS): Call C function.
16370 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
16371 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
16372 memory.
16373 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
16374 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
16375 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
16376 (VR*_REGNUM): New constants.
16377 (ALL): New mode iterator.
16378 (INTALL): Remove mode iterator.
16379 Include vector.md.
16380 (movti): Implement TImode moves for VRs.
16381 Disable TImode splitter for VR targets.
16382 Implement splitting TImode GPR<->VR moves.
16383 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
16384 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
16385 reload<mode>_la_in, reload<mode>_la_out.
16386 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
16387 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
16388 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
16389 (mov<mode> SF SD): Prefer lder, lde for loading.
16390 Add lrl and strl instructions.
16391 Add vector instructions.
16392 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
16393 Call s390_expand_vec_strlen on z13.
16394 (*cc_to_int): Change predicate to nonimmediate_operand.
16395 (addti3): Rename to *addti3. New expander.
16396 (subti3): Rename to *subti3. New expander.
16397 * config/s390/vector.md: New file.
16398
16399 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16400
16401 * common/config/s390/s390-common.c (processor_flags_table): Add
16402 z13.
16403 * config.gcc: Add z13.
16404 * config/s390/s390-opts.h (enum processor_type): Add
16405 PROCESSOR_2964_Z13.
16406 * config/s390/s390.c (s390_adjust_priority): Check for
16407 PROCESSOR_2964_Z13.
16408 (s390_reorg): Likewise.
16409 (s390_sched_reorder): Likewise.
16410 (s390_sched_variable_issue): Likewise.
16411 (s390_loop_unroll_adjust): Likewise.
16412 (s390_option_override): Likewise. Default to -mvx when available.
16413 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
16414 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
16415 (TARGET_VX_ABI): Define macros.
16416 macros.
16417 (TARGET_DEFAULT): Add MASK_OPT_VX.
16418 * config/s390/s390.md ("cpu" attribute): Add z13.
16419 ("cpu_facility" attribute): Add vec.
16420 * config/s390/s390.opt (processor_type): Add z13.
16421 (mvx): New options.
16422 * doc/invoke.texi: Add z13 option for -march.
16423
16424 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16425
16426 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
16427 mode check to make sure that only scalar integer values are
16428 accepted.
16429
16430 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
16431
16432 * tree.c (verify_type_variant): Fix #undef.
16433 (gimple_canonical_types_compatible_p): Move here from lto.c
16434 (verify_type): Verify TYPE_CANONICAL compatibility.
16435 * tree.h (gimple_canonical_types_compatible_p): Declare.
16436
16437 2015-05-19 Jakub Jelinek <jakub@redhat.com>
16438
16439 PR middle-end/66199
16440 * tree.h (OMP_TEAMS_COMBINED): Define.
16441 * gimplify.c (enum gimplify_omp_var_data): Add
16442 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
16443 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
16444 (omp_notice_variable): Accept both ORT_TEAMS
16445 and ORT_COMBINED_TEAMS. Don't recurse if
16446 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
16447 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
16448 GOVD_FIRSTPRIVATE.
16449 (omp_no_lastprivate): New function.
16450 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
16451 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
16452 notice_outer and set appropriate bits, otherwise make
16453 sure default(none) combined constructs won't complain.
16454 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
16455 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
16456 omp_no_lastprivate either remove the clause or turn it
16457 into OMP_CLAUSE_PRIVATE.
16458 (gimplify_omp_for): Fix up handling of implicit
16459 lastprivate or linear iterators.
16460 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
16461 ORT_COMBINED_TEAMS.
16462 * omp-low.c (lower_omp_for_lastprivate): For combined
16463 for simd use fd.loop.n2 from the for rather than simd.
16464
16465 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16466
16467 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
16468 instead of gen_rtx_raw_REG.
16469 (cris_expand_epilogue): Likewise.
16470 * config/microblaze/microblaze.c (microblaze_classify_address):
16471 Likewise.
16472 * config/sparc/sparc.md: Likewise.
16473
16474 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
16475
16476 * config/alpha/alpha.c (alpha_legitimize_reload_address)
16477 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
16478 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
16479 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
16480 Use CASE_CONST_SCALAR_INT.
16481 (print_operand) <case 'M'>: Use mode_width_operand to check the
16482 value of the constant.
16483 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
16484 * config/alpha/predicates.md (input_operand): Use general_operand
16485 instead of match_code as operand check.
16486 (symbolic_operand): Use match_code with subexpression digits.
16487 * config/alpha/constraints.md (Q): Ditto.
16488
16489 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16490
16491 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
16492
16493 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16494
16495 * config/s390/s390.c (s390_secondary_reload): Fix check for
16496 load/store relative.
16497
16498 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16499
16500 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
16501 alternative_mask to uint64_t.
16502
16503 2015-05-19 Jakub Jelinek <jakub@redhat.com>
16504
16505 PR tree-optimization/66187
16506 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
16507 Pass TYPE_SIGN to tree_int_cst_min_precision. If
16508 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
16509
16510 2015-05-19 David Malcolm <dmalcolm@redhat.com>
16511
16512 * diagnostic.c (diagnostic_report_current_module): Strengthen
16513 local "new_map" from const line_map * to
16514 const line_map_ordinary *.
16515 * genmatch.c (error_cb): Likewise for local "map".
16516 (output_line_directive): Likewise for local "map".
16517 * input.c (expand_location_1): Likewise for local "map".
16518 Pass NULL rather than &map to
16519 linemap_unwind_to_first_non_reserved_loc, since the value is never
16520 read from there, and the value written back not read from here.
16521 (is_location_from_builtin_token): Strengthen local "map" from
16522 const line_map * to const line_map_ordinary *.
16523 (dump_location_info): Strengthen locals "map" from
16524 line_map *, one to const line_map_ordinary *, the other
16525 to const line_map_macro *.
16526 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
16527 const line_map * to const line_map_macro *.
16528 (maybe_unwind_expanded_macro_loc): Add a call to
16529 linemap_check_macro when writing to the "map" field of the
16530 loc_map_pair.
16531 Introduce local const line_map_ordinary * "ord_map", using it in
16532 place of "map" in the part of the function where we know we have
16533 an ordinary map. Strengthen local "m" from const line_map * to
16534 const line_map_ordinary *.
16535
16536 2015-05-19 Nick Clifton <nickc@redhat.com>
16537
16538 PR target/66156
16539 * config/msp430/msp430.md (zero_extendhisi2): Add support for
16540 separate source and destination registers.
16541
16542 2015-05-19 Richard Biener <rguenther@suse.de>
16543
16544 PR tree-optimization/66165
16545 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
16546 for no load permutation.
16547
16548 PR tree-optimization/66185
16549 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
16550 when building the SLP node from scalars.
16551
16552 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
16553 Tristan Gingold <gingold@adacore.com>
16554
16555 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
16556 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
16557 (expand_stack_restore): Call record_new_stack_level.
16558 (expand_stack_save): Do not call do_pending_stack_adjust.
16559 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
16560 * calls.c (expand_call): Call record_new_stack_level for alloca.
16561 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
16562 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
16563 (update_sjlj_context): New global function.
16564 * except.h (update_sjlj_context): Declare.
16565 * explow.c (record_new_stack_level): New global function.
16566 (allocate_dynamic_stack_space): Call record_new_stack_level.
16567 * explow.h (record_new_stack_level): Declare.
16568 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
16569 * cfgrtl.c (duplicate_insn_chain): Likewise.
16570
16571 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16572
16573 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
16574 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
16575 STACK_GROWS_DOWNWARD as normal if.
16576 (expand_call): Likewise.
16577
16578 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
16579
16580 PR target/54236
16581 * config/sh/sh.md (*round_int_even): New insn_and_split and
16582 accompanying new unnamed split.
16583
16584 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16585
16586 * bitmap.c (bitmap_set_range): Handle count==1 specially.
16587 (bitmap_clear_range): Likewise.
16588 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
16589 bitmap_set_range unconditionally.
16590 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
16591 * df-scan.c (df_mark_reg): Likewise.
16592 * haifa-sched.c (setup_ref_regs): Likewise.
16593 * sched-rgn.c (update_live_1): Likewise.
16594
16595 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16596
16597 * regs.h (END_HARD_REGNO): Delete.
16598 (END_REGNO): Move to...
16599 * rtl.h: ...here.
16600 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
16601 * caller-save.c (mark_set_regs): Likewise.
16602 * combine.c (move_deaths, distribute_notes): Likewise.
16603 * cse.c (invalidate, invalidate_for_call): Likewise.
16604 * df-scan.c (df_ref_record): Likewise.
16605 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
16606 (record_last_reg_set_info): Likewise.
16607 * reg-stack.c (convert_regs_exit): Likewise.
16608 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
16609 * resource.c (update_live_status): Likewise.
16610 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
16611
16612 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16613
16614 * rtl.h (reg_info): Add an nregs field.
16615 (REG_NREGS): Use it.
16616 (SET_REGNO_RAW): Delete.
16617 (set_regno_raw): New function.
16618 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
16619 (END_REGNO): Redefine in terms of REG_NREGS.
16620 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
16621 SET_REGNO_RAW.
16622 * emit-rtl.c (set_mode_and_regno): Likewise.
16623 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
16624 instead of SET_REGNO_RAW.
16625
16626 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16627
16628 * rtl.h (PUT_MODE_RAW): New macro.
16629 (PUT_REG_NOTE_KIND): Use it.
16630 (set_mode_and_regno): Declare.
16631 (gen_raw_REG): Change regno to "unsigned int".
16632 (gen_rtx_REG): Change "unsigned" to "unsigned int".
16633 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
16634 use set_mode_and_regno to change the mode of registers.
16635 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
16636 * emit-rtl.c (set_mode_and_regno): New function.
16637 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
16638 * caller-save.c (reg_save_code): Use set_mode_and_regno.
16639 * expr.c (init_expr_target): Likewise.
16640 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16641 * postreload.c (reload_cse_simplify_operands): Likewise.
16642
16643 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16644
16645 * caller-save.c (init_caller_save): Use word_mode and
16646 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
16647 * expr.c (init_expr_target): Likewise.
16648 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16649 * postreload.c (reload_cse_regs_1): Likewise.
16650
16651 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16652
16653 * rtl.def (REG): Change format to "r".
16654 * rtl.h (rtunion): Remove rt_reg.
16655 (reg_info): New structure.
16656 (rtx_def): Add reg field to main union.
16657 (X0REGATTR): Delete.
16658 (REG_CHECK): New macro.
16659 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
16660 * rtl.c (rtx_format): Document "r".
16661 (rtx_code_size): Handle REG specially.
16662 * gengenrtl.c (special_format): Return true for formats
16663 that include 'r'.
16664 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
16665 Deal with REG_ATTRS after the field loop.
16666 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
16667 * expmed.c (init_expmed): Call gen_raw_REG instead of
16668 gen_rtx_raw_REG.
16669 * expr.c (init_expr_target): Likewise.
16670 * regcprop.c (maybe_mode_change): Likewise.
16671 * varasm.c (make_decl_rtl): Likewise.
16672 * final.c (leaf_renumber_regs_insn): Return early after
16673 handling REGs.
16674 * genemit.c (gen_exp): Handle 'r' fields.
16675 * genpeep.c (match_rtx): Likewise.
16676 * gensupport.c (subst_pattern_match): Likewise.
16677 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
16678 (alter_constraints, subst_dup): Likewise.
16679 * read-rtl.c (read_rtx_code): Likewise.
16680 * print-rtl.c (print_rtx): Likewise.
16681 * genrecog.c (find_operand, find_matching_operand): Likewise.
16682 (validate_pattern, match_pattern_2): Likewise.
16683 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
16684 (rtx_test::regno_field): New function.
16685 (operator ==, safe_to_hoist_p, transition_parameter_type)
16686 (parameter_type_string, print_parameter_value)
16687 (print_nonbool_test, print_test): Handle new enum values.
16688 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
16689 * lra-constraints.c (operands_match_p): Likewise.
16690
16691 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16692
16693 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
16694 Change type of new_regno to unsigned int.
16695 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
16696 new_regno to unsigned int.
16697 (df_ref_change_reg_with_loc): Remove old_regno parameter.
16698 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
16699 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
16700 (SET_REGNO_RAW): Add space after ",".
16701
16702 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16703
16704 * rtl.h (REG_NREGS): New macro
16705 * alias.c (record_set): Use it.
16706 * cfgcleanup.c (mark_effect): Likewise.
16707 * combine.c (likely_spilled_retval_1): Likewise.
16708 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
16709 (move_deaths, distribute_notes): Likewise.
16710 * cselib.c (cselib_record_set): Likewise.
16711 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
16712 * df-scan.c (df_mark_reg): Likewise.
16713 * dse.c (look_for_hardregs): Likewise.
16714 * dwarf2out.c (reg_loc_descriptor): Likewise.
16715 (multiple_reg_loc_descriptor): Likewise.
16716 * expr.c (write_complex_part, read_complex_part): Likewise.
16717 (emit_move_complex): Likewise.
16718 * haifa-sched.c (setup_ref_regs): Likewise.
16719 * ira-lives.c (mark_hard_reg_live): Likewise.
16720 * lra.c (lra_set_insn_recog_data): Likewise.
16721 * mode-switching.c (create_pre_exit): Likewise.
16722 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
16723 (reload_combine_recognize_pattern): Likewise.
16724 (reload_combine_note_use, move2add_record_mode): Likewise.
16725 (reload_cse_move2add): Likewise.
16726 * reg-stack.c (subst_stack_regs_pat): Likewise.
16727 * regcprop.c (kill_value, copy_value): Likewise.
16728 (copyprop_hardreg_forward_1): Likewise.
16729 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
16730 (build_def_use): Likewise.
16731 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
16732 (deps_analyze_insn): Likewise.
16733 * sched-rgn.c (check_live_1, update_live_1): Likewise.
16734 * sel-sched.c (count_occurrences_equiv): Likewise.
16735 * valtrack.c (dead_debug_insert_temp): Likewise.
16736
16737 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16738
16739 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
16740 * dse.c (note_add_store): Likewise.
16741 * ira-lives.c (mark_hard_reg_dead): Likewise.
16742 * loop-invariant.c (mark_reg_store): Likewise.
16743 (mark_reg_death): Likewise.
16744 * postreload.c (reload_combine): Likewise.
16745 (reload_combine_note_store): Likewise.
16746 (reload_combine_note_use): Likewise.
16747 * recog.c (peep2_reg_dead_p): Likewise.
16748
16749 2015-05-19 Alan Modra <amodra@gmail.com>
16750
16751 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
16752 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
16753 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
16754 unused predicates.
16755 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
16756 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
16757 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
16758 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
16759
16760 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
16761
16762 * config/mips/mips.md (JOIN_MODE): New mode iterator.
16763 (join2_load_Store<JOIN_MODE:mode>): New pattern.
16764 (join2_loadhi): Likewise.
16765 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
16766 load-load and store-stores.
16767 * config/mips/mips.opt (mload-store-pairs): New option.
16768 (TARGET_LOAD_STORE_PAIRS): New macro.
16769 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
16770 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
16771 * config/mips/mips.c (mips_load_store_bonding_p): New function.
16772
16773 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
16774
16775 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
16776 explicit swaps.
16777 * dojump.c (do_compare_rtx_and_jump): Likewise.
16778 * expmed.c (emit_store_flag_1): Likewise.
16779 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
16780 * final.c (sprint_ul): Use std::reverse for reversing a string.
16781 * fold-const.c (extract_muldiv_1): Use std::swap.
16782 * genmodes.c (emit_mode_int_n): Likewise.
16783 * ifcvt.c (dead_or_predicable): Likewise.
16784 * ira-build.c (ira_merge_live_ranges): Likewise.
16785 (swap_allocno_copy_ends_if_necessary): Likewise.
16786 * ira.c (ira_setup_alts): Likewise.
16787 * loop-iv.c (iv_analyze_expr): Likewise.
16788 (implies_p): Likewise.
16789 (canon_condition): Likewise.
16790 * lra-constraints.c (swap_operands): Likewise.
16791 * lra-lives.c (lra_merge_live_ranges): Likewise.
16792 * omega.c (swap): Remove.
16793 (bswap): Remove.
16794 (omega_unprotect_1): Use std::swap.
16795 (omega_solve_geq): Likewise.
16796 * optabs.c (expand_binop_directly): Likewise.
16797 (expand_binop): Likewise.
16798 (emit_conditional_move): Likewise.
16799 (emit_conditional_add): Likewise.
16800 * postreload.c (reload_cse_simplify_operands): Likewise.
16801 * reg-stack.c (emit_swap_insn): Likewise.
16802 (swap_to_top): Likewise.
16803 (compare_for_stack_reg): Likewise.
16804 (subst_asm_stack_regs): Likewise.
16805 * reload.c (find_reloads): Likewise.
16806 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
16807 * sel-sched.c (invoke_reorder_hooks): Likewise.
16808 (create_block_for_bookkeeping): Likewise.
16809 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
16810 (lambda_matrix_right_hermite): Use std::swap.
16811 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
16812 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
16813 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
16814 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
16815 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
16816 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
16817 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
16818 * tree-vrp.c (compare_ranges): Likewise.
16819 * var-tracking.c (add_with_sets): Likewise.
16820 (vt_find_locations): Likewise.
16821
16822 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
16823
16824 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
16825 pie executables.
16826 (FBSD_ENDFILE_SPEC): Likewise.
16827 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
16828 config/freebsd-spec.h.
16829 (ENDFILE_SPEC): Likewise.
16830
16831 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
16832 Richard Henderson <rth@redhat.com>
16833
16834 PR target/57032
16835 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
16836 Check for a memory location that is not a reference (using an AND)
16837 to an unaligned location here.
16838 * config/alpha/predicates.md (normal_memory_operand): Remove.
16839
16840 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
16841
16842 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
16843 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
16844
16845 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
16846
16847 * config/mips/mips.c (micromips_globals): New variable.
16848 (mips_set_compression_mode): Save and reinitialize target-dependent
16849 state for microMIPS.
16850
16851 2015-05-18 Martin Liska <mliska@suse.cz>
16852
16853 * dbgcnt.def: Add new counter.
16854 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
16855
16856 2015-05-18 Martin Liska <mliska@suse.cz>
16857
16858 * dbgcnt.def: Sort counters.
16859 * opts.c (common_handle_option): Do not compile if
16860 -fdbg-cnt-list is enabled.
16861
16862 2015-05-18 Tom de Vries <tom@codesourcery.com>
16863
16864 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
16865 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
16866 address operator to va_list operand.
16867 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
16868 unconditionally.
16869 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
16870 operand.
16871 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
16872 * config/s390/s390.c (s390_gimplify_va_arg): Same.
16873 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
16874
16875 2015-05-18 Tom de Vries <tom@codesourcery.com>
16876
16877 * tree-ssa-tail-merge.c: Fix whitespace.
16878
16879 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
16880
16881 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
16882 cortex-a17, and cortex-a17.cortex-a7.
16883
16884 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
16885
16886 PR target/54236
16887 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
16888
16889 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
16890
16891 PR target/66174
16892 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
16893 QImode inner modes for TARGET_AVX512BW. Force mask operand
16894 to a register for AVX512F modes.
16895
16896 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16897
16898 * toplev.c (emit_debug_global_declarations): Do not output debug info
16899 when doing slim LTO objects.
16900
16901 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16902
16903 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
16904 odr_types_equivalent_p): Declare.
16905 (odr_type_p): Use gcc_checking_assert.
16906 (type_in_anonymous_namespace_p) Declare.
16907 (type_with_linkage_p): Declare.
16908 * common.opt (Wlto-type-mismatch): New warning.
16909 * ipa-devirt.c (compound_type_base): New function.
16910 (odr_or_derived_type_p): New function.
16911 (odr_types_equivalent_p): New function.
16912 (add_type_duplicate): Simplify.
16913 (type_with_linkage_p): Add hack to prevent false positives on C types
16914 (type_in_anonymous_namespace_p): Likewise.
16915 * tree.c (need_assembler_name_p): Use type_with_linkage.
16916 * tree.h (type_in_anonymous_namespace_p): Remove.
16917 * doc/invoke.texi (-Wlto-type-mismatch): Document
16918
16919 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16920
16921 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
16922 (verify_type): Verify STRING_FLAG.
16923
16924 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
16925
16926 PR fortran/44054
16927 * tree-pretty-print.c (percent_K_format): Replace locus pointer
16928 with accessor function.
16929 * tree-diagnostic.c (diagnostic_report_current_function): Use
16930 diagnostic_location function.
16931 (maybe_unwind_expanded_macro_loc): Likewise.
16932 (virt_loc_aware_diagnostic_finalizer): Likewise.
16933 (default_tree_printer): Replace locus pointer with accessor function.
16934 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
16935 (diagnostic_set_info_translated): Initialize second location.
16936 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
16937 (diagnostic_show_locus): Handle two locations. Call
16938 diagnostic_print_caret_line.
16939 (diagnostic_print_caret_line): New.
16940 (default_diagnostic_starter): Use diagnostic_location function.
16941 (diagnostic_report_diagnostic): Use diagnostic_location function.
16942 (verbatim): Do not set text.locus.
16943 * diagnostic.h (struct diagnostic_info): Remove location field.
16944 (struct diagnostic_context): Make caret_chars an array of two.
16945 (diagnostic_location): New inline.
16946 (diagnostic_expand_location): Handle two locations.
16947 (diagnostic_same_line): New inline.
16948 (diagnostic_print_caret_line): Declare.
16949 (CARET_LINE_MARGIN): New constant.
16950 * pretty-print.c (pp_printf): Do not set text.locus.
16951 (pp_verbatim): Do not set text.locus.
16952 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
16953 (struct text_info): Replace locus pointer with locations
16954 array. Add accessor functions.
16955
16956 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
16957 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16958
16959 PR target/65768
16960 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
16961 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
16962 large constants in register instead of splitting them.
16963
16964 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
16965
16966 PR target/66140
16967 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
16968 replacements in memory addresses.
16969 (get_unaligned_address): Ditto.
16970
16971 2015-05-16 James Bowman <james.bowman@ftdichip.com>
16972
16973 * config/ft32/*: New files for FT32 port.
16974 * doc/install.texi: Add FT32 information.
16975 * doc/invoke.texi: Add FT32 information.
16976 * doc/md.texi: Add FT32 information.
16977 * doc/contrib.texi: Self added.
16978
16979 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
16980
16981 PR tree-optimization/64454
16982 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
16983 (-1 - A -> ~A): Remove unnecessary condition.
16984
16985 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
16986
16987 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
16988 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
16989 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
16990
16991 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
16992
16993 * ipa-chkp.h (chkp_wrap_function): New.
16994 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
16995 (chkp_wrap_function_name): New.
16996 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
16997 to get wrapper name.
16998 * lto-cgraph.c: Include ipa-chkp.h.
16999 (input_cgraph_1): Avoid alias chain for wrappers.
17000
17001 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
17002
17003 PR middle-end/66134
17004 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
17005 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
17006
17007 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17008
17009 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
17010 (AARCH64_FL_SLOWMUL): Delete.
17011 (AARCH64_FL_CRC): Redefine to 1<<3.
17012 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
17013
17014 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17015
17016 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
17017 casting.
17018
17019 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
17020
17021 * config/alpha/alpha.md (extendqidi2): Use general_operand
17022 instead of some_operand for operand[1] predicate.
17023 (extendhidi2): Ditto.
17024 (cbranchdi4): Use general_operand instead of some_operand
17025 for operand[1] and operands[2] predicates.
17026 (cstoredi4): Ditto.
17027 * config/alpha/predicates.md (some_operand): Remove unused predicate.
17028 (some_ni_operand): Ditto.
17029
17030 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
17031
17032 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
17033 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
17034 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
17035 low part of the constant using alpha_emit_set_const_1.
17036 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
17037
17038 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
17039
17040 * varasm.c (output_constant_pool_1): Pass down alignment from
17041 constant pool entry's descriptor to output_constant_pool_2.
17042 (output_object_block): Add comment prior to call to
17043 output_constant_pool_1.
17044
17045 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
17046
17047 PR rtl-optimization/65862
17048 * target.def (ira_change_pseudo_allocno_class): New hook.
17049 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
17050 value of the hook.
17051 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
17052 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
17053 hook.
17054 * ira-costs.c (find_costs_and_classes): Call the hook and change
17055 classes when it is necessary.
17056 * doc/tm.texi: Update.
17057
17058 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
17059
17060 * config/i386/i386.md (sibcall_memory): Check that register with
17061 callee address is not also used as one of the arguments, instead
17062 of checking that it is not live after the sibcall.
17063 (sibcall_pop_memory): Ditto.
17064 (sibcall_value_memory): Ditto.
17065 (sibcall_value_pop_memory): Ditto.
17066
17067 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
17068
17069 * generic-match-head.c (types_match): Handle non-types.
17070 * gimple-match-head.c (types_match): Likewise.
17071 * match.pd: Remove unnecessary TREE_TYPE for types_match.
17072
17073 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
17074
17075 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
17076 (csneg3<mode>_insn): Enable expansion of pattern.
17077
17078 2015-05-14 Nick Clifton <nickc@redhat.com>
17079
17080 * config/rl78/rl78.c (rl78_select_section): Select the correct
17081 default section based upon the category of the decl.
17082
17083 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17084
17085 PR rtl-optimization/30967
17086 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
17087 destination mode for the cost of scc patterns.
17088
17089 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
17090
17091 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
17092 using SWIM248 mode iterator.
17093 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
17094 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
17095 for operand[2] constraint.
17096 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
17097
17098 2015-05-13 Jakub Jelinek <jakub@redhat.com>
17099
17100 PR middle-end/66133
17101 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
17102 make sure it is never noreturn, even when the task body does not
17103 return.
17104 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
17105 right before GIMPLE_OMP_RETURN.
17106 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
17107 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
17108 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
17109
17110 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17111
17112 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
17113 * tree-ssa-math-opts.c: Include params.h
17114 (pow_synth_sqrt_info): New struct.
17115 (representable_as_half_series_p): New function.
17116 (get_fn_chain): Likewise.
17117 (print_nested_fn): Likewise.
17118 (dump_fractional_sqrt_sequence): Likewise.
17119 (dump_integer_part): Likewise.
17120 (expand_pow_as_sqrts): Likewise.
17121 (gimple_expand_builtin_pow): Use above to attempt to expand
17122 pow as series of square roots. Removed now unused variables.
17123
17124 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
17125
17126 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
17127 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
17128 Remove *p0 and *p1 arguments. Rewrite function.
17129 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
17130 (alpha_split_const_mov): Update calls to alpha_extract_integer and
17131 alpha_emit_set_long_const.
17132 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
17133 (alpha_output_mi_thunk_osf): Ditto.
17134 * config/alpha/alpha.md (movti): Do not check operands[1]
17135 for CONST_DOUBLE.
17136
17137 2015-05-13 Richard Biener <rguenther@suse.de>
17138
17139 PR tree-optimization/66129
17140 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
17141 commutative.
17142 (vect_schedule_slp_instance): Fix typo.
17143
17144 2015-05-13 David Malcolm <dmalcolm@redhat.com>
17145
17146 * common.opt (fdump-internal-locations): New option.
17147 * input.c: Include diagnostic-core.h.
17148 (get_end_location): New function.
17149 (write_digit): New function.
17150 (write_digit_row): New function.
17151 (dump_location_range): New function.
17152 (dump_labelled_location_range): New function.
17153 (dump_location_info): New function.
17154 * input.h (dump_location_info): New prototype.
17155 * toplev.c (compile_file): Handle flag_dump_locations.
17156
17157 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
17158
17159 * gimple-expr.h (is_gimple_constant): Reorder.
17160 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
17161
17162 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17163
17164 * combine.c (simplify_set): When generating a CC set, if the
17165 source already is in the correct mode, do not wrap it in a
17166 compare. Simplify the rest of that code.
17167
17168 2015-05-13 Richard Biener <rguenther@suse.de>
17169
17170 PR tree-optimization/66123
17171 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
17172 a taken edge.
17173
17174 2015-05-13 Richard Biener <rguenther@suse.de>
17175
17176 PR middle-end/66110
17177 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
17178 specially.
17179 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
17180
17181 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17182
17183 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
17184 * aclocal.m4: Regenerated with automake-1.11.6.
17185
17186 2015-05-13 Tom de Vries <tom@codesourcery.com>
17187
17188 PR tree-optimization/66010
17189 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
17190 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
17191 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
17192 and rval based on do_deref.
17193
17194 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
17195
17196 PR target/65103
17197 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
17198 link time constants into adress expressions and therefore set
17199 their cost to 0.
17200
17201 2015-05-13 Jakub Jelinek <jakub@redhat.com>
17202
17203 PR target/66112
17204 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
17205 Use SWI248 iterator instead of SWI.
17206 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
17207 Use eq_attr "alternative" "0" instead of match_test in
17208 length_immediate attribute computation.
17209 (*mulvhi4, *mulvhi4_1): New define_insns.
17210
17211 PR target/66112
17212 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
17213 SIGNED to get precision of non-negative value.
17214
17215 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
17216
17217 PR target/66048
17218 * function.c (diddle_return_value_1): Process bounds first.
17219 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
17220 register.
17221
17222 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17223
17224 PR rtl-optimization/64616
17225 * loop-invariant.c (can_move_invariant_reg): New.
17226 (move_invariant_reg): Call above new function to decide whether
17227 instruction can just be moved, skipping creation of temporary
17228 register.
17229
17230 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17231
17232 PR target/pr66047.c
17233 * i386.c (ix86_function_sseregparm): Only return -1 if local function
17234 with implied regparm is called from -mno-sse function.
17235 (init_cumulative_args): Output error if ix86_function_sseregparm
17236 return -1 and SSE register would be needed.
17237 (function_arg_advance_32): Likewise.
17238 (function_arg_32): Likewise.
17239 * i386.h (ix86_args): Add decl field.
17240
17241 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17242
17243 PR ipa/65873
17244 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
17245 inlines across optimization boundary.
17246
17247 2015-05-12 Jason Merrill <jason@redhat.com>
17248
17249 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
17250 string literal and macro name.
17251
17252 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
17253
17254 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
17255 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
17256 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
17257
17258 2015-05-12 David Malcolm <dmalcolm@redhat.com>
17259
17260 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
17261 (-Wmisleading-indentation): New option.
17262 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
17263
17264 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
17265
17266 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
17267 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
17268 (alpha_extract_integer): Ditto.
17269 (alpha_legitimate_constant_p): Ditto.
17270 (alpha_split_tmode_pair): Ditto.
17271 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
17272 (alpha_expand_mov): Ditto.
17273 (print_operand): Remove handling of 'H' modifier.
17274 <case 'm'>: Remove CONST_DOUBLE handling.
17275 (summarize_insn): Handle CONST_WIDE_INT.
17276 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
17277 (anddi3): Ditto.
17278 (movti): Handle CONST_WIDE_INT.
17279 * config/alpha/constraints.md ('H'): Remove constraint definition.
17280 ('G'): Do not match MODE_FLOAT class.
17281 * config/alpha/predicates.md (const0_operand): Also match
17282 const_wide_int.
17283 (non_add_const_operand): Ditto.
17284 (non_zero_const_operand): Ditto.
17285 (some_operand): Ditto.
17286 (input_operand): Ditto. Handle CONST_WIDE_INT.
17287 (and_operand): Do not match const_double.
17288 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
17289
17290 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
17291
17292 PR target/65697
17293 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
17294 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
17295 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
17296 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
17297 is_mm_seq_cst, is_mm_sync): New accessor functions.
17298 * builtins.c (expand_builtin_sync_operation,
17299 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
17300 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
17301 (get_memmodel, expand_builtin_atomic_compare_exchange,
17302 expand_builtin_atomic_load, expand_builtin_atomic_store,
17303 expand_builtin_atomic_clear): Use new accessor routines.
17304 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
17305 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
17306 (maybe_emit_sync_lock_test_and_set): Use new accessors and
17307 MEMMODEL_SYNC_ACQUIRE.
17308 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
17309 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
17310 expand_atomic_store): Use new accessors.
17311 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
17312 * tsan.c (instrument_builtin_call): Update check for memory model beyond
17313 final enum to use MEMMODEL_LAST.
17314 * c-family/c-common.c: Use new accessor for memmodel_base.
17315 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
17316 accessors.
17317 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
17318 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
17319 mem_thread_fence, *dmb): Likewise.
17320 * config/alpha/alpha.c (alpha_split_compare_and_swap,
17321 alpha_split_compare_and_swap_12): Likewise.
17322 * config/arm/arm.c (arm_expand_compare_and_swap,
17323 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
17324 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
17325 atomic_loaddi): Likewise.
17326 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
17327 Likewise.
17328 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
17329 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
17330 use new accessors.
17331 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
17332 atomic_store<mode>, atomic_compare_and_swap<mode>,
17333 atomic_exchange<mode>): Use new accessors.
17334 * config/mips/mips.c (mips_process_sync_loop): Likewise.
17335 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
17336 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
17337 rs6000_post_atomic_barrier): Add new cases.
17338 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
17339 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
17340 (atomic_load<mode>): Add new cases and use new accessors.
17341 (store_quadpti): Add new cases.
17342 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
17343 accessors.
17344 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
17345 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
17346 model, not 8.
17347
17348 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17349
17350 * ipa-devirt.c (type_with_linkage_p): New function.
17351 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
17352 type has linkage.
17353 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
17354 (can_be_name_hashed_p): Simplify.
17355 (hash_odr_name): Check that type has linkage before checking if it is
17356 anonymous.
17357 (types_same_for_odr): Likewise.
17358 (odr_name_hasher::equal): Likewise.
17359 (odr_subtypes_equivalent_p): Likewise.
17360 (warn_types_mismatch): Likewise.
17361 (get_odr_type): Likewise.
17362 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
17363 * ipa-utils.h (odr_type_p): Move offline.
17364 * tree.c (need_assembler_name_p): Fix handling of types
17365 without linkages.
17366 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
17367
17368 2015-05-12 David Malcolm <dmalcolm@redhat.com>
17369
17370 * timevar.c (timevar_enable): Delete in favor of...
17371 (g_timer): New global.
17372 (struct timevar_def): Move to timevar.h inside class timer.
17373 (struct timevar_stack_def): Likewise.
17374 (timevars): Delete global in favor of field "m_timevars" within
17375 class timer in timevar.h
17376 (stack): Likewise, in favor of field "m_stack".
17377 (unused_stack_instances): Likewise, in favor of field
17378 "m_unused_stack_instances".
17379 (start_time): Likewise, in favor of field "m_start_time".
17380 (get_time): Eliminate check for timevar_enable.
17381 (timer::timer): New function, built from part of timevar_init.
17382 (timevar_init): Rewrite idempotency test from using
17383 "timevar_enable" bool to using dynamic allocation of "g_timer".
17384 Move rest of implementation into timer's constructor.
17385 (timevar_push_1): Rename to...
17386 (timer::push): ...this, adding "m_" prefixes to variables that
17387 are now fields of timer.
17388 (timevar_pop_1): Likewise, rename to...
17389 (timer::pop): ...this, and add "m_" prefixes.
17390 (timevar_start): Replace test for "timevar_enable" with one for
17391 "g_timer", and move bulk of implementation to...
17392 (timer::start): ...here, adding "m_" prefixes.
17393 (timevar_stop): Likewise, from here...
17394 (timer::stop): ...to here.
17395 (timevar_cond_start): Likewise, from here...
17396 (timer::cond_start): ...to here.
17397 (timevar_cond_stop): Likewise, from here...
17398 (timer::cond_stop): ...to here.
17399 (validate_phases): Rename to...
17400 (timer::validate_phases): ...this, and add "m_" prefixes. Make
17401 locals "total" and "tv" const.
17402 (timevar_print): Rename to...
17403 (timer::print): ...this, and add "m_" prefixes. Make locals
17404 "total" and "tv" const. Eliminate test for timevar_enable.
17405 * timevar.h (timevar_enable): Eliminate.
17406 (g_timer): New declaration.
17407 (timevar_push_1): Eliminate.
17408 (timevar_pop_1): Eliminate.
17409 (timevar_print): Eliminate.
17410 (class timer): New class.
17411 (timevar_push): Rewrite to use g_timer.
17412 (timevar_pop): Likewise.
17413 * toplev.c (toplev::~toplev): Likewise.
17414
17415 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
17416
17417 * arm-protos.h (arm_sched_autopref): Delete.
17418 (tune_params): Re-organize, use enums for flag values.
17419 (FUSE_OPS): New macro.
17420 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
17421 (ARM_PREFETCH_BENEFICIAL): Likewise.
17422 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
17423 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
17424 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
17425 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
17426 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
17427 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
17428 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
17429 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
17430 format.
17431 (arm_option_override, thumb2_reorg, arm_print_tune_info)
17432 (aarch_macro_fusion_pair_p): Update uses of current_tune.
17433 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
17434
17435 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
17436
17437 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
17438 "break".
17439
17440 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
17441 Sandra Loosemore <sandra@codesourcery.com>
17442
17443 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
17444 value.
17445 (REG_CLASS_NAMES): Add "IJMP_REGS".
17446 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
17447 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
17448 use new "c" register constraint.
17449 * config/nios2/constraint.md (c): New register constraint
17450 corresponding to IJMP_REGS.
17451
17452 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17453
17454 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
17455 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
17456 define_splits): Delete, revamp, transmogrify into ...
17457 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
17458 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
17459 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
17460 New.
17461
17462 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17463
17464 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
17465 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
17466
17467 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17468
17469 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
17470 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
17471 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
17472 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
17473 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
17474 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
17475 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
17476 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
17477 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
17478 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
17479 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
17480 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
17481 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
17482 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
17483 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
17484 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
17485 and 30 corresponding splitters): Delete.
17486
17487 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17488
17489 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
17490 zero_extract.
17491
17492 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17493
17494 * combine.c (recog_for_combine_1): New function, factored out
17495 from recog_for_combine.
17496 (change_zero_ext): New function.
17497 (recog_for_combine): If recog fails, try again with the pattern
17498 modified by change_zero_ext; if that still fails, restore the
17499 pattern.
17500
17501 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17502
17503 * combine.c (get_undo_marker): New function.
17504 (undo_to_marker): New function, largely factored out from ...
17505 (undo_all): ... this. Adjust.
17506
17507 2015-05-12 Richard Biener <rguenther@suse.de>
17508
17509 PR tree-optimization/66101
17510 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
17511 fixup if we turn a loop exit edge to a fallthru edge.
17512
17513 2015-05-12 Richard Biener <rguenther@suse.de>
17514
17515 PR tree-optimization/37021
17516 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
17517 (SLP_TREE_TWO_OPERATORS): New define.
17518 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
17519 SLP_TREE_TWO_OPERATORS.
17520 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
17521 SLP node.
17522 (vect_build_slp_tree): Adjust.
17523 (vect_analyze_slp_cost_1): Likewise.
17524 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
17525 emitting two vector stmts and mixing the results.
17526
17527 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
17528
17529 * call.c (print_z_candidates): Remove dead code.
17530
17531 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17532
17533 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
17534 and zEC12_simple_fp.
17535 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
17536 to 1.
17537
17538 2015-05-12 Tom de Vries <tom@codesourcery.com>
17539
17540 PR tree-optimization/66010
17541 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
17542 ifn_va_arg.
17543 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
17544 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
17545 va_lists are passed, and remove corresponding handling.
17546 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
17547 do_deref argument to ifn_va_arg.
17548 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
17549 ifn_va_arg.
17550
17551 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17552
17553 PR target/65955
17554 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
17555 REG before taking its REGNO.
17556
17557 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17558
17559 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
17560 rsp->sign_bit_copies and rsp->nonzero_bits into ...
17561 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
17562 present to get more accurate information about the number of sign bit
17563 copies and non zero bits.
17564
17565 2015-05-12 Richard Biener <rguenther@suse.de>
17566
17567 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
17568 do not allow unrolling.
17569
17570 2015-05-11 Richard Henderson <rth@redhat.com>
17571
17572 * config/i386/i386-modes.def (CCP): New.
17573 * config/i386/i386.c (put_condition_code): Handle it.
17574 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
17575
17576 2015-05-11 Richard Henderson <rth@redhat.com>
17577
17578 * target.def (md_asm_clobbers): Replace with...
17579 (md_asm_adjust): this.
17580 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
17581 (TARGET_MD_ASM_ADJUST): New.
17582 * tm.texi: Rebuild.
17583 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
17584 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
17585 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
17586
17587 * cfgexpand.c (check_operand_nalternatives): Accept vector of
17588 constraints instead of lists of outputs and inputs.
17589 (expand_asm_stmt): Save and restore input_location around the
17590 body of the function. Move asm data into vectors instead of
17591 building tree lists. Generate cleanup sequences as needed,
17592 rather than waiting til the end. Use new md_asm_adjust hook.
17593
17594 * config/vxworks.c: Include vec.h before target.h.
17595 * gimple.c: Likewise.
17596 * incpath.c: Likewise.
17597 * mode-switching.c: Likewise.
17598
17599 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
17600 (cris_md_asm_adjust): this.
17601 (TARGET_MD_ASM_CLOBBERS): Remove.
17602 (TARGET_MD_ASM_ADJUST): New.
17603 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
17604 (ix86_md_asm_adjust): this.
17605 (TARGET_MD_ASM_CLOBBERS): Remove.
17606 (TARGET_MD_ASM_ADJUST): New.
17607 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
17608 (mn10300_md_asm_adjust): this.
17609 (TARGET_MD_ASM_CLOBBERS): Remove.
17610 (TARGET_MD_ASM_ADJUST): New.
17611 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
17612 (rs6000_md_asm_adjust): this.
17613 (TARGET_MD_ASM_CLOBBERS): Remove.
17614 (TARGET_MD_ASM_ADJUST): New.
17615 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
17616 (visium_md_asm_adjust): this.
17617 (TARGET_MD_ASM_CLOBBERS): Remove.
17618 (TARGET_MD_ASM_ADJUST): New.
17619
17620 2015-05-11 Richard Henderson <rth@redhat.com>
17621
17622 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
17623 if noutputs is zero.
17624 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
17625
17626 * cfgexpand.c (expand_asm_operands): Merge into...
17627 (expand_asm_stmt): ... here.
17628
17629 * cfgexpand.c (expand_asm_operands): Don't call
17630 resolve_asm_operand_names.
17631 * stmt.c (resolve_asm_operand_names): Clarify block comment.
17632
17633 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
17634
17635 * dwarf2out.c (gen_member_die): Sanity check that we access
17636 TYPE_MAIN_VARIANT for TYPE_METHODS.
17637 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
17638 checking TYPE_METHODS.
17639 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
17640 if non-null.
17641 (build_distinct_type_copy): Clear TYPE_METHODS.
17642 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
17643 (verify_type): Allow TYPE_METHODS to be error_mark_node.
17644 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
17645
17646 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
17647
17648 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
17649 (emit_pattern_before_setloc): Likewise.
17650
17651 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
17652
17653 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
17654 for define_peephole2s.
17655 (get_peephole2_pattern): New function.
17656 (main): Use it. Call validate_pattern.
17657
17658 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17659
17660 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
17661 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
17662 (Last callee saved reg is different for AVR_TINY architecture)
17663
17664 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
17665
17666 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
17667 when looking for memory references.
17668
17669 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
17670
17671 PR target/65753
17672 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
17673 via function pointers.
17674
17675 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
17676
17677 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
17678 indirect call by forcing address into a pseudo with -fno-plt.
17679 * common.opt (flag_plt): New option.
17680 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
17681 ([-fno-plt]): Document.
17682
17683 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
17684
17685 PR bootstrap/66105
17686 * config/rs6000/option-defaults.h: Add space between string literal
17687 and macro name.
17688
17689 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
17690
17691 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
17692 accross ARM targets.
17693
17694 2015-05-11 Christian Bruel <christian.bruel@st.com>
17695
17696 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
17697 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
17698
17699 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
17700
17701 PR rtl-optimization/66076
17702 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
17703 Don't grow the heap array if it is already big enough from a
17704 previous iteration.
17705
17706 2015-05-11 Christian Bruel <christian.bruel@st.com>
17707
17708 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
17709 (is_called_in_ARM_mode): Remove.
17710 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
17711 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
17712 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
17713 arm_declare_function_name.
17714
17715 2015-05-11 Christian Bruel <christian.bruel@st.com>
17716
17717 * config/arm/arm.c (arm_option_override): Reoganized and split into :
17718 (arm_option_params_internal); New function.
17719 (arm_option_check_internal): New function.
17720 (arm_option_override_internal): New function.
17721 (thumb_code, thumb1_code): Remove.
17722 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
17723 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
17724 (thumb_code, thumb1_code): Remove.
17725 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
17726
17727 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
17728
17729 * config/alpha/alpha.c (alpha_emit_set_const_1)
17730 (alpha_emit_set_long_const, alpha_extract_integer)
17731 (alpha_legitimate_constant_p, alpha_split_const_mov)
17732 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
17733 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17734 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
17735 HOST_WIDE_INT_1U.
17736 * config/alpha/predicates.md (mode_mask_operand): Do not match
17737 const_double RTX.
17738 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17739 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
17740 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
17741 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17742 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
17743
17744 2015-05-11 Jakub Jelinek <jakub@redhat.com>
17745
17746 PR target/65780
17747 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
17748 default_binds_local_p_2.
17749 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
17750 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
17751
17752 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17753
17754 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
17755
17756 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17757
17758 Patch by Richard Biener
17759 * coverage.c (coverage_obj_init): Delay building of type variant
17760 until the type is finished.
17761
17762 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17763
17764 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
17765 mismatch between C and C++ type; compoare correctly ARG_TYPES
17766 for non-prototypes and output correctly parameter index for METHOD_TYPE.
17767 (odr_types_equivalent_p): Fix wording of warning about attributes;
17768 it is OK to match prototype and non-prototype.
17769
17770 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17771
17772 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
17773 TYPE_ARG_TYPES list.
17774 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
17775 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
17776
17777 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17778
17779 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
17780 * tree.h (is_lang_specific): Constify.
17781
17782 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
17783
17784 PR tree-optimization/64454
17785 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
17786 Rewrite.
17787
17788 2015-05-08 Jason Merrill <jason@redhat.com>
17789
17790 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
17791 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
17792 config/darwin.h, config/darwin9.h, config/elfos.h,
17793 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
17794 config/microblaze/microblaze.h, config/mips/mips.h,
17795 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
17796 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
17797 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
17798 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
17799 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
17800 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
17801 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
17802 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
17803 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
17804 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
17805 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
17806 between string literal and macro name.
17807
17808 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17809
17810 * jump.c: Change argument types to rtx_insn *.
17811 * rtl.h: Adjust.
17812
17813 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17814
17815 * lra-constraints.c: Change argument type to rtx_insn *.
17816
17817 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17818
17819 * df-problems.c: Change argument type to rtx_insn *.
17820
17821 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17822
17823 * combine.c: Change argument type to rtx_insn *.
17824
17825 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17826
17827 * rtl.h: Adjust.
17828 * rtlanal.c: Change argument type to rtx_insn *.
17829
17830 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17831
17832 * sched-deps.c: Change argument types to rtx_insn *.
17833 * sched-int.h: Adjust.
17834
17835 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17836
17837 * dwarf2cfi.c: Change argument type to rtx_insn *.
17838
17839 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17840
17841 * ira.c (decrease_live_ranges_number): Changetype of local
17842 variable to rtx_insn *.
17843 * recog.c: Change argument types to rtx_insn *.
17844 * recog.h: Adjust.
17845
17846 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17847
17848 * reorg.c: Change argument types to rtx_insn *.
17849
17850 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17851
17852 * ira-color.c: Change argument types to rtx_insn *.
17853 * lra-eliminations.c: Likewise.
17854 * ira.h: Adjust.
17855
17856 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17857
17858 * gcse.c: Change argument types to rtx_insn *.
17859
17860 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17861
17862 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
17863
17864 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17865
17866 * emit-rtl.c (emit_debug_insn_before): Change argument type to
17867 rtx_insn *.
17868 * rtl.h: Adjust.
17869
17870 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17871
17872 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
17873 * rtl.h: Adjust.
17874
17875 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17876
17877 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
17878 * rtl.h: Adjust.
17879
17880 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17881
17882 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
17883 * rtl.h: Adjust.
17884
17885 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17886
17887 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
17888 * rtl.h: Adjust.
17889
17890 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17891
17892 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
17893 to rtx_insn *.
17894 * rtl.h: Adjust.
17895
17896 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17897
17898 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
17899 to rtx_insn *.
17900 * rtl.h: Likewise.
17901
17902 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17903
17904 * except.c (can_nonlocal_goto): Change type of argument to
17905 rtx_insn *.
17906 * rtl.h: Adjust.
17907
17908 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17909
17910 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
17911 * rtl.h: Adjust.
17912
17913 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17914
17915 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
17916 * cfgrtl.c (can_delete_label_p): Adjust.
17917 * rtl.h: likewise.
17918
17919 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17920
17921 * reorg.c (stop_search_p): Change argument to rtx_insn *.
17922
17923 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17924
17925 * except.c (make_reg_eh_region_note): Change argument to
17926 rtx_insn *.
17927 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
17928 * except.h: Adjust.
17929
17930 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17931
17932 * mode-switching.c (commit_mode_sets): Change type of local
17933 variable from rtx to rtx_insn *.
17934
17935 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
17936
17937 * doc/install.texi (--enable-languages): Add missing jit and lto info.
17938 Add ^ to grep command.
17939 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
17940 arg to last gimple_simplify declaration. Add missing gimple_build
17941 declaration for built-in function case with four tree args.
17942
17943 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
17944 Szabolcs Nagy <szabolcs.nagy@arm.com>
17945
17946 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
17947 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
17948 (GNU_USER_DYNAMIC_LINKERN32): Update.
17949
17950 2015-05-08 Richard Biener <rguenther@suse.de>
17951
17952 PR tree-optimization/66036
17953 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17954 Handle strided group loads.
17955 (vect_verify_datarefs_alignment): Likewise.
17956 (vect_enhance_data_refs_alignment): Likewise.
17957 (vect_analyze_group_access): Likewise.
17958 (vect_analyze_data_ref_access): Likewise.
17959 (vect_analyze_data_ref_accesses): Likewise.
17960 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
17961 (vectorizable_load): Likewise.
17962
17963 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
17964
17965 * config/rs6000/rs6000.md: Require operand inequality in one
17966 of the peepholes.
17967
17968 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
17969 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17970
17971 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
17972 from (set ...).
17973 * config/rx/rx.md (movdi, movdf): Likewise.
17974 Likewise for define_peephole2s.
17975
17976 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17977
17978 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
17979 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
17980 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
17981 vtst_u64): Rewrite using gcc vector extensions.
17982
17983 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17984
17985 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
17986 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
17987
17988 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17989
17990 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
17991
17992 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17993
17994 * config/glibc-stdint.h (OPTION_MUSL): Define.
17995 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
17996 Change the definition based on OPTION_MUSL for 64 bit targets.
17997 * config/linux.h (OPTION_MUSL): Redefine.
17998 * config/alpha/linux.h (OPTION_MUSL): Redefine.
17999 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
18000 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
18001
18002 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
18003 Szabolcs Nagy <szabolcs.nagy@arm.com>
18004
18005 * config.gcc (LIBC_MUSL): New tm_defines macro.
18006 * config/linux.h (OPTION_MUSL): Define.
18007 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
18008 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
18009 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18010 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18011 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18012 * config/linux.opt (mmusl): New option.
18013 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
18014 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18015 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18016 * configure: Regenerate.
18017
18018 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
18019 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18020
18021 PR target/48904
18022 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
18023 * config/i386/knetbsd-gnu64.h: New file.
18024
18025 2015-05-08 Marek Polacek <polacek@redhat.com>
18026
18027 PR c/64918
18028 * doc/invoke.texi: Document -Woverride-init-side-effects.
18029
18030 2015-05-07 Marek Polacek <polacek@redhat.com>
18031
18032 PR c/65179
18033 * doc/invoke.texi: Document -Wshift-negative-value.
18034
18035 2015-05-06 Aditya Kumar <hiraditya@msn.com>
18036
18037 * gcov-tool.c (do_merge): Refactore to remove int ret.
18038 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
18039 !type == FUNC to type != FUNC.
18040 * reload.h (struct target_reload): Changee to type of
18041 x_spill_indirect_levels from bool to unsigned char.
18042
18043 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
18044
18045 * rtl.h (always_void_p): New function.
18046 * gengenrtl.c (always_void_p): Likewise.
18047 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
18048 with code foo are always VOIDmode.
18049 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
18050 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
18051 compare-elim.c, config/aarch64/aarch64.c,
18052 config/aarch64/aarch64.md, config/alpha/alpha.c,
18053 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
18054 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
18055 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
18056 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18057 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
18058 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
18059 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
18060 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
18061 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
18062 config/ia64/vect.md, config/iq2000/iq2000.c,
18063 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
18064 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
18065 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
18066 config/mep/mep.c, config/microblaze/microblaze.c,
18067 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
18068 config/mn10300/mn10300.c, config/msp430/msp430.c,
18069 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
18070 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
18071 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
18072 config/rs6000/altivec.md, config/rs6000/rs6000.c,
18073 config/rs6000/rs6000.md, config/rs6000/vector.md,
18074 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
18075 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
18076 config/sh/sh.md, config/sh/sh_treg_combine.cc,
18077 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
18078 config/spu/spu.md, config/stormy16/stormy16.c,
18079 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
18080 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
18081 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
18082 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
18083 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
18084 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
18085 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
18086 var-tracking.c: Update calls accordingly.
18087
18088 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18089
18090 PR middle-end/192
18091 PR middle-end/54303
18092 * varasm.c (function_mergeable_rodata_prefix): New function.
18093 (mergeable_string_section): Use it.
18094 (mergeable_constant_section): Use it.
18095
18096 2015-05-07 Jeff Law <law@redhat.com>
18097
18098 PR target/39726
18099 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18100 simplifier to narrow arithmetic.
18101 * generic-match-head.c: (types_match, single_use): New functions.
18102 * gimple-match-head.c: (types_match, single_use): New functions.
18103
18104 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18105
18106 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
18107 rtx type.
18108
18109 2015-05-07 Richard Biener <rguenther@suse.de>
18110
18111 PR tree-optimization/66002
18112 * passes.def: Schedule another pass_merge_phi after ifcombine, right
18113 before phiopt.
18114
18115 2015-05-07 Marek Polacek <polacek@redhat.com>
18116 Martin Uecker <uecker@eecs.berkeley.edu>
18117
18118 * doc/invoke.texi: Document -fsanitize=bounds-strict.
18119 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
18120 into SANITIZE_NONDEFAULT.
18121 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
18122
18123 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
18124
18125 PR target/66015
18126 * config/alpha/alpha.c (alpha_override_options_after_change): New.
18127 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
18128 (alpha_override_options): Move align_loops, align_jumps and
18129 align_functions handling into alpha_override_options_after_change.
18130
18131 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
18132 Chris Jones <chrisj@nvidia.com>
18133 Joshua Conner <jconner@nvidia.com>
18134
18135 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
18136 linking of crtfastmath.o.
18137 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
18138
18139 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18140
18141 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
18142 (cstore<mode>4_unsigned_imm): New expander.
18143 (cstore<mode>4): Remove empty constraint strings. Use the new
18144 expanders.
18145
18146 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
18147
18148 PR target/64208
18149 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
18150 alternatives.
18151
18152 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
18153
18154 * config/aarch64/geniterators.sh: Use standard BRE in sed.
18155
18156 2015-05-06 Alan Modra <amodra@gmail.com>
18157
18158 PR target/66033
18159 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
18160 (UNSPEC_NOP): Define.
18161 (reload_vsx_from_gpr<mode>): Add missing DONE.
18162 (reload_gpr_from_vsx<mode>): Likewise.
18163 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
18164 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
18165
18166 2015-05-06 Christian Bruel <christian.bruel@st.com>
18167
18168 PR target/66015
18169 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
18170 align_jumps, align_functions into aarch64_override_options_after_change.
18171
18172 2015-05-06 Richard Biener <rguenther@suse.de>
18173
18174 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
18175 vect_transform_slp_perm_load to check if we support a permutation
18176 for basic-block vectorization.
18177
18178 2015-05-06 Nick Clifton <nickc@redhat.com>
18179
18180 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
18181 used, even if it is not being used as a frame pointer.
18182
18183 2015-05-05 Jason Merrill <jason@redhat.com>
18184
18185 * dwarf2out.c (gen_member_die): Don't emit anything for an
18186 anonymous class constructor.
18187
18188 2015-05-05 David Malcolm <dmalcolm@redhat.com>
18189
18190 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
18191 that it reflects the block structure.
18192 (afdo_propagate_edge): Likewise.
18193 (afdo_calculate_branch_prob): Likewise.
18194 (afdo_annotate_cfg): Likewise.
18195 * cfgcleanup.c (equal_different_set_p): Likewise.
18196 (try_crossjump_to_edge): Likewise.
18197 * cgraph.c (cgraph_node::verify_node): Likewise.
18198 * cgraphunit.c (expand_all_functions): Likewise.
18199 * config/i386/i386.c (ix86_expand_copysign): Likewise.
18200 (exact_dependency_1): Likewise.
18201 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
18202 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
18203 * gensupport.c (process_define_subst): Likewise.
18204 * lto-wrapper.c (merge_and_complain): Likewise.
18205 * tree-if-conv.c (if_convertible_bb_p): Likewise.
18206 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
18207 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
18208 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18209 * tree-vect-loop.c (vectorizable_reduction): Likewise.
18210 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
18211 * tree-vect-stmts.c (vectorizable_shift): Likewise.
18212 * tree-vrp.c (vrp_finalize): Likewise.
18213 * tree.c (variably_modified_type_p): Likewise.
18214
18215 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
18216
18217 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
18218 on darwin12 and later.
18219 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
18220 file to pass -rdynamic on darwin12 and later.
18221 * config/darwin.opt (rdynamic): Add.
18222
18223 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18224
18225 * doc/extend.texi (C Extensions): Update menu for moved Variable
18226 Attributes and Type Attributes sections.
18227
18228 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18229
18230 PR target/65990
18231 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
18232 if rep_8byte stringop strategy was specified for 32-bit target.
18233
18234 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
18235
18236 PR target/65915
18237 * config/i386/i386.md (vector convert to float spltiter): Check for
18238 xmm16+, when splitting scalar float conversion.
18239 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
18240
18241 2015-05-05 Nick Clifton <nickc@redhat.com>
18242
18243 * config/msp430/msp430-opts.h (enum msp430_regions): New.
18244 * config/msp430/msp430.c (msp430_override_options): Complain if
18245 -mcode-region or -mdata-region is used on a non MSP430X.
18246 (msp430_section_attr): New function. Checks lower, upper and
18247 either attributes.
18248 (msp430_attribute_table): Add lower, upper and either.
18249 (gen_prefix): New function. Generates a prefix for a section
18250 name.
18251 (msp430_select_section): New function - handles the choice of
18252 section for an object. Takes into account memory region
18253 attributes and options.
18254 (msp430_function_section): Use gen_prefix.
18255 (TARGET_SECTION_TYPE_FLAGS): Define.
18256 (msp430_section_type_flags): New function.
18257 (TARGET_ASM_UNIQUE_SECTION): Define.
18258 (msp430_unique_section): New function.
18259 (msp430_output_aligned_decl_common): New function.
18260 (msp430_do_not_relax_short_jumps): New function.
18261 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
18262 Define.
18263 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18264 * config/msp430/msp430-protos.h
18265 (msp430_do_not_relax_short_jumps): New prototype.
18266 (msp430_output_aligned_decl_common): New prototype.
18267 * config/msp430/msp430.md (length): New attribute.
18268 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
18269 then use a long code sequence for short jumps.
18270 * config/msp430/msp430.opt (mcode-region): New.
18271 (mdata-region): New.
18272 * doc/invoke.texi: Document new options.
18273 * doc/extend.texi: Document new attributes.
18274
18275 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
18276
18277 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
18278 (tune_params): Add field branch_costs.
18279 (aarch64_branch_cost): Declare.
18280 * gcc/config/aarch64.c (generic_branch_cost): New.
18281 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
18282 (cortexa53_tunings): Likewise.
18283 (cortexa57_tunings): Likewise.
18284 (thunderx_tunings): Likewise.
18285 (xgene1_tunings): Likewise.
18286 (aarch64_branch_cost): Define.
18287 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
18288
18289 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18290
18291 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
18292 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
18293 * config/i386/i386.md: Ditto.
18294 * config/i386/winnt.c: Ditto.
18295
18296 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
18297
18298 * doc/extend.texi (__atomic Builtins): Move implementation details
18299 to the end of the description, rewrite opening paragraphs, state
18300 difference with __sync builtins, state C11/C++11 assumptions,
18301 weaken itemized descriptions, add explanation of memory model
18302 behaviour, expand description of compare-exchange, simplify text.
18303
18304 2015-05-05 Renlin Li <renlin.li@arm.com>
18305
18306 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
18307
18308 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
18309
18310 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
18311 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18312 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
18313 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18314 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
18315 * configure: Regenerate.
18316 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
18317 * doc/install.texi (aarch64*-*-*): Document new
18318 --enable-fix-cortex-a53-843419 option.
18319 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
18320 and -mno-fix-cortex-a53-843419 options.
18321
18322 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18323
18324 PR target/65871
18325 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
18326
18327 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
18328
18329 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
18330 fix overactive TYPE_MIN_VALUE check and add FIXME for type
18331 compatibility problems.
18332
18333 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
18334
18335 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
18336 constraints.
18337 (cbranchsi4_reg): New.
18338 * config/microblaze/microblaze.c
18339 (microblaze_expand_conditional_branch_reg): New.
18340 * config/microblaze/microblaze-protos.h
18341 (microblaze_expand_conditional_branch_reg): New prototype.
18342
18343 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
18344
18345 * config/microblaze/microblaze.md (peephole2): New.
18346
18347 2015-05-04 Jeff Law <law@redhat.com>
18348
18349 Revert:
18350 2015-05-04 Jeff Law <law@redhat.com>
18351
18352 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18353 simplifier to narrow arithmetic.
18354 * generic-match-head.c: (types_match, single_use): New functions.
18355 * gimple-match-head.c: (types_match, single_use): New functions.
18356
18357 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
18358
18359 PR target/65987
18360 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
18361 (split_branches): Likewise.
18362
18363 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
18364
18365 * common.opt (fdelete-null-pointer-checks): Init to -1.
18366 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
18367 override flag_delete_null_pointer_checks default.
18368 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
18369 behavior re address zero. Better document target-specific behavior.
18370 (-fisolate-errneous-paths-dereference): Mention relationship to
18371 -fdelete-null-pointer-checks.
18372
18373 2015-05-04 Jakub Jelinek <jakub@redhat.com>
18374
18375 PR tree-optimization/65984
18376 * ubsan.c: Include tree-cfg.h.
18377 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
18378 stmt_could_throw_p test, rename can_throw variable to ends_bb.
18379
18380 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
18381
18382 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
18383 to CONST_DOUBLE_P predicate.
18384 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
18385 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
18386 allow only operands that satisfy standard_sse_constant_p predicate.
18387 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
18388 to CONST_DOUBLE_P predicate.
18389
18390 2015-05-04 Jeff Law <law@redhat.com>
18391
18392 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18393 simplifier to narrow arithmetic.
18394 * generic-match-head.c: (types_match, single_use): New functions.
18395 * gimple-match-head.c: (types_match, single_use): New functions.
18396
18397 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
18398
18399 * config/arm/arm.c: Restore bootstrap.
18400
18401 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
18402
18403 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
18404 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
18405 as CONST_WIDE_INT, not CONST_DOUBLE.
18406 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
18407 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
18408 (ix86_find_base_term): Do not check for CONST_DOUBLE.
18409 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
18410 (ix86_build_signbit_mask): Rewrite using wide ints.
18411 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
18412 (ix86_rtx_costs): Handle CONST_WIDE_INT.
18413 (find_constant): Ditto.
18414 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
18415 using gen_int_mode.
18416 * config/i386/predicates.md (x86_64_immediate_operand)
18417 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18418 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
18419 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18420 (const0_operand): Also match const_wide_int.
18421 (constm1_operand): Ditto.
18422 (const1_operand): Ditto.
18423
18424 2015-05-04 Richard Biener <rguenther@suse.de>
18425
18426 PR tree-optimization/65965
18427 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
18428 store groups at gaps.
18429
18430 2015-05-04 Richard Biener <rguenther@suse.de>
18431
18432 PR tree-optimization/65935
18433 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
18434 then make sure to apply that swapping to the IL.
18435
18436 2015-05-04 Jakub Jelinek <jakub@redhat.com>
18437
18438 * Makefile.in (PATCHLEVEL_c): New variable.
18439 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
18440 expand the same way as if DEVPHASE_c was non-empty.
18441
18442 2015-05-04 Kai Tietz <ktietz@redhat.com>
18443
18444 PR target/65559
18445 * lto-wrapper.c (run_gcc): Open filename
18446 in binary-mode.
18447
18448 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
18449
18450 * doc/extend.texi (Variable Attributes, Type Attributes): Move
18451 sections up in file, to immediately after the Function Attributes
18452 section.
18453
18454 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
18455
18456 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
18457
18458 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18459
18460 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
18461 (insert_partition_copy_on_edge): Adjust.
18462 (insert_rtx_to_part_on_edge): Likewise.
18463 (insert_part_to_rtx_on_edge): Likewise.
18464
18465 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18466
18467 * function.c (set_return_jump_label): Change type of argument to
18468 rtx_insn *.
18469 * function.h (set_return_jump_label): Adjust.
18470
18471 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18472
18473 * reload.h (struct reg_equivs_t): Change type of init to
18474 rtx_insn *.
18475 * ira.c (fix_reg_equiv_init): Adjust.
18476 * reload1.c (eliminate_regs_1): Likewise.
18477 (init_eliminable_invariants): Likewise.
18478
18479 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18480
18481 * cselib.c (fp_setter_insn): Take a rtx_insn *.
18482 * cselib.h (fp_setter_insn): Adjust.
18483
18484 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18485
18486 * recog.c (struct validate_replace_src_data): Change type of
18487 insn field to rtx_insn *.
18488 (validate_replace_src_group): Change type of argument to rtx_insn *.
18489 * recog.h (validate_replace_src_group): Adjust.
18490
18491 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18492
18493 * haifa-sched.c: Change the type of some variables to rtx_insn *.
18494 * sched-deps.c: Likewise.
18495 * sched-int.h: Likewise.
18496 * sched-rgn.c: Likewise.
18497 * sel-sched.c: Likewise.
18498
18499 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18500
18501 to rtx_insn *.
18502 * config/i386/i386.c: Change the type of some arguments to
18503 rtx_insn *.
18504 * config/arm/arm.c: Likewise.
18505
18506 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18507
18508 * lra-constraints.c: Change type of some arguments to rtx_insn *.
18509
18510 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18511
18512 * regcprop.c (kill_autoinc_value): Change type of argument to
18513 rtx_insn *.
18514
18515 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18516
18517 * genrecog.c (print_subroutine): Adjust.
18518 * recog.c (get_bool_attr_mask_uncached): Likewise.
18519 * recog.h (struct recog_data_d): Change the type of insn to
18520 rtx_insn *.
18521
18522 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18523
18524 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
18525
18526 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18527
18528 * df-problems.c (df_set_note): Change type of argument to
18529 rtx_insn *.
18530
18531 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18532
18533 * builtins.c (expand_builtin_trap): Change type of local
18534 variable to rtx_insn *.
18535 (add_sched_insns_for_speculation): Likewise.
18536 (ix86_emit_save_regs): Likewise.
18537 (get_scratch_register_on_entry): Likewise.
18538 (ix86_emit_restore_reg_using_pop): Likewise.
18539 (ix86_emit_leave): Likewise.
18540 (ix86_emit_restore_regs_using_mov): Likewise.
18541 (ix86_expand_epilogue): Likewise.
18542 Likewise.
18543 (rl78_alloc_physical_registers_umul): Likewise.
18544 * cselib.c (discard_useless_locs): Likewise.
18545 (cselib_invalidate_regno): Likewise.
18546 (cselib_invalidate_mem): Likewise.
18547 * function.c (expand_function_start): Likewise.
18548 (emit_use_return_register_into_block): Likewise.
18549 * gcse.c: Likewise.
18550 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
18551 * ifcvt.c (noce_get_alt_condition): Likewise.
18552 * loop-doloop.c (doloop_condition_get): Likewise.
18553 * lra-constraints.c (inherit_in_ebb): Likewise.
18554 * modulo-sched.c (sms_schedule_by_order): Likewise.
18555 * recog.c (next_insn_tests_no_inequality): Likewise.
18556 * reorg.c (emit_delay_sequence): Likewise.
18557 (update_reg_dead_notes): Likewise.
18558 (fix_reg_dead_note): Likewise.
18559 (fill_slots_from_thread): Likewise.
18560 (delete_computation): Likewise.
18561
18562 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
18563
18564 * doc/extend.texi (Variable Attributes): Add menu and proper
18565 @nodes to subsections. Move Microsoft Windows attributes to
18566 their own subsection.
18567 (Type Attributes): Reorganize introduction to remove duplicate
18568 list of attributes. Add menu and proper @nodes to subsections.
18569 Alphabetize the main table of common attributes.
18570
18571 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
18572
18573 * match.pd: New simplification patterns.
18574 (x + (x & 1)) -> ((x + 1) & ~1)
18575 (x & ~(x & y)) -> ((x & ~y))
18576 (x | ~(x | y)) -> ((x | ~y))
18577
18578 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18579
18580 * target.def (attribute_table): Mention that struct attribute_spec
18581 is defined in tree-core.h rather than tree.h
18582 * doc/tm.texi: Regenerate.
18583
18584 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
18585
18586 * genrecog.c (test): Rename to rtx_test. Update rest of file
18587 accordingly.
18588
18589 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
18590
18591 PR translation/65959
18592 * params.h (DEFPARAM): Rename msgid to nocmsgid.
18593
18594 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18595
18596 * gcc/config/aarch64/aarch64-protos.h (tune_params):
18597 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
18598 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
18599 Return value depending on target.
18600 (generic_tunings): Initialize new target settings.
18601 (cortexa53_tunings): Likewise.
18602 (cortexa57_tunings): Likewise.
18603 (thunderx_tunings): Likewise.
18604 (xgene1_tunings): Likewise.
18605
18606 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18607
18608 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
18609 Make Cortex-A53 shift costs more accurate.
18610
18611 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18612
18613 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
18614 UNSIGNED_FLOAT.
18615
18616 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18617
18618 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
18619 Calculate cost of op0 and op1 in PLUS and MINUS cases.
18620
18621 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18622
18623 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18624 Add cost of op0 in the compare-with-fpzero case.
18625
18626 2015-04-30 David Malcolm <dmalcolm@redhat.com>
18627
18628 * builtins.c (fold_builtin_1): Remove spurious second
18629 semicolon.
18630 * cgraph.h (symtab_node::get_availability): Likewise.
18631 * opts.c (common_handle_option): Remove spurious second semicolon.
18632 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18633 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
18634
18635 2015-04-30 Caroline Tice <cmtice@google.com>
18636
18637 PR gcov-profile/65929
18638 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
18639 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
18640 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
18641 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
18642 * doc/tm.texi: Regenerate.
18643 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
18644 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
18645 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
18646 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
18647
18648 2015-04-30 Marek Polacek <polacek@redhat.com>
18649
18650 * varasm.c (handle_cache_entry): Fix logic.
18651
18652 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18653
18654 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
18655 (*extrsi5_insn_uxtw_alt): Likewise.
18656 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
18657 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
18658 operations.
18659
18660 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18661
18662 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
18663 fabd in ABS case.
18664
18665 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18666
18667 * config/aarch64/aarch64.md
18668 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
18669 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
18670 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
18671 appropriately. Handle alternative EON form.
18672
18673 2015-04-30 Renlin Li <renlin.li@arm.com>
18674
18675 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
18676 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
18677
18678 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
18679
18680 PR ipa/65873
18681 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
18682 -fstrict-aliasing boundaries.
18683
18684 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18685
18686 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
18687 and [SU]MNEGL patterns.
18688
18689 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18690
18691 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
18692 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
18693 combined arithmetic-shift ops. Properly handle all shift and extend
18694 operations that can occur in combination with PLUS/MINUS.
18695 Rename maybe_fma to compound_p.
18696 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
18697 arithmetic and shift operations.
18698
18699 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18700
18701 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
18702 rather than arith_shift cost when costing ADD/MINUS of an
18703 extended value.
18704
18705 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
18706
18707 PR lto/65948
18708 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
18709 to itself.
18710
18711 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
18712
18713 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
18714 are for the same position.
18715
18716 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
18717
18718 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
18719 vectorize_loops.
18720 (vectorize_loops): Use it.
18721
18722 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18723
18724 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
18725 for aggregate types.
18726 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
18727 type to be non_ODR.
18728 * tree.c (need_assembler_name_p): Compute mangled name for
18729 non-fundamental types and integer types.
18730
18731 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
18732
18733 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
18734 manual swaps.
18735 * expr.c (expand_expr_real_2): Likewise.
18736
18737 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18738
18739 * tree.c (build_common_builtin_nodes): Do not build
18740 __builtin_alloca_with_align as equivalent of library alloca.
18741
18742 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18743
18744 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
18745 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
18746 bugus variants.
18747 * tree.c: Include print-tree.h and ipa-utils.h
18748 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
18749 (free_lang_data_in_cgraph): Call verify_type.
18750 (verify_type_variant): New function.
18751 (verify_type): New function.
18752 * tree.h (verify_type): Declare.
18753
18754 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
18755
18756 * config/mips/mips-cpus.def: (mips4): Change default processor
18757 from PROCESSOR_R8000 to PROCESSOR_R10000.
18758
18759 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
18760
18761 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
18762 la/jalr instead of jal.
18763
18764 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
18765
18766 PR target/65871
18767 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
18768 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
18769 (setcc+movzbl peephole2): Check also clobbered reg.
18770 (setcc+andl peephole2): Ditto.
18771
18772 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
18773
18774 PR libgomp/65099
18775 * config/nvptx/mkoffload.c (target_ilp32): New variable.
18776 (main): Set it depending on "-foffload-abi=[...]".
18777 (compile_native, main): Use it to pass "-m32" or "-m64" to the
18778 compiler.
18779
18780 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
18781
18782 PR target/65770
18783 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
18784 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
18785 Flip lane index back at assembly time for bigendian.
18786
18787 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
18788
18789 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
18790 * gimplify.c (gimplify_omp_workshare): Use it.
18791
18792 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18793
18794 * Makefile.in (build/genrecog.o): Depend on inchash.h.
18795 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
18796 build/inchash.o
18797 * genrecog.c: Rewrite most of the code except for the third page.
18798
18799 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18800
18801 * inchash.h, inchash.c: Include bconfig.h for build objects.
18802 * Makefile.in (build/inchash.o): New rule.
18803
18804 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
18805
18806 PR target/65924
18807 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
18808 number in type attribute expression.
18809
18810 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18811
18812 * loop-iv.c (canon_condition): Generalize to all types of integer
18813 constant.
18814
18815 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
18816
18817 * gimple-walk.c: Prune duplicate or unneeded includes.
18818 (walk_gimple_asm): Only call parse_input_constraint or
18819 parse_output_constraint if their findings are used.
18820 Honour parse_input_constraint and parse_output_constraint
18821 result.
18822
18823 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
18824
18825 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
18826
18827 2015-04-29 Tom de Vries <tom@codesourcery.com>
18828
18829 PR tree-optimization/65893
18830 * passes.def (pass_all_optimizations): Move pass_stdarg to after
18831 pass_dce.
18832
18833 2015-04-29 Richard Biener <rguenther@suse.de>
18834
18835 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18836 compute GROUP_SIZE for basic-block SLP.
18837 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
18838 take into account gaps.
18839 (vect_get_mask_element): Properly reject references to previous
18840 vectors.
18841 (vect_transform_slp_perm_load): Likewise.
18842
18843 2015-04-29 Christian Bruel <christian.bruel@st.com>
18844
18845 PR target/64835
18846 * config/i386/i386.c (ix86_default_align): New function.
18847 (ix86_override_options_after_change): Call ix86_default_align.
18848 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
18849 (ix86_override_options_after_change): New function.
18850
18851 2015-04-28 Jeff Law <law@redhat.com>
18852
18853 * tree-ssa-dom.c (record_equality); Fix comment typos.
18854
18855 2015-04-28 Tom de Vries <tom@codesourcery.com>
18856
18857 PR tree-optimization/65887
18858 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
18859
18860 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
18861
18862 * doc/extend.texi (Declaring Attributes of Functions): Split into
18863 subsections by target. Alphabetize the table of common attributes.
18864 Rewrite some of the introductory text to reflect the new structure.
18865 Update some cross-references to point to the new subsections.
18866 (Attribute Syntax): Put paragraph about "__" naming here. Remove
18867 duplicate copies in the discussion of function, label, and type
18868 attributes.
18869
18870 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
18871
18872 PR bootstrap/65910
18873 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
18874
18875 2015-04-28 Jason Merrill <jason@redhat.com>
18876
18877 PR c++/65734
18878 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
18879 (finalize_type_size): Respect TYPE_USER_ALIGN.
18880 (layout_type) [ARRAY_TYPE]: Likewise.
18881
18882 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
18883
18884 * config/arm/arm.md (*arm_movt): Fix type attribute.
18885 (*cmpsi_shiftsi): Likewise.
18886 (*cmpsi_shiftsi_swp): Likewise.
18887 (*movsicc_insn): Likewise.
18888 (*cond_move): Likewise.
18889 (*if_plus_move): Likewise.
18890 (*if_move_plus): Likewise.
18891 (*if_arith_move): Likewise.
18892 (*if_move_arith): Likewise.
18893 (*if_shift_move): Likewise.
18894 (*if_move_shift): Likewise.
18895 (*arm_movtas_ze): Likewise.
18896 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
18897 redundancy and type attribute.
18898 (*thumb2_movsi_insn): Fix type attribute.
18899 (*thumb2_addsi_short): Likewise.
18900 (thumb2_addsi3_compare0): Likewise.
18901 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
18902 attributes accordingly.
18903
18904 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
18905
18906 PR other/65911
18907 * function.c (pad_to_arg_alignment): Add parentheses.
18908
18909 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
18910
18911 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
18912 libgcc/config/frv/elf-lib.h.
18913
18914 2015-04-28 Tom de Vries <tom@codesourcery.com>
18915
18916 * tree-call-cdce.c: Fix example in header comment.
18917
18918 2015-04-28 Richard Biener <rguenther@suse.de>
18919
18920 PR tree-optimization/62283
18921 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
18922 fails fatally and we are vectorizing a basic-block simply
18923 cause the child to be constructed piecewise.
18924 (vect_analyze_slp_cost_1): Adjust.
18925 (vect_detect_hybrid_slp_stmts): Likewise.
18926 (vect_bb_slp_scalar_cost): Likewise.
18927 (vect_get_constant_vectors): For piecewise constructed
18928 constants place them after the last def.
18929 (vect_get_slp_defs): Adjust.
18930 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
18931 externals for basic-block vectorization.
18932
18933 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18934
18935 PR target/63503
18936 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
18937 aarch64-*-*.
18938 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
18939 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
18940 (AARCH64_TUNE_FMA_STEERING): Likewise.
18941 * config/aarch64/aarch64-cores.def: Set
18942 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
18943 FMUL/FMADD instructions.
18944 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
18945 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
18946 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
18947 * config/aarch64/cortex-a57-fma-steering.h: New file.
18948 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18949
18950 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
18951
18952 * gensupport.c (std_preds): Add missing codes to address_operand entry.
18953
18954 2015-04-28 Richard Biener <rguenther@suse.de>
18955
18956 PR tree-optimization/65851
18957 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
18958 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
18959 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
18960 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
18961 (ccp_visit_phi_node): Adjust.
18962 (evaluate_stmt): For simplifications to SSA names return its
18963 lattice value if that isn't VARYING. Return immediately when
18964 simplified to a constant.
18965 (visit_assignment): Adjust.
18966 (ccp_visit_stmt): Likewise.
18967
18968 2015-04-28 Tom de Vries <tom@codesourcery.com>
18969
18970 PR tree-optimization/65818
18971 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
18972 evaluated.
18973
18974 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18975
18976 * calls.c (save_fixed_argument_area): Don't check
18977 ARGS_GROW_DOWNWARD with the preprocessor.
18978 (restore_fixed_argument_area): Likewise.
18979 (mem_overlaps_already_clobbered_arg_p): Likewise.
18980 (check_sibcall_argument_overlap): Likewise.
18981 (expand_call): Likewise.
18982 (emit_library_call_value_1): Likewise.
18983 (store_one_arg): Likewise.
18984 * function.c (assign_parms): Likewise.
18985 (locate_and_pad_parm): Likewise.
18986 (pad_to_arg_alignment): Likewise.
18987 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
18988
18989 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18990
18991 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
18992 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
18993 * calls.c (save_fixed_argument_area): Don't chekc if
18994 ARGS_GROW_DOWNWARD is defined.
18995 (restore_fixed_argument_area): Likewise.
18996 (mem_overlaps_already_clobbered_arg_p): Likewise.
18997 (check_sibcall_argument_overlap): Likewise.
18998 (expand_call): Likewise.
18999 (emit_library_call_value_1): Likewise.
19000 (store_one_arg): Likewise.
19001 * function.c (assign_parms): Likewise.
19002 (locate_and_pad_parm): Likewise.
19003 (pad_to_arg_alignment): Likewise.
19004 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19005
19006 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19007
19008 * defaults.h (gen_epilogue): New function.
19009 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
19010 defined.
19011 * cfgrtl.c (cfg_layout_finalize): Likewise.
19012 * df-scan.c: Likewise.
19013 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19014 (reposition_prologue_and_epilogue_notes): Likewise.
19015 * reorg.c (find_end_label): Likewise.
19016 * toplev.c: Likewise.
19017
19018 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19019
19020 * bb-reorder.c (HAVE_return): Don't check if its undefined.
19021 * defaults.h (gen_simple_return): New function.
19022 (gen_simple_return): Likewise.
19023 (HAVE_return): Add default definition to false.
19024 (HAVE_simple_return): Likewise.
19025 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
19026 HAVE_return and HAVE_simple_return are defined.
19027 * function.c (gen_return_pattern): Likewise.
19028 (convert_jumps_to_returns): Likewise.
19029 (thread_prologue_and_epilogue_insns): Likewise.
19030 * reorg.c (find_end_label): Likewise.
19031 (dbr_schedule): Likewise.
19032 * shrink-wrap.c: Likewise.
19033 * shrink-wrap.h: Likewise.
19034
19035 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19036
19037 * defaults.h (EPILOGUE_USES): Add default definition of false.
19038 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
19039 * resource.c (init_resource_info): Likewise.
19040
19041 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19042
19043 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
19044 to false.
19045 * dwarf2out.c (field_byte_offset): REmove check if
19046 PCC_BITFIELD_TYPE_MATTERS is defined.
19047 * stor-layout.c (layout_decl): Likewise.
19048 (update_alignment_for_field): Likewise.
19049 (place_field): Likewise.
19050
19051 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19052
19053 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
19054 true.
19055 * regrename.c (check_new_reg_p): Remove check if
19056 HARD_REGNO_RENAME_OK is defined.
19057 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
19058
19059 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19060
19061 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
19062 * cse.c (fold_rtx): Likewise.
19063 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
19064 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
19065 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
19066 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
19067 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
19068 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
19069 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
19070 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
19071 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
19072 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
19073 * Likewise.
19074 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
19075 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
19076 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
19077 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
19078 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
19079 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
19080 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
19081 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
19082 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
19083 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
19084 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
19085 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
19086 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
19087 * doc/tm.texi: Regenerate.
19088 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
19089 either true or false.
19090
19091 2015-04-27 Jeff Law <law@redhat.com>
19092
19093 PR tree-optimization/65217
19094 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
19095 of them has a single use, make sure it is the LHS of the implied
19096 copy.
19097
19098 2015-04-28 Alan Modra <amodra@gmail.com>
19099
19100 PR target/65810
19101 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
19102 (offsettable_ok_by_alignment): Use minimum of decl and toc
19103 pointer alignment. Replace dead code with assertion.
19104 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
19105 case if size exceeds toc pointer alignment.
19106 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
19107 (rs6000_emit_move): Likewise.
19108 * configure.ac: Add linker toc pointer alignment check.
19109 * configure: Regenerate.
19110 * config.in: Regenerate.
19111
19112 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
19113
19114 * config.gcc: Add h8300-*-linux.
19115 * config/h8300/linux.h: New.
19116 * config/h8300/t-linux: New.
19117 * config/h8300/h8300.c (h8300_option_override): Normal mode
19118 is not supported for h8300-*-linux.
19119 (h8300_file_start): Target priority change.
19120 (get_shift_alg): Likewise.
19121 (h8300_shift_need_scratch_p): Likewise.
19122 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
19123 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
19124
19125 2015-04-27 Caroline Tice <cmtice@google.com>
19126
19127 * final.c (final_scan_insn): Output cold_function_name as function
19128 type.
19129 * varasm.c (cold_function_name): Make global.
19130 (assemble_start_function): Re-set cold_function_name.
19131 (assemble_end_function): Output cold partition size.
19132 * varasm.h (cold_function_name): Declare global.
19133
19134 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
19135
19136 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
19137 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
19138 constraint.
19139 (*movxi_internal_avx512f): Ditto.
19140 (define_split): Check for xmm16+, when splitting scalar float_extend.
19141 (*extendsfdf2_mixed): Use "v" constraint.
19142 (define_split): Check for xmm16+, when splitting scalar float_truncate.
19143 (*truncdfsf_fast_sse): Use "v" constraint.
19144 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
19145 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
19146 (define_peephole2): Check for xmm16+, when converting scalar
19147 float_truncate.
19148 (define_peephole2): Check for xmm16+, when converting scalar
19149 float_extend.
19150 (*fop_<mode>_comm_mixed): Use "v" constraint.
19151 (*fop_<mode>_comm_sse): Ditto.
19152 (*fop_<mode>_1_mixed): Ditto.
19153 (*sqrt<mode>2_sse): Ditto.
19154 (*ieee_s<ieee_maxmin><mode>3): Ditto.
19155
19156 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19157
19158 * combine.c (simplify_if_then_else): Use std::swap instead
19159 of manually swapping.
19160 (known_cond): Likewise.
19161 (simplify_comparison): Likewise.
19162
19163 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
19164
19165 PR target/64579
19166 * config/rs6000/htm.md: Remove all define_expands.
19167 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
19168 UNSPECV_HTM_TABORTWCI): Remove.
19169 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
19170 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
19171 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
19172 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
19173 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
19174 tabortwci_internal): Remove define_insns.
19175 (tabort<wd>c, tabort<wd>ci): New define_insns.
19176 (tabort): Use gpc_reg_operand.
19177 (tcheck): Remove operand.
19178 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
19179 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
19180 expected value.
19181 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
19182 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
19183 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
19184 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
19185 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
19186 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
19187 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
19188 (tcheck): Remove builtin argument.
19189 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
19190 not TARGET_64BIT.
19191 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
19192 tabortdc and tabortdci builtins when not in 64-bit mode.
19193 Modify code to handle the loss of the HTM define_expands.
19194 Emit code to copy the CR register to TARGET.
19195 (htm_init_builtins): Modify code to handle the loss of the HTM
19196 define_expands.
19197 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
19198 (RS6000_BTC_64BIT): Likewise.
19199 (RS6000_BTC_CR): New macro.
19200 * doc/extend.texi: Update documentation for htm builtins.
19201
19202 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19203
19204 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
19205 of manually swapping.
19206 (simplify_associative_operation): Likewise.
19207 (simplify_binary_operation): Likewise.
19208 (simplify_plus_minus): Likewise.
19209 (simplify_relational_operation): Likewise.
19210 (simplify_ternary_operation): Likewise.
19211
19212 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
19213
19214 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
19215 (xs_hi_nonmemory_operand): Remove error.
19216 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
19217 general_operand rather than xs_hi_general_operand.
19218
19219 2015-04-27 Richard Biener <rguenther@suse.de>
19220
19221 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
19222 (record_equivalences_from_stmt): Valueize rhs.
19223 (record_equality): Canonicalize x and y order via
19224 tree_swap_operands_p. Do not swap operands for same loop depth.
19225
19226 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
19227
19228 PR target/65296
19229 PR target/65895
19230 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
19231 Add hint how to use own spec file.
19232
19233 2015-04-27 Jakub Jelinek <jakub@redhat.com>
19234
19235 PR tree-optimization/65875
19236 * tree-vrp.c (update_value_range): If in is_new case setting
19237 old_vr to VR_VARYING, also set new_vr to it. Remove
19238 old_vr->type == VR_VARYING test.
19239 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
19240 SSA_PROP_INTERESTING if update_value_range returned true,
19241 but new range is VR_VARYING.
19242
19243 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
19244
19245 * combine.c (sign_extend_short_imm): New.
19246 (set_nonzero_bits_and_sign_copies): Use above new function for sign
19247 extension of src short immediate.
19248 (reg_nonzero_bits_for_combine): Likewise for tem.
19249
19250 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
19251
19252 * stor-layout.c (self_referential_component_ref_p): New predicate.
19253 (copy_self_referential_tree_r): Use it.
19254 (self_referential_size): Punt for simple operations directly involving
19255 self-referential component references.
19256 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
19257
19258 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
19259
19260 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
19261
19262 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
19263
19264 * vec.h (vec): Make splice arguments const. Update definitions
19265 accordingly.
19266
19267 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
19268
19269 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
19270 alternatives.
19271
19272 2015-04-26 Tom de Vries <tom@codesourcery.com>
19273
19274 PR tree-optimization/65826
19275 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
19276
19277 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
19278
19279 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
19280 (*madd3<mode>): Ditto.
19281 (*msub4<mode>): Ditto.
19282 (*msub3<mode>): Ditto.
19283 (*nmadd4<mode>): Ditto.
19284 (*nmadd3<mode>): Ditto.
19285 (*nmadd4<mode>_fastmath): Ditto.
19286 (*nmadd3<mode>_fastmath): Ditto.
19287 (*nmsub4<mode>): Ditto.
19288 (*nmsub3<mode>): Ditto.
19289 (*nmsub4<mode>_fastmath): Ditto.
19290 (*nmsub3<mode>_fastmath): Ditto.
19291
19292 2015-04-24 Jason Merrill <jason@redhat.com>
19293
19294 PR c++/50800
19295 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
19296 down when building TYPE_CANONICAL.
19297 (build_pointer_type_for_mode): Likewise.
19298
19299 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
19300
19301 * genrecog.c (validate_pattern): Check matching constraint refers
19302 to a lower numbered operand.
19303
19304 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19305
19306 PR target/65849
19307 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
19308 save to independent variables use the Save attribute. This will
19309 allow these options to be modified with the #pragma/attribute
19310 target support.
19311 (-mallow-movmisalign): Likewise.
19312 (-mallow-df-permute): Likewise.
19313 (-msched-groups): Likewise.
19314 (-malways-hint): Likewise.
19315 (-malign-branch-targets): Likewise.
19316 (-mvectorize-builtins): Likewise.
19317 (-msave-toc-indirect): Likewise.
19318
19319 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
19320 can be set via the #pragma/attribute target support.
19321 (rs6000_opt_vars): Likewise.
19322 (rs6000_inner_target_options): If VSX was set, also set
19323 -mno-avoid-indexed-addresses.
19324
19325 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19326
19327 * config/arm/iterators.md (shiftable_ops): Rename to...
19328 (SHIFTABLE_OPS): ... This. Update use in comments.
19329 (ior_xor): Rename to...
19330 (IOR_XOR): ... This.
19331 (vqh_ops): Rename to...
19332 (VQH_OPS): ... This.
19333 (vqhs_ops): Rename to...
19334 (VQHS_OPS): ... This.
19335 (rshifts): Rename to...
19336 (RSHIFTS): ... This.
19337 (returns): Rename to...
19338 (RETURNS): ... This.
19339 * config/arm/arm.md: Update uses of the above.
19340 * config/arm/neon.md: Likewise.
19341
19342 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19343
19344 * config.host (case ${host}): Add aarch64*-*-linux case.
19345 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
19346 fields to all the cores.
19347 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
19348 Add MCPU_MTUNE_NATIVE_SPECS.
19349 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
19350 field to all extensions.
19351 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
19352 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
19353 Adjust definition of AARCH64_OPT_EXTENSION.
19354 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
19355 (MCPU_MTUNE_NATIVE_SPECS): Define.
19356 * config/aarch64/driver-aarch64.c: New file.
19357 * config/aarch64/x-arch64: New file.
19358 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
19359 -mtune and -march.
19360
19361 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19362 Wei Mi <wmi@google.com>
19363
19364 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
19365 * config/i386/i386.c (extract_base_offset_in_addr): New function.
19366 (ix86_operands_ok_for_move_multiple): Ditto.
19367 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
19368 (movlpd/movhpd to movupd peephole2): Ditto.
19369
19370 2015-04-24 Marek Polacek <polacek@redhat.com>
19371
19372 PR c/61534
19373 * input.h (from_macro_expansion_at): Define.
19374
19375 PR c/63357
19376 * doc/invoke.texi: Update description of -Wlogical-op.
19377
19378 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
19379
19380 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
19381 ternary operator in fprintf and harmonize spacing.
19382
19383 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19384
19385 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
19386 Mark operand1 commutative.
19387
19388 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19389
19390 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
19391 input operands in memory.
19392 (*vec_concatv2si_sse4_1): Ditto.
19393 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
19394 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
19395 register_operand.
19396 (vec_extract_hi_v32hi): Ditto.
19397 (vec_extract_hi_v64hi): Ditto.
19398 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
19399
19400 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
19401 Steven Bosscher <steven@gcc.gnu.org>
19402
19403 PR rtl-optimization/34503
19404 * cprop.c (cprop_reg_p): New.
19405 (hash_scan_set): Use above function to check if register can be
19406 propagated.
19407 (find_avail_set): Return up to two sets, one whose source is a
19408 register and one whose source is a constant. Sets are returned in an
19409 array passed as parameter rather than as a return value.
19410 (cprop_insn): Use a do while loop rather than a goto. Try each of the
19411 sets returned by find_avail_set, starting with the one whose source is
19412 a constant. Use cprop_reg_p to check if register can be propagated.
19413 (do_local_cprop): Use cprop_reg_p to check if register can be
19414 propagated.
19415 (implicit_set_cond_p): Likewise.
19416
19417 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19418
19419 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
19420 (sem_function::equals): IGNORED_NODES parameter is now unused;
19421 update call of equals_private.
19422 (sem_function::equals_private): Do not call equals_wpa; skip
19423 gimple body matching if there is no body.
19424 (sem_function::init): Add logic to hash tthunk info.
19425 (sem_function::parse): Also parse thunks.
19426 * ipa-icf.h (equals_private): Update declaration.
19427
19428 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19429
19430 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
19431 asterisk from name so this can be generated directly.
19432 (*altivec_stvx_<mode>_internal): Likewise.
19433 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
19434 that this is never called during or after reload/lra.
19435 (rs6000_frame_related): Remove split_reg
19436 argument and logic that references it.
19437 (emit_frame_save): Remove last parameter from call to
19438 rs6000_frame_related.
19439 (rs6000_emit_prologue): Remove last parameter from eight calls to
19440 rs6000_frame_related. Force generation of stvx instruction for
19441 Altivec register saves. Remove split_reg handling, which is no
19442 longer needed.
19443 (rs6000_emit_epilogue): Force generation of lvx instruction for
19444 Altivec register restores.
19445
19446 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19447
19448 * config/rs6000/rs6000.opt (mcrypto): Change option description to
19449 match category changes in ISA 2.07B.
19450
19451 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19452
19453 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
19454 iterators.
19455 (cmp_op, cmp_type): New code attributes.
19456 (NEON_VCMP, NEON_VACMP): New int iterators.
19457 (cmp_op_unsp): New int attribute.
19458 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
19459 (neon_vceq<mode>): Delete.
19460 (neon_vc<cmp_op><mode>_insn): New pattern.
19461 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
19462 (neon_vcgeu<mode>): Delete.
19463 (neon_vcle<mode>): Likewise.
19464 (neon_vclt<mode>: Likewise.
19465 (neon_vcage<mode>): Likewise.
19466 (neon_vcagt<mode>): Likewise.
19467 (neon_vca<cmp_op><mode>): New define_expand.
19468 (neon_vca<cmp_op><mode>_insn): New pattern.
19469 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
19470
19471 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19472
19473 * tree.h (attribute_value_equal): Declare.
19474 * tree.c (attribute_value_equal): Export.
19475
19476 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19477
19478 * ipa-icf.c (sem_item::compare_attributes): New function.
19479 (sem_item::compare_referenced_symbol_properties): Compare variable
19480 attributes.
19481 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
19482 (sem_function::param_used_p): New function.
19483 (sem_function::equals_wpa): Fix attribute comparsion; match
19484 parameter type codes; do not compare paremter flags when
19485 they are not used; compare edge flags; compare indirect calls.
19486 (sem_item::update_hash_by_addr_refs): Hash reference type.
19487 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
19488 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
19489 reference use type.
19490 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
19491 * ipa-icf.h (compare_attributes, param_used_p): Declare.
19492
19493 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19494
19495 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
19496 cleanup.
19497 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
19498 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
19499 (sem_item::compare_referenced_symbol_properties): New.
19500 (sem_item::hash_referenced_symbol_properties): New.
19501 (sem_item::compare_cgraph_references): Rename to ...
19502 (sem_item::compare_symbol_references): ... this one; use
19503 compare_referenced_symbol_properties.
19504 (sem_function::equals_wpa): Do not compare
19505 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
19506 DECL_IS_OPERATOR_NEW; compare pointer sizes.
19507 (sem_item::update_hash_by_addr_refs): Call
19508 hash_referenced_symbol_properties.
19509 (sem_item::update_hash_by_local_refs): Cleanup.
19510 (sem_function::merge): Do not mix up symbol properties.
19511 (sem_variable::equals_wpa): Use compare_symbol_references.
19512 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
19513 (sem_item::hash_referenced_symbol_properties): New.
19514 (sem_item::compare_symbol_references): New.
19515 (sem_item::compare_cgraph_references): Remove.
19516
19517 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
19518
19519 PR target/26702
19520 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
19521 Emit size of local.
19522
19523 2015-04-23 Nick Clifton <nickc@redhat.com>
19524
19525 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
19526 ATTRIBUTE_UNUSED to x parameter.
19527 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
19528
19529 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19530
19531 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
19532 TARGET_CRYPTO to TARGET_P8_VECTOR>
19533 (crypto_vpermxor_<mode>): Likewise.
19534 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
19535 (BU_CRYPTO_3A): Likewise.
19536 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
19537 (BU_CRYPTO_OVERLOAD_3A): New #define.
19538 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
19539 (VPMSUMH): Likewise.
19540 (VPMSUMW): Likewise.
19541 (VPMSUMD): Likewise.
19542 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
19543 (VPERMXOR_V4SI): Likewise.
19544 (VPERMXOR_V8HI): Likewise.
19545 (VPERMXOR_V16QI): Likewise.
19546 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
19547 BU_CRYPTO_OVERLOAD_2A.
19548 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
19549 BU_CRYPTO_OVERLOAD_3A.
19550 * config/rs6000/rs6000.opt (mcrypto): Change description of
19551 option.
19552
19553 2015-04-23 Richard Biener <rguenther@suse.de>
19554
19555 * passes.def: Remove copy propagation passes run directly after CCP.
19556 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
19557 SSA names.
19558 (ccp_visit_phi_node): Rework to handle first executable edge
19559 specially.
19560
19561 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
19562
19563 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
19564 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
19565 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
19566 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
19567 (thumb_legimitimize_reload_address): Remove.
19568 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
19569 Remove.
19570 (thumb_legimitimize_reload_address): Remove.
19571
19572 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19573
19574 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
19575
19576 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19577
19578 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
19579 MAX_LDM_STM_OPS.
19580 (store_multiple): Likewise.
19581
19582 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19583
19584 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
19585 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
19586 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
19587 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
19588 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
19589 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
19590 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
19591 Specify issue_rate value.
19592 (arm_issue_rate): Look up issue rate from tuning structs. Remove
19593 large switch statement.
19594 (arm_marvell_pj4_tune): New struct.
19595 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
19596 struct.
19597
19598 2015-04-23 Richard Biener <rguenther@suse.de>
19599
19600 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
19601 (vect_find_last_store_in_slp_instance): Rename to ...
19602 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
19603 (vect_analyze_slp_cost_1): Use vector_load for constant defs
19604 and vec_construct for external defs when estimating prologue cost.
19605 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
19606 Compute costs here only when vectorizing loops.
19607 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
19608 have been determined.
19609 (vect_schedule_slp_instance): Simplify vectorized code placement
19610 and prepare for in-BB external defs.
19611 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
19612 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
19613 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
19614 guard.
19615 (vect_model_load_cost): Likewise.
19616 (vectorizable_store): Instead add it here.
19617 (vectorizable_load): Likewise.
19618 (vect_is_simple_use): Dump def type textually.
19619
19620 2015-04-23 Richard Biener <rguenther@suse.de>
19621
19622 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
19623 * cfgloop.c (verify_loop_structure): Verify the root loop node.
19624 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
19625 instead of get_eh_region_from_lp_number.
19626 * loop-init.c (fix_loop_structure): If we removed a loop, reset
19627 the SCEV cache.
19628
19629 2015-04-23 Anton Blanchard <anton@samba.org>
19630
19631 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
19632 need for -mprofile-kernel to save LR to stack.
19633
19634 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19635
19636 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
19637 adjustments.
19638 (insn_is_swappable_p): Return 1 for a convert from double to
19639 single precision when all of its uses are splats of BE element
19640 zero.
19641
19642 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19643
19644 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
19645
19646 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19647
19648 PR target/65456
19649 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
19650 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
19651 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
19652 option.
19653 (rs6000_builtin_mask_for_load): Return 0 for targets with
19654 efficient unaligned VSX accesses so that the vectorizer will use
19655 direct unaligned loads.
19656 (rs6000_builtin_support_vector_misalignment): Always return true
19657 for targets with efficient unaligned VSX accesses.
19658 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
19659 stores on targets with efficient unaligned VSX accesses is almost
19660 always the same as the cost of an aligned load or store, so model
19661 it that way.
19662 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
19663 unaligned vectors if we have efficient unaligned VSX accesses.
19664 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
19665 undocumented option.
19666
19667 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19668
19669 Revert:
19670 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
19671
19672 * config.gcc (LIBC_MUSL): New tm_defines macro.
19673 * config/linux.h (OPTION_MUSL): Define.
19674 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19675 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19676 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19677
19678 * config/linux.opt (mmusl): New option.
19679 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19680 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19681
19682 * configure: Regenerate.
19683
19684 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
19685
19686 * config.gcc (LIBC_MUSL): New tm_defines macro.
19687 * config/linux.h (OPTION_MUSL): Define.
19688 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19689 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19690 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19691
19692 * config/linux.opt (mmusl): New option.
19693 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19694 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19695
19696 * configure: Regenerate.
19697
19698 2015-04-22 Yury Gribov <y.gribov@samsung.com>
19699
19700 * doc/invoke.texi (-fsanitize-sections): Update description.
19701 * asan.c (set_sanitized_sections): Parse incoming arg.
19702 (section_sanitized_p): Support wildcards.
19703
19704 2015-04-22 Tom de Vries <tom@codesourcery.com>
19705
19706 PR tree-optimization/65823
19707 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
19708 equality between ap_copy and ap.
19709
19710 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19711
19712 PR target/47098
19713 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
19714
19715 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19716
19717 PR target/47122
19718 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
19719
19720 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19721
19722 PR target/55144
19723 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
19724 remove already contained t-files.
19725
19726 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19727
19728 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
19729 Remove unneeded forward declarations.
19730 (suitable_for_tail_call_opt_p): Commentary typo fix.
19731
19732 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19733
19734 * varasm.c (emit_bss): Remove redundant guard.
19735
19736 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19737
19738 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
19739
19740 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19741
19742 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
19743
19744 2015-04-22 Hale Wang <hale.wang@arm.com>
19745 Terry Guo <terry.guo@arm.com>
19746
19747 PR rtl-optimization/64818
19748 * combine.c (can_combine_p): Don't combine user-specified
19749 register if it is in an asm input.
19750
19751 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
19752
19753 PR ipa/65076
19754 * passes.def (early_optimizations): Add pass_dse.
19755
19756 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19757
19758 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
19759 * reorg.c (redundant_insn): Remove ifdef
19760 INSN_REFERENCES_ARE_DELAYED.
19761 * resource.c (mark_referenced_resources): Likewise.
19762
19763 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19764
19765 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
19766 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
19767 * resource.c (mark_set_resources): Likewise.
19768
19769 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19770
19771 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
19772 * cfgcleanup.c (flow_find_cross_jump): Likewise.
19773 (flow_find_head_matching_sequence): Likewise.
19774 (try_head_merge_bb): Likewise.
19775 * combine.c (can_combine_p): Likewise.
19776 (try_combine): Likewise.
19777 (distribute_notes): Likewise.
19778 * df-problems.c (can_move_insns_across): Likewise.
19779 * final.c (final): Likewise.
19780 * gcse.c (insert_insn_end_basic_block): Likewise.
19781 * ira.c (find_moveable_pseudos): Likewise.
19782 * reorg.c (try_merge_delay_insns): Likewise.
19783 (fill_simple_delay_slots): Likewise.
19784 (fill_slots_from_thread): Likewise.
19785 * sched-deps.c (sched_analyze_2): Likewise.
19786
19787 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19788
19789 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
19790 PIC_OFFSET_TABLE_REGNUM.
19791
19792 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19793
19794 * alias.c (init_alias_target): Remove ifdef
19795 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
19796 * df-scan.c (df_insn_refs_collect): Likewise.
19797 (df_get_regular_block_artificial_uses): Likewise.
19798 (df_get_eh_block_artificial_uses): Likewise.
19799 (df_get_entry_block_def_set): Likewise.
19800 (df_get_exit_block_use_set): Likewise.
19801 * emit-rtl.c (gen_rtx_REG): Likewise.
19802 * ira.c (ira_setup_eliminable_regset): Likewise.
19803 * reginfo.c (init_reg_sets_1): Likewise.
19804 * regrename.c (rename_chains): Likewise.
19805 * reload1.c (reload): Likewise.
19806 (eliminate_regs_in_insn): Likewise.
19807 * resource.c (mark_referenced_resources): Likewise.
19808 (init_resource_info): Likewise.
19809
19810 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19811
19812 * defaults.h (MASK_RETURN_ADDR): New definition.
19813 * except.c (expand_builtin_extract_return_addr): Remove ifdef
19814 MASK_RETURN_ADDR.
19815
19816 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19817
19818 * defaults.h (RETURN_ADDR_OFFSET): New definition.
19819 * except.c (expand_builtin_extract_return_addr): Remove ifdef
19820 RETURN_ADDR_OFFSET.
19821 (expand_builtin_frob_return_addr): Likewise.
19822
19823 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19824
19825 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
19826 (try_redirect_by_replacing_jump): Likewise.
19827 (rtl_tidy_fallthru_edge): Likewise.
19828 * combine.c (insn_a_feeds_b): Likewise.
19829 (find_split_point): Likewise.
19830 (simplify_set): Likewise.
19831 * cprop.c (cprop_jump): Likewise.
19832 * cse.c (cse_extended_basic_block): Likewise.
19833 * df-problems.c (can_move_insns_across): Likewise.
19834 * function.c (emit_use_return_register_into_block): Likewise.
19835 * haifa-sched.c (sched_init): Likewise.
19836 * ira.c (find_moveable_pseudos): Likewise.
19837 * loop-invariant.c (find_invariant_insn): Likewise.
19838 * lra-constraints.c (curr_insn_transform): Likewise.
19839 * postreload.c (reload_combine_recognize_const_pattern):
19840 * Likewise.
19841 * reload.c (find_reloads): Likewise.
19842 * reorg.c (delete_scheduled_jump): Likewise.
19843 (steal_delay_list_from_target): Likewise.
19844 (steal_delay_list_from_fallthrough): Likewise.
19845 (redundant_insn): Likewise.
19846 (fill_simple_delay_slots): Likewise.
19847 (fill_slots_from_thread): Likewise.
19848 (delete_computation): Likewise.
19849 * sched-rgn.c (add_branch_dependences): Likewise.
19850
19851 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19852
19853 * genconfig.c (main): Always define HAVE_cc0.
19854 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
19855 HAVE_cc0.
19856 * cfgcleanup.c (flow_find_cross_jump): Likewise.
19857 (flow_find_head_matching_sequence): Likewise.
19858 (try_head_merge_bb): Likewise.
19859 * cfgrtl.c (rtl_merge_blocks): Likewise.
19860 (try_redirect_by_replacing_jump): Likewise.
19861 (rtl_tidy_fallthru_edge): Likewise.
19862 * combine.c (do_SUBST_MODE): Likewise.
19863 (insn_a_feeds_b): Likewise.
19864 (combine_instructions): Likewise.
19865 (can_combine_p): Likewise.
19866 (try_combine): Likewise.
19867 (find_split_point): Likewise.
19868 (subst): Likewise.
19869 (simplify_set): Likewise.
19870 (distribute_notes): Likewise.
19871 * cprop.c (cprop_jump): Likewise.
19872 * cse.c (cse_extended_basic_block): Likewise.
19873 * df-problems.c (can_move_insns_across): Likewise.
19874 * final.c (final): Likewise.
19875 (final_scan_insn): Likewise.
19876 * function.c (emit_use_return_register_into_block): Likewise.
19877 * gcse.c (insert_insn_end_basic_block): Likewise.
19878 * haifa-sched.c (sched_init): Likewise.
19879 * ira.c (find_moveable_pseudos): Likewise.
19880 * loop-invariant.c (find_invariant_insn): Likewise.
19881 * lra-constraints.c (curr_insn_transform): Likewise.
19882 * optabs.c (prepare_cmp_insn): Likewise.
19883 * postreload.c (reload_combine_recognize_const_pattern):
19884 * Likewise.
19885 * reload.c (find_reloads): Likewise.
19886 (find_reloads_address_1): Likewise.
19887 * reorg.c (delete_scheduled_jump): Likewise.
19888 (steal_delay_list_from_target): Likewise.
19889 (steal_delay_list_from_fallthrough): Likewise.
19890 (try_merge_delay_insns): Likewise.
19891 (redundant_insn): Likewise.
19892 (fill_simple_delay_slots): Likewise.
19893 (fill_slots_from_thread): Likewise.
19894 (delete_computation): Likewise.
19895 (relax_delay_slots): Likewise.
19896 * sched-deps.c (sched_analyze_2): Likewise.
19897 * sched-rgn.c (add_branch_dependences): Likewise.
19898
19899 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19900
19901 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
19902 that is trivially ded on non cc0 targets.
19903 (simplify_set): Likewise.
19904 (mark_used_regs_combine): Likewise.
19905 * cse.c (new_basic_block): Likewise.
19906 (fold_rtx): Likewise.
19907 (cse_insn): Likewise.
19908 (cse_extended_basic_block): Likewise.
19909 (set_live_p): Likewise.
19910 * rtlanal.c (canonicalize_condition): Likewise.
19911 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19912
19913 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19914
19915 * conditions.h: Define macros even if HAVE_cc0 is undefined.
19916 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
19917 * final.c: Likewise.
19918 * jump.c: Likewise.
19919 * recog.c: Likewise.
19920 * recog.h: Declare functions even when HAVE_cc0 is undefined.
19921 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
19922
19923 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19924
19925 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
19926 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
19927 * builtins.c (expand_builtin): Remove check if
19928 EH_RETURN_DATA_REGNO is defined.
19929 * df-scan.c (df_bb_refs_collect): Likewise.
19930 (df_get_exit_block_use_set): Likewise.
19931 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
19932 * ira-lives.c (process_bb_node_lives): Likewise.
19933 * lra-lives.c (process_bb_lives): Likewise.
19934
19935 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
19936
19937 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
19938 FIRST_PSEUDO_REG): New.
19939 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
19940 (ARG_POINTER_REGNUM): Define to ARGP_REG.
19941 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
19942 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
19943 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
19944 (FIRST_INT_REG): New.
19945 (LAST_INT_REG): New.
19946 (FIRST_*_REG): Define using *_REG.
19947 (LAST_*_REG): Ditto.
19948 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
19949 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
19950 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
19951
19952 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19953
19954 * expmed.c: (synth_mult): Only assume overlapping
19955 shift with previous steps in alg_sub_t_m2 case.
19956
19957 2015-04-21 Richard Biener <rguenther@suse.de>
19958
19959 PR tree-optimization/65650
19960 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
19961 transitions involving copies.
19962 (set_lattice_value): Adjust for copy lattice state.
19963 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
19964 if that doesn't dominate the merge point.
19965 (bit_value_unop): Adjust what we treat as varying mask.
19966 (bit_value_binop): Likewise.
19967 (bit_value_assume_aligned): Likewise.
19968 (evaluate_stmt): When we simplified to a SSA name record a copy
19969 instead of dropping to varying.
19970 (visit_assignment): Simplify.
19971
19972 * gimple-match.h (gimple_simplify): Add another callback.
19973 * gimple-fold.c (fold_stmt_1): Adjust caller.
19974 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
19975 for the 2nd callback.
19976 * gimple-match-head.c (gimple_simplify): Add a callback that is
19977 used to valueize the stmt operands and use it that way.
19978
19979 2015-04-21 Richard Biener <rguenther@suse.de>
19980
19981 PR tree-optimization/65788
19982 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
19983
19984 2015-04-21 Richard Biener <rguenther@suse.de>
19985
19986 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
19987 vec_construct cost by vec_stmt_cost.
19988
19989 2015-04-21 Richard Biener <rguenther@suse.de>
19990
19991 * cfghooks.h (create_basic_block): Replace with two overloads
19992 for RTL and GIMPLE.
19993 (split_block): Likewise.
19994 * cfghooks.c (split_block): Rename to ...
19995 (split_block_1): ... this.
19996 (split_block): Add two type-safe overloads for RTL and GIMPLE.
19997 (split_block_after_labels): Call split_block_1.
19998 (create_basic_block): Rename to ...
19999 (create_basic_block_1): ... this.
20000 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
20001 (create_empty_bb): Call create_basic_block_1.
20002 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
20003 split_block_after_labels.
20004 * omp-low.c (expand_parallel_call): Likewise.
20005 (expand_omp_target): Likewise.
20006 (simd_clone_adjust): Likewise.
20007 * tree-chkp.c (chkp_get_entry_block): Likewise.
20008 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
20009 create_basic_block overload.
20010 (cgraph_node::expand_thunk): Likewise.
20011 * tree-cfg.c (make_blocks): Likewise.
20012 (handle_abnormal_edges): Likewise.
20013 * tree-inline.c (copy_bb): Likewise.
20014
20015 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20016
20017 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
20018 New pattern.
20019 (*xor_one_cmplsidi3_ze): Likewise.
20020
20021 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
20022
20023 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
20024 use df_remove_problem rather than manually removing problems, leaving
20025 holes in df->problems_in_order[].
20026
20027 2015-04-21 Tom de Vries <tom@codesourcery.com>
20028
20029 PR tree-optimization/65802
20030 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
20031
20032 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20033
20034 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
20035 Increase to 128.
20036 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
20037 at '.'. Assert that there's enough space for everything.
20038
20039 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
20040
20041 PR tree-optimization/64950
20042 Revert:
20043 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
20044
20045 PR target/41089
20046 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
20047 as volatile.
20048
20049 2015-04-20 Shiva Chen <shiva0217@gmail.com>
20050
20051 PR rtl-optimization/64916
20052 * cfgcleanup.c (values_equal_p): New function.
20053 (can_replace_by): Use it.
20054
20055 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
20056
20057 PR c++/65801
20058 * doc/invoke.texi ([-Wnarrowing]): Update.
20059
20060 2015-04-20 Jeff Law <law@redhat.com>
20061
20062 PR tree-optimization/65658
20063 * tree-ssa-threadupdate.c (redirection_block_p): Remove
20064 redundant test for GIMPLE_ASSIGN in last change.
20065
20066 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
20067
20068 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
20069 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
20070 (legitimize_tls_address): Ditto.
20071 (ix86_expand_move): Ditto.
20072 (ix86_expand_binary_operator): Remove reload_in_progress checks.
20073 (ix86_expand_unary_operator): Ditto.
20074 * config/i386/predicates.md (index_register_operand): Ditto.
20075
20076 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
20077
20078 * reorg.c (try_merge_delay_insns): Improve correctness checking
20079 for targets with multiple delay slots.
20080
20081 2015-04-20 Jeff Law <law@redhat.com>
20082
20083 PR tree-optimization/65658
20084 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
20085 statements too.
20086
20087 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
20088
20089 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
20090 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
20091 Delete.
20092
20093 2015-04-20 Jakub Jelinek <jakub@redhat.com>
20094
20095 PR debug/65807
20096 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
20097
20098 2015-04-20 Richard Biener <rguenther@suse.de>
20099
20100 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
20101 * gimple-fold.c (gimple_build_valueize): New function.
20102 (gimple_build): Always use gimple_build_valueize as valueize hook.
20103
20104 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
20105
20106 PR target/64134
20107 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
20108 and overwrite variable parts if <= 1/2 the elements are variable.
20109
20110 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
20111
20112 PR rtl-optimization/65805
20113 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
20114 Don't use difference of offset and previous offset if
20115 update_sp_offset is non-zero.
20116 (eliminate_regs_in_insn): Ditto.
20117 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
20118 lra_eliminate_regs_1 call.
20119 * lra-constraints.c (get_equiv_with_elimination): Ditto.
20120
20121 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
20122
20123 * hash-table.h: Remove version of hash_table that stored value_type *.
20124 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
20125 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
20126 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
20127 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
20128 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
20129 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
20130 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20131 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
20132 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
20133 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
20134 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
20135 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
20136 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
20137 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20138 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
20139 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
20140
20141 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20142 Jakub Jelinek <jakub@redhat.com>
20143
20144 PR target/65787
20145 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
20146 subsequent SH_NONE operand does not overwrite an existing *special
20147 value.
20148 (adjust_extract): Handle case where a vec_extract operation is
20149 wrapped in a PARALLEL.
20150
20151 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
20152
20153 PR target/65780
20154 * config/i386/i386.c (ix86_binds_local_p): Define only if
20155 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
20156
20157 2015-04-17 Jeff Law <law@redhat.com>
20158
20159 PR tree-optimization/47679
20160 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
20161 * tree-ssa-scopedtables.c: New file.
20162 * tree-ssa-scopedtables.h: New file.
20163 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
20164 (const_and_copies): Change name/type.
20165 (record_const_or_copy): Move into tree-ssa-scopedtables.c
20166 (record_const_or_copy_1): Similarly.
20167 (restore_vars_to_original_value): Similarly.
20168 (pass_dominator::execute): Create and destroy const_and_copies table.
20169 (thread_across_edge): Update passing of const_and_copies.
20170 (record_temporary_equivalence): Use method calls rather than
20171 manipulating const_and_copies directly.
20172 (record_equality, cprop_into_successor_phis): Similarly.
20173 (dom_opt_dom_walker::before_dom_children): Similarly.
20174 (dom_opt_dom_walker::after_dom_children): Similarly.
20175 (eliminate_redundant_computations): Similarly.
20176 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
20177 (record_temporary_equivalence): Likewise.
20178 (invalidate_equivalences): Likewise.
20179 (record_temporary_equivalences_from_phis): Update due to type
20180 change of const_and_copies. Use method calls rather than
20181 manipulating the stack directly.
20182 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
20183 (thread_through_normal_block, thread_across_edge): Likewise.
20184 (thread_across_edge): Likewise.
20185 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
20186 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
20187 of equiv_stack.
20188 (identify_jump_threads): Update due to type change of equiv_stack.
20189 (finalize_jump_threads): Delete the equiv_stack when complete.
20190
20191 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
20192
20193 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20194 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
20195 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
20196
20197 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
20198
20199 PR target/65535
20200 * config.gcc: Exit with a comment when we do not have a major version
20201 number for the FreeBSD target.
20202
20203 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20204
20205 PR target/65689
20206 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
20207 maybe_allows_mem bitfields.
20208 (maybe_allows_none_start, maybe_allows_none_end,
20209 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
20210 maybe_allows_mem_end): New variables.
20211 (compute_maybe_allows): New function.
20212 (add_constraint): Use it to initialize maybe_allows_reg and
20213 maybe_allows_mem fields.
20214 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
20215 is_address constraints such that those that allow neither mem nor
20216 reg come first, then those that only allow reg but not mem, then
20217 those that only allow mem but not reg, then the rest.
20218 (write_allows_reg_mem_function): New function.
20219 (write_tm_preds_h): Call it.
20220 * stmt.c (parse_output_constraint, parse_input_constraint): Use
20221 the generated insn_extra_constraint_allows_reg_mem function
20222 instead of always setting *allows_reg = true; *allows_mem = true;
20223 for unknown extra constraints.
20224
20225 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
20226
20227 PR target/65780
20228 * output.h (default_binds_local_p_3): New.
20229 * varasm.c (default_binds_local_p_3): Make it public. Take an
20230 argument to indicate if common symbol may be local. If common
20231 symbol may be local, treat non-external variable as defined
20232 locally.
20233 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
20234 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
20235 * config/i386/i386.c (ix86_binds_local_p): New.
20236 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
20237 ix86_binds_local_p.
20238
20239 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20240
20241 PR debug/65771
20242 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
20243 trying mem_loc_descriptor on XEXP (rtl, 0).
20244
20245 2015-04-17 Martin Liska <mliska@suse.cz>
20246
20247 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20248 Release symbol_compare_collection.
20249 * ipa-reference.c: Add TODO that a vector should be released.
20250
20251 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
20252
20253 PR target/65296
20254 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
20255 to new AVR-LibC file layout (bug #44574).
20256 (*avrlibc_devicelib): Same.
20257 * config/avr/avr-mcus.def: Adjust comments.
20258 * config/avr/avr.opt (nodevicelib): Adjust help.
20259
20260 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
20261
20262 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
20263
20264 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
20265
20266 PR c++/64527
20267 * gimplify.c (gimplify_init_constructor): Always emit a
20268 side-effecting constructor.
20269
20270 2015-04-17 Tom de Vries <tom@codesourcery.com>
20271
20272 PR tree-optimization/64950
20273 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
20274 in cfun->curr_properties.
20275 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
20276 if we generate an IFN_VA_ARG.
20277 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
20278 function if PROP_gimple_lva is not set in src function.
20279
20280 2015-04-17 Tom de Vries <tom@codesourcery.com>
20281 Michael Matz <matz@suse.de>
20282
20283 PR tree-optimization/64950
20284 * gimple-iterator.c (update_modified_stmts): Remove static.
20285 * gimple-iterator.h (update_modified_stmts): Declare.
20286 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
20287 (gimplify_va_arg_internal): New function.
20288 (gimplify_va_arg_expr): Use IFN_VA_ARG.
20289 * gimplify.h (gimplify_va_arg_internal): Declare.
20290 * internal-fn.c (expand_VA_ARG): New unreachable function.
20291 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
20292 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
20293 (expand_ifn_va_arg): New function.
20294 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
20295 (pass_stdarg::execute): Call expand_ifn_va_arg.
20296 (pass_data_lower_vaarg): New pass_data.
20297 (pass_lower_vaarg): New gimple_opt_pass.
20298 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
20299 (make_pass_lower_vaarg): New function.
20300 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
20301 properties_required field.
20302 * passes.def (all_passes): Add pass_lower_vaarg.
20303 * tree-pass.h (PROP_gimple_lva): Add define.
20304 (make_pass_lower_vaarg): Declare.
20305
20306 2015-04-17 Tom de Vries <tom@codesourcery.com>
20307
20308 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
20309 * calls.c (call_expr_flags): Same.
20310
20311 2015-04-17 Tom de Vries <tom@codesourcery.com>
20312
20313 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
20314 (pass_stdarg::execute): ... here.
20315
20316 2015-04-17 Tom de Vries <tom@codesourcery.com>
20317 Michael Matz <matz@suse.de>
20318
20319 * tree-cfg.c (make_blocks_1): Factor out of ...
20320 (make_blocks): ... here.
20321 (make_edges_bb): Factor out of ...
20322 (make_edges): ... here.
20323 (gimple_find_sub_bbs): New function.
20324 * tree-cfg.h (gimple_find_sub_bbs): Declare.
20325
20326 2015-04-17 Tom de Vries <tom@codesourcery.com>
20327
20328 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
20329
20330 2015-04-17 Yury Gribov <y.gribov@samsung.com>
20331
20332 * asan.c (set_sanitized_sections): New function.
20333 (section_sanitized_p): Ditto.
20334 (asan_protect_global): Optionally sanitize user-defined
20335 sections.
20336 * asan.h (set_sanitized_sections): Declare new function.
20337 * common.opt (fsanitize-sections): New option.
20338 * doc/invoke.texi (-fsanitize-sections): Document new option.
20339 * opts-global.c (handle_common_deferred_options): Handle new
20340 option.
20341
20342 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20343
20344 PR debug/65771
20345 * dwarf2out.c (loc_list_from_tree): Return NULL
20346 for DEBUG_EXPR_DECL.
20347
20348 2015-04-17 Christian Bruel <christian.bruel@st.com>
20349
20350 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
20351 same attributes.
20352
20353 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20354
20355 * ira-color.c (setup_left_conflict_sizes_p): Do not process
20356 node itself when computing left conflict subnode size.
20357
20358 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
20359
20360 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
20361 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
20362 *fop_<mode>_1_sse using enabled attribute. Use
20363 register_mixssei387nonimm_operand operand 1 predicate. Change
20364 alternative 3 constraints from "x" to "v".
20365
20366 2015-04-16 Richard Biener <rguenther@suse.de>
20367
20368 PR tree-optimization/65774
20369 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
20370 bit-value tracking on.
20371
20372 2015-04-16 Richard Biener <rguenther@suse.de>
20373
20374 PR tree-optimization/64277
20375 * tree-vrp.c (check_array_ref): Fix anti-range handling,
20376 simplify upper bound handling.
20377 (search_for_addr_array): Simplify.
20378 (check_array_bounds): Handle ADDR_EXPRs here.
20379 (check_all_array_refs): Simplify.
20380
20381 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
20382
20383 * config/i386/i386.c (print_reg): Rewrite function.
20384
20385 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20386
20387 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
20388 Invert the condition.
20389
20390 2015-04-16 Renlin Li <renlin.li@arm.com>
20391
20392 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
20393 simplifications for UNSIGNED_FLOAT.
20394
20395 2015-04-16 Nick Clifton <nickc@redhat.com>
20396
20397 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
20398 MUL_UNINIT.
20399 (enum rl78_cpu_type): New.
20400 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
20401 (umulhi3_shift_virt): Remove m constraint from operand 1.
20402 (umulqihi3_virt): Likewise.
20403 * config/rl78/rl78.c (rl78_option_override): Add code to process
20404 -mcpu and -mmul options.
20405 (rl78_alloc_physical_registers): Add code to handle divhi and
20406 divsi valloc attributes.
20407 (set_origin): Likewise.
20408 * config/rl78/rl78.h (RL78_MUL_G14): Define.
20409 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
20410 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
20411 __RL78_Gxx__.
20412 (ASM_SPEC): Pass -mcpu on to assembler.
20413 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
20414 (mulqi3_rl78): Likewise.
20415 (mulhi3_g13): Likewise.
20416 (mulhi3): Generate the G13 or G14 versions of the insn directly.
20417 (mulsi3): Likewise.
20418 (mulhi3_g14): Add clobbers of AX and BC.
20419 (mulsi3_g14): Likewise.
20420 (mulsi3_g13): Likewise.
20421 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
20422 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
20423 * config/rl78/rl78.opt (mmul): Initialise value to
20424 RL78_MUL_UNINIT.
20425 (mcpu): New option.
20426 (m13, m14, mrl78): New option aliases.
20427 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
20428 (MULTILIB_DIRNAMES): Add g13 and g14.
20429 * doc/invoke.texi: Document -mcpu and -mmul options.
20430
20431 2015-04-16 Richard Biener <rguenther@suse.de>
20432
20433 * tree-ssa-ccp.c (likely_value): See if we have operands that
20434 are marked as never simulate again and return CONSTANT in this
20435 case.
20436 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
20437 not have any operands that will be simulated again as
20438 not being simulated again.
20439
20440 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
20441
20442 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
20443 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
20444 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
20445 attribute.
20446 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
20447 enabled attribute.
20448 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
20449 *float<SWI48:mode><MODEF:mode>2_sse.
20450 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
20451 enabled attribute.
20452 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
20453 enabled attribute.
20454
20455 2015-04-15 Tom de Vries <tom@codesourcery.com>
20456
20457 PR other/65487
20458 * function.c (push_dummy_function): New function.
20459 (init_dummy_function_start): Use push_dummy_function.
20460 (pop_dummy_function): New function. Factored out of ...
20461 (expand_dummy_function_end): ... here.
20462 * function.h (push_dummy_function, pop_dummy_function): Declare.
20463 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
20464 pop_dummy_function.
20465 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
20466
20467 2015-04-15 Jeff Law <law@redhat.com>
20468
20469 PR tree-optimization/47679
20470 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
20471 need for forward declaration in upcoming changes.
20472 (record_conditions, record_edge_info): Likewise.
20473
20474 PR rtl-optimization/42522
20475 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
20476 SIGN_EXTRACT as a whole object rather than simplifying
20477 its operand.
20478
20479 2015-04-15 Jakub Jelinek <jakub@redhat.com>
20480
20481 PR ipa/65765
20482 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
20483 and GIMPLE_PREDICT use break instead of return true. For
20484 GIMPLE_EH_DISPATCH, compare dispatch region.
20485
20486 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
20487
20488 * doc/extend.texi (__sync Builtins): Simplify some text. Update
20489 details about the implementation. Make clear preference for
20490 __atomic builtins. Reduce possibility of future change.
20491
20492 2015-04-15 Nick Clifton <nickc@redhat.com>
20493
20494 * config/rx/rx.opt (mallow-string-insns): New option.
20495 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
20496 builtin if string instructions are denied.
20497 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
20498 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
20499 appropriate.
20500 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
20501 * config/rx/rx.md (movstr): Enable pattern only if string
20502 instructions are allowed.
20503 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
20504 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
20505 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
20506 (MULTILIB_DIRNAMES): Add no-strings.
20507 * doc/invoke.texi: Document -mno-allow-string-insns.
20508
20509 2015-04-15 Alan Modra <amodra@gmail.com>
20510
20511 PR target/65408
20512 PR target/58744
20513 PR middle-end/36043
20514 * calls.c (load_register_parameters): Don't load past end of
20515 mem unless suitably aligned.
20516
20517 2015-04-15 Nick Clifton <nickc@redhat.com>
20518
20519 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
20520 decrement instruction as being frame related.
20521 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
20522 based addresses.
20523 If zero extending a function address enclose the operation in
20524 %code(...).
20525 (rl78_preferred_reload_class): New function.
20526 (TARGET_PREFERRED_RELOAD_CLASS): Define.
20527 * config/rl78/rl78.md: Remove useless constraints in expanders.
20528 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
20529 (mulhi3_rl78): Likewise.
20530 (mulhi3_g13): Likewise.
20531 (mulsi3_rl78): Likewise.
20532 (es_addr): Move to before the multiply patterns.
20533
20534 2015-04-15 Alan Modra <amodra@gmail.com>
20535
20536 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
20537 and sequence_stack. Add seq.
20538 (seq_stack): Delete.
20539 * function.c (prepare_function_start): Don't access x_last_insn.
20540 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
20541 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
20542 * emit_rtl.c (start_sequence, push_topmost_sequence,
20543 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
20544 sequence accessors.
20545 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
20546 remove_insn): Likewise. Simplify.
20547 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
20548 and pop_topmost_sequence.
20549 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
20550 debug insns.
20551 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
20552
20553 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
20554
20555 PR target/65729
20556 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
20557 the assertiion.
20558
20559 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
20560
20561 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
20562 (LEGACY_INT_REGNO_P): Ditto.
20563 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
20564 (ANY_MASK_REG_P): Remove.
20565 (BND_REG_P): Rename from ANY_BND_REG_P.
20566 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
20567 legacy integer registers. Do not handle MMX_REG_P in a special way.
20568 Merge 64byte and 32byte SSE handling.
20569
20570 2015-04-14 Nick Clifton <nickc@redhat.com>
20571
20572 * expr.c (expand_assignment): Force an address offset computation
20573 into a register before changing its mode.
20574 (expand_expr_real_1): Likewise.
20575
20576 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
20577
20578 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
20579 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
20580 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
20581 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
20582 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
20583 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
20584 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
20585 and __aarch64_vget_lane_any.
20586
20587 2015-04-14 Jakub Jelinek <jakub@redhat.com>
20588
20589 PR rtl-optimization/65761
20590 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
20591 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
20592
20593 2015-04-14 Richard Biener <rguenther@suse.de>
20594
20595 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
20596 (graphite_can_represent_scev): Use POINTER_TYPE_P.
20597
20598 2015-04-14 Richard Biener <rguenther@suse.de>
20599
20600 PR tree-optimization/65758
20601 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
20602 against -1.
20603 (ccp_lattice_meet): Likewise.
20604 (bit_value_unop): Likewise.
20605 (bit_value_binop): Likewise.
20606 (bit_value_assume_aligned): Likewise.
20607
20608 2015-04-14 Christian Bruel <christian.bruel@st.com>
20609
20610 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
20611 function.
20612
20613 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
20614
20615 PR tree-optimization/63387
20616 * match.pd ((x unord x) | (y unord y) -> (x unord y),
20617 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
20618
20619 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
20620
20621 * config/i386/predicates.md (any_QIreg_operand): Rename from
20622 q_regs_operand. Do not process subregs.
20623 (QIreg_operand): Use QI_REGNO_P predicate.
20624 (ext_QIreg_operand): Ditto.
20625 (ext_register_operand): Ditto.
20626 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
20627 (AND splitters): Ditto.
20628 (AND with -65536 splitter): Add SWI48 mode for operand 0.
20629 (AND with -256 splitter): Use any_QIreg_operand predicate and
20630 SWI248 mode for operand 0.
20631 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
20632 mode for operand 0.
20633 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
20634
20635 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
20636
20637 * doc/plugins.texi: Rewrite first introductory paragraph.
20638
20639 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20640
20641 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
20642 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
20643
20644 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20645
20646 * ipa-profie.c (ipa_profile): Check number of parameters
20647 and possible polymorphic call targets before
20648 devirtualizing.
20649
20650 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
20651
20652 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
20653 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
20654
20655 2015-04-13 Richard Biener <rguenther@suse.de>
20656
20657 PR tree-optimization/65204
20658 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
20659 takens for bit-CCP.
20660
20661 2015-04-13 Richard Biener <rguenther@suse.de>
20662
20663 PR target/65660
20664 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
20665 and cond_not_taken_branch_cost to 4 and 2.
20666 (bdver2_cost): Likewise.
20667 (bdver3_cost): Likewise.
20668 (bdver4_cost): Likewise.
20669
20670 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20671
20672 * hash-table.h (hash_table constructor): Add mem stats.
20673 (alloc_entries): Likewise.
20674
20675 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20676
20677 * ipa-cp.c (ipcp_driver): Relase prev_edge.
20678 * passes.c (execute_one_pass): Only add transform if pass has one.
20679
20680 2015-04-12 Joseph Myers <joseph@codesourcery.com>
20681
20682 * config/i386/i386.c (ix86_option_override_internal): Don't set
20683 -fprefetch-loop-arrays if optimizing for size.
20684
20685 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20686 Gerald Pfeifer <gerald@pfeifer.com>
20687
20688 * doc/contrib.texi (Contributors): Add Martin Jambor and
20689 Michael Matz.
20690
20691 2015-04-12 Jakub Jelinek <jakub@redhat.com>
20692
20693 * BASE-VER: Set to 6.0.0.
20694
20695 PR tree-optimization/65747
20696 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
20697 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
20698
20699 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
20700
20701 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
20702 sentence. Improve grammar.
20703
20704 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
20705
20706 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
20707
20708 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
20709
20710 PR ipa/65743
20711 * ipa-inline-transform.c (speculation_removed): Remove static var.
20712 (check_speculations): New function.
20713 (clone_inlined_nodes): Do not check spculations.
20714 (inline_call): Call check_speculations.
20715 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
20716 consider non-invariants.
20717
20718 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
20719 Martin Liska <mliska@suse.cz>
20720
20721 PR ipa/65722
20722 * ipa-icf.c (sem_item::compare_cgraph_references): function and
20723 variable can not match.
20724 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
20725 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
20726
20727 2015-04-11 Jakub Jelinek <jakub@redhat.com>
20728
20729 PR tree-optimization/65735
20730 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
20731 Remove visited_phis argument, add visited_bbs, avoid recursing into the
20732 same bb rather than just into the same phi node.
20733 (thread_through_normal_block): Adjust caller.
20734
20735 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
20736
20737 * doc/contrib.texi (Contributors): Add Ira Rosen.
20738
20739 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
20740
20741 * gcov.c (find_source): Fix miswording in error message.
20742 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
20743 (ix86_expand_sse_comi_round): Fix typo in error message.
20744
20745 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
20746
20747 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
20748
20749 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
20750
20751 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
20752
20753 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
20754
20755 PR target/65710
20756 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
20757 Print bad_spills_num and insn_pseudos_num.
20758
20759 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20760
20761 PR target/65694
20762 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
20763 when creating +1 values for SImode.
20764
20765 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
20766
20767 PR target/65729
20768 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
20769 assert.
20770
20771 2015-04-10 Jakub Jelinek <jakub@redhat.com>
20772 Iain Sandoe <iain@codesourcery.com>
20773
20774 PR target/65351
20775 * configure: Regenerate.
20776
20777 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
20778
20779 PR target/65671
20780 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
20781
20782 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
20783
20784 * doc/contrib.texi (Contributors): Add John Marino.
20785
20786 2015-04-09 Jakub Jelinek <jakub@redhat.com>
20787
20788 PR tree-optimization/65709
20789 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
20790 TREE_TYPE (TREE_TYPE (t)).
20791
20792 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
20793
20794 PR target/65710
20795 * lra-int.h (lra_bad_spill_regno_start): New.
20796 * lra.c (lra_bad_spill_regno_start): New.
20797 (lra): Set up lra_bad_spill_regno_start. Set up
20798 lra_constraint_new_regno_start unconditionally.
20799 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
20800 spill preferences.
20801
20802 2015-04-09 Marek Polacek <polacek@redhat.com>
20803 Jakub Jelinek <jakub@redhat.com>
20804
20805 PR middle-end/65554
20806 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
20807 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
20808 of STRIP_NOPS.
20809
20810 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
20811
20812 PR rtl-optimization/65693
20813 * combine.c (is_parallel_of_n_reg_sets): Move outside of
20814 #ifndef HAVE_cc0.
20815
20816 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
20817
20818 PR target/65296
20819 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
20820 device specs file if "device-specs%s" didn't resolve to a path.
20821
20822 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
20823
20824 PR target/65676
20825 * config/i386/i386.c (fixup_modeless_constant): New.
20826 (ix86_expand_args_builtin): Fixup modeless constant operand.
20827 (ix86_expand_round_builtin): Ditto.
20828 (ix86_expand_special_args_builtin): Ditto.
20829 (ix86_expand_builtin): Ditto.
20830
20831 2015-04-09 Jakub Jelinek <jakub@redhat.com>
20832
20833 PR target/65693
20834 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
20835 any pow2 integer in between 2 and 0x80000000U inclusive.
20836
20837 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
20838
20839 PR rtl-optimization/65693
20840 * combine.c (is_parallel_of_n_reg_sets): Change first argument
20841 from an rtx_insn * to an rtx.
20842 (try_combine): Adjust both callers. Use it once more.
20843
20844 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20845
20846 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
20847 (chkp_make_static_const_bounds): Search existing
20848 symbol by assembler name. Use make_decl_one_only.
20849 (chkp_get_zero_bounds_var): Remove node search which
20850 is now performed in chkp_make_static_const_bounds.
20851 (chkp_get_none_bounds_var): Likewise.
20852
20853 2015-04-08 Michael Witten <mfwitten@gmail.com>
20854
20855 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
20856 to an example.
20857
20858 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20859
20860 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
20861
20862 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
20863
20864 * doc/extend.texi (__sync Builtins): Fix grammar.
20865
20866 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20867
20868 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
20869
20870 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20871
20872 * varasm.c (emit_local): Move definition of align.
20873
20874 2015-04-08 Julian Brown <julian@codesourcery.com>
20875
20876 * config/nvptx/mkoffload.c (process): Support variable mapping.
20877
20878 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
20879
20880 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
20881 alpha_links **.
20882 (alpha_write_one_linkage): Correct typo.
20883
20884 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20885
20886 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
20887
20888 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
20889
20890 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
20891
20892 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20893
20894 * tree-chkp.h (chkp_insert_retbnd_call): New.
20895 * tree-chkp.c (chkp_insert_retbnd_call): New.
20896 * ipa-split.c (insert_bndret_call_after): Remove.
20897 (split_function): Use chkp_insert_retbnd_call.
20898 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
20899 bounds for instrumented functions.
20900
20901 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
20902
20903 PR ipa/65540
20904 * calls.c (initialize_argument_information): When producing tail
20905 call also turn SSA_NAMES passed by references to original PARM_DECLs
20906
20907 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
20908
20909 PR target/65648
20910 * lra-remat.c (do_remat): Process input and non-input insn
20911 registers separately.
20912
20913 2015-04-07 Jakub Jelinek <jakub@redhat.com>
20914
20915 PR debug/65678
20916 * valtrack.c (debug_lowpart_subreg): New function.
20917 (dead_debug_insert_temp): Use it.
20918
20919 PR middle-end/65680
20920 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
20921 into signed HOST_WIDE_INT the same as negative bit_offset.
20922
20923 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
20924
20925 * ipa-comdats.c (ipa_comdats): Visit all thunks
20926 to set proper comdat group.
20927
20928 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20929
20930 PR target/65489
20931 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
20932 on constants for NEON VSTRUCT modes.
20933
20934 2015-04-07 Jakub Jelinek <jakub@redhat.com>
20935 Iain Sandoe <iain@codesourcery.com>
20936
20937 PR target/65351
20938 * configure: Regenerate.
20939
20940 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20941
20942 PR target/65614
20943 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
20944 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
20945 that LFD is used to load double constants instead of LFS. Add
20946 defaults for all costs structures. Add comments for missing
20947 initialization fields.
20948 (size32_cost): Likewise.
20949 (size64_cost): Likewise.
20950 (rs64a_cost): Likewise.
20951 (mpccore_cost): Likewise.
20952 (ppc403_cost): Likewise.
20953 (ppc405_cost): Likewise.
20954 (ppc440_cost): Likewise.
20955 (ppc476_cost): Likewise.
20956 (ppc601_cost): Likewise.
20957 (ppc603_cost): Likewise.
20958 (ppc604_cost): Likewise.
20959 (ppc604e_cost): Likewise.
20960 (ppc620_cost): Likewise.
20961 (ppc630_cost): Likewise.
20962 (ppccell_cost): Likewise.
20963 (ppc750_cost): Likewise.
20964 (ppc7450_cost): Likewise.
20965 (ppc8540_cost): Likewise.
20966 (ppce300c2c3_cost): Likewise.
20967 (ppce500mc_cost): Likewise.
20968 (ppce500mc64_cost): Likewise.
20969 (ppce5500_cost): Likewise.
20970 (ppce6500_cost): Likewise.
20971 (titan_cost): Likewise.
20972 (power4_cost): Likewise.
20973 (power6_cost): Likewise.
20974 (power7_cost): Likewise.
20975 (power8_cost): Likewise.
20976 (ppca2_cost): Likewise.
20977 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
20978
20979 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
20980 instead of XXLOR to copy SFmode to clear out dirty bits created
20981 when SFmode denormals are generated.
20982 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
20983 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
20984
20985 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
20986
20987 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
20988 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
20989 * config/aarch64/aarch64-tune.md: Regenerate.
20990
20991 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
20992
20993 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
20994 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
20995 * config/arm/arm-cores.def (exynos-m1): New core.
20996 * config/arm/arm-tune.md: Regenerate.
20997 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
20998 * config/arm/bpabi.h: Likewise.
20999
21000 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
21001
21002 * ipa-cp (set_single_call_flag): Remove too
21003 restrictive assert.
21004
21005 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
21006
21007 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
21008 GOMP_offload_unregister from the destructor.
21009
21010 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
21011
21012 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
21013 flags for instrumentation thunk.
21014 (chkp_produce_thunks): Likewise.
21015
21016 2015-04-05 Martin Liska <mliska@suse.cz>
21017
21018 PR ipa/65665
21019 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
21020 has computed data structure.
21021 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21022
21023 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
21024
21025 * invoke.texi (inline-unit-growth): Increase growth to 20%
21026 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
21027
21028 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
21029
21030 PR target/65647
21031 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
21032 value checking.
21033 (lra_rematerialization_iter): New.
21034 * lra.c (lra): Initialize lra_rematerialization_iter.
21035 Stop updating lra_constraint_new_regno_start after switching of
21036 inheritance and rematerialization.
21037 * lra-remat.c (lra_rematerialization_iter): New.
21038 (lra_remat): Add printing pass iteration. Do rematerialization
21039 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
21040
21041 2015-04-04 Richard Biener <rguenther@suse.de>
21042
21043 PR tree-optimization/64909
21044 PR tree-optimization/65660
21045 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
21046 to take a cost vector for scalar iteration cost.
21047 (vect_get_single_scalar_iteration_cost): Likewise.
21048 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
21049 Compute the scalar iteration cost into a cost vector.
21050 (vect_get_known_peeling_cost): Use the scalar cost vector to
21051 account for the cost of the peeled iterations.
21052 (vect_estimate_min_profitable_iters): Likewise.
21053 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21054 Likewise.
21055
21056 2015-04-04 Alan Modra <amodra@gmail.com>
21057
21058 PR target/65576
21059 PR target/65240
21060 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
21061 0.0 constant unless TARGET_VSX.
21062 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
21063 alternative.
21064
21065 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21066
21067 PR ipa/65654
21068 * ipa-inline-transform.c (inline_call): Skip sanity check to work
21069 around the ICE
21070
21071 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21072
21073 PR ipa/65655
21074 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
21075 speculative indirect edges to avoid ordering issue.
21076
21077 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21078
21079 PR ipa/65076
21080 * ipa-inline.c (edge_badness): Add combined size to the denominator.
21081
21082 2015-04-03 Jakub Jelinek <jakub@redhat.com>
21083
21084 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
21085 TYPE_ARTIFICIAL on the .omp_data* types.
21086
21087 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21088
21089 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
21090 instrumentation thunks.
21091
21092 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21093
21094 * config/i386/i386.c (ix86_expand_call): Avoid nested
21095 PARALLEL in returned call value.
21096
21097 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21098
21099 * lto-cgraph.c (input_cgraph_1): Always link instrumented
21100 assembler name with original one.
21101
21102 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21103
21104 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
21105
21106 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21107
21108 Revert parts of r216820.
21109 * config/i386/i386.md (movqi_internal): Correct type calculation
21110 for alternatives 3 and 5.
21111
21112 2015-04-02 Jakub Jelinek <jakub@redhat.com>
21113
21114 PR preprocessor/61977
21115 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
21116 predefine __vector/__bool/__pixel macros nor context sensitive
21117 macros for CLK_ASM.
21118 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
21119
21120 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
21121
21122 * config/pa/pa.c (pa_output_move_double): Directly handle register
21123 indexed memory operand. Simplify handling of scaled register indexed
21124 memory operands.
21125
21126 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21127
21128 PR driver/65444
21129 * config/i386/linux-common.h (MPX_SPEC): New.
21130 (CHKP_SPEC): Add MPX_SPEC.
21131 * doc/invoke.texi (-fcheck-pointer-boudns): Document
21132 possible issues with '-z bndplt' support in linker.
21133
21134 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21135
21136 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
21137 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
21138 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
21139 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
21140 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
21141
21142 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
21143
21144 * config/i386/sync.md (UNSPEC_MOVA): Remove.
21145 (atomic_load<mode>): Change operand 0 predicate to
21146 nonimmediate_operand and fix up the destination when needed.
21147 Use UNSPEC_LDA.
21148 (atomic_loaddi_fpu): Use UNSPEC_LDA.
21149 (atomic_store<mode>): Change operand 1 predicate to
21150 nonimmendate_operand and move the source to register when needed.
21151 Use UNSPEC_STA.
21152 (atomic_store<mode>_1): Use UNSPEC_STA.
21153 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
21154 Fix moves from memory operand. Use UNSPEC_STA.
21155
21156 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
21157
21158 * expmed.c (strict_volatile_bitfield_p): Check that the access will
21159 not cross a MODESIZE boundary.
21160 (store_bit_field, extract_bit_field): Added assertions in the
21161 strict volatile bitfields code path.
21162
21163 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
21164
21165 PR target/65624
21166 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
21167 Increase args array size by one to avoid buffer overflow.
21168
21169 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
21170
21171 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
21172 split_part.
21173 * ipa-inline.c (edge_badness): Add wrapper penalty.
21174 (sum_callers): Move up.
21175 (inline_small_functions): Set single_caller.
21176 * ipa-inline.h (inline_summary): Add single_caller.
21177 * ipa-split.c (split_function): Set split_part.
21178 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
21179 * cgraph.h (cgraph_node): Add split_part.
21180
21181 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
21182
21183 PR target/58945
21184 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
21185 Do not split operands 0 and operands 2 to halfmode.
21186 (atomic_compare_and_swap<mode>): Update for
21187 atomic_compare_and_swap<dwi>_doubleword changes.
21188
21189 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
21190
21191 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
21192 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
21193 no caching is done.
21194
21195 2015-03-31 Martin Liska <mliska@suse.cz>
21196
21197 PR ipa/65557
21198 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
21199 has already filled up function summary.
21200 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21201
21202 2015-03-31 Richard Biener <rguenther@suse.de>
21203
21204 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
21205 of types.
21206
21207 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
21208
21209 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
21210 nested functions.
21211 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
21212 (s390_asm_output_function_label): Adapt to new signature of
21213 s390_function_num_hotpatch_hw
21214 Optimise the code generating assembler output.
21215 Add comments to assembler file.
21216
21217 2015-03-31 Richard Biener <rguenther@suse.de>
21218
21219 PR middle-end/65626
21220 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
21221 of the noreturn call so it is last and cleanup_control_flow_bb
21222 can do the CFG part.
21223
21224 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
21225
21226 PR target/65531
21227 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
21228 same_comdat_group for external symbols.
21229 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
21230 infinite same_comdat_group traversal loop.
21231
21232 2015-03-31 Jakub Jelinek <jakub@redhat.com>
21233
21234 PR plugins/61176
21235 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
21236 automatically to $headers.
21237
21238 2015-03-30 Jakub Jelinek <jakub@redhat.com>
21239
21240 PR ipa/65610
21241 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
21242 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
21243 function.
21244 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
21245 Use it.
21246 * ipa-prop.c (param_type_may_change_p): Likewise.
21247 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
21248 (remove_unused_scope_block_p): Add in_ctor_dtor_block
21249 argument. Before inlining, preserve
21250 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
21251 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
21252 recursive calls.
21253 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
21254
21255 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21256
21257 PR ipa/65076
21258 * ipa-inline.c (edge_badness): Base denominator on callee's
21259 grwoth squared.
21260
21261 2015-03-27 Martin Jambor <mjambor@suse.cz>
21262
21263 PR ipa/65478
21264 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
21265 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
21266 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
21267 node_calling_single_call.
21268 * ipa-cp.c (count_callers): New function.
21269 (set_single_call_flag): Likewise.
21270 (initialize_node_lattices): Count callers and set single_flag_call if
21271 necessary.
21272 (incorporate_penalties): New function.
21273 (good_cloning_opportunity_p): Use it, dump new flags.
21274 (propagate_constants_topo): Set node_within_scc flag if appropriate.
21275 * doc/invoke.texi (ipa-cp-recursion-penalty,
21276 ipa-cp-single-call-pentalty): Document.
21277
21278 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21279
21280 PR ipa/65588
21281 * symtab.c (symtab_node::get_partitioning_class): Register vars
21282 are duplicated.
21283 * varpool.c (symbol_table::output_variables) Do not assemble unefined
21284 decls for non-symbols.
21285
21286 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
21287
21288 PR target/65248
21289 * output.h (default_binds_local_p_2): New.
21290 * varasm.c (default_binds_local_p_2): Renamed to ...
21291 (default_binds_local_p_3): This. Don't return true on protected
21292 data symbol if protected data may be external.
21293 (default_binds_local_p): Use default_binds_local_p_3.
21294 (default_binds_local_p_1): Likewise.
21295 (default_binds_local_p_2): New.
21296 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
21297 default_binds_local_p_2 if TARGET_MACHO is undefined.
21298
21299 2015-03-27 Jakub Jelinek <jakub@redhat.com>
21300
21301 PR target/65593
21302 * config/i386/i386.c (legitimize_pic_address): If base
21303 is SYMBOL_REF or LABEL_REF using %rip addressing, force
21304 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
21305
21306 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21307
21308 PR target/65531
21309 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
21310 comdat groups.
21311
21312 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21313
21314 PR ipa/65600
21315 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
21316 of optimized out indirect call.
21317 (redirect_to_unreachable): Always build symbol table node for
21318 BUILT_IN_UNREACHABLE
21319
21320 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
21321
21322 PR target/65407
21323 * ira-costs.c (record_reg_classes): Process all constraint string
21324 containing 0-9.
21325
21326 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
21327
21328 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
21329 memory_operand.
21330
21331 PR target/65052
21332 * config/c6x/constraints.md (S3): New constraint.
21333 * config/c6x/c6x.md (real_jump): Use it.
21334
21335 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21336
21337 PR middle-end/65595
21338 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
21339 do redirection if the call is not optimized out.
21340
21341 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
21342
21343 PR target/65495
21344 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
21345 (fchkp-check-incomplete-type): Add LTO.
21346 (fchkp-zero-input-bounds-for-main): Likewise.
21347 (fchkp-first-field-has-own-bounds): Likewise.
21348 (fchkp-narrow-bounds): Likewise.
21349 (fchkp-narrow-to-innermost-array): Likewise.
21350 (fchkp-use-static-bounds): Likewise.
21351 (fchkp-use-static-const-bounds): Likewise.
21352 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21353
21354 2015-03-27 Marek Polacek <polacek@redhat.com>
21355
21356 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
21357
21358 2015-03-27 Marek Polacek <polacek@redhat.com>
21359
21360 PR sanitizer/65583
21361 * ubsan.c (ubsan_create_edge): New function.
21362 (instrument_bool_enum_load): Call it.
21363 (instrument_nonnull_arg): Likewise.
21364 (instrument_nonnull_return): Likewise.
21365 (instrument_object_size): Likewise.
21366
21367 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21368
21369 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
21370 auto_vec.
21371
21372 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21373
21374 PR lto/65536
21375 * lto-streamer.h (class lto_location_cache): New.
21376 (struct data_in): Add location_cache.
21377 (lto_input_location): Update prototype.
21378 (stream_input_location_now): New.
21379 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
21380 pointer to location.
21381 (stream_input_location): Update.
21382 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
21383 (warn_odr): Apply location cache before warning.
21384 (lto_input_location): Update prototype.
21385 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
21386 Use stream_input_location_now.
21387 * lto-streamer-in.c (lto_location_cache::current_cache): New static
21388 variable.
21389 (lto_location_cache::cmp_loc): New function.
21390 (lto_location_cache::apply_location_cache): New function.
21391 (lto_location_cache::accept_location_cache): New function.
21392 (lto_location_cache::revert_location_cache): New function.
21393 (lto_location_cache::input_location): New function.
21394 (lto_input_location): Do location caching.
21395 (stream_input_location_now): New function.
21396 (input_eh_region, input_struct_function_base): Use
21397 stream_input_location_now.
21398 (lto_data_in_create): use new.
21399 (lto_data_in_delete): Use delete.
21400 * tree-streamer-in.c (unpack_ts_block_value_fields,
21401 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
21402 lto_input_ts_exp_tree_pointers): Update for cached location api.
21403
21404 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21405
21406 PR ipa/65076
21407 * passes.def: Add pass_nothrow.
21408 * ipa-pure-const.c: (pass_data_nothrow): New.
21409 (pass_nothrow): New.
21410 (pass_nothrow::execute): New.
21411 (make_pass_nothrow): New.
21412 * tree-pass.h (make_pass_nothrow): Declare.
21413
21414 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21415
21416 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
21417 edge to change by speculation resolution or redirection.
21418 (edge_set_predicate): Likewise.
21419 (inline_summary_t::duplicate): Likewise.
21420 (remap_edge_summaries): Likewise.
21421
21422 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21423
21424 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
21425 New macros.
21426 (can_inline_edge_p): Relax option matching for always inline functions.
21427
21428 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
21429
21430 PR target/65561
21431 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
21432 Check operand 4 and operand 0 for equality.
21433 (avx512f_vextract<shuffletype>32x4_1_maskm):
21434 Check operand 6 and operand 0 for equality.
21435 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
21436 for equality.
21437 (vec_extract_hi_<mode>_maskm): Ditto.
21438
21439 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21440
21441 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
21442 dead calls back to live.
21443 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
21444 cross check to ...
21445 (cgraph_node::verify_node): ... here; verify only callee edges,
21446 not caller.
21447 * cif-code.def (CILK_SPAWN): New code.
21448
21449 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21450
21451 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
21452 (edge_set_predicate): Use it to mark unreachable edges.
21453 (inline_summary_t::duplicate): Remove unnecesary code.
21454 (remap_edge_summaries): Likewise.
21455 (dump_inline_summary): Report contains_cilk_spawn.
21456 (compute_inline_parameters): Compute contains_cilk_spawn.
21457 (inline_read_section, inline_write_summary): Stream
21458 contains_cilk_spawn.
21459 * ipa-inline.c (can_inline_edge_p): Do not touch
21460 DECL_STRUCT_FUNCTION that may not be available;
21461 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
21462 remove check for callee_fun->can_throw_non_call_exceptions and
21463 replace it by optimization attribute check; check for flag_exceptions.
21464 * ipa-inline-transform.c (inline_call): Maintain
21465 DECL_FUNCTION_PERSONALITY
21466 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
21467
21468 2015-03-26 Jakub Jelinek <jakub@redhat.com>
21469
21470 PR tree-optimization/65551
21471 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
21472 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
21473
21474 2015-03-26 Richard Biener <rguenther@suse.de>
21475
21476 PR middle-end/65555
21477 * tree-cfg.c (verify_gimple_call): Do not require a call to
21478 have no LHS if it wasn't recognized as control altering yet.
21479
21480 2015-03-26 Jakub Jelinek <jakub@redhat.com>
21481
21482 PR tree-optimization/64715
21483 * passes.def: Add another instance of pass_object_sizes before ccp1.
21484 * tree-object-size.c (pass_object_sizes::execute): In
21485 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
21486 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
21487 __bos result and the computed constant. Remove redundant
21488 checks, obsoleted by gimple_call_builtin_p test.
21489
21490 * var-tracking.c (variable_tracking_main_1): Don't track
21491 variables for targetm.no_register_allocation targets.
21492
21493 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
21494
21495 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
21496 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
21497
21498 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
21499
21500 PR target/65569
21501 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
21502 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
21503 0.0 is correctly setup.
21504 (extenddftf2_internal): Likewise.
21505
21506 2015-03-25 Sebastian Pop <s.pop@samsung.com>
21507
21508 PR tree-optimization/65177
21509 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
21510 (bb_in_bbs): New.
21511 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
21512 edges not adjacent on the path to the original code.
21513
21514 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
21515
21516 PR bootstrap/65537
21517 * doc/install.texi (Building a native compiler): Document new
21518 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
21519 configuration assumes that the host supports the linker plugin.
21520
21521 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
21522
21523 PR target/65508
21524 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
21525 chain for generated call.
21526
21527 2015-03-25 Richard Biener <rguenther@suse.de>
21528
21529 * passes.c (pass_manager::execute_early_local_passes): Guard
21530 execution of pass_chkp_instrumentation_passes with
21531 flag_check_pointer_bounds.
21532 (pass_chkp_instrumentation_passes::gate): Likewise.
21533
21534 2015-03-25 Martin Liska <mliska@suse.cz>
21535
21536 PR tree-optimization/65538
21537 * symbol-summary.h (function_summary::~function_summary):
21538 Relese memory for allocated summaries.
21539 (function_summary::release): New function.
21540
21541 2015-03-25 Jakub Jelinek <jakub@redhat.com>
21542
21543 PR lto/65515
21544 * lto-streamer-out.c (DFS::worklist): New struct.
21545 (DFS::worklist_vec): New data member.
21546 (DFS::next_dfs_num): Remove.
21547 (DFS::DFS): Rewritten using worklist instead of recursion,
21548 using most of code from DFS::DFS_write_tree.
21549 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
21550 pass it to DFS_write_tree calls.
21551 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
21552 quick initial checks push it into worklist_vec and return.
21553
21554 2015-03-25 Richard Biener <rguenther@suse.de>
21555
21556 PR middle-end/65519
21557 * genmatch.c (expr::gen_transform): Re-write to avoid
21558 using gimple_build.
21559
21560 2015-03-25 Bin Cheng <bin.cheng@arm.com>
21561
21562 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
21563
21564 2015-03-25 Bin Cheng <bin.cheng@arm.com>
21565
21566 * config/arm/arm.opt (print_tune_info): New option.
21567 * config/arm/arm.c (arm_print_tune_info): New function.
21568 (arm_file_start): Call arm_print_tune_info.
21569 * config/arm/arm-protos.h (struct tune_params): Add comment.
21570 * doc/invoke.texi (@item -mprint-tune-info): New item.
21571 (-mtune): mention it in ARM Option Summary.
21572
21573 2015-03-25 DJ Delorie <dj@redhat.com>
21574
21575 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
21576 correct clause.
21577
21578 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
21579 Martin Liska <mliska@suse.cz>
21580
21581 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
21582 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
21583 (sem_item::add_type): New function.
21584 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
21585 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
21586 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
21587 (sem_function::equals_wpa): Fix typo.
21588 * ipa-icf.h (sem_item::add_type): New function.
21589 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
21590 order.
21591
21592 2015-03-24 Jakub Jelinek <jakub@redhat.com>
21593
21594 PR tree-optimization/65533
21595 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
21596 with swapped operands, call vect_free_slp_tree on
21597 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
21598 vector.
21599
21600 2015-03-24 Richard Biener <rguenther@suse.de>
21601
21602 PR middle-end/65517
21603 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
21604 for fixup if necessary.
21605
21606 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
21607
21608 * doc/extend.texi (Function Attributes): Add @cindex entries
21609 for all attributes and regularize their format. Delete text
21610 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
21611 information about "eightbit_data", "tiny_data", and "model"
21612 variable attributes to the Variable Attributes section. Fix
21613 some obvious typos and copy-editing issues.
21614 (Variable Attributes, Type Attributes): Likewise add/fix
21615 @cindex entries for all attributes.
21616
21617 2015-03-23 Jakub Jelinek <jakub@redhat.com>
21618
21619 PR target/65523
21620 * tree-chkp.c (chkp_build_returned_bound): Ignore
21621 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
21622
21623 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
21624
21625 PR target/65505
21626 * config/sh/predicates.md (simple_mem_operand,
21627 displacement_mem_operand): Add test for reg.
21628 (short_displacement_mem_operand): Test for displacement_mem_operand
21629 before invoking sh_disp_addr_displacement.
21630 * config/sh/constraints.md (Sdd, Sra): Simplify.
21631 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
21632 Remove redundant displacement_mem_operand tests.
21633
21634 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
21635
21636 PR target/65296
21637 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
21638 the same -mmcu=MCU more than once.
21639
21640 2015-03-23 Jakub Jelinek <jakub@redhat.com>
21641
21642 PR bootstrap/65522
21643 * ipa-devirt.c: Remove duplicate demangle.h include.
21644
21645 PR target/65504
21646 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
21647 on the pseudo.
21648 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
21649 REG_POINTER on *destptr after adjusting it for prologue size.
21650
21651 PR ipa/65521
21652 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
21653 ultimate_alias_target ()->order ints instead of
21654 ultimate_alias_target () pointers.
21655
21656 2015-03-23 Richard Biener <rguenther@suse.de>
21657
21658 PR tree-optimization/65518
21659 * tree-vect-stmts.c (vectorizable_load): Reject single-element
21660 interleaving cases we generate absymal code for.
21661
21662 2015-03-23 Richard Biener <rguenther@suse.de>
21663
21664 PR tree-optimization/65494
21665 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
21666 matches here.
21667 (vect_analyze_slp_instance): But do that here, always and once.
21668
21669 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21670
21671 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
21672 adding T or multiplying by T+1 and subracting T.
21673
21674 2015-03-22 Jeff Law <law@redhat.com>
21675
21676 PR rtl-optimization/64317
21677 * Makefile.in (OBJS): Add gcse-common.c
21678 * gcse.c: Include gcse-common.h
21679 (struct modify_pair_s): Move structure definition to gcse-common.h
21680 (compute_transp): Move function to gcse-common.c.
21681 (canon_list_insert): Similarly.
21682 (record_last_mem_set_info): Break out some code and put it into
21683 gcse-common.c. Call into the new common code.
21684 (compute_local_properties): Pass additional arguments to compute_transp.
21685 * postreload-gcse.c: Include gcse-common.h and df.h
21686 (modify_mem_list_set, blocks_with_calls): New variables.
21687 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
21688 (get_bb_avail_insn): Pass in the expression index too.
21689 (alloc_mem): Allocate memory for the new bitmaps and lists.
21690 (free_mem): Free memory for the new bitmaps and lists.
21691 (insert_expr_in_table): Record a bitmap index for each entry we
21692 add to the table.
21693 (record_last_mem_set_info): Call into common code in gcse-common.c.
21694 (get_bb_avail_insn): If no available insn was found in the requested
21695 BB. If BB has a single predecessor, see if the expression is
21696 transparent in BB and available in that single predecessor.
21697 (compute_expr_transp): New wrapper for compute_transp.
21698 (eliminate_partially_redundant_load): Pass expression's bitmap_index
21699 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
21700 (gcse_after_reload_main): If there are elements in the hash table,
21701 then compute transparency for all the elements in the hash table.
21702 * gcse-common.h: New file.
21703 * gcse-common.c: New file.
21704
21705 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
21706
21707 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
21708 as an adjective.
21709 (System Headers): Likewise.
21710 (Ifdef): Likewise.
21711 (Traditional macros): Likewise.
21712 (Invocation): Likewise.
21713 (Option Index): Likewise.
21714 * doc/cppopts.texi (-M): Likewise.
21715 (-finput-charset): Likewise.
21716 (--help): Likewise.
21717 * doc.invoke.texi (AVR Options): Likewise.
21718 (V850 Options): Likewise.
21719
21720 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
21721
21722 PR ipa/65475
21723 * ipa-devirt.c: Include demangle.h
21724 (odr_type_d): Add field rtti_broken.
21725 (odr_subtypes_equivalent_p): Do not require name to match.
21726 (compare_virtual_tables): Fix typo; if type already has ODR violation,
21727 bypass the tests; be ready for function referneces in vtables that are
21728 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
21729 (warn_odr): Give up for nameless types.
21730 (warn_types_mismatch): Report mismatch in mangled names;
21731 report mismatch in anonymous namespaces; look into component types to
21732 give useful error; report when mismatch is dragged in from other ODR
21733 type.
21734 (odr_types_equivalent_p): Match types for being polymorphic; avoid
21735 duplicated diagnostics.
21736 (add_type_duplicate): Reorder checks so more informative ones come
21737 first; fix typo; do not output "the extra base is defined here" when
21738 we did not warn.
21739 (BINFO_N_BASE_BINFOS): Relax sanity check.
21740
21741 2015-03-22 Martin Liska <mliska@suse.cz>
21742 Jakub Jelinek <jakub@redhat.com>
21743
21744 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
21745 masks that can potentially include a builtin.
21746 (ix86_add_new_builtins): Introduce fast filter for isa values
21747 that cannot trigger builtin inclusion.
21748
21749 2015-03-22 Martin Liska <mliska@suse.cz>
21750
21751 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
21752 (sem_item::update_hash_by_local_refs): Likewise.
21753 (sem_variable::get_hash): Empty line is fixed.
21754 (sem_item_optimizer::execute): Include adding of hash references.
21755 (sem_item_optimizer::update_hash_by_addr_refs): New function.
21756 (sem_item_optimizer::build_hash_based_classes): Use local hash.
21757 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
21758 (sem_item::update_hash_by_local_refs): Likewise.
21759
21760 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21761
21762 PR ipa/65502
21763 * ipa-comdats.c (enqueue_references): Walk through thunks.
21764 (ipa_comdats): Likewise.
21765 (set_comdat_group_1): New function.
21766
21767 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21768
21769 PR ipa/65475
21770 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
21771 non-polymorphic
21772
21773 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
21774 Gerald Pfeifer <gerald@pfeifer.com>
21775
21776 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
21777
21778 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
21779 Sandra Loosemore <sandra@codesourcery.com>
21780
21781 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
21782 function parameter declaration.
21783 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
21784 Update arguments to nios2_adjust_call_address().
21785 (sibcall_internal): Rename from *sibcall.
21786 (sibcall_value_internal): Rename from *sibcall_value.
21787 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
21788 (nios2_large_got_address): Add target temp reg parameter.
21789 (nios2_got_address): Adjust call to nios2_large_got_address, add
21790 force_reg around it.
21791 (nios2_load_pic_address): Add target temp reg parameter, replace call
21792 to nios2_got_address with corresponding code.
21793 (nios2_legitimize_constant_address): Update call to
21794 nios2_load_pic_address.
21795 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
21796 to use temp reg for PIC loading purposes.
21797 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
21798 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
21799 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
21800
21801 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21802
21803 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
21804 usage of "the @option{...}".
21805 (-Wopenmp-simd): Likewise.
21806 (-fsanitize-recover): Likewise.
21807 (-fsanitize-undefined-trap-on-error): Likewise.
21808 (-flto): Likewise.
21809 (tracer-dynamic-coverage-feedback): Likewise.
21810 (reorder-block-duplicate-feedback): Likewise.
21811 (loop-unroll-jam-size): Likewise.
21812 (-B): Likewise.
21813 (-I-): Likewise.
21814 (-mabs=legacy): Likewise.
21815 (-mupper-regs-df): Likewise.
21816 (-mupper-regs-sf): Likewise.
21817 (-mpointers-to-nested-functions): Likewise.
21818
21819 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21820
21821 * doc/extend.texi (Cilk Plus Builtins): Add markup.
21822
21823 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21824
21825 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
21826 additional index entries and cross-references.
21827 (-fchkp-check-incomplete-type): Likewise.
21828 (-fchkp-first-field-has-own-bounds): Likewise.
21829 (-fchkp-narrow-to-innermost-array): Likewise.
21830 (-fchkp-use-fast-string-functions): Likewise.
21831 (-fchkp-use-nochk-string-functions): Likewise.
21832 (-fchkp-use-static-const-bounds): Likewise.
21833 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21834 (-fchkp-instrument-marked-only): Likewise.
21835 (-fchkp-use-wrappers): Likewise.
21836 (-static-libmpx): Likewise.
21837 (-static-libmpxwrappers): Likewise.
21838 * doc/extend.texi (bnd_legacy): Likewise.
21839 (bnd_instrument): Likewise.
21840 (bnd_variable_size): Likewise.
21841 (Pointer Bounds Checker builtins): Likewise.
21842
21843 2015-03-21 Tom de Vries <tom@codesourcery.com>
21844
21845 PR tree-optimization/65458
21846 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
21847 * cgraph.h (cgraph_node): Add parallelized_function field.
21848 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
21849 (input_overwrite_node): Read parallelized_function field.
21850 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
21851 parallelized_function on cgraph_node for child_fn.
21852 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
21853 Remove include of gt-tree-parloops.h.
21854 (parallelized_functions): Remove static variable.
21855 (parallelized_function_p): Rewrite using parallelized_function field of
21856 cgraph_node.
21857 (create_loop_fn): Remove adding to parallelized_functions.
21858 * Makefile.in (GTFILES): Remove tree-parloops.c
21859
21860 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
21861
21862 PR rtl-optimization/64366
21863 * lra.c (lra_update_insn_regno_info): Consider regs in
21864 CALL_INSN_FUNCTION_USAGE memory.
21865
21866 2015-03-20 Richard Biener <rguenther@suse.de>
21867
21868 PR middle-end/64715
21869 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
21870 for type comparison and gcc_checking_assert.
21871 (chrec_fold_plus_poly_poly): Likewise.
21872 (chrec_fold_multiply_poly_poly): Likewise.
21873 (chrec_convert_1): Likewise.
21874 * gimplify.c (gimplify_expr): Remove premature folding of
21875 &X + CST to &MEM[&X, CST].
21876
21877 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21878
21879 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
21880 already is final.
21881 (ipa_inline): Recompute inline_failed codes.
21882 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21883 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
21884 CIF_FINAL_ERROR.
21885
21886 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
21887
21888 PR rtl-optimization/60851
21889 * recog.c (constrain_operands): Accept a pseudo register before reload
21890 for LRA enabled targets.
21891
21892 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
21893
21894 PR target/65240
21895 * config/rs6000/predicates.md (easy_fp_constant): Remove special
21896 -ffast-math handling that kept non-0 constants live in the RTL
21897 until reload. Remove logic testing the number of instructions it
21898 took to create a constant in a GPR that was never used, due to a
21899 test for soft-float earlier.
21900 (memory_fp_constant): Delete, no longer used.
21901
21902 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
21903 alternatives for loading non-0 constants into GPRs for hard
21904 floating point that is no longer needed due to changes in
21905 easy_fp_constant. Add support for loading 0.0 into GPRs.
21906 (mov<mode>_hardfloat32): Likewise.
21907 (mov<mode>_hardfloat64): Likewise.
21908 (mov<mode>_64bit_dm): Likewise.
21909 (movtd_64bit_nodm): Likewise.
21910 (pre-reload move FP constant define_split): Delete define_split,
21911 since it is no longer used.
21912 (extenddftf2_internal): Remove GHF constraints that are not valid
21913 for extenddftf2.
21914
21915 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
21916
21917 PR rtl-optimization/63491
21918 * lra-constraints.c (check_and_process_move): Use src instead of
21919 sreg. Remove some dead code.
21920
21921 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
21922
21923 PR ipa/65380
21924 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
21925 (sem_variable::merge): Likewise.
21926
21927 2015-03-19 Martin Liska <mliska@suse.cz>
21928
21929 PR ipa/65465
21930 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
21931 all fields of cgraph_thunk_info.
21932
21933 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
21934
21935 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
21936 clone instrumented thunks.
21937
21938 2015-03-19 Richard Biener <rguenther@suse.de>
21939
21940 Revert
21941 2015-03-10 Richard Biener <rguenther@suse.de>
21942
21943 PR middle-end/63155
21944 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
21945 * tree-ssa-coalesce.c: Include timevar.h.
21946 (attempt_coalesce): Handle graph being NULL.
21947 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
21948 Split out abnormal coalescing to ...
21949 (perform_abnormal_coalescing): ... this function.
21950 (coalesce_ssa_name): Perform abnormal coalescing without computing
21951 live/conflict.
21952 (verify_ssa_coalescing_worker): New function.
21953 (verify_ssa_coalescing): Likewise.
21954
21955 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
21956 Jakub Jelinek <jakub@redhat.com>
21957
21958 PR sanitizer/65400
21959 * tsan.c (instrument_gimple): Clear tail call flag on
21960 calls.
21961
21962 2015-03-19 Jakub Jelinek <jakub@redhat.com>
21963
21964 PR sanitizer/65400
21965 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
21966 call in the return bb.
21967 (find_split_points): Add RETURN_BB argument, don't call
21968 find_return_bb.
21969 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
21970 if true append TSAN_FUNC_EXIT internal call after the call to
21971 the split off function.
21972 (execute_split_functions): Call find_return_bb here.
21973 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
21974 Adjust find_split_points and split_function calls.
21975
21976 2015-03-18 DJ Delorie <dj@redhat.com>
21977
21978 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
21979 (iorqi3_virt): Likewise.
21980
21981 2015-03-18 Tom de Vries <tom@codesourcery.com>
21982
21983 * tree-parloops.c (parallelize_loops): Make static.
21984 * tree-parloops.h (parallelize_loops): Remove extern declaration.
21985
21986 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
21987
21988 PR middle-end/64491
21989 Revert:
21990 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
21991
21992 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
21993 condition would be removed due to undefined behaviour.
21994
21995 2015-03-18 Martin Liska <mliska@suse.cz>
21996
21997 PR ipa/65432
21998 * cgraph.c (cgraph_node::get_create): Remove unnecessary
21999 xstrdup_for_dump wrapper.
22000 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
22001 sem_item::name.
22002 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
22003 with xstrdup_for_dump.
22004 (sem_variable::equals): Likewise.
22005 (sem_item_optimizer::read_section): Use symtab_node::name instead of
22006 sem_item::name.
22007 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
22008 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
22009 symtab_node::asm_name with xstrdup_for_dump.
22010 (congruence_class::dump): Use symtab_node::name instead of
22011 sem_item::name.
22012 * ipa-icf.h (symtab_node::name): Remove.
22013 (symtab_node::asm_name): Likewise.
22014
22015 2015-03-18 Jakub Jelinek <jakub@redhat.com>
22016
22017 PR tree-optimization/65450
22018 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
22019 function.
22020 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
22021 it instead of duplicate_ssa_name_ptr_info.
22022
22023 PR target/65222
22024 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
22025
22026 2015-03-18 Richard Biener <rguenther@suse.de>
22027
22028 * tree-data-ref.h (struct access_matrix): Remove.
22029 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
22030 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
22031 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
22032 (am_vector_index_for_loop): Likewise.
22033 (struct data_reference): Remove access_matrix member.
22034 (DR_ACCESS_MATRIX): Remove.
22035 (lambda_vector_new): Add comment.
22036 (lambda_matrix_new): Use XOBNEWVEC.
22037
22038 2015-03-18 Richard Biener <rguenther@suse.de>
22039
22040 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
22041 (pass_ch::execute): Cleanup the CFG only if we did sth.
22042 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
22043
22044 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22045
22046 * expmed.c (synth_mult): Use std::swap instead of manually
22047 swapping algorithms.
22048
22049 2015-03-18 Jakub Jelinek <jakub@redhat.com>
22050
22051 PR target/65078
22052 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
22053
22054 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
22055
22056 PR target/65296
22057 * config/avr/avr.opt (-nodevicelib): New option.
22058 * doc/invoke.texi (AVR Options): Document it.
22059 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
22060 libgcc.a, libc.a, libm.a.
22061 * config/avr/specs.h: Same.
22062 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
22063 which don't (directly) depend on the device. Print more help.
22064 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
22065 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
22066 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
22067 case of an error.
22068 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
22069 for specs file name.
22070 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
22071 * config/avr/avr-mcus.def: Adjust initializers and comments.
22072
22073 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
22074
22075 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
22076 DECL_ONE_ONLY to check if decl is one only.
22077 * ipa-split.c (consider_split): Limit splitt of one only functions.
22078
22079 2015-03-16 Jakub Jelinek <jakub@redhat.com>
22080
22081 PR tree-optimization/65427
22082 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
22083 functions.
22084 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
22085
22086 2015-03-16 Marek Polacek <polacek@redhat.com>
22087
22088 * cgraph.h (add_new_static_var): Remove declaration.
22089 * varpool.c (add_new_static_var): Remove function.
22090
22091 2015-03-16 Jakub Jelinek <jakub@redhat.com>
22092
22093 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
22094 instead of vec<tree> * with vec_alloc and release for args.
22095 Adjust all users.
22096
22097 PR middle-end/65431
22098 * omp-low.c (delete_omp_context): Only splay_tree_delete
22099 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
22100 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
22101
22102 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
22103
22104 PR sanitizer/64820
22105 * cfgexpand.c (align_base): New function.
22106 (alloc_stack_frame_space): Call it.
22107 (expand_stack_vars): Align prev_frame to be sure
22108 data->asan_vec elements aligned properly.
22109
22110 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
22111
22112 PR middle-end/65409
22113 * expr.c (store_field): Do not do a direct block copy if the source is
22114 a PARALLEL with BLKmode.
22115
22116 2015-03-16 Tom de Vries <tom@codesourcery.com>
22117
22118 PR middle-end/65414
22119 Revert:
22120 2015-03-12 Tom de Vries <tom@codesourcery.com>
22121
22122 PR rtl-optimization/64895
22123 * lra-lives.c (check_pseudos_live_through_calls): Use
22124 actual_call_used_reg_set instead of call_used_reg_set, if available.
22125
22126 2015-03-16 Alan Modra <amodra@gmail.com>
22127
22128 PR target/63150
22129 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
22130 Modify Z->r bswapdi splitter to use dest in place of scratch.
22131 In r->Z and Z->r bswapdi splitter rename word_high, word_low
22132 to word1, word2 and rearrange logic to suit.
22133 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
22134 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
22135 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
22136 Add one '?' on r->r. Modify Z->r splitter to avoid need for
22137 early clobber.
22138
22139 2015-03-14 Jakub Jelinek <jakub@redhat.com>
22140
22141 PR tree-optimization/65369
22142 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
22143 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
22144 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
22145
22146 PR tree-optimization/65418
22147 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
22148 are casts in the first PLUS_EXPR operand, ensure tbias and
22149 *totallowp are in the inner type.
22150
22151 PR rtl-optimization/65401
22152 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
22153 argument. If true, adjust_address_nv of x with big-endian
22154 correction for the mode widening to GET_MODE (y).
22155 (make_field_assignment): Don't do MEM mode widening here.
22156 Use MEM_P instead of GET_CODE == MEM.
22157
22158 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
22159
22160 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
22161 the external decls.
22162
22163 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22164
22165 PR target/64600
22166 * config/arm/arm.c (arm_gen_constant, AND case): Use
22167 ARM_SIGN_EXTEND when constructing AND mask.
22168
22169 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22170
22171 * graph.c (print_graph_cfg): Make function names visible and append
22172 parenthesis to it. Also make groups of basic blocks belonging to the
22173 same function visible.
22174
22175 2015-03-12 Richard Biener <rguenther@suse.de>
22176
22177 PR middle-end/44563
22178 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
22179 to avoid quadratic behavior with inline expansion splitting blocks.
22180 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
22181 with the successor if the predecessor will be merged with it.
22182 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
22183 entry block with its successor.
22184
22185 2015-03-13 Richard Biener <rguenther@suse.de>
22186
22187 PR middle-end/44563
22188 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
22189 (cleanup_tree_cfg_1): Do not call it.
22190 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
22191 (fixup_noreturn_call): Mark the stmt as control altering.
22192 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
22193 here.
22194 (pass_data_fixup_cfg): Produce a dump file.
22195 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
22196 (need_noreturn_fixup): New global.
22197 (pass_dominator::execute): Fixup queued noreturn calls.
22198 (optimize_stmt): Queue calls that became noreturn for fixup.
22199 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
22200 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
22201 (el_to_fixup): New global.
22202 (eliminate_dom_walker::before_dom_childre): Queue calls that
22203 became noreturn for fixup.
22204 (eliminate): Fixup queued noreturn calls.
22205 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
22206 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
22207 (substitute_and_fold_dom_walker::before_dom_children): Queue
22208 alls that became noreturn for fixup.
22209 (substitute_and_fold): Fixup queued noreturn calls.
22210
22211 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
22212
22213 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
22214 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
22215 are building; for methods check ODR type of class they belong to if
22216 they may lead to a polymorphic call.
22217 (sem_function::compare_polymorphic_p): Be bit smarter about testing
22218 when function may lead to a polymorphic call.
22219 (sem_function::compare_type_list): Remove.
22220 (sem_variable::equals): Update use of compatible_types_p.
22221 (sem_variable::parse_tree_refs): Remove.
22222 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
22223 cdtor.
22224 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
22225 matching here.
22226 (func_checker::compatible_polymorphic_types_p): Break out from ...
22227 (unc_checker::compatible_types_p): ... here.
22228 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
22229 Declare.
22230 (unc_checker::compatible_types_p): Update.
22231 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
22232 Remove.
22233
22234 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22235
22236 PR rtl-optimization/65235
22237 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
22238 When first element of vec_concat is const_int, calculate its size
22239 using second element.
22240
22241 2015-03-12 Richard Biener <rguenther@suse.de>
22242
22243 PR middle-end/65270
22244 * fold-const.c (operand_equal_p): Fix ordering of resetting
22245 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
22246
22247 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
22248
22249 * config/s390/s390.c (s390_reorg): Move code to output nops after label
22250 to s390_reorg ().
22251 (s390_asm_output_function_label): Likewise.
22252 * config/s390/s390.c (s390_asm_output_function_label):
22253 Fix function label alignment with -mhtopatch.
22254 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
22255 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
22256 ("nop_2_byte"): New define_insn.
22257 ("nop_4_byte"): Likewise.
22258 ("nop_6_byte"): Likewise.
22259 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
22260 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
22261
22262 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
22263
22264 PR target/65103
22265 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
22266 register.
22267
22268 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
22269
22270 PR target/65044
22271 * toplev.c (process_options): Restrict Pointer Bounds Checker
22272 usage with Address Sanitizer.
22273
22274 2015-03-12 Richard Biener <rguenther@suse.de>
22275
22276 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
22277 to split on.
22278 * omp-low.c (expand_omp_taskreg): Split block before removing
22279 the stmt.
22280 (expand_omp_target): Likewise.
22281 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
22282 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
22283 stmt to split_block.
22284
22285 2015-03-12 Tom de Vries <tom@codesourcery.com>
22286
22287 PR rtl-optimization/64895
22288 * lra-lives.c (check_pseudos_live_through_calls): Use
22289 actual_call_used_reg_set instead of call_used_reg_set, if available.
22290
22291 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22292
22293 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
22294 (cgraph_node::remove): Likewise.
22295 (cgraph_node::get_untransformed_body): Likewise.
22296 * varpool.c (varpool_node::remove): Likewise.
22297 (varpool_node::get_constructor): Add sanity check.
22298
22299 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
22300
22301 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
22302 old GCC versions.
22303 (-fabi-compat-version): Likewise.
22304 (-ffriend-injection): Likewise.
22305 (-Wdeclaration-after-statement): Likewise.
22306 (-fomit-frame-pointer): Likewise.
22307 (-ftree-coalesce-inlined-vars): Likewise.
22308 (-fvisibility=): Likewise.
22309 * doc/extend.texi (Typeof): Likewise.
22310 (Zero Length): Likewise.
22311 (Escaped Newlines): Likewise.
22312 (Compound Literals): Likewise.
22313 (Function Attributes): Likewise.
22314 (Label Attributes): Likewise.
22315 (Type Attributes): Likewise.
22316 (Function Names): Likewise.
22317 (Other Builtins): Likewise.
22318 (Function Specific Option Pragmas): Likewise.
22319 (C++ Interface): Likewise.
22320
22321 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
22322
22323 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
22324
22325 2015-03-11 Marek Polacek <polacek@redhat.com>
22326
22327 PR tree-optimization/65388
22328 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
22329
22330 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
22331
22332 PR target/65296
22333 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
22334 * configure: Regenerate.
22335 * config.in: Regenerate.
22336 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
22337 [-mn-flash]: Document it.
22338 [__AVR_ARCH__]: Document avrtiny.
22339
22340 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
22341 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
22342 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
22343
22344 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22345
22346 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
22347
22348 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22349
22350 PR target/65242
22351 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
22352 allow reloads of PLUS in floating point/VSX registers.
22353
22354 2015-03-11 Junmo Park <junmoz.park@samsung.com>
22355
22356 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
22357 crypto_sha256_fast.
22358 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
22359
22360 2015-03-11 Richard Biener <rguenther@suse.de>
22361
22362 PR tree-optimization/65310
22363 * tree-sra.c (build_ref_for_offset): Also preserve larger
22364 alignment.
22365
22366 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
22367
22368 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
22369
22370 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22371
22372 PR target/65368
22373 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
22374 new define_expand.
22375 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
22376
22377 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22378
22379 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
22380 (sem_function::equals_wpa): ... here.
22381
22382 2015-03-10 Marek Polacek <polacek@redhat.com>
22383 Jakub Jelinek <jakub@redhat.com>
22384
22385 PR sanitizer/65367
22386 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
22387 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
22388 separately.
22389
22390 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22391
22392 PR target/65286
22393 * config/rs6000/t-linux: For powerpc64* target set
22394 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
22395
22396 2015-03-10 Richard Biener <rguenther@suse.de>
22397
22398 PR middle-end/44563
22399 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
22400 for redirect_all_calls.
22401
22402 2015-03-10 Marek Polacek <polacek@redhat.com>
22403
22404 * gdbinit.in (pcfun): Define and document.
22405
22406 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
22407
22408 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
22409 of libgomp-plugin.h.
22410 (find_target_compiler): Support a case when the path to gcc is
22411 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
22412 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
22413 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
22414 libgomp-plugin.h.
22415 (main): Use GCC_INSTALL_NAME as target_driver_name.
22416 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
22417 define.
22418 (mkoffload.o): Remove obsolete include path and defines.
22419 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
22420
22421 2015-03-10 Richard Biener <rguenther@suse.de>
22422
22423 PR middle-end/63155
22424 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22425 * tree-ssa-coalesce.c: Include timevar.h.
22426 (attempt_coalesce): Handle graph being NULL.
22427 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22428 Split out abnormal coalescing to ...
22429 (perform_abnormal_coalescing): ... this function.
22430 (coalesce_ssa_name): Perform abnormal coalescing without computing
22431 live/conflict.
22432 (verify_ssa_coalescing_worker): New function.
22433 (verify_ssa_coalescing): Likewise.
22434
22435 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
22436
22437 PR target/65296
22438 * config.gcc (extra_options) [avr]: Remove.
22439 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
22440 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
22441 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
22442
22443 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
22444 (-mmcu=): Add Var and MissingArgError properties.
22445 (-march=): Remove.
22446 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
22447 * config/avr/t-multilib: Regenerate.
22448 * config/avr/specs.h: New file.
22449 * config/avr/driver-avr.c: New file.
22450 * config/avr/genopt.sh: Remove file.
22451 * config/avr/avr-tables.opt: Remove file.
22452 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
22453 * config/avr/avr-c.c: Same.
22454 * avr-arch.h: Same.
22455 (avr_current_device): Remove proto.
22456 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
22457 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
22458 (EXTRA_SPEC_FUNCTIONS): Define.
22459 (avr_devicespecs_file): New specs function proto.
22460 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
22461 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
22462 (avr_current_device): Remove definition and usage.
22463 (avr_set_core_architecture): New static function.
22464 (avr_option_override): Use it.
22465 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
22466 (mcu_name): New static array.
22467 (comparator, avr_archs_str, avr_mcus_str): New static functions.
22468 (avr_inform_devices, avr_inform_core_architectures): New functions.
22469 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
22470 (avrlibc.h) [WITH_AVRLIBC]: Include.
22471 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
22472 (print_mcu): Rewrite from scratch.
22473 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
22474 Forward to avr-specific specs defined in device-specs file.
22475 * config/avr/t-avr (driver-avr.o): New rule.
22476 (avr-devices.o): Depend on avr-arch.h.
22477 (avr-mcus): No more depend on avr-tables.opt.
22478 (avr-tables.opt): Remove rule.
22479 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
22480
22481 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22482
22483 * c-family/c.opt (fchkp-use-wrappers): New.
22484 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
22485 (chkp_wrap_function): New.
22486 (chkp_build_instrumented_fndecl): Support wrapped
22487 functions.
22488 * doc/invoke.texi (-fcheck-pointer-bounds): New.
22489 (-fchkp-check-incomplete-type): New.
22490 (-fchkp-first-field-has-own-bounds): New.
22491 (-fchkp-narrow-bounds): New.
22492 (-fchkp-narrow-to-innermost-array): New.
22493 (-fchkp-optimize): New.
22494 (-fchkp-use-fast-string-functions): New.
22495 (-fchkp-use-nochk-string-functions): New.
22496 (-fchkp-use-static-bounds): New.
22497 (-fchkp-use-static-const-bounds): New.
22498 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
22499 (-fchkp-check-read): New.
22500 (-fchkp-check-write): New.
22501 (-fchkp-store-bounds): New.
22502 (-fchkp-instrument-calls): New.
22503 (-fchkp-instrument-marked-only): New.
22504 (-fchkp-use-wrappers): New.
22505 (-static-libmpx): New.
22506 (-static-libmpxwrappers): New.
22507
22508 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22509
22510 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
22511 (CHKP_SPEC): Add wrappers library.
22512 * c-family/c.opt (static-libmpxwrappers): New.
22513
22514 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22515
22516 * config/i386/linux-common.h (LIBMPX_LIBS): New.
22517 (LIBMPX_SPEC): New.
22518 (CHKP_SPEC): New.
22519 * gcc.c (CHKP_SPEC): New.
22520 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
22521 * c-family/c.opt (static-libmpx): New.
22522
22523 2015-03-10 Richard Biener <rguenther@suse.de>
22524
22525 PR middle-end/44563
22526 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
22527 for compare_type.
22528 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
22529 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
22530 (cgraph_add_edge_to_call_site_hash): Likewise.
22531 (cgraph_node::get_edge): Likewise.
22532 (cgraph_edge::set_call_stmt): Likewise.
22533 (cgraph_edge::remove_caller): Likewise.
22534
22535 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
22536
22537 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
22538 (callee_saved_gpr_regs_size): ... this.
22539 (callee_saved_regs_first_regno): Rename to ...
22540 (callee_saved_first_gpr_regno): ... this.
22541 (callee_saved_regs_last_regno) Rename to ...
22542 (callee_saved_last_gpr_regno): ... this.
22543 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
22544 variables.
22545 (nds32_initial_elimination_offset): Likewise.
22546 (nds32_expand_prologue): Likewise.
22547 (nds32_expand_epilogue): Likewise.
22548 (nds32_expand_prologue_v3push): Likewise.
22549 (nds32_expand_epilogue_v3pop): Likewise.
22550 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
22551 Adjust renamed variables.
22552 (nds32_output_stack_pop): Likewise.
22553
22554 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
22555
22556 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
22557 code in comment.
22558
22559 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22560
22561 PR rtl-optimization/65321
22562 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
22563 than shift mode.
22564 * var-tracking.c (use_narrower_mode): Likewise.
22565
22566 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22567
22568 PR tree-optimization/65355
22569 * varasm.c (notice_global_symbol): Do not produce RTL.
22570 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
22571 anchor.
22572 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
22573 check for section anchors.
22574
22575 2015-03-10 Alan Modra <amodra@gmail.com>
22576
22577 PR target/65286
22578 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
22579 to be single-arch by default. Set cpu_is_64bit for powerpc64
22580 given --with-cpu=native.
22581 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
22582 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
22583 and powerpc64le.
22584 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
22585 rs6000_isa_flags rather than TARGET_64BIT.
22586
22587 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
22588 Kaz Kojima <kkojima@gcc.gnu.org>
22589
22590 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
22591
22592 2015-03-09 Jakub Jelinek <jakub@redhat.com>
22593
22594 PR lto/65361
22595 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
22596 on a TREE_BINFO, instead use BINFO_TYPE.
22597
22598 2015-03-09 Richard Biener <rguenther@suse.de>
22599
22600 PR middle-end/65270
22601 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
22602 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
22603 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
22604 of that. When comparing dereferences compare alignment.
22605 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
22606
22607 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
22608
22609 * ipa-inline-analysis.c (check_callers): Check
22610 node->can_remove_if_no_direct_calls_and_refs_p.
22611 (growth_likely_positive): Reorganize to call
22612 can_remove_if_no_direct_calls_p later.
22613 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
22614 will_be_removed_from_program_if_no_direct_calls_p): Add
22615 will_inline parameter.
22616 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
22617 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
22618 Handle inliner case correctly.
22619
22620 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
22621
22622 PR tree-optimization/63743
22623 * cfgexpand.c (reorder_operands): Also reorder if only second operand
22624 had its definition forwarded by TER.
22625
22626 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
22627
22628 PR lto/65316
22629 * ipa-utils.h (types_odr_comparable): Add strict argument.
22630 * ipa-devirt.c: Fix whitespace;
22631 (odr_hasher): Remove.
22632 (odr_name_hasher, odr_vtable_hasher): New hashers.
22633 (can_be_name_hashed_p): New predicate.
22634 (hash_type_name): remove.
22635 (hash_odr_name): New.
22636 (odr_name_hasher::hash): new.
22637 (can_be_vtable_hashed_p): New.
22638 (hash_odr_vtable): New.
22639 (odr_vtable_hasher::hash): New.
22640 (types_same_for_odr): Add strict parameter.
22641 (types_odr_comparable): Likewise.
22642 (odr_name_hasher::equal): New.
22643 (odr_vtable_hasher::equal): New.
22644 (odr_name_hasher::remove): New.
22645 (odr_hash_type): Change to hash_table<odr_name_hasher>.
22646 (odr_vtable_hash_type): New.
22647 (odr_vtable_hash): New.
22648 (odr_subtypes_equivalent_p): Do strict comparsion.
22649 (add_type_duplicate): Merge type names; cleanup; avoid type
22650 duplicates.
22651 (register_odr_type): Initialize vtable hash.
22652 (build_type_inheritance_graph): Likewise
22653 (get_odr_type): Reorg to use two hashes.
22654 (dump_possible_polymorphic_call_targets): Move sanity check after debug
22655 output.
22656 (ipa_devirt): Dump type_inheritance_graph.
22657 (types_same_for_odr): Add strict mode.
22658
22659 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22660
22661 PR ipa/65334
22662 * cgraph.h (symtab_node): Add definition_alignment,
22663 can_increase_alignment_p and increase_alignment.
22664 * symtab.c (symtab_node::can_increase_alignment_p,
22665 increase_alignment_1, symtab_node::increase_alignment,
22666 symtab_node::definition_alignment): New.
22667 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
22668 can_increase_alignment_p.
22669 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
22670 * tree-vect-stmts.c (ensure_base_align): Likewise.
22671 * varasm.c (function_section_1): Use definition_alignment.
22672 (assemble_start_function): Likewise.
22673 (emit_local): likewise.
22674 (build_constant_desc): Likewsie.
22675 (output_constant_def_contents): Likewise.
22676 (place_block_symbol): Likewise.
22677 (output_object_block): Likewise.
22678
22679 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22680
22681 PR ipa/65316
22682 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
22683 when outputting debug.
22684
22685 2015-03-07 Marek Polacek <polacek@redhat.com>
22686 Martin Uecker <uecker@eecs.berkeley.edu>
22687
22688 PR sanitizer/65280
22689 * doc/invoke.texi: Update description of -fsanitize=bounds.
22690
22691 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
22692
22693 * tree-ssa-phiopt.c (neg_replacement): Remove.
22694 (tree_ssa_phiopt_worker): Remove negate optimization.
22695
22696 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22697
22698 PR ipa/65302
22699 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
22700
22701 2015-03-06 Richard Biener <rguenther@suse.de>
22702
22703 PR middle-end/64928
22704 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
22705 and liveout_obstack members.
22706 (calculate_live_on_exit): Remove.
22707 (calculate_live_ranges): Change declaration.
22708 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
22709 (new_tree_live_info): Adjust.
22710 (calculate_live_ranges): Delete livein when not wanted.
22711 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
22712 Deal with partly deleted live info.
22713 (loe_visit_block): Remove temporary bitmap by using
22714 bitmap_ior_and_compl_into.
22715 (live_worklist): Adjust accordingly.
22716 (calculate_live_on_exit): Make static.
22717 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
22718 we do not need livein.
22719
22720 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
22721
22722 * real.c (real_from_string): Fix typo in assertion.
22723
22724 2015-03-06 Alex Velenko <alex.velenko@arm.com>
22725
22726 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
22727 the patch.
22728
22729 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22730
22731 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
22732
22733 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
22734
22735 PR target/64342
22736 * lra-assigns.c (find_hard_regno_for): Rename to
22737 find_hard_regno_for_1. Add a new parameter.
22738 (find_hard_regno_for): New function using find_hard_regno_for_1.
22739
22740 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
22741
22742 PR rtl-optimization/65067
22743 * expmed.c (store_bit_field, extract_bit_field): Reworked the
22744 strict volatile bitfield handling.
22745
22746 2015-03-05 Martin Liska <mliska@suse.cz>
22747
22748 PR ipa/65318
22749 * ipa-icf.c (sem_variable::equals): Compare variables types.
22750
22751 2015-03-05 Richard Henderson <rth@redhat.com>
22752
22753 PR target/65121
22754 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
22755 correctly check weak symbol binding.
22756
22757 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
22758
22759 PR middle-end/65315
22760 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
22761 needed alignment.
22762
22763 2015-03-05 Martin Liska <mliska@suse.cz>
22764
22765 * ipa-inline.c (inline_small_functions): Set default value to
22766 prevent warning during bootstrap.
22767 * tree.h: Add pragma guard that ignores false positives during
22768 bootstrap.
22769
22770 2015-03-05 Richard Biener <rguenther@suse.de>
22771
22772 PR tree-optimization/65310
22773 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22774 Properly preserve alignment of the base of the access.
22775
22776 2015-03-05 Richard Biener <rguenther@suse.de>
22777
22778 PR ipa/65270
22779 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
22780 Compare dependence info.
22781
22782 2015-03-05 Richard Biener <rguenther@suse.de>
22783
22784 PR middle-end/65233
22785 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
22786 tree-into-ssa.h.
22787 (walk_ssa_copies): Revert last chage. Instead do not walk
22788 SSA names registered for SSA update.
22789
22790 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22791
22792 PR ipa/65270
22793 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
22794 vtable references for their containing type.
22795 (sem_function::equals_wpa): Compare TYPE_RESTRICT
22796 and type attributes.
22797
22798 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
22799
22800 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
22801 before negating it.
22802 * stor-layout.c (finalize_record_size): Revert latest change.
22803
22804 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
22805
22806 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
22807
22808 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22809
22810 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
22811 for correct comdat handling.
22812 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
22813 Likewise.
22814 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
22815 (used_from_object_file_p_worker): Remove.
22816 (cgraph_node::only_called_directly_or_alised): Add
22817 used_from_object_file_p.
22818 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
22819 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
22820 can_remove_if_no_direct_calls_and_refs_p.
22821
22822 2015-03-04 Nick Clifton <nickc@redhat.com>
22823
22824 * config/rl78/rl78.h (enum reg_class): Remove real registers from
22825 General register class.
22826 * config/rl78/rl78-real.md: Replace general register constraints
22827 with real+virtual register constraints.
22828
22829 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22830
22831 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
22832 from checking for -mhtm option.
22833
22834 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22835
22836 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
22837 (struct ipa_sra_check_caller_data): Add has_thunk field.
22838 (ipa_sra_check_caller): Check for thunk.
22839 (ipa_sra_preliminary_function_checks): Give up on function with
22840 thunks.
22841 (ipa_early_sra): Use call_for_symbol_and_aliases.
22842
22843 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
22844
22845 PR target/65249
22846 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
22847 called for __stack_chk_guard symbol.
22848
22849 2015-03-03 DJ Delorie <dj@redhat.com>
22850
22851 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
22852 inc/dec.
22853 (*addhi3_real): Likewise.
22854 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
22855 pattern to match incrementing memory.
22856 * config/rl78/predicates.md (rl78_1_2_operand): New.
22857 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
22858 it's the same and only mem.
22859 (rl78_alloc_physical_registers_op2): If there's effectively only
22860 one MEM, transcode it into HL.
22861 (rl78_far_p): Reject addresses that aren't legitimate.
22862
22863 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
22864
22865 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
22866 negating it.
22867
22868 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
22869
22870 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
22871
22872 Implement call0 ABI for xtensa
22873 * config/xtensa/constraints.md ("a" constraint): Include stack
22874 pointer in case of call0 ABI.
22875 ("q" constraint): Make empty in case of call0 ABI.
22876 ("D" constraint): Include stack pointer in case of call0 ABI.
22877 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
22878 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
22879 prototypes.
22880 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
22881 variable.
22882 (xtensa_regno_to_class): Make it a local variable in the
22883 function xtensa_regno_to_class.
22884 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
22885 macro, function prototype and implementation.
22886 (reg_nonleaf_alloc_order): Make it a local variable in the
22887 function order_regs_for_local_alloc.
22888 (xtensa_conditional_register_usage): New function.
22889 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
22890 (xtensa_valid_move): Allow direct moves to stack pointer
22891 register in call0 ABI.
22892 (xtensa_setup_frame_addresses): Only spill register windows in
22893 windowed ABI.
22894 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
22895 call0 ABI respectively.
22896 (xtensa_function_arg_1): Only mark a7 register for copying in
22897 windowed ABI.
22898 (xtensa_call_save_reg): New function.
22899 (compute_frame_size): Add space for callee saved register
22900 storage to the frame size in call0 ABI.
22901 (xtensa_expand_prologue): Generate code to set up stack frame
22902 and save callee-saved registers in call0 ABI.
22903 (xtensa_expand_epilogue): New function.
22904 (xtensa_set_return_address): New function.
22905 (xtensa_return_addr): Calculate return address in call0 ABI.
22906 (xtensa_builtin_saveregs): Only mark a7 register for copying and
22907 emit copying code in windowed ABI.
22908 (order_regs_for_local_alloc): Add preferred register allocation
22909 order for non-leaf function in call0 ABI.
22910 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
22911 (xtensa_asm_trampoline_template): Add trampoline generation for
22912 call0 ABI.
22913 (xtensa_trampoline_init): Add trampoline initialization for
22914 call0 ABI.
22915 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
22916 functions.
22917 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
22918 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
22919 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
22920 ABI call-used registers.
22921 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
22922 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
22923 call0 ABI.
22924 (REG_CLASS_CONTENTS): Include all registers into the preferred
22925 reload registers set, adjust the set in the
22926 xtensa_conditional_register_usage.
22927 (xtensa_regno_to_class): Drop variable declaration.
22928 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
22929 function.
22930 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
22931 respectively.
22932 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
22933 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
22934 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
22935 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
22936 location in call0 ABI.
22937 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
22938 stack adjustment size when handling exception.
22939 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
22940 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
22941 definitions.
22942 ("return" pattern): Generate ret.n/ret in call0 ABI.
22943 ("epilogue" pattern): Expand epilogue.
22944 ("nonlocal_goto" pattern): Use default in call0 ABI.
22945 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
22946 emit eh_set_a0_* depending on ABI.
22947 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
22948 ("eh_set_a0_call0", "blockage"): New patterns.
22949
22950 2015-03-03 Martin Liska <mliska@suse.cz>
22951
22952 PR ipa/65287
22953 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
22954
22955 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22956
22957 PR 65138/target
22958 * config/rs6000/rs6000-tables.opt: Regenerate table.
22959
22960 2015-03-03 Renlin Li <renlin.li@arm.com>
22961
22962 * doc/md.texi (@item ^): Change ? into ^.
22963
22964 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
22965
22966 * doc/tm.texi: Regenerated.
22967
22968 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
22969
22970 * builtins.c (expand_builtin_return_addr): Add
22971 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
22972 surrounding #ifdef.
22973 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
22974 definition to 1.
22975 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
22976 Likewise.
22977 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
22978 undefined.
22979 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
22980 paragraph.
22981
22982 2015-03-03 Martin Jambor <mjambor@suse.cz>
22983 Eric Botcazou <ebotcazou@adacore.com>
22984
22985 * tree-sra.c (ipa_sra_check_caller_data): New type.
22986 (has_caller_p): Removed.
22987 (ipa_sra_check_caller): New function.
22988 (ipa_sra_preliminary_function_checks): Use it.
22989
22990 2015-03-03 Martin Liska <mliska@suse.cz>
22991
22992 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
22993 instead of if branch.
22994
22995 2015-03-03 Martin Liska <mliska@suse.cz>
22996
22997 PR ipa/65282
22998 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
22999
23000 2015-03-23 Jeff Law <law@redhat.com>
23001
23002 PR tree-optimization/65241
23003 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
23004 hash table if INSERT is true.
23005
23006 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23007
23008 PR target/65296
23009 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
23010
23011 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23012
23013 PR target/64331
23014 * config/avr/avr.c (context.h, tree-pass.h): Include them.
23015 (avr_pass_data_recompute_notes): New static variable.
23016 (avr_pass_recompute_notes): New class.
23017 (avr_register_passes): New static function.
23018 (avr_option_override): Call it.
23019
23020 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23021
23022 Fix various problems with specs file generation.
23023
23024 PR target/65296
23025 * config.gcc (extra_gcc_objs) [avr]: Remove.
23026 * config/avr/driver-avr.c: Remove file.
23027 * config/avr/t-avr (driver-avr.o): Remove rule.
23028 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
23029 INCLUDES to build. Depend on TM_H.
23030 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
23031 build warnings. Fix non-matching types and non-existing %-codes.
23032 (tm.h): Include.
23033 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
23034 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
23035 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
23036 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
23037 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
23038 (LIBGCC_SPEC): Remove definitions.
23039
23040 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
23041
23042 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
23043 to create a register in testing mode.
23044
23045 2015-03-03 Martin Liska <mliska@suse.cz>
23046 Jan Hubicka <hubicka@ucw.cz>
23047
23048 PR ipa/65263
23049 * cgraph.c (cgraph_node::has_thunk_p): New function.
23050 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
23051 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
23052 (sem_function::merge): Assert is changed.
23053
23054 2015-03-03 Martin Liska <mliska@suse.cz>
23055 Martin Jambor <mjambor@suse.cz>
23056
23057 PR ipa/65087
23058 * ipa-icf.c (sem_item_optimizer::execute): Change function
23059 return value to boolean.
23060 (sem_item_optimizer::merge_classes): Likewise.
23061 (ipa_icf_driver): Return TODO_remove_functions in case there's
23062 a merge operation processed.
23063 * ipa-icf.h: Change function return value to boolean.
23064
23065 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23066
23067 PR 65138/target
23068 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
23069 processor type for 64-bit little endian PowerPC.
23070
23071 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23072 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
23073 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
23074 printing built-in mask so it does not pass NULL pointers.
23075
23076 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
23077 -mcpu=powerpc64le.
23078
23079 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
23080
23081 PR target/58158
23082 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
23083 !ISA_HAS_FP_CONDMOVE.
23084
23085 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
23086
23087 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
23088 reload_completed.
23089
23090 2015-03-02 Ulrich Drepper <drepper@gmail.com>
23091
23092 * doc/invoke.texi (Options for Code Generation Conventions):
23093 Fix URL of DSO paper.
23094
23095 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23096
23097 PR ipa/65130
23098 * ipa-inline.c (check_callers): Looks for recursion.
23099 (inline_to_all_callers): Give up on uninlinable or recursive edges.
23100 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
23101 summary of inline clones.
23102 (do_estimate_growth_1): Fix recursion check.
23103
23104 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23105
23106 PR ipa/64988
23107 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
23108 comdat groups.
23109
23110 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23111 Aldy Hernandez <aldyh@redhat.com>
23112
23113 PR lto/65276
23114 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
23115 when checking TYPE_BINFO.
23116
23117 2015-03-02 Richard Biener <rguenther@suse.de>
23118
23119 PR ipa/65270
23120 * ipa-icf-gimple.c: Include builtins.h.
23121 (func_checker::compare_memory_operand): Compare base alignment.
23122
23123 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
23124
23125 PR target/65184
23126 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
23127 are never passed by reference.
23128
23129 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
23130
23131 PR target/65183
23132 * tree-chkp.c (chkp_check_lower): Don't check against
23133 zero bounds for already instrumented functions.
23134 (chkp_check_upper): Likewise.
23135 (chkp_fini): Clean pass local data to avoid wrong reusage.
23136
23137 2015-02-28 Martin Liska <mliska@suse.cz>
23138 Jan Hubicka <hubicka@ucw.cz>
23139
23140 * ipa-icf.c (sem_variable::equals): Improve debug output;
23141 get variable constructor.
23142 (sem_variable::parse): Do not filter out too early; give up on
23143 volatile and register vars.
23144 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
23145 variables.
23146 * ipa-icf.h (sem_variable::init): Do not set ctor.
23147 (sem_variable::ctor): Remove.
23148
23149 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
23150
23151 PR middle-end/65233
23152 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
23153
23154 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23155
23156 * ipa-icf.c: Include stor-layout.h
23157 (sem_function::compare_cgraph_references): Rename to ...
23158 (sem_item::compare_cgraph_references): ... this one.
23159 (sem_variable::equals_wpa): New function
23160 (sem_variable::equals): Do not check stuff already verified by
23161 equals_wpa.
23162 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
23163 * ipa-icf.h (sem_item): Add compare_cgraph_references.
23164 (sem_function): Remove compare_cgraph_references.
23165 (sem_variable): Turns equals_wpa into non-inline.
23166
23167 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23168
23169 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
23170 (sem_item::add_expr): New function.
23171 (sem_function::hash_stmt): Handle operands of most statements.
23172 (sem_variable::get_hash): Hash the actual constructor.
23173 * ipa-icf.h (sem_item): Add add_expr.
23174 (sem_function): Update prototype of hash_stmt
23175
23176 2015-02-28 Martin Liska <mliska@suse.cz>
23177 Jan Hubicka <hubicka@ucw.cz>
23178
23179 PR ipa/65245
23180 * ipa-icf-gimple.c (func_checker::compare_function_decl):
23181 Remove.
23182 (func_checker::compare_variable_decl): Skip symtab vars.
23183 (func_checker::compare_cst_or_decl): Update.
23184 * ipa-icf.c (sem_function::parse): Do not consider aliases.
23185 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
23186 use correct symtab predicates.
23187 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
23188 (sem_variable::parse): Update comment.
23189 (sem_item_optimizer::build_graph): Consider ultimate aliases
23190 for references.
23191
23192 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23193
23194 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
23195 of OBJ_TYPE_REF.
23196
23197 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23198
23199 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
23200 (sem_variable::merge) Likewise.
23201
23202 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23203
23204 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
23205 target; also match flag_ipa_devirt.
23206
23207 2015-03-01 Martin Liska <mliska@suse.cz>
23208 Jan Hubicka <hubicka@ucw.cz>
23209
23210 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
23211 Validate variable alignment.
23212 * ipa-icf.c (sem_function::equals_private): Be more precise
23213 about non-common function attributes.
23214 (sem_variable::equals): Likewise.
23215
23216 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23217
23218 PR ipa/65237
23219 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
23220 across COMDAT group boundary.
23221
23222 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23223
23224 PR ipa/65232
23225 * ipa-icf.c (clear_decl_rtl): New function.
23226 (sem_function::merge): Clear RTL before forming alias.
23227 (sem_variable::merge): Clear RTL before forming alias.
23228
23229 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23230
23231 PR ipa/65236
23232 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
23233
23234 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
23235
23236 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
23237 to neon_to_gp<q>.
23238
23239 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23240
23241 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
23242 a typo in the description.
23243
23244 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23245
23246 PR target/64317
23247 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23248 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23249 * lra-constraints.c: Include "params.h".
23250 (EBB_PROBABILITY_CUTOFF): Use
23251 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
23252 (lra_inheritance): Use '<' instead of '<=' for
23253 EBB_PROBABILITY_CUTOFF.
23254 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
23255 Document change.
23256
23257 2015-02-27 Martin Liska <mliska@suse.cz>
23258
23259 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
23260 vector length condition.
23261
23262 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
23263
23264 * doc/extend.texi (x86 transactional memory intrinsics):
23265 Reorganize discussion of _xbegin. Clarify that the return
23266 value is a bit mask. Expand example and move to end of section.
23267
23268 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23269 Aldy Hernandez <aldyh@redhat.com>
23270
23271 PR rtl-optimization/65220
23272 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
23273
23274 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23275
23276 PR target/65032
23277 * lra-remat.c (update_scratch_ops): New.
23278 (do_remat): Call it.
23279 * lra.c (lra_register_new_scratch_op): New. Take code from ...
23280 (remove_scratches): ... here.
23281 * lra-int.h (lra_register_new_scratch_op): New prototype.
23282
23283 2015-02-27 Marek Polacek <polacek@redhat.com>
23284
23285 PR c/65040
23286 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
23287 -Wformat-signedness anymore.
23288
23289 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23290
23291 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
23292 function.
23293 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
23294
23295 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23296
23297 * config/s390/s390.c (enum s390_builtin):
23298 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
23299 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
23300 (s390_init_builtins): Generate new builtin functions.
23301 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
23302 (s390_sfpc, s390_efpc): New pattern definitions.
23303
23304 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23305
23306 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
23307 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
23308 (s390_builtin_decls): New array.
23309 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
23310 (s390_builtin_decl): New function.
23311 (TARGET_BUILTIN_DECL): Define macro.
23312
23313 2015-02-27 Richard Biener <rguenther@suse.de>
23314
23315 PR middle-end/63175
23316 * builtins.c (get_object_alignment_2): Make sure to re-apply
23317 the ANDed mask after recursing to its operand gets us a new
23318 misalignment bit position.
23319
23320 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
23321 Martin Liska <mliska@suse.cz>
23322
23323 PR bootstrap/65150
23324 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
23325 Use address_matters_p.
23326 (redirect_all_callers, set_addressable): New functions.
23327 (sem_function::merge): Reorganize and fix merging issues.
23328 (sem_variable::merge): Likewise.
23329 (sem_variable::compare_sections): Remove.
23330 * common.opt (fmerge-all-constants, fmerge-constants): Remove
23331 Optimization flag.
23332 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
23333 redirect them.
23334 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
23335 decl is used.
23336 (address_matters_1): New function.
23337 (symtab_node::address_matters_p): New function.
23338 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
23339 check for merged flag.
23340 * cgraph.h (address_matters_p): Declare.
23341 (symtab_node::address_taken_from_non_vtable_p): Remove.
23342 (symtab_node::address_can_be_compared_p): New method.
23343 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
23344 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
23345 Remove.
23346 (comdat_can_be_unshared_p_1) Use address_matters_p.
23347 (update_vtable_references): Fix formating.
23348 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
23349 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
23350 * cgraphclones.c: Preserve merged and icf_merged flags.
23351
23352 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
23353
23354 * doc/extend.texi (Function Attributes): Fix spelling and typos.
23355 (Label Attributes): Likewise.
23356 (Cilk Plus Builtins): Likewise.
23357 (ARC SIMD Built-in Functions): Likewise.
23358 (ARM C Language Extensions (ACLE)): Likewise.
23359 (PowerPC Built-in Functions): Likewise.
23360 (PowerPC Hardware Transactional Memory Built-in Functions):
23361 Likewise.
23362
23363 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23364
23365 PR tree-optimization/65216
23366 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
23367 new stmt and new SSA_NAME for lhs whenever the arguments have
23368 changed and weren't just swapped. Fix comment typo.
23369
23370 PR tree-optimization/65215
23371 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
23372 for PDP endian targets.
23373 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
23374 Fix up formatting issues.
23375 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
23376 size is smaller than the original, adjust MEM_REF offset by the
23377 difference of sizes. Use is_gimple_mem_ref_addr instead of
23378 is_gimple_min_invariant test to avoid adding address temporaries.
23379
23380 2015-02-26 Martin Liska <mliska@suse.cz>
23381 Jan Hubicka <hubicka@ucw.cz>
23382
23383 PR ipa/64693
23384 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
23385 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
23386 (sem_item_optimizer::process_cong_reduction): Include division by
23387 sensitive references.
23388 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
23389 * ipa-ref.c (ipa_ref::address_matters_p): New function.
23390 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
23391
23392 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
23393
23394 PR target/65192
23395 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
23396 Remove.
23397 * config/avr/avr.c: Same.
23398 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
23399 Refuse any constant address not in 0..0xbf.
23400 * config/avr/avr.md (*mov<mode>, *movsf): Remove
23401 tiny_valid_direct_memory_access_range from insn conditions.
23402 (mov<mode>): Don't special-case expansion of avrtiny addresses.
23403
23404 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
23405
23406 PR target/61142
23407 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
23408 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
23409 * config/sh/predicates.md (const_logical_operand): New predicate.
23410 * config/sh/sh.md: Add new peephole2 patterns.
23411
23412 2015-02-26 Marek Polacek <polacek@redhat.com>
23413
23414 PR ipa/65008
23415 * ipa-inline.c (early_inliner): Recompute inline parameters.
23416
23417 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23418
23419 PR target/65171
23420 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
23421 instructions with TImode operands are included in the analysis.
23422
23423 2015-02-26 Sebastian Pop <s.pop@samsung.com>
23424
23425 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
23426 of an EDGE_FSM_THREAD.
23427
23428 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
23429
23430 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
23431
23432 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
23433
23434 PR debug/46102
23435 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
23436
23437 2015-02-26 Sebastian Pop <s.pop@samsung.com>
23438
23439 PR tree-optimization/65048
23440 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
23441 (thread_through_all_blocks): Call valid_jump_thread_path.
23442 Remove invalid FSM jump-thread paths.
23443
23444 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23445
23446 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
23447 (ipa_write_optimization_summaries): Likewise.
23448 * tree-streamer.h: Include data-streamer.h.
23449 (streamer_mode_table): Declare extern variable.
23450 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
23451 * lto-streamer-out.c (lto_output_init_mode_table,
23452 lto_write_mode_table): New functions.
23453 (produce_asm_for_decls): Call lto_write_mode_table when streaming
23454 offloading LTO.
23455 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
23456 (lto_create_simple_input_block): Add mode_table argument to the
23457 lto_input_block constructors.
23458 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
23459 Likewise.
23460 * data-streamer-in.c (string_for_index): Likewise.
23461 * ipa-inline-analysis.c (inline_read_section): Likewise.
23462 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
23463 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
23464 * lto-streamer-in.c (lto_read_body_or_constructor,
23465 lto_input_toplevel_asms): Likewise.
23466 (lto_input_mode_table): New function.
23467 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
23468 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
23469 Use bp_pack_machine_mode.
23470 * real.h (struct real_format): Add name field.
23471 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
23472 (class lto_input_block): Add mode_table member.
23473 (lto_input_block::lto_input_block): Add mode_table_ argument,
23474 initialize mode_table.
23475 (struct lto_file_decl_data): Add mode_table field.
23476 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
23477 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
23478 unpack_ts_decl_common_value_fields,
23479 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
23480 * tree-streamer.c (streamer_mode_table): New variable.
23481 * real.c (ieee_single_format, mips_single_format,
23482 motorola_single_format, spu_single_format, ieee_double_format,
23483 mips_double_format, motorola_double_format,
23484 ieee_extended_motorola_format, ieee_extended_intel_96_format,
23485 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
23486 ibm_extended_format, mips_extended_format, ieee_quad_format,
23487 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
23488 decimal_single_format, decimal_double_format, decimal_quad_format,
23489 ieee_half_format, arm_half_format, real_internal_format): Add name
23490 field.
23491 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
23492
23493 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
23494
23495 PR target/65161
23496 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
23497 reordering for selective scheduling.
23498
23499 2015-02-26 Terry Guo <terry.guo@arm.com>
23500
23501 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
23502 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
23503 (arm_arch_no_volatile_ce): Declare new global variable.
23504 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
23505 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
23506 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
23507 (TARGET_NO_VOLATILE_CE): New macro.
23508 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
23509 volatile memory access in IT block
23510
23511 2015-02-25 Kai Tietz <ktietz@redhat.com>
23512
23513 PR tree-optimization/61917
23514 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
23515 that reduc_def_stmt is null.
23516
23517 2015-02-25 Martin Liska <mliska@suse.cz>
23518
23519 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
23520 hard register variables.
23521
23522 2015-02-25 Kai Tietz <ktietz@redhat.com>
23523
23524 PR target/64212
23525 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
23526 (symtab::noninterposable_alias): Likewise.
23527
23528 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
23529
23530 PR target/65167
23531 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
23532 bounds registers.
23533 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
23534
23535 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
23536
23537 PR target/64997
23538 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
23539 as split condition; force split via '#' in output pattern.
23540
23541 2015-02-25 Richard Biener <rguenther@suse.de>
23542 Kai Tietz <ktietz@redhat.com>
23543
23544 PR tree-optimization/61917
23545 * tree-vect-loop.c (vectorizable_reduction): Allow
23546 vect_internal_def without reduction to exit graceful.
23547
23548 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
23549
23550 PR target/65196
23551 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
23552 only with NONDEBUG_INSN_P.
23553
23554 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
23555
23556 Use variadic macros with avr-log.c.
23557
23558 * config/avr/avr-protos.h (avr_vdump): New prototype.
23559 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
23560 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
23561 * config/avr/avr-log.c: Adjust comments.
23562 (avr_vdump): New function.
23563 (avr_vadump): Pass caller as 2nd argument instead of format string.
23564 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
23565 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
23566
23567 2015-02-25 Jakub Jelinek <jakub@redhat.com>
23568
23569 PR lto/64374
23570 * target.def (target_option_stream_in): New target hook.
23571 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
23572 targetm.target_option.post_stream_in if non-NULL.
23573 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
23574 * doc/tm.texi: Updated.
23575 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
23576 function.
23577 (TARGET_OPTION_POST_STREAM_IN): Redefine.
23578
23579 2015-02-24 Jeff Law <law@redhat.com>
23580
23581 PR target/65117
23582 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
23583 of operand 0 and operand 2.
23584 (zero_cost_loop_end, loop_end): Similarly.
23585
23586 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
23587
23588 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
23589 CXX_MEM_STAT_INFO.
23590
23591 2015-02-24 DJ Delorie <dj@redhat.com>
23592
23593 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
23594 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
23595 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
23596 instead of hardcoding SImode.
23597
23598 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
23599
23600 * omp-low.c (create_omp_child_function): Tag entrypoint
23601 functions with a special attribute.
23602
23603 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23604
23605 PR target/65058
23606 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
23607
23608 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
23609
23610 PR rtl-optimization/65123
23611 * lra-remat.c (operand_to_remat): Check hard regs in insn
23612 definition too.
23613
23614 2015-02-24 Nick Clifton <nickc@redhat.com>
23615
23616 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
23617 to the assembler.
23618
23619 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
23620
23621 PR libgomp/64625
23622 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
23623 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
23624 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
23625 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
23626 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
23627 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
23628 (BUILT_IN_GOACC_PARALLEL): Specify as
23629 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
23630 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
23631 * builtin-types.def
23632 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23633 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23634 Remove function types.
23635 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
23636 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23637 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23638 New function types.
23639
23640 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
23641
23642 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
23643
23644 2015-02-24 Jakub Jelinek <jakub@redhat.com>
23645
23646 PR tree-optimization/65170
23647 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
23648 if val[1] < 0, clear also val[2] and return 3.
23649
23650 2015-02-24 Alan Modra <amodra@gmail.com>
23651
23652 PR target/65172
23653 * config/rs6000/rs6000.c (get_memref_parts): Only return true
23654 when *base is a reg. Handle nested plus addresses. Simplify
23655 pre_modify test.
23656
23657 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
23658
23659 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
23660 use natural alignment when optimizing for size.
23661
23662 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
23663
23664 PR target/65153
23665 * config/sh/sh.md (movsicc_true+3): Remove peephole.
23666 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
23667 * config/sh/sh.c (replace_n_hard_rtx): Remove.
23668
23669 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
23670
23671 PR fortran/63427
23672 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
23673 too big for a wide_int. Implement missing wrapping operation.
23674
23675 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
23676
23677 PR target/65163
23678 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
23679 instead of const_int 4294901760.
23680
23681 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
23682
23683 * config/avr/t-avr: Fix typo in comment.
23684
23685 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
23686
23687 * doc/rtl.texi (fma): Clarify documentation.
23688
23689 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
23690
23691 PR debug/58123
23692 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
23693 over input_location.
23694
23695 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23696
23697 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
23698 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
23699 restrict alignments to absolute_biggest_alignment.
23700 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
23701 Define.
23702 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
23703 * doc/tm.texi: Regenerate.
23704 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
23705
23706 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
23707
23708 PR target/64172
23709 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
23710
23711 2015-02-20 Richard Biener <rguenther@suse.de>
23712
23713 PR tree-optimization/65136
23714 * tree-ssa-propagate.c: Include cfgloop.h.
23715 (replace_phi_args_in): Avoid replacing loop latch edge PHI
23716 arguments with constants.
23717
23718 2015-02-20 Jakub Jelinek <jakub@redhat.com>
23719 Martin Liska <mliska@suse.cz>
23720
23721 PR target/63892
23722 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
23723 don't try to create_thunk if stdarg_p. If
23724 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
23725 redirect_callers if possible.
23726 (sem_item_optimizer::execute): Call unregister_hooks here...
23727 (ipa_icf_driver): ... instead of here.
23728
23729 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23730
23731 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
23732 Mark operand 0 as earlyclobber in 2nd alternative.
23733 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
23734 Write negated shift amount into QI lowpart operand 0 and use it
23735 in the shift step.
23736 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23737
23738 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23739
23740 * cgraph.h (clone_function_name_1): Declare.
23741 * cgraphclones.c (clone_function_name_1): New function.
23742 (clone_function_name): Use it.
23743 * lto-partition.c: Include "stringpool.h".
23744 (must_not_rename, maybe_rewrite_identifier)
23745 (validize_symbol_for_target): New static functions.
23746 (privatize_symbol_name): Use must_not_rename.
23747 (promote_symbol): Call validize_symbol_for_target.
23748 (lto_promote_cross_file_statics): Likewise.
23749 (lto_promote_statics_nonwpa): Likewise.
23750
23751 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
23752
23753 PR target/64452
23754 * config/avr/avr.md (pushhi_insn): New insn.
23755 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
23756
23757 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23758 Jakub Jelinek <jakub@redhat.com>
23759
23760 * tree-streamer.c (preload_common_nodes): Don't preload
23761 TI_VA_LIST* for offloading.
23762 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
23763 in_lto_p.
23764
23765 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
23766
23767 * config/pa/pa.c (pa_emit_move_sequence): Always force
23768 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
23769 note on insn.
23770
23771 * config/pa/pa.c (pa_reloc_rw_mask): New function.
23772 (TARGET_ASM_RELOC_RW_MASK): Define.
23773 (pa_cannot_force_const_mem): Revert previous change.
23774
23775 2015-02-19 Martin Jambor <mjmabor@suse.cz>
23776 Jan Hubicka <hubicka@ucw.cz>
23777
23778 PR ipa/65028
23779 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
23780 across jump functions.
23781
23782 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
23783
23784 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
23785
23786 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
23787
23788 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
23789
23790 2015-02-19 Richard Henderson <rth@redhat.com>
23791
23792 PR middle-end/65074
23793 * varasm.c (default_binds_local_p_2): Don't test node->definition;
23794 test DECL_EXTERNAL independent of symtab_node.
23795
23796 2015-02-19 Jakub Jelinek <jakub@redhat.com>
23797
23798 PR lto/65012
23799 * varpool.c (varpool_node::get_constructor): Return early
23800 if this->lto_file_data is NULL.
23801
23802 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23803
23804 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
23805 (rank_for_schedule_debug): Update.
23806 (ready_sort): Make static. Move sorting logic to ...
23807 (ready_sort_debug, ready_sort_real): New static functions.
23808 (schedule_block): Sort both debug insns and real insns in preparation
23809 for ready list trimming. Improve debug output.
23810 * sched-int.h (ready_sort): Remove global declaration.
23811
23812 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
23813
23814 * ipa-icf.c (sem_function::equals_private): Adjust.
23815 (sem_function::bb_dict_test): Take a vec<int> * instead of
23816 auto_vec<int>.
23817 * ipa-icf.h (bb_dict_test): Likewise.
23818
23819 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23820
23821 PR gcov-profile/64634
23822 * tree-eh.c (frob_into_branch_around): Fix up typos
23823 in function comment.
23824 (lower_catch): Put eh_seq resulting from EH lowering of
23825 the cleanup sequence after the cleanup rather than before it.
23826
23827 2015-02-18 Tom de Vries <tom@codesourcery.com>
23828
23829 * common.opt (fstdarg-opt): New option.
23830 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
23831 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
23832 (@item -fstdarg-opt): New item.
23833
23834 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
23835
23836 PR target/65064
23837 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
23838 for common symbols.
23839
23840 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23841
23842 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
23843 insn-modes.h.
23844 (ALL_HOST_OBJS): Add mkoffload.o.
23845 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
23846
23847 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
23848
23849 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
23850 (compare_virtual_tables): Be smarter about skipping typeinfos;
23851 do sane output on virtual table table mismatch.
23852 (warn_odr): Be ready for forward declarations of enums;
23853 output sane info on base mismatch and virtual table mismatch.
23854 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
23855 when only one type is polymorphic.
23856 (get_odr_type): Fix hashtable corruption.
23857 (dump_odr_type): Dump mangled names.
23858
23859 2015-02-18 Richard Biener <rguenther@suse.de>
23860
23861 PR tree-optimization/65063
23862 * tree-predcom.c (determine_unroll_factor): Return 1 if we
23863 have replaced looparound PHIs.
23864
23865 2015-02-18 Martin Liska <mliska@suse.cz>
23866
23867 * lto-streamer.c (lto_streamer_init): Encapsulate
23868 streamer_check_handled_ts_structures with checking macro.
23869
23870 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23871
23872 PR ipa/65087
23873 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
23874 section if !implicit_section.
23875 (cgraph_node::create_version_clone_with_body): Likewise.
23876 * trans-mem.c (ipa_tm_create_version): Likewise.
23877
23878 2015-02-18 Richard Biener <rguenther@suse.de>
23879
23880 PR tree-optimization/62217
23881 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
23882 into BIVs.
23883
23884 2015-02-18 Marek Polacek <polacek@redhat.com>
23885
23886 PR sanitizer/65081
23887 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
23888 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
23889 is in range [-16K, -1]. Don't issue run-time error if
23890 (ptr > ptr + offset).
23891
23892 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
23893
23894 * doc/install.texi (nvptx-*-none): New section.
23895 * doc/invoke.texi (Nvidia PTX Options): Likewise.
23896 * config/nvptx/nvptx.opt: Update.
23897
23898 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
23899 (access_check): New functions, copied from
23900 config/i386/intelmic-mkoffload.c.
23901 (main): For non-installed testing, look in all COMPILER_PATHs for
23902 GCC_INSTALL_NAME.
23903
23904 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
23905
23906 2015-02-18 Andrew Pinski <apinski@cavium.com>
23907 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
23908
23909 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
23910 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
23911
23912 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
23913
23914 * ipa-visibility.c (function_and_variable_visibility): Only
23915 check locality if node is not already local.
23916 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23917 call_for_symbol_and_aliases instead of
23918 call_for_symbol_thunks_and_aliases.
23919 (ipa_inline): Likewise.
23920 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23921 first walk aliases.
23922 * ipa.c (symbol_table::remove_unreachable_nodes): Use
23923 call_for_symbol_and_aliases.
23924 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23925 (ipa_propagate_frequency_1): Use it; use opt_for_fn
23926 (ipa_propagate_frequency): Update.
23927 (ipa_profile): Add opt_for_fn gueards.
23928
23929 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
23930
23931 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
23932 * doc/invoke.texi (SH options): Document it.
23933 * config/sh/sh.c (sh_insn_length_adjustment): Check
23934 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
23935
23936 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
23937
23938 * common.opt (fipa-cp-alignment): New.
23939 * ipa-cp.c (ipcp_store_alignment_results): Check
23940 flag_ipa_cp_alignment.
23941 * opts.c (default_options_table): Enable -fipa-cp-alignment for
23942 -O2.
23943 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
23944 * doc/invoke.texi: Document -fipa-cp-alignment.
23945
23946 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
23947
23948 PR target/64793
23949 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
23950 to nil. Adjust comments.
23951
23952 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
23953
23954 * ipa-visibility.c (function_and_variable_visibility): Only
23955 check locality if node is not already local.
23956 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23957 call_for_symbol_and_aliases instead of
23958 call_for_symbol_thunks_and_aliases.
23959 (ipa_inline): Likewise.
23960 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23961 first walk aliases.
23962 * ipa.c (symbol_table::remove_unreachable_nodes): Use
23963 call_for_symbol_and_aliases.
23964 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23965 (ipa_propagate_frequency_1): Use it; use opt_for_fn
23966 (ipa_propagate_frequency): Update.
23967 (ipa_profile): Add opt_for_fn guards.
23968
23969 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
23970
23971 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
23972 skipping of "strange" tokens.
23973
23974 2015-02-17 Jeff Law <law@redhat.com>
23975
23976 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
23977 obsolete comment.
23978
23979 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
23980
23981 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
23982 as forcing a HARD_DEP between instructions, thereby
23983 disallowing rewriting to break dependencies.
23984
23985 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
23986
23987 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
23988 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
23989 variables in boundary that have no inlitalizer encoded and are
23990 not aliases.
23991 * varasm.c (default_binds_local_p_2): External definitions do not
23992 count as definitions here.
23993
23994 2015-02-16 Jeff Law <law@redhat.com>
23995
23996 PR tree-optimization/64823
23997 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
23998 statements.
23999 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24000 threading through blocks with PHIs, but no statements.
24001 (thread_through_normal_block): Distinguish between blocks where
24002 we did not process all the statements and blocks with no statements.
24003
24004 2015-02-16 Jakub Jelinek <jakub@redhat.com>
24005 James Greenhalgh <james.greenhalgh@arm.com>
24006
24007 PR ipa/64963
24008 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
24009 section if not linkonce. Fix up formatting.
24010 (cgraph_node::create_version_clone_with_body): Copy section.
24011 * trans-mem.c (ipa_tm_create_version): Likewise.
24012
24013 2015-02-16 Richard Biener <rguenther@suse.de>
24014
24015 PR tree-optimization/65077
24016 * tree-ssa-structalias.c (get_constraint_for_1): Handle
24017 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
24018 (find_func_aliases): Allow float values to carry pointers again.
24019
24020 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24021
24022 * doc/install.texi (Specific): Reorder targets list to put
24023 aarch64 in alphabetical order. Add a link to aarch64*-*-*
24024 from the top menu.
24025
24026 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24027 David Edelsohn <dje.gcc@gmail.com>
24028
24029 PR target/65058
24030 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
24031 mapping class to external variable or function reference.
24032 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
24033 mapping class.
24034
24035 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
24036
24037 PR target/53348
24038 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
24039 ASM_WEAKEN_DECL if defined.
24040
24041 2015-02-16 Richard Biener <rguenther@suse.de>
24042
24043 PR lto/65015
24044 * varasm.c (default_file_start): For LTO produced units
24045 emit <artificial> as file directive.
24046
24047 2015-02-16 Richard Biener <rguenther@suse.de>
24048
24049 PR tree-optimization/63593
24050 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
24051 stmts and releasing SSA names until...
24052 (execute_pred_commoning): ... after processing all chains.
24053
24054 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
24055
24056 PR ipa/65059
24057 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
24058 external functions.
24059
24060 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
24061
24062 * doc/bugreport.texi: Adjust section titles throughout the file
24063 to use "Title Case".
24064 * doc/extend.texi: Likewise.
24065 * doc/gcov.texi: Likewise.
24066 * doc/implement-c.texi: Likewise.
24067 * doc/implement-cxx.texi: Likewise.
24068 * doc/invoke.texi: Likewise.
24069 * doc/objc.texi: Likewise.
24070 * doc/standards.texi: Likewise.
24071 * doc/trouble.texi: Likewise.
24072
24073 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
24074
24075 * cgraph.h (symtab_node::has_aliases_p): Simplify.
24076 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
24077 * tree.c (lookup_binfo_at_offset): Make static.
24078 (get_binfo_at_offset): Do not shadow offset; add explanatory
24079 comment.
24080
24081 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
24082
24083 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
24084 for all floading point loads and stores except those using a register
24085 index address.
24086 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
24087 to a register.
24088
24089 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
24090
24091 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
24092 (do_estimate_growth_1): Record if any uninlinable edge was seen.
24093 (estimate_growth): Handle uninlinable edges correctly.
24094 (check_callers): New.
24095 (growth_likely_positive): Handle aliases correctly.
24096
24097 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
24098
24099 * ipa-chkp.c: Use iterate_direct_aliases.
24100 * symtab.c (resolution_used_from_other_file_p): Move inline.
24101 (symtab_node::create_reference): Fix formating.
24102 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24103 (symtab_node::iterate_reference): Move inline.
24104 (symtab_node::iterate_referring): Move inline.
24105 (symtab_node::iterate_direct_aliases): Move inline.
24106 (symtab_node::used_from_object_file_p_worker): Inline into ...
24107 (symtab_node::used_from_object_file_p): ... this one; move inline.
24108 (symtab_node::call_for_symbol_and_aliases): Move inline;
24109 use iterate_direct_aliases.
24110 (symtab_node::call_for_symbol_and_aliases_1): New method.
24111 (cgraph_node::call_for_symbol_and_aliases): Move inline;
24112 use iterate_direct_aliases.
24113 (cgraph_node::call_for_symbol_and_aliases_1): New method.
24114 (varpool_node::call_for_node_and_aliases): Rename to ...
24115 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
24116 use iterate_direct_aliases.
24117 (varpool_node::call_for_symbol_and_aliases_1): New method.
24118 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
24119 (ipa_discover_readonly_nonaddressable_var): Update.
24120 * ipa-devirt.c: Fix formating.
24121 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
24122 Move inline.
24123 (cgraph_node::call_for_symbol_and_aliases): Move inline.
24124 (cgraph_node::call_for_symbol_and_aliases_1): New function..
24125 * cgraph.h (used_from_object_file_p_worker): Remove.
24126 (resolution_used_from_other_file_p): Move inline.
24127 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24128 (symtab_node::iterate_reference): Move inline.
24129 (symtab_node::iterate_referring): Move inline.
24130 (symtab_node::iterate_direct_aliases): Move inline.
24131 (symtab_node::used_from_object_file_p_worker): Inline into ...
24132 (symtab_node::used_from_object_file_p): Move inline.
24133 * tree-emutls.c (ipa_lower_emutls): Update.
24134 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
24135 (varpool_node::call_for_node_and_aliases): Remove.
24136
24137 2015-02-14 Jakub Jelinek <jakub@redhat.com>
24138
24139 PR tree-optimization/62209
24140 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
24141 op == range->exp, insert seq and gimplified code after labels
24142 instead of after the phi.
24143
24144 2015-02-13 Jeff Law <law@redhat.com>
24145
24146 PR bootstrap/65060
24147 Revert my change for tree-optimization/64823.
24148
24149 2015-02-13 Jakub Jelinek <jakub@redhat.com>
24150
24151 PR tree-optimization/65053
24152 * tree-ssa-phiopt.c (value_replacement): When moving assign before
24153 cond, either reset VR on lhs or set it to phi result VR.
24154
24155 2015-02-13 Jeff Law <law@redhat.com>
24156
24157 PR tree-optimization/64823
24158 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
24159 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24160 threading through blocks with PHIs, but no statements.
24161 (thread_through_normal_block): Distinguish between blocks where
24162 we did not process all the statements and blocks with no statements.
24163
24164 PR rtl-optimization/47477
24165 * match.pd (convert (plus/minus (convert @0) (convert @1): New
24166 simplifier to narrow arithmetic.
24167
24168 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
24169
24170 PR ipa/65028
24171 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
24172 polymorphic call info when type is not known to be preserved.
24173
24174 2015-02-13 Maritn Jambor <mjambor@suse.cz>
24175
24176 PR ipa/65028
24177 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
24178 (inline_call): Use it.
24179
24180 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
24181
24182 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
24183 GOMP_DEVICE_NVIDIA_PTX.
24184
24185 2015-02-13 Jakub Jelinek <jakub@redhat.com>
24186
24187 PR ipa/65034
24188 * stmt.c (emit_case_nodes): Use void_type_node instead of
24189 NULL_TREE as LABEL_DECL type.
24190
24191 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
24192
24193 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
24194 constraints.
24195 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
24196 symbolic references to data to be forced to constant memory on the
24197 SOM target.
24198
24199 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
24200
24201 PR tree-optimization/65002
24202 * tree-cfg.c (pass_data_fixup_cfg): Don't update
24203 SSA on start.
24204 * tree-sra.c (some_callers_have_no_vuse_p): New.
24205 (ipa_early_sra): Reject functions whose callers
24206 assume function is read only.
24207
24208 2015-02-13 Richard Biener <rguenther@suse.de>
24209
24210 PR lto/65015
24211 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
24212 for LTO produced CUs.
24213
24214 2015-02-13 Bin Cheng <bin.cheng@arm.com>
24215
24216 PR tree-optimization/64705
24217 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
24218 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
24219 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
24220 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
24221 expand_simple_operations.
24222
24223 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
24224 Richard Henderson <rth@redhat.com>
24225
24226 PR rtl/32219
24227 * cgraphunit.c (cgraph_node::finalize_function): Set definition
24228 before notice_global_symbol.
24229 (varpool_node::finalize_decl): Likewise.
24230 * varasm.c (default_binds_local_p_2): Rename from
24231 default_binds_local_p_1, add weak_dominate argument. Use direct
24232 returns instead of assigning to local variable. Unify varpool and
24233 cgraph paths via symtab_node. Reject undef weak variables before
24234 testing visibility. Reorder tests for simplicity.
24235 (default_binds_local_p): Use default_binds_local_p_2.
24236 (default_binds_local_p_1): Likewise.
24237 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
24238 via symtab_node.
24239 (default_elf_asm_output_external): Emit visibility when specified.
24240
24241 2015-02-13 Alan Modra <amodra@gmail.com>
24242
24243 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
24244 code setting up r11 for out-of-line fp restore.
24245
24246 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
24247
24248 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
24249 (muser-mode): Likewise.
24250
24251 2015-02-13 Alan Modra <amodra@gmail.com>
24252
24253 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
24254 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
24255
24256 2015-02-12 David Howells <dhowells@redhat.com>
24257
24258 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
24259 warning.
24260 * tree-ssa-uninit.c (dump_predicates): Likewise.
24261 * opts.c (print_filtered_help): Likewise.
24262
24263 2015-02-12 Jakub Jelinek <jakub@redhat.com>
24264
24265 * dwarf2out.c (output_die): Use "%s", name instead of name to
24266 avoid -Wformat-security warning.
24267
24268 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
24269 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24270 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
24271 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24272
24273 2015-02-12 Jason Merrill <jason@redhat.com>
24274
24275 * common.opt (-flifetime-dse): New.
24276
24277 2015-02-12 Jakub Jelinek <jakub@redhat.com>
24278
24279 PR sanitizer/65019
24280 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
24281
24282 PR tree-optimization/65014
24283 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
24284 use original second operand of arg0 or arg1 instead of
24285 that adjusted by STRIP_NOPS.
24286
24287 2015-02-11 Jeff Law <law@redhat.com>
24288
24289 PR target/63347
24290 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
24291 that needs to be queued, just queue it for a single cycle.
24292
24293 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
24294
24295 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
24296 bodies of thunks; comment on why.
24297 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
24298 symbols are extern.
24299
24300 2015-02-11 Richard Henderson <rth@redhat.com>
24301
24302 PR sanitize/65000
24303 * tree-eh.c (mark_reachable_handlers): Mark source and destination
24304 regions of __builtin_eh_copy_values.
24305
24306 2015-02-11 Jakub Jelinek <jakub@redhat.com>
24307
24308 PR middle-end/65003
24309 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
24310 ultimate alias is MEM with SYMBOL_REF satisfying
24311 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
24312 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
24313
24314 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
24315
24316 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
24317 "diagnostic-core.h".
24318 (main): Initialize progname, and call diagnostic_initialize.
24319
24320 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
24321 instead of __OPENMP_TARGET__.
24322
24323 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
24324 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
24325 hard-coding PTX_ID.
24326
24327 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
24328
24329 * doc/sourcebuild.texi (pie_enabled): Document.
24330
24331 2015-02-11 Martin Liska <mliska@suse.cz>
24332
24333 PR ipa/64813
24334 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
24335 a return value for call to a function that is noreturn.
24336
24337 2015-02-11 Richard Biener <rguenther@suse.de>
24338
24339 PR lto/65015
24340 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
24341 and -fresolution.
24342
24343 2015-02-11 Andrew Pinski <apinski@cavium.com>
24344
24345 PR target/64893
24346 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
24347 Change the first argument type to size_type_node and add another
24348 size_type_node.
24349 (aarch64_simd_expand_builtin): Handle the new argument to
24350 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
24351 print an out when the first two arguments are not
24352 nonzero integer constants.
24353 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
24354 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
24355
24356 2015-02-11 Jakub Jelinek <jakub@redhat.com>
24357
24358 PR target/61925
24359 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
24360 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
24361 (ix86_set_current_function): Rewritten.
24362 (ix86_add_new_builtins): Temporarily clear current_target_pragma
24363 when creating builtin fndecls.
24364
24365 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24366
24367 PR ipa/65005
24368 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
24369 function.
24370 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
24371 have no comdat group.
24372 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
24373 (lto_output_varpool_node): Always output alias info.
24374 (output_refs): Output refs of boundary aliases, too.
24375 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
24376 (output_symtab): Output call eges in thunks in boundary.
24377 (get_alias_symbol): Remove.
24378 (input_node, input_varpool_node): Do not special case weakrefs.
24379 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
24380 alias and thunks targets in the boundary; do not take removed symbols
24381 from their comdat groups.
24382 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
24383 (cgraph_node::global_info): Remove.
24384 (cgraph_node::rtl_info): Look through aliases and thunks.
24385 * cgrpah.h (global_info): Remove.
24386 (non_local_p): Remove.
24387
24388 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24389 Sandra Loosemore <sandra@codesourcery.com>
24390
24391 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
24392 to inline asm. List dialects in proper order.
24393
24394 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24395 Sandra Loosemore <sandra@codesourcery.com>
24396
24397 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
24398
24399 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24400
24401 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
24402 modified) reference to Solaris.
24403
24404 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
24405
24406 * doc/extend.texi (Extended Asm): Fix typos.
24407
24408 2015-02-10 Jakub Jelinek <jakub@redhat.com>
24409
24410 PR sanitizer/65004
24411 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
24412
24413 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
24414
24415 PR target/64661
24416 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
24417 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
24418 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
24419 * config/sh/constraints.md (Ara, Add): New constraints.
24420 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
24421 predicates.
24422 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
24423 atomic_mem_operand_0. Don't use force_reg on the memory address.
24424 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
24425 Sra constraint. Convert to insn_and_split. Add workaround for
24426 PR 64974.
24427 (atomic_compare_and_swap<mode>_hard): Copy to
24428 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
24429 Use atomic_mem_operand_0 predicate.
24430 (atomic_compare_and_swap<mode>_soft_gusa,
24431 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
24432 AraAdd constraints.
24433 (atomic_compare_and_swap<mode>_soft_tcb,
24434 atomic_compare_and_swap<mode>_soft_imask,
24435 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
24436 atomic_mem_operand_0 predicate and SraSdd constraints.
24437 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
24438 constraint.
24439 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
24440 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
24441 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
24442 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
24443 force_reg on the memory address.
24444 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
24445 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
24446 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
24447 atomic_mem_operand_1 predicate and Sra constraint.
24448 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
24449 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
24450 Use atomic_mem_operand_1 predicate.
24451 (atomic_<fetchop_name><mode>_hard): Copy to
24452 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
24453 Use atomic_mem_operand_1 predicate.
24454 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
24455 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
24456 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
24457 insn_and_split. Use atomic_mem_operand_1 predicate.
24458 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
24459 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
24460 Use atomic_mem_operand_1 predicate.
24461 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
24462 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
24463 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
24464 in generated insn with original mem operand before emitting the insn.
24465 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
24466 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
24467 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
24468 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
24469 Use atomic_mem_operand_1 predicate and AraAdd constraints.
24470 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
24471 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
24472 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
24473 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
24474 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
24475 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
24476 atomic_not_fetch<mode>_soft_tcb,
24477 atomic_<fetchop_name>_fetch<mode>_soft_imask,
24478 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
24479 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
24480 Use atomic_mem_operand_1 predicate and SraSdd constraints.
24481
24482 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
24483
24484 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
24485 and 3 earlyclobber operands.
24486
24487 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24488
24489 * common.opt (fstack-reuse): Mark as optimization.
24490
24491 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24492
24493 PR ipa/64982
24494 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
24495
24496 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
24497
24498 PR tree-optimization/64326
24499 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
24500
24501 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
24502
24503 PR gcov-profile/61889
24504 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
24505
24506 2015-02-10 Richard Biener <rguenther@suse.de>
24507
24508 PR tree-optimization/64995
24509 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
24510 value we use is final.
24511 (visit_reference_op_store): Always valueize op.
24512 (visit_use): Properly valueize vuses.
24513
24514 2015-02-10 Richard Biener <rguenther@suse.de>
24515
24516 PR tree-optimization/64909
24517 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
24518 pass a scalar-stmt count estimate to the cost model.
24519 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
24520
24521 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
24522
24523 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
24524 enabled by default together with var-tracking.
24525
24526 2015-02-10 Nick Clifton <nickc@redhat.com>
24527
24528 * config/rl78/rl78.c: Remove DIV attribute code accidentally
24529 included in previous rl78 commit.
24530
24531 2015-02-10 Richard Biener <rguenther@suse.de>
24532
24533 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
24534 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
24535 return the bitpack.
24536
24537 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
24538
24539 PR gcov-profile/61889
24540 * config.in: regenerate.
24541 * configure.in: Likewise.
24542 * configure.ac: Check for ftw.h.
24543 * gcov-tool.c: Check for ftw.h before using nftw.
24544
24545 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
24546
24547 PR lto/64076
24548 * ipa-visibility.c (update_visibility_by_resolution_info): Only
24549 assert when not in lto mode.
24550
24551 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24552
24553 * ira-color.c (setup_left_conflict_sizes_p): Simplify
24554 initialization/assignment of conflict_size.
24555
24556 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
24557
24558 PR ipa/64978
24559 * ipa-cp.c (gather_caller_stats): Skip thunks.
24560 (propagate_constants_topo): Skip aliases.
24561
24562 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
24563
24564 PR target/64761
24565 * config/sh/sh.c (sh_option_override): Don't change
24566 -freorder-blocks-and-partition to -freorder-blocks even when
24567 unwinding is enabled.
24568 (sh_can_follow_jump): Return false if the followee jump is
24569 a crossing jump when -freorder-blocks-and-partition is specified.
24570 * config/sh/sh.md (*jump_compact_crossing): New insn.
24571
24572 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
24573 Kaz Kojima <kkojima@gcc.gnu.org>
24574
24575 PR target/64761
24576 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
24577 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
24578 (sh_can_redirect_branch): Rename to ...
24579 (sh_can_follow_jump): ... this. Constify argument types.
24580 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
24581 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
24582 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
24583 * doc/tm.texi: Regenerate.
24584
24585 2015-02-09 Jakub Jelinek <jakub@redhat.com>
24586
24587 PR sanitizer/64981
24588 * builtins.c (expand_builtin): Call targetm.expand_builtin
24589 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
24590
24591 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24592
24593 PR ipa/61548
24594 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
24595
24596 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24597
24598 PR ipa/63566
24599 * ipa-icf.c (set_local): New function.
24600 (sem_function::merge): Use it.
24601
24602 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24603
24604 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
24605 (add_type_duplicate): Fix comparison of BINFOs.
24606
24607 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24608
24609 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
24610 on getting VOID pointer.
24611
24612 2015-02-09 Jakub Jelinek <jakub@redhat.com>
24613
24614 PR target/64979
24615 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
24616 va_list escapes.
24617
24618 2015-02-09 Richard Biener <rguenther@suse.de>
24619
24620 * genmatch.c (replace_id): Copy expr_type.
24621
24622 2015-02-09 Richard Biener <rguenther@suse.de>
24623
24624 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
24625 (streamer_write_tree_bitfields): Declare.
24626 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
24627 properly unpack padding.
24628 (unpack_value_fields): Inline ...
24629 (streamer_read_tree_bitfields): ... here.
24630 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
24631 and properly add padding bits.
24632 (streamer_pack_tree_bitfields): Fold into ...
24633 (streamer_write_tree_bitfields): ... this new function,
24634 exposing the bitpack object.
24635 * lto-streamer-out.c (lto_write_tree_1): Call
24636 streamer_write_tree_bitfields.
24637
24638 2015-02-09 Richard Biener <rguenther@suse.de>
24639
24640 PR tree-optimization/54000
24641 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
24642 (struct ivopts_data): Add loop_loc member.
24643 (tree_ssa_iv_optimize_loop): Dump loop location.
24644 (create_new_ivs): Likewise, also dump number of IVs generated.
24645
24646 2015-02-09 Martin Liska <mliska@suse.cz>
24647
24648 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
24649 just if not yet registered.
24650 (ipa_icf_generate_summary): Register callgraph hooks.
24651
24652 2015-02-08 Andrew Pinski <apinski@cavium.com>
24653
24654 * config/aarch64/aarch64.c (gty_dummy): Delete.
24655
24656 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24657
24658 PR ipa/63566
24659 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
24660 (cgraph_node::local_p): Remove thunk related FIXME.
24661
24662 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24663
24664 PR ipa/63566
24665 * i386.c (ix86_function_regparm): Look through aliases to see if callee
24666 is local and optimized.
24667 (ix86_function_sseregparm): Likewise; also use target's SSE math
24668 settings; error out instead of silently generating wrong code
24669 on mismatches.
24670 (init_cumulative_args): Look through aliases.
24671
24672 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24673
24674 PR ipa/63566
24675 * ipa-split.c (execute_split_functions): Split if function has aliases.
24676
24677 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24678
24679 PR ipa/63566
24680 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
24681 aliases before trying to expand it.
24682 (cgraph_node::expand_thunk): Fix formating.
24683
24684 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
24685
24686 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
24687 (Using Assembly Language with C): Expand introduction.
24688 (Basic Asm): Copy-edit. Add more information about uses of
24689 basic asm.
24690 (Extended Asm): Copy-edit. Document new escape syntax and
24691 %l[label] syntax.
24692 (Global Reg Vars): Copy-edit.
24693 (Local Reg Vars): Likewise.
24694
24695 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
24696
24697 PR debug/2714
24698 PR bootstrap/64256
24699 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
24700 (DBX_CONTIN_CHAR): Define.
24701
24702 2015-02-06 Sebastian Pop <s.pop@samsung.com>
24703 Brian Rzycki <b.rzycki@samsung.com>
24704
24705 PR tree-optimization/64878
24706 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
24707 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
24708 Stop recursion at loop phi nodes after having visited a loop phi node.
24709
24710 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24711
24712 * toplev.c (process_options): Change flag_ipa_ra before creating
24713 optimization_{default,current}_node.
24714
24715 PR ipa/64896
24716 * cgraphunit.c (cgraph_node::expand_thunk): If
24717 restype is not is_gimple_reg_type nor the thunk_fndecl
24718 returns aggregate_value_p, set restmp to a temporary variable
24719 instead of resdecl.
24720
24721 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
24722
24723 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
24724
24725 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24726
24727 PR target/64205
24728 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
24729 add a general secondary reload handler for SDmode, unless we have
24730 both read/write support for SDmode.
24731
24732 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24733
24734 PR middle-end/64937
24735 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
24736 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
24737 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
24738 1 before, push it to abstract_vec.
24739 (dwarf2out_abstract_function): Adjust caller. Don't call
24740 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
24741 DECL_ABSTRACT_P flags for all abstract_vec elts.
24742
24743 2015-02-06 Renlin Li <renlin.li@arm.com>
24744
24745 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
24746 complex gimple.
24747 * tree-ssa.c (execute_update_addresses_taken): Likewise.
24748
24749 2015-02-06 Jeff Law <law@redhat.com>
24750
24751 PR target/64889
24752 * config/h8300/h8300.c (push): New argument "in_prologue".
24753 Pass "in_prologue" along to "F".
24754 (h8300_push_pop): Corresponding changes.
24755 (h8300_expand_prologue): Likewise.
24756 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
24757
24758 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24759
24760 PR rtl-optimization/64957
24761 PR debug/64817
24762 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
24763 IOR rather than for AND.
24764
24765 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
24766
24767 PR target/62631
24768 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
24769 of shift-add and (add + shift) operations. Rename local variable.
24770
24771 2015-02-05 Jeff Law <law@redhat.com>
24772
24773 PR target/17306
24774 * config/h8300/constraints.md (U): Correctly dectect
24775 "eightbit_data" memory addresses.
24776 * config/h8300/h8300.c (eightbit_constant_address_p): Also
24777 handle (const (plus (symbol_ref (x)))) where x is declared
24778 as an 8-bit data memory address.
24779 * config/h8300/h8300.md (call, call_value): Correctly detect
24780 "funcvec" functions.
24781
24782 PR target/43264
24783 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
24784 24 to 28 bits for the H8/300.
24785
24786 2015-02-06 Alan Modra <amodra@gmail.com>
24787
24788 PR target/64876
24789 * config/rs6000/rs6000.c (chain_already_loaded): New function.
24790 (rs6000_call_aix): Use it.
24791
24792 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
24793
24794 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
24795 check.
24796
24797 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
24798
24799 * config/h8300/constraints.md ("U" constraint): Use strict
24800 variant of REG_OK_FOR_BASE_P after reload has started.
24801
24802 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
24803
24804 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
24805 define to zero if !TARGET_NEON.
24806 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
24807
24808 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24809 Trevor Saunders <tsaunders@mozilla.com>
24810
24811 PR ipa/61548
24812 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
24813
24814 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24815
24816 PR ipa/61548
24817 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
24818 when removing varpool nodes.
24819
24820 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24821
24822 PR ipa/61548
24823 * varpool.c (varpool_node::remove): Fix order of variables.
24824
24825 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24826
24827 PR ipa/64686
24828 * ipa-inline.c (inline_small_functions): Fix ordering issue between
24829 speculation resolution and key updates.
24830
24831 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24832
24833 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
24834 about not letting any speculative edges unupdated.
24835
24836 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24837
24838 PR gcov/64123
24839 * gcov-io.c (gcov_var): Export.
24840
24841 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24842
24843 PR middle-end/64922
24844 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
24845 edges that become speculative.
24846
24847 2015-02-04 Jakub Jelinek <jakub@redhat.com>
24848
24849 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
24850 or DW_LANG_Fortran08.
24851 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
24852 DW_LANG_Fortran08.
24853 (gen_compile_unit_die): Handle "GNU Fortran2003" and
24854 "GNU Fortran2008" language strings.
24855 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
24856 * langhooks.h (lang_GNU_Fortran): New prototype.
24857 * langhooks.c (lang_GNU_Fortran): New function.
24858 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
24859 lang_GNU_Fortran.
24860
24861 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
24862
24863 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
24864 (RTX_OK_FOR_OLO10_P): Likewise.
24865
24866 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
24867
24868 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
24869
24870 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24871
24872 PR middle-end/64922
24873 * gimple.c: Include gimple-ssa.h.
24874 (maybe_remove_unused_call_args): New function.
24875 * gimple.h (maybe_remove_unused_call_args): Declare.
24876 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
24877 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
24878 * gimple-fold.c (gimple_fold_call): Likewise.
24879
24880 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
24881
24882 PR rtl-optimization/64905
24883 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
24884 pointer alignment if it isn't needed.
24885
24886 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
24887
24888 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
24889 cortex-a72.cortex-a53.
24890 * config/aarch64/aarch64-tune.md: Regenerate.
24891 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
24892
24893 2015-02-04 Nick Clifton <nickc@redhat.com>
24894
24895 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
24896 inside a MEM.
24897
24898 2015-02-04 Jakub Jelinek <jakub@redhat.com>
24899
24900 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
24901 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
24902 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
24903 of DEF_BUILTIN.
24904 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
24905 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
24906 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
24907 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
24908 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
24909 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
24910 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
24911 * tree-core.h (enum built_in_function): In between
24912 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
24913 for builtins that use DEF_BUILTIN_CHKP macro.
24914
24915 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
24916
24917 PR debug/64817
24918 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
24919 operands for tcc_comparison exprs. Fix typos.
24920
24921 PR debug/64817
24922 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
24923 of two XORs that have an intervening AND or IOR.
24924
24925 PR debug/64817
24926 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
24927 simplification of XOR of AND to not allocate new rtx before
24928 committing to a simplification.
24929
24930 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24931
24932 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
24933 manual swaps in all peepholes.
24934
24935 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24936
24937 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
24938 of manual swapping implementation.
24939 (aarch64_expand_vec_perm_const_1): Likewise.
24940
24941 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
24942
24943 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
24944 (generic_addrcost_table): Remove NAMED_PARAM.
24945 (cortexa57_addrcost_table): Likewise.
24946 (xgene1_addrcost_table): Likewise.
24947 (generic_regmove_table): Likewise.
24948 (cortexa53_regmove_table): Likewise.
24949 (xgene1_regmove_table): Likewise.
24950 (generic_vector_table): Likewise.
24951 (cortexa57_vector_table): Likewise.
24952 (xgene1_vector_table): Likewise.
24953 (generic_tunings): Likewise.
24954 (cortexa53_tunings): Likewise.
24955 (cortexa57_tunings): Likewise.
24956 (xgene1_tunings): Likewise.
24957
24958 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
24959
24960 * config/arm/arm-cores.def: Add cortex-a72 and
24961 cortex-a72.cortex-a53.
24962 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
24963 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
24964 * config/arm/arm-tune.md: Regenerate.
24965 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
24966 "cortex-a72.cortex-a53".
24967 * doc/invoke.texi (ARM Options/-mtune): Likewise.
24968
24969 2015-02-04 Nick Clifton <nickc@redhat.com>
24970
24971 PR target/64408
24972 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
24973 of accepted codes.
24974 (nonimmediate_di_operand): Likewise.
24975
24976 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
24977 prefixes of known F5 using MSP430 MCUs.
24978
24979 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24980
24981 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
24982 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
24983 instead of __builtin_sqrt.
24984
24985 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
24986
24987 * varasm.c (do_assemble_alias): Follow transparent alias
24988 chain for target.
24989 (default_assemble_visibility): Follow transparent alias
24990 chain for decl name.
24991
24992 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24993
24994 PR middle-end/62103
24995 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
24996 to compute size of referenced value in the constant case.
24997
24998 2015-02-03 Jakub Jelinek <jakub@redhat.com>
24999
25000 PR rtl-optimization/64756
25001 * cse.c (invalidate_dest): New function.
25002 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
25003 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
25004 invalidate and do not record it.
25005
25006 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
25007
25008 PR target/64660
25009 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
25010 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
25011 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
25012 atomic_nand<mode>_soft_tcb): New insns.
25013 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
25014 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
25015 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
25016 Split into atomic_not_fetchsi_hard if operands[0] is unused.
25017 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
25018 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25019 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
25020 atomic_not<mode>_hard if operands[0] is unused.
25021 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
25022 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
25023 if operands[0] is unused.
25024 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
25025 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
25026 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
25027 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25028 unused.
25029 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
25030 into atomic_not<mode>_soft_tcb if operands[0] is unused.
25031 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
25032 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
25033 if operands[0] is unused.
25034 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
25035 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
25036 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
25037 atomic_nand_fetchsi_hard if operands[0] is unused.
25038 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
25039 atomic_nand<mode>_hard if operands[0] is unused.
25040 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
25041 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
25042 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
25043 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25044 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
25045 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
25046 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
25047 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25048 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
25049 atomic_not<mode>_hard if operands[0] is unused.
25050 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
25051 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25052 unused.
25053 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
25054 into atomic_not<mode>_soft_tcb if operands[0] is unused.
25055 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
25056 atomic_nand<mode>_hard if operands[0] is unused.
25057 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
25058 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25059
25060 2015-02-03 David Malcolm <dmalcolm@redhat.com>
25061
25062 PR jit/64810
25063 * Makefile.in (GCC_OBJS): Add gcc-main.o.
25064 * gcc-main.c: New file, containing "main" taken from gcc.c.
25065 * gcc.c (do_self_spec): Free decoded_options.
25066 (class driver): Move declaration to gcc.h.
25067 (main): Move declaration and implementation to new file
25068 gcc-main.c.
25069 (driver_get_configure_time_options): New function.
25070 * gcc.h (class driver): Move this declaration here, from
25071 gcc.c.
25072 (driver_get_configure_time_options): New declaration.
25073
25074 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
25075
25076 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
25077 cross-module inlining.
25078 * cgraph.h (cgraph_node): Add flag merged.
25079 * ipa-icf.c (sem_function::merge): Maintain it.
25080
25081 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
25082
25083 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
25084 instead of OBJECT_P.
25085
25086 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
25087
25088 PR target/62631
25089 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
25090 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
25091 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
25092 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
25093
25094 2015-02-03 Jakub Jelinek <jakub@redhat.com>
25095
25096 PR other/63504
25097 * combine.c (reg_n_sets_max): New variable.
25098 (can_change_dest_mode, reg_nonzero_bits_for_combine,
25099 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
25100 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
25101 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
25102 (rest_of_handle_combine): Initialize reg_n_sets_max.
25103
25104 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
25105
25106 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
25107 if some always_inline was inlined, apply changes before inlining
25108 heuristically.
25109
25110 2015-02-02 David Malcolm <dmalcolm@redhat.com>
25111
25112 PR jit/64810
25113 * config/arm/arm.c (arm_option_override): Set
25114 arm_selected_arch/cpu/tune to NULL on entry.
25115
25116 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
25117 Andrew Pinski <pinskia@gcc.gnu.org>
25118 Jakub Jelinek <jakub@gcc.gnu.org>
25119
25120 PR target/64231
25121 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
25122 integer typing for small model. Use IN_RANGE.
25123
25124 2015-02-02 Richard Biener <rguenther@suse.de>
25125
25126 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
25127 * tree-vrp.c (vrp_valueize_1): Likewise.
25128
25129 2015-02-02 Alan Modra <amodra@gmail.com>
25130
25131 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
25132 than mem for toc_restore.
25133 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
25134 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
25135 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
25136
25137 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
25138
25139 PR target/64047
25140 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
25141 explicit default options.
25142
25143 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
25144
25145 PR ipa/64872
25146 * ipa-utils.c (ipa_merge_profiles): Add release argument.
25147 * ipa-icf.c (sem_function::merge): Do not release body when merging.
25148 * ipa-utils.h (ipa_merge_profiles): Update prototype.
25149
25150 2015-02-01 Jakub Jelinek <jakub@redhat.com>
25151
25152 PR debug/64817
25153 * cfgexpand.c (deep_ter_debug_map): New variable.
25154 (avoid_deep_ter_for_debug): New function.
25155 (expand_debug_expr): If TERed SSA_NAME is in
25156 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
25157 instead of trying to expand SSA_NAME's def stmt.
25158 (expand_debug_locations): When expanding debug bind
25159 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
25160 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
25161 value.
25162 (pass_expand::execute): Call avoid_deep_ter_for_debug on
25163 all debug bind stmts. Delete deep_ter_debug_map after
25164 expand_debug_location if non-NULL and clear it.
25165
25166 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
25167
25168 PR target/64851
25169 * config/sh/sync.md (atomic_fetch_notsi_hard,
25170 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
25171 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
25172 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
25173 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
25174 atomic_not_fetch<mode>_soft_imask): New insns.
25175
25176 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25177
25178 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
25179 (rank_for_schedule_debug): Split from ...
25180 (rank_for_schedule): ... this.
25181 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
25182 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
25183
25184 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
25185
25186 * doc/md.texi (Machine Constraints): Alphabetize table by target.
25187 * doc/extend.texi (x86 Variable Attributes): Move section to
25188 correct alphabetization after renaming.
25189 (x86 Type Attributes): Likewise.
25190 (Target Builtins): Re-alphabetize menu.
25191 (x86 Built-in Functions): Move section to correct alphabetization
25192 after renaming.
25193 (x86 transactional memory intrinsics): Likewise.
25194 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
25195 and x86 Windows Options in table and menu.
25196 (x86 Options): Move section to correct alphabetization after
25197 renaming.
25198 (x86 Windows Options): Likewise.
25199
25200 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
25201
25202 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
25203 preferred names of the architecture and its 32- and 64-bit
25204 variants.
25205 * doc/invoke.texi: Likewise.
25206 * doc/md.texi: Likewise.
25207
25208 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
25209
25210 PR target/64882
25211 * config/i386/predicates.md (address_no_seg_operand): Reject
25212 non-CONST_INT_P operands in invalid mode.
25213
25214 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
25215
25216 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
25217 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
25218 * config/i386/predicates.md (address_no_seg_operand): Call
25219 address_operand with VOIDmode.
25220 (vsib_address_operand): Ditto.
25221 (address_mpx_no_base_operand): Ditto.
25222 (address_mpx_no_index_operand): Ditto.
25223
25224 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
25225
25226 PR target/64688
25227 * lra-constraints.c (original_subreg_reg_mode): New.
25228 (simplify_operand_subreg): Try to simplify subreg of const. Use
25229 original_subreg_reg_mode for it.
25230 (swap_operands): Update original_subreg_reg_mode.
25231 (curr_insn_transform): Set up original_subreg_reg_mode.
25232
25233 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
25234
25235 PR target/64617
25236 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
25237 function.
25238 (process_alt_operands): Use it.
25239 (curr_insn_transform): Check the optional reload pseudo class is
25240 ok for the mode.
25241
25242 2015-01-30 Joseph Myers <joseph@codesourcery.com>
25243
25244 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
25245 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
25246 prototype.
25247 * toplev.h (init_asm_output): Update comment on use of
25248 UNKNOWN_LOCATION with fatal_error.
25249 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
25250 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
25251 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
25252 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
25253 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
25254 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
25255 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
25256 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
25257 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
25258 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
25259 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
25260 fatal_error changed to pass input_location as first argument.
25261
25262 2015-01-30 Martin Liska <mliska@suse.cz>
25263
25264 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
25265 in #pragma GCC diagnostic guards.
25266
25267 2015-01-30 Richard Biener <rguenther@suse.de>
25268
25269 PR tree-optimization/64829
25270 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
25271 not add a widening conversion pattern but hand off extra
25272 widenings to callers.
25273 (vect_recog_widen_mult_pattern): Handle extra widening produced
25274 by vect_handle_widen_op_by_const.
25275 (vect_recog_widen_shift_pattern): Likewise.
25276 (vect_pattern_recog_1): Remove excess vertical space in dumping.
25277 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
25278 (vect_init_vector_1): Likewise.
25279 (vect_get_vec_def_for_operand): Likewise.
25280 (vect_finish_stmt_generation): Likewise.
25281 (vectorizable_load): Likewise.
25282 (vect_analyze_stmt): Likewise.
25283 (vect_is_simple_use): Likewise.
25284
25285 2015-01-29 Jeff Law <law@redhat.com>
25286
25287 * combine.c (try_combine): Fix typo in comment.
25288
25289 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
25290
25291 PR target/64580
25292 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
25293 (rs6000_stack_info): Add assert.
25294 (rs6000_output_savres_externs): New function, split off from...
25295 (rs6000_output_function_prologue): ... here. Do not call it for
25296 thunks.
25297
25298 2015-01-29 Jeff Law <law@redhat.com>
25299
25300 PR target/15184
25301 * combine.c (try_combine): If I0 is a memory load and I3 a store
25302 to a related address, increase the "goodness" of doing a 4-insn
25303 combination with I0-I3.
25304 (make_field_assignment): Handle SUBREGs in the ior+and case.
25305
25306 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
25307
25308 PR tree-optimization/64746
25309 * tree-if-conv.c (mask_exists): New function.
25310 (predicate_mem_writes): Save created mask with given size for further
25311 use.
25312 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
25313 (ifcvt_repair_bool_pattern): Collect all statements that are root
25314 of bool pattern and use iterative algorithm to remove multiple uses
25315 of predicates, display number of required iterations.
25316
25317 2015-01-29 Richard Biener <rguenther@suse.de>
25318
25319 PR tree-optimization/64853
25320 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
25321 stmt will get simulated again.
25322 * tree-ssa-ccp.c (valueize_op_1): Likewise.
25323
25324 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25325
25326 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
25327 return_in_pc. Remove redundant assignments.
25328 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
25329 (arm_expand_epilogue): Don't compare boolean with true in if condition.
25330
25331 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
25332
25333 * config/i386/i386.c (ix86_mode_after): Make static.
25334
25335 2015-01-29 Richard Biener <rguenther@suse.de>
25336
25337 PR tree-optimization/64844
25338 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
25339 dump cost model analysis.
25340 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25341 Do not register adjusted load/store costs here.
25342
25343 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
25344 Uros Bizjak <ubizjak@gmail.com>
25345
25346 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
25347 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
25348 using x86_use_pseudo_pic_reg.
25349 * config/i386/i386.c (ix86_conditional_register_usage): Remove
25350 support for fixed PIC register.
25351 (ix86_use_pseudo_pic_reg): Not static any more.
25352
25353 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
25354
25355 PR middle-end/64805
25356 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
25357 to avoid error in cgraph node verification.
25358
25359 2015-01-29 Marek Polacek <polacek@redhat.com>
25360
25361 * doc/standards.texi: Reflect that the default for C is gnu11.
25362
25363 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
25364
25365 PR target/64761
25366 * reorg.c (switch_text_sections_between_p): New function.
25367 (relax_delay_slots): Call it when testing if the jump insn
25368 is removable. Use targetm.can_follow_jump when testing if
25369 the conditional branch can follow an unconditional jump.
25370
25371 2015-01-27 Caroline Tice <cmtice@google.com>
25372
25373 Committing VTV Cywin/Ming patch for Patrick Wollgast
25374 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
25375 if -fvtable-verify=preinit/std is used.
25376 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
25377 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
25378 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
25379 if -fvtable-verify=preinit/std is used.
25380 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25381 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
25382 if -fvtable-verify=preinit/std is used.
25383 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
25384 * config/i386/mingw32.h (LIB_SPEC): Likewise.
25385 * varasm.c (assemble_variable): Add code to properly set the comdat
25386 section and name for the .vtable_map_vars section in case the
25387 target is PE or COFF.
25388
25389 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
25390
25391 PR ipa/64801
25392 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
25393 make sane BB profile.
25394 (cgraph_node::expand_thunk): Make sane BB profile.
25395 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
25396 * cgraph.h (init_lowered_empty_function): Update prototype.
25397 * config/i386/i386.c (make_resolver_func): Update call.
25398 * predict.c (gate): Disable branch prediction pass if
25399 profile is already there.
25400
25401 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
25402
25403 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
25404 * opth-gen.awk: Likewise.
25405 * common.opt: Mark flag_fp_contract_mode as Optimization.
25406
25407 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
25408
25409 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
25410 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
25411
25412 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
25413
25414 PR target/64659
25415 * config/sh/predicates.md (atomic_arith_operand,
25416 atomic_logical_operand): Remove.
25417 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
25418 (atomic_arith_operand_0): New predicate.
25419 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
25420 Use atomic_arith_operand_0 for input values.
25421 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
25422 atomic_compare_and_swap<mode>_soft_gusa,
25423 atomic_compare_and_swap<mode>_soft_tcb,
25424 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
25425 arith_reg_operand instead of register_operand.
25426 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
25427 atomic_arith_operand_0 for newval input.
25428 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
25429 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
25430 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
25431 arith_reg_operand instead of register_operand.
25432 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
25433 fetchop_predicate_1, fetchop_constraint_1_llcs,
25434 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
25435 fetchop_constraint_1_imask): New code iterator attributes.
25436 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
25437 register_operand. Use fetchop_predicate_1.
25438 (atomic_fetch_<fetchop_name>si_hard,
25439 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
25440 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
25441 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
25442 and arith_reg_operand instead of register_operand. Use
25443 fetchop_predicate_1, fetchop_constraint_1_gusa.
25444 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
25445 and arith_reg_operand instead of register_operand. Use
25446 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
25447 to allow R0 usage.
25448 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
25449 and arith_reg_operand instead of register_operand. Use
25450 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
25451 to allow R0 usage.
25452 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
25453 register_operand. Use atomic_logical_operand_1.
25454 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
25455 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
25456 arith_reg_operand instead of register_operand.
25457 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
25458 Use arith_reg_dest and arith_reg_operand instead of register_operand.
25459 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
25460 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
25461 register_operand. Use fetchop_predicate_1.
25462 (atomic_<fetchop_name>_fetchsi_hard,
25463 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
25464 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25465 fetchop_constraint_1_llcs.
25466 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
25467 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25468 fetchop_constraint_1_gusa.
25469 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
25470 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25471 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
25472 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
25473 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25474 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
25475 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
25476 register_operand. Use atomic_logical_operand_1.
25477 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
25478 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
25479 arith_reg_operand instead of register_operand.
25480 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
25481 arith_reg_operand instead of register_operand. Use logical_operand
25482 and K08. Adjust asm sequence to allow R0 usage.
25483 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
25484 arith_reg_operand instead of register_operand. Use logical_operand
25485 and K08.
25486
25487 2015-01-28 Jakub Jelinek <jakub@redhat.com>
25488
25489 PR other/63504
25490 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
25491 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
25492 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
25493 only get_full_len HOST_WIDE_INTs from get_val () array rather than
25494 all bits in *val_wide.
25495
25496 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
25497
25498 * varpool.c (tls_model_names): Fix names.
25499 (varpool_node::dump): Dump tls- prefix for tls models.
25500
25501 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
25502 Bernd Schmidt <bernds@codesourcery.com>
25503 Nathan Sidwell <nathan@codesourcery.com>
25504
25505 * config/nvptx/mkoffload.c: New file.
25506 * config/nvptx/t-nvptx: Add build rules for it.
25507 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
25508 (extra_programs): Add mkoffload.
25509 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
25510 function.
25511 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
25512
25513 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
25514
25515 PR middle-end/64809
25516 * cfgexpand.c (reorder_operands): Skip debug gimples.
25517
25518 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
25519
25520 PR tree-optimization/64277
25521 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
25522 range info when possible to refine estimation.
25523
25524 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25525
25526 PR tree-optimization/64718
25527 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
25528 be a 16bit unsigned integer when n->range is 16.
25529 (bswap_replace): Convert src to that type if necessary for all bswap
25530 sizes. Fix rotation right notation in nearby comment. Use bswap_type
25531 set in pass_optimize_bswap::execute ().
25532
25533 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
25534
25535 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
25536 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
25537 integer and floating point variants.
25538 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
25539
25540 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
25541
25542 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
25543 for all vector modes.
25544
25545 2015-01-28 Jakub Jelinek <jakub@redhat.com>
25546
25547 PR bootstrap/64612
25548 * doc/sourcebuild.texi (comdat_group): Document.
25549
25550 2015-01-28 Terry Guo <terry.guo@arm.com>
25551
25552 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
25553
25554 2015-01-27 David Malcolm <dmalcolm@redhat.com>
25555
25556 * toplev.c (print_version): Add param "show_global_state", and
25557 only print GGC and plugin information if it is true.
25558 (init_asm_output): Pass in "true" for the new param when calling
25559 print_version.
25560 (process_options): Likewise.
25561 (toplev::main): Likewise.
25562 * toplev.h (print_version): Add new param to decl.
25563
25564 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
25565
25566 PR ipa/60871
25567 PR ipa/64139
25568 * tree.c (lookup_binfo_at_offset): New function.
25569 (get_binfo_at_offset): Use it.
25570
25571 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
25572
25573 PR ipa/64282
25574 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
25575 on vtable being vtable.
25576
25577 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
25578
25579 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
25580 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
25581 -mhotpatch= option.
25582 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
25583 -mno-hotpatch options. Change syntax of -mhotpatch= option.
25584 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
25585 Renamed.
25586 (s390_hotpatch_trampoline_halfwords_max): Renamed.
25587 (s390_hotpatch_hw_max): New name.
25588 (s390_hotpatch_trampoline_halfwords): Renamed.
25589 (s390_hotpatch_hw_before_label): New name.
25590 (get_hotpatch_attribute): Removed.
25591 (s390_hotpatch_hw_after_label): New name.
25592 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
25593 attribute.
25594 (s390_attribute_table): Ditto.
25595 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
25596 (s390_function_num_hotpatch_hw): New name.
25597 Remove special handling of inline functions and hotpatching.
25598 Return number of nops before and after the function label.
25599 (s390_can_inline_p): Removed.
25600 (s390_asm_output_function_label): Emit a configurable number of nops
25601 after the function label.
25602 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
25603 (TARGET_CAN_INLINE_P) Removed.
25604 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
25605
25606 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25607 Jiong Wang <jiong.wang@arm.com>
25608
25609 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
25610 of scratch reg.
25611 (cb<optab><mode>1): Likewise.
25612 * config/aarch64/iterators.md (bcond): New define_code_attr.
25613
25614 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25615
25616 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
25617 memory accesses.
25618
25619 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25620
25621 * config/s390/s390.c (s390_register_move_cost): Increase costs for
25622 FPR->GPR moves.
25623
25624 2015-01-27 Richard Biener <rguenther@suse.de>
25625
25626 * tree-vrp.c (update_value_range): Intersect the range with
25627 old recorded SSA name range information.
25628
25629 2015-01-27 Nick Clifton <nickc@redhat.com>
25630
25631 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
25632 BC, DE and HL registers directly, not via AX.
25633 When decrementing the stack pointer by a large amount, transfer SP
25634 into AX and perform the subtraction there.
25635 (rl78_expand_epilogue): Perform the inverse of the above
25636 enhancements.
25637
25638 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25639
25640 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
25641
25642 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25643 Yury Gribov <y.gribov@samsung.com>
25644
25645 PR ubsan/64741
25646 * ubsan.c (ubsan_source_location): Refactor code.
25647 (ubsan_type_descriptor): Update type size. Refactor code.
25648
25649 2015-01-27 Richard Biener <rguenther@suse.de>
25650
25651 PR tree-optimization/56273
25652 PR tree-optimization/59124
25653 PR tree-optimization/64277
25654 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
25655 from the first VRP pass.
25656
25657 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25658
25659 PR ipa/64776
25660 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
25661 handle the first argument in the same loop as all the other arguments.
25662
25663 PR rtl-optimization/61058
25664 * jump.c (cleanup_barriers): Update basic block boundaries
25665 if BLOCK_FOR_INSN is non-NULL on PREV.
25666
25667 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
25668
25669 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
25670 bounds narrowing, already instrumented calls and calls to
25671 not instrumentable functions.
25672
25673 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25674
25675 PR tree-optimization/64807
25676 * wide-int.cc (wi::divmod_internal): Clear
25677 b_dividend[dividend_blocks_needed].
25678
25679 2015-01-26 DJ Delorie <dj@redhat.com>
25680
25681 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
25682 volatile memory references.
25683
25684 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
25685
25686 PR target/49263
25687 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
25688 remove_insn.
25689 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
25690 shifts if it already fits into K08.
25691
25692 2015-01-26 Jakub Jelinek <jakub@redhat.com>
25693
25694 PR ipa/64730
25695 * ipa-inline.c (inline_small_functions): Print "unknown" even
25696 if edge->call_stmt is non-NULL, but has builtins or unknown
25697 location.
25698
25699 PR middle-end/64421
25700 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
25701 with asterisk, skip the first character.
25702
25703 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
25704
25705 PR target/64806
25706 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
25707 order change.
25708
25709 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
25710
25711 PR target/64795
25712 * config/i386/i386.md (*movdi_internal): Also check operand 0
25713 to determine TYPE_LEA operand.
25714 (*movsi_internal): Ditto.
25715
25716 2015-01-26 Jakub Jelinek <jakub@redhat.com>
25717
25718 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
25719 OPTION_MASK_QUAD_MEMORY_ATOMIC.
25720
25721 2015-01-26 Renlin Li <renlin.li@arm.com>
25722
25723 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
25724 the comment.
25725 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
25726 for higher part.
25727
25728 2015-01-26 Richard Biener <rguenther@suse.de>
25729
25730 PR middle-end/64764
25731 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
25732 combining two BIT_AND_EXPR predicates.
25733
25734 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
25735
25736 PR bootstrap/64754
25737 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
25738
25739 2015-01-26 Terry Guo <terry.guo@arm.com>
25740
25741 * config/arm/arm.c (arm_file_start): Update the assignment of
25742 Tag_ABI_HardFP_use.
25743
25744 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
25745
25746 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
25747 pipeline model.
25748 config/arm/arm.md: Include the new Cortex-A57 model.
25749 (generic_sched): Don't use generic_sched when tuning for
25750 Cortex-A57.
25751
25752 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
25753 Uros Bizjak <ubizjak@gmail.com>
25754
25755 * config/i386/i386.c (get_builtin_code_for_version): Add
25756 support for BMI and BMI2 multiversion functions.
25757
25758 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25759
25760 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
25761 (extract_bit_field): Likewise.
25762 (extract_low_bits): Likewise.
25763 (expand_mult): Likewise.
25764 (expand_mult_highpart_adjust): Likewise.
25765
25766 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
25767
25768 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
25769 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
25770 * config/i386/i386.c (processor_model): Add
25771 M_INTEL_COREI7_BROADWELL.
25772 (arch_names_table): Add "broadwell".
25773
25774 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
25775
25776 PR target/49263
25777 PR target/53987
25778 PR target/64345
25779 PR target/59533
25780 PR target/52933
25781 PR target/54236
25782 PR target/51244
25783 * config/sh/sh-protos.h
25784 (sh_extending_set_of_reg::can_use_as_unextended_reg,
25785 sh_extending_set_of_reg::use_as_unextended_reg,
25786 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
25787 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
25788 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
25789 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
25790 (sh_treg_insns): New class.
25791 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
25792 (scope_counter): New class.
25793 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
25794 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
25795 sh_extending_set_of_reg::can_use_as_unextended_reg,
25796 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
25797 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
25798 sh_split_treg_set_expr): New functions.
25799 (addsubcosts): Handle treg_set_expr.
25800 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
25801 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
25802 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
25803 (sh_insn_operands_modified_between_p): Make non-static.
25804 * config/sh/predicates.md (zero_extend_movu_operand): Allow
25805 simple_mem_operand in addition to displacement_mem_operand.
25806 (zero_extend_operand): Don't allow zero_extend_movu_operand.
25807 (treg_set_expr, treg_set_expr_not_const01,
25808 arith_reg_or_treg_set_expr): New predicates.
25809 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
25810 arith_or_int_operand instead of logical_operand. Convert to
25811 insn_and_split. Try to optimize constant operand in splitter.
25812 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
25813 (*tstqi_t_zero): Delete.
25814 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
25815 (tstsi_t_and_not): Delete.
25816 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
25817 Convert to insn_and_split.
25818 (unnamed split, tstsi_t_zero_extract_xor,
25819 tstsi_t_zero_extract_subreg_xor_little,
25820 tstsi_t_zero_extract_subreg_xor_big): Delete.
25821 (*tstsi_t_shift_mask): New insn_and_split.
25822 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
25823 to recombine with surrounding insns when splitting.
25824 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
25825 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
25826 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
25827 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
25828 (*cbranch_div0s: Delete.
25829 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
25830 Try to recombine with surrounding insns when splitting. Add operand
25831 order variants.
25832 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
25833 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
25834 *addc_r_r_msb, *addc_2r_msb): Delete.
25835 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
25836 order variant.
25837 (*addc_negreg_t): New insn_and_split.
25838 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
25839 Try to recombine with surrounding insns when splitting.
25840 Add operand order variants.
25841 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
25842 insn_and_split patterns.
25843 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
25844 surrounding insns when splitting.
25845 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
25846 (*rotcl): Likewise. Add zero_extract variant.
25847 (*ashrsi2_31): New insn_and_split.
25848 (*negc): Convert to insn_and_split. Use treg_set_expr.
25849 (*zero_extend<mode>si2_disp_mem): Update comment.
25850 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
25851 condition.
25852 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
25853 with surrounding insns when splitting.
25854 (any_treg_expr_to_reg): New insn_and_split.
25855 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
25856 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
25857 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
25858 *zero_extract_2): New single bit zero extract patterns.
25859 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
25860 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
25861 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
25862 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
25863 set destination.
25864 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
25865 register_operand for set source.
25866
25867 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
25868
25869 * i386.opt (prefetch_sse): New targetsave.
25870 * i386.c (ix86_function_specific_save): Save prefetch_sse.
25871 (ix86_function_specific_restore): Restore prefetch_sse and initialize
25872 ix86_cost/ix86_tune_cost.
25873
25874 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25875
25876 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
25877 Support the JIT by using 0 as the language type.
25878
25879 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
25880
25881 PR target/64317
25882 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
25883 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
25884 (mark_regno_live, process_bb_lives): Pass new parameter value to
25885 make_hard_regno_born.
25886
25887 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25888
25889 PR rtl-optimization/63637
25890 PR rtl-optimization/60663
25891 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
25892 if elt->cost is MAX_COST for ASM_OPERANDS.
25893 (find_sets_in_insn): Fix up comment typo.
25894 (cse_insn): Don't set src_volatile for all non-volatile
25895 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
25896 or with "memory" clobber. Set elt->cost to MAX_COST
25897 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
25898 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
25899
25900 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
25901
25902 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
25903 alternative 1.
25904
25905 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
25906
25907 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
25908 libgcc/config/i386/elf-lib.h.
25909
25910 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25911
25912 PR driver/64737
25913 * gcc.c (print_configuration): Don't print a blank line at the end
25914 here...
25915 (run_attempt): ... but here unstead.
25916
25917 PR middle-end/64734
25918 * omp-low.c (scan_sharing_clauses): Don't ignore
25919 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
25920 on target data/update constructs.
25921
25922 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
25923
25924 PR target/50928
25925 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
25926 (DEBUG_RELOAD): Removed define.
25927 (m32c_limit_reload_class): Enable traces with if DEBUG0.
25928 (m32c_function_arg): Added a type cast.
25929 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
25930 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
25931 * config/m32c/bitops.md (andqi3_16): Likewise.
25932 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
25933 (push_a01_l): Likewise.
25934
25935 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25936
25937 PR jit/64721
25938 * main.c (main): Construct toplev instances with init_signals=true.
25939 * toplev.c (general_init): Add param "init_signals", and use it to
25940 conditionalize the calls to signal and host_hooks.extra_signals.
25941 (toplev::toplev): Add param "init_signals".
25942 (toplev::main): When invoking general_init, pass m_init_signals
25943 to control whether signal-handlers are installed.
25944 * toplev.h (toplev::toplev): Add param "init_signals".
25945 (toplev::m_init_signals): New field.
25946
25947 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25948
25949 PR jit/64722
25950 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
25951 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
25952 latter may be affected by the former (e.g. on i686).
25953
25954 2015-01-23 Martin Liska <mliska@suse.cz>
25955
25956 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
25957 false positive during profiledbootstrap.
25958
25959 2015-01-23 Tom de Vries <tom@codesourcery.com>
25960
25961 PR libgomp/64672
25962 * lto-opts.c (lto_write_options): Output non-explicit conservative
25963 -fno-openacc.
25964 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
25965 (append_compiler_options): Pass -fopenacc through.
25966
25967 2015-01-23 Tom de Vries <tom@codesourcery.com>
25968
25969 PR libgomp/64707
25970 * lto-opts.c (lto_write_options): Output non-explicit conservative
25971 -fno-openmp.
25972 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
25973 (append_compiler_options): Pass -fopenmp through.
25974
25975 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25976
25977 PR debug/64511
25978 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
25979 GTY markup.
25980
25981 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
25982 * diagnostic.def (DK_ICE_NOBT): New kind.
25983 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
25984 like DK_ICE, but never print backtrace.
25985 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
25986 (internal_error_no_backtrace): New function.
25987 * gcc.c (execute): Use internal_error_no_backtrace instead of
25988 internal_error.
25989
25990 2015-01-22 Jeff Law <law@redhat.com>
25991
25992 PR target/52076
25993 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
25994 improve code density for small immediate to memory case.
25995 (insv): Better handle bitfield assignments when the field is
25996 being set to all ones.
25997 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
25998 operand predicate.
25999
26000 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26001 Jakub Jelinek <jakub@redhat.com>
26002
26003 PR middle-end/64729
26004 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
26005 for !TARGET_LIBC_PROVIDES_SSP version and
26006 -fstack-protector-{all,strong,explicit} otherwise.
26007 * config/freebsd.h (LINK_SSP_SPEC): Handle
26008 -fstack-protector-{strong,explicit}.
26009
26010 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
26011 H.J. Lu <hongjiu.lu@intel.com>
26012
26013 PR ipa/64694
26014 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
26015 heap.
26016
26017 2015-01-22 Wei Mi <wmi@google.com>
26018
26019 PR rtl-optimization/64557
26020 * dse.c (record_store): Call get_addr for mem_addr.
26021 (check_mem_read_rtx): Likewise.
26022
26023 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
26024
26025 * fold-const.c (const_binop): Add early return for non-tcc_binary.
26026
26027 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
26028
26029 * toplev.c (init_local_tick): Process the failure when read
26030 fails for random_seed.
26031
26032 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
26033 'pretty_name' to avoid memory overflow.
26034
26035 2015-01-22 Richard Biener <rguenther@suse.de>
26036
26037 PR middle-end/64728
26038 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
26039 abnormal coalescing on undefined SSA names.
26040
26041 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
26042
26043 PR target/64688
26044 PR target/64477
26045 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
26046 for alternative 3.
26047 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
26048
26049 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
26050
26051 PR middle-end/63325
26052 * fold-const.c (fold_checksum_tree): Don't include value of
26053 expr->decl_with_vis.symtab_node in the checksum.
26054
26055 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26056
26057 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
26058
26059 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
26060
26061 PR driver/64690
26062 * gcc.c (insert_comments): New function.
26063 (try_generate_repro): Call it.
26064 (append_text): Removed.
26065
26066 2015-01-22 Richard Biener <rguenther@suse.de>
26067
26068 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
26069 with IL incompatible options. Properly honor user optimize
26070 attributes.
26071
26072 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
26073
26074 PR rtl-optimization/64682
26075 * combine.c (distribute_notes): When moving a death note for
26076 a register that is set in the new I2, make sure to put it
26077 before that new I2.
26078
26079 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
26080
26081 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
26082 not TARGET_DEFAULT.
26083
26084 2015-01-21 Jakub Jelinek <jakub@redhat.com>
26085
26086 PR debug/64511
26087 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
26088 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
26089 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
26090
26091 PR sanitizer/64706
26092 * doc/invoke.texi (-fsanitize=vptr): Document.
26093
26094 PR rtl-optimization/62078
26095 * dse.c: Include cfgcleanup.h.
26096 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
26097 anything call purge_all_dead_edges and cleanup_cfg at the end
26098 of the pass.
26099
26100 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
26101
26102 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
26103 edges.
26104
26105 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
26106
26107 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
26108 decl attribute.
26109
26110 2015-01-21 David Sherwood <david.sherwood@arm.com>
26111 Tejas Belagod <Tejas.Belagod@arm.com>
26112
26113 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
26114 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
26115 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
26116 Removed.
26117
26118 2015-01-21 David Sherwood <david.sherwood@arm.com>
26119 Tejas Belagod <Tejas.Belagod@arm.com>
26120
26121 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
26122 (aarch64_reverse_mask): New decls.
26123 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
26124 (insn_count): New mode_attr.
26125 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
26126 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
26127 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
26128 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
26129 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
26130 (aarch64_simd_st4): New patterns.
26131 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
26132 (aarch64_reverse_mask): New functions.
26133
26134 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
26135
26136 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
26137 Declare.
26138 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
26139 addressing modes for BE.
26140 (aarch64_print_operand): Add 'R' specifier.
26141 (aarch64_simd_disambiguate_copy): Delete.
26142 (aarch64_simd_emit_reg_reg_move): New function.
26143 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
26144 in define_splits for structural moves.
26145 (mov<mode>): Use less restrictive predicates.
26146 (*aarch64_mov<mode>): Simplify and only allow for LE.
26147 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
26148
26149 2015-01-21 Alan Hayward <alan.hayward@arm.com>
26150
26151 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
26152
26153 2015-01-21 Richard Henderson <rth@redhat.com>
26154
26155 PR target/64669
26156 * ccmp.c (used_in_cond_stmt_p): Remove.
26157 (expand_ccmp_expr): Don't use it.
26158
26159 2015-01-21 Nick Clifton <nickc@redhat.com>
26160
26161 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
26162 PARALLELs.
26163
26164 2015-01-21 Richard Biener <rguenther@suse.de>
26165
26166 PR middle-end/64313
26167 * tree-core.h (builtin_info, builtin_info_type): Turn from
26168 an object with two arrays into an array of an object with
26169 decl and two flags, implicit_p and declared_p.
26170 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
26171 set_builtin_decl, set_builtin_decl_implicit_p,
26172 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
26173 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
26174 * builtins.c (builtin_info): Adjust.
26175 * gimplify.c (gimplify_addr_expr): References to builtins
26176 that have been declared by the user makes them eligible for
26177 use by the compiler. Call set_builtin_decl_implicit_p on them.
26178
26179 2015-01-20 Jeff Law <law@redhat.com>
26180
26181 PR target/59946
26182 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
26183 allow pc-relative addresses in operand predicates or constraints.
26184
26185 2015-01-21 Bin Cheng <bin.cheng@arm.com>
26186
26187 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
26188 neon on aarch32 processors for stringops.
26189
26190 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26191
26192 PR ipa/63576
26193 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
26194
26195 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26196
26197 PR lto/45375
26198 * ipa-inline.c: Include lto-streamer.h
26199 (report_inline_failed_reason): Output source file differences and
26200 flags on optimization/target node mismatch.
26201 (can_inline_edge_p): Consider caller to be the outer inline function;
26202 be less restrictive about matching opimize and optimize_size attributes.
26203 (inline_account_function_p): Break out from ...
26204 (inline_small_functions): ... here.
26205 * ipa-inline-transform.c (clone_inlined_nodes): Use
26206 inline_account_function_p.
26207 (inline_call): Use optimize attribution; use inline_account_function_p.
26208 (inline_transform): Use opt_for_fn.
26209 * ipa-inline.h (inline_account_function_p): Declare.
26210
26211 2015-01-20 Jakub Jelinek <jakub@redhat.com>
26212
26213 PR debug/64663
26214 * dwarf2out.c (decl_piece_node): Don't put bitsize into
26215 mode if bitsize <= 0.
26216 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
26217 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
26218 sizes and positions.
26219
26220 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
26221
26222 * config/nios2/nios2.c (nios2_asm_file_end): Implement
26223 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
26224 needed.
26225 (TARGET_ASM_FILE_END): Define.
26226
26227 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26228
26229 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
26230 (struct tune_params): Use the enum.
26231 * arm.c (arm_*_tune): Update.
26232 (arm_option_override): Update.
26233
26234 2015-01-20 Richard Biener <rguenther@suse.de>
26235
26236 PR ipa/64684
26237 * ipa-reference.c (add_static_var): Inline ...
26238 (analyze_function): ... here after splitting out from ...
26239 (is_proper_for_analysis): ... this.
26240
26241 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
26242
26243 PR target/64149
26244 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
26245 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
26246 replace the conditional with it's true branch.
26247 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
26248 (arm_lra_p): Remove.
26249
26250 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
26251
26252 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
26253
26254 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26255
26256 * config/tilegx/mul-tables.c: Move symtab.h include after
26257 coretypes.h include.
26258 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
26259 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
26260 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
26261 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
26262 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
26263
26264 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
26265
26266 PR bootstrap/64676
26267 Revert:
26268 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
26269
26270 PR rtl-optimization/64081
26271 * loop-iv.c (def_pred_latch_p): New function.
26272 (latch_dominating_def): Allow specific cases with non-single
26273 definitions.
26274 (iv_get_reaching_def): Likewise.
26275 (check_complex_exit_p): New function.
26276 (check_simple_exit): Use check_complex_exit_p to allow certain cases
26277 with exits not executing on any iteration.
26278
26279 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26280
26281 PR lto/45375
26282 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
26283 to set branch cost.
26284
26285 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26286
26287 PR lto/45375
26288 * i386.c (gate): Check flag_expensive_optimizations and
26289 optimize_size.
26290 (ix86_option_override_internal): Drop optimize_size condition
26291 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
26292 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
26293 MASK_PREFER_AVX128.
26294 (ix86_avx256_split_vector_move_misalign,
26295 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
26296 * sse.md (all uses of TARGET_PREFER_AVX128): Add
26297 optimize_insn_for_speed_p check.
26298
26299 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
26300
26301 * config/mips/mips.h (FP_ASM_SPEC): New define.
26302 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
26303 instead.
26304
26305 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
26306
26307 PR target/53988
26308 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
26309 nullptr for insn when reaching the first insn.
26310 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
26311 (sh_insn_operands_modified_between_p): Add nullptr check.
26312 (sh_find_extending_set_of_reg): Fix log message. Don't accept
26313 sign extending mem load if the insn contains any UNSPEC or
26314 UNSPEC_VOLATILE.
26315
26316 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26317
26318 * params.def (inline-unit-growth): Drop to 15%.
26319 * invoke.texi (inline-unit-growth): Document change.
26320
26321 2015-01-19 Martin Liska <mliska@suse.cz>
26322
26323 PR ipa/64668
26324 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
26325 function for second argument of OBJ_TYPE_REF.
26326
26327 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26328
26329 PR ipa/64218
26330 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
26331 whether function is an alias.
26332
26333 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26334
26335 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
26336 cases.
26337
26338 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
26339
26340 PR rtl-optimization/64671
26341 * lra-remat.c (operand_to_remat): Don't consider jump and call
26342 insns.
26343
26344 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
26345
26346 PR target/59828
26347 * config/rs6000/default64.h: Include rs6000-cpus.def.
26348 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
26349 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
26350 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
26351 and POWER8.
26352 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
26353 POWER8.
26354 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
26355 pseudo-op to specify assembler dialect.
26356
26357 2015-01-19 Martin Liska <mliska@suse.cz>
26358
26359 PR ipa/64664
26360 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
26361 Handle safe potentially removed nodes during filtering.
26362
26363 2015-01-19 Martin Liska <mliska@suse.cz>
26364
26365 * doc/extend.texi (no_icf): Add new attribute description.
26366 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
26367 where the pass attempts to merge a function with no_icf attribute.
26368
26369 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26370
26371 PR target/64532
26372 * doc/md.texi (ARM Options): Document register constraints.
26373
26374 2015-01-19 Jiong Wang <jiong.wang@arm.com>
26375 Andrew Pinski <apinski@cavium.com>
26376
26377 PR target/64304
26378 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
26379 (ashl<mode>3): Don't expand if operands[2] is not constant.
26380
26381 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26382
26383 PR target/64448
26384 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
26385 Match xor-and-xor RTL pattern.
26386
26387 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
26388
26389 PR rtl-optimization/64081
26390 * loop-iv.c (def_pred_latch_p): New function.
26391 (latch_dominating_def): Allow specific cases with non-single
26392 definitions.
26393 (iv_get_reaching_def): Likewise.
26394 (check_complex_exit_p): New function.
26395 (check_simple_exit): Use check_complex_exit_p to allow certain cases
26396 with exits not executing on any iteration.
26397
26398 2015-01-19 Jakub Jelinek <jakub@redhat.com>
26399
26400 * common.opt (fgraphite): Fix a typo.
26401
26402 2015-01-19 Felix Yang <felix.yang@huawei.com>
26403
26404 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
26405 pattern.
26406 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
26407 uminp, smax_nanp, smin_nanp): New builtins.
26408 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
26409 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
26410 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
26411 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
26412 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
26413 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
26414 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
26415 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
26416 vpminnms_f32): Rewrite using builtin functions.
26417
26418 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
26419
26420 PR libgomp/64625
26421 * omp-low.c (offload_symbol_decl): Remove variable.
26422 (get_offload_symbol_decl): Remove function.
26423 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
26424 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
26425 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
26426 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
26427 BUILT_IN_GOACC_UPDATE don't pass it at all.
26428
26429 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
26430
26431 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
26432 callers.
26433
26434 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
26435
26436 * ipa-chkp.c (chkp_produce_thunks): Add early param
26437 to split thunks production into two passes. Keep
26438 'always_inline' function bodies after the first pass.
26439 (pass_data_ipa_chkp_early_produce_thunks): New.
26440 (pass_ipa_chkp_early_produce_thunks): New.
26441 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
26442 chkp_produce_thunks signature.
26443 (make_pass_ipa_chkp_early_produce_thunks): New.
26444 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
26445 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
26446 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
26447
26448 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26449
26450 * cgraph.c (cgraph_node::dump): Dump profile flags.
26451
26452 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
26453
26454 PR target/64652
26455 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
26456 reg appear first in the parallel.
26457
26458 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26459
26460 * ipa-reference.c (set_reference_optimization_summary,
26461 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
26462 disabled.
26463 (ignore_module_statics): New static var.
26464 (propagate_bits): If ipa-reference is disabled, do not look into local
26465 properties.
26466 (analyze_function): Disable analysis when ipa_reference is disabled.
26467 (generate_summary): Do not dump when reference is disabled;
26468 collect vars accessed from functions with ipa-reference disabled.
26469 (get_read_write_all_from_node): When ipa-reference is disabled, use the
26470 node flags.
26471 (gate): Enable for LTO.
26472 (ignore_edge_p): New function.
26473 (propagate): Skip functions w/o ipa-reference analysis.
26474 * optc-save-gen.awk: Handle optimize_debug correctly.
26475 * opth-gen.awk: Likewise.
26476 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
26477 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
26478 fira-share-save-slots, fira-share-spill-slots,
26479 fmodulo-sched-allow-regmoves, fpartial-inlining,
26480 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
26481 ftracer, ftree-parallelize-loops, fassociative-math,
26482 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
26483 Optimization
26484 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
26485 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
26486 Optimization.
26487 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
26488 Fix for IPA.
26489
26490 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26491
26492 PR ipa/64378
26493 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
26494 flag correctly.
26495 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
26496
26497 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
26498
26499 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
26500 Remove duplicate option listings.
26501
26502 2015-01-18 Felix Yang <felix.yang@huawei.com>
26503
26504 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
26505 (autofdo_source_profile::get_callsite_total_count,
26506 function_instance::get_function_instance_by_decl,
26507 string_table::get_index, string_table::get_index_by_decl,
26508 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
26509 Fix comment typos. Reformatting and minor code rearrangement.
26510
26511 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26512
26513 * config/rs6000/rs6000.md (probe_stack): Delete.
26514 (probe_stack_address): New.
26515
26516 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26517
26518 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
26519 to test for 32-bit ABIs, not !TARGET_POWERPC64.
26520
26521 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26522
26523 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
26524 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
26525 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
26526 snafu.
26527 (rs6000_libcall_value): Use the new function.
26528
26529 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
26530
26531 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
26532
26533 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
26534
26535 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
26536 implement a more precise life analysis for it during backward scan.
26537
26538 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
26539
26540 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
26541
26542 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
26543
26544 PR rtl-optimization/52773
26545 * calls.c (emit_library_call_value): When pushing arguments use
26546 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
26547 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
26548 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
26549
26550 2015-01-17 Jeff Law <law@redhat.com>
26551
26552 PR rtl-optimization/32790
26553 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
26554 not ZERO_EXTEND in SET_DESTs.
26555
26556 2015-01-17 Alan Modra <amodra@gmail.com>
26557
26558 * cprop.c (do_local_cprop): Revert last change.
26559
26560 2015-01-16 DJ Delorie <dj@redhat.com>
26561 Nick Clifton <nickc@redhat.com>
26562
26563 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
26564 (addhi3_real): Likewise. Fix [HL+0] syntax.
26565 (subqi3_real): Likewise.
26566 (subhi3_real): Likewise.
26567 (cbranchqi4_real): Likewise. Allow saddr,#imm.
26568 (cbranchhi4_real): Likewise.
26569 (cbranchhi4_real_inverted): Likewise.
26570 (cbranchsi4_real_lt): Likewise.
26571 (cbranchsi4_real_ge): Likewise.
26572 (cbranchsi4_real_ge): Likewise.
26573 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
26574 (sub<mode>3_virt): Likewise.
26575 (cbranchqi4_virt): Likewise.
26576 (cbranchhi4_virt): Likewise.
26577 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
26578 always use '[reg+imm]' even when imm is zero.
26579 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
26580 (rl78_general_operand): New.
26581 (rl78_nonimmediate_operand): New.
26582 (rl78_nonfar_operand): Use them.
26583 (rl78_nonfar_nonimm_operand): Likewise.
26584 (rl78_stack_based_mem): Fix.
26585 * config/rl78/constraints.md (Ibqi): New.
26586 (IBqi): New.
26587 (Wsa): New.
26588 (Wsf): New.
26589 (Cs1): Fix.
26590 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
26591 (iorqi3): Likewise.
26592 (xorqi3): Likewise.
26593 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
26594
26595 * config/rl78/constrains (Qs8): New constraint.
26596 * config/rl78/rl78.c (rl78_flags_already_set): New function.
26597 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
26598 * config/rl78/rl78-real.md (update_Z): New attribute.
26599 Update patterns to set it.
26600 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
26601 shorter compare and branch sequence can be used.
26602 (cbranchhi4_real): Likewise.
26603 (cbranchhi4_real_inverted): Likewise.
26604
26605 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
26606 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
26607 address space.
26608 * config/rl78/rl78.c (rl78_get_name_encoding): New.
26609 (rl78_option_override): Allow -mes0 only if C.
26610 (characterize_address): Support subregs of symbol_refs.
26611 (rl78_addr_space_address_mode): Move. Add __near.
26612 (rl78_far_p): Likewise.
26613 (rl78_addr_space_pointer_mode): Likewise.
26614 (rl78_as_legitimate_address): Likewise.
26615 (rl78_addr_space_subset_p): Likewise.
26616 (rl78_addr_space_convert): Likewise.
26617 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
26618 symbols with -mes0.
26619 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
26620 addressing.
26621 (rl78_alloc_physical_registers_op1): Change logic to prefer
26622 symbol[BC] addressing.
26623 (frodata_section): New.
26624 (rl78_asm_init_sections): Initialize it.
26625 (rl78_select_section): Put __far readonly symbols in .frodata.
26626 (rl78_make_type_far): New.
26627 (rl78_insert_attributes): Force all readonly symbols to be
26628 __far when -mes0.
26629 (rl78_asm_out_integer): New.
26630 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
26631 * config/rl78/rl78.opt (-mes0): New.
26632
26633 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
26634 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
26635 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
26636 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
26637 (rl78_saddr_p): New.
26638 (rl78_output_aligned_common): New.
26639 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
26640 (rl78_handle_saddr_attribute): New.
26641 (rl78_handle_naked_attribute): New.
26642 (rl78_attribute_table): Add saddr.
26643 (rl78_print_operand_1): Don't print '!' on saddr operands.
26644 (rl78_print_operand_1): Strip encodings.
26645 (rl78_sfr_p): New.
26646 (rl78_strip_name_encoding): New.
26647 (rl78_attrlist_to_encoding): New.
26648 (rl78_encode_section_info): New.
26649 (rl78_asm_init_sections): New.
26650 (rl78_select_section): New.
26651 (rl78_output_labelref): New.
26652 (rl78_output_aligned_common): New.
26653 (rl78_asm_out_integer): New.
26654 (rl78_asm_ctor_dtor): New.
26655 (rl78_asm_constructor): New.
26656 (rl78_asm_destructor): New.
26657
26658 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
26659 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
26660 (transcode_memory_rtx): Update.
26661 (rl78_expand_epilogue): Use A_REG instead of 0.
26662
26663 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26664
26665 * config/arm/arm-protos.h (struct tune_params): New field
26666 sched_autopref_queue_depth.
26667 * config/arm/arm.c (sched-int.h): Include header.
26668 (arm_first_cycle_multipass_dfa_lookahead_guard,)
26669 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
26670 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
26671 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
26672 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
26673 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
26674 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
26675 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
26676 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
26677 * config/arm/t-arm (arm.o): Update.
26678 * haifa-sched.c (update_insn_after_change): Update.
26679 (rank_for_schedule): Use auto-prefetcher model, if requested.
26680 (autopref_multipass_init): New static function.
26681 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
26682 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
26683 variable for debug dumps.
26684 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
26685 (autopref_multipass_dfa_lookahead_guard): New global function that
26686 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
26687 (init_h_i_d): Update.
26688 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
26689 * sched-int.h (enum autopref_multipass_data_status): New const enum.
26690 (autopref_multipass_data_): Structure for auto-prefetcher data.
26691 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
26692 (struct _haifa_insn_data:autopref_multipass_data): New field.
26693 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
26694 (autopref_multipass_dfa_lookahead_guard): Declare.
26695
26696 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26697
26698 * rtlanal.c (get_base_term): Handle SCRATCH.
26699
26700 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26701
26702 * config/aarch64/aarch64.c
26703 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
26704 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
26705 * config/arm/arm.c
26706 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
26707 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
26708
26709 2015-01-17 Alan Modra <amodra@gmail.com>
26710
26711 * cprop.c (do_local_cprop): Disallow replacement of fixed
26712 hard registers.
26713
26714 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26715
26716 PR target/62066
26717 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
26718 early return 0.
26719
26720 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
26721
26722 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
26723 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
26724
26725 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26726
26727 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
26728 * config/arm/thumb1.md: ... Here.
26729
26730 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26731
26732 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
26733 TImode for TARGET_32BIT.
26734
26735 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26736
26737 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
26738 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
26739 as ...
26740 (rs6000_abi_word_mode): New function.
26741
26742 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26743
26744 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
26745 instead of UNITS_PER_WORD to describe the size of stack slots.
26746
26747 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26748
26749 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
26750 as rs6000_promote_function_mode. Move comment to there.
26751 (rs6000_promote_function_mode): New function.
26752
26753 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26754
26755 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
26756 -mpowerpc64 is active.
26757
26758 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26759
26760 PR middle-end/64353
26761 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
26762 virtuals on start.
26763
26764 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
26765
26766 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
26767 introduced in revision 219724.
26768
26769 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26770 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26771
26772 PR target/64263
26773 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
26774 destination is not a GP reg.
26775 (*movdi_aarch64): Likewise.
26776
26777 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
26778
26779 PR target/64623
26780 * config/rs6000/default64.h: Revert ISA change.
26781
26782 2015-01-16 Richard Biener <rguenther@suse.de>
26783
26784 PR middle-end/64614
26785 * tree-ssa-uninit.c: Include tree-cfg.h.
26786 (MAX_SWITCH_CASES): New define.
26787 (convert_control_dep_chain_into_preds): Handle switch statements.
26788 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
26789 (normalize_one_pred_1): Do not split bit-manipulations.
26790 Record (x & CST).
26791
26792 2015-01-16 Richard Biener <rguenther@suse.de>
26793
26794 PR tree-optimization/64568
26795 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
26796 complex load rewriting for TARGET_MEM_REFs.
26797
26798 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
26799
26800 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
26801
26802 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
26803
26804 PR target/64149
26805 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
26806 variable.
26807 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
26808 (aarch64_lra_p): Remove.
26809
26810 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26811
26812 PR target/64363
26813 * ipa-chkp.h (chkp_instrumentable_p): New.
26814 * ipa-chkp.c: Include tree-inline.h.
26815 (chkp_instrumentable_p): New.
26816 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
26817 Fix processing of not instrumentable functions.
26818 (chkp_versioning): Use chkp_instrumentable_p. Warn about
26819 not instrumentable functions.
26820 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
26821 chkp_instrumentable_p.
26822 * tree-inline.h (copy_forbidden): New.
26823 * tree-inline.c (copy_forbidden): Not static anymore.
26824
26825 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26826
26827 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
26828 ptr1, ptr2 unused.
26829
26830 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
26831
26832 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
26833 type OP_OUT to OP_INOUT.
26834
26835 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
26836
26837 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
26838 (high x) y) to y if x and y have the same base.
26839
26840 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
26841
26842 * config/arm/cortex-a57.md: New.
26843 * config/aarch64/aarch64.md: Include it.
26844 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
26845 * config/aarch64/aarch64-tune.md: Regenerate.
26846
26847 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
26848
26849 PR target/64015
26850 * ccmp.c (expand_ccmp_next): New function.
26851 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
26852 and compare insn sequence.
26853 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
26854 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
26855 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
26856 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
26857 (*ccmp_ior): Changed to ccmp_ior<mode>.
26858 (cmp<mode>): New pattern.
26859 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
26860 parameters.
26861 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
26862
26863 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
26864
26865 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
26866 _mm256_bsrli_epi128): New.
26867 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
26868
26869 2015-01-15 Jiong Wang <jiong.wang@arm.com>
26870
26871 * expmed.c (store_bit_field_using_insv): Improve warning message.
26872 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
26873
26874 2015-01-15 Jiong Wang <jiong.wang@arm.com>
26875
26876 PR rtl-optimization/64011
26877 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
26878 there is partial overflow.
26879
26880 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26881
26882 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
26883 prototype.
26884 (nds32_expand_epilogue_v3pop): Likewise.
26885 * config/nds32/nds32.md (sibcall): Define this for sibling call
26886 optimization.
26887 (sibcall_register): Likewise.
26888 (sibcall_immediate): Likewise.
26889 (sibcall_value): Likewise.
26890 (sibcall_value_register): Likewise.
26891 (sibcall_value_immediate): Likewise.
26892 (sibcall_epilogue): Likewise.
26893 (epilogue): Pass false to indicate this is not a sibcall epilogue.
26894 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
26895 (nds32_expand_epilogue_v3pop): Likewise.
26896
26897 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26898
26899 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
26900 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
26901 (return_internal): New.
26902 (return): Define this named pattern.
26903 (simple_return): Define this named pattern.
26904 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
26905 pattern instead of unspec_volatile_func_return.
26906 (nds32_expand_epilogue_v3pop): Likewise.
26907 (nds32_can_use_return_insn): New function.
26908
26909 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26910
26911 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
26912 * config/nds32/nds32.md (pop25return): New.
26913 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
26914 pop25return pattern.
26915
26916 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26917
26918 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
26919 -mforbid-fp-as-gp, and -mex9 options.
26920
26921 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26922
26923 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
26924 remove -mgp-direct option.
26925
26926 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26927
26928 * doc/invoke.texi (--param early-inlining-insns): Update default value.
26929 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
26930
26931 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26932
26933 * ipa-inline.c (inline_small_functions): Work around hints
26934 cache issue.
26935
26936 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
26937
26938 PR target/59710
26939 * doc/invoke.texi (Option Summary): Document new Nios II
26940 -mgpopt= syntax.
26941 (Nios II Options): Likewise.
26942 * config/nios2/nios2.opt: Add -mgpopt= option support.
26943 Modify existing -mgpopt and -mno-gpopt options to be aliases.
26944 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
26945 * config/nios2/nios2.c (nios2_option_override): Adjust
26946 -mgpopt defaulting.
26947 (nios2_in_small_data_p): Return true for explicit small data
26948 sections even with -G0.
26949 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
26950 option choices.
26951
26952 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26953
26954 PR ipa/64612
26955 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
26956 of comdat locals.
26957 (inline_call): Fix removal of aliases.
26958
26959 2015-01-15 Jakub Jelinek <jakub@redhat.com>
26960
26961 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
26962 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
26963 * opts.c (common_handle_option): Add -fsanitize=vptr.
26964 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
26965 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
26966 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
26967 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
26968 (ubsan_expand_vptr_ifn): New prototype.
26969 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
26970 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
26971 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
26972 expand_LOOP_VECTORIZED): Make argument nameless, remove
26973 ATTRIBUTE_UNUSED.
26974 (expand_UBSAN_VPTR): New function.
26975 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
26976 in fn spec.
26977 (UBSAN_VPTR): New internal function.
26978 * sanopt.c (tree_map_traits): Renamed to ...
26979 (sanopt_tree_map_traits): ... this.
26980 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
26981 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
26982 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
26983 (maybe_optimize_ubsan_vptr_ifn): New function.
26984 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
26985 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
26986 -fsanitize=vptr.
26987 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
26988 internal calls like pure functions for aliasing, even when they
26989 have other side-effects that prevent making them ECF_PURE.
26990 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
26991 (ubsan_expand_vptr_ifn): New function.
26992
26993 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
26994
26995 PR rtl-optimization/64110
26996 * stmt.c (parse_output_constraint): Process '^' and '$'.
26997 (parse_input_constraint): Ditto.
26998 * lra-constraints.c (process_alt_operands): Process the new
26999 constraints.
27000 * ira-costs.c (record_reg_classes): Process the new constraint
27001 '^'.
27002 * genoutput.c (indep_constraints): Add '^' and '$'.
27003 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
27004 * doc/md.texi: Add description of the new constraints.
27005
27006 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
27007 Bernd Schmidt <bernds@codesourcery.com>
27008 Cesar Philippidis <cesar@codesourcery.com>
27009 James Norris <jnorris@codesourcery.com>
27010 Tom de Vries <tom@codesourcery.com>
27011 Ilmir Usmanov <i.usmanov@samsung.com>
27012 Dmitry Bocharnikov <dmitry.b@samsung.com>
27013 Evgeny Gavrin <e.gavrin@samsung.com>
27014 Jakub Jelinek <jakub@redhat.com>
27015
27016 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
27017 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27018 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27019 New function types.
27020 * builtins.c: Include "gomp-constants.h".
27021 (expand_builtin_acc_on_device): New function.
27022 (expand_builtin, is_inexpensive_builtin): Handle
27023 BUILT_IN_ACC_ON_DEVICE.
27024 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
27025 New macros.
27026 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
27027 flag_openmp.
27028 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
27029 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
27030 i386/intelmic-offload.h.
27031 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
27032 to libgomp and its dependencies.
27033 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
27034 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27035 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27036 * config/ia64/hpux.h (LIB_SPEC): Likewise.
27037 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27038 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27039 * doc/generic.texi: Update for OpenACC changes.
27040 * doc/gimple.texi: Likewise.
27041 * doc/invoke.texi: Likewise.
27042 * doc/sourcebuild.texi: Likewise.
27043 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
27044 GF_OMP_FOR_KIND_OACC_LOOP.
27045 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
27046 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
27047 GF_OMP_TARGET_KIND_OACC_UPDATE,
27048 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27049 Dump more data.
27050 * gimple.c: Update comments for OpenACC changes.
27051 * gimple.def: Likewise.
27052 * gimple.h: Likewise.
27053 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
27054 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27055 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
27056 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27057 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
27058 appropriate place.
27059 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
27060 * gimplify.c: Include "gomp-constants.h".
27061 Update comments for OpenACC changes.
27062 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
27063 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
27064 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27065 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
27066 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27067 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27068 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
27069 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27070 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
27071 OMP_CLAUSE_SEQ.
27072 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
27073 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
27074 OMP_CLAUSE_SET_MAP_KIND.
27075 (gimplify_oacc_cache): New function.
27076 (gimplify_omp_for): Handle OACC_LOOP.
27077 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
27078 OACC_DATA.
27079 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
27080 OACC_EXIT_DATA, OACC_UPDATE.
27081 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
27082 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
27083 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
27084 (gimplify_body): Consider flag_openacc next to flag_openmp.
27085 * lto-streamer-out.c: Include "gomp-constants.h".
27086 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
27087 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
27088 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
27089 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
27090 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
27091 (BUILT_IN_ACC_ON_DEVICE): New builtins.
27092 * omp-low.c: Include "gomp-constants.h".
27093 Update comments for OpenACC changes.
27094 (struct omp_context): Add reduction_map, gwv_below, gwv_this
27095 members.
27096 (extract_omp_for_data, use_pointer_for_field, install_var_field)
27097 (new_omp_context, delete_omp_context, scan_sharing_clauses)
27098 (create_omp_child_function, scan_omp_for, scan_omp_target)
27099 (check_omp_nesting_restrictions, lower_reduction_clauses)
27100 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
27101 Update for OpenACC changes.
27102 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
27103 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
27104 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
27105 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27106 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
27107 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
27108 OMP_CLAUSE_MAP_*.
27109 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27110 Handle GF_OMP_FOR_KIND_OACC_LOOP.
27111 (expand_omp_target, lower_omp_target): Handle
27112 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27113 GF_OMP_TARGET_KIND_OACC_UPDATE,
27114 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
27115 GF_OMP_TARGET_KIND_OACC_DATA.
27116 (pass_expand_omp::execute, execute_lower_omp)
27117 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
27118 flag_openmp.
27119 (offload_symbol_decl): New variable.
27120 (oacc_get_reduction_array_id, oacc_max_threads)
27121 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
27122 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
27123 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
27124 (oacc_gimple_assign, oacc_initialize_reduction_data)
27125 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
27126 functions.
27127 (is_targetreg_ctx): Remove function.
27128 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
27129 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
27130 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27131 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
27132 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
27133 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
27134 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
27135 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
27136 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
27137 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
27138 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
27139 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
27140 * tree-core.h: Update comments for OpenACC changes.
27141 (enum omp_clause_map_kind): Remove.
27142 (struct tree_omp_clause): Change type of map_kind member from enum
27143 omp_clause_map_kind to unsigned char.
27144 * tree-inline.c: Update comments for OpenACC changes.
27145 * tree-nested.c: Likewise. Include "gomp-constants.h".
27146 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
27147 (convert_tramp_reference_stmt, convert_gimple_call): Update for
27148 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
27149 OMP_CLAUSE_SET_MAP_KIND.
27150 * tree-pretty-print.c: Include "gomp-constants.h".
27151 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
27152 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
27153 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
27154 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
27155 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27156 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
27157 instead of OMP_CLAUSE_MAP_*.
27158 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
27159 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
27160 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27161 * tree-streamer-in.c: Include "gomp-constants.h".
27162 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
27163 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
27164 * tree-streamer-out.c: Include "gomp-constants.h".
27165 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
27166 OMP_CLAUSE_MAP_*.
27167 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
27168 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
27169 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
27170 * tree.c (omp_clause_num_ops): Update accordingly.
27171 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
27172 Likewise.
27173 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
27174 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
27175 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
27176 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
27177 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
27178 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
27179 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
27180 (OMP_CLAUSE_SET_MAP_KIND): New macro.
27181 * varpool.c (varpool_node::get_create): Consider flag_openacc next
27182 to flag_openmp.
27183 * config/i386/intelmic-offload.h: New file.
27184 * config/nvptx/offload.h: Likewise.
27185
27186 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27187
27188 * explow.h: Remove duplicate contents.
27189 * dojump.h: Likewise.
27190
27191 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
27192
27193 * arm.c (arm_xgene_tune): Add default initializer for instruction
27194 fusion.
27195
27196 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27197
27198 PR ipa/64068
27199 PR ipa/64559
27200 * ipa.c (symbol_table::remove_unreachable_nodes):
27201 Do not put abstract origins into boundary.
27202
27203 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
27204
27205 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
27206 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
27207
27208 2015-01-15 Steve Ellcey <sellcey@mips.com>
27209
27210 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
27211 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
27212 builtins.def, and chkp-builtins.def.
27213
27214 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
27215
27216 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
27217 ISA 2.7 (POWER8).
27218
27219 2015-01-15 Richard Biener <rguenther@suse.de>
27220
27221 PR tree-optimization/61743
27222 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
27223 information on PHIs for some simple cases.
27224
27225 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
27226
27227 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
27228 Include xgene1.md.
27229 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
27230 * config/arm/arm-cores.def (xgene1): New entry.
27231 * config/arm/arm-tables.opt: Regenerate.
27232 * config/arm/arm-tune.md: Regenerate.
27233 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
27234
27235 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
27236
27237 * tree-if-conv.c: Include hash-map.h.
27238 (aggressive_if_conv): New variable.
27239 (fold_build_cond_expr): Add simplification of non-zero condition.
27240 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
27241 destination block is not always executed.
27242 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
27243 than two predecessors if AGGRESSIVE_IF_CONV is true.
27244 (if_convertible_stmt_p): Fix commentary.
27245 (all_preds_critical_p): New function.
27246 (has_pred_critical_p): New function.
27247 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
27248 BB can have more than two predecessors and all incoming edges can be
27249 critical.
27250 (predicate_bbs): Skip predication for loop exit block, use build2_loc
27251 to compute predicate for true edge.
27252 (find_phi_replacement_condition): Delete this function.
27253 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
27254 Allow interchange PHI arguments if EXTENDED is false.
27255 Change check that block containing reduction statement candidate
27256 is predecessor of phi-block since phi may have more than two arguments.
27257 (phi_args_hash_traits): New helper structure.
27258 (struct phi_args_hash_traits): New type.
27259 (phi_args_hash_traits::hash): New function.
27260 (phi_args_hash_traits::equal_keys): New function.
27261 (gen_phi_arg_condition): New function.
27262 (predicate_scalar_phi): Add handling of phi nodes with more than two
27263 arguments, delete COND and TRUE_BB arguments, insert body of
27264 find_phi_replacement_condition to predicate ordinary phi nodes.
27265 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
27266 delete call of find_phi_replacement_condition and invoke
27267 predicate_scalar_phi with two arguments.
27268 (insert_gimplified_predicates): Add assert that non-predicated block
27269 don't have statements to insert.
27270 (ifcvt_split_critical_edges): New function.
27271 (ifcvt_split_def_stmt): Likewise.
27272 (ifcvt_walk_pattern_tree): Likewise.
27273 (stmt_is_root_of_bool_pattern): Likewise.
27274 (ifcvt_repair_bool_pattern): Likewise.
27275 (ifcvt_local_dce): Likewise.
27276 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
27277 is copy of inner or outer loop force_vectorize field, invoke
27278 ifcvt_split_critical_edges, ifcvt_local_dce and
27279 ifcvt_repair_bool_pattern for aggressive if-conversion.
27280
27281 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
27282
27283 * config/aarch64/aarch64.md: Include xgene1.md.
27284 * config/aarch64/xgene1.md: New file.
27285
27286 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
27287
27288 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
27289 xgene1 (APM XGene-1) core definition.
27290 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
27291 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
27292 * doc/invoke.texi: Document -mcpu=xgene1.
27293
27294 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27295
27296 * dojump.h: New header file.
27297 * explow.h: Likewise.
27298 * expr.h: Remove includes.
27299 Move expmed.c prototypes to expmed.h.
27300 Move dojump.c prototypes to dojump.h.
27301 Move alias.c prototypes to alias.h.
27302 Move explow.c prototypes to explow.h.
27303 Move calls.c prototypes to calls.h.
27304 Move emit-rtl.c prototypes to emit-rtl.h.
27305 Move varasm.c prototypes to varasm.h.
27306 Move stmt.c prototypes to stmt.h.
27307 (saved_pending_stack_adjust): Move to dojump.h.
27308 (adjust_address): Move to explow.h.
27309 (adjust_address_nv): Move to emit-rtl.h.
27310 (adjust_bitfield_address): Likewise.
27311 (adjust_bitfield_address_size): Likewise.
27312 (adjust_bitfield_address_nv): Likewise.
27313 (adjust_automodify_address_nv): Likewise.
27314 * explow.c (expr_size): Move to expr.c.
27315 (int_expr_size): Likewise.
27316 (tree_expr_size): Likewise.
27317 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27318 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27319 * genemit.c (main): Generate includes statistics.h, real.h,
27320 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
27321 stmt.h.
27322 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
27323 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
27324 explow.h, emit-rtl.h, stmt.h.
27325 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
27326 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
27327 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
27328 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
27329 emit-rtl.h, varasm.h, stmt.h.
27330 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
27331 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
27332 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
27333 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
27334 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27335 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
27336 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
27337 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
27338 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
27339 tm.h tree.h varasm.h vec.h wide-int.h.
27340 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27341 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27342 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
27343 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
27344 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
27345 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
27346 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
27347 * loop-iv.c: Likewise.
27348 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
27349 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
27350 statistics.h stmt.h tree.h varasm.h wide-int.h.
27351 * lra-constraints.c: Likewise.
27352 * lra-eliminations.c: Likewise.
27353 * lra-lives.c: Likewise.
27354 * lra-remat.c: Likewise.
27355 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27356 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
27357 statistics.h stmt.h tree.h varasm.h wide-int.h.
27358 * hw-doloop.c: Likewise.
27359 * ira-color.c: Likewise.
27360 * ira-emit.c: Likewise.
27361 * loop-doloop.c: Likewise.
27362 * loop-invariant.c: Likewise.
27363 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27364 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
27365 statistics.h stmt.h tree.h varasm.h wide-int.h.
27366 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
27367 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
27368 statistics.h stmt.h tree.h varasm.h wide-int.h.
27369 * combine-stack-adj.c: Likewise.
27370 * cse.c: Likewise.
27371 * ddg.c: Likewise.
27372 * ifcvt.c: Likewise.
27373 * ira-costs.c: Likewise.
27374 * jump.c: Likewise.
27375 * lra-coalesce.c: Likewise.
27376 * lra-spills.c: Likewise.
27377 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27378 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
27379 stmt.h varasm.h wide-int.h.
27380 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27381 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27382 varasm.h.
27383 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
27384 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
27385 statistics.h stmt.h varasm.h wide-int.h.
27386 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
27387 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
27388 varasm.h wide-int.h.
27389 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
27390 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27391 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
27392 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
27393 statistics.h stmt.h.
27394 * config/tilepro/tilepro.c: Likewise.
27395 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
27396 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
27397 * config/pdp11/pdp11.c: Likewise.
27398 * config/xtensa/xtensa.c: Likewise.
27399 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
27400 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27401 varasm.h.
27402 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27403 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27404 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
27405 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27406 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27407 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
27408 * rtl-chkp.c: Likewise.
27409 * tree-chkp-opt.c: Likewise.
27410 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
27411 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27412 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
27413 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27414 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27415 statistics.h stmt.h.
27416 * tree-vect-data-refs.c: Likewise.
27417 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
27418 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27419 rtl.h statistics.h stmt.h varasm.h.
27420 * internal-fn.c: Likewise.
27421 * ipa-icf-gimple.c: Likewise.
27422 * lto-section-out.c: Likewise.
27423 * tree-data-ref.c: Likewise.
27424 * tree-nested.c: Likewise.
27425 * tree-outof-ssa.c: Likewise.
27426 * tree-predcom.c: Likewise.
27427 * tree-pretty-print.c: Likewise.
27428 * tree-scalar-evolution.c: Likewise.
27429 * tree-ssa-strlen.c: Likewise.
27430 * tree-vect-loop.c: Likewise.
27431 * tree-vect-patterns.c: Likewise.
27432 * tree-vect-slp.c: Likewise.
27433 * tree-vect-stmts.c: Likewise.
27434 * tsan.c: Likewise.
27435 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27436 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
27437 stmt.h.
27438 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
27439 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27440 statistics.h stmt.h varasm.h.
27441 * loop-unroll.c: Likewise.
27442 * ubsan.c: Likewise.
27443 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
27444 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
27445 stmt.h varasm.h.
27446 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27447 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
27448 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
27449 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
27450 statistics.h stmt.h.
27451 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
27452 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
27453 statistics.h stmt.h varasm.h.
27454 * gimple-match-head.c: Likewise.
27455 * lto-cgraph.c: Likewise.
27456 * lto-section-in.c: Likewise.
27457 * lto-streamer-in.c: Likewise.
27458 * lto-streamer-out.c: Likewise.
27459 * tree-affine.c: Likewise.
27460 * tree-cfg.c: Likewise.
27461 * tree-cfgcleanup.c: Likewise.
27462 * tree-if-conv.c: Likewise.
27463 * tree-into-ssa.c: Likewise.
27464 * tree-ssa-alias.c: Likewise.
27465 * tree-ssa-copyrename.c: Likewise.
27466 * tree-ssa-dse.c: Likewise.
27467 * tree-ssa-forwprop.c: Likewise.
27468 * tree-ssa-live.c: Likewise.
27469 * tree-ssa-math-opts.c: Likewise.
27470 * tree-ssa-pre.c: Likewise.
27471 * tree-ssa-sccvn.c: Likewise.
27472 * tree-tailcall.c: Likewise.
27473 * tree-vect-generic.c: Likewise.
27474 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27475 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
27476 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27477 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
27478 * varasm.c: Likewise.
27479 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27480 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
27481 varasm.h.
27482 * init-regs.c: Likewise.
27483 * ira.c: Likewise.
27484 * omp-low.c: Likewise.
27485 * stack-ptr-mod.c: Likewise.
27486 * tree-ssa-reassoc.c: Likewise.
27487 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27488 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
27489 varasm.h.
27490 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27491 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
27492 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27493 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
27494 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27495 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
27496 * tree-ssa-phiopt.c: Likewise.
27497 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27498 fixed-value.h hashtab.h real.h statistics.h stmt.h.
27499 * config/fr30/fr30.c: Likewise.
27500 * config/frv/frv.c: Likewise.
27501 * expr.c: Likewise.
27502 * final.c: Likewise.
27503 * optabs.c: Likewise.
27504 * passes.c: Likewise.
27505 * simplify-rtx.c: Likewise.
27506 * stmt.c: Likewise.
27507 * toplev.c: Likewise.
27508 * var-tracking.c: Likewise.
27509 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27510 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27511 * lower-subreg.c: Likewise.
27512 * postreload-gcse.c: Likewise.
27513 * ree.c: Likewise.
27514 * reginfo.c: Likewise.
27515 * store-motion.c: Likewise.
27516 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27517 fixed-value.h hashtab.h real.h stmt.h varasm.h.
27518 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27519 fixed-value.h hashtab.h statistics.h stmt.h.
27520 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27521 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27522 * except.c: Likewise.
27523 * explow.c: Likewise.
27524 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27525 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
27526 varasm.h.
27527 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27528 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
27529 * tree-ssa-structalias.c: Likewise.
27530 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27531 fixed-value.h insn-config.h real.h statistics.h.
27532 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27533 fixed-value.h insn-config.h real.h statistics.h stmt.h.
27534 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27535 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
27536 * cfgbuild.c: Likewise.
27537 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27538 fixed-value.h real.h rtl.h statistics.h stmt.h.
27539 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27540 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27541 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27542 fixed-value.h real.h statistics.h stmt.h.
27543 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27544 fixed-value.h real.h statistics.h stmt.h varasm.h.
27545 * cprop.c: Likewise.
27546 * modulo-sched.c: Likewise.
27547 * postreload.c: Likewise.
27548 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
27549 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
27550 statistics.h stmt.h varasm.h.
27551 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
27552 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27553 rtl.h statistics.h stmt.h varasm.h.
27554 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
27555 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
27556 varasm.h.
27557 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
27558 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
27559 varasm.h.
27560 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
27561 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
27562 varasm.h.
27563 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
27564 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27565 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27566 function.h real.h statistics.h stmt.h varasm.h.
27567 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27568 insn-config.h real.h statistics.h stmt.h.
27569 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27570 statistics.h stmt.h.
27571 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
27572 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
27573 statistics.h stmt.h varasm.h.
27574 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
27575 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
27576 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27577 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
27578 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
27579 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27580 statistics.h stmt.h varasm.h.
27581 * ipa-polymorphic-call.c: Likewise.
27582 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
27583 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27584 statistics.h stmt.h.
27585 * config/c6x/c6x.c: Likewise.
27586 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
27587 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27588 statistics.h stmt.h varasm.h.
27589 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
27590 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
27591 stmt.h varasm.h.
27592 * ipa-split.c: Likewise.
27593 * tree-eh.c: Likewise.
27594 * tree-ssa-dce.c: Likewise.
27595 * tree-ssa-loop-niter.c: Likewise.
27596 * tree-vrp.c: Likewise.
27597 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
27598 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
27599 stmt.h.
27600 * config/nds32/nds32-fp-as-gp.c: Likewise.
27601 * config/nds32/nds32-intrinsic.c: Likewise.
27602 * config/nds32/nds32-isr.c: Likewise.
27603 * config/nds32/nds32-md-auxiliary.c: Likewise.
27604 * config/nds32/nds32-memory-manipulation.c: Likewise.
27605 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27606 * config/nds32/nds32-predicates.c: Likewise.
27607 * config/nds32/nds32.c: Likewise.
27608 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
27609 fixed-value.h hashtab.h real.h statistics.h.
27610 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
27611 fixed-value.h hashtab.h real.h statistics.h stmt.h.
27612 * config/arm/arm.c: Likewise.
27613 * config/avr/avr.c: Likewise.
27614 * config/bfin/bfin.c: Likewise.
27615 * config/h8300/h8300.c: Likewise.
27616 * config/i386/i386.c: Likewise.
27617 * config/ia64/ia64.c: Likewise.
27618 * config/iq2000/iq2000.c: Likewise.
27619 * config/m32c/m32c.c: Likewise.
27620 * config/m32r/m32r.c: Likewise.
27621 * config/m68k/m68k.c: Likewise.
27622 * config/mcore/mcore.c: Likewise.
27623 * config/mep/mep.c: Likewise.
27624 * config/mips/mips.c: Likewise.
27625 * config/mn10300/mn10300.c: Likewise.
27626 * config/moxie/moxie.c: Likewise.
27627 * config/pa/pa.c: Likewise.
27628 * config/rl78/rl78.c: Likewise.
27629 * config/rx/rx.c: Likewise.
27630 * config/s390/s390.c: Likewise.
27631 * config/sh/sh.c: Likewise.
27632 * config/sparc/sparc.c: Likewise.
27633 * config/spu/spu.c: Likewise.
27634 * config/stormy16/stormy16.c: Likewise.
27635 * config/v850/v850.c: Likewise.
27636 * config/vax/vax.c: Likewise.
27637 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
27638 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27639 * config/msp430/msp430.c: Likewise.
27640 * predict.c: Likewise.
27641 * value-prof.c: Likewise.
27642 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
27643 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
27644 * config/microblaze/microblaze.c: Likewise.
27645 * config/nios2/nios2.c: Likewise.
27646 * config/rs6000/rs6000.c: Likewise.
27647 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27648 insn-config.h real.h rtl.h statistics.h stmt.h.
27649 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27650 insn-config.h real.h statistics.h stmt.h.
27651 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
27652 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
27653 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
27654 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27655 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
27656 fixed-value.h real.h statistics.h stmt.h.
27657 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
27658 fixed-value.h statistics.h stmt.h.
27659 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
27660 stmt.h.
27661
27662 2015-01-15 Jakub Jelinek <jakub@redhat.com>
27663
27664 * gengtype.c (create_user_defined_type): Workaround
27665 -Wmaybe-uninitialized false positives.
27666 * cse.c (fold_rtx): Likewise.
27667 * loop-invariant.c (gain_for_invariant): Likewise.
27668
27669 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
27670
27671 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
27672 set the memory attributes in all cases but clear MEM_EXPR if need be.
27673
27674 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
27675
27676 PR tree-optimization/64434
27677 * cfgexpand.c (reorder_operands): New function.
27678 (expand_gimple_basic_block): Insert call of reorder_operands if
27679 optimized is true.
27680
27681 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
27682
27683 * config/mips/micromips.md (*swp): Remove explicit parallel.
27684 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
27685 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
27686 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
27687 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
27688 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
27689 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
27690 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
27691 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
27692 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
27693 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
27694 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
27695 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
27696 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
27697 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
27698 (mips_wrdsp): Likewise.
27699 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
27700 parallel.
27701 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
27702 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
27703 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
27704 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
27705 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
27706 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
27707 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
27708 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
27709 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
27710
27711 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27712
27713 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
27714 (mips_print_operand): Support 'y' to print exact log2 in decimal
27715 of a const_int.
27716 * config/mips/mips.h (ISA_HAS_LSA): New define.
27717 (ISA_HAS_DLSA): Likewise.
27718 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
27719 * config/mips/predicates.md (const_immlsa_operand): New predicate.
27720
27721 2015-01-15 Martin Liska <mliska@suse.cz>
27722
27723 PR target/64377
27724 * optc-save-gen.awk: Add support for array types.
27725
27726 2015-01-15 Richard Biener <rguenther@suse.de>
27727
27728 PR middle-end/64365
27729 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
27730 for MEM_REF access functions with the same base can never partially
27731 overlap.
27732
27733 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
27734
27735 * common.opt: New option -fstack-protector-explicit.
27736 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
27737 (stack_protect_decl_phase): Handle stack_protect attribute for
27738 explicit stack protection requests.
27739 (expand_used_vars): Similarly.
27740 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
27741 * doc/extend.texi: Add documentation for "stack_protect" attribute.
27742 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
27743
27744 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
27745
27746 PR target/53988
27747 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
27748 reg-reg copies.
27749 (sh_extending_set_of_reg): New struct.
27750 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
27751 sh_remove_reg_dead_or_unused_notes): New Declarations.
27752 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
27753 sh_find_extending_set_of_reg, sh_split_tst_subregs,
27754 sh_extending_set_of_reg::use_as_extended_reg): New functions.
27755 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
27756 convert to insn_and_split and use new function sh_split_tst_subregs.
27757
27758 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
27759
27760 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
27761 option.
27762 (Optimization Options): Move -fuse-ld documentation to...
27763 (Link Options): ...here.
27764
27765 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27766
27767 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
27768 offsets.
27769 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
27770 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
27771 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
27772 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
27773 instead of ZR for the memory operand of LL/SC.
27774 (compare_and_swap_12, sync_add<mode>): Likewise.
27775 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
27776 (sync_new_<optab>_12, sync_nand_12): Likewise.
27777 (sync_old_nand_12, sync_new_nand_12): Likewise.
27778 (sync_sub<mode>, sync_old_add<mode>): Likewise.
27779 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
27780 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
27781 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
27782 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
27783 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
27784 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
27785 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
27786 * doc/md.texi (ZC): Update description.
27787
27788 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
27789
27790 * builtins.c (expand_builtin_atomic_exchange): Remove error when
27791 memory model is CONSUME.
27792 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
27793 expand_builtin_atomic_store): Change invalid memory model errors to
27794 warnings.
27795 (expand_builtin_atomic_clear): Change invalid model errors to warnings
27796 and issue warning for CONSUME.
27797
27798 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
27799
27800 * lto-cgraph: Update function comments for
27801 lto_symtab_encoder_encode_*.
27802
27803 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
27804
27805 * Makefile.in (site.exp): Do not set ENABLE_LTO.
27806
27807 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
27808
27809 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
27810 * lto-cgraph.c (select_what_to_stream): Remove argument, use
27811 lto_stream_offload_p instead.
27812 * lto-streamer.h (select_what_to_stream): Remove argument.
27813 * passes.c (ipa_write_summaries): Likewise.
27814 * tree-pass.h (ipa_write_summaries): Likewise.
27815
27816 2015-01-14 Richard Biener <rguenther@suse.de>
27817
27818 PR tree-optimization/59354
27819 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
27820 groups larger than the slp group size as having gaps.
27821
27822 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
27823
27824 PR middle-end/59448
27825 * builtins.c (get_memmodel): Promote consume to acquire always.
27826
27827 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27828
27829 PR target/64386
27830 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
27831 V32HImode.
27832
27833 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27834
27835 PR target/64393
27836 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
27837 Enable AVX512BW.
27838 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
27839 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
27840 AVX512VBMI, as it implies AVX512BW.
27841
27842 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27843
27844 PR target/64387
27845 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
27846 (vec_unpacks_hi_v16sf): Ditto.
27847
27848 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27849
27850 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
27851 is not available.
27852
27853 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27854
27855 * doc/invoke.texi (mapcs): Mention deprecation.
27856 (mapcs-frame): Likewise.
27857
27858 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
27859
27860 PR target/64453
27861 * config/arm/arm.c (callee_saved_reg_p): Define.
27862 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
27863 register is callee saved instead of !call_used_regs[reg].
27864 (thumb1_compute_save_reg_mask): Likewise.
27865
27866 2015-01-14 Hale Wang <hale.wang@arm.com>
27867
27868 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
27869 Cortex-M7.
27870
27871 2015-01-14 Richard Biener <rguenther@suse.de>
27872
27873 PR lto/64415
27874 * tree-inline.c (insert_debug_decl_map): Check destination
27875 function MAY_HAVE_DEBUG_STMTS.
27876 (insert_init_debug_bind): Likewise.
27877 (insert_init_stmt): Remove redundant check.
27878 (remap_gimple_stmt): Drop debug stmts if the destination
27879 function has var-tracking assignments disabled.
27880
27881 2015-01-14 Martin Liska <mliska@suse.cz>
27882
27883 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
27884 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
27885
27886 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27887
27888 PR target/64460
27889 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
27890 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
27891
27892 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27893
27894 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
27895 level from an ARCH; do not inject the default.
27896 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
27897 MIPS_ISA_LEVEL_SPEC.
27898 (MIPS_ISA_NAN2008_SPEC): Update comment.
27899 (BASE_DRIVER_SELF_SPECS): Likewise.
27900 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
27901 MIPS_DEFAULT_ISA_LEVEL_SPEC.
27902 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
27903 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
27904 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
27905
27906 2015-01-14 Richard Biener <rguenther@suse.de>
27907
27908 PR tree-optimization/64493
27909 PR tree-optimization/64495
27910 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
27911 assign the proper vectorized PHI to the inner loop exit PHIs.
27912
27913 2015-01-14 Joey Ye <joey.ye@arm.com>
27914
27915 * config/arm/arm.c (arm_compute_save_reg_mask):
27916 Do not save lr in case of tail call.
27917 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
27918
27919 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
27920
27921 * tree-vrp.c (check_array_ref): Emit more warnings
27922 for warn_array_bounds >= 2.
27923 * common.opt: New option -Warray-bounds=.
27924 * doc/invoke.texi: Document -Warray-bounds=.
27925
27926 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
27927
27928 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
27929 (mforbid-fp-as-gp): Remove.
27930 (mex9): Remove.
27931 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
27932 (nds32_symbol_load_store_p): Remove.
27933 (nds32_fp_as_gp_check_available): Clean up implementation.
27934 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
27935 cases.
27936 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
27937 fp-as-gp and ex9 cases.
27938
27939 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27940
27941 * tree-profile.c (init_ic_make_global_vars): Drop workaround
27942 for bintuils bug 14342.
27943 (init_ic_make_global_vars): Likewise.
27944 (gimple_init_edge_profiler): Likewise.
27945 (gimple_gen_ic_func_profiler): Likewise.
27946
27947 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27948
27949 * ipa-inline.c (inline_small_functions): Swap the operands in
27950 enum.
27951
27952 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27953
27954 PR ipa/64481
27955 * ipa-inline-analysis.c (node_growth_cache): Remove.
27956 (initialize_growth_caches): Do not initialize it.
27957 (free_growth_caches): Do not free it.
27958 (do_estimate_growth): Rename to ...
27959 (estimate_growth): ... this one; drop growth cache code.
27960 (growth_likely_positive): Always go the heuristics way.
27961 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
27962 (reset_edge_caches): Do not reset node growth.
27963 (heap_edge_removal_hook): Do not maintain cache.
27964 (inline_small_functions): Likewise; strenghten sanity check.
27965 (ipa_inline): Do not maintain caches.
27966 * ipa-inline.h (node_growth_cache): Remove.
27967 (do_estimate_growth): Remove to ...
27968 (estimate_growth): this one; remove inline version.
27969 (reset_node_growth_cache): Remove.
27970
27971 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27972
27973 PR ipa/64565
27974 * ipa-inline.c (inline_small_functions): Update callee keys after
27975 resolving speculation
27976 (inline_small_functions): Always check monotonicity of the queue.
27977
27978 2015-01-13 Marek Polacek <polacek@redhat.com>
27979
27980 PR middle-end/64391
27981 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
27982
27983 2015-01-13 Jakub Jelinek <jakub@redhat.com>
27984
27985 PR rtl-optimization/64286
27986 * ree.c (combine_reaching_defs): Move part of comment earlier,
27987 remove !SCALAR_INT_MODE_P check.
27988 (add_removable_extension): Don't add vector mode
27989 extensions if all uses of the source register aren't the same
27990 vector extensions.
27991
27992 2015-01-13 Renlin Li <renlin.li@arm.com>
27993
27994 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
27995 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
27996
27997 2015-01-13 Martin Liska <mliska@suse.cz>
27998
27999 * ipa-icf.c (sem_function::equals_private): Call new functions
28000 cl_target_option_print_diff and cl_optimization_print_diff.
28001 * optc-save-gen.awk (cl_target_option_print_diff): New function.
28002 (cl_optimization_print_diff): Likewise.
28003 * opth-gen.awk: Likewise.
28004
28005 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
28006
28007 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
28008 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
28009 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
28010 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
28011 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
28012 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
28013
28014 2015-01-13 Andrew Pinski <apinski@cavium.com>
28015
28016 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
28017 instead of src mode.
28018
28019 2015-01-13 Richard Biener <rguenther@suse.de>
28020
28021 PR lto/64373
28022 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
28023 DECL_CONTEXT.
28024
28025 2015-01-13 Andrew Pinski <apinski@cavium.com>
28026
28027 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
28028 volatile mems.
28029 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
28030
28031 2015-01-13 Jakub Jelinek <jakub@redhat.com>
28032
28033 PR middle-end/63974
28034 * cfgexpand.c (expand_computed_goto): Don't call
28035 convert_memory_address here.
28036
28037 2015-01-13 Richard Biener <rguenther@suse.de>
28038
28039 PR tree-optimization/64406
28040 * tree-loop-distibution.c (pass_loop_distribution::execute):
28041 Reset the SCEV hashtable if we distributed anything.
28042
28043 2015-01-13 Richard Biener <rguenther@suse.de>
28044
28045 PR tree-optimization/64404
28046 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
28047 SLP types for CSEd loads.
28048
28049 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28050
28051 PR tree-optimization/64436
28052 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
28053 merge of two symbolic numbers for a bitwise OR to ...
28054 (perform_symbolic_merge): This. Also fix computation of the range and
28055 end of the symbolic number corresponding to the result of a bitwise OR.
28056
28057 2015-01-13 Richard Biener <rguenther@suse.de>
28058
28059 PR tree-optimization/64568
28060 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
28061 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
28062
28063 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28064
28065 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
28066 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
28067
28068 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28069
28070 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
28071 target-specific symbol_ref flag.
28072 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
28073 resides in rodata section.
28074 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
28075 (nds32_encode_section_info): New function.
28076
28077 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28078
28079 * config/nds32/nds32.md (call): Use pseudo instruction bal which
28080 clobbers TA_REGNUM if large code model is specified.
28081 (call_register): Likewise.
28082 (call_immediate): Likewise.
28083 (call_value): Likewise.
28084 (call_value_register): Likewise.
28085 (call_value_immediate): Likewise.
28086
28087 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28088
28089 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
28090 (TARGET_CMODEL_MEDIUM): New macro.
28091 (TARGET_CMODEL_LARGE): New macro.
28092 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
28093 code model setting in assembly code.
28094
28095 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28096
28097 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28098 Remove MASK_GP_DIRECT flag.
28099 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
28100 one of the multilib default options.
28101 * config/nds32/nds32.opt (mgp-direct): Remove.
28102 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
28103 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
28104
28105 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28106
28107 * config/nds32/nds32.opt (mcmodel): Add new option.
28108 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
28109 to describe code model.
28110
28111 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
28112
28113 PR target/64479
28114 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
28115
28116 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
28117
28118 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
28119 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28120 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
28121 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
28122 __builtin_sh_set_fpscr.
28123
28124 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
28125
28126 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
28127 after a funtion name just to indicate it is a function.
28128 ([-fsanitize-undefined-trap-on-error]): Likewise.
28129 ([-fdbg-cnt=]): Likewise.
28130 ([-mmemcpy]): Likewise.
28131 ([-mflush-func]): Likewise.
28132 ([-msynci]): Likewise.
28133
28134 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
28135
28136 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
28137 example.
28138
28139 2015-01-12 Jakub Jelinek <jakub@redhat.com>
28140
28141 PR tree-optimization/64563
28142 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
28143 instead of != VR_VARYING.
28144
28145 PR target/64513
28146 * config/i386/i386.c (ix86_expand_prologue): Add
28147 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
28148
28149 PR tree-optimization/64454
28150 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
28151 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
28152 for signed or [0, op1 - 1] for unsigned modulo.
28153 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
28154 even if op1 does not satisfy integer_pow2p.
28155
28156 PR other/64370
28157 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
28158
28159 2015-01-12 Jeff Law <law@redhat.com>
28160
28161 PR target/64461
28162 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
28163 (trunchiqi2, truncsihi2): Similarly.
28164
28165 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
28166 rather than calling F.
28167
28168 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
28169
28170 * tsan.c (instrument_expr): Use force_gimple_operand.
28171 Use may_be_nonaddressable_p instead of is_gimple_addressable.
28172
28173 2015-01-12 Richard Biener <rguenther@suse.de>
28174
28175 PR tree-optimization/64530
28176 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
28177 back dr1.
28178
28179 2015-01-12 Richard Biener <rguenther@suse.de>
28180
28181 PR middle-end/64357
28182 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
28183 latches properly.
28184
28185 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28186
28187 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
28188 Cortex-A17 tuning parameters.
28189 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
28190
28191 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28192
28193 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
28194 * config/arm/arm.c (arm_macro_fusion_p): New function.
28195 (arm_macro_fusion_pair_p): Likewise.
28196 (TARGET_SCHED_MACRO_FUSION_P): Define.
28197 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
28198 (ARM_FUSE_NOTHING): Likewise.
28199 (ARM_FUSE_MOVW_MOVT): Likewise.
28200 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
28201 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
28202 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
28203 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
28204 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
28205 arm_cortex_a5_tune): Specify fuseable_ops value.
28206
28207 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
28208
28209 PR bootstrap/64561
28210 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
28211 test for PIE with copy reloc.
28212 * configure: Regenerated.
28213
28214 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28215
28216 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
28217 in gen_rtx_REG.
28218 (arm_tls_descseq_addr): Likewise.
28219 (arm_gen_movmemqi): Likewise.
28220 (arm_expand_epilogue_apcs_frame): Likewise.
28221 (arm_expand_epilogue): Likewise.
28222 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
28223 in gen_rtx_REG.
28224
28225 2015-01-12 Martin Liska <mliska@suse.cz>
28226
28227 PR ipa/64550
28228 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
28229 volatility for correct operands.
28230
28231 2015-01-12 Martin Liska <mliska@suse.cz>
28232
28233 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
28234 indication that a function is not leaf.
28235 (sem_function::compare_polymorphic_p): Likewise.
28236
28237 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28238
28239 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
28240 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
28241 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
28242 fold-const.h, tree-check.h.
28243
28244 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
28245
28246 PR ipa/63967
28247 PR ipa/64425
28248 * ipa-inline.c (compute_uninlined_call_time,
28249 compute_inlined_call_time): Use counts for extra precision when
28250 needed possible.
28251 (big_speedup_p): Fix formating.
28252 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
28253 (relative_time_benefit): Remove.
28254 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
28255 merge guessed and read profile paths.
28256 (inline_small_functions): Count only !optimize_size functions into
28257 initial size; be more lax about sanity check when profile is used;
28258 be sure to update inlined function profile when profile is read.
28259
28260 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
28261
28262 PR ipa/63470
28263 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
28264 cost when edge becomes direct.
28265 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
28266 is resolved or when introducing new speculation.
28267
28268 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
28269
28270 PR ipa/64551
28271 PR ipa/64552
28272 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
28273 '||' to fix typo issue.
28274
28275 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
28276 accept and return NULL.
28277
28278 2015-01-12 Martin Liska <mliska@suse.cz>
28279
28280 * cgraph.c (cgraph_edge::remove_callee): Move function to header
28281 file for being inlined.
28282 (cgraph_set_edge_callee): Delete.
28283 (cgraph_edge::redirect_callee): Move function to header file
28284 for being inlined.
28285 (cgraph_edge::make_direct): Use new function.
28286 (cgraph_edge::dump_edge_flags): New function created from
28287 static dump_edge_flags function.
28288 (cgraph_node::dump): Use new function.
28289 (cgraph_edge::verify_count_and_frequency): New function created
28290 from verify_edge_count_and_frequency.
28291 (cgraph_edge::verify_corresponds_to_fndecl): New function created
28292 from verify_edge_corresponds_to_fndecl.
28293 (verify_edge_corresponds_to_fndecl): Delete.
28294 (cgraph_node::verify_node): Use new function.
28295 * cgraph.h (cgraph_edge::set_callee): New function.
28296 (cgraph_edge::dump_edge_flags): Likewise.
28297 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
28298
28299 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
28300
28301 * ipa-utils.c (estimate_function_body_sizes): Do not
28302 free node params when called late with early=true.
28303
28304 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
28305
28306 * doc/md.texi (Instruction Patterns): Rewrite text for
28307 clarity.
28308 (Example): Likewise.
28309
28310 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
28311
28312 * doc/invoke.texi (Option Summary): Break long lines.
28313 [(-fdiagnostics-color)]: Put long literal in @smallexample
28314 instead of inline.
28315 [(-fsanitize-recover)]: Likewise.
28316 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
28317 [(-ffast-math)]: Likewise.
28318 [(--param max-inline-insns-recursive)]: Likewise.
28319 [(--param max-inline-recursive-depth)]: Likewise.
28320 [(-mno-text-section-literals)]: Likewise.
28321
28322 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
28323
28324 * doc/install.texi: Update for libgomp being renamed from "GNU
28325 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
28326 Runtime Library".
28327 * doc/sourcebuild.texi: Likewise.
28328
28329 2015-01-10 Anthony Green <green@moxielogic.com>
28330
28331 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
28332 mul.x availability for moxiebox configuration.
28333
28334 2015-01-09 Anthony Green <green@moxielogic.com>
28335
28336 * config/moxie/moxie.md: Tabify assembly output.
28337
28338 2015-01-09 Anthony Green <green@moxielogic.com>
28339
28340 * config/moxie/moxie.md (CC_REG): Correct register definition.
28341
28342 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
28343
28344 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
28345 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
28346 of log files.
28347
28348 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28349
28350 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
28351
28352 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
28353 Jakub Jelinek <jakub@redhat.com>
28354
28355 PR middle-end/64412
28356 * lto-streamer.h (lto_stream_offload_p): New declaration.
28357 * lto-streamer.c (lto_stream_offload_p): New variable.
28358 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
28359 at the same time as section_name_prefix.
28360 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
28361 if lto_stream_offload_p.
28362 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
28363 stream TREE_TARGET_OPTION if lto_stream_offload_p.
28364 (write_ts_function_decl_tree_pointers): Don't
28365 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
28366 * tree-streamer-in.c (unpack_value_fields): Don't stream
28367 TREE_TARGET_OPTION in if ACCEL_COMPILER.
28368 (lto_input_ts_function_decl_tree_pointers): Don't stream
28369 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
28370 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
28371 instead of section_name_prefix string comparisons.
28372
28373 2015-01-09 Jakub Jelinek <jakub@redhat.com>
28374
28375 PR rtl-optimization/64536
28376 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
28377 tablejumps.
28378
28379 2015-01-09 Michael Collison <michael.collison@linaro.org>
28380
28381 PR tree-optimization/64322
28382 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
28383 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
28384
28385 2015-01-09 Tom de Vries <tom@codesourcery.com>
28386
28387 PR rtl-optimization/64539
28388 * regcprop.c (kill_clobbered_values): Factor out of ...
28389 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
28390 instead of note_stores with kill_clobbered_value.
28391
28392 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28393
28394 * ginclude/unwind-arm-common.h: Revert previous commit.
28395
28396 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28397
28398 * config.gcc (arm*-*-freebsd*): New configuration.
28399 * config/arm/freebsd.h: New file.
28400 * config.host: Add extra components for arm*-*-freebsd*.
28401 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
28402 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
28403
28404 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28405
28406 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
28407 for -mcpu=e6500.
28408 * config/rs6000/t-rtems: Add e6500 multilibs.
28409
28410 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28411
28412 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
28413 MPC8540.
28414
28415 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28416
28417 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
28418 MULTILIB_EXCEPTIONS.
28419
28420 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28421
28422 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
28423 MULTILIB_EXCEPTIONS.
28424
28425 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28426
28427 * config/arm/t-rtems-eabi: Rename to...
28428 * config/arm/t-rtems: ...this.
28429 * config/arm/rtems-eabi.h: Rename to...
28430 * config/arm/rtems.h: ...this.
28431 * config.gcc (arm*-*-rtems*): Reflect changes above.
28432
28433 2015-01-09 Richard Biener <rguenther@suse.de>
28434
28435 PR tree-optimization/64410
28436 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
28437 on the LHS.
28438 (execute_update_addresses_taken): Deal with that.
28439 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
28440 loads/stores for complex variables.
28441
28442 2015-01-09 Martin Liska <mliska@suse.cz>
28443
28444 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
28445 name comparison.
28446 (func_checker::compare_memory_operand): New function.
28447 (func_checker::compare_operand): Split case to newly
28448 added functions.
28449 (func_checker::compare_cst_or_decl): New function.
28450 (func_checker::compare_gimple_call): Identify
28451 memory operands.
28452 (func_checker::compare_gimple_assign): Likewise.
28453 * ipa-icf-gimple.h: New function.
28454
28455 2015-01-09 Martin Liska <mliska@suse.cz>
28456
28457 PR ipa/64503
28458 * sreal.c (sreal::dump): Change unsigned format to signed for
28459 m_exp value.
28460 (sreal::to_double): Replace exp2 with scalbln.
28461
28462 2015-01-09 Martin Liska <mliska@suse.cz>
28463
28464 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
28465 * ipa-icf.c (sem_function::equals_private): Add support for target and
28466 (sem_item_optimizer::merge_classes): Remove redundant function
28467 optimization flags comparison.
28468 * tree.h (target_opts_for_fn): New function.
28469
28470 2015-01-09 Tom de Vries <tom@codesourcery.com>
28471
28472 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
28473
28474 2015-01-09 Kito Cheng <kito@0xlab.org>
28475
28476 PR rtl-optimization/64348
28477 * lra-constraints.c (split_reg): Fix caller-save store/restore
28478 instruction generation.
28479
28480 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
28481
28482 PR gcov-profile/61790
28483 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
28484 long long. Fallback to int64_t if host doesn't have long long and
28485 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
28486
28487 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28488
28489 PR tree-optimization/63989
28490 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
28491 from 1000 to 10000.
28492 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
28493 (get_stridx): If we don't have a record for certain SSA_NAME,
28494 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
28495 constant offset, call get_stridx_plus_constant.
28496 (get_stridx_plus_constant): New function.
28497 (zero_length_string): Don't use get_stridx here.
28498
28499 PR target/55023
28500 PR middle-end/64388
28501 * dse.c (struct insn_info): Mention frame_read set also
28502 before reload for tail calls on some targets.
28503 (scan_insn): Revert 2014-12-22 change. Set frame_read
28504 also before reload for tail calls if
28505 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
28506 instead of add_non_frame_wild_read for non-const/memset
28507 tail calls after reload.
28508
28509 2015-01-08 Jason Merrill <jason@redhat.com>
28510
28511 * ubsan.c (do_ubsan_in_current_function): New.
28512 (pass_ubsan::gate): Use it.
28513 * ubsan.h: Declare it.
28514 * convert.c (convert_to_integer): Use it.
28515
28516 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28517
28518 PR target/64338
28519 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
28520 compare_code when it is unconditionally overwritten afterwards.
28521 Use ix86_reverse_condition instead of reverse_condition. Don't
28522 change code if *reverse_condition* returned UNKNOWN and don't
28523 swap ct/cf and negate diff in that case.
28524
28525 2015-01-08 Mike Stump <mikestump@comcast.net>
28526
28527 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
28528 (pass_tsan_O0::gate): Likewise.
28529 * extend.texi (Function Attributes): Add no_sanitize_thread
28530 documentation.
28531
28532 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
28533
28534 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
28535 for registering builtins.
28536 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
28537 add -fopenmp to the argv_obstack used when invoking
28538 compile_for_target.
28539
28540 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
28541 add "-m32" or "-m64" to argv_obstack.
28542 (generate_host_descr_file): Likewise, when invoking host_compiler.
28543 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
28544 ld.
28545
28546 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
28547
28548 * config/sh/sh-mem.cc: Use constant as second operand when emitting
28549 tstsi_t insns.
28550
28551 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
28552
28553 PR target/55212
28554 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
28555 constant load if constant operand fits into I08.
28556
28557 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28558
28559 PR sanitizer/64336
28560 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
28561 and TREE_THIS_VOLATILE for MEM_REFs.
28562 (build5_stat): Fix up initialization of TREE_READONLY and
28563 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
28564
28565 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
28566
28567 PR target/64533
28568 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
28569 of r for the second alternative of the destination operand.
28570
28571 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
28572
28573 PR target/36557
28574 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
28575
28576 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
28577
28578 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
28579 keywords.
28580 ([-fivar-visibility], [-fvisibility]): Likewise.
28581
28582 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
28583
28584 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
28585 the file where @code, @command, etc is more appropriate.
28586
28587 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
28588
28589 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
28590 of -mrecip= documentation.
28591
28592 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28593
28594 PR target/64505
28595 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
28596 correct reload handler if -m32 -mpowerpc64 is used.
28597
28598 2015-01-06 Tom de Vries <tom@codesourcery.com>
28599
28600 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
28601
28602 2015-01-08 Christian Bruel <christian.bruel@st.com>
28603
28604 PR target/64507
28605 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
28606
28607 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
28608
28609 PR tree-optimization/63259
28610 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
28611 if optab exists for 16bit byteswap.
28612
28613 2015-01-06 Jakub Jelinek <jakub@redhat.com>
28614
28615 * opts.c (common_handle_option): Add support for
28616 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
28617 * doc/invoke.texi: Document -fno-sanitize=all,
28618 -f{,no-}sanitize-recover=all. Document that
28619 -fsanitize=float-cast-overflow is not enabled
28620 by -fsanitize=undefined. Fix up documentation
28621 of -f{,no-}sanitize-recover.
28622
28623 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
28624
28625 * config.gcc: Add Visium support.
28626 * configure.ac: Likewise.
28627 * configure: Regenerate.
28628 * doc/extend.texi (interrupt attribute): Add Visium.
28629 * doc/invoke.texi: Document Visium options.
28630 * doc/install.texi: Document Visium target.
28631 * doc/md.texi: Document Visium constraints.
28632 * common/config/visium: New directory.
28633 * config/visium: Likewise.
28634
28635 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
28636
28637 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
28638 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
28639
28640 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
28641
28642 * combine.c (combine_validate_cost): Do not count the cost of a
28643 split I2 twice. Do not display it twice in the dump, either.
28644
28645 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
28646
28647 Revert parts of r219199.
28648 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
28649 <inttypes.h>.
28650 ([-Wtraditional]): Restore markup on <limits.h>.
28651
28652 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
28653
28654 PR c++/31397
28655 * doc/invoke.texi: Document -Wsuggest-override.
28656
28657 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
28658
28659 PR rtl-optimization/64287
28660 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
28661 (process_options): Disable flag_ipa_ra if profiling.
28662
28663 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
28664
28665 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
28666
28667 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
28668
28669 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
28670 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
28671 put under #if TARGET_LOOPS guard.
28672
28673 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
28674
28675 * config/i386/i386.c (output_387_binary_op): Use std::swap.
28676
28677 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
28678
28679 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
28680 * rtl.h (refers_to_regno_p): Add overload.
28681 * cse.c: Use it.
28682 * bt-load.c: Likewise.
28683 * combine.c: Likewise.
28684 * df-scan.c: Likewise.
28685 * sched-deps.c: Likewise.
28686 * config/s390/s390.c: Likewise.
28687 * config/m32r/m32r.c: Likewise.
28688 * config/rs6000/spe.md: Likewise.
28689 * config/rs6000/rs6000.c: Likewise.
28690 * config/pa/pa.c: Likewise.
28691 * config/stormy16/stormy16.c: Likewise.
28692 * config/cris/cris.c: Likewise.
28693 * config/arc/arc.md: Likewise.
28694 * config/arc/arc.c: Likewise.
28695 * config/sh/sh.md: Likewise.
28696 * config/sh/sh.c: Likewise.
28697 * config/frv/frv.c: Likewise.
28698
28699 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28700
28701 PR sanitizer/64265
28702 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
28703 call as cleanup of the whole body.
28704 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
28705 * tsan.c (replace_func_exit): New function.
28706 (instrument_func_exit): Moved earlier.
28707 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
28708 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
28709 been found.
28710 (tsan_pass): Don't call instrument_func_exit.
28711 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
28712 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
28713 inlining.
28714
28715 PR sanitizer/64344
28716 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
28717 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
28718 it to libubsan handler instead of EXPR. Fold comparisons earlier,
28719 if the result is integer_zerop, return NULL_TREE.
28720 * convert.c (convert_to_integer): Pass expr as ARG.
28721
28722 PR tree-optimization/64465
28723 * tree-inline.c (redirect_all_calls): During inlining
28724 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
28725 changed the stmt to a non-throwing call.
28726
28727 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
28728
28729 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
28730 etc markup throughout the file.
28731
28732 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
28733
28734 Enable experimental TSAN support for Ada.
28735 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
28736
28737 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28738
28739 PR tree-optimization/64494
28740 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
28741 clear SSA_NAME_ANTI_RANGE_P flag.
28742
28743 2015-01-05 Marek Polacek <polacek@redhat.com>
28744
28745 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
28746
28747 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28748
28749 Update copyright years.
28750
28751 * gcc.c (process_command): Update copyright notice dates.
28752 * gcov-dump.c: Ditto.
28753 * gcov.c: Ditto.
28754 * doc/cpp.texi: Bump @copying's copyright year.
28755 * doc/cppinternals.texi: Ditto.
28756 * doc/gcc.texi: Ditto.
28757 * doc/gccint.texi: Ditto.
28758 * doc/gcov.texi: Ditto.
28759 * doc/install.texi: Ditto.
28760 * doc/invoke.texi: Ditto.
28761
28762 * auto-profile.c, auto-profile.h: Fix up Copyright line.
28763
28764 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
28765
28766 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
28767 verb tense, etc.
28768 ([-fvtable-verify], [-fvtv-debug]): Likewise.
28769 ([-Wabi]): Likewise.
28770 ([-fmessage-length]): Likewise.
28771 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
28772 ([-Wno-discarded-qualifiers]): Likewise.
28773 ([-Wnodiscarded-array-qualifiers]): Likewise.
28774 ([-Wno-virtual-move-assign]): Likewise.
28775 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
28776 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
28777 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
28778 ([-fsanitize-undefined-trap-on-error]): Likewise.
28779 ([-floop-interchange]): Likewise.
28780 ([-ftree-coalesce-inlined-vars]): Likewise.
28781 ([-fvect-cost-model]): Likewise.
28782 ([-flto]): Likewise.
28783 ([--param]): Likewise.
28784 (Spec Files): Likewise.
28785 ([-mstrict-align]): Likewise.
28786 ([-mfix-cortex-a53-835769]): Likewise.
28787 ([-march], [-mtune]): Likewise.
28788 ([-mpic-register]): Likewise.
28789 ([-munaligned-access]): Likewise.
28790 ([-msp8]): Likewise.
28791 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
28792 (AVR Built-in Macros): Likewise.
28793 ([-mpreferred-stack-boundary]): Likewise.
28794 ([-mtune-crtl]): Likewise.
28795 ([-mashf]): Likewise.
28796 ([-mmcu=]): Likewise.
28797 ([-minrt]): Likewise.
28798 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
28799 ([-mupper-regs]): Likewise.
28800 ([-matomic-model]): Likewise.
28801 ([-mdiv]): Likewise.
28802 ([-mzdcbranch]): Likewise.
28803 ([-mdisable-callt]): Likewise.
28804 ([-msoft-float]): Likewise.
28805 ([-m8byte-align]): Likewise.
28806 ([-fstack-reuse]): Likewise.
28807
28808 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28809
28810 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
28811 Fix markup, light copy-editing.
28812 ([-fauto-profile]): Rewrite to fix formatting and content
28813 problems.
28814
28815 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28816
28817 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
28818 Copy-edit description.
28819 ([-fisolate-erroneous-paths-attribute]): Likewise.
28820 * common.opt (fisolate-erroneous-paths-dereference):
28821 Copy-edit description.
28822 (fisolate-erroneous-paths-attribute): Likewise.
28823
28824 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28825
28826 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
28827 tidy grammar.
28828
28829 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28830
28831 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
28832 ([-fvtv-debug]): Likewise.
28833 ([-Wc++-compat]): Likewise.
28834 ([-Wc++11-compat]): Likewise.
28835 ([-Wc++14-compat]): Likewise.
28836 ([-Wno-sized-deallocation]): Likewise.
28837 ([-femit-class-debug-always]): Likewise.
28838 ([-femit-struct-debug-detailed]): Likewise.
28839 ([-fno-keep-inline-dllexport]): Likewise.
28840 ([-fira-algorithm]): Likewise.
28841 ([-fira-region]): Likewise.
28842 ([-flra-remat]): Likewise.
28843 ([-fipa-ra]): Likewise.
28844 ([-fhoist-adjacent-loads]): Likewise.
28845 ([-fisolate-erroneous-paths-dereference]): Likewise.
28846 ([-fisolate-erroneous-paths-attribute]): Likewise.
28847 ([-ftree-switch-conversion]): Likewise.
28848 ([-ftree-tail-merge]): Likewise.
28849 ([-ftree-loop-if-convert]): Likewise.
28850 ([-ftree-loop-if-convert-stores]): Likewise.
28851 ([-ftree-loop-distribution]): Likewise.
28852 ([-ftree-loop-distribute-patterns]): Likewise.
28853 ([-flto-compression-level]): Likewise.
28854 ([-flto-report]): Likewise.
28855 ([-flto-report-wpa]): Likewise.
28856 ([-fuse-linker-plugin]): Likewise.
28857 ([-mfix-cortex-a53-835769]): Likewise.
28858 ([-mno-fix-cortex-a53-835769]): Likewise.
28859 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
28860 explicit listing; add a note to the discussion indicating they
28861 exist. Reorder table to group similar options. Add missing
28862 @opindex entries. Add @need commands throughout the table to
28863 allow it to be split across multiple pages.
28864 ([-m8bit-idiv]): Fix @opindex.
28865 ([-mavx256-split-unaligned-load]): Likewise.
28866 ([-mavx256-split-unaligned-store]): Likewise.
28867 ([-mstack-protector-guard]): Likewise.
28868 ([-mcpu=]): Likewise.
28869 ([-mcpu]): Likewise.
28870 ([-mpointer-size=]): Likewise.
28871
28872 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
28873
28874 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
28875 instead of `m' constraint. Likewise for unnamed movb comparison
28876 patterns using reg_before_reload_operand predicate.
28877 * config/pa/predicates.md (reg_before_reload_operand): Tighten
28878 predicate to reject register index and LO_SUM DLT memory forms
28879 after reload.
28880
28881 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
28882
28883 * doc/invoke.texi (Option Summary): Fix spelling of
28884 -fdevirtualize-at-ltrans.
28885 ([-fdevirtualize]): Fix markup.
28886 ([-fdevirtualize-speculatively]): Fix typo.
28887 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
28888 implementor-speaky.
28889 * common.opt (fdevirtualize-at-ltrans): Likewise.
28890 * ipa-devirt.c: Fix typos in comments throughout the file.
28891 (ipa_devirt): Fix typos in format strings for dump output.
28892
28893 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
28894
28895 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
28896 discussion of defaults, light copy-editing.
28897
28898 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
28899
28900 * tsan.c (instrument_expr): corrected previous checkin.
28901
28902 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
28903
28904 Instrument bit field and unaligned accesses for TSAN.
28905 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
28906 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
28907 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
28908 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
28909 unaligned memory regions.
28910
28911 2015-01-01 Anthony Green <green@moxielogic.com>
28912
28913 * config/moxie/predicates.md (moxie_general_movsrc_operand):
28914 Restrict move source register offsets to 16 bits.
28915 \f
28916 Copyright (C) 2015 Free Software Foundation, Inc.
28917
28918 Copying and distribution of this file, with or without modification,
28919 are permitted in any medium without royalty provided the copyright
28920 notice and this notice are preserved.