1 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
3 * omp-low.c (lower_omp_target): Remove unreachable code & merge
6 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
8 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
10 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
12 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
13 guard_bb0 and use guard_bb throughout.
15 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
17 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
20 2015-10-29 Richard Biener <rguenther@suse.de>
23 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
26 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
28 * alias.c: Reorder #include statements and remove duplicates.
30 * attribs.c: Likewise.
31 * auto-inc-dec.c: Likewise.
32 * auto-profile.c: Likewise.
33 * bb-reorder.c: Likewise.
34 * bt-load.c: Likewise.
35 * builtins.c: Likewise.
36 * caller-save.c: Likewise.
40 * cfganal.c: Likewise.
41 * cfgbuild.c: Likewise.
42 * cfgcleanup.c: Likewise.
43 * cfgexpand.c: Likewise.
44 * cfghooks.c: Likewise.
45 * cfgloop.c: Likewise.
46 * cfgloopanal.c: Likewise.
47 * cfgloopmanip.c: Likewise.
50 * cgraphbuild.c: Likewise.
51 * cgraphclones.c: Likewise.
52 * cgraphunit.c: Likewise.
53 * cilk-common.c: Likewise.
54 * combine-stack-adj.c: Likewise.
55 * combine.c: Likewise.
56 * compare-elim.c: Likewise.
57 * convert.c: Likewise.
58 * coverage.c: Likewise.
59 * cppbuiltin.c: Likewise.
63 * data-streamer-in.c: Likewise.
64 * data-streamer-out.c: Likewise.
65 * data-streamer.c: Likewise.
70 * df-core.c: Likewise.
71 * df-problems.c: Likewise.
72 * df-scan.c: Likewise.
75 * dominance.c: Likewise.
76 * double-int.c: Likewise.
78 * dumpfile.c: Likewise.
79 * dwarf2asm.c: Likewise.
80 * dwarf2cfi.c: Likewise.
81 * dwarf2out.c: Likewise.
82 * emit-rtl.c: Likewise.
88 * fixed-value.c: Likewise.
89 * fold-const.c: Likewise.
90 * function.c: Likewise.
93 * generic-match-head.c: Likewise.
94 * ggc-common.c: Likewise.
95 * gimple-builder.c: Likewise.
96 * gimple-expr.c: Likewise.
97 * gimple-fold.c: Likewise.
98 * gimple-iterator.c: Likewise.
99 * gimple-low.c: Likewise.
100 * gimple-match-head.c: Likewise.
101 * gimple-pretty-print.c: Likewise.
102 * gimple-ssa-isolate-paths.c: Likewise.
103 * gimple-ssa-strength-reduction.c: Likewise.
104 * gimple-streamer-in.c: Likewise.
105 * gimple-streamer-out.c: Likewise.
106 * gimple-walk.c: Likewise.
107 * gimple.c: Likewise.
108 * gimplify-me.c: Likewise.
109 * gimplify.c: Likewise.
110 * godump.c: Likewise.
112 * graphite-poly.c: Likewise.
113 * haifa-sched.c: Likewise.
114 * hw-doloop.c: Likewise.
116 * incpath.c: Likewise.
117 * init-regs.c: Likewise.
118 * internal-fn.c: Likewise.
119 * ipa-chkp.c: Likewise.
120 * ipa-comdats.c: Likewise.
121 * ipa-cp.c: Likewise.
122 * ipa-devirt.c: Likewise.
123 * ipa-icf-gimple.c: Likewise.
124 * ipa-icf.c: Likewise.
125 * ipa-inline-analysis.c: Likewise.
126 * ipa-inline-transform.c: Likewise.
127 * ipa-inline.c: Likewise.
128 * ipa-polymorphic-call.c: Likewise.
129 * ipa-profile.c: Likewise.
130 * ipa-prop.c: Likewise.
131 * ipa-pure-const.c: Likewise.
132 * ipa-ref.c: Likewise.
133 * ipa-reference.c: Likewise.
134 * ipa-split.c: Likewise.
135 * ipa-utils.c: Likewise.
136 * ipa-visibility.c: Likewise.
138 * ira-build.c: Likewise.
139 * ira-color.c: Likewise.
140 * ira-conflicts.c: Likewise.
141 * ira-costs.c: Likewise.
142 * ira-emit.c: Likewise.
143 * ira-lives.c: Likewise.
146 * langhooks.c: Likewise.
149 * loop-doloop.c: Likewise.
150 * loop-init.c: Likewise.
151 * loop-invariant.c: Likewise.
152 * loop-iv.c: Likewise.
153 * loop-unroll.c: Likewise.
154 * lower-subreg.c: Likewise.
155 * lra-assigns.c: Likewise.
156 * lra-coalesce.c: Likewise.
157 * lra-constraints.c: Likewise.
158 * lra-eliminations.c: Likewise.
159 * lra-lives.c: Likewise.
160 * lra-remat.c: Likewise.
161 * lra-spills.c: Likewise.
163 * lto-cgraph.c: Likewise.
164 * lto-compress.c: Likewise.
165 * lto-opts.c: Likewise.
166 * lto-section-in.c: Likewise.
167 * lto-section-out.c: Likewise.
168 * lto-streamer-in.c: Likewise.
169 * lto-streamer-out.c: Likewise.
170 * lto-streamer.c: Likewise.
171 * mode-switching.c: Likewise.
172 * modulo-sched.c: Likewise.
173 * omp-low.c: Likewise.
174 * optabs.c: Likewise.
175 * opts-global.c: Likewise.
176 * passes.c: Likewise.
177 * plugin.c: Likewise.
178 * postreload-gcse.c: Likewise.
179 * postreload.c: Likewise.
180 * predict.c: Likewise.
181 * print-tree.c: Likewise.
182 * profile.c: Likewise.
184 * realmpfr.c: Likewise.
187 * reg-stack.c: Likewise.
188 * regcprop.c: Likewise.
189 * reginfo.c: Likewise.
190 * regrename.c: Likewise.
191 * regstat.c: Likewise.
192 * reload.c: Likewise.
193 * reload1.c: Likewise.
195 * resource.c: Likewise.
196 * rtl-chkp.c: Likewise.
197 * rtl-error.c: Likewise.
198 * rtlanal.c: Likewise.
199 * rtlhooks.c: Likewise.
200 * sanopt.c: Likewise.
201 * sched-deps.c: Likewise.
202 * sched-ebb.c: Likewise.
203 * sched-rgn.c: Likewise.
205 * shrink-wrap.c: Likewise.
206 * simplify-rtx.c: Likewise.
207 * stack-ptr-mod.c: Likewise.
208 * statistics.c: Likewise.
210 * stor-layout.c: Likewise.
211 * store-motion.c: Likewise.
212 * stringpool.c: Likewise.
213 * symtab.c: Likewise.
214 * target-globals.c: Likewise.
215 * targhooks.c: Likewise.
216 * toplev.c: Likewise.
217 * tracer.c: Likewise.
218 * trans-mem.c: Likewise.
219 * tree-affine.c: Likewise.
220 * tree-call-cdce.c: Likewise.
221 * tree-cfg.c: Likewise.
222 * tree-cfgcleanup.c: Likewise.
223 * tree-chkp-opt.c: Likewise.
224 * tree-chkp.c: Likewise.
225 * tree-chrec.c: Likewise.
226 * tree-complex.c: Likewise.
227 * tree-data-ref.c: Likewise.
228 * tree-dfa.c: Likewise.
229 * tree-diagnostic.c: Likewise.
230 * tree-dump.c: Likewise.
231 * tree-eh.c: Likewise.
232 * tree-emutls.c: Likewise.
233 * tree-if-conv.c: Likewise.
234 * tree-inline.c: Likewise.
235 * tree-into-ssa.c: Likewise.
236 * tree-iterator.c: Likewise.
237 * tree-loop-distribution.c: Likewise.
238 * tree-nested.c: Likewise.
239 * tree-nrv.c: Likewise.
240 * tree-object-size.c: Likewise.
241 * tree-outof-ssa.c: Likewise.
242 * tree-parloops.c: Likewise.
243 * tree-phinodes.c: Likewise.
244 * tree-predcom.c: Likewise.
245 * tree-pretty-print.c: Likewise.
246 * tree-profile.c: Likewise.
247 * tree-scalar-evolution.c: Likewise.
248 * tree-sra.c: Likewise.
249 * tree-ssa-address.c: Likewise.
250 * tree-ssa-alias.c: Likewise.
251 * tree-ssa-ccp.c: Likewise.
252 * tree-ssa-coalesce.c: Likewise.
253 * tree-ssa-copy.c: Likewise.
254 * tree-ssa-dce.c: Likewise.
255 * tree-ssa-dom.c: Likewise.
256 * tree-ssa-dse.c: Likewise.
257 * tree-ssa-forwprop.c: Likewise.
258 * tree-ssa-ifcombine.c: Likewise.
259 * tree-ssa-live.c: Likewise.
260 * tree-ssa-loop-ch.c: Likewise.
261 * tree-ssa-loop-im.c: Likewise.
262 * tree-ssa-loop-ivcanon.c: Likewise.
263 * tree-ssa-loop-ivopts.c: Likewise.
264 * tree-ssa-loop-manip.c: Likewise.
265 * tree-ssa-loop-niter.c: Likewise.
266 * tree-ssa-loop-prefetch.c: Likewise.
267 * tree-ssa-loop-unswitch.c: Likewise.
268 * tree-ssa-loop.c: Likewise.
269 * tree-ssa-math-opts.c: Likewise.
270 * tree-ssa-operands.c: Likewise.
271 * tree-ssa-phiopt.c: Likewise.
272 * tree-ssa-phiprop.c: Likewise.
273 * tree-ssa-pre.c: Likewise.
274 * tree-ssa-propagate.c: Likewise.
275 * tree-ssa-reassoc.c: Likewise.
276 * tree-ssa-sccvn.c: Likewise.
277 * tree-ssa-scopedtables.c: Likewise.
278 * tree-ssa-sink.c: Likewise.
279 * tree-ssa-strlen.c: Likewise.
280 * tree-ssa-structalias.c: Likewise.
281 * tree-ssa-tail-merge.c: Likewise.
282 * tree-ssa-ter.c: Likewise.
283 * tree-ssa-threadedge.c: Likewise.
284 * tree-ssa-threadupdate.c: Likewise.
285 * tree-ssa-uncprop.c: Likewise.
286 * tree-ssa-uninit.c: Likewise.
287 * tree-ssa.c: Likewise.
288 * tree-ssanames.c: Likewise.
289 * tree-stdarg.c: Likewise.
290 * tree-streamer-in.c: Likewise.
291 * tree-streamer-out.c: Likewise.
292 * tree-streamer.c: Likewise.
293 * tree-switch-conversion.c: Likewise.
294 * tree-tailcall.c: Likewise.
295 * tree-vect-data-refs.c: Likewise.
296 * tree-vect-generic.c: Likewise.
297 * tree-vect-loop-manip.c: Likewise.
298 * tree-vect-loop.c: Likewise.
299 * tree-vect-patterns.c: Likewise.
300 * tree-vect-slp.c: Likewise.
301 * tree-vect-stmts.c: Likewise.
302 * tree-vectorizer.c: Likewise.
303 * tree-vrp.c: Likewise.
307 * value-prof.c: Likewise.
308 * var-tracking.c: Likewise.
309 * varasm.c: Likewise.
310 * varpool.c: Likewise.
311 * vtable-verify.c: Likewise.
313 * wide-int-print.cc: Likewise.
314 * wide-int.cc: Likewise.
315 * xcoffout.c: Likewise.
317 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
319 * Makefile.in (NO_PIE_CFLAGS): New.
320 (NO_PIE_FLAG): Likewise.
321 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
322 (NO_PIE_FLAG_FOR_BUILD): Likewise.
323 (BUILD_NO_PIE_CFLAGS): Likewise.
324 (BUILD_NO_PIE_FLAG): Likewise.
325 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
326 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
327 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
328 $(BUILD_NO_PIE_CFLAGS).
329 (BUILD_CXXFLAGS): Likewise.
330 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
331 $(BUILD_NO_PIE_FLAG).
332 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
333 (BUILD_NO_PIE_FLAG): Likewise.
334 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
335 (NO_PIE_FLAG_FOR_BUILD): Likewise.
336 * configure: Regenerated.
338 2015-10-29 Richard Biener <rguenther@suse.de>
341 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
342 unsigned conditonal negation to ABS_EXPR.
344 2015-10-29 Richard Biener <rguenther@suse.de>
346 * gimple-match-head.c (gimple_simplify): Remove premature checking
347 of builtin_decl_implicit of function calls we simplify.
349 2015-10-29 Bin Cheng <bin.cheng@arm.com>
351 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
352 (get_computation_cost_at): Ditto.
353 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
356 2015-10-28 Tom de Vries <tom@codesourcery.com>
358 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
361 2015-10-28 Jason Merrill <jason@redhat.com>
363 * Makefile.in (TAGS): Include libcpp and libiberty.
365 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
367 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
368 (extract_omp_for_data): Remove OpenACC special handling of
371 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
372 (struct parallel): Update comment.
373 (nvptx_reorg): Likewise.
374 (nvptx_neuter): Cleanup whitespace.
376 2015-10-28 Richard Henderson <rth@redhat.com>
378 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
380 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
383 * config/avr/predicates.md (low_io_address_operand): Don't
384 consider MODE when computing upper bound.
385 (io_address_operand): Likewise.
387 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
389 * fold-const.c (operand_equal_p): Do not verify that types are
390 compatible for MEM_REFs.
392 2015-10-28 Richard Biener <rguenther@suse.de>
394 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
395 in simplifying VEC_COND_EXPR conditions.
397 2015-10-28 Tom de Vries <tom@codesourcery.com>
399 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
400 into vi_next of a full_var.
402 2015-10-28 Tom de Vries <tom@codesourcery.com>
404 * tree-ssa-structalias.c (new_var_info, make_heapvar)
405 (make_constraint_from_restrict, make_constraint_from_global_restrict)
406 (create_function_info_for, create_variable_info_for_1)
407 (create_variable_info_for): Add and handle add_id parameter.
408 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
409 (init_base_vars): Add extra argument to calls to new_var_info.
410 (get_vi_for_tree): Add extra argument to call to
411 create_variable_info_for.
412 (process_constraint, do_deref, process_all_all_constraints): Add extra
413 argument to calls to new_scalar_tmp_constraint_exp.
414 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
415 argument to calls to make_heapvar.
416 (make_restrict_var_constraints): Add extra argument to call to
417 make_constraint_from_global_restrict.
418 (intra_create_variable_infos): Add extra argument to call to
419 create_variable_info_for_1.
420 (ipa_pta_execute): Add extra argument to call to
421 create_function_info_for.
423 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
425 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
426 (sibcall_value): Likewise.
428 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
430 * config/nvptx/nvptx.h (struct machine_function): Add
432 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
433 nvptx_expand_oacc_join): Declare.
434 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
435 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
436 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
437 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
438 UNSPECV_JOINING, UNSPECV_JOIN): New.
439 (BITS, BITD): New mode iterators.
440 (br_true_uni, br_false_uni): New.
441 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
442 (oacc_dim_size, oacc_dim_pos): New.
443 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
444 (oacc_fork, oacc_join): New.
445 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
446 (worker_load<mode>, worker_store<mode>): New.
447 (nvptx_barsync): New.
448 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
449 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
450 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
451 worker_bcast_sym): New.
452 (nvptx_option_override): Initialize worker broadcast buffer.
453 (nvptx_emit_forking, nvptx_emit_joining): New.
454 (nvptx_init_axis_predicate): New.
455 (nvptx_declare_function_name): Init axis predicates.
456 (nvptx_expand_call): Add fork/join markers around routine call.
457 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
458 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
459 (nvptx_gen_vcast): New.
460 (struct wcast_data_t): New.
461 (enum propagate_mask): New.
462 (nvptx_gen_wcast): New.
463 (nvptx_print_operand): Add 'S' case.
464 (struct parallel): New.
465 (parallel::parallel, parallel::~parallel): New.
466 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
467 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
468 nvptx_find_par, nvptx_discover_pars): New.
469 (nvptx_propagate): New.
470 (vprop_gen, nvptx_vpropagate): New.
471 (wprop_gen, nvptx_wpropagate): New.
473 (nvptx_single, nvptx_skip_par): New.
474 (nvptx_process_pars, nvptx_neuter_pars): New.
475 (ntptx_reorg): Split blocks, generate parallel structure, apply
477 (nvptx_cannot_copy_insn_p): New.
478 (nvptx_file_end): Emit worker broadcast decl.
479 (nvptx_goacc_fork_join): New.
480 (TARGET_CANNOT_COPY_INSN_P): Override.
481 (TARGET_GOACC_FORK_JOIN): Override.
483 2015-10-28 Richard Biener <rguenther@suse.de>
485 * fold-const.c (negate_expr_p): Adjust the division case to
486 properly avoid introducing undefined overflow.
487 (fold_negate_expr): Likewise.
489 2015-10-28 Richard Biener <rguenther@suse.de>
491 PR tree-optimization/65962
492 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
493 Avoid creating loop carried dependences also for outer loops
494 of the loop a use to replace is in.
496 2015-10-28 Richard Biener <rguenther@suse.de>
498 * common.opt (fchecking): New flag controlling flag_checking.
499 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
500 * timevar.c (timer::print): Adjust output.
501 * doc/invoke.texi (fchecking): Document.
503 2015-10-28 Richard Biener <rguenther@suse.de>
506 * fold-const.c (negate_expr_p): We cannot negate plus or minus
507 if overflow is not wrapping. Likewise multiplication unless
508 one operand is constant and not power of two.
509 (fold_negate_expr): Adjust accordingly.
511 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
513 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
515 (is_oacc_parallel, is_oacc_kernels): New.
516 (enclosing_target_ctx): May return NULL.
517 (ctx_in_oacc_kernels_region): New.
518 (check_oacc_kernel_gwv): New.
519 (oacc_loop_or_target_p): Delete.
520 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
521 operands. Strip reductions fro kernels.
522 (scan_omp_target): Don't calculate gwv mask.
523 (lower_oacc_head_mark, lower_oacc_loop_marker,
524 lower_oacc_head_tail): New.
525 (struct oacc_collapse): New.
526 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
527 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
528 Remove OpenACC handling.
529 (expand_oacc_for): New.
530 (expand_omp_for): Call expand_oacc_for.
531 (lower_omp_for): Call lower_oacc_head_tail.
533 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
535 * attribs.c (check_attribute_tables): New function, broken out from...
536 (init_attributes): Use it.
537 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
538 gcc_checking_assert and checking_* functions to eliminate
539 ENABLE_CHECKING conditionals.
540 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
541 (pass_expand::execute): Likewise.
542 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
543 * cgraphunit.c (mark_functions_to_output): Likewise.
544 (cgraph_node::expand_thunk): Likewise.
545 (symbol_table::compile): Likewise.
546 * ddg.c (add_cross_iteration_register_deps): Likewise.
547 (create_ddg_all_sccs): Likewise.
548 * df-core.c (df_finish_pass, df_analyze): Likewise.
549 * diagnostic-core.h: Likewise.
550 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
551 * dominance.c (calculate_dominance_info): Likewise.
552 * dwarf2out.c (add_AT_die_ref): Likewise.
553 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
554 (loc_list_from_tree, gen_lexical_block_die): Likewise.
555 gen_type_die_with_usage, gen_type_die): Likewise.
556 (dwarf2out_decl): Likewise.
557 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
558 * except.c (duplicate_eh_regions): Likewise.
559 * fwprop.c (register_active_defs, update_df_init): Likewise.
560 (fwprop_init, fwprop_done): Likewise.
561 (update_uses): Likewise.
562 * ggc-page.c (ggc_grow): Likewise.
563 * gimplify.c (gimplify_body): Likewise.
564 (gimplify_hasher::equal): Likewise.
565 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
566 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
568 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
569 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
570 * hash-table.h (::find_empty_slot_for_expand): Likewise.
571 * ifcvt.c (if_convert): Likewise.
572 * ipa-cp.c (ipcp_propagate_stage): Likewise.
573 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
574 (odr_type_p, odr_types_equivalent_p): Likewise.
575 (add_type_duplicate, get_odr_type): Likewise.
576 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
577 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
578 (sem_item_optimizer::verify_classes): Likewise.
579 (sem_item_optimizer::traverse_congruence_split): Likewise.
580 (sem_item_optimizer::checking_verify_classes): New.
581 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
583 * cfgrtl.c (commit_edge_insertions): Likewise.
584 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
585 (rtl_flow_call_edges_add): Likewise.
586 * cgraph.c (symbol_table::create_edge): Likewise.
587 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
588 * cgraph.h (symtab_node): Likewise.
589 (symtab_node::checking_verify_symtab_nodes): Define.
590 (cgraph_node::checking_verify_cgraph_nodes): Define.
591 * cfghooks.h (checking_verify_flow_info): Define.
592 * cfgloop.h (checking_verify_loop_structure): Define.
593 * dominance.h (checking_verify_dominators): Define.
594 * et-forest.c: Fix comment.
595 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
596 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
597 ENABLE_CHECKING conditionals.
598 * ipa-inline-transform.c (save_inline_function_body): Likewise.
599 * ipa-inline.c (inline_small_functions): Likewise.
600 (early_inliner): Likewise.
601 * ipa-inline.h (estimate_edge_growth): Likewise.
602 * ipa-visibility.c (function_and_variable_visibility): Likewise.
603 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
604 (ipa_single_use): Likewise.
605 * ira-int.h: Likewise.
606 * ira.c (ira): Likewise.
607 * loop-doloop.c (doloop_optimize_loops): Likewise.
608 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
609 * loop-invariant.c (move_loop_invariants): Likewise.
610 * lra-assigns.c (lra_assign): Likewise.
611 * lra-constraints.c (lra_constraints): Likewise.
612 * lra-eliminations.c (lra_eliminate): Likewise.
613 * lra-int.h (struct lra_reg): Likewise.
614 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
615 (lra_create_live_ranges_1): Likewise.
616 * lra-remat.c (create_remat_bb_data): Likewise.
617 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
619 (check_rtl): Always define. Remove incorrect guard around
620 extract_constrain_insn call.
621 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
622 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
623 ENABLE_CHECKING conditionals.
624 * lto-streamer-out.c (DFS::DFS): Likewise.
625 (lto_output): Likewise.
626 * lto-streamer.c (lto_streamer_init): Likewise.
627 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
628 expand_omp_target, execute_expand_omp): Likewise.
629 (lower_omp_target): Likewise.
630 * passes.c (execute_function_todo): Likewise.
631 (execute_todo, execute_one_pass): Likewise.
632 (verify_curr_properties): Always define.
633 * predict.c (tree_estimate_probability: Use flag_checking,
634 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
635 ENABLE_CHECKING conditionals.
636 (propagate_freq): Likewise.
637 * pretty-print.c (pp_format): Likewise.
638 * real.c (real_to_decimal_for_mode): Likewise.
639 * recog.c (split_all_insns): Likewise.
640 * regcprop.c (kill_value_one_regno): Likewise.
641 (copy_value): Likewise.
642 (validate_value_data): Define unconditionally.
643 * reload.c: Fix comment.
644 * timevar.c: Include options.h
645 * tree-ssa.h (checking_verify_ssa): Define.
646 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
647 * sched-deps.c (CHECK): Remove unused macro.
648 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
649 gcc_checking_assert and checking_* functions to eliminate
650 ENABLE_CHECKING conditionals.
651 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
652 * sel-sched.c (struct moveop_static_params): Likewise.
653 (find_best_reg_for_expr, move_cond_jump): Likewise.
654 (move_op_orig_expr_not_found): Likewise.
655 (code_motion_process_successors, move_op): Likewise.
656 * ssa-iterators.h (first_readonly_imm_use): Likewise.
657 (next_readonly_imm_use): Likewise.
658 * store-motion.c (compute_store_table): Likewise.
659 * symbol-summary.h (function_summary::function_summary): Likewise.
660 * target.h (cumulative_args_t): Likewise.
661 (get_cumulative_args, pack_cumulative_args): Likewise.
662 * timevar.c: (timer::print): Likewise.
663 * trans-mem.c (ipa_tm_execute): Likewise.
664 * tree-cfg.c (move_stmt_op): Likewise.
665 (move_sese_region_to_fn): Likewise.
666 (gimple_flow_call_edges_add): Likewise.
667 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
669 * tree-eh.c (remove_unreachable_handlers): Likewise.
670 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
671 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
672 * tree-into-ssa.c (update_ssa): Likewise.
673 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
674 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
675 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
676 * tree-predcom.c (suitable_component_p): Likewise.
677 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
678 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
679 * tree-ssa-live.c (verify_live_on_entry): Likewise.
680 * tree-ssa-live.h (register_ssa_partition): Likewise.
681 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
682 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
683 (tree_transform_and_unroll_loop): Likewise.
684 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
685 * tree-ssa-operands.c (get_expr_operands): Likewise.
686 * tree-ssa-propagate.c (replace_exp_1): Likewise.
687 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
688 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
689 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
690 * tree-ssanames.c (release_ssa_name_fn): Likewise.
691 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
692 * tree-vect-loop-manip.c
693 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
694 (slpeel_checking_verify_cfg_after_peeling): Likewise.
695 (vect_do_peeling_for_loop_bound): Likewise.
696 (vect_do_peeling_for_alignment): Likewise.
697 * tree-vrp.c (supports_overflow_infinity): Likewise.
698 (set_value_range): Likewise.
699 * tree.c (free_lang_data_in_cgraph): Likewise.
700 * value-prof.c (gimple_remove_histogram_value): Likewise.
701 (free_hist): Likewise.
702 * var-tracking.c (canonicalize_values_star): Likewise.
703 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
705 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
707 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
708 IFN_GOACC_LOOP): New.
709 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
710 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
711 IFN_UNIQUE_OACC_TAIL_MARK.
712 (enum ifn_goacc_loop_kind): New.
713 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
714 IFN_UNIQUE_OACC_JOIN cases.
715 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
716 (expand_GOACC_LOOP): New.
717 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
718 * omp-low.c: Include gimple-pretty-print.h.
719 (struct oacc_loop): New.
720 (enum oacc_loop_flags): New.
721 (oacc_thread_numbers): New.
722 (oacc_xform_loop): New.
723 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
724 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
725 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
726 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
727 oacc_loop_discovery): New.
728 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
729 oacc_loop_process): New.
730 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
731 (execute_oacc_device_lower): Discover & process loops. Process
733 * target.def (goacc.fork_join): Change sense of hook, clarify
735 * doc/tm.texi: Regenerated.
737 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
739 * target-insns.def (oacc_fork, oacc_join): Define.
740 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
741 (goacc.fork_join): New GOACC hook.
742 * targhooks.h (default_goacc_fork_join): Declare.
743 * omp-low.c (default_goacc_forkjoin): New.
744 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
745 * doc/tm.texi: Regenerate.
747 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
749 * omp-low.c (oacc_init_rediction_array): New.
750 (oacc_initialize_reduction_data): Initialize array.
752 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
754 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
756 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
758 * internal-fn.c (expand_UNIQUE): New.
759 * internal-fn.h (enum ifn_unique_kind): New.
760 * internal-fn.def (IFN_UNIQUE): New.
761 * target-insns.def (unique): Define.
762 * gimple.h (gimple_call_internal_unique_p): New.
763 * gimple.c (gimple_call_same_target_p): Check internal fn
765 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
766 * tree-ssa-threadedge.c
767 (record_temporary_equivalences_from_stmts): Likewise.
768 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
770 2015-10-27 Richard Henderson <rth@redhat.com>
773 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
774 narrowing subregs on SSE and MMX registers.
775 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
776 appear to be sub-words of multi-register pseudos must be rejected.
777 * doc/tm.texi: Regenerate.
779 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
782 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
783 operands[0] is a reg before taking its REGNO in split condition.
784 (*movdi_aarch64): Likewise.
786 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
788 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
789 Handle floating point inner modes properly.
791 2015-10-27 Alan Hayward <alan.hayward@arm.com>
794 (vectorizable_live_operation): Change iterator.
796 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
797 Aditya Kumar <aditya.k7@samsung.com>
799 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
800 function to schedule based on isl_schedule_node.
801 (get_schedule_map_st): New schedule optimizer based on
803 (scop_get_domains): New. Return the isl_union_set containing the
804 domains of all the pbbs.
805 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
807 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
810 * calls.c (prepare_call_address): Don't handle -fno-plt here.
811 * config/i386/i386.c (ix86_expand_call): Generate indirect call
812 via GOT for -fno-plt. Support indirect call via GOT for x32.
813 * config/i386/predicates.md (sibcall_memory_operand): Allow
816 2015-10-27 Richard Biener <rguenther@suse.de>
818 PR tree-optimization/68104
819 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
820 strided access check ...
821 (vect_compute_data_refs_alignment): ... here.
823 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
824 Joseph Myers <joseph@codesourcery.com>
825 Mark Shinwell <shinwell@codesourcery.com>
826 Andrew Stubbs <ams@codesourcery.com>
827 Rich Felker <dalias@libc.org>
829 * config.gcc: Handle --enable-fdpic.
830 * config/sh/constraints.md (Ccl): New constraint.
831 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
832 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
834 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
836 * config/sh/sh-protos.h (function_symbol_result): New struct.
837 (function_symbol): Return function_symbol_result.
838 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
840 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
842 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
843 (sh_option_override): Force -fPIC if FDPIC is in effect.
844 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
845 UNSPEC_GOTOFFFUNCDESC cases.
846 (prepare_move_operands): Use FDPIC initial GOT register for
847 TLS-related GOT access; inhibit cross-section address offset constants
849 (sh_assemble_integer): New function.
850 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
851 PC-relative call sites.
852 (expand_ashiftrt): Adapt invocation of function_symbol.
853 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
854 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
855 UNSPEC_GOTOFFFUNCDESC.
856 (legitimize_pic_address): Resolve function symbols to function
857 descriptors for FDPIC. Do not use GOT-relative addressing for local
858 data that may be read-only on FDPIC.
859 (sh_emit_storesi, sh_emit_storehi): New functions.
860 (sh_trampoline_init): Generate FDPIC trampolines.
861 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
862 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
863 (sh_output_mi_thunk): Generate FDPIC call.
864 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
865 FDPIC, generate call site labels to use PC-relative addressing rather
866 than GOT-relative addressing.
867 (sh_conditional_register_usage): Make PIC register fixed and call used
868 when FDPIC is in effect.
869 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
870 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
871 sh_get_fdpic_reg_initial_val): New functions.
872 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
874 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
875 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
876 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
877 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
879 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
880 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
881 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
882 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
884 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
885 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
886 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
887 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
888 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
889 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
890 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
891 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
892 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
893 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
894 block_move_real, block_lump_real, block_move_real_i4,
895 block_lump_real_i4): Add support for FDPIC calls.
896 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
897 call_value_pop): Adjust for new function_symbol signature.
898 * config/sh/sh.opt (-mfdpic): New option.
899 * doc/install.texi (Options specification): Document --enable-fdpic.
900 * doc/invoke.texi (SH Options): Document -mfdpic.
903 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
905 PR tree-optimization/65963
906 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs
907 as equivalent MULT_EXPRs.
909 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
912 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
913 * config/arm/constraints.md (Dp): Update callsite.
914 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
916 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
918 * builtins.c (fold_builtin_load_exponent): Rename to...
919 (fold_const_builtin_load_exponent): ...this and only handle
921 (fold_builtin_2): Update accordingly.
922 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
924 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
926 * builtins.c (fold_builtin_logb): Rename to...
927 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
928 (fold_builtin_significand): Rename to...
929 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
930 (fold_builtin_1): Update accordingly.
932 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
934 * builtins.c (fold_builtin_fmin_fmax): Delete.
935 (fold_builtin_2): Handle constant fmin and fmax arguments here.
936 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
938 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
940 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
941 for register extension into sign and zero register extension.
942 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
943 for sign and zero register extension.
944 (cortexa57_addrcost_table): Likewise.
945 (xgene1_addrcost_table): Likewise.
947 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
949 * fold-const.c (fold_minmax): Delete.
950 (fold_binary_loc): Don't call it.
951 * match.pd: Add rules previously handled by fold_minmax.
953 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
955 * builtins.c (fold_builtin_fma): Remove constant handling.
956 (fold_builtin_3): Handle constant fma arguments here.
958 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
960 * builtins.c (fold_builtin_fabs): Remove constant handling.
961 (fold_builtin_abs): Likewise.
963 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
965 * builtins.c (fold_builtin_copysign): Delete.
966 (fold_builtin_2): Handle constant copysign arguments here.
967 * match.pd: Add rules previously handled by fold_builtin_copysign.
969 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
971 * builtins.c (fold_builtin_signbit): Delete.
972 (fold_builtin_2): Handle constant signbit arguments here.
973 * match.pd: Add rules previously handled by fold_builtin_signbit.
975 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
977 * match.pd: Handle sqrt(x) cmp 0 specially.
979 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
981 * tree-vect-generic.c (expand_vector_operations_1): Check
982 optab type before using it.
984 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
986 * config/aarch64/aarch64-protos.h
987 (struct tune_params): Add autoprefetcher_model field.
988 * config/aarch64/aarch64.c: Include params.h
989 (generic_tunings): Specify autoprefetcher_model value.
990 (cortexa53_tunings): Likewise.
991 (cortexa57_tunings): Likewise.
992 (cortexa72_tunings): Likewise.
993 (thunderx_tunings): Likewise.
994 (xgene1_tunings): Likewise.
995 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
996 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
997 (aarch64_override_options_internal): Set
998 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
1000 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1002 * builtins.c (fold_builtin_exponent): Delete.
1003 (fold_builtin_2): Handle constant expN arguments here.
1004 * match.pd: Fold expN(logN(x)) -> x.
1006 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1008 * builtins.c (fold_builtin_powi): Delete.
1009 (fold_builtin_2): Handle constant powi arguments here.
1010 * match.pd: Add rules previously handled by fold_builtin_powi.
1012 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1014 * builtins.c (fold_builtin_pow): Delete in favor of...
1015 (fold_const_builtin_pow): ...this new function. Only handle constant
1017 (fold_builtin_2): Update accordingly.
1018 * match.pd: Add rules previously handled by fold_builtin_pow.
1020 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1022 * builtins.c (fold_builtin_hypot): Delete.
1023 (fold_builtin_2): Handle constant hypot arguments here.
1024 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
1025 hypot(x, x) to fabs(x)*sqrt(2).
1027 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1029 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
1030 instead of make_ssa_name if not yet in SSA form.
1032 2015-10-27 Richard Biener <rguenther@suse.de>
1034 * cfg.c (free_edge): Add function argument and use it instead of cfun.
1035 (clear_edges): Likewise.
1036 * cfg.h (clear_edges): Adjust prototype.
1037 * cfgexpand.c (pass_expand::execute): Adjust.
1038 * cfgloop.c (release_recorded_exits): Add function argument and use
1040 * cfgloop.h (release_recorded_exits): Adjust prototype.
1041 (loops_state_satisfies_p): Add overload with function argument.
1042 (loops_state_set): Likewise.
1043 (loops_state_clear): Likewise.
1044 (struct loop_iterator): Add function argument to constructor
1045 and iterator and use it instead of cfun.
1046 (FOR_EACH_LOOP_FN): New macro.
1047 (loop_optimizer_finalize): Add overload with function argument.
1048 * loop-init.c (loop_optimizer_init): Adjust.
1049 (fix_loop_structure): Likewise.
1050 (loop_optimizer_finaliz): Add function argument and use it
1052 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1053 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
1054 * cgraph.c (release_function_body): Do not push/pop cfun.
1055 * final.c (rest_of_clean_state): Adjust.
1056 * graphite.c (graphite_finalize): Likewise.
1057 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1058 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
1059 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
1060 (tree_unroll_loops_completely): Likewise.
1061 (pass_complete_unrolli::execute): Likewise.
1062 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
1063 Add function argument and use it instead of cfun.
1064 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
1066 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
1067 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
1069 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
1070 * tree-ssanames.c (fini_ssanames): Add function argument and use it
1072 * tree-ssanames.c (fini_ssanames): Adjust prototype.
1073 * tree-vrp.c (execute_vrp): Adjust.
1074 * value-prof.c (free_histograms): Add function argument and use it
1076 * value-prof.h (free_histograms): Adjust prototype.
1078 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1080 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
1081 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
1082 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
1084 2015-10-27 Tom de Vries <tom@codesourcery.com>
1086 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
1089 2015-10-27 Bin Cheng <bin.cheng@arm.com>
1091 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
1092 (inv_can_prop_to_addr_use): New function.
1093 (record_use): Call can_prop_to_addr_uses, set the new field.
1094 (get_inv_cost): Count cost if inv can't be propagated into its
1097 2015-10-26 Doug Evans <dje@google.com>
1099 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
1101 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
1103 * match.pd (fold_widened_comparison): Apply simplifications to all
1106 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
1108 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
1109 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
1110 * doc/tm.texi: Regenerated.
1111 * reorg.c (dbr_schedule): Use new hook.
1112 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
1114 2015-10-26 Jeff Law <law@redhat.com>
1116 PR tree-optimization/68013
1117 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1118 Make sure the first block in the path is in VISITED_BBs.
1120 2015-10-26 Richard Biener <rguenther@suse.de>
1121 Dominik Vogt <vogt@linux.vnet.ibm.com>
1124 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
1125 Properly prune ref->ref for accesses outside of ref.
1127 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
1129 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
1130 new statements to be inserted if inplace. Allow calls to have
1133 2015-10-26 Richard Biener <rguenther@suse.de>
1135 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
1136 (do_valueize): New function.
1137 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
1139 * tree-ssa-threadedge.c: Remove builtins.h include, include
1141 (fold_assignment_stmt): Remove.
1142 (threadedge_valueize): New function.
1143 (record_temporary_equivalences_from_stmts): Use
1144 gimple_fold_stmt_to_constant_1, note additional cleanup
1147 2015-10-26 Richard Biener <rguenther@suse.de>
1149 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
1150 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
1152 2015-10-26 Alan Hayward <alan.hayward@arm.com>
1154 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
1155 VEC_COND_EXPR types.
1157 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1159 * auto-inc-dec.c (insert_move_insn_before): Delete.
1160 (attempt_change): Remember to cost the simple move in the
1161 FORM_PRE_ADD and FORM_POST_ADD cases.
1163 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
1166 * config/sh/sh.c (sh_vector_mode_supported_p): Use
1167 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
1169 2015-10-26 Tom de Vries <tom@codesourcery.com>
1171 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
1173 (intra_create_variable_infos): ... here.
1175 2015-10-26 Tom de Vries <tom@codesourcery.com>
1177 * tree-ssa-structalias.c (intra_create_variable_infos): Add
1178 restrict_pointer_p and recursive_restrict_p variables.
1180 2015-10-26 Tom de Vries <tom@codesourcery.com>
1182 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
1183 get_vi_for_tree call.
1185 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1188 * optabs.c (expand_atomic_compare_and_swap): Handle case when
1189 ptarget_oval or ptarget_bool are const0_rtx.
1191 2015-10-26 Christian Bruel <christian.bruel@st.com>
1193 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
1194 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
1195 * cp/method.c (implicitly_declare_fn): Likewise.
1196 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
1197 * java/class.c (add_method_1): Likewise.
1199 2015-10-26 Richard Biener <rguenther@suse.de>
1201 * alloc-pool.h (base_pool_allocator): Use placement new.
1202 (base_pool_allocator::remove): Likewise. Compute size outside of
1205 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
1207 * builtins.c (do_real_to_int_conversion): New function.
1208 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
1209 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
1211 * match.pd: Add rules previously handled by fold_fixed_mathfn
1212 and fold_builtin_int_roundingfn.
1214 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
1216 * match.pd: Use macros to define built-in operator lists.
1218 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
1219 Richard Biener <rguenther@suse.de>
1221 * genmatch.c (dt_simplify::gen): Skip captures that are
1223 (parser::parse_expr): Allow captures in results too.
1224 * builtins.c (fold_builtin_cexp): Delete.
1225 (fold_builtin_1): Handle constant cexp arguments here.
1226 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
1228 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
1230 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
1231 conditional compilation.
1232 (base_pool_allocator::remove): Use flag_checking.
1234 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
1236 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
1239 * dojump.c (do_compare_and_jump): Canonicalize both function and
1242 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
1245 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
1248 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
1251 * ipa-polymorphic-call.c
1252 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
1253 instance offset with offset of outer type.
1255 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
1257 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
1259 2015-10-23 Caroline Tice <cmtice@google.com>
1261 (from Richard Biener
1262 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
1263 call to iterative_hash_host_wide_int.
1265 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
1267 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
1270 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1272 * tree-vect-generic.c (expand_vector_operations_1): Check
1273 optab exists before use it.
1275 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1277 * tree-vect-generic.c (expand_vector_condition): Avoid
1278 uninitialized variable warning.
1280 2015-10-23 Jeff Law <law@redhat.com>
1282 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
1284 (execute_todo): Call it here.
1285 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
1287 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
1289 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
1290 Szabolcs Nagy <szabolcs.nagy@arm.com>
1292 * config.gcc (enable_secureplt): Add *-linux*-musl*.
1294 2015-10-23 Jeff Law <law@redhat.com>
1296 PR tree-optimization/67830
1297 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
1298 Explicitly verify the mask has no bits outside the type of
1299 the innermost operands.
1301 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
1302 Szabolcs Nagy <szabolcs.nagy@arm.com>
1304 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
1305 (MUSL_DYNAMIC_LINKER64): Define.
1306 (GNU_USER_DYNAMIC_LINKER32): Update.
1307 (GNU_USER_DYNAMIC_LINKER64): Update.
1308 (CHOOSE_DYNAMIC_LINKER): Update.
1310 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
1311 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
1312 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
1313 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
1314 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
1315 (CHOOSE_DYNAMIC_LINKER): Update.
1316 (INCLUDE_DEFAULTS): Redefine.
1318 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
1320 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
1322 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
1323 comparing addresses.
1325 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
1327 * fold-const.c (operand_equal_p): Handle matching of vector
1330 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
1332 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
1334 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
1335 Andrew Pinski <apinski@cavium.com>
1337 PR rtl-optimization/67736
1338 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
1341 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1344 * tree.c (build_truth_vector_type): Support BLK mode
1345 returned for boolean vector.
1347 2015-10-23 Alan Hayward <alan.hayward@arm.com>
1349 PR tree-optimization/65947
1351 (vect_is_simple_reduction_1): Find condition reductions.
1352 (vect_model_reduction_cost): Add condition reduction costs.
1353 (get_initial_def_for_reduction): Add condition reduction initial var.
1354 (vect_create_epilog_for_reduction): Add condition reduction epilog.
1355 (vectorizable_reduction): Condition reduction support.
1356 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
1357 * doc/sourcebuild.texi (Vector-specific attributes): Document
1360 2015-10-23 Richard Biener <rguenther@suse.de>
1362 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
1365 2015-10-23 Richard Biener <rguenther@suse.de>
1366 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1368 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
1369 into (A ^ B) - B to match.pd
1370 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
1372 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
1374 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
1376 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
1378 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
1380 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
1381 INTEGER_CST@1)): New simplifier.
1383 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
1385 * builtins.c (integer_valued_real_p): Move to fold-const.c.
1386 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
1387 (fold_builtin_ceil, fold_builtin_round): Delete.
1388 (fold_builtin_1): Handle constant trunc, floor, ceil and round
1390 * convert.c (convert_to_real): Remove narrowing of rounding
1392 * fold-const.h (integer_valued_real_unary_p)
1393 (integer_valued_real_binary_p, integer_valued_real_call_p)
1394 (integer_valued_real_single_p, integer_valued_real_p): Declare.
1395 * fold-const.c (tree_single_nonnegative_warnv_p): Move
1396 name_registered_for_update_p check to SSA_NAME case statement.
1397 Don't call tree_simple_nonnegative_warnv_p for SSA names.
1398 (integer_valued_real_unary_p, integer_valued_real_binary_p)
1399 (integer_valued_real_call_p, integer_valued_real_single_p)
1400 (integer_valued_real_invalid_p): New functions.
1401 (integer_valued_real_p): Move from fold-const.c and rework
1402 to call the functions above. Handle SSA names.
1403 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
1404 * gimple-fold.c (gimple_assign_integer_valued_real_p)
1405 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
1406 (gimple_stmt_integer_valued_real_p): New functions.
1407 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
1408 Fold f(x)->x for the same f if x is known to be integer-valued.
1409 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
1410 the result. Canonicalize floor(x) as trunc(x) if x is
1413 2015-10-23 Tom de Vries <tom@codesourcery.com>
1415 * tree-ssa-structalias.c (intra_create_variable_infos): Use
1416 make_constraint_from.
1418 2015-10-23 Tom de Vries <tom@codesourcery.com>
1420 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
1421 setting of is_full_var in case of a single field.
1423 2015-10-22 Martin Sebor <msebor@redhat.com>
1426 * config/i386/i386.opt: Add missing periods to the ends of sentences.
1427 * config/msp430/msp430.opt: Same.
1429 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
1431 * doc/extend.exp (Global Register Variables): Rewrite.
1433 2015-10-22 Jeff Law <law@redhat.com>
1435 * genattrtab.c (main): If we do not have any annul-true or annul-false
1436 slots, then write out a dummy eligible_for_annul_true or
1437 eligible_for_annul_false as needed.
1439 2015-10-22 Nick Clifton <nickc@redhat.com>
1441 * config/msp430/msp430.opt: Add -msilicon-errata and
1442 -msilicon-errata-warn.
1443 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
1445 * doc/invoke.texi: Document new options.
1447 2015-10-22 Richard Biener <rguenther@suse.de>
1449 PR tree-optimization/58497
1450 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
1451 (expand_vector_operations_1): Use it. Lower operations on
1452 all uniform vectors to scalar operations if the HW supports it.
1454 2015-10-22 Richard Biener <rguenther@suse.de>
1456 PR tree-optimization/19049
1457 PR tree-optimization/65962
1458 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
1459 to strided accesses if single-element interleaving doesn't work.
1461 2015-10-22 Richard Biener <rguenther@suse.de>
1465 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
1466 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
1467 (expand_unop): Likewise.
1469 2015-10-22 Richard Biener <rguenther@suse.de>
1471 * fold-const.c (fold_addr_of_array_ref_difference): Properly
1472 convert operands before folding a MINUS_EXPR.
1473 (fold_binary_loc): Move simplification of MINUS_EXPR on
1474 converted POINTER_PLUS_EXPRs ...
1475 * match.pd: ... here.
1477 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
1479 * builtins.c (fold_builtin_tan): Delete.
1480 (fold_builtin_1): Handle constant tan arguments here.
1481 * match.pd: Simplify (tan (atan x)) to x.
1483 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
1485 * builtins.c (fold_builtin_cproj): Delete.
1486 (fold_builtin_1): Handle constant arguments here.
1487 (build_complex_cproj): Move and rename to...
1488 * tree.c: (build_complex_inf): ...this.
1489 * tree.h (build_complex_inf): Declare.
1490 * match.pd: Fold cproj(x)->x if x has no infinity.
1491 Use build_complex_inf for existing cproj rules.
1493 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1496 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
1497 already have a comparison result.
1499 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1502 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
1503 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
1504 (aarch64_classify_address): Likewise.
1505 (aarch64_secondary_reload): Likewise.
1506 (aarch64_override_options_after_change_1): Adjust.
1507 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1508 Use aarch64_nopcrelative_literal_loads.
1509 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1510 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
1513 2015-10-21 Martin Sebor <msebor@redhat.com>
1516 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
1517 (print_filtered_help): Reference aliased option's name and encourage
1518 readers to use it in preference to the alias if the former is not
1519 documented. Mention when using an option is diagnosed.
1520 * gcc.c (display_help): End each sentence with a period.
1522 * common.opt: End each sentence that describes an option with
1524 * config/aarch64/aarch64.opt: Same.
1525 * config/alpha/alpha.opt: Same.
1526 * config/arc/arc.opt: Same.
1527 * config/arm/arm.opt: Same.
1528 * config/avr/avr.opt: Same.
1529 * config/bfin/bfin.opt: Same.
1530 * config/c6x/c6x.opt: Same.
1531 * config/cr16/cr16.opt: Same.
1532 * config/cris/cris.opt: Same.
1533 * config/cris/linux.opt: Same.
1534 * config/darwin.opt: Same.
1535 * config/epiphany/epiphany.opt: Same.
1536 * config/fr30/fr30.opt: Same.
1537 * config/frv/frv.opt: Same.
1538 * config/ft32/ft32.opt: Same.
1539 * config/g.opt: Same.
1540 * config/h8300/h8300.opt: Same.
1541 * config/i386/cygming.opt: Same.
1542 * config/i386/djgpp.opt: Same.
1543 * config/i386/i386.opt: Same.
1544 * config/i386/interix.opt: Same.
1545 * config/i386/mingw-w64.opt: Same.
1546 * config/i386/mingw.opt: Same.
1547 * config/ia64/ia64.opt: Same.
1548 * config/ia64/ilp32.opt: Same.
1549 * config/iq2000/iq2000.opt: Same.
1550 * config/linux.opt: Same.
1551 * config/lm32/lm32.opt: Same.
1552 * config/lynx.opt: Same.
1553 * config/m32c/m32c.opt: Same.
1554 * config/m32r/m32r.opt: Same.
1555 * config/m68k/ieee.opt: Same.
1556 * config/m68k/m68k.opt: Same.
1557 * config/mcore/mcore.opt: Same.
1558 * config/mep/mep.opt: Same.
1559 * config/microblaze/microblaze.opt: Same.
1560 * config/mips/mips.opt: Same.
1561 * config/mmix/mmix.opt: Same.
1562 * config/mn10300/mn10300.opt: Same.
1563 * config/moxie/moxie.opt: Same.
1564 * config/msp430/msp430.opt: Same.
1565 * config/nios2/elf.opt: Same.
1566 * config/nios2/nios2.opt: Same.
1567 * config/nvptx/nvptx.opt: Same.
1568 * config/pa/pa-hpux.opt: Same.
1569 * config/pa/pa-hpux1010.opt: Same.
1570 * config/pa/pa-hpux1111.opt: Same.
1571 * config/pa/pa-hpux1131.opt: Same.
1572 * config/pa/pa.opt: Same.
1573 * config/pa/pa64-hpux.opt: Same.
1574 * config/pdp11/pdp11.opt: Same.
1575 * config/rl78/rl78.opt: Same.
1576 * config/rs6000/476.opt: Same.
1577 * config/rs6000/aix64.opt: Same.
1578 * config/rs6000/darwin.opt: Same.
1579 * config/rs6000/linux64.opt: Same.
1580 * config/rs6000/rs6000.opt: Same.
1581 * config/rs6000/sysv4.opt: Same.
1582 * config/s390/s390.opt: Same.
1583 * config/s390/tpf.opt: Same.
1584 * config/sh/sh.opt: Same.
1585 * config/sol2.opt: Same.
1586 * config/sparc/long-double-switch.opt: Same.
1587 * config/sparc/sparc.opt: Same.
1588 * config/spu/spu.opt: Same.
1589 * config/stormy16/stormy16.opt: Same.
1590 * config/tilegx/tilegx.opt: Same.
1591 * config/tilepro/tilepro.opt: Same.
1592 * config/v850/v850.opt: Same.
1593 * config/vax/vax.opt: Same.
1594 * config/visium/visium.opt: Same.
1595 * config/vms/vms.opt: Same.
1596 * config/vxworks.opt: Same.
1597 * config/xtensa/xtensa.opt: Same.
1599 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1600 Sebastian Pop <s.pop@samsung.com>
1602 * graphite-scop-detection.c (parameter_index_in_region): Update call to
1603 invariant_in_sese_p_rec.
1604 * graphite-sese-to-poly.c (extract_affine): Same.
1605 * sese.c (invariant_in_sese_p_rec): Pass in an extra
1606 parameter has_vdefs.
1607 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
1608 variable depends on virtual definitions in the current region.
1609 * sese.h (invariant_in_sese_p_rec): Update declaration.
1611 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1612 Sebastian Pop <s.pop@samsung.com>
1614 * graphite-scop-detection.c (build_scops): Do not handle scops
1615 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
1616 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
1618 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
1620 * config.in: Regenerate.
1621 * configure: Regenerate.
1622 * configure.ac (CHECKING_P): Define.
1623 * system.h: Use CHECKING_P.
1625 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1628 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
1629 is negative we don't know the type.
1630 (check_stmt_for_type_change): Skip constructors of non-polymorphic
1631 types as those won't help devirutalization.
1633 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1635 * fold-const.c (operand_equal_p): Add code matching empty constructors.
1637 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
1639 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
1641 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
1642 Add comments on sign of the result.
1643 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
1644 Recurse on operand #1 instead of operand #0.
1645 <CEIL_MOD_EXPR>: Do not recurse.
1646 <ROUND_MOD_EXPR>: Likewise.
1648 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1650 * cfgrtl.c (pass_free_cfg::execute): Adjust.
1651 * final.c (dbr_sequence_length): Always define.
1652 (shorten_branches): Adjust.
1653 * genattr-common.c (main): Always define DELAY_SLOTS.
1654 * genattr.c (main): Unconditionally declare functions and define
1655 macros related to delay slots.
1656 * genattrtab.c (write_eligible_delay): Adjust.
1657 (main): Always write out delay slot functions.
1658 * opts.c (default_options_table): Adjust.
1659 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
1660 (redirect_with_delay_list_safe_p): Likewise.
1661 (fill_simple_delay_slots): Likewise.
1662 (fill_slots_from_thread): Likewise.
1663 (make_return_insns): Likewise.
1664 (dbr_schedule): Likewise.
1665 (rest_of_handle_delay_slots): Likewise.
1666 (pass_delay_slots::gate): Likewise.
1667 * toplev.c (process_options): Likewise.
1669 2015-10-21 Richard Henderson <rth@redhat.com>
1671 * targhooks.c (default_addr_space_pointer_mode): Remove check
1672 for generic address space.
1673 (default_addr_space_address_mode): Likewise.
1674 (default_addr_space_valid_pointer_mode): Likewise.
1675 (default_addr_space_legitimate_address_p): Likewise.
1676 (default_addr_space_legitimize_address): Likewise.
1677 * target.def (addr_space.pointer_mode): Update documentation
1678 of default behavior.
1679 (addr_space.address_mode): Likewise.
1682 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
1685 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1687 * builtins.c (fold_builtin_cabs): Delete.
1688 (fold_builtin_1): Update accordingly. Handle constant arguments here.
1689 * match.pd: Add rules previously handled by fold_builtin_cabs.
1691 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1693 * fold-const.h (fold_strip_sign_ops): Delete.
1694 * fold-const.c (fold_strip_sign_ops): Likewise.
1695 (fold_unary_loc, fold_binary_loc): Remove calls to it.
1696 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
1697 (fold_builtin_ccos): Delete.
1698 (fold_builtin_pow): Don't call fold_strip_sign_ops.
1699 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
1700 Remove fndecl argument.
1701 (fold_builtin_1): Update calls accordingly. Handle constant
1702 cos, cosh, ccos and ccosh here.
1704 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1706 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
1707 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
1708 * common.opt (fssa-backprop): New option.
1709 * fold-const.h (negate_mathfn_p): Declare.
1710 * fold-const.c (negate_mathfn_p): Make public.
1711 * timevar.def (TV_TREE_BACKPROP): New.
1712 * tree-pass.h (make_pass_backprop): Declare.
1713 * passes.def (pass_backprop): Add.
1714 * gimple-ssa-backprop.c: New file.
1716 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1717 Sebastian Pop <s.pop@samsung.com>
1719 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
1720 Do not call create_empty_if_region_on_edge when cond_expr is true.
1721 (translate_isl_ast_node_for): Check whether a guard has been generated.
1723 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1725 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
1726 (operator=): Removed.
1727 (dr_info): Make alias_set number the last argument with default
1728 value of invalid_alias_set.
1729 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
1731 (rewrite_reductions_out_of_ssa): Iterate only through the
1732 basic blocks which are inside region.
1733 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1734 * sese.h (struct sese_l): Removed assignment operator.
1735 (split_region_for_bb): Removed dead code.
1737 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1739 * graphite-poly.h (struct dr_info): Removed conversion constructor.
1740 (struct scop): Renamed scop::region to scop::scop_info
1741 (scop_set_region): Same.
1742 (SCOP_REGION): Removed
1743 (SCOP_CONTEXT): Removed.
1744 (POLY_SCOP_P): Removed.
1745 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1746 Rename scop->region to scop->scop_info.
1747 (add_parameters_to_ivs_params): Same.
1748 (graphite_regenerate_ast_isl): Same.
1749 * graphite-poly.c (new_scop): Same.
1751 (print_scop_params): Same.
1752 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
1753 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
1754 (dot_all_scops_1): Rename scop->region to scop->scop_info.
1755 (scop_detection::nb_pbbs_in_loops): Same.
1756 (find_scop_parameters): Same.
1757 (try_generate_gimple_bb): Same.
1758 (gather_bbs::before_dom_children): Same.
1759 (gather_bbs::after_dom_children): Same.
1760 (build_scops): Same.
1761 * graphite-sese-to-poly.c (build_scop_scattering): Same.
1762 (extract_affine_chrec): Same.
1763 (extract_affine): Same.
1764 (set_scop_parameter_dim): Same.
1765 (build_loop_iteration_domains): Same.
1766 (create_pw_aff_from_tree): Same.
1767 (add_param_constraints): Same.
1768 (build_scop_iteration_domain): Same.
1769 (build_scop_drs): Same.
1770 (analyze_drs_in_stmts): Same.
1771 (insert_out_of_ssa_copy_on_edge): Same.
1772 (rewrite_close_phi_out_of_ssa):Same.
1773 (rewrite_reductions_out_of_ssa):Same.
1774 (handle_scalar_deps_crossing_scop_limits):Same.
1775 (rewrite_cross_bb_scalar_deps):Same.
1776 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
1777 (build_poly_scop):Same.
1778 (build_alias_set): Use pointer to dr_info.
1779 * graphite.c (print_graphite_scop_statistics):
1780 (graphite_transform_loops):
1781 * sese.h (struct sese_l): Remove conversion constructor.
1783 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1786 * tree.c (verify_type): Verify that TYPE_MODE match
1787 between TYPE_CANONICAL and type.
1788 * expr.c (store_expr_with_bounds): Revert my previous change.
1789 * expmed.c (store_bit_field_1): Revert prevoius change.
1790 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
1791 to match for all types.
1793 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
1795 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
1798 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1800 * doc/tm.texi: Regenerated.
1801 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
1802 * stor-layout.c (layout_type): Use mode to get vector mask size.
1803 * target.def (get_mask_mode): New.
1804 * targhooks.c (default_get_mask_mode): New.
1805 * targhooks.h (default_get_mask_mode): New.
1806 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
1808 * tree.c (MAX_BOOL_CACHED_PREC): New.
1809 (nonstandard_boolean_type_cache): New.
1810 (build_nonstandard_boolean_type): New.
1811 (make_vector_type): Vector mask has no canonical type.
1812 (build_truth_vector_type): New.
1813 (build_same_sized_truth_vector_type): New.
1814 (truth_type_for): Support vector masks.
1815 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
1816 (build_truth_vector_type): New.
1817 (build_same_sized_truth_vector_type): New.
1818 (build_nonstandard_boolean_type): New.
1819 * tree-cfg.c (verify_gimple_comparison) Require boolean
1820 vector type for vector comparison.
1821 (verify_gimple_assign_ternary): Likewise.
1822 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
1824 * tree-vect-stmts.c (vectorizable_condition): Use boolean
1825 vector type for vector comparison.
1826 * tree-vect-generic.c (elem_op_func): Add new operand to hold
1828 (do_unop): Adjust to modified function type.
1829 (do_binop): Likewise.
1830 (do_plus_minus): Likewise.
1831 (do_negate); Likewise.
1832 (expand_vector_piecewise): Likewise.
1833 (do_cond): Likewise.
1834 (do_compare): Use comparison instead of condition.
1835 (expand_vector_divmod): Use boolean vector type for comparison.
1836 (expand_vector_operations_1): Skip scalar mask operations.
1838 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1840 * omp-low.c (simd_clone_create): Set in_other_partition
1843 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
1845 * doc/extend.exp (Local Register Variables): Rewrite.
1847 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1849 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
1850 and x*x in cases where the operands are sign ops. Extend these
1851 rules to handle copysign as a sign op (including for cos, cosh
1852 and pow, which already treated negate and abs as sign ops).
1854 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
1857 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
1858 for 64-bit MS_ABI targets also when default incoming stack boundary
1861 2015-10-21 Richard Biener <rguenther@suse.de>
1863 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
1864 cond stmts, enhanced and split out from ...
1865 (vn_phi_eq): ... here.
1867 2015-10-21 Richard Biener <rguenther@suse.de>
1870 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
1871 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
1872 (tree_single_nonnegative_warnv_p): ... here. For SSA names
1873 make sure they are not registered for update.
1875 2015-10-21 Richard Biener <rguenther@suse.de>
1877 PR tree-optimization/68026
1878 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
1879 unsigned VARYING values.
1881 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1883 * asan.c (asan_emit_stack_protection): Don't pass local stack to
1884 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
1885 NULL and use local stack than.
1886 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
1887 in addition to __asan_init.
1888 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
1889 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
1890 * asan.h (asan_intercepted_p): Handle new string builtins.
1891 * ubsan.c (ubsan_use_new_style_p): New function.
1892 (ubsan_instrument_float_cast): If location is unknown, assign
1893 input_location to loc. Propagate loc to ubsan_create_data if
1894 ubsan_use_new_style_p returned true.
1896 2015-10-21 Jeff Law <law@redhat.com>
1898 * Makefile.in (OBJS): Remove sched-vis.c
1899 * sched-vis.c: Removed. Code moved into...
1900 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
1901 * rtl.h: Remove prototypes for functions now living in print-rtl.c
1902 * print-rtl.h Add prototypes for new functions in print-rtl.c.
1903 * auto-inc-dec.c: Include print-rtl.h
1904 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
1905 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
1907 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
1910 2015-10-21 Richard Biener <rguenther@suse.de>
1911 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1913 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
1915 Move (a * (1 << b)) is (a << b) to match.pd.
1916 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
1917 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
1918 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
1920 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
1922 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
1923 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
1924 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
1926 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
1928 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
1930 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
1931 Szabolcs Nagy <szabolcs.nagy@arm.com>
1932 Alan Modra <amodra@gmail.com>
1934 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
1935 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
1936 (LINK_SPEC): Add %(link_secure_plt).
1937 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
1938 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
1940 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
1941 Szabolcs Nagy <szabolcs.nagy@arm.com>
1943 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
1944 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
1946 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1948 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
1950 (fusion_load_store): Use it.
1951 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
1952 ldp and stp in VD modes.
1953 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
1954 (store_pair<mode>, VD): Likewise.
1956 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
1958 PR rtl-optimization/67609
1959 * lra-splill.c (lra_final_code_change): Don't remove all
1962 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1964 * simplify-rtx.c (simplify_binary_operation): If either operand was
1965 a constant pool reference use them if all other simplifications failed.
1967 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1969 * config/aarch64/aarch64.md
1970 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
1971 * config/aarch64/aarch64-simd.md
1972 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
1973 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
1974 (aarch64_fpconst_pow_of_2): New function.
1975 (aarch64_vec_fpconst_pow_of_2): Likewise.
1976 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
1978 (aarch64_vec_fpconst_pow_of_2): Likewise.
1979 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
1980 (aarch64_fp_vec_pow2): Likewise.
1982 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
1984 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
1985 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
1986 * config/alpha/alpha.c (alpha_function_arg_advance): Update
1987 ALPHA_ARG_SIZE usage.
1988 (alpha_arg_partial_bytes): Ditto.
1990 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
1993 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
1994 error_mark_node decls.
1996 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
2000 * common/config/i386/i386-common.c (ix86_handle_option): Remove
2001 OPT_miamcu handling.
2002 * config/i386/i386.c (PTA_NO_80387): New macro.
2003 (processor_alias_table): Add PTA_NO_80387 to lakemont.
2004 (ix86_option_override_internal): Update MASK_80387 from
2005 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
2006 SSE math only if 80387 is supported. Don't change
2008 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
2010 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
2011 if TARGET_80387 is true and TARGET_IAMCU is false.
2012 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
2013 is true and TARGET_IAMCU_P is false.
2015 2015-10-20 Richard Biener <rguenther@suse.de>
2017 PR tree-optimization/68017
2018 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
2020 2015-10-20 Martin Liska <mliska@suse.cz>
2022 * cgraphclones.c (cgraph_node::create_virtual_clone):
2023 Verify cgraph_node.local.versionable instead of calling
2024 tree_versionable_function_p.
2025 * ipa-cp.c (determine_versionability): Save the information
2026 to ipa_node_params summary.
2027 (ipcp_versionable_function_p): Use it.
2028 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
2029 (ipcp_generate_summary): Do not compute cgraph_node
2031 * ipa-inline-analysis.c (inline_generate_summary): Compute
2032 versionability for all cgraph nodes.
2033 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
2034 ipa_node_params::versionability.
2035 * ipa-prop.h (struct ipa_node_params): Declare it.
2037 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2040 * varasm.c (assemble_variable): Move special vtv handling to..
2041 (handle_vtv_comdat_sections): .. here. New function.
2042 (output_object_block): Handle vtv sections.
2044 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
2047 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
2049 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
2051 * doc/extend.texi: Update documentation WRT inline functions.
2053 2015-10-20 Alan Modra <amodra@gmail.com>
2056 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
2057 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
2058 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
2060 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
2062 PR rtl-optimization/66790
2063 * df.h (DF_MIR): New macro.
2064 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
2065 (DF_MIR_INFO_BB): New macro.
2066 (DF_MIR_IN, DF_MIR_OUT): New macros.
2067 (struct df_mir_bb_info): New.
2068 (df_mir): New macro.
2069 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
2071 (df_mir_get_bb_info): New.
2072 * df-problems.c (struct df_mir_problem_data): New.
2073 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
2074 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
2075 df_mir_confluence_0, df_mir_confluence_n,
2076 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
2077 df_mir_bottom_dump, df_mir_verify_solution_start,
2078 df_mir_verify_solution_end): New.
2080 (df_mir_add_problem, df_mir_simulate_one_insn): New.
2081 * timevar.def (TV_DF_MIR): New.
2082 * ree.c: Include bitmap.h
2083 (add_removable_extension): Add an INIT_REGS parameter. Use it
2084 to skip zero-extensions that may get an uninitialized register.
2085 (find_removable_extensions): Compute must-initialized registers
2086 using the MIR dataflow problem. Update the call to
2087 add_removable_extension.
2088 (find_and_remove_re): Call df_mir_add_problem.
2090 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
2092 * common/config/mn10300/mn10300-common.c
2093 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
2094 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
2096 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
2098 * doc/extend.texi (Explicit Register Variables): Simplify and
2099 avoid unnecessary and confusion abbreviations. Update cross
2101 doc/implement-c.tex: Update cross reference.
2103 2015-10-19 Jeff Law <law@redhat.com>
2105 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
2106 that create irreducible loops unless the path elimiantes a multiway
2109 2015-10-19 Richard Biener <rguenther@suse.de>
2111 PR tree-optimization/67975
2112 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
2113 * tree-cfg.c (extract_true_false_controlled_edges): Split out
2114 core worker from ...
2115 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
2116 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
2117 instead of block number for PHIs with two or one args.
2118 (vn_phi_eq): Compare edge predicates of PHIs that are in different
2121 2015-10-19 Richard Biener <rguenther@suse.de>
2123 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
2124 (gimple_stmt_nonnegative_warnv_p): Use it.
2125 * match.pd (CPROJ): New operator list.
2126 (cproj (complex ...)): Move simplifications from ...
2127 * builtins.c (fold_builtin_cproj): ... here.
2129 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2131 * config/i386/i386.c (ix86_expand_vector_move): Use
2132 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
2135 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2137 * doc/invoke.texi: Replace @optindex with @opindex.
2139 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2142 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
2143 arch= is set, clear all bits in x_ix86_isa_flags, except for
2144 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
2146 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
2149 * common.opt (fkeep-static-functions): New option.
2150 * doc/invoke.texi: Document it.
2151 * cgraphunit.c (cgraph_node::finalize_function): Use it.
2153 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2155 * sched-int.h (struct autopref_multipass_data_): Remove offset
2156 field. Add min_offset, max_offset, multi_mem_insn_p fields.
2157 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
2158 (autopref_multipass_init): Use it. Handle PARALLEL sets.
2159 (autopref_rank_data): New function.
2160 (autopref_rank_for_schedule): Use it.
2161 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
2163 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
2166 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
2168 2015-10-18 Iain Sandoe <iain@codesourcery.com>
2170 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
2171 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
2172 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
2173 (STANDARD_STARTFILE_PREFIX_1): New.
2174 (STANDARD_STARTFILE_PREFIX_2): New.
2176 2015-10-18 Iain Sandoe <iain@codesourcery.com>
2178 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
2179 (darwin_driver_init): Note a version-min when provided on the c/l.
2180 * config/darwin.h (%darwin_minversion): Remove.
2181 * config/i386/darwin.h: Likewise.
2182 * config/rs6000/darwin.h: Likewise.
2183 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
2184 rather than an arbitrary constant.
2186 2015-10-18 Iain Sandoe <iain@codesourcery.com>
2188 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
2189 PPC, detect conflicts between -arch and multilib settings. Detect
2190 and warn about conflicts between multiple -arch definitions.
2192 2015-10-18 Iain Sandoe <iain@codesourcery.com>
2194 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
2196 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2198 * lra-constraints.c (add_next_usage_insn): Change argument type
2199 from rtx to rtx_insn *.
2201 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
2203 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
2206 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
2208 * config/tilepro/gen-mul-tables.cc: Adjust include files.
2209 * config/tilegx/mul-tables.c: Regenerate.
2210 * config/tilepro/mul-tables.c: Regenerate.
2212 * config/tilegx/tilegx-c.c: Adjust include files.
2213 * config/tilegx/tilegx.c: Likewise.
2214 * config/tilepro/tilepro-c.c: Likewise.
2215 * config/tilepro/tilepro.c: Likewise.
2216 * config/aarch64/aarch64-builtins.c: Likewise.
2217 * config/aarch64/aarch64.c: Likewise.
2218 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2219 * config/alpha/alpha.c: Likewise.
2220 * config/arc/arc.c: Likewise.
2221 * config/arm/aarch-common.c: Likewise.
2222 * config/arm/arm-builtins.c: Likewise.
2223 * config/arm/arm-c.c: Likewise.
2224 * config/arm/arm.c: Likewise.
2225 * config/avr/avr-c.c: Likewise.
2226 * config/avr/avr-devices.c: Likewise.
2227 * config/avr/avr-log.c: Likewise.
2228 * config/avr/avr.c: Likewise.
2229 * config/bfin/bfin.c: Likewise.
2230 * config/c6x/c6x.c: Likewise.
2231 * config/cr16/cr16.c: Likewise.
2232 * config/cris/cris.c: Likewise.
2233 * config/darwin-c.c: Likewise.
2234 * config/darwin-driver.c: Likewise.
2235 * config/darwin.c: Likewise.
2236 * config/default-c.c: Likewise.
2237 * config/epiphany/epiphany.c: Likewise.
2238 * config/epiphany/mode-switch-use.c: Likewise.
2239 * config/epiphany/resolve-sw-modes.c: Likewise.
2240 * config/fr30/fr30.c: Likewise.
2241 * config/frv/frv.c: Likewise.
2242 * config/ft32/ft32.c: Likewise.
2243 * config/glibc-c.c: Likewise.
2244 * config/h8300/h8300.c: Likewise.
2245 * config/i386/host-cygwin.c: Likewise.
2246 * config/i386/host-mingw32.c: Likewise.
2247 * config/i386/i386-c.c: Likewise.
2248 * config/i386/i386.c: Likewise.
2249 * config/i386/msformat-c.c: Likewise.
2250 * config/i386/winnt-cxx.c: Likewise.
2251 * config/i386/winnt-stubs.c: Likewise.
2252 * config/i386/winnt.c: Likewise.
2253 * config/ia64/ia64-c.c: Likewise.
2254 * config/ia64/ia64.c: Likewise.
2255 * config/iq2000/iq2000.c: Likewise.
2256 * config/lm32/lm32.c: Likewise.
2257 * config/m32c/m32c-pragma.c: Likewise.
2258 * config/m32c/m32c.c: Likewise.
2259 * config/m32r/m32r.c: Likewise.
2260 * config/mcore/mcore.c: Likewise.
2261 * config/mep/mep-pragma.c: Likewise.
2262 * config/mep/mep.c: Likewise.
2263 * config/microblaze/microblaze-c.c: Likewise.
2264 * config/microblaze/microblaze.c: Likewise.
2265 * config/mips/mips-tables.opt
2266 * config/mips/mips.c: Likewise.
2267 * config/mmix/mmix.c: Likewise.
2268 * config/mn10300/mn10300.c: Likewise.
2269 * config/moxie/moxie.c: Likewise.
2270 * config/msp430/msp430-c.c: Likewise.
2271 * config/msp430/msp430.c: Likewise.
2272 * config/nds32/nds32-cost.c: Likewise.
2273 * config/nds32/nds32-fp-as-gp.c: Likewise.
2274 * config/nds32/nds32-intrinsic.c: Likewise.
2275 * config/nds32/nds32-isr.c: Likewise.
2276 * config/nds32/nds32-md-auxiliary.c: Likewise.
2277 * config/nds32/nds32-memory-manipulation.c: Likewise.
2278 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2279 * config/nds32/nds32-predicates.c: Likewise.
2280 * config/nds32/nds32.c: Likewise.
2281 * config/nios2/nios2.c: Likewise.
2282 * config/nvptx/mkoffload.c: Likewise.
2283 * config/nvptx/nvptx.c: Likewise.
2284 * config/pa/pa.c: Likewise.
2285 * config/pdp11/pdp11.c: Likewise.
2286 * config/rl78/rl78-c.c: Likewise.
2287 * config/rl78/rl78.c: Likewise.
2288 * config/rs6000/host-darwin.c: Likewise.
2289 * config/rs6000/rs6000-c.c: Likewise.
2290 * config/rs6000/rs6000-linux.c: Likewise.
2291 * config/rs6000/rs6000.c: Likewise.
2292 * config/rx/rx.c: Likewise.
2293 * config/s390/s390-c.c: Likewise.
2294 * config/s390/s390.c: Likewise.
2295 * config/sh/sh-c.c: Likewise.
2296 * config/sh/sh-mem.cc: Likewise.
2297 * config/sh/sh.c: Likewise.
2298 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2299 * config/sh/sh_treg_combine.cc: Likewise.
2300 * config/sol2-c.c: Likewise.
2301 * config/sol2-cxx.c: Likewise.
2302 * config/sol2-stubs.c: Likewise.
2303 * config/sol2.c: Likewise.
2304 * config/sparc/sparc-c.c: Likewise.
2305 * config/sparc/sparc.c: Likewise.
2306 * config/spu/spu-c.c: Likewise.
2307 * config/spu/spu.c: Likewise.
2308 * config/stormy16/stormy16.c: Likewise.
2309 * config/v850/v850-c.c: Likewise.
2310 * config/v850/v850.c: Likewise.
2311 * config/vax/vax.c: Likewise.
2312 * config/visium/visium.c: Likewise.
2313 * config/vms/vms-c.c: Likewise.
2314 * config/vms/vms.c: Likewise.
2315 * config/vxworks.c: Likewise.
2316 * config/winnt-c.c: Likewise.
2317 * config/xtensa/xtensa.c: Likewise.
2319 2015-10-16 Christian Bruel <christian.bruel@st.com>
2322 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
2323 (FUNCTION_BOUNDARY_P): New macro:
2324 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
2326 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
2327 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
2328 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
2329 * gcc/function.c (allocate_struct_function): Call
2330 relayout_function hook.
2331 * gcc/passes.c (rest_of_decl_compilation): Likewise.
2333 2015-10-16 Christian Bruel <christian.bruel@st.com>
2336 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
2337 * config/arm/arm.c (arm_option_override_internal): Call
2338 arm_override_options_after_change_1.
2339 (arm_override_options_after_change): New function.
2340 (arm_override_options_after_change_1): Likewise.
2341 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
2343 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2346 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
2349 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
2351 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
2352 argument is an ADDR_EXPR.
2354 2015-10-16 Richard Biener <rguenther@suse.de>
2356 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
2357 and get rid of force_gimple_operand_gsi.
2358 (gimple_fold_builtin_memory_chk): Likewise.
2359 (gimple_fold_builtin_stxcpy_chk): Likewise.
2360 (rewrite_to_defined_overflow): Likewise.
2361 (gimple_convert_to_ptrofftype): New function.
2362 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
2364 2015-10-16 Richard Biener <rguenther@suse.de>
2366 * tree-nested.h (build_addr): Adjust prototype.
2367 * tree-nested.c (build_addr): Remove context argument and use
2369 (get_static_chain): Adjust calls to build_addr.
2370 (convert_nl_goto_reference): Likewise.
2371 (convert_tramp_reference_op): Likewise.
2372 (finalize_nesting_tree_1): Likewise.
2373 * value-prof.c (gimple_ic): Likewise.
2374 * gimple-low.c (lower_builtin_setjmp): Likewise.
2375 * tree-parloops.c (take_address_of): Likewise.
2376 (create_call_for_reduction_1): Likewise.
2377 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
2378 (gimple_gen_ic_func_profiler): Likewise.
2380 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2382 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
2385 2015-10-16 Michael Collison <michael.collison@linaro.org>
2386 Andrew Pinski <andrew.pinski@caviumnetworks.com>
2388 * match.pd ((x < y) && (x < z) -> x < min (y,z),
2389 (x > y) and (x > z) -> x > max (y,z))
2391 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
2392 Szabolcs Nagy <szabolcs.nagy@arm.com>
2394 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
2395 (DYNAMIC_LINKER): Renamed to ...
2396 (GLIBC_DYNAMIC_LINKER): This.
2397 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
2399 2015-10-15 Marek Polacek <polacek@redhat.com>
2401 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
2402 gimple_call_builtin instead of is_gimple_call.
2404 2015-10-15 Richard Biener <rguenther@suse.de>
2406 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
2408 2015-10-15 Richard Biener <rguenther@suse.de>
2410 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
2411 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
2412 * tree-vect-loop.c (get_initial_def_for_induction): Drop
2413 use of force_gimple_operand in favor of gimple_build.
2414 Use vect_get_new_ssa_name.
2415 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
2416 (vectorizable_mask_load_store): Likewise.
2417 (vectorizable_call): Likewise.
2418 (vectorizable_store): Likewise.
2419 (vectorizable_load): Likewise.
2420 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
2422 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
2424 PR tree-optimization/67945
2425 * tree-pass.h (PROP_gimple_opt_math): New property flag.
2426 * generic-match-head.c (canonicalize_math_p): New function.
2427 * gimple-match-head.c: Include tree-pass.h.
2428 (canonicalize_math_p): New function.
2429 * match.pd: Group math built-in rules into simplifications
2430 and canonicalizations. Guard the latter with canonicalize_math_p.
2431 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
2432 PROP_gimple_opt_math property.
2434 2015-10-15 Marek Polacek <polacek@redhat.com>
2436 PR tree-optimization/67953
2437 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
2439 2015-10-15 Jiong Wang <jiong.wang@arm.com>
2441 * config.gcc: Recognize "." in architecture base name for AArch64.
2443 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
2445 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
2447 * config/mips/mips.c (mips_setup_incoming_varargs): Use
2448 ROUND_DOWN to calculate off.
2449 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
2450 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
2453 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
2455 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
2457 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
2458 Torvald Riegel <triegel@redhat.com>
2461 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
2462 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
2463 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
2464 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
2465 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
2466 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
2467 trechkpt, treclaim, tsr, ttest): New define_expands.
2468 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2469 __TM_FENCE__ for htm.
2470 * doc/extend.texi: Update documentation for htm builtins.
2472 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
2475 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
2476 REG_CFA_EXPRESSION to aligned SSE stores.
2478 2015-10-14 Jeff Law <law@redhat.com>
2480 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
2481 num_threaded_edges for successful FSM threads too.
2483 2015-10-14 Richard Biener <rguenther@suse.de>
2485 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
2486 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
2487 (vect_get_vec_def_for_operand): Remove unused parameter.
2488 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
2489 (vect_create_epilog_for_reduction): Likewise.
2490 (vectorizable_reduction): Likewise.
2491 (vectorizable_live_operation): Likewise.
2492 * tree-vect-patterns.c (type_conversion_p): Likewise.
2493 (vect_recog_vector_vector_shift_pattern): Likewise.
2494 (check_bool_pattern): Likewise.
2495 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2496 (vect_analyze_slp_cost_1): Likewise.
2497 * tree-vect-stmts.c (process_use): Likewise.
2498 (vect_get_vec_def_for_operand): Do not handle reductions.
2499 (vect_get_vec_defs): Adjust.
2500 (vectorizable_mask_load_store): Likewise.
2501 (vectorizable_call): Likewise.
2502 (vectorizable_simd_clone_call): Likewise.
2503 (vect_get_loop_based_defs): Likewise.
2504 (vectorizable_conversion): Likewise.
2505 (vectorizable_assignment): Likewise.
2506 (vectorizable_shift): Likewise.
2507 (vectorizable_operation): Likewise.
2508 (vectorizable_store): Likewise.
2509 (vectorizable_load): Likewise.
2510 (vect_is_simple_cond): Likewise.
2511 (vectorizable_condition): Likewise.
2512 (vect_is_simple_use): Remove unused parameters.
2513 (vect_is_simple_use_1): Adjust and rename.
2515 2015-10-14 Richard Biener <rguenther@suse.de>
2517 PR tree-optimization/67915
2518 * match.pd: Handle comparisons of addresses of STRING_CSTs.
2519 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
2520 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
2521 stmt folding in favor of GIMPLE one.
2523 2015-10-14 Marek Polacek <polacek@redhat.com>
2525 PR tree-optimization/67815
2526 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
2527 (reassociate_bb): Call it.
2529 2015-10-14 Richard Biener <rguenther@suse.de>
2531 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2532 Reset info at start.
2533 (vect_analyze_group_access_1): Add debug print.
2534 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
2535 (vect_compute_single_scalar_iteration_cost): ... to this.
2536 (vect_analyze_loop_2): Adjust.
2537 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
2538 * tree-vectorizer.h: ... here.
2539 (add_stmt_info_to_vec): Remove.
2540 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
2542 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
2544 * targhooks.c (default_target_option_pragma_parse): Do not warn if
2545 called on behalf of "#pragma GCC pop_options".
2547 2015-10-14 Tom de Vries <tom@codesourcery.com>
2549 * cfganal.c (verify_no_unreachable_blocks): New function.
2550 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
2551 verify_no_unreachable_blocks.
2552 cfganal.h (verify_no_unreachable_blocks): Declare.
2554 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
2556 * common.opt: Add flag_checking.
2557 * system.h (CHECKING_P): Define.
2559 2015-10-13 Jakub Jelinek <jakub@redhat.com>
2560 Aldy Hernandez <aldyh@redhat.com>
2561 Ilya Verbin <ilya.verbin@intel.com>
2563 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
2564 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
2565 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
2566 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
2567 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
2568 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
2569 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
2570 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
2571 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
2572 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
2573 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
2574 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
2575 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
2576 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2577 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
2578 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2579 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2580 (struct cgraph_simd_clone_arg): Adjust comment.
2581 * coretypes.h (struct gomp_ordered): New forward decl.
2582 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
2583 set critical clauses to it.
2584 (gimple_build_omp_ordered): Return gomp_ordered * instead of
2585 gimple *. Add CLAUSES argument, set ordered clauses to it.
2586 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
2588 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
2589 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
2590 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
2591 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
2592 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
2593 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
2594 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
2595 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
2597 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
2598 (gomp_critical): Add clauses field.
2599 (gomp_ordered): New struct.
2600 (is_a_helper <gomp_ordered *>::test): New inline.
2601 (gimple_build_omp_critical): Add CLAUSES argument.
2602 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
2603 instead of gimple *.
2604 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
2605 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
2606 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
2607 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
2609 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
2610 (dump_gimple_omp_target): Handle enter data and exit data.
2611 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
2612 (dump_gimple_omp_critical): Print clauses.
2613 (dump_gimple_omp_ordered): New function.
2614 (dump_gimple_omp_task): Handle taskloop.
2615 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
2617 * gimple-walk.c (walk_gimple_op): Walk clauses on
2618 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
2619 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
2620 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
2621 (struct gimplify_omp_ctx): Add loop_iter_var,
2622 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
2623 and target_firstprivatize_array_bases fields.
2624 (delete_omp_context): Release loop_iter_var.
2625 (gimplify_bind_expr): Handle ORT_NONE.
2626 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
2627 ORT_COMBINED_TARGET.
2628 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
2629 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
2630 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
2631 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
2632 ctx->target_map_scalars_firstprivate.
2633 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
2634 data sharing clauses. For data sharing clause with VLA decl
2635 on omp target/target data don't add firstprivate for the pointer.
2636 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
2637 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
2638 the addition of ORT_COMBINED_TARGET.
2639 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
2640 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
2641 pointers as zero length array sections and
2642 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
2644 (omp_check_private): Handle omp_member_access_dummy_var vars.
2645 (find_decl_expr): New function.
2646 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
2647 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
2648 Handle OMP_CLAUSE_GANG separately. Handle
2649 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
2650 clauses. Diagnose linear clause on combined
2651 distribute {, parallel for} simd construct, unless it is the loop
2652 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
2653 Handle map clauses with COMPONENT_REF. Initialize
2654 ctx->target_map_scalars_firstprivate,
2655 ctx->target_firstprivatize_array_bases and
2656 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
2657 linear clause even to target region if combined. Remove
2658 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
2659 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
2660 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
2661 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
2662 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
2663 For linear clause on worksharing loop combined with parallel add
2664 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
2665 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
2666 omp_member_access_dummy_var vars. Add lastprivate clause to outer
2668 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
2669 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
2670 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
2672 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
2673 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
2674 in target body. Handle removal of struct mapping if struct is not
2675 seen in target body. Remove GOMP_MAP_STRUCT map clause on
2676 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
2677 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
2678 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
2679 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
2680 clause appear together. Handle
2681 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
2682 clause if it has map-type-modifier always. Handle
2683 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
2685 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
2686 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
2688 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
2689 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
2690 iterators in doacross loops.
2691 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
2692 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
2693 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
2694 for the addition of ORT_COMBINED_TARGET.
2695 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
2696 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
2697 and OMP_TARGET_EXIT_DATA.
2698 (gimplify_omp_ordered): New function.
2699 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
2700 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
2701 Gimplify clauses on OMP_CRITICAL.
2702 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
2703 expand_GOMP_SIMD_ORDERED_END): New functions.
2704 * internal-fn.def (GOMP_SIMD_ORDERED_START,
2705 GOMP_SIMD_ORDERED_END): New internal functions.
2706 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
2707 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
2708 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
2709 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
2710 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
2711 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
2712 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
2713 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
2714 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
2715 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
2716 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
2717 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
2718 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
2719 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
2721 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
2722 GOMP_target_data_41, adjust type.
2723 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
2724 GOMP_target_update_41, adjust type.
2725 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
2727 (struct omp_for_data): Add ordered and simd_schedule fields.
2728 (omp_member_access_dummy_var, unshare_and_remap_1,
2729 unshare_and_remap, is_taskloop_ctx): New functions.
2730 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
2731 (extract_omp_for_data): Handle taskloops and doacross loops
2732 and simd schedule modifier.
2733 (omp_adjust_chunk_size): New function.
2734 (get_ws_args_for): Use it.
2735 (lookup_sfield): Change first argument to splay_tree_key,
2736 add overload with first argument tree.
2737 (maybe_lookup_field): Likewise.
2738 (use_pointer_for_field): Handle omp_member_access_dummy_var.
2739 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
2740 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
2741 (build_outer_var_ref): Add LASTPRIVATE argument, handle
2742 taskloops and omp_member_access_dummy_var vars.
2743 (build_sender_ref): Change first argument to splay_tree_key,
2744 add overload with first argument tree.
2745 (install_var_field): For mask & 8 use &DECL_UID as key instead
2747 (fixup_child_record_type): Const qualify *.omp_data_i.
2748 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
2749 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
2750 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
2751 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
2752 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
2753 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
2754 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
2756 (add_taskreg_looptemp_clauses): New function.
2757 (scan_omp_parallel): Use it.
2758 (scan_omp_task): Likewise.
2759 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
2760 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
2761 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
2762 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
2763 sandwiched taskloop constructs. Type check
2764 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
2765 region. Diagnose depend(source) or depend(sink:...) on
2766 target constructs or task/taskloop.
2767 (handle_simd_reference): Use get_name.
2768 (lower_rec_input_clauses): Likewise. Ignore all
2769 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
2770 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
2771 before passing it to omp_clause_{default,copy}_ctor. Handle
2772 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
2773 lastprivate_firstprivate flag for linear that needs copyin and
2774 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
2775 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
2776 on taskloop lookup decl in outer context. Pass true to
2777 build_outer_var_ref lastprivate argument. Handle
2778 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
2779 outside of outer taskloop for.
2780 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
2782 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
2783 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
2784 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
2785 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
2786 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
2787 abstract origin. Handle omp_member_access_dummy_var vars.
2788 (expand_parallel_call): Use expand_omp_build_assign.
2789 (expand_task_call): Handle taskloop construct expansion. Add
2790 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
2791 integers. Add priority argument to GOMP_task* calls. Or in
2792 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
2794 (expand_omp_build_assign): Add prototype. Add AFTER
2795 argument, if true emit statements after *GSI_P and continue linking.
2796 (expand_omp_taskreg): Adjust expand_task_call caller.
2797 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
2798 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
2799 zero_iter2_bb and first_zero_iter2 arguments, handle computation
2800 of counts even for ordered loops.
2801 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
2802 (expand_omp_ordered_source, expand_omp_ordered_sink,
2803 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
2805 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
2806 clauses on worksharing loop. Handle DOACROSS loop expansion.
2807 (expand_omp_for_static_nochunk): Handle linear clauses on
2808 worksharing loop. Adjust expand_omp_for_init_counts
2810 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
2811 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
2812 expand_omp_for_init_counts callers.
2813 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
2815 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
2816 Handle doacross loops.
2817 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2818 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
2819 GOMP_target_{41,update_41,enter_exit_data} libcalls.
2820 (expand_omp): Don't expand ordered depend constructs here, record
2821 ord_stmt instead for later expand_omp_for_generic.
2822 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2823 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
2824 clause as stand-alone directive.
2825 (lower_omp_ordered_clauses): New function.
2826 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
2827 don't lower anything.
2828 (lower_omp_for_lastprivate): Use last _looptemp_ clause
2829 on taskloop for comparison.
2830 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
2831 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
2832 expansion for linear adjustments.
2833 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
2834 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
2835 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
2836 to tree * pointing to the stmt's clauses.
2837 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
2838 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
2839 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
2840 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
2841 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
2842 clauses. Always use short kind and 8-bit align shift.
2843 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
2844 (struct lower_omp_regimplify_operands_data): New type.
2845 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
2847 (lower_omp_1): Use lower_omp_regimplify_operands instead of
2848 gimple_regimplify_operands.
2849 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2850 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
2851 clause as stand-alone directive.
2852 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
2853 (simd_clone_mangle): Mangle the various linear kinds
2855 (simd_clone_adjust_argument_types): Handle
2856 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
2857 (simd_clone_init_simd_arrays): Don't do anything for uval.
2858 (simd_clone_adjust): Handle
2859 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
2860 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
2861 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
2862 * omp-low.h (omp_member_access_dummy_var): New prototype.
2863 * passes.def (pass_simduid_cleanup): Schedule another copy of the
2864 pass after all optimizations.
2865 * tree.c (omp_clause_code_name): Add entries for
2866 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2867 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
2868 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
2869 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
2870 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
2871 OMP_CLAUSE_REDUCTION 5 arguments. Handle
2872 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2873 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
2875 * tree-core.h (enum omp_clause_linear_kind): New.
2876 (struct tree_omp_clause): Change type of map_kind
2877 from unsigned char to unsigned int. Add subcode.if_modifier
2878 and subcode.linear_kind fields.
2879 (enum omp_clause_code): Add
2880 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2881 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
2882 (OMP_CLAUSE_REDUCTION): Document
2883 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
2884 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
2885 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
2886 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
2888 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
2890 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
2892 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
2893 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
2895 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
2896 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
2897 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
2898 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
2899 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
2900 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
2901 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
2902 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
2903 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
2904 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
2905 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
2906 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
2907 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
2908 * tree-inline.c (remap_gimple_stmt): Handle clauses on
2909 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
2910 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
2911 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
2912 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
2913 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
2914 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
2915 (convert_local_omp_clauses): Likewise.
2916 * tree-pretty-print.c (dump_omp_clause): Handle
2917 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
2918 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
2919 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
2920 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
2921 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
2922 GOMP_MAP_FORCE_DEALLOC. Handle
2923 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
2924 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
2925 and clauses on OMP_ORDERED and OMP_CRITICAL.
2926 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
2927 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
2928 (vectorize_loops): Adjust comments.
2929 (pass_simduid_cleanup::execute): Likewise.
2930 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
2931 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
2932 * wide-int.h (wi::gcd): New.
2934 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
2936 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
2937 (ix86_function_arg_advance): Ditto.
2938 (ix86_function_arg): Ditto.
2939 (ix86_gimplify_va_arg): Ditto.
2940 (ix86_class_max_nregs): Ditto.
2941 (inline_memory_move_cost): Ditto.
2942 (ix86_set_reg_reg_cost): Ditto.
2943 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
2945 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
2948 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
2950 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
2952 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
2953 ROUND_UP macro and UNITS_PER_WORD * 2.
2954 * config/sparc/sparc.c (sparc_compute_frame_size):
2955 Use ROUND_UP and ROUND_DOWN macros where applicable.
2956 (function_arg_record_value, function_arg_record_value_1)
2957 (function_arg_record_value_1): Ditto.
2958 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
2959 alignment to double-word.
2960 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
2961 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
2964 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
2966 * gcc/rtl.h (print_insn): Fix prototype.
2968 2015-10-13 Tom de Vries <tom@codesourcery.com>
2970 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
2971 -1. Add assert that returned entry matches phi argument.
2972 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
2973 free_stmt_vec_info_vec ...
2974 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
2977 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
2979 PR tree-optimization/67909, 67947
2980 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
2981 really skip the inner loop.
2983 2015-10-13 Jeff Law <law@redhat.com>
2985 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2986 Allow single block jump threading paths.
2988 2015-10-13 Tom de Vries <tom@codesourcery.com>
2990 PR tree-optimization/67476
2991 * doc/invoke.texi (@item parloops-schedule): New item.
2992 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
2993 * tree-parloops.c: Include params-enum.h.
2994 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
2996 2015-10-13 Tom de Vries <tom@codesourcery.com>
2998 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
2999 * params-enum.h: New file.
3000 * opts.c (handle_param): Handle case that param arg is a string.
3001 * params-list.h: Handle DEFPARAMENUM5 in params.def.
3002 * params.c (find_param): New function, factored out of ...
3003 (set_param_value): ... here.
3004 (param_string_value_p): New function.
3005 * params.h (struct param_info): Add value_names field.
3006 (find_param, param_string_value_p): Declare.
3008 2015-10-13 Tom de Vries <tom@codesourcery.com>
3010 PR tree-optimization/67476
3011 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
3013 2015-10-13 Richard Biener <rguenther@suse.de>
3015 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
3016 the data dependence vector.
3017 (vect_peeling_hash_insert): Get the peeling hash table as argument.
3018 (vect_peeling_hash_get_lowest_cost): Likewise.
3019 (vect_enhance_data_refs_alignment): Adjust.
3020 (struct _vect_peel_info, struct _vect_peel_extended_info,
3021 struct peel_info_hasher): Move from ...
3022 * tree-vectorizer.h: ... here.
3023 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
3024 (LOOP_VINFO_PEELING_HTAB): Likewise.
3025 (struct _loop_vec_info): Remove min_profitable_iters and
3026 peeling_htab members.
3027 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
3029 (destroy_loop_vec_info): Adjust.
3030 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
3031 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
3032 to estimate alias versioning cost.
3033 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
3035 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
3037 * real.h (real_isinteger): Declare.
3038 * real.c (real_isinteger): New function.
3039 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
3040 if y is an even integer.
3042 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3045 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3046 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
3047 counts when these are more informative.
3049 2015-10-12 Jeff Law <law@redhat.com>
3051 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
3052 (fsm_find_control_stmt_paths): Change name of first argument to
3053 more accurately relfect what it really is. Handle simplification
3054 of GIMPLE_COND after finding a thread path for NAME.
3055 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
3056 nontrivial conditions to be handled by FSM threader.
3057 (thread_through_normal_block): Extract the name to looup via
3058 FSM threader from COND_EXPR.
3060 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
3061 restriction that traced SSA_NAME is a user variable.
3063 2015-10-12 Tom de Vries <tom@codesourcery.com>
3065 PR tree-optimization/67476
3066 * omp-low.c (expand_omp_for_generic): Add missing phis.
3068 2015-10-12 Tom de Vries <tom@codesourcery.com>
3070 PR tree-optimization/67476
3071 * omp-low.c (expand_omp_for_generic): Handle simple latch.
3073 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
3075 * config/aarch64/aarch64-simd-builtins.def: Update builtins
3076 tables: add tbl3 and tbx4.
3077 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
3078 (aarch64_tbx4v8qi): New.
3079 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
3080 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
3081 Rewrite using builtin functions.
3082 * config/aarch64/iterators.md (UNSPEC_TBX): New.
3084 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
3086 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
3088 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
3089 Use ROUND_UP and ROUND_DOWN macros where applicable.
3090 (rs6000_darwin64_record_arg_flush): Ditto.
3091 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
3092 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
3095 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
3097 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
3098 (AARCH64_ROUND_DOWN): Ditto.
3099 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
3101 2015-10-12 Richard Biener <rguenther@suse.de>
3104 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
3105 code that analyzes IVs on each stmt but in a cheaper way avoiding
3108 2015-10-12 Nick Clifton <nickc@redhat.com>
3110 * config/msp430/msp430.c (msp430_mcu_names): Rename to
3111 msp430_mcu_data, add fields for ISA and hardware multiply
3112 support. Import latest data from the devices.csv file.
3113 (msp430_override_option): Use the data from the new array.
3114 (msp430_use_f5_series_hwmult): Likewise.
3115 (use_32bit_hwmult): Likewise.
3116 (msp430_no_hwmult): Likewise.
3117 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
3119 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
3120 not recognised then no hardware multiply support is assumed and
3121 that only the MSP430 ISA is allowed.
3123 2015-10-12 Richard Biener <rguenther@suse.de>
3125 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
3127 (vect_analyze_loop_2): ... here.
3129 2015-10-11 Jason Merrill <jason@redhat.com>
3132 * expr.c (store_field): Call store_constructor directly when
3133 storing a CONSTRUCTOR into a target smaller than its type.
3134 Guard against unsafe bitwise copy.
3136 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3138 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
3139 counts when these are more informative.
3141 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3143 * tree-profile.c (tree_profiling): Do not clear
3144 pure/const when not instrumenting.
3145 (pass tree_profile): Add dump of symtab.
3147 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3149 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
3151 (fold_addr_of_array_ref_difference): Likewise.
3153 2015-10-11 Jeff Law <law@redhat.com>
3155 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
3156 tree-ssa-threadbackward.c.
3157 (fsm_find_control_statement_thread_paths): Likewise.
3158 (thread_through_normal_block): Break out FSM bits and move them
3159 into a new function in tree-ssa-threadbackward.c. Call new function
3161 Minimize header file usage.
3162 * tree-ssa-threadbackward.h: New file.
3163 * tree-ssa-threadbackward.c: Likewise.
3164 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
3166 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
3168 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
3170 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
3172 PR rtl-optimization/67864
3173 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
3174 fallthrough edges for conditional jumps. Don't sort candidate
3175 edges if not optimizing for speed.
3177 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3179 * defaults.h (REVERSE_CONDITION): New default definition.
3180 * jump.c (reversed_comparison_code_parts): Adjust.
3182 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3184 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
3185 check HARD_FRAME_POINTER_IS_ARG_POINTER.
3187 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3189 * defaults.h (FRAME_ADDR_RTX): New default definition.
3190 * builtins.c (expand_builtin_return_addr): Adjust.
3192 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3194 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
3195 * builtins.c (expand_builtin_return_addr): Adjust.
3197 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3199 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
3200 * builtins.c (expand_builtin_return_addr): Adjust.
3201 * doc/tm.texi: Likewise.
3202 * doc/tm.texi.in: Likewise.
3203 * except.c (expand_builtin_unwind_init): Likewise.
3205 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3207 * builtins.c (expand_builtin_return_addr): Adjust.
3208 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
3210 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
3212 * tree.c (type_with_interoperable_signedness): New.
3213 (gimple_canonical_types_compatible_p): Use it.
3214 * tree.h (type_with_interoperable_signedness): Declare
3216 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
3218 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
3219 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
3220 when OEP_ADDRESS_OF is se.
3222 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
3223 Sebastian Pop <s.pop@samsung.com>
3225 * graphite-dependences.c (scop_get_dependences): Add dump of the
3226 data dependence graph.
3227 * graphite-poly.c (print_isl_union_map): New.
3228 (debug_isl_union_map): New.
3229 * graphite-poly.h (print_isl_union_map): Declare.
3230 (debug_isl_union_map): Declare.
3232 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
3233 Sebastian Pop <s.pop@samsung.com>
3235 * graphite-poly.c (print_iteration_domain): Remove verbosity.
3236 Remove OpenScop formatting.
3237 (print_iteration_domains): Same.
3238 (debug_iteration_domain): Same.
3239 (debug_iteration_domains): Same.
3242 (dump_gbb_cases): Same.
3243 (dump_gbb_conditions): Same.
3246 (print_pbb_body): Same.
3248 (print_scop_params): Same.
3249 (print_scop_context): Same.
3251 (debug_pbb_domain): Same.
3253 (debug_scop_context): Same.
3255 (debug_scop_params): Same.
3256 * graphite-poly.h: Same.
3257 * graphite.c (graphite_transform_loops): Same.
3259 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3261 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
3262 call that isn't needed.
3264 2015-10-09 Jeff Law <law@redhat.com>
3266 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
3267 rather than moving each name to the freelist individually.
3269 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
3271 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
3272 * frame-header-opt.c: New file.
3273 * config/mips/mips-proto.h (mips_register_frame_header_opt):
3275 * config/mips/mips.c (mips_compute_frame_info): Check
3276 optimize_call_stack flag.
3277 (mips_option_override): Register new frame_header_opt pass.
3278 (mips_frame_info, mips_int_mask, mips_shadow_set,
3279 machine_function): Move these types to...
3280 * config/mips/mips.h: here.
3281 (machine_function): Add does_not_use_frame_header and
3282 optimize_call_stack fields.
3283 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
3284 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
3286 * config/mips/mips.opt (mframe-header-opt): Add new option.
3288 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
3290 * config/i386/i386.c
3291 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
3292 ROUND_DOWN where applicable.
3294 2015-10-09 Jeff Law <law@redhat.com>
3296 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
3299 2015-10-09 Renlin Li <renlin.li@arm.com>
3301 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
3302 operands[0] and operands[2].
3303 (neon_vtrn<mode>_insn): Likewise.
3304 (neon_vzip<mode>_insn): Likewise.
3306 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
3308 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
3309 ((X & C2) << C1): Expand to...
3310 (X {&,^,|} C2 << C1): ...This.
3311 ((X & C2) >> C1): Expand to...
3312 (X {&,^,|} C2 >> C1): ...This.
3314 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
3317 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
3318 Adjust embedded rounding/SAE specifier position.
3319 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
3320 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
3321 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
3322 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
3323 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
3325 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
3327 2015-10-09 Martin Jambor <mjambor@suse.cz>
3329 tree-optimization/67794
3330 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
3331 between types of state,ents but accept original definitions as a
3333 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
3334 iterate over definitions.
3336 2015-10-09 James Norris <jnorris@codesourcery.com>
3338 * config/rs6000/rs6000.c (rs6000_offload_options): New.
3339 (TARGET_OFFLOAD_OPTIONS): New.
3341 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
3344 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
3347 * function.c (expand_function_end): Move return value
3348 promotion past the handling of PARALLELs and CONCATs.
3350 PR rtl-optimization/67828
3351 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
3352 (tree_may_unswitch_on): Don't unswitch on expressions
3353 involving undefined values.
3355 2015-10-09 Richard Biener <rguenther@suse.de>
3357 * genmatch.c (print_operand): Fix formatting.
3358 (dt_node::append_simplify): Warn for multiple simplifiers
3359 that match the same pattern.
3360 * match.pd (log (exp @0)): Remove duplicates.
3362 2015-10-09 Richard Biener <rguenth@suse.de>
3365 * gimple-fold.c (optabs-query.h): Include
3366 (gimple_fold_builtin_memory_op): Allow unaligned stores
3367 when movmisalign_optabs are available.
3369 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3372 * config/arm/arm.md (movmisalign<mode>): New.
3373 * config/arm/iterators.md (HSI): New.
3375 2015-10-09 Richard Biener <rguenther@suse.de>
3377 PR tree-optimization/67891
3378 * gimple-match.h (gimple_simplified_result_is_gimple_val):
3380 (gimple_resimplify1): Declare.
3381 (gimple_resimplify2): Likewise.
3382 (gimple_resimplify3): Likewise.
3383 * gimple-match-head.c (gimple_resimplify1): Export.
3384 (gimple_resimplify2): Likewise.
3385 (gimple_resimplify3): Likewise.
3386 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
3387 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3388 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
3389 to avoid creating stmts without VN info.
3391 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
3393 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
3396 2015-10-08 Jeff Law <law@redhat.com>
3398 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
3399 and release_ssa_name in two places.
3400 (gimple_stringop_fixed_value): Similarly.
3402 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
3405 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
3406 unlink_stmt_vdef and release_ssa_name_fn.
3408 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
3411 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
3413 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
3414 SSE register save area to 16 bytes only if the incoming stack
3415 boundary is no less than 16 bytes.
3417 2015-10-08 Jeff Law <law@redhat.com>
3419 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
3420 release_ssa_name. Fix typo in comment.
3422 2015-10-08 Nathan Sidwell <nathan@acm.org>
3424 * config/nvptx/nvptx.h (struct machine_function): Add comment.
3425 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
3426 may return pointer as well as in memory.
3427 (nvptx_output_return): Likewise.
3429 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
3431 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
3432 (fold_builtin_1): Update accordingly. Handle constant arguments here.
3433 * match.pd: Add rules previously handled by fold_builtin_sqrt
3434 and fold_builtin_cbrt.
3436 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
3438 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
3439 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
3440 * fold-const.h (tree_unary_nonnegative_warnv_p)
3441 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
3442 (tree_expr_nonnegative_warnv_p): Add depth parameters.
3443 * fold-const.c: Include gimple-fold.h and params.h.
3444 (tree_ssa_name_nonnegative_warnv_p): New function.
3445 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
3446 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
3447 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
3448 Add a depth parameter and increment it for recursive calls to
3449 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
3450 to handle SSA names.
3451 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
3452 (gimple_stmt_nonnegative_warnv_p): Declare.
3453 * tree-vrp.c (remove_range_assertions): Remove assert that condition
3454 cannot be proven false.
3455 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
3456 (gimple_stmt_nonnegative_warnv_p): Move to...
3457 * gimple-fold.c: ...here. Add depth parameters and pass them
3458 down to the tree routines. Accept statements that aren't
3459 assignments or calls but just return false for them.
3460 (gimple_val_nonnegative_real_p): Delete.
3461 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
3462 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
3463 Check HONOR_NANs first.
3465 2015-10-08 Martin Jambor <mjambor@suse.cz>
3467 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
3470 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
3472 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
3473 in the tail of outer-loop.
3475 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
3477 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
3480 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
3482 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
3483 "cfghooks.h", add prototypes for introduced new functions.
3484 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
3485 checks on ability of loop unswitching to tree_unswitch_single_loop;
3486 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
3487 on innermost loop check.
3488 (tree_unswitch_single_loop): Add all required checks on ability of
3489 loop unswitching under zero recursive level guard.
3490 (tree_unswitch_outer_loop): New function.
3491 (find_loop_guard): Likewise.
3492 (empty_bb_without_guard_p): Likewise.
3493 (used_outside_loop_p): Likewise.
3494 (get_vop_from_header): Likewise.
3495 (hoist_guard): Likewise.
3496 (check_exit_phi): Likewise.
3498 2015-10-08 Marek Polacek <polacek@redhat.com>
3500 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
3503 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3506 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
3507 create_tmp_var_raw instead of create_tmp_var.
3509 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
3511 * expr.c (store_expr_with_bounds): Handle aggregate moves from
3513 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
3514 to define gimple type system; compare aggregates only by size.
3516 2015-10-07 Jeff Law <law@redhat.com>
3518 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
3519 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
3520 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
3523 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3524 Sebastian Pop <s.pop@samsung.com>
3526 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
3527 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
3528 (generate_isl_schedule): Same.
3529 * graphite-optimize-isl.c (scop_get_domains): Same.
3530 (apply_schedule_map_to_scop): Same.
3531 * graphite-poly.c (print_iteration_domains): Same.
3532 (remove_gbbs_in_scop): Same.
3536 * graphite-poly.h (struct scop): Rename bbs to pbbs.
3538 * graphite-scop-detection.c (compare_bb_depths): Remove.
3539 (graphite_sort_dominated_info): Remove.
3540 (try_generate_gimple_bb): Move out of scop_detection.
3541 (all_non_dominated_preds_marked_p): Remove.
3542 (build_scop_bbs_1): Remove.
3543 (build_scop_bbs): Remove.
3544 (nb_pbbs_in_loops): Do not use SCOP_BBS.
3545 (find_scop_parameters): Same.
3546 (sese_dom_walker): Rename gather_bbs.
3547 (before_dom_children): Call try_generate_gimple_bb and collect gbb
3549 (build_scops): Call gather_bbs.
3550 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
3551 (add_conditions_to_constraints): Same.
3552 (build_scop_iteration_domain): Same.
3553 (build_scop_drs): Same.
3554 (new_pbb_from_pbb): Same.
3555 * sese.c (new_sese_info): Create bbs.
3556 * sese.h (struct sese_info_t): Add bbs.
3558 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
3560 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
3561 encoding in 64-bit mode.
3563 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
3566 * config/i386/i386.c (ix86_option_override_internal): Always use
3567 8-byte minimum stack boundary in 64-bit mode.
3568 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
3569 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
3570 Add a REG_CFA_EXPRESSION note if needed.
3571 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
3572 (ix86_handle_force_align_arg_pointer_attribute): New.
3573 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
3574 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
3575 with ix86_handle_force_align_arg_pointer_attribute.
3576 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
3578 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3579 Sebastian Pop <s.pop@samsung.com>
3581 * graphite-scop-detection.c (parameter_index_in_region): Remove
3582 use of SESE_ADD_PARAMS.
3583 (find_scop_parameters): Same.
3584 * sese.c (new_sese_info): Same.
3585 * sese.h (struct sese_info_t): Remove add_params.
3586 (SESE_ADD_PARAMS): Remove.
3588 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3589 Sebastian Pop <s.pop@samsung.com>
3591 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
3594 (copy_internal_parameters): Same.
3595 (translate_isl_ast_to_gimple): Use an sese_l.
3596 (build_iv_mapping): Same.
3597 * graphite-poly.c (new_sese): Rename new_sese_info.
3598 (free_sese): Rename free_sese_info.
3599 * graphite-poly.h (struct scop): Use an sese_info_p.
3600 (scop_set_region): Same.
3601 * graphite-scop-detection.c (struct sese_l): Moved...
3602 (get_entry_bb): Moved...
3603 (get_exit_bb): Moved...
3604 (parameter_index_in_region_1): Use an sese_info_p.
3605 (parameter_index_in_region): Same.
3606 (scan_tree_for_params): Same.
3607 (find_params_in_bb): Same.
3608 (sese_dom_walker): Use an sese_l.
3609 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
3610 (reduction_phi_p): Same.
3611 (parameter_index_in_region_1): Use an sese_info_p.
3612 (propagate_expr_outside_region): Use an sese_l.
3613 * graphite.c: Replace uses of SCOP_REGION.
3614 * sese.c (sese_record_loop): Use an sese_info_p.
3615 (build_sese_loop_nests): Same.
3616 (sese_build_liveouts_use): Same.
3617 (sese_build_liveouts_bb): Same.
3618 (sese_build_liveouts_bb): Same.
3619 (sese_bad_liveouts_use): Same.
3620 (sese_reset_debug_liveouts_bb): Same.
3621 (sese_build_liveouts): Same.
3622 (new_sese): Renamed new_sese_info.
3623 (free_sese): Renamed free_sese_info.
3624 (set_rename): Use an sese_info_p.
3625 (graphite_copy_stmts_from_block): Same.
3626 (copy_bb_and_scalar_dependences): Same.
3627 (outermost_loop_in_sese_1): Use an sese_l.
3628 (outermost_loop_in_sese): Same.
3629 (if_region_set_false_region): Use an sese_info_p.
3630 (move_sese_in_condition): Same.
3631 (scalar_evolution_in_region): Use an sese_l.
3632 * sese.h (struct sese_l): ... here.
3633 (SESE_ENTRY): Remove.
3634 (SESE_ENTRY_BB): Remove.
3635 (SESE_EXIT): Remove.
3636 (SESE_EXIT_BB): Remove.
3637 (sese_contains_loop): Use an sese_info_p.
3638 (sese_nb_params): Same.
3639 (bb_in_sese_p): Use an sese_l.
3640 (stmt_in_sese_p): Same.
3641 (defined_in_sese_p): Same.
3642 (loop_in_sese_p): Same.
3643 (sese_loop_depth): Same.
3644 (struct ifsese_s): Use an sese_info_p.
3645 (gbb_loop_at_index): Use an sese_l.
3646 (nb_common_loops): Same.
3647 (scev_analyzable_p): Same.
3649 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3651 * config/i386/i386.c (ix86_conditional_register_usage): Use
3652 CALL_USED_REGISTERS_MASK.
3653 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
3655 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3658 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
3659 * configure: Regenerated.
3661 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3664 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
3665 (ix86_set_current_function): This.
3666 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
3668 2015-10-07 Richard Biener <rguenther@suse.de>
3670 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
3671 (vinfo_for_stmt): Adjust.
3672 (set_vinfo_for_stmt): Likewise.
3673 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
3674 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
3675 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
3677 (vect_analyze_loop_1): Remove.
3678 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
3679 inner loop when vectorizing an outer loop by splitting out from ...
3680 (vect_analyze_loop_form): ... here.
3682 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3685 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
3686 Use create_tmp_var_raw instead of create_tmp_var.
3688 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
3690 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
3691 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
3692 * real.c (CACHED_FRACTION): New helper macro.
3693 (dconst_third_ptr): Use it.
3694 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
3695 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
3697 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
3699 2015-10-06 Jeff Law <law@redhat.com>
3701 PR tree-optimization/67816
3702 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
3703 from remove_jump_threads_starting_at. Accept an edge rather than
3705 * tree-ssa-threadupdate.c (removed_edges): New hash table.
3706 (remove_jump_threads_including): Note edges that get removed from
3707 the CFG for later pruning of jump threading paths including them.
3708 (thread_through_all_blocks): Remove paths which include edges that
3710 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
3711 on each outgoing edges when optimizing away a control statement.
3713 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3715 * reorg.c (emit_delay_sequence): Store list of delay slot insns
3716 in a vector instead of rtx_insn_list.
3717 (add_to_delay_list): Likewise.
3718 (delete_from_delay_slot): Likewise.
3719 (optimize_skip): Likewise.
3720 (redirect_with_delay_list_safe_p): Likewise.
3721 (check_annul_list_true_false): Likewise.
3722 (steal_delay_list_from_target): Likewise.
3723 (steal_delay_list_from_fallthrough): Likewise.
3724 (redundant_insn): Likewise.
3725 (fill_simple_delay_slots): Likewise.
3726 (fill_slots_from_thread): Likewise.
3727 (fill_eager_delay_slots): Likewise.
3728 (relax_delay_slots): Likewise.
3730 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
3732 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
3733 For -mgpopt=local, also exclude unintialized common symbols.
3734 * doc/invoke.texi (Nios II Options): Document the change.
3736 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
3738 * config/aarch64/iterators.md (vwcore): Add missing cases for
3741 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3742 Sebastian Pop <s.pop@samsung.com>
3744 * graphite-poly.c (new_scop): Initialize drs.
3745 * graphite-poly.h (struct dr_info): New.
3746 (struct scop): Add drs.
3747 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
3748 (pdr_add_memory_accesses): Same.
3749 (build_poly_dr): Same.
3750 (build_alias_set): Same.
3751 (build_scop_drs): Same.
3752 (build_pbb_drs): Remove.
3753 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
3754 * tree-data-ref.h (data_reference): Remove alias_set.
3756 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3757 Sebastian Pop <s.pop@samsung.com>
3759 * graphite-poly.c (free_data_refs_aux): Remove.
3760 (free_gimple_poly_bb): Do not call free_data_refs_aux.
3761 * graphite-poly.h (struct base_alias_pair): Remove.
3762 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
3763 base_alias_pair and dr->aux.
3764 (build_alias_set): Same.
3765 * tree-data-ref.c (create_data_ref): Initialize alias_set.
3766 * tree-data-ref.h (data_reference): Add alias_set.
3768 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3769 Sebastian Pop <s.pop@samsung.com>
3771 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
3772 Do not set PDR_BASE_OBJECT_SET.
3773 * graphite-poly.h (poly_dr): Same.
3774 (PDR_BASE_OBJECT_SET): Remove.
3775 (new_poly_dr): Update decl.
3776 * graphite-sese-to-poly.c (build_poly_dr): Update call to
3778 (write_alias_graph_to_ascii_dimacs): Remove.
3779 (write_alias_graph_to_ascii_dot): Remove.
3780 (write_alias_graph_to_ascii_ecc): Remove.
3781 (dr_same_base_object_p): Remove.
3782 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
3784 (build_base_obj_set_for_drs): Remove.
3785 (dump_alias_graphs): Remove.
3786 (build_scop_drs): Remove dead code.
3788 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
3789 Peter Bergner <bergner@vnet.ibm.com>
3792 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
3793 allow registers, but provide insns for the combiner to create for
3794 loads from memory. Separate VSX code from non-VSX code. For
3795 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
3796 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
3797 so that registers come before memory operations. Drop support from
3798 converting DFmode to TFmode, if the DFmode value is in a GPR
3800 (extenddftf2_fprs): Likewise.
3801 (extenddftf2_internal): Likewise.
3802 (extenddftf2_vsx): Likewise.
3803 (extendsftf2): In the expander, only allow registers, but provide
3804 insns for the combiner to create for stores and loads.
3806 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3808 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
3809 from the decl parameter.
3811 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
3814 * gimple-fold.c (gimple_fold_builtin): Add break after
3815 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
3817 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
3819 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
3820 to scop->isl_context.
3822 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
3824 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
3825 (output_probe_stack_range): Rotate the loop and simplify.
3826 (thumb1_expand_prologue): Tweak sorry message.
3827 * config/arm/arm.md (probe_stack): Use bare string.
3829 2015-10-06 Nick Clifton <nickc@redhat.com>
3831 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
3833 2015-10-06 Nick Clifton <nickc@redhat.com>
3835 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
3836 (ATTR_PERSIST): New constant.
3837 (msp430_data_attr): New function - verifies an attribute that only
3838 applies to variables.
3839 (msp430_attributes): Add noinit and persistent attributes.
3840 (noinit_section): New variable.
3841 (presis_section): New variable.
3842 (TARGET_ASM_INIT_SECTIONS): Define.
3843 (msp430_init_sections): New function - initialises the noinit and
3844 persist section variables.
3845 (msp430_select_section): Add support for noinit and persist
3847 (msp430_section_type_flags): Likewise.
3848 * doc/extend.texi: Document the reent, critical, wakeup, noinit
3849 and persistent attributes.
3851 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3852 Sebastian Pop <s.pop@samsung.com>
3854 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
3855 (no_violations): Remove.
3856 (subtract_commutative_associative_deps): Remove.
3857 (compute_deps): Do not call subtract_commutative_associative_deps.
3858 (transform_is_safe): Remove.
3859 (graphite_legal_transform): Remove.
3860 * graphite-poly.h (graphite_legal_transform): Remove.
3862 2015-10-05 Aditya Kumar <hiraditya@msn.com>
3864 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
3865 which are in this region are passed so gcc_assert and remove redundant
3867 * sese.c (sese_build_liveouts): Pass only those bbs which are not
3869 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
3870 gcc_assert on that and remove unnecessary computation.
3871 (sese_build_liveouts_use): Same.
3873 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3875 * graphite-dependences.c (scop_get_reads): Renamed scop->context
3876 to scop->param_context.
3877 (scop_get_must_writes): Same.
3878 (scop_get_may_writes): Same.
3879 (scop_get_original_schedule): Same.
3880 (scop_get_transformed_schedule): Same.
3881 (subtract_commutative_associative_deps): Same.
3882 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
3883 (generate_isl_context): Same.
3884 (generate_isl_schedule): Same.
3885 (scop_to_isl_ast): Same.
3886 (graphite_regenerate_ast_isl): Same.
3887 * graphite-optimize-isl.c (scop_get_domains): Same.
3888 (optimize_isl): Renamed scop->context to scop->param_context.
3889 * graphite-poly.c (new_poly_bb): Change the type of argument to
3891 (new_scop): Renamed scop->context to scop->param_context.
3893 (print_scop_context): Same.
3894 * graphite-poly.h (new_poly_dr): Change the type of argument from
3895 void* to data_reference_p.
3896 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
3897 (new_poly_bb): Change the type of argument from void* to
3899 (pbb_set_black_box): Same.
3900 (struct scop): Rename context to param_context, ctx to isl_context.
3901 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
3902 Move declarations closer to assignment.
3903 (find_params_in_bb): Same.
3904 (find_scop_parameters): Same.
3905 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
3906 Global to be used for statement IDs.
3907 (isl_id_for_pbb): Use ssa_name_version_typesize.
3908 (simple_copy_phi_p): Move declarations closer to assignment.
3909 (build_pbb_scattering_polyhedrons): Same.
3910 (build_scop_scattering): Same.
3911 (isl_id_for_ssa_name): Same.
3912 (extract_affine_name): Same.
3913 (extract_affine_int): Same.
3914 (extract_affine): Same.
3915 (set_scop_parameter_dim): Use renamed member.
3916 (build_loop_iteration_domains): Same.
3917 (add_param_constraints): Same.
3918 (build_scop_iteration_domain): Same.
3919 (pdr_add_data_dimensions): Same.
3920 (build_poly_dr): Same.
3921 (build_scop_drs): Move declarations closer to assignment.
3922 (analyze_drs_in_stmts): Same.
3923 (insert_out_of_ssa_copy): Same.
3924 (insert_out_of_ssa_copy_on_edge): Same.
3925 (propagate_expr_outside_region): Same.
3926 (rewrite_phi_out_of_ssa): Same.
3927 (rewrite_degenerate_phi): Same.
3928 (rewrite_reductions_out_of_ssa): Same.
3929 (rewrite_cross_bb_scalar_dependence): Same.
3930 (handle_scalar_deps_crossing_scop_limits): Same.
3931 (rewrite_cross_bb_scalar_deps): Same.
3932 * graphite.c (graphite_transform_loops): Use renamed member.
3934 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
3937 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
3938 create_tmp_var_raw instead of create_tmp_var.
3940 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3943 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
3944 Use create_tmp_var_raw instead of create_tmp_var.
3946 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
3949 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
3950 split for upper-bank registers when target does not support
3952 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
3953 split when target does not support AVX512VL.
3955 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
3958 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
3959 Adjust to use create_tmp_var_raw instead of create_tmp_var.
3961 2015-10-06 Nick Clifton <nickc@redhat.com>
3963 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
3966 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3968 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
3969 (case ${target}): Add znver1.
3970 * config/i386/cpuid.h(bit_CLZERO): Define.
3971 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3972 -march=native recognize znver1 processors.
3973 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3974 znver1, clzero def_and_undef.
3975 * config/i386/i386.c (struct processor_costs znver1_cost): New.
3976 (m_znver1): New definition.
3977 (m_AMD_MULTIPLE): Includes m_znver1.
3978 (processor_target_table): Add znver1 entry.
3979 (ix86_target_string) : Add clzero entry.
3980 (static const char *const cpu_names): Add znver1 entry.
3981 (ix86_option_override_internal): Add znver1 instruction sets.
3982 (PTA_CLZERO) : New definition.
3983 (ix86_option_override_internal): Handle new clzerooption.
3984 (ix86_issue_rate): Add znver1.
3985 (ix86_adjust_cost): Add znver1.
3986 (ia32_multipass_dfa_lookahead): Add znver1.
3987 (has_dispatch): Add znver1.
3988 * config/i386/i386.h (TARGET_znver1): New definition.
3989 (TARGET_CLZERO): Define.
3990 (TARGET_CLZERO_P): Define.
3991 (struct ix86_size_cost): Add TARGET_ZNVER1.
3992 (enum processor_type): Add PROCESSOR_znver1.
3993 * config/i386/i386.md (define_attr "cpu"): Add znver1.
3994 (set_attr znver1_decode): New definitions for znver1.
3995 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
3997 * config/i386/mmx.md (set_attr znver1_decode): New definitions
3999 * config/i386/sse.md (set_attr znver1_decode): Likewise.
4000 * config/i386/x86-tune.def: Add znver1 tunings.
4001 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
4002 * gcc/doc/invoke.texi: Add details about znver1
4004 2015-10-06 Richard Biener <rguenther@suse.de>
4006 PR tree-optimization/67859
4007 * tree-ssa-pre.c (create_expression_by_pieces): Properly
4008 discard not inserted stmts.
4010 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
4012 * doc/extend.texi (Template Instantiation): Reorder options and
4013 de-emphasize -frepo.
4014 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
4015 example instead of -frepo.
4017 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4020 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
4021 use create_tmp_var_raw rather than create_tmp_var.
4023 2015-10-06 Richard Biener <rguenther@suse.de>
4025 * tree-vectorizer.h (vec_info): New base class for...
4026 (_loop_vec_info): ... this and ...
4027 (_bb_vec_info): ... this.
4028 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
4029 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
4030 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
4031 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
4032 vect_destroy_datarefs): Adjust interface to take a vec_info *
4033 rather than both a loop_vec_info and a bb_vec_info argument.
4034 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
4035 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
4036 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
4037 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
4039 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
4040 (destroy_loop_vec_info, vect_analyze_loop_2,
4041 vect_is_simple_reduction_1, get_initial_def_for_induction,
4042 vect_create_epilog_for_reduction, vectorizable_reduction,
4043 vectorizable_live_operation, vect_transform_loop): Adjust.
4044 * tree-vect-patterns.c (type_conversion_p,
4045 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
4046 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
4047 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
4048 check_bool_pattern, vect_recog_bool_pattern,
4049 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
4050 * tree-vect-slp.c (vect_get_and_check_slp_defs,
4051 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
4052 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
4053 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
4054 (new_bb_vec_info): Initialize base classs.
4055 * tree-vect-stmts.c (record_stmt_cost, process_use,
4056 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
4057 vectorizable_mask_load_store, vectorizable_call,
4058 vectorizable_simd_clone_call, vectorizable_conversion,
4059 vectorizable_assignment, vectorizable_shift,
4060 vectorizable_operation, vectorizable_store,
4061 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
4062 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
4063 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
4065 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
4068 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
4069 create_tmp_var_raw rather than create_tmp_var.
4071 2015-10-05 Marek Polacek <polacek@redhat.com>
4073 * tree-ssa-loop-im.c
4074 (move_computations_dom_walker::before_dom_children): Don't set
4075 SSA_NAME_ANTI_RANGE_P.
4076 * tree-ssa-phiopt.c (value_replacement): Likewise.
4078 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4079 Sebastian Pop <s.pop@samsung.com>
4081 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
4083 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4084 Sebastian Pop <s.pop@samsung.com>
4086 * graphite-poly.c (new_gimple_poly_bb): ... here.
4087 (free_data_refs_aux): ... here.
4088 (free_gimple_poly_bb): ... here.
4089 (remove_gbbs_in_scop): ... here.
4090 (new_scop): Call new_sese.
4091 (free_scop): Call remove_gbbs_in_scop and free_sese.
4092 * graphite-poly.h (base_alias_pair): ... here.
4093 (new_gimple_poly_bb): Declare.
4094 (free_gimple_poly_bb): Declare.
4095 * graphite-scop-detection.c (parameter_index_in_region_1):
4096 (parameter_index_in_region): ... here.
4097 (scan_tree_for_params): ... here.
4098 (find_params_in_bb): ... here.
4099 (find_scop_parameters): ... here.
4100 (build_scops): Call find_scop_parameters.
4101 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
4102 (free_scops): Move...
4103 (single_pred_cond_non_loop_exit): Move...
4104 (sese_dom_walker::before_dom_children): Move...
4105 (sese_dom_walker::after_dom_children): Move...
4106 (build_poly_scop): Move...
4107 * graphite-sese-to-poly.h (base_alias_pair): Move...
4108 * graphite.c (free_scops): ... here.
4110 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4111 Sebastian Pop <s.pop@samsung.com>
4113 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
4114 (trivially_empty_bb_p): Move...
4115 (same_close_phi_node): Move...
4116 (new_gimple_poly_bb): Move...
4117 (compare_bb_depths): Move...
4118 (graphite_sort_dominated_info): Move...
4119 (remove_duplicate_close_phi): Move...
4120 (make_close_phi_nodes_unique): Move...
4121 (canonicalize_loop_closed_ssa): Move...
4122 (canonicalize_loop_closed_ssa_form): Move...
4123 (loop_ivs_can_be_represented): Move...
4124 (single_pred_cond_non_loop_exit): Move...
4125 (graphite_can_represent_init): Move...
4126 (graphite_can_represent_scev): Move...
4127 (stmt_has_simple_data_refs_p): Move...
4128 (stmt_has_side_effects): Move...
4129 (graphite_can_represent_stmt): Move...
4130 (scop_detection): ... here.
4131 (sese_dom_walker): ... and here.
4132 (build_scops): Call all moved functions.
4133 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
4134 (all_non_dominated_preds_marked_p): Move...
4135 (build_scop_bbs_1): Move...
4136 (build_scop_bbs): Move...
4137 (set_scop_parameter_dim): Move...
4138 (nb_pbbs_in_loops): Move...
4139 (build_poly_scop): Do not call all the moved functions.
4141 2015-10-05 Martin Jambor <mjambor@suse.cz>
4142 Jan Hubicka <hubicka@ucw.cz>
4144 * ipa-cp.c (ipcp_alignment_lattice): New type.
4145 (ipcp_param_lattices): Use the above to represent alignment.
4146 (ipcp_alignment_lattice::print): New function.
4147 (print_all_lattices): Use it to print alignment information.
4148 (ipcp_alignment_lattice::top_p): New function.
4149 (ipcp_alignment_lattice::bottom_p): Likewise.
4150 (ipcp_alignment_lattice::set_to_bottom): Likewise.
4151 (ipcp_alignment_lattice::meet_with_1): Likewise.
4152 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
4153 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
4154 (initialize_node_lattices): Likewise.
4155 (propagate_alignment_accross_jump_function): Work with the new class
4156 for alignment lattices.
4157 (propagate_constants_accross_call): Pass only the alignment lattice to
4158 propagate_alignment_accross_jump_function.
4159 (ipcp_store_alignment_results): Work with the new class for alignment
4162 2015-10-05 Marek Polacek <polacek@redhat.com>
4164 PR tree-optimization/67821
4165 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
4167 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
4170 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
4172 (mkoffload_cleanup): ... this. Adjust all users.
4173 (maybe_unlink): Look at save_temps and verbose flags instead of
4175 (main): Parse "-save-temps" flag.
4176 (generate_target_descr_file, generate_target_offloadend_file)
4177 (generate_host_descr_file, prepare_target_image): Pass it on.
4178 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
4179 (mkoffload_cleanup): New function.
4180 (maybe_unlink): Look at save_temps and verbose flags instead of
4182 (main): Instead of calling utils_cleanup, register atexit handler
4183 for mkoffload_cleanup.
4184 (main): Parse "-save-temps" flag.
4185 (compile_native, main): Pass it on.
4186 * lto-wrapper.c (compile_offload_image): Likewise.
4188 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4190 * gimple.h (gimple_op_ptr): Require a non const gimple *.
4191 (gimple_assign_lhs_ptr): Likewise.
4192 (gimple_assign_rhs1_ptr): Likewise.
4193 (gimple_assign_rhs2_ptr): Likewise.
4194 (gimple_assign_rhs3_ptr): Likewise.
4195 (gimple_call_lhs_ptr): Likewise.
4196 (gimple_call_fn_ptr): Likewise.
4197 (gimple_call_chain_ptr): Likewise.
4198 (gimple_call_arg_ptr): Likewise.
4199 (gimple_cond_lhs_ptr): Likewise.
4200 (gimple_cond_rhs_ptr): Likewise.
4201 (gimple_switch_index_ptr): Likewise.
4202 (gimple_return_retval_ptr): Likewise.
4204 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4206 * gimple.h (gimple_asm_input_op_ptr): Remove.
4207 (gimple_asm_output_op_ptr): Likewise.
4209 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4211 * gimple.h (gimple_location_ptr): Remove.
4212 * tree-vrp.c (check_all_array_refs): Adjust.
4214 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4216 * tree-ssa-operands.c (build_uses): store tree * instead of
4218 (finalize_ssa_uses): Adjust.
4219 (append_use): Likewise.
4220 (verify_ssa_operands): Likewise.
4222 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4224 * real.h (build_real_truncate): Declare.
4225 * tree.c (build_real_truncate): New function.
4226 (strip_float_extensions): Use it.
4227 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
4228 (fold_builtin_hypot, fold_builtin_pow): Likewise.
4229 * match.pd: Likewise.
4231 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
4232 Jiong Wang <jiong.wang@arm.com>
4234 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
4236 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4238 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
4239 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
4240 (aarch64_print_operand, aarch64_float_const_representable_p)
4241 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
4242 instead of REAL_VALUE_FROM_CONST_DOUBLE.
4243 * config/arc/arc.c (arc_print_operand): Likewise.
4244 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
4245 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
4246 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
4248 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
4249 (consttable_16): Likewise.
4250 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
4251 * config/avr/avr.c (avr_print_operand): Likewise.
4252 * config/bfin/bfin.md: Likewise (in a define_split).
4253 * config/c6x/c6x.md: Likewise (in a define_split).
4254 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
4255 (cr16_print_operand): Likewise.
4256 * config/cris/cris.c (cris_print_operand): Likewise.
4257 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
4258 * config/fr30/fr30.c (fr30_print_operand): Likewise.
4259 (fr30_const_double_is_zero): Likewise.
4260 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
4261 * config/frv/frv.md: Likewise (in a define_split).
4262 * config/frv/predicates.md (int_2word_operand): Likewise.
4263 * config/h8300/h8300.c (h8300_print_operand): Likewise.
4264 * config/i386/i386.c (standard_80387_constant_p): Likewise.
4265 (ix86_print_operand, ix86_split_to_parts): Likewise.
4266 * config/i386/i386.md: Likewise (in a define_split).
4267 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
4268 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
4269 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
4270 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
4271 (print_operand): Likewise.
4272 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
4273 * config/mep/mep.md: Likewise (in define_split).
4274 * config/microblaze/microblaze.c (microblaze_const_double_ok)
4275 (print_operand): Likewise.
4276 * config/mips/mips.md (consttable_float): Likewise.
4277 * config/mmix/mmix.c (mmix_intval): Likewise.
4278 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
4279 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
4280 * config/pa/pa.c (pa_singlemove_string): Likewise.
4281 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
4282 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
4283 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
4284 (output_toc): Likewise.
4285 * config/rs6000/rs6000.md: Likewise (in define_splits).
4286 * config/rx/rx.c (rx_print_operand): Likewise.
4287 * config/s390/s390.c (s390_output_pool_entry): Likewise.
4288 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
4289 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
4290 (and also in define_splits).
4291 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
4292 (fp_high_losum_p): Likewise.
4293 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
4294 (*movsf_high): Likewise.
4295 * config/spu/spu.c (const_double_to_hwint): Likewise.
4296 * config/v850/v850.c (const_double_split): Likewise.
4297 * config/vax/vax.c (vax_float_literal): Likewise.
4298 * config/visium/visium.c (visium_expand_copysign): Likewise.
4299 * config/visium/visium.md: Likewise (in define_split).
4300 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
4301 * config/xtensa/xtensa.c (print_operand): Likewise.
4302 (xtensa_output_literal): Likewise.
4303 * cprop.c (implicit_set_cond_p): Likewise.
4304 * dwarf2out.c (insert_float): Likewise.
4305 * expmed.c (expand_mult, make_tree): Likewise.
4306 * expr.c (compress_float_constant): Likewise.
4307 * rtlanal.c (split_double): Likewise.
4308 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
4309 (simplify_const_unary_operation, simplify_binary_operation_1)
4310 (simplify_const_binary_operation): Likewise.
4311 (simplify_const_relational_operation): Likewise.
4312 * varasm.c (output_constant_pool_2): Likewise.
4314 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4316 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
4317 instead of CONST_DOUBLE_FROM_REAL_VALUE.
4318 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
4319 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
4320 instead of CONST_DOUBLE_FROM_REAL_VALUE.
4321 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
4322 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
4323 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
4324 (ix86_emit_swsqrtsf): Likewise.
4325 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
4326 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
4327 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4328 * config/pa/pa.c (pa_expand_builtin): Likewise.
4329 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
4330 (rs6000_scale_v2df): Likewise.
4331 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
4332 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
4333 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
4334 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
4335 (vec_ctul): Likewise.
4336 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
4337 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
4338 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
4339 * cse.c (fold_rtx): Likewise.
4340 * emit-rtl.c (immed_double_const): Likewise (in comments).
4341 (init_emit_once): Likewise.
4342 * expr.c (compress_float_constant, expand_expr_real_1)
4343 (const_vector_from_tree): Likewise.
4344 * optabs.c (expand_float, expand_fix): Likewise.
4345 * reg-stack.c (reg_to_stack): Likewise.
4346 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
4347 (simplify_const_unary_operation, simplify_binary_operation_1)
4348 (simplify_const_binary_operation, simplify_relational_operation)
4349 (simplify_immed_subreg): Likewise.
4351 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4353 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
4354 * doc/tm.texi: Regenerate.
4355 * real.h (REAL_ARITHMETIC): Delete.
4356 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
4357 (ix86_expand_round_sse4): Use real_arithmetic instead of
4359 * config/i386/sse.md (round<mode>2): Likewise.
4360 * rtl.h (rtx_to_tree_code): Likewise (in comment).
4361 * explow.c (rtx_to_tree_code): Likewise (in comment).
4362 * match.pd: Likewise.
4363 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4364 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
4365 (expand_pow_as_sqrts): Likewise.
4366 * tree-pretty-print.c (dump_generic_node): Remove code that
4367 was conditional on REAL_ARITHMETIC being undefined.
4369 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4371 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
4372 * doc/tm.texi: Regenerate.
4373 * real.h (real_less): Declare.
4374 (REAL_VALUES_LESS): Delete.
4375 * real.c (real_less): New function.
4376 (real_compare): Use it.
4377 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
4378 of REAL_VALUES_LESS.
4379 * config/microblaze/microblaze.c (microblaze_const_double_ok):
4381 * fold-const.c (fold_convert_const_int_from_real): Likewise.
4382 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4383 (simplify_const_relational_operation): Likewise.
4384 * tree-call-cdce.c (check_pow): Likewise.
4385 (gen_conditions_for_pow_cst_base): Likewise.
4387 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4389 * real.h (REAL_VALUES_IDENTICAL): Delete.
4390 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
4391 instead of REAL_VALUES_IDENTICAL.
4392 * fold-const.c (operand_equal_p): Likewise.
4393 * ipa-icf.c (sem_variable::equals): Likewise.
4394 * tree-complex.c (some_nonzerop): Likewise.
4395 (expand_complex_multiplication): Likewise.
4396 * tree.c (simple_cst_equal): Likewise.
4397 * varasm.c (compare_constant): Likewise.
4399 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4401 * real.h (real_equal): Declare.
4402 (REAL_VALUES_EQUAL): Delete.
4403 * real.c (real_equal): New function.
4404 (real_compare): Use it.
4405 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
4406 * doc/tm.texi: Regenerate.
4407 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
4408 real_equal instead of REAL_VALUES_EQUAL.
4409 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
4410 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
4411 (fp_const_from_val): Likewise.
4412 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
4413 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
4414 (floating_exact_log2): Likewise.
4415 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
4416 * config/vax/vax.c (vax_float_literal): Likewise.
4417 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
4418 * cprop.c (implicit_set_cond_p): Likewise.
4419 * expmed.c (expand_mult): Likewise.
4420 * fold-const.c (const_binop): Likewise.
4421 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4422 (simplify_const_binary_operation): Likewise.
4423 (simplify_const_relational_operation): Likewise.
4424 * tree-call-cdce.c (check_pow): Likewise.
4425 (gen_conditions_for_pow_cst_base): Likewise.
4426 * tree-inline.c (estimate_num_insns): Likewise.
4427 * tree-ssa-dom.c (record_equality): Likewise.
4428 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
4429 (gimple_expand_builtin_pow): Likewise.
4430 (pass_optimize_widening_mul::execute): Likewise.
4431 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4432 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
4433 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
4435 2015-10-05 Richard Biener <rguenther@suse.de>
4438 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
4439 consider loop header PHI defs as IVs.
4441 2015-10-05 Richard Biener <rguenther@suse.de>
4443 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
4445 (create_expression_by_pieces): ... here and build GIMPLE
4446 calls directly. Use gimple_build API and avoid force_gimple_operand.
4447 (insert_into_preds_of_block): Simplify.
4448 (do_regular_insertion): Add comment.
4450 2015-10-04 Jason Merrill <jason@redhat.com>
4452 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
4454 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
4456 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
4457 check for general register.
4458 (ix86_emit_save_regs): Ditto.
4459 (ix86_emit_save_regs_using_mov): Ditto.
4460 (ix86_emit_restore_regs_using_pop): Ditto.
4461 (ix86_emit_restore_regs_using_mov): Ditto.
4463 2015-10-03 Marek Polacek <polacek@redhat.com>
4465 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
4466 (insn-dfatab.o): Likewise.
4468 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
4470 * config.gcc (xtensa*-*-uclinux*): New configuration.
4471 * config/xtensa/uclinux.h: New file.
4472 * config/xtensa/uclinux.opt: New file.
4474 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
4476 * doc/cpp.texi (Standard Predefined Macros): Document value of
4477 __cplusplus for C++14.
4479 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
4481 * gcc.c (process_command): Use spec_machine rather than
4482 spec_host_machine to build tooldir_prefix2.
4484 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4485 Bernd Schmidt <bernds@codesourcery.com>
4487 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
4488 (Token, Stmt): Remove structs.
4489 (decls, vars, fns): Remove variables.
4490 (alloc_comment, append_stmt, is_keyword): Remove macros.
4491 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
4492 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
4493 (parse_init, parse_file): Remove functions.
4494 (read_file): Accept a pointer to a length and store into it.
4495 (process): Don't try to parse the input file, just write it out as
4496 a string, but looking for maps. Also write out the length.
4497 (main): Don't use "-S" to compile PTX code.
4499 2015-10-02 Jeff Law <law@redhat.com>
4501 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
4504 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4507 * config/nvptx/mkoffload.c (main): Scan the argument vector for
4508 -fopenmp, and skip generating an offloading image if specified.
4510 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
4512 * system.h (ROUND_UP): New macro definition.
4513 (ROUND_DOWN): Ditto.
4514 * ggc-page.c (ROUND_UP): Remove local macro definition.
4515 (PAGE_ALIGN): Implement using ROUND_UP macro.
4517 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
4518 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
4520 (ix86_compute_frame_layout): Ditto.
4521 (ix86_expand_prologue): Ditto.
4522 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
4523 to round down values.
4524 (expand_set_or_movmem_via_rep): Ditto.
4526 2015-10-02 Marek Polacek <polacek@redhat.com>
4528 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
4530 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
4532 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
4533 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
4534 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
4535 (free_gimple_bb): Renamed free_gimple_poly_bb.
4536 (try_generate_gimple_bb): Hoist loop invariant code.
4537 (analyze_drs_in_stmts): Same.
4538 (build_scop_drs): Call renamed functions.
4539 (new_pbb_from_pbb): Same.
4540 (scop_ivs_can_be_represented): Delete as functionality now moved to
4541 graphite-scop-detection.c
4542 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
4544 2015-10-02 Aditya Kumar <hiraditya@msn.com>
4546 * graphite-scop-detection.c (stmt_has_side_effects): New function
4547 outlined from stmt_simple_for_scop_p.
4548 (graphite_can_represent_stmt): Same.
4549 (stmt_simple_for_scop_p): Moved code out of this function for better
4552 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4554 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
4556 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
4558 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4560 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
4562 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
4564 PR rtl-optimization/67756
4565 * lra-constraints.c (match_reload): Add a new parameter. Use it
4566 for creating a pseudo with the same value.
4567 (curr_insn_transform): Pass a new argument to match_reload.
4569 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4571 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
4572 (expand_vec_perm_even_odd_1): Handle V64QImode.
4573 (ix86_expand_vec_perm_const_1): Try expansion with
4574 expand_vec_perm_even_odd_trunc as well.
4575 * config/i386/sse.md (VI124_AVX512F): Rename to ...
4576 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
4578 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
4579 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
4581 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
4582 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
4583 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
4584 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
4585 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
4586 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
4588 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4590 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
4591 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
4593 2015-10-02 Jason Merrill <jason@redhat.com>
4596 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
4597 (diagnose_tm_1_op): Also diagnose volatile accesses in
4598 transaction_safe function.
4600 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
4602 * system.h (malloc.h): Don't include obsolete header.
4604 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4606 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
4607 (TLS_SECTION_ASM_FLAG): Delete.
4609 2015-10-02 Marek Polacek <polacek@redhat.com>
4612 * doc/invoke.texi: Document -Wduplicated-cond.
4613 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
4614 (insn-dfatab.o): Likewise.
4615 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
4618 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
4620 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
4623 2015-10-02 Renlin Li <renlin.li@arm.com>
4625 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
4627 2015-10-02 Renlin Li <renlin.li@arm.com>
4630 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
4632 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4634 PR rtl-optimization/67786
4635 PR rtl-optimization/67787
4636 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
4637 it modifies a reg used in the condition calculation.
4639 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
4641 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
4642 alternatives for reads from memory and moves from general-purpose
4644 (*aarch64_combinez_be<mode>): Likewise.
4646 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
4649 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
4650 selectany within this function without need to keep attribute.
4651 (i386_pe_encode_section_info): Remove selectany-code.
4653 2015-10-02 Richard Biener <rguenther@suse.de>
4655 * tree-ssa-sccvn.c (has_VN_INFO): New function.
4656 (free_scc_vn): Use it.
4657 (visit_use): Remove dead code and refactor to use gassign
4658 and use less indentation.
4660 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4664 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
4665 (rs6000_cannot_copy_insn_p): New function.
4666 * config/rs6000/rs6000.md (cannot_copy): New attribute.
4667 (load_toc_v4_PIC_1_normal): Set cannot_copy.
4668 (load_toc_v4_PIC_1_476): Ditto.
4670 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
4672 * graphite-scop-detection.c (struct sese_l): New conversion constructor
4673 so that this type can be pushed into a vec.
4674 (class scop_builder): use sese_l to collect scops.
4675 (get_scops): New getter function.
4676 (remove_intersecting_scops): Use sese_l instead of scops_p.
4680 (remove_subscops): Same.
4681 (build_scops): Add scops to vec<scops_p> once all the scops have been
4684 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
4686 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4687 Renamed type from gimple_bb_p to gimple_poly_bb_p.
4688 (translate_isl_ast_node_user): Same.
4689 * graphite-poly.c (new_poly_bb): Same.
4690 * graphite-poly.h (gbb_from_bb): Same.
4692 * graphite-sese-to-poly.c (new_gimple_bb):
4693 gimple_bb_p -> gimple_poly_bb_p
4694 (build_scop_scattering): Same.
4695 (find_params_in_bb): Same.
4696 (add_conditions_to_domain): Same.
4697 (sese_dom_walker::before_dom_children): Same.
4698 (analyze_drs_in_stmts): Same.
4699 (new_pbb_from_pbb): Same.
4700 (free_data_refs_aux): New pointer to type base_alias_pair.
4701 * graphite-sese-to-poly.h: Same.
4702 * sese.c (if_region_set_false_region): Fixed Indentation.
4703 (move_sese_in_condition): Same.
4705 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4706 Aditya Kumar <aditya.k7@samsung.com>
4708 PR tree-optimization/66980
4709 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
4710 when data reference analysis has failed.
4712 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4713 Aditya Kumar <aditya.k7@samsung.com>
4715 PR tree-optimization/67754
4716 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
4717 scev analysis on the same loop nest as analyze_drs_in_stmts.
4718 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
4720 (try_generate_gimple_bb): Call outermost_loop_in_sese.
4721 (analyze_drs_in_stmts): Same.
4722 * sese.c (outermost_loop_in_sese): ...here.
4724 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4725 Aditya Kumar <aditya.k7@samsung.com>
4727 PR tree-optimization/67754
4728 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
4729 recursion on the inner loops.
4731 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4733 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
4734 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
4735 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
4736 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
4737 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
4739 2015-10-01 Marek Polacek <polacek@redhat.com>
4742 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
4743 create_tmp_var_raw rather than create_tmp_var.
4745 2015-10-01 Marek Polacek <polacek@redhat.com>
4747 PR tree-optimization/67769
4748 * tree-ssa-phiopt.c (conditional_replacement): Call
4749 reset_flow_sensitive_info_in_bb.
4750 (minmax_replacement): Likewise.
4751 (abs_replacement): Likewise.
4753 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
4755 * builtins.c: Don't include gomp-constants.h.
4756 (fold_builtin_1): Don't fold acc_on_device here.
4757 * gimple-fold.c: Include gomp-constants.h.
4758 (gimple_fold_builtin_acc_on_device): New.
4759 (gimple_fold_builtin): Call it.
4761 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
4763 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
4764 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
4766 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
4768 * config/arm/aarch-common-protos.h
4769 (aarch_accumulator_forwarding): New.
4770 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
4771 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
4772 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
4773 * config/arm/cortex-a53.md: Rewrite.
4775 2015-10-01 Richard Biener <rguenther@suse.de>
4777 * gimple-match.h (mprts_hook): Declare.
4778 * gimple-match.head.c (mprts_hook): Define.
4779 (maybe_push_res_to_seq): Use new hook.
4780 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4781 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
4782 (vn_ssa_aux::has_constants): Remove.
4783 * tree-ssa-sccvn.c: Include gimple-match.h.
4784 (VN_INFO_GET): Assert we don't re-use SSA names.
4785 (vn_get_expr_for): Remove.
4786 (expr_has_constants): Likewise.
4787 (stmt_has_constants): Likewise.
4788 (simplify_binary_expression): Likewise.
4789 (simplify_unary_expression): Likewise.
4790 (vn_lookup_simplify_result): New hook.
4791 (visit_copy): Adjust.
4792 (visit_reference_op_call): Likewise.
4793 (visit_phi): Likewise.
4794 (visit_use): Likewise.
4795 (process_scc): Likewise.
4796 (init_scc_vn): Likewise.
4797 (visit_reference_op_load): Likewise. Use match-and-simplify and
4798 a gimple seq for inserted expressions.
4799 (try_to_simplify): Remove GENERIC stmt combining code.
4800 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
4801 * tree-ssa-pre.c (eliminate_insert): Adjust.
4802 (eliminate_dom_walker::before_dom_children): Likewise.
4804 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4806 * doc/invoke.texi (Optimization Options): Add
4807 -freorder-blocks-algorithm=.
4808 (Optimize Options) <-O>: Add -freorder-blocks.
4809 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
4810 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
4811 <-freorder-blocks>: Also enabled at levels -O and -Os.
4812 <-freorder-blocks-algorithm=>: Document new option.
4814 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4816 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
4817 with flag_reorder_blocks_algorithm.
4818 * common.opt (freorder-blocks-algorithm=): New flag.
4819 (reorder_blocks_algorithm): New enum.
4820 * flag-types.h (reorder_blocks_algorithm): New enum.
4821 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
4822 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
4824 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4826 * bb-reorder.c: Add intro comment.
4827 (reorder_basic_blocks_software_trace_cache): Print a header to
4829 (edge_order): New function.
4830 (reorder_basic_blocks_simple): New function.
4831 (reorder_basic_blocks): Choose between the STC and the simple
4832 algorithms (always choose the former).
4834 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4836 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
4837 function, factored out from ...
4838 (reorder_basic_blocks): ... here.
4840 2015-10-01 Tom de Vries <tom@codesourcery.com>
4842 * tree-cfg.c (dump_function_to_file): Dump function attributes using
4843 __attribute__(()) string. Move dumping of function attributes to before
4846 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
4849 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4850 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
4851 based on gold linker version.
4852 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
4853 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
4854 * configure, config.in: Regenerate.
4856 2015-10-01 Alan Modra <amodra@gmail.com>
4858 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
4859 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
4860 (rs6000_output_mi_thunk): Likewise.
4862 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4864 * config/nvptx/mkoffload.c (process): Change offload data format.
4866 2015-09-30 Jeff Law <law@redhat.com>
4868 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
4869 with constant conditions.
4870 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
4871 (remove_ctrl_stmt_and_useless_edges): No longer static.
4872 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
4873 (remove_ctrl_stmt_and_useless_edges): Likewise.
4875 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4876 Cesar Philippidis <cesar@codesourcery.com>
4878 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
4879 (TARGET_GOACC_VALIDATE_DIMS): Override.
4880 * target.def (TARGET_GOACC): New target hook prefix.
4881 (validate_dims): New hook.
4882 * targhooks.h (default_goacc_validate_dims): New.
4883 * omp-low.c (oacc_validate_dims): New.
4884 (execute_oacc_device_lower): New.
4885 (default_goacc_validate_dims): New.
4886 (pass_data_oacc_device_lower): New.
4887 (pass_oacc_device_lower): New pass.
4888 (make_pass_oacc_device_lower): New.
4889 * tree-pass.h (make_pass_oacc_device_lower): Declare.
4890 * passes.def (pass_oacc_device_lower): Add it.
4891 * doc/tm.texi: Rebuilt.
4892 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
4893 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
4895 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4897 PR rtl-optimization/67037
4898 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
4900 2015-09-30 Bernd Schmidt <bernds@redhat.com>
4902 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
4903 * passes.c: Include tree-ssanames.h.
4904 (execute_function_todo): Flush the pending free SSA_NAMEs after
4905 eliminating unreachable basic blocks.
4906 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
4907 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
4908 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
4909 (flush_ssanames_freelist): New function.
4910 (release_ssaname_fn): Put released names on the queue.
4911 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
4912 * tree-ssanames.h (flush_ssanames_freelist): Declare.
4914 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4916 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
4917 (generate_target_descr_file, generate_target_offloadend_file)
4918 (generate_host_descr_file, prepare_target_image): Pass it on.
4919 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
4920 (compile_native, main): Pass it on.
4921 * lto-wrapper.c (compile_offload_image): Likewise.
4923 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4924 Ilya Verbin <ilya.verbin@intel.com>
4925 Andrey Turetskiy <andrey.turetskiy@intel.com>
4927 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
4928 (prepare_target_image, main): Refactor argv building to use
4931 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4933 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
4934 * config/spu/spu.c (spu_expand_atomic_op): New function.
4935 * config/spu/spu.md (AINT): New mode iterator.
4936 (ATOMIC): New code iterator.
4937 (atomic_name, atomic_pred): New code predicates.
4938 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
4939 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
4940 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
4941 "atomic_<atomic_name>_fetch<mode>"): Likewise.
4943 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
4945 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
4947 (scalar_chain::convert_reg): Likewise.
4949 2015-09-30 Richard Biener <rguenther@suse.de>
4951 * builtins.c: Add comment that no new simplifications should
4954 2015-09-30 Marek Polacek <polacek@redhat.com>
4956 PR tree-optimization/67690
4957 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
4958 reset_flow_sensitive_info_in_bb.
4959 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
4960 * tree-ssanames.c: Include "gimple-iterator.h".
4961 (reset_flow_sensitive_info_in_bb): New function.
4962 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
4964 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4966 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
4967 variable, replacing it with...
4968 (offload_abi): ... this new variable. Adjust all users.
4969 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
4971 2015-09-30 Matthias Klose <doko@ubuntu.com>
4973 * configure.ac: Remove extraneous ;;.
4974 * configure: Regenerate.
4976 2015-09-29 James Bowman <james.bowman@ftdichip.com>
4978 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
4979 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
4980 predicate, disallow register for operand 2.
4982 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
4984 * graphite-dependences.c (scop_get_dependences): Moved in down
4985 in order to be visible to its caller.
4986 * graphite-poly.h: Removed compute_deps, and extend_schedule.
4988 2015-09-29 Sebastian Pop <s.pop@samsung.com>
4989 Aditya Kumar <aditya.k7@samsung.com>
4991 PR tree-optimization/67754
4992 * graphite-optimize-isl.c (optimize_isl): Call
4993 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
4995 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4997 * builtins.c (expand_builtin_acc_on_device): Delete.
4998 (expand_builtin): Don't call it.
4999 (fold_builtin_1): Fold acc_on_device.
5001 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
5003 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
5004 (ix86_nsaved_sseregs): Likewise.
5006 2015-09-29 Jeff Law <law@redhat.com>
5008 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
5009 computation of unused value.
5011 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
5012 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
5013 inline macro expansion.
5015 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
5017 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
5018 (gen_shl_sext): Likewise.
5019 * config/sh/sh.md (divsi3): Likewise.
5020 (imm->ext_dest_operand splitter): Likewise.
5022 2015-09-29 Sebastian Pop <s.pop@samsung.com>
5023 Aditya Kumar <aditya.k7@samsung.com>
5025 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
5026 (nb_data_writes_in_bb): Remove.
5027 (split_pbb): Remove.
5028 (split_reduction_stmt): Remove.
5029 (is_reduction_operation_p): Remove.
5030 (phi_contains_arg): Remove.
5031 (follow_ssa_with_commutative_ops): Remove.
5032 (detect_commutative_reduction_arg): Remove.
5033 (detect_commutative_reduction_assign): Remove.
5034 (follow_inital_value_to_phi): Remove.
5035 (edge_initial_value_for_loop_phi): Remove.
5036 (initial_value_for_loop_phi): Remove.
5037 (used_outside_reduction): Remove.
5038 (detect_commutative_reduction): Remove.
5039 (translate_scalar_reduction_to_array_for_stmt): Remove.
5040 (remove_phi): Remove.
5041 (dr_indices_valid_in_loop): Remove.
5042 (close_phi_written_to_memory): Remove.
5043 (translate_scalar_reduction_to_array): Remove.
5044 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
5045 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
5046 (rewrite_commutative_reductions_out_of_ssa): Remove.
5047 (build_poly_scop): Remove call to
5048 rewrite_commutative_reductions_out_of_ssa.
5050 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
5052 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
5053 Add new insn types for vector load and store pairs.
5054 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
5055 types "neon_ldp{,_q}".
5056 * config/arm/cortex-a57.md (neon_load_c): Add insn types
5058 (neon_store_complex): Add insn types "neon_stp{,_q}".
5059 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
5062 2015-09-29 Jeff Law <law@redhat.com>
5064 * config/rx/constraints.md (Int08): Fix undefined left shift
5066 (Sint08, Sint16, Sint24): Likewise.
5067 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5069 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
5072 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
5073 left shift behaviour.
5074 * config/msp430/constraints.md ('L' constraint): Similarly.
5075 ('Ys' constraint): Similarly.
5077 2015-09-29 Richard Biener <rguenther@suse.de>
5079 PR tree-optimization/67170
5080 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
5081 the translate function pointer parameter to get the
5082 bool whether to disambiguate only by reference.
5083 (walk_non_aliased_vuses): Likewise.
5084 * tree-ssa-alias.c (maybe_skip_until): Adjust.
5085 (get_continuation_for_phi_1): Likewise.
5086 (get_continuation_for_phi): Likewise.
5087 (walk_non_aliased_vuses): Likewise.
5088 * tree-ssa-sccvn.c (const_parms): New bitmap.
5089 (vn_reference_lookup_3): Adjust for interface change.
5090 Disambiguate parameters pointing to readonly memory.
5091 (free_scc_vn): Free const_parms.
5092 (run_scc_vn): Initialize const_parms from a fn spec attribute.
5094 2015-09-29 Richard Biener <rguenther@suse.de>
5096 PR tree-optimization/67741
5097 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
5098 builtin calls with correct signature.
5100 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
5103 * config/i386/i386.c: Include dbgcnt.h.
5104 (has_non_address_hard_reg): New.
5105 (convertible_comparison_p): New.
5106 (scalar_to_vector_candidate_p): New.
5107 (remove_non_convertible_regs): New.
5108 (scalar_chain): New.
5109 (scalar_chain::scalar_chain): New.
5110 (scalar_chain::~scalar_chain): New.
5111 (scalar_chain::add_to_queue): New.
5112 (scalar_chain::mark_dual_mode_def): New.
5113 (scalar_chain::analyze_register_chain): New.
5114 (scalar_chain::add_insn): New.
5115 (scalar_chain::build): New.
5116 (scalar_chain::compute_convert_gain): New.
5117 (scalar_chain::replace_with_subreg): New.
5118 (scalar_chain::replace_with_subreg_in_insn): New.
5119 (scalar_chain::emit_conversion_insns): New.
5120 (scalar_chain::make_vector_copies): New.
5121 (scalar_chain::convert_reg): New.
5122 (scalar_chain::convert_op): New.
5123 (scalar_chain::convert_insn): New.
5124 (scalar_chain::convert): New.
5125 (convert_scalars_to_vector): New.
5126 (pass_data_stv): New.
5128 (make_pass_stv): New.
5129 (ix86_option_override): Created and register stv pass.
5130 (flag_opts): Add -mstv.
5131 (ix86_option_override_internal): Likewise.
5132 * config/i386/i386.md (SWIM1248x): New.
5133 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
5134 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
5135 (*anddi3_doubleword): New.
5136 (*zext<mode>_doubleword): New.
5137 (*zextsi_doubleword): New.
5138 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
5139 (*<code>di3_doubleword): New.
5140 * config/i386/i386.opt (mstv): New.
5141 * dbgcnt.def (stv_conversion): New.
5143 2015-09-29 Tom de Vries <tom@codesourcery.com>
5145 * tree-cfg.c (dump_function_to_file): Dump function attributes.
5147 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
5150 * config/sh/sh.c (sh_override_options_after_change): New.
5151 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5152 (sh_option_override): Move align_loops, align_jumps and
5153 align_functions handling into sh_override_options_after_change.
5155 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5157 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
5158 (nvptx_record_offload_symbol): Record function execution geometry.
5159 * config/nvptx/mkoffload.c (process): Include launch geometry in
5161 * omp-low.c (oacc_launch_pack): New.
5162 (replace_oacc_fn_attrib): New.
5163 (set_oacc_fn_attrib): New.
5164 (get_oacc_fn_attrib): New.
5165 (expand_omp_target): Create keyed varargs for GOACC_parallel call
5167 * omp-low.h (get_oacc_fn_attrib): Declare.
5168 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
5169 (DEF_FUNCTION_TYPE_VAR_11): Delete.
5170 * tree.h (OMP_CLAUSE_EXPR): New.
5171 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
5173 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
5174 Sebastian Pop <s.pop@samsung.com>
5176 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
5178 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
5179 Sebastian Pop <s.pop@samsung.com>
5181 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
5182 * graphite-scop-detection.c (struct sese_l): New type.
5183 (get_entry_bb): API for getting entry bb of SESE.
5184 (get_exit_bb): API for getting exit bb of SESE.
5185 (class debug_printer): New type. Simple printer in debug mode.
5186 (trivially_empty_bb_p): New. Return true when BB is empty or
5187 contains only debug instructions.
5188 (graphite_can_represent_expr): Call scalar_evoution_in_region
5189 instead of analyze_scalar_evolution. Pass in scop instead of only
5191 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
5193 (stmt_simple_for_scop_p): Same.
5194 (harmful_stmt_in_bb): Same.
5195 (graphite_can_represent_loop): Deleted.
5196 (struct scopdet_info): Deleted.
5197 (scopdet_basic_block_info): Deleted.
5198 (build_scops_1): Deleted.
5199 (bb_in_sd_region): Deleted.
5200 (find_single_entry_edge): Deleted.
5201 (find_single_exit_edge): Deleted.
5202 (create_single_entry_edge): Deleted.
5203 (sd_region_without_exit): Deleted.
5204 (create_single_exit_edge): Deleted.
5205 (unmark_exit_edges): Deleted.
5206 (mark_exit_edges): Deleted.
5207 (create_sese_edges): Deleted.
5208 (build_graphite_scops): Deleted.
5209 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
5210 (build_scops): Use the new scop_builder to build scops.
5211 (dot_all_scops_1): Use the new pretty printer. Print loop father
5213 (loop_body_is_valid_scop): New. Return true if loop body is a
5215 (class scop_builder): New. Builds SCoPs for polyhedral
5217 (scop_builder): New constructor.
5218 (static sese_l invalid_sese): sese_l with invalid edges.
5219 (get_sese): Get an sese (from a loop) if possible, invalid_sese
5221 (get_nearest_dom_with_single_entry): Get nearest dominator of a
5222 basic_block with single entry. Return NULL if we get to the
5223 beginning of a function.
5224 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
5225 a basic_block with single exit. Return NULL if we get to the
5226 beginning of a function.
5227 (print_sese): Pretty-print SESE.
5228 (merge_sese): Merge two SESEs if possible and return the new SESE.
5229 (build_scop_depth): Start building the SCoP within a loop nest.
5230 (build_scop_breadth): Start building the SCoP at a single loop
5231 depth. Merge adjacent SESEs if valid.
5232 (can_represent_loop_1): Returns true if Graphite can represent
5233 loop inside SCoP. Helper for can_represent_loop.
5234 (can_represent_loop): Returns true if Graphite can represent LOOP
5235 and all its nested loops in SCoP.
5236 (loop_is_valid_scop): Returns true if LOOP and all its nests
5237 constitute a valid SCoP.
5238 (region_has_one_loop): Returns true of a region has only one loop.
5239 (add_scop): Add SCoP to the list of valid scops. Removes an
5240 already existing scop if it intersects with or subsumed by this one.
5241 (harmful_stmt_in_region): Returns true if SCoP has any statment
5242 which cannot be represented by Graphite.
5243 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
5244 (remove_subscops): Remove any SCoP from the list of already found
5245 SCoPs, if subsumed by S1.
5246 (intersects): Return true if region bounded by SCoPs S1 and S2
5248 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
5249 * graphite.c (print_graphite_scop_statistics):
5250 (print_graphite_statistics): Print SCoP info while debugging.
5251 (graphite_initialize): Early exit in case number of loops in a
5252 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
5253 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
5254 (graphite_finalize):
5255 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
5256 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
5257 (recompute_all_dominators): Recalculate POST_DOMINATORS.
5258 * tree-cfg.c (print_loops): Print the function name while printing
5261 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
5262 Sebastian Pop <s.pop@samsung.com>
5264 PR tree-optimization/67700
5265 * graphite-sese-to-poly.c (parameter_index_in_region): Call
5266 invariant_in_sese_p_rec.
5267 (extract_affine): Same.
5268 (rewrite_cross_bb_scalar_deps): Call update_ssa.
5269 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
5270 * sese.h (invariant_in_sese_p_rec): Declare.
5272 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
5274 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
5276 2015-09-28 Jiong Wang <jiong.wang@arm.com>
5279 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5280 Jiong Wang <jiong.wang@arm.com>
5282 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
5283 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
5284 (REG_CLASS_NAMES): Likewise.
5285 (REG_CLASS_CONTENTS): Likewise.
5286 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
5287 (aarch64_register_move_cost): Likewise.
5288 (aarch64_load_symref_appropriately): Invoke the new added pattern if
5290 * config/aarch64/constraints.md (Uc0): New constraint.
5292 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
5294 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
5296 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
5298 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
5299 SECTION_EXCLUDE in XO mapping class.
5301 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
5304 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
5305 and handle ne and eq codes.
5306 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
5307 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
5308 CONST_INT_P. Use reverse_condition.
5309 (sh_split_treg_set_expr): Likewise.
5311 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
5313 * config/arm/types.md (type): Add rotate_imm.
5314 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
5316 (*rorsi3_insn_uxtw): Likewise.
5317 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
5318 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
5319 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
5321 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5323 PR rtl-optimization/67481
5324 * ifcvt.c (contains_ccmode_rtx_p): New function.
5325 (insn_valid_noce_process_p): Use it.
5327 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5329 PR rtl-optimization/67456
5330 PR rtl-optimization/67464
5331 PR rtl-optimization/67465
5332 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
5333 move in the mode of x. Handle combination of complex and simple
5334 block pairs as well as the case when one is empty.
5336 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5338 * doc/gimple.texi: Update references to gimple_statement_base.
5339 * gdbhooks.py: Likewise.
5340 * gimple.h: Likewise.
5342 2015-09-28 Daniel Cederman <cederman@gaisler.com>
5344 * config/sparc/driver-sparc.c: map LEON to leon3
5346 2015-09-28 Daniel Cederman <cederman@gaisler.com>
5348 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
5349 and make it inverse to change default
5350 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
5352 * doc/invoke.texi: Document change of default
5354 2015-09-28 Daniel Cederman <cederman@gaisler.com>
5356 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
5357 true on %f0 for a target without FPU.
5358 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
5360 (untyped_return): Do not load %f0 for a target without FPU.
5362 2015-09-28 Andrew Pinski <apinski@cavium.com>
5364 * config/aarch64/aarch64.md (prefetch):
5365 Change the predicate of operand 0 to register_operand.
5367 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
5369 * config/i386/predicates.md (register_sse4nonimm_operand): New
5371 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
5372 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
5373 Use register_sse4nonimm_operand as operand 0 predicate.
5374 (*vec_extractv8hi_sse2): Remove insn pattern.
5375 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
5376 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
5378 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
5379 Kaz Kojima <kkojima@gcc.gnu.org>
5382 * config/sh/sh-protos.h (sh_lra_p): Declare.
5383 * config/sh/sh.c (sh_lra_p): Make non-static.
5384 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
5385 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
5386 Expand into addsi3_scr if operands[2] if needed.
5387 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
5388 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
5389 (addsi3_scr, *addsi3): New insn_and_split patterns.
5391 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
5393 PR rtl-optimization/64164
5394 PR tree-optimization/67312
5398 * cfgexpand.c (parm_in_stack_slot_p): Remove.
5399 (ssa_default_def_partition): Remove.
5400 (get_rtl_for_parm_ssa_default_def): Remove.
5401 (set_rtl): Check that RTL assignments match expectations.
5402 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
5403 default def location for params and results. Record SSA names
5404 or types in REG and MEM attrs, respectively.
5405 (set_parm_rtl): New.
5406 (expand_one_ssa_partition): Drop logic that assigned MEMs with
5407 unassigned addresses.
5408 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
5409 deferred stack alloc vars.
5410 (expand_used_vars): Skip partitions holding parm default defs.
5411 Move adjust_one_expanded_partition_var loop...
5412 (pass_expand::execute): ... here. Drop redundant assert.
5413 Adjust comments before the final loop over all ssa names.
5414 Require assigned rtl of parms and results to match exactly.
5415 Reset its attributes to match them, not any other variables in
5417 (expand_debug_expr): Use entry value for PARM's default defs
5418 only iff they have zero nondebug uses.
5419 * cfgexpand.h (parm_in_stack_slot_p): Remove.
5420 (get_rtl_for_parm_ssa_default_def): Remove.
5421 (set_parm_rtl): Declare.
5422 * doc/invoke.texi: Improve wording.
5423 * explow.c (promote_decl_mode): Fix promote_function_mode for
5424 result decls not by reference.
5425 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
5426 bypass TYPE_MODE to get the actual vector mode.
5427 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
5428 2015-08-19's changes as follows. Drop include of
5429 basic-block.h and df.h.
5430 (rtl_for_parm): Remove.
5431 (maybe_reset_rtl_for_parm): Remove.
5432 (parm_in_unassigned_mem_p): Remove.
5433 (use_register_for_decl): Add logic for RESULT_DECLs matching
5434 assign_parms' behavior.
5435 (split_complex_args): Revert.
5436 (assign_parms_augmented_arg_list): Revert. Add comment
5437 referencing the logic above.
5438 (assign_parm_adjust_stack_rtl): Revert.
5439 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
5440 of SET_DECL_RTL. Set up a REG if the parm demands so.
5441 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
5442 calls into a single set_parm_rtl. Set up a temporary RTL
5443 temporarily for expand_assignment.
5444 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
5445 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
5446 (assign_bounds): Revert.
5447 (assign_parms): Revert. Use set_parm_rtl.
5448 (allocate_struct_function): Relayout result and parms of
5449 non-abstruct functions.
5450 (expand_function_start): Revert. Use set_parm_rtl. If the
5451 result is not a hard reg, create a pseudo from the promoted
5452 mode of the default def. Promote static chain mode.
5453 * tree-outof-ssa.c (remove_ssa_form): Drop unused
5454 partition_has_default_def. Set up
5455 partitions_for_parm_default_defs.
5456 (finish_out_of_ssa): Remove partition_has_default_def.
5457 Release partitions_for_parm_default_defs.
5458 * tree-outof-ssa.h (struct ssaexpand): Remove
5459 partition_has_default_def. Add
5460 partitions_for_parm_default_defs.
5461 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
5463 (build_ssa_conflict_graph): Fix conflict-detection of default
5464 defs of even unused default defs of params and results.
5465 (for_all_parms): New.
5466 (create_default_def): New.
5467 (register_default_def): New.
5468 (coalesce_with_default): New.
5469 (create_outofssa_var_map): Create default defs for all parms
5470 and results, and register their partitions. Add GIMPLE_RETURN
5471 operands as coalesce candidates with results. Add default
5472 defs of each parm or result as coalesce candidates with its
5473 other defs. Mark each result def, and each default def of
5474 parms, as used_in_copy.
5475 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
5476 with the ssa names, even anonymous ones. Drop
5477 parm_in_stack_slot_p calls. Require same signedness and
5479 (coalesce_ssa_name): Add coalesce candidates for all defs of
5480 each parm and result, even unused ones.
5481 (parm_default_def_partition_arg): New type.
5482 (set_parm_default_def_partition): New.
5483 (get_parm_default_def_partitions): New.
5484 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
5485 * tree-ssa-live.c (partition_view_init): Regard unused defs of
5486 parms and results as used.
5487 (verify_live_on_entry): Don't error out just because they're
5490 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
5492 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
5493 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
5494 (output_fde): Don't output length for debug_frame on AIX.
5495 (output_call_frame_info): Don't output length for debug_frame on AIX.
5496 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
5497 HAVE_XCOFF_DWARF_EXTRAS.
5498 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
5499 HAVE_XCOFF_DWARF_EXTRAS.
5500 (output_compilation_unit_header): Don't output length on AIX.
5501 (output_pubnames): Don't output length on AIX.
5502 (output_aranges): Delete argument. Compute length locally. Don't
5503 output length on AIX.
5504 (output_line_info): Don't output length on AIX.
5505 (dwarf2out_finish): Don't compute aranges_length.
5506 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
5507 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
5508 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
5509 symbol decoration for AIX.
5510 (rs6000_xcoff_debug_unwind_info): New.
5511 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
5513 (rs6000_xcoff_declare_function_name): Emit different
5514 .function pseudo-op when DWARF2_DEBUG. Don't call
5515 xcoffout_declare_function for DWARF2_DEBUG.
5516 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
5518 * config/rs6000/aix71.h: New.
5519 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
5521 * configure: Regenerate.
5522 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
5525 2015-09-26 Jeff Law <law@redhat.com>
5527 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
5529 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
5532 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
5535 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
5536 undefined behaviour.
5538 * config/cris/cris.md (asrandb): Fix left shift undefined
5540 (asrandw): Likewise.
5542 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
5545 * lra-constarints.c (match_reload): Check presence of the input pseudo
5546 in the output operand.
5548 2015-09-25 Tobias Burnus <burnus@net-b.de>
5550 * doc/invoke.texi (-fsanitize): Minor wording tweak.
5552 2015-09-25 Tobias Burnus <burnus@net-b.de>
5554 * doc/invoke.texi (-fsanitize): Update URLs.
5556 2015-09-25 Teresa Johnson <tejohnson@google.com>
5558 * opts.c (finish_options): Unset -freorder-blocks-and-partition
5559 if not using profile.
5561 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
5563 PR pretty-print/67567
5564 * pretty-print.c (pp_string): Add gcc_checking_assert.
5565 * pretty-print.h (output_buffer_append_r): Likewise.
5567 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
5570 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
5571 addr2 individually. Don't emit logical or insn if one is known to
5572 be aligned approriately.
5573 (sh_expand_cmpnstr): Likewise.
5575 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
5577 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
5578 __builtin_aarch64_fp[sc]r arguments into a register.
5580 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
5582 * config.gcc (x86_archs): Replace lakemount with lakemont.
5583 (with_cpu): Likewise.
5584 (with_arch): Likewise.
5585 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
5586 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
5587 __tune_lakemount__ with __tune_lakemont__.
5588 * config/i386/i386.c (lakemount_cost): Renamed to ...
5589 (lakemont_cost): This.
5590 (m_LAKEMOUNT): Renamed to ...
5592 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
5593 (processor_target_table): Replace "lakemount" with "lakemont".
5594 (processor_alias_table): Likewise.
5595 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
5597 (ix86_adjust_cost): Likewise.
5598 (ia32_multipass_dfa_lookahead): Likewise.
5599 * config/i386/i386.h (processor_type): Likewise.
5600 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
5601 * doc/invoke.texi: Replace lakemount with lakemont. Replace
5602 Lakemount with Lakemont.
5604 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
5606 * config.gcc (x86_archs): Replace iamcu with lakemount.
5607 (with_cpu): Likewise.
5608 (with_arch): Likewise.
5609 * doc/invoke.texi: Likewise.
5610 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
5611 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
5612 __tune_iamcu__ with __tune_lakemount__.
5613 * config/i386/i386.c (iamcu_cost): Renamed to ...
5614 (lakemount_cost): This.
5615 (m_IAMCU): Renamed to ...
5616 (m_LAKEMOUNT): This.
5617 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
5618 (processor_target_table): Replace "iamcu" with "lakemount".
5619 (processor_alias_table): Likewise.
5620 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
5621 PROCESSOR_LAKEMOUNT.
5622 (ix86_adjust_cost): Likewise.
5623 (ia32_multipass_dfa_lookahead): Likewise.
5624 * config/i386/i386.h (processor_type): Likewise.
5625 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
5627 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
5629 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
5630 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
5632 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
5633 (pa_expand_compare_and_swap_loop): New.
5634 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
5635 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
5636 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
5637 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
5638 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
5641 2015-09-24 Michael Collison <michael.collison@linaro.org>
5644 * read-md.c (read_name): Allow mode iterators inside angle
5645 brackets in rtl expressions.
5647 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
5650 * ira-color.c (update_allocno_cost): Add parameter.
5651 (update_costs_from_allocno): Decrease conflict cost. Pass the new
5654 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5657 * opts-common.c (prune_options): Discard all -fdiagnostics-color
5658 but the last one, which is moved to the front to be processed
5660 * opts.c (enable_warning_as_error): Reject options that do not
5663 2015-09-24 Jiong Wang <jiong.wang@arm.com>
5665 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
5667 2015-09-24 Jiong Wang <jiong.wang@arm.com>
5669 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
5670 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
5671 (aarch64_cannot_force_const_mem): Likewise.
5672 (aarch64_classify_address): Likewise.
5673 (aarch64_classify_symbolic_expression): Likewise.
5674 (aarch64_print_operand): Likewise.
5675 (aarch64_classify_symbol): Likewise.
5676 (aarch64_mov_operand_p): Likewise.
5677 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
5678 (aarch64_mov_operand): Likewise.
5680 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
5682 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
5683 for info->spe_gp_size.
5685 2015-09-24 Richard Biener <rguenther@suse.de>
5688 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
5691 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
5693 * tree-object-size.c (plus_stmt_object_size)
5694 (cond_expr_object_size): Change the formal parameters from gimple
5696 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
5697 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
5698 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
5700 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5702 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
5703 Check for ld -type pie on Solaris 11.x and 12.
5704 * configure: Regenerate.
5705 * config.in: Regenerate.
5707 * gcc.c (LD_PIE_SPEC): Allow redefinition.
5709 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
5710 (STARTFILE_SPEC): Use it.
5711 (ENDFILE_CRTEND_SPEC): Define.
5712 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
5713 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
5714 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
5715 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
5716 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
5717 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
5718 (ENDFILE_ARCH_SPEC): Define.
5719 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
5721 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5723 * configure.ac (gcc_cv_solaris_crts): New test.
5724 * configure. Regenerate.
5725 * config.in: Regenerate.
5726 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
5727 HAVE_SOLARIS_CRTS variant.
5729 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5731 * tree-inline.h (count_insns_seq): Delete prototype.
5732 (estimate_num_insns_seq): Define prototype.
5733 * tree-inline.c (count_insns_seq): Delete.
5734 (estimate_num_insns_seq): Remove static qualifier.
5735 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
5736 with estimate_num_insns_seq.
5738 2015-09-24 Richard Biener <rguenther@suse.de>
5740 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
5742 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
5743 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
5745 (ao_ref_init_from_vn_reference): Record clique and base in the
5747 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
5749 2015-09-24 Richard Biener <rguenther@suse.de>
5751 PR tree-optimization/48885
5752 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
5753 as not including any restrict tags from other pointers.
5755 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
5757 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
5758 character when appending to offload_targets.
5760 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
5761 offload targets by commas, not colons.
5762 * config.in: Regenerate.
5763 * configure: Likewise.
5764 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
5765 instead of setting up the default offload targets here...
5766 (process_command): ..., do it here.
5768 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
5769 targets are separated by commas.
5770 * config.h.in: Regenerate.
5772 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
5773 Nathan Sidwell <nathan@codesourcery.com>
5775 * omp-low.h (omp_reduction_init_op): Declare.
5776 * omp-low.c (omp_reduction_init_op): New, broken out of ...
5777 (omp_reduction_init): ... here. Call it.
5778 * tree-parloops.c (initialize_reductions): Use
5779 omp_reduction_init_op.
5781 2015-09-23 Richard Biener <rguenther@suse.de>
5784 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
5785 undefined overflow unless they will cancel out.
5787 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
5789 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
5792 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5795 * opts.h (write_langs): Declare.
5796 * opts-global.c (write_langs): Make it extern.
5798 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
5801 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
5802 overlapping regs when matching the pattern.
5804 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
5806 * config/aarch64/aarch64-simd.md
5807 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
5808 (aarch64_float_truncate_hi_v4sf_le): New.
5809 (aarch64_float_truncate_hi_v4sf_be): Likewise.
5811 2015-09-23 Richard Biener <rguenther@suse.de>
5813 * tree-ssa-structalias.c (intra_create_variable_infos): Build
5814 representatives for all restrict qualified pointer destinations.
5816 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
5818 * config/i386/i386.md (define_code_attr mshift): New.
5819 (define_mode_iterator SWI1248_AVX512BW): Rename ...
5820 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
5822 (define_insn "*k<logic><mode>"): Use new iterator name.
5823 (define_insn "*<mshift><mode>3"): New.
5825 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
5828 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
5829 mark the block as accessible.
5831 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
5833 * function.c (thread_prologue_and_epilogue_insns): Delete
5834 orig_entry_edge argument to try_shrink_wrapping.
5835 * shrink-wrap.c (can_get_prologue): New function.
5836 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
5837 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
5838 can_get_prologue where needed. Remove code that finds a single
5839 edge for the prologue. Remove code that tests if any reg clobbered
5840 by the prologue is live on the prologue edge. Remove code that finds
5841 the new prologue edge after duplicating blocks. Make a new prologue
5843 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
5845 2015-09-22 Jeff Law <law@redhat.com>
5847 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
5850 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
5852 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
5853 -Wtemplates, -Wnamespaces): Document.
5855 2015-09-22 Tom de Vries <tom@codesourcery.com>
5857 PR tree-optimization/67671
5858 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
5859 pointer references as restrict.
5861 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5863 * config/nios2/nios2.c (nios2_legitimize_address): When handling
5864 'reg + reloc' cases, allow first operand to be non-REG, and use
5865 force_reg() to enforce address pattern.
5867 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
5870 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
5871 (define_mode_iterator VI12_AVX_AVX512F): New.
5872 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
5873 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
5874 (define_insn "*<code><mode>3"): ... Into new pattern using
5875 VI12_AVX_AVX512F iterators without masking.
5877 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5879 * config.gcc: Support "skylake-avx512".
5880 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5881 PROCESSOR_SKYLAKE_AVX512.
5882 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
5883 (processor_target_table): Add "skylake-avx512".
5884 (PTA_SKYLAKE_AVX512): Define.
5885 (ix86_option_override_internal): Add "skylake_avx512".
5886 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
5887 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
5888 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
5889 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
5890 * doc/invoke.texi (skylake-avx512): New.
5892 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5894 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
5896 (define_insn "kunpcksi"): Ditto.
5897 (define_insn "kunpckdi"): Ditto.
5899 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5901 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
5902 iterator instead of fixed modes.
5904 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5906 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
5908 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
5909 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
5910 out_result. Update to support update-fetch operations.
5911 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
5912 Adjust for change to aarch64_gen_atomic_ldop.
5913 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
5914 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
5915 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
5916 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
5917 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
5919 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5921 * config/aarch64/aarch64-protos.h
5922 (aarch64_atomic_ldop_supported_p): Declare.
5923 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
5924 (enum aarch64_atomic_load_op_code): New.
5925 (aarch64_emit_atomic_load_op): New.
5926 (aarch64_gen_atomic_ldop): Update to support load-operate
5928 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
5930 (aarch64_atomic_<atomic_optab><mode>): New.
5931 (aarch64_atomic_<atomic_optab><mode>_lse): New.
5932 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
5933 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
5934 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
5936 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5938 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
5939 (UNSPECV_ATOMIC_LDOP_OR): New.
5940 (UNSPECV_ATOMIC_LDOP_BIC): New.
5941 (UNSPECV_ATOMIC_LDOP_XOR): New.
5942 (UNSPECV_ATOMIC_LDOP_PLUS): New.
5945 (aarch64_atomic_load<atomic_ldop><mode>): New.
5947 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5949 * config/aarch64/aarch64.md
5950 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
5953 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5955 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
5957 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
5958 (aarch64_gen_atomic_ldop): New.
5959 (aarch64_split_atomic_op): Fix whitespace and add a comment.
5960 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
5961 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
5962 (atomic_exchange<mode>): Replace with an expander.
5963 (aarch64_atomic_exchange<mode>): New.
5964 (aarch64_atomic_exchange<mode>_lse): New.
5965 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
5966 (aarch64_atomic_swp<mode>): New.
5968 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5970 * tree-inline.c (expand_call_inline): Use inform for extra note.
5971 Do not give a note with UNKNOWN_LOCATION.
5972 Replace input_location with gimple_location (stmt).
5973 Use true/false instead of TRUE/FALSE.
5975 2015-09-22 Tom de Vries <tom@codesourcery.com>
5977 PR tree-optimization/67666
5978 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
5979 with single field non-conservative.
5981 2015-09-21 David S. Miller <davem@davemloft.net>
5985 2015-09-11 David S. Miller <davem@davemloft.net>
5987 * config/sparc/constraints.md: Make "U" constraint a real register
5989 * config/sparc/sparc.c (TARGET_LRA_P): Define.
5990 (D_MODES, DF_MODES): Add missing cast.
5991 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5992 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5993 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5995 * config/sparc/sparc.h (PROMOTE_MODE): Define.
5996 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5997 provide these insn when flag_pic.
5999 2015-09-17 David S. Miller <davem@davemloft.net>
6001 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
6003 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
6005 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6006 (HARD_REGNO_CALLER_SAVE_MODE): Define.
6007 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6008 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6009 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6010 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6011 provide when flag_pic.
6013 2015-09-21 Jeff Law <law@redhat.com>
6015 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
6018 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6020 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
6022 2015-09-21 Richard Biener <rguenther@suse.de>
6024 * passes.c (rest_of_decl_compilation): Do not call
6025 dwarf2out_early_global_decl for aliases.
6027 2015-09-21 Richard Biener <rguenther@suse.de>
6030 * dwarf2out.c (add_location_or_const_value_attribute): Remove
6031 attribute parameter. Early exit if either DW_AT_const_value
6032 or DW_AT_location are present already.
6033 (gen_variable_die): Adjust caller.
6034 (dwarf2out_late_global_decl): Likewise.
6036 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6039 * config/sh/sh.c (sh_remove_overlapping_post_inc,
6040 sh_peephole_emit_move_insn): Add new functions.
6041 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
6042 sh_peephole_emit_move_insn): Declere them.
6043 * config/sh/sh.md: Use them in various peephole2 patterns.
6045 2015-09-21 Richard Biener <rguenther@suse.de>
6048 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
6049 address with -fno-delete-null-pointer-checks.
6051 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
6053 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
6054 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
6055 (reduc_uplus_v16qi): Remove.
6057 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
6058 (reduc_<VEC_reduc_name>_v2df): Remove.
6059 (reduc_<VEC_reduc_name>_v4sf): Remove.
6060 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
6062 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
6063 gen_ function by removing * prefix.
6064 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
6066 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6069 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
6070 Print i_bound without converting it to a tree.
6072 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
6074 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
6075 operands[4] operands[5] swap with std::swap, removed tmp variable.
6076 (arm_evpc_neon_vzip): Replaced in0/in1 and
6077 out0/out1 swaps with std::swap, removed x variable.
6078 (arm_evpc_neon_vtrn): Replaced in0/int1 and
6079 out0/out1 swaos with std::swap, removed x variable.
6080 (arm_expand_vec_perm_const_1): Replaced
6081 d->op0/d->op1 swap with std::swap, removed x variable.
6082 (arm_evpc_neon_vuzp): Replaced in0/in1 and
6083 out0/out1 swaps with std::swap, removed x variable.
6085 2015-09-21 Jonathan Yong <10walls@gmail.com>
6087 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
6088 sysroot/usr/lib/32api for additional win32 libraries,
6089 fixes failing Cygwin bootstrapping.
6091 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6093 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
6095 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6098 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
6099 (*mov_t_msb_neg): Rewrite negc pattern.
6101 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6103 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
6104 immediate generation code.
6106 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6108 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
6109 redundant immediate generation code.
6111 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6113 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
6114 (AARCH64_NUM_BITMASKS): Remove.
6115 (aarch64_bitmasks_cmp): Remove.
6116 (aarch64_build_bitmask_table): Remove.
6118 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6120 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
6121 slow immediate matching loops with a faster algorithm.
6123 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6125 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
6128 2015-09-20 Jeff Law <law@redhat.com>
6130 PR tree-optimization/47679
6131 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
6132 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
6133 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
6134 (thread_through_normal_block): Use record_temporary_equivalences.
6136 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
6138 * coretypes.h (gimple): Change typedef to be a forward declaration.
6139 * gimple.h (gimple_statement_base): rename to gimple.
6140 * (all functions and types using gimple): Adjust.
6143 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
6144 David Edelsohn <dje.gcc@gmail.com>
6146 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
6147 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6148 (EH_FRAME_THROUGH_COLLECT2): Define.
6149 (EH_TABLES_CAN_BE_READ_ONLY): Define.
6150 (ASM_OUTPUT_DWARF_PCREL): Define.
6151 (ASM_OUTPUT_DWARF_DATAREL): Define.
6153 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
6155 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
6158 2015-09-18 Jeff Law <law@redhat.com>
6160 PR tree-optimization/47679
6161 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
6163 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
6164 object. Update constructor.
6165 (pass_dominator::execute): Corresponding chagnes to declaration
6166 and initialization of avail_exprs_stack. Update constructor call
6167 for dom_opt_dom_walker object.
6168 (lookup_avail_expr, record_cond): Accept additional argument. Pass
6169 it down to children as needed.
6170 (record_equivalences_from_incoming_edge): Likewise.
6171 (eliminate_redundant_computations): Likewise.
6172 (record_equivalences_from_stmt): Likewise.
6173 (simplify_stmt_for_jump_threading): Likewise.
6174 (record_temporary_equivalences): Likewise.
6175 (optimize_stmt): Likewise.
6176 (dom_opt_dom_walker::thread_across_edge): Update access to
6177 avail_exprs_stack object and pass it to children as needed.
6178 (dom_opt_dom_walker::before_dom_children): Similarly.
6179 (dom_opt_dom_walker::after_dom_children): Similarly.
6180 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
6181 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
6182 Add avail_expr_stack argument. Pass it to children as needed.
6183 (dummy_simplify): Likewise.
6184 (simplify_control_stmt_condition): Likewise.
6185 (thread_around_empty_blocks): Likewise.
6186 (thread_through_normal_block): Likewise.
6187 (thread_across_edge): Likewise.
6188 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
6189 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
6191 PR tree-optimization/47679
6192 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
6194 (dom_opt_dom_walker): New private member holding the const_and_copies
6195 object. Update constructor.
6196 (pass_dominator::execute): Corresponding changes to declaration
6197 and initialization of const_and_copies. Update constructor call
6198 for the dom_opt_dom_walker object.
6199 (record_temporary_equivalences): Accept const_and_copies argument
6200 pass it down to children as needed.
6201 (record_equality): Likewise.
6202 (record_equivalences_from_incoming_edge): Likewise.
6203 (cprop_into_successor_phis, optimize_stmt): Likewise.
6204 (eliminate_redundant_computations): Likewise.
6205 (dom_opt_dom_walker::thread_across_edge): Update access to
6206 const_and_copies object and pass it to children as needed.
6207 (dom_opt_dom_walker::before_dom_children): Similarly.
6208 (dom_opt_dom_walker::after_dom_children): Similarly.
6210 PR tree-optimization/47679
6211 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
6212 it into the avail_exprs_stack class.
6213 (pass_dominator::execute): Corresponding changes to declaration
6214 and initialization of avail_exprs. Pass avail_exprs to
6215 dump_dominator_optimization_stats.
6216 (record_cond): Extract avail_exprs from avail_exprs_stack.
6217 (lookup_avail_expr): Similarly.
6218 (htab_staticstics): Remove unnecessary prototype. Move to earlier
6220 (dump_dominator_optimization_stats): Make static and prototype.
6221 Add argument for the hash table to dump.
6222 (debug_dominator_optimization_stats): Remove.
6223 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
6225 (debug_dominator_optimization_stats): Similarly.
6226 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
6227 "void" in prototype for pop_to_marker method. Add accessor method
6228 for the underlying avail_exprs table.
6230 * tree-ssa-threadedge.c: Remove trailing whitespace.
6232 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
6234 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
6236 (pa_ldil_cint_p): Likewise.
6237 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
6238 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
6240 * config/pa/pa.md: Likewise.
6242 2015-09-18 David Malcolm <dmalcolm@redhat.com>
6244 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
6245 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
6246 (diagnostic_show_locus): Likewise.
6247 (diagnostic_print_caret_line): Likewise.
6248 * diagnostic-show-locus.c: New file.
6250 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
6252 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
6253 "back" parameter. Declare label in #if block.
6255 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
6258 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
6259 the address to a register.
6261 2015-09-18 Jeff Law <law@redhat.com>
6263 PR tree-optimization/47679
6264 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
6265 * tree-ssa-dom.c: Remove unnecessary header includes.
6266 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
6267 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
6268 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
6269 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
6270 (pass_phi_only_cprop::execute): Likewise.
6271 (make_pass_phi_only_cprop): Likewise.
6272 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
6273 uses of file scoped statics by passing the required objects
6274 as parameters wherever needed.
6276 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
6277 David Edelsohn <dje.gcc@gmail.com>
6279 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
6280 EH_FRAME_THROUGH_COLLECT2.
6281 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
6283 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
6284 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
6285 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
6286 * except.c (switch_to_exception_section): Use a read-only section
6287 even if EH_FRAME_SECTION_NAME is undefined.
6288 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
6289 * collect2.c (write_c_file_stat): Provide dbase on AIX.
6290 (scan_prog_file): Don't export __dso_handle nor
6292 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6293 (EH_TABLES_CAN_BE_READ_ONLY): Define.
6294 (ASM_OUTPUT_DWARF_PCREL): Define.
6295 (ASM_OUTPUT_DWARF_DATAREL): Define.
6296 (EH_FRAME_THROUGH_COLLECT2): Define.
6297 (EH_FRAME_IN_DATA_SECTION): Delete.
6298 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
6299 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
6301 (rs6000_asm_output_dwarf_datarel): Declare.
6302 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
6303 (rs6000_aix_asm_output_dwarf_datarel): New.
6304 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
6305 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
6306 (EH_FRAME_THROUGH_COLLECT2): Define.
6307 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
6308 (EH_FRAME_THROUGH_COLLECT2): Define.
6309 (EH_TABLES_CAN_BE_READ_ONLY): Define.
6310 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
6311 (EH_FRAME_THROUGH_COLLECT2): New.
6312 (ASM_OUTPUT_DWARF_DATAREL): New.
6313 * doc/tm.texi: Regenerate.
6315 2015-09-18 Richard Biener <rguenther@suse.de>
6317 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
6318 we're in early phase.
6319 (schedule_generic_params_dies_gen): Likewise.
6320 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
6321 work as possible, retaining unhandled cases.
6322 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
6323 clear out generic_type_instances at the end.
6324 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
6325 (dwarf2out_early_finish): ... here. Do most of
6326 gen_remaining_tmpl_value_param_die_attribute here.
6328 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
6330 PR tree-optimization/67283
6331 * tree-sra.c (type_consists_of_records_p): Rename to...
6332 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6333 (completely_scalarize_record): Rename to...
6334 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
6335 (scalarize_elem): New.
6336 (analyze_all_variable_accesses): Follow renamings.
6338 2015-09-18 Richard Biener <rguenther@suse.de>
6340 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
6343 2015-09-18 Richard Biener <rguenther@suse.de>
6345 PR tree-optimization/66142
6346 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
6347 treat MEM[&x] and x the same.
6348 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
6349 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
6350 when we simplified sth.
6351 (vn_reference_maybe_forwprop_address): Likewise.
6352 (valueize_refs_1): When we simplified through
6353 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
6354 set valueized_anything to true.
6355 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
6356 one ref kills the other instead of just a offset-based test.
6357 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
6358 for the operand_equal_p test to compare bases and also compare
6361 2015-09-17 Christian Bruel <christian.bruel@st.com>
6363 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
6365 2015-09-17 Richard Henderson <rth@redhat.com>
6368 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
6369 pointers that encode the alignment of the object.
6371 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
6373 PR rtl-optimization/66790
6374 * df-problems.c (LIVE): Amend documentation.
6376 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
6378 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
6380 (GTFILES): Replace optabs.c with optabs-libfunc.c.
6381 * genopinit.c (main): Add an include guard to insn-opinit.h.
6382 Protect the rtx_code parts with NUM_RTX_CODE.
6383 * optabs.h: Split parts out to...
6384 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
6385 * optabs.c: Split parts out to...
6386 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
6387 * cilk-common.c: Include optabs-query.h rather than optabs.h.
6388 * fold-const.c: Likewise.
6389 * target-globals.c: Likewise.
6390 * tree-if-conv.c: Likewise.
6391 * tree-ssa-forwprop.c: Likewise.
6392 * tree-ssa-loop-prefetch.c: Likewise.
6393 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
6394 Remove unncessary include files.
6395 * tree-ssa-phiopt.c: Likewise.
6396 * tree-ssa-reassoc.c: Likewise.
6397 * tree-switch-conversion.c: Likewise.
6398 * tree-vect-data-refs.c: Likewise.
6399 * tree-vect-generic.c: Likewise.
6400 * tree-vect-loop.c: Likewise.
6401 * tree-vect-patterns.c: Likewise.
6402 * tree-vect-slp.c: Likewise.
6403 * tree-vect-stmts.c: Likewise.
6404 * tree-vrp.c: Likewise.
6405 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
6406 rather than optabs.h.
6407 * expr.c: Include optabs-tree.h.
6408 * function.c: Likewise.
6410 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
6413 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
6414 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
6415 * config/arm/arm.c: Include common/common-target.h.
6416 (use_return_insn): Return 0 if the static chain register was saved
6417 above a non-APCS frame.
6418 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
6419 (struct scratch_reg): New.
6420 (get_scratch_register_on_entry): New function.
6421 (release_scratch_register_on_entry): Likewise.
6422 (arm_emit_probe_stack_range): Likewise.
6423 (output_probe_stack_range): Likewise.
6424 (arm_expand_prologue): Factor out code dealing with the IP register
6425 for nested function and adjust it for stack checking.
6426 Invoke arm_emit_probe_stack_range if static builtin stack checking
6428 (thumb1_expand_prologue): Sorry out if static builtin stack checking
6430 (arm_expand_epilogue): Add the saved static chain register, if any, to
6431 the amount of pre-pushed registers to pop.
6432 (arm_frame_pointer_required): Return true if static stack checking is
6433 enabled and we want to catch the exception with the EABI unwinder.
6434 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
6435 (UNSPEC_PROBE_STACK_RANGE): Likewise.
6436 * config/arm/arm.md (probe_stack): New insn.
6437 (probe_stack_range): Likewise.
6439 2015-09-17 Richard Biener <rguenther@suse.de>
6441 * genmatch.c (parser::parse_expr): Improve error message
6442 for mis-placed flags.
6444 2015-09-17 Richard Biener <rguenther@suse.de>
6446 * passes.c (rest_of_decl_compilation): Always call early_global_decl
6447 debug hook when we created a varpool node.
6448 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
6449 dwarf2out_early_global_decl, when not just add location or
6450 value attributes to existing DIEs.
6452 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
6454 * config/aarch64/aarch64.md (copysigndf3): New.
6455 (copysignsf3): Likewise.
6457 2015-09-17 David S. Miller <davem@davemloft.net>
6459 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
6460 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
6461 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6462 (HARD_REGNO_CALLER_SAVE_MODE): Define.
6463 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6464 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6465 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6466 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6467 provide when flag_pic.
6469 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
6471 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
6472 object_allocator change.
6474 2015-09-17 Bin Cheng <bin.cheng@arm.com>
6476 PR tree-optimization/66388
6477 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
6478 (dump_iv): Dump no_overflow information.
6479 (alloc_iv): Initialize new field for struct iv.
6480 (mark_bivs): Count number of no_overflow bivs.
6481 (find_deriving_biv_for_expr, record_biv_for_address_use): New
6483 (idx_find_step): Call new functions above.
6484 (add_candidate_1, add_candidate): New paramter.
6485 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
6486 (get_computation_aff): Simplify convertion of cand for BIV.
6487 (get_computation_cost_at): Step cand's base if necessary.
6489 2015-09-17 Bin Cheng <bin.cheng@arm.com>
6491 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
6493 (tree_simplify_using_condition): Ditto.
6494 (simplify_using_initial_conditions): Ditto.
6495 (loop_exits_before_overflow): Pass new argument to function
6496 simplify_using_initial_conditions. Remove case for type conversions
6498 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
6500 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
6501 in iv base using loop initial conditions.
6503 2015-09-16 Jeff Law <law@redhat.com>
6505 PR tree-optimization/47679
6506 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
6507 (free_all_edge_infos): Use it.
6508 (allocate_edge_info): Free preexisting edge info data.
6509 (pass_dominator::execute): Set up initial edge info structures.
6510 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
6512 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
6513 If non-null, then push/pop markers appropriately.
6514 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
6515 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
6518 2015-09-16 James Bowman <james.bowman@ftdichip.com>
6520 * config/ft32/ft32.c: Fix the memory address space predicate.
6522 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
6525 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
6526 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
6528 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6530 * toplev.h (check_global_declaration): Remove declaration.
6531 * toplev.c (check_global_declaration): Move to ...
6532 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
6533 (analyze_functions): Update call.
6535 2015-09-16 David S. Miller <davem@davemloft.net>
6537 * lra-constraints.c (simplify_operand_subreg): Do not assume that
6538 lowpart of a SUBREG has offset zero.
6540 2015-09-16 Jeff Law <law@redhat.com>
6542 PR tree-optimization/47679
6543 * tree-ssa-dom.c (enum expr_kind): Moved from here to
6544 tree-ssa-scopedtables.h.
6545 (struct hashable_expr, class expr_hash_elt): Likewise.
6546 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
6547 Move associated methods into tree-ssa-scopedtables.c.
6548 (avail_expr_hash, initialize_expr_from_cond): Similarly.
6549 (hashable_expr_equal_p, add_expr_commutative): Likewise.
6550 (add_hashable_expr): Likewise.
6551 (record_cond): Delete element directly.
6552 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
6553 private copy ctor and assignment operator methods.
6554 (expr_elt_hasher): Inline trivial methods.
6555 (initialize_expr_from_cond): Prototype.
6556 * tree-ssa-scopedtables.c: Add necessary includes, functions and
6557 methods that were previously in tree-ssa-dom.c. Improve various
6560 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
6562 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
6564 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
6567 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
6570 2015-09-16 Richard Biener <rguenther@suse.de>
6573 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
6574 location of possibly shared trees.
6576 2015-09-16 Richard Biener <rguenther@suse.de>
6579 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
6581 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
6583 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
6584 offset and size computations instead of HOST_WIDE_INT.
6586 2015-09-16 Richard Biener <rguenther@suse.de>
6589 * fold-const.c (extract_muldiv_1): Properly extend multiplication
6590 result before builting a tree via wide_int_to_tree.
6592 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
6594 * Makefile.in: Add memory-block.cc
6595 (pool_allocator::initialize): Use fixed block size.
6596 (pool_allocator::release): Use memory_block_pool.
6597 (pool_allocator::allocate): Likewise.
6598 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
6600 * cfg.c (initialize_original_copy_tables): Likewise.
6601 * cselib.c (elt_list_pool, elt_loc_list_pool,
6602 cselib_val_pool): Likewise.
6603 * df-problems.c (df_chain_alloc): Likewise.
6604 * df-scan.c (df_scan_alloc): Likewise.
6605 * dse.c (cse_store_info_pool, rtx_store_info_pool,
6606 read_info_type_pool, insn_info_type_pool, bb_info_pool,
6607 group_info_pool, deferred_change_pool): Likewise.
6608 * et-forest.c (et_nodes, et_occurrences): Likewise.
6609 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
6610 ipcp_agg_lattice_pool): Likewise.
6611 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
6612 * ipa-profile.c (histogram_pool): Likewise.
6613 * ipa-prop.c (ipa_refdesc_pool): Likewise.
6614 * ira-build.c (live_range_pool, allocno_pool, object_pool,
6615 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
6616 * ira-color.c (update_cost_record_pool): Likewise.
6617 * lra-lives.c (lra_live_range_pool): Likewise.
6618 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
6619 * memory-block.cc: New file.
6620 * memory-block.h: New file.
6621 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
6622 * sched-deps.c (sched_deps_init): Likewise.
6623 * sel-sched-ir.c (sched_lists_pool): Likewise.
6624 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
6625 * tree-sra.c (access_pool): Likewise.
6626 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6627 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
6628 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
6629 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
6630 * tree-ssa-strlen.c (strinfo_pool): Likewise.
6631 * tree-ssa-structalias.c (variable_info_pool): Likewise.
6632 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
6633 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
6635 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
6637 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
6639 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
6642 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
6644 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
6645 to pass TLS call argument, according to current ABI.
6646 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
6647 callx0 for TLS call, according to current ABI.
6649 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
6651 * tree-eh.c (lower_try_finally_dup_block): Clear location information
6652 on stack restore statements.
6653 (decide_copy_try_finally): Do not consider a stack restore statement as
6654 coming from sources.
6656 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
6658 * config/alpha/alpha.c (alpha_expand_block_clear): Use
6659 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
6661 2015-09-15 Jeff Law <law@redhat.com>
6663 PR tree-optimization/47679
6664 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
6665 methods and private members.
6666 (avail_exprs_stack): Similarly. Change type of global
6667 from a pair of expr_hash_elt_t to the new class.
6668 (expr_elt_hasher::hash): Corresponding changes.
6669 (expr_elt_hasher::equal): Similarly.
6670 (avail_expr_hash): Similarly.
6671 (pass_dominator::execute): Similarly.
6672 (dom_opt_dom_walker::thread_across_edge): Similarly.
6673 (record_cond): Similarly.
6674 (dom_opt_dom_walker::before_dom_children): Similarly.
6675 (dom_opt_dom_walker::after_dom_children): Similarly.
6676 (lookup_avail_expr): Likewise.
6677 (initialize_hash_element): Now a expr_hash_elt constructor.
6678 (initialize_hash_element_from_expr): Similarly.
6679 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
6680 (free_expr_hash_elt): Call dtor for the element.
6681 (remove_local_expressions_from_table): Now the "pop_to_marker"
6682 method in the available_exprs_stack class.
6683 (avail_expr_stack::record_expr): Method factored out.
6684 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
6686 (hashable_expr_equal_p): Fix formatting.
6688 2015-09-15 David Malcolm <dmalcolm@redhat.com>
6690 * input.h (location_get_source_line): Drop "expanded_location"
6691 param in favor of a file and line number.
6692 * input.c (location_get_source_line): Likewise.
6693 (dump_location_info): Update for change in signature of
6694 location_get_source_line.
6695 * diagnostic.c (diagnostic_print_caret_line): Likewise.
6697 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
6699 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
6700 Bump to 4KB for SJLJ exceptions.
6701 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
6702 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
6703 * doc/tm.texi: Regenerate.
6705 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6707 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
6708 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
6711 2015-09-15 Richard Biener <rguenther@suse.de>
6713 PR tree-optimization/67470
6714 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
6715 structure for PHI hoisting by inserting a forwarder block
6718 2015-09-15 Christian Bruel <christian.bruel@st.com>
6720 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
6721 (arm_option_print): New function.
6723 2015-09-15 Christian Bruel <christian.bruel@st.com>
6726 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
6727 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
6728 Remove flags parameter.
6729 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
6730 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
6731 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
6732 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
6733 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
6734 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
6735 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
6736 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
6738 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6740 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
6742 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
6743 AARCH64_VALID_SIMD_DREG_MODE.
6745 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6747 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
6748 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
6749 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
6750 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
6751 aarch64_ld4_lane<mode>): Combine together, making...
6752 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
6753 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
6754 aarch64_st4_lane<mode>): Combine together, making...
6755 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
6756 * config/aarch64/iterators.md (nregs): Add comment.
6758 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6760 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
6761 Change operand mode from <V_TWO_ELEM> to BLK.
6762 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
6763 (aarch64_vec_store_lanesoi_lane<mode): Likewise
6764 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6765 (aarch64_ld2_lane<mode>): Likewise.
6766 (aarch64_st2_lane<VQ:mode>): Likewise.
6767 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
6769 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6771 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
6772 Change operand mode from <V_FOUR_ELEM> to BLK.
6773 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
6774 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
6775 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6776 (aarch64_ld4_lane<mode>): Likewise.
6777 (aarch64_st4_lane<mode>): Likewise.
6778 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
6780 2015-09-15 Richard Biener <rguenther@suse.de>
6783 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
6784 transfer EH info from old to new stmt.
6785 (replace_call_with_value): Likewise.
6786 (replace_call_with_call_and_fold): Likewise.
6787 (gimple_fold_builtin_memory_op): Likewise.
6788 (gimple_fold_builtin_memset): Likewise.
6789 (gimple_fold_builtin_stpcpy): Likewise.
6790 (gimple_fold_call): Likewise.
6792 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6794 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
6796 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
6797 (aarch64_simd_intEI_type_node): Likewise.
6798 (aarch64_simd_builtin_std_type): Remove EImode case.
6799 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
6800 * config/aarch64/aarch64-modes.def: Remove EImode.
6802 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6804 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
6805 Change operand mode from <V_THREE_ELEM> to BLK.
6806 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
6807 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
6808 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6809 (aarch64_ld3_lane<mode>): Likewise.
6810 (aarch64_st3_lane<mode>): Likewise.
6811 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
6813 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6815 * config/aarch64/aarch64-simd.md
6816 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
6817 Change all TImode operands to BLKmode.
6818 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
6819 Change all EImode operands to BLKmode.
6820 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
6821 Change all OImode operands to BLKmode.
6823 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
6824 and call set_mem_size.
6825 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
6827 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
6829 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6831 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
6833 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
6835 (vec_store_lanesci_lane<mode>): Rename to...
6836 (aarch64_vec_store_lanesci_lane<mode>): ...this.
6838 (vec_store_lanesxi_lane<mode>): Rename to...
6839 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
6841 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
6842 aarch64_st4_lane<mode>): Follow renaming.
6844 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6846 * config/s390/s390.c (s390_const_operand_ok): Add missing
6849 2015-09-15 Richard Biener <rguenther@suse.de>
6852 * lto-streamer.h (lto_location_cache::current_sysp): Properly
6854 * lto-streamer-out.c (clear_line_info): Likewise.
6856 2015-09-15 Richard Biener <rguenther@suse.de>
6858 * doc/match-and-simplify.texi: Fix wording.
6860 2015-09-15 Bin Cheng <bin.cheng@arm.com>
6862 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
6863 unnecessary type conversion in op1.
6865 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6867 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
6868 (dup_block_and_redirect): Delete function.
6869 (can_dup_for_shrink_wrapping): New function.
6870 (fix_fake_fallthrough_edge): New function.
6871 (try_shrink_wrapping): Rewrite function.
6872 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
6874 2015-09-14 Rich Felker <dalias@libc.org>
6876 * configure.ac: Change target pattern for sh TLS support
6877 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
6878 * configure: Regenerate.
6880 2015-09-14 Jeff Law <law@redhat.com>
6882 PR tree-optimization/47679
6883 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
6884 type rather than void *.
6886 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6889 * diagnostic.c (diagnostic_initialize): Do not set
6890 some_warnings_are_errors.
6891 (diagnostic_finish): Use DK_WERROR count instead.
6892 (diagnostic_report_diagnostic): Do not set
6893 some_warnings_are_errors.
6894 * diagnostic.h (struct diagnostic_context): Remove
6895 some_warnings_are_errors.
6897 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
6899 * config/sparc/predicates.md (const_all_ones_operand): Use
6900 CONSTM1_RTX to simplify definition.
6902 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
6905 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
6908 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
6910 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
6911 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
6912 OPT_fshow_column to handled saved option cases.
6913 (append_compiler_options): Do not skip the above added options.
6915 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6918 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
6919 nopcrelative_literal_loads.
6920 (aarch64_classify_address): Likewise.
6921 (aarch64_constant_pool_reload_icode): Define.
6922 (aarch64_secondary_reload): Handle secondary reloads for
6924 (aarch64_override_options): Handle nopcrelative_literal_loads.
6925 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
6926 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6928 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6929 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
6930 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
6932 * doc/invoke.texi (mpc-relative-literal-loads): Document.
6934 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
6937 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
6938 sync_compare_and_swap_optab libcall to target_oval.
6940 2015-09-14 Marek Polacek <polacek@redhat.com>
6942 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
6944 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
6946 2015-09-11 Mark Wielaard <mjw@redhat.com>
6949 * toplev.c (check_global_declaration): Check and use
6950 warn_unused_const_variable.
6951 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
6952 (-Wunused-variable): Remove non-constant. For C implies
6953 -Wunused-const-variable.
6954 (-Wunused-const-variable): New.
6956 2015-09-14 Richard Biener <rguenther@suse.de>
6958 * doc/match-and-simplify.texi: Update for changed syntax
6959 of inner ifs and the new switch expression.
6961 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
6963 * config/i386/haswell.md: New file describing Haswell pipeline.
6964 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
6965 haswell-like processors.
6966 (ix86_reassociation_width): Increase reassociation width for 64-bit
6967 Haswell processor family.
6968 * config/i386/i386.md: Introduce haswell cpu and include new md file.
6970 2015-09-14 Richard Biener <rguenther@suse.de>
6972 * doc/match-and-simplify.texi: Fixup some formatting issues
6973 and document the 's' flag.
6975 2015-09-13 Olivier Hainque <hainque@adacore.com>
6976 Eric Botcazou <ebotcazou@adacore.com>
6978 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
6979 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
6980 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
6981 (TARGET_CPU_gr5): Likewise.
6982 (TARGET_CPU_gr6): Likewise.
6983 (MULTILIB_DEFAULTS): Likewise.
6984 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
6985 for mcpu=gr5 and mcpu=gr6.
6986 (MULTILIB_DIRNAMES): Adjust accordingly.
6988 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6990 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
6991 (mem_ref_p): Likewise.
6992 (outermost_indep_loop): Adjust.
6993 (mem_ref_in_stmt): Likewise.
6994 (determine_max_movement): Likewise.
6995 (mem_ref_alloc): Likewise.
6996 (record_mem_ref_loc): Likewise.
6997 (set_ref_stored_in_loop): Likewise.
6998 (mark_ref_stored): Likewise.
6999 (gather_mem_refs_stmt): Likewise.
7000 (mem_refs_may_alias_p): Likewise.
7001 (for_all_locs_in_loop): Likewise.
7002 (struct rewrite_mem_ref_loc): Likewise.
7003 (rewrite_mem_refs): Likewise.
7004 (struct first_mem_ref_loc_1): Likewise.
7005 (first_mem_ref_loc): Likewise.
7006 (struct sm_set_flag_if_changed): Likewise.
7007 (execute_sm_if_changed_flag_set): Likewise.
7008 (execute_sm): Likewise.
7009 (hoist_memory_references):
7010 (struct ref_always_accessed): Likewise.
7011 (ref_always_accessed_p): Likewise.
7012 (refs_independent_p): Likewise.
7013 (record_dep_loop): Likewise.
7014 (ref_indep_loop_p_1): Likewise.
7015 (ref_indep_loop_p_2): Likewise.
7016 (ref_indep_loop_p): Likewise.
7017 (can_sm_ref_p): Likewise.
7018 (find_refs_for_sm): Likewise.
7019 (tree_ssa_lim_finalize): Likewise.
7021 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7023 * dwarf2out.c (dw_attr_ref): Remove typedef.
7024 (dw_line_info_ref): Likewise.
7025 (pubname_ref): Likewise.
7026 (dw_ranges_ref): Likewise.
7027 (dw_ranges_by_label_ref): Likewise.
7028 (comdat_type_node_ref): Likewise.
7030 (get_AT_low_pc): Likewise.
7031 (get_AT_hi_pc): Likewise.
7032 (get_AT_string): Likewise.
7033 (get_AT_flag): Likewise.
7034 (get_AT_unsigned): Likewise.
7035 (get_AT_ref): Likewise.
7036 (get_AT_file): Likewise.
7037 (remove_AT): Likewise.
7038 (print_die): Likewise.
7039 (check_die): Likewise.
7040 (die_checksum): Likewise.
7041 (attr_checksum_ordered): Likewise.
7042 (struct checksum_attributes): Likewise.
7043 (collect_checksum_attributes): Likewise.
7044 (die_checksum_ordered): Likewise.
7045 (same_die_p): Likewise.
7046 (is_declaration_die): Likewise.
7047 (clone_die): Likewise.
7048 (clone_as_declaration): Likewise.
7049 (copy_declaration_context): Likewise.
7050 (break_out_comdat_types): Likewise.
7051 (copy_decls_walk): Likewise.
7052 (output_location_lists): Likewise.
7053 (external_ref_hasher::hash): Likewise.
7054 (optimize_external_refs_1): Likewise.
7055 (build_abbrev_table): Likewise.
7056 (size_of_die): Likewise.
7057 (unmark_all_dies): Likewise.
7058 (size_of_pubnames): Likewise.
7059 (output_die_abbrevs): Likewise.
7060 (output_die): Likewise.
7061 (output_pubnames): Likewise.
7062 (add_ranges_num): Likewise.
7063 (add_ranges_by_labels): Likewise.
7064 (add_high_low_attributes): Likewise.
7065 (gen_producer_string): Likewise.
7066 (dwarf2out_set_name): Likewise.
7067 (new_line_info_table): Likewise.
7068 (prune_unused_types_walk_attribs): Likewise.
7069 (prune_unused_types_update_strings): Likewise.
7070 (prune_unused_types): Likewise.
7071 (resolve_addr): Likewise.
7072 (optimize_location_lists_1): Likewise.
7073 (index_location_lists): Likewise.
7074 (dwarf2out_finish): Likewise.
7076 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7078 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
7080 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7082 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
7083 (dump_asserts_for): Adjust.
7084 (register_new_assert_for): Likewise.
7085 (process_assert_insertions): Likewise.
7086 (insert_range_assertions): Likewise.
7088 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7090 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
7092 (new_temp_expr_table): Adjust.
7093 (free_temp_expr_table): Likewise.
7094 (version_to_be_replaced_p): Likewise.
7095 (make_dependent_on_partition): Likewise.
7096 (add_to_partition_kill_list): Likewise.
7097 (remove_from_partition_kill_list): Likewise.
7098 (add_dependence): Likewise.
7099 (finished_with_expr): Likewise.
7100 (process_replaceable): Likewise.
7101 (kill_expr): Likewise.
7102 (kill_virtual_exprs): Likewise.
7103 (mark_replaceable): Likewise.
7104 (find_replaceable_in_bb): Likewise.
7105 (find_replaceable_exprs): Likewise.
7106 (debug_ter): Likewise.
7108 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7110 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
7111 (struct btr_user): Rename from btr_user_s.
7112 (struct btr_def): Rename from btr_def_s.
7113 (find_btr_def_group): Adjust.
7114 (add_btr_def): Likewise.
7115 (new_btr_user): Likewise.
7116 (note_other_use_this_block): Likewise.
7117 (compute_defs_uses_and_gen): Likewise.
7118 (link_btr_uses): Likewise.
7119 (build_btr_def_use_webs): Likewise.
7120 (block_at_edge_of_live_range_p): Likewise.
7121 (btr_def_live_range): Likewise.
7122 (combine_btr_defs): Likewise.
7123 (move_btr_def): Likewise.
7124 (migrate_btr_def): Likewise.
7125 (migrate_btr_defs): Likewise.
7127 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7129 * var-tracking.c (shared_hash_def): Rename to shared_hash.
7130 (shared_hash): Remove typedef.
7131 (struct dataflow_set): Adjust.
7132 (shared_hash_unshare): Likewise.
7133 (dataflow_set_merge): Likewise.
7134 (vt_initialize): Likewise.
7135 (vt_finalize): Likewise.
7137 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7139 * var-tracking.c (struct location_chain): Rename from
7141 (struct variable_part): Adjust.
7142 (variable_htab_free): Likewise.
7143 (unshare_variable): Likewise.
7144 (get_init_value): Likewise.
7145 (get_addr_from_local_cache): Likewise.
7146 (drop_overlapping_mem_locs): Likewise.
7147 (val_reset): Likewise.
7148 (struct variable_union_info): Likewise.
7149 (variable_union): Likewise.
7150 (find_loc_in_1pdv): Likewise.
7151 (insert_into_intersection): Likewise.
7152 (intersect_loc_chains): Likewise.
7153 (canonicalize_loc_order_check): Likewise.
7154 (canonicalize_values_mark): Likewise.
7155 (canonicalize_values_star): Likewise.
7156 (canonicalize_vars_star): Likewise.
7157 (variable_merge_over_cur): Likewise.
7158 (remove_duplicate_values): Likewise.
7159 (variable_post_merge_new_vals): Likewise.
7160 (variable_post_merge_perm_vals): Likewise.
7161 (find_mem_expr_in_1pdv): Likewise.
7162 (dataflow_set_preserve_mem_locs): Likewise.
7163 (dataflow_set_remove_mem_locs): Likewise.
7164 (variable_part_different_p): Likewise.
7165 (onepart_variable_different_p): Likewise.
7166 (find_src_set_src): Likewise.
7167 (dump_var): Likewise.
7168 (set_slot_part): Likewise.
7169 (clobber_slot_part): Likewise.
7170 (delete_slot_part): Likewise.
7171 (vt_expand_var_loc_chain): Likewise.
7172 (emit_note_insn_var_location): Likewise.
7173 (vt_finalize): Likewise.
7175 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7177 * dse.c (store_info_t): Remove typedef.
7178 (group_info_t): Likewise.
7179 (const_group_info_t): Likewise.
7180 (deferred_change_t): Likewise.
7181 (get_group_info): Adjust.
7182 (free_store_info): Likewise.
7183 (canon_address): Likewise.
7184 (clear_rhs_from_active_local_stores): Likewise.
7185 (record_store): Likewise.
7186 (replace_read): Likewise.
7187 (check_mem_read_rtx): Likewise.
7188 (scan_insn): Likewise.
7189 (remove_useless_values): Likewise.
7190 (dse_step1): Likewise.
7191 (dse_step2_init): Likewise.
7192 (dse_step2_nospill): Likewise.
7193 (scan_stores_nospill): Likewise.
7194 (scan_reads_nospill): Likewise.
7195 (dse_step3_exit_block_scan): Likewise.
7196 (dse_step3): Likewise.
7197 (dse_step5_nospill): Likewise.
7198 (dse_step6): Likewise.
7200 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7202 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
7203 (alias_set_entry): Remove typedef.
7204 (alias_set_subset_of): Adjust.
7205 (alias_sets_conflict_p): Likewise.
7206 (init_alias_set_entry): Likewise.
7207 (get_alias_set): Likewise.
7208 (new_alias_set): Likewise.
7209 (record_alias_subset): Likewise.
7211 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
7213 * doc/install.texi (Downloading the source): Mark up
7214 contrib/download_prerequisites properly and drop leading "./".
7216 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7218 * config/arc/arc.h: Remove define of STRUCT_VALUE.
7219 * config/lm32/lm32.h: Likewise.
7220 * config/mep/mep.h: Likewise.
7221 * config/visium/visium.h: Likewise.
7222 * system.h: Poison STRUCT_VALUE macro.
7224 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
7226 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
7227 CONSTANT_P operands.
7229 2015-09-11 David S. Miller <davem@davemloft.net>
7231 * config/sparc/constraints.md: Make "U" constraint a real register
7233 * config/sparc/sparc.c (TARGET_LRA_P): Define.
7234 (D_MODES, DF_MODES): Add missing cast.
7235 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
7236 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
7237 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
7239 * config/sparc/sparc.h (PROMOTE_MODE): Define.
7240 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
7241 provide these insn when flag_pic.
7243 2015-09-11 Jeff Law <law@redhat.com>
7245 PR tree-optimization/47679
7246 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
7247 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
7248 member with m_. Update inline member functions as necessary. Add
7250 * tree-ssa-scopedtables.c: Update const_and_copies's member
7251 functions to use m_ prefix to access the stack.
7253 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
7255 * graphite-optimize-isl.c (disable_tiling): Remove.
7256 (get_schedule_for_band): Do not use disable_tiling.
7257 (get_prevector_map): Delete function.
7258 (enable_polly_vector): Remove.
7259 (get_schedule_for_band_list): Remove dead code.
7261 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
7263 * graphite-optimize-isl.c (get_tile_map): Refactor.
7264 (get_schedule_for_band): Same.
7265 (getScheduleForBand): Same.
7266 (get_prevector_map): Same.
7267 (get_schedule_for_band_list): Same.
7268 (get_schedule_map): Same.
7269 (get_single_map): Same.
7270 (apply_schedule_map_to_scop): Same.
7271 (optimize_isl): Same.
7273 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7276 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
7278 * config/aarch64/iterators.md (GPF_TF_F16): New.
7281 2015-09-10 Nathan Sidwell <nathan@acm.org>
7283 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
7284 (nvptx_reorg): Adjust comments.
7286 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
7289 * configure.ac: Check if setenv and unsetenv are declared.
7290 * configure: Rebuild.
7291 * config.in: Rebuild.
7292 * system.h: Declare setenv and unsetenv if not declared.
7294 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7296 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
7297 commentary to simplify permute mask adjustment equation.
7298 (special_handling_values): Add SH_VPERM.
7299 (const_load_sequence_p): New function.
7300 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
7301 the mask loaded from the constant pool.
7302 (adjust_vperm): New function.
7303 (handle_special_swappables): Call adjust_vperm.
7304 (dump_swap_insn_table): Handle SH_VPERM.
7306 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
7308 * shrink-wrap.c (requires_stack_frame_p): Remove static.
7309 * shrink-wrap.h (requires_stack_frame_p): Put back.
7311 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
7313 * reload1.c (elimination_costs_in_insn): Locally turn
7314 -Wmaybe-uninitialized into a warning.
7316 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
7318 * shrink-wrap.c (requires_stack_frame_p): Make static.
7319 (prepare_shrink_wrap): Likewise.
7320 (dup_block_and_redirect): Likewise.
7321 * shrink-wrap.h: Remove declarations of those functions.
7323 2015-09-10 Mark Wielaard <mjw@redhat.com>
7325 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
7327 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
7330 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
7331 missing simplify_gen_subreg.
7333 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7335 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
7336 the vector element is bigger than 64 bit.
7338 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7340 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
7341 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
7343 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7345 * config/s390/s390.c: Add V1TImode to constant pool modes.
7347 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7350 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
7351 predicate. Set predicable_short_it attr to "no".
7353 2015-09-10 Jiong Wang <jiong.wang@arm.com>
7355 PR rtl-optimization/67421
7356 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
7357 left wide shift tranformation.
7359 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
7361 * common/config/arc/arc-common.c: Remove references to A5.
7362 * config/arc/arc-opts.h: Likewise.
7363 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
7364 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
7365 * config/arc/t-arc-newlib: Likewise.
7367 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
7369 * config/arc/arc.md (length): Fix attribute length for conditional
7370 executed instructions with long immediate.
7372 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7374 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
7375 type for second alternative.
7377 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
7379 * doc/invoke.texi (Downloading GCC): Mention
7380 contrib/download_prerequisites script.
7382 2015-09-10 Jakub Jelinek <jakub@redhat.com>
7385 * gimplify.c (gimplify_omp_for): If inner stmt is not found
7386 for combined loop, assert seen_error () and return GS_ERROR.
7389 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
7390 if decl is already in outer->variables.
7393 * gimplify.c (gimplify_scan_omp_clauses): Instead of
7394 asserting that decl is not specified in octx->variables,
7395 break out of the loop if it is.
7398 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
7399 iterator is not explicitly determined, but is defined inside
7400 of the combined workshare region, handle it like if it has
7401 DECL_EXPR in OMP_FOR_PRE_BODY.
7403 2015-09-09 Nathan Sidwell <nathan@acm.org>
7405 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
7406 (*cmp<mode>): Add assembler spacing.
7407 (setcc_int<mode>, set_cc_float<mode>): Likewise.
7408 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
7410 (write_func_decl_from_insn): Refactor argument loops & comma emission.
7411 (nvptx_expand_call): Likewise.
7412 (nvptx_output_call_insn): Likewise.
7413 (nvptx_reorg_subreg): Add spacing.
7415 2015-09-09 Marek Polacek <polacek@redhat.com>
7418 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
7421 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
7424 * doc/invoke.texi ([Wsubobject-linkage]): Document.
7426 2015-09-09 Tom de Vries <tom@codesourcery.com>
7428 * params-list.h: Add missing copyright notice.
7430 2015-09-09 Nathan Sidwell <nathan@acm.org>
7432 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
7433 sel_truesi, not andsi.
7435 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7437 * config/arm/arm.md (*subsi3_compare0): Rename to...
7438 (subsi3_compare0): ... This.
7439 (modsi3): New define_expand.
7440 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
7441 when operand is power of 2.
7443 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7445 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
7446 (*neg<mode>2_compare0): Rename to...
7447 (neg<mode>2_compare0): ... This.
7448 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
7449 Move check for speed inside the if-then-elses. Reflect
7450 CSNEG sequence in MOD by power of 2 case.
7452 2015-09-09 Alan Modra <amodra@gmail.com>
7455 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
7456 reload replacement for PRE_MODIFY address reg.
7458 2015-09-09 Sebastian Pop <s.pop@samsung.com>
7460 PR tree-optimization/53852
7461 * config.in: Regenerate.
7462 * configure: Regenerate.
7463 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
7464 * graphite-optimize-isl.c (optimize_isl): Stop computation when
7465 PARAM_MAX_ISL_OPERATIONS is reached.
7466 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
7467 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
7468 result equal to isl_stat_ok as the status now can be isl_error_quota.
7469 (subtract_commutative_associative_deps): Same.
7470 (compute_deps): Same.
7472 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7473 Sebastian Pop <s.pop@samsung.com>
7475 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7476 Return the parameter if it was saved in corresponding
7477 parameter_rename_map of the region.
7478 (copy_def): Copy def from sese region to the newly created region.
7479 (copy_internal_parameters): Copy all the internal parameters defined
7480 within a region to the newly created region.
7481 (graphite_regenerate_ast_isl): Copy parameters to the new region before
7482 translating isl to gimple.
7483 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
7484 the loop-nest does not have any data-references.
7485 (build_graphite_scops): Create a scop only when there is at least one
7487 (contains_only_close_phi_nodes): Deleted.
7488 (print_graphite_scop_statistics): Deleted
7489 (print_graphite_statistics): Deleted
7490 (limit_scops): Deleted.
7491 (build_scops): Removed call to limit_scops.
7492 * sese.c (new_sese): Construct.
7493 (free_sese): Destruct.
7494 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
7496 (set_rename): Pass sese region so that parameters inside the region can
7497 be added to its parameter_rename_map.
7498 (rename_uses): Pass sese region.
7499 (graphite_copy_stmts_from_block): Do not copy parameters that have been
7500 generated in the header of the scop. For each SSA_NAME in the
7501 parameter_rename_map rename its usage.
7502 (invariant_in_sese_p_rec): Return false if tree t is defined outside
7504 (scalar_evolution_in_region): If the tree t is invariant just return t.
7505 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
7506 struct sese to keep track of all the parameters which need renaming.
7507 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
7509 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
7511 2015-09-08 Tom de Vries <tom@codesourcery.com>
7513 * Makefile.in (generated_files): Add params.list.
7514 (params.list, s-params.list): Add rule.
7515 * params.h (enum compiler_param): Include params-list.h. Move define
7516 DEFPARAM, include params.def and undef DEFPARAM ...
7517 * params-list.h: ... here. New file.
7519 2015-09-08 David Malcolm <dmalcolm@redhat.com>
7521 * pretty-print.h (printer_fn): Fix typo in comment.
7523 2015-09-07 Jeff Law <law@redhat.com>
7525 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
7527 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7529 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
7530 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
7531 (arm_neon_fp16_hw): New.
7533 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7535 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
7536 UNITS_PER_WORD >= 4.
7538 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7540 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
7541 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
7542 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
7543 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
7544 (aarch64_float_extend_lo_v2df): Rename to...
7545 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
7547 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
7548 (float_extend_lo): Add v4sf.
7550 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
7551 * config/aarch64/iterators.md (VQ_HSF): New iterator.
7552 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
7553 (Vwide): New mode_attr.
7555 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7557 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
7558 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
7559 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
7560 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
7561 V4HF and V8HF variants to iterator.
7563 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
7565 * config/aarch64/iterators.md (VDQF_F16): New.
7566 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
7568 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7570 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
7571 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
7572 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
7573 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
7574 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
7575 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
7576 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
7577 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
7578 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
7579 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
7580 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
7581 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
7582 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
7583 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
7584 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
7585 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
7586 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
7587 vld1q_dup_f16): New.
7589 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7591 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
7592 Reparameterize to...
7593 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
7594 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
7595 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
7597 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
7599 (float_truncate_lo_): Use BUILTIN_VDF iterator.
7601 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
7603 * config/aarch64/iterators.md (VDF, Vdtype): New.
7604 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
7606 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7608 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
7609 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
7610 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
7611 Add __builtin_aarch64_simd_hf.
7612 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
7613 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
7614 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
7615 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
7616 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
7617 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
7618 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
7619 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
7620 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
7622 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
7623 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
7624 (VDC, Vdbl): Add V4HF.
7626 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7628 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
7629 V4HFmode and V8HFmode.
7630 (aarch64_split_simd_move): Add case for V8HFmode.
7631 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
7632 (aarch64_simd_builtin_std_type): Handle HFmode.
7633 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
7635 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
7636 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
7637 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
7639 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
7642 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
7643 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
7645 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
7646 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
7647 vst1q_lane_f16): New.
7648 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
7649 (VALLDI_F16, VALL_F16): New.
7650 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
7651 Add cases for V4HF and V8HF.
7652 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
7654 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7656 * config/arm/arm-builtins.c (VAR11, VAR12): New.
7657 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
7658 vld4_dup): Add v4hf variant.
7659 (vget_high, vget_low): Add v8hf variant.
7660 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
7661 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
7662 v4hf and v8hf variants.
7664 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
7666 (V_DOUBLE): Add case for V4HF.
7668 (V_HALF): Add case for V8HF.
7669 (VDQX): Add V4HF, V8HF.
7670 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
7671 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
7673 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
7674 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
7675 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
7676 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
7677 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
7678 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
7679 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
7680 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
7681 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
7683 (neon_vcreate, neon_vreinterpretv8qi<mode>,
7684 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
7685 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
7686 Change VDX to VD_RE.
7688 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
7689 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
7690 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
7692 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
7693 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
7694 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
7695 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
7696 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
7697 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
7698 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
7699 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
7700 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
7702 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7704 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
7705 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
7706 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
7707 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
7708 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
7709 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
7710 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
7711 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
7712 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
7713 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
7716 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7718 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
7720 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
7722 * config/arm/arm-builtins.c (v8hf_UP): New.
7723 (arm_init_simd_builtin_types): Initialise Float16x8_t.
7725 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
7727 * config/arm/arm_neon.h (float16x8_t): New typedef.
7729 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7731 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
7732 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
7733 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
7734 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
7735 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
7736 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
7737 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
7738 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
7739 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
7740 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
7742 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
7744 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
7745 non-alphanumeric characters in the symbol name.
7747 2015-09-07 Marek Polacek <polacek@redhat.com>
7750 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
7753 2015-09-07 Marek Polacek <polacek@redhat.com>
7755 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
7757 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
7759 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
7762 2015-09-04 Jakub Jelinek <jakub@redhat.com>
7765 * tree-ssa-live.c: Include cfgloop.h.
7766 (remove_unused_locals): Clear loop->simduid if simduid is about
7767 to be removed from cfun->local_decls.
7769 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7772 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
7775 2015-09-04 Tom de Vries <tom@codesourcery.com>
7777 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
7779 2015-09-04 Jeff Law <law@redhat.com>
7781 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
7782 unnecessary constructor. It's now trivial and implemented inside...
7783 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
7784 constructor. Add comments to various methods. Remove unused
7786 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
7787 * tree-vrp.c (identify_jump_threads): Likewise.
7788 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
7790 (thread_across_edge): Similarly.
7791 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
7792 arguments in constructor call.
7794 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
7796 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
7797 temp path contains a '-'.
7799 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
7800 Petr Murzin <petr.murzin@intel.com>
7801 Kirill Yukhin <kirill.yukhin@intel.com>
7803 * config/i386/i386-builtin-types.def
7804 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
7805 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
7806 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
7807 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
7808 * config/i386/i386.c
7809 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
7810 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
7811 IX86_BUILTIN_SCATTERALTDIV16SI.
7812 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
7813 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
7814 __builtin_ia32_scatteraltdiv8si.
7815 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
7816 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
7817 IX86_BUILTIN_SCATTERALTDIV16SI.
7818 (ix86_vectorize_builtin_scatter): New.
7819 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
7820 ix86_vectorize_builtin_scatter.
7822 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
7823 Petr Murzin <petr.murzin@intel.com>
7824 Kirill Yukhin <kirill.yukhin@intel.com>
7826 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
7827 * doc/tm.texi: Regenerate.
7828 * target.def: Add scatter builtin.
7829 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
7830 for loads/stores in case of gather/scatter accordingly.
7831 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
7832 STMT_VINFO_GATHER_P(S).
7833 (vect_check_gather): Rename to ...
7834 (vect_check_gather_scatter): this.
7835 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
7836 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
7837 (vect_check_gather_scatter): Use it instead of vect_check_gather.
7838 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
7839 variable and new checkings for it accordingly.
7841 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
7842 STMT_VINFO_GATHER_P(S).
7843 (vect_check_gather_scatter): Use it instead of vect_check_gather.
7844 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
7846 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7848 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
7850 (mulv16qi3): New define_expand.
7852 2015-09-03 Martin Sebor <msebor@redhat.com>
7855 * doc/extend.texi (Other Builtins): Document when the address
7856 of a built-in function can be taken.
7858 2015-09-03 Richard Biener <rguenther@suse.de>
7860 * dwarf2out.c (flush_limbo_die_list): Split out from ...
7861 (dwarf2out_early_finish): ... here.
7862 (dwarf2out_finish): Do not call dwarf2out_early_finish but
7863 flush_limbo_die_list. Assert we have no deferred asm names.
7865 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7867 * optabs.c (expand_binop): Don't create a broadcast vector with a
7868 source element wider than the inner mode.
7870 2015-09-03 Richard Biener <rguenther@suse.de>
7872 * varasm.c (output_constant): Use fold_convert instead of
7875 2015-09-03 Tom de Vries <tom@codesourcery.com>
7877 PR tree-optimization/65637
7878 * omp-low.c (expand_omp_for_static_chunk): Handle case that
7879 fin_bb has 2 predecessors.
7881 2015-09-03 Tom de Vries <tom@codesourcery.com>
7883 PR tree-optimization/65637
7884 * omp-low.c (find_phi_with_arg_on_edge): New function.
7885 (expand_omp_for_static_chunk): Fix inner loop phi.
7887 2015-09-03 Tom de Vries <tom@codesourcery.com>
7889 PR tree-optimization/65637
7890 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
7893 2015-09-03 Tom de Vries <tom@codesourcery.com>
7895 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
7897 2015-09-03 Tom de Vries <tom@codesourcery.com>
7899 * doc/invoke.texi (parloops-chunk-size): Add item.
7900 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
7901 * tree-parloops.c: Include params.h.
7902 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
7903 param parloops-chunk-size is used.
7905 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7908 * fold-const.c (fold_binary_loc) : Move
7909 Transform (x >> c) << c into x & (-1<<c) or
7910 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
7911 types using simplify and match.
7912 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
7913 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
7915 2015-09-03 Richard Biener <rguenther@suse.de>
7918 * tree-ssa-structalias.c (ctor_for_analysis): New function.
7919 (create_variable_info_for_1): Use ctor_for_analysis instead
7921 (create_variable_info_for): Likewise.
7923 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
7926 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
7927 in new callgraph edge.
7929 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
7934 * config/aarch64/aarch64-simd.md
7935 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
7936 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
7937 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
7938 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
7940 2015-09-02 Alan Modra <amodra@gmail.com>
7942 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
7943 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
7944 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
7946 2015-09-02 Alan Modra <amodra@gmail.com>
7949 * config/rs6000/predicates.md (current_file_function_operand): Don't
7950 return true for weak symbols.
7951 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
7953 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
7954 Andrew Bennett <andrew.bennett@imgtec.com>
7956 * config/mips/mips-opts.h (mips_cb_setting): New enum.
7957 * config/mips/mips-protos.h: Add definitions for
7958 mips_output_jump and mips_output_equal_conditional_branch
7959 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
7961 (mips_emit_compare): Add support for the MIPS R6 conditional
7963 (mips_process_sync_loop): Likewise.
7964 (mips_output_order_conditional_branch): Likewise.
7965 (mips16_build_call_stub): Change MIPS_CALL to
7967 (mips_print_operand_punctuation): Update 's' case to only
7968 apply to micromips r2.
7969 (mips_adjust_insn_length): Add support for forbidden slot
7971 (mips_avoid_hazard): Likewise.
7972 (mips_reorg_process_insns): Likewise.
7973 (mips_output_jump): New function.
7974 (mips_output_equal_conditional_branch): Likewise.
7975 (mips_output_conditional_branch): Use jrc/bc if compact
7976 branch support is enabled. Ensure the forbidden slots
7977 between the two branch instructions is filled with a nop.
7978 (mips_option_override): Add support to process the compact
7979 branch option and set the correct defaults. Prevent
7980 non-explict relocs being using for MIPS R6.
7981 (mips_trampoline_init): Add compact branch support.
7982 (mips_mult_zero_zero_cost): Allow zero initialisation of
7983 accumulators with TARGET_DSP.
7984 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
7985 (TARGET_CB_MAYBE): New define.
7986 (TARGET_CB_ALWAYS): New define.
7987 (ISA_HAS_DELAY_SLOTS): New define.
7988 (ISA_HAS_COMPACT_BRANCHES): New define.
7989 (ISA_HAS_JRC): New define.
7990 (MIPS_BRANCH_C): New define.
7991 (MIPS_CALL): Removed.
7992 (MICROMIPS_J): Removed.
7993 * config/mips/mips.md (compact_form): New attr.
7994 (hazard): Add support for forbidden slots.
7995 (define_delay): Add support for compact branches.
7996 (*branch_order<mode>): Likewise.
7997 (*branch_order<mode>_inverted): Likewise.
7998 (*branch_equality<mode>): Likewise.
7999 (*branch_equality<mode>_inverted): Likewise.
8000 (*jump_absolute): Likewise.
8001 (*jump_pic): Likewise.
8002 (indirect_jump): Use mips_output_jump to produce assembly output.
8003 (tablejump_<mode>"): Likewise.
8004 (*<optab>"): Likewise.
8005 (<optab>_internal): Likewise.
8006 (sibcall_internal): Likewise.
8007 (sibcall_value_internal): Likewise.
8008 (sibcall_value_multiple_internal): Likewise.
8009 (call_internal): Likewise.
8010 (call_split): Likewise.
8011 (call_internal_direct): Likewise.
8012 (call_direct_split): Likewise.
8013 (call_value_internal): Likewise.
8014 (call_value_split): Likewise.
8015 (call_value_internal_direct): Likewise.
8016 (call_value_direct_split): Likewise.
8017 (call_value_multiple_internal): Likewise.
8018 (call_value_multiple_split): Likewise.
8019 (mips_get_fcsr_mips16_<mode>): Likewise.
8020 (mips_set_fcsr_mips16_<mode>): Likewise.
8021 (tls_get_tp_mips16_<mode>): Likewise.
8022 * config/mips/mips.opt: Add -mcompact-branches option.
8023 * config/mips/predicates.md (order_operator): Ensure the
8024 conditional compact branches are only used if the ISA them.
8025 * doc/invoke.texi: Document -mcompact-branches option.
8027 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
8030 * lra-lives.c (process_bb_lives): Process move pseudos with the
8031 same value for copies and preferences
8032 * lra-constraints.c (match_reload): Create match reload pseudo
8033 with the same value from single dying input pseudo.
8035 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
8038 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
8040 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
8042 * trans-mem.c: Add contributed-by.
8043 * trans-mem.h: Same.
8045 2015-09-01 Richard Biener <rguenther@suse.de>
8047 * expr.c (expand_expr_real_1): For expanding TERed defs
8048 set the current location to that of the def if not UNKNOWN.
8050 2015-09-01 David Sherwood <david.sherwood@arm.com>
8052 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
8054 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8056 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
8057 then_cost, else_cost fields. Change branch_cost field to unsigned int.
8058 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
8060 (noce_simple_bbs): New function.
8061 (noce_try_move): Bail if basic blocks are not simple.
8062 (noce_try_store_flag): Likewise.
8063 (noce_try_store_flag_constants): Likewise.
8064 (noce_try_addcc): Likewise.
8065 (noce_try_store_flag_mask): Likewise.
8066 (noce_try_cmove): Likewise.
8067 (noce_try_minmax): Likewise.
8068 (noce_try_abs): Likewise.
8069 (noce_try_sign_mask): Likewise.
8070 (noce_try_bitop): Likewise.
8071 (bbs_ok_for_cmove_arith): New function.
8072 (noce_emit_all_but_last): Likewise.
8073 (noce_emit_insn): Likewise.
8074 (noce_emit_bb): Likewise.
8075 (noce_try_cmove_arith): Handle non-simple basic blocks.
8076 (insn_valid_noce_process_p): New function.
8077 (contains_mem_rtx_p): Likewise.
8078 (bb_valid_for_noce_process_p): Likewise.
8079 (noce_process_if_block): Allow non-simple basic blocks
8082 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
8084 * tree-ssa-dom.c (record_equivalences_from_phis,
8085 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
8086 (lookup_avail_expr): Likewise, and remove comment and unused temp.
8088 2015-09-01 Nick Clifton <nickc@redhat.com>
8090 * config/msp430/msp430.opt (mcpu): Fix typo.
8092 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8094 * config/aarch64/aarch64.c (aarch64_set_current_function):
8095 Re-layout any vector parameters have non-simd layout.
8096 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
8098 (aarch64_simd_expand_args): Delete call to the above.
8100 2015-08-31 Mike Frysinger <vapier@gentoo.org>
8102 * doc/invoke.texi (asan-stack): Add space before option.
8104 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
8106 * tree.h (zerop): New function.
8107 * tree.c (zerop): Likewise.
8108 (element_precision): Handle expressions.
8109 * match.pd (define_predicates): Add zerop.
8110 (x <= +Inf): Fix comment.
8111 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
8112 * fold-const.c (fold_binary_loc): ... here. Remove.
8114 2015-08-31 Richard Biener <rguenther@suse.de>
8117 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
8119 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
8121 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
8122 (CEXPI): New operator list.
8123 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
8124 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
8126 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
8128 2015-08-31 Tom de Vries <tom@codesourcery.com>
8130 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
8131 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
8133 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
8134 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
8135 (rewrite_into_loop_closed_ssa): ... here.
8136 (replace_uses_in_dominated_bbs): Remove function.
8137 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
8138 rewrite_into_loop_closed_ssa_1.
8140 2015-08-31 Michael Matz <matz@suse.de>
8142 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
8143 enter entry and exit blocks for reverse post order.
8145 2015-08-31 Richard Biener <rguenther@suse.de>
8147 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
8148 (lto_location_cache::current_sysp): Likewise.
8149 (output_block::current_sysp): Likewise.
8150 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
8151 (lto_location_cache::apply_location_cache): Properly record
8152 system header locations.
8153 (lto_location_cache::input_location): Input whether a file
8155 * lto-streamer-out.c (lto_output_location): Stream whether a file
8158 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8161 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
8163 2015-08-31 Tom de Vries <tom@codesourcery.com>
8165 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
8166 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
8167 Improve function header comments.
8169 2015-08-30 Michael Collison <michael.collison@linaro.org>
8172 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
8175 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8177 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
8178 special_handling bitfield.
8179 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
8180 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
8181 that represents a general xxpermdi.
8182 (insn_is_swappable_p): Add handling for vec_concat of two
8183 doublewords, which maps to a specific xxpermdi.
8184 (adjust_xxpermdi): New function.
8185 (adjust_concat): Likewise.
8186 (handle_special_swappables): Call adjust_xxpermdi and
8188 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
8190 2015-08-30 Rich Felker <dalias@libc.org>
8192 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
8193 case instead of sh[123456ble]-*-*.
8195 2015-08-29 Anatoly Sokolov <aesok@post.ru>
8197 * ira.c (print_unform_and_important_classes,
8198 print_translated_classes): Remove reg_class_names static array.
8199 (print_unform_and_important_classes): Rename to ...
8200 (print_uniform_and_important_classes): ... this.
8201 (ira_debug_allocno_classes): Update accordingly.
8203 2015-08-29 Tom de Vries <tom@codesourcery.com>
8205 PR tree-optimization/46193
8206 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
8209 2015-08-28 Jeff Law <law@redhat.com>
8212 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
8213 unable to find X NE 0 in the tables, return X as the simplified
8215 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
8216 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
8218 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
8219 after removing the control flow statement and unnecessary edges.
8221 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
8224 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8226 PR tree-optimization/67283
8227 * tree-sra.c (type_consists_of_records_p): Rename to...
8228 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8230 (completely_scalarize_record): Rename to...
8231 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
8233 (scalarize_elem): New.
8235 2015-08-28 Jiong Wang <jiong.wang@arm.com>
8237 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
8238 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
8239 (aarch64_symbol_type): Likewise.
8240 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8242 (aarch64_expand_mov_immediate): Likewise.
8243 (aarch64_print_operand): Likewise.
8244 (aarch64_classify_tls_symbol): Likewise.
8246 2015-08-28 Richard Biener <rguenther@suse.de>
8248 * cgraphunit.c (symbol_table::compile): Move early debug generation
8250 (symbol_table::finalize_compilation_unit): ... back here and
8251 add a !seen_error () guard.
8253 2015-08-27 Sebastian Pop <s.pop@samsung.com>
8255 * toplev.c (process_options): Do not use flag_loop_block,
8256 flag_loop_interchange, and flag_loop_strip_mine. Add check for
8257 flag_loop_optimize_isl.
8259 2015-08-27 Sebastian Pop <s.pop@samsung.com>
8261 * Makefile.in (OBJS): Remove graphite-blocking.o and
8262 graphite-interchange.o.
8263 * common.opt (floop-strip-mine, floop-interchange, floop-block):
8264 Alias of floop-nest-optimize.
8265 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
8266 Document as alias of -floop-nest-optimize.
8267 * graphite-blocking.c: Remove.
8268 * graphite-interchange.c: Remove.
8269 * graphite-optimize-isl.c: Include dumpfile.h.
8270 (getScheduleForBand): Add dump for tiled loops. Use
8271 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
8272 * graphite-poly.c (scop_max_loop_depth): Remove.
8273 (print_scattering_function_1): Remove.
8274 (print_scattering_function): Remove.
8275 (print_scattering_functions): Remove.
8276 (debug_scattering_function): Remove.
8277 (debug_scattering_functions): Remove.
8278 (apply_poly_transforms): Remove use of flag_loop_block,
8279 flag_loop_strip_mine, and flag_loop_interchange.
8280 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
8282 (print_pdr_access_layout): Remove.
8283 (print_pdr): Print ISL representation.
8284 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
8285 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
8287 (openscop_print_pbb_domain): Remove.
8288 (print_pbb): Remove call to print_scattering_function.
8289 (openscop_print_scop_context): Remove.
8290 (print_scop_context): Do not print matrices anymore.
8291 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
8292 SCOP_TRANSFORMED_SCHEDULE.
8293 (print_isl_set): Add printing of a new line.
8294 (print_isl_map): Same.
8295 (print_isl_aff): Same.
8296 (print_isl_constraint): Same.
8297 (loop_to_lst): Remove.
8298 (scop_to_lst): Remove.
8299 (lst_indent_to): Remove.
8300 (print_lst): Remove.
8301 (debug_lst): Remove.
8302 (dot_lst_1): Remove.
8304 (reverse_loop_at_level): Remove.
8305 (reverse_loop_for_pbbs): Remove.
8306 * graphite-poly.h (pdr_dim_iter_domain): Remove.
8307 (pdr_nb_params): Remove.
8308 (pdr_alias_set_dim): Remove.
8309 (pdr_subscript_dim): Remove.
8310 (pdr_iterator_dim): Remove.
8311 (pdr_parameter_dim): Remove.
8312 (same_pdr_p): Remove.
8313 (struct poly_scattering): Remove.
8314 (struct poly_bb): Remove _original, _transformed, _saved.
8315 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
8316 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
8317 (PBB_NB_LOCAL_VARIABLES): Remove.
8318 (PBB_NB_SCATTERING_TRANSFORM): Remove.
8319 (schedule_to_scattering): Remove.
8320 (number_of_write_pdrs): Remove.
8321 (pbb_dim_iter_domain): Remove.
8322 (pbb_nb_params): Remove.
8323 (pbb_nb_scattering_orig): Remove.
8324 (pbb_nb_scattering_transform): Remove.
8325 (pbb_nb_dynamic_scattering_transform): Remove.
8326 (pbb_nb_local_vars): Remove.
8327 (pbb_iterator_dim): Remove.
8328 (pbb_parameter_dim): Remove.
8329 (psco_scattering_dim): Remove.
8330 (psct_scattering_dim): Remove.
8331 (psct_local_var_dim): Remove.
8332 (psco_iterator_dim): Remove.
8333 (psct_iterator_dim): Remove.
8334 (psco_parameter_dim): Remove.
8335 (psct_parameter_dim): Remove.
8336 (psct_dynamic_dim): Remove.
8337 (psct_static_dim): Remove.
8338 (psct_add_local_variable): Remove.
8339 (new_lst_loop): Remove.
8340 (new_lst_stmt): Remove.
8343 (lst_add_loop_under_loop): Remove.
8344 (lst_depth): Remove.
8345 (lst_dewey_number): Remove.
8346 (lst_dewey_number_at_depth): Remove.
8349 (lst_find_pbb): Remove.
8350 (find_lst_loop): Remove.
8351 (lst_find_first_pbb): Remove.
8352 (lst_empty_p): Remove.
8353 (lst_find_last_pbb): Remove.
8354 (lst_contains_p): Remove.
8355 (lst_contains_pbb): Remove.
8356 (lst_create_nest): Remove.
8357 (lst_remove_from_sequence): Remove.
8358 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
8359 (lst_niter_for_loop): Remove.
8360 (pbb_update_scattering): Remove.
8361 (lst_update_scattering_under): Remove.
8362 (lst_update_scattering): Remove.
8363 (lst_insert_in_sequence): Remove.
8364 (lst_replace): Remove.
8365 (lst_substitute_3): Remove.
8366 (lst_distribute_lst): Remove.
8367 (lst_remove_all_before_including_pbb): Remove.
8368 (lst_remove_all_before_excluding_pbb): Remove.
8369 (struct scop): Remove original_schedule, transformed_schedule, and
8371 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
8372 (SCOP_SAVED_SCHEDULE): Remove.
8373 (poly_scattering_new): Remove.
8374 (poly_scattering_free): Remove.
8375 (poly_scattering_copy): Remove.
8376 (store_scattering_pbb): Remove.
8377 (store_lst_schedule): Remove.
8378 (restore_lst_schedule): Remove.
8379 (store_scattering): Remove.
8380 (restore_scattering_pbb): Remove.
8381 (restore_scattering): Remove.
8382 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
8383 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
8384 compute the scattering polyhedron dimension from the dimension of
8386 (build_scop_scattering): Update call to
8387 build_pbb_scattering_polyhedrons.
8388 (build_poly_scop): Remove call to scop_to_lst.
8389 * graphite.c (graphite_transform_loops): Add call to print_scop.
8390 (gate_graphite_transforms): Remove use of flag_loop_block,
8391 flag_loop_interchange, and flag_loop_strip_mine.
8393 2015-08-27 Sebastian Pop <s.pop@samsung.com>
8395 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
8396 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
8397 -floop-nest-optimize.
8398 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
8399 (generate_luj_sepclass): Remove.
8400 (generate_luj_options): Remove.
8401 (set_options): Remove opt_luj.
8402 (scop_to_isl_ast): Remove opt_luj.
8403 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
8404 flag_loop_unroll_jam.
8405 (getPrevectorMap_full): Remove.
8406 (getScheduleForBandList): Remove map_sepcl.
8407 (getScheduleMap): Same.
8408 (apply_schedule_map_to_scop): Remove sepcl.
8409 (optimize_isl): Same.
8410 * graphite-poly.c (apply_poly_transforms): Remove check for
8411 flag_loop_unroll_jam.
8412 (new_poly_bb): Remove map_sepclass.
8413 * graphite-poly.h (struct poly_bb): Same.
8414 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
8415 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
8416 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
8417 * toplev.c (process_options): Remove flag_loop_unroll_jam.
8419 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
8422 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
8424 (UNSPEC_ADD_CARRY): Remove.
8425 (addqi3_cconly_overflow): New expander.
8426 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
8427 Adjust for changed add<mode>3_carry.
8428 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
8429 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
8430 (<plusminus_insn><mode>3_carry): Remove expander.
8431 (*<plusminus_insn><mode>3_carry): Split insn pattern to
8432 add<mode>3_carry and sub<mode>3_carry.
8433 (plusminus_carry_mnemonic): Remove code attribute.
8434 (add<mode>3_carry): Canonicalize insn pattern.
8435 (*addsi3_carry_zext): Ditto.
8436 (sub<mode>3_carry): Ditto.
8437 (*subsi3_carry_zext): Ditto.
8438 (adcx<mode>3): Remove insn pattern.
8439 (addcarry<mode>): New insn pattern.
8440 (subborrow<mode>): Ditto.
8441 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
8442 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
8443 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
8444 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
8445 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
8446 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
8447 Rewrite expander to not clobber carry flag chains.
8449 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
8451 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
8452 instead of a rotate.
8454 2015-08-27 Marek Polacek <polacek@redhat.com>
8457 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
8458 an entry into an irreducible region.
8460 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8462 * configure: Regenerate.
8464 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8466 PR tree-optimization/67283
8467 * tree-sra.c (type_consists_of_records_p): Rename to...
8468 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8470 (completely_scalarize_record): Rename to...
8471 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8472 (scalarize_elem): New.
8474 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8476 * tree-sra.c (completely_scalarize_var): Rename to...
8477 (create_total_scalarization_access): ... Here. Drop call to
8478 completely_scalarize_record.
8480 (analyze_all_variable_accesses): Replace completely_scalarize_var
8481 with create_total_scalarization_access and completely_scalarize_record.
8483 2015-08-27 Alan Modra <amodra@gmail.com>
8486 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
8489 2015-08-27 Richard Biener <rguenther@suse.de>
8491 * passes.c (rest_of_decl_compilation): Guard early_global_decl
8492 call with !seen_error ().
8493 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
8494 early debug generation and finish...
8495 (symbol_table::compile): ... here to put it after a !seen_error ()
8498 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8500 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
8503 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8504 Andre Vieira <andre.simoesdiasvieira@arm.com>
8506 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
8507 (*cb<optab><mode>1): Likewise.
8508 (*tb<optab><mode>1): Likewise.
8509 (*cb<optab><mode>1): Likewise.
8510 * config/aarch64/iterators.md (inv_cb): New code attribute.
8512 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
8513 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
8515 2015-08-27 Richard Biener <rguenther@suse.de>
8517 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
8519 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
8521 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
8524 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8526 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
8529 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
8531 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
8532 floating point in VSX registers.
8533 (rs6000_output_move_128bit): Always print out the set insn if we
8534 can't generate an appropriate 128-bit move.
8535 (rs6000_generate_compare): Add support for IEEE 128-bit floating
8536 point in VSX registers comparisons.
8537 (rs6000_expand_float128_convert): Likewise.
8539 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
8540 predicate for only GPR hard registers.
8542 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
8543 modes to iterators. Add new iterators for moving 128-bit values in
8544 scalar FPR registers and VSX registers.
8545 (FMOVE128): Likewise.
8546 (FMOVE128_FPR): Likewise.
8547 (FMOVE128_GPR): Likewise.
8548 (FMOVE128_VSX): Likewise.
8549 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
8554 (RELOAD): Add IEEE 128-bit floating point modes.
8555 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
8556 floating point in VSX registers modes.
8557 (signbit<mode>2, IBM128 iterator): Likewise.
8558 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
8559 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
8561 (neg<mode>2, TFIFKF iterator): Likewise.
8562 (negtf2_internal): Likewise.
8564 (abs<mode>2, TFIFKF iterator): Likewise.
8565 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
8566 VSX insn support for negate, absolute value, and negative absolute
8568 (ieee_128bit_vsx_neg<mode>2): Likewise.
8569 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
8570 (ieee_128bit_vsx_abs<mode>2): Likewise.
8571 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8572 (ieee_128bit_vsx_nabs<mode>2): Likewise.
8573 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8574 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
8575 floating point in VSX registers.
8576 (unpack<mode>_dm): Likewise.
8577 (unpack<mode>_nodm): Likewise.
8578 (pack<mode>): Likewise.
8579 (unpackv1ti): Likewise.
8580 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
8581 (packv1ti): Likewise.
8582 (pack<mode>, FMOVE128_VSX iterator): Likewise.
8583 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
8585 (extenddftf2_internal): Likewise.
8586 (trunctfdf2): Likewise.
8587 (trunctfdf2_internal2): Likewise.
8588 (fix_trunc_helper): Likewise.
8589 (fix_trunctfdi2"): Likewise.
8590 (floatditf2): Likewise.
8591 (floatuns<mode>tf2): Likewise.
8592 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8593 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8594 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8595 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8596 (float<SDI:mode><IFKF:mode>2): Likewise.
8597 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8599 2015-08-26 Renlin Li <renlin.li@arm.com>
8601 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
8603 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
8604 Jiong Wang <jiong.wang@arm.com>
8606 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
8607 (tlsie_tiny_<mode>): New define_insn.
8608 (tlsie_tiny_sidi): Likewise.
8609 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
8611 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
8612 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8614 (aarch64_expand_mov_immediate): Likewise.
8615 (aarch64_print_operand): Likewise.
8616 (arch64_classify_tls_symbol): Likewise.
8618 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8620 * config/arm/arm-arches.def: Replace single value flags with
8621 an initializer built from ARM_FSET_MAKE_CPU1.
8622 * config/arm/arm-cores.def: Likewise.
8623 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
8624 derivation from the ARM_CORE macro definition, use the given value
8626 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
8627 ARM_ARCH macro definition, use the given value instead.
8629 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8631 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
8633 (struct builtin_description): Replace field mask with field
8635 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
8636 (IWMMXT2_BUILTIN): Likewise.
8637 (IWMMXT2_BUILTIN2): Likewise.
8638 (FP_BUILTIN): Likewise.
8639 (CRC32_BUILTIN): Likewise.
8640 (CRYPTO_BUILTIN): Likewise.
8641 (iwmmx_mbuiltin): Likewise.
8642 (iwmmx2_mbuiltin): Likewise.
8643 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
8644 struct builtin_description.
8646 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8648 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
8649 (struct builtin_description): Change type of mask to unsigned
8651 * config/arm/arm-protos.h (insn_flags): Declare as type
8653 (tune_flags): Likewise.
8654 * config/arm/arm.c (feature_count): New.
8655 (insn_flags): Define as type arm_feature_set.
8656 (tune_flags): Likewise.
8657 (struct processors): Define field flags as type arm_feature_set.
8658 (all_cores): Update for change to struct processors.
8659 (all_architectures): Likewise.
8660 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
8662 (arm_option_override_internal): Likewise.
8663 (arm_option_override): Likewise.
8665 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
8666 Jiong Wang <jiong.wang@arm.com>
8668 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
8669 tls size for tiny, small, large memory model.
8670 (aarch64_load_symref_appropriately): Support new symbol types.
8671 (aarch64_expand_mov_immediate): Likewise.
8672 (aarch64_print_operand): Likewise.
8673 (aarch64_classify_tls_symbol): Likewise.
8674 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
8675 (aarch64_symbol_type): Likewise.
8676 * config/aarch64/aarch64.md (tlsle): Deleted.
8677 (tlsle12_<mode>): New define_insn.
8678 (tlsle24_<mode>): Likewise.
8679 (tlsle32_<mode>): Likewise.
8680 (tlsle48_<mode>): Likewise.
8681 * doc/sourcebuild.texi (AArch64-specific attributes): Document
8684 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8686 * config/arm/arm-protos.h (FL_NONE): New.
8688 (arm_feature_set): New.
8689 (ARM_FSET_MAKE): New.
8690 (ARM_FSET_MAKE_CPU1): New.
8691 (ARM_FSET_MAKE_CPU2): New.
8692 (ARM_FSET_CPU1): New.
8693 (ARM_FSET_CPU2): New.
8694 (ARM_FSET_EMPTY): New.
8695 (ARM_FSET_ANY): New.
8696 (ARM_FSET_HAS_CPU1): New.
8697 (ARM_FSET_HAS_CPU2): New.
8698 (ARM_FSET_HAS_CPU): New.
8699 (ARM_FSET_ADD_CPU1): New.
8700 (ARM_FSET_ADD_CPU2): New.
8701 (ARM_FSET_DEL_CPU1): New.
8702 (ARM_FSET_DEL_CPU2): New.
8703 (ARM_FSET_UNION): New.
8704 (ARM_FSET_INTER): New.
8705 (ARM_FSET_XOR): New.
8706 (ARM_FSET_EXCLUDE): New.
8707 (AFM_FSET_IS_EMPTY): New.
8708 (ARM_FSET_CPU_SUBSET): New.
8710 2015-08-26 Jiong Wang <jiong.wang@arm.com>
8712 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8713 SYMBOL_TLSLE to SYMBOL_TLSLE24.
8714 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8716 (aarch64_expand_mov_immediate): Likewise.
8717 (aarch64_print_operand): Likewise.
8718 (aarch64_classify_symbol): Likewise.
8720 2015-08-26 Jiong Wang <jiong.wang@arm.com>
8722 * config/aarch64/aarch64.opt (mtls-size): New entry.
8723 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
8724 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
8725 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
8727 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8729 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
8730 ARM_CORE entry. Fix some white-space.
8731 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
8732 ARM_CORE definition.
8734 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8736 * fold-const.c (fold_binary_loc) : Move Optimize
8737 root(x)*root(y) as root(x*y) to match.pd.
8738 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
8739 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
8740 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
8741 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
8742 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
8743 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
8744 (mult (exps:s @0) (exps:s @1)) : New simplifier.
8745 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
8746 (rdiv @0 (exps:s @1)) : New simplifier.
8748 2015-08-25 Joseph Myers <joseph@codesourcery.com>
8750 * gcc.c (driver::finalize): Only assign to extra_specs if
8753 2015-08-25 Marek Polacek <polacek@redhat.com>
8756 * varasm.c (declare_weak): Return after giving an error.
8758 2015-08-25 David Malcolm <dmalcolm@redhat.com>
8760 * gcc-main.c (main): Add params to driver ctor.
8761 * gcc.c (class env_manager): New.
8763 (env_manager::init): New.
8764 (env_manager::get): New.
8765 (env_manager::xput): New.
8766 (env_manager::restore): New.
8767 Poison getenv and putenv.
8768 (DEFAULT_TARGET_SYSTEM_ROOT): New.
8769 (target_system_root): Update initialization to use
8770 DEFAULT_TARGET_SYSTEM_ROOT.
8771 (struct spec_list): Add field "default_ptr".
8772 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
8773 (init_spec): Likewise.
8774 (set_spec): Clear field "default_ptr".
8775 (read_specs): Free "spec" and "buffer".
8776 (xputenv): Reimplement in terms of env_manager.
8777 (process_command): Replace ::getenv calls with calls to the
8778 env_manager singleton.
8779 (process_brace_body): Free string in three places.
8780 (driver::driver): New.
8781 (driver::~driver): New.
8782 (used_arg): Convert from a function to...
8783 (class used_arg_t): ...this class, and...
8784 (used_arg): ...this new global instance.
8785 (used_arg_t::finalize): New function.
8786 (getenv_spec_function): Add "const" to local "value". Replace
8787 ::getenv call with call to the env_manager singleton.
8788 (path_prefix_reset): New function.
8789 (driver::finalize): New function.
8790 * gcc.h (driver::driver): New.
8791 (driver::~driver): New.
8792 (driver::finalize): New.
8794 2015-08-25 Nathan Sidwell <nathan@acm.org>
8796 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
8797 target doesn't have one.
8799 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
8802 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
8804 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
8807 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
8808 a define_insn, remove second alternative.
8810 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
8811 Joseph Myers <joseph@codesourcery.com>
8813 * gcc.c (struct switchstr): Expand comment.
8815 2015-08-25 Nathan Sidwell <nathan@acm.org>
8817 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
8818 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
8820 2015-08-25 Richard Biener <rguenther@suse.de>
8823 * genmatch.c (expr::gen_transform): Verify the result of
8824 builtin_decl_implicit.
8825 (dt_simplify::gen_1): Likewise.
8827 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
8829 * config/arm/constraints.md: Also list Cs and US ARM-specific
8830 constraints as used.
8832 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
8835 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
8837 (nonpic_symbol_mentioned_p): Likewise.
8838 (sh_delegitimize_address): Likewise.
8839 (sh_function_ok_for_sibcall): Take into account weak symbols.
8840 (sh_expand_sym_label2reg): New.
8841 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
8842 * config/sh/sh.md (UNSPEC_PCREL): New enum.
8843 (call_pcrel): Use sh_expand_sym_label2reg.
8844 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
8845 (symPCREL_label2reg) New expand.
8847 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
8849 * graphite-poly.c: Change type of region from void* to sese.
8850 * graphite-poly.h (struct scop): Changing the type of scop::region
8851 from void* to sese. Change accessor macro accordingly.
8852 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
8854 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
8856 * graphite-scop-detection.c (stmt_simple_for_scop_p):
8857 Constrain only on INTEGER_TYPE.
8859 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8862 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
8863 -mefficient-unaligned-vsx on ISA 2.7.
8865 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
8866 option to a masked option.
8868 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
8869 logic for -mefficient-unaligned-vsx so that it is set via an arch
8870 ISA option, instead of being set if -mtune=power8 is set. Move
8871 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
8872 near other default option handling.
8874 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8876 * genflags.c (gen_macro): Delete.
8877 (gen_proto): Don't create GEN.*CALL.* macros.
8878 * gensupport.h (get_file_location): Declare.
8879 * gensupport.c (rtx_locs): New variable.
8880 (read_md_rtx): Record rtx locations.
8881 (get_file_location): New function.
8882 * target-insns.def (call, call_pop, call_value, call_value_pop)
8883 (sibcall, sibcall_value): New patterns.
8884 * gentarget-def.c (parse_argument): New function.
8885 (def_target_insn): Use it. Handle optional operands. Raise an
8886 error if an .md pattern has the wrong number of operands for the
8887 pattern name. Remove the names of unused operands from the prototype.
8888 * builtins.c (expand_builtin_apply): Use targetm functions
8889 instead of HAVE_call_value and GEN_CALL_VALUE.
8890 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
8891 and sibcall_value_pop.
8892 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
8894 * config/alpha/alpha.md (untyped_call): Likewise.
8895 * config/iq2000/iq2000.md (untyped_call): Likewise.
8896 * config/m68k/m68k.md (untyped_call): Likewise.
8897 * config/mips/mips.md (untyped_call): Likewise.
8898 * config/pa/pa.md (untyped_call): Likewise.
8899 * config/rs6000/rs6000.md (untyped_call): Likewise.
8900 * config/sparc/sparc.md (untyped_call): Likewise.
8901 * config/tilegx/tilegx.md (untyped_call): Likewise.
8902 * config/tilepro/tilepro.md (untyped_call): Likewise.
8903 * config/visium/visium.md (untyped_call): Likewise.
8904 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
8905 gen_call_value instead of GEN_CALL_VALUE.
8906 * config/arm/arm.md (untyped_call): Likewise.
8907 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
8910 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8912 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
8913 (have_cbranchcc4): New variable.
8914 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
8915 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
8916 (if_convert): Initialize have_cbranchcc4.
8918 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8920 * builtins.c (expand_cmpstrn): Rename to...
8921 (expand_cmpstrn_or_cmpmem): ...this.
8922 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
8923 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
8924 Remove mode argument.
8925 (expand_builtin): Update accordingly.
8927 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8929 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
8930 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
8931 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
8932 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
8933 Add predicates for operands 0 and 3.
8934 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
8936 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
8937 immediate_operand to nonmemory_operand.
8939 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8941 * df-scan.c (df_insn_info_init_fields): New function, split out
8943 (df_insn_create_insn_record): ...here.
8944 (df_insn_info_free_fields): New function, split out from...
8945 (df_insn_info_delete): ...here.
8946 (df_insn_rescan): Use the new functions instead of freeing and
8947 reallocating the df_insn_info.
8949 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8951 * doc/install.texi (Binaries): Remove links no longer valid.
8953 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
8955 * config/nvptx/mkoffload.c (process): Replace
8956 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
8958 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
8961 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
8963 2015-08-24 Renlin Li <renlin.li@arm.com>
8965 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
8966 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
8967 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
8968 * config/arm/constraints.md ("j"): Add check for high code.
8970 2015-08-24 Tom de Vries <tom@codesourcery.com>
8972 PR tree-optimization/65468
8973 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
8976 2015-08-24 Nathan Sidwell <nathan@acm.org>
8978 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
8979 change to nvptx_type_from_mode call. Use arg_promotion for both
8980 split and non-split args.
8982 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8984 * target-insns.def (movstr): New pattern.
8985 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
8986 (expand_movstr): Use targetm rather than HAVE_movstr/
8989 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8991 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
8994 2015-08-24 Andrew Pinski <apinski@cavium.com>
8996 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
8997 AARCH64_EXTRA_TUNING_OPTION.
8998 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
9000 (aarch64_extra_tuning_flags): Base the shifted value on the index
9001 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
9002 * config/aarch64/aarch64.c: Remove the last argument to
9003 AARCH64_EXTRA_TUNING_OPTION.
9005 2015-08-23 Nathan Sidwell <nathan@acm.org>
9007 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
9009 (nvptx_declare_function_name): Insert formatting tabs for
9012 2015-08-23 Tom de Vries <tom@codesourcery.com>
9014 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
9015 parm_decl, rather than generating a dummy default def in cfun.
9016 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
9017 ssa_name from cfun and child_fn do not share a stmt as def stmt.
9018 (move_stmt_op): Handle PARM_DECl.
9019 (gather_ssa_name_hash_map_from): New function.
9020 (move_sese_region_to_fn): Add default defs for function params, and add
9021 them to vars_map. Release copied ssa names.
9022 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
9024 2015-08-23 Tom de Vries <tom@codesourcery.com>
9026 * doc/sourcebuild.texi: Rename vect_no_int_max with
9027 vect_no_int_min_max. Update description.
9029 2015-08-22 Andrew Pinski <apinski@cavium.com>
9031 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
9032 * config/aarch64/aarch64-protos.h
9033 (aarch64_fusion_pairs_index): New enum.
9034 (aarch64_fusion_pairs): Base the shifted value on the index instead
9035 Rewrite AARCH64_FUSE_ALL to be based on the end index.
9036 of the argument to AARCH64_FUSION_PAIR.
9037 * config/aarch64/aarch64.c: Remove the last argument to
9038 AARCH64_FUSION_PAIR.
9040 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
9042 * dominance.c (new_zero_array): Define.
9043 (dom_info): Redefine as class with proper encapsulation.
9044 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
9046 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
9047 allocations/deallocations. Pass function as parameter (instead of
9049 (dom_info::get_idom): Define accessor method.
9050 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
9051 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
9052 (calculate_dominance_info): Adjust to use dom_info class.
9053 (verify_dominators): Likewise.
9055 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
9057 * print-rtl.c (print_rtx): Check the correct range for
9058 flag_dump_unnumbered_links to behave as documented.
9060 PR rtl-optimization/67227
9061 PR rtl-optimization/64164
9062 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
9063 (nonoverlapping_memrefs_p): Test offsets and sizes when given
9064 identical gimple_reg exprs.
9066 2015-08-21 Nathan Sidwell <nathan@acm.org>
9068 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
9070 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
9071 crtl->stack_alignment_needed to determine alignment.
9072 (nvptx_get_drap_rtx): New.
9073 (TARGET_GET_DRAP_RTX): Override.
9074 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
9076 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9078 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
9080 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9082 * configure.ac: Remove uwin* cases.
9083 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
9084 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
9085 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
9086 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
9087 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
9088 i[34567]86-*-uwin*, powerpc-*-beos*.
9090 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
9092 * gencodes.c (gencodes): Print the comma for the preceding
9093 enum value rather than the current one. Use aliased enum values
9094 rather than #defines for compiled-out patterns.
9095 (main): Update accordingly. Replace LAST_INSN_CODE with
9097 * lra.c (insn_code_data): Update accordingly.
9098 (finish_insn_code_data_once, get_static_insn_data): Likewise.
9099 * recog.h (target_recog): Likewise.
9100 (preprocess_insn_constraints): Change parameter to unsigned int.
9101 * recog.c (preprocess_insn_constraints): Likewise.
9102 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
9103 * tree-vect-stmts.c (vectorizable_operation): Simplify.
9105 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
9107 PR rtl-optimization/61657
9108 * loop-iv.c (iv_number_of_iterations): Declare up and down as
9109 unsigned. Remove superflous uint64_t cast.
9111 2014-08-21 Felix Yang <felix.yang@huawei.com>
9112 Jiji Jiang <jiangjiji@huawei.com>
9114 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
9115 argument and get builtin function code directly from CALL.
9116 (gimple_stringop_fixed_value): Modified accordingly.
9117 (gimple_stringops_transform, gimple_stringops_values_to_profile):
9118 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
9120 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
9122 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
9124 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9126 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
9128 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
9129 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
9130 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
9131 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
9132 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
9133 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
9134 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
9135 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
9136 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
9137 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
9139 * match.pd (SIN ) : New Operator.
9140 (TAN) : New Operator.
9141 (mult (SQRT@1 @0) @1) : New simplifier.
9142 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
9143 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
9144 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
9145 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
9146 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
9147 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
9148 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
9149 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
9150 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
9151 (rdiv @0 (POW:s @1 @2)) : New simplifier.
9153 2015-08-21 Bin Cheng <bin.cheng@arm.com>
9155 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
9156 loop if EXPR is simplified to const value.
9158 2015-08-21 Yury Gribov <y.gribov@samsung.com>
9160 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
9161 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
9163 2015-08-21 Richard Biener <rguenther@suse.de>
9166 * gimple-fold.c (replace_stmt_with_simplification): Assert
9167 seq is empty when replacing a call with itself but different
9169 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
9170 a call require that it is const.
9172 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9174 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
9175 * builtins.c (get_object_alignment_2): Adjust.
9176 * varasm.c (align_variable): Likewise.
9177 (get_variable_align): Likewise.
9178 (build_constant_desc): Likewise.
9179 (force_const_mem): Likewise.
9180 * doc/tm.texi.in: Likewise.
9181 * doc/tm.texi: Regenerate.
9183 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9185 * genconfig.c (main): Always define HAVE_cc0.
9186 * recog.c (rest_of_handle_peephole2): Adjust.
9188 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9190 * reorg.c (relax_delay_slots): Don't use #if to check value of
9193 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9195 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
9196 * targhooks.c (default_have_conditional_execution): Adjust.
9198 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
9200 * rtl.h (rtvec_all_equal_p): Declare.
9201 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
9202 * rtl.c (rtvec_all_equal_p): New function.
9203 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
9204 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
9205 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
9206 * config/arm/arm.c (neon_vdup_constant): Likewise.
9207 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
9208 * config/tilegx/constraints.md (W, Y): Likewise.
9209 * config/tilepro/constraints.md (W, Y): Likewise.
9210 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
9211 (classify_immediate): Use unwrap_const_vec_duplicate.
9212 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
9213 (reg_or_v2s8bit_operand): Likewise.
9214 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
9215 (reg_or_v4s8bit_operand): Likewise.
9217 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9219 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
9220 (vec_shasigma_be): New #define.
9221 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
9222 (VPMSUMH): Likewise.
9223 (VPMSUMW): Likewise.
9224 (VPMSUMD): Likewise.
9225 (VPMSUM): New BU_P8V_OVERLOAD_2.
9226 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
9227 entries for VEC_MADD and VEC_VPMSUM.
9229 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
9231 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
9232 Multiply argument avr_n_flash by 64 to match unit of "KiB".
9233 (avr_pgm_check_var_decl): Same.
9235 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
9237 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
9238 initialization of HFmode scalar type (float16_t) to...
9239 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
9242 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
9244 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
9245 having an -mfp16-format.
9247 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
9249 * config/i386/predicates.md (vector_all_ones_operand): Use
9250 CONSTM1_RTX to simplify definition.
9252 2015-08-20 Richard Biener <rguenther@suse.de>
9254 * toplev.c (compile_file): Remove loop calling late_global_decl
9256 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
9257 on decls we assembled.
9259 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
9261 * common/config/aarch64/aarch64-common.c
9262 (AARCH64_CPU_NAME_LENGTH): Delete.
9263 (aarch64_option_extension): New.
9264 (all_extensions): Likewise.
9265 (processor_name_to_arch): Likewise.
9266 (arch_to_arch_name): Likewise.
9268 (all_architectures): Likewise.
9269 (aarch64_get_extension_string_for_isa_flags): Likewise.
9270 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
9272 * config/aarch64/aarch64-protos.h
9273 (aarch64_get_extension_string_for_isa_flags): New.
9274 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
9275 (aarch64_option_print): Get the string to print from
9276 aarch64_get_extension_string_for_isa_flags.
9277 (aarch64_declare_function_name): Likewise.
9278 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
9279 (MCPU_TO_MARCH_SPEC): This.
9280 (ASM_CPU_SPEC): Use it.
9281 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
9282 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
9283 (EXTRA_SPEC_FUNCTIONS): Use it.
9285 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
9287 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
9288 expansion when !ISA_HAS_LWL_LWR.
9289 (mips_block_move_straight): Update the size of elements copied to
9290 account for alignment when !ISA_HAS_LWL_LWR.
9291 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
9293 2015-08-19 Jiong Wang <jiong.wang@arm.com>
9295 * expr.c (expand_expr_real_2): Check gimple statement during
9298 2015-08-19 Magnus Granberg <zorry@gentoo.org>
9300 * common.opt (fstack-protector): Initialize to -1.
9301 (fstack-protector-all): Likewise.
9302 (fstack-protector-strong): Likewise.
9303 (fstack-protector-explicit): Likewise.
9304 * configure.ac: Add --enable-default-ssp.
9305 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
9306 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
9308 * doc/install.texi: Document --enable-default-ssp.
9309 * config.in: Regenerated.
9310 * configure: Likewise.
9312 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
9314 PR rtl-optimization/64164
9315 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
9316 (parm_in_stack_slot_p): ... this. Disregard mode, what
9317 matters is whether the parm will live in a pseudo or a stack
9319 (expand_one_ssa_partition): Deal with params without a default
9320 def. Disregard mode.
9321 * cfgexpand.h: Renamed function declaration.
9322 * tree-ssa-coalesce.c: Adjust.
9323 * function.c (split_complex_args): Allocate stack slot for
9324 unassigned parms before splitting.
9325 (parm_in_unassigned_mem_p): New. Use it instead of
9326 parm_maybe_byref_p throughout this file.
9327 (assign_parm_setup_block): Use it. Accept pseudos in the
9328 expand-assigned rtl.
9329 (assign_parm_setup_reg): Drop BLKmode requirement.
9330 (assign_parm_setup_stack): Allocate and fill in the address of
9331 unassigned MEM parms.
9333 2015-08-19 David Sherwood <david.sherwood@arm.com>
9335 * genmodes.c (emit_mode_unit_size_inline): New function.
9336 (emit_mode_unit_precision_inline): New function.
9337 (emit_insn_modes_h): Emit new #define. Emit new functions.
9338 (emit_mode_unit_size): New function.
9339 (emit_mode_unit_precision): New function.
9340 (emit_mode_adjustments): Add mode_unit_size adjustments.
9341 (emit_insn_modes_c): Emit new arrays.
9342 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
9343 use new inline methods.
9345 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9347 * config/aarch64/aarch64.c (bit_count): Delete prototype
9349 (aarch64_print_operand): Use popcount_hwi instead of the above.
9351 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9353 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
9356 2015-08-19 Marek Polacek <polacek@redhat.com>
9359 * gimple-ssa-isolate-paths.c
9360 (insert_trap_and_remove_trailing_statements): Rename to ...
9361 (insert_trap): ... this. Don't remove trailing statements; split
9363 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
9365 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
9368 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
9369 conditionalize the whole on __GNUC__. Add fallback code
9370 depending neither on undefined nor implementation-defined behaviour.
9372 2015-08-19 Jiong Wang <jiong.wang@arm.com>
9374 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
9375 whitespaces with tab.
9377 2015-08-19 Florian Weimer <fweimer@redhat.com>
9379 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
9380 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
9381 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
9382 Move Name_Ids instantiation to the Prj.Proc package, to avoid
9385 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9387 * config/arm/arm.c (bounds_check): Use %wd print format
9388 for HOST_WIDE_INT arguments.
9390 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
9392 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
9393 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
9394 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
9395 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
9396 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
9397 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
9398 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
9399 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
9400 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
9403 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
9405 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
9406 function.c, graphite-scop-detection.c, haifa-sched.c,
9407 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
9408 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
9409 varasm.c: Remove typedefs of structs.
9411 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9413 * config/rs6000/altivec.h (vec_adde): New define.
9414 (vec_addec): Likewise.
9415 (vec_double): Likewise.
9416 (vec_bperm): Likewise.
9418 * config/rs6000/rs6000-builtin.def (ADDE): New
9419 BU_ALTIVEC_OVERLOAD_3.
9421 (DOUBLE): New BU_VSX_OVERLOAD_1.
9422 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
9423 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
9424 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
9425 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
9426 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
9427 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
9428 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
9429 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
9430 and P8V_BUILTIN_VEC_VBPERMQ.
9432 2015-08-18 Jason Merrill <jason@redhat.com>
9434 * print-tree.c (print_node): Handle TREE_BINFO.
9436 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9439 * builtins.c (expand_builtin_signbit): Add asserts to make sure
9440 we can expand BUILT_IN_SIGNBIT inline.
9441 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
9442 * doc/extend.texi: Document the type-generic __builtin_signbit.
9444 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
9446 PR rtl-optimization/67218
9447 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
9448 (simplify_unary_operation_1): Use it.
9450 2015-08-18 Marek Polacek <polacek@redhat.com>
9453 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
9454 if the call isn't valid.
9455 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
9456 gimple_call_builtin_p.
9457 (call_may_clobber_ref_p_1): Likewise.
9458 (stmt_kills_ref_p): Likewise.
9460 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
9462 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
9463 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
9464 (mips_hard_regno_scratch_ok): Likewise.
9465 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
9466 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
9468 2015-08-18 Bin Cheng <bin.cheng@arm.com>
9470 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
9471 (determine_value_range): Call refine_value_range_using_guard for
9472 each loop initial condition to improve value range.
9474 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
9476 * config/i386/i386.c: Remove include of fibheap.h.
9478 2015-08-17 Richard Biener <rguenther@suse.de>
9480 PR tree-optimization/67221
9481 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
9482 (sccvn_dom_walker::before_dom_children): Mark backedges of
9483 non-executable blocks as not executable.
9485 2015-08-17 David Sherwood <david.sherwood@arm.com>
9487 * config/arm/arm.c (neon_element_bits): Replace call to
9488 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
9489 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
9490 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
9491 (neon_vdup_lane<mode>): Likewise.
9492 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
9493 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
9494 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
9495 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
9496 * config/spu/spu.c (arith_immediate_p): Likewise.
9497 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9498 * expr.c (expand_expr_real_2): Likewise.
9499 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
9500 * simplify-rtx.c (simplify_immed_subreg): Likewise.
9501 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
9502 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
9504 * fold-const.c (fold_binary_loc): Replace call to
9505 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
9506 GET_MODE_UNIT_PRECISION (m).
9508 2015-08-17 Mike Stump <mikestump@comcast.net>
9510 * config/arm/arm.c (arm_block_move_unaligned_straight):
9511 Emit normal move instead of unaligned load when source or destination
9512 are appropriately aligned.
9514 2015-08-17 Richard Biener <rguenther@suse.de>
9515 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9518 * match.pd (div (coss (op @0) : New simplifier.
9520 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
9522 PR rtl-optimization/64164
9525 PR rtl-optimization/67000
9528 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9529 * tree-ssa-copyrename.c: Removed.
9530 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9531 -ftree-coalesce-vars.
9532 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9533 * common.opt (ftree-copyrename): Ignore.
9534 (ftree-coalesce-inlined-vars): Likewise.
9535 * doc/invoke.texi: Remove the ignored options above.
9536 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9537 * tree-ssa-coalesce.h: ... here.
9538 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9539 headers required by it.
9540 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9541 across variables when flag_tree_coalesce_vars. Check register
9542 use and promoted modes to allow coalescing. Do not coalesce
9543 maybe-byref parms with SSA_NAMEs of other variables, or
9544 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
9545 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9546 with its member functions to tree-ssa-coalesce.c.
9547 (var_map_base_init): Likewise. Renamed to
9548 compute_samebase_partition_bases.
9549 (partition_view_normal): Drop want_bases parameter.
9550 (partition_view_bitmap): Likewise.
9551 * tree-ssa-live.h: Adjust declarations.
9552 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
9553 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9554 default defs at the entry point.
9555 (dump_part_var_map): New.
9556 (compute_optimized_partition_bases): New, called by...
9557 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9558 of compute_samebase_partition_bases. Adjust.
9559 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9560 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
9561 (ssa_default_def_partition): New.
9562 (get_rtl_for_parm_ssa_default_def): New.
9563 (align_local_variable, add_stack_var): Support anonymous SSA
9565 (defer_stack_allocation): Likewise. Declare earlier.
9566 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9567 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9568 Do no record deferred-allocation marker in
9569 SA.partition_to_pseudo.
9570 (expand_stack_vars): Adjust check for the marker in it.
9571 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9572 redundant MEM attr setting.
9573 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9575 (expand_one_stack_var): ... this. New wrapper to check and
9576 skip already expanded SSA partitions.
9577 (record_alignment_for_reg_var): New, factored out of...
9578 (expand_one_var): ... this.
9579 (expand_one_ssa_partition): New.
9580 (adjust_one_expanded_partition_var): New.
9581 (expand_one_register_var): Check and skip already expanded SSA
9583 (expand_used_vars): Don't create DECLs for anonymous SSA
9584 names. Expand all SSA partitions, then adjust all SSA names.
9585 (pass::execute): Replace the loops that set
9586 SA.partition_to_pseudo from partition leaders and cleared
9587 DECL_RTL for multi-location variables, and that which used to
9588 rename vars and set attrs, with one that clears DECL_RTL and
9589 checks that PARMs and RESULTs default_defs match DECL_RTL.
9590 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9591 * emit-rtl.c: Include stor-layout.h.
9592 (set_reg_attrs_for_parm): Handle NULL decl.
9593 (set_reg_attrs_for_decl_rtl): Take mode from expression if
9595 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
9596 rather than its possibly-NULL DECL.
9597 * explow.c (promote_ssa_mode): New.
9598 * explow.h (promote_ssa_mode): Declare.
9599 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9600 (read_complex_part): Export.
9601 * expr.h (read_complex_part): Declare.
9602 * cfgexpand.h (parm_maybe_byref_p): Declare.
9603 * function.c: Include cfgexpand.h.
9604 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9605 (use_register_for_parm_decl): Wrapper for the above to
9606 special-case the result_ptr.
9607 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9608 (split_complex_args): Take assign_parm_data_all argument.
9609 Pass it to rtl_for_parm. Set up rtl and context for split
9610 args. Reset complex parm before fetching its default decl
9612 (assign_parms_unsplit_complex): Use the default-def complex
9613 parm rtl if it matches the components.
9614 (assign_parms_augmented_arg_list): Adjust.
9615 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9616 multiple locations. Recognize split complex args.
9617 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9618 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9619 (assign_parm_setup_block): Prefer SSA-assigned location, and
9620 fill in its address if the memory location of a maybe-byref
9621 parm was not assigned by cfgexpand.
9622 (assign_parm_setup_reg): Likewise. Adjust its mode as
9623 needed. Use entry_parm for equiv if stack_parm is NULL. Make
9624 sure passed_pointer parms don't need conversion. Copy address
9626 (assign_parm_setup_stack): Prefer SSA-assigned location.
9627 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9628 rtl before testing for pointer bounds. Special-case result_ptr.
9629 (expand_function_start): Maybe reset DECL_RTL of result.
9630 Prefer SSA-assigned location for result and static chain.
9631 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
9632 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
9633 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9634 anonymous SSA names. Use promote_ssa_mode.
9635 (get_temp_reg): Likewise.
9636 (remove_ssa_form): Adjust.
9637 * stor-layout.c (layout_decl): Don't set mem attributes of
9639 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9640 and get its reg_usage for reg invalidation.
9641 (compute_bb_dataflow): Pass it insn.
9642 (emit_notes_in_bb): Likewise.
9644 2015-08-14 Marek Polacek <polacek@redhat.com>
9646 * tree-core.h (tree_base): Fix typo.
9648 2015-08-14 Marek Polacek <polacek@redhat.com>
9651 * gimple.c (infer_nonnull_range_by_attribute): Check that the
9652 nonnull argument position is not outside function arguments.
9654 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
9657 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
9658 'lconst_atomic' with 'const_atomic'.
9659 (atomic_fetch_<optab><mode>): Likewise.
9660 (atomic_<optab>_fetch<mode>): Likewise.
9661 * config/aarch64/iterators.md (lconst-atomic): Move below
9663 (const_atomic): New.
9665 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
9666 Bernd Schmidt <bernds@codesourcery.com>
9668 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
9670 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
9671 (DWARF2_DEBUGGING_INFO): Don't define.
9672 * debug.h (dwarf2_lineno_debug_hooks): Declare.
9673 * toplev.c (process_options): Add a case for it.
9674 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
9675 (dwarf2out_init): Skip most initializations if
9676 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
9678 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
9679 DWARF2_LINENO_DEBUGGING_INFO.
9680 * opts.c (set_debug_level): Likewise.
9682 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
9684 * config/arm/types.md (is_neon_type): Add missing types.
9686 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
9688 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
9690 * config/i386/i386.c (PTA_SKYLAKE): New macros.
9691 (processor_alias_table): Add skylake description.
9692 (enum processor_model): Add skylake processor.
9693 (arch_names_table): Add skylake record.
9694 * doc/invoke.texi: Add skylake item.
9696 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
9698 * ira-int.h: Include recog.h.
9699 * ira-build.c: Don't include recog.h.
9700 * ira-color.c: Likewise.
9701 * ira-conflicts.c: Likewise.
9702 * ira-costs.c: Likewise.
9703 * ira-emit.c: Likewise.
9704 * ira-lives.c: Likewise.
9706 * sched-deps.c: Likewise.
9707 * sel-sched.c: Likewise.
9708 * target-globals.c: Likewise.
9710 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
9713 * reload1.c (elimination_costs_in_insn): Make it obvious to the
9714 compiler that the n_dups and n_operands loop bounds are invariant.
9716 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9718 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
9719 expressions in A and B.
9721 2015-08-13 Richard Biener <rguenther@suse.de>
9723 * tree.c (nonnull_arg_p): Move from ...
9724 * tree-vrp.c (nonnull_arg_p): ... here.
9725 * tree.h (nonnull_arg_p): Declare.
9726 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
9727 here, register ptr != 0 for nonnull_arg_p pointer arguments.
9728 Properly initialize static chain and by-reference result pointer.
9729 (run_scc_vn): Adjust.
9731 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
9733 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
9736 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
9738 * config/aarch64/aarch64-protos.h
9739 (aarch64_gen_atomic_cas): Declare.
9740 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
9741 Choose appropriate instruction pattern for the target.
9742 (aarch64_gen_atomic_cas): New.
9743 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
9744 (atomic_compare_and_swap<mode>_1): Rename to
9745 aarch64_compare_and_swap<mode>. Fix some indentation.
9746 (aarch64_compare_and_swap<mode>_lse): New.
9747 (aarch64_atomic_cas<mode>): New.
9749 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
9751 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
9754 2015-08-13 Richard Biener <rguenther@suse.de>
9756 PR tree-optimization/67191
9757 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
9758 assert we value-numbered last stmts operand because it can validly
9759 trigger for unreachable code.
9761 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9763 PR rtl-optimization/67103
9764 * ifcvt.c (noce_try_store_flag_constants): Move
9765 x = (-(test != 0) & (b - a)) + a transformation to...
9766 (noce_try_cmove): ... Here. Try it if normal conditional
9769 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
9771 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
9773 * config/mips/mips.md (processor): Remove w32 and w64.
9775 2015-08-13 Richard Biener <rguenther@suse.de>
9777 PR tree-optimization/66502
9778 PR tree-optimization/67167
9779 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
9781 (vn_phi_lookup): Adjust.
9782 (vn_phi_insert): Likewise.
9783 (visit_phi): Prefer to value-number to another PHI node
9784 over value-numbering to a PHI argument.
9785 (init_scc_vn): Mark DFS back edges.
9787 2015-08-13 Richard Biener <rguenther@suse.de>
9789 * gimple.h (gcall::code_): New constant static member.
9790 (gcond::code_): Likewise.
9791 * gimple.c (gcall::code_): Define.
9792 (gcond::code_): Likewise.
9793 (is_a_helper <const gcond *>): Add.
9794 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
9795 and forward to a new gcall overload with less checking and a
9796 cheaper way to access the operand.
9797 (gimple_call_lhs_ptr): Likewise.
9798 (gimple_call_set_lhs): Likewise.
9799 (gimple_call_internal_p): Likewise.
9800 (gimple_call_with_bounds_p): Likewise.
9801 (gimple_call_set_with_bounds): Likewise.
9802 (gimple_call_internal_fn): Likewise.
9803 (gimple_call_set_ctrl_altering): Likewise.
9804 (gimple_call_ctrl_altering_p): Likewise.
9805 (gimple_call_fntype): Likewise.
9806 (gimple_call_fn): Likewise.
9807 (gimple_call_fn_ptr): Likewise.
9808 (gimple_call_set_fndecl): Likewise.
9809 (gimple_call_fndecl): Likewise.
9810 (gimple_call_chain): Likewise.
9811 (gimple_call_num_args): Likewise.
9812 (gimple_call_arg): Likewise.
9813 (gimple_call_arg_ptr): Likewise.
9814 (gimple_call_set_arg): Likewise.
9815 (gimple_call_noreturn_p): Likewise.
9816 (gimple_cond_code): Likewise.
9817 (gimple_cond_lhs): Likewise.
9818 (gimple_cond_rhs): Likewise.
9819 (gimple_has_lhs): Reduce checking.
9821 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9824 * match.pd (div (mult @0 @1) @1) : New simplifier.
9826 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9829 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
9830 predicate to allow construction of vector constants using the
9831 VSLDOI vector shift instruction.
9833 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
9836 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
9837 the number of bytes to be shifted left and filled in with either
9838 all zero or all one bits.
9839 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
9841 (output_vec_const_move): On power8, generate XXLORC to generate
9842 a vector constant with all 1's. Do a split if we need to use a
9845 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
9846 properly test for the MSB.
9848 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
9849 vector constants that can be created with VSLDOI.
9851 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
9854 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9855 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9856 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9857 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9858 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9859 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9860 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9861 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9862 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9864 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
9866 * config/xtensa/constraints.md (define_constraint "Y"): New
9868 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
9869 * config/xtensa/linux.h (ASM_SPEC): Likewise.
9870 * config/xtensa/predicates.md (move_operand): Match constants
9871 and symbols in the presence of TARGET_AUTO_LITPOOLS.
9872 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
9873 immediate references to TLS data.
9874 (xtensa_emit_move_sequence): Don't force constants to memory in
9875 the presence of TARGET_AUTO_LITPOOLS.
9876 (print_operand): Add 'y' format, same as default, but capable of
9877 printing SF mode constants as well.
9878 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
9879 (movsf_internal): Add movi pattern that loads literal.
9880 (movsf, movdf): Don't force constants to memory in the presence
9881 of TARGET_AUTO_LITPOOLS.
9882 (movdf_internal): Add 'Y' constraint.
9883 * config/xtensa/xtensa.opt (mauto-litpools): New option.
9884 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
9886 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
9888 * config/arm/arm-fpus.def: Replace booleans with feature flags.
9890 * config/arm/arm.c (ARM_FPU): Update macro.
9891 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
9892 (TARGET_FP16): Likewise.
9893 (TARGET_CRYPTO): Likewise.
9894 (TARGET_NEON): Likewise.
9895 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
9898 2015-08-12 Tom de Vries <tom@codesourcery.com>
9902 * doc/install.texi: Remove --with_host_libstdcxx item. Update
9903 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
9904 accordingly. Mention default for --with-stage1-ldflags.
9906 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
9908 * config/arm/arm.h (arm_fpu_feature_set): New.
9909 (ARM_FPU_FSET_HAS): New.
9913 (FPU_FL_CRYPTO): New.
9915 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9917 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
9918 after -mcmodel=large -fPIC sorry.
9920 2015-08-12 Richard Biener <rguenther@suse.de>
9922 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
9923 comparison operand order and commutative ternary op operand order.
9924 (sccvn_dom_walker::cond_stack): New state to track temporary
9926 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
9928 (sccvn_dom_walker::record_cond): Add a single temporary conditional
9930 (sccvn_dom_walker::record_conds): Add a temporary conditional
9931 expressions and all related expressions also true/false.
9932 (sccvn_dom_walker::before_dom_children): Record temporary
9933 expressions based on the controlling condition of a single
9934 predecessor. When trying to simplify a conditional statement
9935 lookup expressions we might have inserted earlier.
9937 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
9940 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
9941 to ARM core registers.
9943 2015-08-12 Nathan Sidwell <nathan@acm.org>
9945 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
9946 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
9948 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
9950 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
9952 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
9954 2015-08-12 Richard Biener <rguenther@suse.de>
9956 * gimple.h (remove_pointer): New trait.
9957 (GIMPLE_CHECK2): New inline template function.
9958 (gassign::code_): New constant static member.
9959 (is_a_helper<const gassign *>): Add.
9960 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
9961 and forward to a new gassign overload with less checking and a
9962 cheaper way to access the operand.
9963 (gimple_assign_lhs_ptr): Likewise.
9964 (gimple_assign_set_lhs): Likewise.
9965 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
9967 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
9969 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
9971 (gimple_assign_rhs_code): Likewise.
9972 * gimple.c (gassign::code_): Define.
9974 2015-08-12 Richard Biener <rguenther@suse.de>
9976 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9977 Eliminate edges marked as not executable by SCCVN.
9978 * tree-ssa-sccvn.c: Include gimple-iterator.h.
9979 (cond_dom_walker): Rename to sccvn_dom_walker.
9980 (sccvn_dom_walker::before_dom_children): Value-number defs
9982 (run_scc_vn): Remove loop value-numbering all SSA names.
9983 Drop not visited SSA names to varying.
9985 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
9987 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9988 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9989 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9990 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9991 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9992 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9993 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9994 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9995 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9997 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
10000 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
10001 to enum feature_priority and feature_list.
10002 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
10003 and isa_names_table.
10005 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
10007 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
10008 vect_induction_def.
10010 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10014 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
10015 account when deciding what was the command-line status.
10017 2015-08-11 Nathan Sidwell <nathan@acm.org>
10019 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
10021 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
10022 we're not the only contributor to target phi.
10024 2015-08-11 Jiong Wang <jiong.wang@arm.com>
10026 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
10029 2015-08-11 Tom de Vries <tom@codesourcery.com>
10031 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
10033 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
10035 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
10037 * config/i386/i386.md (cpu): Remove knl.
10039 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10042 PR middle-end/66332
10043 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
10044 open-coded sequence.
10045 * omp-low.c (oacc_process_reduction_data): Remove handline of
10046 GOMP_DEVICE_HOST_NONSHM.
10048 * lto-streamer-in.c (lto_input_mode_table): Adjust to
10049 GET_MODE_INNER changes.
10051 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10052 Ilya Verbin <ilya.verbin@intel.com>
10054 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
10056 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10058 * doc/options.texi (EnabledBy): Document that the argument must be
10060 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
10061 Not enabled by -Wall.
10062 * optc-gen.awk: Give nicer error messages. Detect if the argument
10063 of EnabledBy is not a Common option.
10064 * common.opt (Wnull-dereference): Not enabled by -Wall.
10065 * opt-functions.awk (lang_enabled_by): Nicer error messages.
10067 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
10069 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
10070 model == 0x4f as Broadwell.
10072 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
10074 PR rtl-optimization/67028
10075 * combine.c (simplify_comparison): Fix comment. Rearrange code.
10076 Add test to see if a const_int fits in the new mode.
10078 2015-08-07 DJ Delorie <dj@redhat.com>
10080 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
10082 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
10084 PR rtl-optimization/67029
10085 * ira-color.c: Include "recog.h" before including "ira-int.h".
10086 * target-globals.c: Likewise.
10087 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
10088 adds an alternative_mask argument and use it instead of
10089 preferred_alternatives.
10090 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
10091 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
10092 * sched-deps.c: Include "ira-int.h" after including "ira.h".
10093 (sched_analyze_insn): Update call to
10094 ira_implicitly_set_insn_hard_regs.
10095 * sel-sched.c: Include "ira-int.h" after including "ira.h".
10096 (implicit_clobber_conflict_p): Update call to
10097 ira_implicitly_set_insn_hard_regs.
10099 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
10101 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
10103 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
10106 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
10107 currently_expanding_to_rtl is set.
10109 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
10111 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
10112 * configure: Regenerate.
10114 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10115 Jiong Wang <jiong.wang@arm.com>
10117 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10118 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10119 (REG_CLASS_NAMES): Likewise.
10120 (REG_CLASS_CONTENTS): Likewise.
10121 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10122 (aarch64_register_move_cost): Likewise.
10123 (aarch64_load_symref_appropriately): Invoke the new added pattern if
10125 * config/aarch64/constraints.md (Uc0): New constraint.
10127 2015-08-06 Jiong Wang <jiong.wang@arm.com>
10129 * config/aarch64/constraints.md (Usf): Add the test of
10130 aarch64_is_noplt_call_p.
10132 2015-08-06 Jiong Wang <jiong.wang@arm.com>
10134 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
10136 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
10137 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
10138 (call_symbol): Likewise.
10140 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10142 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
10143 for vectorizing multiplication patterns.
10144 * tree-vectorizer.h: Adjust the number of patterns.
10146 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
10148 * config/i386/sse.md (*vec_concatv2df): Declare added
10149 alternatives as sselog type.
10151 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10153 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
10156 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10158 * config/s390/s390.c (s390_expand_tbegin): Expand either
10159 tbegin_1_z13 or tbegin_1 depending on VX flag.
10160 * config/s390/s390.md ("tbegin_1_z13"): New expander.
10162 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10164 * config/s390/s390.opt: Clarify description for -mzvector
10165 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
10168 2015-08-06 Richard Biener <rguenther@suse.de>
10170 * gimple.h (gimple_call_set_fn): Access op member directly.
10171 (gimple_call_chain_ptr): Likewise.
10172 (gimple_call_set_chain): Likewise.
10173 (gimple_cond_lhs_ptr): Likewise.
10174 (gimple_cond_set_lhs): Likewise.
10175 (gimple_cond_rhs_ptr): Likewise.
10176 (gimple_cond_set_rhs): Likewise.
10177 (gimple_cond_true_label): Likewise.
10178 (gimple_cond_set_true_label): Likewise.
10179 (gimple_cond_set_false_label): Likewise.
10180 (gimple_cond_false_label): Likewise.
10181 (gimple_label_label): Likewise.
10182 (gimple_label_set_label): Likewise.
10183 (gimple_goto_set_dest): Likewise.
10184 (gimple_asm_input_op): Likewise.
10185 (gimple_asm_input_op_ptr): Likewise.
10186 (gimple_asm_set_input_op): Likewise.
10187 (gimple_asm_output_op): Likewise.
10188 (gimple_asm_output_op_ptr): Likewise.
10189 (gimple_asm_set_output_op): Likewise.
10190 (gimple_asm_clobber_op): Likewise.
10191 (gimple_asm_set_clobber_op): Likewise.
10192 (gimple_asm_label_op): Likewise.
10193 (gimple_asm_set_label_op): Likewise.
10194 (gimple_switch_index): Likewise.
10195 (gimple_switch_index_ptr): Likewise.
10196 (gimple_return_retval_ptr): Likewise.
10197 (gimple_return_retval): Likewise.
10198 (gimple_return_set_retval): Likewise.
10199 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
10200 (gimple_switch_label): Likewise.
10201 (gimple_switch_set_label): Likewise.
10203 2015-08-06 Richard Biener <rguenther@suse.de>
10205 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
10206 bool comparison canonicalization and restrict to integers.
10208 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
10210 * coretypes.h (enum symbol_visibility): Relocate here.
10211 * flag-types.h (enum symbol_visibility): Remove.
10212 * tree-core.h (enum symbol_visibility): Remove.
10214 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
10217 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
10218 for no_split_stack function attribute along with
10220 (rs6000_expand_split_stack_prologue): Likewise.
10222 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
10223 Jeff Law <law@redhat.com>
10226 * doc/invoke.texi (Wnull-dereference): New.
10227 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
10228 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
10229 Warn for potential NULL dereferences.
10230 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
10231 * ubsan.c (instrument_nonnull_arg): Call
10232 infer_nonnull_range_by_attribute.
10233 (instrument_nonnull_return): Likewise.
10234 * common.opt (Wnull-dereference); New.
10235 * gimple.c (infer_nonnull_range): Remove bool arguments.
10236 (infer_nonnull_range_by_dereference): New.
10237 (infer_nonnull_range_by_attribute): New.
10238 * gimple.h: Update declarations.
10240 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10242 * gensupport.c (sequence_num): Replace with...
10243 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
10244 ...these new variables.
10245 (init_rtx_reader_args_cb): Update accordingly.
10246 (get_num_code_insns): Likewise.
10247 (read_md_rtx): Rework to use a while loop and get_c_test.
10248 Use the new counters. Remove redundant DEFINE_SUBST case.
10249 * genoutput.c (gen_split): Delete.
10250 (main): Don't call it.
10252 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10254 * gensupport.h (get_c_test): Declare.
10255 * gensupport.c (get_c_test): New function.
10256 * genconditions.c (main): Use it.
10257 * genrecog.c (validate_pattern): Likewise.
10258 (match_pattern_1): Likewise. Remove c_test argument.
10259 (match_pattern): Update accordingly and remove c_test argument.
10260 (main): Update accordingly.
10262 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10264 * gensupport.h (get_num_insn_codes): Declare.
10265 * gensupport.c (get_num_insn_codes): New function.
10266 * genattrtab.c (optimize_attrs): Rename max_insn_code to
10268 (main): Likewise. Use get_num_insn_codes.
10269 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
10271 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10273 PR middle-end/66311
10274 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
10275 is zero- rather than sign-extended.
10277 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10279 * target-insns.def (can_extend): Delete.
10281 2015-08-05 Richard Biener <rguenther@suse.de>
10283 PR tree-optimization/67121
10284 * tree-if-conv.c (combine_blocks): Clear range-info produced
10285 by stmts no longer executed conditionally.
10287 2015-08-05 Nick Clifton <nickc@redhat.com>
10289 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
10290 to allow identical far pointers to remain.
10292 2015-08-05 Richard Biener <rguenther@suse.de>
10294 PR middle-end/67120
10295 * match.pd: Compare address bases with == if they are decls
10296 or SSA names, not operand_equal_p. Otherwise fail.
10298 2015-08-05 Richard Biener <rguenther@suse.de>
10300 PR tree-optimization/67055
10301 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
10304 * g++.dg/torture/pr67055.C: New testcase.
10306 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
10308 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
10310 (define_attr "enabled"): Handle avx521vl and noavx512vl.
10311 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
10312 AVX-512 alternative out of SSE.
10313 (define_insn "*vec_concatv2df"): Ditto.
10315 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
10317 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
10318 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
10319 CODE_FOR_avx_ptestv4di.
10320 * config/i386/sse.md (define_mode_iterator V_AVX): New.
10321 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
10322 (define_insn "avx_ptest256"): Merge this ...
10323 (define_insn "sse4_1_ptest"): And this ...
10324 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
10326 2015-08-05 Richard Biener <rguenther@suse.de>
10328 PR tree-optimization/67109
10329 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
10330 against too big groups. Print whether this is a load or store
10331 group. Rename from ...
10332 (vect_analyze_group_access): ... this which is now a wrapper
10333 dissolving an invalid group.
10334 (vect_analyze_data_ref_accesses): Print whether this is a load
10337 2015-08-05 Richard Biener <rguenther@suse.de>
10339 PR middle-end/67107
10340 * match.pd: Guard const_binop result checking against NULL_TREE
10343 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
10345 * cse.c (cse_insn): Restoring old behaviour for src_eqv
10346 when dest and value in the REG_EQUAL are same and dest
10347 is STRICT_LOW_PART.
10349 2015-08-04 Anatoly Sokolov <aesok@post.ru>
10351 * config/moxie/moxie.h (PRINT_OPERAND,
10352 PRINT_OPERAND_ADDRESS): Remove macros.
10353 * config/moxie/moxie-protos.h (moxie_print_operand,
10354 moxie_print_operand_address): Remove declaration.
10355 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
10356 TARGET_PRINT_OPERAND_ADDRESS): Define.
10357 (moxie_print_operand, moxie_print_operand_address): Make static.
10359 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10362 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
10363 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
10365 2015-08-04 Richard Biener <rguenther@suse.de>
10367 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
10369 (dt_operand::gen_gimple_expr): Adjust.
10371 2015-08-04 Richard Biener <rguenther@suse.de>
10373 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
10374 bool compares on RHS.
10375 * match.pd: Add X ==/!= !X is false/true pattern.
10377 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
10379 * config/aarch64/aarch64.c: Change inner loop statement cost
10380 to be consistent with other targets.
10382 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
10384 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
10387 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
10389 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
10390 (machine_function): Remove pseudos field.
10392 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10394 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
10395 Exit early and use target_option_current_node if processing current
10398 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10400 * doc/extend.texi (AArch64 Function Attributes): New node.
10401 (AArch64 Pragmas): Likewise.
10403 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10405 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
10406 Initialize simd builtins if TARGET_SIMD.
10407 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
10408 Make sure that the builtins are initialized only once no matter how
10409 many times the function is called.
10410 (aarch64_init_builtins): Unconditionally initialize crc builtins.
10411 (aarch64_relayout_simd_param): New function.
10412 (aarch64_simd_expand_args): Use above during argument expansion.
10413 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
10414 simd builtins if TARGET_SIMD.
10415 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
10417 (aarch64_relayout_simd_types): Likewise.
10419 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10421 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
10422 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
10423 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
10424 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
10426 (aarch64_reset_previous_fndecl): New function.
10427 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
10429 * config/aarch64/aarch64-c.c: New file.
10430 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
10431 Push and pop options at beginning and end. Remove ifdef
10432 __ARM_FEATURE_CRC32.
10433 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
10434 Add pragma +nothing+simd and +nothing+crypto where appropriate.
10435 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
10436 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
10438 (aarch64_register_pragmas): Likewise.
10439 (aarch64_reset_previous_fndecl): Likewise.
10440 (aarch64_process_target_attr): Likewise.
10441 (aarch64_override_options_internal): Likewise.
10443 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10445 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
10447 (aarch64_can_inline_p): Likewise.
10448 (TARGET_CAN_INLINE_P): Define.
10450 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10452 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10453 Remove static. Handle OPT_mgeneral_regs_only,
10454 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
10455 OPT_momit_leaf_frame_pointer.
10456 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
10457 (aarch64_attr_opt_type): New enum.
10458 (aarch64_attribute_info): New struct.
10459 (aarch64_handle_attr_arch): New function.
10460 (aarch64_handle_attr_cpu): Likewise.
10461 (aarch64_handle_attr_tune): Likewise.
10462 (aarch64_handle_attr_isa_flags): Likewise.
10463 (aarch64_attributes): New table.
10464 (aarch64_process_one_target_attr): New function.
10465 (num_occurences_in_str): Likewise.
10466 (aarch64_process_target_attr): Likewise.
10467 (aarch64_option_valid_attribute_p): Likewise.
10468 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10469 * config/aarch64/aarch64-protos.h: Include input.h
10470 (aarch64_handle_option): Declare prototype.
10472 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10474 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
10475 * config/aarch64/aarch64.c: Include target-globals.h
10476 (aarch64_previous_fndecl): New variable.
10477 (aarch64_set_current_function): New function.
10478 (TARGET_SET_CURRENT_FUNCTION): Define.
10480 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10482 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
10483 (explicit_arch): Likewise.
10484 (x_aarch64_isa_flags): Likewise.
10485 (mgeneral-regs-only): Mark as Save.
10486 (mfix-cortex-a53-835769): Likewise.
10487 (mcmodel=): Likewise.
10488 (mstrict-align): Likewise.
10489 (momit-leaf-frame-pointer): Likewise.
10490 (mtls-dialect): Likewise.
10491 (master=): Likewise.
10492 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
10493 (aarch64_isa_flags): Remove extern declaration.
10494 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
10495 to indicate success or failure.
10496 (aarch64_validate_march): Likewise.
10497 (aarch64_validate_mtune): Likewise.
10498 (aarch64_isa_flags): Delete.
10499 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
10500 instead of aarch64_isa_flags.
10501 (aarch64_get_tune_cpu): New function.
10502 (aarch64_get_arch): Likewise.
10503 (aarch64_override_options): Use above and set up explicit_tune_core
10505 (aarch64_print_extension): Move earlier in file. Add isa_flags
10506 argument and use that instead of the global aarch64_isa_flags.
10507 (aarch64_option_save): New function.
10508 (aarch64_option_restore): Likewise.
10509 (aarch64_option_print): Likewise.
10510 (aarch64_declare_function_name): Likewise.
10511 (aarch64_start_file): Delete.
10512 (TARGET_ASM_FILE_START): Do not define.
10513 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
10514 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
10517 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10519 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
10520 flag_omit_leaf_frame_pointer to 2.
10522 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10524 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
10526 (TARGET_FIX_ERR_A53_835769): New macro.
10527 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
10528 handling of opts->x_aarch64_fix_a53_err835769.
10529 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
10530 than aarch64_fix_a53_err835769.
10531 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
10532 * config/aarch64/aarch64-linux.h: Likewise.
10534 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
10536 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
10537 ix86_expand_int_movcc as boolean.
10539 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10541 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
10542 (aarch64_cpu_string): Likewise.
10543 (aarch64_tune_string): Likewise.
10544 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
10545 (aarch64_parse_extension): Return aarch64_parse_opt_result.
10546 Add extra argument to put result into.
10547 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
10548 (aarch64_parse_cpu): Add arguments to put results into. Return
10549 aarch64_parse_opt_result.
10550 (aarch64_parse_tune): Likewise.
10551 (aarch64_override_options_after_change_1): New function.
10552 (aarch64_override_options_internal): New function.
10553 (aarch64_validate_mcpu): Likewise.
10554 (aarch64_validate_march): Likewise.
10555 (aarch64_validate_mtune): Likewise.
10556 (aarch64_override_options): Update to reflect above changes.
10557 Move some logic into aarch64_override_options_internal.
10558 Initialize target_option_default_node and target_option_current_node.
10559 (aarch64_override_options_after_change): Move logic into
10560 aarch64_override_options_after_change_1 and call it with global_options.
10561 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
10562 flag values from that.
10564 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10566 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10567 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
10568 * config/aarch64/aarch64.c (struct processor): Add arch field.
10569 (all_architectures): Handle above, move above all_cores.
10570 (all_cores): Handle above.
10571 (aarch64_parse_arch): Handle above changes.
10572 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
10573 above. Update comments.
10574 (armv8.1-a): Likewise.
10575 * config/aarch64/aarch64-cores.def: Update according to above.
10576 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
10577 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
10578 aarch64_arch_driver_info.
10580 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10582 * config/aarch64/aarch64.c (struct processor): Add ident field.
10583 Rename core sched_core.
10584 (all_cores): Handle above changes.
10585 (all_architectures): Likewise.
10586 (aarch64_parse_arch): Likewise.
10587 (aarch64_override_options): Likewise.
10589 2015-08-04 Richard Biener <rguenther@suse.de>
10591 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
10592 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
10593 comparisons embedded in [VEC_]COND_EXPRs.
10595 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
10597 * tree-if-conv.c: Fix various typos in comments.
10598 * tree-vect-stmts.c: Likewise.
10600 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
10602 PR tree-optimization/67043
10603 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
10604 preheader after hoisting invariant in it.
10605 (find_defs): Force recomputation of all luids.
10607 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
10609 * config/rs6000/htm.md (tabort.): Restrict the source operand to
10610 using a base register.
10612 2015-08-03 David Malcolm <dmalcolm@redhat.com>
10614 * main.c (main): Pass in NULL for toplev's external_timer.
10615 * timevar.c: Include coretypes.h.
10616 (class timer::named_items): New.
10617 (timer::named_items::named_items): New.
10618 (timer::named_items::~named_items): New.
10619 (timer::named_items::push): New.
10620 (timer::named_items::pop): New.
10621 (timer::named_items::print): New.
10622 (timer::timer): Initialize field "m_jit_client_items".
10623 (timer::~timer): New.
10624 (timer::push): Move bulk of implementation to...
10625 (timer::push_internal): ...here. New function.
10626 (timer::pop): Move bulk of implementation to...
10627 (timer::pop_internal): ...here. New function.
10628 (timer::push_client_item): New.
10629 (timer::pop_client_item): New.
10630 (timer::print_row): New function, taken from timer::print.
10631 (timer::print): Print "GCC items" header if we also have client
10632 items. Move row-printing to timer::print_row. Print any client
10634 (timer::get_topmost_item_name): New method.
10635 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
10636 (TV_JIT_CLIENT_CODE): New.
10637 * timevar.h (timer::push_client_item): New declaration.
10638 (timer::pop_client_item): New declaration.
10639 (timer::get_topmost_item_name): New method.
10640 (timer::push_internal): New declaration.
10641 (timer::pop_internal): New declaration.
10642 (timer::print_row): New declaration.
10643 (timer::named_items): New declaration.
10644 (timer::m_jit_client_items): New field.
10645 (timer): Add friend class named_items.
10646 (auto_timevar::auto_timevar): Add timer param.
10647 (auto_timevar::~auto_timevar): Use field "m_timer".
10648 (auto_timevar::m_timer): New field.
10649 * toplev.c (initialize_rtl): Add g_timer as param when
10650 constructing auto_timevar instance.
10651 (toplev::toplev): Add "external_timer" param, and use it to
10652 initialize the "g_timer" global if non-NULL.
10653 (toplev::~toplev): If this created "g_timer", delete it.
10654 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
10655 with "external_timer" timer *.
10657 2015-08-03 Alexander Basov <coohpt@gmail.com>
10659 PR middle-end/64744
10660 PR middle-end/48470
10661 PR middle-end/43404
10662 * cfgexpand.c (expand_one_var): Add check if stack is going to
10663 be used in naked function.
10664 * expr.c (expand_expr_addr_expr_1): Remove excess checking
10665 whether expression should not reside in MEM.
10666 * function.c (use_register_for_decl): Do not use registers for
10667 non-register things (volatile, float, BLKMode) in naked functions.
10669 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
10672 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
10673 Adjust splits to match new pattern.
10675 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10677 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
10680 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
10681 point in VSX registers.
10683 * config/rs6000/constraints.md (wb constraint): Document unused
10685 (we constraint): Likewise.
10686 (wo constraint): Likewise.
10687 (wp constraint): New constraint for IEEE 128-bit floating point in
10689 (wq constraint): Likewise.
10691 * config/rs6000/predicates.md (easy_fp_constant): Add support for
10692 IEEE 128-bit floating point in VSX registers.
10693 (easy_scalar_constant): Likewise.
10695 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
10696 constraints (wp, wq) for IEEE 128-bit floating point in VSX
10698 (rs6000_init_hard_regno_mode_ok): Likewise.
10700 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
10701 floating point in VSX registers.
10704 (VSX_M2): Likewise.
10710 (vsx_le_permute_<mode>): Add support to properly swap bytes for
10711 IEEE 128-bit floating point in VSX registers on little endian.
10712 (vsx_le_undo_permute_<mode>): Likewise.
10713 (vsx_le_perm_load_<mode>): Likewise.
10714 (vsx_le_perm_store_<mode>): Likewise.
10715 (splitters for IEEE 128-bit fp moves): Likewise.
10717 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
10720 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
10721 floating point in VSX registers.
10724 * doc/md.text (Machine Constraints): Document wp and wq
10725 constraints on PowerPC.
10727 2015-08-03 Jeff Law <law@redhat.com>
10729 PR middle-end/66314
10730 PR gcov-profile/66899
10731 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
10732 iterate over the jump threading paths when an element in the
10733 jump threading paths array is eliminated.
10735 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
10737 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
10739 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
10741 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
10742 is_use_properly_guarded the variable def_preds. Free its
10743 contents before returning.
10744 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
10745 (is_use_properly_guarded): Replace local variable def_preds with
10746 a parameter. Adjust accordingly. Only update *def_preds if it's
10749 2015-08-03 Richard Biener <rguenther@suse.de>
10751 * genmatch.c (simplify::for_subst_vec): New member.
10752 (binary_ok): New helper for for lowering.
10753 (lower_for): Delay substituting operators into result expressions
10754 if we can merge the results eventually again.
10755 (capture_info::walk_result): Adjust for user_id appearing as
10756 result expression operator.
10757 (expr::gen_transform): Likewise.
10758 (dt_simplify::gen_1): Likewise.
10759 (dt_simplify::gen): Pass not substituted operators to tail
10760 functions or initialize local variable with it.
10761 (decision_tree::gen): Adjust function signature.
10762 * match.pd: Fix tests against global code and add default
10763 cases to switch stmts.
10765 2015-08-03 Richard Biener <rguenther@suse.de>
10767 * genmatch.c (dt_simplify::gen): Create captures array
10768 with an initializer.
10770 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10772 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
10773 the host compiler is affected by placement new aliasing bug.
10774 * configure: Regenerate.
10775 * Makefile.in (ALIASING_FLAGS): New variable.
10776 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
10778 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10781 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
10782 (negmulsf3_vfp): Likewise.
10783 (muldf3negdf_vfp): Disable for -frounding-math.
10784 (mulsf3negsf_vfp): Likewise.
10785 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
10786 fix MULT cost with -frounding-math.
10788 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10790 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
10791 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
10792 explicit. Prefer to add the flag whenever possible.
10793 (noce_process_if_block): Try noce_try_store_flag_constants before
10796 2015-08-03 Richard Biener <rguenther@suse.de>
10798 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
10799 New hash-map to record equivalent transforms.
10800 (dt_node::analyze): Populate the equivalent transforms hash-map.
10801 (dt_simplify::info): Add reference to hash-map entry.
10802 (dt_simplify::gen): If we have split out a function for the
10803 transform, generate a call to it.
10804 (sinfo_hashmap_traits::hash): New function.
10805 (compare_op): New helper function for ...
10806 (sinfo_hashmap_traits::equal_keys): ... this new function.
10807 (decision_tree::gen): Split out common equivalent transforms
10810 2015-08-03 Richard Biener <rguenther@suse.de>
10812 * gimple-fold.c (fold_gimple_assign): Remove folding of
10813 the comparison in COND_EXPRs.
10815 2015-08-03 Richard Biener <rguenther@suse.de>
10817 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
10818 on the rhs of assignments first simplify the embedded
10821 2015-08-03 Richard Biener <rguenther@suse.de>
10823 PR tree-optimization/66917
10824 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
10826 (DR_VECT_AUX): New macro.
10827 (set_dr_misalignment): Adjust.
10828 (dr_misalignment): Likewise.
10829 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
10830 Compute whether the base is at least element aligned.
10831 * tree-vect-stmts.c (ensure_base_align): Adjust.
10832 (vectorizable_store): If the base is not element aligned
10833 preserve alignment of the original access if misalignment is unknown.
10834 (vectorizable_load): Likewise.
10836 2015-08-02 Martin Sebor <msebor@redhat.com>
10838 * c-family/c.opt (-Wframe-address): New warning option.
10839 * doc/invoke.texi (Wframe-address): Document it.
10840 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
10841 Clarify possible effects of calling the functions with non-zero
10842 arguments and mention -Wframe-address.
10843 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
10845 2015-08-01 Michael Collison <michael.collison@linaro.org
10846 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10848 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
10849 (*arm_umin_cmp): Likewise.
10851 2015-08-01 Caroline Tice <cmtice@google.com>
10854 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
10856 (vtbl_find_mangled_name): New function.
10857 (vtbl_register_mangled_name): New function.
10858 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
10859 mangled name in mangled name vectors.
10860 (find_or_create_vtbl_map_node): Ditto.
10861 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
10862 update recursion_depth on function entry; pass it to every recursive
10863 call; automatically exit if depth > 25 (give up looking at that point).
10864 (verify_bb_vtables): Initialize recursion_depth and pass it to
10865 var_is_used_for_virtual_call_p.
10866 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
10867 global variable decls.
10868 (vtbl_register_mangled_name): New extern function decl.
10870 2015-08-01 Tom de Vries <tom@codesourcery.com>
10872 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
10874 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
10876 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
10877 operation_no_trapping_overflow. Allow non-overflow operations.
10878 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
10881 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
10884 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
10886 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10888 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
10889 Enable for TARGET_32BIT.
10890 (*if_move_neg): Likewise.
10892 2015-07-31 Nick Clifton <nickc@redhat.com>
10894 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
10895 Returns true for __model__.
10896 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10898 2015-07-31 Alan Modra <amodra@gmail.com>
10901 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
10902 (rs6000_emit_prologue): Set it.
10903 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
10905 2015-07-31 Richard Biener <rguenther@suse.de>
10907 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
10908 -> X == (C1 ^ C2) which is already implemented in match.pd.
10909 Remove redundant dispatching to fold_relational_const.
10910 Move unordered self and NaN compares ...
10911 * match.pd: ... as patterns here. Remove some stray captures
10914 2015-07-31 Petr Murzin <petr.murzin@intel.com>
10916 * config/i386/i386.c
10917 (bdesc_special_args): Convert mask type from signed to unsigned for
10919 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
10920 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
10921 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
10922 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
10923 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
10924 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
10925 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
10926 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
10927 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
10928 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
10929 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
10930 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
10931 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
10932 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
10933 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
10934 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
10935 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
10936 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
10937 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
10938 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
10939 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
10940 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
10941 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
10942 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
10943 * config/i386/i386-builtin-types.def
10944 (V16QI_FTYPE_V16SI): Remove.
10945 (V8DF_FTYPE_V8SI): Ditto.
10946 (V8HI_FTYPE_V8DI): Ditto.
10947 (V8SI_FTYPE_V8DI): Ditto.
10948 (V8SF_FTYPE_V8DF): Ditto.
10949 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
10950 (V16HI_FTYPE_V16SI): Ditto.
10951 (V16SF_FTYPE_V16HI): Ditto.
10952 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10953 (V16SF_FTYPE_V16SI): Ditto.
10954 (V4DI_FTYPE_V4DI): Ditto.
10955 (V16SI_FTYPE_V16SF): Ditto.
10956 (V16SF_FTYPE_FLOAT): Ditto.
10957 (V8DF_FTYPE_DOUBLE): Ditto.
10958 (V8DI_FTYPE_INT64): Ditto.
10959 (V8DI_FTYPE_V4DI): Ditto.
10960 (V16QI_FTYPE_V8DI): Ditto.
10961 (UINT_FTYPE_V4SF): Ditto.
10962 (UINT64_FTYPE_V4SF): Ditto.
10963 (UINT_FTYPE_V2DF): Ditto.
10964 (UINT64_FTYPE_V2DF): Ditto.
10965 (V16SI_FTYPE_V16SI): Ditto.
10966 (V8DI_FTYPE_V8DI): Ditto.
10967 (V16SI_FTYPE_PV4SI): Ditto.
10968 (V16SF_FTYPE_PV4SF): Ditto.
10969 (V8DI_FTYPE_PV2DI): Ditto.
10970 (V8DF_FTYPE_PV2DF): Ditto.
10971 (V4DI_FTYPE_PV2DI): Ditto.
10972 (V4DF_FTYPE_PV2DF): Ditto.
10973 (V16SI_FTYPE_PV2SI): Ditto.
10974 (V16SF_FTYPE_PV2SF): Ditto.
10975 (V8DI_FTYPE_PV4DI): Ditto.
10976 (V8DF_FTYPE_PV4DF): Ditto.
10977 (V8SF_FTYPE_FLOAT): Ditto.
10978 (V4SF_FTYPE_FLOAT): Ditto.
10979 (V4DF_FTYPE_DOUBLE): Ditto.
10980 (V8SF_FTYPE_PV4SF): Ditto.
10981 (V8SI_FTYPE_PV4SI): Ditto.
10982 (V4SI_FTYPE_PV2SI): Ditto.
10983 (V8SF_FTYPE_PV2SF): Ditto.
10984 (V8SI_FTYPE_PV2SI): Ditto.
10985 (V16SF_FTYPE_PV8SF): Ditto.
10986 (V16SI_FTYPE_PV8SI): Ditto.
10987 (V8DI_FTYPE_V8SF): Ditto.
10988 (V4DI_FTYPE_V4SF): Ditto.
10989 (V2DI_FTYPE_V4SF): Ditto.
10990 (V64QI_FTYPE_QI): Ditto.
10991 (V32HI_FTYPE_HI): Ditto.
10992 (V8UHI_FTYPE_V8UHI): Ditto.
10993 (V16UHI_FTYPE_V16UHI): Ditto.
10994 (V32UHI_FTYPE_V32UHI): Ditto.
10995 (V2UDI_FTYPE_V2UDI): Ditto.
10996 (V4UDI_FTYPE_V4UDI): Ditto.
10997 (V8UDI_FTYPE_V8UDI): Ditto.
10998 (V4USI_FTYPE_V4USI): Ditto.
10999 (V8USI_FTYPE_V8USI): Ditto.
11000 (V16USI_FTYPE_V16USI): Ditto.
11001 (V2DF_FTYPE_V2DF_UINT64): Ditto.
11002 (V2DI_FTYPE_V2DF_V2DF): Ditto.
11003 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
11004 (V8DF_FTYPE_V8DF_V8DI): Ditto.
11005 (V4SF_FTYPE_V4SF_UINT64): Ditto.
11006 (V4SI_FTYPE_V4SF_V4SF): Ditto.
11007 (V16SF_FTYPE_V16SF_V16SI): Ditto.
11008 (V64QI_FTYPE_V32HI_V32HI): Ditto.
11009 (V32HI_FTYPE_V16SI_V16SI): Ditto.
11010 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
11011 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
11012 (V32HI_FTYPE_V64QI_V64QI): Ditto.
11013 (V32HI_FTYPE_V32HI_V32HI): Ditto.
11014 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
11015 (V16SI_FTYPE_V16SI_V4SI): Ditto.
11016 (V16SI_FTYPE_V16SI_V16SI): Ditto.
11017 (V16SI_FTYPE_V32HI_V32HI): Ditto.
11018 (V16SI_FTYPE_V16SI_SI): Ditto.
11019 (V8DI_FTYPE_V8DI_V8DI): Ditto.
11020 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
11021 (V8DI_FTYPE_V16SI_V16SI): Ditto.
11022 (V8DI_FTYPE_V8DI_V2DI): Ditto.
11023 (QI_FTYPE_QI): Ditto.
11024 (SI_FTYPE_SI): Ditto.
11025 (DI_FTYPE_DI): Ditto.
11026 (QI_FTYPE_QI_QI): Ditto.
11027 (QI_FTYPE_QI_INT): Ditto.
11028 (HI_FTYPE_HI_INT): Ditto.
11029 (SI_FTYPE_SI_INT): Ditto.
11030 (DI_FTYPE_DI_INT): Ditto.
11031 (HI_FTYPE_V16QI_V16QI): Ditto.
11032 (SI_FTYPE_V32QI_V32QI): Ditto.
11033 (DI_FTYPE_V64QI_V64QI): Ditto.
11034 (QI_FTYPE_V8HI_V8HI): Ditto.
11035 (HI_FTYPE_V16HI_V16HI): Ditto.
11036 (SI_FTYPE_V32HI_V32HI): Ditto.
11037 (QI_FTYPE_V4SI_V4SI): Ditto.
11038 (QI_FTYPE_V8SI_V8SI): Ditto.
11039 (QI_FTYPE_V2DI_V2DI): Ditto.
11040 (QI_FTYPE_V4DI_V4DI): Ditto.
11041 (QI_FTYPE_V8DI_V8DI): Ditto.
11042 (HI_FTYPE_V16SI_V16SI): Ditto.
11043 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
11044 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
11045 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
11046 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
11047 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
11048 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
11049 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
11050 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
11051 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
11052 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
11053 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
11054 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
11055 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
11056 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
11057 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
11058 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
11059 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
11060 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
11061 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
11062 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
11063 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
11064 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
11065 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
11066 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
11067 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
11068 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
11069 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
11070 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
11071 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
11072 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
11073 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
11074 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
11075 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
11076 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
11077 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
11078 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
11079 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
11080 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
11081 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
11082 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
11083 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
11084 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
11085 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
11086 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
11087 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
11088 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
11089 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
11090 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
11091 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
11092 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
11093 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
11094 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
11095 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
11096 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
11097 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
11098 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
11099 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
11100 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
11101 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
11102 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
11103 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
11104 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
11105 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
11106 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
11107 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
11108 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
11109 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
11110 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
11111 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
11112 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
11113 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
11114 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
11115 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
11116 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
11117 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
11118 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
11119 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
11120 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
11121 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
11122 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
11123 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
11124 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
11125 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
11126 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
11127 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
11128 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
11129 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
11130 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
11131 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
11132 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
11133 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
11134 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
11135 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
11136 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
11137 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
11138 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
11139 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
11140 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
11141 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
11142 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
11143 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
11144 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11145 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11146 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11147 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
11148 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
11149 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
11150 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
11151 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
11152 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
11153 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
11154 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
11155 (HI_FTYPE_HI): Ditto.
11156 (HI_FTYPE_V16QI): Ditto.
11157 (SI_FTYPE_V32QI): Ditto.
11158 (DI_FTYPE_V64QI): Ditto.
11159 (QI_FTYPE_V8HI): Ditto.
11160 (HI_FTYPE_V16HI): Ditto.
11161 (SI_FTYPE_V32HI): Ditto.
11162 (QI_FTYPE_V4SI): Ditto.
11163 (QI_FTYPE_V8SI): Ditto.
11164 (HI_FTYPE_V16SI): Ditto.
11165 (QI_FTYPE_V2DI): Ditto.
11166 (QI_FTYPE_V4DI): Ditto.
11167 (QI_FTYPE_V8DI): Ditto.
11168 (V16QI_FTYPE_HI): Ditto.
11169 (V32QI_FTYPE_SI): Ditto.
11170 (V64QI_FTYPE_DI): Ditto.
11171 (V8HI_FTYPE_QI): Ditto.
11172 (V16HI_FTYPE_HI): Ditto.
11173 (V32HI_FTYPE_SI): Ditto.
11174 (V4SI_FTYPE_QI): Ditto.
11175 (V4SI_FTYPE_HI): Ditto.
11176 (V8SI_FTYPE_QI): Ditto.
11177 (V8SI_FTYPE_HI): Ditto.
11178 (V2DI_FTYPE_QI): Ditto.
11179 (V4DI_FTYPE_QI): Ditto.
11180 (HI_FTYPE_HI_HI): Ditto.
11181 (SI_FTYPE_SI_SI): Ditto.
11182 (DI_FTYPE_DI_DI): Ditto.
11183 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
11184 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
11185 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
11186 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
11187 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
11188 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
11189 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
11190 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
11191 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
11192 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
11193 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
11194 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
11195 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
11196 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
11197 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
11198 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
11199 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
11200 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
11201 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
11202 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
11203 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
11204 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
11205 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
11206 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
11207 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
11208 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
11209 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
11210 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
11211 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
11212 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
11213 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
11214 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
11215 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
11216 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
11217 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
11218 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
11219 (V16SI_FTYPE_HI): Ditto.
11220 (V8DI_FTYPE_QI): Ditto.
11221 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
11222 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
11223 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
11224 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
11225 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
11226 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
11227 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
11228 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
11229 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
11230 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
11231 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
11232 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
11233 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
11234 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
11235 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
11236 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
11237 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
11238 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
11239 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
11240 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
11241 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
11242 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
11243 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
11244 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
11245 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
11246 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
11247 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
11248 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
11249 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
11250 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
11251 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
11252 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
11253 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
11254 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
11255 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
11256 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
11257 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
11258 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
11259 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
11260 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
11261 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
11262 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
11263 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
11264 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
11265 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
11266 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
11267 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
11268 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
11269 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
11270 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
11271 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
11272 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
11273 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
11274 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
11275 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
11276 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
11277 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
11278 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
11279 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
11280 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
11281 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
11282 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
11283 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
11284 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
11285 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
11286 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
11287 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
11288 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
11289 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
11290 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
11291 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
11292 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
11293 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
11294 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
11295 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
11296 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
11297 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
11298 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
11299 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
11300 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
11301 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
11302 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
11303 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
11304 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
11305 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
11306 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
11307 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
11308 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
11309 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
11310 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
11311 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
11312 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
11313 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
11314 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
11315 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
11316 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
11317 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
11318 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
11319 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
11320 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
11321 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
11322 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
11323 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
11324 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
11325 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
11326 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
11327 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
11328 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
11329 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
11330 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
11331 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
11332 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
11333 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
11334 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
11335 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
11336 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
11337 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
11338 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
11339 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
11340 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
11341 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
11342 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
11343 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
11344 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
11345 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
11346 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
11347 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
11348 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
11349 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
11350 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
11351 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
11352 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
11353 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
11354 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
11355 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
11356 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
11357 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
11358 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
11359 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
11360 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
11361 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
11362 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
11363 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
11364 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
11365 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
11366 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
11367 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
11368 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
11369 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
11370 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
11371 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
11372 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
11373 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
11374 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
11375 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
11376 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
11377 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
11378 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
11379 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
11380 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
11381 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
11382 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
11383 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
11384 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
11385 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
11386 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
11387 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
11388 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
11389 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
11390 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
11391 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
11392 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
11393 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
11394 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
11395 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
11396 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
11397 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
11398 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
11399 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
11400 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
11401 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
11402 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
11403 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
11404 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
11405 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
11406 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
11407 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
11408 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
11409 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
11410 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
11411 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
11412 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
11413 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
11414 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
11415 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
11416 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
11417 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
11418 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
11419 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
11420 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
11421 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
11422 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
11423 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
11424 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
11425 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
11426 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
11427 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
11428 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
11429 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
11430 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
11431 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
11432 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
11433 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
11434 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
11435 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
11436 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
11437 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
11438 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
11439 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
11440 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
11441 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
11442 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
11443 (QI_FTYPE_V8DF_INT_QI): Ditto.
11444 (QI_FTYPE_V4DF_INT_QI): Ditto.
11445 (QI_FTYPE_V2DF_INT_QI): Ditto.
11446 (HI_FTYPE_V16SF_INT_HI): Ditto.
11447 (QI_FTYPE_V8SF_INT_QI): Ditto.
11448 (QI_FTYPE_V4SF_INT_QI): Ditto.
11449 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
11451 2015-07-31 Richard Biener <rguenther@suse.de>
11453 * gimple-fold.c (fold_gimple_assign): Remove folding of
11456 2015-07-31 Tom de Vries <tom@codesourcery.com>
11458 PR tree-optimization/66846
11459 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
11460 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
11461 (expand_omp_target) [ENABLE_CHECKING]: Same.
11462 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
11463 cfun if !LOOPS_NEED_FIXUP.
11464 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
11465 that omp_for already has its own loop struct.
11466 * tree-parloops.c (create_phi_for_local_result)
11467 (create_call_for_reduction): Handle simple latch bb.
11468 (create_parallel_loop): Add simple latch bb to preserve
11469 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
11470 (gen_parallel_loop): Remove call to cancel_loop_tree.
11471 (parallelize_loops): Skip loops that are inner loops of parallelized
11473 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
11474 verify_loop_structure.
11476 2015-07-30 Anatoly Sokolov <aesok@post.ru>
11478 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
11479 * config/v850/v850.md (RV_REGNUM): New constants.
11480 * config/v850/v850.c (v850_libcall_value): New functions.
11481 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
11482 (TARGET_LIBCALL_VALUE): Define.
11484 2015-07-30 Anatoly Sokolov <aesok@post.ru>
11486 * rtl.h (lowpart_subreg): Move in file.
11487 * loop-iv.c (lowpart_subreg): Move to...
11488 * simplify-rtx.c (lowpart_subreg): ...here.
11489 (simplify_binary_operation_1): Use lowpart_subreg instead of
11490 simplify_gen_subreg.
11491 * expr.c (expand_expr_real_2): Ditto.
11492 * emit-rtl.c (gen_lowpart_common): Ditto.
11493 * combine.c (gen_lowpart_for_combine): Ditto.
11494 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
11495 expand_debug_source_expr): Ditto.
11497 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
11499 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
11500 (expand_builtin_atomic_clear): Remove support for atomic_clear
11503 2015-07-30 Richard Biener <rguenther@suse.de>
11505 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
11506 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
11507 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
11508 redundant operand canonicalization.
11510 2015-07-30 David Sherwood <david.sherwood@arm.com>
11512 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
11513 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
11514 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
11515 * config/arm/arm.c (neon_valid_immediate): Likewise.
11516 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
11517 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
11518 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
11519 (expand_vec_perm_vpshufb2_vpermq): Likewise.
11520 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
11521 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
11522 * config/i386/sse.md
11523 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
11524 (*ssse3_palignr<mode>_perm): Likewise.
11525 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
11526 * config/spu/spu.c (arith_immediate_p): Likewise.
11527 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11528 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
11530 2015-07-30 Richard Biener <rguenther@suse.de>
11532 * genmatch.c (decision_tree::gen_gimple): Merge with ...
11533 (decision_tree::gen_generic): ... this into ...
11534 (decision_tree::gen): ... this.
11535 (main): Adjust callers.
11537 2015-07-30 Richard Biener <rguenther@suse.de>
11539 * genmatch.c (verbose): New global.
11540 (warning_at): Add overload with source_location.
11541 (capture_info::capture_info): Add bool whether generating gimple
11542 or generic. Add gimple member.
11543 (capture_info::cinfo): Add capture member.
11544 (capture_info::walk_match): Record capture. Warn on
11545 non-captured leafs.
11546 (capture_info::walk_c_expr): Add more fragments captures cannot
11547 escape through. Warn on escaped captures.
11548 (dt_simplify::gen_1): Warn on operands we force to have no
11550 (main): Initialize verbose.
11551 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
11553 2015-07-30 Richard Biener <rguenther@suse.de>
11555 PR middle-end/67053
11556 * match.pd: Allow both operands to independently have conversion
11557 when simplifying compares of addresses.
11559 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
11563 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
11564 around those cases that need one.
11566 2015-07-29 Aditya Kumar <hiraditya@msn.com>
11568 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
11570 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
11572 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
11573 New. Copied from config/i386/gnu-user.h.
11574 (ASM_COMMENT_START): Likewise.
11575 (DBX_REGISTER_NUMBER): Likewise.
11577 2015-07-29 Richard Biener <rguenther@suse.de>
11579 * gimple-fold.c (fold_gimple_cond): Remove.
11580 (fold_stmt_1): Do not call it.
11582 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
11584 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
11585 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
11587 * config/aarch64/aarch64-modes.def: Add HFmode.
11589 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11590 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
11592 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
11593 aarch64_promoted_type): New.
11595 (aarch64_float_const_representable_p): Disable HFmode.
11596 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
11597 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
11598 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
11600 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
11601 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
11603 * config/aarch64/iterators.md (GPF_F16): New.
11605 2015-07-29 Richard Biener <rguenther@suse.de>
11607 * match.pd: Merge address comparison patterns and make them
11608 handle some more cases.
11610 2015-07-29 Richard Biener <rguenther@suse.de>
11612 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
11613 (parser::parse_capture): Add bool argument on whether to reject
11615 (parser::parse_expr): Adjust.
11616 (parser::parse_op): Likewise.
11617 (parser::parse_pattern): Likewise.
11619 2015-07-29 Richard Biener <rguenther@suse.de>
11621 * gimple-fold.c (has_use_on_stmt): New function.
11622 (replace_stmt_with_simplification): Use it to allow
11623 abnormals originally referenced in the stmt.
11624 (fold_stmt_1): Canonicalize operand order.
11626 2015-07-28 David Sherwood <david.sherwood@arm.com>
11628 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
11629 GET_MODE_INNER unconditionally.
11630 * config/spu/spu.c (arith_immediate_p): Likewise.
11631 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
11632 * expmed.c (synth_mult): Remove check for VOIDmode result from
11634 (expand_mult_const): Likewise.
11635 * fold-const.c (fold_binary_loc): Replace call to element_precision
11636 with call to GET_MODE_PRECISION.
11637 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
11639 (emit_mode_inner): Likewise.
11640 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
11642 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
11643 (GET_MODE_UNIT_PRECISION): Likewise.
11644 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
11645 * simplify-rtx.c (simplify_immed_subreg): Likewise.
11646 * stor-layout.c (bitwise_type_for_mode): Update assert.
11647 (element_precision): Remove.
11649 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11651 * target-insns.def (reload_load_address): New targetm instruction
11653 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
11655 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11657 * target-insns.def (atomic_test_and_set): New targetm instruction
11659 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
11660 HAVE_*/gen_* interface.
11662 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11664 * target-insns.def (can_extend, ptr_extend): New targetm instruction
11666 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
11667 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11668 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
11669 * rtlanal.c (nonzero_bits1): Likewise.
11670 (num_sign_bit_copies1): Likewise.
11672 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11674 * target-insns.def (eh_return): New targetm instruction pattern.
11675 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
11677 * function.c (thread_prologue_and_epilogue_insns): Remove
11678 preprocessor condition.
11680 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11682 * target-insns.def (indirect_jump): New targetm instruction pattern.
11683 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
11686 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11688 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
11689 instead of nonimmediate_operand. Remove C condiition.
11691 2015-07-28 Richard Biener <rguenther@suse.de>
11693 * match.pd: Add more simplification of address comparisons.
11695 2015-07-28 Richard Biener <rguenther@suse.de>
11697 * match.pd: Re-order two cases in comparison with max/min
11698 value simplification to make it apply for bools.
11700 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11702 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
11703 Handle simple SIGN_EXTEND or ZERO_EXTEND.
11704 (aarch64_rtx_costs): Properly strip extend or extract before
11705 passing down to rtx costs again.
11707 2015-07-28 Nick Clifton <nickc@redhat.com>
11709 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
11710 Optimizes the case where -mes0 is active and a constant symbolic
11712 * config/rl78/rl78-protos.h: Prototype the new function.
11713 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
11715 2015-07-28 Tom de Vries <tom@codesourcery.com>
11717 * tree-parloops.c (reduc_stmt_res): New function.
11718 (initialize_reductions, add_field_for_reduction)
11719 (create_phi_for_local_result, create_loads_for_reductions)
11720 (create_stores_for_reduction, build_new_reduction): Handle case that
11721 reduc_stmt is a phi.
11722 (gather_scalar_reductions): Allow double_reduc reductions.
11724 2015-07-28 Richard Biener <rguenther@suse.de>
11726 * fold-const.c (fold_comparison): Remove equality folding
11727 of decl addresses ...
11728 * match.pd: ... here and merge with existing pattern.
11730 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
11732 PR tree-optimization/66828
11733 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
11734 from int64_t to uint64_t.
11736 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
11738 * opts-common.c (read_cmdline_option): List DriverOnly enum values
11739 as valid only in the error message of the driver, not in the
11740 messages of the language compilers.
11742 2015-07-27 Tom de Vries <tom@codesourcery.com>
11744 * tree-parloops.c (gather_scalar_reductions): Simplify function
11747 2015-07-27 Marek Polacek <polacek@redhat.com>
11749 * ipa-devirt.c (types_same_for_odr): Fix typo.
11751 2015-07-27 Jason Merrill <jason@redhat.com>
11754 * dwarf2out.c (gen_inlined_subroutine_die): Check
11755 cgraph_function_possibly_inlined_p.
11757 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
11759 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
11760 Place integer variant first.
11761 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
11763 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
11766 * config/arm/arm-builtins.c (enum arm_builtins):
11767 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
11768 (ARM_BUILTIN_NEON_BASE): Rename macro to....
11769 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
11770 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
11771 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
11773 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
11776 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
11777 Add qualifier_lane_index.
11778 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
11779 (arm_getlane_qualifiers): Use qualifier_lane_index.
11780 (arm_lanemac_qualifiers): Rename to...
11781 (arm_mac_n_qualifiers): ...this.
11782 (LANEMAC_QUALIFIERS): Rename to...
11783 (MAC_N_QUALIFIERS): ...this.
11784 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
11785 (arm_setlane_qualifiers): Use qualifier_lane_index.
11786 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
11787 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
11788 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
11789 (arm_expand_neon_builtin): Handle qualifier_lane_index.
11791 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
11792 * config/arm/arm.c (bounds_check): Likewise, improve error message.
11793 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
11794 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
11795 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
11796 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
11797 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
11798 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
11799 qualifiers to TERNOP_IMM.
11800 (vdup_lane): Change qualifiers to GETLANE.
11801 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
11802 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
11803 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
11804 vqdmlsl_n): Change qualifiers to MAC_N.
11806 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
11807 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
11808 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
11809 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
11810 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
11811 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
11812 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
11813 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
11814 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
11815 Remove call to neon_lane_bounds.
11817 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
11819 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
11820 Place integer variant first.
11822 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
11824 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
11825 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
11826 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
11827 for armv6kz targets.
11828 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
11829 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
11830 (FL_FOR_ARCH6ZK): Remove.
11831 (FL_FOR_ARCH6KZ): New.
11832 (arm_arch6zk): New declaration.
11833 * config/arm/arm-tables.opt: Regenerate.
11834 * config/arm/arm.c (arm_arch6kz): New.
11835 (arm_option_override): Set arm_arch6kz.
11836 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
11837 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
11838 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
11840 2015-07-27 Marek Polacek <polacek@redhat.com>
11844 * doc/invoke.texi: Document -Wtautological-compare.
11846 2015-07-27 Richard Biener <rguenther@suse.de>
11848 * genmatch.c (decision_tree::gen_gimple): Split out large
11849 subtrees into separate functions.
11850 (decision_tree::gen_generic): Likewise.
11852 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
11854 * config/alpha/alpha.c: Use SUBREG_P predicate.
11855 * config/alpha/predicates.md: Ditto.
11857 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
11859 * config.host (s390*-*-*): Include driver-native.c only when
11860 building with s390* as host *and* target.
11862 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
11865 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
11866 T bit register modified_between_p check.
11868 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11870 * config/i386/i386.c: Use SUBREG_P predicate.
11871 * config/i386/i386.md: Ditto.
11872 * config/i386/sse.md: Ditto.
11873 * config/i386/predicates.md: Ditto.
11875 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11878 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
11879 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
11881 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11883 * Makefile.in: Remove use of TREEBROWSER.
11884 * config.in: Regenerated.
11885 * configure: Regenerated.
11886 * configure.ac: Remove definition of TREEBROWSER.
11887 * tree-browser.c: Removed.
11888 * tree-browser.def: Removed.
11890 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11892 * graphite-scop-detection.c: Include gimple-pretty-print.h.
11893 (stmt_simple_for_scop_p): Print when a stmt is not handled in
11895 (scopdet_basic_block_info): Print when a loop or bb cannot be
11896 represented in Graphite.
11898 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11901 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
11902 execution guard when min_size is less than size_needed.
11904 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11906 * doc/install.texi: Document supported versions of ISL.
11908 2015-07-25 Jeff Law <law@redhat.com>
11912 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11913 unable to find X NE 0 in the tables, return X as the simplified
11915 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11916 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11917 to VISISTED_BBS. */
11918 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11919 after removing the control flow statement and unnecessary edges.
11921 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
11924 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
11926 PR rtl-optimization/64164
11927 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11928 * tree-ssa-copyrename.c: Removed.
11929 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11930 -ftree-coalesce-vars.
11931 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11932 * common.opt (ftree-copyrename): Ignore.
11933 (ftree-coalesce-inlined-vars): Likewise.
11934 * doc/invoke.texi: Remove the ignored options above.
11935 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11936 * tree-ssa-coalesce.h: ... here.
11937 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11938 headers required by it.
11939 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11940 across variables when flag_tree_coalesce_vars. Check register
11941 use and promoted modes to allow coalescing. Moved to
11942 tree-ssa-coalesce.c.
11943 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11944 with its member functions to tree-ssa-coalesce.c.
11945 (var_map_base_init): Likewise. Renamed to
11946 compute_samebase_partition_bases.
11947 (partition_view_normal): Drop want_bases parameter.
11948 (partition_view_bitmap): Likewise.
11949 * tree-ssa-live.h: Adjust declarations.
11950 * tree-ssa-coalesce.c: Include explow.h.
11951 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11952 default defs at the entry point.
11953 (dump_part_var_map): New.
11954 (compute_optimized_partition_bases): New, called by...
11955 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11956 of compute_samebase_partition_bases. Adjust.
11957 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11958 * cfgexpand.c (leader_merge): New.
11959 (get_rtl_for_parm_ssa_default_def): New.
11960 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11961 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11962 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11963 redundant MEM attr setting.
11964 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11966 (expand_one_stack_var): ... this. New wrapper to check and
11967 skip already expanded SSA partitions.
11968 (record_alignment_for_reg_var): New, factored out of...
11969 (expand_one_var): ... this.
11970 (expand_one_ssa_partition): New.
11971 (adjust_one_expanded_partition_var): New.
11972 (expand_one_register_var): Check and skip already expanded SSA
11974 (expand_used_vars): Don't create DECLs for anonymous SSA
11975 names. Expand all SSA partitions, then adjust all SSA names.
11976 (pass::execute): Replace the loops that set
11977 SA.partition_to_pseudo from partition leaders and cleared
11978 DECL_RTL for multi-location variables, and that which used to
11979 rename vars and set attrs, with one that clears DECL_RTL and
11980 checks that PARMs and RESULTs default_defs match DECL_RTL.
11981 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11982 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11983 * explow.c (promote_ssa_mode): New.
11984 * explow.h (promote_ssa_mode): Declare.
11985 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11986 * function.c: Include cfgexpand.h.
11987 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11988 (use_register_for_parm_decl): Wrapper for the above to
11989 special-case the result_ptr.
11990 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11991 (split_complex_args): Take assign_parm_data_all argument.
11992 Pass it to rtl_for_parm. Set up rtl and context for split
11994 (assign_parms_augmented_arg_list): Adjust.
11995 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11996 multiple locations. Recognize split complex args.
11997 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11998 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11999 (assign_parm_setup_block): Prefer SSA-assigned location.
12000 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12001 if stack_parm is NULL.
12002 (assign_parm_setup_stack): Prefer SSA-assigned location.
12003 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12004 rtl before testing for pointer bounds. Special-case result_ptr.
12005 (expand_function_start): Maybe reset DECL_RTL of result.
12006 Prefer SSA-assigned location for result and static chain.
12007 Factor out DECL_RESULT and SET_DECL_RTL.
12008 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12009 anonymous SSA names. Use promote_ssa_mode.
12010 (get_temp_reg): Likewise.
12011 (remove_ssa_form): Adjust.
12012 * stor-layout.c (layout_decl): Don't set mem attributes of
12014 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12015 and get its reg_usage for reg invalidation.
12016 (compute_bb_dataflow): Pass it insn.
12017 (emit_notes_in_bb): Likewise.
12019 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12021 * config/i386/i386.c (ix86_va_start): Remove
12022 unneeded !TARGET_64BIT check.
12023 (ix86_gimplify_va_arg): Ditto.
12025 2015-07-24 Tom de Vries <tom@codesourcery.com>
12027 * graphite-sese-to-poly.c (build_poly_scop): Always call
12028 rewrite_commutative_reductions_out_of_ssa.
12030 2015-07-24 Tom de Vries <tom@codesourcery.com>
12032 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
12033 flag_associative_math to FLOAT_TYPE_P. Honour
12034 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
12036 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12039 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
12040 and "%qD" in warning_at instead of "%q+D" in warning.
12042 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
12044 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
12045 (ix86_function_abi): Cleanup.
12047 2015-07-24 Michael Darling <darlingm@gmail.com>
12050 * acinclude.m4: Reflects renaming of configure.in to configure.ac
12051 * configure: Likewise
12052 * configure.ac: Likewise
12053 * doc/install.texi: Likewise
12054 * doc/tm.texi: Likewise
12055 * doc/tm.texi.in: Likewise
12057 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12059 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
12060 manually swapping values.
12061 * cse.c (fold_rtx): Likewise.
12062 * lra-eliminations.c (form_sum): Likewise.
12064 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
12067 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
12068 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
12069 (*jcc_1, *jcc_2, jump, simple_return_internal)
12070 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
12071 Set length_nobnd attribute instead of length attribute.
12072 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
12073 (length_nobnd): Remove attribute.
12074 (length): Remove length_nobnd processing.
12076 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
12078 * gimplify.c (omp_default_clause): New function. Reorganize flow
12079 for clarity. Broken out of ...
12080 (omp_notice_variable): ... here.
12082 2015-07-24 Gary Funck <gary@intrepid.com>
12084 PR middle-end/66984
12085 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
12086 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
12088 2015-07-24 Tom de Vries <tom@codesourcery.com>
12090 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
12091 exit-first loop transform.
12093 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
12096 * tree-cfg.c (struct replace_decls_d): New struct.
12097 (replace_block_vars_by_duplicates_1): New function.
12098 (replace_block_vars_by_duplicates): Use it to replace the decls
12099 in the value exprs by duplicates.
12101 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
12103 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
12104 -shared, -symbolic, -rdynamic.
12106 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
12109 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
12110 -dynamic-linker within %{!static %{!shared, and -rdynamic within
12113 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
12116 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
12117 edge summary is available.
12119 2015-07-24 Richard Biener <rguenther@suse.de>
12121 * genmatch.c (struct dt_node): Add statistic fields.
12122 (dt_node::analyze): New method.
12123 (decision_tree::gen_gimple): Call analyze on the root node
12124 and print statistics to stderr.
12125 (decision_tree::gen_generic): Likewise.
12127 2015-07-24 Richard Biener <rguenther@suse.de>
12129 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
12130 against the highest or lowest possible integer ...
12131 * match.pd: ... as patterns here.
12133 2015-07-24 Richard Biener <rguenther@suse.de>
12135 * genmatch.c (struct capture_info): Add same_as field.
12136 (capture_info::capture_info): Initialize same_as.
12137 (capture_info::walk_match): Compute same_as.
12138 (capture_info::walk_result): Compute stuff for the leader.
12139 (capture_info::walk_c_expr): Likewise.
12140 (dt_simplify::gen_1): Only look at leaders when deciding
12141 to force no side-effects or emit side-effects of omitted operands.
12143 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12145 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
12146 reg note to the GPR -> FPR save instructions.
12148 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12150 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
12152 (s390_expand_insv): Don't generate risbg pattern for constant zero
12154 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
12155 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
12158 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
12160 * config/s390/s390.c (s390_reorg): Clean up handling of processors
12163 (s390_issue_rate): Likewise.
12164 (s390_sched_reorder): Likewise.
12165 (s390_sched_variable_issue): Likewise.
12166 (s390_loop_unroll_adjust): Likewise.
12167 (s390_option_override): Likewise.
12169 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
12171 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
12172 processor capabilities with -march=native.
12173 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
12174 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
12175 (S390_TARGET_BITS_STRING): Macro to simplify specs.
12177 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
12179 * config/s390/s390.c (s390_issue_rate): Handle
12180 PROCESSOR_2094_Z9_EC.
12181 (s390_option_override): Likewise.
12182 (s390_adjust_priority): Likewise.
12184 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
12186 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
12187 when cross compiling.
12189 2015-07-24 Richard Biener <rguenther@suse.de>
12191 * fold-const.c (maybe_canonicalize_comparison_1): Move
12192 A code CST canonicalization ...
12193 * match.pd: ... to a pattern here.
12195 2015-07-24 Jiong Wang <jiong.wang@arm.com>
12198 2015-07-22 Jiong Wang <jiong.wang@arm.com>
12200 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
12201 (HONOR_REG_ALLOC_ORDER): Define.
12203 2015-07-24 Richard Biener <rguenther@suse.de>
12205 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
12206 * fold-const.c (fold_comparison): Move parameter does not
12207 alias &local simplification ...
12208 * match.pd: ... as a pattern here.
12210 2015-07-24 Richard Biener <rguenther@suse.de>
12212 * gimple-fold.c (replace_stmt_with_simplification): Special-case
12213 valueizing call operands.
12214 * gimple-match-head.c (maybe_push_res_to_seq): Take
12215 number of call arguments from ops array.
12216 (do_valueize): New function.
12217 (gimple_simplify): Return true if valueization changed
12218 any operand even if the result didn't simplify further.
12220 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12222 PR middle-end/25530
12223 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
12225 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12227 PR middle-end/25529
12228 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
12230 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12232 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
12235 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12237 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
12240 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
12242 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
12243 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
12245 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
12246 ms_va_list_type_node initialization.
12248 2015-07-23 Jeff Law <law@redhat.com>
12251 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12252 unable to find X NE 0 in the tables, return X as the simplified
12254 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12255 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
12256 to VISISTED_BBS. */
12257 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12258 after removing the control flow statement and unnecessary edges.
12260 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
12262 * tree-pass.h (get_current_pass_name): Removed.
12264 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
12266 PR rtl-optimization/64164
12267 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12268 * tree-ssa-copyrename.c: Removed.
12269 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12270 -ftree-coalesce-vars.
12271 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12272 * common.opt (ftree-copyrename): Ignore.
12273 (ftree-coalesce-inlined-vars): Likewise.
12274 * doc/invoke.texi: Remove the ignored options above.
12275 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12276 * tree-ssa-coalesce.h: ... here.
12277 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12278 headers required by it.
12279 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12280 across variables when flag_tree_coalesce_vars. Check register
12281 use and promoted modes to allow coalescing. Moved to
12282 tree-ssa-coalesce.c.
12283 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12284 with its member functions to tree-ssa-coalesce.c.
12285 (var_map_base_init): Likewise. Renamed to
12286 compute_samebase_partition_bases.
12287 (partition_view_normal): Drop want_bases parameter.
12288 (partition_view_bitmap): Likewise.
12289 * tree-ssa-live.h: Adjust declarations.
12290 * tree-ssa-coalesce.c: Include explow.h.
12291 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12292 default defs at the entry point.
12293 (dump_part_var_map): New.
12294 (compute_optimized_partition_bases): New, called by...
12295 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12296 of compute_samebase_partition_bases. Adjust.
12297 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12298 * cfgexpand.c (leader_merge): New.
12299 (get_rtl_for_parm_ssa_default_def): New.
12300 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12301 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12302 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12303 redundant MEM attr setting.
12304 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12306 (expand_one_stack_var): ... this. New wrapper to check and
12307 skip already expanded SSA partitions.
12308 (record_alignment_for_reg_var): New, factored out of...
12309 (expand_one_var): ... this.
12310 (expand_one_ssa_partition): New.
12311 (adjust_one_expanded_partition_var): New.
12312 (expand_one_register_var): Check and skip already expanded SSA
12314 (expand_used_vars): Don't create DECLs for anonymous SSA
12315 names. Expand all SSA partitions, then adjust all SSA names.
12316 (pass::execute): Replace the loops that set
12317 SA.partition_to_pseudo from partition leaders and cleared
12318 DECL_RTL for multi-location variables, and that which used to
12319 rename vars and set attrs, with one that clears DECL_RTL and
12320 checks that PARMs and RESULTs default_defs match DECL_RTL.
12321 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12322 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12323 * explow.c (promote_ssa_mode): New.
12324 * explow.h (promote_ssa_mode): Declare.
12325 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12326 * function.c: Include cfgexpand.h.
12327 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12328 (use_register_for_parm_decl): Wrapper for the above to
12329 special-case the result_ptr.
12330 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12331 (split_complex_args): Take assign_parm_data_all argument.
12332 Pass it to rtl_for_parm. Set up rtl and context for split
12334 (assign_parms_augmented_arg_list): Adjust.
12335 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12336 multiple locations. Recognize split complex args.
12337 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12338 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12339 (assign_parm_setup_block): Prefer SSA-assigned location.
12340 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12341 if stack_parm is NULL.
12342 (assign_parm_setup_stack): Prefer SSA-assigned location.
12343 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12344 rtl before testing for pointer bounds. Special-case result_ptr.
12345 (expand_function_start): Maybe reset DECL_RTL of result.
12346 Prefer SSA-assigned location for result and static chain.
12347 Factor out DECL_RESULT and SET_DECL_RTL.
12348 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12349 anonymous SSA names. Use promote_ssa_mode.
12350 (get_temp_reg): Likewise.
12351 (remove_ssa_form): Adjust.
12352 * stor-layout.c (layout_decl): Don't set mem attributes of
12354 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12355 and get its reg_usage for reg invalidation.
12356 (compute_bb_dataflow): Pass it insn.
12357 (emit_notes_in_bb): Likewise.
12359 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12362 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
12364 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
12365 (rs6000_emit_2insn_and): Handle dot forms.
12366 * config/rs6000/rs6000.md (and<mode>3): Adjust.
12367 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
12368 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
12370 2015-07-23 Richard Biener <rguenther@suse.de>
12372 * generic-match-head.c: Include cgraph.h.
12373 * gimple-match-head.c: Likewise.
12374 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
12376 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
12377 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
12380 2015-07-23 Richard Biener <rguenther@suse.de>
12382 * gimple-fold.c (fold_gimple_cond): Do not require folding
12383 results to pass valid_gimple_rhs_p.
12384 * tree-cfg.h (fold_cond_expr_cond): Remove.
12385 * tree-cfg.c (fold_cond_expr_cond): Likewise.
12386 (make_edges): Do not call it.
12387 * tree-inline.c (tree_function_versioning): Likewise.
12389 2015-07-23 Tom de Vries <tom@codesourcery.com>
12391 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
12392 vect_force_simple_reduction.
12393 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
12394 (vect_is_simple_reduction_1): Add and handle
12395 need_wrapping_integral_overflow parameter.
12396 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
12397 need_wrapping_integral_overflow parameter.
12398 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
12399 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
12402 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
12404 PR tree-optimization/66926,66951
12405 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
12406 INNER_LOOP and fix up condition for renaming virtual operands.
12408 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12410 * combine.c (try_combine): Use std::swap instead of manually
12413 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
12415 * config/mips/i6400.md: New file.
12416 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
12417 (mips64r6): Likewise.
12419 * config/mips/mips-tables.opt: Regenerate.
12420 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
12421 (mips_issue_rate): Add support for i6400.
12422 (mips_multipass_dfa_lookahead): Likewise.
12423 * config/mips/mips.h (TUNE_I6400): Define.
12424 * config/mips/mips.md: Include i6400.md.
12425 (processor): Add i6400.
12426 * doc/invoke.texi (-march=@var{arch}): Add i6400.
12428 2015-07-23 Richard Biener <rguenther@suse.de>
12430 PR middle-end/66916
12431 * match.pd: Guard widen and sign-change comparison simplification
12434 2015-07-23 Richard Biener <rguenther@suse.de>
12436 PR tree-optimization/66945
12437 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
12438 ::before_dom_children): Force the propagators idea of
12439 non-executable edges to materialize, not what the folder
12442 2015-07-23 Richard Biener <rguenther@suse.de>
12444 * gimple.h (gimple_cond_make_false): Use 0 != 0.
12445 (gimple_cond_make_true): Use 1 != 0.
12447 2015-07-22 DJ Delorie <dj@redhat.com>
12449 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
12452 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
12453 (ashrhi3): Likewise.
12454 (lshrhi3): Likewise.
12455 (movhi): Take advantage of zero-extend to load small constants.
12456 (movpsi): Likewise.
12457 (and<mode>3): Likewise.
12458 (zero_extendqihi2): Likewise.
12459 (zero_extendqisi2): New.
12460 * config/msp430/constraints.md (N,O): New.
12461 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
12463 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
12466 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
12467 to enum feature_priority and feature_list.
12468 (fold_builtin_cpu): Add F_AES to enum processor_features
12469 and isa_names_table.
12471 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
12474 * config/i386/linux-common.h (MPX_SPEC): Use linker option
12475 for 64bit target only.
12477 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
12479 * config/nvptx/nvptx.c: Expand some comments.
12481 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
12483 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
12484 (cortex_a53_advsimd): ...This.
12486 2015-07-22 Richard Biener <rguenther@suse.de>
12488 * genmatch.c (expr::gen_transform): Clarify error message
12489 and display location.
12491 2015-07-22 Richard Biener <rguenther@suse.de>
12493 * genmatch.c (struct operand): Add location member.
12494 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
12496 (struct simplify): Remove match_location and result_location
12498 (elsehwere): Adjust.
12500 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
12502 * config/mips/m5100.md: New file.
12503 * config/mips/mips-cpus.def (m5100, m5101): Define.
12504 * config/mips/mips-tables.opt: Regenerate.
12505 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
12506 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
12507 -march=m5101 to -mips32r5.
12508 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
12509 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
12511 * config/mips/mips.md: Include m5100.md.
12512 (processor): Add m5100.
12513 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
12515 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
12517 * config/mips/mips-cpus.def (interaptiv): Define.
12518 * config/mips/mips-tables.opt: Regenerate.
12519 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
12521 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
12522 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
12524 2015-07-22 Jiong Wang <jiong.wang@arm.com>
12527 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
12528 (HONOR_REG_ALLOC_ORDER): Define.
12530 2015-07-22 Richard Biener <rguenther@suse.de>
12532 PR tree-optimization/66952
12533 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
12534 blocks we end up executing unconditionally reset all SSA
12535 info such as range and alignment.
12536 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
12537 * tree-ssanames.c (reset_flow_sensitive_info): New function.
12539 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
12541 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
12544 2015-07-22 Richard Biener <rguenther@suse.de>
12546 * genmatch.c (parser::parse_result): Properly handle
12547 match with result operands and conditions.
12549 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
12552 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
12553 Add qualifier_struct_load_store_lane_index.
12554 (aarch64_types_loadstruct_lane_qualifiers): Use
12555 qualifier_struct_load_store_lane_index for lane index argument for
12557 (aarch64_types_storestruct_lane_qualifiers): Ditto.
12558 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12559 (aarch64_simd_expand_args): Add new argument describing mode of
12560 builtin. Check lane bounds for arguments with
12561 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12562 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
12563 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12564 (aarch64_simd_expand_builtin): Handle arguments with
12565 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
12566 aarch64_simd_expand_args.
12567 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
12568 vst[234]_lane with BUILTIN_VALLDIF.
12569 * config/aarch64/aarch64-simd.md:
12570 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
12571 endianness reversal on lane index.
12572 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
12573 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
12574 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
12575 (vec_store_lanesci_lane<mode>): Ditto.
12576 (vec_store_lanesxi_lane<mode>): Ditto.
12577 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
12578 reversal of lane index.
12579 (aarch64_ld3_lane<mode>): Ditto.
12580 (aarch64_ld4_lane<mode>): Ditto.
12581 (aarch64_st2_lane<mode>): Ditto.
12582 (aarch64_st3_lane<mode>): Ditto.
12583 (aarch64_st4_lane<mode>): Ditto.
12584 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
12585 to qmode. Add new mode parameter. Update uses.
12586 (__LD3_LANE_FUNC): Ditto.
12587 (__LD4_LANE_FUNC): Ditto.
12588 (__ST2_LANE_FUNC): Ditto.
12589 (__ST3_LANE_FUNC): Ditto.
12590 (__ST4_LANE_FUNC): Ditto.
12592 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
12594 * doc/invoke.texi (Language Independent Options): Rename node to
12595 Diagnostic Message Formatting Options.
12597 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
12600 * lra-remat.c (operand_to_remat): Prevent using insns with input
12601 subregs processed separately by IRA.
12603 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
12605 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
12607 (single_imm_use): Check for iterator node.
12608 (num_imm_uses): Likewise.
12609 * tree-ssa-operands.c (has_zero_uses_1): Delete.
12610 (single_imm_use_1): Check for iterator node.
12612 2015-07-21 Mike Frysinger <vapier@gentoo.org>
12613 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12615 * configure.ac: Add check for new options in isl-0.15.
12616 * config.in, configure: Rebuilt.
12617 * graphite-blocking.c: Include <isl/constraint.h>
12618 * graphite-interchange.c, graphite-poly.c: Likewise.
12619 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
12620 * graphite.c: Likewise.
12621 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
12623 * graphite-dependences.c: Include <isl/constraint.h>.
12624 (max_number_of_out_dimensions): Returns isl_stat.
12625 (extend_schedule_1): Likewise
12626 (extend_schedule): Corresponding changes.
12627 * graphite-optimize-isl.c: Include <isl/constraint.h> and
12629 (getSingleMap): Change return type of isl_stat.
12630 (optimize_isl): Conditionally use
12631 isl_options_set_schedule_serialize_sccs.
12632 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
12633 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
12635 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
12638 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
12639 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
12641 2015-07-21 Richard Biener <rguenther@suse.de>
12643 PR tree-optimization/66948
12644 * genmatch.c (capture_info::walk_match): Also recurse to
12645 captures. Properly compute expr state from captures of
12647 * match.pd: Add single-use guards to
12648 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
12650 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12652 * config/nvptx/mkoffload.c (process): Add static destructor call.
12654 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12656 PR middle-end/66915
12657 * match.pd (A - B -> A + (-B)): Don't allow folding
12658 when type if a fixed-point type.
12660 2015-07-20 DJ Delorie <dj@redhat.com>
12662 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
12663 (iorqi3_real): Likewise for set1.
12665 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
12667 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
12670 2015-07-20 Aditya Kumar <hiraditya@msn.com>
12672 * graphite-isl-ast-to-gimple.c:
12673 Refactor so that each function can access 'region'. This will help
12674 maintain a parameter rename_map within a region.
12676 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12678 * config/rs6000/rs6000.md (*lt0_disi): New.
12680 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12683 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
12684 "available letters" comment.
12685 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
12686 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
12687 and_2rld_operand): Delete.
12688 (and_operand): Adjust.
12689 (rotate_mask_operator): New.
12690 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
12691 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
12692 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
12693 extract_ME): Delete.
12694 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
12695 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
12696 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
12697 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
12698 rs6000_emit_2insn_and): New.
12699 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
12700 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
12701 includes_rldic_lshift_p, includes_rldicr_lshift_p,
12702 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
12703 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
12704 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
12705 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
12706 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
12707 rs6000_emit_2insn_and): New.
12708 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
12709 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
12711 <NOT>: Don't fall through to next case.
12712 <AND>: Handle the various rotate-and-mask cases directly.
12713 <IOR>: Always cost as one insn.
12714 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
12715 (and<mode>3): Adjust expander for the new patterns.
12716 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
12717 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
12718 (*and<mode>3_imm_dot_shifted): New.
12719 (*and<mode>3_mask): Delete, rewrite as ...
12720 (and<mode>3_mask): ... New.
12721 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
12722 (andsi3_internal0_nomc): Delete.
12723 (*andsi3_internal6): Delete.
12724 (*and<mode>3_2insn): New.
12725 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
12726 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
12727 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
12728 *insvdi_internal3): Delete.
12729 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
12730 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
12731 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
12732 *ior<mode>_mask): New.
12733 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
12734 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
12735 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
12736 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
12738 (ashr<mode>3): Delete expander.
12739 (*ashr<mode>3): Rename to ...
12740 (ashr<mode>3): ... This.
12741 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
12742 (*rotldi3_internal4, *rotldi3_internal5 and split,
12743 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
12744 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
12745 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
12746 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
12747 (splitter for loading a mask): Adjust.
12748 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
12750 2015-07-20 Marek Polacek <polacek@redhat.com>
12752 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
12753 output_add_clobbers, output_added_clobbers_hard_reg_p,
12754 gen_rtx_scratch): Remove declarations.
12756 2015-07-20 Marek Polacek <polacek@redhat.com>
12759 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
12761 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12763 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
12764 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
12766 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12768 * combine.c (combine_simplify_rtx): Move simplification step
12769 before various transformations/substitutions.
12771 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
12773 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
12774 (struct int_traits): Likewise.
12776 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12778 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
12779 function to vmsdbgout_function_decl.
12781 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
12784 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
12785 from misaligned positions.
12786 (ix86_expand_pinsr): Reject insertions to misaligned positions.
12788 2015-07-18 Sebastian Pop <s.pop@samsung.com>
12790 PR middle-end/46851
12791 PR middle-end/60340
12792 * Makefile.in: Removed omega.o.
12793 * common.opt: Document flag fcheck-data-deps as deprecated.
12794 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
12795 its associated params: omega-max-vars, omega-max-geqs,
12796 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
12797 omega-max-keys, omega-eliminate-redundant-constraints.
12798 * doc/loop.texi: Remove all the section on Omega.
12799 * graphite-blocking.c: Include missing params.h: it used to be
12800 included through tree-data-ref.h and omega.h.
12801 * graphite-isl-ast-to-gimple.c: Same.
12802 * graphite-optimize-isl.c: Same.
12803 * graphite-sese-to-poly.c: Same.
12804 * graphite.c: Same.
12807 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
12808 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
12809 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
12810 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
12811 * passes.def: Remove pass_check_data_deps.
12812 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
12813 (dump_conflict_function): Same.
12814 (dump_subscript): Same.
12815 (print_direction_vector): Same.
12816 (print_dir_vectors): Same.
12817 (print_lambda_vector): Same.
12818 (print_dist_vectors): Same.
12819 (dump_data_dependence_relation): Same.
12820 (dump_data_dependence_relations): Same.
12821 (dump_dist_dir_vectors): Same.
12823 (init_omega_eq_with_af): Removed.
12824 (omega_extract_distance_vectors): Removed.
12825 (omega_setup_subscript): Removed.
12826 (init_omega_for_ddr_1): Removed.
12827 (init_omega_for_ddr): Removed.
12828 (ddr_consistent_p): Removed.
12829 (compute_affine_dependence): Do not use omega to check data
12831 (compute_data_dependences_for_bb): Removed.
12832 (analyze_all_data_dependences): Removed.
12833 (tree_check_data_deps): Removed.
12834 * tree-data-ref.h: Do not include omega.h.
12835 (compute_data_dependences_for_bb): Removed.
12836 (tree_check_data_deps): Removed.
12837 * tree-ssa-loop.c (pass_check_data_deps): Removed.
12838 (make_pass_check_data_deps): Removed.
12839 * tree-ssa-phiopt.c: Include params.h.
12840 * tree-vect-data-refs.c: Same.
12841 * tree-vect-slp.c: Same.
12843 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
12845 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
12846 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
12847 (mem->fpreg splitters): Ditto.
12848 (general_operand->nonimmediate_operand splitter): Use explicit modes.
12849 Disable DFmode for TARGET_64BIT.
12851 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
12854 * config/i386/i386.c (ix86_expand_prologue): Replicate static
12855 chain on the stack.
12857 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12859 * config/nvptx/mkoffload.c (process): Constify host data.
12860 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
12861 Constify host data.
12862 (generate_host_descr_file): Likewise.
12864 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
12865 Sebastian Pop <s.pop@samsung.com>
12867 PR middle-end/61929
12868 * graphite-dependences.c (add_pdr_constraints): Renamed
12869 pdr->extent to pdr->subscript_sizes.
12870 * graphite-interchange.c (build_linearized_memory_access): Add
12871 back all gcc_assert's that the "isl_int to isl_val conversion"
12872 patch has removed. Refactored.
12873 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
12874 * graphite-poly.c (new_poly_dr): Same.
12875 (free_poly_dr): Same.
12876 * graphite-poly.h (struct poly_dr): Same.
12877 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
12878 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
12879 * graphite-scop-detection.h: Fix space.
12880 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
12881 back all gcc_assert's removed by a previous patch.
12882 (wrap): Remove the_isl_ctx global variable that the same patch has
12884 (build_loop_iteration_domains): Same.
12885 (add_param_constraints): Same.
12886 (pdr_add_data_dimensions): Same. Refactored.
12887 (build_poly_dr): Renamed extent to subscript_sizes.
12889 2015-07-17 Marek Polacek <polacek@redhat.com>
12891 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
12892 * match.pd: ... here.
12894 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12896 * config/nvptx/mkoffload.c (process): Constify target data.
12897 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
12898 Constify target data.
12899 (generate_target_offloadend_file): Likewise.
12901 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
12903 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
12904 to allow renaming of PHI arguments on edges incoming from outer
12905 loop header, add corresponding check before start PHI iterator.
12906 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
12907 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
12908 with true force_vectorize. Set-up dominator for outer loop too.
12909 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
12910 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
12911 was marked with force_vectorize and has restricted cfg.
12912 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
12914 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
12915 do peeling for outer loops.
12917 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
12918 Matthias Klose <doko@ubuntu.com>
12920 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
12921 build-sysroot, sysroot from the `Miscenalleous configure options' to
12922 the `Directories' section and strip trailing `/' from with_sysroot.
12923 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
12924 * configure: Regenerated.
12926 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
12929 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
12930 (TARGET_HARD_DF_REGS): Ditto.
12931 (TARGET_HARD_XF_REGS): Ditto.
12932 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
12933 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
12934 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
12935 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
12936 (*movsf_internal): Add alternatives 16 and 17. Enable
12937 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
12939 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
12941 PR rtl-optimization/66891
12942 * calls.c (expand_call): Wrap precompute_register_parameters with
12943 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
12945 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12947 * config/nvptx/mkoffload.c (process): Constify mapping variables.
12948 Define target data struct and initialize it.
12950 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
12952 PR rtl-optimization/66626
12953 * ira.h (emit-rtl.h): Include.
12954 (non_spilled_static_chain_regno_p): New.
12955 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
12956 unless it is non spilled static chain pseudo.
12957 (assign_hard_rego): Spill memory profitable allocno unless it is
12958 non spilled static chain pseudo.
12959 (allocno_spill_priority_compare): Put non spilled static chain
12960 pseudo at the end of sorted array.
12961 (improve_allocation): Do nothing if we have static chain and
12963 (allocno__priority_compare_func): Put non spilled static chain
12964 pseudo at the beginning of sorted array.
12965 (move_spill_restore): Ignore non spilled static chain pseudo.
12966 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
12967 to non spilled static chain pseudo.
12968 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
12969 pseudo at the beginning of sorted array.
12970 (spill_for): Spill non spilled static chain pseudo last.
12971 * lra-constraints.c (lra_constraints): Remove static chain pseudo
12972 check for equivalence.
12974 2015-07-16 Martin Liska <mliska@suse.cz>
12977 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
12978 dst_ctx if it does not exist.
12980 2015-07-16 Martin Liska <mliska@suse.cz>
12982 * hash-set.h (remove): New function.
12983 (iterator): New iteration class for hash_set.
12985 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12987 * genattrtab.c (make_canonical): Add a file_location parameter.
12988 Use fatal_at rather than fatal.
12989 (get_attr_value): Likewise. Update call to make_canonical.
12990 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
12991 (make_internal_attr): Update calls accordingly.
12993 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12995 * read-md.h (message_with_line, error_with_line): Delete.
12996 * read-md.c (message_with_line, error_with_line): Delete.
12997 * gensupport.h: Include read-md.h.
12998 (md_rtx_info): New structure.
12999 (read_md_rtx): Use it. Return a bool success value.
13000 * gensupport.c (read_md_rtx): Likewise.
13001 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
13002 (main): Update after interface changes.
13003 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
13004 (main): Update after interface changes.
13005 * genattrtab.c (insn_code_number): Delete.
13006 (optimize_attrs): Add a max_insn_code parameter and use it instead
13007 of insn_code_number.
13008 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
13009 Use *_at rather than *_with_line functions.
13010 (gen_insn): Likewise.
13011 (gen_delay): Likewise.
13012 (gen_insn_reserv): Likewise.
13013 (gen_bypass): Take an md_rtx_info rather than an rtx.
13014 (main): Update after interface changes. Use a local max_insn_code
13015 variable instead of insn_code_number.
13016 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
13017 an rtx. Use fatal_at rather than fatal.
13018 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
13019 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
13020 (gen_absence_set, gen_final_absence_set, gen_automaton)
13021 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
13022 (main): Update after interface changes.
13023 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
13025 (main): Update after interface changes.
13026 * genconditions.c (main): Use new read_md_rtx interface.
13027 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
13028 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
13029 (main): Update after interface changes.
13030 * genemit.c (insn_code_number, insn_index_number): Delete.
13031 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13032 Use fatal_at rather than fatal.
13033 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
13035 (gen_split): Likewise.
13036 (main): Update after interface changes.
13037 * genextract.c (line_no): Delete.
13038 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13039 Update call to walk_rtx.
13040 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
13041 rather than message_with_line.
13042 (walk_rtx): Add an md_rtx_info argument. Update call to
13043 VEC_safe_set_locstr.
13044 (main): Update after interface changes.
13045 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
13046 and lineno. Use error_at rather than separate message_with_line
13047 calls and have_error assignments.
13048 (main): Update after interface changes.
13049 * genmddump.c (main): Use new read_md_rtx interface.
13050 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
13051 (main): Update after interface changes.
13052 * genoutput.c (next_code_number): Delete.
13053 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13054 (gen_peephole, gen_expand, gen_split): Likewise.
13055 (note_constraint): Likewise. Use *_at rather than *_with_line
13057 (main): Update after interface changes.
13058 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
13060 (main): Update after interface changes.
13061 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
13062 than an rtx and lineno.
13063 (process_define_constraint): Likewise.
13064 (process_define_register_constraint): Likewise.
13065 (main): Update after interface changes.
13066 * genrecog.c (next_insn_code, pattern_lineno): Delete.
13067 (validate_pattern): Replace top-level rtx with an md_rtx_info.
13068 Use *_at rather than *_with_line functions.
13069 (match_pattern_2): Likewise.
13070 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
13071 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
13072 Use *_at rather than *_with_line functions.
13073 * gentarget-def.c (add_insn): New function.
13074 (main): Use it. Use new read_md_rtx interface.
13076 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13078 * gensupport.h (compute_test_codes): Take a file_location rather
13079 than a line number.
13080 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
13081 rather than *_with_line functions.
13082 (process_define_predicate): Update call to compute_test_codes.
13083 * genpreds.c (validate_exp): Take a file_location rather than a
13084 line number. Use *_at functions rather than *_with_line functions.
13085 (process_define_predicate): Update call to validate_exp.
13086 (constraint_data): Replace lineno field with a file_location.
13087 (add_constraint): Take a file_location rather than a line number.
13088 Use *_at functions rather than *_with_line functions. Fix error
13089 message for address constraints. Update after changes to
13090 validate_exp, constraint_data and compute_test_codes.
13091 (process_define_constraint): Update accordingly.
13092 (process_define_register_constraint): Likewise.
13094 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13096 * genoutput.c (data): Use a file_location to record the source
13099 (idata, idata_end): Remove initialization.
13100 (constraint_data): Replace lineno with a file_location.
13101 (output_insn_data): Update after changes to data.
13102 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
13103 (scan_operands): Likewise, using *_at rather than *_with_line
13105 (process_template): Likewise.
13106 (validate_insn_alternatives): Likewise.
13107 (validate_insn_operands): Likewise.
13108 (validate_optab_operands): Likewise.
13109 (init_insn_for_nothing): Initialize idata and idata_end.
13110 (note_constraint): Update after changes to constraint_data,
13111 using at rather than with_line functions.
13112 (mdep_constraint_len): Take a file_location rather than a
13113 line number. Use at rather than with_line functions.
13115 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13117 * read-md.h (fatal_at): Declare.
13118 * read-md.c (fatal_at): New function.
13119 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
13120 to record the source position.
13121 (check_attr_test): Take a file_location instead of a line number.
13122 Use fatal_at instead of fatal.
13123 (check_attr_value): Update after above changes, using "at"
13124 rather than "with_line" reporting functions.
13125 (convert_set_attr_alternative): Likewise.
13126 (gen_attr): Likewise.
13127 (check_defs): Likewise. Don't assign to read_md_filename.
13128 (gen_insn): Update initialization after above changes.
13129 (gen_delay): Likewise.
13130 (write_insn_cases): Print the filename for a define_peephole.
13131 (gen_insn_reserv): Take a line number as argument and update
13132 the call to check_attr_test.
13133 (main): Pass a line number to gen_insn_reserv.
13135 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13137 * read-md.h (file_location): New structure.
13138 (directive_handler_t): Take a file_location rather than a line number.
13139 (message_at, error_at): Declare.
13140 (read_skip_construct): Delete.
13141 * read-md.c (message_with_line_1): Replace with...
13142 (message_at_1): ...this new function.
13143 (message_at, error_at): New functions.
13144 (message_with_line, error_with_line): Update to use message_at_1.
13145 (handle_enum): Take a file_location rather than a line number
13146 and use error_at for error reporting.
13147 (handle_include): Likewise.
13148 (read_skip_construct): Likewise. Make static.
13149 (handle_file): Update after above changes. Pass a file_location
13150 rather than a line number to handle_directive.
13151 * gensupport.c (queue_elem): Replace separate filename and lineno
13152 with a file_location.
13153 (queue_pattern): Replace filename and lineno arguments with a
13154 file_location. Update after change to queue_elem.
13155 (process_define_predicate): Replace lineno argument with a
13156 file_location and use error_at for error reporting. Update
13157 after above changes.
13158 (process_rtx): Likewise.
13159 (subst_pattern_match): Likewise.
13160 (get_alternatives_number): Likewise.
13161 (alter_predicate_for_insn): Likewise.
13162 (rtx_handle_directive): Likewise.
13163 (is_predicable): Update after above changes, using error_at rather
13164 than error_with_line.
13165 (has_subst_attribute): Likewise.
13166 (identify_predicable_attribute): Likewise.
13167 (alter_attrs_for_subst_insn): Likewise.
13168 (process_one_cond_exec): Likewise.
13169 (process_substs_on_one_elem): Likewise.
13170 (process_define_subst): Likewise.
13171 (check_define_attr_duplicates): Likewise.
13172 (read_md_rtx): Update after change to queue_elem.
13174 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13176 * genoutput.c (next_index_number): Delete.
13177 (data): Remove index_number.
13178 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
13179 (main): Remove manipulation of next_index_number.
13181 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13183 * genattrtab.c (check_attr_value): Remove handling of null attrs.
13184 (make_canonical): Likewise.
13186 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
13188 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
13189 instead of adjust_address_nv.
13190 (restore_stack_nonlocal): Likewise.
13191 (nonlocal_goto): Likewise.
13193 2015-07-16 Tom de Vries <tom@codesourcery.com>
13195 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
13196 not have a corresponding loop header phi.
13198 2015-07-16 Tom de Vries <tom@codesourcery.com>
13200 * tree-parloops.c (create_loads_for_reductions): Handle case that
13201 reduction is unused.
13203 2015-07-16 Richard Biener <rguenther@suse.de>
13205 PR tree-optimization/66894
13206 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
13207 about deriving NE_EXPR from truncated values.
13209 2015-07-16 Martin Liska <mliska@suse.cz>
13212 (object_allocator): Add new class.
13213 (pool_allocator::initialize): Use the underlying class.
13214 (pool_allocator::allocate): Likewise.
13215 (pool_allocator::remove): Likewise.
13216 (operator new): A new generic allocator.
13217 * asan.c (struct asan_mem_ref): Remove unused members.
13218 (asan_mem_ref_new): Replace new operator with
13219 object_allocator::allocate.
13220 (free_mem_ref_resources): Change deallocation.
13221 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
13222 with object_allocator.
13223 * config/sh/sh.c (add_constant): Replace new operator with
13224 object_allocator::allocate.
13225 (sh_reorg): Change call to a release method.
13226 * cselib.c (struct elt_list): Remove unused members.
13227 (new_elt_list): Replace new operator with
13228 object_allocator::allocate.
13229 (new_elt_loc_list): Likewise.
13230 (new_cselib_val): Likewise.
13231 (unchain_one_elt_list): Change delete operator with remove method.
13232 (unchain_one_elt_loc_list): Likewise.
13233 (unchain_one_value): Likewise.
13234 (cselib_finish): Release newly added static allocators.
13235 * cselib.h (struct cselib_val): Remove unused members.
13236 (struct elt_loc_list): Likewise.
13237 * df-problems.c (df_chain_alloc): Replace pool_allocator with
13239 * df-scan.c (struct df_scan_problem_data): Likewise.
13240 (df_scan_alloc): Likewise.
13241 * df.h (struct dataflow): Likewise.
13242 * dse.c (struct read_info_type): Likewise.
13243 (struct insn_info_type): Likewise.
13244 (struct dse_bb_info_type): Likewise.
13245 (struct group_info): Likewise.
13246 (struct deferred_change): Likewise.
13247 (get_group_info): Likewise.
13248 (delete_dead_store_insn): Likewise.
13249 (free_read_records): Likewise.
13250 (replace_read): Likewise.
13251 (check_mem_read_rtx): Likewise.
13252 (scan_insn): Likewise.
13253 (dse_step1): Likewise.
13254 (dse_step7): Likewise.
13255 * et-forest.c (struct et_occ): Remove unused members.
13256 (et_new_occ): Use allocate instead of new operator.
13257 (et_new_tree): Likewise.
13258 (et_free_tree): Call release method explicitly.
13259 (et_free_tree_force): Likewise.
13260 (et_free_pools): Likewise.
13261 (et_split): Use remove instead of delete operator.
13262 * et-forest.h (struct et_node): Remove unused members.
13263 * ipa-cp.c: Change pool_allocator to object_allocator.
13264 * ipa-inline-analysis.c: Likewise.
13265 * ipa-profile.c: Likewise.
13266 * ipa-prop.c: Likewise.
13267 * ipa-prop.h: Likewise.
13268 * ira-build.c (initiate_cost_vectors): Cast return value.
13269 (ira_allocate_cost_vector): Likewise.
13270 * ira-color.c (struct update_cost_record): Remove unused members.
13271 * lra-int.h (struct lra_live_range): Likewise.
13272 (struct lra_copy): Likewise.
13273 (struct lra_insn_reg): Likewise.
13274 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
13275 * lra.c (new_insn_reg): Replace new operator with allocate method.
13276 (free_insn_regs): Same for operator delete.
13277 (finish_insn_regs): Release new static allocator.
13278 (finish_insn_recog_data): Likewise.
13279 (lra_free_copies): Replace delete operator with remove method.
13280 (lra_create_copy): Replace operator new with allocate method.
13281 (invalidate_insn_data_regno_info): Same for remove method.
13282 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
13283 (free_debug_insn_changes): Replace delete operator with remove method.
13284 (replace_oldest_value_reg): Replace operator new with allocate method.
13285 (pass_cprop_hardreg::execute): Release new static variable.
13286 * sched-deps.c (sched_deps_init): Change pool_allocator to
13288 * sel-sched-ir.c: Likewise.
13289 * sel-sched-ir.h: Likewise.
13290 * stmt.c (expand_case): Likewise.
13291 (expand_sjlj_dispatch_table): Likewise.
13292 * tree-sra.c (struct access): Remove unused members.
13293 (struct assign_link): Likewise.
13294 (sra_deinitialize): Release newly added static pools.
13295 (create_access_1):Replace operator new with allocate method.
13296 (build_accesses_from_assign): Likewise.
13297 (create_artificial_child_access): Likewise.
13298 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
13299 pool_allocator to object_allocator.
13300 * tree-ssa-pre.c: Likewise.
13301 * tree-ssa-reassoc.c: Likewise.
13302 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13303 * tree-ssa-strlen.c: Likewise.
13304 * tree-ssa-structalias.c: Likewise.
13305 * var-tracking.c (onepart_pool_allocate): New function.
13306 (unshare_variable): Use the newly added function.
13307 (variable_merge_over_cur): Likewise.
13308 (variable_from_dropped): Likewise.
13309 (variable_was_changed): Likewise.
13310 (set_slot_part): Likewise.
13311 (emit_notes_for_differences_1): Likewise.
13312 (vt_finalize): Release newly added static pools.
13314 2015-07-16 Martin Jambor <mjambor@suse.cz>
13316 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
13317 all uses. Fix two typos in its general comment.
13318 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
13320 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
13322 * config/i386/linux-common.h (LINK_MPX): New.
13323 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
13324 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
13325 indicating '-z bndplt' support by linker.
13326 * configure: Regenerate.
13327 * config.in: Regenerate.
13329 2015-07-16 Richard Biener <rguenther@suse.de>
13331 * fold-const.c (fold_widened_comparison): Remove.
13332 (fold_sign_changed_comparison): Likewise.
13333 (fold_comparison): Move widened and sign-changed comparison
13335 * match.pd: ... to patterns here.
13336 * generic-match-head.c: Include target.h.
13337 * gimple-match-head.c: Likewise.
13339 2015-07-16 Richard Biener <rguenther@suse.de>
13341 * tree-ssa-dom.c (dom_valueize): New function.
13342 (record_temporary_equivalences): Also record equivalences
13343 for dominating stmts that have uses of equivalences we are
13346 2015-07-16 Bin Cheng <bin.cheng@arm.com>
13348 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
13349 add_autoinc_candidates.
13350 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
13351 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
13352 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
13353 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
13355 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
13356 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
13357 Remove parameter struct iv*. Call add_autoinc_candidates here.
13358 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
13359 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
13361 (find_iv_candidates): Call new functions.
13363 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
13365 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
13366 uninitialized-variable warning.
13368 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
13371 * config/sh/sh.md (movdi): Split simple reg move to two movsi
13372 when the destination is R0.
13374 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
13377 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
13378 * config/i386/i386.c (ix86_expand_pextr): New function.
13379 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
13380 for non-lowpart subregs.
13381 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
13382 (insv<mode>): Use SWI248 mode iterator.
13383 (insv<mode>_1): Ditto.
13385 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13386 Sebastian Pop <s.pop@samsung.com>
13388 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
13389 iterator to use_stmt.
13391 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13392 Sebastian Pop <s.pop@samsung.com>
13394 * graphite-scop-detection.c (build_scops_1): Discard scops for
13397 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13398 Sebastian Pop <s.pop@samsung.com>
13400 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
13401 case of a return statement in scop.
13403 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13404 Sebastian Pop <s.pop@samsung.com>
13406 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
13407 INTEGER_TYPE parameters.
13408 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
13409 VECTOR_CST in scan_tree_for_params.
13410 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
13412 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
13414 * gimple-pretty-print.h: Don't include pretty-print.h.
13415 * tree-streamer.h: Don't include lto-streamer.h.
13416 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
13417 * gimple-streamer-in.c: Remove redundant includes.
13418 * gimple-streamer-out.c: Likewise.
13419 * ipa-devirt.c: Likewise.
13420 * ipa-icf.c: Likewise.
13421 * ipa-inline-analysis.c: Likewise.
13422 * ipa-polymorphic-call.c: Likewise.
13423 * ipa-profile.c: Likewise.
13424 * ipa-prop.c: Likewise.
13425 * ipa-pure-const.c: Likewise.
13426 * lto-cgraph.c: Likewise.
13427 * lto-streamer-in.c: Likewise.
13428 * lto-streamer-out.c: Likewise.
13429 * lto-streamer.c: Likewise.
13430 * tree-streamer-in.c: Likewise.
13431 * tree-streamer-out.c: Likewise.
13432 * tree-streamer.c: Likewise.
13434 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
13436 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
13438 * opts.c: Remove multiline #include comment.
13440 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
13442 * config/nvptx/mkoffload.c (process): Add C++ protection to
13445 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13448 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
13449 null before IEEE 128-bit floating point support patch.
13451 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13453 * simplify-rtx.c (simplify_ternary_operation): Add simplification
13454 for (!c) != {0,...,0} ? a : b for vector modes.
13456 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
13457 Martin Jambor <mjambor@suse.cz>
13459 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
13460 struct func_body_info* instead of struct ipa_node_params*, expecting
13461 fbi->info to be filled in. Replace throughout. Adjust call to
13462 ipa_load_from_parm_agg.
13463 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
13464 instead of struct ipa_node_params*. Adjust calls to other functions
13465 so that they pass either fbi or fbi->info.
13466 (set_switch_stmt_execution_predicate): Likewise.
13467 (will_be_nonconstant_predicate): Likewise.
13468 (compute_bb_predicates): Likewise.
13469 (estimate_function_body_sizes): Move asserts earlier. Fill in
13470 struct func_body_info, replace parms_info with fbi.info. Adjust
13471 calls to functions that now accept struct func_body_info.
13472 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
13473 (struct func_body_info): Likewise.
13474 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
13475 remove static. Adjust callers.
13476 (ipa_load_from_parm_agg): Remove.
13477 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
13478 (func_body_info): Likewise.
13479 (ipa_load_from_parm_agg): Adjust prototype.
13481 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13483 * gensupport.c (rtx_handle_directive): Adjust.
13484 * read-rtl.c (apply_iterators): Take vector to add rtxs to
13485 instead of expr list rtx.
13486 (add_define_attr_for_define_subst): Likewise.
13487 (add_define_subst_attr): Likewise.
13488 (read_subst_mapping): Likewise.
13489 (read_rtx): Likewise.
13490 * rtl.h (read_rtx): Adjust.
13492 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13494 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
13496 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13499 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
13500 (*tls_local_dynamic_base_64_<mode>): Ditto.
13501 (*tls_local_dynamic_base_64_largepic): Ditto.
13502 (tls_global_dynamic_64_<mode>): Update expander pattern.
13503 (tls_local_dynamic_base_64_<mode>): Ditto.
13505 2015-07-15 Richard Biener <rguenther@suse.de>
13507 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
13508 and bool_var == 1 -> bool_var simplifications ...
13509 * match.pd: ... to patterns here. Factor out negate_expr_p
13510 cases from the A - B -> A + (-B) patterns as negate_expr_p
13511 predicate and add a -(A + B) -> (-B) - A pattern.
13513 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
13515 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
13517 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
13518 Robert Suchanek <robert.suchanek@imgtec.com>
13520 * config/mips/mips.c (mips_int_mask): New enum.
13521 (mips_shadow_set): Likewise.
13522 (int_mask): New variable.
13523 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
13524 (machine_function): Add int_mask and use_shadow_register_set.
13525 (mips_attribute_table): Add attribute handlers for interrupt and
13526 use_shadow_register_set.
13527 (mips_interrupt_mask): New static function.
13528 (mips_handle_interrupt_attr): Likewise.
13529 (mips_handle_use_shadow_register_set_attr): Likewise.
13530 (mips_use_shadow_register_set): Change return type to enum
13531 mips_shadow_set. Add argument handling for use_shadow_register_set
13533 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
13534 compare with mips_shadow_set enum.
13535 (mips_compute_frame_info): Add interrupt mask and
13536 use_shadow_register_set to per-function information structure.
13537 Add a stack slot for EPC unconditionally.
13538 (mips_expand_prologue): Compare use_shadow_register_set value
13539 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
13540 masked interrupt register but in EIC mode use K0 and save Cause in K0.
13541 EPC saved and restored unconditionally. Use PMODE_INSN macro when
13542 copying the stack pointer from the shadow register set.
13543 * config/mips/mips.h (SR_IM0): New define.
13544 * config/mips/mips.md (mips_rdpgpr): Rename to...
13545 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
13546 * doc/extend.texi (Declaring Attributes of Functions): Document
13547 optional arguments for interrupt and use_shadow_register_set
13550 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
13552 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
13553 interrupt attribute.
13554 (mips_expand_prologue): Disable the floating point unit in an ISR.
13555 * config/mips/mips.h (SR_COP1): New define.
13557 2015-07-15 Richard Biener <rguenther@suse.de>
13559 * genmatch.c (parser::peek, parser::peek_ident): Add argument
13560 to tell how many tokens to peek ahead (default 1).
13561 (parser::eat_token, parser::eat_ident): Return token consumed.
13562 (parser::parse_result): Parse new switch statement.
13563 * match.pd: Use case statements where appropriate.
13565 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13567 PR rtl-optimization/58066
13568 * calls.c (expand_call): Precompute register parameters before stack
13569 alignment is performed.
13571 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13573 PR rtl-optimization/66838
13574 * postreload.c (reload_cse_move2add): Also process
13575 CALL_INSN_FUNCTION_USAGE when resetting information of
13576 call-clobbered registers.
13578 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13579 Cesar Philippidis <cesar@codesourcery.com>
13580 Chung-Lin Tang <cltang@codesourcery.com>
13582 * config/nios2/constraints.md (U, v): New constraints.
13583 * config/nios2/predicates.md (rdprs_dcache_operand): New.
13584 (ldstex_memory_operand): New.
13585 * config/nios2/sync.md: New file.
13586 * config/nios2/nios2.md (unspecv): Add new builtin function
13588 (rdprs, flushd, flushda, wrpie, eni): New patterns.
13589 (top-level): Include sync.md.
13590 * config/nios2/nios2.c (N2_FTYPES): Add function types for
13592 (N2_BUILTINS): Add arch field setting, add new builtins.
13593 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
13595 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
13596 Also handle ldex/stex/ldsex/stsex builtins.
13597 (nios2_expand_rdprs_builtin): New function.
13598 (nios2_expand_cache_builtin): New function.
13599 (nios2_expand_wrpie_builtin): New function.
13600 (nios2_expand_eni_builtin): New function.
13601 (nios2_expand_builtin): Add arch field handling and new builtin
13603 * doc/extend.texi (Altera Nios II Built-in Functions): Document
13605 * doc/md.texi (Machine Constraints): Document U and v constraints.
13607 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13608 Cesar Philippidis <cesar@codesourcery.com>
13609 Chung-Lin Tang <cltang@codesourcery.com>
13611 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
13612 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
13613 callee_save_reg_size and uses_anonymous_args fields.
13614 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
13615 (nios2_create_cfa_notes): New function.
13616 (nios2_adjust_stack): New function for adjusting stack.
13617 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
13618 Use nios2_adjust_stack.
13619 (nios2_expand_epilogue): Likewise.
13620 (nios2_expand_return): New function.
13621 (nios2_can_use_return_insn): Update for CDX pop.n usage.
13622 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
13623 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
13624 * config/nios2/nios2.md (return): Use nios2_expand_return.
13626 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13627 Cesar Philippidis <cesar@codesourcery.com>
13628 Chung-Lin Tang <cltang@codesourcery.com>
13630 * config/nios2/predicates.md (pop_operation): New.
13631 (ldwm_operation, stwm_operation): New.
13632 (nios2_hard_register_operand): New.
13633 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
13634 (ldstwm_operation_p): Declare.
13635 (gen_ldstwm_peep): Declare.
13636 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
13637 (base_reg_adjustment_p): New.
13638 (pop_operation_p): New.
13639 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
13640 (nios2_ldstwm_regset_p): New.
13641 (ldstwm_operation_p): New.
13643 (nios2_ldst_parallel): New.
13644 (struct ldswm_operand): Declare.
13645 (compare_ldstwm_operands): New.
13646 (can_use_cdx_ldstw): New.
13647 (gen_ldstwm_peep): New.
13648 * config/nios2/nios2-ldstwm.sml: New.
13649 * config/nios2/nios2.md: Include ldstwm.md.
13650 * config/nios2/ldstwm.md: Generated.
13652 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13653 Cesar Philippidis <cesar@codesourcery.com>
13654 Chung-Lin Tang <cltang@codesourcery.com>
13656 * config/nios2/nios2.h (LABEL_ALIGN): Define.
13657 (REG_ALLOC_ORDER): Define.
13658 (ADJUST_REG_ALLOC_ORDER): Define.
13659 (HONOR_REG_ALLOC_ORDER): Define.
13660 (CDX_REG_P): Define.
13661 (ANDCLEAR_INT): Define.
13662 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
13663 (nios2_label_align): Declare.
13664 (nios2_cdx_narrow_form_p): Declare.
13665 (nios2_adjust_reg_alloc_order): Declare.
13666 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
13668 (nios2_large_unspec_reloc_p): New function, split from...
13669 (nios2_legitimate_pic_operand_p): ...here.
13670 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
13671 (nios2_print_operand_punct_valid_p): New.
13672 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
13673 (split_mem_address): New.
13674 (split_alu_insn): New.
13676 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
13677 (enum nios2_add_insn_kind): New.
13678 (nios2_add_insn_names, nios2_add_insn_narrow): New.
13679 (nios2_add_insn_classify): New.
13680 (nios2_add_insn_asm): New.
13681 (nios2_cdx_narrow_form_p): New.
13682 (label_align, min_labelno, max_labelno): New.
13683 (nios2_reorg): New.
13684 (nios2_label_align): New.
13685 (nios2_adjust_reg_alloc_order): New.
13686 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13687 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13688 * config/nios2/constraints.md (P): New constraint.
13689 * config/nios2/predicates.md (const_and_operand): New.
13690 (and_operand): New.
13691 (stack_memory_operand): New.
13692 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
13693 (length): Update to use nios2_cdx_narrow_form_p().
13694 (type): Add new insn type values.
13695 (control, alu, st, ld, shift): Update insn reservations with
13696 new insn type values.
13697 (*high, *lo_sum): Define new insn patterns for constant generation.
13698 (movqi_internal, movhi_internal, movsi_internal): Reduce
13699 alternatives, update asm template to handle CDX variants, update
13701 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
13702 template, update type attributes.
13703 (extendhisi2, extendqi<mode>2): Likewise.
13704 (addsi3): Change to use function for asm string.
13705 (subsi3): Add CDX notation to asm template, update type attributes.
13706 (negsi3, one_cmplsi3): Likewise.
13707 (andsi3): New pattern, specialized from logical patterns.
13708 (<code>si3): Remove and case, combine alternatives, update asm
13710 (<shift_op>si3): Add CDX notation, update type attributes.
13711 (rotrsi3): Update type attribute.
13712 (*merge, extzv, insv): New insn patterns.
13713 (return): Change to define_expand.
13714 (simple_return): Add CDX notation, update type attributes.
13715 (indirect_jump): Add CDX notation.
13716 (jump): Update asm cases, update length attribute expression.
13717 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
13718 (nios2_cbranch): Update asm cases and length attribute expression
13719 to handle CDX variants.
13720 (nios2_cmp<code>): Update asm template.
13721 (nop): Add CDX notation, update type attributes.
13722 (trap): Add CDX notation.
13723 (ctrapsi4): Update asm cases and length attribute expression to
13724 handle CDX variant.
13725 * doc/md.texi (Machine Constraints): Document P constraint.
13727 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13728 Cesar Philippidis <cesar@codesourcery.com>
13729 Chung-Lin Tang <cltang@codesourcery.com>
13731 * config/nios2/nios2.h (SMALL_INT12): New macro.
13732 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
13733 (nios2_valid_addr_expr_p): Use it.
13734 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
13735 with implicit "io" instructions on R2.
13736 * config/nios2/constraints.md (w): New constraint.
13737 * config/nios2/predicates.md (ldstio_memory_operand): New.
13738 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
13739 operand predicate and constraint.
13740 (ld<bh>io_signed, st<bhw>io>): Likewise.
13741 * doc/md.texi (Machine Constraints): Document w constraint.
13743 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13744 Cesar Philippidis <cesar@codesourcery.com>
13745 Chung-Lin Tang <cltang@codesourcery.com>
13747 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
13748 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
13749 Nios II architecture level.
13750 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
13751 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
13752 (OPTION_DEFAULT_SPECS): Define.
13753 (ASM_SPEC): Add -march= spec strings.
13754 * config/nios2/nios2.c (nios2_option_override): Check for
13755 conflicts involving new options.
13756 * config.gcc (nios2*-*-*): Support --with-arch=.
13757 * doc/invoke.texi (Option Summary, Nios II Options): Document
13758 -march=, -mbmx, and -mcdx.
13760 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
13762 PR rtl-optimization/66626
13763 * lra-constraints.c (lra_constraints): Prevent equivalence
13764 substitution for static chain pseudo in functions with nonlocal
13767 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13769 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
13770 (nios2_emit_stack_limit_check): Add size parameter. Handle
13771 -fstack-limit-symbol as well as -fstack-limit-register.
13772 (nios2_expand_prologue): Emit only a single stack limit check,
13773 even if multiple stack adjustments are required.
13774 (nios2_option_override): Diagnose unsupported combination of -fpic
13775 and -stack-limit-symbol.
13777 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
13779 * Makefile.in (top_srcdir): New.
13780 * configure.ac: Use AM_ZLIB.
13781 * configure: Regeneated.
13783 2015-07-14 Matthias Klose <doko@ubuntu.com>
13786 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
13788 2015-07-14 Richard Biener <rguenther@suse.de>
13790 PR tree-optimization/66863
13791 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
13792 what we record for conversion use stmt lhs inequalities.
13794 2015-07-14 Richard Biener <rguenther@suse.de>
13796 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
13797 (decision_tree::gen_gimple): Likewise.
13799 2015-07-14 Tom de Vries <tom@codesourcery.com>
13801 * gcc.c (greater_than_spec_func): Declare forward.
13802 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
13803 -ftree-parallelize-loops={0,1}.
13804 (static_spec_functions): Add greater_than_spec_func function with name
13806 (greater_than_spec_func): New function.
13808 2015-07-14 Richard Biener <rguenther@suse.de>
13810 * tree-ssa-dom.c (record_temporary_equivalences): Merge
13811 wideing type conversion case from record_equivalences_from_incoming_edge
13812 and use record_equality to record equivalences.
13813 (record_equivalences_from_incoming_edge): Call
13814 record_temporary_equivalences.
13816 2015-07-14 Richard Biener <rguenther@suse.de>
13818 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
13819 (struct if_expr): New.
13820 (struct with_expr): Likewise.
13821 (is_a_helper): Add helpers for if_expr and with_expr.
13822 (struct simplify): Add simplify_kind enum and member. Remove
13824 (simplify::simplify): Adjust.
13825 (lower_commutative): Adjust.
13826 (lower_opt_convert): Likewise.
13827 (lower_cond): Likewise.
13828 (replace_id): Handle with_expr and if_expr.
13829 (lower_for): Adjust.
13830 (dt_simplify::gen_1): New recursive worker, split out from ...
13831 (dt_simplify::gen): ... here. Deal with if and with expansion
13833 (capture_info::capture_info): Take context argument
13834 (capture_info::walk_result): Only analyze specific result.
13835 (parser::parse_result): New function.
13836 (parser::parse_simplify): Adjust to parse ifs with then end
13838 (parser::parse_if): Simplify.
13839 (parser::parse_pattern): Pass down simplify kind.
13840 * match.pd: Convert if structure to new syntax.
13842 2015-07-13 Marek Polacek <polacek@redhat.com>
13844 * rtl.c (rtx_equal_p_cb): Fix typo.
13846 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
13848 * omega.h: Don't include config.h, don't include params.h again if
13849 omega.h has already been included.
13850 * graphite-poly.h: Include sese.h.
13851 * graphite.c: Don't include sese.h, remove needless includes and
13852 minimize includes outside #ifdef HAVE_isl block.
13853 * graphite-blocking.c: Don't include sese.h, remove needless includes,
13854 and wrap entire file in #ifdef HAVE_isl
13855 * graphite-dependences.c: Likewise.
13856 * graphite-interchange.c: Likewise.
13857 * graphite-isl-ast-to-gimple.c: Likewise.
13858 * graphite-optimize-isl.c: Likewise.
13859 * graphite-poly.c: Likewise.
13860 * graphite-scop-detection.c: Likewise.
13861 * graphite-sese-to-poly.c: Likewise.
13863 2015-07-13 Tom de Vries <tom@codesourcery.com>
13865 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
13867 2015-07-13 Renlin Li <renlin.li@arm.com>
13870 * simplify-rtx.c (simplify_const_relational_operation): Add
13871 side_effects_p checks.
13873 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
13875 * bitmap.h: Fix double word typos.
13876 * builtins.c: Same.
13878 * cfgloopmanip.c: Same.
13881 * cgraphclones.c: Same.
13883 * config/aarch64/aarch64-protos.h: Same.
13884 * config/aarch64/aarch64.c: Same.
13885 * config/aarch64/aarch64.md: Same.
13886 * config/arm/arm.md: Same.
13887 * config/arm/arm1020e.md: Same.
13888 * config/arm/arm1026ejs.md: Same.
13889 * config/arm/arm926ejs.md: Same.
13890 * config/arm/fa526.md: Same.
13891 * config/arm/fa606te.md: Same.
13892 * config/arm/fa626te.md: Same.
13893 * config/arm/fa726te.md: Same.
13894 * config/arm/fmp626.md: Same.
13895 * config/darwin.c: Same.
13896 * config/epiphany/epiphany.c: Same.
13897 * config/frv/frv.c: Same.
13898 * config/ft32/ft32.c: Same.
13899 * config/gnu-user.h: Same.
13900 * config/h8300/constraints.md: Same.
13901 * config/i386/i386.c: Same.
13902 * config/i386/i386.md: Same.
13903 * config/iq2000/iq2000.md: Same.
13904 * config/mips/mips.c: Same.
13905 * config/mmix/mmix.md: Same.
13906 * config/moxie/moxie.c: Same.
13907 * config/nds32/nds32.md: Same.
13908 * config/pa/pa.h: Same.
13909 * config/rs6000/aix.h: Same.
13910 * config/rs6000/rs6000.h: Same.
13911 * config/sh/sh.c: Same.
13912 * config/tilegx/tilegx.md: Same.
13913 * config/tilepro/gen-mul-tables.cc: Same.
13916 * doc/invoke.texi: Same.
13918 * dwarf2out.c: Same.
13921 * genmatch.c: Same.
13922 * gimplify.c: Same.
13923 * hash-table.h: Same.
13924 * internal-fn.c: Same.
13926 * ipa-devirt.c: Same.
13929 * ipa-profile.c: Same.
13930 * ipa-prop.c: Same.
13931 * ipa-prop.h: Same.
13934 * reg-stack.c: Same.
13935 * regcprop.c: Same.
13940 * tree-inline.c: Same.
13941 * tree-sra.c: Same.
13942 * tree-ssa-dom.c: Same.
13943 * tree-ssa-loop-ivopts.c: Same.
13944 * tree-ssa-structalias.c: Same.
13945 * tree-ssa-tail-merge.c: Same.
13946 * tree-ssa-ter.c: Same.
13947 * tree-ssa-threadupdate.c: Same.
13948 * tree-ssa-uninit.c: Same.
13949 * tree-ssanames.c: Same.
13950 * tree-vect-loop-manip.c: Same.
13951 * tree-vrp.c: Same.
13953 * valtrack.c: Same.
13956 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13958 PR middle-end/66726
13959 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
13960 tree_ssa_phiopt_worker): Call it.
13962 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13964 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
13965 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
13968 2015-07-11 Marek Polacek <polacek@redhat.com>
13970 PR middle-end/66353
13971 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
13972 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
13973 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
13974 rather than bb_has_abnormal_call_pred.
13975 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
13976 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
13977 rather than bb_has_abnormal_call_pred.
13979 2015-07-10 Anatoly Sokolov <aesok@post.ru>
13981 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13982 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
13983 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13984 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
13985 v850_legitimate_address_p): New functions.
13986 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13988 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
13991 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
13992 indirect sibcall with register arguments if register available
13993 for argument passing.
13994 (init_cumulative_args): Set cfun->machine->arg_reg_available
13995 to (cum->nregs > 0) or to true if function has a variable
13997 (function_arg_advance_32): Set cfun->machine->arg_reg_available
13998 to false if cum->nregs <= 0.
13999 * config/i386/i386.h (machine_function): Add arg_reg_available.
14001 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
14003 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
14004 and gen_higpart instead of gen_rtx_SUBREG.
14005 * config/i386/i386.md
14006 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
14007 (read-modify peephole2): Use gen_lowpart instead of
14008 gen_rtx_SUBREG for operand 5.
14010 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
14012 * config/tilepro/gen-mul-tables.cc (main): Change include list for
14014 * config/tilepro/mul-tables.c: Regenerate.
14015 * config/tilegx/mul-tables.c: Regenerate.
14017 2015-07-10 Richard Biener <rguenther@suse.de>
14019 * fold-const.c (distribute_bit_expr): Remove.
14020 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
14021 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
14022 to A & (B | C) and simplifying A << C1 << C2 to ...
14023 * match.pd: ... patterns here.
14025 2015-07-10 Jiong Wang <jiong.wang@arm.com>
14027 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14028 Mark mem as READONLY and NOTRAP for PIC symbol.
14030 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
14032 * gimple-predict.h: New file.
14033 (gimple_predict_predictor, gimple_predict_set_predictor,
14034 gimple_predict_outcome, gimple_predict_set_outcome,
14035 gimple_build_predict): Relocate here.
14036 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
14037 gimple_predict_outcome, gimple_predict_set_outcome): Move to
14039 * gimple.c (gimple_build_predict): Move to gimple-predict.h
14040 * basic-block.h: Don't include cfghooks.h.
14041 * backend.h: Don't include predict.h.
14042 * cfghooks.h: Include predict.h.
14043 * gimple-pretty-print.c: Include gimple-predict.h.
14044 * gimplify.c: Likwise.
14045 * predict.c: Adjust includes.
14046 * tree-inline.c: Likewise.
14047 * asan.c: Likewise.
14048 * auto-inc-dec.c: Likewise.
14049 * auto-profile.c: Likewise.
14050 * bb-reorder.c: Likewise.
14051 * builtins.c: Likewise.
14052 * caller-save.c: Likewise.
14053 * calls.c: Likewise.
14054 * cfganal.c: Likewise.
14055 * cfgbuild.c: Likewise.
14057 * cfgcleanup.c: Likewise.
14058 * cfgexpand.c: Likewise.
14059 * cfghooks.c: Likewise.
14060 * cfgloopanal.c: Likewise.
14061 * cfgloop.c: Likewise.
14062 * cfgloopmanip.c: Likewise.
14063 * cfgrtl.c: Likewise.
14064 * cgraph.c: Likewise.
14065 * cgraphunit.c: Likewise.
14066 * combine.c: Likewise.
14067 * cprop.c: Likewise.
14070 * dojump.c: Likewise.
14072 * except.c: Likewise.
14073 * expmed.c: Likewise.
14074 * expr.c: Likewise.
14075 * final.c: Likewise.
14076 * fold-const.c: Likewise.
14077 * function.c: Likewise.
14078 * fwprop.c: Likewise.
14079 * gcc-plugin.h: Likewise.
14080 * gcse.c: Likewise.
14081 * genattrtab.c: Likewise.
14082 * genemit.c: Likewise.
14083 * gengtype.c: Likewise.
14084 * genopinit.c: Likewise.
14085 * genoutput.c: Likewise.
14086 * genpreds.c: Likewise.
14087 * genrecog.c: Likewise.
14088 * gimple-fold.c: Likewise.
14089 * gimple-iterator.c: Likewise.
14090 * gimple-ssa-isolate-paths.c: Likewise.
14091 * gimple-ssa-strength-reduction.c: Likewise.
14092 * graph.c: Likewise.
14093 * graphite-blocking.c: Likewise.
14094 * graphite.c: Likewise.
14095 * graphite-dependences.c: Likewise.
14096 * graphite-interchange.c: Likewise.
14097 * graphite-isl-ast-to-gimple.c: Likewise.
14098 * graphite-optimize-isl.c: Likewise.
14099 * graphite-poly.c: Likewise.
14100 * graphite-scop-detection.c: Likewise.
14101 * graphite-sese-to-poly.c: Likewise.
14102 * haifa-sched.c: Likewise.
14103 * ifcvt.c: Likewise.
14104 * internal-fn.c: Likewise.
14105 * ipa-cp.c: Likewise.
14106 * ipa-profile.c: Likewise.
14107 * ipa-split.c: Likewise.
14108 * ipa-utils.c: Likewise.
14109 * ira-build.c: Likewise.
14110 * ira-color.c: Likewise.
14111 * ira-conflicts.c: Likewise.
14112 * ira-costs.c: Likewise.
14113 * ira-emit.c: Likewise.
14114 * ira-lives.c: Likewise.
14115 * jump.c: Likewise.
14116 * loop-doloop.c: Likewise.
14117 * loop-init.c: Likewise.
14118 * loop-invariant.c: Likewise.
14119 * loop-unroll.c: Likewise.
14120 * lower-subreg.c: Likewise.
14121 * lra-assigns.c: Likewise.
14123 * lra-coalesce.c: Likewise.
14124 * lra-constraints.c: Likewise.
14125 * lra-lives.c: Likewise.
14126 * lto-cgraph.c: Likewise.
14127 * lto-streamer-in.c: Likewise.
14128 * mode-switching.c: Likewise.
14129 * modulo-sched.c: Likewise.
14130 * omp-low.c: Likewise.
14131 * optabs.c: Likewise.
14132 * passes.c: Likewise.
14133 * postreload.c: Likewise.
14134 * postreload-gcse.c: Likewise.
14135 * profile.c: Likewise.
14136 * recog.c: Likewise.
14137 * regstat.c: Likewise.
14138 * reload1.c: Likewise.
14139 * reorg.c: Likewise.
14140 * rtlanal.c: Likewise.
14141 * sched-ebb.c: Likewise.
14142 * sel-sched-ir.c: Likewise.
14143 * sese.c: Likewise.
14144 * shrink-wrap.c: Likewise.
14145 * simplify-rtx.c: Likewise.
14146 * stmt.c: Likewise.
14147 * store-motion.c: Likewise.
14148 * tracer.c: Likewise.
14149 * trans-mem.c: Likewise.
14150 * tree-call-cdce.c: Likewise.
14151 * tree-cfg.c: Likewise.
14152 * tree-cfgcleanup.c: Likewise.
14153 * tree-chkp.c: Likewise.
14154 * tree-complex.c: Likewise.
14155 * tree-eh.c: Likewise.
14156 * tree-if-conv.c: Likewise.
14157 * tree-loop-distribution.c: Likewise.
14158 * tree-outof-ssa.c: Likewise.
14159 * tree-parloops.c: Likewise.
14160 * tree-predcom.c: Likewise.
14161 * tree-pretty-print.c: Likewise.
14162 * tree-profile.c: Likewise.
14163 * tree-sra.c: Likewise.
14164 * tree-ssa.c: Likewise.
14165 * tree-ssa-coalesce.c: Likewise.
14166 * tree-ssa-dce.c: Likewise.
14167 * tree-ssa-dom.c: Likewise.
14168 * tree-ssa-forwprop.c: Likewise.
14169 * tree-ssa-ifcombine.c: Likewise.
14170 * tree-ssa-loop-ch.c: Likewise.
14171 * tree-ssa-loop-im.c: Likewise.
14172 * tree-ssa-loop-ivcanon.c: Likewise.
14173 * tree-ssa-loop-ivopts.c: Likewise.
14174 * tree-ssa-loop-manip.c: Likewise.
14175 * tree-ssa-loop-prefetch.c: Likewise.
14176 * tree-ssa-loop-unswitch.c: Likewise.
14177 * tree-ssa-math-opts.c: Likewise.
14178 * tree-ssa-phiopt.c: Likewise.
14179 * tree-ssa-pre.c: Likewise.
14180 * tree-ssa-reassoc.c: Likewise.
14181 * tree-ssa-sink.c: Likewise.
14182 * tree-ssa-tail-merge.c: Likewise.
14183 * tree-ssa-threadedge.c: Likewise.
14184 * tree-ssa-threadupdate.c: Likewise.
14185 * tree-switch-conversion.c: Likewise.
14186 * tree-tailcall.c: Likewise.
14187 * tree-vect-data-refs.c: Likewise.
14188 * tree-vect-loop.c: Likewise.
14189 * tree-vect-loop-manip.c: Likewise.
14190 * tree-vectorizer.c: Likewise.
14191 * tree-vrp.c: Likewise.
14192 * ubsan.c: Likewise.
14193 * value-prof.c: Likewise.
14194 * varasm.c: Likewise.
14195 * var-tracking.c: Likewise.
14196 * config/aarch64/aarch64-builtins.c: Likewise.
14197 * config/aarch64/aarch64.c: Likewise.
14198 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14199 * config/alpha/alpha.c: Likewise.
14200 * config/arc/arc.c: Likewise.
14201 * config/arm/arm.c: Likewise.
14202 * config/avr/avr.c: Likewise.
14203 * config/bfin/bfin.c: Likewise.
14204 * config/c6x/c6x.c: Likewise.
14205 * config/cr16/cr16.c: Likewise.
14206 * config/cris/cris.c: Likewise.
14207 * config/darwin.c: Likewise.
14208 * config/darwin-c.c: Likewise.
14209 * config/epiphany/epiphany.c: Likewise.
14210 * config/epiphany/mode-switch-use.c: Likewise.
14211 * config/epiphany/resolve-sw-modes.c: Likewise.
14212 * config/fr30/fr30.c: Likewise.
14213 * config/frv/frv.c: Likewise.
14214 * config/ft32/ft32.c: Likewise.
14215 * config/h8300/h8300.c: Likewise.
14216 * config/i386/i386.c: Likewise.
14217 * config/i386/winnt.c: Likewise.
14218 * config/ia64/ia64.c: Likewise.
14219 * config/iq2000/iq2000.c: Likewise.
14220 * config/lm32/lm32.c: Likewise.
14221 * config/m32c/m32c.c: Likewise.
14222 * config/m32r/m32r.c: Likewise.
14223 * config/m68k/m68k.c: Likewise.
14224 * config/mcore/mcore.c: Likewise.
14225 * config/mep/mep.c: Likewise.
14226 * config/microblaze/microblaze.c: Likewise.
14227 * config/mips/mips.c: Likewise.
14228 * config/mmix/mmix.c: Likewise.
14229 * config/mn10300/mn10300.c: Likewise.
14230 * config/moxie/moxie.c: Likewise.
14231 * config/msp430/msp430.c: Likewise.
14232 * config/nds32/nds32.c: Likewise.
14233 * config/nds32/nds32-cost.c: Likewise.
14234 * config/nds32/nds32-fp-as-gp.c: Likewise.
14235 * config/nds32/nds32-intrinsic.c: Likewise.
14236 * config/nds32/nds32-isr.c: Likewise.
14237 * config/nds32/nds32-md-auxiliary.c: Likewise.
14238 * config/nds32/nds32-memory-manipulation.c: Likewise.
14239 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14240 * config/nds32/nds32-predicates.c: Likewise.
14241 * config/nios2/nios2.c: Likewise.
14242 * config/nvptx/nvptx.c: Likewise.
14243 * config/pa/pa.c: Likewise.
14244 * config/pdp11/pdp11.c: Likewise.
14245 * config/rl78/rl78.c: Likewise.
14246 * config/rs6000/rs6000.c: Likewise.
14247 * config/rx/rx.c: Likewise.
14248 * config/s390/s390.c: Likewise.
14249 * config/sh/sh.c: Likewise.
14250 * config/sh/sh-mem.cc: Likewise.
14251 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14252 * config/sh/sh_treg_combine.cc: Likewise.
14253 * config/sparc/sparc.c: Likewise.
14254 * config/spu/spu.c: Likewise.
14255 * config/stormy16/stormy16.c: Likewise.
14256 * config/tilegx/tilegx.c: Likewise.
14257 * config/tilepro/tilepro.c: Likewise.
14258 * config/v850/v850.c: Likewise.
14259 * config/vax/vax.c: Likewise.
14260 * config/visium/visium.c: Likewise.
14261 * config/xtensa/xtensa.c: Likewise.
14263 2015-07-10 Richard Biener <rguenther@suse.de>
14265 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
14266 (decision_tree::gen_gimple): Likewise.
14267 (decision_tree::gen_generic): Likewise.
14269 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
14272 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
14273 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
14275 2015-07-10 Jakub Jelinek <jakub@redhat.com>
14277 PR middle-end/66820
14278 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
14279 or ORT_TASK contexts.
14280 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
14283 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14285 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
14288 2015-07-10 Tom de Vries <tom@codesourcery.com>
14290 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
14291 insert nit + 1 bound.
14293 2015-07-10 Richard Biener <rguenther@suse.de>
14295 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
14296 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
14297 (if_convertible_loop_p_1): For this always compute bb predicates.
14298 (if_convertible_loop_p): And free them.
14300 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14302 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
14305 2015-07-10 Richard Biener <rguenther@suse.de>
14307 PR tree-optimization/66823
14308 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
14309 inverted predicate.
14311 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
14313 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
14314 to handle mips[32|64]r3 and mips[32|64]r5.
14316 2015-07-09 Jakub Jelinek <jakub@redhat.com>
14318 PR middle-end/66633
14319 * tree-nested.c (get_static_chain): Or in a flag into
14320 info->static_chain_added.
14321 (get_frame_field, get_nonlocal_debug_decl): Likewise.
14322 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
14323 2015-07-01 changes.
14324 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
14325 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
14328 PR tree-optimization/66718
14329 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
14331 (vect_simd_lane_linear): New function.
14332 (vectorizable_simd_clone_call): Support using linear arguments for
14333 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
14335 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14338 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
14340 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
14342 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
14343 Use machine mode, not enum machine_mode in the prototype.
14345 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
14346 classify 128-bit floating point support.
14347 (FLOAT128_IBM_P): Likewise.
14348 (FLOAT128_VECTOR_P): Likewise.
14349 (FLOAT128_2REG_P): Likewise.
14350 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
14351 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
14352 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
14353 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
14355 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
14356 tests against TFmode/TDmode, since those modes do not use VSX
14358 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
14360 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
14361 tests against TFmode, etc.
14362 (invalid_e500_subreg): Add tests against IFmode/KFmode.
14363 (reg_offset_addressing_ok_p): Likewise.
14364 (rs6000_legitimate_offset_address_p): Likewise.
14365 (rs6000_legitimize_address): Likewise.
14366 (rs6000_legitimize_reload_address): Likewise.
14367 (rs6000_legitimate_address_p): Clean up tests against TFmode and
14368 TDmode to use the new helper macros, which will include IFmode and
14370 (rs6000_emit_move): Likewise.
14371 (rs6000_darwin64_record_arg_recurse): Likewise.
14372 (print_operand): Likewise.
14373 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
14374 that uses a single vector register as a vector and not as a
14375 floating point register in terms of the calling sequence.
14376 (rs6000_discover_homogeneous_aggregate): Likewise.
14377 (rs6000_return_in_memory): Likewise.
14378 (init_cumulative_args): Likewise.
14379 (rs6000_function_arg_boundary): Likewise.
14380 (rs6000_function_arg_advance_1): Likewise.
14381 (rs6000_function_arg): Likewise.
14382 (rs6000_pass_by_reference): Likewise.
14383 (rs6000_gimplify_va_arg): Likewise.
14384 (rs6000_secondary_reload_memory): Use machine_mode not enum
14386 (rs6000_split_multireg_move): Use new helper macros.
14387 (spe_func_has_64bit_regs_p): Likewise.
14388 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
14389 (output_toc): Use new helper macros.
14390 (rs6000_register_move_cost): Likewise.
14391 (rs6000_function_value): Add IEEE 128-bit floating point calling
14393 (rs6000_libcall_value): Likewise.
14394 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
14395 floating point support.
14396 (rs6000_vector_mode_supported_p): Likewise.
14398 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
14400 PR rtl-optimization/66782
14401 * lra-int.h (struct lra_insn_recog_data): Add comment about
14402 clobbered hard regs for arg_hard_regs.
14403 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
14404 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
14405 Add condition for processing used hard regs.
14406 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
14407 Process clobbered hard regs.
14409 2015-07-09 Michael Matz <matz@suse.de>
14411 * genmatch.c (fprintf_indent): New function.
14412 (operand::gen_transform): Add indent parameter.
14413 (expr::gen_transform, c_expr::gen_transform,
14414 capture::gen_transform): Ditto and use fprintf_indent.
14415 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
14416 (dt_operand::gen, dt_operand::gen_predicate,
14417 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
14418 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
14419 (decision_tree::gen_gimple): Adjust calls and indent generated
14421 (decision_tree::gen_generic): Ditto.
14422 (write_predicate): Ditto.
14424 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14427 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
14428 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
14429 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
14430 {GENERAL,SSE,MMX}_REG_P where appropriate.
14432 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
14434 * lto-streamer.h: Don't include target.h and alloc-pool.h.
14435 * builtins.c: Adjust includes.
14436 * gimple.c: Likewise.
14437 * ipa-icf.c: Likewise.
14438 * lto-opts.c: Likewise.
14439 * ipa-reference.c: Likewise.
14440 * lto-section-out.c: Likewise.
14441 * lto-streamer-in.c: Likewise.
14442 * lto-streamer-out.c: Likewise.
14443 * opts-global.c: Likewise.
14444 * symtab.c: Likewise.
14445 * tree-chkp.c: Likewise.
14446 * tree-ssa-live.c: Likewise.
14447 * tree-streamer-in.c: Likewise.
14448 * tree-streamer-out.c: Likewise.
14449 * config/darwin.c: Likewise.
14450 * config/i386/winnt.c: Likewise.
14452 2015-07-09 Richard Biener <rguenther@suse.de>
14454 * genmatch.c (struct expr): Add force_single_use flag.
14455 (expr::expr): Add copy constructor.
14456 (capture_info::walk_match): Gather force_single_use captures.
14457 (expr::gen_transform): Use possibly NULLified sequence.
14458 (dt_simplify::gen): Apply single-use restrictions by NULLifying
14459 seq if any constrained expr is not single-use.
14460 (parser::parse_expr): Refactor to allow multiple flags. Handle
14461 's' flag to force an expression have a single-use if the pattern
14462 simplifies to more than one statement.
14463 * match.pd: Convert most single_use conditionals to :s flags.
14465 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14467 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
14468 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14469 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
14471 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
14473 * flags.h: Don't include flag-types.h or options.h.
14474 * opts-common.c: Adjust includes.
14475 * opts-global.c: Likewise.
14476 * common/config/epiphany/epiphany-common.c: Likewise.
14478 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14481 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
14484 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14487 * config/i386/i386.c (ix86_return_in_memory): Return true
14488 if int_size_in_bytes returns negative for IA MCU.
14490 2015-07-09 Marek Polacek <polacek@redhat.com>
14492 PR tree-optimization/66718
14493 * Makefile.in (OBJS): Add gimple-laddress.o.
14494 * passes.def: Schedule pass_laddress.
14495 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
14496 * tree-pass.h (make_pass_laddress): Declare.
14497 * gimple-laddress.c: New file.
14499 2015-07-09 Richard Biener <rguenther@suse.de>
14501 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
14503 2015-07-09 Richard Biener <rguenther@suse.de>
14505 PR tree-optimization/66807
14506 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
14508 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
14510 * function.c (stack_protect_epilogue): Use if rather than switch for
14511 check targetm.have_stack_protect_test.
14513 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14515 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
14516 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
14517 * config/arc/arc.h: Likewise.
14518 * config/arm/arm.h: Likewise.
14519 * config/bfin/bfin.h: Likewise.
14520 * config/epiphany/epiphany.h: Likewise.
14521 * config/frv/frv.h: Likewise.
14522 * config/ia64/ia64.h: Likewise.
14523 * config/iq2000/iq2000.h: Likewise.
14524 * config/lm32/lm32.h: Likewise.
14525 * config/m32r/m32r.h: Likewise.
14526 * config/mcore/mcore.h: Likewise.
14527 * config/mep/mep.h: Likewise.
14528 * config/microblaze/microblaze.h: Likewise.
14529 * config/mips/mips.h: Likewise.
14530 * config/mmix/mmix.h: Likewise.
14531 * config/mn10300/mn10300.h: Likewise.
14532 * config/nds32/nds32.h: Likewise.
14533 * config/nios2/nios2.h: Likewise.
14534 * config/pa/pa.h: Likewise.
14535 * config/rl78/rl78.h: Likewise.
14536 * config/sh/sh.h: Likewise.
14537 * config/sparc/sparc.h: Likewise.
14538 * config/stormy16/stormy16.h: Likewise.
14539 * config/tilegx/tilegx.h: Likewise.
14540 * config/tilepro/tilepro.h: Likewise.
14541 * config/v850/v850.h: Likewise.
14542 * config/xtensa/xtensa.h: Likewise.
14543 * doc/tm.texi: Regenerate.
14544 * doc/tm.texi.in: Adjust.
14545 * combine.c (simplify_set): Likewise.
14546 (simplify_comparison): Likewise.
14547 * expr.c (store_constructor): Likewise.
14548 * internal-fn.c (expand_arith_overflow): Likewise.
14549 * reload.c (push_reload): Likewise.
14550 (find_reloads): Likewise.
14551 (find_reloads_subreg_address): Likewise.
14552 * reload1.c (eliminate_regs_1): Likewise.
14553 * rtlanal.c (nonzero_bits1): Likewise.
14554 (num_sign_bit_copies1): Likewise.
14555 * simplify-rtx.c (simplify_truncation): Likewise.
14557 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14559 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
14560 of AUTO_INC_DEC with the preprocessor.
14561 * combine.c (combine_instructions): Likewise.
14562 (can_combine_p): Likewise.
14563 (try_combine): Likewise.
14564 * emit-rtl.c (try_split): Likewise.
14565 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14566 * lower-subreg.c (resolve_simple_move): Likewise.
14567 * lra.c (update_inc_notes): Likewise.
14568 * recog.c (asm_operand_ok): Likewise.
14569 (constrain_operands): Likewise.
14570 * regrename.c (scan_rtx_address): Likewise.
14571 * reload.c (update_auto_inc_notes): Likewise.
14572 (reg_inc_found_and_valid_p): Likewise.
14573 * reload1.c (reload): Likewise.
14574 (emit_input_reload_insns): Likewise.
14575 (delete_output_reload): Likewise.
14576 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14577 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14579 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14581 * rtl.h: Always define AUTO_INC_DEC.
14582 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
14583 * combine.c (combine_instructions): Likewise.
14584 (can_combine_p): Likewise.
14585 (try_combine): Likewise.
14586 * emit-rtl.c (try_split): Likewise.
14587 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14588 * lower-subreg.c (resolve_simple_move): Likewise.
14589 * lra.c (update_inc_notes): Likewise.
14590 * recog.c (asm_operand_ok): Likewise.
14591 (constrain_operands): Likewise.
14592 * regrename.c (scan_rtx_address): Likewise.
14593 * reload.c (update_auto_inc_notes): Likewise.
14594 (find_equiv_reg): Likewise.
14595 * reload1.c (reload): Likewise.
14596 (reload_as_needed): Likewise.
14597 (choose_reload_regs): Likewise.
14598 (emit_input_reload_insns): Likewise.
14599 (delete_output_reload): Likewise.
14600 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14601 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14603 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14605 * combine.c (can_combine_def_p): Don't check the value of
14606 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
14607 (combinable_i3pat): Likewise.
14608 (mark_used_regs_combine): Likewise.
14609 * regrename.c (rename_chains): Likewise.
14610 * reload.c (find_reloads_address): Likewise.
14611 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14613 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14615 * combine.c (update_rsp_from_reg_equal): Don't check if
14616 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
14617 (reg_nonzero_bits_for_combine): Likewise.
14618 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
14620 * config/frv/frv.h: Likewise.
14621 * config/lm32/lm32.h: Likewise.
14622 * config/mep/mep.h: Likewise.
14623 * config/mips/mips.h: Likewise.
14624 * config/rs6000/rs6000.h: Likewise.
14625 * config/sh/sh.h: Likewise.
14626 * config/tilegx/tilegx.h (enum reg_class): Likewise.
14627 * config/tilepro/tilepro.h: Likewise.
14628 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
14629 * doc/tm.texi: Regenerate.
14630 * doc/tm.texi.in: Adjust.
14631 * rtlanal.c (nonzero_bits1): Likewise.
14633 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14635 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
14636 with the preprocessor.
14637 (combine_instructions): Likewise.
14638 (try_combine): Likewise.
14640 (distribute_notes): Likewise.
14642 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14644 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
14646 (simplify_set): Likewise.
14647 * cse.c (cse_insn): Likewise.
14648 * fold-const.c (fold_single_bit_test): Likewise.
14649 (fold_unary_loc): Likewise.
14650 * postreload.c (reload_cse_simplify_set): Likewise.
14651 (reload_cse_simplify_operands): Likewise.
14653 2015-07-08 Jiong Wang <jiong.wang@arm.com>
14655 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
14656 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
14658 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
14661 * config/i386/x86intrin.h: Include <adxintrin.h> even if
14662 __iamcu__ is defined.
14664 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14666 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
14668 2015-07-08 Iain Sandoe <iain@codesourcery.com>
14671 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
14672 names from preservation.
14674 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
14677 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
14679 (function_arg_advance_32): Don't pass vectors in registers for
14681 (function_arg_32): Likewise.
14682 (ix86_return_in_memory): Don't return vectors in registers for
14685 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
14687 PR middle-end/66334
14688 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
14689 hard regno live at the start of BB with incoming abnormal edges.
14690 * lra-lives.c (process_bb_lives): Ditto.
14692 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14695 * config/nvptx/mkoffload.c (main): Create an offload image only in
14696 64-bit configurations.
14698 2015-07-08 Martin Liska <mliska@suse.cz>
14701 * tree-sra.c (create_access_1): Call ctor without brackets.
14702 (create_artificial_child_access): Likewise.
14704 2015-07-08 Richard Biener <rguenther@suse.de>
14706 PR tree-optimization/66793
14707 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
14708 Properly split the block after stmts ending it.
14710 2015-07-08 Richard Biener <rguenther@suse.de>
14712 PR tree-optimization/66794
14713 * passes.c (execute_function_todo): Assert that post-dominators
14715 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
14716 Free post-dominators.
14718 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14720 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
14723 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14725 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
14726 more than or equal 8 and less than 32 when optimizing for size.
14728 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14730 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
14731 COSTS_N_INSNS (1) and increment it appropriately throughout the
14734 2015-07-08 Richard Biener <rguenther@suse.de>
14736 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
14738 2015-07-08 Alan Modra <amodra@gmail.com>
14740 * target.def (rtx_costs): Remove "code" param, add "mode".
14741 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
14742 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
14743 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
14744 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
14745 call. Track mode when given in rtx.
14746 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
14747 (default_address_cost): Pass Pmode to rtx_cost.
14748 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
14749 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
14751 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
14752 (notreg_cost): Add mode param. Use it.
14753 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
14754 mode param and pass to set_src_cost. Update all calls.
14755 (hash_scan_set): Formatting.
14756 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
14757 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
14759 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
14760 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
14761 emit_store_flag): Update set_src_cost and rtx_cost calls.
14762 * auto-inc-dec.c (attempt_change): Likewise.
14763 * calls.c (precompute_register_parameters): Likewise.
14764 * combine.c (expand_compound_operation, make_extraction,
14765 force_to_mode, distribute_and_simplify_rtx): Likewise.
14766 * dojump.c (prefer_and_bit_test): Likewise.
14767 * dse.c (find_shift_sequence): Likewise.
14768 * expr.c (compress_float_constant): Likewise.
14769 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
14770 * ifcvt.c (noce_try_sign_mask): Likewise.
14771 * loop-doloop.c (doloop_optimize): Likewise.
14772 * loop-invariant.c (create_new_invariant): Likewise.
14773 * lower-subreg.c (shift_cost, compute_costs): Likewise.
14774 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
14775 lshift_cheap_p): Likewise.
14776 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
14777 try_replace_in_use, reload_cse_move2add): Likewise.
14778 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
14780 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14781 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
14782 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
14783 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
14784 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
14785 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
14787 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
14788 * config/arc/arc.c (arc_rtx_costs): Likewise.
14789 * config/arm/arm.c (arm_rtx_costs): Likewise.
14790 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
14791 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
14792 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
14793 * config/cris/cris.c (cris_rtx_costs): Likewise.
14794 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
14795 * config/frv/frv.c (frv_rtx_costs): Likewise.
14796 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
14797 * config/i386/i386.c (ix86_rtx_costs): Likewise.
14798 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
14799 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
14800 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
14801 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
14802 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
14803 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
14804 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
14805 * config/mep/mep.c (mep_rtx_cost): Likewise.
14806 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
14807 * config/mips/mips.c (mips_rtx_costs): Likewise.
14808 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
14809 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
14810 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
14811 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
14812 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
14813 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
14814 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
14815 * config/pa/pa.c (hppa_rtx_costs): Likewise.
14816 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
14817 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
14818 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
14819 * config/s390/s390.c (s390_rtx_costs): Likewise.
14820 * config/sh/sh.c (sh_rtx_costs): Likewise.
14821 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
14822 * config/spu/spu.c (spu_rtx_costs): Likewise.
14823 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
14824 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
14825 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
14826 * config/v850/v850.c (v850_rtx_costs): Likewise.
14827 * config/vax/vax.c (vax_rtx_costs): Likewise.
14828 * config/visium/visium.c (visium_rtx_costs): Likewise.
14829 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
14830 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
14831 "code" param, and pass as outer_code to first rtx_cost call. Pass
14832 mode to rtx_cost calls.
14833 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
14835 (aarch64_rtx_costs_wrapper): Update.
14836 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
14837 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
14839 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
14840 and rtx_cost calls.
14841 (avr_operand_rtx_cost): Similarly.
14842 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
14843 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
14844 * config/mips/mips.c (mips_stack_address_p): Comment typo.
14845 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
14846 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
14847 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
14849 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
14850 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
14851 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
14852 * doc/tm.texi: Regenerate.
14854 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
14856 * tree-core.h: Include symtab.h.
14857 * rtl.h: Include hard-reg-set.h but not flags.h.
14858 (HARD_CONST): Remove condition compilation involving HARD_CONST since
14859 hard-reg-set.h is always included.
14860 * regs.h: Don't include hard-reg-set.h or rtl.h.
14861 * cfg.h: Include dominance.h.
14862 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
14863 * backend.h: New. Aggregate commonly used backend header files.
14864 * gimple-ssa.h: Don't include tree-hasher.h.
14865 * ssa.h: New. Aggregate commonly used SSA header files.
14866 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
14867 * sel-sched-ir.h: Flatten includes.
14868 * lra-int.h: Flatten completely.
14869 * sel-sched-dump.h: Flatten includes.
14870 * ira-int.h: Flatten includes.
14871 * gimple-streamer.h: Remove all includes.
14872 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
14873 * resource.h: Flatten hard-reg-set.h and df.h.
14874 * sched-int.h: Flatten insn-arrt.h and df.h.
14875 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
14876 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
14877 * genattrtab.c (write_header): Adjust generated includes.
14878 * genautomata.c (main): Likewise.
14879 * genconditions.c (write-header): Likewise.
14880 * genemit.c (main): Likewise.
14881 * gengtype.c (open_base_files): Likewise.
14882 * genopinit.c (main): Likewise.
14883 * genoutput.c (output_prologue): Likewise.
14884 * genpeep.c (main): Likewise.
14885 * genpreds.c (write_insn_preds_c): Likewise.
14886 * genrecog.c (write_header): Likewise.
14887 * alias.c: Adjust includes.
14888 * asan.c: Likewise.
14889 * attribs.c: Likewise.
14890 * auto-inc-dec.c: Likewise.
14891 * auto-profile.c: Likewise.
14892 * bb-reorder.c: Likewise.
14893 * bt-load.c: Likewise.
14894 * builtins.c: Likewise.
14895 * caller-save.c: Likewise.
14896 * calls.c: Likewise.
14897 * ccmp.c: Likewise.
14899 * cfganal.c: Likewise.
14900 * cfgbuild.c: Likewise.
14901 * cfgcleanup.c: Likewise.
14902 * cfgexpand.c: Likewise.
14903 * cfghooks.c: Likewise.
14904 * cfgloop.c: Likewise.
14905 * cfgloopanal.c: Likewise.
14906 * cfgloopmanip.c: Likewise.
14907 * cfgrtl.c: Likewise.
14908 * cgraph.c: Likewise.
14909 * cgraphbuild.c: Likewise.
14910 * cgraphclones.c: Likewise.
14911 * cgraphunit.c: Likewise.
14912 * cilk-common.c: Likewise.
14913 * combine-stack-adj.c: Likewise.
14914 * combine.c: Likewise.
14915 * compare-elim.c: Likewise.
14916 * convert.c: Likewise.
14917 * coverage.c: Likewise.
14918 * cppbuiltin.c: Likewise.
14919 * cprop.c: Likewise.
14921 * cselib.c: Likewise.
14922 * data-streamer-in.c: Likewise.
14923 * data-streamer-out.c: Likewise.
14924 * data-streamer.c: Likewise.
14925 * dbxout.c: Likewise.
14928 * debug.c: Likewise.
14929 * df-core.c: Likewise.
14930 * df-problems.c: Likewise.
14931 * df-scan.c: Likewise.
14933 * dojump.c: Likewise.
14934 * dominance.c: Likewise.
14935 * domwalk.c: Likewise.
14936 * double-int.c: Likewise.
14938 * dumpfile.c: Likewise.
14939 * dwarf2asm.c: Likewise.
14940 * dwarf2cfi.c: Likewise.
14941 * dwarf2out.c: Likewise.
14942 * emit-rtl.c: Likewise.
14943 * et-forest.c: Likewise.
14944 * except.c: Likewise.
14945 * explow.c: Likewise.
14946 * expmed.c: Likewise.
14947 * expr.c: Likewise.
14948 * final.c: Likewise.
14949 * fixed-value.c: Likewise.
14950 * fold-const.c: Likewise.
14951 * function.c: Likewise.
14952 * fwprop.c: Likewise.
14953 * gcc-plugin.h: Likewise.
14954 * gcse-common.c: Likewise.
14955 * gcse.c: Likewise.
14956 * generic-match-head.c: Likewise.
14957 * ggc-page.c: Likewise.
14958 * gimple-builder.c: Likewise.
14959 * gimple-expr.c: Likewise.
14960 * gimple-fold.c: Likewise.
14961 * gimple-iterator.c: Likewise.
14962 * gimple-low.c: Likewise.
14963 * gimple-match-head.c: Likewise.
14964 * gimple-pretty-print.c: Likewise.
14965 * gimple-ssa-isolate-paths.c: Likewise.
14966 * gimple-ssa-strength-reduction.c: Likewise.
14967 * gimple-streamer-in.c: Likewise.
14968 * gimple-streamer-out.c: Likewise.
14969 * gimple-walk.c: Likewise.
14970 * gimple.c: Likewise.
14971 * gimplify-me.c: Likewise.
14972 * gimplify.c: Likewise.
14973 * godump.c: Likewise.
14974 * graph.c: Likewise.
14975 * graphite-blocking.c: Likewise.
14976 * graphite-dependences.c: Likewise.
14977 * graphite-interchange.c: Likewise.
14978 * graphite-isl-ast-to-gimple.c: Likewise.
14979 * graphite-optimize-isl.c: Likewise.
14980 * graphite-poly.c: Likewise.
14981 * graphite-scop-detection.c: Likewise.
14982 * graphite-sese-to-poly.c: Likewise.
14983 * graphite.c: Likewise.
14984 * haifa-sched.c: Likewise.
14985 * hw-doloop.c: Likewise.
14986 * ifcvt.c: Likewise.
14987 * init-regs.c: Likewise.
14988 * internal-fn.c: Likewise.
14989 * ipa-chkp.c: Likewise.
14990 * ipa-comdats.c: Likewise.
14991 * ipa-cp.c: Likewise.
14992 * ipa-devirt.c: Likewise.
14993 * ipa-icf-gimple.c: Likewise.
14994 * ipa-icf.c: Likewise.
14995 * ipa-inline-analysis.c: Likewise.
14996 * ipa-inline-transform.c: Likewise.
14997 * ipa-inline.c: Likewise.
14998 * ipa-polymorphic-call.c: Likewise.
14999 * ipa-profile.c: Likewise.
15000 * ipa-prop.c: Likewise.
15001 * ipa-pure-const.c: Likewise.
15002 * ipa-ref.c: Likewise.
15003 * ipa-reference.c: Likewise.
15004 * ipa-split.c: Likewise.
15005 * ipa-utils.c: Likewise.
15006 * ipa-visibility.c: Likewise.
15008 * ira-build.c: Likewise.
15009 * ira-color.c: Likewise.
15010 * ira-conflicts.c: Likewise.
15011 * ira-costs.c: Likewise.
15012 * ira-emit.c: Likewise.
15013 * ira-lives.c: Likewise.
15015 * jump.c: Likewise.
15016 * langhooks.c: Likewise.
15018 * loop-doloop.c: Likewise.
15019 * loop-init.c: Likewise.
15020 * loop-invariant.c: Likewise.
15021 * loop-iv.c: Likewise.
15022 * loop-unroll.c: Likewise.
15023 * lower-subreg.c: Likewise.
15024 * lra-assigns.c: Likewise.
15025 * lra-coalesce.c: Likewise.
15026 * lra-constraints.c: Likewise.
15027 * lra-eliminations.c: Likewise.
15028 * lra-lives.c: Likewise.
15029 * lra-remat.c: Likewise.
15030 * lra-spills.c: Likewise.
15032 * lto-cgraph.c: Likewise.
15033 * lto-compress.c: Likewise.
15034 * lto-opts.c: Likewise.
15035 * lto-section-in.c: Likewise.
15036 * lto-section-out.c: Likewise.
15037 * lto-streamer-in.c: Likewise.
15038 * lto-streamer-out.c: Likewise.
15039 * lto-streamer.c: Likewise.
15041 * mode-switching.c: Likewise.
15042 * modulo-sched.c: Likewise.
15043 * omega.c: Likewise.
15044 * omp-low.c: Likewise.
15045 * optabs.c: Likewise.
15046 * opts-global.c: Likewise.
15047 * passes.c: Likewise.
15048 * plugin.c: Likewise.
15049 * postreload-gcse.c: Likewise.
15050 * postreload.c: Likewise.
15051 * predict.c: Likewise.
15052 * print-rtl.c: Likewise.
15053 * print-tree.c: Likewise.
15054 * profile.c: Likewise.
15055 * real.c: Likewise.
15056 * realmpfr.c: Likewise.
15057 * recog.c: Likewise.
15059 * reg-stack.c: Likewise.
15060 * regcprop.c: Likewise.
15061 * reginfo.c: Likewise.
15062 * regrename.c: Likewise.
15063 * regstat.c: Likewise.
15064 * reload.c: Likewise.
15065 * reload1.c: Likewise.
15066 * reorg.c: Likewise.
15067 * resource.c: Likewise.
15068 * rtl-chkp.c: Likewise.
15069 * rtlanal.c: Likewise.
15070 * rtlhooks.c: Likewise.
15071 * sanopt.c: Likewise.
15072 * sched-deps.c: Likewise.
15073 * sched-ebb.c: Likewise.
15074 * sched-rgn.c: Likewise.
15075 * sched-vis.c: Likewise.
15076 * sdbout.c: Likewise.
15077 * sel-sched-dump.c: Likewise.
15078 * sel-sched-ir.c: Likewise.
15079 * sel-sched.c: Likewise.
15080 * sese.c: Likewise.
15081 * shrink-wrap.c: Likewise.
15082 * simplify-rtx.c: Likewise.
15083 * stack-ptr-mod.c: Likewise.
15084 * stmt.c: Likewise.
15085 * stor-layout.c: Likewise.
15086 * store-motion.c: Likewise.
15087 * stringpool.c: Likewise.
15088 * symtab.c: Likewise.
15089 * target-globals.c: Likewise.
15090 * targhooks.c: Likewise.
15091 * toplev.c: Likewise.
15092 * tracer.c: Likewise.
15093 * trans-mem.c: Likewise.
15094 * tree-affine.c: Likewise.
15095 * tree-browser.c: Likewise.
15096 * tree-call-cdce.c: Likewise.
15097 * tree-cfg.c: Likewise.
15098 * tree-cfgcleanup.c: Likewise.
15099 * tree-chkp-opt.c: Likewise.
15100 * tree-chkp.c: Likewise.
15101 * tree-chrec.c: Likewise.
15102 * tree-complex.c: Likewise.
15103 * tree-data-ref.c: Likewise.
15104 * tree-dfa.c: Likewise.
15105 * tree-diagnostic.c: Likewise.
15106 * tree-dump.c: Likewise.
15107 * tree-eh.c: Likewise.
15108 * tree-emutls.c: Likewise.
15109 * tree-if-conv.c: Likewise.
15110 * tree-inline.c: Likewise.
15111 * tree-into-ssa.c: Likewise.
15112 * tree-iterator.c: Likewise.
15113 * tree-loop-distribution.c: Likewise.
15114 * tree-nested.c: Likewise.
15115 * tree-nrv.c: Likewise.
15116 * tree-object-size.c: Likewise.
15117 * tree-outof-ssa.c: Likewise.
15118 * tree-parloops.c: Likewise.
15119 * tree-phinodes.c: Likewise.
15120 * tree-predcom.c: Likewise.
15121 * tree-pretty-print.c: Likewise.
15122 * tree-profile.c: Likewise.
15123 * tree-scalar-evolution.c: Likewise.
15124 * tree-sra.c: Likewise.
15125 * tree-ssa-address.c: Likewise.
15126 * tree-ssa-alias.c: Likewise.
15127 * tree-ssa-ccp.c: Likewise.
15128 * tree-ssa-coalesce.c: Likewise.
15129 * tree-ssa-copy.c: Likewise.
15130 * tree-ssa-copyrename.c: Likewise.
15131 * tree-ssa-dce.c: Likewise.
15132 * tree-ssa-dom.c: Likewise.
15133 * tree-ssa-dse.c: Likewise.
15134 * tree-ssa-forwprop.c: Likewise.
15135 * tree-ssa-ifcombine.c: Likewise.
15136 * tree-ssa-live.c: Likewise.
15137 * tree-ssa-loop-ch.c: Likewise.
15138 * tree-ssa-loop-im.c: Likewise.
15139 * tree-ssa-loop-ivcanon.c: Likewise.
15140 * tree-ssa-loop-ivopts.c: Likewise.
15141 * tree-ssa-loop-manip.c: Likewise.
15142 * tree-ssa-loop-niter.c: Likewise.
15143 * tree-ssa-loop-prefetch.c: Likewise.
15144 * tree-ssa-loop-unswitch.c: Likewise.
15145 * tree-ssa-loop.c: Likewise.
15146 * tree-ssa-math-opts.c: Likewise.
15147 * tree-ssa-operands.c: Likewise.
15148 * tree-ssa-phiopt.c: Likewise.
15149 * tree-ssa-phiprop.c: Likewise.
15150 * tree-ssa-pre.c: Likewise.
15151 * tree-ssa-propagate.c: Likewise.
15152 * tree-ssa-reassoc.c: Likewise.
15153 * tree-ssa-sccvn.c: Likewise.
15154 * tree-ssa-scopedtables.c: Likewise.
15155 * tree-ssa-sink.c: Likewise.
15156 * tree-ssa-strlen.c: Likewise.
15157 * tree-ssa-structalias.c: Likewise.
15158 * tree-ssa-tail-merge.c: Likewise.
15159 * tree-ssa-ter.c: Likewise.
15160 * tree-ssa-threadedge.c: Likewise.
15161 * tree-ssa-threadupdate.c: Likewise.
15162 * tree-ssa-uncprop.c: Likewise.
15163 * tree-ssa-uninit.c: Likewise.
15164 * tree-ssa.c: Likewise.
15165 * tree-ssanames.c: Likewise.
15166 * tree-stdarg.c: Likewise.
15167 * tree-streamer-in.c: Likewise.
15168 * tree-streamer-out.c: Likewise.
15169 * tree-streamer.c: Likewise.
15170 * tree-switch-conversion.c: Likewise.
15171 * tree-tailcall.c: Likewise.
15172 * tree-vect-data-refs.c: Likewise.
15173 * tree-vect-generic.c: Likewise.
15174 * tree-vect-loop-manip.c: Likewise.
15175 * tree-vect-loop.c: Likewise.
15176 * tree-vect-patterns.c: Likewise.
15177 * tree-vect-slp.c: Likewise.
15178 * tree-vect-stmts.c: Likewise.
15179 * tree-vectorizer.c: Likewise.
15180 * tree-vrp.c: Likewise.
15181 * tree.c: Likewise.
15182 * tsan.c: Likewise.
15183 * ubsan.c: Likewise.
15184 * valtrack.c: Likewise.
15185 * value-prof.c: Likewise.
15186 * var-tracking.c: Likewise.
15187 * varasm.c: Likewise.
15188 * varpool.c: Likewise.
15189 * vmsdbgout.c: Likewise.
15190 * vtable-verify.c: Likewise.
15192 * wide-int.cc: Likewise.
15193 * xcoffout.c: Likewise.
15194 * config/aarch64/aarch64-builtins.c: Likewise.
15195 * config/aarch64/aarch64.c: Likewise.
15196 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15197 * config/alpha/alpha.c: Likewise.
15198 * config/arc/arc.c: Likewise.
15199 * config/arm/aarch-common.c: Likewise.
15200 * config/arm/arm-builtins.c: Likewise.
15201 * config/arm/arm-c.c: Likewise.
15202 * config/arm/arm.c: Likewise.
15203 * config/avr/avr-c.c: Likewise.
15204 * config/avr/avr-log.c: Likewise.
15205 * config/avr/avr.c: Likewise.
15206 * config/bfin/bfin.c: Likewise.
15207 * config/c6x/c6x.c: Likewise.
15208 * config/cr16/cr16.c: Likewise.
15209 * config/cris/cris.c: Likewise.
15210 * config/darwin-c.c: Likewise.
15211 * config/darwin.c: Likewise.
15212 * config/epiphany/epiphany.c: Likewise.
15213 * config/epiphany/mode-switch-use.c: Likewise.
15214 * config/epiphany/resolve-sw-modes.c: Likewise.
15215 * config/fr30/fr30.c: Likewise.
15216 * config/frv/frv.c: Likewise.
15217 * config/ft32/ft32.c: Likewise.
15218 * config/h8300/h8300.c: Likewise.
15219 * config/i386/i386-c.c: Likewise.
15220 * config/i386/i386.c: Likewise.
15221 * config/i386/msformat-c.c: Likewise.
15222 * config/i386/winnt-cxx.c: Likewise.
15223 * config/i386/winnt-stubs.c: Likewise.
15224 * config/i386/winnt.c: Likewise.
15225 * config/ia64/ia64-c.c: Likewise.
15226 * config/ia64/ia64.c: Likewise.
15227 * config/iq2000/iq2000.c: Likewise.
15228 * config/lm32/lm32.c: Likewise.
15229 * config/m32c/m32c-pragma.c: Likewise.
15230 * config/m32c/m32c.c: Likewise.
15231 * config/m32r/m32r.c: Likewise.
15232 * config/m68k/m68k.c: Likewise.
15233 * config/mcore/mcore.c: Likewise.
15234 * config/mep/mep-pragma.c: Likewise.
15235 * config/mep/mep.c: Likewise.
15236 * config/microblaze/microblaze-c.c: Likewise.
15237 * config/microblaze/microblaze.c: Likewise.
15238 * config/mips/mips.c: Likewise.
15239 * config/mmix/mmix.c: Likewise.
15240 * config/mn10300/mn10300.c: Likewise.
15241 * config/moxie/moxie.c: Likewise.
15242 * config/msp430/msp430-c.c: Likewise.
15243 * config/msp430/msp430.c: Likewise.
15244 * config/nds32/nds32-cost.c: Likewise.
15245 * config/nds32/nds32-fp-as-gp.c: Likewise.
15246 * config/nds32/nds32-intrinsic.c: Likewise.
15247 * config/nds32/nds32-isr.c: Likewise.
15248 * config/nds32/nds32-md-auxiliary.c: Likewise.
15249 * config/nds32/nds32-memory-manipulation.c: Likewise.
15250 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15251 * config/nds32/nds32-predicates.c: Likewise.
15252 * config/nds32/nds32.c: Likewise.
15253 * config/nios2/nios2.c: Likewise.
15254 * config/nvptx/nvptx.c: Likewise.
15255 * config/pa/pa.c: Likewise.
15256 * config/pdp11/pdp11.c: Likewise.
15257 * config/rl78/rl78-c.c: Likewise.
15258 * config/rl78/rl78.c: Likewise.
15259 * config/rs6000/rs6000-c.c: Likewise.
15260 * config/rs6000/rs6000.c: Likewise.
15261 * config/rx/rx.c: Likewise.
15262 * config/s390/s390-c.c: Likewise.
15263 * config/s390/s390.c: Likewise.
15264 * config/sh/sh-c.c: Likewise.
15265 * config/sh/sh-mem.cc: Likewise.
15266 * config/sh/sh.c: Likewise.
15267 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15268 * config/sh/sh_treg_combine.cc: Likewise.
15269 * config/sol2-c.c: Likewise.
15270 * config/sol2-cxx.c: Likewise.
15271 * config/sol2-stubs.c: Likewise.
15272 * config/sol2.c: Likewise.
15273 * config/sparc/sparc-c.c: Likewise.
15274 * config/sparc/sparc.c: Likewise.
15275 * config/spu/spu-c.c: Likewise.
15276 * config/spu/spu.c: Likewise.
15277 * config/stormy16/stormy16.c: Likewise.
15278 * config/tilegx/mul-tables.c: Likewise.
15279 * config/tilegx/tilegx-c.c: Likewise.
15280 * config/tilegx/tilegx.c: Likewise.
15281 * config/tilepro/mul-tables.c: Likewise.
15282 * config/tilepro/tilepro-c.c: Likewise.
15283 * config/tilepro/tilepro.c: Likewise.
15284 * config/v850/v850-c.c: Likewise.
15285 * config/v850/v850.c: Likewise.
15286 * config/vax/vax.c: Likewise.
15287 * config/visium/visium.c: Likewise.
15288 * config/vms/vms-c.c: Likewise.
15289 * config/vms/vms.c: Likewise.
15290 * config/vxworks.c: Likewise.
15291 * config/xtensa/xtensa.c: Likewise.
15293 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
15295 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
15296 Remove operand constraints. Change operand 2 predicate to
15297 nonmemory operand. Limit const_int values to mode bitsize. Only
15298 allow const_int values less than 32 when optimizing for size.
15299 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
15300 Remove operand constraints.
15301 (*bt<mode>): Use SImode for const_int values less than 32.
15302 (regmode): Remove mode attribute.
15304 2015-07-07 Anatoly Sokolov <aesok@post.ru>
15306 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15307 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
15308 moxie_legitimate_address_p): New functions.
15309 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
15311 2015-07-07 Tom de Vries <tom@codesourcery.com>
15313 PR tree-optimization/66642
15314 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
15315 header comment. Rename split_edge variable to edge_at_split. Split
15316 exit edge to create new loop exit bb. Insert loop exit phis in new
15319 2015-07-07 Tom de Vries <tom@codesourcery.com>
15321 * tree-cfg.c (get_virtual_phi): New function.
15322 * tree-cfg.h (get_virtual_phi): Declare.
15323 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
15324 (rewrite_virtuals_into_loop_closed_ssa): New function.
15325 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
15327 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
15328 (transform_to_exit_first_loop_alt): Use
15329 rewrite_virtuals_into_loop_closed_ssa.
15331 2015-07-07 Richard Biener <rguenther@suse.de>
15333 * fold-const.c (fold_binary_loc): Move
15334 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
15335 * match.pd: ... here.
15336 Add (X * C1) % C2 -> 0 simplification pattern derived from
15339 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
15342 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
15343 change for target/65249.
15345 2015-07-07 Paulo Matos <pmatos@broadcom.com>
15347 * symtab.c (address_matters_1): Fix typo in comment above.
15348 (can_increase_alignment_p): Likewise.
15350 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15352 * function.c (free_after_compilation): Clear PROP_cfg in
15353 f->curr_properties.
15355 2015-07-07 Richard Biener <rguenther@suse.de>
15357 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
15359 (add_control_edge): Remove excessive vertical space in dumping.
15360 (process_ssa_edge_worklist): Simulate at most one statement and
15361 return whether we did. Do not simulate PHIs if they are in a
15362 BB not yet simulated.
15363 (ssa_propagate): Adjust to always drain the BB worklist whenever
15364 a BB is available there, likewise the VARYING edges list before
15365 the interesting edge list.
15367 2015-07-07 Christian Bruel <christian.bruel@st.com>
15370 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
15372 2015-07-07 Richard Biener <rguenther@suse.de>
15374 PR middle-end/66739
15375 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
15378 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
15380 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
15381 modes for operands 0 and 3. Use SImode for operands 2 and 3.
15382 Copy operand 0 to a temporary if !ext_register_operand. Remove
15383 ancient extract_bit_field workaround.
15384 (insv<mode>_1): Rename from mov<mode>_insv_1.
15385 (*insvqi): Rename from *movqi_insv_2.
15386 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
15387 for renamed insvsi_1.
15388 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
15390 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
15392 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
15393 call to nvptx_reorg_subreg.
15395 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
15397 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
15398 * graphite-dependencies.c, graphite-interchange.c,
15399 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
15400 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
15403 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
15405 * match.pd: Remove element_mode inside HONOR_*.
15406 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
15407 (~X | X -> -1, ~X ^ X -> -1): Merge.
15408 * tree.c (build_each_one_cst): New function.
15409 * tree.h (build_each_one_cst): Likewise.
15411 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15413 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15416 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
15418 * config.gcc <mips*-*-*>: Add fused-madd.opt.
15419 * config/mips/mips.opt (mfused-madd): Remove.
15420 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
15421 * config/mips/mips.h (TARGET_MIPS8000): New.
15422 (ISA_HAS_FP_MADD4_MSUB4): Remove.
15423 (ISA_HAS_FP_MADDF_MSUBF): Remove.
15424 (ISA_HAS_FP_MADD3_MSUB3): Remove.
15425 (ISA_HAS_NMADD4_NMSUB4): Remove.
15426 (ISA_HAS_NMADD3_NMSUB3): Remove.
15427 (ISA_HAS_FUSED_MADD4): New.
15428 (ISA_HAS_UNFUSED_MADD4): New.
15429 (ISA_HAS_FUSED_MADDF): New.
15430 (ISA_HAS_FUSED_MADD3): New.
15431 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
15432 (*fma<mode>4_madd3) New.
15433 (*fma<mode>4_madd4) New.
15434 (*fma<mode>4_maddf) New.
15436 (*fms<mode>4_msub3) New.
15437 (*fms<mode>4_msub4) New.
15439 (*fnma<mode>4_nmadd3) New.
15440 (*fnma<mode>4_nmadd4) New.
15442 (*fnms<mode>4_nmsub3) New.
15443 (*fnms<mode>4_nmsub4) New.
15444 (*madd4<mode>) Modify to be unfused only.
15445 (*msub4<mode>) Modify to be unfused only.
15446 (*nmadd4<mode>) Modify to be unfused only.
15447 (*nmsub4<mode>) Modify to be unfused only.
15448 (*madd3<mode>) Remove.
15449 (*msub3<mode>) Remove.
15450 (*nmadd3<mode>) Remove.
15451 (*nmsub3<mode>) Remove.
15452 (*nmadd3<mode>_fastmath) Remove.
15453 (*nmsub3<mode>_fastmath) Remove.
15454 (*nmadd4<mode>_fastmath) Update condition.
15455 (*nmsub4<mode>_fastmath) Update condition.
15457 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
15460 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
15461 alignment attribute, exploring one level down for records and arrays.
15463 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
15465 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
15466 modes for operands 0 and 1. Use SImode for operands 2 and 3.
15467 Copy operand 1 to a temporary if !ext_register_operand. Remove
15468 ancient extract_bit_field workaround.
15469 (*extv<mode>): Rename from *mov<mode>_extv_1.
15470 (*extvqi): Rename from *movqi_extv_1.
15471 (extzv<mode>): Rename from extzv. Use SWI248 modes for
15472 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
15473 to a temporary if !ext_register_operand. Remove ancient
15474 extract_bit_field workaround.
15475 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
15476 (*extzvqi): Rename from *movqi_extzv_2.
15477 (*testqi_ext_3): Remove modes from const_int_operand predicated
15478 operands. Add "n" constraint.
15479 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
15480 operand. Add "J" constraint.
15481 (*btsq, *btrq, *btcq peephole2s): Remove mode from
15482 const_0_to_63 predicated operand.
15483 (regmode): New insn attribute.
15484 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
15485 to nonmemory_operand. Use regmode insn attribute.
15486 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
15487 (*jcc_bt<mode>_mask): Remove mode from operand 3.
15488 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
15489 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
15490 operands. Use "N" constraint instead of "n".
15492 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
15494 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
15496 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15499 * config/i386/i386.c (iamcu_cost): New.
15500 (m_IAMCU): Likewise.
15501 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
15502 (processor_target_table): Add an entry for "iamcu".
15503 (processor_alias_table): Likewise.
15504 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
15505 (ix86_adjust_cost): Likewise.
15506 (ia32_multipass_dfa_lookahead): Likewise.
15507 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
15508 * config/i386/x86-tune.def: Updated for m_IAMCU.
15510 2015-07-06 Richard Biener <rguenther@suse.de>
15512 PR tree-optimization/66772
15513 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
15514 values are available in the PHI node BB when there are
15515 still unexecutable edges.
15517 2015-07-06 Richard Biener <rguenther@suse.de>
15519 PR tree-optimization/66767
15520 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
15521 Make sure to build the alignment test on a SSA name without
15522 final alignment info valid only if the alignment test
15525 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
15528 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
15529 loop start when inserting LSETUP.
15531 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15534 * config/i386/i386.c (ix86_option_override_internal): Allow
15535 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
15537 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15539 * read-md.c (decimal_string): Rename to ...
15540 (md_decimal_string): ... this.
15541 (handle_enum): Reflect this.
15543 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15546 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
15548 2015-07-06 Richard Biener <rguenther@suse.de>
15550 PR middle-end/66759
15551 * match.pd: Add missing constraint of y to REAL_CST in
15552 REAL_CST - x CMP y to y - CST CMP x simplification.
15554 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
15556 PR tree-optimization/66757
15557 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
15559 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
15560 Sandra Loosemore <sandra@codesourcery.com>
15562 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
15563 Delete extern declaration.
15564 (gprel_constant_p): Add extern declaration.
15565 * config/nios2/constraints.md ("S"): Use gprel_constant_p
15566 instead of nios2_symbol_ref_in_small_data_p.
15567 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
15568 (nios2_symbol_ref_in_small_data_p): Make static.
15569 (gprel_constant_p): Make non-static.
15571 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
15573 * doc/fragments.texi (Target Fragment): Convert debian.org
15575 * doc/install.texi (Configuration): Ditto.
15577 2015-07-05 Jakub Jelinek <jakub@redhat.com>
15579 PR tree-optimization/66718
15580 * tree-vect-stmts.c (vectorizable_call): Replace uses of
15581 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
15583 PR tree-optimization/66718
15584 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
15585 vectorizable_load, vectorizable_condition): Move vectype,
15586 nunits, ncopies computation after checking what kind of statement
15589 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15591 * target-insns.def (extv, extzv, insv): New targetm instruction
15593 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
15595 * recog.c (simplify_while_replacing): Likewise.
15597 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15599 * target-insns.def (doloop_begin, doloop_end): New targetm
15600 instruction patterns.
15601 * loop-init.c: Include target.h.
15602 (pass_loop2::gate): Use the new targetm patterns instead of
15603 HAVE_*/gen_* interface.
15604 (pass_rtl_doloop::gate): Likewise.
15605 (pass_rtl_doloop::execute): Remove preprocessor condition.
15606 * hw-doloop.c: Build unconditionally.
15607 * loop-doloop.c: Likewise.
15608 (doloop_optimize): Use the new targetm patterns instead of
15609 HAVE_*/gen_* interface.
15610 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
15611 * modulo-sched.c (doloop_register_get): Likewise.
15613 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15615 * target-insns.def (clear_cache): New targetm instruction pattern.
15616 * builtins.c (expand_builtin___clear_cache): Use it instead of
15617 HAVE_*/gen_* interface.
15619 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15621 * target-insns.def (allocate_stack, check_stack, probe_stack)
15622 (probe_stack_address, split_stack_prologue, split_stack_space_check):
15623 New targetm instruction patterns.
15624 * explow.c (allocate_dynamic_stack_space): Use them instead of
15625 HAVE_*/gen_* interface.
15626 (emit_stack_probe): Likewise.
15627 (probe_stack_range): Likewise.
15628 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15630 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15632 * target-insns.def (stack_protect_set, stack_protect_test): New
15633 targetm instruction patterns.
15634 * cfgexpand.c (stack_protect_prologue): Use them instead of
15635 HAVE_*/gen_* interface.
15636 * function.c (stack_protect_epilogue): Likewise.
15638 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15640 * expr.h (gen_move_insn_uncast): Delete.
15641 * expr.c (gen_move_insn_uncast): Delete.
15643 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15645 * target-insns.def (restore_stack_block, restore_stack_function)
15646 (restore_stack_nonlocal, save_stack_block, save_stack_function)
15647 (save_stack_nonlocal): New targetm instruction patterns.
15648 * builtins.c (expand_builtin_apply): Use them instead of
15649 HAVE_*/gen_* interface.
15650 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
15652 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15654 * target-insns.def (trap): New targetm instruction pattern.
15655 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
15657 * explow.c (allocate_dynamic_stack_space): Likewise.
15658 * ifcvt.c (find_if_header): Likewise.
15660 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15662 * target-insns.def (prefetch): New targetm instruction pattern.
15663 * tree-ssa-loop-prefetch.c: Include targeth.
15664 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
15665 of HAVE_*/gen_* interface.
15666 * builtins.c (expand_builtin_prefetch): Likewise.
15667 * toplev.c (process_options): Likewise.
15669 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15671 * target-insns.def (untyped_call, untyped_return): New targetm
15672 instruction patterns.
15673 * builtins.c (expand_builtin_apply): Use them instead of
15674 HAVE_*/gen_* interface.
15675 (result_vector): Define unconditionally.
15677 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15679 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
15680 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
15681 (nonlocal_goto_receiver): New targetm instruction patterns.
15682 * builtins.c (expand_builtin_setjmp_setup): Use them instead
15683 of HAVE_*/gen_* interface.
15684 (expand_builtin_setjmp_receiver): Likewise.
15685 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
15686 * except.c (expand_dw2_landing_pad_for_region): Likewise.
15688 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15690 * target.def: Add code_for_* hooks.
15691 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
15692 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
15693 * target-insns.def (casesi, tablejump): New targetm instruction
15695 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
15696 (do_tablejump): Likewise.
15697 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
15698 (expand_sjlj_dispatch_table): Likewise.
15699 * targhooks.c (default_case_values_threshold): Likewise.
15701 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
15703 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
15704 Use rtx_insn * instead of rtx.
15705 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
15706 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
15707 (nios2_call_tls_get_addr): Likewise.
15708 (nios2_emit_expensive_div): Likewise.
15709 (nios2_emit_move_sequence): Change return type to bool.
15710 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
15711 Change return type to bool.
15713 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
15716 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
15718 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
15721 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
15722 of register_operand. Remove constraint.
15724 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
15726 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
15727 the first argument.
15729 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
15731 * attribs.c (decl_attributes): Guard inform with the return value
15732 of the preceding warning.
15734 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
15736 * doc/invoke.texi (moverride): Move to correct section.
15738 2015-07-03 Richard Biener <rguenther@suse.de>
15740 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
15742 (dt_operand::gen_gimple_expr): After valueizing operands
15743 re-canonicalize operand order for commutative tree codes.
15745 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
15748 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
15750 (__crc32w): Likewise.
15751 (__crc32d): Likewise.
15752 (__rdpmc): Likewise.
15753 (__rdtscp): Likewise.
15754 (_rdpmc): Likewise.
15755 (_rdtscp): Likewise.
15756 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
15759 2015-07-03 Richard Biener <rguenther@suse.de>
15761 * fold-const.c (fold_mathfn_compare): Remove.
15762 (fold_inf_compare): Likewise.
15763 (fold_comparison): Move floating point comparison simplifications...
15764 * match.pd: ... to patterns here. Introduce simple_comparisons
15765 operator list and use it for patterns formerly in fold_comparison.
15767 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
15769 PR tree-optimization/66119
15770 * toplev.c (process_options): Don't set up default values for
15771 the sra_max_scalarization_size_{speed,size} parameters.
15772 * tree-sra (analyze_all_variable_accesses): If no values
15773 have been set for the sra_max_scalarization_size_{speed,size}
15774 parameters, call get_move_ratio to get target defaults.
15776 2015-07-03 Richard Biener <rguenther@suse.de>
15778 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
15779 * match.pd: ... here.
15781 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
15784 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
15785 is not actually the default on FreeBSD.
15787 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15789 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
15791 (CMPGE_8HI): Likewise.
15792 (CMPGE_4SI): Likewise.
15793 (CMPGE_2DI): Likewise.
15794 (CMPGE_U16QI): Likewise.
15795 (CMPGE_U8HI): Likewise.
15796 (CMPGE_U4SI): Likewise.
15797 (CMPGE_U2DI): Likewise.
15798 (CMPLE_16QI): Likewise.
15799 (CMPLE_8HI): Likewise.
15800 (CMPLE_4SI): Likewise.
15801 (CMPLE_2DI): Likewise.
15802 (CMPLE_U16QI): Likewise.
15803 (CMPLE_U8HI): Likewise.
15804 (CMPLE_U4SI): Likewise.
15805 (CMPLE_U2DI): Likewise.
15806 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15807 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
15808 ALTIVEC_BUILTIN_VEC_CMPLE.
15809 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
15810 floating-point vector modes.
15811 (vector_nlt<mode>): New define_expand.
15812 (vector_nltu<mode>): Likewise.
15813 (vector_ngt<mode>): Likewise.
15814 (vector_ngtu<mode>): Likewise.
15816 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
15818 PR rtl-optimization/66706
15819 * combine.c (make_compound_operation): If an AND of SUBREG of
15820 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
15822 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
15824 * tree-pass.h (make_pass_ch_vect): New.
15825 * passes.def: Add pass_ch_vect just before pass_if_conversion.
15827 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
15828 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
15829 make_pass_ch_vect): New.
15830 (pass_ch): Extend ch_base.
15832 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
15833 (ch_base::copy_headers): ...here.
15835 2015-07-02 Richard Biener <rguenther@suse.de>
15837 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
15838 * fold-const.c (get_pointer_modulus_and_residue): Remove.
15839 (fold_binary_loc): Implement (T)ptr & CST in terms of
15840 get_pointer_alignment_1.
15841 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
15842 Make sure to build the alignment test on a SSA name without
15843 final alignment info valid only after the prologue.
15845 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
15847 * config/cris/cris.md ("epilogue"): Remove condition.
15848 ("prologue"): Ditto.
15850 2015-07-02 Richard Biener <rguenther@suse.de>
15852 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
15853 parameter to record a condition that is false.
15854 (record_conditions): When recording an extra NE_EXPR that is
15855 true also record a EQ_EXPR that is false.
15857 2015-07-02 Bin Cheng <bin.cheng@arm.com>
15859 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
15860 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
15861 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
15862 (set_iv, find_interesting_uses_address, add_candidate_1): New
15863 argument to alloc_iv.
15864 (find_interesting_uses_op, find_interesting_uses_cond): Don't
15865 duplicate struct iv.
15866 (free_loop_data): Don't free struct iv explicitly.
15867 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
15869 2015-07-01 DJ Delorie <dj@redhat.com>
15871 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
15873 (SUPPORTS_DISCRIMINATOR): Define.
15875 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
15878 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
15879 there are no CALLs in the same pattern.
15881 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15883 PR rtl-optimization/61047
15884 * rtlanal.c (get_initial_register_offset): New function.
15885 (rtx_addr_can_trap_p_1): Check offsets of stack references.
15887 2015-07-01 Richard Biener <rguenther@suse.de>
15889 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
15890 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
15891 ~X CMP C -> X CMP' ~C to ...
15892 * match.pd: ... patterns here.
15894 2015-07-01 Nick Clifton <nickc@redhat.com>
15896 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
15897 a 16-bit value into a 20-bit memory slot.
15899 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15901 * doc/sourcebuild.texi (AArch64-specific attributes): Document
15902 "aarch64_tiny", "aarch64_small", "aarch64_large",
15903 "aarch64_little_endian", "aarch64_big_endian".
15905 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15907 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
15908 Document "aarch64_small_fpic".
15910 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15912 * configure.ac: Add check for aarch64 assembler -fpic relocation
15914 * configure: Regenerate.
15915 * config.in: Regenerate.
15916 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
15917 to -fPIC if not support of -fpic relocation modifier in assembler.
15919 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
15922 * rtl.c (classify_insn): Handle returns in PARALLELs.
15924 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
15926 PR middle-end/66633
15927 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
15928 to true if the function is nested and if not optimizing.
15929 (convert_local_omp_clauses): Initialize need_frame to true if the
15930 function contains nested functions and if not optimizing.
15932 2015-07-01 Richard Biener <rguenther@suse.de>
15934 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
15935 (X & Y) ^ Y -> ~X & Y transforms to ...
15936 * match.pd: ... here.
15938 2015-07-01 Richard Biener <rguenther@suse.de>
15940 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
15941 of converts to avoid uninteresting noise from the conversion
15942 simplifying patterns.
15944 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
15946 * config/c6x/c6x.c (try_rename_operands): Do not depend on
15947 gcc_assert evaluating its argument for side-effect.
15949 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
15952 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
15955 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
15957 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
15958 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
15959 (hash_scc): Add this_ref_p and ref_p parameters and pass them
15960 to the inner DFS walk.
15962 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15964 * target-insns.def (jump): New targetm instruction pattern.
15965 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
15966 instead of gen_jump.
15967 (fix_up_crossing_landing_pad): Likewise.
15968 (add_labels_and_missing_jumps): Likewise.
15969 (fix_crossing_conditional_branches): Likewise.
15970 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15971 (force_nonfallthru_and_redirect): Likewise.
15972 * cse.c (cse_insn): Likewise.
15973 * expmed.c (expand_divmod): Likewise.
15974 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
15975 * haifa-sched.c (init_before_recovery): Likewise.
15976 (sched_create_recovery_edges): Likewise.
15977 * ifcvt.c (find_cond_trap): Likewise.
15978 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
15979 (expand_float, expand_fix): Likewise.
15980 * stmt.c (emit_jump): Likewise.
15982 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15984 * defaults.h (HAVE_load_multiple, gen_load_multiple)
15985 (HAVE_store_multiple, gen_store_multiple): Delete.
15986 * target-insns.def (load_multiple, store_multiple): New targetm
15987 instruction patterns.
15988 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
15989 of HAVE_*/gen_* interface.
15991 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15993 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
15994 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
15995 (gen_mem_signal_fence): Delete.
15996 * target-insns.def (mem_signal_fence, mem_thread_fence)
15997 (memory_barrier): New targetm instruction patterns.
15998 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
16000 (expand_mem_signal_fence): Likewise.
16002 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16004 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
16005 * target-insns.def (epilogue, prologue, sibcall_prologue): New
16006 targetm instruction patterns.
16007 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
16009 * calls.c (expand_call): Likewise.
16010 * cfgrtl.c (cfg_layout_finalize): Likewise.
16011 * df-scan.c (df_get_entry_block_def_set): Likewise.
16012 (df_get_exit_block_use_set): Likewise.
16013 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
16014 * final.c (final_start_function): Likewise.
16015 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16016 (reposition_prologue_and_epilogue_notes): Likewise.
16017 * reorg.c (find_end_label): Likewise.
16018 * toplev.c (process_options): Likewise.
16020 2015-06-30 David Malcolm <dmalcolm@redhat.com>
16022 * typed-splay-tree.h: New file.
16024 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
16027 * lra-int.h (lra_substitute_pseudo): Add a parameter.
16028 (lra_substitute_pseudo_within_insn): Ditto.
16029 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
16031 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
16032 to lra_substitute_pseudo.
16033 * lra-lives.c (process_bb_lives): Add an argument to
16034 lra_substitute_pseudo_within_insn call.
16035 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
16036 argument to lra_substitute_pseudo and
16037 lra_substitute_pseudo_within_insn calls.
16038 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
16040 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
16042 * configure: Regenerated.
16044 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
16046 * config.gcc: Support i[34567]86-*-elfiamcu target.
16047 * config/i386/iamcu.h: New.
16048 * config/i386/i386.opt: Add -miamcu.
16049 * doc/invoke.texi: Document -miamcu.
16050 * common/config/i386/i386-common.c (ix86_handle_option): Turn
16051 off x87/MMX/SSE/AVX codegen for -miamcu.
16052 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16053 __iamcu/__iamcu__ for -miamcu.
16054 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
16055 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
16056 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
16057 * config/i386/i386.c (ix86_option_override_internal): Ignore and
16058 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
16059 MCU by default. Default long double to 64-bit for Intel MCU.
16060 Turn on -freg-struct-return for Intel MCU. Issue an error when
16061 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
16063 (function_arg_advance_32): Pass value whose size is no larger
16064 than 8 bytes in registers for Intel MCU.
16065 (function_arg_32): Likewise.
16066 (ix86_return_in_memory): Return value whose size is no larger
16067 than 8 bytes in registers for Intel MCU.
16068 (iamcu_alignment): New function.
16069 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
16071 (ix86_local_alignment): Don't increase alignment for Intel MCU.
16072 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
16075 2015-06-30 Marek Polacek <polacek@redhat.com>
16077 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
16078 both operands of the resulting expression.
16080 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
16081 the final expression with the operand's type and then convert
16082 it to the type of the expression.
16084 2015-06-30 Richard Biener <rguenther@suse.de>
16086 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
16087 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
16088 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
16089 * match.pd: ... to patterns here.
16091 2015-06-30 Richard Biener <rguenther@suse.de>
16093 PR tree-optimization/66704
16094 * tree-vect-data-refs.c (vect_setup_realignment): Use
16095 make_ssa_name for non-SSA name source.
16097 2015-06-30 Jakub Jelinek <jakub@redhat.com>
16099 PR middle-end/66702
16100 * omp-low.c (simd_clone_adjust): Handle addressable linear
16101 or uniform parameters or non-gimple type uniform parameters.
16103 2015-06-30 Richard Biener <rguenther@suse.de>
16105 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
16106 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
16107 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
16108 * match.pd: ... here.
16109 Add a few cases of A - B -> A + (-B) when B "easily" negates.
16110 Move (x & y) | x -> x and friends before
16111 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
16113 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
16115 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
16116 -mfix-ut699 is not specified.
16117 (leon3_load): Rename into...
16118 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
16121 2015-06-30 Marek Polacek <polacek@redhat.com>
16123 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
16124 * match.pd: ... here.
16126 2015-06-30 Richard Biener <rguenther@suse.de>
16128 * target-insns.def (canonicalize_funcptr_for_compare): Add.
16129 * fold-const.c (build_range_check): Replace uses of
16130 HAVE_canonicalize_funcptr_for_compare.
16131 (fold_widened_comparison): Likewise.
16132 (fold_sign_changed_comparison): Likewise.
16133 * dojump.c: Include "target.h".
16134 (do_compare_and_jump): Replace uses of
16135 HAVE_canonicalize_funcptr_for_compare and
16136 gen_canonicalize_funcptr_for_compare.
16137 * expr.c (do_store_flag): Likewise.
16139 2015-06-30 Tom de Vries <tom@codesourcery.com>
16141 PR tree-optimization/66652
16142 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
16143 max_loop_iterations to determine if nit + 1 overflows.
16145 2015-06-30 Richard Biener <rguenther@suse.de>
16147 * tree-vrp.c (register_edge_assert_for_2): Also register
16148 asserts for dominating conversion results.
16150 2015-06-30 Bin Cheng <bin.cheng@arm.com>
16152 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
16153 field in struct iv.
16155 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
16158 * configure.ac: Fix filds and fildq test for 64-bit.
16159 * configure: Regenerated.
16161 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
16163 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
16164 (nvptx_reorg): Here. Keep the non-subreg pieces.
16166 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
16168 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
16169 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
16171 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
16173 * config/i386/i386.md (*jcc_1): Use %! in asm template.
16174 Set attribute "length_nobnd" instead of "length".
16177 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
16179 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
16181 * config/nios2/nios2.c (nios2_delegitimize_address): Make
16182 assert less restrictive.
16184 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
16187 * cgraphunit.c (cgraph_node::finalize_function): Do not call
16188 do_warn_unused_parameter.
16189 * function.c (do_warn_unused_parameter): Move from here.
16190 * function.h (do_warn_unused_parameter): Do not declare.
16192 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
16195 * gcc.target/arm/armv-sync-comp-swap.c: New.
16196 * gcc.target/arm/armv-sync-op-acquire.c: New.
16197 * gcc.target/arm/armv-sync-op-full.c: New.
16198 * gcc.target/arm/armv-sync-op-release.c: New.
16200 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
16203 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
16204 initial acquire barrier with final barrier.
16206 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
16209 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
16210 initial acquire barrier with final barrier.
16212 2015-06-29 Richard Henderson <rth@redhat.com>
16214 * config/i386/constraints.md (Bf): New constraint.
16215 * config/i386/i386-c.c (ix86_target_macros): Define
16216 __GCC_ASM_FLAG_OUTPUTS__.
16217 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
16219 * doc/extend.texi (FlagOutputOperands): Document them.
16221 2015-06-29 Jiong Wang <jiong.wang@arm.com>
16223 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
16224 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
16226 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
16227 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
16228 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
16229 (aarch64_symbol_context): Ditto.
16230 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
16231 and use new pattern name.
16232 (aarch64_expand_mov_immediate): Ditto.
16233 (aarch64_print_operand): Ditto.
16234 (aarch64_classify_tls_symbol): Ditto.
16236 2015-06-29 Marek Polacek <polacek@redhat.com>
16237 Marc Glisse <marc.glisse@inria.fr>
16239 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
16240 * match.pd: ... pattern here.
16242 2015-06-29 Tom de Vries <tom@codesourcery.com>
16244 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
16245 function structure.
16247 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
16249 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
16250 feature description, split out the native option, add a link to
16251 the feature documentation, rearrange and slightly rewrite text.
16252 (Aarch64 options, -mcpu): Likewise.
16253 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
16254 +rdma implies Adv. SIMD.
16256 2015-06-29 Marek Polacek <polacek@redhat.com>
16259 * function.c (stack_protect_epilogue): Remove a cast to int.
16260 * doc/invoke.texi: Update -Wswitch-bool description.
16262 2015-06-29 Richard Biener <rguenther@suse.de>
16264 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
16265 * fold-const.c (fold_binary_loc): Move &A - &B simplification
16266 via ptr_difference_const ...
16267 * match.pd: ... here.
16268 When matching (X ^ Y) == Y also match with swapped operands.
16270 2015-06-29 Richard Biener <rguenther@suse.de>
16272 * lto-streamer.h (LTO_major_version): Bump to 5.
16274 2015-06-29 Richard Biener <rguenther@suse.de>
16276 PR tree-optimization/66677
16277 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
16278 STMT_VINFO_VEC_STMT clobbering less strict.
16280 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16282 PR middle-end/64130
16283 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
16284 division, compute max and min when value ranges for dividend and
16285 divisor are available.
16287 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
16288 Sandra Loosemore <sandra@codesourcery.com>
16290 * regrename.h (regrename_do_replace): Change to return bool.
16291 * regrename.c (rename_chains): Check return value of
16292 regname_do_replace.
16293 (regrename_do_replace): Re-validate the modified insns and
16294 return bool status.
16295 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
16296 Update to match rename_chains changes.
16297 * config/c6x/c6x.c (try_rename_operands): Assert that
16298 regrename_do_replace returns true.
16300 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
16302 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
16303 operand 2 here. Use copy_addr_to_reg to copy non-index
16304 register operand 2 to a temporary.
16305 (<mode>_stx): Ditto for operand 1.
16306 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
16307 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
16308 (ix86_store_bounds): Ditto.
16310 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
16312 * print-tree.c (print_node) [TREE_VEC]: Print its length.
16314 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
16316 * gimple.c (gimple_call_set_fndecl): Remove.
16317 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
16318 build1_loc directly instead of build_fold_addr_expr_loc.
16320 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
16322 * hash-map.h (hash_map::traverse): Use the definition of the
16323 Key typedef rather than the typedef itself.
16325 2015-06-26 Martin Jambor <mjambor@suse.cz>
16328 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
16329 NULL instead of calling dump_enabled_p.
16331 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16333 * config/aarch64/aarch64.opt: (override): New.
16334 * doc/invoke.texi (override): Document.
16335 * config/aarch64/aarch64.c (aarch64_flag_desc): New
16336 (aarch64_fusible_pairs): Likewise.
16337 (aarch64_tuning_flags): Likewise.
16338 (aarch64_tuning_override_function): Likewise.
16339 (aarch64_tuning_override_functions): Likewise.
16340 (aarch64_parse_one_option_token): Likewise.
16341 (aarch64_parse_boolean_options): Likewise.
16342 (aarch64_parse_fuse_string): Likewise.
16343 (aarch64_parse_tune_string): Likewise.
16344 (aarch64_parse_one_override_token): Likewise.
16345 (aarch64_parse_override_string): Likewise.
16346 (aarch64_override_options): Parse the -override string if it
16349 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16351 * config/aarch64/aarch64-protos.h (tune_params): Remove
16352 const from members.
16353 (aarch64_tune_params): Remove const, change to no longer be
16355 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
16356 change to no longer be a pointer, initialize to generic_tunings.
16357 (aarch64_min_divisions_for_recip_mul): Change dereference of
16358 aarch64_tune_params to member access.
16359 (aarch64_reassociation_width): Likewise.
16360 (aarch64_rtx_mult_cost): Likewise.
16361 (aarch64_address_cost): Likewise.
16362 (aarch64_branch_cost): Likewise.
16363 (aarch64_rtx_costs): Likewise.
16364 (aarch64_register_move_cost): Likewise.
16365 (aarch64_memory_move_cost): Likewise.
16366 (aarch64_sched_issue_rate): Likewise.
16367 (aarch64_builtin_vectorization_cost): Likewise.
16368 (aarch64_override_options): Take a copy of the selected tuning
16369 struct in to aarch64_tune_params, rather than just setting
16370 a pointer, change dereferences of aarch64_tune_params to member
16372 (aarch64_override_options_after_change): Change dereferences of
16373 aarch64_tune_params to member access.
16374 (aarch64_macro_fusion_p): Likewise.
16375 (aarch_macro_fusion_pair_p): Likewise.
16376 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
16378 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16380 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
16381 (aarch64_tune_flags): Likewise.
16382 (AARCH64_TUNE_FMA_STEERING): Likewise.
16383 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
16384 to AARCH64_FL_USE_FMA_STEERING_PASS.
16385 (cortex-a57.cortex-a53): Likewise.
16386 (cortex-a72): Use cortexa72_tunings.
16387 (cortex-a72.cortex-a53): Likewise.
16388 (exynos-m1): Likewise.
16389 * config/aarch64/aarch64-protos.h (tune_params): Add
16390 a field: extra_tuning_flags.
16391 * config/aarch64/aarch64-tuning-flags.def: New.
16392 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
16393 (aarch64_extra_tuning_flags): Likewise.
16394 (aarch64_tune_params): Declare here.
16395 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
16396 (cortexa53_tunings): Likewise.
16397 (cortexa57_tunings): Likewise.
16398 (thunderx_tunings): Likewise.
16399 (xgene1_tunings): Likewise.
16400 (cortexa72_tunings): New.
16401 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
16402 (gate): Check against aarch64_tune_params.
16403 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
16406 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16408 * config/aarch64/aarch64-fusion-pairs.def: New.
16409 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
16410 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
16411 aarch64_fusion_pairs.
16412 (AARCH64_FUSE_MOV_MOVK): Likewise.
16413 (AARCH64_FUSE_ADRP_ADD): Likewise.
16414 (AARCH64_FUSE_MOVK_MOVK): Likewise.
16415 (AARCH64_FUSE_ADRP_LDR): Likewise.
16416 (AARCH64_FUSE_CMP_BRANCH): Likewise.
16418 2015-06-26 Jiong Wang <jiong.wang@arm.com>
16420 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
16421 SYMBOL_SMALL_GOT_28K.
16422 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
16423 relocation modifiers.
16424 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
16425 (ldr_got_small_28k_<mode>): New.
16426 (ldr_got_small_28k_sidi): New.
16427 * config/aarch64/iterators.md (got_modifier): New mode iterator.
16428 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
16429 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16430 SYMBOL_SMALL_GOT_28K.
16431 (aarch64_rtx_costs): Add costs for new instruction sequences.
16432 (initialize_aarch64_code_model): Initialize new model.
16433 (aarch64_classify_symbol): Recognize new model and new symbol classification.
16434 (aarch64_asm_preferred_eh_data_format): Support new model.
16435 (aarch64_load_symref_appropriately): Generate new instruction
16436 sequences for -fpic.
16437 (TARGET_USE_PSEUDO_PIC_REG): New definition.
16438 (aarch64_use_pseudo_pic_reg): New function.
16440 2015-06-26 Jiong Wang <jiong.wang@arm.com>
16442 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16443 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
16444 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
16445 (aarch64_expand_mov_immediate): Ditto.
16446 (aarch64_print_operand): Ditto.
16447 (aarch64_classify_symbol): Ditto.
16449 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
16451 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
16453 2015-06-26 Bin Cheng <bin.cheng@arm.com>
16456 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
16457 assertion failed. Remove assertion itself.
16459 2015-06-26 Richard Biener <rguenther@suse.de>
16461 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
16462 and -A CMP CST -> A CMP -CST which is redundant with a pattern
16464 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
16465 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
16466 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
16467 * match.pd: ... patterns here.
16469 2015-06-26 Marek Polacek <polacek@redhat.com>
16471 * match.pd ((x | y) & ~(x & y) -> x ^ y,
16472 (x | y) & (~x ^ y) -> x & y): New patterns.
16474 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
16476 * rtl.h (emit): Add an optional boolean parameter to control
16477 whether barriers are emitted.
16478 * emit-rtl.c (emit): Likewise.
16479 * gensupport.c (get_emit_function): Return null rather than "emit".
16480 * genemit.c (gen_emit_seq): Handle the null return value.
16481 Don't emit barriers after the final instruction in the sequence.
16482 * gentarget-def.c (main): Don't emit barriers after the instruction.
16484 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16486 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
16487 TARGET_UNIFIED_ASM.
16489 2015-06-26 Richard Biener <rguenther@suse.de>
16491 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
16493 2015-06-26 Richard Biener <rguenther@suse.de>
16495 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
16496 irrespective on whether the inner operation has a single use
16497 of both off are constant.
16499 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
16500 Segher Boessenkool <segher@kernel.crashing.org>
16503 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
16504 before doing PUT_MODE or PUT_CODE on operands to avoid
16505 in-place RTX modification.
16507 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
16509 * gentarget-def.c (def_target_insn): Cast return of strtol to
16512 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16514 * gimple.h (gimple_call_set_fn): Move inline function.
16515 * gimple.c (gimple_call_set_fn): Relocate here.
16517 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
16521 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
16522 the replacement insn will work.
16524 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
16526 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
16529 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16531 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
16532 * cgraph.h: Include ipa-ref.h and plugin-api.h.
16533 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
16534 (symtab_node::address_can_be_compared_p): Move function.
16535 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
16537 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
16538 * auto-profile.c: Likewise.
16539 * bb-reorder.c: Likewise.
16540 * builtins.c: Likewise.
16541 * calls.c: Likewise.
16542 * cfgexpand.c: Likewise.
16543 * cgraphbuild.c: Likewise.
16544 * cgraphclones.c: Likewise.
16545 * cgraphunit.c: Likewise.
16546 * combine.c: Likewise.
16547 * coverage.c: Likewise.
16548 * data-streamer-in.c: Likewise.
16549 * data-streamer-out.c: Likewise.
16550 * data-streamer.c: Likewise.
16551 * dbxout.c: Likewise.
16552 * dwarf2out.c: Likewise.
16553 * except.c: Likewise.
16554 * expr.c: Likewise.
16555 * final.c: Likewise.
16556 * fold-const.c: Likewise.
16557 * ggc-page.c: Likewise.
16558 * gimple-fold.c: Likewise.
16559 * gimple-iterator.c: Likewise.
16560 * gimple-pretty-print.c: Likewise.
16561 * gimple-streamer-in.c: Likewise.
16562 * gimple-streamer-out.c: Likewise.
16563 * gimple.c: Likewise.
16564 * gimplify.c: Likewise.
16565 * ipa-chkp.c: Likewise.
16566 * ipa-comdats.c: Likewise.
16567 * ipa-cp.c: Likewise.
16568 * ipa-devirt.c: Likewise.
16569 * ipa-icf-gimple.c: Likewise.
16570 * ipa-icf.c: Likewise.
16571 * ipa-inline-analysis.c: Likewise.
16572 * ipa-inline-transform.c: Likewise.
16573 * ipa-inline.c: Likewise.
16574 * ipa-polymorphic-call.c: Likewise.
16575 * ipa-profile.c: Likewise.
16576 * ipa-prop.c: Likewise.
16577 * ipa-pure-const.c: Likewise.
16578 * ipa-ref.c: Likewise.
16579 * ipa-reference.c: Likewise.
16580 * ipa-split.c: Likewise.
16581 * ipa-utils.c: Likewise.
16582 * ipa-visibility.c: Likewise.
16584 * langhooks.c: Likewise.
16585 * lto-cgraph.c: Likewise.
16586 * lto-compress.c: Likewise.
16587 * lto-opts.c: Likewise.
16588 * lto-section-in.c: Likewise.
16589 * lto-section-out.c: Likewise.
16590 * lto-streamer-in.c: Likewise.
16591 * lto-streamer-out.c: Likewise.
16592 * lto-streamer.c: Likewise.
16593 * omp-low.c: Likewise.
16594 * opts-global.c: Likewise.
16595 * passes.c: Likewise.
16596 * predict.c: Likewise.
16597 * print-tree.c: Likewise.
16598 * profile.c: Likewise.
16600 * sanopt.c: Likewise.
16601 * stor-layout.c: Likewise.
16602 * symtab.c: Likewise.
16603 * toplev.c: Likewise.
16604 * trans-mem.c: Likewise.
16605 * tree-cfg.c: Likewise.
16606 * tree-chkp.c: Likewise.
16607 * tree-eh.c: Likewise.
16608 * tree-emutls.c: Likewise.
16609 * tree-inline.c: Likewise.
16610 * tree-nested.c: Likewise.
16611 * tree-parloops.c: Likewise.
16612 * tree-pretty-print.c: Likewise.
16613 * tree-profile.c: Likewise.
16614 * tree-sra.c: Likewise.
16615 * tree-ssa-alias.c: Likewise.
16616 * tree-ssa-live.c: Likewise.
16617 * tree-ssa-loop-ivcanon.c: Likewise.
16618 * tree-ssa-loop-ivopts.c: Likewise.
16619 * tree-ssa-pre.c: Likewise.
16620 * tree-ssa-sccvn.c: Likewise.
16621 * tree-ssa-strlen.c: Likewise.
16622 * tree-ssa-structalias.c: Likewise.
16623 * tree-streamer-in.c: Likewise.
16624 * tree-streamer-out.c: Likewise.
16625 * tree-streamer.c: Likewise.
16626 * tree-switch-conversion.c: Likewise.
16627 * tree-tailcall.c: Likewise.
16628 * tree-vect-data-refs.c: Likewise.
16629 * tree-vect-stmts.c: Likewise.
16630 * tree-vectorizer.c: Likewise.
16631 * tree.c: Likewise.
16632 * tsan.c: Likewise.
16633 * ubsan.c: Likewise.
16634 * value-prof.c: Likewise.
16635 * varasm.c: Likewise.
16636 * varpool.c: Likewise.
16637 * config/arm/arm.c: Likewise.
16638 * config/bfin/bfin.c: Likewise.
16639 * config/c6x/c6x.c: Likewise.
16640 * config/cris/cris.c: Likewise.
16641 * config/darwin-c.c: Likewise.
16642 * config/darwin.c: Likewise.
16643 * config/i386/i386.c: Likewise.
16644 * config/i386/winnt.c: Likewise.
16645 * config/microblaze/microblaze.c: Likewise.
16646 * config/mips/mips.c: Likewise.
16647 * config/rs6000/rs6000.c: Likewise.
16648 * config/rx/rx.c: Likewise.
16649 * config/s390/s390.c: Likewise.
16650 * config/tilegx/mul-tables.c: Likewise.
16652 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16654 * config/aarch64/aarch64.c, config/alpha/alpha.c,
16655 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
16656 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
16657 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
16658 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
16659 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
16660 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
16661 config/microblaze/microblaze.c, config/mips/mips.c,
16662 config/mmix/mmix.c, config/mn10300/mn10300.c,
16663 config/moxie/moxie.c, config/msp430/msp430.c,
16664 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
16665 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
16666 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
16667 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
16668 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16669 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
16670 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
16671 target-def.h include.
16672 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
16674 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16676 * Makefile.in (TARGET_DEF): Add target-insns.def.
16677 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
16678 (build/gentarget-def.o): New rule.
16679 (genprogrtl): Add target-def.
16680 * target-insns.def, gentarget-def.c: New files.
16681 * target.def: Add targetm.have_* and targetm.gen_* hooks,
16682 based on the contents of target-insns.def.
16683 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
16684 (HAVE_return, gen_return): Delete.
16685 * target-def.h: Include insn-target-def.h.
16686 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
16687 instead of direct calls. Rely on them to do the appropriate assertions.
16688 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
16689 (convert_jumps_to_returns): Use targetm interface instead of
16691 (thread_prologue_and_epilogue_insns): Likewise.
16692 * reorg.c (find_end_label, dbr_schedule): Likewise.
16693 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
16694 * shrink-wrap.c (convert_to_simple_return): Likewise.
16695 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
16697 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16699 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
16700 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
16701 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
16702 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
16703 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
16704 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
16705 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
16706 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
16707 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
16708 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
16709 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
16710 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
16711 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
16712 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16713 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
16714 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
16717 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16719 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
16720 (unbounded_int_hashmap_traits::key_type): Likewise.
16721 * hash-map.h (hash_map): Get the key type from the traits.
16722 * hash-traits.h (default_hash_traits): By default, inherit from the
16723 template parameter.
16724 * alias.c (alias_set_traits): Delete.
16725 (alias_set_entry_d::children): Use alias_set_hash as the first
16726 template parameter.
16727 (record_alias_subset): Update accordingly.
16728 * except.c (tree_hash_traits): Delete.
16729 (type_to_runtime_map): Use tree_hash as the first template parameter.
16730 (init_eh): Update accordingly.
16731 * genmatch.c (capture_id_map_hasher): Delete.
16732 (cid_map_t): Use nofree_string_hash as first template parameter.
16733 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
16734 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16735 Use symbol_compare_hash as the first template parameter in
16736 subdivide_hash_map.
16737 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
16738 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
16739 template parameter.
16740 * passes.c (pass_registry_hasher): Delete.
16741 (name_to_pass_map): Use nofree_string_hash as the first template
16743 (register_pass_name): Update accordingly.
16744 * sanopt.c (sanopt_tree_map_traits): Delete.
16745 (sanopt_tree_triplet_map_traits): Delete.
16746 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
16747 template parameter.
16748 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
16749 the first template parameter.
16750 * sese.c (rename_map_hasher): Delete.
16751 (rename_map_type): Use tree_ssa_name_hash as the first template
16753 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
16754 (function_summary::m_map): Use map_hash as the first template
16756 (function_summary::release): Update accordingly.
16757 * tree-if-conv.c (phi_args_hash_traits): Delete.
16758 (predicate_scalar_phi): Use tree_operand_hash as the first template
16759 parameter to phi_arg_map.
16760 * tree-inline.h (dependence_hasher): Delete.
16761 (copy_body_data::dependence_map): Use dependence_hash as the first
16762 template parameter.
16763 * tree-inline.c (remap_dependence_clique): Update accordingly.
16764 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
16765 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
16767 (addr_stridxptr): Update accordingly.
16768 * value-prof.c (profile_id_traits): Delete.
16769 (cgraph_node_map): Use profile_id_hash as the first template
16771 (init_node_map): Update accordingly.
16772 * config/alpha/alpha.c (string_traits): Delete.
16773 (machine_function::links): Use nofree_string_hash as the first
16774 template parameter.
16775 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
16776 * config/m32c/m32c.c (pragma_traits): Delete.
16777 (pragma_htab): Use nofree_string_hash as the first template parameter.
16778 (m32c_note_pragma_address): Update accordingly.
16779 * config/mep/mep.c (pragma_traits): Delete.
16780 (pragma_htab): Use nofree_string_hash as the first template parameter.
16781 (mep_note_pragma_flag): Update accordingly.
16782 * config/mips/mips.c (mips16_flip_traits): Delete.
16783 (mflip_mips16_htab): Use nofree_string_hash as the first template
16785 (mflip_mips16_use_mips16_p): Update accordingly.
16786 (local_alias_traits): Delete.
16787 (mips16_local_aliases): Use nofree_string_hash as the first template
16789 (mips16_local_alias): Update accordingly.
16791 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16793 * hash-map-traits.h (default_hashmap_traits): Delete.
16795 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16797 * hash-map-traits.h (unbounded_hashmap_traits): New class.
16798 (unbounded_int_hashmap_traits): Likewise.
16799 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
16801 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16803 * ipa-icf.h (symbol_compare_hash): New class.
16804 (symbol_compare_hashmap_traits): Use it.
16805 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
16806 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
16807 (mem_alloc_description::reverse_mem_map_t): Remove redundant
16808 default_hashmap_traits.
16809 * sanopt.c (sanopt_tree_triplet_hash): New class.
16810 (sanopt_tree_triplet_map_traits): Use it.
16812 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16814 * gengtype-parse.c (require_template_declaration): Allow '+' in
16815 template parameters. Consolidate cases.
16816 * hash-traits.h (int_hash): New class.
16817 * alias.c (alias_set_hash): New structure.
16818 (alias_set_traits): Use it.
16819 * symbol-summary.h (function_summary::map_hash): New class.
16820 (function_summary::summary_hashmap_traits): Use it.
16821 * tree-inline.h (dependence_hash): New class.
16822 (dependence_hasher): Use it.
16823 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
16824 * value-prof.c (profile_id_hash): New class.
16825 (profile_id_traits): Use it.
16827 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16829 * config/mips/mips.c (mips16_flip_traits): Use it.
16830 (local_alias_traits, mips16_local_aliases): Convert from a map of
16831 rtxes to a map of symbol names.
16832 (mips16_local_alias): Update accordingly.
16834 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16836 * hash-traits.h (string_hash, nofree_string_hash): New classes.
16837 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
16838 * passes.c (pass_registry_hasher): Likewise.
16839 * config/alpha/alpha.c (string_traits): Likewise.
16840 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
16841 * config/m32c/m32c.c (pragma_traits): Likewise.
16842 * config/mep/mep.c (pragma_traits): Likewise.
16844 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16846 * tree-hash-traits.h (tree_hash): New class.
16847 * except.c: Include tree-hash-traits.h.
16848 (tree_hash_traits): Use tree_hash.
16850 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16852 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
16853 * sese.c: Include tree-hash-traits.h.
16854 (rename_map_hasher): Use tree_ssa_name_hasher.
16856 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16858 * tree-hash-traits.h (tree_decl_hash): New class.
16859 * tree-ssa-strlen.c: Include tree-hash-traits.h.
16860 (stridxlist_hash_traits): Use tree_decl_hash.
16862 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16864 * tree-hash-traits.h: New file.
16865 (tree_operand_hash): New class.
16866 * sanopt.c: Include tree-hash-traits.h.
16867 (sanopt_tree_map_traits): Use tree_operand_hash.
16868 * tree-if-conv.c: Include tree-hash-traits.h.
16869 (phi_args_hash_traits): Use tree_operand_hash.
16870 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
16871 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
16873 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16875 * hash-map-traits.h: Include hash-traits.h.
16876 (simple_hashmap_traits): New class.
16877 * mem-stats.h (hash_map): Change the default traits to
16878 simple_hashmap_traits<default_hash_traits<Key> >.
16880 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16882 * hash-table.h: Update comments.
16884 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16886 * hash-traits.h (default_hash_traits): New structure.
16887 * hash-set.h (default_hashset_traits): Delete.
16888 (hash_set): Use default_hash_traits<Key> instead of
16889 default_hashset_traits. Delete hash_entry type and use Key directly.
16890 * ipa-devirt.c (pair_traits): Delete.
16891 (default_hash_traits <type_pair>): Override.
16892 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
16893 (odr_types_equivalent_p, add_type_duplicate): Likewise.
16895 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16897 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
16899 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16901 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
16902 (has_is_empty, is_empty_helper): Delete.
16903 (has_mark_deleted, mark_deleted_helper): Delete.
16904 (has_mark_empty, mark_empty_helper): Delete.
16905 (hash_table::is_deleted): Call the Descriptor unconditionally.
16906 (hash_table::is_empty): Likewise.
16907 (hash_table::mark_deleted): Likewise.
16908 (hash_table::mark_empty): Likewise.
16910 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16912 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
16913 redundant typedefs and members.
16914 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
16915 redundant typedefs.
16916 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
16917 * ipa-devirt.c (odr_name_hasher): Likewise.
16918 (polymorphic_call_target_hasher): Likewise.
16919 * ira-costs.c (cost_classes_hasher): Likewise.
16920 * statistics.c (stats_counter_hasher): Likewise.
16921 * trans-mem.c (log_entry_hasher): Likewise.
16922 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
16923 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
16924 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
16925 * var-tracking.c (variable_hasher): Likewise.
16926 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
16927 Remove redundant typedefs and members.
16929 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16931 * hash-traits.h (ggc_cache_hasher): Rename to...
16932 (ggc_cache_remove): ...this and remove typedefs.
16933 (ggc_cache_ptr_hash): New class.
16934 * hash-table.h: Update commentary.
16935 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
16936 rather than ggc_cache_hasher.
16937 (const_wide_int_hasher, reg_attr_hasher): Likewise.
16938 (const_double_hasher, const_fixed_hasher): Likewise.
16939 * function.c (insn_cache_hasher): Likewise.
16940 * trans-mem.c (tm_wrapper_hasher): Likewise.
16941 * tree.h (tree_decl_map_cache_hasher): Likewise.
16942 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
16943 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
16944 * ubsan.c (tree_type_map_cache_hasher): Likewise.
16945 * varasm.c (tm_clone_hasher): Likewise.
16946 * config/i386/i386.c (dllimport_hasher): Likewise.
16947 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
16948 (tree_hasher): Likewise.
16950 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16952 * hash-traits.h (ggc_hasher): Rename to...
16953 (ggc_remover): ...this and remove typedefs.
16954 (ggc_cache_hasher): Update accordingly. Add typedefs.
16955 (ggc_ptr_hash): New class.
16956 * hash-table.h: Update comment.
16957 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
16959 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
16960 (tree_descriptor_hasher): Likewise.
16961 * cgraph.c (function_version_hasher): Likewise.
16962 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
16963 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
16964 (dw_loc_list_hasher, addr_hasher): Likewise.
16965 * function.h (used_type_hasher): Likewise.
16966 * function.c (temp_address_hasher): Likewise.
16967 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
16968 * libfuncs.h (libfunc_hasher): Likewise.
16969 * lto-streamer.h (decl_state_hasher): Likewise.
16970 * optabs.c (libfunc_decl_hasher): Likewise.
16971 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
16972 * varasm.c (section_hasher, object_block_hasher): Likewise.
16973 (const_rtx_desc_hasher): Likewise.
16974 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
16975 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
16977 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16979 * hash-traits.h (free_ptr_hash): New class.
16980 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
16981 rather than typed_free_remove. Remove redudant typedefs.
16982 (external_ref_hasher): Likewise.
16983 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
16984 (ehspec_hasher): Likewise.
16985 * ggc-common.c (saving_hasher): Likewise.
16986 * gimplify.c (gimplify_hasher): Likewise.
16987 * haifa-sched.c (delay_i2_hasher): Likewise.
16988 * loop-invariant.c (invariant_expr_hasher): Likewise.
16989 * loop-iv.c (biv_entry_hasher): Likewise.
16990 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
16991 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
16992 * tree-cfg.c (locus_discrim_hasher): Likewise.
16993 * tree-eh.c (finally_tree_hasher): Likewise.
16994 * tree-into-ssa.c (var_info_hasher): Likewise.
16995 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
16996 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
16997 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
16998 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
16999 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
17000 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
17001 (shared_bitmap_hasher): Likewise.
17002 * tree-ssa-threadupdate.c (redirection_data): Likewise.
17003 * tree-vectorizer.h (peel_info_hasher): Likewise.
17004 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
17005 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
17007 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17009 * hash-table.h: Update comments.
17010 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
17011 (nofree_ptr_hash): New class.
17012 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
17013 than typed_noop_remove. Remove redudant typedefs.
17014 * attribs.c (attribute_hasher): Likewise.
17015 * cfg.c (bb_copy_hasher): Likewise.
17016 * cselib.c (cselib_hasher): Likewise.
17017 * dse.c (invariant_group_base_hasher): Likewise.
17018 * dwarf2cfi.c (trace_info_hasher): Likewise.
17019 * dwarf2out.c (macinfo_entry_hasher): Likewise.
17020 (comdat_type_hasher, loc_list_hasher): Likewise.
17021 * gcse.c (pre_ldst_expr_hasher): Likewise.
17022 * genmatch.c (id_base): Likewise.
17023 * genrecog.c (test_pattern_hasher): Likewise.
17024 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
17025 * haifa-sched.c (delay_i1_hasher): Likewise.
17026 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
17027 * ipa-icf.h (congruence_class_group_hash): Likewise.
17028 * ipa-profile.c (histogram_hash): Likewise.
17029 * ira-color.c (allocno_hard_regs_hasher): Likewise.
17030 * lto-streamer.h (string_slot_hasher): Likewise.
17031 * lto-streamer.c (tree_entry_hasher): Likewise.
17032 * plugin.c (event_hasher): Likewise.
17033 * postreload-gcse.c (expr_hasher): Likewise.
17034 * store-motion.c (st_expr_hasher): Likewise.
17035 * tree-sra.c (uid_decl_hasher): Likewise.
17036 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
17037 (ssa_name_var_hash): Likewise.
17038 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
17039 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
17040 * tree-ssa-pre.c (pre_expr_d): Likewise.
17041 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
17042 * vtable-verify.h (registration_hasher): Likewise.
17043 * vtable-verify.c (vtbl_map_hasher): Likewise.
17044 * config/arm/arm.c (libcall_hasher): Likewise.
17045 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
17046 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
17047 * config/sol2.c (comdat_entry_hasher): Likewise.
17048 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
17049 (print_fold_checksum, fold_checksum_tree): Likewise.
17050 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
17051 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
17052 (fold_build_call_array_loc): Likewise.
17053 * tree-ssa-ccp.c (gimple_htab): Likewise.
17054 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
17055 rather than pointer_type.
17057 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17059 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
17060 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
17062 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17064 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
17065 (ggc_hasher::ggc_mx): Likewise.
17066 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
17067 that duplicate ggc_hasher ones.
17069 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17071 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
17072 (gt_cleare_cache): Check here for deleted and empty entries.
17073 Replace handle_cache_entry with a call to keep_cache_entry.
17074 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
17075 (ggc_cache_hasher::keep_cache_entry): New function.
17076 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
17077 (tm_wrapper_hasher::keep_cache_entry): New function.
17078 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
17079 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17080 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
17081 (type_cache_hasher::keep_cache_entry): New function.
17082 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
17083 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17084 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
17085 (tree_type_map_cache_hasher::keep_cache_entry): New function.
17086 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
17087 (tm_clone_hasher::keep_cache_entry): New function.
17088 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
17089 (dllimport_hasher::keep_cache_entry): New function.
17091 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17093 * hash-table.h: Include hash-traits.h.
17094 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
17095 (ggc_cache_hasher): Move to...
17096 * hash-traits.h: ...this new file.
17098 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17100 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
17101 struct cl_optimization.
17102 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
17103 * tree.c (make_node_stat): Allocate cl_optimization struct.
17104 (copy_node_stat): Allocate and copy cl_optimization struct.
17106 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17108 * function.h (struct incoming_args): Move struct.
17109 (pass_by_reference, reference_callee_copied): Remove prototypes.
17110 * emit-rtl.h (struct incoming_args): Relocate struct here.
17111 * calls.h (pass_by_reference, reference_callee_copied): Relocate
17113 * function.c (pass_by_reference, reference_callee_copied): Move.
17114 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
17115 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
17116 * ipa-chkp.c: Include calls.h.
17118 2015-06-25 Andrew Macleod <amacleod@redhat.com>
17120 * alias.h (alias_set_type): Move typedef.
17121 * coretypes.h (alias_set_type): Relocate typedef here.
17122 * rtl.h: Don't include alias.h.
17124 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17126 * cgraph.h (cgraph_rtl_info): Move to rtl.h
17127 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
17129 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
17130 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
17132 * calls.c: Include hard-reg-set.h before rtl.h.
17135 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17136 Vladimir Makarov <vmakarov@redhat.com>
17138 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
17141 2015-06-25 Richard Biener <rguenther@suse.de>
17143 * fold-const.c (fold_binary_loc): Move simplification of
17144 (X <<>> C1) & C2 ...
17145 * match.pd: ... here.
17147 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
17149 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
17151 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17153 * match.pd: Add patterns for vec_conds between 1 and 0.
17155 2015-06-25 Richard Biener <rguenther@suse.de>
17157 * tree-vect-stmts.c (vectorizable_conversion): Do not set
17158 STMT_VINFO_VEC_STMT for SLP.
17159 (vectorizable_store): Likewise.
17160 (vectorizable_load): Likewise.
17161 (vect_transform_stmt): Catch SLP vectorization clobbering
17162 STMT_VINFO_VEC_STMT.
17164 2015-06-25 Richard Biener <rguenther@suse.de>
17166 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
17168 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
17169 cleanup resulting dead code and parameters.
17170 (vect_transform_slp_perm_load): Adjust.
17172 2015-06-25 Nick Clifton <nickc@redhat.com>
17174 * config/bfin/bfin.c (bfin_expand_prologue): Set
17175 current_function_static_stack_size if flag_stack_usage_info is set.
17176 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
17177 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
17178 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
17179 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
17181 2015-06-25 Tom de Vries <tom@codesourcery.com>
17183 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
17184 comment that the generated IV is unsigned.
17186 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17189 * config/arm/arm.c (arm_dbx_register_number): Return
17190 DWARF_FRAME_REGISTERS by default.
17192 2015-06-25 Tom de Vries <tom@codesourcery.com>
17194 * dominance.c (calculate_dominance_info): Fix verify_dominators call
17195 argument. Call verify_dominator when reusing dominator info.
17197 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
17200 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
17201 an additional element of the unspec vector. Modify indices
17203 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
17204 * config/sh/sh.c (prepare_move_operands): Pass incremented
17205 const_int to gen_GOTaddr2picreg.
17206 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
17208 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
17210 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
17211 Condition on TARGET_FLOAT.
17213 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
17215 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
17218 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
17220 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
17222 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
17223 aarch64_err_no_fpadvsimd.
17225 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
17226 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
17227 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
17228 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
17229 Turn error into assert, test TARGET_FLOAT.
17230 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
17233 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
17236 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
17238 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
17240 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
17242 2015-06-24 Renlin Li <renlin.li@arm.com>
17244 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
17245 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
17247 2015-06-24 Richard Biener <rguenther@suse.de>
17249 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
17251 (lower_opt_convert): Support lowering of conditional view_convert.
17252 (parser::parse_operation): Likewise.
17253 (parser::parse_for): Likewise.
17255 2015-06-24 Renlin Li <renlin.li@arm.com>
17257 * varasm.c (emit_local): Use unsigned int for align variable.
17259 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17262 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
17263 for negative numbers.
17265 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17267 PR rtl-optimization/66306
17268 * reload.c (find_reloads): Swap the match_dup info for
17269 commutative operands.
17271 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17273 * config/s390/vx-builtins.md
17274 ("vec_scatter_element<mode>_<non_vec_int>")
17275 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
17276 attribute with bhfgq.
17278 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17280 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
17282 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17284 * config/s390/s390-builtin-types.def: Add flag to indicate the
17285 options under which the function type is needed.
17286 * config/s390/s390-builtins.def: Add flag to indicate the options
17287 under which the builtin is enabled.
17288 * config/s390/s390-builtins.h: Add flags parameter to macro
17290 (bflags_for_builtin): New function.
17291 (flags_for_builtin): Renamed to ...
17292 (opflags_for_builtin): ... this.
17293 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
17294 flags_for_builtin to bflags_for_builtin and
17295 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
17296 * config/s390/s390.c: Add initialization of bflags_builtin and
17297 opflags_builtin arrays.
17298 Remove code for flags_builtin.
17299 (s390_init_builtins): Only create builtin function types if one of
17300 their flags is active.
17301 Only create builtins if all of their flags are active.
17302 (s390_expand_builtin): Rename flags_for_builtin to
17303 opflags_for_builtin.
17305 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17307 * config/s390/vecintrin.h: Remove internal builtins.
17309 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17311 * config/s390/s390.c (s390_secondary_reload): Fix check for
17312 GENERAL_REGS register class.
17314 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17316 * config/s390/s390.c (s390_support_vector_misalignment): Call
17317 default implementation for !TARGET_VX.
17319 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17321 * config/s390/s390.c (s390_legitimate_constant_p): Add
17324 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17326 * config/s390/s390.c (s390_vector_abi): New variable definition.
17327 (s390_check_type_for_vector_abi): New function.
17328 (TARGET_ASM_FILE_END): New macro definition.
17329 (s390_asm_file_end): New function.
17330 (s390_function_arg): Call s390_check_type_for_vector_abi.
17331 (s390_gimplify_va_arg): Likewise.
17332 * configure: Regenerate.
17333 * configure.ac: Check for .gnu_attribute Binutils feature.
17335 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
17338 * config/bfin/bfin.c (hwloop_optimize): Initialize
17339 JUMP_LABEL for newly created jump.
17341 2015-06-23 Tristan Gingold <gingold@adacore.com>
17343 * collect-utils.c (collect_wait): Unlink the response file here
17345 (do_wait): ...here.
17346 (utils_cleanup): ...and here.
17348 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
17350 * df-scan.c: Don't include target-def.h.
17351 * targhooks.c: Likewise.
17352 * config/arm/arm-c.c: Likewise.
17353 * config/i386/i386-c.c: Likewise.
17354 * config/nds32/nds32-cost.c: Likewise.
17355 * config/nds32/nds32-fp-as-gp.c: Likewise.
17356 * config/nds32/nds32-intrinsic.c: Likewise.
17357 * config/nds32/nds32-isr.c: Likewise.
17358 * config/nds32/nds32-md-auxiliary.c: Likewise.
17359 * config/nds32/nds32-memory-manipulation.c: Likewise.
17360 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17361 * config/nds32/nds32-predicates.c: Likewise.
17363 2015-06-23 Richard Biener <rguenther@suse.de>
17365 PR tree-optimization/66636
17366 * tree-vect-stmts.c (vectorizable_store): Properly compute the
17367 def type for further defs for strided stores.
17369 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
17371 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
17372 conditional selects.
17373 (setcc_int<mode>, setcc_float<mode>): Reformat.
17375 2015-06-23 Marek Polacek <polacek@redhat.com>
17377 * match.pd ((x + y) - (x | y) -> x & y,
17378 (x + y) - (x & y) -> x | y): New patterns.
17380 2015-06-23 Ludovic Courtès <ludo@gnu.org>
17383 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
17384 '-dynamic-linker' within %{!shared: ...}.
17386 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
17389 * config/i386/predicates.md (addsub_vm_operator): New predicate.
17390 (addsub_vs_operator): Ditto.
17391 (addsub_vs_parallel): Ditto.
17392 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
17393 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
17394 Put minus RTX before plus and adjust vec_merge selector.
17395 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
17396 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
17397 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
17398 (addsub vec_merge splitters): New combiner splitters.
17399 (addsub vec_select/vec_concat splitters): Ditto.
17401 2015-06-23 Bin Cheng <bin.cheng@arm.com>
17403 PR tree-optimization/66449
17404 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
17405 POINTER_PLUS_EXPR for pointers.
17407 2015-06-23 Alan Modra <amodra@gmail.com>
17409 * rtlanal.c (commutative_operand_precedence): Correct comments.
17410 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
17411 declaration. Return an int. Distinguish REG,REG return from
17413 (struct simplify_plus_minus_op_data): Make local to function.
17414 (simplify_plus_minus): Don't set canonicalized if merely sorting
17415 registers. Avoid packing ops if nothing changes. White space fixes.
17417 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
17419 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
17420 -fdump-ada-spec is passed but not if -fsyntax-only is.
17422 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
17425 * lra-lives.c (process_bb_lives): Check insn copying the same
17426 reload pseudo and don't create a copy for it.
17428 2015-06-22 Tom de Vries <tom@codesourcery.com>
17430 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
17433 2015-06-22 Tom de Vries <tom@codesourcery.com>
17435 * builtins.def (DEF_GOMP_BUILTIN): Test
17436 'flag_tree_parallelize_loops > 1' instead of
17437 'flag_tree_parallelize_loops'. Test flag_cilkplus.
17439 2015-06-22 Tom de Vries <tom@codesourcery.com>
17441 * dominance.c (calculate_dominance_info): Verify dominators if
17444 2015-06-22 Marek Polacek <polacek@redhat.com>
17446 * match.pd ((x ^ y) ^ (x | y) -> x & y,
17447 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
17448 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
17449 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
17451 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
17454 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
17455 cost of embedded comparison.
17457 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17460 * config/rs6000/predicates.md (altivec_register_operand): Permit
17461 virtual stack registers.
17462 (vsx_register_operand): Likewise.
17463 (vfloat_operand): Likewise.
17464 (vint_operand): Likewise.
17465 (vlogical_operand): Likewise.
17467 2015-06-22 Richard Biener <rguenther@suse.de>
17469 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
17470 and single_scalar_iteration_cost members.
17471 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
17472 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
17473 (vect_get_single_scalar_iteration_cost): Remove.
17474 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17475 Use LOOP_VINFO_SCALAR_ITERATION_COST.
17476 * tree-vect-loop.c (destroy_loop_vec_info): Free
17478 (vect_get_single_scalar_iteration_cost): Compute result into
17479 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
17480 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
17481 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
17482 (vect_estimate_min_profitable_iters): Use them.
17484 2015-06-22 Christian Bruel <christian.bruel@st.com>
17487 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
17488 (TARGET_INSERT_ATTRIBUTES): Define.
17489 (thumb_flipper): New var.
17490 * config/arm/arm.opt (-mflip-thumb): New switch.
17492 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
17493 Martin Liska <mliska@suse.cz>
17496 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
17497 construction of arg_types.
17498 (sem_function::sem_function): Likewise.
17499 (sem_function::~sem_function): Remove destruction of arg_types.
17500 (sem_function::compatible_parm_types_p): New function.
17501 (sem_function::equals_wpa): Reorg matching of return values
17502 and parameter types.
17503 (sem_function::equals_private): Reorg mathcing of argument types.
17504 (sem_function::parse_tree_args): Remove.
17505 * ipa-icf.h (init_wpa): Do not call it.
17506 (parse_tree_args): Remove.
17507 (compatible_parm_types_p): Declare.
17508 (result_type): Remove.
17509 (arg_types): Remove.
17511 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
17514 * ipa-polymorphic-call.c
17515 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
17516 initializing alias oracle; fix formating; set base_alias_set if it
17519 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
17521 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
17522 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
17523 (find_inc): Likewise.
17524 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
17526 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
17527 * df-scan.c (df_swap_refs): Remove.
17528 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
17529 * dominance.c (link_roots): Use std::swap instead of manually swapping.
17530 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
17531 * fold-const.c (fold_relational_const): Likewise.
17532 * genattrtab.c (simplify_test_exp): Likewise.
17533 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
17534 gimple_simplify): Likewise.
17535 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
17536 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
17537 * ipa-devirt.c (add_type_duplicate): Likewise.
17538 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
17539 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
17540 * lra.c (lra_create_copy): Likewise.
17541 * lto-streamer-out.c (DFS::DFS): Likewise.
17542 * modulo-sched.c (get_sched_window): Likewise.
17543 * omega.c (omega_pretty_print_problem): Likewise.
17544 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
17545 * reload1.c (reloads_unique_chain_p): Likewise.
17546 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
17547 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
17549 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
17551 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
17552 predicate_mem_writes): Likewise.
17553 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
17554 * tree-predcom.c (combine_chains): Likewise.
17555 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
17556 refs_may_alias_p_1): Likewise.
17557 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
17558 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
17559 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
17560 number_of_iterations_cond): Likewise.
17561 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
17562 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
17563 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
17564 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
17565 * tree-vrp.c (extract_range_from_binary_expr_1,
17566 extract_range_from_unary_expr_1): Likewise.
17568 2015-06-20 Marek Polacek <polacek@redhat.com>
17570 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
17572 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
17575 * config/sh/sh.c (prepare_move_operands): Replace subreg
17576 index term with R0 for base and index addressing.
17578 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
17580 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
17582 (movsf_aarch64): Change condition from register_operand to
17583 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
17584 load1. Change type for alternative 7 to store1.
17585 (movdf_aarch64): Likewise.
17587 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
17589 * config/vax/vax.md: Adjust sign/zero extend patterns to
17590 handle SUBREGs in operands[1].
17592 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17594 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
17595 of manually swapping.
17596 (expand_vec_perm_interleave2): Likewise.
17598 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
17600 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
17601 reuse bounds created for abnormal ssa names.
17603 2015-06-19 Jakub Jelinek <jakub@redhat.com>
17605 * config/nvptx/nvptx.md (allocate_stack): Rename to...
17606 (allocate_stack_<mode>): ... this, and add :P on both
17607 match_operand and unspec.
17608 (allocate_stack): New expander.
17610 2015-06-19 Christian Bruel <christian.bruel@st.com>
17614 * config/arm/arm.c (arm_set_current_function): Handle
17615 explicit default options.
17617 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
17619 * config/i386/i386.md (*movsicc_noc_zext): New insn.
17620 (zero-extended cmove with mem peephole2): New pattern.
17621 (cmove with mem peephole2): Merge patterns.
17623 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
17625 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
17627 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
17629 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
17630 * config/mips/mips.md (*madd4<mode>): Ditto.
17631 (*nmadd3<mode>) Ditto.
17632 (*nmadd4<mode>_fastmath): Ditto.
17633 (*nmadd3<mode>_fastmath): Ditto.
17634 (*nmsub4<mode>): Ditto.
17635 (*nmsub3<mode>): Ditto.
17636 (*nmsub4<mode>_fastmath): Ditto.
17637 (*nmsub3<mode>_fastmath): Ditto.
17639 2015-06-18 Michael Matz <matz@suse.de>
17641 PR middle-end/66253
17642 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
17643 grouped strided stores.
17644 (vectorizable_load): Don't use the DR from first_stmt in
17645 the non-SLP grouped strided case.
17647 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17650 * function.c (assign_bounds): Add arguments assign_regs,
17651 assign_special, assign_bt.
17652 (assign_parms): For vararg functions handle bounds in BT
17653 and special slots after incoming vararg bounds.
17655 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17657 PR middle-end/66568
17658 * cfgexpand.c (expand_return): Handle missing bounds.
17659 (expand_gimple_stmt_1): Likewise.
17660 * tree-chkp.c (chkp_expand_zero_bounds): New.
17661 * tree-chkp.h (chkp_expand_zero_bounds): New.
17663 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17665 PR middle-end/66567
17666 * ipa-chkp.c (chkp_maybe_create_clone): Require
17667 functions to be instrumentable.
17668 * tree-chkp.c (chkp_replace_function_pointer): Use
17669 chkp_instrumentable_p instead of attribute check.
17671 2015-06-18 Richard Biener <rguenther@suse.de>
17673 PR tree-optimization/66510
17674 * tree-vect-stmts.c (vectorizable_load): Properly compute the
17675 number of vector loads for SLP permuted loads.
17676 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
17677 check the stride for loop vectorization.
17678 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
17679 vectorization factor.
17680 (vect_analyze_group_access): If the group size is not a power
17681 of two require a epilogue loop.
17682 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
17683 compute and optimizing and alias test pruning after final
17684 vectorization factor computation.
17685 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
17687 (vect_transform_slp_perm_load): Properly compute the original
17688 number of vector load stmts.
17690 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
17692 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
17693 "unlikely character , in @var" warning.
17695 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
17697 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
17698 (ix86_function_arg_advance): Ditto.
17699 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
17701 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17703 * function.h (struct rtl_data): Remove struct and accessor macros.
17704 * emit-rtl.h (struct rtl_data): Relocate to here.
17705 * Makefile.in (GTFILES): Add emit-rtl.h.
17706 * df-core.c: Include emit-rtl.h.
17707 * genattrtab.c: Likewise.
17708 * genconditions.c: Likewise.
17709 * genpreds.c: Likewise.
17710 * genrecog.c: Likewise.
17711 * regcprop.c: Likewise.
17712 * resource.c: Likewise.
17713 * sched-rgn.c: Likewise.
17714 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17715 * config/i386/winnt.c: Likewise.
17717 2015-06-17 Jakub Jelinek <jakub@redhat.com>
17719 PR middle-end/66429
17720 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
17721 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
17722 and has_force_vectorize_loops flags from cfun into
17724 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
17725 if simduid is non-NULL.
17726 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
17727 * passes.def (pass_simduid_cleanup): Add new pass after loop
17729 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
17730 indirection from htab argument's type.
17731 (shrink_simd_arrays): New function.
17732 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
17733 Don't call adjust_simduid_builtins if there are no loops.
17734 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
17735 (pass_simduid_cleanup::execute): New method.
17736 (make_pass_simduid_cleanup): New function.
17738 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
17740 * tree-core.h (tree_target_option): Make opts field a pointer to a
17741 cl_target_option instead of an instance of the struct.
17742 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
17744 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
17745 TARGET_OPTION_NODE.
17746 (copy_node_stat): Allocate and copy struct cl_target_option.
17748 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17750 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
17751 Remove conditional exposure of prototypes.
17752 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
17753 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
17754 definitions in tree.h with functions.
17755 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
17757 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
17759 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
17761 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
17762 (*cmp<mode>_signed): ... this.
17763 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
17764 (*cmp<mode>_unsigned): ... this. Remove %b.
17766 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17768 * coretypes.h: Include input.h and as-a.h.
17769 * rtl.h: Include input.h and as-a.h for generator files.
17770 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
17771 * vec.c: Don't include diagnostic-core.h.
17772 * alias.c: Do not include input.h, line-map.h or is-a.h.
17773 * asan.c: Likewise.
17774 * attribs.c: Likewise.
17775 * auto-inc-dec.c: Likewise.
17776 * auto-profile.c: Likewise.
17777 * bb-reorder.c: Likewise.
17778 * bt-load.c: Likewise.
17779 * builtins.c: Likewise.
17780 * caller-save.c: Likewise.
17781 * calls.c: Likewise.
17782 * ccmp.c: Likewise.
17784 * cfganal.c: Likewise.
17785 * cfgbuild.c: Likewise.
17786 * cfgcleanup.c: Likewise.
17787 * cfgexpand.c: Likewise.
17788 * cfghooks.c: Likewise.
17789 * cfgloop.c: Likewise.
17790 * cfgloop.h: Likewise.
17791 * cfgloopanal.c: Likewise.
17792 * cfgloopmanip.c: Likewise.
17793 * cfgrtl.c: Likewise.
17794 * cgraph.c: Likewise.
17795 * cgraphbuild.c: Likewise.
17796 * cgraphclones.c: Likewise.
17797 * cgraphunit.c: Likewise.
17798 * cilk-common.c: Likewise.
17799 * combine-stack-adj.c: Likewise.
17800 * combine.c: Likewise.
17801 * compare-elim.c: Likewise.
17802 * convert.c: Likewise.
17803 * coverage.c: Likewise.
17804 * cppbuiltin.c: Likewise.
17805 * cprop.c: Likewise.
17807 * cselib.c: Likewise.
17808 * data-streamer-in.c: Likewise.
17809 * data-streamer-out.c: Likewise.
17810 * data-streamer.c: Likewise.
17811 * dbxout.c: Likewise.
17814 * debug.c: Likewise.
17815 * df-core.c: Likewise.
17816 * df-problems.c: Likewise.
17817 * df-scan.c: Likewise.
17820 * diagnostic-core.h: Likewise.
17821 * diagnostic.c: Likewise.
17822 * dojump.c: Likewise.
17823 * dominance.c: Likewise.
17824 * domwalk.c: Likewise.
17825 * double-int.c: Likewise.
17827 * dumpfile.c: Likewise.
17828 * dumpfile.h: Likewise.
17829 * dwarf2asm.c: Likewise.
17830 * dwarf2cfi.c: Likewise.
17831 * dwarf2out.c: Likewise.
17832 * emit-rtl.c: Likewise.
17833 * et-forest.c: Likewise.
17834 * except.c: Likewise.
17835 * explow.c: Likewise.
17836 * expmed.c: Likewise.
17837 * expr.c: Likewise.
17838 * final.c: Likewise.
17839 * fixed-value.c: Likewise.
17840 * fold-const.c: Likewise.
17841 * function.c: Likewise.
17842 * fwprop.c: Likewise.
17843 * gcc-plugin.h: Likewise.
17844 * gcse.c: Likewise.
17845 * generic-match-head.c: Likewise.
17846 * ggc-page.c: Likewise.
17847 * gimple-builder.c: Likewise.
17848 * gimple-expr.c: Likewise.
17849 * gimple-fold.c: Likewise.
17850 * gimple-iterator.c: Likewise.
17851 * gimple-low.c: Likewise.
17852 * gimple-match-head.c: Likewise.
17853 * gimple-pretty-print.c: Likewise.
17854 * gimple-ssa-isolate-paths.c: Likewise.
17855 * gimple-ssa-strength-reduction.c: Likewise.
17856 * gimple-streamer-in.c: Likewise.
17857 * gimple-streamer-out.c: Likewise.
17858 * gimple-streamer.h: Likewise.
17859 * gimple-walk.c: Likewise.
17860 * gimple.c: Likewise.
17861 * gimplify-me.c: Likewise.
17862 * gimplify.c: Likewise.
17863 * godump.c: Likewise.
17864 * graph.c: Likewise.
17865 * graphite-blocking.c: Likewise.
17866 * graphite-dependences.c: Likewise.
17867 * graphite-interchange.c: Likewise.
17868 * graphite-isl-ast-to-gimple.c: Likewise.
17869 * graphite-optimize-isl.c: Likewise.
17870 * graphite-poly.c: Likewise.
17871 * graphite-scop-detection.c: Likewise.
17872 * graphite-sese-to-poly.c: Likewise.
17873 * graphite.c: Likewise.
17874 * haifa-sched.c: Likewise.
17875 * hw-doloop.c: Likewise.
17876 * ifcvt.c: Likewise.
17877 * init-regs.c: Likewise.
17878 * input.c: Likewise.
17879 * internal-fn.c: Likewise.
17880 * ipa-chkp.c: Likewise.
17881 * ipa-comdats.c: Likewise.
17882 * ipa-cp.c: Likewise.
17883 * ipa-devirt.c: Likewise.
17884 * ipa-icf-gimple.c: Likewise.
17885 * ipa-icf.c: Likewise.
17886 * ipa-inline-analysis.c: Likewise.
17887 * ipa-inline-transform.c: Likewise.
17888 * ipa-inline.c: Likewise.
17889 * ipa-polymorphic-call.c: Likewise.
17890 * ipa-profile.c: Likewise.
17891 * ipa-prop.c: Likewise.
17892 * ipa-pure-const.c: Likewise.
17893 * ipa-ref.c: Likewise.
17894 * ipa-reference.c: Likewise.
17895 * ipa-split.c: Likewise.
17896 * ipa-utils.c: Likewise.
17897 * ipa-visibility.c: Likewise.
17899 * ira-build.c: Likewise.
17900 * ira-color.c: Likewise.
17901 * ira-conflicts.c: Likewise.
17902 * ira-costs.c: Likewise.
17903 * ira-emit.c: Likewise.
17904 * ira-lives.c: Likewise.
17906 * jump.c: Likewise.
17907 * langhooks.c: Likewise.
17909 * loop-doloop.c: Likewise.
17910 * loop-init.c: Likewise.
17911 * loop-invariant.c: Likewise.
17912 * loop-iv.c: Likewise.
17913 * loop-unroll.c: Likewise.
17914 * lower-subreg.c: Likewise.
17915 * lra-assigns.c: Likewise.
17916 * lra-coalesce.c: Likewise.
17917 * lra-constraints.c: Likewise.
17918 * lra-eliminations.c: Likewise.
17919 * lra-lives.c: Likewise.
17920 * lra-remat.c: Likewise.
17921 * lra-spills.c: Likewise.
17923 * lto-cgraph.c: Likewise.
17924 * lto-compress.c: Likewise.
17925 * lto-opts.c: Likewise.
17926 * lto-section-in.c: Likewise.
17927 * lto-section-out.c: Likewise.
17928 * lto-streamer-in.c: Likewise.
17929 * lto-streamer-out.c: Likewise.
17930 * lto-streamer.c: Likewise.
17932 * mode-switching.c: Likewise.
17933 * modulo-sched.c: Likewise.
17934 * omega.c: Likewise.
17935 * omp-low.c: Likewise.
17936 * optabs.c: Likewise.
17937 * opts-global.c: Likewise.
17938 * opts.h: Likewise.
17939 * passes.c: Likewise.
17940 * plugin.c: Likewise.
17941 * postreload-gcse.c: Likewise.
17942 * postreload.c: Likewise.
17943 * predict.c: Likewise.
17944 * pretty-print.h: Likewise.
17945 * print-rtl.c: Likewise.
17946 * print-tree.c: Likewise.
17947 * profile.c: Likewise.
17948 * real.c: Likewise.
17949 * realmpfr.c: Likewise.
17950 * recog.c: Likewise.
17952 * reg-stack.c: Likewise.
17953 * regcprop.c: Likewise.
17954 * reginfo.c: Likewise.
17955 * regrename.c: Likewise.
17956 * regstat.c: Likewise.
17957 * reload.c: Likewise.
17958 * reload1.c: Likewise.
17959 * reorg.c: Likewise.
17960 * resource.c: Likewise.
17961 * rtl-chkp.c: Likewise.
17962 * rtl-error.c: Likewise.
17963 * rtlanal.c: Likewise.
17964 * rtlhooks.c: Likewise.
17965 * sanopt.c: Likewise.
17966 * sched-deps.c: Likewise.
17967 * sched-ebb.c: Likewise.
17968 * sched-rgn.c: Likewise.
17969 * sched-vis.c: Likewise.
17970 * sdbout.c: Likewise.
17971 * sel-sched-dump.c: Likewise.
17972 * sel-sched-ir.c: Likewise.
17973 * sel-sched.c: Likewise.
17974 * sese.c: Likewise.
17975 * shrink-wrap.c: Likewise.
17976 * simplify-rtx.c: Likewise.
17977 * stack-ptr-mod.c: Likewise.
17978 * statistics.c: Likewise.
17979 * stmt.c: Likewise.
17980 * stor-layout.c: Likewise.
17981 * store-motion.c: Likewise.
17982 * streamer-hooks.c: Likewise.
17983 * stringpool.c: Likewise.
17984 * symtab.c: Likewise.
17985 * target-globals.c: Likewise.
17986 * targhooks.c: Likewise.
17987 * toplev.c: Likewise.
17988 * tracer.c: Likewise.
17989 * trans-mem.c: Likewise.
17990 * tree-affine.c: Likewise.
17991 * tree-browser.c: Likewise.
17992 * tree-call-cdce.c: Likewise.
17993 * tree-cfg.c: Likewise.
17994 * tree-cfgcleanup.c: Likewise.
17995 * tree-chkp-opt.c: Likewise.
17996 * tree-chkp.c: Likewise.
17997 * tree-chrec.c: Likewise.
17998 * tree-complex.c: Likewise.
17999 * tree-data-ref.c: Likewise.
18000 * tree-dfa.c: Likewise.
18001 * tree-diagnostic.c: Likewise.
18002 * tree-dump.c: Likewise.
18003 * tree-eh.c: Likewise.
18004 * tree-emutls.c: Likewise.
18005 * tree-if-conv.c: Likewise.
18006 * tree-inline.c: Likewise.
18007 * tree-into-ssa.c: Likewise.
18008 * tree-iterator.c: Likewise.
18009 * tree-loop-distribution.c: Likewise.
18010 * tree-nested.c: Likewise.
18011 * tree-nrv.c: Likewise.
18012 * tree-object-size.c: Likewise.
18013 * tree-outof-ssa.c: Likewise.
18014 * tree-parloops.c: Likewise.
18015 * tree-phinodes.c: Likewise.
18016 * tree-predcom.c: Likewise.
18017 * tree-pretty-print.c: Likewise.
18018 * tree-profile.c: Likewise.
18019 * tree-scalar-evolution.c: Likewise.
18020 * tree-sra.c: Likewise.
18021 * tree-ssa-address.c: Likewise.
18022 * tree-ssa-alias.c: Likewise.
18023 * tree-ssa-ccp.c: Likewise.
18024 * tree-ssa-coalesce.c: Likewise.
18025 * tree-ssa-copy.c: Likewise.
18026 * tree-ssa-copyrename.c: Likewise.
18027 * tree-ssa-dce.c: Likewise.
18028 * tree-ssa-dom.c: Likewise.
18029 * tree-ssa-dse.c: Likewise.
18030 * tree-ssa-forwprop.c: Likewise.
18031 * tree-ssa-ifcombine.c: Likewise.
18032 * tree-ssa-live.c: Likewise.
18033 * tree-ssa-loop-ch.c: Likewise.
18034 * tree-ssa-loop-im.c: Likewise.
18035 * tree-ssa-loop-ivcanon.c: Likewise.
18036 * tree-ssa-loop-ivopts.c: Likewise.
18037 * tree-ssa-loop-manip.c: Likewise.
18038 * tree-ssa-loop-niter.c: Likewise.
18039 * tree-ssa-loop-prefetch.c: Likewise.
18040 * tree-ssa-loop-unswitch.c: Likewise.
18041 * tree-ssa-loop.c: Likewise.
18042 * tree-ssa-math-opts.c: Likewise.
18043 * tree-ssa-operands.c: Likewise.
18044 * tree-ssa-phiopt.c: Likewise.
18045 * tree-ssa-phiprop.c: Likewise.
18046 * tree-ssa-pre.c: Likewise.
18047 * tree-ssa-propagate.c: Likewise.
18048 * tree-ssa-reassoc.c: Likewise.
18049 * tree-ssa-sccvn.c: Likewise.
18050 * tree-ssa-scopedtables.c: Likewise.
18051 * tree-ssa-sink.c: Likewise.
18052 * tree-ssa-strlen.c: Likewise.
18053 * tree-ssa-structalias.c: Likewise.
18054 * tree-ssa-tail-merge.c: Likewise.
18055 * tree-ssa-ter.c: Likewise.
18056 * tree-ssa-threadedge.c: Likewise.
18057 * tree-ssa-threadupdate.c: Likewise.
18058 * tree-ssa-uncprop.c: Likewise.
18059 * tree-ssa-uninit.c: Likewise.
18060 * tree-ssa.c: Likewise.
18061 * tree-ssanames.c: Likewise.
18062 * tree-stdarg.c: Likewise.
18063 * tree-streamer-in.c: Likewise.
18064 * tree-streamer-out.c: Likewise.
18065 * tree-streamer.c: Likewise.
18066 * tree-switch-conversion.c: Likewise.
18067 * tree-tailcall.c: Likewise.
18068 * tree-vect-data-refs.c: Likewise.
18069 * tree-vect-generic.c: Likewise.
18070 * tree-vect-loop-manip.c: Likewise.
18071 * tree-vect-loop.c: Likewise.
18072 * tree-vect-patterns.c: Likewise.
18073 * tree-vect-slp.c: Likewise.
18074 * tree-vect-stmts.c: Likewise.
18075 * tree-vectorizer.c: Likewise.
18076 * tree-vrp.c: Likewise.
18077 * tree.c: Likewise.
18078 * tsan.c: Likewise.
18079 * ubsan.c: Likewise.
18080 * valtrack.c: Likewise.
18081 * value-prof.c: Likewise.
18082 * var-tracking.c: Likewise.
18083 * varasm.c: Likewise.
18084 * varpool.c: Likewise.
18085 * vmsdbgout.c: Likewise.
18086 * vtable-verify.c: Likewise.
18088 * wide-int.cc: Likewise.
18089 * xcoffout.c: Likewise.
18090 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
18091 * common/common-targhooks.c: Likewise.
18092 * config/aarch64/aarch64-builtins.c: Likewise.
18093 * config/aarch64/aarch64.c: Likewise.
18094 * config/alpha/alpha.c: Likewise.
18095 * config/arc/arc.c: Likewise.
18096 * config/arm/aarch-common.c: Likewise.
18097 * config/arm/arm-builtins.c: Likewise.
18098 * config/arm/arm-c.c: Likewise.
18099 * config/arm/arm.c: Likewise.
18100 * config/avr/avr-c.c: Likewise.
18101 * config/avr/avr-log.c: Likewise.
18102 * config/avr/avr.c: Likewise.
18103 * config/bfin/bfin.c: Likewise.
18104 * config/c6x/c6x.c: Likewise.
18105 * config/cr16/cr16.c: Likewise.
18106 * config/cris/cris.c: Likewise.
18107 * config/darwin-c.c: Likewise.
18108 * config/darwin.c: Likewise.
18109 * config/default-c.c: Likewise.
18110 * config/epiphany/epiphany.c: Likewise.
18111 * config/epiphany/mode-switch-use.c: Likewise.
18112 * config/epiphany/resolve-sw-modes.c: Likewise.
18113 * config/fr30/fr30.c: Likewise.
18114 * config/frv/frv.c: Likewise.
18115 * config/ft32/ft32.c: Likewise.
18116 * config/glibc-c.c: Likewise.
18117 * config/h8300/h8300.c: Likewise.
18118 * config/i386/i386-c.c: Likewise.
18119 * config/i386/i386.c: Likewise.
18120 * config/i386/msformat-c.c: Likewise.
18121 * config/i386/winnt-cxx.c: Likewise.
18122 * config/i386/winnt-stubs.c: Likewise.
18123 * config/i386/winnt.c: Likewise.
18124 * config/ia64/ia64-c.c: Likewise.
18125 * config/ia64/ia64.c: Likewise.
18126 * config/iq2000/iq2000.c: Likewise.
18127 * config/lm32/lm32.c: Likewise.
18128 * config/m32c/m32c-pragma.c: Likewise.
18129 * config/m32c/m32c.c: Likewise.
18130 * config/m32r/m32r.c: Likewise.
18131 * config/m68k/m68k.c: Likewise.
18132 * config/mcore/mcore.c: Likewise.
18133 * config/mep/mep-pragma.c: Likewise.
18134 * config/mep/mep.c: Likewise.
18135 * config/microblaze/microblaze-c.c: Likewise.
18136 * config/microblaze/microblaze.c: Likewise.
18137 * config/mips/mips.c: Likewise.
18138 * config/mmix/mmix.c: Likewise.
18139 * config/mn10300/mn10300.c: Likewise.
18140 * config/moxie/moxie.c: Likewise.
18141 * config/msp430/msp430-c.c: Likewise.
18142 * config/msp430/msp430.c: Likewise.
18143 * config/nds32/nds32-cost.c: Likewise.
18144 * config/nds32/nds32-fp-as-gp.c: Likewise.
18145 * config/nds32/nds32-intrinsic.c: Likewise.
18146 * config/nds32/nds32-isr.c: Likewise.
18147 * config/nds32/nds32-md-auxiliary.c: Likewise.
18148 * config/nds32/nds32-memory-manipulation.c: Likewise.
18149 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18150 * config/nds32/nds32-predicates.c: Likewise.
18151 * config/nds32/nds32.c: Likewise.
18152 * config/nios2/nios2.c: Likewise.
18153 * config/nvptx/nvptx.c: Likewise.
18154 * config/pa/pa.c: Likewise.
18155 * config/pdp11/pdp11.c: Likewise.
18156 * config/rl78/rl78-c.c: Likewise.
18157 * config/rl78/rl78.c: Likewise.
18158 * config/rs6000/rs6000-c.c: Likewise.
18159 * config/rs6000/rs6000.c: Likewise.
18160 * config/rx/rx.c: Likewise.
18161 * config/s390/s390-c.c: Likewise.
18162 * config/s390/s390.c: Likewise.
18163 * config/sh/sh-c.c: Likewise.
18164 * config/sh/sh-mem.cc: Likewise.
18165 * config/sh/sh.c: Likewise.
18166 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18167 * config/sh/sh_treg_combine.cc: Likewise.
18168 * config/sol2-c.c: Likewise.
18169 * config/sol2-cxx.c: Likewise.
18170 * config/sol2-stubs.c: Likewise.
18171 * config/sol2.c: Likewise.
18172 * config/sparc/sparc-c.c: Likewise.
18173 * config/sparc/sparc.c: Likewise.
18174 * config/spu/spu-c.c: Likewise.
18175 * config/spu/spu.c: Likewise.
18176 * config/stormy16/stormy16.c: Likewise.
18177 * config/tilegx/mul-tables.c: Likewise.
18178 * config/tilegx/tilegx-c.c: Likewise.
18179 * config/tilegx/tilegx.c: Likewise.
18180 * config/tilepro/mul-tables.c: Likewise.
18181 * config/tilepro/tilepro-c.c: Likewise.
18182 * config/tilepro/tilepro.c: Likewise.
18183 * config/v850/v850-c.c: Likewise.
18184 * config/v850/v850.c: Likewise.
18185 * config/vax/vax.c: Likewise.
18186 * config/visium/visium.c: Likewise.
18187 * config/vms/vms-c.c: Likewise.
18188 * config/vms/vms.c: Likewise.
18189 * config/vxworks.c: Likewise.
18190 * config/winnt-c.c: Likewise.
18191 * config/xtensa/xtensa.c: Likewise.
18193 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
18195 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
18197 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
18199 2015-06-17 Richard Biener <rguenther@suse.de>
18201 PR tree-optimization/66251
18202 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
18203 stmts for SLP strided stores.
18206 2015-05-22 Richard Biener <rguenther@suse.de>
18208 PR tree-optimization/66251
18209 * tree-vect-stmts.c (vectorizable_conversion): Properly
18210 set STMT_VINFO_VEC_STMT even for the SLP case.
18212 2015-05-26 Michael Matz <matz@suse.de>
18214 PR middle-end/66251
18215 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
18216 STMT_VINFO_VEC_STMT, also with SLP.
18218 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
18221 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
18222 (*avx_addsubv4df3_1s): Ditto.
18223 (*sse3_addsubv2df3_1): Ditto.
18224 (*sse3_addsubv2df3_1s): Ditto.
18225 (*avx_addsubv8sf3_1): Ditto.
18226 (*avx_addsubv8sf3_1s): Ditto.
18227 (*sse3_addsubv4sf3_1): Ditto.
18228 (*sse3_addsubv4sf3_1s): Ditto.
18230 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
18232 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
18233 (SYSROOT_SUFFIX_SPEC): Update.
18234 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
18235 (STARTFILE_PREFIX_SPEC): Update.
18236 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
18237 (MULTILIB_REQUIRED): New.
18238 (MULTILIB_OSDIRNAMES): New.
18239 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
18240 (MULTILIB_REQUIRED): New.
18241 (MULTILIB_OSDIRNAMES): New.
18243 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
18245 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
18246 * config/aarch64/aarch64-options-extensions.def: Update "fP",
18247 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
18248 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
18249 (AARCH64_FL_PAN): New.
18250 (AARCH64_FL_LOR): New.
18251 (AARCH64_FL_RDMA): New.
18252 (AARCH64_FL_FOR_ARCH8_1): New.
18253 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
18254 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
18256 2015-06-16 Martin Liska <mliska@suse.cz>
18258 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
18259 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
18262 2015-06-16 Richard Biener <rguenther@suse.de>
18264 * tree-vect-stmts.c (vectorizable_store): Adjust.
18265 (vectorizable_load): Likewise.
18266 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
18268 (vect_create_data_ref_ptr): Likewise.
18269 (bump_vector_ptr): Adjust.
18271 2015-06-16 Richard Biener <rguenther@suse.de>
18273 * tree-vect-stmts.c (vectorizable_load): Properly start loads
18274 with the first element if this is grouped loads.
18276 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
18278 * config/arm/arm-protos.h (struct tune_params): Rename
18279 log_op_non_sc to log_op_non_short_circuit, and rename enum
18280 values to expand SC to SHORT_CIRCUIT.
18281 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
18282 to LOG_OP_NON_SHORT_CIRCUIT.
18283 (arm_fastmul_tune):Likewise
18284 (arm_strongarm_tune): Likewise.
18285 (arm_xscale_tune): Likewise.
18286 (arm_9e_tune): Likewise.
18287 (arm_marvell_pj4_tune): Likewise.
18288 (arm_v6t2_tune): Likewise.
18289 (arm_cortex_tune): Likewise.
18290 (arm_cortex_a8_tune): Likewise.
18291 (arm_cortex_a7_tune): Likewise.
18292 (arm_cortex_a15_tune): Likewise.
18293 (arm_cortex_a53_tune): Likewise.
18294 (arm_cortex_a57_tune): Likewise.
18295 (arm_xgene1_tune): Likewise.
18296 (arm_cortex_a5_tune): Likewise.
18297 (arm_cortex_a9_tune): Likewise.
18298 (arm_cortex_a12_tune): Likewise.
18299 (arm_v7m_tune): Likewise.
18300 (arm_cortex_m7_tune): Likewise.
18301 (arm_v6m_tune): Likewise.
18302 (arm_fa726te_tune): Likewise.
18304 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
18306 * altivec.md: Delete UNSPEC_VMLADDUHM.
18307 (mulv4si3_p8): New pattern.
18308 (mulv4si3): Use it for POWER8.
18309 (mulv8hi3): Use vmladduhm with zero addend.
18310 (altivec_vmladduhm): Descriptive RTL.
18312 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
18314 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
18315 to use neon_move instead of mov_imm.
18316 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
18317 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
18319 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
18320 aarch64_float_const_zero_rtx_p check before TFmode check.
18321 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
18323 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
18324 code and attributes to match. Change condition from register_operand
18325 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
18326 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
18329 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
18332 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
18333 there is no parent.
18335 2015-06-14 Shiva Chen <shiva0217@gmail.com>
18337 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
18338 HOST_WIDE_INT parameter.
18340 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
18343 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
18344 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
18346 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
18348 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
18350 * rtl.h (classify_insn): Declare.
18351 * emit-rtl.c (classify_insn): Move to...
18352 * rtl.c: ...here and add generator support.
18353 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
18354 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
18355 * genemit.c (gen_emit_seq): New function.
18356 (gen_expand, gen_split): Use it.
18358 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
18360 * tree.c (make_vector_stat): Fix comment to state that the
18361 function returns a VECTOR_CST.
18363 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
18365 * gensupport.h (add_implicit_parallel): Declare.
18366 * genrecog.c (add_implicit_parallel): Move to...
18367 * gensupport.c (add_implicit_parallel): ...here.
18368 (process_one_cond_exec): Use it.
18369 * genemit.c (gen_insn): Likewise.
18371 2015-06-13 Iain Sandoe <iain@codesourcery.com>
18374 * passes.c (rest_of_decl_compilation): Do not register globals for
18375 early debug if they are declared in built-ins.
18377 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
18379 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
18381 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18383 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
18385 (noce_try_cmove_arith): Likewise.
18386 (noce_get_alt_condition): Likewise.
18388 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18390 * common/config/i386/i386-common.c
18391 (OPTION_MASK_ISA_MWAITX_SET): New.
18392 (ix86_handle_option): Handle mwaitx.
18393 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
18394 (x86_64-*-*): Likewise.
18395 * config/i386/mwaitxintrin.h: New header.
18396 * config/i386/cpuid.h (bit_MWAITX): Define.
18397 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18399 * config/i386/i386.opt (mwaitx): New.
18400 * config/i386/i386-builtin-types.def
18401 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
18402 * config/i386/i386-c.c: Define __MWAITX__ if needed.
18403 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
18405 (ix86_option_override_internal): Handle new option.
18406 (processor_alias_table): Added PTA_MWAITX.
18407 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
18408 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
18409 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
18410 IX86_BUILTIN_MONITORX built-ins.
18411 * config/i386/i386.h (TARGET_MWAITX): New.
18412 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
18414 (mwaitx): New pattern.
18415 (monitorx_<mode>): New pattern.
18416 * config/i386/x86intrin.h: Include mwaitxintrin.h.
18417 * doc/extend.texi: Document monitorx and mwaitx builtins.
18418 * doc/invoke.texi: Document -mmwaitx option.
18420 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
18422 * emit-rtl.c (need_atomic_barrier_p): Mask model with
18423 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
18425 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
18427 * dbxout.c (xcoff_debug_hooks): Provide a function for
18428 register_main_translation_unit hook.
18430 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
18432 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
18433 variants cases from switch.
18434 (rs6000_post_atomic_barrier): Same.
18435 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
18436 (rs6000_expand_atomic_exchange): Same.
18437 (rs6000_expand_atomic_op): Same.
18438 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
18439 SYNC variants cases from switch.
18440 (atomic_load): Same.
18441 (atomic_store): Same.
18443 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
18445 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
18446 CONST_INT for goto.
18448 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
18451 * dwarf2out.c (check_die): Check for common duplicate attributes.
18452 (add_location_or_const_value_attribute): Do not add duplicate
18454 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
18456 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
18457 (gen_type_die_with_usage): Call check_die.
18458 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
18460 2015-06-11 Jason Merrill <jason@redhat.com>
18462 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
18465 2015-06-11 Marek Polacek <polacek@redhat.com>
18467 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
18469 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
18472 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
18473 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
18474 (*addx_extend_sp32): Fix pasto.
18475 (*subx_extend): Rename into...
18476 (*subx_extend_sp32): ...this.
18477 (*adddi3_extend_sp32): Add earlyclobber.
18478 (*subdi3_insn_sp32): Likewise.
18479 (*subdi3_extend_sp32): Likewise.
18480 (*and_not_di_sp32): Likewise.
18481 (*or_not_di_sp32): Likewise.
18482 (*xor_not_di_sp32): Likewise.
18483 (*negdi2_sp32): Likewise.
18484 (*one_cmpldi2_sp32): Likewise.
18486 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
18488 * debug.h (struct gcc_debug_hooks): Add a
18489 register_main_translation_unit hook.
18490 * debug.c (do_nothing_debug_hooks): Provide a function for this
18492 * dbxout.c (dbx_debug_hooks): Likewise.
18493 * sdbout.c (sdb_debug_hooks): Likewise.
18494 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18495 * dwarf2out.c (main_translation_unit): New global variable.
18496 (dwarf2out_register_main_translation_unit): New function
18497 implementing the new hook.
18498 (dwarf2_debug_hooks): Assign
18499 dwarf2out_register_main_translation_unit to this new hook.
18500 (dwarf2out_init): Associate any main translation unit to
18503 2015-06-11 Marek Polacek <polacek@redhat.com>
18505 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
18507 2015-06-11 Marek Polacek <polacek@redhat.com>
18509 * match.pd: Use single_use throughout.
18511 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18513 * config/arm/arm.c (arm_option_params_internal): When optimising
18514 for speed set max_insns_skipped when arm_restrict_it.
18516 2015-06-11 Christian Bruel <christian.bruel@st.com>
18519 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
18521 (arm_cpu_builtins): New function.
18522 (arm_pragma_target_parse): Call arm_cpu_builtins.
18523 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
18524 (arm_register_target_pragmas): Likewise.
18525 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
18526 Call arm_register_target_pragmas.
18527 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
18528 (arm_pragma_target_parse): Likewise.
18530 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
18532 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
18533 of the second operand.
18535 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
18538 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
18539 to prepare mask operand for AVX512 modes.
18541 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18544 * doc/md.texi (Machine Constraints): Document that on the PowerPC
18545 if you use a constraint that targets a VSX register, you must use
18546 %x<n> in the template.
18548 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
18550 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
18551 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
18552 (define_insn "trap"): New definition.
18554 2015-06-10 Richard Biener <rguenther@suse.de>
18556 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
18558 (vect_supported_load_permutation_p): ... here. Handle
18559 supportable permutations in reductions.
18560 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
18561 for vectorizing strided group loads.
18563 2015-06-10 Jakub Jelinek <jakub@redhat.com>
18566 * config/i386/i386.c (ix86_split_long_move): For collisions
18567 involving direct tls segment refs, move the UNSPEC_TP possibly
18568 wrapped in ZERO_EXTEND out of the address for lea, to each of
18571 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18573 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
18574 dmb sy. Adjust tabs.
18576 2015-06-10 Tom de Vries <tom@codesourcery.com>
18578 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
18580 2015-06-10 Martin Liska <mliska@suse.cz>
18583 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
18584 all enum values in mem_alloc_origin.
18585 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
18587 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
18588 * bitmap.c (bitmap_register): Likewise.
18589 (dump_bitmap_statistics): Likewise.
18590 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
18591 (ggc_record_overhead): Likewise.
18592 * hash-map.h: Likewise.
18593 * hash-set.h: Likewise.
18594 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
18595 * hash-table.h: Likewise.
18596 * vec.c (vec_prefix::register_overhead): Likewise.
18597 (vec_prefix::release_overhead): Likewise.
18598 (dump_vec_loc_statistics): Likewise.
18600 2015-06-09 Christian Bruel <christian.bruel@st.com>
18603 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
18604 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
18605 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
18606 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
18607 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
18608 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
18609 (arm_valid_target_attribute_p): Likewise.
18610 (arm_set_current_function, arm_can_inline_p): Likewise.
18611 (arm_valid_target_attribute_rec): Likewise.
18612 (arm_previous_fndecl): New variable.
18613 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18614 (TARGET_CAN_INLINE_P): Define.
18615 (arm_asm_trampoline_template): Emit mode.
18616 (arm_file_start): Don't set unified syntax.
18617 (arm_declare_function_name): Set unified syntax and mode.
18618 (arm_option_override): Init target_option_default_node.
18619 and target_option_current_node.
18620 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
18621 (*call_symbol): Likewise.
18622 * doc/extend.texi: Document ARM/Thumb target attribute.
18623 * doc/invoke.texi: Likewise.
18625 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18628 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18629 PR rtl-optimization/64164
18630 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18631 * tree-ssa-copyrename.c: Removed.
18632 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18633 -ftree-coalesce-vars.
18634 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18635 * common.opt (ftree-copyrename): Ignore.
18636 (ftree-coalesce-inlined-vars): Likewise.
18637 * doc/invoke.texi: Remove the ignored options above.
18638 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18639 * tree-ssa-coalesce.h: ... here.
18640 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18641 headers required by it.
18642 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18643 across variables when flag_tree_coalesce_vars. Check register
18644 use and promoted modes to allow coalescing. Moved to
18645 tree-ssa-coalesce.c.
18646 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18647 with its member functions to tree-ssa-coalesce.c.
18648 (var_map_base_init): Likewise. Renamed to
18649 compute_samebase_partition_bases.
18650 (partition_view_normal): Drop want_bases parameter.
18651 (partition_view_bitmap): Likewise.
18652 * tree-ssa-live.h: Adjust declarations.
18653 * tree-ssa-coalesce.c: Include explow.h.
18654 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18655 default defs at the entry point.
18656 (dump_part_var_map): New.
18657 (compute_optimized_partition_bases): New, called by...
18658 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18659 of compute_samebase_partition_bases. Adjust.
18660 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18661 * cfgexpand.c (leader_merge): New.
18662 (get_rtl_for_parm_ssa_default_def): New.
18663 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18664 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18665 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18666 redundant MEM attr setting.
18667 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18669 (expand_one_stack_var): ... this. New wrapper to check and
18670 skip already expanded SSA partitions.
18671 (record_alignment_for_reg_var): New, factored out of...
18672 (expand_one_var): ... this.
18673 (expand_one_ssa_partition): New.
18674 (adjust_one_expanded_partition_var): New.
18675 (expand_one_register_var): Check and skip already expanded SSA
18677 (expand_used_vars): Don't create DECLs for anonymous SSA
18678 names. Expand all SSA partitions, then adjust all SSA names.
18679 (pass::execute): Replace the loops that set
18680 SA.partition_to_pseudo from partition leaders and cleared
18681 DECL_RTL for multi-location variables, and that which used to
18682 rename vars and set attrs, with one that clears DECL_RTL and
18683 checks that PARMs and RESULTs default_defs match DECL_RTL.
18684 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18685 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18686 * explow.c (promote_ssa_mode): New.
18687 * explow.h (promote_ssa_mode): Declare.
18688 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18689 * function.c: Include cfgexpand.h.
18690 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18691 (use_register_for_parm_decl): Wrapper for the above to
18692 special-case the result_ptr.
18693 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18694 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18695 multiple locations.
18696 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18697 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18698 (assign_parm_setup_block): Prefer SSA-assigned location.
18699 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18700 if stack_parm is NULL.
18701 (assign_parm_setup_stack): Prefer SSA-assigned location.
18702 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18703 rtl before testing for pointer bounds. Special-case result_ptr.
18704 (expand_function_start): Maybe reset DECL_RTL of result.
18705 Prefer SSA-assigned location for result and static chain.
18706 Factor out DECL_RESULT and SET_DECL_RTL.
18707 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18708 anonymous SSA names. Use promote_ssa_mode.
18709 (get_temp_reg): Likewise.
18710 (remove_ssa_form): Adjust.
18711 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18712 and get its reg_usage for reg invalidation.
18713 (compute_bb_dataflow): Pass it insn.
18714 (emit_notes_in_bb): Likewise.
18715 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
18716 fail assert on conversion between unsigned types.
18718 2015-06-09 Tom de Vries <tom@codesourcery.com>
18720 PR tree-optimization/65460
18721 * omp-low.c (expand_omp_target): Set parallelized_function on
18722 cgraph_node for child_fn.
18724 2015-06-09 Tom de Vries <tom@codesourcery.com>
18726 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
18727 parallelized_function before add_new_function.
18729 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
18731 * gcc-plugin.h: Move decls to plugin.h and include it.
18732 * plugin.h: Relocate decls from gcc-plugin.h
18733 * ggc-page.c: Include required header files.
18734 * passes.c: Likewise.
18735 * cgraphunit.c: Likewise.
18737 2015-06-09 Tom de Vries <tom@codesourcery.com>
18739 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
18741 2015-06-09 Jason Merrill <jason@redhat.com>
18744 * toplev.c (check_global_declaration): Don't warn about a clone.
18746 2015-06-09 Marek Polacek <polacek@redhat.com>
18748 PR tree-optimization/66299
18749 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
18750 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
18753 2015-06-09 Richard Biener <rguenther@suse.de>
18755 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
18756 (vect_analyze_slp_instance): Instead do not falsely drop
18759 2015-06-09 Richard Biener <rguenther@suse.de>
18761 PR middle-end/66423
18762 * match.pd: Handle A % (unsigned)(1 << B).
18764 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
18766 * varasm.c (output_object_block_htab): Remove.
18767 (output_object_block_compare): New.
18768 (output_object_blocks): Sort named object_blocks before outputting
18771 2015-06-09 Richard Biener <rguenther@suse.de>
18773 PR tree-optimization/66419
18774 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
18775 consider GROUP_GAP when detecting a perfect subchain.
18777 2015-06-09 Nick Clifton <nickc@redhat.com>
18779 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
18780 place read only data in the .frodata section.
18782 2015-06-09 Shiva Chen <shiva0217@gmail.com>
18784 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
18785 (atomic_store<mode>): Likewise.
18787 2015-06-09 Richard Biener <rguenther@suse.de>
18789 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
18791 2015-06-09 Richard Biener <rguenther@suse.de>
18793 PR middle-end/66413
18794 * tree-inline.c (insert_init_debug_bind): Unshare value.
18796 2015-06-09 Richard Biener <rguenther@suse.de>
18798 PR tree-optimization/66396
18799 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
18800 Rename virtual operands.
18802 2015-06-09 Tom de Vries <tom@codesourcery.com>
18804 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
18805 always return false.
18807 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18809 PR rtl-optimization/64164
18810 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18811 * tree-ssa-copyrename.c: Removed.
18812 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18813 -ftree-coalesce-vars.
18814 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18815 * common.opt (ftree-copyrename): Ignore.
18816 (ftree-coalesce-inlined-vars): Likewise.
18817 * doc/invoke.texi: Remove the ignored options above.
18818 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18819 * tree-ssa-coalesce.h: ... here.
18820 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18821 headers required by it.
18822 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18823 across variables when flag_tree_coalesce_vars. Check register
18824 use and promoted modes to allow coalescing. Moved to
18825 tree-ssa-coalesce.c.
18826 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18827 with its member functions to tree-ssa-coalesce.c.
18828 (var_map_base_init): Likewise. Renamed to
18829 compute_samebase_partition_bases.
18830 (partition_view_normal): Drop want_bases parameter.
18831 (partition_view_bitmap): Likewise.
18832 * tree-ssa-live.h: Adjust declarations.
18833 * tree-ssa-coalesce.c: Include explow.h.
18834 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18835 default defs at the entry point.
18836 (dump_part_var_map): New.
18837 (compute_optimized_partition_bases): New, called by...
18838 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18839 of compute_samebase_partition_bases. Adjust.
18840 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18841 * cfgexpand.c (leader_merge): New.
18842 (get_rtl_for_parm_ssa_default_def): New.
18843 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18844 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18845 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18846 redundant MEM attr setting.
18847 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18849 (expand_one_stack_var): ... this. New wrapper to check and
18850 skip already expanded SSA partitions.
18851 (record_alignment_for_reg_var): New, factored out of...
18852 (expand_one_var): ... this.
18853 (expand_one_ssa_partition): New.
18854 (adjust_one_expanded_partition_var): New.
18855 (expand_one_register_var): Check and skip already expanded SSA
18857 (expand_used_vars): Don't create DECLs for anonymous SSA
18858 names. Expand all SSA partitions, then adjust all SSA names.
18859 (pass::execute): Replace the loops that set
18860 SA.partition_to_pseudo from partition leaders and cleared
18861 DECL_RTL for multi-location variables, and that which used to
18862 rename vars and set attrs, with one that clears DECL_RTL and
18863 checks that PARMs and RESULTs default_defs match DECL_RTL.
18864 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18865 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18866 * explow.c (promote_ssa_mode): New.
18867 * explow.h (promote_ssa_mode): Declare.
18868 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18869 * function.c: Include cfgexpand.h.
18870 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18871 (use_register_for_parm_decl): Wrapper for the above to
18872 special-case the result_ptr.
18873 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18874 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18875 multiple locations.
18876 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18877 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18878 (assign_parm_setup_block): Prefer SSA-assigned location.
18879 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18880 if stack_parm is NULL.
18881 (assign_parm_setup_stack): Prefer SSA-assigned location.
18882 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18883 rtl before testing for pointer bounds. Special-case result_ptr.
18884 (expand_function_start): Maybe reset DECL_RTL of result.
18885 Prefer SSA-assigned location for result and static chain.
18886 Factor out DECL_RESULT and SET_DECL_RTL.
18887 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18888 anonymous SSA names. Use promote_ssa_mode.
18889 (get_temp_reg): Likewise.
18890 (remove_ssa_form): Adjust.
18891 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18892 and get its reg_usage for reg invalidation.
18893 (compute_bb_dataflow): Pass it insn.
18894 (emit_notes_in_bb): Likewise.
18895 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
18896 fail assert on conversion between unsigned types.
18898 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18901 * tree-inline.c (reset_debug_binding): New.
18902 (reset_debug_bindings): Likewise.
18903 (expand_call_inline): Call it.
18905 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18907 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
18910 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18912 * lto-streamer-out.c (lto_output_location): Stream
18913 reserved locations correctly.
18914 * lto-streamer-in.c (lto_output_location): Likewise.
18916 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
18918 * coretypes.h: Include hash-table.h and hash-set.h for host files.
18919 * ggc.h: Don't include statistics.h>
18920 * hash-map.h: Remove all includes.
18921 * hash-set.h: Likewise.
18922 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
18923 the include list. Remove <new>.
18924 * inchash.h: Remove all includes.
18925 * mem-stats.h: Likewise.
18926 * vec.h: No special processing for generators or ggc.
18927 * alias.c : Adjust include files.
18928 * alloc-pool.c : Likewise.
18929 * alloc-pool.h : Likewise.
18930 * asan.c : Likewise.
18931 * attribs.c : Likewise.
18932 * auto-inc-dec.c : Likewise.
18933 * auto-profile.c : Likewise.
18934 * bb-reorder.c : Likewise.
18935 * bitmap.c : Likewise.
18936 * bitmap.h : Likewise.
18937 * bt-load.c : Likewise.
18938 * builtins.c : Likewise.
18939 * caller-save.c : Likewise.
18940 * calls.c : Likewise.
18941 * ccmp.c : Likewise.
18942 * cfg.c : Likewise.
18943 * cfganal.c : Likewise.
18944 * cfgbuild.c : Likewise.
18945 * cfgcleanup.c : Likewise.
18946 * cfgexpand.c : Likewise.
18947 * cfghooks.c : Likewise.
18948 * cfgloop.c : Likewise.
18949 * cfgloop.h : Likewise.
18950 * cfgloopanal.c : Likewise.
18951 * cfgloopmanip.c : Likewise.
18952 * cfgrtl.c : Likewise.
18953 * cgraph.c : Likewise.
18954 * cgraphbuild.c : Likewise.
18955 * cgraphclones.c : Likewise.
18956 * cgraphunit.c : Likewise.
18957 * cilk-common.c : Likewise.
18958 * combine-stack-adj.c : Likewise.
18959 * combine.c : Likewise.
18960 * compare-elim.c : Likewise.
18961 * context.c : Likewise.
18962 * convert.c : Likewise.
18963 * coverage.c : Likewise.
18964 * cppbuiltin.c : Likewise.
18965 * cprop.c : Likewise.
18966 * cse.c : Likewise.
18967 * cselib.c : Likewise.
18968 * data-streamer-in.c : Likewise.
18969 * data-streamer-out.c : Likewise.
18970 * data-streamer.c : Likewise.
18971 * data-streamer.h : Likewise.
18972 * dbxout.c : Likewise.
18973 * dce.c : Likewise.
18974 * ddg.c : Likewise.
18975 * debug.c : Likewise.
18976 * df-core.c : Likewise.
18977 * df-problems.c : Likewise.
18978 * df-scan.c : Likewise.
18980 * dfp.c : Likewise.
18981 * dojump.c : Likewise.
18982 * dominance.c : Likewise.
18983 * domwalk.c : Likewise.
18984 * double-int.c : Likewise.
18985 * dse.c : Likewise.
18986 * dumpfile.c : Likewise.
18987 * dwarf2asm.c : Likewise.
18988 * dwarf2cfi.c : Likewise.
18989 * dwarf2out.c : Likewise.
18990 * emit-rtl.c : Likewise.
18991 * et-forest.c : Likewise.
18992 * except.c : Likewise.
18993 * except.h : Likewise.
18994 * explow.c : Likewise.
18995 * expmed.c : Likewise.
18996 * expr.c : Likewise.
18997 * final.c : Likewise.
18998 * fixed-value.c : Likewise.
18999 * fold-const.c : Likewise.
19000 * function.c : Likewise.
19001 * fwprop.c : Likewise.
19002 * gcc-plugin.h : Likewise.
19003 * gcc.c : Likewise.
19004 * gcse-common.c : Likewise.
19005 * gcse.c : Likewise.
19006 * genattrtab.c : Likewise.
19007 * genautomata.c : Likewise.
19008 * genconditions.c : Likewise.
19009 * genemit.c : Likewise.
19010 * generic-match-head.c : Likewise.
19011 * genextract.c : Likewise.
19012 * gengtype-state.c : Likewise.
19013 * gengtype.c : Likewise.
19014 * genhooks.c : Likewise.
19015 * genmatch.c : Likewise.
19016 * genmodes.c : Likewise.
19017 * genrecog.c : Likewise.
19018 * gensupport.c : Likewise.
19019 * ggc-common.c : Likewise.
19020 * ggc-internal.h : Likewise.
19021 * ggc-none.c : Likewise.
19022 * ggc-page.c : Likewise.
19023 * gimple-builder.c : Likewise.
19024 * gimple-expr.c : Likewise.
19025 * gimple-fold.c : Likewise.
19026 * gimple-iterator.c : Likewise.
19027 * gimple-low.c : Likewise.
19028 * gimple-match-head.c : Likewise.
19029 * gimple-pretty-print.c : Likewise.
19030 * gimple-ssa-isolate-paths.c : Likewise.
19031 * gimple-ssa-strength-reduction.c : Likewise.
19032 * gimple-ssa.h : Likewise.
19033 * gimple-streamer-in.c : Likewise.
19034 * gimple-streamer-out.c : Likewise.
19035 * gimple-streamer.h : Likewise.
19036 * gimple-walk.c : Likewise.
19037 * gimple.c : Likewise.
19038 * gimplify-me.c : Likewise.
19039 * gimplify.c : Likewise.
19040 * godump.c : Likewise.
19041 * graph.c : Likewise.
19042 * graphds.c : Likewise.
19043 * graphite-blocking.c : Likewise.
19044 * graphite-dependences.c : Likewise.
19045 * graphite-interchange.c : Likewise.
19046 * graphite-isl-ast-to-gimple.c : Likewise.
19047 * graphite-optimize-isl.c : Likewise.
19048 * graphite-poly.c : Likewise.
19049 * graphite-scop-detection.c : Likewise.
19050 * graphite-sese-to-poly.c : Likewise.
19051 * graphite.c : Likewise.
19052 * haifa-sched.c : Likewise.
19053 * hard-reg-set.h : Likewise.
19054 * hw-doloop.c : Likewise.
19055 * ifcvt.c : Likewise.
19056 * inchash.c : Likewise.
19057 * incpath.c : Likewise.
19058 * init-regs.c : Likewise.
19059 * input.c : Likewise.
19060 * internal-fn.c : Likewise.
19061 * ipa-chkp.c : Likewise.
19062 * ipa-comdats.c : Likewise.
19063 * ipa-cp.c : Likewise.
19064 * ipa-devirt.c : Likewise.
19065 * ipa-icf-gimple.c : Likewise.
19066 * ipa-icf.c : Likewise.
19067 * ipa-inline-analysis.c : Likewise.
19068 * ipa-inline-transform.c : Likewise.
19069 * ipa-inline.c : Likewise.
19070 * ipa-polymorphic-call.c : Likewise.
19071 * ipa-profile.c : Likewise.
19072 * ipa-prop.c : Likewise.
19073 * ipa-pure-const.c : Likewise.
19074 * ipa-ref.c : Likewise.
19075 * ipa-reference.c : Likewise.
19076 * ipa-split.c : Likewise.
19077 * ipa-utils.c : Likewise.
19078 * ipa-visibility.c : Likewise.
19079 * ipa.c : Likewise.
19080 * ira-build.c : Likewise.
19081 * ira-color.c : Likewise.
19082 * ira-conflicts.c : Likewise.
19083 * ira-costs.c : Likewise.
19084 * ira-emit.c : Likewise.
19085 * ira-lives.c : Likewise.
19086 * ira.c : Likewise.
19087 * jump.c : Likewise.
19088 * langhooks.c : Likewise.
19089 * lcm.c : Likewise.
19090 * libfuncs.h : Likewise.
19091 * lists.c : Likewise.
19092 * loop-doloop.c : Likewise.
19093 * loop-init.c : Likewise.
19094 * loop-invariant.c : Likewise.
19095 * loop-iv.c : Likewise.
19096 * loop-unroll.c : Likewise.
19097 * lower-subreg.c : Likewise.
19098 * lra-assigns.c : Likewise.
19099 * lra-coalesce.c : Likewise.
19100 * lra-constraints.c : Likewise.
19101 * lra-eliminations.c : Likewise.
19102 * lra-lives.c : Likewise.
19103 * lra-remat.c : Likewise.
19104 * lra-spills.c : Likewise.
19105 * lra.c : Likewise.
19106 * lto-cgraph.c : Likewise.
19107 * lto-compress.c : Likewise.
19108 * lto-opts.c : Likewise.
19109 * lto-section-in.c : Likewise.
19110 * lto-section-out.c : Likewise.
19111 * lto-streamer-in.c : Likewise.
19112 * lto-streamer-out.c : Likewise.
19113 * lto-streamer.c : Likewise.
19114 * lto-streamer.h : Likewise.
19115 * mcf.c : Likewise.
19116 * mode-switching.c : Likewise.
19117 * modulo-sched.c : Likewise.
19118 * omega.c : Likewise.
19119 * omp-low.c : Likewise.
19120 * optabs.c : Likewise.
19121 * opts-global.c : Likewise.
19122 * opts.h : Likewise.
19123 * passes.c : Likewise.
19124 * plugin.c : Likewise.
19125 * postreload-gcse.c : Likewise.
19126 * postreload.c : Likewise.
19127 * predict.c : Likewise.
19128 * print-rtl.c : Likewise.
19129 * print-tree.c : Likewise.
19130 * profile.c : Likewise.
19131 * read-md.c : Likewise.
19132 * read-md.h : Likewise.
19133 * read-rtl.c : Likewise.
19134 * real.c : Likewise.
19135 * realmpfr.c : Likewise.
19136 * recog.c : Likewise.
19137 * ree.c : Likewise.
19138 * reg-stack.c : Likewise.
19139 * regcprop.c : Likewise.
19140 * reginfo.c : Likewise.
19141 * regrename.c : Likewise.
19142 * regstat.c : Likewise.
19143 * reload.c : Likewise.
19144 * reload1.c : Likewise.
19145 * reorg.c : Likewise.
19146 * resource.c : Likewise.
19147 * rtl-chkp.c : Likewise.
19148 * rtl.c : Likewise.
19149 * rtl.h : Likewise.
19150 * rtlanal.c : Likewise.
19151 * rtlhash.c : Likewise.
19152 * rtlhash.h : Likewise.
19153 * rtlhooks.c : Likewise.
19154 * sanopt.c : Likewise.
19155 * sched-deps.c : Likewise.
19156 * sched-ebb.c : Likewise.
19157 * sched-rgn.c : Likewise.
19158 * sched-vis.c : Likewise.
19159 * sdbout.c : Likewise.
19160 * sel-sched-dump.c : Likewise.
19161 * sel-sched-ir.c : Likewise.
19162 * sel-sched-ir.h : Likewise.
19163 * sel-sched.c : Likewise.
19164 * sese.c : Likewise.
19165 * shrink-wrap.c : Likewise.
19166 * shrink-wrap.h : Likewise.
19167 * simplify-rtx.c : Likewise.
19168 * stack-ptr-mod.c : Likewise.
19169 * statistics.c : Likewise.
19170 * stmt.c : Likewise.
19171 * stor-layout.c : Likewise.
19172 * store-motion.c : Likewise.
19173 * stringpool.c : Likewise.
19174 * symtab.c : Likewise.
19175 * target-globals.c : Likewise.
19176 * targhooks.c : Likewise.
19177 * tlink.c : Likewise.
19178 * toplev.c : Likewise.
19179 * tracer.c : Likewise.
19180 * trans-mem.c : Likewise.
19181 * tree-affine.c : Likewise.
19182 * tree-affine.h : Likewise.
19183 * tree-browser.c : Likewise.
19184 * tree-call-cdce.c : Likewise.
19185 * tree-cfg.c : Likewise.
19186 * tree-cfgcleanup.c : Likewise.
19187 * tree-chkp-opt.c : Likewise.
19188 * tree-chkp.c : Likewise.
19189 * tree-chrec.c : Likewise.
19190 * tree-complex.c : Likewise.
19191 * tree-data-ref.c : Likewise.
19192 * tree-dfa.c : Likewise.
19193 * tree-diagnostic.c : Likewise.
19194 * tree-dump.c : Likewise.
19195 * tree-eh.c : Likewise.
19196 * tree-eh.h : Likewise.
19197 * tree-emutls.c : Likewise.
19198 * tree-hasher.h : Likewise.
19199 * tree-if-conv.c : Likewise.
19200 * tree-inline.c : Likewise.
19201 * tree-inline.h : Likewise.
19202 * tree-into-ssa.c : Likewise.
19203 * tree-iterator.c : Likewise.
19204 * tree-loop-distribution.c : Likewise.
19205 * tree-nested.c : Likewise.
19206 * tree-nrv.c : Likewise.
19207 * tree-object-size.c : Likewise.
19208 * tree-outof-ssa.c : Likewise.
19209 * tree-parloops.c : Likewise.
19210 * tree-phinodes.c : Likewise.
19211 * tree-predcom.c : Likewise.
19212 * tree-pretty-print.c : Likewise.
19213 * tree-profile.c : Likewise.
19214 * tree-scalar-evolution.c : Likewise.
19215 * tree-sra.c : Likewise.
19216 * tree-ssa-address.c : Likewise.
19217 * tree-ssa-alias.c : Likewise.
19218 * tree-ssa-ccp.c : Likewise.
19219 * tree-ssa-coalesce.c : Likewise.
19220 * tree-ssa-copy.c : Likewise.
19221 * tree-ssa-copyrename.c : Likewise.
19222 * tree-ssa-dce.c : Likewise.
19223 * tree-ssa-dom.c : Likewise.
19224 * tree-ssa-dse.c : Likewise.
19225 * tree-ssa-forwprop.c : Likewise.
19226 * tree-ssa-ifcombine.c : Likewise.
19227 * tree-ssa-live.c : Likewise.
19228 * tree-ssa-loop-ch.c : Likewise.
19229 * tree-ssa-loop-im.c : Likewise.
19230 * tree-ssa-loop-ivcanon.c : Likewise.
19231 * tree-ssa-loop-ivopts.c : Likewise.
19232 * tree-ssa-loop-manip.c : Likewise.
19233 * tree-ssa-loop-niter.c : Likewise.
19234 * tree-ssa-loop-prefetch.c : Likewise.
19235 * tree-ssa-loop-unswitch.c : Likewise.
19236 * tree-ssa-loop.c : Likewise.
19237 * tree-ssa-math-opts.c : Likewise.
19238 * tree-ssa-operands.c : Likewise.
19239 * tree-ssa-phiopt.c : Likewise.
19240 * tree-ssa-phiprop.c : Likewise.
19241 * tree-ssa-pre.c : Likewise.
19242 * tree-ssa-propagate.c : Likewise.
19243 * tree-ssa-reassoc.c : Likewise.
19244 * tree-ssa-sccvn.c : Likewise.
19245 * tree-ssa-scopedtables.c : Likewise.
19246 * tree-ssa-sink.c : Likewise.
19247 * tree-ssa-strlen.c : Likewise.
19248 * tree-ssa-structalias.c : Likewise.
19249 * tree-ssa-tail-merge.c : Likewise.
19250 * tree-ssa-ter.c : Likewise.
19251 * tree-ssa-threadedge.c : Likewise.
19252 * tree-ssa-threadupdate.c : Likewise.
19253 * tree-ssa-uncprop.c : Likewise.
19254 * tree-ssa-uninit.c : Likewise.
19255 * tree-ssa.c : Likewise.
19256 * tree-ssanames.c : Likewise.
19257 * tree-stdarg.c : Likewise.
19258 * tree-streamer-in.c : Likewise.
19259 * tree-streamer-out.c : Likewise.
19260 * tree-streamer.c : Likewise.
19261 * tree-streamer.h : Likewise.
19262 * tree-switch-conversion.c : Likewise.
19263 * tree-tailcall.c : Likewise.
19264 * tree-vect-data-refs.c : Likewise.
19265 * tree-vect-generic.c : Likewise.
19266 * tree-vect-loop-manip.c : Likewise.
19267 * tree-vect-loop.c : Likewise.
19268 * tree-vect-patterns.c : Likewise.
19269 * tree-vect-slp.c : Likewise.
19270 * tree-vect-stmts.c : Likewise.
19271 * tree-vectorizer.c : Likewise.
19272 * tree-vectorizer.h : Likewise.
19273 * tree-vrp.c : Likewise.
19274 * tree.c : Likewise.
19275 * tsan.c : Likewise.
19276 * ubsan.c : Likewise.
19277 * valtrack.c : Likewise.
19278 * valtrack.h : Likewise.
19279 * value-prof.c : Likewise.
19280 * var-tracking.c : Likewise.
19281 * varasm.c : Likewise.
19282 * varpool.c : Likewise.
19284 * vmsdbgout.c : Likewise.
19285 * vtable-verify.c : Likewise.
19286 * vtable-verify.h : Likewise.
19287 * web.c : Likewise.
19288 * wide-int.cc : Likewise.
19289 * xcoffout.c : Likewise.
19290 * config/aarch64/aarch64-builtins.c : Likewise.
19291 * config/aarch64/aarch64.c : Likewise.
19292 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
19293 * config/alpha/alpha.c : Likewise.
19294 * config/arc/arc.c : Likewise.
19295 * config/arm/aarch-common.c : Likewise.
19296 * config/arm/arm-builtins.c : Likewise.
19297 * config/arm/arm-c.c : Likewise.
19298 * config/arm/arm.c : Likewise.
19299 * config/avr/avr-c.c : Likewise.
19300 * config/avr/avr-log.c : Likewise.
19301 * config/avr/avr.c : Likewise.
19302 * config/bfin/bfin.c : Likewise.
19303 * config/c6x/c6x.c : Likewise.
19304 * config/cr16/cr16.c : Likewise.
19305 * config/cris/cris.c : Likewise.
19306 * config/darwin-c.c : Likewise.
19307 * config/darwin.c : Likewise.
19308 * config/default-c.c : Likewise.
19309 * config/epiphany/epiphany.c : Likewise.
19310 * config/epiphany/mode-switch-use.c : Likewise.
19311 * config/epiphany/resolve-sw-modes.c : Likewise.
19312 * config/fr30/fr30.c : Likewise.
19313 * config/frv/frv.c : Likewise.
19314 * config/ft32/ft32.c : Likewise.
19315 * config/glibc-c.c : Likewise.
19316 * config/h8300/h8300.c : Likewise.
19317 * config/i386/i386-c.c : Likewise.
19318 * config/i386/i386.c : Likewise.
19319 * config/i386/msformat-c.c : Likewise.
19320 * config/i386/winnt-cxx.c : Likewise.
19321 * config/i386/winnt-stubs.c : Likewise.
19322 * config/i386/winnt.c : Likewise.
19323 * config/ia64/ia64-c.c : Likewise.
19324 * config/ia64/ia64.c : Likewise.
19325 * config/iq2000/iq2000.c : Likewise.
19326 * config/lm32/lm32.c : Likewise.
19327 * config/m32c/m32c-pragma.c : Likewise.
19328 * config/m32c/m32c.c : Likewise.
19329 * config/m32r/m32r.c : Likewise.
19330 * config/m68k/m68k.c : Likewise.
19331 * config/mcore/mcore.c : Likewise.
19332 * config/mep/mep-pragma.c : Likewise.
19333 * config/mep/mep.c : Likewise.
19334 * config/microblaze/microblaze-c.c : Likewise.
19335 * config/microblaze/microblaze.c : Likewise.
19336 * config/mips/mips.c : Likewise.
19337 * config/mmix/mmix.c : Likewise.
19338 * config/mn10300/mn10300.c : Likewise.
19339 * config/moxie/moxie.c : Likewise.
19340 * config/msp430/msp430-c.c : Likewise.
19341 * config/msp430/msp430.c : Likewise.
19342 * config/nds32/nds32-cost.c : Likewise.
19343 * config/nds32/nds32-fp-as-gp.c : Likewise.
19344 * config/nds32/nds32-intrinsic.c : Likewise.
19345 * config/nds32/nds32-isr.c : Likewise.
19346 * config/nds32/nds32-md-auxiliary.c : Likewise.
19347 * config/nds32/nds32-memory-manipulation.c : Likewise.
19348 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
19349 * config/nds32/nds32-predicates.c : Likewise.
19350 * config/nds32/nds32.c : Likewise.
19351 * config/nios2/nios2.c : Likewise.
19352 * config/nvptx/nvptx.c : Likewise.
19353 * config/pa/pa.c : Likewise.
19354 * config/pdp11/pdp11.c : Likewise.
19355 * config/rl78/rl78-c.c : Likewise.
19356 * config/rl78/rl78.c : Likewise.
19357 * config/rs6000/rs6000-c.c : Likewise.
19358 * config/rs6000/rs6000.c : Likewise.
19359 * config/rx/rx.c : Likewise.
19360 * config/s390/s390-c.c : Likewise.
19361 * config/s390/s390.c : Likewise.
19362 * config/sh/sh-c.c : Likewise.
19363 * config/sh/sh-mem.cc : Likewise.
19364 * config/sh/sh.c : Likewise.
19365 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
19366 * config/sh/sh_treg_combine.cc : Likewise.
19367 * config/sol2-c.c : Likewise.
19368 * config/sol2-cxx.c : Likewise.
19369 * config/sol2-stubs.c : Likewise.
19370 * config/sol2.c : Likewise.
19371 * config/sparc/sparc-c.c : Likewise.
19372 * config/sparc/sparc.c : Likewise.
19373 * config/spu/spu-c.c : Likewise.
19374 * config/spu/spu.c : Likewise.
19375 * config/stormy16/stormy16.c : Likewise.
19376 * config/tilegx/mul-tables.c : Likewise.
19377 * config/tilegx/tilegx-c.c : Likewise.
19378 * config/tilegx/tilegx.c : Likewise.
19379 * config/tilepro/mul-tables.c : Likewise.
19380 * config/tilepro/tilepro-c.c : Likewise.
19381 * config/tilepro/tilepro.c : Likewise.
19382 * config/v850/v850-c.c : Likewise.
19383 * config/v850/v850.c : Likewise.
19384 * config/vax/vax.c : Likewise.
19385 * config/visium/visium.c : Likewise.
19386 * config/vms/vms-c.c : Likewise.
19387 * config/vms/vms.c : Likewise.
19388 * config/vxworks.c : Likewise.
19389 * config/winnt-c.c : Likewise.
19390 * config/xtensa/xtensa.c : Likewise.
19392 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19395 * ipa-utils.h (warn_types_mismatch): Update prototype.
19396 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
19398 (type_mismatch_p): New function.
19399 (warn_types_mismatch): Reorg to work better on non-C++ types.
19400 (odr_types_equivalent_p): Add loc1/loc2 parameters.
19401 (add_type_duplicate): Update.
19403 2015-06-08 Tom de Vries <tom@codesourcery.com>
19405 PR rtl-optimization/66444
19406 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
19409 2015-06-08 Richard Biener <rguenther@suse.de>
19411 PR tree-optimization/66422
19412 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
19413 block after inserted gcc_unreachable.
19415 2015-06-08 Nick Clifton <nickc@redhat.com>
19417 * config/rx/rx.c (rx_function_value): Do not promote vector types.
19418 (rx_promote_function_mode): Likewise.
19419 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
19421 2015-06-08 Jakub Jelinek <jakub@redhat.com>
19423 * genattrtab.c (insn_alternatives): Change type from int *
19425 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
19426 (get_attr_value): Change type of num_alt to uint64_t.
19427 (compute_alternative_mask): Change return type from
19428 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
19429 (make_alternative_compare, mk_attr_alt): Change argument type
19430 from int to uint64_t.
19431 (simplify_test_exp): Change type of i from int to uint64_t.
19432 Shift ((uint64_t) 1) instead of 1 up.
19433 (main): Adjust oballocvec first argument from int to uint64_t.
19434 Shift ((uint64_t) 1) instead of 1 up.
19436 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
19439 * gdbhooks.py: Import sys.
19440 (intptr): New function. Replace int(...) by intptr(...).
19442 2015-06-08 Richard Biener <rguenther@suse.de>
19444 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
19445 adjustment for gaps at the end of a SLP load group properly.
19446 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
19447 all permutations we can generate.
19448 (vect_transform_slp_perm_load): Use the correct group-size.
19450 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
19452 * genmatch.c (expr::gen_transform): For conditions, guess the type
19453 from the second operand.
19455 2015-06-08 Tom de Vries <tom@codesourcery.com>
19457 PR tree-optimization/66442
19458 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
19459 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
19460 if the loop latch is not a singleton. Use
19461 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
19463 2015-06-08 Marek Polacek <polacek@redhat.com>
19466 * toplev.c (check_global_declaration): Don't warn about artificial
19469 2015-06-08 Tom de Vries <tom@codesourcery.com>
19471 PR tree-optimization/66436
19472 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
19474 * gimplify.c: Add tree-dump.h include.
19475 (gimplify_function_tree): Dump function to gimple dump file.
19476 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
19479 2015-06-08 Tom de Vries <tom@codesourcery.com>
19481 PR tree-optimization/66435
19482 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
19485 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
19487 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
19488 of ptr_type_node to not be ptr_to_node.
19489 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
19490 TREE_TYPE of pointers.
19491 * gimple-expr.c (useless_type_conversion): Reorder the check for
19492 function pointers and TYPE_CANONICAL.
19494 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
19497 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
19498 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
19499 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
19501 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
19502 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
19503 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
19504 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
19505 and non iso if unix2003.
19507 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
19509 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
19511 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
19513 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
19514 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
19515 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
19516 except.c, final.c, function.c, gcse-common.c, genemit.c,
19517 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
19518 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
19519 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
19520 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
19523 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
19525 * combine.c (combine_split_insns): Remove cast.
19526 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
19527 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
19528 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
19529 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
19530 * genemit.c (gen_split): Change return type of generated functions to
19532 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
19533 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
19534 gen_peephole2_* functions.
19535 (print_subroutine, main): Likewise.
19536 * recog.c (peephole2_optimize): Remove cast.
19537 (peep2_next_insn): Promote return type to rtx_insn.
19538 * recog.h (peep2_next_insn): Fix prototype.
19539 * rtl.h (try_split, split_insns): Likewise.
19541 2015-06-06 DJ Delorie <dj@redhat.com>
19543 * config/msp430/msp430.c (msp430_asm_integer): Support addition
19544 and subtraction too.
19546 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
19549 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
19550 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
19551 instead of Snd. Disparage Sid/z alternative with '^'.
19553 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
19555 * dwarf2out.c: Remove deferred_locations*.
19556 (dwarf2_debug_hooks): Add early_finish hook.
19557 Remove global_decl hook.
19558 Add early_global_decl and late_global_decl hook.
19559 New global early_dwarf.
19560 New structure set_early_dwarf.
19561 (output_die): Indicate whether a DIE was generated early
19562 when generating assembly with -dA.
19563 (struct limbo_die_struct): Document created_for field.
19564 Remove file_table_last_lookup.
19565 (remove_AT): Return TRUE if successful.
19566 (remove_child_TAG): Clear die_parent.
19567 (reparent_child): New function abstracted from...
19568 (splice_child_die): ...here.
19569 (new_die): ICE if a DIE ends up in limbo too late.
19571 (defer_location): Remove.
19572 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
19573 (fill_variable_array_bounds): New.
19574 (decl_start_label): Call fill_variable_array_bounds.
19575 (gen_formal_parameter_die): Rewrite to reuse previously generated
19577 (gen_subprogram_die): Same.
19578 (gen_variable_die): Same.
19579 (gen_const_die): Same.
19580 (gen_label_die): Same.
19581 (gen_lexical_block_die): Same.
19582 (decl_will_get_specification_p): New.
19583 (local_function_static): New.
19584 (gen_struct_or_union_type_die): Fill in variable-length fields.
19585 (gen_typedef_die): Fill in variable-length typedefs.
19586 (gen_tagged_type_die): Gracefully return on error_mark_node.
19587 Handle re-entrancy.
19588 (gen_type_die_with_usage): Handle variable-length types.
19589 Remove duplicate code for ARRAY_TYPE case.
19590 (process_scope_var): Only process imported modules during early
19592 (dwarf2out_early_global_decl): New.
19593 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
19594 (dwarf2out_type_decl): Set early_dwarf while calling
19596 (dwarf2out_decl): Verify that we did not recreate a previously
19598 Do not return on DECL_EXTERNALs in VAR_DECLs.
19599 Abstract some code to local_function_static.
19600 (lookup_filename): Remove use of file_table_last_lookup.
19601 Gracefully exit on missing file_name.
19602 (dwarf2out_finish): Verify limbo list.
19603 Remove deferred_locations_list use.
19604 Move deferred_asm_name and limbo flushing to...
19605 (dwarf2out_early_finish): ...here. New.
19606 (dwarf2out_c_finalize): Remove set of deferred_location_list,
19607 deferred_asm_name, and file_table_last_lookup.
19608 * cgraph.h (referred_to_p): Add default argument.
19609 * cgraphunit.c (referred_to_p): Add and handle include_self
19611 (analyze_functions): Add first_time argument.
19612 Call check_global_declaration for all symbols.
19613 Call late_global_decl for nodes for moribund nodes.
19614 (finalize_compilation_unit): Add new argument to
19616 Call early_global_decl for functions.
19617 Call early_finish debug hook.
19618 * dbxout.c (dbxout_early_global_decl): New.
19619 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
19620 (dbx_debug_hooks): Add new hooks.
19621 (xcoff_debug_hooks): Same.
19622 * debug.c (do_nothing_debug_hooks): Add early_finish field.
19623 Add early and late debug hooks.
19624 Remove global_decl hook.
19625 * debug.h (struct gcc_debug_hooks): Add early_finish,
19626 early_global_decl, and late_global_decl fields.
19627 Remove global_decl field.
19628 Document gcc_debug_hooks.
19629 * gengtype.c (output_typename): Remove.
19630 * godump.c (go_early_global_decl): New.
19631 (go_late_global_decl): New.
19632 (go_global_decl): Remove.
19633 (dump_go_spec_init): Remove global_decl. Add
19634 {early,late}_global_decl.
19635 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
19636 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
19637 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
19638 (write_global_declarations): Remove.
19639 (global_decl_processing): New.
19640 * langhooks.h (struct lang_hooks_for_decls): Remove
19641 final_write_globals field.
19642 Add post_compilation_parsing_cleanups field.
19643 * passes.c (rest_of_decl_compilation): Call early_global_decl.
19644 * sdbout.c: Add early and late_global_decl hooks. Remove
19645 sdbout_global_decl hook.
19646 Add early_finish field for sdb_debug_hooks.
19647 (sdbout_global_decl): Remove.
19648 (sdbout_early_global_decl): New.
19649 (sdbout_late_global_decl): New.
19650 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
19651 * toplev.c (check_global_declaration): Rename from
19652 check_global_declaration_1.
19653 Adapt to use symtab infrastructure.
19654 (check_global_declarations): Remove.
19655 (emit_debug_global_declarations): Remove.
19656 (compile_file): Remove call to final_write_globals langhook.
19657 Run the actual compilation process.
19658 Perform any post compilation parser cleanups.
19659 Generate late debug info.
19660 * toplev.h (check_global_declaration): New.
19661 (check_global_declaration_1): Remove.
19662 (check_global_declarations): Remove.
19663 (write_global_declarations): Remove.
19664 (emit_debug_global_declarations): Remove.
19665 (global_decl_processing): New.
19666 * tree-core.h (struct tree_block): Add DIE field.
19667 * tree.h (BLOCK_DIE): New.
19668 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
19670 (vmsdbgout_early_global_decl): New.
19671 (vmsdbgout_late_global_decl): New.
19672 Add early_finish debug hook field to vmsdbg_debug_hooks.
19673 Remove vmsdbgout_decl to vmsdbgout_function_decl.
19674 Add early and late_global_decl debug hooks.
19676 2015-06-05 Julian Brown <julian@codesourcery.com>
19677 Sandra Loosemore <sandra@codesourcery.com>
19679 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
19680 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
19681 to print-sysroot-suffix.sh script.
19683 2015-06-05 Tom de Vries <tom@codesourcery.com>
19685 merge from gomp4 branch:
19686 2015-05-28 Tom de Vries <tom@codesourcery.com>
19688 PR tree-optimization/65443
19689 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
19690 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
19691 (try_transform_to_exit_first_loop_alt): New function.
19692 (transform_to_exit_first_loop): Use
19693 try_transform_to_exit_first_loop_alt.
19695 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
19697 * builtins.c (expand_builtin_atomic_compare_exchange): Call
19698 emit_cmp_and_jump_insns with the mode of target.
19700 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19702 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
19704 2015-06-04 DJ Delorie <dj@redhat.com>
19706 * config/msp430/msp430.md (movsi_s): New. Special case for
19707 storing a 20-bit symbol into a 32-bit register.
19708 * config/msp430/msp430.c (msp430_subreg): Add support for it.
19709 * config/msp430/predicates.md (msp430_symbol_operand): New.
19711 2015-06-04 Sriraman Tallam <tmsriram@google.com>
19713 * c-family/c-common.c (noplt): New attribute.
19714 (handle_noplt_attribute): New handler.
19715 * calls.c (prepare_call_address): Check for noplt
19717 * config/i386/i386.c (ix86_expand_call): Check
19718 for noplt attribute.
19719 (ix86_nopic_noplt_attribute_p): New function.
19720 (ix86_output_call_insn): Output indirect call for non-pic
19722 * doc/extend.texi (noplt): Document new attribute.
19723 * doc/invoke.texi: Document new attribute.
19725 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
19727 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
19728 real.h, and fixed-value.h when included in host source files.
19729 * double-int.h: Remove redundant #includes listed above.
19730 * fixed-value.h: Likewise.
19731 * real.h: Likewise.
19732 * wide-int.h: Likewise.
19733 * inchash.h: Likewise.
19734 * rtl.h: Add some include files When included from a generator file.
19735 * target.h: Remove wide-int.h and insn-modes.h from the include list.
19736 * internal-fn.h: Don't include coretypes.h.
19737 * alias.c: Adjust includes for restructured coretypes.h.
19738 * asan.c: Likewise.
19739 * attribs.c: Likewise.
19740 * auto-inc-dec.c: Likewise.
19741 * auto-profile.c: Likewise.
19742 * bb-reorder.c: Likewise.
19743 * bt-load.c: Likewise.
19744 * builtins.c: Likewise.
19745 * caller-save.c: Likewise.
19746 * calls.c: Likewise.
19747 * ccmp.c: Likewise.
19749 * cfganal.c: Likewise.
19750 * cfgbuild.c: Likewise.
19751 * cfgcleanup.c: Likewise.
19752 * cfgexpand.c: Likewise.
19753 * cfghooks.c: Likewise.
19754 * cfgloop.c: Likewise.
19755 * cfgloop.h: Likewise.
19756 * cfgloopanal.c: Likewise.
19757 * cfgloopmanip.c: Likewise.
19758 * cfgrtl.c: Likewise.
19759 * cgraph.c: Likewise.
19760 * cgraphbuild.c: Likewise.
19761 * cgraphclones.c: Likewise.
19762 * cgraphunit.c: Likewise.
19763 * cilk-common.c: Likewise.
19764 * combine-stack-adj.c: Likewise.
19765 * combine.c: Likewise.
19766 * compare-elim.c: Likewise.
19767 * convert.c: Likewise.
19768 * coverage.c: Likewise.
19769 * cppbuiltin.c: Likewise.
19770 * cprop.c: Likewise.
19772 * cselib.c: Likewise.
19773 * data-streamer-in.c: Likewise.
19774 * data-streamer-out.c: Likewise.
19775 * data-streamer.c: Likewise.
19776 * dbxout.c: Likewise.
19779 * debug.c: Likewise.
19780 * df-core.c: Likewise.
19781 * df-problems.c: Likewise.
19782 * df-scan.c: Likewise.
19785 * dojump.c: Likewise.
19786 * dominance.c: Likewise.
19787 * domwalk.c: Likewise.
19788 * double-int.c: Likewise.
19790 * dumpfile.c: Likewise.
19791 * dwarf2asm.c: Likewise.
19792 * dwarf2cfi.c: Likewise.
19793 * dwarf2out.c: Likewise.
19794 * dwarf2out.h: Likewise.
19795 * emit-rtl.c: Likewise.
19796 * et-forest.c: Likewise.
19797 * except.c: Likewise.
19798 * explow.c: Likewise.
19799 * expmed.c: Likewise.
19800 * expr.c: Likewise.
19801 * final.c: Likewise.
19802 * fixed-value.c: Likewise.
19803 * fold-const.c: Likewise.
19804 * function.c: Likewise.
19805 * fwprop.c: Likewise.
19806 * gcc-plugin.h: Likewise.
19807 * gcse.c: Likewise.
19808 * generic-match-head.c: Likewise.
19809 * ggc-page.c: Likewise.
19810 * gimple-builder.c: Likewise.
19811 * gimple-expr.c: Likewise.
19812 * gimple-fold.c: Likewise.
19813 * gimple-iterator.c: Likewise.
19814 * gimple-low.c: Likewise.
19815 * gimple-match-head.c: Likewise.
19816 * gimple-pretty-print.c: Likewise.
19817 * gimple-ssa-isolate-paths.c: Likewise.
19818 * gimple-ssa-strength-reduction.c: Likewise.
19819 * gimple-streamer-in.c: Likewise.
19820 * gimple-streamer-out.c: Likewise.
19821 * gimple-streamer.h: Likewise.
19822 * gimple-walk.c: Likewise.
19823 * gimple.c: Likewise.
19824 * gimplify-me.c: Likewise.
19825 * gimplify.c: Likewise.
19826 * godump.c: Likewise.
19827 * graph.c: Likewise.
19828 * graphite-blocking.c: Likewise.
19829 * graphite-dependences.c: Likewise.
19830 * graphite-interchange.c: Likewise.
19831 * graphite-isl-ast-to-gimple.c: Likewise.
19832 * graphite-optimize-isl.c: Likewise.
19833 * graphite-poly.c: Likewise.
19834 * graphite-scop-detection.c: Likewise.
19835 * graphite-sese-to-poly.c: Likewise.
19836 * graphite.c: Likewise.
19837 * haifa-sched.c: Likewise.
19838 * hooks.h: Likewise.
19839 * hw-doloop.c: Likewise.
19840 * ifcvt.c: Likewise.
19841 * incpath.c: Likewise.
19842 * init-regs.c: Likewise.
19843 * internal-fn.c: Likewise.
19844 * ipa-chkp.c: Likewise.
19845 * ipa-comdats.c: Likewise.
19846 * ipa-cp.c: Likewise.
19847 * ipa-devirt.c: Likewise.
19848 * ipa-icf-gimple.c: Likewise.
19849 * ipa-icf.c: Likewise.
19850 * ipa-inline-analysis.c: Likewise.
19851 * ipa-inline-transform.c: Likewise.
19852 * ipa-inline.c: Likewise.
19853 * ipa-polymorphic-call.c: Likewise.
19854 * ipa-profile.c: Likewise.
19855 * ipa-prop.c: Likewise.
19856 * ipa-pure-const.c: Likewise.
19857 * ipa-ref.c: Likewise.
19858 * ipa-reference.c: Likewise.
19859 * ipa-split.c: Likewise.
19860 * ipa-utils.c: Likewise.
19861 * ipa-visibility.c: Likewise.
19863 * ira-build.c: Likewise.
19864 * ira-color.c: Likewise.
19865 * ira-conflicts.c: Likewise.
19866 * ira-costs.c: Likewise.
19867 * ira-emit.c: Likewise.
19868 * ira-lives.c: Likewise.
19870 * jump.c: Likewise.
19871 * langhooks.c: Likewise.
19873 * loop-doloop.c: Likewise.
19874 * loop-init.c: Likewise.
19875 * loop-invariant.c: Likewise.
19876 * loop-iv.c: Likewise.
19877 * loop-unroll.c: Likewise.
19878 * lower-subreg.c: Likewise.
19879 * lra-assigns.c: Likewise.
19880 * lra-coalesce.c: Likewise.
19881 * lra-constraints.c: Likewise.
19882 * lra-eliminations.c: Likewise.
19883 * lra-lives.c: Likewise.
19884 * lra-remat.c: Likewise.
19885 * lra-spills.c: Likewise.
19887 * lto-cgraph.c: Likewise.
19888 * lto-compress.c: Likewise.
19889 * lto-opts.c: Likewise.
19890 * lto-section-in.c: Likewise.
19891 * lto-section-out.c: Likewise.
19892 * lto-streamer-in.c: Likewise.
19893 * lto-streamer-out.c: Likewise.
19894 * lto-streamer.c: Likewise.
19896 * mode-switching.c: Likewise.
19897 * modulo-sched.c: Likewise.
19898 * omega.c: Likewise.
19899 * omp-low.c: Likewise.
19900 * optabs.c: Likewise.
19901 * opts-global.c: Likewise.
19902 * passes.c: Likewise.
19903 * plugin.c: Likewise.
19904 * postreload-gcse.c: Likewise.
19905 * postreload.c: Likewise.
19906 * predict.c: Likewise.
19907 * print-rtl.c: Likewise.
19908 * print-tree.c: Likewise.
19909 * profile.c: Likewise.
19910 * real.c: Likewise.
19911 * realmpfr.c: Likewise.
19912 * realmpfr.h: Likewise.
19913 * recog.c: Likewise.
19915 * reg-stack.c: Likewise.
19916 * regcprop.c: Likewise.
19917 * reginfo.c: Likewise.
19918 * regrename.c: Likewise.
19919 * regs.h: Likewise.
19920 * regstat.c: Likewise.
19921 * reload.c: Likewise.
19922 * reload1.c: Likewise.
19923 * reorg.c: Likewise.
19924 * resource.c: Likewise.
19925 * rtl-chkp.c: Likewise.
19926 * rtlanal.c: Likewise.
19927 * rtlhooks.c: Likewise.
19928 * sanopt.c: Likewise.
19929 * sched-deps.c: Likewise.
19930 * sched-ebb.c: Likewise.
19931 * sched-rgn.c: Likewise.
19932 * sched-vis.c: Likewise.
19933 * sdbout.c: Likewise.
19934 * sel-sched-dump.c: Likewise.
19935 * sel-sched-ir.c: Likewise.
19936 * sel-sched.c: Likewise.
19937 * sese.c: Likewise.
19938 * shrink-wrap.c: Likewise.
19939 * shrink-wrap.h: Likewise.
19940 * simplify-rtx.c: Likewise.
19941 * stack-ptr-mod.c: Likewise.
19942 * statistics.c: Likewise.
19943 * stmt.c: Likewise.
19944 * stor-layout.c: Likewise.
19945 * store-motion.c: Likewise.
19946 * stringpool.c: Likewise.
19947 * symtab.c: Likewise.
19948 * target-globals.c: Likewise.
19949 * targhooks.c: Likewise.
19950 * toplev.c: Likewise.
19951 * tracer.c: Likewise.
19952 * trans-mem.c: Likewise.
19953 * tree-affine.c: Likewise.
19954 * tree-affine.h: Likewise.
19955 * tree-browser.c: Likewise.
19956 * tree-call-cdce.c: Likewise.
19957 * tree-cfg.c: Likewise.
19958 * tree-cfgcleanup.c: Likewise.
19959 * tree-chkp-opt.c: Likewise.
19960 * tree-chkp.c: Likewise.
19961 * tree-chrec.c: Likewise.
19962 * tree-complex.c: Likewise.
19963 * tree-data-ref.c: Likewise.
19964 * tree-dfa.c: Likewise.
19965 * tree-diagnostic.c: Likewise.
19966 * tree-dump.c: Likewise.
19967 * tree-eh.c: Likewise.
19968 * tree-emutls.c: Likewise.
19969 * tree-if-conv.c: Likewise.
19970 * tree-inline.c: Likewise.
19971 * tree-into-ssa.c: Likewise.
19972 * tree-iterator.c: Likewise.
19973 * tree-loop-distribution.c: Likewise.
19974 * tree-nested.c: Likewise.
19975 * tree-nrv.c: Likewise.
19976 * tree-object-size.c: Likewise.
19977 * tree-outof-ssa.c: Likewise.
19978 * tree-parloops.c: Likewise.
19979 * tree-phinodes.c: Likewise.
19980 * tree-predcom.c: Likewise.
19981 * tree-pretty-print.c: Likewise.
19982 * tree-pretty-print.h: Likewise.
19983 * tree-profile.c: Likewise.
19984 * tree-scalar-evolution.c: Likewise.
19985 * tree-sra.c: Likewise.
19986 * tree-ssa-address.c: Likewise.
19987 * tree-ssa-alias.c: Likewise.
19988 * tree-ssa-ccp.c: Likewise.
19989 * tree-ssa-coalesce.c: Likewise.
19990 * tree-ssa-copy.c: Likewise.
19991 * tree-ssa-copyrename.c: Likewise.
19992 * tree-ssa-dce.c: Likewise.
19993 * tree-ssa-dom.c: Likewise.
19994 * tree-ssa-dse.c: Likewise.
19995 * tree-ssa-forwprop.c: Likewise.
19996 * tree-ssa-ifcombine.c: Likewise.
19997 * tree-ssa-live.c: Likewise.
19998 * tree-ssa-loop-ch.c: Likewise.
19999 * tree-ssa-loop-im.c: Likewise.
20000 * tree-ssa-loop-ivcanon.c: Likewise.
20001 * tree-ssa-loop-ivopts.c: Likewise.
20002 * tree-ssa-loop-manip.c: Likewise.
20003 * tree-ssa-loop-niter.c: Likewise.
20004 * tree-ssa-loop-prefetch.c: Likewise.
20005 * tree-ssa-loop-unswitch.c: Likewise.
20006 * tree-ssa-loop.c: Likewise.
20007 * tree-ssa-loop.h: Likewise.
20008 * tree-ssa-math-opts.c: Likewise.
20009 * tree-ssa-operands.c: Likewise.
20010 * tree-ssa-phiopt.c: Likewise.
20011 * tree-ssa-phiprop.c: Likewise.
20012 * tree-ssa-pre.c: Likewise.
20013 * tree-ssa-propagate.c: Likewise.
20014 * tree-ssa-reassoc.c: Likewise.
20015 * tree-ssa-sccvn.c: Likewise.
20016 * tree-ssa-scopedtables.c: Likewise.
20017 * tree-ssa-sink.c: Likewise.
20018 * tree-ssa-strlen.c: Likewise.
20019 * tree-ssa-structalias.c: Likewise.
20020 * tree-ssa-tail-merge.c: Likewise.
20021 * tree-ssa-ter.c: Likewise.
20022 * tree-ssa-threadedge.c: Likewise.
20023 * tree-ssa-threadupdate.c: Likewise.
20024 * tree-ssa-uncprop.c: Likewise.
20025 * tree-ssa-uninit.c: Likewise.
20026 * tree-ssa.c: Likewise.
20027 * tree-ssanames.c: Likewise.
20028 * tree-stdarg.c: Likewise.
20029 * tree-streamer-in.c: Likewise.
20030 * tree-streamer-out.c: Likewise.
20031 * tree-streamer.c: Likewise.
20032 * tree-switch-conversion.c: Likewise.
20033 * tree-tailcall.c: Likewise.
20034 * tree-vect-data-refs.c: Likewise.
20035 * tree-vect-generic.c: Likewise.
20036 * tree-vect-loop-manip.c: Likewise.
20037 * tree-vect-loop.c: Likewise.
20038 * tree-vect-patterns.c: Likewise.
20039 * tree-vect-slp.c: Likewise.
20040 * tree-vect-stmts.c: Likewise.
20041 * tree-vectorizer.c: Likewise.
20042 * tree-vrp.c: Likewise.
20043 * tree.c: Likewise.
20044 * tsan.c: Likewise.
20045 * ubsan.c: Likewise.
20046 * valtrack.c: Likewise.
20047 * value-prof.c: Likewise.
20048 * var-tracking.c: Likewise.
20049 * varasm.c: Likewise.
20050 * varpool.c: Likewise.
20051 * vmsdbgout.c: Likewise.
20052 * vtable-verify.c: Likewise.
20054 * wide-int-print.cc: Likewise.
20055 * wide-int-print.h: Likewise.
20056 * wide-int.cc: Likewise.
20057 * xcoffout.c: Likewise.
20058 * config/aarch64/aarch64-builtins.c: Likewise.
20059 * config/aarch64/aarch64.c: Likewise.
20060 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20061 * config/alpha/alpha.c: Likewise.
20062 * config/arc/arc.c: Likewise.
20063 * config/arm/aarch-common.c: Likewise.
20064 * config/arm/arm-builtins.c: Likewise.
20065 * config/arm/arm-c.c: Likewise.
20066 * config/arm/arm.c: Likewise.
20067 * config/avr/avr-c.c: Likewise.
20068 * config/avr/avr-log.c: Likewise.
20069 * config/avr/avr.c: Likewise.
20070 * config/bfin/bfin.c: Likewise.
20071 * config/c6x/c6x.c: Likewise.
20072 * config/cr16/cr16.c: Likewise.
20073 * config/cris/cris.c: Likewise.
20074 * config/darwin-c.c: Likewise.
20075 * config/darwin.c: Likewise.
20076 * config/default-c.c: Likewise.
20077 * config/epiphany/epiphany.c: Likewise.
20078 * config/epiphany/mode-switch-use.c: Likewise.
20079 * config/epiphany/resolve-sw-modes.c: Likewise.
20080 * config/fr30/fr30.c: Likewise.
20081 * config/frv/frv.c: Likewise.
20082 * config/ft32/ft32.c: Likewise.
20083 * config/glibc-c.c: Likewise.
20084 * config/h8300/h8300.c: Likewise.
20085 * config/i386/i386-c.c: Likewise.
20086 * config/i386/i386.c: Likewise.
20087 * config/i386/msformat-c.c: Likewise.
20088 * config/i386/winnt-cxx.c: Likewise.
20089 * config/i386/winnt-stubs.c: Likewise.
20090 * config/i386/winnt.c: Likewise.
20091 * config/ia64/ia64-c.c: Likewise.
20092 * config/ia64/ia64.c: Likewise.
20093 * config/iq2000/iq2000.c: Likewise.
20094 * config/lm32/lm32.c: Likewise.
20095 * config/m32c/m32c-pragma.c: Likewise.
20096 * config/m32c/m32c.c: Likewise.
20097 * config/m32r/m32r.c: Likewise.
20098 * config/m68k/m68k.c: Likewise.
20099 * config/mcore/mcore.c: Likewise.
20100 * config/mep/mep-pragma.c: Likewise.
20101 * config/mep/mep.c: Likewise.
20102 * config/microblaze/microblaze-c.c: Likewise.
20103 * config/microblaze/microblaze.c: Likewise.
20104 * config/mips/mips.c: Likewise.
20105 * config/mmix/mmix.c: Likewise.
20106 * config/mn10300/mn10300.c: Likewise.
20107 * config/moxie/moxie.c: Likewise.
20108 * config/msp430/msp430-c.c: Likewise.
20109 * config/msp430/msp430.c: Likewise.
20110 * config/nds32/nds32-cost.c: Likewise.
20111 * config/nds32/nds32-fp-as-gp.c: Likewise.
20112 * config/nds32/nds32-intrinsic.c: Likewise.
20113 * config/nds32/nds32-isr.c: Likewise.
20114 * config/nds32/nds32-md-auxiliary.c: Likewise.
20115 * config/nds32/nds32-memory-manipulation.c: Likewise.
20116 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20117 * config/nds32/nds32-predicates.c: Likewise.
20118 * config/nds32/nds32.c: Likewise.
20119 * config/nios2/nios2.c: Likewise.
20120 * config/nvptx/nvptx.c: Likewise.
20121 * config/pa/pa.c: Likewise.
20122 * config/pdp11/pdp11.c: Likewise.
20123 * config/rl78/rl78-c.c: Likewise.
20124 * config/rl78/rl78.c: Likewise.
20125 * config/rs6000/rs6000-c.c: Likewise.
20126 * config/rs6000/rs6000.c: Likewise.
20127 * config/rx/rx.c: Likewise.
20128 * config/s390/s390-c.c: Likewise.
20129 * config/s390/s390.c: Likewise.
20130 * config/sh/sh-c.c: Likewise.
20131 * config/sh/sh-mem.cc: Likewise.
20132 * config/sh/sh.c: Likewise.
20133 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20134 * config/sh/sh_treg_combine.cc: Likewise.
20135 * config/sol2-c.c: Likewise.
20136 * config/sol2-cxx.c: Likewise.
20137 * config/sol2-stubs.c: Likewise.
20138 * config/sol2.c: Likewise.
20139 * config/sparc/sparc-c.c: Likewise.
20140 * config/sparc/sparc.c: Likewise.
20141 * config/spu/spu-c.c: Likewise.
20142 * config/spu/spu.c: Likewise.
20143 * config/stormy16/stormy16.c: Likewise.
20144 * config/tilegx/mul-tables.c: Likewise.
20145 * config/tilegx/tilegx-c.c: Likewise.
20146 * config/tilegx/tilegx.c: Likewise.
20147 * config/tilepro/mul-tables.c: Likewise.
20148 * config/tilepro/tilepro-c.c: Likewise.
20149 * config/tilepro/tilepro.c: Likewise.
20150 * config/v850/v850-c.c: Likewise.
20151 * config/v850/v850.c: Likewise.
20152 * config/vax/vax.c: Likewise.
20153 * config/visium/visium.c: Likewise.
20154 * config/vms/vms-c.c: Likewise.
20155 * config/vms/vms.c: Likewise.
20156 * config/vxworks.c: Likewise.
20157 * config/winnt-c.c: Likewise.
20158 * config/xtensa/xtensa.c: Likewise.
20159 * common/config/bfin/bfin-common.c: Likewise.
20161 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
20163 * tree.h (tree_code_for_canonical_type_merging): New function.
20164 * tree.c (gimple_canonical_types_compatible_p): Use
20165 tree_code_for_canonical_type_merging..
20167 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20171 * doc/tm.texi: Regenerate.
20172 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
20173 * target.def (TARGET_RELAXED_ORDERING): Likewise.
20174 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
20175 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
20176 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
20177 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
20178 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
20179 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
20180 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
20182 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20184 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
20185 register fma steering pass.
20186 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
20187 AARCH64_TUNE_FMA_STEERING.
20189 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
20191 * tree.c (verify_type_variant): Verify that type and variant is
20193 (gimple_canonical_types_compatible_p): Look for main variants.
20195 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
20197 * config.gcc (powerpc*-*-*): Add support for a new configure
20198 option --with-advance-toolchain=<xxx> which overrides using the
20199 default header files, libraries and dynamic linker.
20201 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
20202 specs to support the configure --with-advance-toolchain=<xxx>
20204 (INCLUDE_EXTRA_SPEC): Likewise.
20205 (LINK_OS_EXTRA_SPEC32): Likewise.
20206 (LINK_OK_EXTRA_SPEC64): Likewise.
20207 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
20208 (DYNAMIC_LINKER_PREFIX): Likewise.
20209 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
20211 (GLIBC_DYNAMIC_LINKER32): Likewise.
20212 (GLIBC_DYNAMIC_LINKER64): Likewise.
20213 (LINK_OS_LINUX_SPEC32): Likewise.
20214 (LINK_OS_LINUX_SPEC64): Likewise.
20216 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
20217 configuration option.
20219 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
20222 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
20223 to determine current function ABI.
20224 (ix86_function_value_regno_p): Ditto.
20226 2015-06-03 Martin Liska <mliska@suse.cz>
20228 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
20229 * bitmap.h (struct bitmap_usage): Likewise.
20230 * ggc-common.c (struct ggc_usage): Likewise.
20231 * mem-stats.h (struct mem_location): Likewise.
20232 (struct mem_usage): Likewise.
20233 * vec.c (struct vec_usage): Likewise.
20235 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
20237 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
20240 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
20242 * doc/plugins.texi (enum plugin_event): New event.
20243 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
20244 and PLUGIN_FINISH_FUNCTION.
20245 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
20246 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
20248 2015-06-03 Richard Biener <rguenther@suse.de>
20250 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
20251 compute GROUP_GAP for the first element.
20252 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
20255 2015-06-03 Nick Clifton <nickc@redhat.com>
20257 * config/rl78/rl78-real.md: Add peepholes to avoid a register
20258 copy when calling a function.
20259 * config/rl78/rl78.c (need_to_save): Do not push the frame
20260 pointer in an interrupt handler prologue if it is never used.
20262 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20264 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
20266 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
20268 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
20269 reference when cloning alias node.
20271 2015-06-03 Martin Liska <mliska@suse.cz>
20273 * alloc-pool.h (struct pool_usage): Correct space padding.
20274 * ggc-page.c (ggc_print_statistics): Align columns in a report.
20275 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
20276 * tree.c (dump_tree_statistics): Align columns in a report.
20278 2015-06-03 Martin Liska <mliska@suse.cz>
20280 * alloc-pool.c (allocate_pool_descriptor): Remove.
20281 (struct pool_output_info): Likewise.
20282 (print_alloc_pool_statistics): Likewise.
20283 (dump_alloc_pool_statistics): Likewise.
20284 * alloc-pool.h (struct pool_usage): New struct.
20285 (pool_allocator::initialize): Change usage of memory statistics
20286 to a new interface.
20287 (pool_allocator::release): Likewise.
20288 (pool_allocator::allocate): Likewise.
20289 (pool_allocator::remove): Likewise.
20290 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
20291 for a pool allocator.
20292 * mem-stats.h (struct mem_location): Add new ctor.
20293 (struct mem_usage): Add counter for number of
20295 (mem_alloc_description::register_descriptor): New overload of
20296 * mem-stats.h (mem_location::to_string): New function.
20297 * bitmap.h (struct bitmap_usage): Use this new function.
20298 * ggc-common.c (struct ggc_usage): Likewise.
20301 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
20303 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
20304 of GCC_INSN_FLAGS_H block.
20306 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
20308 * explow.c (plus_constant): Update check after force_const_mem call
20309 to see if the value returned is not a NULL_RTX.
20311 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
20313 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
20314 remove instumentation thunks calling reachable functions.
20315 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
20316 * lto/lto-partition.c (privatize_symbol_name_1): New.
20317 (privatize_symbol_name): Privatize both decl and orig_decl
20318 names for instrumented functions.
20319 * cgraph.c (cgraph_node::verify_node): Add transparent
20320 alias chain check for instrumented node.
20322 2015-06-03 Marek Polacek <polacek@redhat.com>
20326 * tree.c (attribute_value_equal): Handle attribute format.
20327 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
20329 2015-06-03 Richard Biener <rguenther@suse.de>
20331 PR tree-optimization/63916
20332 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
20333 Forward-propagate non-invariant addresses by splicing their
20334 reference ops if the result isn't going to be used by PRE.
20335 (vn_reference_lookup_3): Remove pointless assert.
20337 2015-06-03 Richard Biener <rguenther@suse.de>
20339 PR tree-optimization/66375
20340 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
20341 add to the evolution before following SSA edges.
20343 2015-06-03 Bin Cheng <bin.cheng@arm.com>
20345 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
20346 (dump_use, dump_cand, find_induction_variables): Pass new argument
20348 (record_use): Preserve the ssa name information in IV.
20350 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
20352 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
20354 (add_mode_tests): Don't add mode tests if the predicate only
20355 accepts scalar constant integers. Otherwise, allow the mode
20356 of "op" to be VOIDmode if the predicate does accept such integers.
20358 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
20361 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
20362 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
20363 (aarch64_secondary_reload): Likewise
20364 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
20366 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
20369 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
20370 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20373 * cprop.c (try_replace_reg): Check cost of constants before propagating.
20375 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20377 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
20378 provide access to the IBM extended double floating point mode if
20379 long double is IEEE 128-bit floating point.
20380 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
20381 point if long double is the IBM extended double type.
20383 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
20384 enable adding IEEE 128-bit floating point support.
20385 (-mfloat128-software): Likewise.
20386 (-mfloat128-sw): Likewise.
20388 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
20389 128-bit floating point types to occupy any register if
20390 -mlong-double-64. Do not allow use of IFmode/KFmode unless
20391 -mfloat128-software is enabled.
20392 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
20394 (rs6000_option_override_internal): Add -mfloat128-* support.
20395 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
20397 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
20398 and float128 type nodes.
20399 (ieee128_float_type_node): Likewise.
20400 (ibm128_float_type_node): Likewise.
20402 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
20405 * config/aarch64/geniterators.sh: Rewrite in awk.
20407 2015-06-02 Martin Liska <mliska@suse.cz>
20409 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
20410 values to avoid -Wmaybe-uninitialized errors.
20412 2015-06-02 Richard Biener <rguenther@suse.de>
20415 * dwarf2out.c (lookup_context_die): New function.
20416 (resolve_addr): Avoid forcing a full DIE for the
20417 target of a DW_TAG_GNU_call_site during late compilation.
20418 Instead create a stub DIE without a type if we have a
20419 context DIE present.
20421 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
20423 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
20425 2015-06-02 Bin Cheng <bin.cheng@arm.com>
20427 PR tree-optimization/48052
20428 * cfgloop.h (struct control_iv): New.
20429 (struct loop): New field control_ivs.
20430 * tree-ssa-loop-niter.c : Include "stor-layout.h".
20431 (number_of_iterations_lt): Set no_overflow information.
20432 (number_of_iterations_exit): Init control iv in niter struct.
20433 (record_control_iv): New.
20434 (estimate_numbers_of_iterations_loop): Call record_control_iv.
20435 (loop_exits_before_overflow): New. Interface factored out of
20436 scev_probably_wraps_p.
20437 (scev_probably_wraps_p): Factor loop niter related code into
20438 loop_exits_before_overflow.
20439 (free_numbers_of_iterations_estimates_loop): Free control ivs.
20440 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
20442 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
20444 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
20445 the target doesn't belong to the current function.
20447 2015-06-02 Marek Polacek <polacek@redhat.com>
20449 PR middle-end/66345
20450 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
20451 get_maxval_strlen does not produce an INTEGER_CST.
20453 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
20455 * config/arc/constraints.md: Use lower-case names in match_code.
20456 * config/mmix/constraints.md: Likewise.
20458 2015-06-02 Richard Biener <rguenther@suse.de>
20460 PR tree-optimization/65961
20461 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
20462 check and clarify dump message.
20463 (vect_build_slp_tree): If all children are built up from scalars
20464 build up the parent from scalars instead.
20465 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
20467 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
20470 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
20471 instead of print ... .
20473 2015-06-02 Alan Modra <amodra@gmail.com>
20475 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
20478 2015-06-02 Bin Cheng <bin.cheng@arm.com>
20480 PR tree-optimization/52563
20481 PR tree-optimization/62173
20482 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
20483 (alloc_iv, set_iv): New parameter.
20484 (determine_biv_step): Delete.
20485 (find_bivs): Inline original determine_biv_step. Pass new
20486 argument to set_iv.
20487 (idx_find_step): Use no_overflow information for conversion.
20488 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
20489 resolve_mixers handle folded_casts.
20490 (instantiate_scev_name): Change bool parameter to bool pointer.
20491 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
20492 (instantiate_array_ref, instantiate_scev_not): Ditto.
20493 (instantiate_scev_3, instantiate_scev_2): Ditto.
20494 (instantiate_scev_1, instantiate_scev_r): Ditto.
20495 (instantiate_scev_convert, ): Change parameter. Pass argument
20496 to chrec_convert_aggressive.
20497 (instantiate_scev): Change argument.
20498 (resolve_mixers): New parameter and set it.
20499 (scev_const_prop): New argument.
20500 * tree-scalar-evolution.h (resolve_mixers): New parameter.
20501 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
20503 (chrec_convert): New parameter. Move definition below.
20504 (chrec_convert_aggressive): New parameter and set it. Call
20505 convert_affine_scev.
20506 * tree-chrec.h (chrec_convert): New parameter.
20507 (chrec_convert_aggressive): Ditto.
20509 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
20511 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
20512 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
20513 the LHS of a no-return call if its type has variable size.
20514 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
20515 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
20517 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
20519 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
20520 * config.in: Regenerate.
20522 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
20524 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
20525 consecutive accesses within outer-loop with force_vectorize
20526 for references with zero step in inner-loop.
20528 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
20530 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
20531 rather than from gcc/build directory.
20533 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
20536 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
20537 for __sync memory models, emit initial loads and final barriers as
20540 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
20543 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
20544 (aarch64_split_atomic_op): Check for __sync memory models, emit
20545 appropriate initial loads and final barriers.
20547 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
20549 * Makefile.in: Fix gcov dependencies that should
20550 not point to a build folder.
20552 2015-06-01 Richard Biener <rguenther@suse.de>
20555 2015-05-29 Richard Biener <rguenther@suse.de>
20557 PR tree-optimization/66314
20558 * tree-ssa-threadupdate.c (create_block_for_threading): Add
20559 parameter that says which loop the new block belongs to.
20560 (ssa_create_duplicates): Blocks duplicated for the threaded
20561 path belong to the loop of the thread destination.
20563 2015-06-01 Martin Liska <mliska@suse.cz>
20565 * sched-deps.c: Include pool-alloc.h before
20566 cselib.h header file is included.
20568 2015-06-01 Richard Biener <rguenther@suse.de>
20570 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
20573 2015-06-01 Martin Liska <mliska@suse.cz>
20575 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
20576 a function local variable.
20578 2015-06-01 Martin Liska <mliska@suse.cz>
20580 * alloc-pool.c (create_alloc_pool): Remove.
20581 (empty_alloc_pool): Likewise.
20582 (free_alloc_pool): Likewise.
20583 (free_alloc_pool_if_empty): Likewise.
20584 (pool_alloc): Likewise.
20585 (pool_free): Likewise.
20586 * alloc-pool.h: Remove old declarations.
20588 2015-06-01 Martin Liska <mliska@suse.cz>
20590 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
20591 (ira_create_object): Likewise.
20592 (ira_create_allocno): Likewise.
20593 (ira_create_live_range): Likewise.
20594 (copy_live_range): Likewise.
20595 (ira_finish_live_range): Likewise.
20596 (ira_free_allocno_costs): Likewise.
20597 (finish_allocno): Likewise.
20598 (finish_allocnos): Likewise.
20599 (initiate_prefs): Likewise.
20600 (ira_create_pref): Likewise.
20601 (finish_pref): Likewise.
20602 (finish_prefs): Likewise.
20603 (initiate_copies): Likewise.
20604 (ira_create_copy): Likewise.
20605 (finish_copy): Likewise.
20606 (finish_copies): Likewise.
20607 (finish_prefs): Likewise.
20609 2015-06-01 Martin Liska <mliska@suse.cz>
20611 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
20612 (allocate_and_init_ipcp_value): Likewise.
20613 (ipcp_lattice::add_value): Likewise.
20614 (merge_agg_lats_step): Likewise.
20615 (ipcp_driver): Likewise.
20616 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
20617 (ipa_free_all_structures_after_iinln): Likewise.
20618 * ipa-prop.h: Likewise.
20620 2015-06-01 Martin Liska <mliska@suse.cz>
20622 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
20624 (set_hint_predicate): Likewise.
20625 (inline_summary_alloc): Likewise.
20626 (reset_inline_edge_summary): Likewise.
20627 (reset_inline_summary): Likewise.
20628 (set_cond_stmt_execution_predicate): Likewise.
20629 (set_switch_stmt_execution_predicate): Likewise.
20630 (compute_bb_predicates): Likewise.
20631 (estimate_function_body_sizes): Likewise.
20632 (inline_free_summary): Likewise.
20634 2015-06-01 Martin Liska <mliska@suse.cz>
20636 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
20637 (ipa_edge_duplication_hook): Likewise.
20638 (ipa_free_all_structures_after_ipa_cp): Likewise.
20639 (ipa_free_all_structures_after_iinln): Likewise.
20641 2015-06-01 Martin Liska <mliska@suse.cz>
20643 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
20644 (ipa_profile_generate_summary): Likewise.
20645 (ipa_profile_read_summary): Likewise.
20646 (ipa_profile): Likewise.
20648 2015-06-01 Martin Liska <mliska@suse.cz>
20650 * tree-ssa-structalias.c (new_var_info): Use new type-based
20652 (new_constraint): Likewise.
20653 (init_alias_vars): Likewise.
20654 (delete_points_to_sets): Likewise.
20656 2015-06-01 Martin Liska <mliska@suse.cz>
20658 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
20659 (free_strinfo): Likewise.
20660 (pass_strlen::execute): Likewise.
20662 2015-06-01 Martin Liska <mliska@suse.cz>
20664 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
20666 (vn_reference_insert_pieces): Likewise.
20667 (vn_phi_insert): Likewise.
20668 (visit_reference_op_call): Likewise.
20669 (copy_phi): Likewise.
20670 (copy_reference): Likewise.
20671 (process_scc): Likewise.
20672 (allocate_vn_table): Likewise.
20673 (free_vn_table): Likewise.
20675 2015-06-01 Martin Liska <mliska@suse.cz>
20677 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
20679 (add_repeat_to_ops_vec): Likewise.
20680 (get_ops): Likewise.
20681 (maybe_optimize_range_tests): Likewise.
20682 (init_reassoc): Likewise.
20683 (fini_reassoc): Likewise.
20685 2015-06-01 Martin Liska <mliska@suse.cz>
20687 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
20689 (bitmap_set_new): Likewise.
20690 (get_or_alloc_expr_for_constant): Likewise.
20691 (get_or_alloc_expr_for): Likewise.
20692 (phi_translate_1): Likewise.
20693 (compute_avail): Likewise.
20694 (init_pre): Likewise.
20695 (fini_pre): Likewise.
20697 2015-06-01 Martin Liska <mliska@suse.cz>
20699 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
20700 (delete_dep_node): Likewise.
20701 (create_deps_list): Likewise.
20702 (free_deps_list): Likewise.
20703 (sched_deps_init): Likewise.
20704 (sched_deps_finish): Likewise.
20706 2015-06-01 Martin Liska <mliska@suse.cz>
20708 * regcprop.c (free_debug_insn_changes): Use new type-based
20710 (replace_oldest_value_reg): Likewise.
20711 (pass_cprop_hardreg::execute): Likewise.
20713 2015-06-01 Martin Liska <mliska@suse.cz>
20715 * ira-build.c (initiate_cost_vectors): Use new type-based
20717 (ira_allocate_cost_vector): Likewise.
20718 (ira_free_cost_vector): Likewise.
20719 (finish_cost_vectors): Likewise.
20721 2015-06-01 Martin Liska <mliska@suse.cz>
20723 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
20725 (free_sched_pools): Likewise.
20726 * sel-sched-ir.h (_list_alloc): Likewise.
20727 (_list_remove): Likewise.
20729 2015-06-01 Martin Liska <mliska@suse.cz>
20731 * stmt.c (add_case_node): Use new type-based pool allocator.
20732 (expand_case): Likewise.
20733 (expand_sjlj_dispatch_table): Likewise.
20735 2015-06-01 Martin Liska <mliska@suse.cz>
20737 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
20738 (free_bb): Likewise.
20739 (pass_cse_reciprocals::execute): Likewise.
20741 2015-06-01 Martin Liska <mliska@suse.cz>
20743 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
20744 (sra_deinitialize) Likewise.
20745 (create_access_1) Likewise.
20746 (build_accesses_from_assign) Likewise.
20747 (create_artificial_child_access) Likewise.
20749 2015-06-01 Martin Liska <mliska@suse.cz>
20751 * dse.c (get_group_info):Use new type-based pool allocator.
20752 (dse_step0) Likewise.
20753 (free_store_info) Likewise.
20754 (delete_dead_store_insn) Likewise.
20755 (free_read_records) Likewise.
20756 (record_store) Likewise.
20757 (replace_read) Likewise.
20758 (check_mem_read_rtx) Likewise.
20759 (scan_insn) Likewise.
20760 (dse_step1) Likewise.
20761 (dse_step7) Likewise.
20763 2015-06-01 Martin Liska <mliska@suse.cz>
20765 * df-scan.c (struct df_scan_problem_data):Use new type-based
20767 (df_scan_free_internal) Likewise.
20768 (df_scan_alloc) Likewise.
20769 (df_grow_reg_info) Likewise.
20770 (df_free_ref) Likewise.
20771 (df_insn_create_insn_record) Likewise.
20772 (df_mw_hardreg_chain_delete) Likewise.
20773 (df_insn_info_delete) Likewise.
20774 (df_free_collection_rec) Likewise.
20775 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
20776 (df_sort_and_compress_mws) Likewise.
20777 (df_ref_create_structure) Likewise.
20778 (df_ref_record) Likewise.
20780 2015-06-01 Martin Liska <mliska@suse.cz>
20782 * df-problems.c (df_chain_create):Use new type-based pool allocator.
20783 (df_chain_unlink_1) Likewise.
20784 (df_chain_unlink) Likewise.
20785 (df_chain_remove_problem) Likewise.
20786 (df_chain_alloc) Likewise.
20787 (df_chain_free) Likewise.
20788 * df.h (struct dataflow) Likewise.
20790 2015-06-01 Martin Liska <mliska@suse.cz>
20792 * cselib.c (new_elt_list):Use new type-based pool allocator.
20793 (new_elt_loc_list) Likewise.
20794 (unchain_one_elt_list) Likewise.
20795 (unchain_one_elt_loc_list) Likewise.
20796 (unchain_one_value) Likewise.
20797 (new_cselib_val) Likewise.
20798 (cselib_init) Likewise.
20799 (cselib_finish) Likewise.
20801 2015-06-01 Martin Liska <mliska@suse.cz>
20803 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
20804 (sh_reorg) Likewise.
20806 2015-06-01 Martin Liska <mliska@suse.cz>
20808 * cfg.c (initialize_original_copy_tables):Use new type-based
20810 (free_original_copy_tables) Likewise.
20811 (copy_original_table_clear) Likewise.
20812 (copy_original_table_set) Likewise.
20814 2015-06-01 Martin Liska <mliska@suse.cz>
20816 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
20818 (asan_mem_ref_new) Likewise.
20819 (free_mem_ref_resources) Likewise.
20821 2015-06-01 Martin Liska <mliska@suse.cz>
20823 * var-tracking.c (variable_htab_free):Use new type-based
20825 (attrs_list_clear) Likewise.
20826 (attrs_list_insert) Likewise.
20827 (attrs_list_copy) Likewise.
20828 (shared_hash_unshare) Likewise.
20829 (shared_hash_destroy) Likewise.
20830 (unshare_variable) Likewise.
20831 (var_reg_delete_and_set) Likewise.
20832 (var_reg_delete) Likewise.
20833 (var_regno_delete) Likewise.
20834 (drop_overlapping_mem_locs) Likewise.
20835 (variable_union) Likewise.
20836 (insert_into_intersection) Likewise.
20837 (canonicalize_values_star) Likewise.
20838 (variable_merge_over_cur) Likewise.
20839 (dataflow_set_merge) Likewise.
20840 (remove_duplicate_values) Likewise.
20841 (variable_post_merge_new_vals) Likewise.
20842 (dataflow_set_preserve_mem_locs) Likewise.
20843 (dataflow_set_remove_mem_locs) Likewise.
20844 (variable_from_dropped) Likewise.
20845 (variable_was_changed) Likewise.
20846 (set_slot_part) Likewise.
20847 (clobber_slot_part) Likewise.
20848 (delete_slot_part) Likewise.
20849 (loc_exp_insert_dep) Likewise.
20850 (notify_dependents_of_changed_value) Likewise.
20851 (emit_notes_for_differences_1) Likewise.
20852 (vt_emit_notes) Likewise.
20853 (vt_initialize) Likewise.
20854 (vt_finalize) Likewise.
20856 2015-06-01 Martin Liska <mliska@suse.cz>
20858 * ira-color.c (init_update_cost_records):Use new type-based
20860 (get_update_cost_record) Likewise.
20861 (free_update_cost_record_list) Likewise.
20862 (finish_update_cost_records) Likewise.
20863 (initiate_cost_update) Likewise.
20865 2015-06-01 Martin Liska <mliska@suse.cz>
20867 * lra.c (init_insn_regs): Use new type-based pool allocator.
20868 (new_insn_reg) Likewise.
20869 (free_insn_reg) Likewise.
20870 (free_insn_regs) Likewise.
20871 (finish_insn_regs) Likewise.
20872 (init_insn_recog_data) Likewise.
20873 (init_reg_info) Likewise.
20874 (finish_reg_info) Likewise.
20875 (lra_free_copies) Likewise.
20876 (lra_create_copy) Likewise.
20877 (invalidate_insn_data_regno_info) Likewise.
20879 2015-06-01 Martin Liska <mliska@suse.cz>
20881 * lra-lives.c (free_live_range): Use new type-based pool allocator.
20882 (free_live_range_list) Likewise.
20883 (create_live_range) Likewise.
20884 (copy_live_range) Likewise.
20885 (lra_merge_live_ranges) Likewise.
20886 (remove_some_program_points_and_update_live_ranges) Likewise.
20887 (lra_live_ranges_init) Likewise.
20888 (lra_live_ranges_finish) Likewise.
20890 2015-06-01 Martin Liska <mliska@suse.cz>
20892 * et-forest.c (et_new_occ): Use new type-based pool allocator.
20893 (et_new_tree): Likewise.
20894 (et_free_tree): Likewise.
20895 (et_free_tree_force): Likewise.
20896 (et_free_pools): Likewise.
20897 (et_split): Likewise.
20899 2015-06-01 Martin Liska <mliska@suse.cz>
20901 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
20903 * alloc-pool.h (pool_allocator::pool_allocator): New function.
20904 (pool_allocator::release): Likewise.
20905 (inline pool_allocator::release_if_empty): Likewise.
20906 (inline pool_allocator::~pool_allocator): Likewise.
20907 (pool_allocator::allocate): Likewise.
20908 (pool_allocator::remove): Likewise.
20910 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20912 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
20915 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20917 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
20919 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
20920 (arm_macro_fusion_p): Likewise.
20921 (arm_macro_fusion_pair_p): Likewise.
20923 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20925 * config/aarch64/aarch64-protos.h (tune_params): Rename
20926 fuseable_ops to fusible_ops.
20927 * config/aarch64/aarch64.c (generic_tunings): Rename
20928 fuseable_ops to fusible_ops.
20929 (cortexa53_tunings): Likewise.
20930 (cortexa57_tunings): Likewise.
20931 (thunderx_tunings): Likewise.
20932 (xgene1_tunings): Likewise.
20933 (aarch64_macro_fusion_p): Likewise.
20934 (aarch64_macro_fusion_pair_p): Likewise.
20936 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
20938 * config/s390/driver-native.c: New file.
20939 * config/s390/x-native: New file.
20940 * config.host: Add new files for s390.
20941 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
20943 * config.gcc: Likewise.
20944 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
20945 * config/s390/s390-opts.h (enum processor_type): Ditto.
20946 * config/s390/s390.c (s390_option_override): Catch unhandled
20949 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
20952 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
20953 redirection for instrumented calls.
20954 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
20955 (append_compiler_options): Append -fcheck-pointer-bounds.
20956 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
20957 (chkp_redirect_edge): New.
20958 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
20959 (chkp_redirect_edge): New.
20961 2015-06-01 Richard Biener <rguenther@suse.de>
20963 PR tree-optimization/66280
20964 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
20967 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20969 * config/aarch64/aarch64.md
20970 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
20973 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
20975 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
20976 Remove obsolete kludge.
20978 2015-06-01 Richard Biener <rguenther@suse.de>
20980 * tree-ssa-reassoc.c (get_rank): Simplify.
20982 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
20984 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
20985 * configure: Regenerated.
20987 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
20989 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
20990 issue (add space between string literal and macro).
20991 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
20993 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
20995 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
20996 implict or explicit -fPIE or -fpie.
20998 2015-05-30 Mike Frysinger <vapier@gentoo.org>
21000 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
21002 2015-05-28 DJ Delorie <dj@redhat.com>
21004 * expmed.c (extract_bit_field_1): Avoid clobbering a
21005 yet-to-be-used base/index register.
21007 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
21009 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
21010 (alias_stats): Add num_universal.
21011 (alias_set_subset_of): Special case pointers; be ready for NULL
21013 (alias_sets_conflict_p): Special case pointers; be ready for NULL
21015 (init_alias_set_entry): Break out from ...
21016 (record_alias_subset): ... here; propagate new fields;
21017 allocate children only when really needed.
21018 (get_alias_set): Do less generous pointer globbing.
21019 (dump_alias_stats_in_alias_c): Update statistics.
21021 2015-05-30 Alan Modra <amodra@gmail.com>
21023 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
21024 correct block for use of r12.
21025 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
21027 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21030 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
21033 2015-05-29 Jakub Jelinek <jakub@redhat.com>
21035 PR tree-optimization/66142
21036 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
21037 virtual phis that feed themselves.
21039 2015-05-29 Richard Biener <rguenther@suse.de>
21041 PR tree-optimization/66314
21042 * tree-ssa-threadupdate.c (create_block_for_threading): Add
21043 parameter that says which loop the new block belongs to.
21044 (ssa_create_duplicates): Blocks duplicated for the threaded
21045 path belong to the loop of the thread destination.
21047 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21049 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
21050 to cleanup-saved-temps.
21051 * doc/sourcebuild.texi (Clean up generated test files): Expand
21053 (dg-keep-saved-temps): Document new proc.
21054 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
21055 cleanup-saved-temps): Remove.
21057 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
21059 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
21060 gcc_AC_CHECK_DECLS.
21061 * configure: Regenerate.
21063 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21065 * config/nios2/linux.h (CPP_SPEC): Define.
21067 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21069 * config/microblaze/linux.h (CPP_SPEC): Define.
21071 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21073 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
21074 -pthread is specified.
21076 2015-05-28 Richard Biener <rguenther@suse.de>
21078 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
21079 (vect_fixup_scalar_cycles_with_patterns): Likewise.
21080 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
21081 after pattern recog.
21082 (vect_create_epilog_for_reduction): Properly handle reductions
21084 (vectorizable_reduction): Likewise.
21085 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
21087 (vect_get_constant_vectors): Create the correct number of
21088 initial values for reductions.
21089 (vect_schedule_slp_instance): Handle reduction chains that are
21090 type changing properly.
21091 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
21093 2015-05-28 Richard Biener <rguenther@suse.de>
21095 PR tree-optimization/66142
21096 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
21097 values better in memcpy destination handling. Handle non-aliasing
21100 2015-05-28 Lawrence Velázquez <vq@larryv.me>
21103 * config/darwin-c.c (version_components): New global enum.
21104 (parse_version, version_as_legacy_macro)
21105 (version_as_modern_macro, macosx_version_as_macro): New functions.
21106 (version_as_macro): Remove.
21107 (darwin_cpp_builtins): Use new function.
21109 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
21111 * builtins.c (expand_builtin_acc_on_device): Mark parameters
21112 with ATTRIBUTE_UNUSED.
21114 2015-05-28 Julian Brown <julian@codesourcery.com>
21118 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
21119 sequence for !ACCEL_COMPILER.
21121 2015-05-28 Nick Clifton <nickc@redhat.com>
21123 * config/rx/rx.c (push_regs): New function. Extracts code from...
21124 (rx_expand_prologue): ... here. Use push_regs to push even small
21125 spans of registers.
21126 (pop_regs): New function.
21127 (rx_expand_epilogue): Use pop_regs to pop even small spans of
21130 2015-05-28 Richard Biener <rguenther@suse.de>
21132 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
21134 (SLP_INSTANCE_BODY_COST_VEC): Remove.
21135 (vect_update_slp_costs_according_to_vf): Likewise.
21136 (vect_slp_analyze_operations): Update prototype.
21137 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
21138 vect_update_slp_costs_according_to_vf, adjust.
21139 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
21140 (vect_analyze_slp_cost_1): Likewise.
21141 (vect_analyze_slp_cost): Likewise. Properly deal with
21142 widening reduction ops. Commit body costs.
21143 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
21144 cost for loops from here.
21145 (vect_slp_analyze_operations): But do it from here when
21146 the vectorization factor is known and stmts are analyzed.
21147 (vect_bb_vectorization_profitable_p): Simplify.
21148 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
21149 (vect_update_slp_costs_according_to_vf): Remove.
21151 2015-05-27 Magnus Granberg <zorry@gentoo.org>
21152 H.J. Lu <hongjiu.lu@intel.com>
21154 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
21155 (BUILD_CFLAGS): Likewise.
21156 (BUILD_CXXFLAGS): Likewise.
21157 (LINKER): Add @NO_PIE_FLAG@.
21158 (BUILD_LDFLAGS): Likewise.
21159 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
21160 --enable-default-pie.
21161 * common.opt (fPIE): Initialize to -1.
21163 (no-pie): New option.
21164 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
21165 * configure.ac: Add --enable-default-pie.
21166 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
21167 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
21168 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
21169 * gcc.c (NO_PIE_SPEC): New.
21170 (PIE_SPEC): Likewise.
21171 (NO_FPIE1_SPEC): Likewise.
21172 (FPIE1_SPEC): Likewise.
21173 (NO_FPIE2_SPEC): Likewise.
21174 (FPIE2_SPEC): Likewise.
21175 (NO_FPIE2_SPEC): Likewise.
21176 (FPIE_SPEC): Likewise.
21177 (NO_FPIE_SPEC): Likewise.
21178 (NO_FPIC1_SPEC): Likewise.
21179 (FPIC1_SPEC): Likewise.
21180 (NO_FPIC2_SPEC): Likewise.
21181 (FPIC2_SPEC): Likewise.
21182 (NO_FPIC2_SPEC): Likewise.
21183 (FPIC_SPEC): Likewise.
21184 (NO_FPIC_SPEC): Likewise.
21185 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
21186 (FPIE1_OR_FPIC1_SPEC): Likewise.
21187 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
21188 (FPIE2_OR_FPIC2_SPEC): Likewise.
21189 (NO_FPIE_AND_FPIC_SPEC): Likewise.
21190 (FPIE_OR_FPIC_SPEC): Likewise.
21191 (LD_PIE_SPEC): Likewise.
21192 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
21193 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
21194 * config/darwin.h (PIE_SPEC): Renamed to ...
21195 (DARWIN_PIE_SPEC): This.
21196 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
21197 * config/darwin9.h (PIE_SPEC): Renamed to ...
21198 (DARWIN_PIE_SPEC): This.
21199 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
21200 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
21201 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
21202 FPIE2_OR_FPIC2_SPEC.
21203 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
21204 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
21205 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
21206 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
21207 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
21208 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
21209 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
21210 * config/m32r/m32r.h (ASM_SPEC): Likewise.
21211 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
21212 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
21213 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
21214 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
21215 * config/sparc/linux.h (ASM_SPEC): Likewise.
21216 * config/sparc/linux64.h (ASM_SPEC): Likewise.
21217 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
21218 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
21219 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
21220 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21221 * config/sparc/sparc.h (ASM_SPEC): Likewise.
21222 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
21223 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
21224 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
21225 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
21226 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
21227 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
21228 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
21229 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
21230 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
21231 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
21232 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
21233 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
21234 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21235 * config/vax/linux.h (ASM_SPEC): Likewise.
21236 * doc/install.texi: Document --enable-default-pie.
21237 * doc/invoke.texi: Document -no-pie.
21238 * config.in: Regenerated.
21239 * configure: Likewise.
21241 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
21243 PR rtl-optimization/66168
21244 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
21245 can_move_invariant_reg.
21247 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
21250 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
21251 REG_EQUAL note when doing insert.
21253 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
21254 instead of "%d" for 'o' operand.
21256 2015-05-27 Nathan Sidwell <nathan@acm.org>
21259 * tree.c (build_pointer_type_for_mode): Canonical type does not
21260 inherit can_alias_all.
21261 (build_reference_type_for_mode): Likewise.
21263 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
21265 * expr.h (array_at_struct_end_p): Move to...
21266 (array_ref_element_size): Likewise.
21267 (component_ref_field_offset): Likewise.
21268 * tree.h (array_ref_element_size): ...here.
21269 (array_at_struct_end_p): Likewise.
21270 (component_ref_field_offset): Likewise.
21271 * expr.c (array_ref_element_size): Move to...
21272 (array_ref_low_bound): Likewise.
21273 (array_at_struct_end_p): Likewise.
21274 (array_ref_up_bound): Likewise.
21275 (component_ref_field_offset): Likewise.
21276 * tree.c (array_ref_element_size): ...here.
21277 (array_ref_low_bound): Likewise.
21278 (array_ref_up_bound): Likewise.
21279 (array_at_struct_end_p): Likewise.
21280 (component_ref_field_offset): Likewise.
21282 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
21283 Szabolcs Nagy <szabolcs.nagy@arm.com>
21285 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
21287 2015-05-27 Jason Merrill <jason@redhat.com>
21290 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
21291 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
21292 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
21294 2015-05-22 Aditya Kumar <hiraditya@msn.com>
21296 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
21299 * statistics.c (statistics_fini_pass): Print pass name.
21301 2015-05-27 Richard Biener <rguenther@suse.de>
21303 PR tree-optimization/66272
21305 2014-08-15 Richard Biener <rguenther@suse.de>
21307 PR tree-optimization/62031
21308 * tree-data-ref.c (dr_analyze_indices): Do not set
21309 DR_UNCONSTRAINED_BASE.
21310 (dr_may_alias_p): All indirect accesses have to go the
21311 formerly DR_UNCONSTRAINED_BASE path.
21312 * tree-data-ref.h (struct indices): Remove
21313 unconstrained_base member.
21314 (DR_UNCONSTRAINED_BASE): Remove.
21316 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
21318 * dwarf2out.c: Remove block_map.
21319 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
21320 (gen_lexical_block_die): Same.
21321 (dwarf2out_function_decl): Remove block_map use.
21322 (dwarf2out_c_finalize): Same.
21323 * tree-core.h (struct tree_block): Add die field.
21324 * tree.h (BLOCK_DIE): New.
21326 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21329 * expr.c (memory_load_overlap): New function.
21330 (emit_push_insn): When pushing partial args to the stack would
21331 clobber the register part load the overlapping part into a pseudo
21332 and put it into the hard reg after pushing. Change return type
21333 to bool. Add bool argument.
21334 * expr.h (emit_push_insn): Change return type to bool.
21336 * calls.c (expand_call): Cancel sibcall optimization when encountering
21337 partial argument on targets with ARGS_GROW_DOWNWARD and
21338 !STACK_GROWS_DOWNWARD.
21339 (emit_library_call_value_1): Update callsite of emit_push_insn.
21340 (store_one_arg): Likewise.
21342 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
21344 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
21346 2015-05-27 Martin Liska <mliska@suse.cz>
21348 * Makefile.in: Add additional dependencies related to memory report
21350 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
21351 * bitmap.c (struct bitmap_descriptor_d): Remove.
21352 (struct loc): Likewise.
21353 (struct bitmap_desc_hasher): Likewise.
21354 (bitmap_desc_hasher::hash): Likewise.
21355 (bitmap_desc_hasher::equal): Likewise.
21356 (get_bitmap_descriptor): Likewise.
21357 (bitmap_register): User new memory descriptor API.
21358 (register_overhead): Likewise.
21359 (bitmap_find_bit): Register nsearches and search_iter statistics.
21360 (struct bitmap_output_info): Remove.
21361 (print_statistics): Likewise.
21362 (dump_bitmap_statistics): Use new memory descriptor.
21363 * bitmap.h (struct bitmap_usage): New class.
21364 * genmatch.c: Extend header file inclusion.
21365 * genpreds.c: Likewise.
21366 * ggc-common.c (struct ggc_usage): New class.
21367 (struct ggc_loc_desc_hasher): Remove.
21368 (ggc_loc_desc_hasher::hash): Likewise.
21369 (ggc_loc_desc_hasher::equal): Likewise.
21370 (struct ggc_ptr_hash_entry): Likewise.
21371 (struct ptr_hash_hasher): Likewise.
21372 (ptr_hash_hasher::hash): Likewise.
21373 (ptr_hash_hasher::equal): Likewise.
21374 (make_loc_descriptor): Likewise.
21375 (ggc_prune_ptr): Likewise.
21376 (dump_ggc_loc_statistics): Use new memory descriptor.
21377 (ggc_record_overhead): Likewise.
21378 (ggc_free_overhead): Likewise.
21379 (final_cmp_statistic): Remove.
21380 (cmp_statistic): Likewise.
21381 (ggc_add_statistics): Liekwise.
21382 (ggc_prune_overhead_list): Likewise.
21383 * hash-map-traits.h: New file.
21384 * hash-map.h (struct default_hashmap_traits): Move the traits to a
21385 separate header file.
21386 * hash-set.h: Pass memory statistics info to ctor.
21387 * hash-table.c (void dump_hash_table_loc_statistics): New function.
21388 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
21389 (hash_table::~hash_table): Register memory release operation.
21390 (hash_table::alloc_entries): Handle memory allocation operation.
21391 (hash_table::expand): Likewise.
21392 * inchash.c (iterative_hash_hashval_t): Move implementation to header
21394 (iterative_hash_host_wide_int): Likewise.
21395 * inchash.h (class hash): Likewise.
21396 * mem-stats-traits.h: New file.
21397 * mem-stats.h: New file.
21398 (mem_location): Add new class.
21399 (mem_usage): Likewise.
21400 (mem_alloc_description): Likewise.
21401 * sese.c: Add new header file inclusision.
21402 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
21404 * tree-sra.c: Add new header file inclusision.
21405 * vec.c (struct vec_descriptor): Remove.
21406 (hash_descriptor): Likewise.
21407 (struct vec_usage): Likewise.
21408 (struct ptr_hash_entry): Likewise.
21409 (hash_ptr): Likewise.
21410 (eq_ptr): Likewise.
21411 (vec_prefix::register_overhead): Use new memory descriptor API.
21412 (vec_prefix::release_overhead): Likewise.
21413 (add_statistics): Remove.
21414 (dump_vec_loc_statistics): Use new memory descriptor API.
21415 * vec.h (struct vec_prefix): Likewise.
21416 (va_heap::reserve): Likewise.
21417 (va_heap::release): Likewise.
21418 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
21420 2015-05-27 Richard Biener <rguenther@suse.de>
21422 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
21423 earlier and remove ??? comment.
21424 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
21425 and got called from loop analysis bail out. Always pass the SLP
21426 node to the vectorizable_* functions.
21427 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
21428 the premature SLP check here.
21429 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
21430 detected SLP stmts.
21431 (vect_detect_hybrid_slp_1): Likewise.
21433 2015-05-26 Jeff Law <law@redhat.com>
21435 * combine.c (find_split_point): Verify that the shift count is a
21436 constant when choosing (plus (ashift ...)) as a split point.
21438 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
21439 No functional changes.
21441 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
21443 * ipa-polymorphic-call.c
21444 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
21445 case when call target is already known.
21447 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
21450 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
21451 take into account the case that operands[1] and operands[2]
21452 are the same register.
21454 2015-05-26 Michael Matz <matz@suse.de>
21456 PR middle-end/66251
21458 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
21460 (vect_create_vectorized_demotion_stmts): Always set
21461 STMT_VINFO_VEC_STMT, also with SLP.
21462 (vectorizable_store): Handle strided group stores.
21464 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21467 * config/aarch64/aarch64.md
21468 (*adds_shift_imm_<mode>): New pattern.
21469 (*subs_shift_imm_<mode>): Likewise.
21470 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
21471 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
21472 (*add_uxt<mode>_shift2): Likewise.
21473 (*add_uxtsi_shift2_uxtw): Likewise.
21474 (*sub_uxt<mode>_shift2): Likewise.
21475 (*sub_uxtsi_shift2_uxtw): Likewise.
21477 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
21479 * config/rs6000/constraints.md (Y, U): Use match_test.
21481 2015-05-26 Christian Bruel <christian.bruel@st.com>
21484 * config/arm/arm.c (arm_option_check_internal)
21485 (arm_option_params_internal): Check opts->target_flags to set macros.
21486 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
21487 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
21488 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
21489 (builtin_define): Replaced with def_or_undef_macro.
21490 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
21491 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
21492 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
21493 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
21494 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
21495 (TARGET_ARM_FEATURE_LDREX_P)
21496 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
21497 * config/arm/arm-c.c (def_or_undef_macro): New function.
21498 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
21500 2015-05-26 Christian Bruel <christian.bruel@st.com>
21502 * c-common.h (builtin_define_with_int_value)
21503 (builtin_define_type_sizeof): Declare.
21504 * c-cppbuiltin.c (builtin_define_with_int_value)
21505 (builtin_define_type_sizeof): Externalize.
21506 (builtin_define_std): Cleanup declaration.
21507 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
21508 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
21509 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
21510 (builtin_define, builtin_assert): New macros.
21512 2015-05-26 Richard Biener <rguenther@suse.de>
21514 PR tree-optimization/66142
21515 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
21516 MEM_REFs for the same base address.
21518 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21521 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
21523 2015-05-26 Jason Merrill <jason@redhat.com>
21525 * configure.ac: Set CXXFLAGS for ISL test.
21526 * configure: Regenerate.
21528 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
21529 strstr and basename.
21530 * configure: Regenerate.
21532 2015-05-26 Richard Biener <rguenther@suse.de>
21534 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
21535 X % C -> X & (C - 1) for C being a power-of two to ...
21536 * match.pd: ... patterns.
21538 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
21540 * match.pd (swapped_tcc_comparison): New operator list.
21541 (-A CMP -B): New simplification.
21542 * fold-const.c (fold_comparison): Remove corresponding code.
21544 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
21546 * caller-save.c (init_caller_save): Base temporary register numbers
21547 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
21548 * cfgloopanal.c (init_set_costs): Likewise.
21549 * dojump.c (prefer_and_bit_test): Likewise.
21550 * expr.c (init_expr_target): Likewise.
21551 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21552 * lower-subreg.c (init_lower_subreg): Likewise.
21553 * postreload.c (reload_cse_regs_1): Likewise.
21555 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
21557 * gensupport.h (compute_test_codes): Declare.
21558 * gensupport.c (compute_predicate_codes): Rename to...
21559 (compute_test_codes): ...this. Generalize error message.
21560 (process_define_predicate): Update accordingly.
21561 * genpreds.c (compute_maybe_allows): Delete.
21562 (add_constraint): Use compute_test_codes to determine whether
21563 something can accept a SUBREG, REG or MEM.
21565 2015-05-26 Torvald Riegel <triegel@redhat.com>
21567 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
21568 'memory model' to align with C++11; fix description of memory orders;
21571 2015-05-26 Richard Biener <rguenther@suse.de>
21573 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
21574 (vect_analyze_loop_operations): ... here. Remove slp parameter,
21575 detect whether we apply SLP. Remove call to
21576 vect_update_slp_costs_according_to_vf.
21577 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
21578 vect_update_slp_costs_according_to_vf from here. Dispatch
21579 to vect_slp_analyze_operations to analyze SLP stmts.
21580 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
21581 unused bb_vec_info parameter, adjust assert.
21582 (vect_slp_analyze_operations): Pass in the slp instance tree
21583 instead of bb_vec_info.
21584 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
21585 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
21587 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
21589 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
21590 Q_REGS. Expand comment.
21591 (REG_CLASS_NAMES): Ditto.
21592 (REG_CLASS_CONTENTS): Ditto.
21594 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
21597 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
21598 when LEGACY_INT_REGNO_P is processed.
21600 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
21602 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
21604 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21606 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
21607 register if not marked dead/unused, before return.
21609 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21612 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
21613 is set; check for assembler name at LTO time.
21614 (type_in_anonymous_namespace): Remove hacks, check that all
21615 anonymous types are called "<anon>"
21616 (odr_type_p): Simplify; add check for "<anon>"
21617 (odr_subtypes_equivalent): Add odr_type_p check.
21618 * tree.c (need_assembler_name_p): Even anonymous namespace needs
21621 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21623 * ipa-utils.h (method_class_type): Remove.
21624 * cgraphunit.c (walk_polymorphic_call_targets): Use
21625 TYPE_METHOD_BASETYPE.
21626 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
21627 on main variants only.
21628 (method_class_type): Remove.
21629 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
21630 (build_type_inheritance_graph): Likewise.
21631 * ipa-icf.c (sem_function::equals_wpa): Likewise.
21632 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
21633 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
21635 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21637 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
21638 is_typedef_decl, typedef_variant_p): Constify.
21639 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
21640 is_typedef_decl, typedef_variant_p): Constify.
21642 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21644 * defaults.h (gen_tablejump): New function.
21645 (HAVE_tablejump): Add default value.
21647 * stmt.c: Likewise.
21649 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21651 * defaults.h (gen_store_multiple): New function.
21652 (HAVE_store_multiple): Add default value.
21653 * expr.c (move_block_from_reg): Adjust.
21655 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21657 * defaults.h (gen_load_multiple): New function.
21658 (HAVE_load_multiple): Add default value.
21659 * expr.c (move_block_to_reg): Adjust.
21661 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21663 * defaults.h (gen_mem_signal_fence): New function.
21664 (HAVE_mem_signal_fence): Add default value.
21665 * optabs.c: Adjust.
21667 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21669 * defaults.h (gen_memory_barrier): New function.
21670 (HAVE_memory_barrier): Add default value.
21671 * optabs.c: Adjust.
21673 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21675 * defaults.h (gen_mem_thread_fence): New function.
21676 (HAVE_mem_thread_fence): Add default definition.
21677 * optabs.c: Adjust.
21679 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21681 * combine.c (find_split_point): Check the value of HAVE_lo_sum
21682 instead of if it is defined.
21683 (combine_simplify_rtx): Likewise.
21684 * lra-constraints.c (process_address_1): Likewise.
21685 * config/darwin.c: Adjust.
21686 * genconfig.c (main): Always define HAVE_lo_sum.
21688 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21690 * genmatch.c (parser::parse_operation): Reject expanding
21691 operator-list inside 'for'.
21693 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21695 * genmatch.c (parser::parse_for): Reject iterator if used as
21698 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21700 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
21701 after end of id-list.
21703 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
21705 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
21706 we do not try to compute canonical type for type that does not need
21708 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
21710 * tree.h (type_with_alias_set_p): New.
21712 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
21714 * tree.c (gimple_canonical_types_compatible_p): Do not compare
21715 function attributes.
21716 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
21718 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
21720 * Makefile.in (check_gcc_parallelize): Delete.
21721 (lang_checks_parallelized): Update comment.
21723 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
21725 PR rtl-optimization/66237
21726 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
21727 location of an "as_a" cast.
21729 2015-05-22 Jeff Law <law@redhat.com>
21731 * config/pa/pa.md (non-canonical shift-add insns): Remove.
21732 (peepholes with non-canonical RTL sources): Remove.
21733 (peepholes for indexed stores of FP regs in integer modes): Match and
21734 generate canonical RTL.
21736 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21738 PR tree-optimization/63387
21739 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
21740 ((x ord x) & (y ord y) -> (x ord y),
21741 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
21742 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
21743 vectors like scalars.
21745 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21747 * convert.c (convert_to_integer, convert_to_vector): Include the
21748 types in the error message.
21750 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21752 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
21755 2015-05-22 Jeff Law <law@redhat.com>
21757 * config/pa/pa.md (integer_indexed_store splitters): Use
21758 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
21759 insns -- adjusting the constant 2nd operand accordingly.
21761 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
21762 (plus (ashift X log2) Y) if it is a split point.
21764 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
21765 out of hppa_legitimize_address to handle both forms of a multiply
21767 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
21768 Always generate the ASHIFT variant as the result is not directly
21769 used in a MEM. Update comments and refactor slightly to improve
21772 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21775 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
21776 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
21777 (aarch64_composite_type_p): Return false if given type and mode are
21778 for a short vector.
21780 2015-05-22 Richard Biener <rguenther@suse.de>
21782 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
21784 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
21785 patterns when determining whether SLP is pure.
21786 (vect_is_slp_reduction): Remove check for pattern stmts.
21787 (vect_is_simple_reduction_1): Remove dead code.
21788 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
21789 (vect_get_and_check_slp_defs): Pass in the stmt number.
21790 Allow the first def in a reduction to be not a pattern stmt when
21791 the rest of the stmts def are patterns.
21792 (vect_build_slp_tree_1): Allow tcc_expression codes like
21793 SAD_EXPR and DOT_PROD_EXPR.
21794 (vect_build_slp_tree): Adjust.
21795 (vect_analyze_slp): Refactor and move BB vect error message ...
21796 (vect_slp_analyze_bb_1): ... here.
21798 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
21800 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
21801 for CSWTCH temporary.
21803 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21805 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
21806 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
21809 2015-05-22 Richard Biener <rguenther@suse.de>
21811 PR tree-optimization/66251
21812 * tree-vect-stmts.c (vectorizable_conversion): Properly
21813 set STMT_VINFO_VEC_STMT even for the SLP case.
21815 2015-05-22 Marek Polacek <polacek@redhat.com>
21817 * doc/extend.texi: Use @pxref instead of @xref.
21819 2015-05-22 hiraditya <hiraditya@msn.com>
21821 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
21824 2015-05-22 Richard Biener <rguenther@suse.de>
21826 PR tree-optimization/65701
21827 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21828 Move peeling cost models into one place. Peel for alignment
21829 for single loads only if an aligned load is cheaper than
21832 2015-05-22 Marek Polacek <polacek@redhat.com>
21835 * doc/extend.texi (Enumerator Attributes): New section.
21836 Document syntax of enumerator attributes.
21838 2015-05-22 Richard Biener <rguenther@suse.de>
21840 * tree-vect-loop.c (get_reduction_op): New function.
21841 (vect_model_reduction_cost): Use it, add reduc_index parameter.
21842 Make ready for BB reductions.
21843 (vect_create_epilog_for_reduction): Use get_reduction_op.
21844 (vectorizable_reduction): Init reduc_index to a valid value.
21845 Adjust vect_model_reduction_cost call.
21846 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
21847 operand for reduction defaults. Add SAD_EXPR support.
21848 Assert we have a neutral op for SLP reductions.
21849 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
21850 walking pattern stmt ops only recurse to SSA names.
21852 2015-05-22 Richard Biener <rguenther@suse.de>
21854 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
21855 assert with guard, remove check on detected reduction.
21856 (vect_recog_sad_pattern): Likewise.
21857 (vect_recog_widen_sum_pattern): Likewise.
21859 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21861 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
21862 __always_inline__ attribute.
21863 (vaesdq_u8): Likewise.
21864 (vaesmcq_u8): Likewise.
21865 (vaesimcq_u8): Likewise.
21866 (vsha1cq_u32): Likewise.
21867 (vsha1mq_u32): Likewise.
21868 (vsha1pq_u32): Likewise.
21869 (vsha1h_u32): Likewise.
21870 (vsha1su0q_u32): Likewise.
21871 (vsha1su1q_u32): Likewise.
21872 (vsha256hq_u32): Likewise.
21873 (vsha256h2q_u32): Likewise.
21874 (vsha256su0q_u32): Likewise.
21875 (vsha256su1q_u32): Likewise.
21876 (vmull_p64): Likewise.
21877 (vmull_high_p64): Likewise.
21879 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21881 * final.c (final_scan_insn): Don't check HAVE_peephole with the
21883 * output.h: Likewise.
21884 * genconfig.c (main): Alwways define HAVE_peephole.
21885 * genpeep.c: Don't emit checks of HAVE_peephole.
21887 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21889 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
21890 check HAVE_conditional_move with the preprocessor.
21892 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21894 * genconfig.c (main): Always define HAVE_conditional_move.
21895 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
21896 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
21899 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21901 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
21902 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
21903 and FRAME_POINTER_REGNUM with the preprocessor.
21905 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21907 * defaults.h: Add default for STACK_PUSH_CODE.
21908 * expr.c: Don't redefine STACK_PUSH_CODE.
21909 * recog.c: Likewise.
21911 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21913 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
21914 sched-deps.c: Use if instead of preprocessor checks with
21915 STACK_GROWS_DOWNWARD.
21917 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21919 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
21921 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
21922 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
21923 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
21924 * doc/tm.texi: Regenerate.
21926 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
21929 * config/i386/constraints.md (Bg): New constraint for GOT memory
21931 * config/i386/i386.md (*call_got_x32): New pattern.
21932 (*call_value_got_x32): Likewise.
21933 * config/i386/predicates.md (GOT_memory_operand): New predicate.
21935 2015-05-21 Jakub Jelinek <jakub@redhat.com>
21937 PR tree-optimization/66233
21938 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
21941 2015-05-21 Jeff Law <law@redhat.com>
21943 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
21944 than MULT for shadd sequences.
21946 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
21948 * alias.c (alias_stats): New static var.
21949 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
21950 (dump_alias_stats_in_alias_c): New function.
21951 * alias.h (dump_alias_stats_in_alias_c): Declare.
21952 * tree-ssa-alias.c (dump_alias_stats): Call it.
21954 2015-05-08 Michael Matz <matz@suse.de>
21956 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
21958 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
21959 (STMT_VINFO_STRIDED_P): ... this.
21960 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
21961 (vect_verify_datarefs_alignment): Likewise.
21962 (vect_enhance_data_refs_alignment): Likewise.
21963 (vect_analyze_data_ref_access): Likewise.
21964 (vect_analyze_data_refs): Accept strided stores.
21965 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
21966 (vect_model_load_cost): Adjust for macro rename.
21967 (vectorizable_mask_load_store): Likewise.
21968 (vectorizable_load): Likewise.
21969 (vectorizable_store): Open code strided stores.
21971 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21973 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
21974 Document sqrt_insn.
21976 2015-05-21 Richard Biener <rguenther@suse.de>
21979 * match.pd: Guard pattern optimzing (int)(float)int
21980 conversions to apply only on GIMPLE.
21982 2015-05-21 Jeff Law <law@redhat.com>
21984 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
21985 multiply-accumulate/shift-add insn generation.
21987 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
21990 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
21991 operands[1] are the same.
21993 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
21995 PR middle-end/66221
21996 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
21997 build_distinct_type_copy to copy bounds.
21999 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
22001 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
22002 Change to unsigned int.
22004 2015-05-20 Jeff Law <law@redhat.com>
22006 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
22007 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
22008 (pa_shadd_constant_p): Allow constants for shadd insns rather
22009 than valid scaling constants for memory addresses.
22010 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
22011 * config/pa/predicates.md (mem_shadd_operand): New predicate.
22012 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
22013 (shift-add insns using ASHIFT): New patterns.
22015 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
22017 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
22019 (fix_up_fall_thru_edges): Likewise.
22020 (fix_crossing_conditional_branches): Likewise. Promote jump targets
22021 from to rtx_insn to rtx_code_label where feasible.
22022 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
22023 gen_move_insn (returned type changed to rtx_insn).
22024 * builtins.c (expand_errno_check): Fix arguments of
22025 do_compare_rtx_and_jump (now expects rtx_code_label).
22026 (expand_builtin_acc_on_device): Likewise.
22027 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
22028 invert_jump (now exprects rtx_jump_insn).
22029 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
22030 (construct_init_block): Use rtx_code_label.
22031 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
22032 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
22033 calling redirect_jump.
22034 (patch_jump_insn): Likewise.
22035 (redirect_branch_edge): Likewise.
22036 (force_nonfallthru_and_redirect): Likewise.
22037 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
22039 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
22040 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
22041 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
22042 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
22043 to store the value retured by gen_label_rtx.
22044 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
22046 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
22047 (split_branches): Fix calls of redirect_jump.
22048 * dojump.c (jumpifnot): Promote argument type from rtx to
22050 (jumpifnot_1): Likewise.
22051 (jumpif): Likewise.
22052 (jumpif_1): Likewise.
22053 (do_jump_1): Likewise.
22054 (do_jump): Likewise. Use rtx_code_label when feasible.
22055 (do_jump_by_parts_greater_rtx): Likewise.
22056 (do_jump_by_parts_zero_rtx): Likewise.
22057 (do_jump_by_parts_equality_rtx): Likewise.
22058 (do_compare_rtx_and_jump): Likewise.
22059 * dojump.h: Update function prototypes.
22060 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
22062 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
22064 (emit_label_before): Likewise.
22065 (emit_jump_insn_after_noloc): Likewise.
22066 (emit_jump_insn_after_setloc): Likewise.
22067 (emit_jump_insn_after): Likewise
22068 (emit_jump_insn_before_setloc): Likewise.
22069 (emit_jump_insn_before): Likewise.
22070 (emit_label_before): Promote return type to rtx_code_label.
22071 (emit_label): Likewise.
22072 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
22073 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
22075 (emit_stack_restore): Likewise.
22076 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
22077 (do_cmp_and_jump): Likewise.
22078 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
22079 from rtx to rtx_code_label.
22080 (gen_move_insn_uncast): New function.
22081 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
22082 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
22083 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
22084 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
22085 invert_jump_1 and redirect_jump_1.
22086 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
22087 do_compare_rtx_and_jump.
22088 (expand_addsub_overflow): Likewise.
22089 (expand_neg_overflow): Likewise.
22090 (expand_mul_overflow): Likewise.
22091 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
22092 return value of gen_move_insn.
22093 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
22094 * loop-doloop.c (add_test): Use rtx_code_label.
22095 (doloop_modify): Likewise.
22096 (doloop_optimize): Likewise.
22097 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
22098 * lra-constraints.c (emit_spill_move): Remove cast of value returned
22100 (inherit_reload_reg): Add cast when calling dump_insn_slim.
22101 (split_reg): Likewise.
22102 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
22104 * optabs.c (expand_binop_directly): Remove casts of values returned by
22106 (expand_unop_direct): Likewise.
22107 (expand_abs): Likewise.
22108 (maybe_emit_unop_insn): Likewise.
22109 (maybe_gen_insn): Promote return type to rtx_insn.
22110 * optabs.h: Update prototype of maybe_gen_insn.
22111 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
22113 * recog.c (struct peep2_insn_data): Promote type of insn field to
22115 (peep2_reinit_state): Use NULL instead of NULL_RTX.
22116 (peep2_attempt): Remove casts of insn in peep2_insn_data.
22117 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
22118 * recog.h (struct insn_gen_fn): Promote return types of function
22119 pointers and operator ().from rtx to rtx_insn.
22120 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
22121 (fill_eager_delay_slots): Likewise.
22122 (relax_delay_slots): Likewise.
22123 (make_return_insns): Likewise.
22124 (dbr_schedule): Likewise.
22125 (optimize_skips): Likewise.
22126 (reorg_redirect_jump): Likewise.
22127 (fill_slots_from_thread): Likewise.
22128 * reorg.h: Update prototypes.
22129 * resource.c (find_dead_or_set_registers): Use dyn_cast to
22130 rtx_jump_insn instead of check. Use it's jump_target method.
22131 * rtl.h (rtx_jump_insn::jump_label): Define new method.
22132 (rtx_jump_insn::jump_target): Define new method.
22133 (rtx_jump_insn::set_jump_target): Define new method.
22134 * rtlanal.c (tablejump_p): Promote type of one local variable.
22135 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
22136 (sched_analyze_insn): Likewise.
22137 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
22138 (print_insn): Likewise.
22139 * stmt.c (label_rtx): Promote return type to rtx_insn.
22140 (force_label_rtx): Likewise.
22141 (jump_target_rtx): Define new function.
22142 (expand_label): Use it, get rid of one cast.
22143 (expand_naked_return): Promote rtx to rtx_code_label.
22144 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
22145 (expand_case): Use rtx_code_label instread of rtx where feasible.
22146 (expand_sjlj_dispatch_table): Likewise.
22147 (emit_case_nodes): Likewise.
22148 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
22149 * store-motion.c (insert_store): Make use of new return type of
22150 gen_move_insn and remove a cast.
22151 (replace_store_insn): Likewise.
22153 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
22155 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
22156 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
22158 2015-05-20 Jeff Law <law@redhat.com>
22160 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
22161 dispose of the jump thread path when the jump threading
22162 opportunity is cancelled.
22164 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
22166 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
22167 when printing the caret character.
22169 2015-05-20 Marek Polacek <polacek@redhat.com>
22171 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
22173 2015-05-20 Marek Polacek <polacek@redhat.com>
22175 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
22176 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
22177 * gimple-fold.c (canonicalize_bool): Likewise.
22178 (same_bool_result_p): Likewise.
22179 * tree-if-conv.c (parse_predicate): Likewise.
22181 2015-05-20 Marek Polacek <polacek@redhat.com>
22183 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
22184 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
22186 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22188 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
22189 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
22192 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
22194 * config/mips/mips.h (micromips_globals): Declare.
22196 2015-05-20 David Malcolm <dmalcolm@redhat.com>
22198 * timevar.def (TV_INITIALIZE_RTL): New.
22199 * toplev.c (initialize_rtl): Use an auto_timevar to account this
22200 function's time to TV_INITIALIZE_RTL.
22202 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
22204 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
22205 gimple_build_nop calls.
22206 (chkp_find_bounds_for_elem): Likewise.
22207 (chkp_get_zero_bounds): Likewise.
22208 (chkp_get_none_bounds): Likewise.
22209 (chkp_get_bounds_by_definition): Likewise.
22210 (chkp_generate_extern_var_bounds): Likewise.
22211 (chkp_get_bounds_for_decl_addr): Likewise.
22212 (chkp_get_bounds_for_string_cst): Likewise.
22214 2015-05-20 Bin Cheng <bin.cheng@arm.com>
22216 PR tree-optimization/65447
22217 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
22218 (dump_use, dump_uses): Support to dump sub use.
22219 (record_use): New parameters to support sub use. Remove call to
22221 (record_sub_use, record_group_use): New functions.
22222 (compute_max_addr_offset, split_all_small_groups): New functions.
22223 (group_address_uses, rewrite_use_address): New functions.
22224 (strip_offset): New declaration.
22225 (find_interesting_uses_address): Call record_group_use.
22226 (add_candidate): New assertion.
22227 (infinite_cost_p): Move definition forward.
22228 (add_costs): Check INFTY cost and return immediately.
22229 (get_computation_cost_at): Clear setup cost and dependent bitmap
22231 (determine_use_iv_cost_address): Compute cost for sub uses.
22232 (rewrite_use_address_1): Rename from old rewrite_use_address.
22233 (free_loop_data): Free sub uses.
22234 (tree_ssa_iv_optimize_loop): Call group_address_uses.
22236 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
22237 Jim Wilson <jim.wilson@linaro.org>
22239 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
22240 new fields loadv and storev.
22241 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
22242 Initialize loadv and storev.
22243 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
22244 (cortexa53_extra_costs): Likewise.
22245 (cortexa57_extra_costs): Likewise.
22246 (xgene1_extra_costs): Likewise.
22247 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
22250 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
22252 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
22254 (cortexa8_extra_costs): Likewise.
22255 (cortexa5_extra_costs): Likewise.
22256 (cortexa7_extra_costs): Likewise.
22257 (cortexa12_extra_costs): Likewise.
22258 (cortexa15_extra_costs): Likewise.
22259 (v7m_extra_costs): Likewise.
22261 2015-05-20 Jeff Law <law@redhat.com>
22263 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
22264 instead of open-coded version. Also delete the jump thread created
22265 within this function.
22267 2015-05-20 Alan Modra <amodra@gmail.com>
22269 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
22270 stack adjusting insn. Formatting.
22271 (rs6000_emit_prologue): Track stack adjusting insn, and use of
22272 r12. If possible, emit first -fsplit-stack arg pointer insn
22273 before stack adjust. Don't use r12 to save cr if split-stack.
22275 2015-05-20 Alan Modra <amodra@gmail.com>
22277 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
22279 (rs6000_supports_split_stack): New function.
22280 * gcc/config/rs6000/rs6000.c (machine_function): Add
22281 split_stack_arg_pointer.
22282 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
22283 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
22284 rather than virtual_incoming_args_rtx.
22285 (rs6000_va_start): Likewise.
22286 (split_stack_arg_pointer_used_p): New function.
22287 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
22288 (morestack_ref): New var.
22289 (gen_add3_const, rs6000_expand_split_stack_prologue,
22290 rs6000_internal_arg_pointer, rs6000_live_on_entry,
22291 rs6000_split_stack_space_check): New functions.
22292 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
22293 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
22294 (UNSPECV_SPLIT_STACK_RETURN): Define.
22295 (split_stack_prologue, load_split_stack_limit,
22296 load_split_stack_limit_di, load_split_stack_limit_si,
22297 split_stack_return, split_stack_space_check): New expands and insns.
22298 * gcc/config/rs6000/rs6000-protos.h
22299 (rs6000_expand_split_stack_prologue): Declare.
22300 (rs6000_split_stack_space_check): Declare.
22302 2015-05-20 Alan Modra <amodra@gmail.com>
22304 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
22305 (direct_return): Test vrsave_size rather than vrsave_mask.
22306 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
22307 (rs6000_emit_epilogue): Likewise.
22309 2015-05-20 Alan Modra <amodra@gmail.com>
22311 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
22312 when not saving registers.
22313 (debug_stack_info): Adjust to omit printing unused offsets,
22315 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
22318 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22321 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
22322 value_type to const char *.
22324 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
22326 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
22327 to build a biarch toolchain again.
22329 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
22331 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
22332 or implicit declarations.
22333 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
22335 (get_odr_type): Check type has linkage before adding bases.
22336 (register_odr_type): Check that type has linkage before adding it.
22337 (type_known_to_have_no_deriavations_p): Rename to ..
22338 (type_known_to_have_no_derivations_p): This one.
22339 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
22340 (type_known_to_have_no_derivations_p): This one.
22341 * ipa-polymorphic-call.c
22342 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
22345 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
22347 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
22348 (layout_type): Use RECORD_OR_UNION_TYPE_P.
22350 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22352 * config/s390/s390.c (s390_vector_bool_type_p): New function.
22353 (s390_invalid_binary_op): New function.
22354 (TARGET_INVALID_BINARY_OP): Define macro.
22356 2015-05-19 David Sherwood <david.sherwood@arm.com>
22358 * loop-invariant.c (create_new_invariant): Don't calculate address cost
22359 if mode is not a scalar integer.
22360 (get_inv_cost): Increase computational cost for unused invariants.
22362 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22364 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
22365 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
22366 * config/s390/s390-builtin-types.def: New file.
22367 * config/s390/s390-builtins.def: New file.
22368 * config/s390/s390-builtins.h: New file.
22369 * config/s390/s390-c.c: New file.
22370 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
22371 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
22372 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
22373 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
22375 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
22377 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
22378 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
22379 variable definitions.
22380 (s390_const_operand_ok): New function.
22381 (s390_expand_builtin): Rewrite.
22382 (s390_init_builtins): New function.
22383 (s390_handle_vectorbool_attribute): New function.
22384 (s390_attribute_table): Add s390_vector_bool attribute.
22385 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
22386 (s390_branch_condition_mask): Generate masks for new modes.
22387 (s390_expand_vec_compare_cc): New function.
22388 (s390_mangle_type): Add mangling for vector bool types.
22389 (enum s390_builtin): Remove.
22390 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
22392 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
22393 s390_cpu_cpp_builtins.
22394 (REGISTER_TARGET_PRAGMAS): New macro.
22395 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
22396 (insn_cmp mode attribute): Add new CC modes.
22397 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
22398 (lcbb): New pattern definition.
22399 * config/s390/s390intrin.h: Include vecintrin.h.
22400 * config/s390/t-s390: New file.
22401 * config/s390/vecintrin.h: New file.
22402 * config/s390/vector.md: Include vx-builtins.md.
22403 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
22406 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22408 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
22410 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
22411 (s390_select_ccmode): Likewise.
22412 (s390_canonicalize_comparison): Swap operands if necessary.
22413 (s390_expand_vec_compare_scalar): Expand DFmode compare using
22414 single element vector instructions.
22415 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
22416 (s390_branch_condition_mask): Generate CC masks for the new modes.
22417 * config/s390/s390.md (v0, vf, vd): New mode attributes.
22418 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
22419 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
22420 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
22421 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
22422 (*extend<DSF:mode><BFP:mode>2): New insn definition.
22423 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
22424 (extend<DSF:mode><BFP:mode>2): Turn into expander.
22425 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
22426 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
22427 (sqrt<mode>2): Add vector instruction.
22429 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22431 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
22433 * config/s390/predicates.md (const0_operand, constm1_operand)
22434 (constable_operand): Accept vector operands.
22435 * config/s390/s390-modes.def: Add supported vector modes.
22436 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
22437 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
22438 (s390_bytemask_vector_p, s390_expand_vec_strlen)
22439 (s390_expand_vec_compare, s390_expand_vcond)
22440 (s390_expand_vec_init): Add prototypes.
22441 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
22442 (s390_vector_mode_supported_p): New function.
22443 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
22444 (s390_contiguous_bitmask_vector_p): New function.
22445 (s390_bytemask_vector_p): New function.
22446 (s390_split_ok_p): Vector regs don't work either.
22447 (regclass_map): Add VEC_REGS.
22448 (s390_legitimate_constant_p): Handle vector constants.
22449 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
22450 (legitimate_reload_vector_constant_p): New function.
22451 (s390_preferred_reload_class): Handle CONST_VECTOR.
22452 (s390_reload_symref_address): Likewise.
22453 (s390_secondary_reload): Vector memory instructions only support
22454 short displacements. Rename reload*_nonoffmem* to reload*_la*.
22455 (s390_emit_ccraw_jump): New function.
22456 (s390_expand_vec_strlen): New function.
22457 (s390_expand_vec_compare): New function.
22458 (s390_expand_vcond): New function.
22459 (s390_expand_vec_init): New function.
22460 (s390_dwarf_frame_reg_mode): New function.
22461 (print_operand): Handle addresses with 'O' and 'R' constraints.
22462 (NR_C_MODES, constant_modes): Add vector modes.
22463 (s390_output_pool_entry): Handle vector constants.
22464 (s390_hard_regno_mode_ok): Handle vector registers.
22465 (s390_class_max_nregs): Likewise.
22466 (s390_cannot_change_mode_class): New function.
22467 (s390_invalid_arg_for_unprototyped_fn): New function.
22468 (s390_function_arg_vector): New function.
22469 (s390_function_arg_float): Remove size variable.
22470 (s390_pass_by_reference): Handle vector arguments.
22471 (s390_function_arg_advance): Likewise.
22472 (s390_function_arg): Likewise.
22473 (s390_return_in_memory): Vector values are returned in a VR if
22475 (s390_function_and_libcall_value): Handle vector arguments.
22476 (s390_gimplify_va_arg): Likewise.
22477 (s390_call_saved_register_used): Consider the arguments named.
22478 (s390_conditional_register_usage): Disable v16-v31 for non-vec
22480 (s390_preferred_simd_mode): New function.
22481 (s390_support_vector_misalignment): New function.
22482 (s390_vector_alignment): New function.
22483 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
22484 (TARGET_VECTOR_MODE_SUPPORTED_P)
22485 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
22486 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
22487 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
22488 (TARGET_VECTOR_ALIGNMENT): Define target macro.
22489 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
22490 (FIRST_PSEUDO_REGISTER): Increase value.
22491 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
22492 (VECTOR_REG_P): Define macros.
22493 (FIXED_REGISTERS, CALL_USED_REGISTERS)
22494 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
22495 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
22496 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
22497 Add vector registers.
22498 (CANNOT_CHANGE_MODE_CLASS): Call C function.
22499 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
22500 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
22502 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
22503 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
22504 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
22505 (VR*_REGNUM): New constants.
22506 (ALL): New mode iterator.
22507 (INTALL): Remove mode iterator.
22509 (movti): Implement TImode moves for VRs.
22510 Disable TImode splitter for VR targets.
22511 Implement splitting TImode GPR<->VR moves.
22512 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
22513 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
22514 reload<mode>_la_in, reload<mode>_la_out.
22515 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
22516 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
22517 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
22518 (mov<mode> SF SD): Prefer lder, lde for loading.
22519 Add lrl and strl instructions.
22520 Add vector instructions.
22521 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
22522 Call s390_expand_vec_strlen on z13.
22523 (*cc_to_int): Change predicate to nonimmediate_operand.
22524 (addti3): Rename to *addti3. New expander.
22525 (subti3): Rename to *subti3. New expander.
22526 * config/s390/vector.md: New file.
22528 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22530 * common/config/s390/s390-common.c (processor_flags_table): Add
22532 * config.gcc: Add z13.
22533 * config/s390/s390-opts.h (enum processor_type): Add
22534 PROCESSOR_2964_Z13.
22535 * config/s390/s390.c (s390_adjust_priority): Check for
22536 PROCESSOR_2964_Z13.
22537 (s390_reorg): Likewise.
22538 (s390_sched_reorder): Likewise.
22539 (s390_sched_variable_issue): Likewise.
22540 (s390_loop_unroll_adjust): Likewise.
22541 (s390_option_override): Likewise. Default to -mvx when available.
22542 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
22543 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
22544 (TARGET_VX_ABI): Define macros.
22546 (TARGET_DEFAULT): Add MASK_OPT_VX.
22547 * config/s390/s390.md ("cpu" attribute): Add z13.
22548 ("cpu_facility" attribute): Add vec.
22549 * config/s390/s390.opt (processor_type): Add z13.
22550 (mvx): New options.
22551 * doc/invoke.texi: Add z13 option for -march.
22553 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22555 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
22556 mode check to make sure that only scalar integer values are
22559 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
22561 * tree.c (verify_type_variant): Fix #undef.
22562 (gimple_canonical_types_compatible_p): Move here from lto.c
22563 (verify_type): Verify TYPE_CANONICAL compatibility.
22564 * tree.h (gimple_canonical_types_compatible_p): Declare.
22566 2015-05-19 Jakub Jelinek <jakub@redhat.com>
22568 PR middle-end/66199
22569 * tree.h (OMP_TEAMS_COMBINED): Define.
22570 * gimplify.c (enum gimplify_omp_var_data): Add
22571 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
22572 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
22573 (omp_notice_variable): Accept both ORT_TEAMS
22574 and ORT_COMBINED_TEAMS. Don't recurse if
22575 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
22576 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
22578 (omp_no_lastprivate): New function.
22579 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
22580 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
22581 notice_outer and set appropriate bits, otherwise make
22582 sure default(none) combined constructs won't complain.
22583 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
22584 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
22585 omp_no_lastprivate either remove the clause or turn it
22586 into OMP_CLAUSE_PRIVATE.
22587 (gimplify_omp_for): Fix up handling of implicit
22588 lastprivate or linear iterators.
22589 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
22590 ORT_COMBINED_TEAMS.
22591 * omp-low.c (lower_omp_for_lastprivate): For combined
22592 for simd use fd.loop.n2 from the for rather than simd.
22594 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22596 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
22597 instead of gen_rtx_raw_REG.
22598 (cris_expand_epilogue): Likewise.
22599 * config/microblaze/microblaze.c (microblaze_classify_address):
22601 * config/sparc/sparc.md: Likewise.
22603 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
22605 * config/alpha/alpha.c (alpha_legitimize_reload_address)
22606 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
22607 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
22608 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
22609 Use CASE_CONST_SCALAR_INT.
22610 (print_operand) <case 'M'>: Use mode_width_operand to check the
22611 value of the constant.
22612 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
22613 * config/alpha/predicates.md (input_operand): Use general_operand
22614 instead of match_code as operand check.
22615 (symbolic_operand): Use match_code with subexpression digits.
22616 * config/alpha/constraints.md (Q): Ditto.
22618 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22620 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
22622 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22624 * config/s390/s390.c (s390_secondary_reload): Fix check for
22625 load/store relative.
22627 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22629 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
22630 alternative_mask to uint64_t.
22632 2015-05-19 Jakub Jelinek <jakub@redhat.com>
22634 PR tree-optimization/66187
22635 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
22636 Pass TYPE_SIGN to tree_int_cst_min_precision. If
22637 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
22639 2015-05-19 David Malcolm <dmalcolm@redhat.com>
22641 * diagnostic.c (diagnostic_report_current_module): Strengthen
22642 local "new_map" from const line_map * to
22643 const line_map_ordinary *.
22644 * genmatch.c (error_cb): Likewise for local "map".
22645 (output_line_directive): Likewise for local "map".
22646 * input.c (expand_location_1): Likewise for local "map".
22647 Pass NULL rather than &map to
22648 linemap_unwind_to_first_non_reserved_loc, since the value is never
22649 read from there, and the value written back not read from here.
22650 (is_location_from_builtin_token): Strengthen local "map" from
22651 const line_map * to const line_map_ordinary *.
22652 (dump_location_info): Strengthen locals "map" from
22653 line_map *, one to const line_map_ordinary *, the other
22654 to const line_map_macro *.
22655 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
22656 const line_map * to const line_map_macro *.
22657 (maybe_unwind_expanded_macro_loc): Add a call to
22658 linemap_check_macro when writing to the "map" field of the
22660 Introduce local const line_map_ordinary * "ord_map", using it in
22661 place of "map" in the part of the function where we know we have
22662 an ordinary map. Strengthen local "m" from const line_map * to
22663 const line_map_ordinary *.
22665 2015-05-19 Nick Clifton <nickc@redhat.com>
22668 * config/msp430/msp430.md (zero_extendhisi2): Add support for
22669 separate source and destination registers.
22671 2015-05-19 Richard Biener <rguenther@suse.de>
22673 PR tree-optimization/66165
22674 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
22675 for no load permutation.
22677 PR tree-optimization/66185
22678 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
22679 when building the SLP node from scalars.
22681 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
22682 Tristan Gingold <gingold@adacore.com>
22684 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
22685 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
22686 (expand_stack_restore): Call record_new_stack_level.
22687 (expand_stack_save): Do not call do_pending_stack_adjust.
22688 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
22689 * calls.c (expand_call): Call record_new_stack_level for alloca.
22690 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
22691 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
22692 (update_sjlj_context): New global function.
22693 * except.h (update_sjlj_context): Declare.
22694 * explow.c (record_new_stack_level): New global function.
22695 (allocate_dynamic_stack_space): Call record_new_stack_level.
22696 * explow.h (record_new_stack_level): Declare.
22697 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
22698 * cfgrtl.c (duplicate_insn_chain): Likewise.
22700 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22702 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
22703 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
22704 STACK_GROWS_DOWNWARD as normal if.
22705 (expand_call): Likewise.
22707 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
22710 * config/sh/sh.md (*round_int_even): New insn_and_split and
22711 accompanying new unnamed split.
22713 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22715 * bitmap.c (bitmap_set_range): Handle count==1 specially.
22716 (bitmap_clear_range): Likewise.
22717 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
22718 bitmap_set_range unconditionally.
22719 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
22720 * df-scan.c (df_mark_reg): Likewise.
22721 * haifa-sched.c (setup_ref_regs): Likewise.
22722 * sched-rgn.c (update_live_1): Likewise.
22724 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22726 * regs.h (END_HARD_REGNO): Delete.
22727 (END_REGNO): Move to...
22729 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
22730 * caller-save.c (mark_set_regs): Likewise.
22731 * combine.c (move_deaths, distribute_notes): Likewise.
22732 * cse.c (invalidate, invalidate_for_call): Likewise.
22733 * df-scan.c (df_ref_record): Likewise.
22734 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
22735 (record_last_reg_set_info): Likewise.
22736 * reg-stack.c (convert_regs_exit): Likewise.
22737 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
22738 * resource.c (update_live_status): Likewise.
22739 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
22741 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22743 * rtl.h (reg_info): Add an nregs field.
22744 (REG_NREGS): Use it.
22745 (SET_REGNO_RAW): Delete.
22746 (set_regno_raw): New function.
22747 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
22748 (END_REGNO): Redefine in terms of REG_NREGS.
22749 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
22751 * emit-rtl.c (set_mode_and_regno): Likewise.
22752 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
22753 instead of SET_REGNO_RAW.
22755 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22757 * rtl.h (PUT_MODE_RAW): New macro.
22758 (PUT_REG_NOTE_KIND): Use it.
22759 (set_mode_and_regno): Declare.
22760 (gen_raw_REG): Change regno to "unsigned int".
22761 (gen_rtx_REG): Change "unsigned" to "unsigned int".
22762 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
22763 use set_mode_and_regno to change the mode of registers.
22764 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
22765 * emit-rtl.c (set_mode_and_regno): New function.
22766 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
22767 * caller-save.c (reg_save_code): Use set_mode_and_regno.
22768 * expr.c (init_expr_target): Likewise.
22769 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22770 * postreload.c (reload_cse_simplify_operands): Likewise.
22772 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22774 * caller-save.c (init_caller_save): Use word_mode and
22775 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
22776 * expr.c (init_expr_target): Likewise.
22777 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22778 * postreload.c (reload_cse_regs_1): Likewise.
22780 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22782 * rtl.def (REG): Change format to "r".
22783 * rtl.h (rtunion): Remove rt_reg.
22784 (reg_info): New structure.
22785 (rtx_def): Add reg field to main union.
22786 (X0REGATTR): Delete.
22787 (REG_CHECK): New macro.
22788 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
22789 * rtl.c (rtx_format): Document "r".
22790 (rtx_code_size): Handle REG specially.
22791 * gengenrtl.c (special_format): Return true for formats
22793 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
22794 Deal with REG_ATTRS after the field loop.
22795 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
22796 * expmed.c (init_expmed): Call gen_raw_REG instead of
22798 * expr.c (init_expr_target): Likewise.
22799 * regcprop.c (maybe_mode_change): Likewise.
22800 * varasm.c (make_decl_rtl): Likewise.
22801 * final.c (leaf_renumber_regs_insn): Return early after
22803 * genemit.c (gen_exp): Handle 'r' fields.
22804 * genpeep.c (match_rtx): Likewise.
22805 * gensupport.c (subst_pattern_match): Likewise.
22806 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
22807 (alter_constraints, subst_dup): Likewise.
22808 * read-rtl.c (read_rtx_code): Likewise.
22809 * print-rtl.c (print_rtx): Likewise.
22810 * genrecog.c (find_operand, find_matching_operand): Likewise.
22811 (validate_pattern, match_pattern_2): Likewise.
22812 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
22813 (rtx_test::regno_field): New function.
22814 (operator ==, safe_to_hoist_p, transition_parameter_type)
22815 (parameter_type_string, print_parameter_value)
22816 (print_nonbool_test, print_test): Handle new enum values.
22817 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
22818 * lra-constraints.c (operands_match_p): Likewise.
22820 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22822 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
22823 Change type of new_regno to unsigned int.
22824 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
22825 new_regno to unsigned int.
22826 (df_ref_change_reg_with_loc): Remove old_regno parameter.
22827 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
22828 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
22829 (SET_REGNO_RAW): Add space after ",".
22831 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22833 * rtl.h (REG_NREGS): New macro
22834 * alias.c (record_set): Use it.
22835 * cfgcleanup.c (mark_effect): Likewise.
22836 * combine.c (likely_spilled_retval_1): Likewise.
22837 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
22838 (move_deaths, distribute_notes): Likewise.
22839 * cselib.c (cselib_record_set): Likewise.
22840 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
22841 * df-scan.c (df_mark_reg): Likewise.
22842 * dse.c (look_for_hardregs): Likewise.
22843 * dwarf2out.c (reg_loc_descriptor): Likewise.
22844 (multiple_reg_loc_descriptor): Likewise.
22845 * expr.c (write_complex_part, read_complex_part): Likewise.
22846 (emit_move_complex): Likewise.
22847 * haifa-sched.c (setup_ref_regs): Likewise.
22848 * ira-lives.c (mark_hard_reg_live): Likewise.
22849 * lra.c (lra_set_insn_recog_data): Likewise.
22850 * mode-switching.c (create_pre_exit): Likewise.
22851 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
22852 (reload_combine_recognize_pattern): Likewise.
22853 (reload_combine_note_use, move2add_record_mode): Likewise.
22854 (reload_cse_move2add): Likewise.
22855 * reg-stack.c (subst_stack_regs_pat): Likewise.
22856 * regcprop.c (kill_value, copy_value): Likewise.
22857 (copyprop_hardreg_forward_1): Likewise.
22858 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
22859 (build_def_use): Likewise.
22860 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
22861 (deps_analyze_insn): Likewise.
22862 * sched-rgn.c (check_live_1, update_live_1): Likewise.
22863 * sel-sched.c (count_occurrences_equiv): Likewise.
22864 * valtrack.c (dead_debug_insert_temp): Likewise.
22866 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22868 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
22869 * dse.c (note_add_store): Likewise.
22870 * ira-lives.c (mark_hard_reg_dead): Likewise.
22871 * loop-invariant.c (mark_reg_store): Likewise.
22872 (mark_reg_death): Likewise.
22873 * postreload.c (reload_combine): Likewise.
22874 (reload_combine_note_store): Likewise.
22875 (reload_combine_note_use): Likewise.
22876 * recog.c (peep2_reg_dead_p): Likewise.
22878 2015-05-19 Alan Modra <amodra@gmail.com>
22880 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
22881 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
22882 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
22884 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
22885 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
22886 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
22887 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
22889 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
22891 * config/mips/mips.md (JOIN_MODE): New mode iterator.
22892 (join2_load_Store<JOIN_MODE:mode>): New pattern.
22893 (join2_loadhi): Likewise.
22894 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
22895 load-load and store-stores.
22896 * config/mips/mips.opt (mload-store-pairs): New option.
22897 (TARGET_LOAD_STORE_PAIRS): New macro.
22898 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
22899 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
22900 * config/mips/mips.c (mips_load_store_bonding_p): New function.
22902 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
22904 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
22906 * dojump.c (do_compare_rtx_and_jump): Likewise.
22907 * expmed.c (emit_store_flag_1): Likewise.
22908 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
22909 * final.c (sprint_ul): Use std::reverse for reversing a string.
22910 * fold-const.c (extract_muldiv_1): Use std::swap.
22911 * genmodes.c (emit_mode_int_n): Likewise.
22912 * ifcvt.c (dead_or_predicable): Likewise.
22913 * ira-build.c (ira_merge_live_ranges): Likewise.
22914 (swap_allocno_copy_ends_if_necessary): Likewise.
22915 * ira.c (ira_setup_alts): Likewise.
22916 * loop-iv.c (iv_analyze_expr): Likewise.
22917 (implies_p): Likewise.
22918 (canon_condition): Likewise.
22919 * lra-constraints.c (swap_operands): Likewise.
22920 * lra-lives.c (lra_merge_live_ranges): Likewise.
22921 * omega.c (swap): Remove.
22923 (omega_unprotect_1): Use std::swap.
22924 (omega_solve_geq): Likewise.
22925 * optabs.c (expand_binop_directly): Likewise.
22926 (expand_binop): Likewise.
22927 (emit_conditional_move): Likewise.
22928 (emit_conditional_add): Likewise.
22929 * postreload.c (reload_cse_simplify_operands): Likewise.
22930 * reg-stack.c (emit_swap_insn): Likewise.
22931 (swap_to_top): Likewise.
22932 (compare_for_stack_reg): Likewise.
22933 (subst_asm_stack_regs): Likewise.
22934 * reload.c (find_reloads): Likewise.
22935 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
22936 * sel-sched.c (invoke_reorder_hooks): Likewise.
22937 (create_block_for_bookkeeping): Likewise.
22938 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
22939 (lambda_matrix_right_hermite): Use std::swap.
22940 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
22941 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
22942 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
22943 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
22944 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
22945 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
22946 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
22947 * tree-vrp.c (compare_ranges): Likewise.
22948 * var-tracking.c (add_with_sets): Likewise.
22949 (vt_find_locations): Likewise.
22951 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
22953 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
22955 (FBSD_ENDFILE_SPEC): Likewise.
22956 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
22957 config/freebsd-spec.h.
22958 (ENDFILE_SPEC): Likewise.
22960 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
22961 Richard Henderson <rth@redhat.com>
22964 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
22965 Check for a memory location that is not a reference (using an AND)
22966 to an unaligned location here.
22967 * config/alpha/predicates.md (normal_memory_operand): Remove.
22969 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
22971 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
22972 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
22974 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
22976 * config/mips/mips.c (micromips_globals): New variable.
22977 (mips_set_compression_mode): Save and reinitialize target-dependent
22978 state for microMIPS.
22980 2015-05-18 Martin Liska <mliska@suse.cz>
22982 * dbgcnt.def: Add new counter.
22983 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
22985 2015-05-18 Martin Liska <mliska@suse.cz>
22987 * dbgcnt.def: Sort counters.
22988 * opts.c (common_handle_option): Do not compile if
22989 -fdbg-cnt-list is enabled.
22991 2015-05-18 Tom de Vries <tom@codesourcery.com>
22993 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
22994 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
22995 address operator to va_list operand.
22996 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
22998 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
23000 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
23001 * config/s390/s390.c (s390_gimplify_va_arg): Same.
23002 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
23004 2015-05-18 Tom de Vries <tom@codesourcery.com>
23006 * tree-ssa-tail-merge.c: Fix whitespace.
23008 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
23010 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
23011 cortex-a17, and cortex-a17.cortex-a7.
23013 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
23016 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
23018 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
23021 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
23022 QImode inner modes for TARGET_AVX512BW. Force mask operand
23023 to a register for AVX512F modes.
23025 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23027 * toplev.c (emit_debug_global_declarations): Do not output debug info
23028 when doing slim LTO objects.
23030 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23032 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
23033 odr_types_equivalent_p): Declare.
23034 (odr_type_p): Use gcc_checking_assert.
23035 (type_in_anonymous_namespace_p) Declare.
23036 (type_with_linkage_p): Declare.
23037 * common.opt (Wlto-type-mismatch): New warning.
23038 * ipa-devirt.c (compound_type_base): New function.
23039 (odr_or_derived_type_p): New function.
23040 (odr_types_equivalent_p): New function.
23041 (add_type_duplicate): Simplify.
23042 (type_with_linkage_p): Add hack to prevent false positives on C types
23043 (type_in_anonymous_namespace_p): Likewise.
23044 * tree.c (need_assembler_name_p): Use type_with_linkage.
23045 * tree.h (type_in_anonymous_namespace_p): Remove.
23046 * doc/invoke.texi (-Wlto-type-mismatch): Document
23048 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23050 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
23051 (verify_type): Verify STRING_FLAG.
23053 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
23056 * tree-pretty-print.c (percent_K_format): Replace locus pointer
23057 with accessor function.
23058 * tree-diagnostic.c (diagnostic_report_current_function): Use
23059 diagnostic_location function.
23060 (maybe_unwind_expanded_macro_loc): Likewise.
23061 (virt_loc_aware_diagnostic_finalizer): Likewise.
23062 (default_tree_printer): Replace locus pointer with accessor function.
23063 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
23064 (diagnostic_set_info_translated): Initialize second location.
23065 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
23066 (diagnostic_show_locus): Handle two locations. Call
23067 diagnostic_print_caret_line.
23068 (diagnostic_print_caret_line): New.
23069 (default_diagnostic_starter): Use diagnostic_location function.
23070 (diagnostic_report_diagnostic): Use diagnostic_location function.
23071 (verbatim): Do not set text.locus.
23072 * diagnostic.h (struct diagnostic_info): Remove location field.
23073 (struct diagnostic_context): Make caret_chars an array of two.
23074 (diagnostic_location): New inline.
23075 (diagnostic_expand_location): Handle two locations.
23076 (diagnostic_same_line): New inline.
23077 (diagnostic_print_caret_line): Declare.
23078 (CARET_LINE_MARGIN): New constant.
23079 * pretty-print.c (pp_printf): Do not set text.locus.
23080 (pp_verbatim): Do not set text.locus.
23081 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
23082 (struct text_info): Replace locus pointer with locations
23083 array. Add accessor functions.
23085 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
23086 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23089 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
23090 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
23091 large constants in register instead of splitting them.
23093 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
23096 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
23097 replacements in memory addresses.
23098 (get_unaligned_address): Ditto.
23100 2015-05-16 James Bowman <james.bowman@ftdichip.com>
23102 * config/ft32/*: New files for FT32 port.
23103 * doc/install.texi: Add FT32 information.
23104 * doc/invoke.texi: Add FT32 information.
23105 * doc/md.texi: Add FT32 information.
23106 * doc/contrib.texi: Self added.
23108 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
23110 PR tree-optimization/64454
23111 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
23112 (-1 - A -> ~A): Remove unnecessary condition.
23114 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
23116 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
23117 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
23118 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
23120 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
23122 * ipa-chkp.h (chkp_wrap_function): New.
23123 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
23124 (chkp_wrap_function_name): New.
23125 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
23126 to get wrapper name.
23127 * lto-cgraph.c: Include ipa-chkp.h.
23128 (input_cgraph_1): Avoid alias chain for wrappers.
23130 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
23132 PR middle-end/66134
23133 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
23134 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
23136 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23138 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
23139 (AARCH64_FL_SLOWMUL): Delete.
23140 (AARCH64_FL_CRC): Redefine to 1<<3.
23141 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
23143 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23145 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
23148 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
23150 * config/alpha/alpha.md (extendqidi2): Use general_operand
23151 instead of some_operand for operand[1] predicate.
23152 (extendhidi2): Ditto.
23153 (cbranchdi4): Use general_operand instead of some_operand
23154 for operand[1] and operands[2] predicates.
23155 (cstoredi4): Ditto.
23156 * config/alpha/predicates.md (some_operand): Remove unused predicate.
23157 (some_ni_operand): Ditto.
23159 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
23161 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
23162 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
23163 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
23164 low part of the constant using alpha_emit_set_const_1.
23165 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
23167 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
23169 * varasm.c (output_constant_pool_1): Pass down alignment from
23170 constant pool entry's descriptor to output_constant_pool_2.
23171 (output_object_block): Add comment prior to call to
23172 output_constant_pool_1.
23174 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
23176 PR rtl-optimization/65862
23177 * target.def (ira_change_pseudo_allocno_class): New hook.
23178 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
23180 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
23181 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
23183 * ira-costs.c (find_costs_and_classes): Call the hook and change
23184 classes when it is necessary.
23185 * doc/tm.texi: Update.
23187 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
23189 * config/i386/i386.md (sibcall_memory): Check that register with
23190 callee address is not also used as one of the arguments, instead
23191 of checking that it is not live after the sibcall.
23192 (sibcall_pop_memory): Ditto.
23193 (sibcall_value_memory): Ditto.
23194 (sibcall_value_pop_memory): Ditto.
23196 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
23198 * generic-match-head.c (types_match): Handle non-types.
23199 * gimple-match-head.c (types_match): Likewise.
23200 * match.pd: Remove unnecessary TREE_TYPE for types_match.
23202 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
23204 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
23205 (csneg3<mode>_insn): Enable expansion of pattern.
23207 2015-05-14 Nick Clifton <nickc@redhat.com>
23209 * config/rl78/rl78.c (rl78_select_section): Select the correct
23210 default section based upon the category of the decl.
23212 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23214 PR rtl-optimization/30967
23215 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
23216 destination mode for the cost of scc patterns.
23218 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
23220 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
23221 using SWIM248 mode iterator.
23222 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
23223 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
23224 for operand[2] constraint.
23225 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
23227 2015-05-13 Jakub Jelinek <jakub@redhat.com>
23229 PR middle-end/66133
23230 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
23231 make sure it is never noreturn, even when the task body does not
23233 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
23234 right before GIMPLE_OMP_RETURN.
23235 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
23236 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
23237 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
23239 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23241 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
23242 * tree-ssa-math-opts.c: Include params.h
23243 (pow_synth_sqrt_info): New struct.
23244 (representable_as_half_series_p): New function.
23245 (get_fn_chain): Likewise.
23246 (print_nested_fn): Likewise.
23247 (dump_fractional_sqrt_sequence): Likewise.
23248 (dump_integer_part): Likewise.
23249 (expand_pow_as_sqrts): Likewise.
23250 (gimple_expand_builtin_pow): Use above to attempt to expand
23251 pow as series of square roots. Removed now unused variables.
23253 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
23255 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
23256 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
23257 Remove *p0 and *p1 arguments. Rewrite function.
23258 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
23259 (alpha_split_const_mov): Update calls to alpha_extract_integer and
23260 alpha_emit_set_long_const.
23261 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
23262 (alpha_output_mi_thunk_osf): Ditto.
23263 * config/alpha/alpha.md (movti): Do not check operands[1]
23266 2015-05-13 Richard Biener <rguenther@suse.de>
23268 PR tree-optimization/66129
23269 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
23271 (vect_schedule_slp_instance): Fix typo.
23273 2015-05-13 David Malcolm <dmalcolm@redhat.com>
23275 * common.opt (fdump-internal-locations): New option.
23276 * input.c: Include diagnostic-core.h.
23277 (get_end_location): New function.
23278 (write_digit): New function.
23279 (write_digit_row): New function.
23280 (dump_location_range): New function.
23281 (dump_labelled_location_range): New function.
23282 (dump_location_info): New function.
23283 * input.h (dump_location_info): New prototype.
23284 * toplev.c (compile_file): Handle flag_dump_locations.
23286 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
23288 * gimple-expr.h (is_gimple_constant): Reorder.
23289 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
23291 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23293 * combine.c (simplify_set): When generating a CC set, if the
23294 source already is in the correct mode, do not wrap it in a
23295 compare. Simplify the rest of that code.
23297 2015-05-13 Richard Biener <rguenther@suse.de>
23299 PR tree-optimization/66123
23300 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
23303 2015-05-13 Richard Biener <rguenther@suse.de>
23305 PR middle-end/66110
23306 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
23308 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
23310 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23312 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
23313 * aclocal.m4: Regenerated with automake-1.11.6.
23315 2015-05-13 Tom de Vries <tom@codesourcery.com>
23317 PR tree-optimization/66010
23318 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
23319 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
23320 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
23321 and rval based on do_deref.
23323 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23326 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
23327 link time constants into adress expressions and therefore set
23330 2015-05-13 Jakub Jelinek <jakub@redhat.com>
23333 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
23334 Use SWI248 iterator instead of SWI.
23335 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
23336 Use eq_attr "alternative" "0" instead of match_test in
23337 length_immediate attribute computation.
23338 (*mulvhi4, *mulvhi4_1): New define_insns.
23341 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
23342 SIGNED to get precision of non-negative value.
23344 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23347 * function.c (diddle_return_value_1): Process bounds first.
23348 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
23351 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23353 PR rtl-optimization/64616
23354 * loop-invariant.c (can_move_invariant_reg): New.
23355 (move_invariant_reg): Call above new function to decide whether
23356 instruction can just be moved, skipping creation of temporary
23359 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23361 PR target/pr66047.c
23362 * i386.c (ix86_function_sseregparm): Only return -1 if local function
23363 with implied regparm is called from -mno-sse function.
23364 (init_cumulative_args): Output error if ix86_function_sseregparm
23365 return -1 and SSE register would be needed.
23366 (function_arg_advance_32): Likewise.
23367 (function_arg_32): Likewise.
23368 * i386.h (ix86_args): Add decl field.
23370 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23373 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
23374 inlines across optimization boundary.
23376 2015-05-12 Jason Merrill <jason@redhat.com>
23378 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
23379 string literal and macro name.
23381 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
23383 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
23384 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
23385 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
23387 2015-05-12 David Malcolm <dmalcolm@redhat.com>
23389 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
23390 (-Wmisleading-indentation): New option.
23391 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
23393 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
23395 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
23396 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
23397 (alpha_extract_integer): Ditto.
23398 (alpha_legitimate_constant_p): Ditto.
23399 (alpha_split_tmode_pair): Ditto.
23400 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
23401 (alpha_expand_mov): Ditto.
23402 (print_operand): Remove handling of 'H' modifier.
23403 <case 'm'>: Remove CONST_DOUBLE handling.
23404 (summarize_insn): Handle CONST_WIDE_INT.
23405 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
23407 (movti): Handle CONST_WIDE_INT.
23408 * config/alpha/constraints.md ('H'): Remove constraint definition.
23409 ('G'): Do not match MODE_FLOAT class.
23410 * config/alpha/predicates.md (const0_operand): Also match
23412 (non_add_const_operand): Ditto.
23413 (non_zero_const_operand): Ditto.
23414 (some_operand): Ditto.
23415 (input_operand): Ditto. Handle CONST_WIDE_INT.
23416 (and_operand): Do not match const_double.
23417 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
23419 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
23422 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
23423 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
23424 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
23425 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
23426 is_mm_seq_cst, is_mm_sync): New accessor functions.
23427 * builtins.c (expand_builtin_sync_operation,
23428 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
23429 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
23430 (get_memmodel, expand_builtin_atomic_compare_exchange,
23431 expand_builtin_atomic_load, expand_builtin_atomic_store,
23432 expand_builtin_atomic_clear): Use new accessor routines.
23433 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
23434 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
23435 (maybe_emit_sync_lock_test_and_set): Use new accessors and
23436 MEMMODEL_SYNC_ACQUIRE.
23437 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
23438 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
23439 expand_atomic_store): Use new accessors.
23440 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
23441 * tsan.c (instrument_builtin_call): Update check for memory model beyond
23442 final enum to use MEMMODEL_LAST.
23443 * c-family/c-common.c: Use new accessor for memmodel_base.
23444 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
23446 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
23447 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
23448 mem_thread_fence, *dmb): Likewise.
23449 * config/alpha/alpha.c (alpha_split_compare_and_swap,
23450 alpha_split_compare_and_swap_12): Likewise.
23451 * config/arm/arm.c (arm_expand_compare_and_swap,
23452 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
23453 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
23454 atomic_loaddi): Likewise.
23455 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
23457 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
23458 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
23460 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
23461 atomic_store<mode>, atomic_compare_and_swap<mode>,
23462 atomic_exchange<mode>): Use new accessors.
23463 * config/mips/mips.c (mips_process_sync_loop): Likewise.
23464 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
23465 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
23466 rs6000_post_atomic_barrier): Add new cases.
23467 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
23468 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
23469 (atomic_load<mode>): Add new cases and use new accessors.
23470 (store_quadpti): Add new cases.
23471 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
23473 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
23474 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
23477 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23479 * ipa-devirt.c (type_with_linkage_p): New function.
23480 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
23482 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
23483 (can_be_name_hashed_p): Simplify.
23484 (hash_odr_name): Check that type has linkage before checking if it is
23486 (types_same_for_odr): Likewise.
23487 (odr_name_hasher::equal): Likewise.
23488 (odr_subtypes_equivalent_p): Likewise.
23489 (warn_types_mismatch): Likewise.
23490 (get_odr_type): Likewise.
23491 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
23492 * ipa-utils.h (odr_type_p): Move offline.
23493 * tree.c (need_assembler_name_p): Fix handling of types
23495 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
23497 2015-05-12 David Malcolm <dmalcolm@redhat.com>
23499 * timevar.c (timevar_enable): Delete in favor of...
23500 (g_timer): New global.
23501 (struct timevar_def): Move to timevar.h inside class timer.
23502 (struct timevar_stack_def): Likewise.
23503 (timevars): Delete global in favor of field "m_timevars" within
23504 class timer in timevar.h
23505 (stack): Likewise, in favor of field "m_stack".
23506 (unused_stack_instances): Likewise, in favor of field
23507 "m_unused_stack_instances".
23508 (start_time): Likewise, in favor of field "m_start_time".
23509 (get_time): Eliminate check for timevar_enable.
23510 (timer::timer): New function, built from part of timevar_init.
23511 (timevar_init): Rewrite idempotency test from using
23512 "timevar_enable" bool to using dynamic allocation of "g_timer".
23513 Move rest of implementation into timer's constructor.
23514 (timevar_push_1): Rename to...
23515 (timer::push): ...this, adding "m_" prefixes to variables that
23516 are now fields of timer.
23517 (timevar_pop_1): Likewise, rename to...
23518 (timer::pop): ...this, and add "m_" prefixes.
23519 (timevar_start): Replace test for "timevar_enable" with one for
23520 "g_timer", and move bulk of implementation to...
23521 (timer::start): ...here, adding "m_" prefixes.
23522 (timevar_stop): Likewise, from here...
23523 (timer::stop): ...to here.
23524 (timevar_cond_start): Likewise, from here...
23525 (timer::cond_start): ...to here.
23526 (timevar_cond_stop): Likewise, from here...
23527 (timer::cond_stop): ...to here.
23528 (validate_phases): Rename to...
23529 (timer::validate_phases): ...this, and add "m_" prefixes. Make
23530 locals "total" and "tv" const.
23531 (timevar_print): Rename to...
23532 (timer::print): ...this, and add "m_" prefixes. Make locals
23533 "total" and "tv" const. Eliminate test for timevar_enable.
23534 * timevar.h (timevar_enable): Eliminate.
23535 (g_timer): New declaration.
23536 (timevar_push_1): Eliminate.
23537 (timevar_pop_1): Eliminate.
23538 (timevar_print): Eliminate.
23539 (class timer): New class.
23540 (timevar_push): Rewrite to use g_timer.
23541 (timevar_pop): Likewise.
23542 * toplev.c (toplev::~toplev): Likewise.
23544 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
23546 * arm-protos.h (arm_sched_autopref): Delete.
23547 (tune_params): Re-organize, use enums for flag values.
23548 (FUSE_OPS): New macro.
23549 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
23550 (ARM_PREFETCH_BENEFICIAL): Likewise.
23551 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
23552 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
23553 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
23554 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
23555 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
23556 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
23557 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
23558 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
23560 (arm_option_override, thumb2_reorg, arm_print_tune_info)
23561 (aarch_macro_fusion_pair_p): Update uses of current_tune.
23562 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
23564 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
23566 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
23569 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
23570 Sandra Loosemore <sandra@codesourcery.com>
23572 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
23574 (REG_CLASS_NAMES): Add "IJMP_REGS".
23575 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
23576 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
23577 use new "c" register constraint.
23578 * config/nios2/constraint.md (c): New register constraint
23579 corresponding to IJMP_REGS.
23581 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23583 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
23584 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
23585 define_splits): Delete, revamp, transmogrify into ...
23586 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
23587 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
23588 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
23591 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23593 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
23594 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
23596 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23598 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
23599 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
23600 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
23601 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
23602 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
23603 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
23604 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
23605 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
23606 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
23607 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23608 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
23609 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
23610 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
23611 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
23612 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
23613 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
23614 and 30 corresponding splitters): Delete.
23616 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23618 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
23621 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23623 * combine.c (recog_for_combine_1): New function, factored out
23624 from recog_for_combine.
23625 (change_zero_ext): New function.
23626 (recog_for_combine): If recog fails, try again with the pattern
23627 modified by change_zero_ext; if that still fails, restore the
23630 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23632 * combine.c (get_undo_marker): New function.
23633 (undo_to_marker): New function, largely factored out from ...
23634 (undo_all): ... this. Adjust.
23636 2015-05-12 Richard Biener <rguenther@suse.de>
23638 PR tree-optimization/66101
23639 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
23640 fixup if we turn a loop exit edge to a fallthru edge.
23642 2015-05-12 Richard Biener <rguenther@suse.de>
23644 PR tree-optimization/37021
23645 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
23646 (SLP_TREE_TWO_OPERATORS): New define.
23647 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
23648 SLP_TREE_TWO_OPERATORS.
23649 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
23651 (vect_build_slp_tree): Adjust.
23652 (vect_analyze_slp_cost_1): Likewise.
23653 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
23654 emitting two vector stmts and mixing the results.
23656 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23658 * call.c (print_z_candidates): Remove dead code.
23660 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23662 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
23663 and zEC12_simple_fp.
23664 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
23667 2015-05-12 Tom de Vries <tom@codesourcery.com>
23669 PR tree-optimization/66010
23670 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
23672 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
23673 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
23674 va_lists are passed, and remove corresponding handling.
23675 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
23676 do_deref argument to ifn_va_arg.
23677 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
23680 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23683 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
23684 REG before taking its REGNO.
23686 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
23688 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
23689 rsp->sign_bit_copies and rsp->nonzero_bits into ...
23690 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
23691 present to get more accurate information about the number of sign bit
23692 copies and non zero bits.
23694 2015-05-12 Richard Biener <rguenther@suse.de>
23696 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
23697 do not allow unrolling.
23699 2015-05-11 Richard Henderson <rth@redhat.com>
23701 * config/i386/i386-modes.def (CCP): New.
23702 * config/i386/i386.c (put_condition_code): Handle it.
23703 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
23705 2015-05-11 Richard Henderson <rth@redhat.com>
23707 * target.def (md_asm_clobbers): Replace with...
23708 (md_asm_adjust): this.
23709 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
23710 (TARGET_MD_ASM_ADJUST): New.
23711 * tm.texi: Rebuild.
23712 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
23713 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
23714 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
23716 * cfgexpand.c (check_operand_nalternatives): Accept vector of
23717 constraints instead of lists of outputs and inputs.
23718 (expand_asm_stmt): Save and restore input_location around the
23719 body of the function. Move asm data into vectors instead of
23720 building tree lists. Generate cleanup sequences as needed,
23721 rather than waiting til the end. Use new md_asm_adjust hook.
23723 * config/vxworks.c: Include vec.h before target.h.
23724 * gimple.c: Likewise.
23725 * incpath.c: Likewise.
23726 * mode-switching.c: Likewise.
23728 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
23729 (cris_md_asm_adjust): this.
23730 (TARGET_MD_ASM_CLOBBERS): Remove.
23731 (TARGET_MD_ASM_ADJUST): New.
23732 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
23733 (ix86_md_asm_adjust): this.
23734 (TARGET_MD_ASM_CLOBBERS): Remove.
23735 (TARGET_MD_ASM_ADJUST): New.
23736 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
23737 (mn10300_md_asm_adjust): this.
23738 (TARGET_MD_ASM_CLOBBERS): Remove.
23739 (TARGET_MD_ASM_ADJUST): New.
23740 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
23741 (rs6000_md_asm_adjust): this.
23742 (TARGET_MD_ASM_CLOBBERS): Remove.
23743 (TARGET_MD_ASM_ADJUST): New.
23744 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
23745 (visium_md_asm_adjust): this.
23746 (TARGET_MD_ASM_CLOBBERS): Remove.
23747 (TARGET_MD_ASM_ADJUST): New.
23749 2015-05-11 Richard Henderson <rth@redhat.com>
23751 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
23752 if noutputs is zero.
23753 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
23755 * cfgexpand.c (expand_asm_operands): Merge into...
23756 (expand_asm_stmt): ... here.
23758 * cfgexpand.c (expand_asm_operands): Don't call
23759 resolve_asm_operand_names.
23760 * stmt.c (resolve_asm_operand_names): Clarify block comment.
23762 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
23764 * dwarf2out.c (gen_member_die): Sanity check that we access
23765 TYPE_MAIN_VARIANT for TYPE_METHODS.
23766 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
23767 checking TYPE_METHODS.
23768 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
23770 (build_distinct_type_copy): Clear TYPE_METHODS.
23771 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
23772 (verify_type): Allow TYPE_METHODS to be error_mark_node.
23773 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
23775 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
23777 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
23778 (emit_pattern_before_setloc): Likewise.
23780 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
23782 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
23783 for define_peephole2s.
23784 (get_peephole2_pattern): New function.
23785 (main): Use it. Call validate_pattern.
23787 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23789 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
23790 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
23791 (Last callee saved reg is different for AVR_TINY architecture)
23793 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
23795 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
23796 when looking for memory references.
23798 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
23801 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
23802 via function pointers.
23804 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
23806 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
23807 indirect call by forcing address into a pseudo with -fno-plt.
23808 * common.opt (flag_plt): New option.
23809 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
23810 ([-fno-plt]): Document.
23812 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
23815 * config/rs6000/option-defaults.h: Add space between string literal
23818 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
23820 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
23821 accross ARM targets.
23823 2015-05-11 Christian Bruel <christian.bruel@st.com>
23825 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
23826 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
23828 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
23830 PR rtl-optimization/66076
23831 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
23832 Don't grow the heap array if it is already big enough from a
23833 previous iteration.
23835 2015-05-11 Christian Bruel <christian.bruel@st.com>
23837 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
23838 (is_called_in_ARM_mode): Remove.
23839 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
23840 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
23841 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
23842 arm_declare_function_name.
23844 2015-05-11 Christian Bruel <christian.bruel@st.com>
23846 * config/arm/arm.c (arm_option_override): Reoganized and split into :
23847 (arm_option_params_internal); New function.
23848 (arm_option_check_internal): New function.
23849 (arm_option_override_internal): New function.
23850 (thumb_code, thumb1_code): Remove.
23851 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
23852 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
23853 (thumb_code, thumb1_code): Remove.
23854 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
23856 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
23858 * config/alpha/alpha.c (alpha_emit_set_const_1)
23859 (alpha_emit_set_long_const, alpha_extract_integer)
23860 (alpha_legitimate_constant_p, alpha_split_const_mov)
23861 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
23862 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23863 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
23865 * config/alpha/predicates.md (mode_mask_operand): Do not match
23867 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23868 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
23869 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
23870 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23871 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
23873 2015-05-11 Jakub Jelinek <jakub@redhat.com>
23876 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
23877 default_binds_local_p_2.
23878 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
23879 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
23881 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23883 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
23885 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23887 Patch by Richard Biener
23888 * coverage.c (coverage_obj_init): Delay building of type variant
23889 until the type is finished.
23891 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23893 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
23894 mismatch between C and C++ type; compoare correctly ARG_TYPES
23895 for non-prototypes and output correctly parameter index for METHOD_TYPE.
23896 (odr_types_equivalent_p): Fix wording of warning about attributes;
23897 it is OK to match prototype and non-prototype.
23899 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23901 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
23902 TYPE_ARG_TYPES list.
23903 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
23904 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
23906 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23908 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
23909 * tree.h (is_lang_specific): Constify.
23911 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
23913 PR tree-optimization/64454
23914 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
23917 2015-05-08 Jason Merrill <jason@redhat.com>
23919 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
23920 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
23921 config/darwin.h, config/darwin9.h, config/elfos.h,
23922 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
23923 config/microblaze/microblaze.h, config/mips/mips.h,
23924 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
23925 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
23926 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
23927 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
23928 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
23929 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
23930 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
23931 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
23932 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
23933 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
23934 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
23935 between string literal and macro name.
23937 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23939 * jump.c: Change argument types to rtx_insn *.
23942 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23944 * lra-constraints.c: Change argument type to rtx_insn *.
23946 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23948 * df-problems.c: Change argument type to rtx_insn *.
23950 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23952 * combine.c: Change argument type to rtx_insn *.
23954 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23957 * rtlanal.c: Change argument type to rtx_insn *.
23959 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23961 * sched-deps.c: Change argument types to rtx_insn *.
23962 * sched-int.h: Adjust.
23964 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23966 * dwarf2cfi.c: Change argument type to rtx_insn *.
23968 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23970 * ira.c (decrease_live_ranges_number): Changetype of local
23971 variable to rtx_insn *.
23972 * recog.c: Change argument types to rtx_insn *.
23975 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23977 * reorg.c: Change argument types to rtx_insn *.
23979 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23981 * ira-color.c: Change argument types to rtx_insn *.
23982 * lra-eliminations.c: Likewise.
23985 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23987 * gcse.c: Change argument types to rtx_insn *.
23989 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23991 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
23993 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23995 * emit-rtl.c (emit_debug_insn_before): Change argument type to
23999 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24001 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
24004 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24006 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
24009 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24011 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
24014 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24016 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
24019 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24021 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
24025 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24027 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
24031 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24033 * except.c (can_nonlocal_goto): Change type of argument to
24037 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24039 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
24042 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24044 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
24045 * cfgrtl.c (can_delete_label_p): Adjust.
24048 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24050 * reorg.c (stop_search_p): Change argument to rtx_insn *.
24052 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24054 * except.c (make_reg_eh_region_note): Change argument to
24056 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
24057 * except.h: Adjust.
24059 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24061 * mode-switching.c (commit_mode_sets): Change type of local
24062 variable from rtx to rtx_insn *.
24064 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
24066 * doc/install.texi (--enable-languages): Add missing jit and lto info.
24067 Add ^ to grep command.
24068 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
24069 arg to last gimple_simplify declaration. Add missing gimple_build
24070 declaration for built-in function case with four tree args.
24072 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
24073 Szabolcs Nagy <szabolcs.nagy@arm.com>
24075 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
24076 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
24077 (GNU_USER_DYNAMIC_LINKERN32): Update.
24079 2015-05-08 Richard Biener <rguenther@suse.de>
24081 PR tree-optimization/66036
24082 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
24083 Handle strided group loads.
24084 (vect_verify_datarefs_alignment): Likewise.
24085 (vect_enhance_data_refs_alignment): Likewise.
24086 (vect_analyze_group_access): Likewise.
24087 (vect_analyze_data_ref_access): Likewise.
24088 (vect_analyze_data_ref_accesses): Likewise.
24089 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
24090 (vectorizable_load): Likewise.
24092 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
24094 * config/rs6000/rs6000.md: Require operand inequality in one
24097 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
24098 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24100 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
24102 * config/rx/rx.md (movdi, movdf): Likewise.
24103 Likewise for define_peephole2s.
24105 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24107 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
24108 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
24109 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
24110 vtst_u64): Rewrite using gcc vector extensions.
24112 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24114 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
24115 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
24117 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24119 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
24121 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
24123 * config/glibc-stdint.h (OPTION_MUSL): Define.
24124 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
24125 Change the definition based on OPTION_MUSL for 64 bit targets.
24126 * config/linux.h (OPTION_MUSL): Redefine.
24127 * config/alpha/linux.h (OPTION_MUSL): Redefine.
24128 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
24129 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
24131 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
24132 Szabolcs Nagy <szabolcs.nagy@arm.com>
24134 * config.gcc (LIBC_MUSL): New tm_defines macro.
24135 * config/linux.h (OPTION_MUSL): Define.
24136 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
24137 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
24138 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24139 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24140 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24141 * config/linux.opt (mmusl): New option.
24142 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
24143 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24144 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24145 * configure: Regenerate.
24147 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
24148 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24151 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
24152 * config/i386/knetbsd-gnu64.h: New file.
24154 2015-05-08 Marek Polacek <polacek@redhat.com>
24157 * doc/invoke.texi: Document -Woverride-init-side-effects.
24159 2015-05-07 Marek Polacek <polacek@redhat.com>
24162 * doc/invoke.texi: Document -Wshift-negative-value.
24164 2015-05-06 Aditya Kumar <hiraditya@msn.com>
24166 * gcov-tool.c (do_merge): Refactore to remove int ret.
24167 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
24168 !type == FUNC to type != FUNC.
24169 * reload.h (struct target_reload): Changee to type of
24170 x_spill_indirect_levels from bool to unsigned char.
24172 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
24174 * rtl.h (always_void_p): New function.
24175 * gengenrtl.c (always_void_p): Likewise.
24176 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
24177 with code foo are always VOIDmode.
24178 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
24179 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
24180 compare-elim.c, config/aarch64/aarch64.c,
24181 config/aarch64/aarch64.md, config/alpha/alpha.c,
24182 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
24183 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
24184 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
24185 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24186 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
24187 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
24188 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
24189 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
24190 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
24191 config/ia64/vect.md, config/iq2000/iq2000.c,
24192 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
24193 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
24194 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
24195 config/mep/mep.c, config/microblaze/microblaze.c,
24196 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
24197 config/mn10300/mn10300.c, config/msp430/msp430.c,
24198 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
24199 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
24200 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
24201 config/rs6000/altivec.md, config/rs6000/rs6000.c,
24202 config/rs6000/rs6000.md, config/rs6000/vector.md,
24203 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
24204 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
24205 config/sh/sh.md, config/sh/sh_treg_combine.cc,
24206 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
24207 config/spu/spu.md, config/stormy16/stormy16.c,
24208 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
24209 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
24210 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
24211 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
24212 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
24213 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
24214 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
24215 var-tracking.c: Update calls accordingly.
24217 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
24220 PR middle-end/54303
24221 * varasm.c (function_mergeable_rodata_prefix): New function.
24222 (mergeable_string_section): Use it.
24223 (mergeable_constant_section): Use it.
24225 2015-05-07 Jeff Law <law@redhat.com>
24228 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24229 simplifier to narrow arithmetic.
24230 * generic-match-head.c: (types_match, single_use): New functions.
24231 * gimple-match-head.c: (types_match, single_use): New functions.
24233 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24235 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
24238 2015-05-07 Richard Biener <rguenther@suse.de>
24240 PR tree-optimization/66002
24241 * passes.def: Schedule another pass_merge_phi after ifcombine, right
24244 2015-05-07 Marek Polacek <polacek@redhat.com>
24245 Martin Uecker <uecker@eecs.berkeley.edu>
24247 * doc/invoke.texi: Document -fsanitize=bounds-strict.
24248 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
24249 into SANITIZE_NONDEFAULT.
24250 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
24252 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
24255 * config/alpha/alpha.c (alpha_override_options_after_change): New.
24256 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
24257 (alpha_override_options): Move align_loops, align_jumps and
24258 align_functions handling into alpha_override_options_after_change.
24260 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
24261 Chris Jones <chrisj@nvidia.com>
24262 Joshua Conner <jconner@nvidia.com>
24264 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
24265 linking of crtfastmath.o.
24266 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
24268 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24270 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
24271 (cstore<mode>4_unsigned_imm): New expander.
24272 (cstore<mode>4): Remove empty constraint strings. Use the new
24275 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
24278 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
24281 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
24283 * config/aarch64/geniterators.sh: Use standard BRE in sed.
24285 2015-05-06 Alan Modra <amodra@gmail.com>
24288 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
24289 (UNSPEC_NOP): Define.
24290 (reload_vsx_from_gpr<mode>): Add missing DONE.
24291 (reload_gpr_from_vsx<mode>): Likewise.
24292 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
24293 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
24295 2015-05-06 Christian Bruel <christian.bruel@st.com>
24298 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
24299 align_jumps, align_functions into aarch64_override_options_after_change.
24301 2015-05-06 Richard Biener <rguenther@suse.de>
24303 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
24304 vect_transform_slp_perm_load to check if we support a permutation
24305 for basic-block vectorization.
24307 2015-05-06 Nick Clifton <nickc@redhat.com>
24309 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
24310 used, even if it is not being used as a frame pointer.
24312 2015-05-05 Jason Merrill <jason@redhat.com>
24314 * dwarf2out.c (gen_member_die): Don't emit anything for an
24315 anonymous class constructor.
24317 2015-05-05 David Malcolm <dmalcolm@redhat.com>
24319 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
24320 that it reflects the block structure.
24321 (afdo_propagate_edge): Likewise.
24322 (afdo_calculate_branch_prob): Likewise.
24323 (afdo_annotate_cfg): Likewise.
24324 * cfgcleanup.c (equal_different_set_p): Likewise.
24325 (try_crossjump_to_edge): Likewise.
24326 * cgraph.c (cgraph_node::verify_node): Likewise.
24327 * cgraphunit.c (expand_all_functions): Likewise.
24328 * config/i386/i386.c (ix86_expand_copysign): Likewise.
24329 (exact_dependency_1): Likewise.
24330 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
24331 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
24332 * gensupport.c (process_define_subst): Likewise.
24333 * lto-wrapper.c (merge_and_complain): Likewise.
24334 * tree-if-conv.c (if_convertible_bb_p): Likewise.
24335 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
24336 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
24337 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
24338 * tree-vect-loop.c (vectorizable_reduction): Likewise.
24339 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
24340 * tree-vect-stmts.c (vectorizable_shift): Likewise.
24341 * tree-vrp.c (vrp_finalize): Likewise.
24342 * tree.c (variably_modified_type_p): Likewise.
24344 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
24346 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
24347 on darwin12 and later.
24348 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
24349 file to pass -rdynamic on darwin12 and later.
24350 * config/darwin.opt (rdynamic): Add.
24352 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24354 * doc/extend.texi (C Extensions): Update menu for moved Variable
24355 Attributes and Type Attributes sections.
24357 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24360 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
24361 if rep_8byte stringop strategy was specified for 32-bit target.
24363 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
24366 * config/i386/i386.md (vector convert to float spltiter): Check for
24367 xmm16+, when splitting scalar float conversion.
24368 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
24370 2015-05-05 Nick Clifton <nickc@redhat.com>
24372 * config/msp430/msp430-opts.h (enum msp430_regions): New.
24373 * config/msp430/msp430.c (msp430_override_options): Complain if
24374 -mcode-region or -mdata-region is used on a non MSP430X.
24375 (msp430_section_attr): New function. Checks lower, upper and
24377 (msp430_attribute_table): Add lower, upper and either.
24378 (gen_prefix): New function. Generates a prefix for a section
24380 (msp430_select_section): New function - handles the choice of
24381 section for an object. Takes into account memory region
24382 attributes and options.
24383 (msp430_function_section): Use gen_prefix.
24384 (TARGET_SECTION_TYPE_FLAGS): Define.
24385 (msp430_section_type_flags): New function.
24386 (TARGET_ASM_UNIQUE_SECTION): Define.
24387 (msp430_unique_section): New function.
24388 (msp430_output_aligned_decl_common): New function.
24389 (msp430_do_not_relax_short_jumps): New function.
24390 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
24392 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
24393 * config/msp430/msp430-protos.h
24394 (msp430_do_not_relax_short_jumps): New prototype.
24395 (msp430_output_aligned_decl_common): New prototype.
24396 * config/msp430/msp430.md (length): New attribute.
24397 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
24398 then use a long code sequence for short jumps.
24399 * config/msp430/msp430.opt (mcode-region): New.
24400 (mdata-region): New.
24401 * doc/invoke.texi: Document new options.
24402 * doc/extend.texi: Document new attributes.
24404 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
24406 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
24407 (tune_params): Add field branch_costs.
24408 (aarch64_branch_cost): Declare.
24409 * gcc/config/aarch64.c (generic_branch_cost): New.
24410 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
24411 (cortexa53_tunings): Likewise.
24412 (cortexa57_tunings): Likewise.
24413 (thunderx_tunings): Likewise.
24414 (xgene1_tunings): Likewise.
24415 (aarch64_branch_cost): Define.
24416 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
24418 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24420 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
24421 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
24422 * config/i386/i386.md: Ditto.
24423 * config/i386/winnt.c: Ditto.
24425 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
24427 * doc/extend.texi (__atomic Builtins): Move implementation details
24428 to the end of the description, rewrite opening paragraphs, state
24429 difference with __sync builtins, state C11/C++11 assumptions,
24430 weaken itemized descriptions, add explanation of memory model
24431 behaviour, expand description of compare-exchange, simplify text.
24433 2015-05-05 Renlin Li <renlin.li@arm.com>
24435 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
24437 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
24439 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
24440 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
24441 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
24442 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
24443 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
24444 * configure: Regenerate.
24445 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
24446 * doc/install.texi (aarch64*-*-*): Document new
24447 --enable-fix-cortex-a53-843419 option.
24448 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
24449 and -mno-fix-cortex-a53-843419 options.
24451 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24454 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
24456 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
24458 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
24459 fix overactive TYPE_MIN_VALUE check and add FIXME for type
24460 compatibility problems.
24462 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
24464 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
24466 (cbranchsi4_reg): New.
24467 * config/microblaze/microblaze.c
24468 (microblaze_expand_conditional_branch_reg): New.
24469 * config/microblaze/microblaze-protos.h
24470 (microblaze_expand_conditional_branch_reg): New prototype.
24472 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
24474 * config/microblaze/microblaze.md (peephole2): New.
24476 2015-05-04 Jeff Law <law@redhat.com>
24479 2015-05-04 Jeff Law <law@redhat.com>
24481 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24482 simplifier to narrow arithmetic.
24483 * generic-match-head.c: (types_match, single_use): New functions.
24484 * gimple-match-head.c: (types_match, single_use): New functions.
24486 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
24489 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
24490 (split_branches): Likewise.
24492 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
24494 * common.opt (fdelete-null-pointer-checks): Init to -1.
24495 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
24496 override flag_delete_null_pointer_checks default.
24497 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
24498 behavior re address zero. Better document target-specific behavior.
24499 (-fisolate-errneous-paths-dereference): Mention relationship to
24500 -fdelete-null-pointer-checks.
24502 2015-05-04 Jakub Jelinek <jakub@redhat.com>
24504 PR tree-optimization/65984
24505 * ubsan.c: Include tree-cfg.h.
24506 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
24507 stmt_could_throw_p test, rename can_throw variable to ends_bb.
24509 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
24511 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
24512 to CONST_DOUBLE_P predicate.
24513 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
24514 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
24515 allow only operands that satisfy standard_sse_constant_p predicate.
24516 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
24517 to CONST_DOUBLE_P predicate.
24519 2015-05-04 Jeff Law <law@redhat.com>
24521 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24522 simplifier to narrow arithmetic.
24523 * generic-match-head.c: (types_match, single_use): New functions.
24524 * gimple-match-head.c: (types_match, single_use): New functions.
24526 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
24528 * config/arm/arm.c: Restore bootstrap.
24530 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
24532 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
24533 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
24534 as CONST_WIDE_INT, not CONST_DOUBLE.
24535 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
24536 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
24537 (ix86_find_base_term): Do not check for CONST_DOUBLE.
24538 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
24539 (ix86_build_signbit_mask): Rewrite using wide ints.
24540 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
24541 (ix86_rtx_costs): Handle CONST_WIDE_INT.
24542 (find_constant): Ditto.
24543 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
24544 using gen_int_mode.
24545 * config/i386/predicates.md (x86_64_immediate_operand)
24546 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
24547 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
24548 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
24549 (const0_operand): Also match const_wide_int.
24550 (constm1_operand): Ditto.
24551 (const1_operand): Ditto.
24553 2015-05-04 Richard Biener <rguenther@suse.de>
24555 PR tree-optimization/65965
24556 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
24557 store groups at gaps.
24559 2015-05-04 Richard Biener <rguenther@suse.de>
24561 PR tree-optimization/65935
24562 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
24563 then make sure to apply that swapping to the IL.
24565 2015-05-04 Jakub Jelinek <jakub@redhat.com>
24567 * Makefile.in (PATCHLEVEL_c): New variable.
24568 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
24569 expand the same way as if DEVPHASE_c was non-empty.
24571 2015-05-04 Kai Tietz <ktietz@redhat.com>
24574 * lto-wrapper.c (run_gcc): Open filename
24577 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
24579 * doc/extend.texi (Variable Attributes, Type Attributes): Move
24580 sections up in file, to immediately after the Function Attributes
24583 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
24585 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
24587 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24589 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
24590 (insert_partition_copy_on_edge): Adjust.
24591 (insert_rtx_to_part_on_edge): Likewise.
24592 (insert_part_to_rtx_on_edge): Likewise.
24594 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24596 * function.c (set_return_jump_label): Change type of argument to
24598 * function.h (set_return_jump_label): Adjust.
24600 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24602 * reload.h (struct reg_equivs_t): Change type of init to
24604 * ira.c (fix_reg_equiv_init): Adjust.
24605 * reload1.c (eliminate_regs_1): Likewise.
24606 (init_eliminable_invariants): Likewise.
24608 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24610 * cselib.c (fp_setter_insn): Take a rtx_insn *.
24611 * cselib.h (fp_setter_insn): Adjust.
24613 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24615 * recog.c (struct validate_replace_src_data): Change type of
24616 insn field to rtx_insn *.
24617 (validate_replace_src_group): Change type of argument to rtx_insn *.
24618 * recog.h (validate_replace_src_group): Adjust.
24620 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24622 * haifa-sched.c: Change the type of some variables to rtx_insn *.
24623 * sched-deps.c: Likewise.
24624 * sched-int.h: Likewise.
24625 * sched-rgn.c: Likewise.
24626 * sel-sched.c: Likewise.
24628 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24631 * config/i386/i386.c: Change the type of some arguments to
24633 * config/arm/arm.c: Likewise.
24635 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24637 * lra-constraints.c: Change type of some arguments to rtx_insn *.
24639 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24641 * regcprop.c (kill_autoinc_value): Change type of argument to
24644 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24646 * genrecog.c (print_subroutine): Adjust.
24647 * recog.c (get_bool_attr_mask_uncached): Likewise.
24648 * recog.h (struct recog_data_d): Change the type of insn to
24651 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24653 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
24655 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24657 * df-problems.c (df_set_note): Change type of argument to
24660 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24662 * builtins.c (expand_builtin_trap): Change type of local
24663 variable to rtx_insn *.
24664 (add_sched_insns_for_speculation): Likewise.
24665 (ix86_emit_save_regs): Likewise.
24666 (get_scratch_register_on_entry): Likewise.
24667 (ix86_emit_restore_reg_using_pop): Likewise.
24668 (ix86_emit_leave): Likewise.
24669 (ix86_emit_restore_regs_using_mov): Likewise.
24670 (ix86_expand_epilogue): Likewise.
24672 (rl78_alloc_physical_registers_umul): Likewise.
24673 * cselib.c (discard_useless_locs): Likewise.
24674 (cselib_invalidate_regno): Likewise.
24675 (cselib_invalidate_mem): Likewise.
24676 * function.c (expand_function_start): Likewise.
24677 (emit_use_return_register_into_block): Likewise.
24678 * gcse.c: Likewise.
24679 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
24680 * ifcvt.c (noce_get_alt_condition): Likewise.
24681 * loop-doloop.c (doloop_condition_get): Likewise.
24682 * lra-constraints.c (inherit_in_ebb): Likewise.
24683 * modulo-sched.c (sms_schedule_by_order): Likewise.
24684 * recog.c (next_insn_tests_no_inequality): Likewise.
24685 * reorg.c (emit_delay_sequence): Likewise.
24686 (update_reg_dead_notes): Likewise.
24687 (fix_reg_dead_note): Likewise.
24688 (fill_slots_from_thread): Likewise.
24689 (delete_computation): Likewise.
24691 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
24693 * doc/extend.texi (Variable Attributes): Add menu and proper
24694 @nodes to subsections. Move Microsoft Windows attributes to
24695 their own subsection.
24696 (Type Attributes): Reorganize introduction to remove duplicate
24697 list of attributes. Add menu and proper @nodes to subsections.
24698 Alphabetize the main table of common attributes.
24700 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
24702 * match.pd: New simplification patterns.
24703 (x + (x & 1)) -> ((x + 1) & ~1)
24704 (x & ~(x & y)) -> ((x & ~y))
24705 (x | ~(x | y)) -> ((x | ~y))
24707 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24709 * target.def (attribute_table): Mention that struct attribute_spec
24710 is defined in tree-core.h rather than tree.h
24711 * doc/tm.texi: Regenerate.
24713 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
24715 * genrecog.c (test): Rename to rtx_test. Update rest of file
24718 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
24720 PR translation/65959
24721 * params.h (DEFPARAM): Rename msgid to nocmsgid.
24723 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24725 * gcc/config/aarch64/aarch64-protos.h (tune_params):
24726 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
24727 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
24728 Return value depending on target.
24729 (generic_tunings): Initialize new target settings.
24730 (cortexa53_tunings): Likewise.
24731 (cortexa57_tunings): Likewise.
24732 (thunderx_tunings): Likewise.
24733 (xgene1_tunings): Likewise.
24735 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24737 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
24738 Make Cortex-A53 shift costs more accurate.
24740 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24742 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
24745 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24747 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
24748 Calculate cost of op0 and op1 in PLUS and MINUS cases.
24750 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24752 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
24753 Add cost of op0 in the compare-with-fpzero case.
24755 2015-04-30 David Malcolm <dmalcolm@redhat.com>
24757 * builtins.c (fold_builtin_1): Remove spurious second
24759 * cgraph.h (symtab_node::get_availability): Likewise.
24760 * opts.c (common_handle_option): Remove spurious second semicolon.
24761 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24762 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
24764 2015-04-30 Caroline Tice <cmtice@google.com>
24766 PR gcov-profile/65929
24767 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
24768 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
24769 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
24770 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
24771 * doc/tm.texi: Regenerate.
24772 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
24773 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
24774 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
24775 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
24777 2015-04-30 Marek Polacek <polacek@redhat.com>
24779 * varasm.c (handle_cache_entry): Fix logic.
24781 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24783 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
24784 (*extrsi5_insn_uxtw_alt): Likewise.
24785 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
24786 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
24789 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24791 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
24794 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24796 * config/aarch64/aarch64.md
24797 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
24798 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
24799 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
24800 appropriately. Handle alternative EON form.
24802 2015-04-30 Renlin Li <renlin.li@arm.com>
24804 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
24805 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
24807 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
24810 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
24811 -fstrict-aliasing boundaries.
24813 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24815 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
24816 and [SU]MNEGL patterns.
24818 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24820 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
24821 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
24822 combined arithmetic-shift ops. Properly handle all shift and extend
24823 operations that can occur in combination with PLUS/MINUS.
24824 Rename maybe_fma to compound_p.
24825 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
24826 arithmetic and shift operations.
24828 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24830 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
24831 rather than arith_shift cost when costing ADD/MINUS of an
24834 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
24837 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
24840 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
24842 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
24843 are for the same position.
24845 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
24847 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
24849 (vectorize_loops): Use it.
24851 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24853 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
24854 for aggregate types.
24855 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
24856 type to be non_ODR.
24857 * tree.c (need_assembler_name_p): Compute mangled name for
24858 non-fundamental types and integer types.
24860 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
24862 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
24864 * expr.c (expand_expr_real_2): Likewise.
24866 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24868 * tree.c (build_common_builtin_nodes): Do not build
24869 __builtin_alloca_with_align as equivalent of library alloca.
24871 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24873 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
24874 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
24876 * tree.c: Include print-tree.h and ipa-utils.h
24877 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
24878 (free_lang_data_in_cgraph): Call verify_type.
24879 (verify_type_variant): New function.
24880 (verify_type): New function.
24881 * tree.h (verify_type): Declare.
24883 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
24885 * config/mips/mips-cpus.def: (mips4): Change default processor
24886 from PROCESSOR_R8000 to PROCESSOR_R10000.
24888 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
24890 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
24891 la/jalr instead of jal.
24893 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
24896 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
24897 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
24898 (setcc+movzbl peephole2): Check also clobbered reg.
24899 (setcc+andl peephole2): Ditto.
24901 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
24904 * config/nvptx/mkoffload.c (target_ilp32): New variable.
24905 (main): Set it depending on "-foffload-abi=[...]".
24906 (compile_native, main): Use it to pass "-m32" or "-m64" to the
24909 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
24912 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
24913 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
24914 Flip lane index back at assembly time for bigendian.
24916 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
24918 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
24919 * gimplify.c (gimplify_omp_workshare): Use it.
24921 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24923 * Makefile.in (build/genrecog.o): Depend on inchash.h.
24924 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
24926 * genrecog.c: Rewrite most of the code except for the third page.
24928 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24930 * inchash.h, inchash.c: Include bconfig.h for build objects.
24931 * Makefile.in (build/inchash.o): New rule.
24933 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
24936 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
24937 number in type attribute expression.
24939 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24941 * loop-iv.c (canon_condition): Generalize to all types of integer
24944 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
24946 * gimple-walk.c: Prune duplicate or unneeded includes.
24947 (walk_gimple_asm): Only call parse_input_constraint or
24948 parse_output_constraint if their findings are used.
24949 Honour parse_input_constraint and parse_output_constraint
24952 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
24954 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
24956 2015-04-29 Tom de Vries <tom@codesourcery.com>
24958 PR tree-optimization/65893
24959 * passes.def (pass_all_optimizations): Move pass_stdarg to after
24962 2015-04-29 Richard Biener <rguenther@suse.de>
24964 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
24965 compute GROUP_SIZE for basic-block SLP.
24966 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
24967 take into account gaps.
24968 (vect_get_mask_element): Properly reject references to previous
24970 (vect_transform_slp_perm_load): Likewise.
24972 2015-04-29 Christian Bruel <christian.bruel@st.com>
24975 * config/i386/i386.c (ix86_default_align): New function.
24976 (ix86_override_options_after_change): Call ix86_default_align.
24977 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
24978 (ix86_override_options_after_change): New function.
24980 2015-04-28 Jeff Law <law@redhat.com>
24982 * tree-ssa-dom.c (record_equality); Fix comment typos.
24984 2015-04-28 Tom de Vries <tom@codesourcery.com>
24986 PR tree-optimization/65887
24987 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
24989 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
24991 * doc/extend.texi (Declaring Attributes of Functions): Split into
24992 subsections by target. Alphabetize the table of common attributes.
24993 Rewrite some of the introductory text to reflect the new structure.
24994 Update some cross-references to point to the new subsections.
24995 (Attribute Syntax): Put paragraph about "__" naming here. Remove
24996 duplicate copies in the discussion of function, label, and type
24999 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
25002 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
25004 2015-04-28 Jason Merrill <jason@redhat.com>
25007 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
25008 (finalize_type_size): Respect TYPE_USER_ALIGN.
25009 (layout_type) [ARRAY_TYPE]: Likewise.
25011 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
25013 * config/arm/arm.md (*arm_movt): Fix type attribute.
25014 (*cmpsi_shiftsi): Likewise.
25015 (*cmpsi_shiftsi_swp): Likewise.
25016 (*movsicc_insn): Likewise.
25017 (*cond_move): Likewise.
25018 (*if_plus_move): Likewise.
25019 (*if_move_plus): Likewise.
25020 (*if_arith_move): Likewise.
25021 (*if_move_arith): Likewise.
25022 (*if_shift_move): Likewise.
25023 (*if_move_shift): Likewise.
25024 (*arm_movtas_ze): Likewise.
25025 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
25026 redundancy and type attribute.
25027 (*thumb2_movsi_insn): Fix type attribute.
25028 (*thumb2_addsi_short): Likewise.
25029 (thumb2_addsi3_compare0): Likewise.
25030 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
25031 attributes accordingly.
25033 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
25036 * function.c (pad_to_arg_alignment): Add parentheses.
25038 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
25040 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
25041 libgcc/config/frv/elf-lib.h.
25043 2015-04-28 Tom de Vries <tom@codesourcery.com>
25045 * tree-call-cdce.c: Fix example in header comment.
25047 2015-04-28 Richard Biener <rguenther@suse.de>
25049 PR tree-optimization/62283
25050 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
25051 fails fatally and we are vectorizing a basic-block simply
25052 cause the child to be constructed piecewise.
25053 (vect_analyze_slp_cost_1): Adjust.
25054 (vect_detect_hybrid_slp_stmts): Likewise.
25055 (vect_bb_slp_scalar_cost): Likewise.
25056 (vect_get_constant_vectors): For piecewise constructed
25057 constants place them after the last def.
25058 (vect_get_slp_defs): Adjust.
25059 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
25060 externals for basic-block vectorization.
25062 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25065 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
25067 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
25068 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
25069 (AARCH64_TUNE_FMA_STEERING): Likewise.
25070 * config/aarch64/aarch64-cores.def: Set
25071 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
25072 FMUL/FMADD instructions.
25073 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
25074 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
25075 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
25076 * config/aarch64/cortex-a57-fma-steering.h: New file.
25077 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25079 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
25081 * gensupport.c (std_preds): Add missing codes to address_operand entry.
25083 2015-04-28 Richard Biener <rguenther@suse.de>
25085 PR tree-optimization/65851
25086 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
25087 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
25088 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
25089 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
25090 (ccp_visit_phi_node): Adjust.
25091 (evaluate_stmt): For simplifications to SSA names return its
25092 lattice value if that isn't VARYING. Return immediately when
25093 simplified to a constant.
25094 (visit_assignment): Adjust.
25095 (ccp_visit_stmt): Likewise.
25097 2015-04-28 Tom de Vries <tom@codesourcery.com>
25099 PR tree-optimization/65818
25100 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
25103 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25105 * calls.c (save_fixed_argument_area): Don't check
25106 ARGS_GROW_DOWNWARD with the preprocessor.
25107 (restore_fixed_argument_area): Likewise.
25108 (mem_overlaps_already_clobbered_arg_p): Likewise.
25109 (check_sibcall_argument_overlap): Likewise.
25110 (expand_call): Likewise.
25111 (emit_library_call_value_1): Likewise.
25112 (store_one_arg): Likewise.
25113 * function.c (assign_parms): Likewise.
25114 (locate_and_pad_parm): Likewise.
25115 (pad_to_arg_alignment): Likewise.
25116 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
25118 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25120 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
25121 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
25122 * calls.c (save_fixed_argument_area): Don't chekc if
25123 ARGS_GROW_DOWNWARD is defined.
25124 (restore_fixed_argument_area): Likewise.
25125 (mem_overlaps_already_clobbered_arg_p): Likewise.
25126 (check_sibcall_argument_overlap): Likewise.
25127 (expand_call): Likewise.
25128 (emit_library_call_value_1): Likewise.
25129 (store_one_arg): Likewise.
25130 * function.c (assign_parms): Likewise.
25131 (locate_and_pad_parm): Likewise.
25132 (pad_to_arg_alignment): Likewise.
25133 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
25135 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25137 * defaults.h (gen_epilogue): New function.
25138 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
25140 * cfgrtl.c (cfg_layout_finalize): Likewise.
25141 * df-scan.c: Likewise.
25142 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25143 (reposition_prologue_and_epilogue_notes): Likewise.
25144 * reorg.c (find_end_label): Likewise.
25145 * toplev.c: Likewise.
25147 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25149 * bb-reorder.c (HAVE_return): Don't check if its undefined.
25150 * defaults.h (gen_simple_return): New function.
25151 (gen_simple_return): Likewise.
25152 (HAVE_return): Add default definition to false.
25153 (HAVE_simple_return): Likewise.
25154 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
25155 HAVE_return and HAVE_simple_return are defined.
25156 * function.c (gen_return_pattern): Likewise.
25157 (convert_jumps_to_returns): Likewise.
25158 (thread_prologue_and_epilogue_insns): Likewise.
25159 * reorg.c (find_end_label): Likewise.
25160 (dbr_schedule): Likewise.
25161 * shrink-wrap.c: Likewise.
25162 * shrink-wrap.h: Likewise.
25164 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25166 * defaults.h (EPILOGUE_USES): Add default definition of false.
25167 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
25168 * resource.c (init_resource_info): Likewise.
25170 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25172 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
25174 * dwarf2out.c (field_byte_offset): REmove check if
25175 PCC_BITFIELD_TYPE_MATTERS is defined.
25176 * stor-layout.c (layout_decl): Likewise.
25177 (update_alignment_for_field): Likewise.
25178 (place_field): Likewise.
25180 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25182 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
25184 * regrename.c (check_new_reg_p): Remove check if
25185 HARD_REGNO_RENAME_OK is defined.
25186 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
25188 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25190 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
25191 * cse.c (fold_rtx): Likewise.
25192 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
25193 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
25194 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
25195 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
25196 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
25197 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
25198 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
25199 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
25200 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
25201 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
25203 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
25204 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
25205 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
25206 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
25207 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
25208 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
25209 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
25210 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
25211 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
25212 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
25213 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
25214 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
25215 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
25216 * doc/tm.texi: Regenerate.
25217 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
25218 either true or false.
25220 2015-04-27 Jeff Law <law@redhat.com>
25222 PR tree-optimization/65217
25223 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
25224 of them has a single use, make sure it is the LHS of the implied
25227 2015-04-28 Alan Modra <amodra@gmail.com>
25230 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
25231 (offsettable_ok_by_alignment): Use minimum of decl and toc
25232 pointer alignment. Replace dead code with assertion.
25233 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
25234 case if size exceeds toc pointer alignment.
25235 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
25236 (rs6000_emit_move): Likewise.
25237 * configure.ac: Add linker toc pointer alignment check.
25238 * configure: Regenerate.
25239 * config.in: Regenerate.
25241 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
25243 * config.gcc: Add h8300-*-linux.
25244 * config/h8300/linux.h: New.
25245 * config/h8300/t-linux: New.
25246 * config/h8300/h8300.c (h8300_option_override): Normal mode
25247 is not supported for h8300-*-linux.
25248 (h8300_file_start): Target priority change.
25249 (get_shift_alg): Likewise.
25250 (h8300_shift_need_scratch_p): Likewise.
25251 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
25252 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
25254 2015-04-27 Caroline Tice <cmtice@google.com>
25256 * final.c (final_scan_insn): Output cold_function_name as function
25258 * varasm.c (cold_function_name): Make global.
25259 (assemble_start_function): Re-set cold_function_name.
25260 (assemble_end_function): Output cold partition size.
25261 * varasm.h (cold_function_name): Declare global.
25263 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
25265 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
25266 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
25268 (*movxi_internal_avx512f): Ditto.
25269 (define_split): Check for xmm16+, when splitting scalar float_extend.
25270 (*extendsfdf2_mixed): Use "v" constraint.
25271 (define_split): Check for xmm16+, when splitting scalar float_truncate.
25272 (*truncdfsf_fast_sse): Use "v" constraint.
25273 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
25274 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
25275 (define_peephole2): Check for xmm16+, when converting scalar
25277 (define_peephole2): Check for xmm16+, when converting scalar
25279 (*fop_<mode>_comm_mixed): Use "v" constraint.
25280 (*fop_<mode>_comm_sse): Ditto.
25281 (*fop_<mode>_1_mixed): Ditto.
25282 (*sqrt<mode>2_sse): Ditto.
25283 (*ieee_s<ieee_maxmin><mode>3): Ditto.
25285 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25287 * combine.c (simplify_if_then_else): Use std::swap instead
25288 of manually swapping.
25289 (known_cond): Likewise.
25290 (simplify_comparison): Likewise.
25292 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
25295 * config/rs6000/htm.md: Remove all define_expands.
25296 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
25297 UNSPECV_HTM_TABORTWCI): Remove.
25298 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
25299 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
25300 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
25301 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
25302 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
25303 tabortwci_internal): Remove define_insns.
25304 (tabort<wd>c, tabort<wd>ci): New define_insns.
25305 (tabort): Use gpc_reg_operand.
25306 (tcheck): Remove operand.
25307 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
25308 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
25310 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
25311 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
25312 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
25313 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
25314 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
25315 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
25316 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
25317 (tcheck): Remove builtin argument.
25318 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
25320 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
25321 tabortdc and tabortdci builtins when not in 64-bit mode.
25322 Modify code to handle the loss of the HTM define_expands.
25323 Emit code to copy the CR register to TARGET.
25324 (htm_init_builtins): Modify code to handle the loss of the HTM
25326 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
25327 (RS6000_BTC_64BIT): Likewise.
25328 (RS6000_BTC_CR): New macro.
25329 * doc/extend.texi: Update documentation for htm builtins.
25331 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25333 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
25334 of manually swapping.
25335 (simplify_associative_operation): Likewise.
25336 (simplify_binary_operation): Likewise.
25337 (simplify_plus_minus): Likewise.
25338 (simplify_relational_operation): Likewise.
25339 (simplify_ternary_operation): Likewise.
25341 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
25343 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
25344 (xs_hi_nonmemory_operand): Remove error.
25345 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
25346 general_operand rather than xs_hi_general_operand.
25348 2015-04-27 Richard Biener <rguenther@suse.de>
25350 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
25351 (record_equivalences_from_stmt): Valueize rhs.
25352 (record_equality): Canonicalize x and y order via
25353 tree_swap_operands_p. Do not swap operands for same loop depth.
25355 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
25359 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
25360 Add hint how to use own spec file.
25362 2015-04-27 Jakub Jelinek <jakub@redhat.com>
25364 PR tree-optimization/65875
25365 * tree-vrp.c (update_value_range): If in is_new case setting
25366 old_vr to VR_VARYING, also set new_vr to it. Remove
25367 old_vr->type == VR_VARYING test.
25368 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
25369 SSA_PROP_INTERESTING if update_value_range returned true,
25370 but new range is VR_VARYING.
25372 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
25374 * combine.c (sign_extend_short_imm): New.
25375 (set_nonzero_bits_and_sign_copies): Use above new function for sign
25376 extension of src short immediate.
25377 (reg_nonzero_bits_for_combine): Likewise for tem.
25379 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
25381 * stor-layout.c (self_referential_component_ref_p): New predicate.
25382 (copy_self_referential_tree_r): Use it.
25383 (self_referential_size): Punt for simple operations directly involving
25384 self-referential component references.
25385 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
25387 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
25389 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
25391 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
25393 * vec.h (vec): Make splice arguments const. Update definitions
25396 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
25398 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
25401 2015-04-26 Tom de Vries <tom@codesourcery.com>
25403 PR tree-optimization/65826
25404 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
25406 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
25408 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
25409 (*madd3<mode>): Ditto.
25410 (*msub4<mode>): Ditto.
25411 (*msub3<mode>): Ditto.
25412 (*nmadd4<mode>): Ditto.
25413 (*nmadd3<mode>): Ditto.
25414 (*nmadd4<mode>_fastmath): Ditto.
25415 (*nmadd3<mode>_fastmath): Ditto.
25416 (*nmsub4<mode>): Ditto.
25417 (*nmsub3<mode>): Ditto.
25418 (*nmsub4<mode>_fastmath): Ditto.
25419 (*nmsub3<mode>_fastmath): Ditto.
25421 2015-04-24 Jason Merrill <jason@redhat.com>
25424 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
25425 down when building TYPE_CANONICAL.
25426 (build_pointer_type_for_mode): Likewise.
25428 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
25430 * genrecog.c (validate_pattern): Check matching constraint refers
25431 to a lower numbered operand.
25433 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
25436 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
25437 save to independent variables use the Save attribute. This will
25438 allow these options to be modified with the #pragma/attribute
25440 (-mallow-movmisalign): Likewise.
25441 (-mallow-df-permute): Likewise.
25442 (-msched-groups): Likewise.
25443 (-malways-hint): Likewise.
25444 (-malign-branch-targets): Likewise.
25445 (-mvectorize-builtins): Likewise.
25446 (-msave-toc-indirect): Likewise.
25448 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
25449 can be set via the #pragma/attribute target support.
25450 (rs6000_opt_vars): Likewise.
25451 (rs6000_inner_target_options): If VSX was set, also set
25452 -mno-avoid-indexed-addresses.
25454 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25456 * config/arm/iterators.md (shiftable_ops): Rename to...
25457 (SHIFTABLE_OPS): ... This. Update use in comments.
25458 (ior_xor): Rename to...
25459 (IOR_XOR): ... This.
25460 (vqh_ops): Rename to...
25461 (VQH_OPS): ... This.
25462 (vqhs_ops): Rename to...
25463 (VQHS_OPS): ... This.
25464 (rshifts): Rename to...
25465 (RSHIFTS): ... This.
25466 (returns): Rename to...
25467 (RETURNS): ... This.
25468 * config/arm/arm.md: Update uses of the above.
25469 * config/arm/neon.md: Likewise.
25471 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25473 * config.host (case ${host}): Add aarch64*-*-linux case.
25474 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
25475 fields to all the cores.
25476 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
25477 Add MCPU_MTUNE_NATIVE_SPECS.
25478 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
25479 field to all extensions.
25480 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
25481 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
25482 Adjust definition of AARCH64_OPT_EXTENSION.
25483 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
25484 (MCPU_MTUNE_NATIVE_SPECS): Define.
25485 * config/aarch64/driver-aarch64.c: New file.
25486 * config/aarch64/x-arch64: New file.
25487 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
25490 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25491 Wei Mi <wmi@google.com>
25493 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
25494 * config/i386/i386.c (extract_base_offset_in_addr): New function.
25495 (ix86_operands_ok_for_move_multiple): Ditto.
25496 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
25497 (movlpd/movhpd to movupd peephole2): Ditto.
25499 2015-04-24 Marek Polacek <polacek@redhat.com>
25502 * input.h (from_macro_expansion_at): Define.
25505 * doc/invoke.texi: Update description of -Wlogical-op.
25507 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
25509 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
25510 ternary operator in fprintf and harmonize spacing.
25512 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25514 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
25515 Mark operand1 commutative.
25517 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25519 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
25520 input operands in memory.
25521 (*vec_concatv2si_sse4_1): Ditto.
25522 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
25523 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
25525 (vec_extract_hi_v32hi): Ditto.
25526 (vec_extract_hi_v64hi): Ditto.
25527 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
25529 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
25530 Steven Bosscher <steven@gcc.gnu.org>
25532 PR rtl-optimization/34503
25533 * cprop.c (cprop_reg_p): New.
25534 (hash_scan_set): Use above function to check if register can be
25536 (find_avail_set): Return up to two sets, one whose source is a
25537 register and one whose source is a constant. Sets are returned in an
25538 array passed as parameter rather than as a return value.
25539 (cprop_insn): Use a do while loop rather than a goto. Try each of the
25540 sets returned by find_avail_set, starting with the one whose source is
25541 a constant. Use cprop_reg_p to check if register can be propagated.
25542 (do_local_cprop): Use cprop_reg_p to check if register can be
25544 (implicit_set_cond_p): Likewise.
25546 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25548 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
25549 (sem_function::equals): IGNORED_NODES parameter is now unused;
25550 update call of equals_private.
25551 (sem_function::equals_private): Do not call equals_wpa; skip
25552 gimple body matching if there is no body.
25553 (sem_function::init): Add logic to hash tthunk info.
25554 (sem_function::parse): Also parse thunks.
25555 * ipa-icf.h (equals_private): Update declaration.
25557 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25559 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
25560 asterisk from name so this can be generated directly.
25561 (*altivec_stvx_<mode>_internal): Likewise.
25562 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
25563 that this is never called during or after reload/lra.
25564 (rs6000_frame_related): Remove split_reg
25565 argument and logic that references it.
25566 (emit_frame_save): Remove last parameter from call to
25567 rs6000_frame_related.
25568 (rs6000_emit_prologue): Remove last parameter from eight calls to
25569 rs6000_frame_related. Force generation of stvx instruction for
25570 Altivec register saves. Remove split_reg handling, which is no
25572 (rs6000_emit_epilogue): Force generation of lvx instruction for
25573 Altivec register restores.
25575 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25577 * config/rs6000/rs6000.opt (mcrypto): Change option description to
25578 match category changes in ISA 2.07B.
25580 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25582 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
25584 (cmp_op, cmp_type): New code attributes.
25585 (NEON_VCMP, NEON_VACMP): New int iterators.
25586 (cmp_op_unsp): New int attribute.
25587 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
25588 (neon_vceq<mode>): Delete.
25589 (neon_vc<cmp_op><mode>_insn): New pattern.
25590 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
25591 (neon_vcgeu<mode>): Delete.
25592 (neon_vcle<mode>): Likewise.
25593 (neon_vclt<mode>: Likewise.
25594 (neon_vcage<mode>): Likewise.
25595 (neon_vcagt<mode>): Likewise.
25596 (neon_vca<cmp_op><mode>): New define_expand.
25597 (neon_vca<cmp_op><mode>_insn): New pattern.
25598 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
25600 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25602 * tree.h (attribute_value_equal): Declare.
25603 * tree.c (attribute_value_equal): Export.
25605 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25607 * ipa-icf.c (sem_item::compare_attributes): New function.
25608 (sem_item::compare_referenced_symbol_properties): Compare variable
25610 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
25611 (sem_function::param_used_p): New function.
25612 (sem_function::equals_wpa): Fix attribute comparsion; match
25613 parameter type codes; do not compare paremter flags when
25614 they are not used; compare edge flags; compare indirect calls.
25615 (sem_item::update_hash_by_addr_refs): Hash reference type.
25616 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
25617 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
25618 reference use type.
25619 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
25620 * ipa-icf.h (compare_attributes, param_used_p): Declare.
25622 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25624 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
25626 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
25627 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
25628 (sem_item::compare_referenced_symbol_properties): New.
25629 (sem_item::hash_referenced_symbol_properties): New.
25630 (sem_item::compare_cgraph_references): Rename to ...
25631 (sem_item::compare_symbol_references): ... this one; use
25632 compare_referenced_symbol_properties.
25633 (sem_function::equals_wpa): Do not compare
25634 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
25635 DECL_IS_OPERATOR_NEW; compare pointer sizes.
25636 (sem_item::update_hash_by_addr_refs): Call
25637 hash_referenced_symbol_properties.
25638 (sem_item::update_hash_by_local_refs): Cleanup.
25639 (sem_function::merge): Do not mix up symbol properties.
25640 (sem_variable::equals_wpa): Use compare_symbol_references.
25641 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
25642 (sem_item::hash_referenced_symbol_properties): New.
25643 (sem_item::compare_symbol_references): New.
25644 (sem_item::compare_cgraph_references): Remove.
25646 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
25649 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
25650 Emit size of local.
25652 2015-04-23 Nick Clifton <nickc@redhat.com>
25654 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
25655 ATTRIBUTE_UNUSED to x parameter.
25656 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
25658 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25660 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
25661 TARGET_CRYPTO to TARGET_P8_VECTOR>
25662 (crypto_vpermxor_<mode>): Likewise.
25663 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
25664 (BU_CRYPTO_3A): Likewise.
25665 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
25666 (BU_CRYPTO_OVERLOAD_3A): New #define.
25667 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
25668 (VPMSUMH): Likewise.
25669 (VPMSUMW): Likewise.
25670 (VPMSUMD): Likewise.
25671 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
25672 (VPERMXOR_V4SI): Likewise.
25673 (VPERMXOR_V8HI): Likewise.
25674 (VPERMXOR_V16QI): Likewise.
25675 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
25676 BU_CRYPTO_OVERLOAD_2A.
25677 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
25678 BU_CRYPTO_OVERLOAD_3A.
25679 * config/rs6000/rs6000.opt (mcrypto): Change description of
25682 2015-04-23 Richard Biener <rguenther@suse.de>
25684 * passes.def: Remove copy propagation passes run directly after CCP.
25685 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
25687 (ccp_visit_phi_node): Rework to handle first executable edge
25690 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
25692 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25693 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
25694 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
25695 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
25696 (thumb_legimitimize_reload_address): Remove.
25697 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
25699 (thumb_legimitimize_reload_address): Remove.
25701 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25703 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
25705 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25707 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
25709 (store_multiple): Likewise.
25711 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25713 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
25714 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
25715 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
25716 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
25717 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
25718 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
25719 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
25720 Specify issue_rate value.
25721 (arm_issue_rate): Look up issue rate from tuning structs. Remove
25722 large switch statement.
25723 (arm_marvell_pj4_tune): New struct.
25724 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
25727 2015-04-23 Richard Biener <rguenther@suse.de>
25729 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
25730 (vect_find_last_store_in_slp_instance): Rename to ...
25731 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
25732 (vect_analyze_slp_cost_1): Use vector_load for constant defs
25733 and vec_construct for external defs when estimating prologue cost.
25734 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
25735 Compute costs here only when vectorizing loops.
25736 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
25737 have been determined.
25738 (vect_schedule_slp_instance): Simplify vectorized code placement
25739 and prepare for in-BB external defs.
25740 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
25741 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
25742 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
25744 (vect_model_load_cost): Likewise.
25745 (vectorizable_store): Instead add it here.
25746 (vectorizable_load): Likewise.
25747 (vect_is_simple_use): Dump def type textually.
25749 2015-04-23 Richard Biener <rguenther@suse.de>
25751 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
25752 * cfgloop.c (verify_loop_structure): Verify the root loop node.
25753 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
25754 instead of get_eh_region_from_lp_number.
25755 * loop-init.c (fix_loop_structure): If we removed a loop, reset
25758 2015-04-23 Anton Blanchard <anton@samba.org>
25760 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
25761 need for -mprofile-kernel to save LR to stack.
25763 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25765 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
25767 (insn_is_swappable_p): Return 1 for a convert from double to
25768 single precision when all of its uses are splats of BE element
25771 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
25773 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
25775 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25778 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
25779 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
25780 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
25782 (rs6000_builtin_mask_for_load): Return 0 for targets with
25783 efficient unaligned VSX accesses so that the vectorizer will use
25784 direct unaligned loads.
25785 (rs6000_builtin_support_vector_misalignment): Always return true
25786 for targets with efficient unaligned VSX accesses.
25787 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
25788 stores on targets with efficient unaligned VSX accesses is almost
25789 always the same as the cost of an aligned load or store, so model
25791 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
25792 unaligned vectors if we have efficient unaligned VSX accesses.
25793 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
25794 undocumented option.
25796 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25799 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
25801 * config.gcc (LIBC_MUSL): New tm_defines macro.
25802 * config/linux.h (OPTION_MUSL): Define.
25803 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25804 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25805 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25807 * config/linux.opt (mmusl): New option.
25808 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25809 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25811 * configure: Regenerate.
25813 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
25815 * config.gcc (LIBC_MUSL): New tm_defines macro.
25816 * config/linux.h (OPTION_MUSL): Define.
25817 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25818 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25819 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25821 * config/linux.opt (mmusl): New option.
25822 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25823 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25825 * configure: Regenerate.
25827 2015-04-22 Yury Gribov <y.gribov@samsung.com>
25829 * doc/invoke.texi (-fsanitize-sections): Update description.
25830 * asan.c (set_sanitized_sections): Parse incoming arg.
25831 (section_sanitized_p): Support wildcards.
25833 2015-04-22 Tom de Vries <tom@codesourcery.com>
25835 PR tree-optimization/65823
25836 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
25837 equality between ap_copy and ap.
25839 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25842 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
25844 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25847 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
25849 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25852 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
25853 remove already contained t-files.
25855 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25857 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
25858 Remove unneeded forward declarations.
25859 (suitable_for_tail_call_opt_p): Commentary typo fix.
25861 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25863 * varasm.c (emit_bss): Remove redundant guard.
25865 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25867 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
25869 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25871 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
25873 2015-04-22 Hale Wang <hale.wang@arm.com>
25874 Terry Guo <terry.guo@arm.com>
25876 PR rtl-optimization/64818
25877 * combine.c (can_combine_p): Don't combine user-specified
25878 register if it is in an asm input.
25880 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
25883 * passes.def (early_optimizations): Add pass_dse.
25885 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25887 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
25888 * reorg.c (redundant_insn): Remove ifdef
25889 INSN_REFERENCES_ARE_DELAYED.
25890 * resource.c (mark_referenced_resources): Likewise.
25892 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25894 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
25895 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
25896 * resource.c (mark_set_resources): Likewise.
25898 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25900 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
25901 * cfgcleanup.c (flow_find_cross_jump): Likewise.
25902 (flow_find_head_matching_sequence): Likewise.
25903 (try_head_merge_bb): Likewise.
25904 * combine.c (can_combine_p): Likewise.
25905 (try_combine): Likewise.
25906 (distribute_notes): Likewise.
25907 * df-problems.c (can_move_insns_across): Likewise.
25908 * final.c (final): Likewise.
25909 * gcse.c (insert_insn_end_basic_block): Likewise.
25910 * ira.c (find_moveable_pseudos): Likewise.
25911 * reorg.c (try_merge_delay_insns): Likewise.
25912 (fill_simple_delay_slots): Likewise.
25913 (fill_slots_from_thread): Likewise.
25914 * sched-deps.c (sched_analyze_2): Likewise.
25916 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25918 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
25919 PIC_OFFSET_TABLE_REGNUM.
25921 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25923 * alias.c (init_alias_target): Remove ifdef
25924 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
25925 * df-scan.c (df_insn_refs_collect): Likewise.
25926 (df_get_regular_block_artificial_uses): Likewise.
25927 (df_get_eh_block_artificial_uses): Likewise.
25928 (df_get_entry_block_def_set): Likewise.
25929 (df_get_exit_block_use_set): Likewise.
25930 * emit-rtl.c (gen_rtx_REG): Likewise.
25931 * ira.c (ira_setup_eliminable_regset): Likewise.
25932 * reginfo.c (init_reg_sets_1): Likewise.
25933 * regrename.c (rename_chains): Likewise.
25934 * reload1.c (reload): Likewise.
25935 (eliminate_regs_in_insn): Likewise.
25936 * resource.c (mark_referenced_resources): Likewise.
25937 (init_resource_info): Likewise.
25939 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25941 * defaults.h (MASK_RETURN_ADDR): New definition.
25942 * except.c (expand_builtin_extract_return_addr): Remove ifdef
25945 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25947 * defaults.h (RETURN_ADDR_OFFSET): New definition.
25948 * except.c (expand_builtin_extract_return_addr): Remove ifdef
25949 RETURN_ADDR_OFFSET.
25950 (expand_builtin_frob_return_addr): Likewise.
25952 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25954 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
25955 (try_redirect_by_replacing_jump): Likewise.
25956 (rtl_tidy_fallthru_edge): Likewise.
25957 * combine.c (insn_a_feeds_b): Likewise.
25958 (find_split_point): Likewise.
25959 (simplify_set): Likewise.
25960 * cprop.c (cprop_jump): Likewise.
25961 * cse.c (cse_extended_basic_block): Likewise.
25962 * df-problems.c (can_move_insns_across): Likewise.
25963 * function.c (emit_use_return_register_into_block): Likewise.
25964 * haifa-sched.c (sched_init): Likewise.
25965 * ira.c (find_moveable_pseudos): Likewise.
25966 * loop-invariant.c (find_invariant_insn): Likewise.
25967 * lra-constraints.c (curr_insn_transform): Likewise.
25968 * postreload.c (reload_combine_recognize_const_pattern):
25970 * reload.c (find_reloads): Likewise.
25971 * reorg.c (delete_scheduled_jump): Likewise.
25972 (steal_delay_list_from_target): Likewise.
25973 (steal_delay_list_from_fallthrough): Likewise.
25974 (redundant_insn): Likewise.
25975 (fill_simple_delay_slots): Likewise.
25976 (fill_slots_from_thread): Likewise.
25977 (delete_computation): Likewise.
25978 * sched-rgn.c (add_branch_dependences): Likewise.
25980 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25982 * genconfig.c (main): Always define HAVE_cc0.
25983 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
25985 * cfgcleanup.c (flow_find_cross_jump): Likewise.
25986 (flow_find_head_matching_sequence): Likewise.
25987 (try_head_merge_bb): Likewise.
25988 * cfgrtl.c (rtl_merge_blocks): Likewise.
25989 (try_redirect_by_replacing_jump): Likewise.
25990 (rtl_tidy_fallthru_edge): Likewise.
25991 * combine.c (do_SUBST_MODE): Likewise.
25992 (insn_a_feeds_b): Likewise.
25993 (combine_instructions): Likewise.
25994 (can_combine_p): Likewise.
25995 (try_combine): Likewise.
25996 (find_split_point): Likewise.
25998 (simplify_set): Likewise.
25999 (distribute_notes): Likewise.
26000 * cprop.c (cprop_jump): Likewise.
26001 * cse.c (cse_extended_basic_block): Likewise.
26002 * df-problems.c (can_move_insns_across): Likewise.
26003 * final.c (final): Likewise.
26004 (final_scan_insn): Likewise.
26005 * function.c (emit_use_return_register_into_block): Likewise.
26006 * gcse.c (insert_insn_end_basic_block): Likewise.
26007 * haifa-sched.c (sched_init): Likewise.
26008 * ira.c (find_moveable_pseudos): Likewise.
26009 * loop-invariant.c (find_invariant_insn): Likewise.
26010 * lra-constraints.c (curr_insn_transform): Likewise.
26011 * optabs.c (prepare_cmp_insn): Likewise.
26012 * postreload.c (reload_combine_recognize_const_pattern):
26014 * reload.c (find_reloads): Likewise.
26015 (find_reloads_address_1): Likewise.
26016 * reorg.c (delete_scheduled_jump): Likewise.
26017 (steal_delay_list_from_target): Likewise.
26018 (steal_delay_list_from_fallthrough): Likewise.
26019 (try_merge_delay_insns): Likewise.
26020 (redundant_insn): Likewise.
26021 (fill_simple_delay_slots): Likewise.
26022 (fill_slots_from_thread): Likewise.
26023 (delete_computation): Likewise.
26024 (relax_delay_slots): Likewise.
26025 * sched-deps.c (sched_analyze_2): Likewise.
26026 * sched-rgn.c (add_branch_dependences): Likewise.
26028 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26030 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
26031 that is trivially ded on non cc0 targets.
26032 (simplify_set): Likewise.
26033 (mark_used_regs_combine): Likewise.
26034 * cse.c (new_basic_block): Likewise.
26035 (fold_rtx): Likewise.
26036 (cse_insn): Likewise.
26037 (cse_extended_basic_block): Likewise.
26038 (set_live_p): Likewise.
26039 * rtlanal.c (canonicalize_condition): Likewise.
26040 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
26042 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26044 * conditions.h: Define macros even if HAVE_cc0 is undefined.
26045 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
26046 * final.c: Likewise.
26047 * jump.c: Likewise.
26048 * recog.c: Likewise.
26049 * recog.h: Declare functions even when HAVE_cc0 is undefined.
26050 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
26052 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26054 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
26055 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
26056 * builtins.c (expand_builtin): Remove check if
26057 EH_RETURN_DATA_REGNO is defined.
26058 * df-scan.c (df_bb_refs_collect): Likewise.
26059 (df_get_exit_block_use_set): Likewise.
26060 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
26061 * ira-lives.c (process_bb_node_lives): Likewise.
26062 * lra-lives.c (process_bb_lives): Likewise.
26064 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
26066 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
26067 FIRST_PSEUDO_REG): New.
26068 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
26069 (ARG_POINTER_REGNUM): Define to ARGP_REG.
26070 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
26071 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
26072 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
26073 (FIRST_INT_REG): New.
26074 (LAST_INT_REG): New.
26075 (FIRST_*_REG): Define using *_REG.
26076 (LAST_*_REG): Ditto.
26077 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
26078 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
26079 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
26081 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26083 * expmed.c: (synth_mult): Only assume overlapping
26084 shift with previous steps in alg_sub_t_m2 case.
26086 2015-04-21 Richard Biener <rguenther@suse.de>
26088 PR tree-optimization/65650
26089 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
26090 transitions involving copies.
26091 (set_lattice_value): Adjust for copy lattice state.
26092 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
26093 if that doesn't dominate the merge point.
26094 (bit_value_unop): Adjust what we treat as varying mask.
26095 (bit_value_binop): Likewise.
26096 (bit_value_assume_aligned): Likewise.
26097 (evaluate_stmt): When we simplified to a SSA name record a copy
26098 instead of dropping to varying.
26099 (visit_assignment): Simplify.
26101 * gimple-match.h (gimple_simplify): Add another callback.
26102 * gimple-fold.c (fold_stmt_1): Adjust caller.
26103 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
26104 for the 2nd callback.
26105 * gimple-match-head.c (gimple_simplify): Add a callback that is
26106 used to valueize the stmt operands and use it that way.
26108 2015-04-21 Richard Biener <rguenther@suse.de>
26110 PR tree-optimization/65788
26111 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
26113 2015-04-21 Richard Biener <rguenther@suse.de>
26115 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
26116 vec_construct cost by vec_stmt_cost.
26118 2015-04-21 Richard Biener <rguenther@suse.de>
26120 * cfghooks.h (create_basic_block): Replace with two overloads
26121 for RTL and GIMPLE.
26122 (split_block): Likewise.
26123 * cfghooks.c (split_block): Rename to ...
26124 (split_block_1): ... this.
26125 (split_block): Add two type-safe overloads for RTL and GIMPLE.
26126 (split_block_after_labels): Call split_block_1.
26127 (create_basic_block): Rename to ...
26128 (create_basic_block_1): ... this.
26129 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
26130 (create_empty_bb): Call create_basic_block_1.
26131 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
26132 split_block_after_labels.
26133 * omp-low.c (expand_parallel_call): Likewise.
26134 (expand_omp_target): Likewise.
26135 (simd_clone_adjust): Likewise.
26136 * tree-chkp.c (chkp_get_entry_block): Likewise.
26137 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
26138 create_basic_block overload.
26139 (cgraph_node::expand_thunk): Likewise.
26140 * tree-cfg.c (make_blocks): Likewise.
26141 (handle_abnormal_edges): Likewise.
26142 * tree-inline.c (copy_bb): Likewise.
26144 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26146 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
26148 (*xor_one_cmplsidi3_ze): Likewise.
26150 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
26152 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
26153 use df_remove_problem rather than manually removing problems, leaving
26154 holes in df->problems_in_order[].
26156 2015-04-21 Tom de Vries <tom@codesourcery.com>
26158 PR tree-optimization/65802
26159 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
26161 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26163 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
26165 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
26166 at '.'. Assert that there's enough space for everything.
26168 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
26170 PR tree-optimization/64950
26172 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
26175 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
26178 2015-04-20 Shiva Chen <shiva0217@gmail.com>
26180 PR rtl-optimization/64916
26181 * cfgcleanup.c (values_equal_p): New function.
26182 (can_replace_by): Use it.
26184 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
26187 * doc/invoke.texi ([-Wnarrowing]): Update.
26189 2015-04-20 Jeff Law <law@redhat.com>
26191 PR tree-optimization/65658
26192 * tree-ssa-threadupdate.c (redirection_block_p): Remove
26193 redundant test for GIMPLE_ASSIGN in last change.
26195 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
26197 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
26198 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
26199 (legitimize_tls_address): Ditto.
26200 (ix86_expand_move): Ditto.
26201 (ix86_expand_binary_operator): Remove reload_in_progress checks.
26202 (ix86_expand_unary_operator): Ditto.
26203 * config/i386/predicates.md (index_register_operand): Ditto.
26205 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
26207 * reorg.c (try_merge_delay_insns): Improve correctness checking
26208 for targets with multiple delay slots.
26210 2015-04-20 Jeff Law <law@redhat.com>
26212 PR tree-optimization/65658
26213 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
26216 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
26218 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
26219 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
26222 2015-04-20 Jakub Jelinek <jakub@redhat.com>
26225 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
26227 2015-04-20 Richard Biener <rguenther@suse.de>
26229 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
26230 * gimple-fold.c (gimple_build_valueize): New function.
26231 (gimple_build): Always use gimple_build_valueize as valueize hook.
26233 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
26236 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
26237 and overwrite variable parts if <= 1/2 the elements are variable.
26239 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
26241 PR rtl-optimization/65805
26242 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
26243 Don't use difference of offset and previous offset if
26244 update_sp_offset is non-zero.
26245 (eliminate_regs_in_insn): Ditto.
26246 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
26247 lra_eliminate_regs_1 call.
26248 * lra-constraints.c (get_equiv_with_elimination): Ditto.
26250 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
26252 * hash-table.h: Remove version of hash_table that stored value_type *.
26253 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
26254 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
26255 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
26256 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
26257 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
26258 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
26259 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
26260 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
26261 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
26262 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
26263 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
26264 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
26265 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
26266 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
26267 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
26268 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
26270 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26271 Jakub Jelinek <jakub@redhat.com>
26274 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
26275 subsequent SH_NONE operand does not overwrite an existing *special
26277 (adjust_extract): Handle case where a vec_extract operation is
26278 wrapped in a PARALLEL.
26280 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
26283 * config/i386/i386.c (ix86_binds_local_p): Define only if
26284 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
26286 2015-04-17 Jeff Law <law@redhat.com>
26288 PR tree-optimization/47679
26289 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
26290 * tree-ssa-scopedtables.c: New file.
26291 * tree-ssa-scopedtables.h: New file.
26292 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
26293 (const_and_copies): Change name/type.
26294 (record_const_or_copy): Move into tree-ssa-scopedtables.c
26295 (record_const_or_copy_1): Similarly.
26296 (restore_vars_to_original_value): Similarly.
26297 (pass_dominator::execute): Create and destroy const_and_copies table.
26298 (thread_across_edge): Update passing of const_and_copies.
26299 (record_temporary_equivalence): Use method calls rather than
26300 manipulating const_and_copies directly.
26301 (record_equality, cprop_into_successor_phis): Similarly.
26302 (dom_opt_dom_walker::before_dom_children): Similarly.
26303 (dom_opt_dom_walker::after_dom_children): Similarly.
26304 (eliminate_redundant_computations): Similarly.
26305 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
26306 (record_temporary_equivalence): Likewise.
26307 (invalidate_equivalences): Likewise.
26308 (record_temporary_equivalences_from_phis): Update due to type
26309 change of const_and_copies. Use method calls rather than
26310 manipulating the stack directly.
26311 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
26312 (thread_through_normal_block, thread_across_edge): Likewise.
26313 (thread_across_edge): Likewise.
26314 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
26315 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
26317 (identify_jump_threads): Update due to type change of equiv_stack.
26318 (finalize_jump_threads): Delete the equiv_stack when complete.
26320 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
26322 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
26323 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
26324 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
26326 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
26329 * config.gcc: Exit with a comment when we do not have a major version
26330 number for the FreeBSD target.
26332 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26335 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
26336 maybe_allows_mem bitfields.
26337 (maybe_allows_none_start, maybe_allows_none_end,
26338 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
26339 maybe_allows_mem_end): New variables.
26340 (compute_maybe_allows): New function.
26341 (add_constraint): Use it to initialize maybe_allows_reg and
26342 maybe_allows_mem fields.
26343 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
26344 is_address constraints such that those that allow neither mem nor
26345 reg come first, then those that only allow reg but not mem, then
26346 those that only allow mem but not reg, then the rest.
26347 (write_allows_reg_mem_function): New function.
26348 (write_tm_preds_h): Call it.
26349 * stmt.c (parse_output_constraint, parse_input_constraint): Use
26350 the generated insn_extra_constraint_allows_reg_mem function
26351 instead of always setting *allows_reg = true; *allows_mem = true;
26352 for unknown extra constraints.
26354 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
26357 * output.h (default_binds_local_p_3): New.
26358 * varasm.c (default_binds_local_p_3): Make it public. Take an
26359 argument to indicate if common symbol may be local. If common
26360 symbol may be local, treat non-external variable as defined
26362 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
26363 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
26364 * config/i386/i386.c (ix86_binds_local_p): New.
26365 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
26366 ix86_binds_local_p.
26368 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26371 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
26372 trying mem_loc_descriptor on XEXP (rtl, 0).
26374 2015-04-17 Martin Liska <mliska@suse.cz>
26376 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
26377 Release symbol_compare_collection.
26378 * ipa-reference.c: Add TODO that a vector should be released.
26380 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
26383 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
26384 to new AVR-LibC file layout (bug #44574).
26385 (*avrlibc_devicelib): Same.
26386 * config/avr/avr-mcus.def: Adjust comments.
26387 * config/avr/avr.opt (nodevicelib): Adjust help.
26389 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
26391 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
26393 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
26396 * gimplify.c (gimplify_init_constructor): Always emit a
26397 side-effecting constructor.
26399 2015-04-17 Tom de Vries <tom@codesourcery.com>
26401 PR tree-optimization/64950
26402 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
26403 in cfun->curr_properties.
26404 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
26405 if we generate an IFN_VA_ARG.
26406 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
26407 function if PROP_gimple_lva is not set in src function.
26409 2015-04-17 Tom de Vries <tom@codesourcery.com>
26410 Michael Matz <matz@suse.de>
26412 PR tree-optimization/64950
26413 * gimple-iterator.c (update_modified_stmts): Remove static.
26414 * gimple-iterator.h (update_modified_stmts): Declare.
26415 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
26416 (gimplify_va_arg_internal): New function.
26417 (gimplify_va_arg_expr): Use IFN_VA_ARG.
26418 * gimplify.h (gimplify_va_arg_internal): Declare.
26419 * internal-fn.c (expand_VA_ARG): New unreachable function.
26420 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
26421 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
26422 (expand_ifn_va_arg): New function.
26423 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
26424 (pass_stdarg::execute): Call expand_ifn_va_arg.
26425 (pass_data_lower_vaarg): New pass_data.
26426 (pass_lower_vaarg): New gimple_opt_pass.
26427 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
26428 (make_pass_lower_vaarg): New function.
26429 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
26430 properties_required field.
26431 * passes.def (all_passes): Add pass_lower_vaarg.
26432 * tree-pass.h (PROP_gimple_lva): Add define.
26433 (make_pass_lower_vaarg): Declare.
26435 2015-04-17 Tom de Vries <tom@codesourcery.com>
26437 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
26438 * calls.c (call_expr_flags): Same.
26440 2015-04-17 Tom de Vries <tom@codesourcery.com>
26442 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
26443 (pass_stdarg::execute): ... here.
26445 2015-04-17 Tom de Vries <tom@codesourcery.com>
26446 Michael Matz <matz@suse.de>
26448 * tree-cfg.c (make_blocks_1): Factor out of ...
26449 (make_blocks): ... here.
26450 (make_edges_bb): Factor out of ...
26451 (make_edges): ... here.
26452 (gimple_find_sub_bbs): New function.
26453 * tree-cfg.h (gimple_find_sub_bbs): Declare.
26455 2015-04-17 Tom de Vries <tom@codesourcery.com>
26457 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
26459 2015-04-17 Yury Gribov <y.gribov@samsung.com>
26461 * asan.c (set_sanitized_sections): New function.
26462 (section_sanitized_p): Ditto.
26463 (asan_protect_global): Optionally sanitize user-defined
26465 * asan.h (set_sanitized_sections): Declare new function.
26466 * common.opt (fsanitize-sections): New option.
26467 * doc/invoke.texi (-fsanitize-sections): Document new option.
26468 * opts-global.c (handle_common_deferred_options): Handle new
26471 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26474 * dwarf2out.c (loc_list_from_tree): Return NULL
26475 for DEBUG_EXPR_DECL.
26477 2015-04-17 Christian Bruel <christian.bruel@st.com>
26479 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
26482 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26484 * ira-color.c (setup_left_conflict_sizes_p): Do not process
26485 node itself when computing left conflict subnode size.
26487 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
26489 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
26490 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
26491 *fop_<mode>_1_sse using enabled attribute. Use
26492 register_mixssei387nonimm_operand operand 1 predicate. Change
26493 alternative 3 constraints from "x" to "v".
26495 2015-04-16 Richard Biener <rguenther@suse.de>
26497 PR tree-optimization/65774
26498 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
26499 bit-value tracking on.
26501 2015-04-16 Richard Biener <rguenther@suse.de>
26503 PR tree-optimization/64277
26504 * tree-vrp.c (check_array_ref): Fix anti-range handling,
26505 simplify upper bound handling.
26506 (search_for_addr_array): Simplify.
26507 (check_array_bounds): Handle ADDR_EXPRs here.
26508 (check_all_array_refs): Simplify.
26510 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
26512 * config/i386/i386.c (print_reg): Rewrite function.
26514 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26516 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
26517 Invert the condition.
26519 2015-04-16 Renlin Li <renlin.li@arm.com>
26521 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
26522 simplifications for UNSIGNED_FLOAT.
26524 2015-04-16 Nick Clifton <nickc@redhat.com>
26526 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
26528 (enum rl78_cpu_type): New.
26529 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
26530 (umulhi3_shift_virt): Remove m constraint from operand 1.
26531 (umulqihi3_virt): Likewise.
26532 * config/rl78/rl78.c (rl78_option_override): Add code to process
26533 -mcpu and -mmul options.
26534 (rl78_alloc_physical_registers): Add code to handle divhi and
26535 divsi valloc attributes.
26536 (set_origin): Likewise.
26537 * config/rl78/rl78.h (RL78_MUL_G14): Define.
26538 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
26539 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
26541 (ASM_SPEC): Pass -mcpu on to assembler.
26542 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
26543 (mulqi3_rl78): Likewise.
26544 (mulhi3_g13): Likewise.
26545 (mulhi3): Generate the G13 or G14 versions of the insn directly.
26546 (mulsi3): Likewise.
26547 (mulhi3_g14): Add clobbers of AX and BC.
26548 (mulsi3_g14): Likewise.
26549 (mulsi3_g13): Likewise.
26550 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
26551 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
26552 * config/rl78/rl78.opt (mmul): Initialise value to
26554 (mcpu): New option.
26555 (m13, m14, mrl78): New option aliases.
26556 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
26557 (MULTILIB_DIRNAMES): Add g13 and g14.
26558 * doc/invoke.texi: Document -mcpu and -mmul options.
26560 2015-04-16 Richard Biener <rguenther@suse.de>
26562 * tree-ssa-ccp.c (likely_value): See if we have operands that
26563 are marked as never simulate again and return CONSTANT in this
26565 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
26566 not have any operands that will be simulated again as
26567 not being simulated again.
26569 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
26571 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
26572 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
26573 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
26575 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
26577 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
26578 *float<SWI48:mode><MODEF:mode>2_sse.
26579 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
26581 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
26584 2015-04-15 Tom de Vries <tom@codesourcery.com>
26587 * function.c (push_dummy_function): New function.
26588 (init_dummy_function_start): Use push_dummy_function.
26589 (pop_dummy_function): New function. Factored out of ...
26590 (expand_dummy_function_end): ... here.
26591 * function.h (push_dummy_function, pop_dummy_function): Declare.
26592 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
26593 pop_dummy_function.
26594 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
26596 2015-04-15 Jeff Law <law@redhat.com>
26598 PR tree-optimization/47679
26599 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
26600 need for forward declaration in upcoming changes.
26601 (record_conditions, record_edge_info): Likewise.
26603 PR rtl-optimization/42522
26604 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
26605 SIGN_EXTRACT as a whole object rather than simplifying
26608 2015-04-15 Jakub Jelinek <jakub@redhat.com>
26611 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
26612 and GIMPLE_PREDICT use break instead of return true. For
26613 GIMPLE_EH_DISPATCH, compare dispatch region.
26615 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
26617 * doc/extend.texi (__sync Builtins): Simplify some text. Update
26618 details about the implementation. Make clear preference for
26619 __atomic builtins. Reduce possibility of future change.
26621 2015-04-15 Nick Clifton <nickc@redhat.com>
26623 * config/rx/rx.opt (mallow-string-insns): New option.
26624 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
26625 builtin if string instructions are denied.
26626 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
26627 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
26629 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
26630 * config/rx/rx.md (movstr): Enable pattern only if string
26631 instructions are allowed.
26632 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
26633 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
26634 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
26635 (MULTILIB_DIRNAMES): Add no-strings.
26636 * doc/invoke.texi: Document -mno-allow-string-insns.
26638 2015-04-15 Alan Modra <amodra@gmail.com>
26642 PR middle-end/36043
26643 * calls.c (load_register_parameters): Don't load past end of
26644 mem unless suitably aligned.
26646 2015-04-15 Nick Clifton <nickc@redhat.com>
26648 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
26649 decrement instruction as being frame related.
26650 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
26652 If zero extending a function address enclose the operation in
26654 (rl78_preferred_reload_class): New function.
26655 (TARGET_PREFERRED_RELOAD_CLASS): Define.
26656 * config/rl78/rl78.md: Remove useless constraints in expanders.
26657 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
26658 (mulhi3_rl78): Likewise.
26659 (mulhi3_g13): Likewise.
26660 (mulsi3_rl78): Likewise.
26661 (es_addr): Move to before the multiply patterns.
26663 2015-04-15 Alan Modra <amodra@gmail.com>
26665 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
26666 and sequence_stack. Add seq.
26667 (seq_stack): Delete.
26668 * function.c (prepare_function_start): Don't access x_last_insn.
26669 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
26670 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
26671 * emit_rtl.c (start_sequence, push_topmost_sequence,
26672 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
26673 sequence accessors.
26674 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
26675 remove_insn): Likewise. Simplify.
26676 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
26677 and pop_topmost_sequence.
26678 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
26680 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
26682 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
26685 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
26688 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
26690 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
26691 (LEGACY_INT_REGNO_P): Ditto.
26692 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
26693 (ANY_MASK_REG_P): Remove.
26694 (BND_REG_P): Rename from ANY_BND_REG_P.
26695 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
26696 legacy integer registers. Do not handle MMX_REG_P in a special way.
26697 Merge 64byte and 32byte SSE handling.
26699 2015-04-14 Nick Clifton <nickc@redhat.com>
26701 * expr.c (expand_assignment): Force an address offset computation
26702 into a register before changing its mode.
26703 (expand_expr_real_1): Likewise.
26705 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
26707 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
26708 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
26709 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
26710 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
26711 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
26712 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
26713 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
26714 and __aarch64_vget_lane_any.
26716 2015-04-14 Jakub Jelinek <jakub@redhat.com>
26718 PR rtl-optimization/65761
26719 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
26720 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
26722 2015-04-14 Richard Biener <rguenther@suse.de>
26724 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
26725 (graphite_can_represent_scev): Use POINTER_TYPE_P.
26727 2015-04-14 Richard Biener <rguenther@suse.de>
26729 PR tree-optimization/65758
26730 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
26732 (ccp_lattice_meet): Likewise.
26733 (bit_value_unop): Likewise.
26734 (bit_value_binop): Likewise.
26735 (bit_value_assume_aligned): Likewise.
26737 2015-04-14 Christian Bruel <christian.bruel@st.com>
26739 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
26742 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
26744 PR tree-optimization/63387
26745 * match.pd ((x unord x) | (y unord y) -> (x unord y),
26746 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
26748 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
26750 * config/i386/predicates.md (any_QIreg_operand): Rename from
26751 q_regs_operand. Do not process subregs.
26752 (QIreg_operand): Use QI_REGNO_P predicate.
26753 (ext_QIreg_operand): Ditto.
26754 (ext_register_operand): Ditto.
26755 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
26756 (AND splitters): Ditto.
26757 (AND with -65536 splitter): Add SWI48 mode for operand 0.
26758 (AND with -256 splitter): Use any_QIreg_operand predicate and
26759 SWI248 mode for operand 0.
26760 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
26761 mode for operand 0.
26762 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
26764 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
26766 * doc/plugins.texi: Rewrite first introductory paragraph.
26768 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26770 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
26771 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
26773 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26775 * ipa-profie.c (ipa_profile): Check number of parameters
26776 and possible polymorphic call targets before
26779 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
26781 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
26782 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
26784 2015-04-13 Richard Biener <rguenther@suse.de>
26786 PR tree-optimization/65204
26787 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
26788 takens for bit-CCP.
26790 2015-04-13 Richard Biener <rguenther@suse.de>
26793 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
26794 and cond_not_taken_branch_cost to 4 and 2.
26795 (bdver2_cost): Likewise.
26796 (bdver3_cost): Likewise.
26797 (bdver4_cost): Likewise.
26799 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26801 * hash-table.h (hash_table constructor): Add mem stats.
26802 (alloc_entries): Likewise.
26804 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26806 * ipa-cp.c (ipcp_driver): Relase prev_edge.
26807 * passes.c (execute_one_pass): Only add transform if pass has one.
26809 2015-04-12 Joseph Myers <joseph@codesourcery.com>
26811 * config/i386/i386.c (ix86_option_override_internal): Don't set
26812 -fprefetch-loop-arrays if optimizing for size.
26814 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26815 Gerald Pfeifer <gerald@pfeifer.com>
26817 * doc/contrib.texi (Contributors): Add Martin Jambor and
26820 2015-04-12 Jakub Jelinek <jakub@redhat.com>
26822 * BASE-VER: Set to 6.0.0.
26824 PR tree-optimization/65747
26825 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
26826 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
26828 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
26830 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
26831 sentence. Improve grammar.
26833 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
26835 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
26837 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
26840 * ipa-inline-transform.c (speculation_removed): Remove static var.
26841 (check_speculations): New function.
26842 (clone_inlined_nodes): Do not check spculations.
26843 (inline_call): Call check_speculations.
26844 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
26845 consider non-invariants.
26847 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
26848 Martin Liska <mliska@suse.cz>
26851 * ipa-icf.c (sem_item::compare_cgraph_references): function and
26852 variable can not match.
26853 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
26854 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
26856 2015-04-11 Jakub Jelinek <jakub@redhat.com>
26858 PR tree-optimization/65735
26859 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
26860 Remove visited_phis argument, add visited_bbs, avoid recursing into the
26861 same bb rather than just into the same phi node.
26862 (thread_through_normal_block): Adjust caller.
26864 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
26866 * doc/contrib.texi (Contributors): Add Ira Rosen.
26868 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
26870 * gcov.c (find_source): Fix miswording in error message.
26871 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
26872 (ix86_expand_sse_comi_round): Fix typo in error message.
26874 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
26876 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
26878 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
26880 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
26882 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
26885 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
26886 Print bad_spills_num and insn_pseudos_num.
26888 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26891 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
26892 when creating +1 values for SImode.
26894 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
26897 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
26900 2015-04-10 Jakub Jelinek <jakub@redhat.com>
26901 Iain Sandoe <iain@codesourcery.com>
26904 * configure: Regenerate.
26906 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26909 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
26911 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
26913 * doc/contrib.texi (Contributors): Add John Marino.
26915 2015-04-09 Jakub Jelinek <jakub@redhat.com>
26917 PR tree-optimization/65709
26918 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
26919 TREE_TYPE (TREE_TYPE (t)).
26921 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
26924 * lra-int.h (lra_bad_spill_regno_start): New.
26925 * lra.c (lra_bad_spill_regno_start): New.
26926 (lra): Set up lra_bad_spill_regno_start. Set up
26927 lra_constraint_new_regno_start unconditionally.
26928 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
26931 2015-04-09 Marek Polacek <polacek@redhat.com>
26932 Jakub Jelinek <jakub@redhat.com>
26934 PR middle-end/65554
26935 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
26936 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
26939 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
26941 PR rtl-optimization/65693
26942 * combine.c (is_parallel_of_n_reg_sets): Move outside of
26945 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
26948 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
26949 device specs file if "device-specs%s" didn't resolve to a path.
26951 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26954 * config/i386/i386.c (fixup_modeless_constant): New.
26955 (ix86_expand_args_builtin): Fixup modeless constant operand.
26956 (ix86_expand_round_builtin): Ditto.
26957 (ix86_expand_special_args_builtin): Ditto.
26958 (ix86_expand_builtin): Ditto.
26960 2015-04-09 Jakub Jelinek <jakub@redhat.com>
26963 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
26964 any pow2 integer in between 2 and 0x80000000U inclusive.
26966 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
26968 PR rtl-optimization/65693
26969 * combine.c (is_parallel_of_n_reg_sets): Change first argument
26970 from an rtx_insn * to an rtx.
26971 (try_combine): Adjust both callers. Use it once more.
26973 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26975 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
26976 (chkp_make_static_const_bounds): Search existing
26977 symbol by assembler name. Use make_decl_one_only.
26978 (chkp_get_zero_bounds_var): Remove node search which
26979 is now performed in chkp_make_static_const_bounds.
26980 (chkp_get_none_bounds_var): Likewise.
26982 2015-04-08 Michael Witten <mfwitten@gmail.com>
26984 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
26987 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26989 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
26991 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
26993 * doc/extend.texi (__sync Builtins): Fix grammar.
26995 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26997 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
26999 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27001 * varasm.c (emit_local): Move definition of align.
27003 2015-04-08 Julian Brown <julian@codesourcery.com>
27005 * config/nvptx/mkoffload.c (process): Support variable mapping.
27007 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
27009 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
27011 (alpha_write_one_linkage): Correct typo.
27013 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27015 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
27017 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
27019 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
27021 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27023 * tree-chkp.h (chkp_insert_retbnd_call): New.
27024 * tree-chkp.c (chkp_insert_retbnd_call): New.
27025 * ipa-split.c (insert_bndret_call_after): Remove.
27026 (split_function): Use chkp_insert_retbnd_call.
27027 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
27028 bounds for instrumented functions.
27030 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
27033 * calls.c (initialize_argument_information): When producing tail
27034 call also turn SSA_NAMES passed by references to original PARM_DECLs
27036 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
27039 * lra-remat.c (do_remat): Process input and non-input insn
27040 registers separately.
27042 2015-04-07 Jakub Jelinek <jakub@redhat.com>
27045 * valtrack.c (debug_lowpart_subreg): New function.
27046 (dead_debug_insert_temp): Use it.
27048 PR middle-end/65680
27049 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
27050 into signed HOST_WIDE_INT the same as negative bit_offset.
27052 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
27054 * ipa-comdats.c (ipa_comdats): Visit all thunks
27055 to set proper comdat group.
27057 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27060 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
27061 on constants for NEON VSTRUCT modes.
27063 2015-04-07 Jakub Jelinek <jakub@redhat.com>
27064 Iain Sandoe <iain@codesourcery.com>
27067 * configure: Regenerate.
27069 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27072 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
27073 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
27074 that LFD is used to load double constants instead of LFS. Add
27075 defaults for all costs structures. Add comments for missing
27076 initialization fields.
27077 (size32_cost): Likewise.
27078 (size64_cost): Likewise.
27079 (rs64a_cost): Likewise.
27080 (mpccore_cost): Likewise.
27081 (ppc403_cost): Likewise.
27082 (ppc405_cost): Likewise.
27083 (ppc440_cost): Likewise.
27084 (ppc476_cost): Likewise.
27085 (ppc601_cost): Likewise.
27086 (ppc603_cost): Likewise.
27087 (ppc604_cost): Likewise.
27088 (ppc604e_cost): Likewise.
27089 (ppc620_cost): Likewise.
27090 (ppc630_cost): Likewise.
27091 (ppccell_cost): Likewise.
27092 (ppc750_cost): Likewise.
27093 (ppc7450_cost): Likewise.
27094 (ppc8540_cost): Likewise.
27095 (ppce300c2c3_cost): Likewise.
27096 (ppce500mc_cost): Likewise.
27097 (ppce500mc64_cost): Likewise.
27098 (ppce5500_cost): Likewise.
27099 (ppce6500_cost): Likewise.
27100 (titan_cost): Likewise.
27101 (power4_cost): Likewise.
27102 (power6_cost): Likewise.
27103 (power7_cost): Likewise.
27104 (power8_cost): Likewise.
27105 (ppca2_cost): Likewise.
27106 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
27108 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
27109 instead of XXLOR to copy SFmode to clear out dirty bits created
27110 when SFmode denormals are generated.
27111 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
27112 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
27114 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
27116 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
27117 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
27118 * config/aarch64/aarch64-tune.md: Regenerate.
27120 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
27122 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
27123 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
27124 * config/arm/arm-cores.def (exynos-m1): New core.
27125 * config/arm/arm-tune.md: Regenerate.
27126 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
27127 * config/arm/bpabi.h: Likewise.
27129 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
27131 * ipa-cp (set_single_call_flag): Remove too
27132 restrictive assert.
27134 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
27136 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
27137 GOMP_offload_unregister from the destructor.
27139 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
27141 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
27142 flags for instrumentation thunk.
27143 (chkp_produce_thunks): Likewise.
27145 2015-04-05 Martin Liska <mliska@suse.cz>
27148 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
27149 has computed data structure.
27150 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
27152 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
27154 * invoke.texi (inline-unit-growth): Increase growth to 20%
27155 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
27157 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
27160 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
27162 (lra_rematerialization_iter): New.
27163 * lra.c (lra): Initialize lra_rematerialization_iter.
27164 Stop updating lra_constraint_new_regno_start after switching of
27165 inheritance and rematerialization.
27166 * lra-remat.c (lra_rematerialization_iter): New.
27167 (lra_remat): Add printing pass iteration. Do rematerialization
27168 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
27170 2015-04-04 Richard Biener <rguenther@suse.de>
27172 PR tree-optimization/64909
27173 PR tree-optimization/65660
27174 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
27175 to take a cost vector for scalar iteration cost.
27176 (vect_get_single_scalar_iteration_cost): Likewise.
27177 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
27178 Compute the scalar iteration cost into a cost vector.
27179 (vect_get_known_peeling_cost): Use the scalar cost vector to
27180 account for the cost of the peeled iterations.
27181 (vect_estimate_min_profitable_iters): Likewise.
27182 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
27185 2015-04-04 Alan Modra <amodra@gmail.com>
27189 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
27190 0.0 constant unless TARGET_VSX.
27191 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
27194 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
27197 * ipa-inline-transform.c (inline_call): Skip sanity check to work
27200 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
27203 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
27204 speculative indirect edges to avoid ordering issue.
27206 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
27209 * ipa-inline.c (edge_badness): Add combined size to the denominator.
27211 2015-04-03 Jakub Jelinek <jakub@redhat.com>
27213 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
27214 TYPE_ARTIFICIAL on the .omp_data* types.
27216 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
27218 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
27219 instrumentation thunks.
27221 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
27223 * config/i386/i386.c (ix86_expand_call): Avoid nested
27224 PARALLEL in returned call value.
27226 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
27228 * lto-cgraph.c (input_cgraph_1): Always link instrumented
27229 assembler name with original one.
27231 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
27233 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
27235 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
27237 Revert parts of r216820.
27238 * config/i386/i386.md (movqi_internal): Correct type calculation
27239 for alternatives 3 and 5.
27241 2015-04-02 Jakub Jelinek <jakub@redhat.com>
27243 PR preprocessor/61977
27244 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
27245 predefine __vector/__bool/__pixel macros nor context sensitive
27246 macros for CLK_ASM.
27247 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
27249 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
27251 * config/pa/pa.c (pa_output_move_double): Directly handle register
27252 indexed memory operand. Simplify handling of scaled register indexed
27255 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
27258 * config/i386/linux-common.h (MPX_SPEC): New.
27259 (CHKP_SPEC): Add MPX_SPEC.
27260 * doc/invoke.texi (-fcheck-pointer-boudns): Document
27261 possible issues with '-z bndplt' support in linker.
27263 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
27265 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
27266 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
27267 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
27268 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
27269 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
27271 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
27273 * config/i386/sync.md (UNSPEC_MOVA): Remove.
27274 (atomic_load<mode>): Change operand 0 predicate to
27275 nonimmediate_operand and fix up the destination when needed.
27277 (atomic_loaddi_fpu): Use UNSPEC_LDA.
27278 (atomic_store<mode>): Change operand 1 predicate to
27279 nonimmendate_operand and move the source to register when needed.
27281 (atomic_store<mode>_1): Use UNSPEC_STA.
27282 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
27283 Fix moves from memory operand. Use UNSPEC_STA.
27285 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
27287 * expmed.c (strict_volatile_bitfield_p): Check that the access will
27288 not cross a MODESIZE boundary.
27289 (store_bit_field, extract_bit_field): Added assertions in the
27290 strict volatile bitfields code path.
27292 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
27295 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
27296 Increase args array size by one to avoid buffer overflow.
27298 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
27300 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
27302 * ipa-inline.c (edge_badness): Add wrapper penalty.
27303 (sum_callers): Move up.
27304 (inline_small_functions): Set single_caller.
27305 * ipa-inline.h (inline_summary): Add single_caller.
27306 * ipa-split.c (split_function): Set split_part.
27307 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
27308 * cgraph.h (cgraph_node): Add split_part.
27310 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
27313 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
27314 Do not split operands 0 and operands 2 to halfmode.
27315 (atomic_compare_and_swap<mode>): Update for
27316 atomic_compare_and_swap<dwi>_doubleword changes.
27318 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
27320 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
27321 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
27322 no caching is done.
27324 2015-03-31 Martin Liska <mliska@suse.cz>
27327 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
27328 has already filled up function summary.
27329 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
27331 2015-03-31 Richard Biener <rguenther@suse.de>
27333 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
27336 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
27338 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
27340 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
27341 (s390_asm_output_function_label): Adapt to new signature of
27342 s390_function_num_hotpatch_hw
27343 Optimise the code generating assembler output.
27344 Add comments to assembler file.
27346 2015-03-31 Richard Biener <rguenther@suse.de>
27348 PR middle-end/65626
27349 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
27350 of the noreturn call so it is last and cleanup_control_flow_bb
27351 can do the CFG part.
27353 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
27356 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
27357 same_comdat_group for external symbols.
27358 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
27359 infinite same_comdat_group traversal loop.
27361 2015-03-31 Jakub Jelinek <jakub@redhat.com>
27364 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
27365 automatically to $headers.
27367 2015-03-30 Jakub Jelinek <jakub@redhat.com>
27370 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
27371 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
27373 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
27375 * ipa-prop.c (param_type_may_change_p): Likewise.
27376 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
27377 (remove_unused_scope_block_p): Add in_ctor_dtor_block
27378 argument. Before inlining, preserve
27379 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
27380 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
27382 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
27384 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27387 * ipa-inline.c (edge_badness): Base denominator on callee's
27390 2015-03-27 Martin Jambor <mjambor@suse.cz>
27393 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
27394 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
27395 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
27396 node_calling_single_call.
27397 * ipa-cp.c (count_callers): New function.
27398 (set_single_call_flag): Likewise.
27399 (initialize_node_lattices): Count callers and set single_flag_call if
27401 (incorporate_penalties): New function.
27402 (good_cloning_opportunity_p): Use it, dump new flags.
27403 (propagate_constants_topo): Set node_within_scc flag if appropriate.
27404 * doc/invoke.texi (ipa-cp-recursion-penalty,
27405 ipa-cp-single-call-pentalty): Document.
27407 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27410 * symtab.c (symtab_node::get_partitioning_class): Register vars
27412 * varpool.c (symbol_table::output_variables) Do not assemble unefined
27413 decls for non-symbols.
27415 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
27418 * output.h (default_binds_local_p_2): New.
27419 * varasm.c (default_binds_local_p_2): Renamed to ...
27420 (default_binds_local_p_3): This. Don't return true on protected
27421 data symbol if protected data may be external.
27422 (default_binds_local_p): Use default_binds_local_p_3.
27423 (default_binds_local_p_1): Likewise.
27424 (default_binds_local_p_2): New.
27425 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
27426 default_binds_local_p_2 if TARGET_MACHO is undefined.
27428 2015-03-27 Jakub Jelinek <jakub@redhat.com>
27431 * config/i386/i386.c (legitimize_pic_address): If base
27432 is SYMBOL_REF or LABEL_REF using %rip addressing, force
27433 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
27435 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27438 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
27441 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27444 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
27445 of optimized out indirect call.
27446 (redirect_to_unreachable): Always build symbol table node for
27447 BUILT_IN_UNREACHABLE
27449 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
27452 * ira-costs.c (record_reg_classes): Process all constraint string
27455 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
27457 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
27461 * config/c6x/constraints.md (S3): New constraint.
27462 * config/c6x/c6x.md (real_jump): Use it.
27464 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27466 PR middle-end/65595
27467 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
27468 do redirection if the call is not optimized out.
27470 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
27473 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
27474 (fchkp-check-incomplete-type): Add LTO.
27475 (fchkp-zero-input-bounds-for-main): Likewise.
27476 (fchkp-first-field-has-own-bounds): Likewise.
27477 (fchkp-narrow-bounds): Likewise.
27478 (fchkp-narrow-to-innermost-array): Likewise.
27479 (fchkp-use-static-bounds): Likewise.
27480 (fchkp-use-static-const-bounds): Likewise.
27481 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
27483 2015-03-27 Marek Polacek <polacek@redhat.com>
27485 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
27487 2015-03-27 Marek Polacek <polacek@redhat.com>
27490 * ubsan.c (ubsan_create_edge): New function.
27491 (instrument_bool_enum_load): Call it.
27492 (instrument_nonnull_arg): Likewise.
27493 (instrument_nonnull_return): Likewise.
27494 (instrument_object_size): Likewise.
27496 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27498 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
27501 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27504 * lto-streamer.h (class lto_location_cache): New.
27505 (struct data_in): Add location_cache.
27506 (lto_input_location): Update prototype.
27507 (stream_input_location_now): New.
27508 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
27509 pointer to location.
27510 (stream_input_location): Update.
27511 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
27512 (warn_odr): Apply location cache before warning.
27513 (lto_input_location): Update prototype.
27514 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
27515 Use stream_input_location_now.
27516 * lto-streamer-in.c (lto_location_cache::current_cache): New static
27518 (lto_location_cache::cmp_loc): New function.
27519 (lto_location_cache::apply_location_cache): New function.
27520 (lto_location_cache::accept_location_cache): New function.
27521 (lto_location_cache::revert_location_cache): New function.
27522 (lto_location_cache::input_location): New function.
27523 (lto_input_location): Do location caching.
27524 (stream_input_location_now): New function.
27525 (input_eh_region, input_struct_function_base): Use
27526 stream_input_location_now.
27527 (lto_data_in_create): use new.
27528 (lto_data_in_delete): Use delete.
27529 * tree-streamer-in.c (unpack_ts_block_value_fields,
27530 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
27531 lto_input_ts_exp_tree_pointers): Update for cached location api.
27533 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27536 * passes.def: Add pass_nothrow.
27537 * ipa-pure-const.c: (pass_data_nothrow): New.
27538 (pass_nothrow): New.
27539 (pass_nothrow::execute): New.
27540 (make_pass_nothrow): New.
27541 * tree-pass.h (make_pass_nothrow): Declare.
27543 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27545 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
27546 edge to change by speculation resolution or redirection.
27547 (edge_set_predicate): Likewise.
27548 (inline_summary_t::duplicate): Likewise.
27549 (remap_edge_summaries): Likewise.
27551 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27553 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
27555 (can_inline_edge_p): Relax option matching for always inline functions.
27557 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
27560 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
27561 Check operand 4 and operand 0 for equality.
27562 (avx512f_vextract<shuffletype>32x4_1_maskm):
27563 Check operand 6 and operand 0 for equality.
27564 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
27566 (vec_extract_hi_<mode>_maskm): Ditto.
27568 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27570 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
27571 dead calls back to live.
27572 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
27574 (cgraph_node::verify_node): ... here; verify only callee edges,
27576 * cif-code.def (CILK_SPAWN): New code.
27578 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27580 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
27581 (edge_set_predicate): Use it to mark unreachable edges.
27582 (inline_summary_t::duplicate): Remove unnecesary code.
27583 (remap_edge_summaries): Likewise.
27584 (dump_inline_summary): Report contains_cilk_spawn.
27585 (compute_inline_parameters): Compute contains_cilk_spawn.
27586 (inline_read_section, inline_write_summary): Stream
27587 contains_cilk_spawn.
27588 * ipa-inline.c (can_inline_edge_p): Do not touch
27589 DECL_STRUCT_FUNCTION that may not be available;
27590 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
27591 remove check for callee_fun->can_throw_non_call_exceptions and
27592 replace it by optimization attribute check; check for flag_exceptions.
27593 * ipa-inline-transform.c (inline_call): Maintain
27594 DECL_FUNCTION_PERSONALITY
27595 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
27597 2015-03-26 Jakub Jelinek <jakub@redhat.com>
27599 PR tree-optimization/65551
27600 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
27601 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
27603 2015-03-26 Richard Biener <rguenther@suse.de>
27605 PR middle-end/65555
27606 * tree-cfg.c (verify_gimple_call): Do not require a call to
27607 have no LHS if it wasn't recognized as control altering yet.
27609 2015-03-26 Jakub Jelinek <jakub@redhat.com>
27611 PR tree-optimization/64715
27612 * passes.def: Add another instance of pass_object_sizes before ccp1.
27613 * tree-object-size.c (pass_object_sizes::execute): In
27614 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
27615 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
27616 __bos result and the computed constant. Remove redundant
27617 checks, obsoleted by gimple_call_builtin_p test.
27619 * var-tracking.c (variable_tracking_main_1): Don't track
27620 variables for targetm.no_register_allocation targets.
27622 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
27624 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
27625 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
27627 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
27630 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
27631 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
27632 0.0 is correctly setup.
27633 (extenddftf2_internal): Likewise.
27635 2015-03-25 Sebastian Pop <s.pop@samsung.com>
27637 PR tree-optimization/65177
27638 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
27640 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
27641 edges not adjacent on the path to the original code.
27643 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
27646 * doc/install.texi (Building a native compiler): Document new
27647 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
27648 configuration assumes that the host supports the linker plugin.
27650 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
27653 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
27654 chain for generated call.
27656 2015-03-25 Richard Biener <rguenther@suse.de>
27658 * passes.c (pass_manager::execute_early_local_passes): Guard
27659 execution of pass_chkp_instrumentation_passes with
27660 flag_check_pointer_bounds.
27661 (pass_chkp_instrumentation_passes::gate): Likewise.
27663 2015-03-25 Martin Liska <mliska@suse.cz>
27665 PR tree-optimization/65538
27666 * symbol-summary.h (function_summary::~function_summary):
27667 Relese memory for allocated summaries.
27668 (function_summary::release): New function.
27670 2015-03-25 Jakub Jelinek <jakub@redhat.com>
27673 * lto-streamer-out.c (DFS::worklist): New struct.
27674 (DFS::worklist_vec): New data member.
27675 (DFS::next_dfs_num): Remove.
27676 (DFS::DFS): Rewritten using worklist instead of recursion,
27677 using most of code from DFS::DFS_write_tree.
27678 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
27679 pass it to DFS_write_tree calls.
27680 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
27681 quick initial checks push it into worklist_vec and return.
27683 2015-03-25 Richard Biener <rguenther@suse.de>
27685 PR middle-end/65519
27686 * genmatch.c (expr::gen_transform): Re-write to avoid
27687 using gimple_build.
27689 2015-03-25 Bin Cheng <bin.cheng@arm.com>
27691 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
27693 2015-03-25 Bin Cheng <bin.cheng@arm.com>
27695 * config/arm/arm.opt (print_tune_info): New option.
27696 * config/arm/arm.c (arm_print_tune_info): New function.
27697 (arm_file_start): Call arm_print_tune_info.
27698 * config/arm/arm-protos.h (struct tune_params): Add comment.
27699 * doc/invoke.texi (@item -mprint-tune-info): New item.
27700 (-mtune): mention it in ARM Option Summary.
27702 2015-03-25 DJ Delorie <dj@redhat.com>
27704 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
27707 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
27708 Martin Liska <mliska@suse.cz>
27710 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
27711 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
27712 (sem_item::add_type): New function.
27713 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
27714 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
27715 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
27716 (sem_function::equals_wpa): Fix typo.
27717 * ipa-icf.h (sem_item::add_type): New function.
27718 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
27721 2015-03-24 Jakub Jelinek <jakub@redhat.com>
27723 PR tree-optimization/65533
27724 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
27725 with swapped operands, call vect_free_slp_tree on
27726 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
27729 2015-03-24 Richard Biener <rguenther@suse.de>
27731 PR middle-end/65517
27732 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
27733 for fixup if necessary.
27735 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
27737 * doc/extend.texi (Function Attributes): Add @cindex entries
27738 for all attributes and regularize their format. Delete text
27739 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
27740 information about "eightbit_data", "tiny_data", and "model"
27741 variable attributes to the Variable Attributes section. Fix
27742 some obvious typos and copy-editing issues.
27743 (Variable Attributes, Type Attributes): Likewise add/fix
27744 @cindex entries for all attributes.
27746 2015-03-23 Jakub Jelinek <jakub@redhat.com>
27749 * tree-chkp.c (chkp_build_returned_bound): Ignore
27750 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
27752 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
27755 * config/sh/predicates.md (simple_mem_operand,
27756 displacement_mem_operand): Add test for reg.
27757 (short_displacement_mem_operand): Test for displacement_mem_operand
27758 before invoking sh_disp_addr_displacement.
27759 * config/sh/constraints.md (Sdd, Sra): Simplify.
27760 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
27761 Remove redundant displacement_mem_operand tests.
27763 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
27766 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
27767 the same -mmcu=MCU more than once.
27769 2015-03-23 Jakub Jelinek <jakub@redhat.com>
27772 * ipa-devirt.c: Remove duplicate demangle.h include.
27775 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
27777 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
27778 REG_POINTER on *destptr after adjusting it for prologue size.
27781 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
27782 ultimate_alias_target ()->order ints instead of
27783 ultimate_alias_target () pointers.
27785 2015-03-23 Richard Biener <rguenther@suse.de>
27787 PR tree-optimization/65518
27788 * tree-vect-stmts.c (vectorizable_load): Reject single-element
27789 interleaving cases we generate absymal code for.
27791 2015-03-23 Richard Biener <rguenther@suse.de>
27793 PR tree-optimization/65494
27794 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
27796 (vect_analyze_slp_instance): But do that here, always and once.
27798 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27800 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
27801 adding T or multiplying by T+1 and subracting T.
27803 2015-03-22 Jeff Law <law@redhat.com>
27805 PR rtl-optimization/64317
27806 * Makefile.in (OBJS): Add gcse-common.c
27807 * gcse.c: Include gcse-common.h
27808 (struct modify_pair_s): Move structure definition to gcse-common.h
27809 (compute_transp): Move function to gcse-common.c.
27810 (canon_list_insert): Similarly.
27811 (record_last_mem_set_info): Break out some code and put it into
27812 gcse-common.c. Call into the new common code.
27813 (compute_local_properties): Pass additional arguments to compute_transp.
27814 * postreload-gcse.c: Include gcse-common.h and df.h
27815 (modify_mem_list_set, blocks_with_calls): New variables.
27816 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
27817 (get_bb_avail_insn): Pass in the expression index too.
27818 (alloc_mem): Allocate memory for the new bitmaps and lists.
27819 (free_mem): Free memory for the new bitmaps and lists.
27820 (insert_expr_in_table): Record a bitmap index for each entry we
27822 (record_last_mem_set_info): Call into common code in gcse-common.c.
27823 (get_bb_avail_insn): If no available insn was found in the requested
27824 BB. If BB has a single predecessor, see if the expression is
27825 transparent in BB and available in that single predecessor.
27826 (compute_expr_transp): New wrapper for compute_transp.
27827 (eliminate_partially_redundant_load): Pass expression's bitmap_index
27828 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
27829 (gcse_after_reload_main): If there are elements in the hash table,
27830 then compute transparency for all the elements in the hash table.
27831 * gcse-common.h: New file.
27832 * gcse-common.c: New file.
27834 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
27836 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
27838 (System Headers): Likewise.
27840 (Traditional macros): Likewise.
27841 (Invocation): Likewise.
27842 (Option Index): Likewise.
27843 * doc/cppopts.texi (-M): Likewise.
27844 (-finput-charset): Likewise.
27845 (--help): Likewise.
27846 * doc.invoke.texi (AVR Options): Likewise.
27847 (V850 Options): Likewise.
27849 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
27852 * ipa-devirt.c: Include demangle.h
27853 (odr_type_d): Add field rtti_broken.
27854 (odr_subtypes_equivalent_p): Do not require name to match.
27855 (compare_virtual_tables): Fix typo; if type already has ODR violation,
27856 bypass the tests; be ready for function referneces in vtables that are
27857 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
27858 (warn_odr): Give up for nameless types.
27859 (warn_types_mismatch): Report mismatch in mangled names;
27860 report mismatch in anonymous namespaces; look into component types to
27861 give useful error; report when mismatch is dragged in from other ODR
27863 (odr_types_equivalent_p): Match types for being polymorphic; avoid
27864 duplicated diagnostics.
27865 (add_type_duplicate): Reorder checks so more informative ones come
27866 first; fix typo; do not output "the extra base is defined here" when
27868 (BINFO_N_BASE_BINFOS): Relax sanity check.
27870 2015-03-22 Martin Liska <mliska@suse.cz>
27871 Jakub Jelinek <jakub@redhat.com>
27873 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
27874 masks that can potentially include a builtin.
27875 (ix86_add_new_builtins): Introduce fast filter for isa values
27876 that cannot trigger builtin inclusion.
27878 2015-03-22 Martin Liska <mliska@suse.cz>
27880 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
27881 (sem_item::update_hash_by_local_refs): Likewise.
27882 (sem_variable::get_hash): Empty line is fixed.
27883 (sem_item_optimizer::execute): Include adding of hash references.
27884 (sem_item_optimizer::update_hash_by_addr_refs): New function.
27885 (sem_item_optimizer::build_hash_based_classes): Use local hash.
27886 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
27887 (sem_item::update_hash_by_local_refs): Likewise.
27889 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27892 * ipa-comdats.c (enqueue_references): Walk through thunks.
27893 (ipa_comdats): Likewise.
27894 (set_comdat_group_1): New function.
27896 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27899 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
27902 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
27903 Gerald Pfeifer <gerald@pfeifer.com>
27905 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
27907 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
27908 Sandra Loosemore <sandra@codesourcery.com>
27910 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
27911 function parameter declaration.
27912 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
27913 Update arguments to nios2_adjust_call_address().
27914 (sibcall_internal): Rename from *sibcall.
27915 (sibcall_value_internal): Rename from *sibcall_value.
27916 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
27917 (nios2_large_got_address): Add target temp reg parameter.
27918 (nios2_got_address): Adjust call to nios2_large_got_address, add
27919 force_reg around it.
27920 (nios2_load_pic_address): Add target temp reg parameter, replace call
27921 to nios2_got_address with corresponding code.
27922 (nios2_legitimize_constant_address): Update call to
27923 nios2_load_pic_address.
27924 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
27925 to use temp reg for PIC loading purposes.
27926 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
27927 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27928 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
27930 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27932 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
27933 usage of "the @option{...}".
27934 (-Wopenmp-simd): Likewise.
27935 (-fsanitize-recover): Likewise.
27936 (-fsanitize-undefined-trap-on-error): Likewise.
27938 (tracer-dynamic-coverage-feedback): Likewise.
27939 (reorder-block-duplicate-feedback): Likewise.
27940 (loop-unroll-jam-size): Likewise.
27943 (-mabs=legacy): Likewise.
27944 (-mupper-regs-df): Likewise.
27945 (-mupper-regs-sf): Likewise.
27946 (-mpointers-to-nested-functions): Likewise.
27948 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27950 * doc/extend.texi (Cilk Plus Builtins): Add markup.
27952 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27954 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
27955 additional index entries and cross-references.
27956 (-fchkp-check-incomplete-type): Likewise.
27957 (-fchkp-first-field-has-own-bounds): Likewise.
27958 (-fchkp-narrow-to-innermost-array): Likewise.
27959 (-fchkp-use-fast-string-functions): Likewise.
27960 (-fchkp-use-nochk-string-functions): Likewise.
27961 (-fchkp-use-static-const-bounds): Likewise.
27962 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
27963 (-fchkp-instrument-marked-only): Likewise.
27964 (-fchkp-use-wrappers): Likewise.
27965 (-static-libmpx): Likewise.
27966 (-static-libmpxwrappers): Likewise.
27967 * doc/extend.texi (bnd_legacy): Likewise.
27968 (bnd_instrument): Likewise.
27969 (bnd_variable_size): Likewise.
27970 (Pointer Bounds Checker builtins): Likewise.
27972 2015-03-21 Tom de Vries <tom@codesourcery.com>
27974 PR tree-optimization/65458
27975 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
27976 * cgraph.h (cgraph_node): Add parallelized_function field.
27977 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
27978 (input_overwrite_node): Read parallelized_function field.
27979 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
27980 parallelized_function on cgraph_node for child_fn.
27981 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
27982 Remove include of gt-tree-parloops.h.
27983 (parallelized_functions): Remove static variable.
27984 (parallelized_function_p): Rewrite using parallelized_function field of
27986 (create_loop_fn): Remove adding to parallelized_functions.
27987 * Makefile.in (GTFILES): Remove tree-parloops.c
27989 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
27991 PR rtl-optimization/64366
27992 * lra.c (lra_update_insn_regno_info): Consider regs in
27993 CALL_INSN_FUNCTION_USAGE memory.
27995 2015-03-20 Richard Biener <rguenther@suse.de>
27997 PR middle-end/64715
27998 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
27999 for type comparison and gcc_checking_assert.
28000 (chrec_fold_plus_poly_poly): Likewise.
28001 (chrec_fold_multiply_poly_poly): Likewise.
28002 (chrec_convert_1): Likewise.
28003 * gimplify.c (gimplify_expr): Remove premature folding of
28004 &X + CST to &MEM[&X, CST].
28006 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28008 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
28010 (ipa_inline): Recompute inline_failed codes.
28011 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28012 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
28015 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
28017 PR rtl-optimization/60851
28018 * recog.c (constrain_operands): Accept a pseudo register before reload
28019 for LRA enabled targets.
28021 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
28024 * config/rs6000/predicates.md (easy_fp_constant): Remove special
28025 -ffast-math handling that kept non-0 constants live in the RTL
28026 until reload. Remove logic testing the number of instructions it
28027 took to create a constant in a GPR that was never used, due to a
28028 test for soft-float earlier.
28029 (memory_fp_constant): Delete, no longer used.
28031 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
28032 alternatives for loading non-0 constants into GPRs for hard
28033 floating point that is no longer needed due to changes in
28034 easy_fp_constant. Add support for loading 0.0 into GPRs.
28035 (mov<mode>_hardfloat32): Likewise.
28036 (mov<mode>_hardfloat64): Likewise.
28037 (mov<mode>_64bit_dm): Likewise.
28038 (movtd_64bit_nodm): Likewise.
28039 (pre-reload move FP constant define_split): Delete define_split,
28040 since it is no longer used.
28041 (extenddftf2_internal): Remove GHF constraints that are not valid
28044 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
28046 PR rtl-optimization/63491
28047 * lra-constraints.c (check_and_process_move): Use src instead of
28048 sreg. Remove some dead code.
28050 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
28053 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
28054 (sem_variable::merge): Likewise.
28056 2015-03-19 Martin Liska <mliska@suse.cz>
28059 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
28060 all fields of cgraph_thunk_info.
28062 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
28064 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
28065 clone instrumented thunks.
28067 2015-03-19 Richard Biener <rguenther@suse.de>
28070 2015-03-10 Richard Biener <rguenther@suse.de>
28072 PR middle-end/63155
28073 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28074 * tree-ssa-coalesce.c: Include timevar.h.
28075 (attempt_coalesce): Handle graph being NULL.
28076 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28077 Split out abnormal coalescing to ...
28078 (perform_abnormal_coalescing): ... this function.
28079 (coalesce_ssa_name): Perform abnormal coalescing without computing
28081 (verify_ssa_coalescing_worker): New function.
28082 (verify_ssa_coalescing): Likewise.
28084 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
28085 Jakub Jelinek <jakub@redhat.com>
28088 * tsan.c (instrument_gimple): Clear tail call flag on
28091 2015-03-19 Jakub Jelinek <jakub@redhat.com>
28094 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
28095 call in the return bb.
28096 (find_split_points): Add RETURN_BB argument, don't call
28098 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
28099 if true append TSAN_FUNC_EXIT internal call after the call to
28100 the split off function.
28101 (execute_split_functions): Call find_return_bb here.
28102 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
28103 Adjust find_split_points and split_function calls.
28105 2015-03-18 DJ Delorie <dj@redhat.com>
28107 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
28108 (iorqi3_virt): Likewise.
28110 2015-03-18 Tom de Vries <tom@codesourcery.com>
28112 * tree-parloops.c (parallelize_loops): Make static.
28113 * tree-parloops.h (parallelize_loops): Remove extern declaration.
28115 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
28117 PR middle-end/64491
28119 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
28121 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
28122 condition would be removed due to undefined behaviour.
28124 2015-03-18 Martin Liska <mliska@suse.cz>
28127 * cgraph.c (cgraph_node::get_create): Remove unnecessary
28128 xstrdup_for_dump wrapper.
28129 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
28131 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
28132 with xstrdup_for_dump.
28133 (sem_variable::equals): Likewise.
28134 (sem_item_optimizer::read_section): Use symtab_node::name instead of
28136 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
28137 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
28138 symtab_node::asm_name with xstrdup_for_dump.
28139 (congruence_class::dump): Use symtab_node::name instead of
28141 * ipa-icf.h (symtab_node::name): Remove.
28142 (symtab_node::asm_name): Likewise.
28144 2015-03-18 Jakub Jelinek <jakub@redhat.com>
28146 PR tree-optimization/65450
28147 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
28149 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
28150 it instead of duplicate_ssa_name_ptr_info.
28153 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
28155 2015-03-18 Richard Biener <rguenther@suse.de>
28157 * tree-data-ref.h (struct access_matrix): Remove.
28158 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
28159 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
28160 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
28161 (am_vector_index_for_loop): Likewise.
28162 (struct data_reference): Remove access_matrix member.
28163 (DR_ACCESS_MATRIX): Remove.
28164 (lambda_vector_new): Add comment.
28165 (lambda_matrix_new): Use XOBNEWVEC.
28167 2015-03-18 Richard Biener <rguenther@suse.de>
28169 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
28170 (pass_ch::execute): Cleanup the CFG only if we did sth.
28171 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
28173 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28175 * expmed.c (synth_mult): Use std::swap instead of manually
28176 swapping algorithms.
28178 2015-03-18 Jakub Jelinek <jakub@redhat.com>
28181 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
28183 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
28186 * config/avr/avr.opt (-nodevicelib): New option.
28187 * doc/invoke.texi (AVR Options): Document it.
28188 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
28189 libgcc.a, libc.a, libm.a.
28190 * config/avr/specs.h: Same.
28191 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
28192 which don't (directly) depend on the device. Print more help.
28193 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
28194 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
28195 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
28197 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
28198 for specs file name.
28199 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
28200 * config/avr/avr-mcus.def: Adjust initializers and comments.
28202 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
28204 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
28205 DECL_ONE_ONLY to check if decl is one only.
28206 * ipa-split.c (consider_split): Limit splitt of one only functions.
28208 2015-03-16 Jakub Jelinek <jakub@redhat.com>
28210 PR tree-optimization/65427
28211 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
28213 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
28215 2015-03-16 Marek Polacek <polacek@redhat.com>
28217 * cgraph.h (add_new_static_var): Remove declaration.
28218 * varpool.c (add_new_static_var): Remove function.
28220 2015-03-16 Jakub Jelinek <jakub@redhat.com>
28222 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
28223 instead of vec<tree> * with vec_alloc and release for args.
28226 PR middle-end/65431
28227 * omp-low.c (delete_omp_context): Only splay_tree_delete
28228 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
28229 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
28231 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
28234 * cfgexpand.c (align_base): New function.
28235 (alloc_stack_frame_space): Call it.
28236 (expand_stack_vars): Align prev_frame to be sure
28237 data->asan_vec elements aligned properly.
28239 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
28241 PR middle-end/65409
28242 * expr.c (store_field): Do not do a direct block copy if the source is
28243 a PARALLEL with BLKmode.
28245 2015-03-16 Tom de Vries <tom@codesourcery.com>
28247 PR middle-end/65414
28249 2015-03-12 Tom de Vries <tom@codesourcery.com>
28251 PR rtl-optimization/64895
28252 * lra-lives.c (check_pseudos_live_through_calls): Use
28253 actual_call_used_reg_set instead of call_used_reg_set, if available.
28255 2015-03-16 Alan Modra <amodra@gmail.com>
28258 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
28259 Modify Z->r bswapdi splitter to use dest in place of scratch.
28260 In r->Z and Z->r bswapdi splitter rename word_high, word_low
28261 to word1, word2 and rearrange logic to suit.
28262 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
28263 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
28264 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
28265 Add one '?' on r->r. Modify Z->r splitter to avoid need for
28268 2015-03-14 Jakub Jelinek <jakub@redhat.com>
28270 PR tree-optimization/65369
28271 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
28272 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
28273 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
28275 PR tree-optimization/65418
28276 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
28277 are casts in the first PLUS_EXPR operand, ensure tbias and
28278 *totallowp are in the inner type.
28280 PR rtl-optimization/65401
28281 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
28282 argument. If true, adjust_address_nv of x with big-endian
28283 correction for the mode widening to GET_MODE (y).
28284 (make_field_assignment): Don't do MEM mode widening here.
28285 Use MEM_P instead of GET_CODE == MEM.
28287 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
28289 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
28290 the external decls.
28292 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28295 * config/arm/arm.c (arm_gen_constant, AND case): Use
28296 ARM_SIGN_EXTEND when constructing AND mask.
28298 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28300 * graph.c (print_graph_cfg): Make function names visible and append
28301 parenthesis to it. Also make groups of basic blocks belonging to the
28302 same function visible.
28304 2015-03-12 Richard Biener <rguenther@suse.de>
28306 PR middle-end/44563
28307 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
28308 to avoid quadratic behavior with inline expansion splitting blocks.
28309 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
28310 with the successor if the predecessor will be merged with it.
28311 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
28312 entry block with its successor.
28314 2015-03-13 Richard Biener <rguenther@suse.de>
28316 PR middle-end/44563
28317 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
28318 (cleanup_tree_cfg_1): Do not call it.
28319 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
28320 (fixup_noreturn_call): Mark the stmt as control altering.
28321 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
28323 (pass_data_fixup_cfg): Produce a dump file.
28324 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
28325 (need_noreturn_fixup): New global.
28326 (pass_dominator::execute): Fixup queued noreturn calls.
28327 (optimize_stmt): Queue calls that became noreturn for fixup.
28328 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
28329 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
28330 (el_to_fixup): New global.
28331 (eliminate_dom_walker::before_dom_childre): Queue calls that
28332 became noreturn for fixup.
28333 (eliminate): Fixup queued noreturn calls.
28334 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
28335 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
28336 (substitute_and_fold_dom_walker::before_dom_children): Queue
28337 alls that became noreturn for fixup.
28338 (substitute_and_fold): Fixup queued noreturn calls.
28340 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
28342 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
28343 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
28344 are building; for methods check ODR type of class they belong to if
28345 they may lead to a polymorphic call.
28346 (sem_function::compare_polymorphic_p): Be bit smarter about testing
28347 when function may lead to a polymorphic call.
28348 (sem_function::compare_type_list): Remove.
28349 (sem_variable::equals): Update use of compatible_types_p.
28350 (sem_variable::parse_tree_refs): Remove.
28351 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
28353 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
28355 (func_checker::compatible_polymorphic_types_p): Break out from ...
28356 (unc_checker::compatible_types_p): ... here.
28357 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
28359 (unc_checker::compatible_types_p): Update.
28360 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
28363 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28365 PR rtl-optimization/65235
28366 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
28367 When first element of vec_concat is const_int, calculate its size
28368 using second element.
28370 2015-03-12 Richard Biener <rguenther@suse.de>
28372 PR middle-end/65270
28373 * fold-const.c (operand_equal_p): Fix ordering of resetting
28374 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
28376 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
28378 * config/s390/s390.c (s390_reorg): Move code to output nops after label
28380 (s390_asm_output_function_label): Likewise.
28381 * config/s390/s390.c (s390_asm_output_function_label):
28382 Fix function label alignment with -mhtopatch.
28383 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
28384 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
28385 ("nop_2_byte"): New define_insn.
28386 ("nop_4_byte"): Likewise.
28387 ("nop_6_byte"): Likewise.
28388 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
28389 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
28391 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
28394 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
28397 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
28400 * toplev.c (process_options): Restrict Pointer Bounds Checker
28401 usage with Address Sanitizer.
28403 2015-03-12 Richard Biener <rguenther@suse.de>
28405 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
28407 * omp-low.c (expand_omp_taskreg): Split block before removing
28409 (expand_omp_target): Likewise.
28410 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
28411 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
28412 stmt to split_block.
28414 2015-03-12 Tom de Vries <tom@codesourcery.com>
28416 PR rtl-optimization/64895
28417 * lra-lives.c (check_pseudos_live_through_calls): Use
28418 actual_call_used_reg_set instead of call_used_reg_set, if available.
28420 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28422 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
28423 (cgraph_node::remove): Likewise.
28424 (cgraph_node::get_untransformed_body): Likewise.
28425 * varpool.c (varpool_node::remove): Likewise.
28426 (varpool_node::get_constructor): Add sanity check.
28428 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
28430 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
28432 (-fabi-compat-version): Likewise.
28433 (-ffriend-injection): Likewise.
28434 (-Wdeclaration-after-statement): Likewise.
28435 (-fomit-frame-pointer): Likewise.
28436 (-ftree-coalesce-inlined-vars): Likewise.
28437 (-fvisibility=): Likewise.
28438 * doc/extend.texi (Typeof): Likewise.
28439 (Zero Length): Likewise.
28440 (Escaped Newlines): Likewise.
28441 (Compound Literals): Likewise.
28442 (Function Attributes): Likewise.
28443 (Label Attributes): Likewise.
28444 (Type Attributes): Likewise.
28445 (Function Names): Likewise.
28446 (Other Builtins): Likewise.
28447 (Function Specific Option Pragmas): Likewise.
28448 (C++ Interface): Likewise.
28450 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
28452 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
28454 2015-03-11 Marek Polacek <polacek@redhat.com>
28456 PR tree-optimization/65388
28457 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
28459 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
28462 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
28463 * configure: Regenerate.
28464 * config.in: Regenerate.
28465 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
28466 [-mn-flash]: Document it.
28467 [__AVR_ARCH__]: Document avrtiny.
28469 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
28470 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
28471 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
28473 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28475 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
28477 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28480 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
28481 allow reloads of PLUS in floating point/VSX registers.
28483 2015-03-11 Junmo Park <junmoz.park@samsung.com>
28485 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
28486 crypto_sha256_fast.
28487 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
28489 2015-03-11 Richard Biener <rguenther@suse.de>
28491 PR tree-optimization/65310
28492 * tree-sra.c (build_ref_for_offset): Also preserve larger
28495 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
28497 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
28499 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28502 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
28504 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
28506 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28508 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
28509 (sem_function::equals_wpa): ... here.
28511 2015-03-10 Marek Polacek <polacek@redhat.com>
28512 Jakub Jelinek <jakub@redhat.com>
28515 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
28516 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
28519 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28522 * config/rs6000/t-linux: For powerpc64* target set
28523 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
28525 2015-03-10 Richard Biener <rguenther@suse.de>
28527 PR middle-end/44563
28528 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
28529 for redirect_all_calls.
28531 2015-03-10 Marek Polacek <polacek@redhat.com>
28533 * gdbinit.in (pcfun): Define and document.
28535 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
28537 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
28538 of libgomp-plugin.h.
28539 (find_target_compiler): Support a case when the path to gcc is
28540 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
28541 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
28542 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
28544 (main): Use GCC_INSTALL_NAME as target_driver_name.
28545 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
28547 (mkoffload.o): Remove obsolete include path and defines.
28548 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
28550 2015-03-10 Richard Biener <rguenther@suse.de>
28552 PR middle-end/63155
28553 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28554 * tree-ssa-coalesce.c: Include timevar.h.
28555 (attempt_coalesce): Handle graph being NULL.
28556 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28557 Split out abnormal coalescing to ...
28558 (perform_abnormal_coalescing): ... this function.
28559 (coalesce_ssa_name): Perform abnormal coalescing without computing
28561 (verify_ssa_coalescing_worker): New function.
28562 (verify_ssa_coalescing): Likewise.
28564 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
28567 * config.gcc (extra_options) [avr]: Remove.
28568 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
28569 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
28570 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
28572 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
28573 (-mmcu=): Add Var and MissingArgError properties.
28575 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
28576 * config/avr/t-multilib: Regenerate.
28577 * config/avr/specs.h: New file.
28578 * config/avr/driver-avr.c: New file.
28579 * config/avr/genopt.sh: Remove file.
28580 * config/avr/avr-tables.opt: Remove file.
28581 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
28582 * config/avr/avr-c.c: Same.
28583 * avr-arch.h: Same.
28584 (avr_current_device): Remove proto.
28585 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
28586 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
28587 (EXTRA_SPEC_FUNCTIONS): Define.
28588 (avr_devicespecs_file): New specs function proto.
28589 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
28590 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
28591 (avr_current_device): Remove definition and usage.
28592 (avr_set_core_architecture): New static function.
28593 (avr_option_override): Use it.
28594 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
28595 (mcu_name): New static array.
28596 (comparator, avr_archs_str, avr_mcus_str): New static functions.
28597 (avr_inform_devices, avr_inform_core_architectures): New functions.
28598 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
28599 (avrlibc.h) [WITH_AVRLIBC]: Include.
28600 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
28601 (print_mcu): Rewrite from scratch.
28602 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
28603 Forward to avr-specific specs defined in device-specs file.
28604 * config/avr/t-avr (driver-avr.o): New rule.
28605 (avr-devices.o): Depend on avr-arch.h.
28606 (avr-mcus): No more depend on avr-tables.opt.
28607 (avr-tables.opt): Remove rule.
28608 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
28610 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28612 * c-family/c.opt (fchkp-use-wrappers): New.
28613 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
28614 (chkp_wrap_function): New.
28615 (chkp_build_instrumented_fndecl): Support wrapped
28617 * doc/invoke.texi (-fcheck-pointer-bounds): New.
28618 (-fchkp-check-incomplete-type): New.
28619 (-fchkp-first-field-has-own-bounds): New.
28620 (-fchkp-narrow-bounds): New.
28621 (-fchkp-narrow-to-innermost-array): New.
28622 (-fchkp-optimize): New.
28623 (-fchkp-use-fast-string-functions): New.
28624 (-fchkp-use-nochk-string-functions): New.
28625 (-fchkp-use-static-bounds): New.
28626 (-fchkp-use-static-const-bounds): New.
28627 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
28628 (-fchkp-check-read): New.
28629 (-fchkp-check-write): New.
28630 (-fchkp-store-bounds): New.
28631 (-fchkp-instrument-calls): New.
28632 (-fchkp-instrument-marked-only): New.
28633 (-fchkp-use-wrappers): New.
28634 (-static-libmpx): New.
28635 (-static-libmpxwrappers): New.
28637 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28639 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
28640 (CHKP_SPEC): Add wrappers library.
28641 * c-family/c.opt (static-libmpxwrappers): New.
28643 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28645 * config/i386/linux-common.h (LIBMPX_LIBS): New.
28646 (LIBMPX_SPEC): New.
28648 * gcc.c (CHKP_SPEC): New.
28649 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
28650 * c-family/c.opt (static-libmpx): New.
28652 2015-03-10 Richard Biener <rguenther@suse.de>
28654 PR middle-end/44563
28655 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
28657 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
28658 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
28659 (cgraph_add_edge_to_call_site_hash): Likewise.
28660 (cgraph_node::get_edge): Likewise.
28661 (cgraph_edge::set_call_stmt): Likewise.
28662 (cgraph_edge::remove_caller): Likewise.
28664 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
28666 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
28667 (callee_saved_gpr_regs_size): ... this.
28668 (callee_saved_regs_first_regno): Rename to ...
28669 (callee_saved_first_gpr_regno): ... this.
28670 (callee_saved_regs_last_regno) Rename to ...
28671 (callee_saved_last_gpr_regno): ... this.
28672 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
28674 (nds32_initial_elimination_offset): Likewise.
28675 (nds32_expand_prologue): Likewise.
28676 (nds32_expand_epilogue): Likewise.
28677 (nds32_expand_prologue_v3push): Likewise.
28678 (nds32_expand_epilogue_v3pop): Likewise.
28679 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
28680 Adjust renamed variables.
28681 (nds32_output_stack_pop): Likewise.
28683 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
28685 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
28688 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28690 PR rtl-optimization/65321
28691 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
28693 * var-tracking.c (use_narrower_mode): Likewise.
28695 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28697 PR tree-optimization/65355
28698 * varasm.c (notice_global_symbol): Do not produce RTL.
28699 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
28701 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
28702 check for section anchors.
28704 2015-03-10 Alan Modra <amodra@gmail.com>
28707 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
28708 to be single-arch by default. Set cpu_is_64bit for powerpc64
28709 given --with-cpu=native.
28710 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
28711 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
28713 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
28714 rs6000_isa_flags rather than TARGET_64BIT.
28716 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
28717 Kaz Kojima <kkojima@gcc.gnu.org>
28719 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
28721 2015-03-09 Jakub Jelinek <jakub@redhat.com>
28724 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
28725 on a TREE_BINFO, instead use BINFO_TYPE.
28727 2015-03-09 Richard Biener <rguenther@suse.de>
28729 PR middle-end/65270
28730 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
28731 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
28732 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
28733 of that. When comparing dereferences compare alignment.
28734 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
28736 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
28738 * ipa-inline-analysis.c (check_callers): Check
28739 node->can_remove_if_no_direct_calls_and_refs_p.
28740 (growth_likely_positive): Reorganize to call
28741 can_remove_if_no_direct_calls_p later.
28742 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
28743 will_be_removed_from_program_if_no_direct_calls_p): Add
28744 will_inline parameter.
28745 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
28746 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
28747 Handle inliner case correctly.
28749 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
28751 PR tree-optimization/63743
28752 * cfgexpand.c (reorder_operands): Also reorder if only second operand
28753 had its definition forwarded by TER.
28755 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
28758 * ipa-utils.h (types_odr_comparable): Add strict argument.
28759 * ipa-devirt.c: Fix whitespace;
28760 (odr_hasher): Remove.
28761 (odr_name_hasher, odr_vtable_hasher): New hashers.
28762 (can_be_name_hashed_p): New predicate.
28763 (hash_type_name): remove.
28764 (hash_odr_name): New.
28765 (odr_name_hasher::hash): new.
28766 (can_be_vtable_hashed_p): New.
28767 (hash_odr_vtable): New.
28768 (odr_vtable_hasher::hash): New.
28769 (types_same_for_odr): Add strict parameter.
28770 (types_odr_comparable): Likewise.
28771 (odr_name_hasher::equal): New.
28772 (odr_vtable_hasher::equal): New.
28773 (odr_name_hasher::remove): New.
28774 (odr_hash_type): Change to hash_table<odr_name_hasher>.
28775 (odr_vtable_hash_type): New.
28776 (odr_vtable_hash): New.
28777 (odr_subtypes_equivalent_p): Do strict comparsion.
28778 (add_type_duplicate): Merge type names; cleanup; avoid type
28780 (register_odr_type): Initialize vtable hash.
28781 (build_type_inheritance_graph): Likewise
28782 (get_odr_type): Reorg to use two hashes.
28783 (dump_possible_polymorphic_call_targets): Move sanity check after debug
28785 (ipa_devirt): Dump type_inheritance_graph.
28786 (types_same_for_odr): Add strict mode.
28788 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28791 * cgraph.h (symtab_node): Add definition_alignment,
28792 can_increase_alignment_p and increase_alignment.
28793 * symtab.c (symtab_node::can_increase_alignment_p,
28794 increase_alignment_1, symtab_node::increase_alignment,
28795 symtab_node::definition_alignment): New.
28796 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
28797 can_increase_alignment_p.
28798 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
28799 * tree-vect-stmts.c (ensure_base_align): Likewise.
28800 * varasm.c (function_section_1): Use definition_alignment.
28801 (assemble_start_function): Likewise.
28802 (emit_local): likewise.
28803 (build_constant_desc): Likewsie.
28804 (output_constant_def_contents): Likewise.
28805 (place_block_symbol): Likewise.
28806 (output_object_block): Likewise.
28808 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28811 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
28812 when outputting debug.
28814 2015-03-07 Marek Polacek <polacek@redhat.com>
28815 Martin Uecker <uecker@eecs.berkeley.edu>
28818 * doc/invoke.texi: Update description of -fsanitize=bounds.
28820 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
28822 * tree-ssa-phiopt.c (neg_replacement): Remove.
28823 (tree_ssa_phiopt_worker): Remove negate optimization.
28825 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28828 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
28830 2015-03-06 Richard Biener <rguenther@suse.de>
28832 PR middle-end/64928
28833 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
28834 and liveout_obstack members.
28835 (calculate_live_on_exit): Remove.
28836 (calculate_live_ranges): Change declaration.
28837 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
28838 (new_tree_live_info): Adjust.
28839 (calculate_live_ranges): Delete livein when not wanted.
28840 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
28841 Deal with partly deleted live info.
28842 (loe_visit_block): Remove temporary bitmap by using
28843 bitmap_ior_and_compl_into.
28844 (live_worklist): Adjust accordingly.
28845 (calculate_live_on_exit): Make static.
28846 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
28847 we do not need livein.
28849 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
28851 * real.c (real_from_string): Fix typo in assertion.
28853 2015-03-06 Alex Velenko <alex.velenko@arm.com>
28855 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
28858 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28860 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
28862 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
28865 * lra-assigns.c (find_hard_regno_for): Rename to
28866 find_hard_regno_for_1. Add a new parameter.
28867 (find_hard_regno_for): New function using find_hard_regno_for_1.
28869 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
28871 PR rtl-optimization/65067
28872 * expmed.c (store_bit_field, extract_bit_field): Reworked the
28873 strict volatile bitfield handling.
28875 2015-03-05 Martin Liska <mliska@suse.cz>
28878 * ipa-icf.c (sem_variable::equals): Compare variables types.
28880 2015-03-05 Richard Henderson <rth@redhat.com>
28883 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
28884 correctly check weak symbol binding.
28886 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
28888 PR middle-end/65315
28889 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
28892 2015-03-05 Martin Liska <mliska@suse.cz>
28894 * ipa-inline.c (inline_small_functions): Set default value to
28895 prevent warning during bootstrap.
28896 * tree.h: Add pragma guard that ignores false positives during
28899 2015-03-05 Richard Biener <rguenther@suse.de>
28901 PR tree-optimization/65310
28902 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
28903 Properly preserve alignment of the base of the access.
28905 2015-03-05 Richard Biener <rguenther@suse.de>
28908 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
28909 Compare dependence info.
28911 2015-03-05 Richard Biener <rguenther@suse.de>
28913 PR middle-end/65233
28914 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
28916 (walk_ssa_copies): Revert last chage. Instead do not walk
28917 SSA names registered for SSA update.
28919 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28922 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
28923 vtable references for their containing type.
28924 (sem_function::equals_wpa): Compare TYPE_RESTRICT
28925 and type attributes.
28927 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
28929 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
28930 before negating it.
28931 * stor-layout.c (finalize_record_size): Revert latest change.
28933 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
28935 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
28937 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28939 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
28940 for correct comdat handling.
28941 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
28943 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
28944 (used_from_object_file_p_worker): Remove.
28945 (cgraph_node::only_called_directly_or_alised): Add
28946 used_from_object_file_p.
28947 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
28948 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
28949 can_remove_if_no_direct_calls_and_refs_p.
28951 2015-03-04 Nick Clifton <nickc@redhat.com>
28953 * config/rl78/rl78.h (enum reg_class): Remove real registers from
28954 General register class.
28955 * config/rl78/rl78-real.md: Replace general register constraints
28956 with real+virtual register constraints.
28958 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28960 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
28961 from checking for -mhtm option.
28963 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28965 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
28966 (struct ipa_sra_check_caller_data): Add has_thunk field.
28967 (ipa_sra_check_caller): Check for thunk.
28968 (ipa_sra_preliminary_function_checks): Give up on function with
28970 (ipa_early_sra): Use call_for_symbol_and_aliases.
28972 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
28975 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
28976 called for __stack_chk_guard symbol.
28978 2015-03-03 DJ Delorie <dj@redhat.com>
28980 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
28982 (*addhi3_real): Likewise.
28983 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
28984 pattern to match incrementing memory.
28985 * config/rl78/predicates.md (rl78_1_2_operand): New.
28986 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
28987 it's the same and only mem.
28988 (rl78_alloc_physical_registers_op2): If there's effectively only
28989 one MEM, transcode it into HL.
28990 (rl78_far_p): Reject addresses that aren't legitimate.
28992 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
28994 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
28997 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
28999 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
29001 Implement call0 ABI for xtensa
29002 * config/xtensa/constraints.md ("a" constraint): Include stack
29003 pointer in case of call0 ABI.
29004 ("q" constraint): Make empty in case of call0 ABI.
29005 ("D" constraint): Include stack pointer in case of call0 ABI.
29006 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
29007 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
29009 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
29011 (xtensa_regno_to_class): Make it a local variable in the
29012 function xtensa_regno_to_class.
29013 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
29014 macro, function prototype and implementation.
29015 (reg_nonleaf_alloc_order): Make it a local variable in the
29016 function order_regs_for_local_alloc.
29017 (xtensa_conditional_register_usage): New function.
29018 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
29019 (xtensa_valid_move): Allow direct moves to stack pointer
29020 register in call0 ABI.
29021 (xtensa_setup_frame_addresses): Only spill register windows in
29023 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
29024 call0 ABI respectively.
29025 (xtensa_function_arg_1): Only mark a7 register for copying in
29027 (xtensa_call_save_reg): New function.
29028 (compute_frame_size): Add space for callee saved register
29029 storage to the frame size in call0 ABI.
29030 (xtensa_expand_prologue): Generate code to set up stack frame
29031 and save callee-saved registers in call0 ABI.
29032 (xtensa_expand_epilogue): New function.
29033 (xtensa_set_return_address): New function.
29034 (xtensa_return_addr): Calculate return address in call0 ABI.
29035 (xtensa_builtin_saveregs): Only mark a7 register for copying and
29036 emit copying code in windowed ABI.
29037 (order_regs_for_local_alloc): Add preferred register allocation
29038 order for non-leaf function in call0 ABI.
29039 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
29040 (xtensa_asm_trampoline_template): Add trampoline generation for
29042 (xtensa_trampoline_init): Add trampoline initialization for
29044 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
29046 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
29047 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
29048 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
29049 ABI call-used registers.
29050 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
29051 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
29053 (REG_CLASS_CONTENTS): Include all registers into the preferred
29054 reload registers set, adjust the set in the
29055 xtensa_conditional_register_usage.
29056 (xtensa_regno_to_class): Drop variable declaration.
29057 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
29059 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
29061 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
29062 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
29063 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
29064 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
29065 location in call0 ABI.
29066 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
29067 stack adjustment size when handling exception.
29068 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
29069 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
29071 ("return" pattern): Generate ret.n/ret in call0 ABI.
29072 ("epilogue" pattern): Expand epilogue.
29073 ("nonlocal_goto" pattern): Use default in call0 ABI.
29074 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
29075 emit eh_set_a0_* depending on ABI.
29076 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
29077 ("eh_set_a0_call0", "blockage"): New patterns.
29079 2015-03-03 Martin Liska <mliska@suse.cz>
29082 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
29084 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29087 * config/rs6000/rs6000-tables.opt: Regenerate table.
29089 2015-03-03 Renlin Li <renlin.li@arm.com>
29091 * doc/md.texi (@item ^): Change ? into ^.
29093 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
29095 * doc/tm.texi: Regenerated.
29097 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
29099 * builtins.c (expand_builtin_return_addr): Add
29100 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
29101 surrounding #ifdef.
29102 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
29104 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
29106 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
29108 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
29111 2015-03-03 Martin Jambor <mjambor@suse.cz>
29112 Eric Botcazou <ebotcazou@adacore.com>
29114 * tree-sra.c (ipa_sra_check_caller_data): New type.
29115 (has_caller_p): Removed.
29116 (ipa_sra_check_caller): New function.
29117 (ipa_sra_preliminary_function_checks): Use it.
29119 2015-03-03 Martin Liska <mliska@suse.cz>
29121 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
29122 instead of if branch.
29124 2015-03-03 Martin Liska <mliska@suse.cz>
29127 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
29129 2015-03-23 Jeff Law <law@redhat.com>
29131 PR tree-optimization/65241
29132 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
29133 hash table if INSERT is true.
29135 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
29138 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
29140 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
29143 * config/avr/avr.c (context.h, tree-pass.h): Include them.
29144 (avr_pass_data_recompute_notes): New static variable.
29145 (avr_pass_recompute_notes): New class.
29146 (avr_register_passes): New static function.
29147 (avr_option_override): Call it.
29149 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
29151 Fix various problems with specs file generation.
29154 * config.gcc (extra_gcc_objs) [avr]: Remove.
29155 * config/avr/driver-avr.c: Remove file.
29156 * config/avr/t-avr (driver-avr.o): Remove rule.
29157 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
29158 INCLUDES to build. Depend on TM_H.
29159 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
29160 build warnings. Fix non-matching types and non-existing %-codes.
29162 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
29163 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
29164 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
29165 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
29166 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
29167 (LIBGCC_SPEC): Remove definitions.
29169 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
29171 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
29172 to create a register in testing mode.
29174 2015-03-03 Martin Liska <mliska@suse.cz>
29175 Jan Hubicka <hubicka@ucw.cz>
29178 * cgraph.c (cgraph_node::has_thunk_p): New function.
29179 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
29180 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
29181 (sem_function::merge): Assert is changed.
29183 2015-03-03 Martin Liska <mliska@suse.cz>
29184 Martin Jambor <mjambor@suse.cz>
29187 * ipa-icf.c (sem_item_optimizer::execute): Change function
29188 return value to boolean.
29189 (sem_item_optimizer::merge_classes): Likewise.
29190 (ipa_icf_driver): Return TODO_remove_functions in case there's
29191 a merge operation processed.
29192 * ipa-icf.h: Change function return value to boolean.
29194 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29197 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
29198 processor type for 64-bit little endian PowerPC.
29200 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
29201 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
29202 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
29203 printing built-in mask so it does not pass NULL pointers.
29205 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
29208 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
29211 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
29212 !ISA_HAS_FP_CONDMOVE.
29214 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
29216 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
29219 2015-03-02 Ulrich Drepper <drepper@gmail.com>
29221 * doc/invoke.texi (Options for Code Generation Conventions):
29222 Fix URL of DSO paper.
29224 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
29227 * ipa-inline.c (check_callers): Looks for recursion.
29228 (inline_to_all_callers): Give up on uninlinable or recursive edges.
29229 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
29230 summary of inline clones.
29231 (do_estimate_growth_1): Fix recursion check.
29233 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
29236 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
29239 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
29240 Aldy Hernandez <aldyh@redhat.com>
29243 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
29244 when checking TYPE_BINFO.
29246 2015-03-02 Richard Biener <rguenther@suse.de>
29249 * ipa-icf-gimple.c: Include builtins.h.
29250 (func_checker::compare_memory_operand): Compare base alignment.
29252 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
29255 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
29256 are never passed by reference.
29258 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
29261 * tree-chkp.c (chkp_check_lower): Don't check against
29262 zero bounds for already instrumented functions.
29263 (chkp_check_upper): Likewise.
29264 (chkp_fini): Clean pass local data to avoid wrong reusage.
29266 2015-02-28 Martin Liska <mliska@suse.cz>
29267 Jan Hubicka <hubicka@ucw.cz>
29269 * ipa-icf.c (sem_variable::equals): Improve debug output;
29270 get variable constructor.
29271 (sem_variable::parse): Do not filter out too early; give up on
29272 volatile and register vars.
29273 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
29275 * ipa-icf.h (sem_variable::init): Do not set ctor.
29276 (sem_variable::ctor): Remove.
29278 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
29280 PR middle-end/65233
29281 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
29283 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29285 * ipa-icf.c: Include stor-layout.h
29286 (sem_function::compare_cgraph_references): Rename to ...
29287 (sem_item::compare_cgraph_references): ... this one.
29288 (sem_variable::equals_wpa): New function
29289 (sem_variable::equals): Do not check stuff already verified by
29291 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
29292 * ipa-icf.h (sem_item): Add compare_cgraph_references.
29293 (sem_function): Remove compare_cgraph_references.
29294 (sem_variable): Turns equals_wpa into non-inline.
29296 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29298 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
29299 (sem_item::add_expr): New function.
29300 (sem_function::hash_stmt): Handle operands of most statements.
29301 (sem_variable::get_hash): Hash the actual constructor.
29302 * ipa-icf.h (sem_item): Add add_expr.
29303 (sem_function): Update prototype of hash_stmt
29305 2015-02-28 Martin Liska <mliska@suse.cz>
29306 Jan Hubicka <hubicka@ucw.cz>
29309 * ipa-icf-gimple.c (func_checker::compare_function_decl):
29311 (func_checker::compare_variable_decl): Skip symtab vars.
29312 (func_checker::compare_cst_or_decl): Update.
29313 * ipa-icf.c (sem_function::parse): Do not consider aliases.
29314 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
29315 use correct symtab predicates.
29316 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
29317 (sem_variable::parse): Update comment.
29318 (sem_item_optimizer::build_graph): Consider ultimate aliases
29321 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29323 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
29326 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29328 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
29329 (sem_variable::merge) Likewise.
29331 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29333 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
29334 target; also match flag_ipa_devirt.
29336 2015-03-01 Martin Liska <mliska@suse.cz>
29337 Jan Hubicka <hubicka@ucw.cz>
29339 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
29340 Validate variable alignment.
29341 * ipa-icf.c (sem_function::equals_private): Be more precise
29342 about non-common function attributes.
29343 (sem_variable::equals): Likewise.
29345 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29348 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
29349 across COMDAT group boundary.
29351 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29354 * ipa-icf.c (clear_decl_rtl): New function.
29355 (sem_function::merge): Clear RTL before forming alias.
29356 (sem_variable::merge): Clear RTL before forming alias.
29358 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29361 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
29363 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
29365 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
29368 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29370 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
29371 a typo in the description.
29373 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29376 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
29377 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
29378 * lra-constraints.c: Include "params.h".
29379 (EBB_PROBABILITY_CUTOFF): Use
29380 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
29381 (lra_inheritance): Use '<' instead of '<=' for
29382 EBB_PROBABILITY_CUTOFF.
29383 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
29386 2015-02-27 Martin Liska <mliska@suse.cz>
29388 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
29389 vector length condition.
29391 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
29393 * doc/extend.texi (x86 transactional memory intrinsics):
29394 Reorganize discussion of _xbegin. Clarify that the return
29395 value is a bit mask. Expand example and move to end of section.
29397 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29398 Aldy Hernandez <aldyh@redhat.com>
29400 PR rtl-optimization/65220
29401 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
29403 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29406 * lra-remat.c (update_scratch_ops): New.
29407 (do_remat): Call it.
29408 * lra.c (lra_register_new_scratch_op): New. Take code from ...
29409 (remove_scratches): ... here.
29410 * lra-int.h (lra_register_new_scratch_op): New prototype.
29412 2015-02-27 Marek Polacek <polacek@redhat.com>
29415 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
29416 -Wformat-signedness anymore.
29418 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29420 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
29422 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
29424 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29426 * config/s390/s390.c (enum s390_builtin):
29427 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
29428 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
29429 (s390_init_builtins): Generate new builtin functions.
29430 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
29431 (s390_sfpc, s390_efpc): New pattern definitions.
29433 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29435 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
29436 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
29437 (s390_builtin_decls): New array.
29438 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
29439 (s390_builtin_decl): New function.
29440 (TARGET_BUILTIN_DECL): Define macro.
29442 2015-02-27 Richard Biener <rguenther@suse.de>
29444 PR middle-end/63175
29445 * builtins.c (get_object_alignment_2): Make sure to re-apply
29446 the ANDed mask after recursing to its operand gets us a new
29447 misalignment bit position.
29449 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
29450 Martin Liska <mliska@suse.cz>
29453 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
29454 Use address_matters_p.
29455 (redirect_all_callers, set_addressable): New functions.
29456 (sem_function::merge): Reorganize and fix merging issues.
29457 (sem_variable::merge): Likewise.
29458 (sem_variable::compare_sections): Remove.
29459 * common.opt (fmerge-all-constants, fmerge-constants): Remove
29461 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
29463 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
29465 (address_matters_1): New function.
29466 (symtab_node::address_matters_p): New function.
29467 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
29468 check for merged flag.
29469 * cgraph.h (address_matters_p): Declare.
29470 (symtab_node::address_taken_from_non_vtable_p): Remove.
29471 (symtab_node::address_can_be_compared_p): New method.
29472 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
29473 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
29475 (comdat_can_be_unshared_p_1) Use address_matters_p.
29476 (update_vtable_references): Fix formating.
29477 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
29478 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
29479 * cgraphclones.c: Preserve merged and icf_merged flags.
29481 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
29483 * doc/extend.texi (Function Attributes): Fix spelling and typos.
29484 (Label Attributes): Likewise.
29485 (Cilk Plus Builtins): Likewise.
29486 (ARC SIMD Built-in Functions): Likewise.
29487 (ARM C Language Extensions (ACLE)): Likewise.
29488 (PowerPC Built-in Functions): Likewise.
29489 (PowerPC Hardware Transactional Memory Built-in Functions):
29492 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29494 PR tree-optimization/65216
29495 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
29496 new stmt and new SSA_NAME for lhs whenever the arguments have
29497 changed and weren't just swapped. Fix comment typo.
29499 PR tree-optimization/65215
29500 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
29501 for PDP endian targets.
29502 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
29503 Fix up formatting issues.
29504 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
29505 size is smaller than the original, adjust MEM_REF offset by the
29506 difference of sizes. Use is_gimple_mem_ref_addr instead of
29507 is_gimple_min_invariant test to avoid adding address temporaries.
29509 2015-02-26 Martin Liska <mliska@suse.cz>
29510 Jan Hubicka <hubicka@ucw.cz>
29513 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
29514 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
29515 (sem_item_optimizer::process_cong_reduction): Include division by
29516 sensitive references.
29517 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
29518 * ipa-ref.c (ipa_ref::address_matters_p): New function.
29519 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
29521 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
29524 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
29526 * config/avr/avr.c: Same.
29527 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
29528 Refuse any constant address not in 0..0xbf.
29529 * config/avr/avr.md (*mov<mode>, *movsf): Remove
29530 tiny_valid_direct_memory_access_range from insn conditions.
29531 (mov<mode>): Don't special-case expansion of avrtiny addresses.
29533 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
29536 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
29537 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
29538 * config/sh/predicates.md (const_logical_operand): New predicate.
29539 * config/sh/sh.md: Add new peephole2 patterns.
29541 2015-02-26 Marek Polacek <polacek@redhat.com>
29544 * ipa-inline.c (early_inliner): Recompute inline parameters.
29546 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29549 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
29550 instructions with TImode operands are included in the analysis.
29552 2015-02-26 Sebastian Pop <s.pop@samsung.com>
29554 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
29555 of an EDGE_FSM_THREAD.
29557 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
29559 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
29561 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
29564 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
29566 2015-02-26 Sebastian Pop <s.pop@samsung.com>
29568 PR tree-optimization/65048
29569 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
29570 (thread_through_all_blocks): Call valid_jump_thread_path.
29571 Remove invalid FSM jump-thread paths.
29573 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29575 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
29576 (ipa_write_optimization_summaries): Likewise.
29577 * tree-streamer.h: Include data-streamer.h.
29578 (streamer_mode_table): Declare extern variable.
29579 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
29580 * lto-streamer-out.c (lto_output_init_mode_table,
29581 lto_write_mode_table): New functions.
29582 (produce_asm_for_decls): Call lto_write_mode_table when streaming
29584 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
29585 (lto_create_simple_input_block): Add mode_table argument to the
29586 lto_input_block constructors.
29587 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
29589 * data-streamer-in.c (string_for_index): Likewise.
29590 * ipa-inline-analysis.c (inline_read_section): Likewise.
29591 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
29592 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29593 * lto-streamer-in.c (lto_read_body_or_constructor,
29594 lto_input_toplevel_asms): Likewise.
29595 (lto_input_mode_table): New function.
29596 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
29597 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
29598 Use bp_pack_machine_mode.
29599 * real.h (struct real_format): Add name field.
29600 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
29601 (class lto_input_block): Add mode_table member.
29602 (lto_input_block::lto_input_block): Add mode_table_ argument,
29603 initialize mode_table.
29604 (struct lto_file_decl_data): Add mode_table field.
29605 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
29606 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
29607 unpack_ts_decl_common_value_fields,
29608 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
29609 * tree-streamer.c (streamer_mode_table): New variable.
29610 * real.c (ieee_single_format, mips_single_format,
29611 motorola_single_format, spu_single_format, ieee_double_format,
29612 mips_double_format, motorola_double_format,
29613 ieee_extended_motorola_format, ieee_extended_intel_96_format,
29614 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
29615 ibm_extended_format, mips_extended_format, ieee_quad_format,
29616 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
29617 decimal_single_format, decimal_double_format, decimal_quad_format,
29618 ieee_half_format, arm_half_format, real_internal_format): Add name
29620 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
29622 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
29625 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
29626 reordering for selective scheduling.
29628 2015-02-26 Terry Guo <terry.guo@arm.com>
29630 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
29631 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
29632 (arm_arch_no_volatile_ce): Declare new global variable.
29633 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
29634 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
29635 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
29636 (TARGET_NO_VOLATILE_CE): New macro.
29637 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
29638 volatile memory access in IT block
29640 2015-02-25 Kai Tietz <ktietz@redhat.com>
29642 PR tree-optimization/61917
29643 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
29644 that reduc_def_stmt is null.
29646 2015-02-25 Martin Liska <mliska@suse.cz>
29648 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
29649 hard register variables.
29651 2015-02-25 Kai Tietz <ktietz@redhat.com>
29654 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
29655 (symtab::noninterposable_alias): Likewise.
29657 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
29660 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
29662 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
29664 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
29667 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
29668 as split condition; force split via '#' in output pattern.
29670 2015-02-25 Richard Biener <rguenther@suse.de>
29671 Kai Tietz <ktietz@redhat.com>
29673 PR tree-optimization/61917
29674 * tree-vect-loop.c (vectorizable_reduction): Allow
29675 vect_internal_def without reduction to exit graceful.
29677 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
29680 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
29681 only with NONDEBUG_INSN_P.
29683 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
29685 Use variadic macros with avr-log.c.
29687 * config/avr/avr-protos.h (avr_vdump): New prototype.
29688 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
29689 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
29690 * config/avr/avr-log.c: Adjust comments.
29691 (avr_vdump): New function.
29692 (avr_vadump): Pass caller as 2nd argument instead of format string.
29693 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
29694 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
29696 2015-02-25 Jakub Jelinek <jakub@redhat.com>
29699 * target.def (target_option_stream_in): New target hook.
29700 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
29701 targetm.target_option.post_stream_in if non-NULL.
29702 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
29703 * doc/tm.texi: Updated.
29704 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
29706 (TARGET_OPTION_POST_STREAM_IN): Redefine.
29708 2015-02-24 Jeff Law <law@redhat.com>
29711 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
29712 of operand 0 and operand 2.
29713 (zero_cost_loop_end, loop_end): Similarly.
29715 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
29717 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
29720 2015-02-24 DJ Delorie <dj@redhat.com>
29722 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
29723 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
29724 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
29725 instead of hardcoding SImode.
29727 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
29729 * omp-low.c (create_omp_child_function): Tag entrypoint
29730 functions with a special attribute.
29732 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29735 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
29737 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
29739 PR rtl-optimization/65123
29740 * lra-remat.c (operand_to_remat): Check hard regs in insn
29743 2015-02-24 Nick Clifton <nickc@redhat.com>
29745 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
29748 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
29751 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
29752 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
29753 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
29754 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
29755 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
29756 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
29757 (BUILT_IN_GOACC_PARALLEL): Specify as
29758 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
29759 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
29760 * builtin-types.def
29761 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
29762 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
29763 Remove function types.
29764 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
29765 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
29766 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
29767 New function types.
29769 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
29771 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
29773 2015-02-24 Jakub Jelinek <jakub@redhat.com>
29775 PR tree-optimization/65170
29776 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
29777 if val[1] < 0, clear also val[2] and return 3.
29779 2015-02-24 Alan Modra <amodra@gmail.com>
29782 * config/rs6000/rs6000.c (get_memref_parts): Only return true
29783 when *base is a reg. Handle nested plus addresses. Simplify
29786 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
29788 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
29789 use natural alignment when optimizing for size.
29791 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
29794 * config/sh/sh.md (movsicc_true+3): Remove peephole.
29795 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
29796 * config/sh/sh.c (replace_n_hard_rtx): Remove.
29798 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
29801 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
29802 too big for a wide_int. Implement missing wrapping operation.
29804 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
29807 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
29808 instead of const_int 4294901760.
29810 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
29812 * config/avr/t-avr: Fix typo in comment.
29814 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
29816 * doc/rtl.texi (fma): Clarify documentation.
29818 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
29821 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
29822 over input_location.
29824 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29826 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
29827 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
29828 restrict alignments to absolute_biggest_alignment.
29829 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
29831 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
29832 * doc/tm.texi: Regenerate.
29833 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
29835 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
29838 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
29840 2015-02-20 Richard Biener <rguenther@suse.de>
29842 PR tree-optimization/65136
29843 * tree-ssa-propagate.c: Include cfgloop.h.
29844 (replace_phi_args_in): Avoid replacing loop latch edge PHI
29845 arguments with constants.
29847 2015-02-20 Jakub Jelinek <jakub@redhat.com>
29848 Martin Liska <mliska@suse.cz>
29851 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
29852 don't try to create_thunk if stdarg_p. If
29853 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
29854 redirect_callers if possible.
29855 (sem_item_optimizer::execute): Call unregister_hooks here...
29856 (ipa_icf_driver): ... instead of here.
29858 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29860 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
29861 Mark operand 0 as earlyclobber in 2nd alternative.
29862 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
29863 Write negated shift amount into QI lowpart operand 0 and use it
29865 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
29867 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29869 * cgraph.h (clone_function_name_1): Declare.
29870 * cgraphclones.c (clone_function_name_1): New function.
29871 (clone_function_name): Use it.
29872 * lto-partition.c: Include "stringpool.h".
29873 (must_not_rename, maybe_rewrite_identifier)
29874 (validize_symbol_for_target): New static functions.
29875 (privatize_symbol_name): Use must_not_rename.
29876 (promote_symbol): Call validize_symbol_for_target.
29877 (lto_promote_cross_file_statics): Likewise.
29878 (lto_promote_statics_nonwpa): Likewise.
29880 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
29883 * config/avr/avr.md (pushhi_insn): New insn.
29884 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
29886 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29887 Jakub Jelinek <jakub@redhat.com>
29889 * tree-streamer.c (preload_common_nodes): Don't preload
29890 TI_VA_LIST* for offloading.
29891 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
29894 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
29896 * config/pa/pa.c (pa_emit_move_sequence): Always force
29897 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
29900 * config/pa/pa.c (pa_reloc_rw_mask): New function.
29901 (TARGET_ASM_RELOC_RW_MASK): Define.
29902 (pa_cannot_force_const_mem): Revert previous change.
29904 2015-02-19 Martin Jambor <mjmabor@suse.cz>
29905 Jan Hubicka <hubicka@ucw.cz>
29908 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
29909 across jump functions.
29911 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
29913 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
29915 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
29917 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
29919 2015-02-19 Richard Henderson <rth@redhat.com>
29921 PR middle-end/65074
29922 * varasm.c (default_binds_local_p_2): Don't test node->definition;
29923 test DECL_EXTERNAL independent of symtab_node.
29925 2015-02-19 Jakub Jelinek <jakub@redhat.com>
29928 * varpool.c (varpool_node::get_constructor): Return early
29929 if this->lto_file_data is NULL.
29931 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29933 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
29934 (rank_for_schedule_debug): Update.
29935 (ready_sort): Make static. Move sorting logic to ...
29936 (ready_sort_debug, ready_sort_real): New static functions.
29937 (schedule_block): Sort both debug insns and real insns in preparation
29938 for ready list trimming. Improve debug output.
29939 * sched-int.h (ready_sort): Remove global declaration.
29941 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
29943 * ipa-icf.c (sem_function::equals_private): Adjust.
29944 (sem_function::bb_dict_test): Take a vec<int> * instead of
29946 * ipa-icf.h (bb_dict_test): Likewise.
29948 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29950 PR gcov-profile/64634
29951 * tree-eh.c (frob_into_branch_around): Fix up typos
29952 in function comment.
29953 (lower_catch): Put eh_seq resulting from EH lowering of
29954 the cleanup sequence after the cleanup rather than before it.
29956 2015-02-18 Tom de Vries <tom@codesourcery.com>
29958 * common.opt (fstdarg-opt): New option.
29959 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
29960 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
29961 (@item -fstdarg-opt): New item.
29963 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
29966 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
29967 for common symbols.
29969 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29971 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
29973 (ALL_HOST_OBJS): Add mkoffload.o.
29974 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
29976 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
29978 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
29979 (compare_virtual_tables): Be smarter about skipping typeinfos;
29980 do sane output on virtual table table mismatch.
29981 (warn_odr): Be ready for forward declarations of enums;
29982 output sane info on base mismatch and virtual table mismatch.
29983 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
29984 when only one type is polymorphic.
29985 (get_odr_type): Fix hashtable corruption.
29986 (dump_odr_type): Dump mangled names.
29988 2015-02-18 Richard Biener <rguenther@suse.de>
29990 PR tree-optimization/65063
29991 * tree-predcom.c (determine_unroll_factor): Return 1 if we
29992 have replaced looparound PHIs.
29994 2015-02-18 Martin Liska <mliska@suse.cz>
29996 * lto-streamer.c (lto_streamer_init): Encapsulate
29997 streamer_check_handled_ts_structures with checking macro.
29999 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30002 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
30003 section if !implicit_section.
30004 (cgraph_node::create_version_clone_with_body): Likewise.
30005 * trans-mem.c (ipa_tm_create_version): Likewise.
30007 2015-02-18 Richard Biener <rguenther@suse.de>
30009 PR tree-optimization/62217
30010 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
30013 2015-02-18 Marek Polacek <polacek@redhat.com>
30016 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
30017 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
30018 is in range [-16K, -1]. Don't issue run-time error if
30019 (ptr > ptr + offset).
30021 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
30023 * doc/install.texi (nvptx-*-none): New section.
30024 * doc/invoke.texi (Nvidia PTX Options): Likewise.
30025 * config/nvptx/nvptx.opt: Update.
30027 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
30028 (access_check): New functions, copied from
30029 config/i386/intelmic-mkoffload.c.
30030 (main): For non-installed testing, look in all COMPILER_PATHs for
30033 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
30035 2015-02-18 Andrew Pinski <apinski@cavium.com>
30036 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30038 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
30039 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
30041 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
30043 * ipa-visibility.c (function_and_variable_visibility): Only
30044 check locality if node is not already local.
30045 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30046 call_for_symbol_and_aliases instead of
30047 call_for_symbol_thunks_and_aliases.
30048 (ipa_inline): Likewise.
30049 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30050 first walk aliases.
30051 * ipa.c (symbol_table::remove_unreachable_nodes): Use
30052 call_for_symbol_and_aliases.
30053 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30054 (ipa_propagate_frequency_1): Use it; use opt_for_fn
30055 (ipa_propagate_frequency): Update.
30056 (ipa_profile): Add opt_for_fn gueards.
30058 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
30060 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
30061 * doc/invoke.texi (SH options): Document it.
30062 * config/sh/sh.c (sh_insn_length_adjustment): Check
30063 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
30065 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
30067 * common.opt (fipa-cp-alignment): New.
30068 * ipa-cp.c (ipcp_store_alignment_results): Check
30069 flag_ipa_cp_alignment.
30070 * opts.c (default_options_table): Enable -fipa-cp-alignment for
30072 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
30073 * doc/invoke.texi: Document -fipa-cp-alignment.
30075 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
30078 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
30079 to nil. Adjust comments.
30081 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
30083 * ipa-visibility.c (function_and_variable_visibility): Only
30084 check locality if node is not already local.
30085 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30086 call_for_symbol_and_aliases instead of
30087 call_for_symbol_thunks_and_aliases.
30088 (ipa_inline): Likewise.
30089 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30090 first walk aliases.
30091 * ipa.c (symbol_table::remove_unreachable_nodes): Use
30092 call_for_symbol_and_aliases.
30093 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30094 (ipa_propagate_frequency_1): Use it; use opt_for_fn
30095 (ipa_propagate_frequency): Update.
30096 (ipa_profile): Add opt_for_fn guards.
30098 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
30100 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
30101 skipping of "strange" tokens.
30103 2015-02-17 Jeff Law <law@redhat.com>
30105 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
30108 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
30110 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
30111 as forcing a HARD_DEP between instructions, thereby
30112 disallowing rewriting to break dependencies.
30114 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
30116 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
30117 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
30118 variables in boundary that have no inlitalizer encoded and are
30120 * varasm.c (default_binds_local_p_2): External definitions do not
30121 count as definitions here.
30123 2015-02-16 Jeff Law <law@redhat.com>
30125 PR tree-optimization/64823
30126 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
30128 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
30129 threading through blocks with PHIs, but no statements.
30130 (thread_through_normal_block): Distinguish between blocks where
30131 we did not process all the statements and blocks with no statements.
30133 2015-02-16 Jakub Jelinek <jakub@redhat.com>
30134 James Greenhalgh <james.greenhalgh@arm.com>
30137 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
30138 section if not linkonce. Fix up formatting.
30139 (cgraph_node::create_version_clone_with_body): Copy section.
30140 * trans-mem.c (ipa_tm_create_version): Likewise.
30142 2015-02-16 Richard Biener <rguenther@suse.de>
30144 PR tree-optimization/65077
30145 * tree-ssa-structalias.c (get_constraint_for_1): Handle
30146 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
30147 (find_func_aliases): Allow float values to carry pointers again.
30149 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30151 * doc/install.texi (Specific): Reorder targets list to put
30152 aarch64 in alphabetical order. Add a link to aarch64*-*-*
30155 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30156 David Edelsohn <dje.gcc@gmail.com>
30159 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
30160 mapping class to external variable or function reference.
30161 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
30164 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
30167 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
30168 ASM_WEAKEN_DECL if defined.
30170 2015-02-16 Richard Biener <rguenther@suse.de>
30173 * varasm.c (default_file_start): For LTO produced units
30174 emit <artificial> as file directive.
30176 2015-02-16 Richard Biener <rguenther@suse.de>
30178 PR tree-optimization/63593
30179 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
30180 stmts and releasing SSA names until...
30181 (execute_pred_commoning): ... after processing all chains.
30183 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
30186 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
30187 external functions.
30189 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
30191 * doc/bugreport.texi: Adjust section titles throughout the file
30192 to use "Title Case".
30193 * doc/extend.texi: Likewise.
30194 * doc/gcov.texi: Likewise.
30195 * doc/implement-c.texi: Likewise.
30196 * doc/implement-cxx.texi: Likewise.
30197 * doc/invoke.texi: Likewise.
30198 * doc/objc.texi: Likewise.
30199 * doc/standards.texi: Likewise.
30200 * doc/trouble.texi: Likewise.
30202 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
30204 * cgraph.h (symtab_node::has_aliases_p): Simplify.
30205 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
30206 * tree.c (lookup_binfo_at_offset): Make static.
30207 (get_binfo_at_offset): Do not shadow offset; add explanatory
30210 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
30212 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
30213 for all floading point loads and stores except those using a register
30215 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
30218 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
30220 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
30221 (do_estimate_growth_1): Record if any uninlinable edge was seen.
30222 (estimate_growth): Handle uninlinable edges correctly.
30223 (check_callers): New.
30224 (growth_likely_positive): Handle aliases correctly.
30226 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
30228 * ipa-chkp.c: Use iterate_direct_aliases.
30229 * symtab.c (resolution_used_from_other_file_p): Move inline.
30230 (symtab_node::create_reference): Fix formating.
30231 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
30232 (symtab_node::iterate_reference): Move inline.
30233 (symtab_node::iterate_referring): Move inline.
30234 (symtab_node::iterate_direct_aliases): Move inline.
30235 (symtab_node::used_from_object_file_p_worker): Inline into ...
30236 (symtab_node::used_from_object_file_p): ... this one; move inline.
30237 (symtab_node::call_for_symbol_and_aliases): Move inline;
30238 use iterate_direct_aliases.
30239 (symtab_node::call_for_symbol_and_aliases_1): New method.
30240 (cgraph_node::call_for_symbol_and_aliases): Move inline;
30241 use iterate_direct_aliases.
30242 (cgraph_node::call_for_symbol_and_aliases_1): New method.
30243 (varpool_node::call_for_node_and_aliases): Rename to ...
30244 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
30245 use iterate_direct_aliases.
30246 (varpool_node::call_for_symbol_and_aliases_1): New method.
30247 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
30248 (ipa_discover_readonly_nonaddressable_var): Update.
30249 * ipa-devirt.c: Fix formating.
30250 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
30252 (cgraph_node::call_for_symbol_and_aliases): Move inline.
30253 (cgraph_node::call_for_symbol_and_aliases_1): New function..
30254 * cgraph.h (used_from_object_file_p_worker): Remove.
30255 (resolution_used_from_other_file_p): Move inline.
30256 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
30257 (symtab_node::iterate_reference): Move inline.
30258 (symtab_node::iterate_referring): Move inline.
30259 (symtab_node::iterate_direct_aliases): Move inline.
30260 (symtab_node::used_from_object_file_p_worker): Inline into ...
30261 (symtab_node::used_from_object_file_p): Move inline.
30262 * tree-emutls.c (ipa_lower_emutls): Update.
30263 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
30264 (varpool_node::call_for_node_and_aliases): Remove.
30266 2015-02-14 Jakub Jelinek <jakub@redhat.com>
30268 PR tree-optimization/62209
30269 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
30270 op == range->exp, insert seq and gimplified code after labels
30271 instead of after the phi.
30273 2015-02-13 Jeff Law <law@redhat.com>
30276 Revert my change for tree-optimization/64823.
30278 2015-02-13 Jakub Jelinek <jakub@redhat.com>
30280 PR tree-optimization/65053
30281 * tree-ssa-phiopt.c (value_replacement): When moving assign before
30282 cond, either reset VR on lhs or set it to phi result VR.
30284 2015-02-13 Jeff Law <law@redhat.com>
30286 PR tree-optimization/64823
30287 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
30288 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
30289 threading through blocks with PHIs, but no statements.
30290 (thread_through_normal_block): Distinguish between blocks where
30291 we did not process all the statements and blocks with no statements.
30293 PR rtl-optimization/47477
30294 * match.pd (convert (plus/minus (convert @0) (convert @1): New
30295 simplifier to narrow arithmetic.
30297 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
30300 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
30301 polymorphic call info when type is not known to be preserved.
30303 2015-02-13 Maritn Jambor <mjambor@suse.cz>
30306 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
30307 (inline_call): Use it.
30309 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
30311 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
30312 GOMP_DEVICE_NVIDIA_PTX.
30314 2015-02-13 Jakub Jelinek <jakub@redhat.com>
30317 * stmt.c (emit_case_nodes): Use void_type_node instead of
30318 NULL_TREE as LABEL_DECL type.
30320 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
30322 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
30324 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
30325 symbolic references to data to be forced to constant memory on the
30328 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
30330 PR tree-optimization/65002
30331 * tree-cfg.c (pass_data_fixup_cfg): Don't update
30333 * tree-sra.c (some_callers_have_no_vuse_p): New.
30334 (ipa_early_sra): Reject functions whose callers
30335 assume function is read only.
30337 2015-02-13 Richard Biener <rguenther@suse.de>
30340 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
30341 for LTO produced CUs.
30343 2015-02-13 Bin Cheng <bin.cheng@arm.com>
30345 PR tree-optimization/64705
30346 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
30347 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
30348 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
30349 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
30350 expand_simple_operations.
30352 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
30353 Richard Henderson <rth@redhat.com>
30356 * cgraphunit.c (cgraph_node::finalize_function): Set definition
30357 before notice_global_symbol.
30358 (varpool_node::finalize_decl): Likewise.
30359 * varasm.c (default_binds_local_p_2): Rename from
30360 default_binds_local_p_1, add weak_dominate argument. Use direct
30361 returns instead of assigning to local variable. Unify varpool and
30362 cgraph paths via symtab_node. Reject undef weak variables before
30363 testing visibility. Reorder tests for simplicity.
30364 (default_binds_local_p): Use default_binds_local_p_2.
30365 (default_binds_local_p_1): Likewise.
30366 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
30368 (default_elf_asm_output_external): Emit visibility when specified.
30370 2015-02-13 Alan Modra <amodra@gmail.com>
30372 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
30373 code setting up r11 for out-of-line fp restore.
30375 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
30377 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
30378 (muser-mode): Likewise.
30380 2015-02-13 Alan Modra <amodra@gmail.com>
30382 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
30383 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
30385 2015-02-12 David Howells <dhowells@redhat.com>
30387 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
30389 * tree-ssa-uninit.c (dump_predicates): Likewise.
30390 * opts.c (print_filtered_help): Likewise.
30392 2015-02-12 Jakub Jelinek <jakub@redhat.com>
30394 * dwarf2out.c (output_die): Use "%s", name instead of name to
30395 avoid -Wformat-security warning.
30397 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
30398 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
30399 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
30400 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
30402 2015-02-12 Jason Merrill <jason@redhat.com>
30404 * common.opt (-flifetime-dse): New.
30406 2015-02-12 Jakub Jelinek <jakub@redhat.com>
30409 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
30411 PR tree-optimization/65014
30412 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
30413 use original second operand of arg0 or arg1 instead of
30414 that adjusted by STRIP_NOPS.
30416 2015-02-11 Jeff Law <law@redhat.com>
30419 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
30420 that needs to be queued, just queue it for a single cycle.
30422 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
30424 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
30425 bodies of thunks; comment on why.
30426 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
30427 symbols are extern.
30429 2015-02-11 Richard Henderson <rth@redhat.com>
30432 * tree-eh.c (mark_reachable_handlers): Mark source and destination
30433 regions of __builtin_eh_copy_values.
30435 2015-02-11 Jakub Jelinek <jakub@redhat.com>
30437 PR middle-end/65003
30438 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
30439 ultimate alias is MEM with SYMBOL_REF satisfying
30440 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
30441 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
30443 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
30445 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
30446 "diagnostic-core.h".
30447 (main): Initialize progname, and call diagnostic_initialize.
30449 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
30450 instead of __OPENMP_TARGET__.
30452 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
30453 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
30454 hard-coding PTX_ID.
30456 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
30458 * doc/sourcebuild.texi (pie_enabled): Document.
30460 2015-02-11 Martin Liska <mliska@suse.cz>
30463 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
30464 a return value for call to a function that is noreturn.
30466 2015-02-11 Richard Biener <rguenther@suse.de>
30469 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
30472 2015-02-11 Andrew Pinski <apinski@cavium.com>
30475 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
30476 Change the first argument type to size_type_node and add another
30478 (aarch64_simd_expand_builtin): Handle the new argument to
30479 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
30480 print an out when the first two arguments are not
30481 nonzero integer constants.
30482 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
30483 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
30485 2015-02-11 Jakub Jelinek <jakub@redhat.com>
30488 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
30489 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
30490 (ix86_set_current_function): Rewritten.
30491 (ix86_add_new_builtins): Temporarily clear current_target_pragma
30492 when creating builtin fndecls.
30494 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30497 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
30499 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
30500 have no comdat group.
30501 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
30502 (lto_output_varpool_node): Always output alias info.
30503 (output_refs): Output refs of boundary aliases, too.
30504 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
30505 (output_symtab): Output call eges in thunks in boundary.
30506 (get_alias_symbol): Remove.
30507 (input_node, input_varpool_node): Do not special case weakrefs.
30508 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
30509 alias and thunks targets in the boundary; do not take removed symbols
30510 from their comdat groups.
30511 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
30512 (cgraph_node::global_info): Remove.
30513 (cgraph_node::rtl_info): Look through aliases and thunks.
30514 * cgrpah.h (global_info): Remove.
30515 (non_local_p): Remove.
30517 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30518 Sandra Loosemore <sandra@codesourcery.com>
30520 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
30521 to inline asm. List dialects in proper order.
30523 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30524 Sandra Loosemore <sandra@codesourcery.com>
30526 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
30528 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30530 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
30531 modified) reference to Solaris.
30533 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
30535 * doc/extend.texi (Extended Asm): Fix typos.
30537 2015-02-10 Jakub Jelinek <jakub@redhat.com>
30540 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
30542 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
30545 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
30546 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
30547 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
30548 * config/sh/constraints.md (Ara, Add): New constraints.
30549 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
30551 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
30552 atomic_mem_operand_0. Don't use force_reg on the memory address.
30553 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
30554 Sra constraint. Convert to insn_and_split. Add workaround for
30556 (atomic_compare_and_swap<mode>_hard): Copy to
30557 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
30558 Use atomic_mem_operand_0 predicate.
30559 (atomic_compare_and_swap<mode>_soft_gusa,
30560 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
30561 AraAdd constraints.
30562 (atomic_compare_and_swap<mode>_soft_tcb,
30563 atomic_compare_and_swap<mode>_soft_imask,
30564 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
30565 atomic_mem_operand_0 predicate and SraSdd constraints.
30566 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
30568 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
30569 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
30570 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
30571 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
30572 force_reg on the memory address.
30573 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
30574 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
30575 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
30576 atomic_mem_operand_1 predicate and Sra constraint.
30577 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
30578 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
30579 Use atomic_mem_operand_1 predicate.
30580 (atomic_<fetchop_name><mode>_hard): Copy to
30581 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
30582 Use atomic_mem_operand_1 predicate.
30583 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
30584 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
30585 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
30586 insn_and_split. Use atomic_mem_operand_1 predicate.
30587 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
30588 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
30589 Use atomic_mem_operand_1 predicate.
30590 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
30591 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
30592 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
30593 in generated insn with original mem operand before emitting the insn.
30594 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
30595 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
30596 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
30597 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
30598 Use atomic_mem_operand_1 predicate and AraAdd constraints.
30599 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
30600 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
30601 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
30602 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
30603 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
30604 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
30605 atomic_not_fetch<mode>_soft_tcb,
30606 atomic_<fetchop_name>_fetch<mode>_soft_imask,
30607 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
30608 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
30609 Use atomic_mem_operand_1 predicate and SraSdd constraints.
30611 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
30613 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
30614 and 3 earlyclobber operands.
30616 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30618 * common.opt (fstack-reuse): Mark as optimization.
30620 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30623 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
30625 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
30627 PR tree-optimization/64326
30628 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
30630 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
30632 PR gcov-profile/61889
30633 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
30635 2015-02-10 Richard Biener <rguenther@suse.de>
30637 PR tree-optimization/64995
30638 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
30639 value we use is final.
30640 (visit_reference_op_store): Always valueize op.
30641 (visit_use): Properly valueize vuses.
30643 2015-02-10 Richard Biener <rguenther@suse.de>
30645 PR tree-optimization/64909
30646 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
30647 pass a scalar-stmt count estimate to the cost model.
30648 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
30650 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
30652 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
30653 enabled by default together with var-tracking.
30655 2015-02-10 Nick Clifton <nickc@redhat.com>
30657 * config/rl78/rl78.c: Remove DIV attribute code accidentally
30658 included in previous rl78 commit.
30660 2015-02-10 Richard Biener <rguenther@suse.de>
30662 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
30663 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
30664 return the bitpack.
30666 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
30668 PR gcov-profile/61889
30669 * config.in: regenerate.
30670 * configure.in: Likewise.
30671 * configure.ac: Check for ftw.h.
30672 * gcov-tool.c: Check for ftw.h before using nftw.
30674 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
30677 * ipa-visibility.c (update_visibility_by_resolution_info): Only
30678 assert when not in lto mode.
30680 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30682 * ira-color.c (setup_left_conflict_sizes_p): Simplify
30683 initialization/assignment of conflict_size.
30685 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
30688 * ipa-cp.c (gather_caller_stats): Skip thunks.
30689 (propagate_constants_topo): Skip aliases.
30691 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
30694 * config/sh/sh.c (sh_option_override): Don't change
30695 -freorder-blocks-and-partition to -freorder-blocks even when
30696 unwinding is enabled.
30697 (sh_can_follow_jump): Return false if the followee jump is
30698 a crossing jump when -freorder-blocks-and-partition is specified.
30699 * config/sh/sh.md (*jump_compact_crossing): New insn.
30701 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
30702 Kaz Kojima <kkojima@gcc.gnu.org>
30705 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
30706 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
30707 (sh_can_redirect_branch): Rename to ...
30708 (sh_can_follow_jump): ... this. Constify argument types.
30709 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
30710 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
30711 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
30712 * doc/tm.texi: Regenerate.
30714 2015-02-09 Jakub Jelinek <jakub@redhat.com>
30717 * builtins.c (expand_builtin): Call targetm.expand_builtin
30718 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
30720 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30723 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
30725 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30728 * ipa-icf.c (set_local): New function.
30729 (sem_function::merge): Use it.
30731 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30733 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
30734 (add_type_duplicate): Fix comparison of BINFOs.
30736 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30738 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
30739 on getting VOID pointer.
30741 2015-02-09 Jakub Jelinek <jakub@redhat.com>
30744 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
30747 2015-02-09 Richard Biener <rguenther@suse.de>
30749 * genmatch.c (replace_id): Copy expr_type.
30751 2015-02-09 Richard Biener <rguenther@suse.de>
30753 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
30754 (streamer_write_tree_bitfields): Declare.
30755 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
30756 properly unpack padding.
30757 (unpack_value_fields): Inline ...
30758 (streamer_read_tree_bitfields): ... here.
30759 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
30760 and properly add padding bits.
30761 (streamer_pack_tree_bitfields): Fold into ...
30762 (streamer_write_tree_bitfields): ... this new function,
30763 exposing the bitpack object.
30764 * lto-streamer-out.c (lto_write_tree_1): Call
30765 streamer_write_tree_bitfields.
30767 2015-02-09 Richard Biener <rguenther@suse.de>
30769 PR tree-optimization/54000
30770 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
30771 (struct ivopts_data): Add loop_loc member.
30772 (tree_ssa_iv_optimize_loop): Dump loop location.
30773 (create_new_ivs): Likewise, also dump number of IVs generated.
30775 2015-02-09 Martin Liska <mliska@suse.cz>
30777 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
30778 just if not yet registered.
30779 (ipa_icf_generate_summary): Register callgraph hooks.
30781 2015-02-08 Andrew Pinski <apinski@cavium.com>
30783 * config/aarch64/aarch64.c (gty_dummy): Delete.
30785 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30788 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
30789 (cgraph_node::local_p): Remove thunk related FIXME.
30791 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30794 * i386.c (ix86_function_regparm): Look through aliases to see if callee
30795 is local and optimized.
30796 (ix86_function_sseregparm): Likewise; also use target's SSE math
30797 settings; error out instead of silently generating wrong code
30799 (init_cumulative_args): Look through aliases.
30801 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30804 * ipa-split.c (execute_split_functions): Split if function has aliases.
30806 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30809 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
30810 aliases before trying to expand it.
30811 (cgraph_node::expand_thunk): Fix formating.
30813 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
30815 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
30816 (Using Assembly Language with C): Expand introduction.
30817 (Basic Asm): Copy-edit. Add more information about uses of
30819 (Extended Asm): Copy-edit. Document new escape syntax and
30821 (Global Reg Vars): Copy-edit.
30822 (Local Reg Vars): Likewise.
30824 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
30828 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
30829 (DBX_CONTIN_CHAR): Define.
30831 2015-02-06 Sebastian Pop <s.pop@samsung.com>
30832 Brian Rzycki <b.rzycki@samsung.com>
30834 PR tree-optimization/64878
30835 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
30836 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
30837 Stop recursion at loop phi nodes after having visited a loop phi node.
30839 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30841 * toplev.c (process_options): Change flag_ipa_ra before creating
30842 optimization_{default,current}_node.
30845 * cgraphunit.c (cgraph_node::expand_thunk): If
30846 restype is not is_gimple_reg_type nor the thunk_fndecl
30847 returns aggregate_value_p, set restmp to a temporary variable
30848 instead of resdecl.
30850 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
30852 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
30854 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30857 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
30858 add a general secondary reload handler for SDmode, unless we have
30859 both read/write support for SDmode.
30861 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30863 PR middle-end/64937
30864 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
30865 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
30866 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
30867 1 before, push it to abstract_vec.
30868 (dwarf2out_abstract_function): Adjust caller. Don't call
30869 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
30870 DECL_ABSTRACT_P flags for all abstract_vec elts.
30872 2015-02-06 Renlin Li <renlin.li@arm.com>
30874 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
30876 * tree-ssa.c (execute_update_addresses_taken): Likewise.
30878 2015-02-06 Jeff Law <law@redhat.com>
30881 * config/h8300/h8300.c (push): New argument "in_prologue".
30882 Pass "in_prologue" along to "F".
30883 (h8300_push_pop): Corresponding changes.
30884 (h8300_expand_prologue): Likewise.
30885 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
30887 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30889 PR rtl-optimization/64957
30891 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
30892 IOR rather than for AND.
30894 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
30897 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
30898 of shift-add and (add + shift) operations. Rename local variable.
30900 2015-02-05 Jeff Law <law@redhat.com>
30903 * config/h8300/constraints.md (U): Correctly dectect
30904 "eightbit_data" memory addresses.
30905 * config/h8300/h8300.c (eightbit_constant_address_p): Also
30906 handle (const (plus (symbol_ref (x)))) where x is declared
30907 as an 8-bit data memory address.
30908 * config/h8300/h8300.md (call, call_value): Correctly detect
30909 "funcvec" functions.
30912 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
30913 24 to 28 bits for the H8/300.
30915 2015-02-06 Alan Modra <amodra@gmail.com>
30918 * config/rs6000/rs6000.c (chain_already_loaded): New function.
30919 (rs6000_call_aix): Use it.
30921 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
30923 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
30926 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
30928 * config/h8300/constraints.md ("U" constraint): Use strict
30929 variant of REG_OK_FOR_BASE_P after reload has started.
30931 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
30933 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
30934 define to zero if !TARGET_NEON.
30935 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
30937 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30938 Trevor Saunders <tsaunders@mozilla.com>
30941 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
30943 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30946 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
30947 when removing varpool nodes.
30949 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30952 * varpool.c (varpool_node::remove): Fix order of variables.
30954 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30957 * ipa-inline.c (inline_small_functions): Fix ordering issue between
30958 speculation resolution and key updates.
30960 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30962 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
30963 about not letting any speculative edges unupdated.
30965 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30968 * gcov-io.c (gcov_var): Export.
30970 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30972 PR middle-end/64922
30973 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
30974 edges that become speculative.
30976 2015-02-04 Jakub Jelinek <jakub@redhat.com>
30978 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
30979 or DW_LANG_Fortran08.
30980 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
30982 (gen_compile_unit_die): Handle "GNU Fortran2003" and
30983 "GNU Fortran2008" language strings.
30984 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
30985 * langhooks.h (lang_GNU_Fortran): New prototype.
30986 * langhooks.c (lang_GNU_Fortran): New function.
30987 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
30990 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
30992 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
30993 (RTX_OK_FOR_OLO10_P): Likewise.
30995 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
30997 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
30999 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31001 PR middle-end/64922
31002 * gimple.c: Include gimple-ssa.h.
31003 (maybe_remove_unused_call_args): New function.
31004 * gimple.h (maybe_remove_unused_call_args): Declare.
31005 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
31006 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
31007 * gimple-fold.c (gimple_fold_call): Likewise.
31009 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
31011 PR rtl-optimization/64905
31012 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
31013 pointer alignment if it isn't needed.
31015 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
31017 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
31018 cortex-a72.cortex-a53.
31019 * config/aarch64/aarch64-tune.md: Regenerate.
31020 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
31022 2015-02-04 Nick Clifton <nickc@redhat.com>
31024 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
31027 2015-02-04 Jakub Jelinek <jakub@redhat.com>
31029 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
31030 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
31031 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
31033 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
31034 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
31035 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
31036 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
31037 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
31038 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
31039 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
31040 * tree-core.h (enum built_in_function): In between
31041 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
31042 for builtins that use DEF_BUILTIN_CHKP macro.
31044 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
31047 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
31048 operands for tcc_comparison exprs. Fix typos.
31051 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
31052 of two XORs that have an intervening AND or IOR.
31055 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
31056 simplification of XOR of AND to not allocate new rtx before
31057 committing to a simplification.
31059 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31061 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
31062 manual swaps in all peepholes.
31064 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31066 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
31067 of manual swapping implementation.
31068 (aarch64_expand_vec_perm_const_1): Likewise.
31070 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
31072 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
31073 (generic_addrcost_table): Remove NAMED_PARAM.
31074 (cortexa57_addrcost_table): Likewise.
31075 (xgene1_addrcost_table): Likewise.
31076 (generic_regmove_table): Likewise.
31077 (cortexa53_regmove_table): Likewise.
31078 (xgene1_regmove_table): Likewise.
31079 (generic_vector_table): Likewise.
31080 (cortexa57_vector_table): Likewise.
31081 (xgene1_vector_table): Likewise.
31082 (generic_tunings): Likewise.
31083 (cortexa53_tunings): Likewise.
31084 (cortexa57_tunings): Likewise.
31085 (xgene1_tunings): Likewise.
31087 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
31089 * config/arm/arm-cores.def: Add cortex-a72 and
31090 cortex-a72.cortex-a53.
31091 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
31092 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
31093 * config/arm/arm-tune.md: Regenerate.
31094 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
31095 "cortex-a72.cortex-a53".
31096 * doc/invoke.texi (ARM Options/-mtune): Likewise.
31098 2015-02-04 Nick Clifton <nickc@redhat.com>
31101 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
31103 (nonimmediate_di_operand): Likewise.
31105 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
31106 prefixes of known F5 using MSP430 MCUs.
31108 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31110 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
31111 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
31112 instead of __builtin_sqrt.
31114 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
31116 * varasm.c (do_assemble_alias): Follow transparent alias
31118 (default_assemble_visibility): Follow transparent alias
31119 chain for decl name.
31121 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
31123 PR middle-end/62103
31124 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
31125 to compute size of referenced value in the constant case.
31127 2015-02-03 Jakub Jelinek <jakub@redhat.com>
31129 PR rtl-optimization/64756
31130 * cse.c (invalidate_dest): New function.
31131 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
31132 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
31133 invalidate and do not record it.
31135 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
31138 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
31139 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
31140 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
31141 atomic_nand<mode>_soft_tcb): New insns.
31142 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
31143 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
31144 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
31145 Split into atomic_not_fetchsi_hard if operands[0] is unused.
31146 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
31147 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
31148 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
31149 atomic_not<mode>_hard if operands[0] is unused.
31150 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
31151 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
31152 if operands[0] is unused.
31153 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
31154 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
31155 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
31156 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
31158 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
31159 into atomic_not<mode>_soft_tcb if operands[0] is unused.
31160 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
31161 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
31162 if operands[0] is unused.
31163 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
31164 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
31165 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
31166 atomic_nand_fetchsi_hard if operands[0] is unused.
31167 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
31168 atomic_nand<mode>_hard if operands[0] is unused.
31169 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
31170 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
31171 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
31172 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
31173 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
31174 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
31175 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
31176 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
31177 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
31178 atomic_not<mode>_hard if operands[0] is unused.
31179 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
31180 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
31182 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
31183 into atomic_not<mode>_soft_tcb if operands[0] is unused.
31184 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
31185 atomic_nand<mode>_hard if operands[0] is unused.
31186 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
31187 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
31189 2015-02-03 David Malcolm <dmalcolm@redhat.com>
31192 * Makefile.in (GCC_OBJS): Add gcc-main.o.
31193 * gcc-main.c: New file, containing "main" taken from gcc.c.
31194 * gcc.c (do_self_spec): Free decoded_options.
31195 (class driver): Move declaration to gcc.h.
31196 (main): Move declaration and implementation to new file
31198 (driver_get_configure_time_options): New function.
31199 * gcc.h (class driver): Move this declaration here, from
31201 (driver_get_configure_time_options): New declaration.
31203 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
31205 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
31206 cross-module inlining.
31207 * cgraph.h (cgraph_node): Add flag merged.
31208 * ipa-icf.c (sem_function::merge): Maintain it.
31210 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
31212 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
31213 instead of OBJECT_P.
31215 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
31218 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
31219 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
31220 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
31221 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
31223 2015-02-03 Jakub Jelinek <jakub@redhat.com>
31226 * combine.c (reg_n_sets_max): New variable.
31227 (can_change_dest_mode, reg_nonzero_bits_for_combine,
31228 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
31229 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
31230 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
31231 (rest_of_handle_combine): Initialize reg_n_sets_max.
31233 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
31235 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
31236 if some always_inline was inlined, apply changes before inlining
31239 2015-02-02 David Malcolm <dmalcolm@redhat.com>
31242 * config/arm/arm.c (arm_option_override): Set
31243 arm_selected_arch/cpu/tune to NULL on entry.
31245 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
31246 Andrew Pinski <pinskia@gcc.gnu.org>
31247 Jakub Jelinek <jakub@gcc.gnu.org>
31250 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
31251 integer typing for small model. Use IN_RANGE.
31253 2015-02-02 Richard Biener <rguenther@suse.de>
31255 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
31256 * tree-vrp.c (vrp_valueize_1): Likewise.
31258 2015-02-02 Alan Modra <amodra@gmail.com>
31260 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
31261 than mem for toc_restore.
31262 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
31263 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
31264 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
31266 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
31269 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
31270 explicit default options.
31272 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
31275 * ipa-utils.c (ipa_merge_profiles): Add release argument.
31276 * ipa-icf.c (sem_function::merge): Do not release body when merging.
31277 * ipa-utils.h (ipa_merge_profiles): Update prototype.
31279 2015-02-01 Jakub Jelinek <jakub@redhat.com>
31282 * cfgexpand.c (deep_ter_debug_map): New variable.
31283 (avoid_deep_ter_for_debug): New function.
31284 (expand_debug_expr): If TERed SSA_NAME is in
31285 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
31286 instead of trying to expand SSA_NAME's def stmt.
31287 (expand_debug_locations): When expanding debug bind
31288 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
31289 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
31291 (pass_expand::execute): Call avoid_deep_ter_for_debug on
31292 all debug bind stmts. Delete deep_ter_debug_map after
31293 expand_debug_location if non-NULL and clear it.
31295 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
31298 * config/sh/sync.md (atomic_fetch_notsi_hard,
31299 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
31300 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
31301 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
31302 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
31303 atomic_not_fetch<mode>_soft_imask): New insns.
31305 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31307 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
31308 (rank_for_schedule_debug): Split from ...
31309 (rank_for_schedule): ... this.
31310 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
31311 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
31313 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
31315 * doc/md.texi (Machine Constraints): Alphabetize table by target.
31316 * doc/extend.texi (x86 Variable Attributes): Move section to
31317 correct alphabetization after renaming.
31318 (x86 Type Attributes): Likewise.
31319 (Target Builtins): Re-alphabetize menu.
31320 (x86 Built-in Functions): Move section to correct alphabetization
31322 (x86 transactional memory intrinsics): Likewise.
31323 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
31324 and x86 Windows Options in table and menu.
31325 (x86 Options): Move section to correct alphabetization after
31327 (x86 Windows Options): Likewise.
31329 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
31331 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
31332 preferred names of the architecture and its 32- and 64-bit
31334 * doc/invoke.texi: Likewise.
31335 * doc/md.texi: Likewise.
31337 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
31340 * config/i386/predicates.md (address_no_seg_operand): Reject
31341 non-CONST_INT_P operands in invalid mode.
31343 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
31345 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
31346 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
31347 * config/i386/predicates.md (address_no_seg_operand): Call
31348 address_operand with VOIDmode.
31349 (vsib_address_operand): Ditto.
31350 (address_mpx_no_base_operand): Ditto.
31351 (address_mpx_no_index_operand): Ditto.
31353 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
31356 * lra-constraints.c (original_subreg_reg_mode): New.
31357 (simplify_operand_subreg): Try to simplify subreg of const. Use
31358 original_subreg_reg_mode for it.
31359 (swap_operands): Update original_subreg_reg_mode.
31360 (curr_insn_transform): Set up original_subreg_reg_mode.
31362 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
31365 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
31367 (process_alt_operands): Use it.
31368 (curr_insn_transform): Check the optional reload pseudo class is
31371 2015-01-30 Joseph Myers <joseph@codesourcery.com>
31373 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
31374 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
31376 * toplev.h (init_asm_output): Update comment on use of
31377 UNKNOWN_LOCATION with fatal_error.
31378 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
31379 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
31380 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
31381 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
31382 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
31383 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
31384 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
31385 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
31386 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
31387 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
31388 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
31389 fatal_error changed to pass input_location as first argument.
31391 2015-01-30 Martin Liska <mliska@suse.cz>
31393 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
31394 in #pragma GCC diagnostic guards.
31396 2015-01-30 Richard Biener <rguenther@suse.de>
31398 PR tree-optimization/64829
31399 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
31400 not add a widening conversion pattern but hand off extra
31401 widenings to callers.
31402 (vect_recog_widen_mult_pattern): Handle extra widening produced
31403 by vect_handle_widen_op_by_const.
31404 (vect_recog_widen_shift_pattern): Likewise.
31405 (vect_pattern_recog_1): Remove excess vertical space in dumping.
31406 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
31407 (vect_init_vector_1): Likewise.
31408 (vect_get_vec_def_for_operand): Likewise.
31409 (vect_finish_stmt_generation): Likewise.
31410 (vectorizable_load): Likewise.
31411 (vect_analyze_stmt): Likewise.
31412 (vect_is_simple_use): Likewise.
31414 2015-01-29 Jeff Law <law@redhat.com>
31416 * combine.c (try_combine): Fix typo in comment.
31418 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
31421 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
31422 (rs6000_stack_info): Add assert.
31423 (rs6000_output_savres_externs): New function, split off from...
31424 (rs6000_output_function_prologue): ... here. Do not call it for
31427 2015-01-29 Jeff Law <law@redhat.com>
31430 * combine.c (try_combine): If I0 is a memory load and I3 a store
31431 to a related address, increase the "goodness" of doing a 4-insn
31432 combination with I0-I3.
31433 (make_field_assignment): Handle SUBREGs in the ior+and case.
31435 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
31437 PR tree-optimization/64746
31438 * tree-if-conv.c (mask_exists): New function.
31439 (predicate_mem_writes): Save created mask with given size for further
31441 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
31442 (ifcvt_repair_bool_pattern): Collect all statements that are root
31443 of bool pattern and use iterative algorithm to remove multiple uses
31444 of predicates, display number of required iterations.
31446 2015-01-29 Richard Biener <rguenther@suse.de>
31448 PR tree-optimization/64853
31449 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
31450 stmt will get simulated again.
31451 * tree-ssa-ccp.c (valueize_op_1): Likewise.
31453 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31455 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
31456 return_in_pc. Remove redundant assignments.
31457 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
31458 (arm_expand_epilogue): Don't compare boolean with true in if condition.
31460 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
31462 * config/i386/i386.c (ix86_mode_after): Make static.
31464 2015-01-29 Richard Biener <rguenther@suse.de>
31466 PR tree-optimization/64844
31467 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
31468 dump cost model analysis.
31469 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31470 Do not register adjusted load/store costs here.
31472 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
31473 Uros Bizjak <ubizjak@gmail.com>
31475 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
31476 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
31477 using x86_use_pseudo_pic_reg.
31478 * config/i386/i386.c (ix86_conditional_register_usage): Remove
31479 support for fixed PIC register.
31480 (ix86_use_pseudo_pic_reg): Not static any more.
31482 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
31484 PR middle-end/64805
31485 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
31486 to avoid error in cgraph node verification.
31488 2015-01-29 Marek Polacek <polacek@redhat.com>
31490 * doc/standards.texi: Reflect that the default for C is gnu11.
31492 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
31495 * reorg.c (switch_text_sections_between_p): New function.
31496 (relax_delay_slots): Call it when testing if the jump insn
31497 is removable. Use targetm.can_follow_jump when testing if
31498 the conditional branch can follow an unconditional jump.
31500 2015-01-27 Caroline Tice <cmtice@google.com>
31502 Committing VTV Cywin/Ming patch for Patrick Wollgast
31503 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
31504 if -fvtable-verify=preinit/std is used.
31505 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
31506 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
31507 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
31508 if -fvtable-verify=preinit/std is used.
31509 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
31510 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
31511 if -fvtable-verify=preinit/std is used.
31512 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
31513 * config/i386/mingw32.h (LIB_SPEC): Likewise.
31514 * varasm.c (assemble_variable): Add code to properly set the comdat
31515 section and name for the .vtable_map_vars section in case the
31516 target is PE or COFF.
31518 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
31521 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
31522 make sane BB profile.
31523 (cgraph_node::expand_thunk): Make sane BB profile.
31524 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
31525 * cgraph.h (init_lowered_empty_function): Update prototype.
31526 * config/i386/i386.c (make_resolver_func): Update call.
31527 * predict.c (gate): Disable branch prediction pass if
31528 profile is already there.
31530 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
31532 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
31533 * opth-gen.awk: Likewise.
31534 * common.opt: Mark flag_fp_contract_mode as Optimization.
31536 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
31538 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
31539 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
31541 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
31544 * config/sh/predicates.md (atomic_arith_operand,
31545 atomic_logical_operand): Remove.
31546 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
31547 (atomic_arith_operand_0): New predicate.
31548 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
31549 Use atomic_arith_operand_0 for input values.
31550 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
31551 atomic_compare_and_swap<mode>_soft_gusa,
31552 atomic_compare_and_swap<mode>_soft_tcb,
31553 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
31554 arith_reg_operand instead of register_operand.
31555 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
31556 atomic_arith_operand_0 for newval input.
31557 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
31558 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
31559 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
31560 arith_reg_operand instead of register_operand.
31561 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
31562 fetchop_predicate_1, fetchop_constraint_1_llcs,
31563 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
31564 fetchop_constraint_1_imask): New code iterator attributes.
31565 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
31566 register_operand. Use fetchop_predicate_1.
31567 (atomic_fetch_<fetchop_name>si_hard,
31568 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
31569 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
31570 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
31571 and arith_reg_operand instead of register_operand. Use
31572 fetchop_predicate_1, fetchop_constraint_1_gusa.
31573 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
31574 and arith_reg_operand instead of register_operand. Use
31575 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
31577 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
31578 and arith_reg_operand instead of register_operand. Use
31579 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
31581 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
31582 register_operand. Use atomic_logical_operand_1.
31583 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
31584 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
31585 arith_reg_operand instead of register_operand.
31586 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
31587 Use arith_reg_dest and arith_reg_operand instead of register_operand.
31588 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
31589 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
31590 register_operand. Use fetchop_predicate_1.
31591 (atomic_<fetchop_name>_fetchsi_hard,
31592 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
31593 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31594 fetchop_constraint_1_llcs.
31595 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
31596 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31597 fetchop_constraint_1_gusa.
31598 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
31599 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31600 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
31601 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
31602 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31603 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
31604 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
31605 register_operand. Use atomic_logical_operand_1.
31606 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
31607 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
31608 arith_reg_operand instead of register_operand.
31609 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
31610 arith_reg_operand instead of register_operand. Use logical_operand
31611 and K08. Adjust asm sequence to allow R0 usage.
31612 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
31613 arith_reg_operand instead of register_operand. Use logical_operand
31616 2015-01-28 Jakub Jelinek <jakub@redhat.com>
31619 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
31620 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
31621 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
31622 only get_full_len HOST_WIDE_INTs from get_val () array rather than
31623 all bits in *val_wide.
31625 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
31627 * varpool.c (tls_model_names): Fix names.
31628 (varpool_node::dump): Dump tls- prefix for tls models.
31630 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
31631 Bernd Schmidt <bernds@codesourcery.com>
31632 Nathan Sidwell <nathan@codesourcery.com>
31634 * config/nvptx/mkoffload.c: New file.
31635 * config/nvptx/t-nvptx: Add build rules for it.
31636 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
31637 (extra_programs): Add mkoffload.
31638 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
31640 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
31642 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
31644 PR middle-end/64809
31645 * cfgexpand.c (reorder_operands): Skip debug gimples.
31647 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
31649 PR tree-optimization/64277
31650 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
31651 range info when possible to refine estimation.
31653 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31655 PR tree-optimization/64718
31656 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
31657 be a 16bit unsigned integer when n->range is 16.
31658 (bswap_replace): Convert src to that type if necessary for all bswap
31659 sizes. Fix rotation right notation in nearby comment. Use bswap_type
31660 set in pass_optimize_bswap::execute ().
31662 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
31664 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
31665 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
31666 integer and floating point variants.
31667 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
31669 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
31671 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
31672 for all vector modes.
31674 2015-01-28 Jakub Jelinek <jakub@redhat.com>
31677 * doc/sourcebuild.texi (comdat_group): Document.
31679 2015-01-28 Terry Guo <terry.guo@arm.com>
31681 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
31683 2015-01-27 David Malcolm <dmalcolm@redhat.com>
31685 * toplev.c (print_version): Add param "show_global_state", and
31686 only print GGC and plugin information if it is true.
31687 (init_asm_output): Pass in "true" for the new param when calling
31689 (process_options): Likewise.
31690 (toplev::main): Likewise.
31691 * toplev.h (print_version): Add new param to decl.
31693 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
31697 * tree.c (lookup_binfo_at_offset): New function.
31698 (get_binfo_at_offset): Use it.
31700 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
31703 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
31704 on vtable being vtable.
31706 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
31708 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
31709 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
31710 -mhotpatch= option.
31711 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
31712 -mno-hotpatch options. Change syntax of -mhotpatch= option.
31713 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
31715 (s390_hotpatch_trampoline_halfwords_max): Renamed.
31716 (s390_hotpatch_hw_max): New name.
31717 (s390_hotpatch_trampoline_halfwords): Renamed.
31718 (s390_hotpatch_hw_before_label): New name.
31719 (get_hotpatch_attribute): Removed.
31720 (s390_hotpatch_hw_after_label): New name.
31721 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
31723 (s390_attribute_table): Ditto.
31724 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
31725 (s390_function_num_hotpatch_hw): New name.
31726 Remove special handling of inline functions and hotpatching.
31727 Return number of nops before and after the function label.
31728 (s390_can_inline_p): Removed.
31729 (s390_asm_output_function_label): Emit a configurable number of nops
31730 after the function label.
31731 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
31732 (TARGET_CAN_INLINE_P) Removed.
31733 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
31735 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31736 Jiong Wang <jiong.wang@arm.com>
31738 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
31740 (cb<optab><mode>1): Likewise.
31741 * config/aarch64/iterators.md (bcond): New define_code_attr.
31743 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31745 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
31748 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31750 * config/s390/s390.c (s390_register_move_cost): Increase costs for
31753 2015-01-27 Richard Biener <rguenther@suse.de>
31755 * tree-vrp.c (update_value_range): Intersect the range with
31756 old recorded SSA name range information.
31758 2015-01-27 Nick Clifton <nickc@redhat.com>
31760 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
31761 BC, DE and HL registers directly, not via AX.
31762 When decrementing the stack pointer by a large amount, transfer SP
31763 into AX and perform the subtraction there.
31764 (rl78_expand_epilogue): Perform the inverse of the above
31767 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31769 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
31771 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31772 Yury Gribov <y.gribov@samsung.com>
31775 * ubsan.c (ubsan_source_location): Refactor code.
31776 (ubsan_type_descriptor): Update type size. Refactor code.
31778 2015-01-27 Richard Biener <rguenther@suse.de>
31780 PR tree-optimization/56273
31781 PR tree-optimization/59124
31782 PR tree-optimization/64277
31783 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
31784 from the first VRP pass.
31786 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31789 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
31790 handle the first argument in the same loop as all the other arguments.
31792 PR rtl-optimization/61058
31793 * jump.c (cleanup_barriers): Update basic block boundaries
31794 if BLOCK_FOR_INSN is non-NULL on PREV.
31796 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
31798 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
31799 bounds narrowing, already instrumented calls and calls to
31800 not instrumentable functions.
31802 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31804 PR tree-optimization/64807
31805 * wide-int.cc (wi::divmod_internal): Clear
31806 b_dividend[dividend_blocks_needed].
31808 2015-01-26 DJ Delorie <dj@redhat.com>
31810 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
31811 volatile memory references.
31813 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
31816 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
31818 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
31819 shifts if it already fits into K08.
31821 2015-01-26 Jakub Jelinek <jakub@redhat.com>
31824 * ipa-inline.c (inline_small_functions): Print "unknown" even
31825 if edge->call_stmt is non-NULL, but has builtins or unknown
31828 PR middle-end/64421
31829 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
31830 with asterisk, skip the first character.
31832 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
31835 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
31838 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
31841 * config/i386/i386.md (*movdi_internal): Also check operand 0
31842 to determine TYPE_LEA operand.
31843 (*movsi_internal): Ditto.
31845 2015-01-26 Jakub Jelinek <jakub@redhat.com>
31847 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
31848 OPTION_MASK_QUAD_MEMORY_ATOMIC.
31850 2015-01-26 Renlin Li <renlin.li@arm.com>
31852 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
31854 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
31857 2015-01-26 Richard Biener <rguenther@suse.de>
31859 PR middle-end/64764
31860 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
31861 combining two BIT_AND_EXPR predicates.
31863 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
31866 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
31868 2015-01-26 Terry Guo <terry.guo@arm.com>
31870 * config/arm/arm.c (arm_file_start): Update the assignment of
31871 Tag_ABI_HardFP_use.
31873 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
31875 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
31877 config/arm/arm.md: Include the new Cortex-A57 model.
31878 (generic_sched): Don't use generic_sched when tuning for
31881 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
31882 Uros Bizjak <ubizjak@gmail.com>
31884 * config/i386/i386.c (get_builtin_code_for_version): Add
31885 support for BMI and BMI2 multiversion functions.
31887 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31889 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
31890 (extract_bit_field): Likewise.
31891 (extract_low_bits): Likewise.
31892 (expand_mult): Likewise.
31893 (expand_mult_highpart_adjust): Likewise.
31895 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
31897 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
31898 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
31899 * config/i386/i386.c (processor_model): Add
31900 M_INTEL_COREI7_BROADWELL.
31901 (arch_names_table): Add "broadwell".
31903 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
31912 * config/sh/sh-protos.h
31913 (sh_extending_set_of_reg::can_use_as_unextended_reg,
31914 sh_extending_set_of_reg::use_as_unextended_reg,
31915 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
31916 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
31917 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
31918 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
31919 (sh_treg_insns): New class.
31920 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
31921 (scope_counter): New class.
31922 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
31923 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
31924 sh_extending_set_of_reg::can_use_as_unextended_reg,
31925 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
31926 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
31927 sh_split_treg_set_expr): New functions.
31928 (addsubcosts): Handle treg_set_expr.
31929 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
31930 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
31931 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
31932 (sh_insn_operands_modified_between_p): Make non-static.
31933 * config/sh/predicates.md (zero_extend_movu_operand): Allow
31934 simple_mem_operand in addition to displacement_mem_operand.
31935 (zero_extend_operand): Don't allow zero_extend_movu_operand.
31936 (treg_set_expr, treg_set_expr_not_const01,
31937 arith_reg_or_treg_set_expr): New predicates.
31938 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
31939 arith_or_int_operand instead of logical_operand. Convert to
31940 insn_and_split. Try to optimize constant operand in splitter.
31941 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
31942 (*tstqi_t_zero): Delete.
31943 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
31944 (tstsi_t_and_not): Delete.
31945 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
31946 Convert to insn_and_split.
31947 (unnamed split, tstsi_t_zero_extract_xor,
31948 tstsi_t_zero_extract_subreg_xor_little,
31949 tstsi_t_zero_extract_subreg_xor_big): Delete.
31950 (*tstsi_t_shift_mask): New insn_and_split.
31951 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
31952 to recombine with surrounding insns when splitting.
31953 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
31954 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
31955 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
31956 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
31957 (*cbranch_div0s: Delete.
31958 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
31959 Try to recombine with surrounding insns when splitting. Add operand
31961 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
31962 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
31963 *addc_r_r_msb, *addc_2r_msb): Delete.
31964 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
31966 (*addc_negreg_t): New insn_and_split.
31967 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
31968 Try to recombine with surrounding insns when splitting.
31969 Add operand order variants.
31970 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
31971 insn_and_split patterns.
31972 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
31973 surrounding insns when splitting.
31974 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
31975 (*rotcl): Likewise. Add zero_extract variant.
31976 (*ashrsi2_31): New insn_and_split.
31977 (*negc): Convert to insn_and_split. Use treg_set_expr.
31978 (*zero_extend<mode>si2_disp_mem): Update comment.
31979 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
31981 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
31982 with surrounding insns when splitting.
31983 (any_treg_expr_to_reg): New insn_and_split.
31984 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
31985 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
31986 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
31987 *zero_extract_2): New single bit zero extract patterns.
31988 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
31989 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
31990 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
31991 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
31993 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
31994 register_operand for set source.
31996 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
31998 * i386.opt (prefetch_sse): New targetsave.
31999 * i386.c (ix86_function_specific_save): Save prefetch_sse.
32000 (ix86_function_specific_restore): Restore prefetch_sse and initialize
32001 ix86_cost/ix86_tune_cost.
32003 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32005 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
32006 Support the JIT by using 0 as the language type.
32008 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
32011 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
32012 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
32013 (mark_regno_live, process_bb_lives): Pass new parameter value to
32014 make_hard_regno_born.
32016 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32018 PR rtl-optimization/63637
32019 PR rtl-optimization/60663
32020 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
32021 if elt->cost is MAX_COST for ASM_OPERANDS.
32022 (find_sets_in_insn): Fix up comment typo.
32023 (cse_insn): Don't set src_volatile for all non-volatile
32024 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
32025 or with "memory" clobber. Set elt->cost to MAX_COST
32026 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
32027 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
32029 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
32031 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
32034 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
32036 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
32037 libgcc/config/i386/elf-lib.h.
32039 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32042 * gcc.c (print_configuration): Don't print a blank line at the end
32044 (run_attempt): ... but here unstead.
32046 PR middle-end/64734
32047 * omp-low.c (scan_sharing_clauses): Don't ignore
32048 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
32049 on target data/update constructs.
32051 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
32054 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
32055 (DEBUG_RELOAD): Removed define.
32056 (m32c_limit_reload_class): Enable traces with if DEBUG0.
32057 (m32c_function_arg): Added a type cast.
32058 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
32059 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
32060 * config/m32c/bitops.md (andqi3_16): Likewise.
32061 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
32062 (push_a01_l): Likewise.
32064 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32067 * main.c (main): Construct toplev instances with init_signals=true.
32068 * toplev.c (general_init): Add param "init_signals", and use it to
32069 conditionalize the calls to signal and host_hooks.extra_signals.
32070 (toplev::toplev): Add param "init_signals".
32071 (toplev::main): When invoking general_init, pass m_init_signals
32072 to control whether signal-handlers are installed.
32073 * toplev.h (toplev::toplev): Add param "init_signals".
32074 (toplev::m_init_signals): New field.
32076 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32079 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
32080 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
32081 latter may be affected by the former (e.g. on i686).
32083 2015-01-23 Martin Liska <mliska@suse.cz>
32085 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
32086 false positive during profiledbootstrap.
32088 2015-01-23 Tom de Vries <tom@codesourcery.com>
32091 * lto-opts.c (lto_write_options): Output non-explicit conservative
32093 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
32094 (append_compiler_options): Pass -fopenacc through.
32096 2015-01-23 Tom de Vries <tom@codesourcery.com>
32099 * lto-opts.c (lto_write_options): Output non-explicit conservative
32101 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
32102 (append_compiler_options): Pass -fopenmp through.
32104 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32107 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
32110 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
32111 * diagnostic.def (DK_ICE_NOBT): New kind.
32112 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
32113 like DK_ICE, but never print backtrace.
32114 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
32115 (internal_error_no_backtrace): New function.
32116 * gcc.c (execute): Use internal_error_no_backtrace instead of
32119 2015-01-22 Jeff Law <law@redhat.com>
32122 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
32123 improve code density for small immediate to memory case.
32124 (insv): Better handle bitfield assignments when the field is
32125 being set to all ones.
32126 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
32129 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32130 Jakub Jelinek <jakub@redhat.com>
32132 PR middle-end/64729
32133 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
32134 for !TARGET_LIBC_PROVIDES_SSP version and
32135 -fstack-protector-{all,strong,explicit} otherwise.
32136 * config/freebsd.h (LINK_SSP_SPEC): Handle
32137 -fstack-protector-{strong,explicit}.
32139 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
32140 H.J. Lu <hongjiu.lu@intel.com>
32143 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
32146 2015-01-22 Wei Mi <wmi@google.com>
32148 PR rtl-optimization/64557
32149 * dse.c (record_store): Call get_addr for mem_addr.
32150 (check_mem_read_rtx): Likewise.
32152 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
32154 * fold-const.c (const_binop): Add early return for non-tcc_binary.
32156 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
32158 * toplev.c (init_local_tick): Process the failure when read
32159 fails for random_seed.
32161 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
32162 'pretty_name' to avoid memory overflow.
32164 2015-01-22 Richard Biener <rguenther@suse.de>
32166 PR middle-end/64728
32167 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
32168 abnormal coalescing on undefined SSA names.
32170 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
32174 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
32176 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
32178 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
32180 PR middle-end/63325
32181 * fold-const.c (fold_checksum_tree): Don't include value of
32182 expr->decl_with_vis.symtab_node in the checksum.
32184 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32186 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
32188 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
32191 * gcc.c (insert_comments): New function.
32192 (try_generate_repro): Call it.
32193 (append_text): Removed.
32195 2015-01-22 Richard Biener <rguenther@suse.de>
32197 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
32198 with IL incompatible options. Properly honor user optimize
32201 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
32203 PR rtl-optimization/64682
32204 * combine.c (distribute_notes): When moving a death note for
32205 a register that is set in the new I2, make sure to put it
32206 before that new I2.
32208 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
32210 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
32211 not TARGET_DEFAULT.
32213 2015-01-21 Jakub Jelinek <jakub@redhat.com>
32216 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
32217 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
32218 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
32221 * doc/invoke.texi (-fsanitize=vptr): Document.
32223 PR rtl-optimization/62078
32224 * dse.c: Include cfgcleanup.h.
32225 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
32226 anything call purge_all_dead_edges and cleanup_cfg at the end
32229 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
32231 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
32234 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32236 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
32239 2015-01-21 David Sherwood <david.sherwood@arm.com>
32240 Tejas Belagod <Tejas.Belagod@arm.com>
32242 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
32243 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
32244 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
32247 2015-01-21 David Sherwood <david.sherwood@arm.com>
32248 Tejas Belagod <Tejas.Belagod@arm.com>
32250 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
32251 (aarch64_reverse_mask): New decls.
32252 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
32253 (insn_count): New mode_attr.
32254 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
32255 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
32256 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
32257 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
32258 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
32259 (aarch64_simd_st4): New patterns.
32260 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
32261 (aarch64_reverse_mask): New functions.
32263 2015-01-21 Alan Hayward <alan.hayward@arm.com>
32265 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
32267 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
32268 addressing modes for BE.
32269 (aarch64_print_operand): Add 'R' specifier.
32270 (aarch64_simd_disambiguate_copy): Delete.
32271 (aarch64_simd_emit_reg_reg_move): New function.
32272 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
32273 in define_splits for structural moves.
32274 (mov<mode>): Use less restrictive predicates.
32275 (*aarch64_mov<mode>): Simplify and only allow for LE.
32276 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
32278 2015-01-21 Alan Hayward <alan.hayward@arm.com>
32280 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
32282 2015-01-21 Richard Henderson <rth@redhat.com>
32285 * ccmp.c (used_in_cond_stmt_p): Remove.
32286 (expand_ccmp_expr): Don't use it.
32288 2015-01-21 Nick Clifton <nickc@redhat.com>
32290 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
32293 2015-01-21 Richard Biener <rguenther@suse.de>
32295 PR middle-end/64313
32296 * tree-core.h (builtin_info, builtin_info_type): Turn from
32297 an object with two arrays into an array of an object with
32298 decl and two flags, implicit_p and declared_p.
32299 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
32300 set_builtin_decl, set_builtin_decl_implicit_p,
32301 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
32302 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
32303 * builtins.c (builtin_info): Adjust.
32304 * gimplify.c (gimplify_addr_expr): References to builtins
32305 that have been declared by the user makes them eligible for
32306 use by the compiler. Call set_builtin_decl_implicit_p on them.
32308 2015-01-20 Jeff Law <law@redhat.com>
32311 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
32312 allow pc-relative addresses in operand predicates or constraints.
32314 2015-01-21 Bin Cheng <bin.cheng@arm.com>
32316 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
32317 neon on aarch32 processors for stringops.
32319 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32322 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
32324 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32327 * ipa-inline.c: Include lto-streamer.h
32328 (report_inline_failed_reason): Output source file differences and
32329 flags on optimization/target node mismatch.
32330 (can_inline_edge_p): Consider caller to be the outer inline function;
32331 be less restrictive about matching opimize and optimize_size attributes.
32332 (inline_account_function_p): Break out from ...
32333 (inline_small_functions): ... here.
32334 * ipa-inline-transform.c (clone_inlined_nodes): Use
32335 inline_account_function_p.
32336 (inline_call): Use optimize attribution; use inline_account_function_p.
32337 (inline_transform): Use opt_for_fn.
32338 * ipa-inline.h (inline_account_function_p): Declare.
32340 2015-01-20 Jakub Jelinek <jakub@redhat.com>
32343 * dwarf2out.c (decl_piece_node): Don't put bitsize into
32344 mode if bitsize <= 0.
32345 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
32346 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
32347 sizes and positions.
32349 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
32351 * config/nios2/nios2.c (nios2_asm_file_end): Implement
32352 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
32354 (TARGET_ASM_FILE_END): Define.
32356 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32358 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
32359 (struct tune_params): Use the enum.
32360 * arm.c (arm_*_tune): Update.
32361 (arm_option_override): Update.
32363 2015-01-20 Richard Biener <rguenther@suse.de>
32366 * ipa-reference.c (add_static_var): Inline ...
32367 (analyze_function): ... here after splitting out from ...
32368 (is_proper_for_analysis): ... this.
32370 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
32373 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
32374 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
32375 replace the conditional with it's true branch.
32376 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
32377 (arm_lra_p): Remove.
32379 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
32381 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
32383 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32385 * config/tilegx/mul-tables.c: Move symtab.h include after
32386 coretypes.h include.
32387 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
32388 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
32389 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
32390 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
32391 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32393 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
32397 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
32399 PR rtl-optimization/64081
32400 * loop-iv.c (def_pred_latch_p): New function.
32401 (latch_dominating_def): Allow specific cases with non-single
32403 (iv_get_reaching_def): Likewise.
32404 (check_complex_exit_p): New function.
32405 (check_simple_exit): Use check_complex_exit_p to allow certain cases
32406 with exits not executing on any iteration.
32408 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32411 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
32412 to set branch cost.
32414 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32417 * i386.c (gate): Check flag_expensive_optimizations and
32419 (ix86_option_override_internal): Drop optimize_size condition
32420 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
32421 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
32422 MASK_PREFER_AVX128.
32423 (ix86_avx256_split_vector_move_misalign,
32424 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
32425 * sse.md (all uses of TARGET_PREFER_AVX128): Add
32426 optimize_insn_for_speed_p check.
32428 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
32430 * config/mips/mips.h (FP_ASM_SPEC): New define.
32431 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
32434 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
32437 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
32438 nullptr for insn when reaching the first insn.
32439 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
32440 (sh_insn_operands_modified_between_p): Add nullptr check.
32441 (sh_find_extending_set_of_reg): Fix log message. Don't accept
32442 sign extending mem load if the insn contains any UNSPEC or
32445 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32447 * params.def (inline-unit-growth): Drop to 15%.
32448 * invoke.texi (inline-unit-growth): Document change.
32450 2015-01-19 Martin Liska <mliska@suse.cz>
32453 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
32454 function for second argument of OBJ_TYPE_REF.
32456 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32459 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
32460 whether function is an alias.
32462 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32464 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
32467 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
32469 PR rtl-optimization/64671
32470 * lra-remat.c (operand_to_remat): Don't consider jump and call
32473 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
32476 * config/rs6000/default64.h: Include rs6000-cpus.def.
32477 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
32478 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
32479 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
32481 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
32483 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
32484 pseudo-op to specify assembler dialect.
32486 2015-01-19 Martin Liska <mliska@suse.cz>
32489 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
32490 Handle safe potentially removed nodes during filtering.
32492 2015-01-19 Martin Liska <mliska@suse.cz>
32494 * doc/extend.texi (no_icf): Add new attribute description.
32495 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
32496 where the pass attempts to merge a function with no_icf attribute.
32498 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32501 * doc/md.texi (ARM Options): Document register constraints.
32503 2015-01-19 Jiong Wang <jiong.wang@arm.com>
32504 Andrew Pinski <apinski@cavium.com>
32507 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
32508 (ashl<mode>3): Don't expand if operands[2] is not constant.
32510 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32513 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
32514 Match xor-and-xor RTL pattern.
32516 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
32518 PR rtl-optimization/64081
32519 * loop-iv.c (def_pred_latch_p): New function.
32520 (latch_dominating_def): Allow specific cases with non-single
32522 (iv_get_reaching_def): Likewise.
32523 (check_complex_exit_p): New function.
32524 (check_simple_exit): Use check_complex_exit_p to allow certain cases
32525 with exits not executing on any iteration.
32527 2015-01-19 Jakub Jelinek <jakub@redhat.com>
32529 * common.opt (fgraphite): Fix a typo.
32531 2015-01-19 Felix Yang <felix.yang@huawei.com>
32533 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
32535 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
32536 uminp, smax_nanp, smin_nanp): New builtins.
32537 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
32538 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
32539 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
32540 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
32541 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
32542 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
32543 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
32544 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
32545 vpminnms_f32): Rewrite using builtin functions.
32547 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
32550 * omp-low.c (offload_symbol_decl): Remove variable.
32551 (get_offload_symbol_decl): Remove function.
32552 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
32553 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
32554 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
32555 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
32556 BUILT_IN_GOACC_UPDATE don't pass it at all.
32558 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
32560 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
32563 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
32565 * ipa-chkp.c (chkp_produce_thunks): Add early param
32566 to split thunks production into two passes. Keep
32567 'always_inline' function bodies after the first pass.
32568 (pass_data_ipa_chkp_early_produce_thunks): New.
32569 (pass_ipa_chkp_early_produce_thunks): New.
32570 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
32571 chkp_produce_thunks signature.
32572 (make_pass_ipa_chkp_early_produce_thunks): New.
32573 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
32574 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
32575 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
32577 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32579 * cgraph.c (cgraph_node::dump): Dump profile flags.
32581 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
32584 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
32585 reg appear first in the parallel.
32587 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32589 * ipa-reference.c (set_reference_optimization_summary,
32590 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
32592 (ignore_module_statics): New static var.
32593 (propagate_bits): If ipa-reference is disabled, do not look into local
32595 (analyze_function): Disable analysis when ipa_reference is disabled.
32596 (generate_summary): Do not dump when reference is disabled;
32597 collect vars accessed from functions with ipa-reference disabled.
32598 (get_read_write_all_from_node): When ipa-reference is disabled, use the
32600 (gate): Enable for LTO.
32601 (ignore_edge_p): New function.
32602 (propagate): Skip functions w/o ipa-reference analysis.
32603 * optc-save-gen.awk: Handle optimize_debug correctly.
32604 * opth-gen.awk: Likewise.
32605 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
32606 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
32607 fira-share-save-slots, fira-share-spill-slots,
32608 fmodulo-sched-allow-regmoves, fpartial-inlining,
32609 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
32610 ftracer, ftree-parallelize-loops, fassociative-math,
32611 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
32613 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
32614 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
32616 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
32619 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32622 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
32624 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
32626 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
32628 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
32629 Remove duplicate option listings.
32631 2015-01-18 Felix Yang <felix.yang@huawei.com>
32633 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
32634 (autofdo_source_profile::get_callsite_total_count,
32635 function_instance::get_function_instance_by_decl,
32636 string_table::get_index, string_table::get_index_by_decl,
32637 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
32638 Fix comment typos. Reformatting and minor code rearrangement.
32640 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32642 * config/rs6000/rs6000.md (probe_stack): Delete.
32643 (probe_stack_address): New.
32645 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32647 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
32648 to test for 32-bit ABIs, not !TARGET_POWERPC64.
32650 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32652 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
32653 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
32654 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
32656 (rs6000_libcall_value): Use the new function.
32658 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
32660 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
32662 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
32664 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
32665 implement a more precise life analysis for it during backward scan.
32667 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
32669 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
32671 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
32673 PR rtl-optimization/52773
32674 * calls.c (emit_library_call_value): When pushing arguments use
32675 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
32676 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
32677 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
32679 2015-01-17 Jeff Law <law@redhat.com>
32681 PR rtl-optimization/32790
32682 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
32683 not ZERO_EXTEND in SET_DESTs.
32685 2015-01-17 Alan Modra <amodra@gmail.com>
32687 * cprop.c (do_local_cprop): Revert last change.
32689 2015-01-16 DJ Delorie <dj@redhat.com>
32690 Nick Clifton <nickc@redhat.com>
32692 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
32693 (addhi3_real): Likewise. Fix [HL+0] syntax.
32694 (subqi3_real): Likewise.
32695 (subhi3_real): Likewise.
32696 (cbranchqi4_real): Likewise. Allow saddr,#imm.
32697 (cbranchhi4_real): Likewise.
32698 (cbranchhi4_real_inverted): Likewise.
32699 (cbranchsi4_real_lt): Likewise.
32700 (cbranchsi4_real_ge): Likewise.
32701 (cbranchsi4_real_ge): Likewise.
32702 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
32703 (sub<mode>3_virt): Likewise.
32704 (cbranchqi4_virt): Likewise.
32705 (cbranchhi4_virt): Likewise.
32706 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
32707 always use '[reg+imm]' even when imm is zero.
32708 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
32709 (rl78_general_operand): New.
32710 (rl78_nonimmediate_operand): New.
32711 (rl78_nonfar_operand): Use them.
32712 (rl78_nonfar_nonimm_operand): Likewise.
32713 (rl78_stack_based_mem): Fix.
32714 * config/rl78/constraints.md (Ibqi): New.
32719 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
32720 (iorqi3): Likewise.
32721 (xorqi3): Likewise.
32722 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
32724 * config/rl78/constrains (Qs8): New constraint.
32725 * config/rl78/rl78.c (rl78_flags_already_set): New function.
32726 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
32727 * config/rl78/rl78-real.md (update_Z): New attribute.
32728 Update patterns to set it.
32729 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
32730 shorter compare and branch sequence can be used.
32731 (cbranchhi4_real): Likewise.
32732 (cbranchhi4_real_inverted): Likewise.
32734 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
32735 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
32737 * config/rl78/rl78.c (rl78_get_name_encoding): New.
32738 (rl78_option_override): Allow -mes0 only if C.
32739 (characterize_address): Support subregs of symbol_refs.
32740 (rl78_addr_space_address_mode): Move. Add __near.
32741 (rl78_far_p): Likewise.
32742 (rl78_addr_space_pointer_mode): Likewise.
32743 (rl78_as_legitimate_address): Likewise.
32744 (rl78_addr_space_subset_p): Likewise.
32745 (rl78_addr_space_convert): Likewise.
32746 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
32747 symbols with -mes0.
32748 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
32750 (rl78_alloc_physical_registers_op1): Change logic to prefer
32751 symbol[BC] addressing.
32752 (frodata_section): New.
32753 (rl78_asm_init_sections): Initialize it.
32754 (rl78_select_section): Put __far readonly symbols in .frodata.
32755 (rl78_make_type_far): New.
32756 (rl78_insert_attributes): Force all readonly symbols to be
32758 (rl78_asm_out_integer): New.
32759 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
32760 * config/rl78/rl78.opt (-mes0): New.
32762 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
32763 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
32764 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
32765 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
32766 (rl78_saddr_p): New.
32767 (rl78_output_aligned_common): New.
32768 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
32769 (rl78_handle_saddr_attribute): New.
32770 (rl78_handle_naked_attribute): New.
32771 (rl78_attribute_table): Add saddr.
32772 (rl78_print_operand_1): Don't print '!' on saddr operands.
32773 (rl78_print_operand_1): Strip encodings.
32775 (rl78_strip_name_encoding): New.
32776 (rl78_attrlist_to_encoding): New.
32777 (rl78_encode_section_info): New.
32778 (rl78_asm_init_sections): New.
32779 (rl78_select_section): New.
32780 (rl78_output_labelref): New.
32781 (rl78_output_aligned_common): New.
32782 (rl78_asm_out_integer): New.
32783 (rl78_asm_ctor_dtor): New.
32784 (rl78_asm_constructor): New.
32785 (rl78_asm_destructor): New.
32787 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
32788 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
32789 (transcode_memory_rtx): Update.
32790 (rl78_expand_epilogue): Use A_REG instead of 0.
32792 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32794 * config/arm/arm-protos.h (struct tune_params): New field
32795 sched_autopref_queue_depth.
32796 * config/arm/arm.c (sched-int.h): Include header.
32797 (arm_first_cycle_multipass_dfa_lookahead_guard,)
32798 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
32799 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
32800 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
32801 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
32802 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
32803 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
32804 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
32805 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
32806 * config/arm/t-arm (arm.o): Update.
32807 * haifa-sched.c (update_insn_after_change): Update.
32808 (rank_for_schedule): Use auto-prefetcher model, if requested.
32809 (autopref_multipass_init): New static function.
32810 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
32811 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
32812 variable for debug dumps.
32813 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
32814 (autopref_multipass_dfa_lookahead_guard): New global function that
32815 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
32816 (init_h_i_d): Update.
32817 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
32818 * sched-int.h (enum autopref_multipass_data_status): New const enum.
32819 (autopref_multipass_data_): Structure for auto-prefetcher data.
32820 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
32821 (struct _haifa_insn_data:autopref_multipass_data): New field.
32822 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
32823 (autopref_multipass_dfa_lookahead_guard): Declare.
32825 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32827 * rtlanal.c (get_base_term): Handle SCRATCH.
32829 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32831 * config/aarch64/aarch64.c
32832 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
32833 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
32835 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
32836 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
32838 2015-01-17 Alan Modra <amodra@gmail.com>
32840 * cprop.c (do_local_cprop): Disallow replacement of fixed
32843 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32846 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
32849 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
32851 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
32852 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
32854 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32856 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
32857 * config/arm/thumb1.md: ... Here.
32859 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32861 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
32862 TImode for TARGET_32BIT.
32864 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32866 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
32867 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
32869 (rs6000_abi_word_mode): New function.
32871 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32873 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
32874 instead of UNITS_PER_WORD to describe the size of stack slots.
32876 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32878 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
32879 as rs6000_promote_function_mode. Move comment to there.
32880 (rs6000_promote_function_mode): New function.
32882 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32884 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
32885 -mpowerpc64 is active.
32887 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32889 PR middle-end/64353
32890 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
32893 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
32895 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
32896 introduced in revision 219724.
32898 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32899 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32902 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
32903 destination is not a GP reg.
32904 (*movdi_aarch64): Likewise.
32906 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
32909 * config/rs6000/default64.h: Revert ISA change.
32911 2015-01-16 Richard Biener <rguenther@suse.de>
32913 PR middle-end/64614
32914 * tree-ssa-uninit.c: Include tree-cfg.h.
32915 (MAX_SWITCH_CASES): New define.
32916 (convert_control_dep_chain_into_preds): Handle switch statements.
32917 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
32918 (normalize_one_pred_1): Do not split bit-manipulations.
32921 2015-01-16 Richard Biener <rguenther@suse.de>
32923 PR tree-optimization/64568
32924 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
32925 complex load rewriting for TARGET_MEM_REFs.
32927 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
32929 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
32931 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
32934 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
32936 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
32937 (aarch64_lra_p): Remove.
32939 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32942 * ipa-chkp.h (chkp_instrumentable_p): New.
32943 * ipa-chkp.c: Include tree-inline.h.
32944 (chkp_instrumentable_p): New.
32945 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
32946 Fix processing of not instrumentable functions.
32947 (chkp_versioning): Use chkp_instrumentable_p. Warn about
32948 not instrumentable functions.
32949 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
32950 chkp_instrumentable_p.
32951 * tree-inline.h (copy_forbidden): New.
32952 * tree-inline.c (copy_forbidden): Not static anymore.
32954 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32956 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
32959 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
32961 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
32962 type OP_OUT to OP_INOUT.
32964 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
32966 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
32967 (high x) y) to y if x and y have the same base.
32969 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
32971 * config/arm/cortex-a57.md: New.
32972 * config/aarch64/aarch64.md: Include it.
32973 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
32974 * config/aarch64/aarch64-tune.md: Regenerate.
32976 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
32979 * ccmp.c (expand_ccmp_next): New function.
32980 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
32981 and compare insn sequence.
32982 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
32983 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
32984 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
32985 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
32986 (*ccmp_ior): Changed to ccmp_ior<mode>.
32987 (cmp<mode>): New pattern.
32988 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
32990 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
32992 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
32994 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
32995 _mm256_bsrli_epi128): New.
32996 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
32998 2015-01-15 Jiong Wang <jiong.wang@arm.com>
33000 * expmed.c (store_bit_field_using_insv): Improve warning message.
33001 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
33003 2015-01-15 Jiong Wang <jiong.wang@arm.com>
33005 PR rtl-optimization/64011
33006 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
33007 there is partial overflow.
33009 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33011 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
33013 (nds32_expand_epilogue_v3pop): Likewise.
33014 * config/nds32/nds32.md (sibcall): Define this for sibling call
33016 (sibcall_register): Likewise.
33017 (sibcall_immediate): Likewise.
33018 (sibcall_value): Likewise.
33019 (sibcall_value_register): Likewise.
33020 (sibcall_value_immediate): Likewise.
33021 (sibcall_epilogue): Likewise.
33022 (epilogue): Pass false to indicate this is not a sibcall epilogue.
33023 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
33024 (nds32_expand_epilogue_v3pop): Likewise.
33026 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33028 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
33029 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
33030 (return_internal): New.
33031 (return): Define this named pattern.
33032 (simple_return): Define this named pattern.
33033 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
33034 pattern instead of unspec_volatile_func_return.
33035 (nds32_expand_epilogue_v3pop): Likewise.
33036 (nds32_can_use_return_insn): New function.
33038 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33040 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
33041 * config/nds32/nds32.md (pop25return): New.
33042 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
33043 pop25return pattern.
33045 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33047 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
33048 -mforbid-fp-as-gp, and -mex9 options.
33050 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33052 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
33053 remove -mgp-direct option.
33055 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33057 * doc/invoke.texi (--param early-inlining-insns): Update default value.
33058 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
33060 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33062 * ipa-inline.c (inline_small_functions): Work around hints
33065 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
33068 * doc/invoke.texi (Option Summary): Document new Nios II
33070 (Nios II Options): Likewise.
33071 * config/nios2/nios2.opt: Add -mgpopt= option support.
33072 Modify existing -mgpopt and -mno-gpopt options to be aliases.
33073 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
33074 * config/nios2/nios2.c (nios2_option_override): Adjust
33075 -mgpopt defaulting.
33076 (nios2_in_small_data_p): Return true for explicit small data
33077 sections even with -G0.
33078 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
33081 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33084 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
33086 (inline_call): Fix removal of aliases.
33088 2015-01-15 Jakub Jelinek <jakub@redhat.com>
33090 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
33091 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
33092 * opts.c (common_handle_option): Add -fsanitize=vptr.
33093 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
33094 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
33095 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
33096 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
33097 (ubsan_expand_vptr_ifn): New prototype.
33098 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
33099 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
33100 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
33101 expand_LOOP_VECTORIZED): Make argument nameless, remove
33103 (expand_UBSAN_VPTR): New function.
33104 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
33106 (UBSAN_VPTR): New internal function.
33107 * sanopt.c (tree_map_traits): Renamed to ...
33108 (sanopt_tree_map_traits): ... this.
33109 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
33110 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
33111 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
33112 (maybe_optimize_ubsan_vptr_ifn): New function.
33113 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
33114 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
33116 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
33117 internal calls like pure functions for aliasing, even when they
33118 have other side-effects that prevent making them ECF_PURE.
33119 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
33120 (ubsan_expand_vptr_ifn): New function.
33122 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
33124 PR rtl-optimization/64110
33125 * stmt.c (parse_output_constraint): Process '^' and '$'.
33126 (parse_input_constraint): Ditto.
33127 * lra-constraints.c (process_alt_operands): Process the new
33129 * ira-costs.c (record_reg_classes): Process the new constraint
33131 * genoutput.c (indep_constraints): Add '^' and '$'.
33132 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
33133 * doc/md.texi: Add description of the new constraints.
33135 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
33136 Bernd Schmidt <bernds@codesourcery.com>
33137 Cesar Philippidis <cesar@codesourcery.com>
33138 James Norris <jnorris@codesourcery.com>
33139 Tom de Vries <tom@codesourcery.com>
33140 Ilmir Usmanov <i.usmanov@samsung.com>
33141 Dmitry Bocharnikov <dmitry.b@samsung.com>
33142 Evgeny Gavrin <e.gavrin@samsung.com>
33143 Jakub Jelinek <jakub@redhat.com>
33145 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
33146 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33147 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33148 New function types.
33149 * builtins.c: Include "gomp-constants.h".
33150 (expand_builtin_acc_on_device): New function.
33151 (expand_builtin, is_inexpensive_builtin): Handle
33152 BUILT_IN_ACC_ON_DEVICE.
33153 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
33155 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
33157 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
33158 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
33159 i386/intelmic-offload.h.
33160 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
33161 to libgomp and its dependencies.
33162 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
33163 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
33164 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
33165 * config/ia64/hpux.h (LIB_SPEC): Likewise.
33166 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
33167 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
33168 * doc/generic.texi: Update for OpenACC changes.
33169 * doc/gimple.texi: Likewise.
33170 * doc/invoke.texi: Likewise.
33171 * doc/sourcebuild.texi: Likewise.
33172 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
33173 GF_OMP_FOR_KIND_OACC_LOOP.
33174 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
33175 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
33176 GF_OMP_TARGET_KIND_OACC_UPDATE,
33177 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
33179 * gimple.c: Update comments for OpenACC changes.
33180 * gimple.def: Likewise.
33181 * gimple.h: Likewise.
33182 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
33183 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
33184 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
33185 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
33186 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
33188 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
33189 * gimplify.c: Include "gomp-constants.h".
33190 Update comments for OpenACC changes.
33191 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
33192 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
33193 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
33194 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
33195 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
33196 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
33197 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
33198 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
33199 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
33201 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
33202 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
33203 OMP_CLAUSE_SET_MAP_KIND.
33204 (gimplify_oacc_cache): New function.
33205 (gimplify_omp_for): Handle OACC_LOOP.
33206 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
33208 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
33209 OACC_EXIT_DATA, OACC_UPDATE.
33210 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
33211 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
33212 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
33213 (gimplify_body): Consider flag_openacc next to flag_openmp.
33214 * lto-streamer-out.c: Include "gomp-constants.h".
33215 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
33216 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
33217 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
33218 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
33219 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
33220 (BUILT_IN_ACC_ON_DEVICE): New builtins.
33221 * omp-low.c: Include "gomp-constants.h".
33222 Update comments for OpenACC changes.
33223 (struct omp_context): Add reduction_map, gwv_below, gwv_this
33225 (extract_omp_for_data, use_pointer_for_field, install_var_field)
33226 (new_omp_context, delete_omp_context, scan_sharing_clauses)
33227 (create_omp_child_function, scan_omp_for, scan_omp_target)
33228 (check_omp_nesting_restrictions, lower_reduction_clauses)
33229 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
33230 Update for OpenACC changes.
33231 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
33232 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
33233 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
33234 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
33235 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
33236 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
33238 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
33239 Handle GF_OMP_FOR_KIND_OACC_LOOP.
33240 (expand_omp_target, lower_omp_target): Handle
33241 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
33242 GF_OMP_TARGET_KIND_OACC_UPDATE,
33243 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
33244 GF_OMP_TARGET_KIND_OACC_DATA.
33245 (pass_expand_omp::execute, execute_lower_omp)
33246 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
33248 (offload_symbol_decl): New variable.
33249 (oacc_get_reduction_array_id, oacc_max_threads)
33250 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
33251 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
33252 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
33253 (oacc_gimple_assign, oacc_initialize_reduction_data)
33254 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
33256 (is_targetreg_ctx): Remove function.
33257 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
33258 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
33259 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
33260 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
33261 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
33262 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
33263 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
33264 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
33265 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
33266 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
33267 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
33268 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
33269 * tree-core.h: Update comments for OpenACC changes.
33270 (enum omp_clause_map_kind): Remove.
33271 (struct tree_omp_clause): Change type of map_kind member from enum
33272 omp_clause_map_kind to unsigned char.
33273 * tree-inline.c: Update comments for OpenACC changes.
33274 * tree-nested.c: Likewise. Include "gomp-constants.h".
33275 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
33276 (convert_tramp_reference_stmt, convert_gimple_call): Update for
33277 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
33278 OMP_CLAUSE_SET_MAP_KIND.
33279 * tree-pretty-print.c: Include "gomp-constants.h".
33280 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
33281 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
33282 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
33283 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
33284 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
33285 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
33286 instead of OMP_CLAUSE_MAP_*.
33287 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
33288 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
33289 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
33290 * tree-streamer-in.c: Include "gomp-constants.h".
33291 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
33292 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
33293 * tree-streamer-out.c: Include "gomp-constants.h".
33294 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
33296 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
33297 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
33298 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
33299 * tree.c (omp_clause_num_ops): Update accordingly.
33300 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
33302 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
33303 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
33304 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
33305 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
33306 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
33307 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
33308 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
33309 (OMP_CLAUSE_SET_MAP_KIND): New macro.
33310 * varpool.c (varpool_node::get_create): Consider flag_openacc next
33312 * config/i386/intelmic-offload.h: New file.
33313 * config/nvptx/offload.h: Likewise.
33315 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33317 * explow.h: Remove duplicate contents.
33318 * dojump.h: Likewise.
33320 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
33322 * arm.c (arm_xgene_tune): Add default initializer for instruction
33325 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33329 * ipa.c (symbol_table::remove_unreachable_nodes):
33330 Do not put abstract origins into boundary.
33332 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
33334 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
33335 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
33337 2015-01-15 Steve Ellcey <sellcey@mips.com>
33339 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
33340 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
33341 builtins.def, and chkp-builtins.def.
33343 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
33345 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
33348 2015-01-15 Richard Biener <rguenther@suse.de>
33350 PR tree-optimization/61743
33351 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
33352 information on PHIs for some simple cases.
33354 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33356 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
33358 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
33359 * config/arm/arm-cores.def (xgene1): New entry.
33360 * config/arm/arm-tables.opt: Regenerate.
33361 * config/arm/arm-tune.md: Regenerate.
33362 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
33364 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
33366 * tree-if-conv.c: Include hash-map.h.
33367 (aggressive_if_conv): New variable.
33368 (fold_build_cond_expr): Add simplification of non-zero condition.
33369 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
33370 destination block is not always executed.
33371 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
33372 than two predecessors if AGGRESSIVE_IF_CONV is true.
33373 (if_convertible_stmt_p): Fix commentary.
33374 (all_preds_critical_p): New function.
33375 (has_pred_critical_p): New function.
33376 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
33377 BB can have more than two predecessors and all incoming edges can be
33379 (predicate_bbs): Skip predication for loop exit block, use build2_loc
33380 to compute predicate for true edge.
33381 (find_phi_replacement_condition): Delete this function.
33382 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
33383 Allow interchange PHI arguments if EXTENDED is false.
33384 Change check that block containing reduction statement candidate
33385 is predecessor of phi-block since phi may have more than two arguments.
33386 (phi_args_hash_traits): New helper structure.
33387 (struct phi_args_hash_traits): New type.
33388 (phi_args_hash_traits::hash): New function.
33389 (phi_args_hash_traits::equal_keys): New function.
33390 (gen_phi_arg_condition): New function.
33391 (predicate_scalar_phi): Add handling of phi nodes with more than two
33392 arguments, delete COND and TRUE_BB arguments, insert body of
33393 find_phi_replacement_condition to predicate ordinary phi nodes.
33394 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
33395 delete call of find_phi_replacement_condition and invoke
33396 predicate_scalar_phi with two arguments.
33397 (insert_gimplified_predicates): Add assert that non-predicated block
33398 don't have statements to insert.
33399 (ifcvt_split_critical_edges): New function.
33400 (ifcvt_split_def_stmt): Likewise.
33401 (ifcvt_walk_pattern_tree): Likewise.
33402 (stmt_is_root_of_bool_pattern): Likewise.
33403 (ifcvt_repair_bool_pattern): Likewise.
33404 (ifcvt_local_dce): Likewise.
33405 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
33406 is copy of inner or outer loop force_vectorize field, invoke
33407 ifcvt_split_critical_edges, ifcvt_local_dce and
33408 ifcvt_repair_bool_pattern for aggressive if-conversion.
33410 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
33412 * config/aarch64/aarch64.md: Include xgene1.md.
33413 * config/aarch64/xgene1.md: New file.
33415 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33417 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
33418 xgene1 (APM XGene-1) core definition.
33419 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
33420 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
33421 * doc/invoke.texi: Document -mcpu=xgene1.
33423 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33425 * dojump.h: New header file.
33426 * explow.h: Likewise.
33427 * expr.h: Remove includes.
33428 Move expmed.c prototypes to expmed.h.
33429 Move dojump.c prototypes to dojump.h.
33430 Move alias.c prototypes to alias.h.
33431 Move explow.c prototypes to explow.h.
33432 Move calls.c prototypes to calls.h.
33433 Move emit-rtl.c prototypes to emit-rtl.h.
33434 Move varasm.c prototypes to varasm.h.
33435 Move stmt.c prototypes to stmt.h.
33436 (saved_pending_stack_adjust): Move to dojump.h.
33437 (adjust_address): Move to explow.h.
33438 (adjust_address_nv): Move to emit-rtl.h.
33439 (adjust_bitfield_address): Likewise.
33440 (adjust_bitfield_address_size): Likewise.
33441 (adjust_bitfield_address_nv): Likewise.
33442 (adjust_automodify_address_nv): Likewise.
33443 * explow.c (expr_size): Move to expr.c.
33444 (int_expr_size): Likewise.
33445 (tree_expr_size): Likewise.
33446 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33447 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
33448 * genemit.c (main): Generate includes statistics.h, real.h,
33449 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
33451 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
33452 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
33453 explow.h, emit-rtl.h, stmt.h.
33454 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
33455 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
33456 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
33457 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
33458 emit-rtl.h, varasm.h, stmt.h.
33459 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
33460 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
33461 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
33462 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
33463 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33464 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
33465 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
33466 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
33467 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
33468 tm.h tree.h varasm.h vec.h wide-int.h.
33469 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33470 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
33471 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
33472 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
33473 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
33474 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
33475 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
33476 * loop-iv.c: Likewise.
33477 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
33478 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
33479 statistics.h stmt.h tree.h varasm.h wide-int.h.
33480 * lra-constraints.c: Likewise.
33481 * lra-eliminations.c: Likewise.
33482 * lra-lives.c: Likewise.
33483 * lra-remat.c: Likewise.
33484 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33485 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
33486 statistics.h stmt.h tree.h varasm.h wide-int.h.
33487 * hw-doloop.c: Likewise.
33488 * ira-color.c: Likewise.
33489 * ira-emit.c: Likewise.
33490 * loop-doloop.c: Likewise.
33491 * loop-invariant.c: Likewise.
33492 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33493 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
33494 statistics.h stmt.h tree.h varasm.h wide-int.h.
33495 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
33496 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
33497 statistics.h stmt.h tree.h varasm.h wide-int.h.
33498 * combine-stack-adj.c: Likewise.
33501 * ifcvt.c: Likewise.
33502 * ira-costs.c: Likewise.
33503 * jump.c: Likewise.
33504 * lra-coalesce.c: Likewise.
33505 * lra-spills.c: Likewise.
33506 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33507 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
33508 stmt.h varasm.h wide-int.h.
33509 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33510 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
33512 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
33513 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
33514 statistics.h stmt.h varasm.h wide-int.h.
33515 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
33516 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
33517 varasm.h wide-int.h.
33518 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
33519 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33520 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
33521 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
33522 statistics.h stmt.h.
33523 * config/tilepro/tilepro.c: Likewise.
33524 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
33525 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
33526 * config/pdp11/pdp11.c: Likewise.
33527 * config/xtensa/xtensa.c: Likewise.
33528 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
33529 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
33531 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33532 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
33533 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
33534 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33535 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
33536 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
33537 * rtl-chkp.c: Likewise.
33538 * tree-chkp-opt.c: Likewise.
33539 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
33540 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
33541 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
33542 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33543 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
33544 statistics.h stmt.h.
33545 * tree-vect-data-refs.c: Likewise.
33546 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
33547 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33548 rtl.h statistics.h stmt.h varasm.h.
33549 * internal-fn.c: Likewise.
33550 * ipa-icf-gimple.c: Likewise.
33551 * lto-section-out.c: Likewise.
33552 * tree-data-ref.c: Likewise.
33553 * tree-nested.c: Likewise.
33554 * tree-outof-ssa.c: Likewise.
33555 * tree-predcom.c: Likewise.
33556 * tree-pretty-print.c: Likewise.
33557 * tree-scalar-evolution.c: Likewise.
33558 * tree-ssa-strlen.c: Likewise.
33559 * tree-vect-loop.c: Likewise.
33560 * tree-vect-patterns.c: Likewise.
33561 * tree-vect-slp.c: Likewise.
33562 * tree-vect-stmts.c: Likewise.
33563 * tsan.c: Likewise.
33564 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33565 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
33567 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
33568 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33569 statistics.h stmt.h varasm.h.
33570 * loop-unroll.c: Likewise.
33571 * ubsan.c: Likewise.
33572 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
33573 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
33575 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33576 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
33577 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
33578 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
33579 statistics.h stmt.h.
33580 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
33581 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
33582 statistics.h stmt.h varasm.h.
33583 * gimple-match-head.c: Likewise.
33584 * lto-cgraph.c: Likewise.
33585 * lto-section-in.c: Likewise.
33586 * lto-streamer-in.c: Likewise.
33587 * lto-streamer-out.c: Likewise.
33588 * tree-affine.c: Likewise.
33589 * tree-cfg.c: Likewise.
33590 * tree-cfgcleanup.c: Likewise.
33591 * tree-if-conv.c: Likewise.
33592 * tree-into-ssa.c: Likewise.
33593 * tree-ssa-alias.c: Likewise.
33594 * tree-ssa-copyrename.c: Likewise.
33595 * tree-ssa-dse.c: Likewise.
33596 * tree-ssa-forwprop.c: Likewise.
33597 * tree-ssa-live.c: Likewise.
33598 * tree-ssa-math-opts.c: Likewise.
33599 * tree-ssa-pre.c: Likewise.
33600 * tree-ssa-sccvn.c: Likewise.
33601 * tree-tailcall.c: Likewise.
33602 * tree-vect-generic.c: Likewise.
33603 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33604 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
33605 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33606 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
33607 * varasm.c: Likewise.
33608 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33609 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
33611 * init-regs.c: Likewise.
33613 * omp-low.c: Likewise.
33614 * stack-ptr-mod.c: Likewise.
33615 * tree-ssa-reassoc.c: Likewise.
33616 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33617 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
33619 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33620 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
33621 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33622 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
33623 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33624 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
33625 * tree-ssa-phiopt.c: Likewise.
33626 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33627 fixed-value.h hashtab.h real.h statistics.h stmt.h.
33628 * config/fr30/fr30.c: Likewise.
33629 * config/frv/frv.c: Likewise.
33630 * expr.c: Likewise.
33631 * final.c: Likewise.
33632 * optabs.c: Likewise.
33633 * passes.c: Likewise.
33634 * simplify-rtx.c: Likewise.
33635 * stmt.c: Likewise.
33636 * toplev.c: Likewise.
33637 * var-tracking.c: Likewise.
33638 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33639 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33640 * lower-subreg.c: Likewise.
33641 * postreload-gcse.c: Likewise.
33643 * reginfo.c: Likewise.
33644 * store-motion.c: Likewise.
33645 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33646 fixed-value.h hashtab.h real.h stmt.h varasm.h.
33647 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33648 fixed-value.h hashtab.h statistics.h stmt.h.
33649 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33650 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
33651 * except.c: Likewise.
33652 * explow.c: Likewise.
33653 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33654 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
33656 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33657 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
33658 * tree-ssa-structalias.c: Likewise.
33659 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33660 fixed-value.h insn-config.h real.h statistics.h.
33661 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33662 fixed-value.h insn-config.h real.h statistics.h stmt.h.
33663 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33664 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
33665 * cfgbuild.c: Likewise.
33666 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33667 fixed-value.h real.h rtl.h statistics.h stmt.h.
33668 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33669 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33670 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33671 fixed-value.h real.h statistics.h stmt.h.
33672 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33673 fixed-value.h real.h statistics.h stmt.h varasm.h.
33674 * cprop.c: Likewise.
33675 * modulo-sched.c: Likewise.
33676 * postreload.c: Likewise.
33677 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
33678 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
33679 statistics.h stmt.h varasm.h.
33680 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
33681 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33682 rtl.h statistics.h stmt.h varasm.h.
33683 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
33684 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
33686 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
33687 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
33689 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
33690 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
33692 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
33693 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33694 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33695 function.h real.h statistics.h stmt.h varasm.h.
33696 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33697 insn-config.h real.h statistics.h stmt.h.
33698 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33699 statistics.h stmt.h.
33700 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
33701 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
33702 statistics.h stmt.h varasm.h.
33703 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
33704 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
33705 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33706 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
33707 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
33708 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
33709 statistics.h stmt.h varasm.h.
33710 * ipa-polymorphic-call.c: Likewise.
33711 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
33712 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33713 statistics.h stmt.h.
33714 * config/c6x/c6x.c: Likewise.
33715 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
33716 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33717 statistics.h stmt.h varasm.h.
33718 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
33719 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
33721 * ipa-split.c: Likewise.
33722 * tree-eh.c: Likewise.
33723 * tree-ssa-dce.c: Likewise.
33724 * tree-ssa-loop-niter.c: Likewise.
33725 * tree-vrp.c: Likewise.
33726 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
33727 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
33729 * config/nds32/nds32-fp-as-gp.c: Likewise.
33730 * config/nds32/nds32-intrinsic.c: Likewise.
33731 * config/nds32/nds32-isr.c: Likewise.
33732 * config/nds32/nds32-md-auxiliary.c: Likewise.
33733 * config/nds32/nds32-memory-manipulation.c: Likewise.
33734 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
33735 * config/nds32/nds32-predicates.c: Likewise.
33736 * config/nds32/nds32.c: Likewise.
33737 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
33738 fixed-value.h hashtab.h real.h statistics.h.
33739 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
33740 fixed-value.h hashtab.h real.h statistics.h stmt.h.
33741 * config/arm/arm.c: Likewise.
33742 * config/avr/avr.c: Likewise.
33743 * config/bfin/bfin.c: Likewise.
33744 * config/h8300/h8300.c: Likewise.
33745 * config/i386/i386.c: Likewise.
33746 * config/ia64/ia64.c: Likewise.
33747 * config/iq2000/iq2000.c: Likewise.
33748 * config/m32c/m32c.c: Likewise.
33749 * config/m32r/m32r.c: Likewise.
33750 * config/m68k/m68k.c: Likewise.
33751 * config/mcore/mcore.c: Likewise.
33752 * config/mep/mep.c: Likewise.
33753 * config/mips/mips.c: Likewise.
33754 * config/mn10300/mn10300.c: Likewise.
33755 * config/moxie/moxie.c: Likewise.
33756 * config/pa/pa.c: Likewise.
33757 * config/rl78/rl78.c: Likewise.
33758 * config/rx/rx.c: Likewise.
33759 * config/s390/s390.c: Likewise.
33760 * config/sh/sh.c: Likewise.
33761 * config/sparc/sparc.c: Likewise.
33762 * config/spu/spu.c: Likewise.
33763 * config/stormy16/stormy16.c: Likewise.
33764 * config/v850/v850.c: Likewise.
33765 * config/vax/vax.c: Likewise.
33766 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
33767 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33768 * config/msp430/msp430.c: Likewise.
33769 * predict.c: Likewise.
33770 * value-prof.c: Likewise.
33771 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
33772 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
33773 * config/microblaze/microblaze.c: Likewise.
33774 * config/nios2/nios2.c: Likewise.
33775 * config/rs6000/rs6000.c: Likewise.
33776 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33777 insn-config.h real.h rtl.h statistics.h stmt.h.
33778 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33779 insn-config.h real.h statistics.h stmt.h.
33780 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
33781 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
33782 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
33783 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33784 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
33785 fixed-value.h real.h statistics.h stmt.h.
33786 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
33787 fixed-value.h statistics.h stmt.h.
33788 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
33791 2015-01-15 Jakub Jelinek <jakub@redhat.com>
33793 * gengtype.c (create_user_defined_type): Workaround
33794 -Wmaybe-uninitialized false positives.
33795 * cse.c (fold_rtx): Likewise.
33796 * loop-invariant.c (gain_for_invariant): Likewise.
33798 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
33800 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
33801 set the memory attributes in all cases but clear MEM_EXPR if need be.
33803 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
33805 PR tree-optimization/64434
33806 * cfgexpand.c (reorder_operands): New function.
33807 (expand_gimple_basic_block): Insert call of reorder_operands if
33810 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
33812 * config/mips/micromips.md (*swp): Remove explicit parallel.
33813 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
33814 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
33815 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
33816 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
33817 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
33818 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
33819 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
33820 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
33821 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
33822 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
33823 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
33824 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
33825 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
33826 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
33827 (mips_wrdsp): Likewise.
33828 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
33830 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
33831 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
33832 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
33833 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
33834 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
33835 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
33836 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
33837 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
33838 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
33840 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33842 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
33843 (mips_print_operand): Support 'y' to print exact log2 in decimal
33845 * config/mips/mips.h (ISA_HAS_LSA): New define.
33846 (ISA_HAS_DLSA): Likewise.
33847 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
33848 * config/mips/predicates.md (const_immlsa_operand): New predicate.
33850 2015-01-15 Martin Liska <mliska@suse.cz>
33853 * optc-save-gen.awk: Add support for array types.
33855 2015-01-15 Richard Biener <rguenther@suse.de>
33857 PR middle-end/64365
33858 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
33859 for MEM_REF access functions with the same base can never partially
33862 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
33864 * common.opt: New option -fstack-protector-explicit.
33865 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
33866 (stack_protect_decl_phase): Handle stack_protect attribute for
33867 explicit stack protection requests.
33868 (expand_used_vars): Similarly.
33869 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
33870 * doc/extend.texi: Add documentation for "stack_protect" attribute.
33871 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
33873 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
33876 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
33878 (sh_extending_set_of_reg): New struct.
33879 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
33880 sh_remove_reg_dead_or_unused_notes): New Declarations.
33881 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
33882 sh_find_extending_set_of_reg, sh_split_tst_subregs,
33883 sh_extending_set_of_reg::use_as_extended_reg): New functions.
33884 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
33885 convert to insn_and_split and use new function sh_split_tst_subregs.
33887 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
33889 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
33891 (Optimization Options): Move -fuse-ld documentation to...
33892 (Link Options): ...here.
33894 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33896 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
33898 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
33899 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
33900 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
33901 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
33902 instead of ZR for the memory operand of LL/SC.
33903 (compare_and_swap_12, sync_add<mode>): Likewise.
33904 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
33905 (sync_new_<optab>_12, sync_nand_12): Likewise.
33906 (sync_old_nand_12, sync_new_nand_12): Likewise.
33907 (sync_sub<mode>, sync_old_add<mode>): Likewise.
33908 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
33909 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
33910 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
33911 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
33912 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
33913 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
33914 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
33915 * doc/md.texi (ZC): Update description.
33917 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
33919 * builtins.c (expand_builtin_atomic_exchange): Remove error when
33920 memory model is CONSUME.
33921 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
33922 expand_builtin_atomic_store): Change invalid memory model errors to
33924 (expand_builtin_atomic_clear): Change invalid model errors to warnings
33925 and issue warning for CONSUME.
33927 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
33929 * lto-cgraph: Update function comments for
33930 lto_symtab_encoder_encode_*.
33932 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
33934 * Makefile.in (site.exp): Do not set ENABLE_LTO.
33936 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
33938 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
33939 * lto-cgraph.c (select_what_to_stream): Remove argument, use
33940 lto_stream_offload_p instead.
33941 * lto-streamer.h (select_what_to_stream): Remove argument.
33942 * passes.c (ipa_write_summaries): Likewise.
33943 * tree-pass.h (ipa_write_summaries): Likewise.
33945 2015-01-14 Richard Biener <rguenther@suse.de>
33947 PR tree-optimization/59354
33948 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
33949 groups larger than the slp group size as having gaps.
33951 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
33953 PR middle-end/59448
33954 * builtins.c (get_memmodel): Promote consume to acquire always.
33956 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33959 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
33962 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33965 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
33967 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
33968 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
33969 AVX512VBMI, as it implies AVX512BW.
33971 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33974 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
33975 (vec_unpacks_hi_v16sf): Ditto.
33977 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33979 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
33982 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33984 * doc/invoke.texi (mapcs): Mention deprecation.
33985 (mapcs-frame): Likewise.
33987 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
33990 * config/arm/arm.c (callee_saved_reg_p): Define.
33991 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
33992 register is callee saved instead of !call_used_regs[reg].
33993 (thumb1_compute_save_reg_mask): Likewise.
33995 2015-01-14 Hale Wang <hale.wang@arm.com>
33997 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
34000 2015-01-14 Richard Biener <rguenther@suse.de>
34003 * tree-inline.c (insert_debug_decl_map): Check destination
34004 function MAY_HAVE_DEBUG_STMTS.
34005 (insert_init_debug_bind): Likewise.
34006 (insert_init_stmt): Remove redundant check.
34007 (remap_gimple_stmt): Drop debug stmts if the destination
34008 function has var-tracking assignments disabled.
34010 2015-01-14 Martin Liska <mliska@suse.cz>
34012 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
34013 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
34015 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34018 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
34019 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
34021 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34023 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
34024 level from an ARCH; do not inject the default.
34025 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
34026 MIPS_ISA_LEVEL_SPEC.
34027 (MIPS_ISA_NAN2008_SPEC): Update comment.
34028 (BASE_DRIVER_SELF_SPECS): Likewise.
34029 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
34030 MIPS_DEFAULT_ISA_LEVEL_SPEC.
34031 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
34032 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
34033 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
34035 2015-01-14 Richard Biener <rguenther@suse.de>
34037 PR tree-optimization/64493
34038 PR tree-optimization/64495
34039 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
34040 assign the proper vectorized PHI to the inner loop exit PHIs.
34042 2015-01-14 Joey Ye <joey.ye@arm.com>
34044 * config/arm/arm.c (arm_compute_save_reg_mask):
34045 Do not save lr in case of tail call.
34046 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
34048 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
34050 * tree-vrp.c (check_array_ref): Emit more warnings
34051 for warn_array_bounds >= 2.
34052 * common.opt: New option -Warray-bounds=.
34053 * doc/invoke.texi: Document -Warray-bounds=.
34055 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
34057 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
34058 (mforbid-fp-as-gp): Remove.
34060 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
34061 (nds32_symbol_load_store_p): Remove.
34062 (nds32_fp_as_gp_check_available): Clean up implementation.
34063 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
34065 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
34066 fp-as-gp and ex9 cases.
34068 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34070 * tree-profile.c (init_ic_make_global_vars): Drop workaround
34071 for bintuils bug 14342.
34072 (init_ic_make_global_vars): Likewise.
34073 (gimple_init_edge_profiler): Likewise.
34074 (gimple_gen_ic_func_profiler): Likewise.
34076 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34078 * ipa-inline.c (inline_small_functions): Swap the operands in
34081 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34084 * ipa-inline-analysis.c (node_growth_cache): Remove.
34085 (initialize_growth_caches): Do not initialize it.
34086 (free_growth_caches): Do not free it.
34087 (do_estimate_growth): Rename to ...
34088 (estimate_growth): ... this one; drop growth cache code.
34089 (growth_likely_positive): Always go the heuristics way.
34090 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
34091 (reset_edge_caches): Do not reset node growth.
34092 (heap_edge_removal_hook): Do not maintain cache.
34093 (inline_small_functions): Likewise; strenghten sanity check.
34094 (ipa_inline): Do not maintain caches.
34095 * ipa-inline.h (node_growth_cache): Remove.
34096 (do_estimate_growth): Remove to ...
34097 (estimate_growth): this one; remove inline version.
34098 (reset_node_growth_cache): Remove.
34100 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34103 * ipa-inline.c (inline_small_functions): Update callee keys after
34104 resolving speculation
34105 (inline_small_functions): Always check monotonicity of the queue.
34107 2015-01-13 Marek Polacek <polacek@redhat.com>
34109 PR middle-end/64391
34110 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
34112 2015-01-13 Jakub Jelinek <jakub@redhat.com>
34114 PR rtl-optimization/64286
34115 * ree.c (combine_reaching_defs): Move part of comment earlier,
34116 remove !SCALAR_INT_MODE_P check.
34117 (add_removable_extension): Don't add vector mode
34118 extensions if all uses of the source register aren't the same
34121 2015-01-13 Renlin Li <renlin.li@arm.com>
34123 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
34124 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
34126 2015-01-13 Martin Liska <mliska@suse.cz>
34128 * ipa-icf.c (sem_function::equals_private): Call new functions
34129 cl_target_option_print_diff and cl_optimization_print_diff.
34130 * optc-save-gen.awk (cl_target_option_print_diff): New function.
34131 (cl_optimization_print_diff): Likewise.
34132 * opth-gen.awk: Likewise.
34134 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
34136 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
34137 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
34138 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
34139 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
34140 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
34141 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
34143 2015-01-13 Andrew Pinski <apinski@cavium.com>
34145 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
34146 instead of src mode.
34148 2015-01-13 Richard Biener <rguenther@suse.de>
34151 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
34154 2015-01-13 Andrew Pinski <apinski@cavium.com>
34156 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
34158 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
34160 2015-01-13 Jakub Jelinek <jakub@redhat.com>
34162 PR middle-end/63974
34163 * cfgexpand.c (expand_computed_goto): Don't call
34164 convert_memory_address here.
34166 2015-01-13 Richard Biener <rguenther@suse.de>
34168 PR tree-optimization/64406
34169 * tree-loop-distibution.c (pass_loop_distribution::execute):
34170 Reset the SCEV hashtable if we distributed anything.
34172 2015-01-13 Richard Biener <rguenther@suse.de>
34174 PR tree-optimization/64404
34175 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
34176 SLP types for CSEd loads.
34178 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34180 PR tree-optimization/64436
34181 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
34182 merge of two symbolic numbers for a bitwise OR to ...
34183 (perform_symbolic_merge): This. Also fix computation of the range and
34184 end of the symbolic number corresponding to the result of a bitwise OR.
34186 2015-01-13 Richard Biener <rguenther@suse.de>
34188 PR tree-optimization/64568
34189 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
34190 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
34192 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34194 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
34195 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
34197 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34199 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
34200 target-specific symbol_ref flag.
34201 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
34202 resides in rodata section.
34203 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
34204 (nds32_encode_section_info): New function.
34206 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34208 * config/nds32/nds32.md (call): Use pseudo instruction bal which
34209 clobbers TA_REGNUM if large code model is specified.
34210 (call_register): Likewise.
34211 (call_immediate): Likewise.
34212 (call_value): Likewise.
34213 (call_value_register): Likewise.
34214 (call_value_immediate): Likewise.
34216 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34218 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
34219 (TARGET_CMODEL_MEDIUM): New macro.
34220 (TARGET_CMODEL_LARGE): New macro.
34221 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
34222 code model setting in assembly code.
34224 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34226 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34227 Remove MASK_GP_DIRECT flag.
34228 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
34229 one of the multilib default options.
34230 * config/nds32/nds32.opt (mgp-direct): Remove.
34231 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
34232 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
34234 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34236 * config/nds32/nds32.opt (mcmodel): Add new option.
34237 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
34238 to describe code model.
34240 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
34243 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
34245 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
34247 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
34248 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
34249 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
34250 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
34251 __builtin_sh_set_fpscr.
34253 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
34255 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
34256 after a funtion name just to indicate it is a function.
34257 ([-fsanitize-undefined-trap-on-error]): Likewise.
34258 ([-fdbg-cnt=]): Likewise.
34259 ([-mmemcpy]): Likewise.
34260 ([-mflush-func]): Likewise.
34261 ([-msynci]): Likewise.
34263 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
34265 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
34268 2015-01-12 Jakub Jelinek <jakub@redhat.com>
34270 PR tree-optimization/64563
34271 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
34272 instead of != VR_VARYING.
34275 * config/i386/i386.c (ix86_expand_prologue): Add
34276 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
34278 PR tree-optimization/64454
34279 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
34280 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
34281 for signed or [0, op1 - 1] for unsigned modulo.
34282 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
34283 even if op1 does not satisfy integer_pow2p.
34286 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
34288 2015-01-12 Jeff Law <law@redhat.com>
34291 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
34292 (trunchiqi2, truncsihi2): Similarly.
34294 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
34295 rather than calling F.
34297 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
34299 * tsan.c (instrument_expr): Use force_gimple_operand.
34300 Use may_be_nonaddressable_p instead of is_gimple_addressable.
34302 2015-01-12 Richard Biener <rguenther@suse.de>
34304 PR tree-optimization/64530
34305 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
34308 2015-01-12 Richard Biener <rguenther@suse.de>
34310 PR middle-end/64357
34311 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
34314 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34316 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
34317 Cortex-A17 tuning parameters.
34318 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
34320 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34322 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
34323 * config/arm/arm.c (arm_macro_fusion_p): New function.
34324 (arm_macro_fusion_pair_p): Likewise.
34325 (TARGET_SCHED_MACRO_FUSION_P): Define.
34326 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
34327 (ARM_FUSE_NOTHING): Likewise.
34328 (ARM_FUSE_MOVW_MOVT): Likewise.
34329 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
34330 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
34331 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
34332 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
34333 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
34334 arm_cortex_a5_tune): Specify fuseable_ops value.
34336 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
34339 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
34340 test for PIE with copy reloc.
34341 * configure: Regenerated.
34343 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34345 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
34347 (arm_tls_descseq_addr): Likewise.
34348 (arm_gen_movmemqi): Likewise.
34349 (arm_expand_epilogue_apcs_frame): Likewise.
34350 (arm_expand_epilogue): Likewise.
34351 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
34354 2015-01-12 Martin Liska <mliska@suse.cz>
34357 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
34358 volatility for correct operands.
34360 2015-01-12 Martin Liska <mliska@suse.cz>
34362 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
34363 indication that a function is not leaf.
34364 (sem_function::compare_polymorphic_p): Likewise.
34366 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34368 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
34369 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
34370 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
34371 fold-const.h, tree-check.h.
34373 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
34377 * ipa-inline.c (compute_uninlined_call_time,
34378 compute_inlined_call_time): Use counts for extra precision when
34380 (big_speedup_p): Fix formating.
34381 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
34382 (relative_time_benefit): Remove.
34383 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
34384 merge guessed and read profile paths.
34385 (inline_small_functions): Count only !optimize_size functions into
34386 initial size; be more lax about sanity check when profile is used;
34387 be sure to update inlined function profile when profile is read.
34389 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
34392 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
34393 cost when edge becomes direct.
34394 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
34395 is resolved or when introducing new speculation.
34397 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
34401 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
34402 '||' to fix typo issue.
34404 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
34405 accept and return NULL.
34407 2015-01-12 Martin Liska <mliska@suse.cz>
34409 * cgraph.c (cgraph_edge::remove_callee): Move function to header
34410 file for being inlined.
34411 (cgraph_set_edge_callee): Delete.
34412 (cgraph_edge::redirect_callee): Move function to header file
34414 (cgraph_edge::make_direct): Use new function.
34415 (cgraph_edge::dump_edge_flags): New function created from
34416 static dump_edge_flags function.
34417 (cgraph_node::dump): Use new function.
34418 (cgraph_edge::verify_count_and_frequency): New function created
34419 from verify_edge_count_and_frequency.
34420 (cgraph_edge::verify_corresponds_to_fndecl): New function created
34421 from verify_edge_corresponds_to_fndecl.
34422 (verify_edge_corresponds_to_fndecl): Delete.
34423 (cgraph_node::verify_node): Use new function.
34424 * cgraph.h (cgraph_edge::set_callee): New function.
34425 (cgraph_edge::dump_edge_flags): Likewise.
34426 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
34428 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
34430 * ipa-utils.c (estimate_function_body_sizes): Do not
34431 free node params when called late with early=true.
34433 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
34435 * doc/md.texi (Instruction Patterns): Rewrite text for
34437 (Example): Likewise.
34439 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
34441 * doc/invoke.texi (Option Summary): Break long lines.
34442 [(-fdiagnostics-color)]: Put long literal in @smallexample
34444 [(-fsanitize-recover)]: Likewise.
34445 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
34446 [(-ffast-math)]: Likewise.
34447 [(--param max-inline-insns-recursive)]: Likewise.
34448 [(--param max-inline-recursive-depth)]: Likewise.
34449 [(-mno-text-section-literals)]: Likewise.
34451 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
34453 * doc/install.texi: Update for libgomp being renamed from "GNU
34454 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
34456 * doc/sourcebuild.texi: Likewise.
34458 2015-01-10 Anthony Green <green@moxielogic.com>
34460 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
34461 mul.x availability for moxiebox configuration.
34463 2015-01-09 Anthony Green <green@moxielogic.com>
34465 * config/moxie/moxie.md: Tabify assembly output.
34467 2015-01-09 Anthony Green <green@moxielogic.com>
34469 * config/moxie/moxie.md (CC_REG): Correct register definition.
34471 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
34473 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
34474 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
34477 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34479 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
34481 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
34482 Jakub Jelinek <jakub@redhat.com>
34484 PR middle-end/64412
34485 * lto-streamer.h (lto_stream_offload_p): New declaration.
34486 * lto-streamer.c (lto_stream_offload_p): New variable.
34487 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
34488 at the same time as section_name_prefix.
34489 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
34490 if lto_stream_offload_p.
34491 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
34492 stream TREE_TARGET_OPTION if lto_stream_offload_p.
34493 (write_ts_function_decl_tree_pointers): Don't
34494 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
34495 * tree-streamer-in.c (unpack_value_fields): Don't stream
34496 TREE_TARGET_OPTION in if ACCEL_COMPILER.
34497 (lto_input_ts_function_decl_tree_pointers): Don't stream
34498 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
34499 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
34500 instead of section_name_prefix string comparisons.
34502 2015-01-09 Jakub Jelinek <jakub@redhat.com>
34504 PR rtl-optimization/64536
34505 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
34508 2015-01-09 Michael Collison <michael.collison@linaro.org>
34510 PR tree-optimization/64322
34511 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
34512 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
34514 2015-01-09 Tom de Vries <tom@codesourcery.com>
34516 PR rtl-optimization/64539
34517 * regcprop.c (kill_clobbered_values): Factor out of ...
34518 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
34519 instead of note_stores with kill_clobbered_value.
34521 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34523 * ginclude/unwind-arm-common.h: Revert previous commit.
34525 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34527 * config.gcc (arm*-*-freebsd*): New configuration.
34528 * config/arm/freebsd.h: New file.
34529 * config.host: Add extra components for arm*-*-freebsd*.
34530 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
34531 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
34533 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34535 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
34537 * config/rs6000/t-rtems: Add e6500 multilibs.
34539 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34541 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
34544 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34546 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
34547 MULTILIB_EXCEPTIONS.
34549 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34551 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
34552 MULTILIB_EXCEPTIONS.
34554 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34556 * config/arm/t-rtems-eabi: Rename to...
34557 * config/arm/t-rtems: ...this.
34558 * config/arm/rtems-eabi.h: Rename to...
34559 * config/arm/rtems.h: ...this.
34560 * config.gcc (arm*-*-rtems*): Reflect changes above.
34562 2015-01-09 Richard Biener <rguenther@suse.de>
34564 PR tree-optimization/64410
34565 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
34567 (execute_update_addresses_taken): Deal with that.
34568 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
34569 loads/stores for complex variables.
34571 2015-01-09 Martin Liska <mliska@suse.cz>
34573 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
34575 (func_checker::compare_memory_operand): New function.
34576 (func_checker::compare_operand): Split case to newly
34578 (func_checker::compare_cst_or_decl): New function.
34579 (func_checker::compare_gimple_call): Identify
34581 (func_checker::compare_gimple_assign): Likewise.
34582 * ipa-icf-gimple.h: New function.
34584 2015-01-09 Martin Liska <mliska@suse.cz>
34587 * sreal.c (sreal::dump): Change unsigned format to signed for
34589 (sreal::to_double): Replace exp2 with scalbln.
34591 2015-01-09 Martin Liska <mliska@suse.cz>
34593 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
34594 * ipa-icf.c (sem_function::equals_private): Add support for target and
34595 (sem_item_optimizer::merge_classes): Remove redundant function
34596 optimization flags comparison.
34597 * tree.h (target_opts_for_fn): New function.
34599 2015-01-09 Tom de Vries <tom@codesourcery.com>
34601 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
34603 2015-01-09 Kito Cheng <kito@0xlab.org>
34605 PR rtl-optimization/64348
34606 * lra-constraints.c (split_reg): Fix caller-save store/restore
34607 instruction generation.
34609 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
34611 PR gcov-profile/61790
34612 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
34613 long long. Fallback to int64_t if host doesn't have long long and
34614 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
34616 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34618 PR tree-optimization/63989
34619 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
34620 from 1000 to 10000.
34621 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
34622 (get_stridx): If we don't have a record for certain SSA_NAME,
34623 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
34624 constant offset, call get_stridx_plus_constant.
34625 (get_stridx_plus_constant): New function.
34626 (zero_length_string): Don't use get_stridx here.
34629 PR middle-end/64388
34630 * dse.c (struct insn_info): Mention frame_read set also
34631 before reload for tail calls on some targets.
34632 (scan_insn): Revert 2014-12-22 change. Set frame_read
34633 also before reload for tail calls if
34634 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
34635 instead of add_non_frame_wild_read for non-const/memset
34636 tail calls after reload.
34638 2015-01-08 Jason Merrill <jason@redhat.com>
34640 * ubsan.c (do_ubsan_in_current_function): New.
34641 (pass_ubsan::gate): Use it.
34642 * ubsan.h: Declare it.
34643 * convert.c (convert_to_integer): Use it.
34645 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34648 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
34649 compare_code when it is unconditionally overwritten afterwards.
34650 Use ix86_reverse_condition instead of reverse_condition. Don't
34651 change code if *reverse_condition* returned UNKNOWN and don't
34652 swap ct/cf and negate diff in that case.
34654 2015-01-08 Mike Stump <mikestump@comcast.net>
34656 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
34657 (pass_tsan_O0::gate): Likewise.
34658 * extend.texi (Function Attributes): Add no_sanitize_thread
34661 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
34663 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
34664 for registering builtins.
34665 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
34666 add -fopenmp to the argv_obstack used when invoking
34667 compile_for_target.
34669 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
34670 add "-m32" or "-m64" to argv_obstack.
34671 (generate_host_descr_file): Likewise, when invoking host_compiler.
34672 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
34675 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
34677 * config/sh/sh-mem.cc: Use constant as second operand when emitting
34680 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
34683 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
34684 constant load if constant operand fits into I08.
34686 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34689 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
34690 and TREE_THIS_VOLATILE for MEM_REFs.
34691 (build5_stat): Fix up initialization of TREE_READONLY and
34692 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
34694 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
34697 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
34698 of r for the second alternative of the destination operand.
34700 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
34703 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
34705 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
34707 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
34709 ([-fivar-visibility], [-fvisibility]): Likewise.
34711 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
34713 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
34714 the file where @code, @command, etc is more appropriate.
34716 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
34718 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
34719 of -mrecip= documentation.
34721 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34724 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
34725 correct reload handler if -m32 -mpowerpc64 is used.
34727 2015-01-06 Tom de Vries <tom@codesourcery.com>
34729 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
34731 2015-01-08 Christian Bruel <christian.bruel@st.com>
34734 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
34736 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
34738 PR tree-optimization/63259
34739 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
34740 if optab exists for 16bit byteswap.
34742 2015-01-06 Jakub Jelinek <jakub@redhat.com>
34744 * opts.c (common_handle_option): Add support for
34745 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
34746 * doc/invoke.texi: Document -fno-sanitize=all,
34747 -f{,no-}sanitize-recover=all. Document that
34748 -fsanitize=float-cast-overflow is not enabled
34749 by -fsanitize=undefined. Fix up documentation
34750 of -f{,no-}sanitize-recover.
34752 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
34754 * config.gcc: Add Visium support.
34755 * configure.ac: Likewise.
34756 * configure: Regenerate.
34757 * doc/extend.texi (interrupt attribute): Add Visium.
34758 * doc/invoke.texi: Document Visium options.
34759 * doc/install.texi: Document Visium target.
34760 * doc/md.texi: Document Visium constraints.
34761 * common/config/visium: New directory.
34762 * config/visium: Likewise.
34764 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
34766 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
34767 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
34769 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
34771 * combine.c (combine_validate_cost): Do not count the cost of a
34772 split I2 twice. Do not display it twice in the dump, either.
34774 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
34776 Revert parts of r219199.
34777 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
34779 ([-Wtraditional]): Restore markup on <limits.h>.
34781 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
34784 * doc/invoke.texi: Document -Wsuggest-override.
34786 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
34788 PR rtl-optimization/64287
34789 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
34790 (process_options): Disable flag_ipa_ra if profiling.
34792 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
34794 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
34796 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
34798 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
34799 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
34800 put under #if TARGET_LOOPS guard.
34802 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
34804 * config/i386/i386.c (output_387_binary_op): Use std::swap.
34806 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
34808 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
34809 * rtl.h (refers_to_regno_p): Add overload.
34811 * bt-load.c: Likewise.
34812 * combine.c: Likewise.
34813 * df-scan.c: Likewise.
34814 * sched-deps.c: Likewise.
34815 * config/s390/s390.c: Likewise.
34816 * config/m32r/m32r.c: Likewise.
34817 * config/rs6000/spe.md: Likewise.
34818 * config/rs6000/rs6000.c: Likewise.
34819 * config/pa/pa.c: Likewise.
34820 * config/stormy16/stormy16.c: Likewise.
34821 * config/cris/cris.c: Likewise.
34822 * config/arc/arc.md: Likewise.
34823 * config/arc/arc.c: Likewise.
34824 * config/sh/sh.md: Likewise.
34825 * config/sh/sh.c: Likewise.
34826 * config/frv/frv.c: Likewise.
34828 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34831 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
34832 call as cleanup of the whole body.
34833 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
34834 * tsan.c (replace_func_exit): New function.
34835 (instrument_func_exit): Moved earlier.
34836 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
34837 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
34839 (tsan_pass): Don't call instrument_func_exit.
34840 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
34841 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
34845 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
34846 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
34847 it to libubsan handler instead of EXPR. Fold comparisons earlier,
34848 if the result is integer_zerop, return NULL_TREE.
34849 * convert.c (convert_to_integer): Pass expr as ARG.
34851 PR tree-optimization/64465
34852 * tree-inline.c (redirect_all_calls): During inlining
34853 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
34854 changed the stmt to a non-throwing call.
34856 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
34858 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
34859 etc markup throughout the file.
34861 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
34863 Enable experimental TSAN support for Ada.
34864 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
34866 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34868 PR tree-optimization/64494
34869 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
34870 clear SSA_NAME_ANTI_RANGE_P flag.
34872 2015-01-05 Marek Polacek <polacek@redhat.com>
34874 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
34876 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34878 Update copyright years.
34880 * gcc.c (process_command): Update copyright notice dates.
34881 * gcov-dump.c: Ditto.
34883 * doc/cpp.texi: Bump @copying's copyright year.
34884 * doc/cppinternals.texi: Ditto.
34885 * doc/gcc.texi: Ditto.
34886 * doc/gccint.texi: Ditto.
34887 * doc/gcov.texi: Ditto.
34888 * doc/install.texi: Ditto.
34889 * doc/invoke.texi: Ditto.
34891 * auto-profile.c, auto-profile.h: Fix up Copyright line.
34893 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
34895 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
34897 ([-fvtable-verify], [-fvtv-debug]): Likewise.
34898 ([-Wabi]): Likewise.
34899 ([-fmessage-length]): Likewise.
34900 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
34901 ([-Wno-discarded-qualifiers]): Likewise.
34902 ([-Wnodiscarded-array-qualifiers]): Likewise.
34903 ([-Wno-virtual-move-assign]): Likewise.
34904 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
34905 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
34906 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
34907 ([-fsanitize-undefined-trap-on-error]): Likewise.
34908 ([-floop-interchange]): Likewise.
34909 ([-ftree-coalesce-inlined-vars]): Likewise.
34910 ([-fvect-cost-model]): Likewise.
34911 ([-flto]): Likewise.
34912 ([--param]): Likewise.
34913 (Spec Files): Likewise.
34914 ([-mstrict-align]): Likewise.
34915 ([-mfix-cortex-a53-835769]): Likewise.
34916 ([-march], [-mtune]): Likewise.
34917 ([-mpic-register]): Likewise.
34918 ([-munaligned-access]): Likewise.
34919 ([-msp8]): Likewise.
34920 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
34921 (AVR Built-in Macros): Likewise.
34922 ([-mpreferred-stack-boundary]): Likewise.
34923 ([-mtune-crtl]): Likewise.
34924 ([-mashf]): Likewise.
34925 ([-mmcu=]): Likewise.
34926 ([-minrt]): Likewise.
34927 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
34928 ([-mupper-regs]): Likewise.
34929 ([-matomic-model]): Likewise.
34930 ([-mdiv]): Likewise.
34931 ([-mzdcbranch]): Likewise.
34932 ([-mdisable-callt]): Likewise.
34933 ([-msoft-float]): Likewise.
34934 ([-m8byte-align]): Likewise.
34935 ([-fstack-reuse]): Likewise.
34937 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34939 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
34940 Fix markup, light copy-editing.
34941 ([-fauto-profile]): Rewrite to fix formatting and content
34944 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34946 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
34947 Copy-edit description.
34948 ([-fisolate-erroneous-paths-attribute]): Likewise.
34949 * common.opt (fisolate-erroneous-paths-dereference):
34950 Copy-edit description.
34951 (fisolate-erroneous-paths-attribute): Likewise.
34953 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34955 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
34958 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34960 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
34961 ([-fvtv-debug]): Likewise.
34962 ([-Wc++-compat]): Likewise.
34963 ([-Wc++11-compat]): Likewise.
34964 ([-Wc++14-compat]): Likewise.
34965 ([-Wno-sized-deallocation]): Likewise.
34966 ([-femit-class-debug-always]): Likewise.
34967 ([-femit-struct-debug-detailed]): Likewise.
34968 ([-fno-keep-inline-dllexport]): Likewise.
34969 ([-fira-algorithm]): Likewise.
34970 ([-fira-region]): Likewise.
34971 ([-flra-remat]): Likewise.
34972 ([-fipa-ra]): Likewise.
34973 ([-fhoist-adjacent-loads]): Likewise.
34974 ([-fisolate-erroneous-paths-dereference]): Likewise.
34975 ([-fisolate-erroneous-paths-attribute]): Likewise.
34976 ([-ftree-switch-conversion]): Likewise.
34977 ([-ftree-tail-merge]): Likewise.
34978 ([-ftree-loop-if-convert]): Likewise.
34979 ([-ftree-loop-if-convert-stores]): Likewise.
34980 ([-ftree-loop-distribution]): Likewise.
34981 ([-ftree-loop-distribute-patterns]): Likewise.
34982 ([-flto-compression-level]): Likewise.
34983 ([-flto-report]): Likewise.
34984 ([-flto-report-wpa]): Likewise.
34985 ([-fuse-linker-plugin]): Likewise.
34986 ([-mfix-cortex-a53-835769]): Likewise.
34987 ([-mno-fix-cortex-a53-835769]): Likewise.
34988 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
34989 explicit listing; add a note to the discussion indicating they
34990 exist. Reorder table to group similar options. Add missing
34991 @opindex entries. Add @need commands throughout the table to
34992 allow it to be split across multiple pages.
34993 ([-m8bit-idiv]): Fix @opindex.
34994 ([-mavx256-split-unaligned-load]): Likewise.
34995 ([-mavx256-split-unaligned-store]): Likewise.
34996 ([-mstack-protector-guard]): Likewise.
34997 ([-mcpu=]): Likewise.
34998 ([-mcpu]): Likewise.
34999 ([-mpointer-size=]): Likewise.
35001 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
35003 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
35004 instead of `m' constraint. Likewise for unnamed movb comparison
35005 patterns using reg_before_reload_operand predicate.
35006 * config/pa/predicates.md (reg_before_reload_operand): Tighten
35007 predicate to reject register index and LO_SUM DLT memory forms
35010 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
35012 * doc/invoke.texi (Option Summary): Fix spelling of
35013 -fdevirtualize-at-ltrans.
35014 ([-fdevirtualize]): Fix markup.
35015 ([-fdevirtualize-speculatively]): Fix typo.
35016 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
35017 implementor-speaky.
35018 * common.opt (fdevirtualize-at-ltrans): Likewise.
35019 * ipa-devirt.c: Fix typos in comments throughout the file.
35020 (ipa_devirt): Fix typos in format strings for dump output.
35022 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
35024 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
35025 discussion of defaults, light copy-editing.
35027 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
35029 * tsan.c (instrument_expr): corrected previous checkin.
35031 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
35033 Instrument bit field and unaligned accesses for TSAN.
35034 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
35035 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
35036 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
35037 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
35038 unaligned memory regions.
35040 2015-01-01 Anthony Green <green@moxielogic.com>
35042 * config/moxie/predicates.md (moxie_general_movsrc_operand):
35043 Restrict move source register offsets to 16 bits.
35045 Copyright (C) 2015 Free Software Foundation, Inc.
35047 Copying and distribution of this file, with or without modification,
35048 are permitted in any medium without royalty provided the copyright
35049 notice and this notice are preserved.