Remove superfluous gcc/ prefixes
[gcc.git] / gcc / ChangeLog
1 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
2
3 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
4 check for aggregate types and beef up comment for mode check.
5
6 2015-11-03 Richard Biener <rguenther@suse.de>
7
8 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
9 data references here.
10 * tree-vect-loop.c: Include cgraph.h.
11 (vect_analyze_loop_2): Collect data references here.
12 * tree-vect-slp.c (find_bb_location): Inline ...
13 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
14 Factor in vect_slp_transform_bb.
15 (vect_slp_transform_bb): Removed.
16 (vect_slp_analyze_bb_1): Collect data references here.
17 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
18 vect_slp_bb.
19 * tree-vectorizer.h (vect_slp_bb): Declare.
20 (vect_slp_analyze_bb): Remove.
21 (vect_slp_transform_bb): Remove.
22 (find_bb_location): Remove.
23 (vect_analyze_data_refs): Remove stmt count reference parameter.
24
25 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
26
27 * multiple_target.c (create_dispatcher_calls): Add target check
28 on ifunc.
29 (create_target_clone): Change assembler name for versioned declarations.
30
31 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
32 Chung-Lin Tang <cltang@codesourcery.com>
33
34 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
35 * omp-low.c (check_omp_nesting_restrictions): Allow
36 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
37 contexts.
38
39 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
40
41 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
42 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
43 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
44 builtin.
45 (vmulxq_f32): Likewise.
46 (vmulx_f64): New.
47 (vmulxq_f64): Rewrite to call fmulx builtin.
48 (vmulxs_f32): Likewise.
49 (vmulxd_f64): Likewise.
50 (vmulx_lane_f32): Remove.
51 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
52
53 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
54
55 * config/aarch64/aarch64.md (*movhf_aarch64): Use
56 aarch64_reg_or_fp_zero for second operand.
57
58 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
59
60 * gimple-expr.c: Include hash-set.h and rtl.h.
61 (mark_addressable_queue): New var.
62 (mark_addressable): Factor actual marking into...
63 (mark_addressable_1): ... this. Queue it up during expand.
64 (mark_addressable_2): New.
65 (flush_mark_addressable_queue): New.
66 * gimple-expr.h (flush_mark_addressable_queue): Declare.
67 * cfgexpand.c: Include gimple-expr.h.
68 (pass_expand::execute): Flush mark_addressable queue.
69
70 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
71
72 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
73 bb_no_side_effects_p tests...
74 (tree_ssa_ifcombine_bb): ... here.
75
76 PR tree-optimization/68083
77 * tree-ssa-ifcombine.c: Include tree-ssa.h.
78 (bb_no_side_effects_p): Test for undefined uses too.
79 * tree-ssa.c (gimple_uses_undefined_value_p): New.
80 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
81
82 2015-11-02 Jeff Law <jeff@redhat.com>
83
84 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
85 cases where the loop latch edge is in the middle of an FSM path.
86
87 2015-11-03 Tom de Vries <tom@codesourcery.com>
88
89 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
90 (make_param_constraints): ... this. Add and handle restrict_name
91 parameter. Handle is_full_var case.
92 (intra_create_variable_infos): Use make_param_constraints.
93
94 2015-11-03 Tom de Vries <tom@codesourcery.com>
95
96 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
97 make_copy_constraint call with make_constraint_from call.
98
99 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
100
101 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
102 PIE executables.
103
104 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
105
106 * builtins.h (fold_fma): Move to fold-const-call.h.
107 * builtins.c: Include fold-const-call.h.
108 (mathfn_built_in_2): New function, split out from...
109 (mathfn_built_in_1): ...here.
110 (do_real_to_int_conversion, fold_const_builtin_pow)
111 (fold_const_builtin_logb, fold_const_builtin_significand)
112 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
113 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
114 (fold_builtin_sincos): Use fold_const_call to handle constants.
115 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
116 checks for ERROR_MARK. Use fold_const_call to handle constant
117 folds for math functions.
118 (fold_fma): Move to fold-const-call.c.
119 * fold-const.c: Include fold-const-call.h.
120 * Makefile.in (OBJS): Add fold-const-call.o.
121 (PLUGIN_HEADERS): Add fold-const-call.h.
122 * realmpfr.h (real_from_mpfr): Allow the format to be specified
123 directly.
124 * realmpfr.c (real_from_mpfr): Likewise.
125 * fold-const-call.h, fold-const-call.c: New files.
126
127 2015-11-02 Julian Brown <julian@codesourcery.com>
128
129 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
130 brackets and semicolon.
131
132 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
133
134 Revert:
135 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
136
137 PR tree-optimization/65963
138 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
139 LSHIFT_EXPRs as equivalent MULT_EXPRs.
140
141 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
142
143 PR middle-end/68166
144 * fold-const.c: Include "md5.h".
145
146 2015-11-01 Jeff Law <jeff@redhat.com>
147
148 * vmsdbgout.c: Revert unused header file reduction patch.
149
150 * config/mcore/mcore.c: Include regs.h.
151
152 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
153
154 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
155
156 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
157
158 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
159 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
160 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
161
162 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
163
164 * ggc-common.c: Restore needed header for checking=release.
165
166 2015-10-31 Tom de Vries <tom@codesourcery.com>
167
168 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
169
170 2015-10-31 Tom de Vries <tom@codesourcery.com>
171
172 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
173 existing varinfo for arguments.
174
175 2015-10-31 Tom de Vries <tom@codesourcery.com>
176
177 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
178 create_function_info_for. Dump constraints generated during
179 create_function_info_for. Move intra_create_variable_infos call and
180 function-return-values-escape bit to ...
181 (create_function_info_for): ... here, and merge
182 intra_create_variable_infos call with argument loop. Add and handle
183 nonlocal_p parameter.
184
185 2015-10-31 Tom de Vries <tom@codesourcery.com>
186
187 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
188 updating is alap, and seperated from preceding code. Make sure
189 insert_vi_for_tree is seperated from surrounding code.
190
191 2015-10-31 Tom de Vries <tom@codesourcery.com>
192
193 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
194
195 2015-10-30 Jeff Law <jeff@redhat.com>
196 Nathan Sidwell <nathan@acm.org>
197
198 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
199 args.
200 (MOVE_MAX): Set to 8.
201
202 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
203
204 * cgraph.c: Include context.h for offloading.
205 * varpool.c: Include context.h and omp-low.h.
206
207 2015-10-30 Anatoly Sokolov <aesok@post.ru>
208
209 * rtl.h (contains_symbol_ref_p): Declare.
210 (SYMBOL_REF_P): Define.
211 * rtlanal.c (contains_symbol_ref_p: New function.
212 * lra-constraints.c (contains_symbol_ref_p): Remove.
213 * var-tracking.c (contains_symbol_ref): Remove.
214 (track_expr_p): Use contains_symbol_ref_p instead of
215 contains_symbol_ref.
216
217 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
218
219 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
220 * fold-const.c (get_array_ctor_element_at_index): New.
221 (fold): Remove binary-search through CONSTRUCTOR, call previous.
222
223 * fold-const.h (get_array_ctor_element_at_index): New.
224
225 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
226
227 * Makefile.in (OBJS): Add multiple_target.o.
228 * attrib.c (make_attribute): Moved from config/i386/i386.c
229 * config/i386/i386.c (make_attribute): Deleted.
230 * multiple_target.c (create_dispatcher_calls): New.
231 (get_attr_len): Ditto.
232 (get_attr_str): Ditto.
233 (separate_attrs): Ditto.
234 (is_valid_asm_symbol): Ditto.
235 (create_new_asm_name): Ditto.
236 (create_target_clone): Ditto.
237 (expand_target_clones): Ditto.
238 (ipa_target_clone): Ditto.
239 (ipa_dispatcher_calls): Ditto.
240 * passes.def (pass_target_clone): Two new ipa passes.
241 * tree-pass.h (make_pass_target_clone): Ditto.
242 * doc/extend.texi (target_clones): New attribute description.
243
244 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
245
246 PR rtl-optimization/68106
247 * lra-remat.c (input_regno_present_p): Process hard regs
248 explicitly present in machine description insns.
249 (call_used_input_regno_present_p): Ditto.
250 (calculate_gen_cands): Ditto.
251 (do_remat): Ditto.
252
253 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
254
255 * config/arm/neon-testgen.ml: Fix comment typo.
256
257 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
258
259 * rtlanal.c (reg_set_p): Expand function comment.
260
261 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
262
263 * alias.c: Remove unused headers.
264 * asan.c: Likewise.
265 * attribs.c: Likewise.
266 * auto-inc-dec.c: Likewise.
267 * auto-profile.c: Likewise.
268 * bb-reorder.c: Likewise.
269 * bitmap.c: Likewise.
270 * bt-load.c: Likewise.
271 * builtins.c: Likewise.
272 * caller-save.c: Likewise.
273 * calls.c: Likewise.
274 * ccmp.c: Likewise.
275 * cfg.c: Likewise.
276 * cfganal.c: Likewise.
277 * cfgbuild.c: Likewise.
278 * cfgcleanup.c: Likewise.
279 * cfgexpand.c: Likewise.
280 * cfghooks.c: Likewise.
281 * cfgloop.c: Likewise.
282 * cfgloopanal.c: Likewise.
283 * cfgloopmanip.c: Likewise.
284 * cfgrtl.c: Likewise.
285 * cgraph.c: Likewise.
286 * cgraphbuild.c: Likewise.
287 * cgraphclones.c: Likewise.
288 * cgraphunit.c: Likewise.
289 * cilk-common.c: Likewise.
290 * combine-stack-adj.c: Likewise.
291 * combine.c: Likewise.
292 * compare-elim.c: Likewise.
293 * convert.c: Likewise.
294 * coverage.c: Likewise.
295 * cppbuiltin.c: Likewise.
296 * cprop.c: Likewise.
297 * cse.c: Likewise.
298 * cselib.c: Likewise.
299 * data-streamer-in.c: Likewise.
300 * data-streamer-out.c: Likewise.
301 * data-streamer.c: Likewise.
302 * dbxout.c: Likewise.
303 * dce.c: Likewise.
304 * ddg.c: Likewise.
305 * debug.c: Likewise.
306 * df-core.c: Likewise.
307 * df-problems.c: Likewise.
308 * df-scan.c: Likewise.
309 * dfp.c: Likewise.
310 * dojump.c: Likewise.
311 * dominance.c: Likewise.
312 * domwalk.c: Likewise.
313 * double-int.c: Likewise.
314 * dse.c: Likewise.
315 * dumpfile.c: Likewise.
316 * dwarf2asm.c: Likewise.
317 * dwarf2cfi.c: Likewise.
318 * dwarf2out.c: Likewise.
319 * emit-rtl.c: Likewise.
320 * except.c: Likewise.
321 * explow.c: Likewise.
322 * expmed.c: Likewise.
323 * expr.c: Likewise.
324 * final.c: Likewise.
325 * fixed-value.c: Likewise.
326 * fold-const.c: Likewise.
327 * function.c: Likewise.
328 * fwprop.c: Likewise.
329 * gcse.c: Likewise.
330 * generic-match-head.c: Likewise.
331 * ggc-common.c: Likewise.
332 * gimple-builder.c: Likewise.
333 * gimple-expr.c: Likewise.
334 * gimple-fold.c: Likewise.
335 * gimple-iterator.c: Likewise.
336 * gimple-low.c: Likewise.
337 * gimple-match-head.c: Likewise.
338 * gimple-pretty-print.c: Likewise.
339 * gimple-ssa-isolate-paths.c: Likewise.
340 * gimple-ssa-strength-reduction.c: Likewise.
341 * gimple-streamer-in.c: Likewise.
342 * gimple-streamer-out.c: Likewise.
343 * gimple-walk.c: Likewise.
344 * gimple.c: Likewise.
345 * gimplify-me.c: Likewise.
346 * gimplify.c: Likewise.
347 * godump.c: Likewise.
348 * graph.c: Likewise.
349 * graphds.c: Likewise.
350 * haifa-sched.c: Likewise.
351 * hw-doloop.c: Likewise.
352 * ifcvt.c: Likewise.
353 * init-regs.c: Likewise.
354 * internal-fn.c: Likewise.
355 * ipa-chkp.c: Likewise.
356 * ipa-comdats.c: Likewise.
357 * ipa-cp.c: Likewise.
358 * ipa-devirt.c: Likewise.
359 * ipa-icf-gimple.c: Likewise.
360 * ipa-icf.c: Likewise.
361 * ipa-inline-analysis.c: Likewise.
362 * ipa-inline-transform.c: Likewise.
363 * ipa-inline.c: Likewise.
364 * ipa-polymorphic-call.c: Likewise.
365 * ipa-profile.c: Likewise.
366 * ipa-prop.c: Likewise.
367 * ipa-pure-const.c: Likewise.
368 * ipa-ref.c: Likewise.
369 * ipa-reference.c: Likewise.
370 * ipa-split.c: Likewise.
371 * ipa-utils.c: Likewise.
372 * ipa-visibility.c: Likewise.
373 * ipa.c: Likewise.
374 * ira-build.c: Likewise.
375 * ira-color.c: Likewise.
376 * ira-conflicts.c: Likewise.
377 * ira-costs.c: Likewise.
378 * ira-emit.c: Likewise.
379 * ira-lives.c: Likewise.
380 * ira.c: Likewise.
381 * jump.c: Likewise.
382 * langhooks.c: Likewise.
383 * lcm.c: Likewise.
384 * lists.c: Likewise.
385 * loop-doloop.c: Likewise.
386 * loop-init.c: Likewise.
387 * loop-invariant.c: Likewise.
388 * loop-iv.c: Likewise.
389 * loop-unroll.c: Likewise.
390 * lower-subreg.c: Likewise.
391 * lra-assigns.c: Likewise.
392 * lra-coalesce.c: Likewise.
393 * lra-constraints.c: Likewise.
394 * lra-eliminations.c: Likewise.
395 * lra-lives.c: Likewise.
396 * lra-remat.c: Likewise.
397 * lra-spills.c: Likewise.
398 * lra.c: Likewise.
399 * lto-cgraph.c: Likewise.
400 * lto-compress.c: Likewise.
401 * lto-opts.c: Likewise.
402 * lto-section-in.c: Likewise.
403 * lto-section-out.c: Likewise.
404 * lto-streamer-in.c: Likewise.
405 * lto-streamer-out.c: Likewise.
406 * lto-streamer.c: Likewise.
407 * mcf.c: Likewise.
408 * mode-switching.c: Likewise.
409 * modulo-sched.c: Likewise.
410 * optabs.c: Likewise.
411 * opts-global.c: Likewise.
412 * passes.c: Likewise.
413 * plugin.c: Likewise.
414 * postreload-gcse.c: Likewise.
415 * postreload.c: Likewise.
416 * predict.c: Likewise.
417 * print-tree.c: Likewise.
418 * profile.c: Likewise.
419 * real.c: Likewise.
420 * realmpfr.c: Likewise.
421 * recog.c: Likewise.
422 * ree.c: Likewise.
423 * reg-stack.c: Likewise.
424 * regcprop.c: Likewise.
425 * reginfo.c: Likewise.
426 * regrename.c: Likewise.
427 * regstat.c: Likewise.
428 * reload.c: Likewise.
429 * reload1.c: Likewise.
430 * reorg.c: Likewise.
431 * resource.c: Likewise.
432 * rtl-chkp.c: Likewise.
433 * rtl-error.c: Likewise.
434 * rtlanal.c: Likewise.
435 * rtlhooks.c: Likewise.
436 * sanopt.c: Likewise.
437 * sched-deps.c: Likewise.
438 * sched-ebb.c: Likewise.
439 * sched-rgn.c: Likewise.
440 * sdbout.c: Likewise.
441 * sel-sched-dump.c: Likewise.
442 * sel-sched-ir.c: Likewise.
443 * sel-sched.c: Likewise.
444 * sese.c: Likewise.
445 * shrink-wrap.c: Likewise.
446 * simplify-rtx.c: Likewise.
447 * stack-ptr-mod.c: Likewise.
448 * statistics.c: Likewise.
449 * stmt.c: Likewise.
450 * stor-layout.c: Likewise.
451 * store-motion.c: Likewise.
452 * stringpool.c: Likewise.
453 * symtab.c: Likewise.
454 * target-globals.c: Likewise.
455 * targhooks.c: Likewise.
456 * toplev.c: Likewise.
457 * tracer.c: Likewise.
458 * trans-mem.c: Likewise.
459 * tree-affine.c: Likewise.
460 * tree-call-cdce.c: Likewise.
461 * tree-cfg.c: Likewise.
462 * tree-cfgcleanup.c: Likewise.
463 * tree-chkp-opt.c: Likewise.
464 * tree-chkp.c: Likewise.
465 * tree-chrec.c: Likewise.
466 * tree-complex.c: Likewise.
467 * tree-data-ref.c: Likewise.
468 * tree-dfa.c: Likewise.
469 * tree-diagnostic.c: Likewise.
470 * tree-dump.c: Likewise.
471 * tree-eh.c: Likewise.
472 * tree-emutls.c: Likewise.
473 * tree-if-conv.c: Likewise.
474 * tree-inline.c: Likewise.
475 * tree-into-ssa.c: Likewise.
476 * tree-iterator.c: Likewise.
477 * tree-loop-distribution.c: Likewise.
478 * tree-nested.c: Likewise.
479 * tree-nrv.c: Likewise.
480 * tree-object-size.c: Likewise.
481 * tree-outof-ssa.c: Likewise.
482 * tree-parloops.c: Likewise.
483 * tree-phinodes.c: Likewise.
484 * tree-predcom.c: Likewise.
485 * tree-pretty-print.c: Likewise.
486 * tree-profile.c: Likewise.
487 * tree-scalar-evolution.c: Likewise.
488 * tree-sra.c: Likewise.
489 * tree-ssa-address.c: Likewise.
490 * tree-ssa-alias.c: Likewise.
491 * tree-ssa-ccp.c: Likewise.
492 * tree-ssa-coalesce.c: Likewise.
493 * tree-ssa-copy.c: Likewise.
494 * tree-ssa-dce.c: Likewise.
495 * tree-ssa-dse.c: Likewise.
496 * tree-ssa-forwprop.c: Likewise.
497 * tree-ssa-ifcombine.c: Likewise.
498 * tree-ssa-live.c: Likewise.
499 * tree-ssa-loop-ch.c: Likewise.
500 * tree-ssa-loop-im.c: Likewise.
501 * tree-ssa-loop-ivcanon.c: Likewise.
502 * tree-ssa-loop-ivopts.c: Likewise.
503 * tree-ssa-loop-manip.c: Likewise.
504 * tree-ssa-loop-niter.c: Likewise.
505 * tree-ssa-loop-prefetch.c: Likewise.
506 * tree-ssa-loop-unswitch.c: Likewise.
507 * tree-ssa-loop.c: Likewise.
508 * tree-ssa-math-opts.c: Likewise.
509 * tree-ssa-operands.c: Likewise.
510 * tree-ssa-phiopt.c: Likewise.
511 * tree-ssa-phiprop.c: Likewise.
512 * tree-ssa-pre.c: Likewise.
513 * tree-ssa-propagate.c: Likewise.
514 * tree-ssa-reassoc.c: Likewise.
515 * tree-ssa-scopedtables.c: Likewise.
516 * tree-ssa-sink.c: Likewise.
517 * tree-ssa-strlen.c: Likewise.
518 * tree-ssa-structalias.c: Likewise.
519 * tree-ssa-tail-merge.c: Likewise.
520 * tree-ssa-ter.c: Likewise.
521 * tree-ssa-threadupdate.c: Likewise.
522 * tree-ssa-uncprop.c: Likewise.
523 * tree-ssa-uninit.c: Likewise.
524 * tree-ssa.c: Likewise.
525 * tree-ssanames.c: Likewise.
526 * tree-stdarg.c: Likewise.
527 * tree-streamer-in.c: Likewise.
528 * tree-streamer-out.c: Likewise.
529 * tree-streamer.c: Likewise.
530 * tree-switch-conversion.c: Likewise.
531 * tree-tailcall.c: Likewise.
532 * tree-vect-data-refs.c: Likewise.
533 * tree-vect-generic.c: Likewise.
534 * tree-vect-loop-manip.c: Likewise.
535 * tree-vect-loop.c: Likewise.
536 * tree-vect-patterns.c: Likewise.
537 * tree-vect-slp.c: Likewise.
538 * tree-vect-stmts.c: Likewise.
539 * tree-vectorizer.c: Likewise.
540 * tree-vrp.c: Likewise.
541 * tree.c: Likewise.
542 * tsan.c: Likewise.
543 * ubsan.c: Likewise.
544 * value-prof.c: Likewise.
545 * var-tracking.c: Likewise.
546 * varasm.c: Likewise.
547 * varpool.c: Likewise.
548 * vmsdbgout.c: Likewise.
549 * vtable-verify.c: Likewise.
550 * web.c: Likewise.
551 * wide-int-print.cc: Likewise.
552 * wide-int.cc: Likewise.
553 * xcoffout.c: Likewise.
554
555 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
556
557 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
558 between pass numbering and execution order.
559
560 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
561
562 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
563 check for dependencies.
564
565 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
566
567 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
568 CDI_DOMINATORS.
569
570 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
571
572 * real.h (format_helper): New.
573 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
574 (real_from_target, real_nan, real_2expN, real_value_truncate)
575 (significand_size, real_from_string2, exact_real_inverse)
576 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
577 (real_round, real_isinteger, real_from_integer): Replace
578 machine_mode arguments with format_helper arguments.
579 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
580 (real_from_integer, real_nan, real_2expN, real_convert)
581 (real_value_truncate, exact_real_truncate, real_to_target)
582 (real_from_target, significand_size, real_powi, real_trunc)
583 (real_floor, real_ceil, real_round, real_isinteger): Replace
584 machine_mode arguments with format_helper arguments.
585 (real_to_target_fmt, real_from_target_fmt): Delete.
586 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
587 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
588 argument with real_format.
589 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
590
591 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
592
593 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
594 (fixed_to_decimal, fixed_convert_from_real)
595 (real_convert_from_fixed): Fix mode arguments to real_2expN.
596
597 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
598
599 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
600 SCALAR_FLOAT_MODE_P.
601
602 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
603
604 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
605 (completely_scalarize): Comment zero-length arrays.
606 (get_access_replacement): Correct comment re. precondition.
607
608 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
609
610 * config/i386/i386.c (get_builtin_code_for_version): Set priority
611 for PROCESSOR_ZNVER1.
612 (enum processor_model): Add M_AMDFAM17H_znver1.
613 (struct arch_names_table): Likewise.
614 * doc/extend.texi: ADD znver1.
615
616 2015-10-30 Richard Biener <rguenther@suse.de>
617
618 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
619 fold () on single RHSs. Allow CONSTRUCTORS with trailing
620 zeros to be folded to VECTOR_CSTs.
621 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
622 * fold-const.c (fold): Use build_vector_from_ctor.
623
624 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
625
626 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
627 "mov %0.h[0], %1.h[0] to "neon_move".
628 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
629 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
630 "mov_imm".
631 (*cmovsi_insn_uxtw): Likewise.
632
633 2015-10-30 Tom de Vries <tom@codesourcery.com>
634
635 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
636 unsigned, and initialize, and use initial value instead of hardcoded
637 constant. Add generic constraints dumping section. Don't dump global
638 initializers constraints dumping section if empty. Don't update
639 variable from if unused.
640
641 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
642
643 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
644 flag_checking and/or CHECKING_P to eliminate conditional compilation
645 on ENABLE_CHECKING.
646 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
647 * config/bfin/bfin.c (hwloop_optimize): Likewise.
648 * config/i386/i386.c (ix86_print_operand_address): Likewise.
649 (output_387_binary_op): Likewise.
650 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
651 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
652 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
653 Likewise.
654 * config/rs6000/rs6000.h: Likewise.
655 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
656
657 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
658
659 * config/sh/sh.opt (mfdpic): Add missing period.
660
661 2015-08-29 Anatoly Sokolov <aesok@post.ru>
662
663 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
664 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
665 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
666 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
667 mcore_base_register_rtx_p, mcore_legitimate_index_p,
668 mcore_legitimate_address_p): New functions.
669 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
670
671 2015-10-29 Jeff Law <law@redhat.com>
672
673 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
674 method.
675 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
676 * tree-ssa-threadedge.c
677 (record_temporary_equivalences_from_stmts_at_dest): Remove
678 backedge_seen argument and associated code which invalidated
679 equivalences based on the value of that argument.
680 (thread_through_normal_block): Corresponding changes.
681
682 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
683
684 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
685 function earlier in the file.
686 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
687 df_regs_ever_live_p.
688
689 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
690
691 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
692 by ignoring it.
693
694 2015-10-29 Richard Henderson <rth@redhat.com>
695
696 PR target/68124
697 PR rtl-opt/67609
698 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
699 sse check to the exact conditions of PR 67609.
700
701 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
702
703 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
704 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
705 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
706 of the traditional names that TFmode uses for handling IEEE
707 extended double. If -mfloat128, add KFmode functions for all of
708 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
709 make TFmode use the same emulation functions as KFmode.
710 (init_float128_ibm): Likewise.
711 (init_float128_ieee): Likewise.
712 (rs6000_generate_compare): For IEEE 128-bit floating point
713 comparisons, call the unordered comparison function instead of the
714 ordered comparison function.
715 (rs6000_expand_float128_convert): Deal with operands that are
716 memory operands. Restructure the code to use a switch statement on
717 the mode. Add support for TFmode defaulting to either IBM extended
718 double or IEEE 128-bit floating point. If the underlying types are
719 the same, use a move instead of a conversion function.
720 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
721 use for IEEE 128-bit floating point constants with -mfloat128.
722 (rs6000_c_mode_for_suffix): Likewise.
723 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
724 128-bit floating point with IBM extended double floating point.
725 (rs6000_invalid_binary_op): Likewise.
726 (rs6000_gen_le_vsx_permute): On little endian systems generate a
727 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
728 types that can go in vector registers.
729 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
730 point types that can go in vector registers on little endian
731 PowerPC systems.
732 (mark_swaps_for_removal): Likewise.
733 (rs6000_analyze_swaps): Likewise.
734 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
735
736 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
737 rework IEEE 128-bit floating point insns to deal with TFmode being
738 either IBM extended double or IEEE 128-bit floating point.
739 (IFKF): Likewise.
740 (IBM128): Update iterator to add condition that the mode is IBM
741 extended double.
742 (IEEE128): New iterator for IEEE 128-bit floating point.
743 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
744 (FLOAT128): Likewise.
745 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
746 iterator.
747 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
748 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
749 instead of hard coding TFmode or KFmode.
750 (negtf2_internal): Likewise.
751 (neg<mode>2_internal): Likewise.
752 (abs<mode>2): Likewise.
753 (abstf2_internal): Likewise.
754 (abs<mode>2_internal): Likewise.
755 (ieee_128bit_neg<mode>2): Likewise.
756 (ieee_128bit_neg<mode>2_internal): Likewise.
757 (ieee_128bit_abs<mode>2): Likewise.
758 (ieee_128bit_abs<mode>2_internal): Likewise.
759 (ieee_128bit_nabs<mode>2): Likewise.
760 (ieee_128bit_nabs<mode>2_internal): Likewise.
761 (extendiftf2): Add explicit conversions between 128-bit floating
762 point types. Drop the old conversions that had become unwieldy.
763 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
764 (extendifkf2): Likewise.
765 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
766 (extendtfkf2): Likewise.
767 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
768 (trunciftf2): Likewise.
769 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
770 (truncifkf2): Likewise.
771 (float<SDI:mode><IFKF:mode>2): Likewise.
772 (trunckftf2): Likewise.
773 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
774 (trunctfif2): Likewise.
775 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
776 (extenddftf2): Rework 128-bit floating point conversions to
777 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
778 KFmode expanders into one function.
779 (extenddf<mode>2): Likewise.
780 (extenddftf2_fprs): Likewise.
781 (extenddf<mode>2_fprs): Likewise.
782 (extenddftf2_vsx): Likewise.
783 (extenddf<mode>2_vsx): Likewise.
784 (extendsftf2): Likewise.
785 (extendsf<mode>2): Likewise.
786 (trunctfdf2): Likewise.
787 (trunc<mode>df2): Likewise.
788 (trunctfdf2_internal1): Likewise.
789 (trunc<mode>df2_internal1): Likewise.
790 (trunctfdf2_internal2): Likewise.
791 (trunc<mode>df2_internal2): Likewise.
792 (trunctfsf2): Likewise.
793 (trunc<mode>sf2): Likewise.
794 (trunctfsf2_fprs): Likewise.
795 (trunc<mode>sf2_fprs): Likewise.
796 (floatsit2f): Likewise.
797 (floatsi<mode>2): Likewise.
798 (fix_trunc_helper): Likewise.
799 (fix_trunc_helper<mode>): Likewise.
800 (fix_trunctfsi2): Likewise.
801 (fix_trunc<mode>si2): Likewise.
802 (fix_trunctfsi2_fprs): Likewise.
803 (fix_trunc<mode>si2_fprs): Likewise.
804 (fix_trunctfsi2_internal): Likewise.
805 (fix_trunc<mode>si2_internal): Likewise.
806 (fix_trunctfdi2): Likewise.
807 (fix_trunc<mode>di2): Likewise.
808 (fixuns_trunctf<mode>2): Likewise.
809 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
810 (floatditf2): Likewise.
811 (floatdi<mode>2): Likewise.
812 (floatuns<mode>tf2): Likewise.
813 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
814 (cmptf_internal1): Use a mode iterator to add support for both
815 types (IFmode, TFmode) that support IBM extended double.
816 (cmp<mode>_internal1): Likewise.
817 (cmptf_internal2): Likewise.
818 (cmp<mode>_internal2): Likewise.
819
820 * doc/extend.texi (Floating Types): Document __ibm128 and
821 __float128 on PowerPC.
822
823 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
824 -mfloat128 and -mno-float128.
825
826 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
827
828 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
829 floating point modes that can go in vector registers.
830 (MODES_TIEABLE_P): Move tests for vector modes before tests for
831 scalar floating point, so that IEEE 128-bit floating point that
832 can go in vector registers bind with vectors and not FP.
833 (struct rs6000_args): Add libcall field.
834
835 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
836 and -mfloat128-software switches. Replace them with a binary
837 -mfloat128 switch.
838 (-mfloat128): Likewise.
839
840 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
841 128-bit floating point types in GPRs, even if the appropriate
842 option enabling the type was not used.
843 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
844 debugging.
845 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
846 pre-decrement on IEEE 128-bit floating point values.
847 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
848 is IEEE 128-bit floating point.
849 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
850 128-bit floating point types that can go in vector registers.
851 (rs6000_option_override_internal): Change -mfloat128-none and
852 -mfloat128-software to -mfloat128, and move code to be near other
853 VSX option handling.
854 (rs6000_option_override_internal): Disable -mfloat128 if we don't
855 have the Altivec ABI.
856 (rs6000_init_builtins): Don't make TFmode use either IFmode or
857 KFmode floating point nodes. Instead, have three separate nodes.
858 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
859 eventually moving the long double default to IEEE 128-bit floating
860 point.
861 (rs6000_opt_masks): Add -mfloat128.
862 (struct rs6000_opt_var): Fix typo in comment.
863 (init_cumulative_args): Initialize libcall field in
864 CUMULATIVE_ARGS.
865 (rs6000_function_arg): Treat library functions as if they had
866 prototypes to prevent IEEE 128-bit support functions from passing
867 arguments in both GPRs and vector registers.
868 (rs6000_arg_partial_bytes): Likewise.
869
870 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
871 an option that can be turned on via -mcpu=<xxx>.
872
873 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
874 longer used.
875
876 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
877 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
878 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
879 double is IBM extended double.
880
881 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
882 SUBREGs.
883
884 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
885
886 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
887 * genconditions.c: Define CHECKING_P in the generated code.
888 * genextract.c: Use flag_checking in insn_extract.
889 * gengtype.c (main): Remove conditional compilation.
890 * gengtype.h: Likewise.
891
892 2015-10-29 Jeff Law <law@redhat.com>
893
894 PR tree-optimization/67892
895 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
896 in comment.
897 (thread_through_normal_block): If we have seen a backedge, then
898 do nothing. No longer call find_jump_threads_backwards here.
899 (thread_across_edge): Use find_jump_threads_backwards to find
900 jump threads if the old style threader was not successful.
901 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
902 gsi_last_nondebug_bb. Return NULL if the block does not end
903 with a control statement.
904 (find_jump_threads_backwards): Setup code moved here from
905 tree-ssa-threadedge.c::thread_through_normal_block. Accept
906 single edge argument instead of name & block.
907 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
908 prototype.
909
910 2015-10-29 Tom de Vries <tom@codesourcery.com>
911
912 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
913 types.
914
915 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
916
917 * omp-low.c (lower_omp_target): Remove unreachable code & merge
918 ifs.
919
920 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
921
922 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
923
924 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
925
926 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
927 guard_bb0 and use guard_bb throughout.
928
929 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
930
931 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
932 unnecessary label.
933
934 2015-10-29 Richard Biener <rguenther@suse.de>
935
936 PR middle-end/68142
937 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
938 overflow.
939
940 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
941
942 * alias.c: Reorder #include statements and remove duplicates.
943 * asan.c: Likewise.
944 * attribs.c: Likewise.
945 * auto-inc-dec.c: Likewise.
946 * auto-profile.c: Likewise.
947 * bb-reorder.c: Likewise.
948 * bt-load.c: Likewise.
949 * builtins.c: Likewise.
950 * caller-save.c: Likewise.
951 * calls.c: Likewise.
952 * ccmp.c: Likewise.
953 * cfg.c: Likewise.
954 * cfganal.c: Likewise.
955 * cfgbuild.c: Likewise.
956 * cfgcleanup.c: Likewise.
957 * cfgexpand.c: Likewise.
958 * cfghooks.c: Likewise.
959 * cfgloop.c: Likewise.
960 * cfgloopanal.c: Likewise.
961 * cfgloopmanip.c: Likewise.
962 * cfgrtl.c: Likewise.
963 * cgraph.c: Likewise.
964 * cgraphbuild.c: Likewise.
965 * cgraphclones.c: Likewise.
966 * cgraphunit.c: Likewise.
967 * cilk-common.c: Likewise.
968 * combine-stack-adj.c: Likewise.
969 * combine.c: Likewise.
970 * compare-elim.c: Likewise.
971 * convert.c: Likewise.
972 * coverage.c: Likewise.
973 * cppbuiltin.c: Likewise.
974 * cprop.c: Likewise.
975 * cse.c: Likewise.
976 * cselib.c: Likewise.
977 * data-streamer-in.c: Likewise.
978 * data-streamer-out.c: Likewise.
979 * data-streamer.c: Likewise.
980 * dbxout.c: Likewise.
981 * dce.c: Likewise.
982 * ddg.c: Likewise.
983 * debug.c: Likewise.
984 * df-core.c: Likewise.
985 * df-problems.c: Likewise.
986 * df-scan.c: Likewise.
987 * dfp.c: Likewise.
988 * dojump.c: Likewise.
989 * dominance.c: Likewise.
990 * double-int.c: Likewise.
991 * dse.c: Likewise.
992 * dumpfile.c: Likewise.
993 * dwarf2asm.c: Likewise.
994 * dwarf2cfi.c: Likewise.
995 * dwarf2out.c: Likewise.
996 * emit-rtl.c: Likewise.
997 * except.c: Likewise.
998 * explow.c: Likewise.
999 * expmed.c: Likewise.
1000 * expr.c: Likewise.
1001 * final.c: Likewise.
1002 * fixed-value.c: Likewise.
1003 * fold-const.c: Likewise.
1004 * function.c: Likewise.
1005 * fwprop.c: Likewise.
1006 * gcse.c: Likewise.
1007 * generic-match-head.c: Likewise.
1008 * ggc-common.c: Likewise.
1009 * gimple-builder.c: Likewise.
1010 * gimple-expr.c: Likewise.
1011 * gimple-fold.c: Likewise.
1012 * gimple-iterator.c: Likewise.
1013 * gimple-low.c: Likewise.
1014 * gimple-match-head.c: Likewise.
1015 * gimple-pretty-print.c: Likewise.
1016 * gimple-ssa-isolate-paths.c: Likewise.
1017 * gimple-ssa-strength-reduction.c: Likewise.
1018 * gimple-streamer-in.c: Likewise.
1019 * gimple-streamer-out.c: Likewise.
1020 * gimple-walk.c: Likewise.
1021 * gimple.c: Likewise.
1022 * gimplify-me.c: Likewise.
1023 * gimplify.c: Likewise.
1024 * godump.c: Likewise.
1025 * graph.c: Likewise.
1026 * graphite-poly.c: Likewise.
1027 * haifa-sched.c: Likewise.
1028 * hw-doloop.c: Likewise.
1029 * ifcvt.c: Likewise.
1030 * incpath.c: Likewise.
1031 * init-regs.c: Likewise.
1032 * internal-fn.c: Likewise.
1033 * ipa-chkp.c: Likewise.
1034 * ipa-comdats.c: Likewise.
1035 * ipa-cp.c: Likewise.
1036 * ipa-devirt.c: Likewise.
1037 * ipa-icf-gimple.c: Likewise.
1038 * ipa-icf.c: Likewise.
1039 * ipa-inline-analysis.c: Likewise.
1040 * ipa-inline-transform.c: Likewise.
1041 * ipa-inline.c: Likewise.
1042 * ipa-polymorphic-call.c: Likewise.
1043 * ipa-profile.c: Likewise.
1044 * ipa-prop.c: Likewise.
1045 * ipa-pure-const.c: Likewise.
1046 * ipa-ref.c: Likewise.
1047 * ipa-reference.c: Likewise.
1048 * ipa-split.c: Likewise.
1049 * ipa-utils.c: Likewise.
1050 * ipa-visibility.c: Likewise.
1051 * ipa.c: Likewise.
1052 * ira-build.c: Likewise.
1053 * ira-color.c: Likewise.
1054 * ira-conflicts.c: Likewise.
1055 * ira-costs.c: Likewise.
1056 * ira-emit.c: Likewise.
1057 * ira-lives.c: Likewise.
1058 * ira.c: Likewise.
1059 * jump.c: Likewise.
1060 * langhooks.c: Likewise.
1061 * lcm.c: Likewise.
1062 * lists.c: Likewise.
1063 * loop-doloop.c: Likewise.
1064 * loop-init.c: Likewise.
1065 * loop-invariant.c: Likewise.
1066 * loop-iv.c: Likewise.
1067 * loop-unroll.c: Likewise.
1068 * lower-subreg.c: Likewise.
1069 * lra-assigns.c: Likewise.
1070 * lra-coalesce.c: Likewise.
1071 * lra-constraints.c: Likewise.
1072 * lra-eliminations.c: Likewise.
1073 * lra-lives.c: Likewise.
1074 * lra-remat.c: Likewise.
1075 * lra-spills.c: Likewise.
1076 * lra.c: Likewise.
1077 * lto-cgraph.c: Likewise.
1078 * lto-compress.c: Likewise.
1079 * lto-opts.c: Likewise.
1080 * lto-section-in.c: Likewise.
1081 * lto-section-out.c: Likewise.
1082 * lto-streamer-in.c: Likewise.
1083 * lto-streamer-out.c: Likewise.
1084 * lto-streamer.c: Likewise.
1085 * mode-switching.c: Likewise.
1086 * modulo-sched.c: Likewise.
1087 * omp-low.c: Likewise.
1088 * optabs.c: Likewise.
1089 * opts-global.c: Likewise.
1090 * passes.c: Likewise.
1091 * plugin.c: Likewise.
1092 * postreload-gcse.c: Likewise.
1093 * postreload.c: Likewise.
1094 * predict.c: Likewise.
1095 * print-tree.c: Likewise.
1096 * profile.c: Likewise.
1097 * real.c: Likewise.
1098 * realmpfr.c: Likewise.
1099 * recog.c: Likewise.
1100 * ree.c: Likewise.
1101 * reg-stack.c: Likewise.
1102 * regcprop.c: Likewise.
1103 * reginfo.c: Likewise.
1104 * regrename.c: Likewise.
1105 * regstat.c: Likewise.
1106 * reload.c: Likewise.
1107 * reload1.c: Likewise.
1108 * reorg.c: Likewise.
1109 * resource.c: Likewise.
1110 * rtl-chkp.c: Likewise.
1111 * rtl-error.c: Likewise.
1112 * rtlanal.c: Likewise.
1113 * rtlhooks.c: Likewise.
1114 * sanopt.c: Likewise.
1115 * sched-deps.c: Likewise.
1116 * sched-ebb.c: Likewise.
1117 * sched-rgn.c: Likewise.
1118 * sese.c: Likewise.
1119 * shrink-wrap.c: Likewise.
1120 * simplify-rtx.c: Likewise.
1121 * stack-ptr-mod.c: Likewise.
1122 * statistics.c: Likewise.
1123 * stmt.c: Likewise.
1124 * stor-layout.c: Likewise.
1125 * store-motion.c: Likewise.
1126 * stringpool.c: Likewise.
1127 * symtab.c: Likewise.
1128 * target-globals.c: Likewise.
1129 * targhooks.c: Likewise.
1130 * toplev.c: Likewise.
1131 * tracer.c: Likewise.
1132 * trans-mem.c: Likewise.
1133 * tree-affine.c: Likewise.
1134 * tree-call-cdce.c: Likewise.
1135 * tree-cfg.c: Likewise.
1136 * tree-cfgcleanup.c: Likewise.
1137 * tree-chkp-opt.c: Likewise.
1138 * tree-chkp.c: Likewise.
1139 * tree-chrec.c: Likewise.
1140 * tree-complex.c: Likewise.
1141 * tree-data-ref.c: Likewise.
1142 * tree-dfa.c: Likewise.
1143 * tree-diagnostic.c: Likewise.
1144 * tree-dump.c: Likewise.
1145 * tree-eh.c: Likewise.
1146 * tree-emutls.c: Likewise.
1147 * tree-if-conv.c: Likewise.
1148 * tree-inline.c: Likewise.
1149 * tree-into-ssa.c: Likewise.
1150 * tree-iterator.c: Likewise.
1151 * tree-loop-distribution.c: Likewise.
1152 * tree-nested.c: Likewise.
1153 * tree-nrv.c: Likewise.
1154 * tree-object-size.c: Likewise.
1155 * tree-outof-ssa.c: Likewise.
1156 * tree-parloops.c: Likewise.
1157 * tree-phinodes.c: Likewise.
1158 * tree-predcom.c: Likewise.
1159 * tree-pretty-print.c: Likewise.
1160 * tree-profile.c: Likewise.
1161 * tree-scalar-evolution.c: Likewise.
1162 * tree-sra.c: Likewise.
1163 * tree-ssa-address.c: Likewise.
1164 * tree-ssa-alias.c: Likewise.
1165 * tree-ssa-ccp.c: Likewise.
1166 * tree-ssa-coalesce.c: Likewise.
1167 * tree-ssa-copy.c: Likewise.
1168 * tree-ssa-dce.c: Likewise.
1169 * tree-ssa-dom.c: Likewise.
1170 * tree-ssa-dse.c: Likewise.
1171 * tree-ssa-forwprop.c: Likewise.
1172 * tree-ssa-ifcombine.c: Likewise.
1173 * tree-ssa-live.c: Likewise.
1174 * tree-ssa-loop-ch.c: Likewise.
1175 * tree-ssa-loop-im.c: Likewise.
1176 * tree-ssa-loop-ivcanon.c: Likewise.
1177 * tree-ssa-loop-ivopts.c: Likewise.
1178 * tree-ssa-loop-manip.c: Likewise.
1179 * tree-ssa-loop-niter.c: Likewise.
1180 * tree-ssa-loop-prefetch.c: Likewise.
1181 * tree-ssa-loop-unswitch.c: Likewise.
1182 * tree-ssa-loop.c: Likewise.
1183 * tree-ssa-math-opts.c: Likewise.
1184 * tree-ssa-operands.c: Likewise.
1185 * tree-ssa-phiopt.c: Likewise.
1186 * tree-ssa-phiprop.c: Likewise.
1187 * tree-ssa-pre.c: Likewise.
1188 * tree-ssa-propagate.c: Likewise.
1189 * tree-ssa-reassoc.c: Likewise.
1190 * tree-ssa-sccvn.c: Likewise.
1191 * tree-ssa-scopedtables.c: Likewise.
1192 * tree-ssa-sink.c: Likewise.
1193 * tree-ssa-strlen.c: Likewise.
1194 * tree-ssa-structalias.c: Likewise.
1195 * tree-ssa-tail-merge.c: Likewise.
1196 * tree-ssa-ter.c: Likewise.
1197 * tree-ssa-threadedge.c: Likewise.
1198 * tree-ssa-threadupdate.c: Likewise.
1199 * tree-ssa-uncprop.c: Likewise.
1200 * tree-ssa-uninit.c: Likewise.
1201 * tree-ssa.c: Likewise.
1202 * tree-ssanames.c: Likewise.
1203 * tree-stdarg.c: Likewise.
1204 * tree-streamer-in.c: Likewise.
1205 * tree-streamer-out.c: Likewise.
1206 * tree-streamer.c: Likewise.
1207 * tree-switch-conversion.c: Likewise.
1208 * tree-tailcall.c: Likewise.
1209 * tree-vect-data-refs.c: Likewise.
1210 * tree-vect-generic.c: Likewise.
1211 * tree-vect-loop-manip.c: Likewise.
1212 * tree-vect-loop.c: Likewise.
1213 * tree-vect-patterns.c: Likewise.
1214 * tree-vect-slp.c: Likewise.
1215 * tree-vect-stmts.c: Likewise.
1216 * tree-vectorizer.c: Likewise.
1217 * tree-vrp.c: Likewise.
1218 * tree.c: Likewise.
1219 * tsan.c: Likewise.
1220 * ubsan.c: Likewise.
1221 * value-prof.c: Likewise.
1222 * var-tracking.c: Likewise.
1223 * varasm.c: Likewise.
1224 * varpool.c: Likewise.
1225 * vtable-verify.c: Likewise.
1226 * web.c: Likewise.
1227 * wide-int-print.cc: Likewise.
1228 * wide-int.cc: Likewise.
1229 * xcoffout.c: Likewise.
1230
1231 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
1232
1233 * Makefile.in (NO_PIE_CFLAGS): New.
1234 (NO_PIE_FLAG): Likewise.
1235 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1236 (NO_PIE_FLAG_FOR_BUILD): Likewise.
1237 (BUILD_NO_PIE_CFLAGS): Likewise.
1238 (BUILD_NO_PIE_FLAG): Likewise.
1239 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
1240 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
1241 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
1242 $(BUILD_NO_PIE_CFLAGS).
1243 (BUILD_CXXFLAGS): Likewise.
1244 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
1245 $(BUILD_NO_PIE_FLAG).
1246 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
1247 (BUILD_NO_PIE_FLAG): Likewise.
1248 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1249 (NO_PIE_FLAG_FOR_BUILD): Likewise.
1250 * configure: Regenerated.
1251
1252 2015-10-29 Richard Biener <rguenther@suse.de>
1253
1254 PR middle-end/56956
1255 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
1256 unsigned conditonal negation to ABS_EXPR.
1257
1258 2015-10-29 Richard Biener <rguenther@suse.de>
1259
1260 * gimple-match-head.c (gimple_simplify): Remove premature checking
1261 of builtin_decl_implicit of function calls we simplify.
1262
1263 2015-10-29 Bin Cheng <bin.cheng@arm.com>
1264
1265 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
1266 (get_computation_cost_at): Ditto.
1267 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
1268 and inv_expr_id.
1269
1270 2015-10-28 Tom de Vries <tom@codesourcery.com>
1271
1272 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
1273 superfluous code.
1274
1275 2015-10-28 Jason Merrill <jason@redhat.com>
1276
1277 * Makefile.in (TAGS): Include libcpp and libiberty.
1278
1279 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1280
1281 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
1282 (extract_omp_for_data): Remove OpenACC special handling of
1283 chunking.
1284
1285 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
1286 (struct parallel): Update comment.
1287 (nvptx_reorg): Likewise.
1288 (nvptx_neuter): Cleanup whitespace.
1289
1290 2015-10-28 Richard Henderson <rth@redhat.com>
1291
1292 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
1293
1294 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1295
1296 PR target/67839
1297 * config/avr/predicates.md (low_io_address_operand): Don't
1298 consider MODE when computing upper bound.
1299 (io_address_operand): Likewise.
1300
1301 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
1302
1303 * fold-const.c (operand_equal_p): Do not verify that types are
1304 compatible for MEM_REFs.
1305
1306 2015-10-28 Richard Biener <rguenther@suse.de>
1307
1308 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
1309 in simplifying VEC_COND_EXPR conditions.
1310
1311 2015-10-28 Tom de Vries <tom@codesourcery.com>
1312
1313 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
1314 into vi_next of a full_var.
1315
1316 2015-10-28 Tom de Vries <tom@codesourcery.com>
1317
1318 * tree-ssa-structalias.c (new_var_info, make_heapvar)
1319 (make_constraint_from_restrict, make_constraint_from_global_restrict)
1320 (create_function_info_for, create_variable_info_for_1)
1321 (create_variable_info_for): Add and handle add_id parameter.
1322 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
1323 (init_base_vars): Add extra argument to calls to new_var_info.
1324 (get_vi_for_tree): Add extra argument to call to
1325 create_variable_info_for.
1326 (process_constraint, do_deref, process_all_all_constraints): Add extra
1327 argument to calls to new_scalar_tmp_constraint_exp.
1328 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
1329 argument to calls to make_heapvar.
1330 (make_restrict_var_constraints): Add extra argument to call to
1331 make_constraint_from_global_restrict.
1332 (intra_create_variable_infos): Add extra argument to call to
1333 create_variable_info_for_1.
1334 (ipa_pta_execute): Add extra argument to call to
1335 create_function_info_for.
1336
1337 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1338
1339 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
1340 (sibcall_value): Likewise.
1341
1342 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1343
1344 * config/nvptx/nvptx.h (struct machine_function): Add
1345 axis_predicate.
1346 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
1347 nvptx_expand_oacc_join): Declare.
1348 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
1349 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
1350 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
1351 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
1352 UNSPECV_JOINING, UNSPECV_JOIN): New.
1353 (BITS, BITD): New mode iterators.
1354 (br_true_uni, br_false_uni): New.
1355 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
1356 (oacc_dim_size, oacc_dim_pos): New.
1357 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
1358 (oacc_fork, oacc_join): New.
1359 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
1360 (worker_load<mode>, worker_store<mode>): New.
1361 (nvptx_barsync): New.
1362 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
1363 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
1364 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
1365 worker_bcast_sym): New.
1366 (nvptx_option_override): Initialize worker broadcast buffer.
1367 (nvptx_emit_forking, nvptx_emit_joining): New.
1368 (nvptx_init_axis_predicate): New.
1369 (nvptx_declare_function_name): Init axis predicates.
1370 (nvptx_expand_call): Add fork/join markers around routine call.
1371 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
1372 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
1373 (nvptx_gen_vcast): New.
1374 (struct wcast_data_t): New.
1375 (enum propagate_mask): New.
1376 (nvptx_gen_wcast): New.
1377 (nvptx_print_operand): Add 'S' case.
1378 (struct parallel): New.
1379 (parallel::parallel, parallel::~parallel): New.
1380 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
1381 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
1382 nvptx_find_par, nvptx_discover_pars): New.
1383 (nvptx_propagate): New.
1384 (vprop_gen, nvptx_vpropagate): New.
1385 (wprop_gen, nvptx_wpropagate): New.
1386 (nvptx_wsync): New.
1387 (nvptx_single, nvptx_skip_par): New.
1388 (nvptx_process_pars, nvptx_neuter_pars): New.
1389 (ntptx_reorg): Split blocks, generate parallel structure, apply
1390 neutering.
1391 (nvptx_cannot_copy_insn_p): New.
1392 (nvptx_file_end): Emit worker broadcast decl.
1393 (nvptx_goacc_fork_join): New.
1394 (TARGET_CANNOT_COPY_INSN_P): Override.
1395 (TARGET_GOACC_FORK_JOIN): Override.
1396
1397 2015-10-28 Richard Biener <rguenther@suse.de>
1398
1399 * fold-const.c (negate_expr_p): Adjust the division case to
1400 properly avoid introducing undefined overflow.
1401 (fold_negate_expr): Likewise.
1402
1403 2015-10-28 Richard Biener <rguenther@suse.de>
1404
1405 PR tree-optimization/65962
1406 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1407 Avoid creating loop carried dependences also for outer loops
1408 of the loop a use to replace is in.
1409
1410 2015-10-28 Richard Biener <rguenther@suse.de>
1411
1412 * common.opt (fchecking): New flag controlling flag_checking.
1413 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
1414 * timevar.c (timer::print): Adjust output.
1415 * doc/invoke.texi (fchecking): Document.
1416
1417 2015-10-28 Richard Biener <rguenther@suse.de>
1418
1419 PR middle-end/68067
1420 * fold-const.c (negate_expr_p): We cannot negate plus or minus
1421 if overflow is not wrapping. Likewise multiplication unless
1422 one operand is constant and not power of two.
1423 (fold_negate_expr): Adjust accordingly.
1424
1425 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1426
1427 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
1428 fields.
1429 (is_oacc_parallel, is_oacc_kernels): New.
1430 (enclosing_target_ctx): May return NULL.
1431 (ctx_in_oacc_kernels_region): New.
1432 (check_oacc_kernel_gwv): New.
1433 (oacc_loop_or_target_p): Delete.
1434 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
1435 operands. Strip reductions fro kernels.
1436 (scan_omp_target): Don't calculate gwv mask.
1437 (lower_oacc_head_mark, lower_oacc_loop_marker,
1438 lower_oacc_head_tail): New.
1439 (struct oacc_collapse): New.
1440 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
1441 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1442 Remove OpenACC handling.
1443 (expand_oacc_for): New.
1444 (expand_omp_for): Call expand_oacc_for.
1445 (lower_omp_for): Call lower_oacc_head_tail.
1446
1447 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
1448
1449 * attribs.c (check_attribute_tables): New function, broken out from...
1450 (init_attributes): Use it.
1451 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
1452 gcc_checking_assert and checking_* functions to eliminate
1453 ENABLE_CHECKING conditionals.
1454 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
1455 (pass_expand::execute): Likewise.
1456 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1457 * cgraphunit.c (mark_functions_to_output): Likewise.
1458 (cgraph_node::expand_thunk): Likewise.
1459 (symbol_table::compile): Likewise.
1460 * ddg.c (add_cross_iteration_register_deps): Likewise.
1461 (create_ddg_all_sccs): Likewise.
1462 * df-core.c (df_finish_pass, df_analyze): Likewise.
1463 * diagnostic-core.h: Likewise.
1464 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
1465 * dominance.c (calculate_dominance_info): Likewise.
1466 * dwarf2out.c (add_AT_die_ref): Likewise.
1467 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
1468 (loc_list_from_tree, gen_lexical_block_die): Likewise.
1469 gen_type_die_with_usage, gen_type_die): Likewise.
1470 (dwarf2out_decl): Likewise.
1471 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
1472 * except.c (duplicate_eh_regions): Likewise.
1473 * fwprop.c (register_active_defs, update_df_init): Likewise.
1474 (fwprop_init, fwprop_done): Likewise.
1475 (update_uses): Likewise.
1476 * ggc-page.c (ggc_grow): Likewise.
1477 * gimplify.c (gimplify_body): Likewise.
1478 (gimplify_hasher::equal): Likewise.
1479 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
1480 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
1481 Likewise.
1482 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
1483 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
1484 * hash-table.h (::find_empty_slot_for_expand): Likewise.
1485 * ifcvt.c (if_convert): Likewise.
1486 * ipa-cp.c (ipcp_propagate_stage): Likewise.
1487 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
1488 (odr_type_p, odr_types_equivalent_p): Likewise.
1489 (add_type_duplicate, get_odr_type): Likewise.
1490 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
1491 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
1492 (sem_item_optimizer::verify_classes): Likewise.
1493 (sem_item_optimizer::traverse_congruence_split): Likewise.
1494 (sem_item_optimizer::checking_verify_classes): New.
1495 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
1496 method.
1497 * cfgrtl.c (commit_edge_insertions): Likewise.
1498 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
1499 (rtl_flow_call_edges_add): Likewise.
1500 * cgraph.c (symbol_table::create_edge): Likewise.
1501 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1502 * cgraph.h (symtab_node): Likewise.
1503 (symtab_node::checking_verify_symtab_nodes): Define.
1504 (cgraph_node::checking_verify_cgraph_nodes): Define.
1505 * cfghooks.h (checking_verify_flow_info): Define.
1506 * cfgloop.h (checking_verify_loop_structure): Define.
1507 * dominance.h (checking_verify_dominators): Define.
1508 * et-forest.c: Fix comment.
1509 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
1510 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1511 ENABLE_CHECKING conditionals.
1512 * ipa-inline-transform.c (save_inline_function_body): Likewise.
1513 * ipa-inline.c (inline_small_functions): Likewise.
1514 (early_inliner): Likewise.
1515 * ipa-inline.h (estimate_edge_growth): Likewise.
1516 * ipa-visibility.c (function_and_variable_visibility): Likewise.
1517 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
1518 (ipa_single_use): Likewise.
1519 * ira-int.h: Likewise.
1520 * ira.c (ira): Likewise.
1521 * loop-doloop.c (doloop_optimize_loops): Likewise.
1522 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
1523 * loop-invariant.c (move_loop_invariants): Likewise.
1524 * lra-assigns.c (lra_assign): Likewise.
1525 * lra-constraints.c (lra_constraints): Likewise.
1526 * lra-eliminations.c (lra_eliminate): Likewise.
1527 * lra-int.h (struct lra_reg): Likewise.
1528 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1529 (lra_create_live_ranges_1): Likewise.
1530 * lra-remat.c (create_remat_bb_data): Likewise.
1531 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
1532 (lra): Likewise.
1533 (check_rtl): Always define. Remove incorrect guard around
1534 extract_constrain_insn call.
1535 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
1536 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1537 ENABLE_CHECKING conditionals.
1538 * lto-streamer-out.c (DFS::DFS): Likewise.
1539 (lto_output): Likewise.
1540 * lto-streamer.c (lto_streamer_init): Likewise.
1541 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
1542 expand_omp_target, execute_expand_omp): Likewise.
1543 (lower_omp_target): Likewise.
1544 * passes.c (execute_function_todo): Likewise.
1545 (execute_todo, execute_one_pass): Likewise.
1546 (verify_curr_properties): Always define.
1547 * predict.c (tree_estimate_probability: Use flag_checking,
1548 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1549 ENABLE_CHECKING conditionals.
1550 (propagate_freq): Likewise.
1551 * pretty-print.c (pp_format): Likewise.
1552 * real.c (real_to_decimal_for_mode): Likewise.
1553 * recog.c (split_all_insns): Likewise.
1554 * regcprop.c (kill_value_one_regno): Likewise.
1555 (copy_value): Likewise.
1556 (validate_value_data): Define unconditionally.
1557 * reload.c: Fix comment.
1558 * timevar.c: Include options.h
1559 * tree-ssa.h (checking_verify_ssa): Define.
1560 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
1561 * sched-deps.c (CHECK): Remove unused macro.
1562 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
1563 gcc_checking_assert and checking_* functions to eliminate
1564 ENABLE_CHECKING conditionals.
1565 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
1566 * sel-sched.c (struct moveop_static_params): Likewise.
1567 (find_best_reg_for_expr, move_cond_jump): Likewise.
1568 (move_op_orig_expr_not_found): Likewise.
1569 (code_motion_process_successors, move_op): Likewise.
1570 * ssa-iterators.h (first_readonly_imm_use): Likewise.
1571 (next_readonly_imm_use): Likewise.
1572 * store-motion.c (compute_store_table): Likewise.
1573 * symbol-summary.h (function_summary::function_summary): Likewise.
1574 * target.h (cumulative_args_t): Likewise.
1575 (get_cumulative_args, pack_cumulative_args): Likewise.
1576 * timevar.c: (timer::print): Likewise.
1577 * trans-mem.c (ipa_tm_execute): Likewise.
1578 * tree-cfg.c (move_stmt_op): Likewise.
1579 (move_sese_region_to_fn): Likewise.
1580 (gimple_flow_call_edges_add): Likewise.
1581 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
1582 Likewise.
1583 * tree-eh.c (remove_unreachable_handlers): Likewise.
1584 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
1585 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
1586 * tree-into-ssa.c (update_ssa): Likewise.
1587 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
1588 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
1589 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
1590 * tree-predcom.c (suitable_component_p): Likewise.
1591 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
1592 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
1593 * tree-ssa-live.c (verify_live_on_entry): Likewise.
1594 * tree-ssa-live.h (register_ssa_partition): Likewise.
1595 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
1596 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
1597 (tree_transform_and_unroll_loop): Likewise.
1598 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1599 * tree-ssa-operands.c (get_expr_operands): Likewise.
1600 * tree-ssa-propagate.c (replace_exp_1): Likewise.
1601 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
1602 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
1603 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
1604 * tree-ssanames.c (release_ssa_name_fn): Likewise.
1605 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
1606 * tree-vect-loop-manip.c
1607 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1608 (slpeel_checking_verify_cfg_after_peeling): Likewise.
1609 (vect_do_peeling_for_loop_bound): Likewise.
1610 (vect_do_peeling_for_alignment): Likewise.
1611 * tree-vrp.c (supports_overflow_infinity): Likewise.
1612 (set_value_range): Likewise.
1613 * tree.c (free_lang_data_in_cgraph): Likewise.
1614 * value-prof.c (gimple_remove_histogram_value): Likewise.
1615 (free_hist): Likewise.
1616 * var-tracking.c (canonicalize_values_star): Likewise.
1617 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
1618
1619 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1620
1621 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
1622 IFN_GOACC_LOOP): New.
1623 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
1624 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
1625 IFN_UNIQUE_OACC_TAIL_MARK.
1626 (enum ifn_goacc_loop_kind): New.
1627 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
1628 IFN_UNIQUE_OACC_JOIN cases.
1629 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
1630 (expand_GOACC_LOOP): New.
1631 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
1632 * omp-low.c: Include gimple-pretty-print.h.
1633 (struct oacc_loop): New.
1634 (enum oacc_loop_flags): New.
1635 (oacc_thread_numbers): New.
1636 (oacc_xform_loop): New.
1637 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
1638 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
1639 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
1640 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
1641 oacc_loop_discovery): New.
1642 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
1643 oacc_loop_process): New.
1644 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
1645 (execute_oacc_device_lower): Discover & process loops. Process
1646 internal fns.
1647 * target.def (goacc.fork_join): Change sense of hook, clarify
1648 documentation.
1649 * doc/tm.texi: Regenerated.
1650
1651 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1652
1653 * target-insns.def (oacc_fork, oacc_join): Define.
1654 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
1655 (goacc.fork_join): New GOACC hook.
1656 * targhooks.h (default_goacc_fork_join): Declare.
1657 * omp-low.c (default_goacc_forkjoin): New.
1658 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
1659 * doc/tm.texi: Regenerate.
1660
1661 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1662
1663 * omp-low.c (oacc_init_rediction_array): New.
1664 (oacc_initialize_reduction_data): Initialize array.
1665
1666 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1667
1668 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
1669
1670 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1671
1672 * internal-fn.c (expand_UNIQUE): New.
1673 * internal-fn.h (enum ifn_unique_kind): New.
1674 * internal-fn.def (IFN_UNIQUE): New.
1675 * target-insns.def (unique): Define.
1676 * gimple.h (gimple_call_internal_unique_p): New.
1677 * gimple.c (gimple_call_same_target_p): Check internal fn
1678 uniqueness.
1679 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
1680 * tree-ssa-threadedge.c
1681 (record_temporary_equivalences_from_stmts): Likewise.
1682 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
1683
1684 2015-10-27 Richard Henderson <rth@redhat.com>
1685
1686 PR rtl-opt/67609
1687 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
1688 narrowing subregs on SSE and MMX registers.
1689 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
1690 appear to be sub-words of multi-register pseudos must be rejected.
1691 * doc/tm.texi: Regenerate.
1692
1693 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1694
1695 PR target/68102
1696 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
1697 operands[0] is a reg before taking its REGNO in split condition.
1698 (*movdi_aarch64): Likewise.
1699
1700 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1701
1702 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
1703 Handle floating point inner modes properly.
1704
1705 2015-10-27 Alan Hayward <alan.hayward@arm.com>
1706
1707 * tree-vect-looop.c
1708 (vectorizable_live_operation): Change iterator.
1709
1710 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1711 Aditya Kumar <aditya.k7@samsung.com>
1712
1713 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
1714 function to schedule based on isl_schedule_node.
1715 (get_schedule_map_st): New schedule optimizer based on
1716 isl_schedule_node.
1717 (scop_get_domains): New. Return the isl_union_set containing the
1718 domains of all the pbbs.
1719 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
1720
1721 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
1722
1723 PR target/67215
1724 * calls.c (prepare_call_address): Don't handle -fno-plt here.
1725 * config/i386/i386.c (ix86_expand_call): Generate indirect call
1726 via GOT for -fno-plt. Support indirect call via GOT for x32.
1727 * config/i386/predicates.md (sibcall_memory_operand): Allow
1728 GOT memory operand.
1729
1730 2015-10-27 Richard Biener <rguenther@suse.de>
1731
1732 PR tree-optimization/68104
1733 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1734 strided access check ...
1735 (vect_compute_data_refs_alignment): ... here.
1736
1737 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
1738 Joseph Myers <joseph@codesourcery.com>
1739 Mark Shinwell <shinwell@codesourcery.com>
1740 Andrew Stubbs <ams@codesourcery.com>
1741 Rich Felker <dalias@libc.org>
1742
1743 * config.gcc: Handle --enable-fdpic.
1744 * config/sh/constraints.md (Ccl): New constraint.
1745 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
1746 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
1747 __SH_FDPIC__.
1748 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
1749 library functions.
1750 * config/sh/sh-protos.h (function_symbol_result): New struct.
1751 (function_symbol): Return function_symbol_result.
1752 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
1753 declarations.
1754 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
1755 target hook.
1756 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
1757 (sh_option_override): Force -fPIC if FDPIC is in effect.
1758 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
1759 UNSPEC_GOTOFFFUNCDESC cases.
1760 (prepare_move_operands): Use FDPIC initial GOT register for
1761 TLS-related GOT access; inhibit cross-section address offset constants
1762 for FDPIC.
1763 (sh_assemble_integer): New function.
1764 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
1765 PC-relative call sites.
1766 (expand_ashiftrt): Adapt invocation of function_symbol.
1767 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
1768 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
1769 UNSPEC_GOTOFFFUNCDESC.
1770 (legitimize_pic_address): Resolve function symbols to function
1771 descriptors for FDPIC. Do not use GOT-relative addressing for local
1772 data that may be read-only on FDPIC.
1773 (sh_emit_storesi, sh_emit_storehi): New functions.
1774 (sh_trampoline_init): Generate FDPIC trampolines.
1775 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
1776 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
1777 (sh_output_mi_thunk): Generate FDPIC call.
1778 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
1779 FDPIC, generate call site labels to use PC-relative addressing rather
1780 than GOT-relative addressing.
1781 (sh_conditional_register_usage): Make PIC register fixed and call used
1782 when FDPIC is in effect.
1783 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
1784 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
1785 sh_get_fdpic_reg_initial_val): New functions.
1786 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
1787 Handle -mfdpic.
1788 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1789 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
1790 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
1791 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
1792 FDPIC_SELF_SPECS.
1793 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
1794 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
1795 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
1796 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
1797 constants.
1798 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
1799 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
1800 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
1801 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
1802 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
1803 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
1804 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
1805 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
1806 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1807 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
1808 block_move_real, block_lump_real, block_move_real_i4,
1809 block_lump_real_i4): Add support for FDPIC calls.
1810 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
1811 call_value_pop): Adjust for new function_symbol signature.
1812 * config/sh/sh.opt (-mfdpic): New option.
1813 * doc/install.texi (Options specification): Document --enable-fdpic.
1814 * doc/invoke.texi (SH Options): Document -mfdpic.
1815
1816
1817 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
1818
1819 PR tree-optimization/65963
1820 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
1821 LSHIFT_EXPRs as equivalent MULT_EXPRs.
1822
1823 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1824
1825 PR target/67929
1826 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
1827 * config/arm/constraints.md (Dp): Update callsite.
1828 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
1829
1830 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1831
1832 * builtins.c (fold_builtin_load_exponent): Rename to...
1833 (fold_const_builtin_load_exponent): ...this and only handle
1834 constant arguments.
1835 (fold_builtin_2): Update accordingly.
1836 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
1837
1838 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1839
1840 * builtins.c (fold_builtin_logb): Rename to...
1841 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
1842 (fold_builtin_significand): Rename to...
1843 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
1844 (fold_builtin_1): Update accordingly.
1845
1846 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1847
1848 * builtins.c (fold_builtin_fmin_fmax): Delete.
1849 (fold_builtin_2): Handle constant fmin and fmax arguments here.
1850 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
1851
1852 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
1853
1854 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
1855 for register extension into sign and zero register extension.
1856 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
1857 for sign and zero register extension.
1858 (cortexa57_addrcost_table): Likewise.
1859 (xgene1_addrcost_table): Likewise.
1860
1861 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1862
1863 * fold-const.c (fold_minmax): Delete.
1864 (fold_binary_loc): Don't call it.
1865 * match.pd: Add rules previously handled by fold_minmax.
1866
1867 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1868
1869 * builtins.c (fold_builtin_fma): Remove constant handling.
1870 (fold_builtin_3): Handle constant fma arguments here.
1871
1872 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1873
1874 * builtins.c (fold_builtin_fabs): Remove constant handling.
1875 (fold_builtin_abs): Likewise.
1876
1877 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1878
1879 * builtins.c (fold_builtin_copysign): Delete.
1880 (fold_builtin_2): Handle constant copysign arguments here.
1881 * match.pd: Add rules previously handled by fold_builtin_copysign.
1882
1883 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1884
1885 * builtins.c (fold_builtin_signbit): Delete.
1886 (fold_builtin_2): Handle constant signbit arguments here.
1887 * match.pd: Add rules previously handled by fold_builtin_signbit.
1888
1889 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1890
1891 * match.pd: Handle sqrt(x) cmp 0 specially.
1892
1893 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
1894
1895 * tree-vect-generic.c (expand_vector_operations_1): Check
1896 optab type before using it.
1897
1898 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1899
1900 * config/aarch64/aarch64-protos.h
1901 (struct tune_params): Add autoprefetcher_model field.
1902 * config/aarch64/aarch64.c: Include params.h
1903 (generic_tunings): Specify autoprefetcher_model value.
1904 (cortexa53_tunings): Likewise.
1905 (cortexa57_tunings): Likewise.
1906 (cortexa72_tunings): Likewise.
1907 (thunderx_tunings): Likewise.
1908 (xgene1_tunings): Likewise.
1909 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
1910 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
1911 (aarch64_override_options_internal): Set
1912 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
1913
1914 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1915
1916 * builtins.c (fold_builtin_exponent): Delete.
1917 (fold_builtin_2): Handle constant expN arguments here.
1918 * match.pd: Fold expN(logN(x)) -> x.
1919
1920 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1921
1922 * builtins.c (fold_builtin_powi): Delete.
1923 (fold_builtin_2): Handle constant powi arguments here.
1924 * match.pd: Add rules previously handled by fold_builtin_powi.
1925
1926 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1927
1928 * builtins.c (fold_builtin_pow): Delete in favor of...
1929 (fold_const_builtin_pow): ...this new function. Only handle constant
1930 arguments.
1931 (fold_builtin_2): Update accordingly.
1932 * match.pd: Add rules previously handled by fold_builtin_pow.
1933
1934 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1935
1936 * builtins.c (fold_builtin_hypot): Delete.
1937 (fold_builtin_2): Handle constant hypot arguments here.
1938 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
1939 hypot(x, x) to fabs(x)*sqrt(2).
1940
1941 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1942
1943 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
1944 instead of make_ssa_name if not yet in SSA form.
1945
1946 2015-10-27 Richard Biener <rguenther@suse.de>
1947
1948 * cfg.c (free_edge): Add function argument and use it instead of cfun.
1949 (clear_edges): Likewise.
1950 * cfg.h (clear_edges): Adjust prototype.
1951 * cfgexpand.c (pass_expand::execute): Adjust.
1952 * cfgloop.c (release_recorded_exits): Add function argument and use
1953 it instead of cfun.
1954 * cfgloop.h (release_recorded_exits): Adjust prototype.
1955 (loops_state_satisfies_p): Add overload with function argument.
1956 (loops_state_set): Likewise.
1957 (loops_state_clear): Likewise.
1958 (struct loop_iterator): Add function argument to constructor
1959 and iterator and use it instead of cfun.
1960 (FOR_EACH_LOOP_FN): New macro.
1961 (loop_optimizer_finalize): Add overload with function argument.
1962 * loop-init.c (loop_optimizer_init): Adjust.
1963 (fix_loop_structure): Likewise.
1964 (loop_optimizer_finaliz): Add function argument and use it
1965 instead of cfun.
1966 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1967 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
1968 * cgraph.c (release_function_body): Do not push/pop cfun.
1969 * final.c (rest_of_clean_state): Adjust.
1970 * graphite.c (graphite_finalize): Likewise.
1971 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1972 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
1973 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
1974 (tree_unroll_loops_completely): Likewise.
1975 (pass_complete_unrolli::execute): Likewise.
1976 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
1977 Add function argument and use it instead of cfun.
1978 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
1979 Adjust prototype.
1980 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
1981 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
1982 instead of cfun.
1983 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
1984 * tree-ssanames.c (fini_ssanames): Add function argument and use it
1985 instead of cfun.
1986 * tree-ssanames.c (fini_ssanames): Adjust prototype.
1987 * tree-vrp.c (execute_vrp): Adjust.
1988 * value-prof.c (free_histograms): Add function argument and use it
1989 instead of cfun.
1990 * value-prof.h (free_histograms): Adjust prototype.
1991
1992 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1993
1994 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
1995 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
1996 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
1997
1998 2015-10-27 Tom de Vries <tom@codesourcery.com>
1999
2000 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
2001 field_type.
2002
2003 2015-10-27 Bin Cheng <bin.cheng@arm.com>
2004
2005 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
2006 (inv_can_prop_to_addr_use): New function.
2007 (record_use): Call can_prop_to_addr_uses, set the new field.
2008 (get_inv_cost): Count cost if inv can't be propagated into its
2009 address uses.
2010
2011 2015-10-26 Doug Evans <dje@google.com>
2012
2013 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
2014
2015 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
2016
2017 * match.pd (fold_widened_comparison): Apply simplifications to all
2018 integral types.
2019
2020 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
2021
2022 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
2023 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
2024 * doc/tm.texi: Regenerated.
2025 * reorg.c (dbr_schedule): Use new hook.
2026 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
2027
2028 2015-10-26 Jeff Law <law@redhat.com>
2029
2030 PR tree-optimization/68013
2031 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2032 Make sure the first block in the path is in VISITED_BBs.
2033
2034 2015-10-26 Richard Biener <rguenther@suse.de>
2035 Dominik Vogt <vogt@linux.vnet.ibm.com>
2036
2037 PR middle-end/67443
2038 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
2039 Properly prune ref->ref for accesses outside of ref.
2040
2041 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2042
2043 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
2044 new statements to be inserted if inplace. Allow calls to have
2045 nonempty sequences.
2046
2047 2015-10-26 Richard Biener <rguenther@suse.de>
2048
2049 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
2050 (do_valueize): New function.
2051 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
2052 replace_uses_by.
2053 * tree-ssa-threadedge.c: Remove builtins.h include, include
2054 gimple-fold.h
2055 (fold_assignment_stmt): Remove.
2056 (threadedge_valueize): New function.
2057 (record_temporary_equivalences_from_stmts): Use
2058 gimple_fold_stmt_to_constant_1, note additional cleanup
2059 opportunities.
2060
2061 2015-10-26 Richard Biener <rguenther@suse.de>
2062
2063 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
2064 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
2065
2066 2015-10-26 Alan Hayward <alan.hayward@arm.com>
2067
2068 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2069 VEC_COND_EXPR types.
2070
2071 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2072
2073 * auto-inc-dec.c (insert_move_insn_before): Delete.
2074 (attempt_change): Remember to cost the simple move in the
2075 FORM_PRE_ADD and FORM_POST_ADD cases.
2076
2077 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
2078
2079 PR target/68091
2080 * config/sh/sh.c (sh_vector_mode_supported_p): Use
2081 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
2082
2083 2015-10-26 Tom de Vries <tom@codesourcery.com>
2084
2085 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
2086 factored out of ...
2087 (intra_create_variable_infos): ... here.
2088
2089 2015-10-26 Tom de Vries <tom@codesourcery.com>
2090
2091 * tree-ssa-structalias.c (intra_create_variable_infos): Add
2092 restrict_pointer_p and recursive_restrict_p variables.
2093
2094 2015-10-26 Tom de Vries <tom@codesourcery.com>
2095
2096 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
2097 get_vi_for_tree call.
2098
2099 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2100
2101 PR middle-end/67989
2102 * optabs.c (expand_atomic_compare_and_swap): Handle case when
2103 ptarget_oval or ptarget_bool are const0_rtx.
2104
2105 2015-10-26 Christian Bruel <christian.bruel@st.com>
2106
2107 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
2108 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
2109 * cp/method.c (implicitly_declare_fn): Likewise.
2110 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
2111 * java/class.c (add_method_1): Likewise.
2112
2113 2015-10-26 Richard Biener <rguenther@suse.de>
2114
2115 * alloc-pool.h (base_pool_allocator): Use placement new.
2116 (base_pool_allocator::remove): Likewise. Compute size outside of
2117 flag_checking.
2118
2119 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2120
2121 * builtins.c (do_real_to_int_conversion): New function.
2122 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
2123 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
2124 arguments here.
2125 * match.pd: Add rules previously handled by fold_fixed_mathfn
2126 and fold_builtin_int_roundingfn.
2127
2128 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2129
2130 * match.pd: Use macros to define built-in operator lists.
2131
2132 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
2133 Richard Biener <rguenther@suse.de>
2134
2135 * genmatch.c (dt_simplify::gen): Skip captures that are
2136 part of the result.
2137 (parser::parse_expr): Allow captures in results too.
2138 * builtins.c (fold_builtin_cexp): Delete.
2139 (fold_builtin_1): Handle constant cexp arguments here.
2140 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
2141
2142 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
2143
2144 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
2145 conditional compilation.
2146 (base_pool_allocator::remove): Use flag_checking.
2147
2148 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
2149
2150 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
2151
2152 PR middle-end/68079
2153 * dojump.c (do_compare_and_jump): Canonicalize both function and
2154 method types.
2155
2156 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
2157
2158 PR target/68084
2159 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
2160 for =@ccae.
2161
2162 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2163
2164 PR ipa/pr67600
2165 * ipa-polymorphic-call.c
2166 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
2167 instance offset with offset of outer type.
2168
2169 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2170
2171 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
2172
2173 2015-10-23 Caroline Tice <cmtice@google.com>
2174
2175 (from Richard Biener
2176 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
2177 call to iterative_hash_host_wide_int.
2178
2179 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
2180
2181 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
2182 Define as yes.
2183
2184 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2185
2186 * tree-vect-generic.c (expand_vector_operations_1): Check
2187 optab exists before use it.
2188
2189 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2190
2191 * tree-vect-generic.c (expand_vector_condition): Avoid
2192 uninitialized variable warning.
2193
2194 2015-10-23 Jeff Law <law@redhat.com>
2195
2196 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
2197 here. Instead...
2198 (execute_todo): Call it here.
2199 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
2200 statistics
2201 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
2202
2203 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
2204 Szabolcs Nagy <szabolcs.nagy@arm.com>
2205
2206 * config.gcc (enable_secureplt): Add *-linux*-musl*.
2207
2208 2015-10-23 Jeff Law <law@redhat.com>
2209
2210 PR tree-optimization/67830
2211 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
2212 Explicitly verify the mask has no bits outside the type of
2213 the innermost operands.
2214
2215 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
2216 Szabolcs Nagy <szabolcs.nagy@arm.com>
2217
2218 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
2219 (MUSL_DYNAMIC_LINKER64): Define.
2220 (GNU_USER_DYNAMIC_LINKER32): Update.
2221 (GNU_USER_DYNAMIC_LINKER64): Update.
2222 (CHOOSE_DYNAMIC_LINKER): Update.
2223
2224 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
2225 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
2226 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2227 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2228 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2229 (CHOOSE_DYNAMIC_LINKER): Update.
2230 (INCLUDE_DEFAULTS): Redefine.
2231
2232 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
2233
2234 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2235
2236 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
2237 comparing addresses.
2238
2239 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2240
2241 * fold-const.c (operand_equal_p): Handle matching of vector
2242 constructors.
2243
2244 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
2245
2246 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
2247
2248 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
2249 Andrew Pinski <apinski@cavium.com>
2250
2251 PR rtl-optimization/67736
2252 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
2253 of gen_lowpart.
2254
2255 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2256
2257 PR middle-end/68066
2258 * tree.c (build_truth_vector_type): Support BLK mode
2259 returned for boolean vector.
2260
2261 2015-10-23 Alan Hayward <alan.hayward@arm.com>
2262
2263 PR tree-optimization/65947
2264 * tree-vect-loop.c
2265 (vect_is_simple_reduction_1): Find condition reductions.
2266 (vect_model_reduction_cost): Add condition reduction costs.
2267 (get_initial_def_for_reduction): Add condition reduction initial var.
2268 (vect_create_epilog_for_reduction): Add condition reduction epilog.
2269 (vectorizable_reduction): Condition reduction support.
2270 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
2271 * doc/sourcebuild.texi (Vector-specific attributes): Document
2272 vect_max_reduc
2273
2274 2015-10-23 Richard Biener <rguenther@suse.de>
2275
2276 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
2277 and builtins.def.
2278
2279 2015-10-23 Richard Biener <rguenther@suse.de>
2280 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2281
2282 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
2283 into (A ^ B) - B to match.pd
2284 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
2285
2286 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
2287 New simplifier.
2288 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
2289 New simplifier.
2290 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
2291 New simplifier.
2292 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
2293 New simplifier.
2294 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
2295 INTEGER_CST@1)): New simplifier.
2296
2297 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
2298
2299 * builtins.c (integer_valued_real_p): Move to fold-const.c.
2300 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
2301 (fold_builtin_ceil, fold_builtin_round): Delete.
2302 (fold_builtin_1): Handle constant trunc, floor, ceil and round
2303 arguments here.
2304 * convert.c (convert_to_real): Remove narrowing of rounding
2305 functions.
2306 * fold-const.h (integer_valued_real_unary_p)
2307 (integer_valued_real_binary_p, integer_valued_real_call_p)
2308 (integer_valued_real_single_p, integer_valued_real_p): Declare.
2309 * fold-const.c (tree_single_nonnegative_warnv_p): Move
2310 name_registered_for_update_p check to SSA_NAME case statement.
2311 Don't call tree_simple_nonnegative_warnv_p for SSA names.
2312 (integer_valued_real_unary_p, integer_valued_real_binary_p)
2313 (integer_valued_real_call_p, integer_valued_real_single_p)
2314 (integer_valued_real_invalid_p): New functions.
2315 (integer_valued_real_p): Move from fold-const.c and rework
2316 to call the functions above. Handle SSA names.
2317 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
2318 * gimple-fold.c (gimple_assign_integer_valued_real_p)
2319 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
2320 (gimple_stmt_integer_valued_real_p): New functions.
2321 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
2322 Fold f(x)->x for the same f if x is known to be integer-valued.
2323 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
2324 the result. Canonicalize floor(x) as trunc(x) if x is
2325 nonnegative.
2326
2327 2015-10-23 Tom de Vries <tom@codesourcery.com>
2328
2329 * tree-ssa-structalias.c (intra_create_variable_infos): Use
2330 make_constraint_from.
2331
2332 2015-10-23 Tom de Vries <tom@codesourcery.com>
2333
2334 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
2335 setting of is_full_var in case of a single field.
2336
2337 2015-10-22 Martin Sebor <msebor@redhat.com>
2338
2339 PR driver/68043
2340 * config/i386/i386.opt: Add missing periods to the ends of sentences.
2341 * config/msp430/msp430.opt: Same.
2342
2343 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2344
2345 * doc/extend.exp (Global Register Variables): Rewrite.
2346
2347 2015-10-22 Jeff Law <law@redhat.com>
2348
2349 * genattrtab.c (main): If we do not have any annul-true or annul-false
2350 slots, then write out a dummy eligible_for_annul_true or
2351 eligible_for_annul_false as needed.
2352
2353 2015-10-22 Nick Clifton <nickc@redhat.com>
2354
2355 * config/msp430/msp430.opt: Add -msilicon-errata and
2356 -msilicon-errata-warn.
2357 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
2358 assembler.
2359 * doc/invoke.texi: Document new options.
2360
2361 2015-10-22 Richard Biener <rguenther@suse.de>
2362
2363 PR tree-optimization/58497
2364 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
2365 (expand_vector_operations_1): Use it. Lower operations on
2366 all uniform vectors to scalar operations if the HW supports it.
2367
2368 2015-10-22 Richard Biener <rguenther@suse.de>
2369
2370 PR tree-optimization/19049
2371 PR tree-optimization/65962
2372 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
2373 to strided accesses if single-element interleaving doesn't work.
2374
2375 2015-10-22 Richard Biener <rguenther@suse.de>
2376
2377 PR middle-end/68046
2378 PR middle-end/61893
2379 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
2380 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
2381 (expand_unop): Likewise.
2382
2383 2015-10-22 Richard Biener <rguenther@suse.de>
2384
2385 * fold-const.c (fold_addr_of_array_ref_difference): Properly
2386 convert operands before folding a MINUS_EXPR.
2387 (fold_binary_loc): Move simplification of MINUS_EXPR on
2388 converted POINTER_PLUS_EXPRs ...
2389 * match.pd: ... here.
2390
2391 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
2392
2393 * builtins.c (fold_builtin_tan): Delete.
2394 (fold_builtin_1): Handle constant tan arguments here.
2395 * match.pd: Simplify (tan (atan x)) to x.
2396
2397 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
2398
2399 * builtins.c (fold_builtin_cproj): Delete.
2400 (fold_builtin_1): Handle constant arguments here.
2401 (build_complex_cproj): Move and rename to...
2402 * tree.c: (build_complex_inf): ...this.
2403 * tree.h (build_complex_inf): Declare.
2404 * match.pd: Fold cproj(x)->x if x has no infinity.
2405 Use build_complex_inf for existing cproj rules.
2406
2407 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2408
2409 PR target/68015
2410 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
2411 already have a comparison result.
2412
2413 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2414
2415 PR target/63304
2416 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
2417 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
2418 (aarch64_classify_address): Likewise.
2419 (aarch64_secondary_reload): Likewise.
2420 (aarch64_override_options_after_change_1): Adjust.
2421 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2422 Use aarch64_nopcrelative_literal_loads.
2423 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2424 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
2425 Declare.
2426
2427 2015-10-21 Martin Sebor <msebor@redhat.com>
2428
2429 PR driver/68043
2430 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
2431 (print_filtered_help): Reference aliased option's name and encourage
2432 readers to use it in preference to the alias if the former is not
2433 documented. Mention when using an option is diagnosed.
2434 * gcc.c (display_help): End each sentence with a period.
2435
2436 * common.opt: End each sentence that describes an option with
2437 a period.
2438 * config/aarch64/aarch64.opt: Same.
2439 * config/alpha/alpha.opt: Same.
2440 * config/arc/arc.opt: Same.
2441 * config/arm/arm.opt: Same.
2442 * config/avr/avr.opt: Same.
2443 * config/bfin/bfin.opt: Same.
2444 * config/c6x/c6x.opt: Same.
2445 * config/cr16/cr16.opt: Same.
2446 * config/cris/cris.opt: Same.
2447 * config/cris/linux.opt: Same.
2448 * config/darwin.opt: Same.
2449 * config/epiphany/epiphany.opt: Same.
2450 * config/fr30/fr30.opt: Same.
2451 * config/frv/frv.opt: Same.
2452 * config/ft32/ft32.opt: Same.
2453 * config/g.opt: Same.
2454 * config/h8300/h8300.opt: Same.
2455 * config/i386/cygming.opt: Same.
2456 * config/i386/djgpp.opt: Same.
2457 * config/i386/i386.opt: Same.
2458 * config/i386/interix.opt: Same.
2459 * config/i386/mingw-w64.opt: Same.
2460 * config/i386/mingw.opt: Same.
2461 * config/ia64/ia64.opt: Same.
2462 * config/ia64/ilp32.opt: Same.
2463 * config/iq2000/iq2000.opt: Same.
2464 * config/linux.opt: Same.
2465 * config/lm32/lm32.opt: Same.
2466 * config/lynx.opt: Same.
2467 * config/m32c/m32c.opt: Same.
2468 * config/m32r/m32r.opt: Same.
2469 * config/m68k/ieee.opt: Same.
2470 * config/m68k/m68k.opt: Same.
2471 * config/mcore/mcore.opt: Same.
2472 * config/mep/mep.opt: Same.
2473 * config/microblaze/microblaze.opt: Same.
2474 * config/mips/mips.opt: Same.
2475 * config/mmix/mmix.opt: Same.
2476 * config/mn10300/mn10300.opt: Same.
2477 * config/moxie/moxie.opt: Same.
2478 * config/msp430/msp430.opt: Same.
2479 * config/nios2/elf.opt: Same.
2480 * config/nios2/nios2.opt: Same.
2481 * config/nvptx/nvptx.opt: Same.
2482 * config/pa/pa-hpux.opt: Same.
2483 * config/pa/pa-hpux1010.opt: Same.
2484 * config/pa/pa-hpux1111.opt: Same.
2485 * config/pa/pa-hpux1131.opt: Same.
2486 * config/pa/pa.opt: Same.
2487 * config/pa/pa64-hpux.opt: Same.
2488 * config/pdp11/pdp11.opt: Same.
2489 * config/rl78/rl78.opt: Same.
2490 * config/rs6000/476.opt: Same.
2491 * config/rs6000/aix64.opt: Same.
2492 * config/rs6000/darwin.opt: Same.
2493 * config/rs6000/linux64.opt: Same.
2494 * config/rs6000/rs6000.opt: Same.
2495 * config/rs6000/sysv4.opt: Same.
2496 * config/s390/s390.opt: Same.
2497 * config/s390/tpf.opt: Same.
2498 * config/sh/sh.opt: Same.
2499 * config/sol2.opt: Same.
2500 * config/sparc/long-double-switch.opt: Same.
2501 * config/sparc/sparc.opt: Same.
2502 * config/spu/spu.opt: Same.
2503 * config/stormy16/stormy16.opt: Same.
2504 * config/tilegx/tilegx.opt: Same.
2505 * config/tilepro/tilepro.opt: Same.
2506 * config/v850/v850.opt: Same.
2507 * config/vax/vax.opt: Same.
2508 * config/visium/visium.opt: Same.
2509 * config/vms/vms.opt: Same.
2510 * config/vxworks.opt: Same.
2511 * config/xtensa/xtensa.opt: Same.
2512
2513 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2514 Sebastian Pop <s.pop@samsung.com>
2515
2516 * graphite-scop-detection.c (parameter_index_in_region): Update call to
2517 invariant_in_sese_p_rec.
2518 * graphite-sese-to-poly.c (extract_affine): Same.
2519 * sese.c (invariant_in_sese_p_rec): Pass in an extra
2520 parameter has_vdefs.
2521 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
2522 variable depends on virtual definitions in the current region.
2523 * sese.h (invariant_in_sese_p_rec): Update declaration.
2524
2525 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2526 Sebastian Pop <s.pop@samsung.com>
2527
2528 * graphite-scop-detection.c (build_scops): Do not handle scops
2529 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
2530 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
2531
2532 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
2533
2534 * config.in: Regenerate.
2535 * configure: Regenerate.
2536 * configure.ac (CHECKING_P): Define.
2537 * system.h: Use CHECKING_P.
2538
2539 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2540
2541 PR ipa/67056
2542 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
2543 is negative we don't know the type.
2544 (check_stmt_for_type_change): Skip constructors of non-polymorphic
2545 types as those won't help devirutalization.
2546
2547 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2548
2549 * fold-const.c (operand_equal_p): Add code matching empty constructors.
2550
2551 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
2552
2553 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
2554 comments.
2555 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
2556 Add comments on sign of the result.
2557 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
2558 Recurse on operand #1 instead of operand #0.
2559 <CEIL_MOD_EXPR>: Do not recurse.
2560 <ROUND_MOD_EXPR>: Likewise.
2561
2562 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2563
2564 * cfgrtl.c (pass_free_cfg::execute): Adjust.
2565 * final.c (dbr_sequence_length): Always define.
2566 (shorten_branches): Adjust.
2567 * genattr-common.c (main): Always define DELAY_SLOTS.
2568 * genattr.c (main): Unconditionally declare functions and define
2569 macros related to delay slots.
2570 * genattrtab.c (write_eligible_delay): Adjust.
2571 (main): Always write out delay slot functions.
2572 * opts.c (default_options_table): Adjust.
2573 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
2574 (redirect_with_delay_list_safe_p): Likewise.
2575 (fill_simple_delay_slots): Likewise.
2576 (fill_slots_from_thread): Likewise.
2577 (make_return_insns): Likewise.
2578 (dbr_schedule): Likewise.
2579 (rest_of_handle_delay_slots): Likewise.
2580 (pass_delay_slots::gate): Likewise.
2581 * toplev.c (process_options): Likewise.
2582
2583 2015-10-21 Richard Henderson <rth@redhat.com>
2584
2585 * targhooks.c (default_addr_space_pointer_mode): Remove check
2586 for generic address space.
2587 (default_addr_space_address_mode): Likewise.
2588 (default_addr_space_valid_pointer_mode): Likewise.
2589 (default_addr_space_legitimate_address_p): Likewise.
2590 (default_addr_space_legitimize_address): Likewise.
2591 * target.def (addr_space.pointer_mode): Update documentation
2592 of default behavior.
2593 (addr_space.address_mode): Likewise.
2594 * tm.texi: Update.
2595
2596 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
2597 address spaces.
2598
2599 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2600
2601 * builtins.c (fold_builtin_cabs): Delete.
2602 (fold_builtin_1): Update accordingly. Handle constant arguments here.
2603 * match.pd: Add rules previously handled by fold_builtin_cabs.
2604
2605 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2606
2607 * fold-const.h (fold_strip_sign_ops): Delete.
2608 * fold-const.c (fold_strip_sign_ops): Likewise.
2609 (fold_unary_loc, fold_binary_loc): Remove calls to it.
2610 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
2611 (fold_builtin_ccos): Delete.
2612 (fold_builtin_pow): Don't call fold_strip_sign_ops.
2613 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
2614 Remove fndecl argument.
2615 (fold_builtin_1): Update calls accordingly. Handle constant
2616 cos, cosh, ccos and ccosh here.
2617
2618 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2619
2620 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
2621 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
2622 * common.opt (fssa-backprop): New option.
2623 * fold-const.h (negate_mathfn_p): Declare.
2624 * fold-const.c (negate_mathfn_p): Make public.
2625 * timevar.def (TV_TREE_BACKPROP): New.
2626 * tree-pass.h (make_pass_backprop): Declare.
2627 * passes.def (pass_backprop): Add.
2628 * gimple-ssa-backprop.c: New file.
2629
2630 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2631 Sebastian Pop <s.pop@samsung.com>
2632
2633 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
2634 Do not call create_empty_if_region_on_edge when cond_expr is true.
2635 (translate_isl_ast_node_for): Check whether a guard has been generated.
2636
2637 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2638
2639 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
2640 (operator=): Removed.
2641 (dr_info): Make alias_set number the last argument with default
2642 value of invalid_alias_set.
2643 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
2644 of dr_info.
2645 (rewrite_reductions_out_of_ssa): Iterate only through the
2646 basic blocks which are inside region.
2647 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2648 * sese.h (struct sese_l): Removed assignment operator.
2649 (split_region_for_bb): Removed dead code.
2650
2651 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2652
2653 * graphite-poly.h (struct dr_info): Removed conversion constructor.
2654 (struct scop): Renamed scop::region to scop::scop_info
2655 (scop_set_region): Same.
2656 (SCOP_REGION): Removed
2657 (SCOP_CONTEXT): Removed.
2658 (POLY_SCOP_P): Removed.
2659 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2660 Rename scop->region to scop->scop_info.
2661 (add_parameters_to_ivs_params): Same.
2662 (graphite_regenerate_ast_isl): Same.
2663 * graphite-poly.c (new_scop): Same.
2664 (free_scop): Same.
2665 (print_scop_params): Same.
2666 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
2667 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
2668 (dot_all_scops_1): Rename scop->region to scop->scop_info.
2669 (scop_detection::nb_pbbs_in_loops): Same.
2670 (find_scop_parameters): Same.
2671 (try_generate_gimple_bb): Same.
2672 (gather_bbs::before_dom_children): Same.
2673 (gather_bbs::after_dom_children): Same.
2674 (build_scops): Same.
2675 * graphite-sese-to-poly.c (build_scop_scattering): Same.
2676 (extract_affine_chrec): Same.
2677 (extract_affine): Same.
2678 (set_scop_parameter_dim): Same.
2679 (build_loop_iteration_domains): Same.
2680 (create_pw_aff_from_tree): Same.
2681 (add_param_constraints): Same.
2682 (build_scop_iteration_domain): Same.
2683 (build_scop_drs): Same.
2684 (analyze_drs_in_stmts): Same.
2685 (insert_out_of_ssa_copy_on_edge): Same.
2686 (rewrite_close_phi_out_of_ssa):Same.
2687 (rewrite_reductions_out_of_ssa):Same.
2688 (handle_scalar_deps_crossing_scop_limits):Same.
2689 (rewrite_cross_bb_scalar_deps):Same.
2690 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
2691 (build_poly_scop):Same.
2692 (build_alias_set): Use pointer to dr_info.
2693 * graphite.c (print_graphite_scop_statistics):
2694 (graphite_transform_loops):
2695 * sese.h (struct sese_l): Remove conversion constructor.
2696
2697 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2698
2699 PR middle-end/67966
2700 * tree.c (verify_type): Verify that TYPE_MODE match
2701 between TYPE_CANONICAL and type.
2702 * expr.c (store_expr_with_bounds): Revert my previous change.
2703 * expmed.c (store_bit_field_1): Revert prevoius change.
2704 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
2705 to match for all types.
2706
2707 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
2708
2709 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
2710 nesting.
2711
2712 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2713
2714 * doc/tm.texi: Regenerated.
2715 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
2716 * stor-layout.c (layout_type): Use mode to get vector mask size.
2717 * target.def (get_mask_mode): New.
2718 * targhooks.c (default_get_mask_mode): New.
2719 * targhooks.h (default_get_mask_mode): New.
2720 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
2721 for boolean vector.
2722 * tree.c (MAX_BOOL_CACHED_PREC): New.
2723 (nonstandard_boolean_type_cache): New.
2724 (build_nonstandard_boolean_type): New.
2725 (make_vector_type): Vector mask has no canonical type.
2726 (build_truth_vector_type): New.
2727 (build_same_sized_truth_vector_type): New.
2728 (truth_type_for): Support vector masks.
2729 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
2730 (build_truth_vector_type): New.
2731 (build_same_sized_truth_vector_type): New.
2732 (build_nonstandard_boolean_type): New.
2733 * tree-cfg.c (verify_gimple_comparison) Require boolean
2734 vector type for vector comparison.
2735 (verify_gimple_assign_ternary): Likewise.
2736 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
2737 condition operand.
2738 * tree-vect-stmts.c (vectorizable_condition): Use boolean
2739 vector type for vector comparison.
2740 * tree-vect-generic.c (elem_op_func): Add new operand to hold
2741 vector type.
2742 (do_unop): Adjust to modified function type.
2743 (do_binop): Likewise.
2744 (do_plus_minus): Likewise.
2745 (do_negate); Likewise.
2746 (expand_vector_piecewise): Likewise.
2747 (do_cond): Likewise.
2748 (do_compare): Use comparison instead of condition.
2749 (expand_vector_divmod): Use boolean vector type for comparison.
2750 (expand_vector_operations_1): Skip scalar mask operations.
2751
2752 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2753
2754 * omp-low.c (simd_clone_create): Set in_other_partition
2755 for created clones.
2756
2757 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2758
2759 * doc/extend.exp (Local Register Variables): Rewrite.
2760
2761 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2762
2763 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
2764 and x*x in cases where the operands are sign ops. Extend these
2765 rules to handle copysign as a sign op (including for cos, cosh
2766 and pow, which already treated negate and abs as sign ops).
2767
2768 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
2769
2770 PR target/68018
2771 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
2772 for 64-bit MS_ABI targets also when default incoming stack boundary
2773 is overriden.
2774
2775 2015-10-21 Richard Biener <rguenther@suse.de>
2776
2777 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
2778 cond stmts, enhanced and split out from ...
2779 (vn_phi_eq): ... here.
2780
2781 2015-10-21 Richard Biener <rguenther@suse.de>
2782
2783 PR middle-end/68031
2784 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
2785 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
2786 (tree_single_nonnegative_warnv_p): ... here. For SSA names
2787 make sure they are not registered for update.
2788
2789 2015-10-21 Richard Biener <rguenther@suse.de>
2790
2791 PR tree-optimization/68026
2792 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
2793 unsigned VARYING values.
2794
2795 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2796
2797 * asan.c (asan_emit_stack_protection): Don't pass local stack to
2798 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
2799 NULL and use local stack than.
2800 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
2801 in addition to __asan_init.
2802 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
2803 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
2804 * asan.h (asan_intercepted_p): Handle new string builtins.
2805 * ubsan.c (ubsan_use_new_style_p): New function.
2806 (ubsan_instrument_float_cast): If location is unknown, assign
2807 input_location to loc. Propagate loc to ubsan_create_data if
2808 ubsan_use_new_style_p returned true.
2809
2810 2015-10-21 Jeff Law <law@redhat.com>
2811
2812 * Makefile.in (OBJS): Remove sched-vis.c
2813 * sched-vis.c: Removed. Code moved into...
2814 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
2815 * rtl.h: Remove prototypes for functions now living in print-rtl.c
2816 * print-rtl.h Add prototypes for new functions in print-rtl.c.
2817 * auto-inc-dec.c: Include print-rtl.h
2818 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
2819 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
2820
2821 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
2822 ATTRIBUTE_UNUSED.
2823
2824 2015-10-21 Richard Biener <rguenther@suse.de>
2825 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2826
2827 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
2828 to match.pd.
2829 Move (a * (1 << b)) is (a << b) to match.pd.
2830 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
2831 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
2832 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
2833
2834 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
2835 New simplifier.
2836 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
2837 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
2838 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
2839 : New simplifier.
2840 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
2841 New simplifier.
2842 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
2843
2844 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
2845 Szabolcs Nagy <szabolcs.nagy@arm.com>
2846 Alan Modra <amodra@gmail.com>
2847
2848 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
2849 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
2850 (LINK_SPEC): Add %(link_secure_plt).
2851 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
2852 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
2853
2854 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
2855 Szabolcs Nagy <szabolcs.nagy@arm.com>
2856
2857 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
2858 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
2859
2860 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2861
2862 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
2863 New function.
2864 (fusion_load_store): Use it.
2865 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
2866 ldp and stp in VD modes.
2867 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
2868 (store_pair<mode>, VD): Likewise.
2869
2870 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
2871
2872 PR rtl-optimization/67609
2873 * lra-splill.c (lra_final_code_change): Don't remove all
2874 sub-registers.
2875
2876 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2877
2878 * simplify-rtx.c (simplify_binary_operation): If either operand was
2879 a constant pool reference use them if all other simplifications failed.
2880
2881 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2882
2883 * config/aarch64/aarch64.md
2884 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
2885 * config/aarch64/aarch64-simd.md
2886 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
2887 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
2888 (aarch64_fpconst_pow_of_2): New function.
2889 (aarch64_vec_fpconst_pow_of_2): Likewise.
2890 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
2891 prototype.
2892 (aarch64_vec_fpconst_pow_of_2): Likewise.
2893 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
2894 (aarch64_fp_vec_pow2): Likewise.
2895
2896 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
2897
2898 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
2899 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
2900 * config/alpha/alpha.c (alpha_function_arg_advance): Update
2901 ALPHA_ARG_SIZE usage.
2902 (alpha_arg_partial_bytes): Ditto.
2903
2904 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
2905
2906 PR target/66810
2907 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
2908 error_mark_node decls.
2909
2910 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
2911
2912 PR target/67963
2913 PR target/67985
2914 * common/config/i386/i386-common.c (ix86_handle_option): Remove
2915 OPT_miamcu handling.
2916 * config/i386/i386.c (PTA_NO_80387): New macro.
2917 (processor_alias_table): Add PTA_NO_80387 to lakemont.
2918 (ix86_option_override_internal): Update MASK_80387 from
2919 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
2920 SSE math only if 80387 is supported. Don't change
2921 MASK_FLOAT_RETURNS.
2922 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
2923 80387 is supported.
2924 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
2925 if TARGET_80387 is true and TARGET_IAMCU is false.
2926 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
2927 is true and TARGET_IAMCU_P is false.
2928
2929 2015-10-20 Richard Biener <rguenther@suse.de>
2930
2931 PR tree-optimization/68017
2932 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
2933
2934 2015-10-20 Martin Liska <mliska@suse.cz>
2935
2936 * cgraphclones.c (cgraph_node::create_virtual_clone):
2937 Verify cgraph_node.local.versionable instead of calling
2938 tree_versionable_function_p.
2939 * ipa-cp.c (determine_versionability): Save the information
2940 to ipa_node_params summary.
2941 (ipcp_versionable_function_p): Use it.
2942 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
2943 (ipcp_generate_summary): Do not compute cgraph_node
2944 versionability.
2945 * ipa-inline-analysis.c (inline_generate_summary): Compute
2946 versionability for all cgraph nodes.
2947 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
2948 ipa_node_params::versionability.
2949 * ipa-prop.h (struct ipa_node_params): Declare it.
2950
2951 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2952
2953 PR other/67868
2954 * varasm.c (assemble_variable): Move special vtv handling to..
2955 (handle_vtv_comdat_sections): .. here. New function.
2956 (output_object_block): Handle vtv sections.
2957
2958 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
2959
2960 PR target/66912
2961 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
2962
2963 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
2964
2965 * doc/extend.texi: Update documentation WRT inline functions.
2966
2967 2015-10-20 Alan Modra <amodra@gmail.com>
2968
2969 PR go/66870
2970 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
2971 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
2972 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
2973
2974 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
2975
2976 PR rtl-optimization/66790
2977 * df.h (DF_MIR): New macro.
2978 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
2979 (DF_MIR_INFO_BB): New macro.
2980 (DF_MIR_IN, DF_MIR_OUT): New macros.
2981 (struct df_mir_bb_info): New.
2982 (df_mir): New macro.
2983 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
2984 declarations.
2985 (df_mir_get_bb_info): New.
2986 * df-problems.c (struct df_mir_problem_data): New.
2987 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
2988 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
2989 df_mir_confluence_0, df_mir_confluence_n,
2990 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
2991 df_mir_bottom_dump, df_mir_verify_solution_start,
2992 df_mir_verify_solution_end): New.
2993 (problem_MIR): New.
2994 (df_mir_add_problem, df_mir_simulate_one_insn): New.
2995 * timevar.def (TV_DF_MIR): New.
2996 * ree.c: Include bitmap.h
2997 (add_removable_extension): Add an INIT_REGS parameter. Use it
2998 to skip zero-extensions that may get an uninitialized register.
2999 (find_removable_extensions): Compute must-initialized registers
3000 using the MIR dataflow problem. Update the call to
3001 add_removable_extension.
3002 (find_and_remove_re): Call df_mir_add_problem.
3003
3004 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
3005
3006 * common/config/mn10300/mn10300-common.c
3007 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
3008 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
3009
3010 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
3011
3012 * doc/extend.texi (Explicit Register Variables): Simplify and
3013 avoid unnecessary and confusion abbreviations. Update cross
3014 references.
3015 doc/implement-c.tex: Update cross reference.
3016
3017 2015-10-19 Jeff Law <law@redhat.com>
3018
3019 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
3020 that create irreducible loops unless the path elimiantes a multiway
3021 branch.
3022
3023 2015-10-19 Richard Biener <rguenther@suse.de>
3024
3025 PR tree-optimization/67975
3026 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
3027 * tree-cfg.c (extract_true_false_controlled_edges): Split out
3028 core worker from ...
3029 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
3030 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
3031 instead of block number for PHIs with two or one args.
3032 (vn_phi_eq): Compare edge predicates of PHIs that are in different
3033 blocks.
3034
3035 2015-10-19 Richard Biener <rguenther@suse.de>
3036
3037 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
3038 (gimple_stmt_nonnegative_warnv_p): Use it.
3039 * match.pd (CPROJ): New operator list.
3040 (cproj (complex ...)): Move simplifications from ...
3041 * builtins.c (fold_builtin_cproj): ... here.
3042
3043 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3044
3045 * config/i386/i386.c (ix86_expand_vector_move): Use
3046 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
3047 alignment.
3048
3049 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3050
3051 * doc/invoke.texi: Replace @optindex with @opindex.
3052
3053 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3054
3055 PR target/67995
3056 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
3057 arch= is set, clear all bits in x_ix86_isa_flags, except for
3058 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
3059
3060 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
3061
3062 PR middle-end/68002
3063 * common.opt (fkeep-static-functions): New option.
3064 * doc/invoke.texi: Document it.
3065 * cgraphunit.c (cgraph_node::finalize_function): Use it.
3066
3067 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3068
3069 * sched-int.h (struct autopref_multipass_data_): Remove offset
3070 field. Add min_offset, max_offset, multi_mem_insn_p fields.
3071 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
3072 (autopref_multipass_init): Use it. Handle PARALLEL sets.
3073 (autopref_rank_data): New function.
3074 (autopref_rank_for_schedule): Use it.
3075 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
3076
3077 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
3078
3079 PR other/65800
3080 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
3081
3082 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3083
3084 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
3085 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
3086 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
3087 (STANDARD_STARTFILE_PREFIX_1): New.
3088 (STANDARD_STARTFILE_PREFIX_2): New.
3089
3090 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3091
3092 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
3093 (darwin_driver_init): Note a version-min when provided on the c/l.
3094 * config/darwin.h (%darwin_minversion): Remove.
3095 * config/i386/darwin.h: Likewise.
3096 * config/rs6000/darwin.h: Likewise.
3097 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
3098 rather than an arbitrary constant.
3099
3100 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3101
3102 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
3103 PPC, detect conflicts between -arch and multilib settings. Detect
3104 and warn about conflicts between multiple -arch definitions.
3105
3106 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3107
3108 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
3109
3110 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3111
3112 * lra-constraints.c (add_next_usage_insn): Change argument type
3113 from rtx to rtx_insn *.
3114
3115 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
3116
3117 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
3118 for Lakemont.
3119
3120 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
3121
3122 * config/tilepro/gen-mul-tables.cc: Adjust include files.
3123 * config/tilegx/mul-tables.c: Regenerate.
3124 * config/tilepro/mul-tables.c: Regenerate.
3125
3126 * config/tilegx/tilegx-c.c: Adjust include files.
3127 * config/tilegx/tilegx.c: Likewise.
3128 * config/tilepro/tilepro-c.c: Likewise.
3129 * config/tilepro/tilepro.c: Likewise.
3130 * config/aarch64/aarch64-builtins.c: Likewise.
3131 * config/aarch64/aarch64.c: Likewise.
3132 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3133 * config/alpha/alpha.c: Likewise.
3134 * config/arc/arc.c: Likewise.
3135 * config/arm/aarch-common.c: Likewise.
3136 * config/arm/arm-builtins.c: Likewise.
3137 * config/arm/arm-c.c: Likewise.
3138 * config/arm/arm.c: Likewise.
3139 * config/avr/avr-c.c: Likewise.
3140 * config/avr/avr-devices.c: Likewise.
3141 * config/avr/avr-log.c: Likewise.
3142 * config/avr/avr.c: Likewise.
3143 * config/bfin/bfin.c: Likewise.
3144 * config/c6x/c6x.c: Likewise.
3145 * config/cr16/cr16.c: Likewise.
3146 * config/cris/cris.c: Likewise.
3147 * config/darwin-c.c: Likewise.
3148 * config/darwin-driver.c: Likewise.
3149 * config/darwin.c: Likewise.
3150 * config/default-c.c: Likewise.
3151 * config/epiphany/epiphany.c: Likewise.
3152 * config/epiphany/mode-switch-use.c: Likewise.
3153 * config/epiphany/resolve-sw-modes.c: Likewise.
3154 * config/fr30/fr30.c: Likewise.
3155 * config/frv/frv.c: Likewise.
3156 * config/ft32/ft32.c: Likewise.
3157 * config/glibc-c.c: Likewise.
3158 * config/h8300/h8300.c: Likewise.
3159 * config/i386/host-cygwin.c: Likewise.
3160 * config/i386/host-mingw32.c: Likewise.
3161 * config/i386/i386-c.c: Likewise.
3162 * config/i386/i386.c: Likewise.
3163 * config/i386/msformat-c.c: Likewise.
3164 * config/i386/winnt-cxx.c: Likewise.
3165 * config/i386/winnt-stubs.c: Likewise.
3166 * config/i386/winnt.c: Likewise.
3167 * config/ia64/ia64-c.c: Likewise.
3168 * config/ia64/ia64.c: Likewise.
3169 * config/iq2000/iq2000.c: Likewise.
3170 * config/lm32/lm32.c: Likewise.
3171 * config/m32c/m32c-pragma.c: Likewise.
3172 * config/m32c/m32c.c: Likewise.
3173 * config/m32r/m32r.c: Likewise.
3174 * config/mcore/mcore.c: Likewise.
3175 * config/mep/mep-pragma.c: Likewise.
3176 * config/mep/mep.c: Likewise.
3177 * config/microblaze/microblaze-c.c: Likewise.
3178 * config/microblaze/microblaze.c: Likewise.
3179 * config/mips/mips-tables.opt
3180 * config/mips/mips.c: Likewise.
3181 * config/mmix/mmix.c: Likewise.
3182 * config/mn10300/mn10300.c: Likewise.
3183 * config/moxie/moxie.c: Likewise.
3184 * config/msp430/msp430-c.c: Likewise.
3185 * config/msp430/msp430.c: Likewise.
3186 * config/nds32/nds32-cost.c: Likewise.
3187 * config/nds32/nds32-fp-as-gp.c: Likewise.
3188 * config/nds32/nds32-intrinsic.c: Likewise.
3189 * config/nds32/nds32-isr.c: Likewise.
3190 * config/nds32/nds32-md-auxiliary.c: Likewise.
3191 * config/nds32/nds32-memory-manipulation.c: Likewise.
3192 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3193 * config/nds32/nds32-predicates.c: Likewise.
3194 * config/nds32/nds32.c: Likewise.
3195 * config/nios2/nios2.c: Likewise.
3196 * config/nvptx/mkoffload.c: Likewise.
3197 * config/nvptx/nvptx.c: Likewise.
3198 * config/pa/pa.c: Likewise.
3199 * config/pdp11/pdp11.c: Likewise.
3200 * config/rl78/rl78-c.c: Likewise.
3201 * config/rl78/rl78.c: Likewise.
3202 * config/rs6000/host-darwin.c: Likewise.
3203 * config/rs6000/rs6000-c.c: Likewise.
3204 * config/rs6000/rs6000-linux.c: Likewise.
3205 * config/rs6000/rs6000.c: Likewise.
3206 * config/rx/rx.c: Likewise.
3207 * config/s390/s390-c.c: Likewise.
3208 * config/s390/s390.c: Likewise.
3209 * config/sh/sh-c.c: Likewise.
3210 * config/sh/sh-mem.cc: Likewise.
3211 * config/sh/sh.c: Likewise.
3212 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3213 * config/sh/sh_treg_combine.cc: Likewise.
3214 * config/sol2-c.c: Likewise.
3215 * config/sol2-cxx.c: Likewise.
3216 * config/sol2-stubs.c: Likewise.
3217 * config/sol2.c: Likewise.
3218 * config/sparc/sparc-c.c: Likewise.
3219 * config/sparc/sparc.c: Likewise.
3220 * config/spu/spu-c.c: Likewise.
3221 * config/spu/spu.c: Likewise.
3222 * config/stormy16/stormy16.c: Likewise.
3223 * config/v850/v850-c.c: Likewise.
3224 * config/v850/v850.c: Likewise.
3225 * config/vax/vax.c: Likewise.
3226 * config/visium/visium.c: Likewise.
3227 * config/vms/vms-c.c: Likewise.
3228 * config/vms/vms.c: Likewise.
3229 * config/vxworks.c: Likewise.
3230 * config/winnt-c.c: Likewise.
3231 * config/xtensa/xtensa.c: Likewise.
3232
3233 2015-10-16 Christian Bruel <christian.bruel@st.com>
3234
3235 PR target/67745
3236 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
3237 (FUNCTION_BOUNDARY_P): New macro:
3238 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
3239 New hook.
3240 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
3241 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
3242 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
3243 * function.c (allocate_struct_function): Call
3244 relayout_function hook.
3245 * passes.c (rest_of_decl_compilation): Likewise.
3246
3247 2015-10-16 Christian Bruel <christian.bruel@st.com>
3248
3249 PR target/67745
3250 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
3251 * config/arm/arm.c (arm_option_override_internal): Call
3252 arm_override_options_after_change_1.
3253 (arm_override_options_after_change): New function.
3254 (arm_override_options_after_change_1): Likewise.
3255 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
3256
3257 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3258
3259 Revert:
3260 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3261 empty constructors.
3262
3263 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
3264
3265 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
3266 argument is an ADDR_EXPR.
3267
3268 2015-10-16 Richard Biener <rguenther@suse.de>
3269
3270 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
3271 and get rid of force_gimple_operand_gsi.
3272 (gimple_fold_builtin_memory_chk): Likewise.
3273 (gimple_fold_builtin_stxcpy_chk): Likewise.
3274 (rewrite_to_defined_overflow): Likewise.
3275 (gimple_convert_to_ptrofftype): New function.
3276 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
3277
3278 2015-10-16 Richard Biener <rguenther@suse.de>
3279
3280 * tree-nested.h (build_addr): Adjust prototype.
3281 * tree-nested.c (build_addr): Remove context argument and use
3282 mark_addressable.
3283 (get_static_chain): Adjust calls to build_addr.
3284 (convert_nl_goto_reference): Likewise.
3285 (convert_tramp_reference_op): Likewise.
3286 (finalize_nesting_tree_1): Likewise.
3287 * value-prof.c (gimple_ic): Likewise.
3288 * gimple-low.c (lower_builtin_setjmp): Likewise.
3289 * tree-parloops.c (take_address_of): Likewise.
3290 (create_call_for_reduction_1): Likewise.
3291 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
3292 (gimple_gen_ic_func_profiler): Likewise.
3293
3294 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3295
3296 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3297 empty constructors.
3298
3299 2015-10-16 Michael Collison <michael.collison@linaro.org>
3300 Andrew Pinski <andrew.pinski@caviumnetworks.com>
3301
3302 * match.pd ((x < y) && (x < z) -> x < min (y,z),
3303 (x > y) and (x > z) -> x > max (y,z))
3304
3305 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
3306 Szabolcs Nagy <szabolcs.nagy@arm.com>
3307
3308 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
3309 (DYNAMIC_LINKER): Renamed to ...
3310 (GLIBC_DYNAMIC_LINKER): This.
3311 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
3312
3313 2015-10-15 Marek Polacek <polacek@redhat.com>
3314
3315 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
3316 gimple_call_builtin instead of is_gimple_call.
3317
3318 2015-10-15 Richard Biener <rguenther@suse.de>
3319
3320 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
3321
3322 2015-10-15 Richard Biener <rguenther@suse.de>
3323
3324 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
3325 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
3326 * tree-vect-loop.c (get_initial_def_for_induction): Drop
3327 use of force_gimple_operand in favor of gimple_build.
3328 Use vect_get_new_ssa_name.
3329 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
3330 (vectorizable_mask_load_store): Likewise.
3331 (vectorizable_call): Likewise.
3332 (vectorizable_store): Likewise.
3333 (vectorizable_load): Likewise.
3334 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
3335
3336 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
3337
3338 PR tree-optimization/67945
3339 * tree-pass.h (PROP_gimple_opt_math): New property flag.
3340 * generic-match-head.c (canonicalize_math_p): New function.
3341 * gimple-match-head.c: Include tree-pass.h.
3342 (canonicalize_math_p): New function.
3343 * match.pd: Group math built-in rules into simplifications
3344 and canonicalizations. Guard the latter with canonicalize_math_p.
3345 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
3346 PROP_gimple_opt_math property.
3347
3348 2015-10-15 Marek Polacek <polacek@redhat.com>
3349
3350 PR tree-optimization/67953
3351 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
3352
3353 2015-10-15 Jiong Wang <jiong.wang@arm.com>
3354
3355 * config.gcc: Recognize "." in architecture base name for AArch64.
3356
3357 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
3358
3359 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
3360 ROUND_UP macro.
3361 * config/mips/mips.c (mips_setup_incoming_varargs): Use
3362 ROUND_DOWN to calculate off.
3363 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
3364 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
3365 rounded_size.
3366
3367 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
3368
3369 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
3370
3371 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
3372 Torvald Riegel <triegel@redhat.com>
3373
3374 PR target/67281
3375 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
3376 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3377 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
3378 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
3379 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
3380 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3381 trechkpt, treclaim, tsr, ttest): New define_expands.
3382 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3383 __TM_FENCE__ for htm.
3384 * doc/extend.texi: Update documentation for htm builtins.
3385
3386 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
3387
3388 PR target/67967
3389 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
3390 REG_CFA_EXPRESSION to aligned SSE stores.
3391
3392 2015-10-14 Jeff Law <law@redhat.com>
3393
3394 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
3395 num_threaded_edges for successful FSM threads too.
3396
3397 2015-10-14 Richard Biener <rguenther@suse.de>
3398
3399 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
3400 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
3401 (vect_get_vec_def_for_operand): Remove unused parameter.
3402 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
3403 (vect_create_epilog_for_reduction): Likewise.
3404 (vectorizable_reduction): Likewise.
3405 (vectorizable_live_operation): Likewise.
3406 * tree-vect-patterns.c (type_conversion_p): Likewise.
3407 (vect_recog_vector_vector_shift_pattern): Likewise.
3408 (check_bool_pattern): Likewise.
3409 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3410 (vect_analyze_slp_cost_1): Likewise.
3411 * tree-vect-stmts.c (process_use): Likewise.
3412 (vect_get_vec_def_for_operand): Do not handle reductions.
3413 (vect_get_vec_defs): Adjust.
3414 (vectorizable_mask_load_store): Likewise.
3415 (vectorizable_call): Likewise.
3416 (vectorizable_simd_clone_call): Likewise.
3417 (vect_get_loop_based_defs): Likewise.
3418 (vectorizable_conversion): Likewise.
3419 (vectorizable_assignment): Likewise.
3420 (vectorizable_shift): Likewise.
3421 (vectorizable_operation): Likewise.
3422 (vectorizable_store): Likewise.
3423 (vectorizable_load): Likewise.
3424 (vect_is_simple_cond): Likewise.
3425 (vectorizable_condition): Likewise.
3426 (vect_is_simple_use): Remove unused parameters.
3427 (vect_is_simple_use_1): Adjust and rename.
3428
3429 2015-10-14 Richard Biener <rguenther@suse.de>
3430
3431 PR tree-optimization/67915
3432 * match.pd: Handle comparisons of addresses of STRING_CSTs.
3433 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
3434 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
3435 stmt folding in favor of GIMPLE one.
3436
3437 2015-10-14 Marek Polacek <polacek@redhat.com>
3438
3439 PR tree-optimization/67815
3440 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
3441 (reassociate_bb): Call it.
3442
3443 2015-10-14 Richard Biener <rguenther@suse.de>
3444
3445 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3446 Reset info at start.
3447 (vect_analyze_group_access_1): Add debug print.
3448 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
3449 (vect_compute_single_scalar_iteration_cost): ... to this.
3450 (vect_analyze_loop_2): Adjust.
3451 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
3452 * tree-vectorizer.h: ... here.
3453 (add_stmt_info_to_vec): Remove.
3454 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
3455
3456 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
3457
3458 * targhooks.c (default_target_option_pragma_parse): Do not warn if
3459 called on behalf of "#pragma GCC pop_options".
3460
3461 2015-10-14 Tom de Vries <tom@codesourcery.com>
3462
3463 * cfganal.c (verify_no_unreachable_blocks): New function.
3464 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
3465 verify_no_unreachable_blocks.
3466 cfganal.h (verify_no_unreachable_blocks): Declare.
3467
3468 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
3469
3470 * common.opt: Add flag_checking.
3471 * system.h (CHECKING_P): Define.
3472
3473 2015-10-13 Jakub Jelinek <jakub@redhat.com>
3474 Aldy Hernandez <aldyh@redhat.com>
3475 Ilya Verbin <ilya.verbin@intel.com>
3476
3477 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
3478 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
3479 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
3480 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
3481 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
3482 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
3483 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
3484 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
3485 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
3486 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
3487 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
3488 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
3489 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
3490 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3491 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
3492 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3493 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3494 (struct cgraph_simd_clone_arg): Adjust comment.
3495 * coretypes.h (struct gomp_ordered): New forward decl.
3496 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
3497 set critical clauses to it.
3498 (gimple_build_omp_ordered): Return gomp_ordered * instead of
3499 gimple *. Add CLAUSES argument, set ordered clauses to it.
3500 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
3501 GIMPLE_OMP_ORDERED.
3502 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
3503 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
3504 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
3505 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
3506 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
3507 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
3508 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
3509 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
3510 renumber
3511 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
3512 (gomp_critical): Add clauses field.
3513 (gomp_ordered): New struct.
3514 (is_a_helper <gomp_ordered *>::test): New inline.
3515 (gimple_build_omp_critical): Add CLAUSES argument.
3516 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
3517 instead of gimple *.
3518 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
3519 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
3520 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
3521 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
3522 inline functions.
3523 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
3524 (dump_gimple_omp_target): Handle enter data and exit data.
3525 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
3526 (dump_gimple_omp_critical): Print clauses.
3527 (dump_gimple_omp_ordered): New function.
3528 (dump_gimple_omp_task): Handle taskloop.
3529 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
3530 GIMPLE_OMP_ORDERED.
3531 * gimple-walk.c (walk_gimple_op): Walk clauses on
3532 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
3533 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
3534 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
3535 (struct gimplify_omp_ctx): Add loop_iter_var,
3536 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
3537 and target_firstprivatize_array_bases fields.
3538 (delete_omp_context): Release loop_iter_var.
3539 (gimplify_bind_expr): Handle ORT_NONE.
3540 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
3541 ORT_COMBINED_TARGET.
3542 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
3543 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
3544 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
3545 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
3546 ctx->target_map_scalars_firstprivate.
3547 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
3548 data sharing clauses. For data sharing clause with VLA decl
3549 on omp target/target data don't add firstprivate for the pointer.
3550 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
3551 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
3552 the addition of ORT_COMBINED_TARGET.
3553 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
3554 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
3555 pointers as zero length array sections and
3556 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
3557 data sharing.
3558 (omp_check_private): Handle omp_member_access_dummy_var vars.
3559 (find_decl_expr): New function.
3560 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
3561 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
3562 Handle OMP_CLAUSE_GANG separately. Handle
3563 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3564 clauses. Diagnose linear clause on combined
3565 distribute {, parallel for} simd construct, unless it is the loop
3566 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
3567 Handle map clauses with COMPONENT_REF. Initialize
3568 ctx->target_map_scalars_firstprivate,
3569 ctx->target_firstprivatize_array_bases and
3570 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
3571 linear clause even to target region if combined. Remove
3572 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
3573 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
3574 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
3575 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
3576 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
3577 For linear clause on worksharing loop combined with parallel add
3578 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
3579 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
3580 omp_member_access_dummy_var vars. Add lastprivate clause to outer
3581 taskloop if needed.
3582 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
3583 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
3584 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
3585 GOMP_MAP_POINTER.
3586 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
3587 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
3588 in target body. Handle removal of struct mapping if struct is not
3589 seen in target body. Remove GOMP_MAP_STRUCT map clause on
3590 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
3591 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
3592 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
3593 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
3594 clause appear together. Handle
3595 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
3596 clause if it has map-type-modifier always. Handle
3597 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3598 clauses.
3599 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
3600 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
3601 callers.
3602 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
3603 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
3604 iterators in doacross loops.
3605 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
3606 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
3607 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
3608 for the addition of ORT_COMBINED_TARGET.
3609 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
3610 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
3611 and OMP_TARGET_EXIT_DATA.
3612 (gimplify_omp_ordered): New function.
3613 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
3614 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
3615 Gimplify clauses on OMP_CRITICAL.
3616 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
3617 expand_GOMP_SIMD_ORDERED_END): New functions.
3618 * internal-fn.def (GOMP_SIMD_ORDERED_START,
3619 GOMP_SIMD_ORDERED_END): New internal functions.
3620 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
3621 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
3622 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
3623 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
3624 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
3625 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
3626 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
3627 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
3628 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
3629 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
3630 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
3631 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
3632 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
3633 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
3634 adjust type.
3635 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
3636 GOMP_target_data_41, adjust type.
3637 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
3638 GOMP_target_update_41, adjust type.
3639 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
3640 field.
3641 (struct omp_for_data): Add ordered and simd_schedule fields.
3642 (omp_member_access_dummy_var, unshare_and_remap_1,
3643 unshare_and_remap, is_taskloop_ctx): New functions.
3644 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
3645 (extract_omp_for_data): Handle taskloops and doacross loops
3646 and simd schedule modifier.
3647 (omp_adjust_chunk_size): New function.
3648 (get_ws_args_for): Use it.
3649 (lookup_sfield): Change first argument to splay_tree_key,
3650 add overload with first argument tree.
3651 (maybe_lookup_field): Likewise.
3652 (use_pointer_for_field): Handle omp_member_access_dummy_var.
3653 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
3654 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
3655 (build_outer_var_ref): Add LASTPRIVATE argument, handle
3656 taskloops and omp_member_access_dummy_var vars.
3657 (build_sender_ref): Change first argument to splay_tree_key,
3658 add overload with first argument tree.
3659 (install_var_field): For mask & 8 use &DECL_UID as key instead
3660 of the tree itself.
3661 (fixup_child_record_type): Const qualify *.omp_data_i.
3662 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
3663 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
3664 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
3665 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
3666 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
3667 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
3668 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
3669 kinds.
3670 (add_taskreg_looptemp_clauses): New function.
3671 (scan_omp_parallel): Use it.
3672 (scan_omp_task): Likewise.
3673 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3674 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
3675 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3676 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
3677 sandwiched taskloop constructs. Type check
3678 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
3679 region. Diagnose depend(source) or depend(sink:...) on
3680 target constructs or task/taskloop.
3681 (handle_simd_reference): Use get_name.
3682 (lower_rec_input_clauses): Likewise. Ignore all
3683 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
3684 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
3685 before passing it to omp_clause_{default,copy}_ctor. Handle
3686 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
3687 lastprivate_firstprivate flag for linear that needs copyin and
3688 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
3689 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
3690 on taskloop lookup decl in outer context. Pass true to
3691 build_outer_var_ref lastprivate argument. Handle
3692 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
3693 outside of outer taskloop for.
3694 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
3695 OMP_CLAUSE_DECL.
3696 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
3697 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
3698 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
3699 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
3700 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
3701 abstract origin. Handle omp_member_access_dummy_var vars.
3702 (expand_parallel_call): Use expand_omp_build_assign.
3703 (expand_task_call): Handle taskloop construct expansion. Add
3704 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
3705 integers. Add priority argument to GOMP_task* calls. Or in
3706 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
3707 GOMP_task call.
3708 (expand_omp_build_assign): Add prototype. Add AFTER
3709 argument, if true emit statements after *GSI_P and continue linking.
3710 (expand_omp_taskreg): Adjust expand_task_call caller.
3711 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
3712 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
3713 zero_iter2_bb and first_zero_iter2 arguments, handle computation
3714 of counts even for ordered loops.
3715 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
3716 (expand_omp_ordered_source, expand_omp_ordered_sink,
3717 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
3718 functions.
3719 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
3720 clauses on worksharing loop. Handle DOACROSS loop expansion.
3721 (expand_omp_for_static_nochunk): Handle linear clauses on
3722 worksharing loop. Adjust expand_omp_for_init_counts
3723 callers.
3724 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
3725 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
3726 expand_omp_for_init_counts callers.
3727 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
3728 functions.
3729 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
3730 Handle doacross loops.
3731 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3732 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
3733 GOMP_target_{41,update_41,enter_exit_data} libcalls.
3734 (expand_omp): Don't expand ordered depend constructs here, record
3735 ord_stmt instead for later expand_omp_for_generic.
3736 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3737 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3738 clause as stand-alone directive.
3739 (lower_omp_ordered_clauses): New function.
3740 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
3741 don't lower anything.
3742 (lower_omp_for_lastprivate): Use last _looptemp_ clause
3743 on taskloop for comparison.
3744 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
3745 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
3746 expansion for linear adjustments.
3747 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3748 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
3749 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
3750 to tree * pointing to the stmt's clauses.
3751 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
3752 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3753 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
3754 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
3755 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
3756 clauses. Always use short kind and 8-bit align shift.
3757 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
3758 (struct lower_omp_regimplify_operands_data): New type.
3759 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
3760 New functions.
3761 (lower_omp_1): Use lower_omp_regimplify_operands instead of
3762 gimple_regimplify_operands.
3763 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3764 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3765 clause as stand-alone directive.
3766 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
3767 (simd_clone_mangle): Mangle the various linear kinds
3768 per the new ABI.
3769 (simd_clone_adjust_argument_types): Handle
3770 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
3771 (simd_clone_init_simd_arrays): Don't do anything for uval.
3772 (simd_clone_adjust): Handle
3773 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3774 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
3775 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
3776 * omp-low.h (omp_member_access_dummy_var): New prototype.
3777 * passes.def (pass_simduid_cleanup): Schedule another copy of the
3778 pass after all optimizations.
3779 * tree.c (omp_clause_code_name): Add entries for
3780 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3781 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3782 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
3783 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
3784 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
3785 OMP_CLAUSE_REDUCTION 5 arguments. Handle
3786 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3787 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
3788 clauses.
3789 * tree-core.h (enum omp_clause_linear_kind): New.
3790 (struct tree_omp_clause): Change type of map_kind
3791 from unsigned char to unsigned int. Add subcode.if_modifier
3792 and subcode.linear_kind fields.
3793 (enum omp_clause_code): Add
3794 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3795 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3796 (OMP_CLAUSE_REDUCTION): Document
3797 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3798 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
3799 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
3800 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
3801 operand.
3802 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
3803 operand.
3804 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
3805 codes.
3806 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
3807 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
3808 char.
3809 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
3810 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
3811 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
3812 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
3813 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
3814 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
3815 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
3816 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
3817 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
3818 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
3819 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
3820 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
3821 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
3822 * tree-inline.c (remap_gimple_stmt): Handle clauses on
3823 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
3824 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
3825 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
3826 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3827 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3828 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3829 (convert_local_omp_clauses): Likewise.
3830 * tree-pretty-print.c (dump_omp_clause): Handle
3831 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3832 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3833 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
3834 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
3835 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
3836 GOMP_MAP_FORCE_DEALLOC. Handle
3837 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
3838 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
3839 and clauses on OMP_ORDERED and OMP_CRITICAL.
3840 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
3841 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
3842 (vectorize_loops): Adjust comments.
3843 (pass_simduid_cleanup::execute): Likewise.
3844 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3845 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
3846 * wide-int.h (wi::gcd): New.
3847
3848 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3849
3850 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
3851 (ix86_function_arg_advance): Ditto.
3852 (ix86_function_arg): Ditto.
3853 (ix86_gimplify_va_arg): Ditto.
3854 (ix86_class_max_nregs): Ditto.
3855 (inline_memory_move_cost): Ditto.
3856 (ix86_set_reg_reg_cost): Ditto.
3857 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
3858
3859 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
3860
3861 PR middle-end/67912
3862 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
3863
3864 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3865
3866 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
3867 ROUND_UP macro and UNITS_PER_WORD * 2.
3868 * config/sparc/sparc.c (sparc_compute_frame_size):
3869 Use ROUND_UP and ROUND_DOWN macros where applicable.
3870 (function_arg_record_value, function_arg_record_value_1)
3871 (function_arg_record_value_1): Ditto.
3872 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
3873 alignment to double-word.
3874 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
3875 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
3876 rounded_size.
3877
3878 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
3879
3880 * rtl.h (print_insn): Fix prototype.
3881
3882 2015-10-13 Tom de Vries <tom@codesourcery.com>
3883
3884 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
3885 -1. Add assert that returned entry matches phi argument.
3886 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
3887 free_stmt_vec_info_vec ...
3888 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
3889 with -1.
3890
3891 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
3892
3893 PR tree-optimization/67909, 67947
3894 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
3895 really skip the inner loop.
3896
3897 2015-10-13 Jeff Law <law@redhat.com>
3898
3899 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3900 Allow single block jump threading paths.
3901
3902 2015-10-13 Tom de Vries <tom@codesourcery.com>
3903
3904 PR tree-optimization/67476
3905 * doc/invoke.texi (@item parloops-schedule): New item.
3906 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
3907 * tree-parloops.c: Include params-enum.h.
3908 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
3909
3910 2015-10-13 Tom de Vries <tom@codesourcery.com>
3911
3912 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
3913 * params-enum.h: New file.
3914 * opts.c (handle_param): Handle case that param arg is a string.
3915 * params-list.h: Handle DEFPARAMENUM5 in params.def.
3916 * params.c (find_param): New function, factored out of ...
3917 (set_param_value): ... here.
3918 (param_string_value_p): New function.
3919 * params.h (struct param_info): Add value_names field.
3920 (find_param, param_string_value_p): Declare.
3921
3922 2015-10-13 Tom de Vries <tom@codesourcery.com>
3923
3924 PR tree-optimization/67476
3925 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
3926
3927 2015-10-13 Richard Biener <rguenther@suse.de>
3928
3929 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
3930 the data dependence vector.
3931 (vect_peeling_hash_insert): Get the peeling hash table as argument.
3932 (vect_peeling_hash_get_lowest_cost): Likewise.
3933 (vect_enhance_data_refs_alignment): Adjust.
3934 (struct _vect_peel_info, struct _vect_peel_extended_info,
3935 struct peel_info_hasher): Move from ...
3936 * tree-vectorizer.h: ... here.
3937 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
3938 (LOOP_VINFO_PEELING_HTAB): Likewise.
3939 (struct _loop_vec_info): Remove min_profitable_iters and
3940 peeling_htab members.
3941 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
3942 here.
3943 (destroy_loop_vec_info): Adjust.
3944 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
3945 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
3946 to estimate alias versioning cost.
3947 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
3948
3949 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
3950
3951 * real.h (real_isinteger): Declare.
3952 * real.c (real_isinteger): New function.
3953 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
3954 if y is an even integer.
3955
3956 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3957
3958 revert:
3959 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3960 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
3961 counts when these are more informative.
3962
3963 2015-10-12 Jeff Law <law@redhat.com>
3964
3965 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
3966 (fsm_find_control_stmt_paths): Change name of first argument to
3967 more accurately relfect what it really is. Handle simplification
3968 of GIMPLE_COND after finding a thread path for NAME.
3969 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
3970 nontrivial conditions to be handled by FSM threader.
3971 (thread_through_normal_block): Extract the name to looup via
3972 FSM threader from COND_EXPR.
3973
3974 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
3975 restriction that traced SSA_NAME is a user variable.
3976
3977 2015-10-12 Tom de Vries <tom@codesourcery.com>
3978
3979 PR tree-optimization/67476
3980 * omp-low.c (expand_omp_for_generic): Add missing phis.
3981
3982 2015-10-12 Tom de Vries <tom@codesourcery.com>
3983
3984 PR tree-optimization/67476
3985 * omp-low.c (expand_omp_for_generic): Handle simple latch.
3986
3987 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
3988
3989 * config/aarch64/aarch64-simd-builtins.def: Update builtins
3990 tables: add tbl3 and tbx4.
3991 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
3992 (aarch64_tbx4v8qi): New.
3993 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
3994 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
3995 Rewrite using builtin functions.
3996 * config/aarch64/iterators.md (UNSPEC_TBX): New.
3997
3998 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
3999
4000 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
4001 ROUND_UP macro.
4002 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
4003 Use ROUND_UP and ROUND_DOWN macros where applicable.
4004 (rs6000_darwin64_record_arg_flush): Ditto.
4005 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
4006 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
4007 rounded_size.
4008
4009 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
4010
4011 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
4012 (AARCH64_ROUND_DOWN): Ditto.
4013 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
4014
4015 2015-10-12 Richard Biener <rguenther@suse.de>
4016
4017 PR ipa/67783
4018 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
4019 code that analyzes IVs on each stmt but in a cheaper way avoiding
4020 quadratic behavior.
4021
4022 2015-10-12 Nick Clifton <nickc@redhat.com>
4023
4024 * config/msp430/msp430.c (msp430_mcu_names): Rename to
4025 msp430_mcu_data, add fields for ISA and hardware multiply
4026 support. Import latest data from the devices.csv file.
4027 (msp430_override_option): Use the data from the new array.
4028 (msp430_use_f5_series_hwmult): Likewise.
4029 (use_32bit_hwmult): Likewise.
4030 (msp430_no_hwmult): Likewise.
4031 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
4032 MCU names.
4033 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
4034 not recognised then no hardware multiply support is assumed and
4035 that only the MSP430 ISA is allowed.
4036
4037 2015-10-12 Richard Biener <rguenther@suse.de>
4038
4039 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
4040 related code ...
4041 (vect_analyze_loop_2): ... here.
4042
4043 2015-10-11 Jason Merrill <jason@redhat.com>
4044
4045 PR c++/67557
4046 * expr.c (store_field): Call store_constructor directly when
4047 storing a CONSTRUCTOR into a target smaller than its type.
4048 Guard against unsafe bitwise copy.
4049
4050 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4051
4052 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
4053 counts when these are more informative.
4054
4055 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4056
4057 * tree-profile.c (tree_profiling): Do not clear
4058 pure/const when not instrumenting.
4059 (pass tree_profile): Add dump of symtab.
4060
4061 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4062
4063 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
4064 addresses.
4065 (fold_addr_of_array_ref_difference): Likewise.
4066
4067 2015-10-11 Jeff Law <law@redhat.com>
4068
4069 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
4070 tree-ssa-threadbackward.c.
4071 (fsm_find_control_statement_thread_paths): Likewise.
4072 (thread_through_normal_block): Break out FSM bits and move them
4073 into a new function in tree-ssa-threadbackward.c. Call new function
4074 instead.
4075 Minimize header file usage.
4076 * tree-ssa-threadbackward.h: New file.
4077 * tree-ssa-threadbackward.c: Likewise.
4078 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
4079
4080 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
4081
4082 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
4083
4084 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
4085
4086 PR rtl-optimization/67864
4087 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
4088 fallthrough edges for conditional jumps. Don't sort candidate
4089 edges if not optimizing for speed.
4090
4091 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4092
4093 * defaults.h (REVERSE_CONDITION): New default definition.
4094 * jump.c (reversed_comparison_code_parts): Adjust.
4095
4096 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4097
4098 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
4099 check HARD_FRAME_POINTER_IS_ARG_POINTER.
4100
4101 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4102
4103 * defaults.h (FRAME_ADDR_RTX): New default definition.
4104 * builtins.c (expand_builtin_return_addr): Adjust.
4105
4106 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4107
4108 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
4109 * builtins.c (expand_builtin_return_addr): Adjust.
4110
4111 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4112
4113 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
4114 * builtins.c (expand_builtin_return_addr): Adjust.
4115 * doc/tm.texi: Likewise.
4116 * doc/tm.texi.in: Likewise.
4117 * except.c (expand_builtin_unwind_init): Likewise.
4118
4119 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4120
4121 * builtins.c (expand_builtin_return_addr): Adjust.
4122 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
4123
4124 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
4125
4126 * tree.c (type_with_interoperable_signedness): New.
4127 (gimple_canonical_types_compatible_p): Use it.
4128 * tree.h (type_with_interoperable_signedness): Declare
4129
4130 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
4131
4132 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
4133 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
4134 when OEP_ADDRESS_OF is se.
4135
4136 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
4137 Sebastian Pop <s.pop@samsung.com>
4138
4139 * graphite-dependences.c (scop_get_dependences): Add dump of the
4140 data dependence graph.
4141 * graphite-poly.c (print_isl_union_map): New.
4142 (debug_isl_union_map): New.
4143 * graphite-poly.h (print_isl_union_map): Declare.
4144 (debug_isl_union_map): Declare.
4145
4146 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
4147 Sebastian Pop <s.pop@samsung.com>
4148
4149 * graphite-poly.c (print_iteration_domain): Remove verbosity.
4150 Remove OpenScop formatting.
4151 (print_iteration_domains): Same.
4152 (debug_iteration_domain): Same.
4153 (debug_iteration_domains): Same.
4154 (print_pdr): Same.
4155 (debug_pdr): Same.
4156 (dump_gbb_cases): Same.
4157 (dump_gbb_conditions): Same.
4158 (print_pdrs): Same.
4159 (debug_pdrs): Same.
4160 (print_pbb_body): Same.
4161 (print_pbb): Same.
4162 (print_scop_params): Same.
4163 (print_scop_context): Same.
4164 (print_scop): Same.
4165 (debug_pbb_domain): Same.
4166 (debug_pbb): Same.
4167 (debug_scop_context): Same.
4168 (debug_scop): Same.
4169 (debug_scop_params): Same.
4170 * graphite-poly.h: Same.
4171 * graphite.c (graphite_transform_loops): Same.
4172
4173 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4174
4175 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
4176 call that isn't needed.
4177
4178 2015-10-09 Jeff Law <law@redhat.com>
4179
4180 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
4181 rather than moving each name to the freelist individually.
4182
4183 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
4184
4185 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
4186 * frame-header-opt.c: New file.
4187 * config/mips/mips-proto.h (mips_register_frame_header_opt):
4188 Add prototype.
4189 * config/mips/mips.c (mips_compute_frame_info): Check
4190 optimize_call_stack flag.
4191 (mips_option_override): Register new frame_header_opt pass.
4192 (mips_frame_info, mips_int_mask, mips_shadow_set,
4193 machine_function): Move these types to...
4194 * config/mips/mips.h: here.
4195 (machine_function): Add does_not_use_frame_header and
4196 optimize_call_stack fields.
4197 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
4198 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
4199 Document new flags.
4200 * config/mips/mips.opt (mframe-header-opt): Add new option.
4201
4202 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
4203
4204 * config/i386/i386.c
4205 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
4206 ROUND_DOWN where applicable.
4207
4208 2015-10-09 Jeff Law <law@redhat.com>
4209
4210 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
4211 correct statement.
4212
4213 2015-10-09 Renlin Li <renlin.li@arm.com>
4214
4215 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
4216 operands[0] and operands[2].
4217 (neon_vtrn<mode>_insn): Likewise.
4218 (neon_vzip<mode>_insn): Likewise.
4219
4220 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
4221
4222 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
4223 ((X & C2) << C1): Expand to...
4224 (X {&,^,|} C2 << C1): ...This.
4225 ((X & C2) >> C1): Expand to...
4226 (X {&,^,|} C2 >> C1): ...This.
4227
4228 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
4229
4230 PR target/67895
4231 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
4232 Adjust embedded rounding/SAE specifier position.
4233 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
4234 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
4235 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
4236 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
4237 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
4238 Likewise.
4239 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
4240
4241 2015-10-09 Martin Jambor <mjambor@suse.cz>
4242
4243 tree-optimization/67794
4244 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
4245 between types of state,ents but accept original definitions as a
4246 parameter.
4247 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
4248 iterate over definitions.
4249
4250 2015-10-09 James Norris <jnorris@codesourcery.com>
4251
4252 * config/rs6000/rs6000.c (rs6000_offload_options): New.
4253 (TARGET_OFFLOAD_OPTIONS): New.
4254
4255 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
4256
4257 PR middle-end/67891
4258 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
4259
4260 PR middle-end/67766
4261 * function.c (expand_function_end): Move return value
4262 promotion past the handling of PARALLELs and CONCATs.
4263
4264 PR rtl-optimization/67828
4265 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
4266 (tree_may_unswitch_on): Don't unswitch on expressions
4267 involving undefined values.
4268
4269 2015-10-09 Richard Biener <rguenther@suse.de>
4270
4271 * genmatch.c (print_operand): Fix formatting.
4272 (dt_node::append_simplify): Warn for multiple simplifiers
4273 that match the same pattern.
4274 * match.pd (log (exp @0)): Remove duplicates.
4275
4276 2015-10-09 Richard Biener <rguenth@suse.de>
4277
4278 PR target/67366
4279 * gimple-fold.c (optabs-query.h): Include
4280 (gimple_fold_builtin_memory_op): Allow unaligned stores
4281 when movmisalign_optabs are available.
4282
4283 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4284
4285 PR target/67366
4286 * config/arm/arm.md (movmisalign<mode>): New.
4287 * config/arm/iterators.md (HSI): New.
4288
4289 2015-10-09 Richard Biener <rguenther@suse.de>
4290
4291 PR tree-optimization/67891
4292 * gimple-match.h (gimple_simplified_result_is_gimple_val):
4293 New helper.
4294 (gimple_resimplify1): Declare.
4295 (gimple_resimplify2): Likewise.
4296 (gimple_resimplify3): Likewise.
4297 * gimple-match-head.c (gimple_resimplify1): Export.
4298 (gimple_resimplify2): Likewise.
4299 (gimple_resimplify3): Likewise.
4300 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
4301 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4302 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
4303 to avoid creating stmts without VN info.
4304
4305 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
4306
4307 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
4308 of availability.
4309
4310 2015-10-08 Jeff Law <law@redhat.com>
4311
4312 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
4313 and release_ssa_name in two places.
4314 (gimple_stringop_fixed_value): Similarly.
4315
4316 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
4317 release_defs.
4318
4319 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
4320 unlink_stmt_vdef and release_ssa_name_fn.
4321
4322 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
4323 release_defs.
4324
4325 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
4326
4327 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
4328 SSE register save area to 16 bytes only if the incoming stack
4329 boundary is no less than 16 bytes.
4330
4331 2015-10-08 Jeff Law <law@redhat.com>
4332
4333 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
4334 release_ssa_name. Fix typo in comment.
4335
4336 2015-10-08 Nathan Sidwell <nathan@acm.org>
4337
4338 * config/nvptx/nvptx.h (struct machine_function): Add comment.
4339 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
4340 may return pointer as well as in memory.
4341 (nvptx_output_return): Likewise.
4342
4343 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
4344
4345 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
4346 (fold_builtin_1): Update accordingly. Handle constant arguments here.
4347 * match.pd: Add rules previously handled by fold_builtin_sqrt
4348 and fold_builtin_cbrt.
4349
4350 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
4351
4352 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
4353 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
4354 * fold-const.h (tree_unary_nonnegative_warnv_p)
4355 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4356 (tree_expr_nonnegative_warnv_p): Add depth parameters.
4357 * fold-const.c: Include gimple-fold.h and params.h.
4358 (tree_ssa_name_nonnegative_warnv_p): New function.
4359 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
4360 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4361 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
4362 Add a depth parameter and increment it for recursive calls to
4363 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
4364 to handle SSA names.
4365 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
4366 (gimple_stmt_nonnegative_warnv_p): Declare.
4367 * tree-vrp.c (remove_range_assertions): Remove assert that condition
4368 cannot be proven false.
4369 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
4370 (gimple_stmt_nonnegative_warnv_p): Move to...
4371 * gimple-fold.c: ...here. Add depth parameters and pass them
4372 down to the tree routines. Accept statements that aren't
4373 assignments or calls but just return false for them.
4374 (gimple_val_nonnegative_real_p): Delete.
4375 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
4376 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
4377 Check HONOR_NANs first.
4378
4379 2015-10-08 Martin Jambor <mjambor@suse.cz>
4380
4381 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
4382 unnecessary MIN.
4383
4384 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4385
4386 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
4387 in the tail of outer-loop.
4388
4389 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
4390
4391 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
4392 return UI_NONE.
4393
4394 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4395
4396 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
4397 "cfghooks.h", add prototypes for introduced new functions.
4398 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
4399 checks on ability of loop unswitching to tree_unswitch_single_loop;
4400 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
4401 on innermost loop check.
4402 (tree_unswitch_single_loop): Add all required checks on ability of
4403 loop unswitching under zero recursive level guard.
4404 (tree_unswitch_outer_loop): New function.
4405 (find_loop_guard): Likewise.
4406 (empty_bb_without_guard_p): Likewise.
4407 (used_outside_loop_p): Likewise.
4408 (get_vop_from_header): Likewise.
4409 (hoist_guard): Likewise.
4410 (check_exit_phi): Likewise.
4411
4412 2015-10-08 Marek Polacek <polacek@redhat.com>
4413
4414 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
4415 ops element.
4416
4417 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4418
4419 PR c/65345
4420 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
4421 create_tmp_var_raw instead of create_tmp_var.
4422
4423 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
4424
4425 * expr.c (store_expr_with_bounds): Handle aggregate moves from
4426 BLKmode.
4427 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
4428 to define gimple type system; compare aggregates only by size.
4429
4430 2015-10-07 Jeff Law <law@redhat.com>
4431
4432 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
4433 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
4434 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
4435 unnecessarily.
4436
4437 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4438 Sebastian Pop <s.pop@samsung.com>
4439
4440 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
4441 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
4442 (generate_isl_schedule): Same.
4443 * graphite-optimize-isl.c (scop_get_domains): Same.
4444 (apply_schedule_map_to_scop): Same.
4445 * graphite-poly.c (print_iteration_domains): Same.
4446 (remove_gbbs_in_scop): Same.
4447 (new_scop): Same.
4448 (free_scop): Same.
4449 (print_scop): Same.
4450 * graphite-poly.h (struct scop): Rename bbs to pbbs.
4451 (SCOP_BBS): Remove.
4452 * graphite-scop-detection.c (compare_bb_depths): Remove.
4453 (graphite_sort_dominated_info): Remove.
4454 (try_generate_gimple_bb): Move out of scop_detection.
4455 (all_non_dominated_preds_marked_p): Remove.
4456 (build_scop_bbs_1): Remove.
4457 (build_scop_bbs): Remove.
4458 (nb_pbbs_in_loops): Do not use SCOP_BBS.
4459 (find_scop_parameters): Same.
4460 (sese_dom_walker): Rename gather_bbs.
4461 (before_dom_children): Call try_generate_gimple_bb and collect gbb
4462 and pbb.
4463 (build_scops): Call gather_bbs.
4464 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
4465 (add_conditions_to_constraints): Same.
4466 (build_scop_iteration_domain): Same.
4467 (build_scop_drs): Same.
4468 (new_pbb_from_pbb): Same.
4469 * sese.c (new_sese_info): Create bbs.
4470 * sese.h (struct sese_info_t): Add bbs.
4471
4472 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
4473
4474 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
4475 encoding in 64-bit mode.
4476
4477 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
4478
4479 PR target/66697
4480 * config/i386/i386.c (ix86_option_override_internal): Always use
4481 8-byte minimum stack boundary in 64-bit mode.
4482 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
4483 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
4484 Add a REG_CFA_EXPRESSION note if needed.
4485 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
4486 (ix86_handle_force_align_arg_pointer_attribute): New.
4487 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
4488 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
4489 with ix86_handle_force_align_arg_pointer_attribute.
4490 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
4491
4492 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4493 Sebastian Pop <s.pop@samsung.com>
4494
4495 * graphite-scop-detection.c (parameter_index_in_region): Remove
4496 use of SESE_ADD_PARAMS.
4497 (find_scop_parameters): Same.
4498 * sese.c (new_sese_info): Same.
4499 * sese.h (struct sese_info_t): Remove add_params.
4500 (SESE_ADD_PARAMS): Remove.
4501
4502 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4503 Sebastian Pop <s.pop@samsung.com>
4504
4505 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
4506 an sese_info_p.
4507 (copy_def): Same.
4508 (copy_internal_parameters): Same.
4509 (translate_isl_ast_to_gimple): Use an sese_l.
4510 (build_iv_mapping): Same.
4511 * graphite-poly.c (new_sese): Rename new_sese_info.
4512 (free_sese): Rename free_sese_info.
4513 * graphite-poly.h (struct scop): Use an sese_info_p.
4514 (scop_set_region): Same.
4515 * graphite-scop-detection.c (struct sese_l): Moved...
4516 (get_entry_bb): Moved...
4517 (get_exit_bb): Moved...
4518 (parameter_index_in_region_1): Use an sese_info_p.
4519 (parameter_index_in_region): Same.
4520 (scan_tree_for_params): Same.
4521 (find_params_in_bb): Same.
4522 (sese_dom_walker): Use an sese_l.
4523 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
4524 (reduction_phi_p): Same.
4525 (parameter_index_in_region_1): Use an sese_info_p.
4526 (propagate_expr_outside_region): Use an sese_l.
4527 * graphite.c: Replace uses of SCOP_REGION.
4528 * sese.c (sese_record_loop): Use an sese_info_p.
4529 (build_sese_loop_nests): Same.
4530 (sese_build_liveouts_use): Same.
4531 (sese_build_liveouts_bb): Same.
4532 (sese_build_liveouts_bb): Same.
4533 (sese_bad_liveouts_use): Same.
4534 (sese_reset_debug_liveouts_bb): Same.
4535 (sese_build_liveouts): Same.
4536 (new_sese): Renamed new_sese_info.
4537 (free_sese): Renamed free_sese_info.
4538 (set_rename): Use an sese_info_p.
4539 (graphite_copy_stmts_from_block): Same.
4540 (copy_bb_and_scalar_dependences): Same.
4541 (outermost_loop_in_sese_1): Use an sese_l.
4542 (outermost_loop_in_sese): Same.
4543 (if_region_set_false_region): Use an sese_info_p.
4544 (move_sese_in_condition): Same.
4545 (scalar_evolution_in_region): Use an sese_l.
4546 * sese.h (struct sese_l): ... here.
4547 (SESE_ENTRY): Remove.
4548 (SESE_ENTRY_BB): Remove.
4549 (SESE_EXIT): Remove.
4550 (SESE_EXIT_BB): Remove.
4551 (sese_contains_loop): Use an sese_info_p.
4552 (sese_nb_params): Same.
4553 (bb_in_sese_p): Use an sese_l.
4554 (stmt_in_sese_p): Same.
4555 (defined_in_sese_p): Same.
4556 (loop_in_sese_p): Same.
4557 (sese_loop_depth): Same.
4558 (struct ifsese_s): Use an sese_info_p.
4559 (gbb_loop_at_index): Use an sese_l.
4560 (nb_common_loops): Same.
4561 (scev_analyzable_p): Same.
4562
4563 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4564
4565 * config/i386/i386.c (ix86_conditional_register_usage): Use
4566 CALL_USED_REGISTERS_MASK.
4567 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
4568
4569 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4570
4571 PR bootstrap/67385
4572 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
4573 * configure: Regenerated.
4574
4575 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4576
4577 PR target/67850
4578 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
4579 (ix86_set_current_function): This.
4580 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
4581
4582 2015-10-07 Richard Biener <rguenther@suse.de>
4583
4584 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
4585 (vinfo_for_stmt): Adjust.
4586 (set_vinfo_for_stmt): Likewise.
4587 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
4588 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
4589 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
4590 of inner loop.
4591 (vect_analyze_loop_1): Remove.
4592 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
4593 inner loop when vectorizing an outer loop by splitting out from ...
4594 (vect_analyze_loop_form): ... here.
4595
4596 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4597
4598 PR c/65345
4599 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
4600 Use create_tmp_var_raw instead of create_tmp_var.
4601
4602 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
4603
4604 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
4605 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
4606 * real.c (CACHED_FRACTION): New helper macro.
4607 (dconst_third_ptr): Use it.
4608 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
4609 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
4610 dconst_sixth.
4611 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
4612
4613 2015-10-06 Jeff Law <law@redhat.com>
4614
4615 PR tree-optimization/67816
4616 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
4617 from remove_jump_threads_starting_at. Accept an edge rather than
4618 a basic block.
4619 * tree-ssa-threadupdate.c (removed_edges): New hash table.
4620 (remove_jump_threads_including): Note edges that get removed from
4621 the CFG for later pruning of jump threading paths including them.
4622 (thread_through_all_blocks): Remove paths which include edges that
4623 have been removed.
4624 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
4625 on each outgoing edges when optimizing away a control statement.
4626
4627 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4628
4629 * reorg.c (emit_delay_sequence): Store list of delay slot insns
4630 in a vector instead of rtx_insn_list.
4631 (add_to_delay_list): Likewise.
4632 (delete_from_delay_slot): Likewise.
4633 (optimize_skip): Likewise.
4634 (redirect_with_delay_list_safe_p): Likewise.
4635 (check_annul_list_true_false): Likewise.
4636 (steal_delay_list_from_target): Likewise.
4637 (steal_delay_list_from_fallthrough): Likewise.
4638 (redundant_insn): Likewise.
4639 (fill_simple_delay_slots): Likewise.
4640 (fill_slots_from_thread): Likewise.
4641 (fill_eager_delay_slots): Likewise.
4642 (relax_delay_slots): Likewise.
4643
4644 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
4645
4646 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
4647 For -mgpopt=local, also exclude unintialized common symbols.
4648 * doc/invoke.texi (Nios II Options): Document the change.
4649
4650 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4651
4652 * config/aarch64/iterators.md (vwcore): Add missing cases for
4653 V4HF/V8HF modes.
4654
4655 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4656 Sebastian Pop <s.pop@samsung.com>
4657
4658 * graphite-poly.c (new_scop): Initialize drs.
4659 * graphite-poly.h (struct dr_info): New.
4660 (struct scop): Add drs.
4661 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
4662 (pdr_add_memory_accesses): Same.
4663 (build_poly_dr): Same.
4664 (build_alias_set): Same.
4665 (build_scop_drs): Same.
4666 (build_pbb_drs): Remove.
4667 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
4668 * tree-data-ref.h (data_reference): Remove alias_set.
4669
4670 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4671 Sebastian Pop <s.pop@samsung.com>
4672
4673 * graphite-poly.c (free_data_refs_aux): Remove.
4674 (free_gimple_poly_bb): Do not call free_data_refs_aux.
4675 * graphite-poly.h (struct base_alias_pair): Remove.
4676 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
4677 base_alias_pair and dr->aux.
4678 (build_alias_set): Same.
4679 * tree-data-ref.c (create_data_ref): Initialize alias_set.
4680 * tree-data-ref.h (data_reference): Add alias_set.
4681
4682 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4683 Sebastian Pop <s.pop@samsung.com>
4684
4685 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
4686 Do not set PDR_BASE_OBJECT_SET.
4687 * graphite-poly.h (poly_dr): Same.
4688 (PDR_BASE_OBJECT_SET): Remove.
4689 (new_poly_dr): Update decl.
4690 * graphite-sese-to-poly.c (build_poly_dr): Update call to
4691 new_poly_dr.
4692 (write_alias_graph_to_ascii_dimacs): Remove.
4693 (write_alias_graph_to_ascii_dot): Remove.
4694 (write_alias_graph_to_ascii_ecc): Remove.
4695 (dr_same_base_object_p): Remove.
4696 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
4697 code.
4698 (build_base_obj_set_for_drs): Remove.
4699 (dump_alias_graphs): Remove.
4700 (build_scop_drs): Remove dead code.
4701
4702 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4703 Peter Bergner <bergner@vnet.ibm.com>
4704
4705 PR target/67808
4706 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
4707 allow registers, but provide insns for the combiner to create for
4708 loads from memory. Separate VSX code from non-VSX code. For
4709 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
4710 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
4711 so that registers come before memory operations. Drop support from
4712 converting DFmode to TFmode, if the DFmode value is in a GPR
4713 register.
4714 (extenddftf2_fprs): Likewise.
4715 (extenddftf2_internal): Likewise.
4716 (extenddftf2_vsx): Likewise.
4717 (extendsftf2): In the expander, only allow registers, but provide
4718 insns for the combiner to create for stores and loads.
4719
4720 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4721
4722 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
4723 from the decl parameter.
4724
4725 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
4726
4727 PR 67861
4728 * gimple-fold.c (gimple_fold_builtin): Add break after
4729 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
4730
4731 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
4732
4733 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
4734 to scop->isl_context.
4735
4736 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4737
4738 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
4739 (output_probe_stack_range): Rotate the loop and simplify.
4740 (thumb1_expand_prologue): Tweak sorry message.
4741 * config/arm/arm.md (probe_stack): Use bare string.
4742
4743 2015-10-06 Nick Clifton <nickc@redhat.com>
4744
4745 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
4746
4747 2015-10-06 Nick Clifton <nickc@redhat.com>
4748
4749 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
4750 (ATTR_PERSIST): New constant.
4751 (msp430_data_attr): New function - verifies an attribute that only
4752 applies to variables.
4753 (msp430_attributes): Add noinit and persistent attributes.
4754 (noinit_section): New variable.
4755 (presis_section): New variable.
4756 (TARGET_ASM_INIT_SECTIONS): Define.
4757 (msp430_init_sections): New function - initialises the noinit and
4758 persist section variables.
4759 (msp430_select_section): Add support for noinit and persist
4760 attributes.
4761 (msp430_section_type_flags): Likewise.
4762 * doc/extend.texi: Document the reent, critical, wakeup, noinit
4763 and persistent attributes.
4764
4765 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4766 Sebastian Pop <s.pop@samsung.com>
4767
4768 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
4769 (no_violations): Remove.
4770 (subtract_commutative_associative_deps): Remove.
4771 (compute_deps): Do not call subtract_commutative_associative_deps.
4772 (transform_is_safe): Remove.
4773 (graphite_legal_transform): Remove.
4774 * graphite-poly.h (graphite_legal_transform): Remove.
4775
4776 2015-10-05 Aditya Kumar <hiraditya@msn.com>
4777
4778 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
4779 which are in this region are passed so gcc_assert and remove redundant
4780 computation.
4781 * sese.c (sese_build_liveouts): Pass only those bbs which are not
4782 in region.
4783 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
4784 gcc_assert on that and remove unnecessary computation.
4785 (sese_build_liveouts_use): Same.
4786
4787 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4788
4789 * graphite-dependences.c (scop_get_reads): Renamed scop->context
4790 to scop->param_context.
4791 (scop_get_must_writes): Same.
4792 (scop_get_may_writes): Same.
4793 (scop_get_original_schedule): Same.
4794 (scop_get_transformed_schedule): Same.
4795 (subtract_commutative_associative_deps): Same.
4796 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
4797 (generate_isl_context): Same.
4798 (generate_isl_schedule): Same.
4799 (scop_to_isl_ast): Same.
4800 (graphite_regenerate_ast_isl): Same.
4801 * graphite-optimize-isl.c (scop_get_domains): Same.
4802 (optimize_isl): Renamed scop->context to scop->param_context.
4803 * graphite-poly.c (new_poly_bb): Change the type of argument to
4804 gimple_poly_bb_p.
4805 (new_scop): Renamed scop->context to scop->param_context.
4806 (free_scop): Same.
4807 (print_scop_context): Same.
4808 * graphite-poly.h (new_poly_dr): Change the type of argument from
4809 void* to data_reference_p.
4810 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
4811 (new_poly_bb): Change the type of argument from void* to
4812 gimple_poly_bb_p.
4813 (pbb_set_black_box): Same.
4814 (struct scop): Rename context to param_context, ctx to isl_context.
4815 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
4816 Move declarations closer to assignment.
4817 (find_params_in_bb): Same.
4818 (find_scop_parameters): Same.
4819 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
4820 Global to be used for statement IDs.
4821 (isl_id_for_pbb): Use ssa_name_version_typesize.
4822 (simple_copy_phi_p): Move declarations closer to assignment.
4823 (build_pbb_scattering_polyhedrons): Same.
4824 (build_scop_scattering): Same.
4825 (isl_id_for_ssa_name): Same.
4826 (extract_affine_name): Same.
4827 (extract_affine_int): Same.
4828 (extract_affine): Same.
4829 (set_scop_parameter_dim): Use renamed member.
4830 (build_loop_iteration_domains): Same.
4831 (add_param_constraints): Same.
4832 (build_scop_iteration_domain): Same.
4833 (pdr_add_data_dimensions): Same.
4834 (build_poly_dr): Same.
4835 (build_scop_drs): Move declarations closer to assignment.
4836 (analyze_drs_in_stmts): Same.
4837 (insert_out_of_ssa_copy): Same.
4838 (insert_out_of_ssa_copy_on_edge): Same.
4839 (propagate_expr_outside_region): Same.
4840 (rewrite_phi_out_of_ssa): Same.
4841 (rewrite_degenerate_phi): Same.
4842 (rewrite_reductions_out_of_ssa): Same.
4843 (rewrite_cross_bb_scalar_dependence): Same.
4844 (handle_scalar_deps_crossing_scop_limits): Same.
4845 (rewrite_cross_bb_scalar_deps): Same.
4846 * graphite.c (graphite_transform_loops): Use renamed member.
4847
4848 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
4849
4850 PR c/65345
4851 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
4852 create_tmp_var_raw instead of create_tmp_var.
4853
4854 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4855
4856 PR c/65345
4857 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
4858 Use create_tmp_var_raw instead of create_tmp_var.
4859
4860 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
4861
4862 PR target/67849
4863 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
4864 split for upper-bank registers when target does not support
4865 AVX512VL.
4866 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
4867 split when target does not support AVX512VL.
4868
4869 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
4870
4871 PR c/65345
4872 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
4873 Adjust to use create_tmp_var_raw instead of create_tmp_var.
4874
4875 2015-10-06 Nick Clifton <nickc@redhat.com>
4876
4877 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
4878 multiplication.
4879
4880 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4881
4882 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
4883 (case ${target}): Add znver1.
4884 * config/i386/cpuid.h(bit_CLZERO): Define.
4885 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4886 -march=native recognize znver1 processors.
4887 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4888 znver1, clzero def_and_undef.
4889 * config/i386/i386.c (struct processor_costs znver1_cost): New.
4890 (m_znver1): New definition.
4891 (m_AMD_MULTIPLE): Includes m_znver1.
4892 (processor_target_table): Add znver1 entry.
4893 (ix86_target_string) : Add clzero entry.
4894 (static const char *const cpu_names): Add znver1 entry.
4895 (ix86_option_override_internal): Add znver1 instruction sets.
4896 (PTA_CLZERO) : New definition.
4897 (ix86_option_override_internal): Handle new clzerooption.
4898 (ix86_issue_rate): Add znver1.
4899 (ix86_adjust_cost): Add znver1.
4900 (ia32_multipass_dfa_lookahead): Add znver1.
4901 (has_dispatch): Add znver1.
4902 * config/i386/i386.h (TARGET_znver1): New definition.
4903 (TARGET_CLZERO): Define.
4904 (TARGET_CLZERO_P): Define.
4905 (struct ix86_size_cost): Add TARGET_ZNVER1.
4906 (enum processor_type): Add PROCESSOR_znver1.
4907 * config/i386/i386.md (define_attr "cpu"): Add znver1.
4908 (set_attr znver1_decode): New definitions for znver1.
4909 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
4910 (mclzero): New.
4911 * config/i386/mmx.md (set_attr znver1_decode): New definitions
4912 for znver1.
4913 * config/i386/sse.md (set_attr znver1_decode): Likewise.
4914 * config/i386/x86-tune.def: Add znver1 tunings.
4915 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
4916 * doc/invoke.texi: Add details about znver1
4917
4918 2015-10-06 Richard Biener <rguenther@suse.de>
4919
4920 PR tree-optimization/67859
4921 * tree-ssa-pre.c (create_expression_by_pieces): Properly
4922 discard not inserted stmts.
4923
4924 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
4925
4926 * doc/extend.texi (Template Instantiation): Reorder options and
4927 de-emphasize -frepo.
4928 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
4929 example instead of -frepo.
4930
4931 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4932
4933 PR c/65345
4934 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
4935 use create_tmp_var_raw rather than create_tmp_var.
4936
4937 2015-10-06 Richard Biener <rguenther@suse.de>
4938
4939 * tree-vectorizer.h (vec_info): New base class for...
4940 (_loop_vec_info): ... this and ...
4941 (_bb_vec_info): ... this.
4942 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
4943 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
4944 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
4945 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
4946 vect_destroy_datarefs): Adjust interface to take a vec_info *
4947 rather than both a loop_vec_info and a bb_vec_info argument.
4948 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
4949 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
4950 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
4951 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
4952 accordingly.
4953 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
4954 (destroy_loop_vec_info, vect_analyze_loop_2,
4955 vect_is_simple_reduction_1, get_initial_def_for_induction,
4956 vect_create_epilog_for_reduction, vectorizable_reduction,
4957 vectorizable_live_operation, vect_transform_loop): Adjust.
4958 * tree-vect-patterns.c (type_conversion_p,
4959 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
4960 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
4961 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
4962 check_bool_pattern, vect_recog_bool_pattern,
4963 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
4964 * tree-vect-slp.c (vect_get_and_check_slp_defs,
4965 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
4966 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
4967 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
4968 (new_bb_vec_info): Initialize base classs.
4969 * tree-vect-stmts.c (record_stmt_cost, process_use,
4970 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
4971 vectorizable_mask_load_store, vectorizable_call,
4972 vectorizable_simd_clone_call, vectorizable_conversion,
4973 vectorizable_assignment, vectorizable_shift,
4974 vectorizable_operation, vectorizable_store,
4975 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
4976 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
4977 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
4978
4979 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
4980
4981 PR c/65345
4982 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
4983 create_tmp_var_raw rather than create_tmp_var.
4984
4985 2015-10-05 Marek Polacek <polacek@redhat.com>
4986
4987 * tree-ssa-loop-im.c
4988 (move_computations_dom_walker::before_dom_children): Don't set
4989 SSA_NAME_ANTI_RANGE_P.
4990 * tree-ssa-phiopt.c (value_replacement): Likewise.
4991
4992 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4993 Sebastian Pop <s.pop@samsung.com>
4994
4995 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
4996
4997 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4998 Sebastian Pop <s.pop@samsung.com>
4999
5000 * graphite-poly.c (new_gimple_poly_bb): ... here.
5001 (free_data_refs_aux): ... here.
5002 (free_gimple_poly_bb): ... here.
5003 (remove_gbbs_in_scop): ... here.
5004 (new_scop): Call new_sese.
5005 (free_scop): Call remove_gbbs_in_scop and free_sese.
5006 * graphite-poly.h (base_alias_pair): ... here.
5007 (new_gimple_poly_bb): Declare.
5008 (free_gimple_poly_bb): Declare.
5009 * graphite-scop-detection.c (parameter_index_in_region_1):
5010 (parameter_index_in_region): ... here.
5011 (scan_tree_for_params): ... here.
5012 (find_params_in_bb): ... here.
5013 (find_scop_parameters): ... here.
5014 (build_scops): Call find_scop_parameters.
5015 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
5016 (free_scops): Move...
5017 (single_pred_cond_non_loop_exit): Move...
5018 (sese_dom_walker::before_dom_children): Move...
5019 (sese_dom_walker::after_dom_children): Move...
5020 (build_poly_scop): Move...
5021 * graphite-sese-to-poly.h (base_alias_pair): Move...
5022 * graphite.c (free_scops): ... here.
5023
5024 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5025 Sebastian Pop <s.pop@samsung.com>
5026
5027 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
5028 (trivially_empty_bb_p): Move...
5029 (same_close_phi_node): Move...
5030 (new_gimple_poly_bb): Move...
5031 (compare_bb_depths): Move...
5032 (graphite_sort_dominated_info): Move...
5033 (remove_duplicate_close_phi): Move...
5034 (make_close_phi_nodes_unique): Move...
5035 (canonicalize_loop_closed_ssa): Move...
5036 (canonicalize_loop_closed_ssa_form): Move...
5037 (loop_ivs_can_be_represented): Move...
5038 (single_pred_cond_non_loop_exit): Move...
5039 (graphite_can_represent_init): Move...
5040 (graphite_can_represent_scev): Move...
5041 (stmt_has_simple_data_refs_p): Move...
5042 (stmt_has_side_effects): Move...
5043 (graphite_can_represent_stmt): Move...
5044 (scop_detection): ... here.
5045 (sese_dom_walker): ... and here.
5046 (build_scops): Call all moved functions.
5047 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
5048 (all_non_dominated_preds_marked_p): Move...
5049 (build_scop_bbs_1): Move...
5050 (build_scop_bbs): Move...
5051 (set_scop_parameter_dim): Move...
5052 (nb_pbbs_in_loops): Move...
5053 (build_poly_scop): Do not call all the moved functions.
5054
5055 2015-10-05 Martin Jambor <mjambor@suse.cz>
5056 Jan Hubicka <hubicka@ucw.cz>
5057
5058 * ipa-cp.c (ipcp_alignment_lattice): New type.
5059 (ipcp_param_lattices): Use the above to represent alignment.
5060 (ipcp_alignment_lattice::print): New function.
5061 (print_all_lattices): Use it to print alignment information.
5062 (ipcp_alignment_lattice::top_p): New function.
5063 (ipcp_alignment_lattice::bottom_p): Likewise.
5064 (ipcp_alignment_lattice::set_to_bottom): Likewise.
5065 (ipcp_alignment_lattice::meet_with_1): Likewise.
5066 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
5067 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
5068 (initialize_node_lattices): Likewise.
5069 (propagate_alignment_accross_jump_function): Work with the new class
5070 for alignment lattices.
5071 (propagate_constants_accross_call): Pass only the alignment lattice to
5072 propagate_alignment_accross_jump_function.
5073 (ipcp_store_alignment_results): Work with the new class for alignment
5074 lattices.
5075
5076 2015-10-05 Marek Polacek <polacek@redhat.com>
5077
5078 PR tree-optimization/67821
5079 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
5080
5081 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
5082
5083 PR other/65021
5084 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
5085 function to...
5086 (mkoffload_cleanup): ... this. Adjust all users.
5087 (maybe_unlink): Look at save_temps and verbose flags instead of
5088 debug flag.
5089 (main): Parse "-save-temps" flag.
5090 (generate_target_descr_file, generate_target_offloadend_file)
5091 (generate_host_descr_file, prepare_target_image): Pass it on.
5092 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
5093 (mkoffload_cleanup): New function.
5094 (maybe_unlink): Look at save_temps and verbose flags instead of
5095 debug flag.
5096 (main): Instead of calling utils_cleanup, register atexit handler
5097 for mkoffload_cleanup.
5098 (main): Parse "-save-temps" flag.
5099 (compile_native, main): Pass it on.
5100 * lto-wrapper.c (compile_offload_image): Likewise.
5101
5102 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5103
5104 * gimple.h (gimple_op_ptr): Require a non const gimple *.
5105 (gimple_assign_lhs_ptr): Likewise.
5106 (gimple_assign_rhs1_ptr): Likewise.
5107 (gimple_assign_rhs2_ptr): Likewise.
5108 (gimple_assign_rhs3_ptr): Likewise.
5109 (gimple_call_lhs_ptr): Likewise.
5110 (gimple_call_fn_ptr): Likewise.
5111 (gimple_call_chain_ptr): Likewise.
5112 (gimple_call_arg_ptr): Likewise.
5113 (gimple_cond_lhs_ptr): Likewise.
5114 (gimple_cond_rhs_ptr): Likewise.
5115 (gimple_switch_index_ptr): Likewise.
5116 (gimple_return_retval_ptr): Likewise.
5117
5118 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5119
5120 * gimple.h (gimple_asm_input_op_ptr): Remove.
5121 (gimple_asm_output_op_ptr): Likewise.
5122
5123 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5124
5125 * gimple.h (gimple_location_ptr): Remove.
5126 * tree-vrp.c (check_all_array_refs): Adjust.
5127
5128 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5129
5130 * tree-ssa-operands.c (build_uses): store tree * instead of
5131 tree.
5132 (finalize_ssa_uses): Adjust.
5133 (append_use): Likewise.
5134 (verify_ssa_operands): Likewise.
5135
5136 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5137
5138 * real.h (build_real_truncate): Declare.
5139 * tree.c (build_real_truncate): New function.
5140 (strip_float_extensions): Use it.
5141 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
5142 (fold_builtin_hypot, fold_builtin_pow): Likewise.
5143 * match.pd: Likewise.
5144
5145 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
5146 Jiong Wang <jiong.wang@arm.com>
5147
5148 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
5149
5150 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5151
5152 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
5153 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
5154 (aarch64_print_operand, aarch64_float_const_representable_p)
5155 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
5156 instead of REAL_VALUE_FROM_CONST_DOUBLE.
5157 * config/arc/arc.c (arc_print_operand): Likewise.
5158 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
5159 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
5160 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
5161 Likewise.
5162 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
5163 (consttable_16): Likewise.
5164 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
5165 * config/avr/avr.c (avr_print_operand): Likewise.
5166 * config/bfin/bfin.md: Likewise (in a define_split).
5167 * config/c6x/c6x.md: Likewise (in a define_split).
5168 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
5169 (cr16_print_operand): Likewise.
5170 * config/cris/cris.c (cris_print_operand): Likewise.
5171 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
5172 * config/fr30/fr30.c (fr30_print_operand): Likewise.
5173 (fr30_const_double_is_zero): Likewise.
5174 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
5175 * config/frv/frv.md: Likewise (in a define_split).
5176 * config/frv/predicates.md (int_2word_operand): Likewise.
5177 * config/h8300/h8300.c (h8300_print_operand): Likewise.
5178 * config/i386/i386.c (standard_80387_constant_p): Likewise.
5179 (ix86_print_operand, ix86_split_to_parts): Likewise.
5180 * config/i386/i386.md: Likewise (in a define_split).
5181 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
5182 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
5183 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
5184 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
5185 (print_operand): Likewise.
5186 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
5187 * config/mep/mep.md: Likewise (in define_split).
5188 * config/microblaze/microblaze.c (microblaze_const_double_ok)
5189 (print_operand): Likewise.
5190 * config/mips/mips.md (consttable_float): Likewise.
5191 * config/mmix/mmix.c (mmix_intval): Likewise.
5192 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
5193 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
5194 * config/pa/pa.c (pa_singlemove_string): Likewise.
5195 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
5196 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
5197 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
5198 (output_toc): Likewise.
5199 * config/rs6000/rs6000.md: Likewise (in define_splits).
5200 * config/rx/rx.c (rx_print_operand): Likewise.
5201 * config/s390/s390.c (s390_output_pool_entry): Likewise.
5202 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5203 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
5204 (and also in define_splits).
5205 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
5206 (fp_high_losum_p): Likewise.
5207 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
5208 (*movsf_high): Likewise.
5209 * config/spu/spu.c (const_double_to_hwint): Likewise.
5210 * config/v850/v850.c (const_double_split): Likewise.
5211 * config/vax/vax.c (vax_float_literal): Likewise.
5212 * config/visium/visium.c (visium_expand_copysign): Likewise.
5213 * config/visium/visium.md: Likewise (in define_split).
5214 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5215 * config/xtensa/xtensa.c (print_operand): Likewise.
5216 (xtensa_output_literal): Likewise.
5217 * cprop.c (implicit_set_cond_p): Likewise.
5218 * dwarf2out.c (insert_float): Likewise.
5219 * expmed.c (expand_mult, make_tree): Likewise.
5220 * expr.c (compress_float_constant): Likewise.
5221 * rtlanal.c (split_double): Likewise.
5222 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5223 (simplify_const_unary_operation, simplify_binary_operation_1)
5224 (simplify_const_binary_operation): Likewise.
5225 (simplify_const_relational_operation): Likewise.
5226 * varasm.c (output_constant_pool_2): Likewise.
5227
5228 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5229
5230 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
5231 instead of CONST_DOUBLE_FROM_REAL_VALUE.
5232 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
5233 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
5234 instead of CONST_DOUBLE_FROM_REAL_VALUE.
5235 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
5236 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
5237 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
5238 (ix86_emit_swsqrtsf): Likewise.
5239 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
5240 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
5241 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5242 * config/pa/pa.c (pa_expand_builtin): Likewise.
5243 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
5244 (rs6000_scale_v2df): Likewise.
5245 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
5246 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
5247 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
5248 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
5249 (vec_ctul): Likewise.
5250 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
5251 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
5252 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
5253 * cse.c (fold_rtx): Likewise.
5254 * emit-rtl.c (immed_double_const): Likewise (in comments).
5255 (init_emit_once): Likewise.
5256 * expr.c (compress_float_constant, expand_expr_real_1)
5257 (const_vector_from_tree): Likewise.
5258 * optabs.c (expand_float, expand_fix): Likewise.
5259 * reg-stack.c (reg_to_stack): Likewise.
5260 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5261 (simplify_const_unary_operation, simplify_binary_operation_1)
5262 (simplify_const_binary_operation, simplify_relational_operation)
5263 (simplify_immed_subreg): Likewise.
5264
5265 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5266
5267 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
5268 * doc/tm.texi: Regenerate.
5269 * real.h (REAL_ARITHMETIC): Delete.
5270 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
5271 (ix86_expand_round_sse4): Use real_arithmetic instead of
5272 REAL_ARITHMETIC.
5273 * config/i386/sse.md (round<mode>2): Likewise.
5274 * rtl.h (rtx_to_tree_code): Likewise (in comment).
5275 * explow.c (rtx_to_tree_code): Likewise (in comment).
5276 * match.pd: Likewise.
5277 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5278 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5279 (expand_pow_as_sqrts): Likewise.
5280 * tree-pretty-print.c (dump_generic_node): Remove code that
5281 was conditional on REAL_ARITHMETIC being undefined.
5282
5283 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5284
5285 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
5286 * doc/tm.texi: Regenerate.
5287 * real.h (real_less): Declare.
5288 (REAL_VALUES_LESS): Delete.
5289 * real.c (real_less): New function.
5290 (real_compare): Use it.
5291 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
5292 of REAL_VALUES_LESS.
5293 * config/microblaze/microblaze.c (microblaze_const_double_ok):
5294 Likewise.
5295 * fold-const.c (fold_convert_const_int_from_real): Likewise.
5296 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5297 (simplify_const_relational_operation): Likewise.
5298 * tree-call-cdce.c (check_pow): Likewise.
5299 (gen_conditions_for_pow_cst_base): Likewise.
5300
5301 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5302
5303 * real.h (REAL_VALUES_IDENTICAL): Delete.
5304 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
5305 instead of REAL_VALUES_IDENTICAL.
5306 * fold-const.c (operand_equal_p): Likewise.
5307 * ipa-icf.c (sem_variable::equals): Likewise.
5308 * tree-complex.c (some_nonzerop): Likewise.
5309 (expand_complex_multiplication): Likewise.
5310 * tree.c (simple_cst_equal): Likewise.
5311 * varasm.c (compare_constant): Likewise.
5312
5313 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5314
5315 * real.h (real_equal): Declare.
5316 (REAL_VALUES_EQUAL): Delete.
5317 * real.c (real_equal): New function.
5318 (real_compare): Use it.
5319 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
5320 * doc/tm.texi: Regenerate.
5321 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
5322 real_equal instead of REAL_VALUES_EQUAL.
5323 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
5324 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
5325 (fp_const_from_val): Likewise.
5326 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
5327 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
5328 (floating_exact_log2): Likewise.
5329 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5330 * config/vax/vax.c (vax_float_literal): Likewise.
5331 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5332 * cprop.c (implicit_set_cond_p): Likewise.
5333 * expmed.c (expand_mult): Likewise.
5334 * fold-const.c (const_binop): Likewise.
5335 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5336 (simplify_const_binary_operation): Likewise.
5337 (simplify_const_relational_operation): Likewise.
5338 * tree-call-cdce.c (check_pow): Likewise.
5339 (gen_conditions_for_pow_cst_base): Likewise.
5340 * tree-inline.c (estimate_num_insns): Likewise.
5341 * tree-ssa-dom.c (record_equality): Likewise.
5342 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5343 (gimple_expand_builtin_pow): Likewise.
5344 (pass_optimize_widening_mul::execute): Likewise.
5345 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5346 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
5347 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
5348
5349 2015-10-05 Richard Biener <rguenther@suse.de>
5350
5351 PR ipa/67783
5352 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
5353 consider loop header PHI defs as IVs.
5354
5355 2015-10-05 Richard Biener <rguenther@suse.de>
5356
5357 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
5358 call handling ...
5359 (create_expression_by_pieces): ... here and build GIMPLE
5360 calls directly. Use gimple_build API and avoid force_gimple_operand.
5361 (insert_into_preds_of_block): Simplify.
5362 (do_regular_insertion): Add comment.
5363
5364 2015-10-04 Jason Merrill <jason@redhat.com>
5365
5366 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
5367
5368 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
5369
5370 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
5371 check for general register.
5372 (ix86_emit_save_regs): Ditto.
5373 (ix86_emit_save_regs_using_mov): Ditto.
5374 (ix86_emit_restore_regs_using_pop): Ditto.
5375 (ix86_emit_restore_regs_using_mov): Ditto.
5376
5377 2015-10-03 Marek Polacek <polacek@redhat.com>
5378
5379 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
5380 (insn-dfatab.o): Likewise.
5381
5382 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
5383
5384 * config.gcc (xtensa*-*-uclinux*): New configuration.
5385 * config/xtensa/uclinux.h: New file.
5386 * config/xtensa/uclinux.opt: New file.
5387
5388 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
5389
5390 * doc/cpp.texi (Standard Predefined Macros): Document value of
5391 __cplusplus for C++14.
5392
5393 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
5394
5395 * gcc.c (process_command): Use spec_machine rather than
5396 spec_host_machine to build tooldir_prefix2.
5397
5398 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5399 Bernd Schmidt <bernds@codesourcery.com>
5400
5401 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
5402 (Token, Stmt): Remove structs.
5403 (decls, vars, fns): Remove variables.
5404 (alloc_comment, append_stmt, is_keyword): Remove macros.
5405 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
5406 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
5407 (parse_init, parse_file): Remove functions.
5408 (read_file): Accept a pointer to a length and store into it.
5409 (process): Don't try to parse the input file, just write it out as
5410 a string, but looking for maps. Also write out the length.
5411 (main): Don't use "-S" to compile PTX code.
5412
5413 2015-10-02 Jeff Law <law@redhat.com>
5414
5415 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
5416 fixups.
5417
5418 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5419
5420 PR target/67822
5421 * config/nvptx/mkoffload.c (main): Scan the argument vector for
5422 -fopenmp, and skip generating an offloading image if specified.
5423
5424 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
5425
5426 * system.h (ROUND_UP): New macro definition.
5427 (ROUND_DOWN): Ditto.
5428 * ggc-page.c (ROUND_UP): Remove local macro definition.
5429 (PAGE_ALIGN): Implement using ROUND_UP macro.
5430
5431 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
5432 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
5433 to align values.
5434 (ix86_compute_frame_layout): Ditto.
5435 (ix86_expand_prologue): Ditto.
5436 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
5437 to round down values.
5438 (expand_set_or_movmem_via_rep): Ditto.
5439
5440 2015-10-02 Marek Polacek <polacek@redhat.com>
5441
5442 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
5443
5444 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
5445
5446 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
5447 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
5448 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
5449 (free_gimple_bb): Renamed free_gimple_poly_bb.
5450 (try_generate_gimple_bb): Hoist loop invariant code.
5451 (analyze_drs_in_stmts): Same.
5452 (build_scop_drs): Call renamed functions.
5453 (new_pbb_from_pbb): Same.
5454 (scop_ivs_can_be_represented): Delete as functionality now moved to
5455 graphite-scop-detection.c
5456 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
5457
5458 2015-10-02 Aditya Kumar <hiraditya@msn.com>
5459
5460 * graphite-scop-detection.c (stmt_has_side_effects): New function
5461 outlined from stmt_simple_for_scop_p.
5462 (graphite_can_represent_stmt): Same.
5463 (stmt_simple_for_scop_p): Moved code out of this function for better
5464 readability.
5465
5466 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5467
5468 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
5469 F_AVX512IFMA.
5470 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
5471
5472 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5473
5474 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
5475
5476 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
5477
5478 PR rtl-optimization/67756
5479 * lra-constraints.c (match_reload): Add a new parameter. Use it
5480 for creating a pseudo with the same value.
5481 (curr_insn_transform): Pass a new argument to match_reload.
5482
5483 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5484
5485 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
5486 (expand_vec_perm_even_odd_1): Handle V64QImode.
5487 (ix86_expand_vec_perm_const_1): Try expansion with
5488 expand_vec_perm_even_odd_trunc as well.
5489 * config/i386/sse.md (VI124_AVX512F): Rename to ...
5490 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
5491 to V54QI.
5492 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
5493 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
5494 to V32HI and V16SI.
5495 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
5496 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
5497 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
5498 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
5499 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
5500 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
5501
5502 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5503
5504 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
5505 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
5506
5507 2015-10-02 Jason Merrill <jason@redhat.com>
5508
5509 PR c/59218
5510 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
5511 (diagnose_tm_1_op): Also diagnose volatile accesses in
5512 transaction_safe function.
5513
5514 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
5515
5516 * system.h (malloc.h): Don't include obsolete header.
5517
5518 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5519
5520 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
5521 (TLS_SECTION_ASM_FLAG): Delete.
5522
5523 2015-10-02 Marek Polacek <polacek@redhat.com>
5524
5525 PR c/64249
5526 * doc/invoke.texi: Document -Wduplicated-cond.
5527 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
5528 (insn-dfatab.o): Likewise.
5529 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
5530 warning.
5531
5532 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
5533
5534 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
5535 sequences.
5536
5537 2015-10-02 Renlin Li <renlin.li@arm.com>
5538
5539 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
5540
5541 2015-10-02 Renlin Li <renlin.li@arm.com>
5542
5543 PR target/66776
5544 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
5545
5546 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5547
5548 PR rtl-optimization/67786
5549 PR rtl-optimization/67787
5550 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
5551 it modifies a reg used in the condition calculation.
5552
5553 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
5554
5555 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
5556 alternatives for reads from memory and moves from general-purpose
5557 registers.
5558 (*aarch64_combinez_be<mode>): Likewise.
5559
5560 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
5561
5562 PR target/51726
5563 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
5564 selectany within this function without need to keep attribute.
5565 (i386_pe_encode_section_info): Remove selectany-code.
5566
5567 2015-10-02 Richard Biener <rguenther@suse.de>
5568
5569 * tree-ssa-sccvn.c (has_VN_INFO): New function.
5570 (free_scc_vn): Use it.
5571 (visit_use): Remove dead code and refactor to use gassign
5572 and use less indentation.
5573
5574 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5575
5576 PR target/67788
5577 PR target/67789
5578 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
5579 (rs6000_cannot_copy_insn_p): New function.
5580 * config/rs6000/rs6000.md (cannot_copy): New attribute.
5581 (load_toc_v4_PIC_1_normal): Set cannot_copy.
5582 (load_toc_v4_PIC_1_476): Ditto.
5583
5584 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
5585
5586 * graphite-scop-detection.c (struct sese_l): New conversion constructor
5587 so that this type can be pushed into a vec.
5588 (class scop_builder): use sese_l to collect scops.
5589 (get_scops): New getter function.
5590 (remove_intersecting_scops): Use sese_l instead of scops_p.
5591 (intersects): Same.
5592 (add_scop): Same.
5593 (subsumes): Same.
5594 (remove_subscops): Same.
5595 (build_scops): Add scops to vec<scops_p> once all the scops have been
5596 detected.
5597
5598 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
5599
5600 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5601 Renamed type from gimple_bb_p to gimple_poly_bb_p.
5602 (translate_isl_ast_node_user): Same.
5603 * graphite-poly.c (new_poly_bb): Same.
5604 * graphite-poly.h (gbb_from_bb): Same.
5605 * sese.h: Same.
5606 * graphite-sese-to-poly.c (new_gimple_bb):
5607 gimple_bb_p -> gimple_poly_bb_p
5608 (build_scop_scattering): Same.
5609 (find_params_in_bb): Same.
5610 (add_conditions_to_domain): Same.
5611 (sese_dom_walker::before_dom_children): Same.
5612 (analyze_drs_in_stmts): Same.
5613 (new_pbb_from_pbb): Same.
5614 (free_data_refs_aux): New pointer to type base_alias_pair.
5615 * graphite-sese-to-poly.h: Same.
5616 * sese.c (if_region_set_false_region): Fixed Indentation.
5617 (move_sese_in_condition): Same.
5618
5619 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5620 Aditya Kumar <aditya.k7@samsung.com>
5621
5622 PR tree-optimization/66980
5623 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
5624 when data reference analysis has failed.
5625
5626 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5627 Aditya Kumar <aditya.k7@samsung.com>
5628
5629 PR tree-optimization/67754
5630 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
5631 scev analysis on the same loop nest as analyze_drs_in_stmts.
5632 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
5633 renamed...
5634 (try_generate_gimple_bb): Call outermost_loop_in_sese.
5635 (analyze_drs_in_stmts): Same.
5636 * sese.c (outermost_loop_in_sese): ...here.
5637
5638 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5639 Aditya Kumar <aditya.k7@samsung.com>
5640
5641 PR tree-optimization/67754
5642 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
5643 recursion on the inner loops.
5644
5645 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5646
5647 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
5648 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
5649 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
5650 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
5651 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
5652
5653 2015-10-01 Marek Polacek <polacek@redhat.com>
5654
5655 PR c/65345
5656 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
5657 create_tmp_var_raw rather than create_tmp_var.
5658
5659 2015-10-01 Marek Polacek <polacek@redhat.com>
5660
5661 PR tree-optimization/67769
5662 * tree-ssa-phiopt.c (conditional_replacement): Call
5663 reset_flow_sensitive_info_in_bb.
5664 (minmax_replacement): Likewise.
5665 (abs_replacement): Likewise.
5666
5667 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
5668
5669 * builtins.c: Don't include gomp-constants.h.
5670 (fold_builtin_1): Don't fold acc_on_device here.
5671 * gimple-fold.c: Include gomp-constants.h.
5672 (gimple_fold_builtin_acc_on_device): New.
5673 (gimple_fold_builtin): Call it.
5674
5675 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
5676
5677 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
5678 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
5679
5680 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
5681
5682 * config/arm/aarch-common-protos.h
5683 (aarch_accumulator_forwarding): New.
5684 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5685 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
5686 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5687 * config/arm/cortex-a53.md: Rewrite.
5688
5689 2015-10-01 Richard Biener <rguenther@suse.de>
5690
5691 * gimple-match.h (mprts_hook): Declare.
5692 * gimple-match.head.c (mprts_hook): Define.
5693 (maybe_push_res_to_seq): Use new hook.
5694 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5695 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
5696 (vn_ssa_aux::has_constants): Remove.
5697 * tree-ssa-sccvn.c: Include gimple-match.h.
5698 (VN_INFO_GET): Assert we don't re-use SSA names.
5699 (vn_get_expr_for): Remove.
5700 (expr_has_constants): Likewise.
5701 (stmt_has_constants): Likewise.
5702 (simplify_binary_expression): Likewise.
5703 (simplify_unary_expression): Likewise.
5704 (vn_lookup_simplify_result): New hook.
5705 (visit_copy): Adjust.
5706 (visit_reference_op_call): Likewise.
5707 (visit_phi): Likewise.
5708 (visit_use): Likewise.
5709 (process_scc): Likewise.
5710 (init_scc_vn): Likewise.
5711 (visit_reference_op_load): Likewise. Use match-and-simplify and
5712 a gimple seq for inserted expressions.
5713 (try_to_simplify): Remove GENERIC stmt combining code.
5714 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
5715 * tree-ssa-pre.c (eliminate_insert): Adjust.
5716 (eliminate_dom_walker::before_dom_children): Likewise.
5717
5718 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5719
5720 * doc/invoke.texi (Optimization Options): Add
5721 -freorder-blocks-algorithm=.
5722 (Optimize Options) <-O>: Add -freorder-blocks.
5723 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
5724 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
5725 <-freorder-blocks>: Also enabled at levels -O and -Os.
5726 <-freorder-blocks-algorithm=>: Document new option.
5727
5728 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5729
5730 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
5731 with flag_reorder_blocks_algorithm.
5732 * common.opt (freorder-blocks-algorithm=): New flag.
5733 (reorder_blocks_algorithm): New enum.
5734 * flag-types.h (reorder_blocks_algorithm): New enum.
5735 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
5736 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
5737
5738 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5739
5740 * bb-reorder.c: Add intro comment.
5741 (reorder_basic_blocks_software_trace_cache): Print a header to
5742 the dump file.
5743 (edge_order): New function.
5744 (reorder_basic_blocks_simple): New function.
5745 (reorder_basic_blocks): Choose between the STC and the simple
5746 algorithms (always choose the former).
5747
5748 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5749
5750 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
5751 function, factored out from ...
5752 (reorder_basic_blocks): ... here.
5753
5754 2015-10-01 Tom de Vries <tom@codesourcery.com>
5755
5756 * tree-cfg.c (dump_function_to_file): Dump function attributes using
5757 __attribute__(()) string. Move dumping of function attributes to before
5758 function name.
5759
5760 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
5761
5762 PR target/66870
5763 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5764 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
5765 based on gold linker version.
5766 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
5767 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
5768 * configure, config.in: Regenerate.
5769
5770 2015-10-01 Alan Modra <amodra@gmail.com>
5771
5772 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
5773 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
5774 (rs6000_output_mi_thunk): Likewise.
5775
5776 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5777
5778 * config/nvptx/mkoffload.c (process): Change offload data format.
5779
5780 2015-09-30 Jeff Law <law@redhat.com>
5781
5782 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
5783 with constant conditions.
5784 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
5785 (remove_ctrl_stmt_and_useless_edges): No longer static.
5786 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
5787 (remove_ctrl_stmt_and_useless_edges): Likewise.
5788
5789 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5790 Cesar Philippidis <cesar@codesourcery.com>
5791
5792 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
5793 (TARGET_GOACC_VALIDATE_DIMS): Override.
5794 * target.def (TARGET_GOACC): New target hook prefix.
5795 (validate_dims): New hook.
5796 * targhooks.h (default_goacc_validate_dims): New.
5797 * omp-low.c (oacc_validate_dims): New.
5798 (execute_oacc_device_lower): New.
5799 (default_goacc_validate_dims): New.
5800 (pass_data_oacc_device_lower): New.
5801 (pass_oacc_device_lower): New pass.
5802 (make_pass_oacc_device_lower): New.
5803 * tree-pass.h (make_pass_oacc_device_lower): Declare.
5804 * passes.def (pass_oacc_device_lower): Add it.
5805 * doc/tm.texi: Rebuilt.
5806 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
5807 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
5808
5809 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5810
5811 PR rtl-optimization/67037
5812 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
5813
5814 2015-09-30 Bernd Schmidt <bernds@redhat.com>
5815
5816 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
5817 * passes.c: Include tree-ssanames.h.
5818 (execute_function_todo): Flush the pending free SSA_NAMEs after
5819 eliminating unreachable basic blocks.
5820 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
5821 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
5822 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
5823 (flush_ssanames_freelist): New function.
5824 (release_ssaname_fn): Put released names on the queue.
5825 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
5826 * tree-ssanames.h (flush_ssanames_freelist): Declare.
5827
5828 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5829
5830 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
5831 (generate_target_descr_file, generate_target_offloadend_file)
5832 (generate_host_descr_file, prepare_target_image): Pass it on.
5833 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
5834 (compile_native, main): Pass it on.
5835 * lto-wrapper.c (compile_offload_image): Likewise.
5836
5837 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5838 Ilya Verbin <ilya.verbin@intel.com>
5839 Andrey Turetskiy <andrey.turetskiy@intel.com>
5840
5841 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
5842 (prepare_target_image, main): Refactor argv building to use
5843 obstacks.
5844
5845 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5846
5847 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
5848 * config/spu/spu.c (spu_expand_atomic_op): New function.
5849 * config/spu/spu.md (AINT): New mode iterator.
5850 (ATOMIC): New code iterator.
5851 (atomic_name, atomic_pred): New code predicates.
5852 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
5853 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
5854 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
5855 "atomic_<atomic_name>_fetch<mode>"): Likewise.
5856
5857 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
5858
5859 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
5860 debug insns.
5861 (scalar_chain::convert_reg): Likewise.
5862
5863 2015-09-30 Richard Biener <rguenther@suse.de>
5864
5865 * builtins.c: Add comment that no new simplifications should
5866 be added here.
5867
5868 2015-09-30 Marek Polacek <polacek@redhat.com>
5869
5870 PR tree-optimization/67690
5871 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
5872 reset_flow_sensitive_info_in_bb.
5873 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
5874 * tree-ssanames.c: Include "gimple-iterator.h".
5875 (reset_flow_sensitive_info_in_bb): New function.
5876 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
5877
5878 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5879
5880 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
5881 variable, replacing it with...
5882 (offload_abi): ... this new variable. Adjust all users.
5883 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
5884
5885 2015-09-30 Matthias Klose <doko@ubuntu.com>
5886
5887 * configure.ac: Remove extraneous ;;.
5888 * configure: Regenerate.
5889
5890 2015-09-29 James Bowman <james.bowman@ftdichip.com>
5891
5892 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
5893 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
5894 predicate, disallow register for operand 2.
5895
5896 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
5897
5898 * graphite-dependences.c (scop_get_dependences): Moved in down
5899 in order to be visible to its caller.
5900 * graphite-poly.h: Removed compute_deps, and extend_schedule.
5901
5902 2015-09-29 Sebastian Pop <s.pop@samsung.com>
5903 Aditya Kumar <aditya.k7@samsung.com>
5904
5905 PR tree-optimization/67754
5906 * graphite-optimize-isl.c (optimize_isl): Call
5907 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
5908
5909 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5910
5911 * builtins.c (expand_builtin_acc_on_device): Delete.
5912 (expand_builtin): Don't call it.
5913 (fold_builtin_1): Fold acc_on_device.
5914
5915 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
5916
5917 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
5918 (ix86_nsaved_sseregs): Likewise.
5919
5920 2015-09-29 Jeff Law <law@redhat.com>
5921
5922 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
5923 computation of unused value.
5924
5925 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
5926 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
5927 inline macro expansion.
5928
5929 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
5930
5931 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
5932 (gen_shl_sext): Likewise.
5933 * config/sh/sh.md (divsi3): Likewise.
5934 (imm->ext_dest_operand splitter): Likewise.
5935
5936 2015-09-29 Sebastian Pop <s.pop@samsung.com>
5937 Aditya Kumar <aditya.k7@samsung.com>
5938
5939 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
5940 (nb_data_writes_in_bb): Remove.
5941 (split_pbb): Remove.
5942 (split_reduction_stmt): Remove.
5943 (is_reduction_operation_p): Remove.
5944 (phi_contains_arg): Remove.
5945 (follow_ssa_with_commutative_ops): Remove.
5946 (detect_commutative_reduction_arg): Remove.
5947 (detect_commutative_reduction_assign): Remove.
5948 (follow_inital_value_to_phi): Remove.
5949 (edge_initial_value_for_loop_phi): Remove.
5950 (initial_value_for_loop_phi): Remove.
5951 (used_outside_reduction): Remove.
5952 (detect_commutative_reduction): Remove.
5953 (translate_scalar_reduction_to_array_for_stmt): Remove.
5954 (remove_phi): Remove.
5955 (dr_indices_valid_in_loop): Remove.
5956 (close_phi_written_to_memory): Remove.
5957 (translate_scalar_reduction_to_array): Remove.
5958 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
5959 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
5960 (rewrite_commutative_reductions_out_of_ssa): Remove.
5961 (build_poly_scop): Remove call to
5962 rewrite_commutative_reductions_out_of_ssa.
5963
5964 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
5965
5966 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
5967 Add new insn types for vector load and store pairs.
5968 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
5969 types "neon_ldp{,_q}".
5970 * config/arm/cortex-a57.md (neon_load_c): Add insn types
5971 "neon_ldp{,_q}".
5972 (neon_store_complex): Add insn types "neon_stp{,_q}".
5973 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
5974 "neon_{ldp,stp}_q".
5975
5976 2015-09-29 Jeff Law <law@redhat.com>
5977
5978 * config/rx/constraints.md (Int08): Fix undefined left shift
5979 behaviour.
5980 (Sint08, Sint16, Sint24): Likewise.
5981 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5982
5983 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
5984 behaviour.
5985
5986 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
5987 left shift behaviour.
5988 * config/msp430/constraints.md ('L' constraint): Similarly.
5989 ('Ys' constraint): Similarly.
5990
5991 2015-09-29 Richard Biener <rguenther@suse.de>
5992
5993 PR tree-optimization/67170
5994 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
5995 the translate function pointer parameter to get the
5996 bool whether to disambiguate only by reference.
5997 (walk_non_aliased_vuses): Likewise.
5998 * tree-ssa-alias.c (maybe_skip_until): Adjust.
5999 (get_continuation_for_phi_1): Likewise.
6000 (get_continuation_for_phi): Likewise.
6001 (walk_non_aliased_vuses): Likewise.
6002 * tree-ssa-sccvn.c (const_parms): New bitmap.
6003 (vn_reference_lookup_3): Adjust for interface change.
6004 Disambiguate parameters pointing to readonly memory.
6005 (free_scc_vn): Free const_parms.
6006 (run_scc_vn): Initialize const_parms from a fn spec attribute.
6007
6008 2015-09-29 Richard Biener <rguenther@suse.de>
6009
6010 PR tree-optimization/67741
6011 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
6012 builtin calls with correct signature.
6013
6014 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
6015
6016 PR target/65105
6017 * config/i386/i386.c: Include dbgcnt.h.
6018 (has_non_address_hard_reg): New.
6019 (convertible_comparison_p): New.
6020 (scalar_to_vector_candidate_p): New.
6021 (remove_non_convertible_regs): New.
6022 (scalar_chain): New.
6023 (scalar_chain::scalar_chain): New.
6024 (scalar_chain::~scalar_chain): New.
6025 (scalar_chain::add_to_queue): New.
6026 (scalar_chain::mark_dual_mode_def): New.
6027 (scalar_chain::analyze_register_chain): New.
6028 (scalar_chain::add_insn): New.
6029 (scalar_chain::build): New.
6030 (scalar_chain::compute_convert_gain): New.
6031 (scalar_chain::replace_with_subreg): New.
6032 (scalar_chain::replace_with_subreg_in_insn): New.
6033 (scalar_chain::emit_conversion_insns): New.
6034 (scalar_chain::make_vector_copies): New.
6035 (scalar_chain::convert_reg): New.
6036 (scalar_chain::convert_op): New.
6037 (scalar_chain::convert_insn): New.
6038 (scalar_chain::convert): New.
6039 (convert_scalars_to_vector): New.
6040 (pass_data_stv): New.
6041 (pass_stv): New.
6042 (make_pass_stv): New.
6043 (ix86_option_override): Created and register stv pass.
6044 (flag_opts): Add -mstv.
6045 (ix86_option_override_internal): Likewise.
6046 * config/i386/i386.md (SWIM1248x): New.
6047 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
6048 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
6049 (*anddi3_doubleword): New.
6050 (*zext<mode>_doubleword): New.
6051 (*zextsi_doubleword): New.
6052 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
6053 (*<code>di3_doubleword): New.
6054 * config/i386/i386.opt (mstv): New.
6055 * dbgcnt.def (stv_conversion): New.
6056
6057 2015-09-29 Tom de Vries <tom@codesourcery.com>
6058
6059 * tree-cfg.c (dump_function_to_file): Dump function attributes.
6060
6061 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
6062
6063 PR target/67716
6064 * config/sh/sh.c (sh_override_options_after_change): New.
6065 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6066 (sh_option_override): Move align_loops, align_jumps and
6067 align_functions handling into sh_override_options_after_change.
6068
6069 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6070
6071 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
6072 (nvptx_record_offload_symbol): Record function execution geometry.
6073 * config/nvptx/mkoffload.c (process): Include launch geometry in
6074 function data.
6075 * omp-low.c (oacc_launch_pack): New.
6076 (replace_oacc_fn_attrib): New.
6077 (set_oacc_fn_attrib): New.
6078 (get_oacc_fn_attrib): New.
6079 (expand_omp_target): Create keyed varargs for GOACC_parallel call
6080 generation.
6081 * omp-low.h (get_oacc_fn_attrib): Declare.
6082 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
6083 (DEF_FUNCTION_TYPE_VAR_11): Delete.
6084 * tree.h (OMP_CLAUSE_EXPR): New.
6085 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
6086
6087 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6088 Sebastian Pop <s.pop@samsung.com>
6089
6090 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
6091
6092 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6093 Sebastian Pop <s.pop@samsung.com>
6094
6095 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
6096 * graphite-scop-detection.c (struct sese_l): New type.
6097 (get_entry_bb): API for getting entry bb of SESE.
6098 (get_exit_bb): API for getting exit bb of SESE.
6099 (class debug_printer): New type. Simple printer in debug mode.
6100 (trivially_empty_bb_p): New. Return true when BB is empty or
6101 contains only debug instructions.
6102 (graphite_can_represent_expr): Call scalar_evoution_in_region
6103 instead of analyze_scalar_evolution. Pass in scop instead of only
6104 the scop entry.
6105 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
6106 scop entry.
6107 (stmt_simple_for_scop_p): Same.
6108 (harmful_stmt_in_bb): Same.
6109 (graphite_can_represent_loop): Deleted.
6110 (struct scopdet_info): Deleted.
6111 (scopdet_basic_block_info): Deleted.
6112 (build_scops_1): Deleted.
6113 (bb_in_sd_region): Deleted.
6114 (find_single_entry_edge): Deleted.
6115 (find_single_exit_edge): Deleted.
6116 (create_single_entry_edge): Deleted.
6117 (sd_region_without_exit): Deleted.
6118 (create_single_exit_edge): Deleted.
6119 (unmark_exit_edges): Deleted.
6120 (mark_exit_edges): Deleted.
6121 (create_sese_edges): Deleted.
6122 (build_graphite_scops): Deleted.
6123 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
6124 (build_scops): Use the new scop_builder to build scops.
6125 (dot_all_scops_1): Use the new pretty printer. Print loop father
6126 as well.
6127 (loop_body_is_valid_scop): New. Return true if loop body is a
6128 valid scop.
6129 (class scop_builder): New. Builds SCoPs for polyhedral
6130 optimizations.
6131 (scop_builder): New constructor.
6132 (static sese_l invalid_sese): sese_l with invalid edges.
6133 (get_sese): Get an sese (from a loop) if possible, invalid_sese
6134 otherwise.
6135 (get_nearest_dom_with_single_entry): Get nearest dominator of a
6136 basic_block with single entry. Return NULL if we get to the
6137 beginning of a function.
6138 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
6139 a basic_block with single exit. Return NULL if we get to the
6140 beginning of a function.
6141 (print_sese): Pretty-print SESE.
6142 (merge_sese): Merge two SESEs if possible and return the new SESE.
6143 (build_scop_depth): Start building the SCoP within a loop nest.
6144 (build_scop_breadth): Start building the SCoP at a single loop
6145 depth. Merge adjacent SESEs if valid.
6146 (can_represent_loop_1): Returns true if Graphite can represent
6147 loop inside SCoP. Helper for can_represent_loop.
6148 (can_represent_loop): Returns true if Graphite can represent LOOP
6149 and all its nested loops in SCoP.
6150 (loop_is_valid_scop): Returns true if LOOP and all its nests
6151 constitute a valid SCoP.
6152 (region_has_one_loop): Returns true of a region has only one loop.
6153 (add_scop): Add SCoP to the list of valid scops. Removes an
6154 already existing scop if it intersects with or subsumed by this one.
6155 (harmful_stmt_in_region): Returns true if SCoP has any statment
6156 which cannot be represented by Graphite.
6157 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
6158 (remove_subscops): Remove any SCoP from the list of already found
6159 SCoPs, if subsumed by S1.
6160 (intersects): Return true if region bounded by SCoPs S1 and S2
6161 intersect.
6162 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
6163 * graphite.c (print_graphite_scop_statistics):
6164 (print_graphite_statistics): Print SCoP info while debugging.
6165 (graphite_initialize): Early exit in case number of loops in a
6166 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
6167 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
6168 (graphite_finalize):
6169 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
6170 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
6171 (recompute_all_dominators): Recalculate POST_DOMINATORS.
6172 * tree-cfg.c (print_loops): Print the function name while printing
6173 loops.
6174
6175 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6176 Sebastian Pop <s.pop@samsung.com>
6177
6178 PR tree-optimization/67700
6179 * graphite-sese-to-poly.c (parameter_index_in_region): Call
6180 invariant_in_sese_p_rec.
6181 (extract_affine): Same.
6182 (rewrite_cross_bb_scalar_deps): Call update_ssa.
6183 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
6184 * sese.h (invariant_in_sese_p_rec): Declare.
6185
6186 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
6187
6188 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
6189
6190 2015-09-28 Jiong Wang <jiong.wang@arm.com>
6191
6192 Revert:
6193 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6194 Jiong Wang <jiong.wang@arm.com>
6195
6196 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
6197 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
6198 (REG_CLASS_NAMES): Likewise.
6199 (REG_CLASS_CONTENTS): Likewise.
6200 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
6201 (aarch64_register_move_cost): Likewise.
6202 (aarch64_load_symref_appropriately): Invoke the new added pattern if
6203 possible.
6204 * config/aarch64/constraints.md (Uc0): New constraint.
6205
6206 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
6207
6208 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
6209
6210 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
6211
6212 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
6213 SECTION_EXCLUDE in XO mapping class.
6214
6215 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
6216
6217 PR target/54236
6218 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
6219 and handle ne and eq codes.
6220 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
6221 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
6222 CONST_INT_P. Use reverse_condition.
6223 (sh_split_treg_set_expr): Likewise.
6224
6225 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
6226
6227 * config/arm/types.md (type): Add rotate_imm.
6228 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
6229 ROR immediate case.
6230 (*rorsi3_insn_uxtw): Likewise.
6231 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
6232 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
6233 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
6234
6235 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6236
6237 PR rtl-optimization/67481
6238 * ifcvt.c (contains_ccmode_rtx_p): New function.
6239 (insn_valid_noce_process_p): Use it.
6240
6241 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6242
6243 PR rtl-optimization/67456
6244 PR rtl-optimization/67464
6245 PR rtl-optimization/67465
6246 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
6247 move in the mode of x. Handle combination of complex and simple
6248 block pairs as well as the case when one is empty.
6249
6250 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6251
6252 * doc/gimple.texi: Update references to gimple_statement_base.
6253 * gdbhooks.py: Likewise.
6254 * gimple.h: Likewise.
6255
6256 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6257
6258 * config/sparc/driver-sparc.c: map LEON to leon3
6259
6260 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6261
6262 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
6263 and make it inverse to change default
6264 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
6265 supervisor mode
6266 * doc/invoke.texi: Document change of default
6267
6268 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6269
6270 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
6271 true on %f0 for a target without FPU.
6272 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
6273 without FPU.
6274 (untyped_return): Do not load %f0 for a target without FPU.
6275
6276 2015-09-28 Andrew Pinski <apinski@cavium.com>
6277
6278 * config/aarch64/aarch64.md (prefetch):
6279 Change the predicate of operand 0 to register_operand.
6280
6281 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
6282
6283 * config/i386/predicates.md (register_sse4nonimm_operand): New
6284 predicate.
6285 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
6286 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
6287 Use register_sse4nonimm_operand as operand 0 predicate.
6288 (*vec_extractv8hi_sse2): Remove insn pattern.
6289 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
6290 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
6291
6292 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
6293 Kaz Kojima <kkojima@gcc.gnu.org>
6294
6295 PR target/67391
6296 * config/sh/sh-protos.h (sh_lra_p): Declare.
6297 * config/sh/sh.c (sh_lra_p): Make non-static.
6298 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
6299 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
6300 Expand into addsi3_scr if operands[2] if needed.
6301 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
6302 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
6303 (addsi3_scr, *addsi3): New insn_and_split patterns.
6304
6305 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
6306
6307 PR rtl-optimization/64164
6308 PR tree-optimization/67312
6309 PR middle-end/67340
6310 PR middle-end/67490
6311 PR bootstrap/67597
6312 * cfgexpand.c (parm_in_stack_slot_p): Remove.
6313 (ssa_default_def_partition): Remove.
6314 (get_rtl_for_parm_ssa_default_def): Remove.
6315 (set_rtl): Check that RTL assignments match expectations.
6316 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
6317 default def location for params and results. Record SSA names
6318 or types in REG and MEM attrs, respectively.
6319 (set_parm_rtl): New.
6320 (expand_one_ssa_partition): Drop logic that assigned MEMs with
6321 unassigned addresses.
6322 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
6323 deferred stack alloc vars.
6324 (expand_used_vars): Skip partitions holding parm default defs.
6325 Move adjust_one_expanded_partition_var loop...
6326 (pass_expand::execute): ... here. Drop redundant assert.
6327 Adjust comments before the final loop over all ssa names.
6328 Require assigned rtl of parms and results to match exactly.
6329 Reset its attributes to match them, not any other variables in
6330 the same partition.
6331 (expand_debug_expr): Use entry value for PARM's default defs
6332 only iff they have zero nondebug uses.
6333 * cfgexpand.h (parm_in_stack_slot_p): Remove.
6334 (get_rtl_for_parm_ssa_default_def): Remove.
6335 (set_parm_rtl): Declare.
6336 * doc/invoke.texi: Improve wording.
6337 * explow.c (promote_decl_mode): Fix promote_function_mode for
6338 result decls not by reference.
6339 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
6340 bypass TYPE_MODE to get the actual vector mode.
6341 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
6342 2015-08-19's changes as follows. Drop include of
6343 basic-block.h and df.h.
6344 (rtl_for_parm): Remove.
6345 (maybe_reset_rtl_for_parm): Remove.
6346 (parm_in_unassigned_mem_p): Remove.
6347 (use_register_for_decl): Add logic for RESULT_DECLs matching
6348 assign_parms' behavior.
6349 (split_complex_args): Revert.
6350 (assign_parms_augmented_arg_list): Revert. Add comment
6351 referencing the logic above.
6352 (assign_parm_adjust_stack_rtl): Revert.
6353 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
6354 of SET_DECL_RTL. Set up a REG if the parm demands so.
6355 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
6356 calls into a single set_parm_rtl. Set up a temporary RTL
6357 temporarily for expand_assignment.
6358 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
6359 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
6360 (assign_bounds): Revert.
6361 (assign_parms): Revert. Use set_parm_rtl.
6362 (allocate_struct_function): Relayout result and parms of
6363 non-abstruct functions.
6364 (expand_function_start): Revert. Use set_parm_rtl. If the
6365 result is not a hard reg, create a pseudo from the promoted
6366 mode of the default def. Promote static chain mode.
6367 * tree-outof-ssa.c (remove_ssa_form): Drop unused
6368 partition_has_default_def. Set up
6369 partitions_for_parm_default_defs.
6370 (finish_out_of_ssa): Remove partition_has_default_def.
6371 Release partitions_for_parm_default_defs.
6372 * tree-outof-ssa.h (struct ssaexpand): Remove
6373 partition_has_default_def. Add
6374 partitions_for_parm_default_defs.
6375 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
6376 stor-layout.h.
6377 (build_ssa_conflict_graph): Fix conflict-detection of default
6378 defs of even unused default defs of params and results.
6379 (for_all_parms): New.
6380 (create_default_def): New.
6381 (register_default_def): New.
6382 (coalesce_with_default): New.
6383 (create_outofssa_var_map): Create default defs for all parms
6384 and results, and register their partitions. Add GIMPLE_RETURN
6385 operands as coalesce candidates with results. Add default
6386 defs of each parm or result as coalesce candidates with its
6387 other defs. Mark each result def, and each default def of
6388 parms, as used_in_copy.
6389 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
6390 with the ssa names, even anonymous ones. Drop
6391 parm_in_stack_slot_p calls. Require same signedness and
6392 alignment.
6393 (coalesce_ssa_name): Add coalesce candidates for all defs of
6394 each parm and result, even unused ones.
6395 (parm_default_def_partition_arg): New type.
6396 (set_parm_default_def_partition): New.
6397 (get_parm_default_def_partitions): New.
6398 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
6399 * tree-ssa-live.c (partition_view_init): Regard unused defs of
6400 parms and results as used.
6401 (verify_live_on_entry): Don't error out just because they're
6402 not live.
6403
6404 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
6405
6406 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6407 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
6408 (output_fde): Don't output length for debug_frame on AIX.
6409 (output_call_frame_info): Don't output length for debug_frame on AIX.
6410 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
6411 HAVE_XCOFF_DWARF_EXTRAS.
6412 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
6413 HAVE_XCOFF_DWARF_EXTRAS.
6414 (output_compilation_unit_header): Don't output length on AIX.
6415 (output_pubnames): Don't output length on AIX.
6416 (output_aranges): Delete argument. Compute length locally. Don't
6417 output length on AIX.
6418 (output_line_info): Don't output length on AIX.
6419 (dwarf2out_finish): Don't compute aranges_length.
6420 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6421 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
6422 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
6423 symbol decoration for AIX.
6424 (rs6000_xcoff_debug_unwind_info): New.
6425 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
6426 for SECTION_DEBUG.
6427 (rs6000_xcoff_declare_function_name): Emit different
6428 .function pseudo-op when DWARF2_DEBUG. Don't call
6429 xcoffout_declare_function for DWARF2_DEBUG.
6430 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
6431 Redefine.
6432 * config/rs6000/aix71.h: New.
6433 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
6434 locations support.
6435 * configure: Regenerate.
6436 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
6437 DWARF support.
6438
6439 2015-09-26 Jeff Law <law@redhat.com>
6440
6441 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
6442 behaviour.
6443 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
6444 behaviour.
6445
6446 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
6447 behaviour
6448
6449 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
6450 undefined behaviour.
6451
6452 * config/cris/cris.md (asrandb): Fix left shift undefined
6453 behaviour.
6454 (asrandw): Likewise.
6455
6456 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
6457
6458 PR target/61578
6459 * lra-constarints.c (match_reload): Check presence of the input pseudo
6460 in the output operand.
6461
6462 2015-09-25 Tobias Burnus <burnus@net-b.de>
6463
6464 * doc/invoke.texi (-fsanitize): Minor wording tweak.
6465
6466 2015-09-25 Tobias Burnus <burnus@net-b.de>
6467
6468 * doc/invoke.texi (-fsanitize): Update URLs.
6469
6470 2015-09-25 Teresa Johnson <tejohnson@google.com>
6471
6472 * opts.c (finish_options): Unset -freorder-blocks-and-partition
6473 if not using profile.
6474
6475 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
6476
6477 PR pretty-print/67567
6478 * pretty-print.c (pp_string): Add gcc_checking_assert.
6479 * pretty-print.h (output_buffer_append_r): Likewise.
6480
6481 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
6482
6483 PR target/67675
6484 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
6485 addr2 individually. Don't emit logical or insn if one is known to
6486 be aligned approriately.
6487 (sh_expand_cmpnstr): Likewise.
6488
6489 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
6490
6491 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
6492 __builtin_aarch64_fp[sc]r arguments into a register.
6493
6494 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
6495
6496 * config.gcc (x86_archs): Replace lakemount with lakemont.
6497 (with_cpu): Likewise.
6498 (with_arch): Likewise.
6499 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6500 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
6501 __tune_lakemount__ with __tune_lakemont__.
6502 * config/i386/i386.c (lakemount_cost): Renamed to ...
6503 (lakemont_cost): This.
6504 (m_LAKEMOUNT): Renamed to ...
6505 (m_LAKEMONT): This.
6506 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
6507 (processor_target_table): Replace "lakemount" with "lakemont".
6508 (processor_alias_table): Likewise.
6509 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
6510 PROCESSOR_LAKEMONT.
6511 (ix86_adjust_cost): Likewise.
6512 (ia32_multipass_dfa_lookahead): Likewise.
6513 * config/i386/i386.h (processor_type): Likewise.
6514 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
6515 * doc/invoke.texi: Replace lakemount with lakemont. Replace
6516 Lakemount with Lakemont.
6517
6518 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
6519
6520 * config.gcc (x86_archs): Replace iamcu with lakemount.
6521 (with_cpu): Likewise.
6522 (with_arch): Likewise.
6523 * doc/invoke.texi: Likewise.
6524 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6525 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
6526 __tune_iamcu__ with __tune_lakemount__.
6527 * config/i386/i386.c (iamcu_cost): Renamed to ...
6528 (lakemount_cost): This.
6529 (m_IAMCU): Renamed to ...
6530 (m_LAKEMOUNT): This.
6531 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
6532 (processor_target_table): Replace "iamcu" with "lakemount".
6533 (processor_alias_table): Likewise.
6534 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
6535 PROCESSOR_LAKEMOUNT.
6536 (ix86_adjust_cost): Likewise.
6537 (ia32_multipass_dfa_lookahead): Likewise.
6538 * config/i386/i386.h (processor_type): Likewise.
6539 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
6540
6541 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
6542
6543 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
6544 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
6545 Declare.
6546 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
6547 (pa_expand_compare_and_swap_loop): New.
6548 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
6549 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
6550 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
6551 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
6552 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
6553 Revise.
6554
6555 2015-09-24 Michael Collison <michael.collison@linaro.org>
6556
6557 PR other/57195
6558 * read-md.c (read_name): Allow mode iterators inside angle
6559 brackets in rtl expressions.
6560
6561 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
6562
6563 PR target/61578
6564 * ira-color.c (update_allocno_cost): Add parameter.
6565 (update_costs_from_allocno): Decrease conflict cost. Pass the new
6566 parameter.
6567
6568 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6569
6570 PR driver/67640
6571 * opts-common.c (prune_options): Discard all -fdiagnostics-color
6572 but the last one, which is moved to the front to be processed
6573 first.
6574 * opts.c (enable_warning_as_error): Reject options that do not
6575 control warnings.
6576
6577 2015-09-24 Jiong Wang <jiong.wang@arm.com>
6578
6579 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
6580
6581 2015-09-24 Jiong Wang <jiong.wang@arm.com>
6582
6583 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
6584 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
6585 (aarch64_cannot_force_const_mem): Likewise.
6586 (aarch64_classify_address): Likewise.
6587 (aarch64_classify_symbolic_expression): Likewise.
6588 (aarch64_print_operand): Likewise.
6589 (aarch64_classify_symbol): Likewise.
6590 (aarch64_mov_operand_p): Likewise.
6591 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
6592 (aarch64_mov_operand): Likewise.
6593
6594 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
6595
6596 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
6597 for info->spe_gp_size.
6598
6599 2015-09-24 Richard Biener <rguenther@suse.de>
6600
6601 PR lto/67699
6602 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
6603 abstract origins.
6604
6605 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
6606
6607 * tree-object-size.c (plus_stmt_object_size)
6608 (cond_expr_object_size): Change the formal parameters from gimple
6609 to gimple *.
6610 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
6611 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
6612 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
6613
6614 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6615
6616 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
6617 Check for ld -type pie on Solaris 11.x and 12.
6618 * configure: Regenerate.
6619 * config.in: Regenerate.
6620
6621 * gcc.c (LD_PIE_SPEC): Allow redefinition.
6622
6623 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
6624 (STARTFILE_SPEC): Use it.
6625 (ENDFILE_CRTEND_SPEC): Define.
6626 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
6627 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
6628 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
6629 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
6630 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
6631 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
6632 (ENDFILE_ARCH_SPEC): Define.
6633 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
6634
6635 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6636
6637 * configure.ac (gcc_cv_solaris_crts): New test.
6638 * configure. Regenerate.
6639 * config.in: Regenerate.
6640 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
6641 HAVE_SOLARIS_CRTS variant.
6642
6643 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6644
6645 * tree-inline.h (count_insns_seq): Delete prototype.
6646 (estimate_num_insns_seq): Define prototype.
6647 * tree-inline.c (count_insns_seq): Delete.
6648 (estimate_num_insns_seq): Remove static qualifier.
6649 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
6650 with estimate_num_insns_seq.
6651
6652 2015-09-24 Richard Biener <rguenther@suse.de>
6653
6654 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
6655 members.
6656 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
6657 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
6658 offset.
6659 (ao_ref_init_from_vn_reference): Record clique and base in the
6660 built base.
6661 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
6662
6663 2015-09-24 Richard Biener <rguenther@suse.de>
6664
6665 PR tree-optimization/48885
6666 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
6667 as not including any restrict tags from other pointers.
6668
6669 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6670
6671 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
6672 character when appending to offload_targets.
6673
6674 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
6675 offload targets by commas, not colons.
6676 * config.in: Regenerate.
6677 * configure: Likewise.
6678 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
6679 instead of setting up the default offload targets here...
6680 (process_command): ..., do it here.
6681 libgomp/
6682 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
6683 targets are separated by commas.
6684 * config.h.in: Regenerate.
6685
6686 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6687 Nathan Sidwell <nathan@codesourcery.com>
6688
6689 * omp-low.h (omp_reduction_init_op): Declare.
6690 * omp-low.c (omp_reduction_init_op): New, broken out of ...
6691 (omp_reduction_init): ... here. Call it.
6692 * tree-parloops.c (initialize_reductions): Use
6693 omp_reduction_init_op.
6694
6695 2015-09-23 Richard Biener <rguenther@suse.de>
6696
6697 PR middle-end/67662
6698 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
6699 undefined overflow unless they will cancel out.
6700
6701 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6702
6703 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
6704 insn emit.
6705
6706 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
6707
6708 PR c/49655
6709 * opts.h (write_langs): Declare.
6710 * opts-global.c (write_langs): Make it extern.
6711
6712 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
6713
6714 PR target/67391
6715 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
6716 overlapping regs when matching the pattern.
6717
6718 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
6719
6720 * config/aarch64/aarch64-simd.md
6721 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
6722 (aarch64_float_truncate_hi_v4sf_le): New.
6723 (aarch64_float_truncate_hi_v4sf_be): Likewise.
6724
6725 2015-09-23 Richard Biener <rguenther@suse.de>
6726
6727 * tree-ssa-structalias.c (intra_create_variable_infos): Build
6728 representatives for all restrict qualified pointer destinations.
6729
6730 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6731
6732 * config/i386/i386.md (define_code_attr mshift): New.
6733 (define_mode_iterator SWI1248_AVX512BW): Rename ...
6734 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
6735 only.
6736 (define_insn "*k<logic><mode>"): Use new iterator name.
6737 (define_insn "*<mshift><mode>3"): New.
6738
6739 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
6740
6741 PR middle-end/67649
6742 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
6743 mark the block as accessible.
6744
6745 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
6746
6747 * function.c (thread_prologue_and_epilogue_insns): Delete
6748 orig_entry_edge argument to try_shrink_wrapping.
6749 * shrink-wrap.c (can_get_prologue): New function.
6750 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
6751 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
6752 can_get_prologue where needed. Remove code that finds a single
6753 edge for the prologue. Remove code that tests if any reg clobbered
6754 by the prologue is live on the prologue edge. Remove code that finds
6755 the new prologue edge after duplicating blocks. Make a new prologue
6756 block and edge.
6757 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
6758
6759 2015-09-22 Jeff Law <law@redhat.com>
6760
6761 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
6762 behavior.
6763
6764 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
6765
6766 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
6767 -Wtemplates, -Wnamespaces): Document.
6768
6769 2015-09-22 Tom de Vries <tom@codesourcery.com>
6770
6771 PR tree-optimization/67671
6772 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
6773 pointer references as restrict.
6774
6775 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6776
6777 * config/nios2/nios2.c (nios2_legitimize_address): When handling
6778 'reg + reloc' cases, allow first operand to be non-REG, and use
6779 force_reg() to enforce address pattern.
6780
6781 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
6782
6783 PR target/67480
6784 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
6785 (define_mode_iterator VI12_AVX_AVX512F): New.
6786 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
6787 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
6788 (define_insn "*<code><mode>3"): ... Into new pattern using
6789 VI12_AVX_AVX512F iterators without masking.
6790
6791 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6792
6793 * config.gcc: Support "skylake-avx512".
6794 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6795 PROCESSOR_SKYLAKE_AVX512.
6796 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
6797 (processor_target_table): Add "skylake-avx512".
6798 (PTA_SKYLAKE_AVX512): Define.
6799 (ix86_option_override_internal): Add "skylake_avx512".
6800 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
6801 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
6802 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
6803 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
6804 * doc/invoke.texi (skylake-avx512): New.
6805
6806 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6807
6808 * config/i386/i386.md (define_insn "kunpckhi"): Fix
6809 operand in pattern.
6810 (define_insn "kunpcksi"): Ditto.
6811 (define_insn "kunpckdi"): Ditto.
6812
6813 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6814
6815 * config/i386/i386.md (define_split not/xor SWI1248x): Use
6816 iterator instead of fixed modes.
6817
6818 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6819
6820 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6821 Adjust declaration.
6822 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
6823 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
6824 out_result. Update to support update-fetch operations.
6825 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
6826 Adjust for change to aarch64_gen_atomic_ldop.
6827 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
6828 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
6829 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
6830 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
6831 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
6832
6833 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6834
6835 * config/aarch64/aarch64-protos.h
6836 (aarch64_atomic_ldop_supported_p): Declare.
6837 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
6838 (enum aarch64_atomic_load_op_code): New.
6839 (aarch64_emit_atomic_load_op): New.
6840 (aarch64_gen_atomic_ldop): Update to support load-operate
6841 patterns.
6842 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
6843 to an expander.
6844 (aarch64_atomic_<atomic_optab><mode>): New.
6845 (aarch64_atomic_<atomic_optab><mode>_lse): New.
6846 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
6847 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
6848 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
6849
6850 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6851
6852 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
6853 (UNSPECV_ATOMIC_LDOP_OR): New.
6854 (UNSPECV_ATOMIC_LDOP_BIC): New.
6855 (UNSPECV_ATOMIC_LDOP_XOR): New.
6856 (UNSPECV_ATOMIC_LDOP_PLUS): New.
6857 (ATOMIC_LDOP): New.
6858 (atomic_ldop): New.
6859 (aarch64_atomic_load<atomic_ldop><mode>): New.
6860
6861 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6862
6863 * config/aarch64/aarch64.md
6864 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
6865 pattern.
6866
6867 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6868
6869 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6870 Declare.
6871 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
6872 (aarch64_gen_atomic_ldop): New.
6873 (aarch64_split_atomic_op): Fix whitespace and add a comment.
6874 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
6875 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
6876 (atomic_exchange<mode>): Replace with an expander.
6877 (aarch64_atomic_exchange<mode>): New.
6878 (aarch64_atomic_exchange<mode>_lse): New.
6879 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
6880 (aarch64_atomic_swp<mode>): New.
6881
6882 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6883
6884 * tree-inline.c (expand_call_inline): Use inform for extra note.
6885 Do not give a note with UNKNOWN_LOCATION.
6886 Replace input_location with gimple_location (stmt).
6887 Use true/false instead of TRUE/FALSE.
6888
6889 2015-09-22 Tom de Vries <tom@codesourcery.com>
6890
6891 PR tree-optimization/67666
6892 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
6893 with single field non-conservative.
6894
6895 2015-09-21 David S. Miller <davem@davemloft.net>
6896
6897 PR/67622
6898 Revert:
6899 2015-09-11 David S. Miller <davem@davemloft.net>
6900
6901 * config/sparc/constraints.md: Make "U" constraint a real register
6902 constraint.
6903 * config/sparc/sparc.c (TARGET_LRA_P): Define.
6904 (D_MODES, DF_MODES): Add missing cast.
6905 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6906 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6907 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6908 cost to 8.
6909 * config/sparc/sparc.h (PROMOTE_MODE): Define.
6910 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6911 provide these insn when flag_pic.
6912
6913 2015-09-17 David S. Miller <davem@davemloft.net>
6914
6915 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
6916 Declare.
6917 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
6918 function.
6919 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6920 (HARD_REGNO_CALLER_SAVE_MODE): Define.
6921 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6922 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6923 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6924 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6925 provide when flag_pic.
6926
6927 2015-09-21 Jeff Law <law@redhat.com>
6928
6929 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
6930 behavior.
6931
6932 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6933
6934 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
6935
6936 2015-09-21 Richard Biener <rguenther@suse.de>
6937
6938 * passes.c (rest_of_decl_compilation): Do not call
6939 dwarf2out_early_global_decl for aliases.
6940
6941 2015-09-21 Richard Biener <rguenther@suse.de>
6942
6943 PR debug/67664
6944 * dwarf2out.c (add_location_or_const_value_attribute): Remove
6945 attribute parameter. Early exit if either DW_AT_const_value
6946 or DW_AT_location are present already.
6947 (gen_variable_die): Adjust caller.
6948 (dwarf2out_late_global_decl): Likewise.
6949
6950 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6951
6952 PR target/67657
6953 * config/sh/sh.c (sh_remove_overlapping_post_inc,
6954 sh_peephole_emit_move_insn): Add new functions.
6955 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
6956 sh_peephole_emit_move_insn): Declere them.
6957 * config/sh/sh.md: Use them in various peephole2 patterns.
6958
6959 2015-09-21 Richard Biener <rguenther@suse.de>
6960
6961 PR middle-end/67651
6962 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
6963 address with -fno-delete-null-pointer-checks.
6964
6965 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
6966
6967 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
6968 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
6969 (reduc_uplus_v16qi): Remove.
6970
6971 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
6972 (reduc_<VEC_reduc_name>_v2df): Remove.
6973 (reduc_<VEC_reduc_name>_v4sf): Remove.
6974 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
6975
6976 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
6977 gen_ function by removing * prefix.
6978 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
6979
6980 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6981
6982 PR middle-end/60832
6983 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
6984 Print i_bound without converting it to a tree.
6985
6986 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
6987
6988 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
6989 operands[4] operands[5] swap with std::swap, removed tmp variable.
6990 (arm_evpc_neon_vzip): Replaced in0/in1 and
6991 out0/out1 swaps with std::swap, removed x variable.
6992 (arm_evpc_neon_vtrn): Replaced in0/int1 and
6993 out0/out1 swaos with std::swap, removed x variable.
6994 (arm_expand_vec_perm_const_1): Replaced
6995 d->op0/d->op1 swap with std::swap, removed x variable.
6996 (arm_evpc_neon_vuzp): Replaced in0/in1 and
6997 out0/out1 swaps with std::swap, removed x variable.
6998
6999 2015-09-21 Jonathan Yong <10walls@gmail.com>
7000
7001 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
7002 sysroot/usr/lib/32api for additional win32 libraries,
7003 fixes failing Cygwin bootstrapping.
7004
7005 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
7006
7007 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
7008
7009 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
7010
7011 PR target/67126
7012 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
7013 (*mov_t_msb_neg): Rewrite negc pattern.
7014
7015 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7016
7017 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
7018 immediate generation code.
7019
7020 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7021
7022 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
7023 redundant immediate generation code.
7024
7025 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7026
7027 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
7028 (AARCH64_NUM_BITMASKS): Remove.
7029 (aarch64_bitmasks_cmp): Remove.
7030 (aarch64_build_bitmask_table): Remove.
7031
7032 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7033
7034 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
7035 slow immediate matching loops with a faster algorithm.
7036
7037 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7038
7039 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
7040 faster algorithm.
7041
7042 2015-09-20 Jeff Law <law@redhat.com>
7043
7044 PR tree-optimization/47679
7045 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
7046 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
7047 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
7048 (thread_through_normal_block): Use record_temporary_equivalences.
7049
7050 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
7051
7052 * coretypes.h (gimple): Change typedef to be a forward declaration.
7053 * gimple.h (gimple_statement_base): rename to gimple.
7054 * (all functions and types using gimple): Adjust.
7055 * *.[ch]: Likewise.
7056
7057 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
7058 David Edelsohn <dje.gcc@gmail.com>
7059
7060 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
7061 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7062 (EH_FRAME_THROUGH_COLLECT2): Define.
7063 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7064 (ASM_OUTPUT_DWARF_PCREL): Define.
7065 (ASM_OUTPUT_DWARF_DATAREL): Define.
7066
7067 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
7068
7069 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
7070 of TARGET_ELF32.
7071
7072 2015-09-18 Jeff Law <law@redhat.com>
7073
7074 PR tree-optimization/47679
7075 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
7076 it here ...
7077 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
7078 object. Update constructor.
7079 (pass_dominator::execute): Corresponding chagnes to declaration
7080 and initialization of avail_exprs_stack. Update constructor call
7081 for dom_opt_dom_walker object.
7082 (lookup_avail_expr, record_cond): Accept additional argument. Pass
7083 it down to children as needed.
7084 (record_equivalences_from_incoming_edge): Likewise.
7085 (eliminate_redundant_computations): Likewise.
7086 (record_equivalences_from_stmt): Likewise.
7087 (simplify_stmt_for_jump_threading): Likewise.
7088 (record_temporary_equivalences): Likewise.
7089 (optimize_stmt): Likewise.
7090 (dom_opt_dom_walker::thread_across_edge): Update access to
7091 avail_exprs_stack object and pass it to children as needed.
7092 (dom_opt_dom_walker::before_dom_children): Similarly.
7093 (dom_opt_dom_walker::after_dom_children): Similarly.
7094 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
7095 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
7096 Add avail_expr_stack argument. Pass it to children as needed.
7097 (dummy_simplify): Likewise.
7098 (simplify_control_stmt_condition): Likewise.
7099 (thread_around_empty_blocks): Likewise.
7100 (thread_through_normal_block): Likewise.
7101 (thread_across_edge): Likewise.
7102 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7103 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
7104
7105 PR tree-optimization/47679
7106 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
7107 it here ...
7108 (dom_opt_dom_walker): New private member holding the const_and_copies
7109 object. Update constructor.
7110 (pass_dominator::execute): Corresponding changes to declaration
7111 and initialization of const_and_copies. Update constructor call
7112 for the dom_opt_dom_walker object.
7113 (record_temporary_equivalences): Accept const_and_copies argument
7114 pass it down to children as needed.
7115 (record_equality): Likewise.
7116 (record_equivalences_from_incoming_edge): Likewise.
7117 (cprop_into_successor_phis, optimize_stmt): Likewise.
7118 (eliminate_redundant_computations): Likewise.
7119 (dom_opt_dom_walker::thread_across_edge): Update access to
7120 const_and_copies object and pass it to children as needed.
7121 (dom_opt_dom_walker::before_dom_children): Similarly.
7122 (dom_opt_dom_walker::after_dom_children): Similarly.
7123
7124 PR tree-optimization/47679
7125 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
7126 it into the avail_exprs_stack class.
7127 (pass_dominator::execute): Corresponding changes to declaration
7128 and initialization of avail_exprs. Pass avail_exprs to
7129 dump_dominator_optimization_stats.
7130 (record_cond): Extract avail_exprs from avail_exprs_stack.
7131 (lookup_avail_expr): Similarly.
7132 (htab_staticstics): Remove unnecessary prototype. Move to earlier
7133 position in file.
7134 (dump_dominator_optimization_stats): Make static and prototype.
7135 Add argument for the hash table to dump.
7136 (debug_dominator_optimization_stats): Remove.
7137 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
7138 prototype.
7139 (debug_dominator_optimization_stats): Similarly.
7140 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
7141 "void" in prototype for pop_to_marker method. Add accessor method
7142 for the underlying avail_exprs table.
7143
7144 * tree-ssa-threadedge.c: Remove trailing whitespace.
7145
7146 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
7147
7148 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
7149 unsigned.
7150 (pa_ldil_cint_p): Likewise.
7151 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
7152 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
7153 Update callers.
7154 * config/pa/pa.md: Likewise.
7155
7156 2015-09-18 David Malcolm <dmalcolm@redhat.com>
7157
7158 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
7159 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
7160 (diagnostic_show_locus): Likewise.
7161 (diagnostic_print_caret_line): Likewise.
7162 * diagnostic-show-locus.c: New file.
7163
7164 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
7165
7166 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
7167 "back" parameter. Declare label in #if block.
7168
7169 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
7170
7171 PR middle-end/67619
7172 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
7173 the address to a register.
7174
7175 2015-09-18 Jeff Law <law@redhat.com>
7176
7177 PR tree-optimization/47679
7178 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
7179 * tree-ssa-dom.c: Remove unnecessary header includes.
7180 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
7181 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
7182 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
7183 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
7184 (pass_phi_only_cprop::execute): Likewise.
7185 (make_pass_phi_only_cprop): Likewise.
7186 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
7187 uses of file scoped statics by passing the required objects
7188 as parameters wherever needed.
7189
7190 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
7191 David Edelsohn <dje.gcc@gmail.com>
7192
7193 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
7194 EH_FRAME_THROUGH_COLLECT2.
7195 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
7196 DW_EH_PE_datarel.
7197 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
7198 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
7199 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
7200 * except.c (switch_to_exception_section): Use a read-only section
7201 even if EH_FRAME_SECTION_NAME is undefined.
7202 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
7203 * collect2.c (write_c_file_stat): Provide dbase on AIX.
7204 (scan_prog_file): Don't export __dso_handle nor
7205 __gcc_unwind_dbase.
7206 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7207 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7208 (ASM_OUTPUT_DWARF_PCREL): Define.
7209 (ASM_OUTPUT_DWARF_DATAREL): Define.
7210 (EH_FRAME_THROUGH_COLLECT2): Define.
7211 (EH_FRAME_IN_DATA_SECTION): Delete.
7212 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
7213 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
7214 Declare.
7215 (rs6000_asm_output_dwarf_datarel): Declare.
7216 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
7217 (rs6000_aix_asm_output_dwarf_datarel): New.
7218 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
7219 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
7220 (EH_FRAME_THROUGH_COLLECT2): Define.
7221 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
7222 (EH_FRAME_THROUGH_COLLECT2): Define.
7223 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7224 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
7225 (EH_FRAME_THROUGH_COLLECT2): New.
7226 (ASM_OUTPUT_DWARF_DATAREL): New.
7227 * doc/tm.texi: Regenerate.
7228
7229 2015-09-18 Richard Biener <rguenther@suse.de>
7230
7231 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
7232 we're in early phase.
7233 (schedule_generic_params_dies_gen): Likewise.
7234 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
7235 work as possible, retaining unhandled cases.
7236 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
7237 clear out generic_type_instances at the end.
7238 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
7239 (dwarf2out_early_finish): ... here. Do most of
7240 gen_remaining_tmpl_value_param_die_attribute here.
7241
7242 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
7243
7244 PR tree-optimization/67283
7245 * tree-sra.c (type_consists_of_records_p): Rename to...
7246 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7247 (completely_scalarize_record): Rename to...
7248 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7249 (scalarize_elem): New.
7250 (analyze_all_variable_accesses): Follow renamings.
7251
7252 2015-09-18 Richard Biener <rguenther@suse.de>
7253
7254 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
7255 in early-dwarf.
7256
7257 2015-09-18 Richard Biener <rguenther@suse.de>
7258
7259 PR tree-optimization/66142
7260 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
7261 treat MEM[&x] and x the same.
7262 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
7263 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
7264 when we simplified sth.
7265 (vn_reference_maybe_forwprop_address): Likewise.
7266 (valueize_refs_1): When we simplified through
7267 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
7268 set valueized_anything to true.
7269 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
7270 one ref kills the other instead of just a offset-based test.
7271 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
7272 for the operand_equal_p test to compare bases and also compare
7273 sizes.
7274
7275 2015-09-17 Christian Bruel <christian.bruel@st.com>
7276
7277 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
7278
7279 2015-09-17 Richard Henderson <rth@redhat.com>
7280
7281 PR libstdc++/65913
7282 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
7283 pointers that encode the alignment of the object.
7284
7285 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
7286
7287 PR rtl-optimization/66790
7288 * df-problems.c (LIVE): Amend documentation.
7289
7290 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
7291
7292 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
7293 and optabs-tree.o.
7294 (GTFILES): Replace optabs.c with optabs-libfunc.c.
7295 * genopinit.c (main): Add an include guard to insn-opinit.h.
7296 Protect the rtx_code parts with NUM_RTX_CODE.
7297 * optabs.h: Split parts out to...
7298 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
7299 * optabs.c: Split parts out to...
7300 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
7301 * cilk-common.c: Include optabs-query.h rather than optabs.h.
7302 * fold-const.c: Likewise.
7303 * target-globals.c: Likewise.
7304 * tree-if-conv.c: Likewise.
7305 * tree-ssa-forwprop.c: Likewise.
7306 * tree-ssa-loop-prefetch.c: Likewise.
7307 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
7308 Remove unncessary include files.
7309 * tree-ssa-phiopt.c: Likewise.
7310 * tree-ssa-reassoc.c: Likewise.
7311 * tree-switch-conversion.c: Likewise.
7312 * tree-vect-data-refs.c: Likewise.
7313 * tree-vect-generic.c: Likewise.
7314 * tree-vect-loop.c: Likewise.
7315 * tree-vect-patterns.c: Likewise.
7316 * tree-vect-slp.c: Likewise.
7317 * tree-vect-stmts.c: Likewise.
7318 * tree-vrp.c: Likewise.
7319 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
7320 rather than optabs.h.
7321 * expr.c: Include optabs-tree.h.
7322 * function.c: Likewise.
7323
7324 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
7325
7326 PR middle-end/65958
7327 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
7328 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
7329 * config/arm/arm.c: Include common/common-target.h.
7330 (use_return_insn): Return 0 if the static chain register was saved
7331 above a non-APCS frame.
7332 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
7333 (struct scratch_reg): New.
7334 (get_scratch_register_on_entry): New function.
7335 (release_scratch_register_on_entry): Likewise.
7336 (arm_emit_probe_stack_range): Likewise.
7337 (output_probe_stack_range): Likewise.
7338 (arm_expand_prologue): Factor out code dealing with the IP register
7339 for nested function and adjust it for stack checking.
7340 Invoke arm_emit_probe_stack_range if static builtin stack checking
7341 is enabled.
7342 (thumb1_expand_prologue): Sorry out if static builtin stack checking
7343 is enabled.
7344 (arm_expand_epilogue): Add the saved static chain register, if any, to
7345 the amount of pre-pushed registers to pop.
7346 (arm_frame_pointer_required): Return true if static stack checking is
7347 enabled and we want to catch the exception with the EABI unwinder.
7348 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
7349 (UNSPEC_PROBE_STACK_RANGE): Likewise.
7350 * config/arm/arm.md (probe_stack): New insn.
7351 (probe_stack_range): Likewise.
7352
7353 2015-09-17 Richard Biener <rguenther@suse.de>
7354
7355 * genmatch.c (parser::parse_expr): Improve error message
7356 for mis-placed flags.
7357
7358 2015-09-17 Richard Biener <rguenther@suse.de>
7359
7360 * passes.c (rest_of_decl_compilation): Always call early_global_decl
7361 debug hook when we created a varpool node.
7362 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
7363 dwarf2out_early_global_decl, when not just add location or
7364 value attributes to existing DIEs.
7365
7366 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
7367
7368 * config/aarch64/aarch64.md (copysigndf3): New.
7369 (copysignsf3): Likewise.
7370
7371 2015-09-17 David S. Miller <davem@davemloft.net>
7372
7373 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
7374 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
7375 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
7376 (HARD_REGNO_CALLER_SAVE_MODE): Define.
7377 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
7378 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
7379 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
7380 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
7381 provide when flag_pic.
7382
7383 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
7384
7385 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
7386 object_allocator change.
7387
7388 2015-09-17 Bin Cheng <bin.cheng@arm.com>
7389
7390 PR tree-optimization/66388
7391 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
7392 (dump_iv): Dump no_overflow information.
7393 (alloc_iv): Initialize new field for struct iv.
7394 (mark_bivs): Count number of no_overflow bivs.
7395 (find_deriving_biv_for_expr, record_biv_for_address_use): New
7396 functions.
7397 (idx_find_step): Call new functions above.
7398 (add_candidate_1, add_candidate): New paramter.
7399 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
7400 (get_computation_aff): Simplify convertion of cand for BIV.
7401 (get_computation_cost_at): Step cand's base if necessary.
7402
7403 2015-09-17 Bin Cheng <bin.cheng@arm.com>
7404
7405 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
7406 parameter.
7407 (tree_simplify_using_condition): Ditto.
7408 (simplify_using_initial_conditions): Ditto.
7409 (loop_exits_before_overflow): Pass new argument to function
7410 simplify_using_initial_conditions. Remove case for type conversions
7411 simplification.
7412 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
7413 parameter.
7414 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
7415 in iv base using loop initial conditions.
7416
7417 2015-09-16 Jeff Law <law@redhat.com>
7418
7419 PR tree-optimization/47679
7420 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
7421 (free_all_edge_infos): Use it.
7422 (allocate_edge_info): Free preexisting edge info data.
7423 (pass_dominator::execute): Set up initial edge info structures.
7424 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
7425 thread_across_edge.
7426 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
7427 If non-null, then push/pop markers appropriately.
7428 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7429 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
7430 thread-across_edge.
7431
7432 2015-09-16 James Bowman <james.bowman@ftdichip.com>
7433
7434 * config/ft32/ft32.c: Fix the memory address space predicate.
7435
7436 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
7437
7438 PR target/67573
7439 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
7440 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7441
7442 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7443
7444 * toplev.h (check_global_declaration): Remove declaration.
7445 * toplev.c (check_global_declaration): Move to ...
7446 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
7447 (analyze_functions): Update call.
7448
7449 2015-09-16 David S. Miller <davem@davemloft.net>
7450
7451 * lra-constraints.c (simplify_operand_subreg): Do not assume that
7452 lowpart of a SUBREG has offset zero.
7453
7454 2015-09-16 Jeff Law <law@redhat.com>
7455
7456 PR tree-optimization/47679
7457 * tree-ssa-dom.c (enum expr_kind): Moved from here to
7458 tree-ssa-scopedtables.h.
7459 (struct hashable_expr, class expr_hash_elt): Likewise.
7460 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
7461 Move associated methods into tree-ssa-scopedtables.c.
7462 (avail_expr_hash, initialize_expr_from_cond): Similarly.
7463 (hashable_expr_equal_p, add_expr_commutative): Likewise.
7464 (add_hashable_expr): Likewise.
7465 (record_cond): Delete element directly.
7466 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
7467 private copy ctor and assignment operator methods.
7468 (expr_elt_hasher): Inline trivial methods.
7469 (initialize_expr_from_cond): Prototype.
7470 * tree-ssa-scopedtables.c: Add necessary includes, functions and
7471 methods that were previously in tree-ssa-dom.c. Improve various
7472 comments.
7473
7474 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
7475
7476 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
7477
7478 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
7479
7480 PR bootstrap/67587
7481 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7482 fixup_partitions.
7483
7484 2015-09-16 Richard Biener <rguenther@suse.de>
7485
7486 PR middle-end/67253
7487 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
7488 location of possibly shared trees.
7489
7490 2015-09-16 Richard Biener <rguenther@suse.de>
7491
7492 PR middle-end/67271
7493 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
7494
7495 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
7496
7497 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
7498 offset and size computations instead of HOST_WIDE_INT.
7499
7500 2015-09-16 Richard Biener <rguenther@suse.de>
7501
7502 PR middle-end/67442
7503 * fold-const.c (extract_muldiv_1): Properly extend multiplication
7504 result before builting a tree via wide_int_to_tree.
7505
7506 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
7507
7508 * Makefile.in: Add memory-block.cc
7509 (pool_allocator::initialize): Use fixed block size.
7510 (pool_allocator::release): Use memory_block_pool.
7511 (pool_allocator::allocate): Likewise.
7512 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
7513 object pools.
7514 * cfg.c (initialize_original_copy_tables): Likewise.
7515 * cselib.c (elt_list_pool, elt_loc_list_pool,
7516 cselib_val_pool): Likewise.
7517 * df-problems.c (df_chain_alloc): Likewise.
7518 * df-scan.c (df_scan_alloc): Likewise.
7519 * dse.c (cse_store_info_pool, rtx_store_info_pool,
7520 read_info_type_pool, insn_info_type_pool, bb_info_pool,
7521 group_info_pool, deferred_change_pool): Likewise.
7522 * et-forest.c (et_nodes, et_occurrences): Likewise.
7523 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
7524 ipcp_agg_lattice_pool): Likewise.
7525 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
7526 * ipa-profile.c (histogram_pool): Likewise.
7527 * ipa-prop.c (ipa_refdesc_pool): Likewise.
7528 * ira-build.c (live_range_pool, allocno_pool, object_pool,
7529 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
7530 * ira-color.c (update_cost_record_pool): Likewise.
7531 * lra-lives.c (lra_live_range_pool): Likewise.
7532 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
7533 * memory-block.cc: New file.
7534 * memory-block.h: New file.
7535 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
7536 * sched-deps.c (sched_deps_init): Likewise.
7537 * sel-sched-ir.c (sched_lists_pool): Likewise.
7538 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
7539 * tree-sra.c (access_pool): Likewise.
7540 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7541 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
7542 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
7543 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7544 * tree-ssa-strlen.c (strinfo_pool): Likewise.
7545 * tree-ssa-structalias.c (variable_info_pool): Likewise.
7546 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
7547 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
7548
7549 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
7550
7551 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
7552 definition.
7553 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
7554 call0 ABI.
7555
7556 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
7557
7558 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
7559 to pass TLS call argument, according to current ABI.
7560 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
7561 callx0 for TLS call, according to current ABI.
7562
7563 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7564
7565 * tree-eh.c (lower_try_finally_dup_block): Clear location information
7566 on stack restore statements.
7567 (decide_copy_try_finally): Do not consider a stack restore statement as
7568 coming from sources.
7569
7570 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
7571
7572 * config/alpha/alpha.c (alpha_expand_block_clear): Use
7573 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
7574
7575 2015-09-15 Jeff Law <law@redhat.com>
7576
7577 PR tree-optimization/47679
7578 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
7579 methods and private members.
7580 (avail_exprs_stack): Similarly. Change type of global
7581 from a pair of expr_hash_elt_t to the new class.
7582 (expr_elt_hasher::hash): Corresponding changes.
7583 (expr_elt_hasher::equal): Similarly.
7584 (avail_expr_hash): Similarly.
7585 (pass_dominator::execute): Similarly.
7586 (dom_opt_dom_walker::thread_across_edge): Similarly.
7587 (record_cond): Similarly.
7588 (dom_opt_dom_walker::before_dom_children): Similarly.
7589 (dom_opt_dom_walker::after_dom_children): Similarly.
7590 (lookup_avail_expr): Likewise.
7591 (initialize_hash_element): Now a expr_hash_elt constructor.
7592 (initialize_hash_element_from_expr): Similarly.
7593 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
7594 (free_expr_hash_elt): Call dtor for the element.
7595 (remove_local_expressions_from_table): Now the "pop_to_marker"
7596 method in the available_exprs_stack class.
7597 (avail_expr_stack::record_expr): Method factored out.
7598 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
7599 Fix formatting.
7600 (hashable_expr_equal_p): Fix formatting.
7601
7602 2015-09-15 David Malcolm <dmalcolm@redhat.com>
7603
7604 * input.h (location_get_source_line): Drop "expanded_location"
7605 param in favor of a file and line number.
7606 * input.c (location_get_source_line): Likewise.
7607 (dump_location_info): Update for change in signature of
7608 location_get_source_line.
7609 * diagnostic.c (diagnostic_print_caret_line): Likewise.
7610
7611 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7612
7613 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
7614 Bump to 4KB for SJLJ exceptions.
7615 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
7616 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
7617 * doc/tm.texi: Regenerate.
7618
7619 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7620
7621 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
7622 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
7623 Update prototype.
7624
7625 2015-09-15 Richard Biener <rguenther@suse.de>
7626
7627 PR tree-optimization/67470
7628 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
7629 structure for PHI hoisting by inserting a forwarder block
7630 if appropriate.
7631
7632 2015-09-15 Christian Bruel <christian.bruel@st.com>
7633
7634 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
7635 (arm_option_print): New function.
7636
7637 2015-09-15 Christian Bruel <christian.bruel@st.com>
7638
7639 PR target/52144
7640 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
7641 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
7642 Remove flags parameter.
7643 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
7644 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
7645 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
7646 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
7647 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
7648 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
7649 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
7650 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
7651
7652 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7653
7654 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
7655
7656 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
7657 AARCH64_VALID_SIMD_DREG_MODE.
7658
7659 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7660
7661 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
7662 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
7663 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
7664 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
7665 aarch64_ld4_lane<mode>): Combine together, making...
7666 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7667 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7668 aarch64_st4_lane<mode>): Combine together, making...
7669 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7670 * config/aarch64/iterators.md (nregs): Add comment.
7671
7672 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7673
7674 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
7675 Change operand mode from <V_TWO_ELEM> to BLK.
7676 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
7677 (aarch64_vec_store_lanesoi_lane<mode): Likewise
7678 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7679 (aarch64_ld2_lane<mode>): Likewise.
7680 (aarch64_st2_lane<VQ:mode>): Likewise.
7681 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
7682
7683 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7684
7685 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
7686 Change operand mode from <V_FOUR_ELEM> to BLK.
7687 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
7688 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
7689 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7690 (aarch64_ld4_lane<mode>): Likewise.
7691 (aarch64_st4_lane<mode>): Likewise.
7692 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
7693
7694 2015-09-15 Richard Biener <rguenther@suse.de>
7695
7696 PR middle-end/67563
7697 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
7698 transfer EH info from old to new stmt.
7699 (replace_call_with_value): Likewise.
7700 (replace_call_with_call_and_fold): Likewise.
7701 (gimple_fold_builtin_memory_op): Likewise.
7702 (gimple_fold_builtin_memset): Likewise.
7703 (gimple_fold_builtin_stpcpy): Likewise.
7704 (gimple_fold_call): Likewise.
7705
7706 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7707
7708 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
7709 comment.
7710 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
7711 (aarch64_simd_intEI_type_node): Likewise.
7712 (aarch64_simd_builtin_std_type): Remove EImode case.
7713 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
7714 * config/aarch64/aarch64-modes.def: Remove EImode.
7715
7716 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7717
7718 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
7719 Change operand mode from <V_THREE_ELEM> to BLK.
7720 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
7721 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
7722 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7723 (aarch64_ld3_lane<mode>): Likewise.
7724 (aarch64_st3_lane<mode>): Likewise.
7725 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
7726
7727 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7728
7729 * config/aarch64/aarch64-simd.md
7730 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
7731 Change all TImode operands to BLKmode.
7732 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
7733 Change all EImode operands to BLKmode.
7734 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
7735 Change all OImode operands to BLKmode.
7736
7737 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
7738 and call set_mem_size.
7739 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
7740
7741 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
7742
7743 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7744
7745 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
7746 to...
7747 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
7748
7749 (vec_store_lanesci_lane<mode>): Rename to...
7750 (aarch64_vec_store_lanesci_lane<mode>): ...this.
7751
7752 (vec_store_lanesxi_lane<mode>): Rename to...
7753 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
7754
7755 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7756 aarch64_st4_lane<mode>): Follow renaming.
7757
7758 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7759
7760 * config/s390/s390.c (s390_const_operand_ok): Add missing
7761 brackets.
7762
7763 2015-09-15 Richard Biener <rguenther@suse.de>
7764
7765 PR lto/67568
7766 * lto-streamer.h (lto_location_cache::current_sysp): Properly
7767 initialize.
7768 * lto-streamer-out.c (clear_line_info): Likewise.
7769
7770 2015-09-15 Richard Biener <rguenther@suse.de>
7771
7772 * doc/match-and-simplify.texi: Fix wording.
7773
7774 2015-09-15 Bin Cheng <bin.cheng@arm.com>
7775
7776 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
7777 unnecessary type conversion in op1.
7778
7779 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
7780
7781 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
7782 (dup_block_and_redirect): Delete function.
7783 (can_dup_for_shrink_wrapping): New function.
7784 (fix_fake_fallthrough_edge): New function.
7785 (try_shrink_wrapping): Rewrite function.
7786 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
7787
7788 2015-09-14 Rich Felker <dalias@libc.org>
7789
7790 * configure.ac: Change target pattern for sh TLS support
7791 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
7792 * configure: Regenerate.
7793
7794 2015-09-14 Jeff Law <law@redhat.com>
7795
7796 PR tree-optimization/47679
7797 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
7798 type rather than void *.
7799
7800 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7801
7802 PR fortran/67460
7803 * diagnostic.c (diagnostic_initialize): Do not set
7804 some_warnings_are_errors.
7805 (diagnostic_finish): Use DK_WERROR count instead.
7806 (diagnostic_report_diagnostic): Do not set
7807 some_warnings_are_errors.
7808 * diagnostic.h (struct diagnostic_context): Remove
7809 some_warnings_are_errors.
7810
7811 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
7812
7813 * config/sparc/predicates.md (const_all_ones_operand): Use
7814 CONSTM1_RTX to simplify definition.
7815
7816 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
7817
7818 PR target/67061
7819 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
7820 Handle call insns.
7821
7822 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
7823
7824 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
7825 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
7826 OPT_fshow_column to handled saved option cases.
7827 (append_compiler_options): Do not skip the above added options.
7828
7829 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7830
7831 PR target/63304
7832 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
7833 nopcrelative_literal_loads.
7834 (aarch64_classify_address): Likewise.
7835 (aarch64_constant_pool_reload_icode): Define.
7836 (aarch64_secondary_reload): Handle secondary reloads for
7837 literal pools.
7838 (aarch64_override_options): Handle nopcrelative_literal_loads.
7839 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
7840 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7841 Define.
7842 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7843 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
7844 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
7845 predicate.
7846 * doc/invoke.texi (mpc-relative-literal-loads): Document.
7847
7848 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
7849
7850 PR middle-end/67401
7851 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
7852 sync_compare_and_swap_optab libcall to target_oval.
7853
7854 2015-09-14 Marek Polacek <polacek@redhat.com>
7855
7856 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
7857 value.
7858 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
7859
7860 2015-09-11 Mark Wielaard <mjw@redhat.com>
7861
7862 PR c/28901
7863 * toplev.c (check_global_declaration): Check and use
7864 warn_unused_const_variable.
7865 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
7866 (-Wunused-variable): Remove non-constant. For C implies
7867 -Wunused-const-variable.
7868 (-Wunused-const-variable): New.
7869
7870 2015-09-14 Richard Biener <rguenther@suse.de>
7871
7872 * doc/match-and-simplify.texi: Update for changed syntax
7873 of inner ifs and the new switch expression.
7874
7875 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
7876
7877 * config/i386/haswell.md: New file describing Haswell pipeline.
7878 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
7879 haswell-like processors.
7880 (ix86_reassociation_width): Increase reassociation width for 64-bit
7881 Haswell processor family.
7882 * config/i386/i386.md: Introduce haswell cpu and include new md file.
7883
7884 2015-09-14 Richard Biener <rguenther@suse.de>
7885
7886 * doc/match-and-simplify.texi: Fixup some formatting issues
7887 and document the 's' flag.
7888
7889 2015-09-13 Olivier Hainque <hainque@adacore.com>
7890 Eric Botcazou <ebotcazou@adacore.com>
7891
7892 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
7893 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
7894 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
7895 (TARGET_CPU_gr5): Likewise.
7896 (TARGET_CPU_gr6): Likewise.
7897 (MULTILIB_DEFAULTS): Likewise.
7898 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
7899 for mcpu=gr5 and mcpu=gr6.
7900 (MULTILIB_DIRNAMES): Adjust accordingly.
7901
7902 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7903
7904 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
7905 (mem_ref_p): Likewise.
7906 (outermost_indep_loop): Adjust.
7907 (mem_ref_in_stmt): Likewise.
7908 (determine_max_movement): Likewise.
7909 (mem_ref_alloc): Likewise.
7910 (record_mem_ref_loc): Likewise.
7911 (set_ref_stored_in_loop): Likewise.
7912 (mark_ref_stored): Likewise.
7913 (gather_mem_refs_stmt): Likewise.
7914 (mem_refs_may_alias_p): Likewise.
7915 (for_all_locs_in_loop): Likewise.
7916 (struct rewrite_mem_ref_loc): Likewise.
7917 (rewrite_mem_refs): Likewise.
7918 (struct first_mem_ref_loc_1): Likewise.
7919 (first_mem_ref_loc): Likewise.
7920 (struct sm_set_flag_if_changed): Likewise.
7921 (execute_sm_if_changed_flag_set): Likewise.
7922 (execute_sm): Likewise.
7923 (hoist_memory_references):
7924 (struct ref_always_accessed): Likewise.
7925 (ref_always_accessed_p): Likewise.
7926 (refs_independent_p): Likewise.
7927 (record_dep_loop): Likewise.
7928 (ref_indep_loop_p_1): Likewise.
7929 (ref_indep_loop_p_2): Likewise.
7930 (ref_indep_loop_p): Likewise.
7931 (can_sm_ref_p): Likewise.
7932 (find_refs_for_sm): Likewise.
7933 (tree_ssa_lim_finalize): Likewise.
7934
7935 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7936
7937 * dwarf2out.c (dw_attr_ref): Remove typedef.
7938 (dw_line_info_ref): Likewise.
7939 (pubname_ref): Likewise.
7940 (dw_ranges_ref): Likewise.
7941 (dw_ranges_by_label_ref): Likewise.
7942 (comdat_type_node_ref): Likewise.
7943 (get_AT): Adjust.
7944 (get_AT_low_pc): Likewise.
7945 (get_AT_hi_pc): Likewise.
7946 (get_AT_string): Likewise.
7947 (get_AT_flag): Likewise.
7948 (get_AT_unsigned): Likewise.
7949 (get_AT_ref): Likewise.
7950 (get_AT_file): Likewise.
7951 (remove_AT): Likewise.
7952 (print_die): Likewise.
7953 (check_die): Likewise.
7954 (die_checksum): Likewise.
7955 (attr_checksum_ordered): Likewise.
7956 (struct checksum_attributes): Likewise.
7957 (collect_checksum_attributes): Likewise.
7958 (die_checksum_ordered): Likewise.
7959 (same_die_p): Likewise.
7960 (is_declaration_die): Likewise.
7961 (clone_die): Likewise.
7962 (clone_as_declaration): Likewise.
7963 (copy_declaration_context): Likewise.
7964 (break_out_comdat_types): Likewise.
7965 (copy_decls_walk): Likewise.
7966 (output_location_lists): Likewise.
7967 (external_ref_hasher::hash): Likewise.
7968 (optimize_external_refs_1): Likewise.
7969 (build_abbrev_table): Likewise.
7970 (size_of_die): Likewise.
7971 (unmark_all_dies): Likewise.
7972 (size_of_pubnames): Likewise.
7973 (output_die_abbrevs): Likewise.
7974 (output_die): Likewise.
7975 (output_pubnames): Likewise.
7976 (add_ranges_num): Likewise.
7977 (add_ranges_by_labels): Likewise.
7978 (add_high_low_attributes): Likewise.
7979 (gen_producer_string): Likewise.
7980 (dwarf2out_set_name): Likewise.
7981 (new_line_info_table): Likewise.
7982 (prune_unused_types_walk_attribs): Likewise.
7983 (prune_unused_types_update_strings): Likewise.
7984 (prune_unused_types): Likewise.
7985 (resolve_addr): Likewise.
7986 (optimize_location_lists_1): Likewise.
7987 (index_location_lists): Likewise.
7988 (dwarf2out_finish): Likewise.
7989
7990 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7991
7992 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
7993
7994 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7995
7996 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
7997 (dump_asserts_for): Adjust.
7998 (register_new_assert_for): Likewise.
7999 (process_assert_insertions): Likewise.
8000 (insert_range_assertions): Likewise.
8001
8002 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8003
8004 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
8005 and remove typedef.
8006 (new_temp_expr_table): Adjust.
8007 (free_temp_expr_table): Likewise.
8008 (version_to_be_replaced_p): Likewise.
8009 (make_dependent_on_partition): Likewise.
8010 (add_to_partition_kill_list): Likewise.
8011 (remove_from_partition_kill_list): Likewise.
8012 (add_dependence): Likewise.
8013 (finished_with_expr): Likewise.
8014 (process_replaceable): Likewise.
8015 (kill_expr): Likewise.
8016 (kill_virtual_exprs): Likewise.
8017 (mark_replaceable): Likewise.
8018 (find_replaceable_in_bb): Likewise.
8019 (find_replaceable_exprs): Likewise.
8020 (debug_ter): Likewise.
8021
8022 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8023
8024 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
8025 (struct btr_user): Rename from btr_user_s.
8026 (struct btr_def): Rename from btr_def_s.
8027 (find_btr_def_group): Adjust.
8028 (add_btr_def): Likewise.
8029 (new_btr_user): Likewise.
8030 (note_other_use_this_block): Likewise.
8031 (compute_defs_uses_and_gen): Likewise.
8032 (link_btr_uses): Likewise.
8033 (build_btr_def_use_webs): Likewise.
8034 (block_at_edge_of_live_range_p): Likewise.
8035 (btr_def_live_range): Likewise.
8036 (combine_btr_defs): Likewise.
8037 (move_btr_def): Likewise.
8038 (migrate_btr_def): Likewise.
8039 (migrate_btr_defs): Likewise.
8040
8041 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8042
8043 * var-tracking.c (shared_hash_def): Rename to shared_hash.
8044 (shared_hash): Remove typedef.
8045 (struct dataflow_set): Adjust.
8046 (shared_hash_unshare): Likewise.
8047 (dataflow_set_merge): Likewise.
8048 (vt_initialize): Likewise.
8049 (vt_finalize): Likewise.
8050
8051 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8052
8053 * var-tracking.c (struct location_chain): Rename from
8054 location_chain_def.
8055 (struct variable_part): Adjust.
8056 (variable_htab_free): Likewise.
8057 (unshare_variable): Likewise.
8058 (get_init_value): Likewise.
8059 (get_addr_from_local_cache): Likewise.
8060 (drop_overlapping_mem_locs): Likewise.
8061 (val_reset): Likewise.
8062 (struct variable_union_info): Likewise.
8063 (variable_union): Likewise.
8064 (find_loc_in_1pdv): Likewise.
8065 (insert_into_intersection): Likewise.
8066 (intersect_loc_chains): Likewise.
8067 (canonicalize_loc_order_check): Likewise.
8068 (canonicalize_values_mark): Likewise.
8069 (canonicalize_values_star): Likewise.
8070 (canonicalize_vars_star): Likewise.
8071 (variable_merge_over_cur): Likewise.
8072 (remove_duplicate_values): Likewise.
8073 (variable_post_merge_new_vals): Likewise.
8074 (variable_post_merge_perm_vals): Likewise.
8075 (find_mem_expr_in_1pdv): Likewise.
8076 (dataflow_set_preserve_mem_locs): Likewise.
8077 (dataflow_set_remove_mem_locs): Likewise.
8078 (variable_part_different_p): Likewise.
8079 (onepart_variable_different_p): Likewise.
8080 (find_src_set_src): Likewise.
8081 (dump_var): Likewise.
8082 (set_slot_part): Likewise.
8083 (clobber_slot_part): Likewise.
8084 (delete_slot_part): Likewise.
8085 (vt_expand_var_loc_chain): Likewise.
8086 (emit_note_insn_var_location): Likewise.
8087 (vt_finalize): Likewise.
8088
8089 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8090
8091 * dse.c (store_info_t): Remove typedef.
8092 (group_info_t): Likewise.
8093 (const_group_info_t): Likewise.
8094 (deferred_change_t): Likewise.
8095 (get_group_info): Adjust.
8096 (free_store_info): Likewise.
8097 (canon_address): Likewise.
8098 (clear_rhs_from_active_local_stores): Likewise.
8099 (record_store): Likewise.
8100 (replace_read): Likewise.
8101 (check_mem_read_rtx): Likewise.
8102 (scan_insn): Likewise.
8103 (remove_useless_values): Likewise.
8104 (dse_step1): Likewise.
8105 (dse_step2_init): Likewise.
8106 (dse_step2_nospill): Likewise.
8107 (scan_stores_nospill): Likewise.
8108 (scan_reads_nospill): Likewise.
8109 (dse_step3_exit_block_scan): Likewise.
8110 (dse_step3): Likewise.
8111 (dse_step5_nospill): Likewise.
8112 (dse_step6): Likewise.
8113
8114 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8115
8116 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
8117 (alias_set_entry): Remove typedef.
8118 (alias_set_subset_of): Adjust.
8119 (alias_sets_conflict_p): Likewise.
8120 (init_alias_set_entry): Likewise.
8121 (get_alias_set): Likewise.
8122 (new_alias_set): Likewise.
8123 (record_alias_subset): Likewise.
8124
8125 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
8126
8127 * doc/install.texi (Downloading the source): Mark up
8128 contrib/download_prerequisites properly and drop leading "./".
8129
8130 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8131
8132 * config/arc/arc.h: Remove define of STRUCT_VALUE.
8133 * config/lm32/lm32.h: Likewise.
8134 * config/mep/mep.h: Likewise.
8135 * config/visium/visium.h: Likewise.
8136 * system.h: Poison STRUCT_VALUE macro.
8137
8138 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
8139
8140 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
8141 CONSTANT_P operands.
8142
8143 2015-09-11 David S. Miller <davem@davemloft.net>
8144
8145 * config/sparc/constraints.md: Make "U" constraint a real register
8146 constraint.
8147 * config/sparc/sparc.c (TARGET_LRA_P): Define.
8148 (D_MODES, DF_MODES): Add missing cast.
8149 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8150 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8151 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8152 cost to 8.
8153 * config/sparc/sparc.h (PROMOTE_MODE): Define.
8154 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8155 provide these insn when flag_pic.
8156
8157 2015-09-11 Jeff Law <law@redhat.com>
8158
8159 PR tree-optimization/47679
8160 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
8161 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
8162 member with m_. Update inline member functions as necessary. Add
8163 toplevel comment.
8164 * tree-ssa-scopedtables.c: Update const_and_copies's member
8165 functions to use m_ prefix to access the stack.
8166
8167 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
8168
8169 * graphite-optimize-isl.c (disable_tiling): Remove.
8170 (get_schedule_for_band): Do not use disable_tiling.
8171 (get_prevector_map): Delete function.
8172 (enable_polly_vector): Remove.
8173 (get_schedule_for_band_list): Remove dead code.
8174
8175 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
8176
8177 * graphite-optimize-isl.c (get_tile_map): Refactor.
8178 (get_schedule_for_band): Same.
8179 (getScheduleForBand): Same.
8180 (get_prevector_map): Same.
8181 (get_schedule_for_band_list): Same.
8182 (get_schedule_map): Same.
8183 (get_single_map): Same.
8184 (apply_schedule_map_to_scop): Same.
8185 (optimize_isl): Same.
8186
8187 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8188
8189 PR target/63304
8190 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
8191 (movtf): Delete.
8192 * config/aarch64/iterators.md (GPF_TF_F16): New.
8193 (GPF_F16): Delete.
8194
8195 2015-09-10 Nathan Sidwell <nathan@acm.org>
8196
8197 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
8198 (nvptx_reorg): Adjust comments.
8199
8200 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
8201
8202 PR bootstrap/67363
8203 * configure.ac: Check if setenv and unsetenv are declared.
8204 * configure: Rebuild.
8205 * config.in: Rebuild.
8206 * system.h: Declare setenv and unsetenv if not declared.
8207
8208 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8209
8210 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
8211 commentary to simplify permute mask adjustment equation.
8212 (special_handling_values): Add SH_VPERM.
8213 (const_load_sequence_p): New function.
8214 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
8215 the mask loaded from the constant pool.
8216 (adjust_vperm): New function.
8217 (handle_special_swappables): Call adjust_vperm.
8218 (dump_swap_insn_table): Handle SH_VPERM.
8219
8220 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
8221
8222 * shrink-wrap.c (requires_stack_frame_p): Remove static.
8223 * shrink-wrap.h (requires_stack_frame_p): Put back.
8224
8225 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
8226
8227 * reload1.c (elimination_costs_in_insn): Locally turn
8228 -Wmaybe-uninitialized into a warning.
8229
8230 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
8231
8232 * shrink-wrap.c (requires_stack_frame_p): Make static.
8233 (prepare_shrink_wrap): Likewise.
8234 (dup_block_and_redirect): Likewise.
8235 * shrink-wrap.h: Remove declarations of those functions.
8236
8237 2015-09-10 Mark Wielaard <mjw@redhat.com>
8238
8239 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
8240
8241 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
8242
8243 PR target/67506
8244 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
8245 missing simplify_gen_subreg.
8246
8247 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8248
8249 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
8250 the vector element is bigger than 64 bit.
8251
8252 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8253
8254 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
8255 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
8256
8257 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8258
8259 * config/s390/s390.c: Add V1TImode to constant pool modes.
8260
8261 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8262
8263 PR target/67439
8264 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
8265 predicate. Set predicable_short_it attr to "no".
8266
8267 2015-09-10 Jiong Wang <jiong.wang@arm.com>
8268
8269 PR rtl-optimization/67421
8270 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
8271 left wide shift tranformation.
8272
8273 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
8274
8275 * common/config/arc/arc-common.c: Remove references to A5.
8276 * config/arc/arc-opts.h: Likewise.
8277 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
8278 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
8279 * config/arc/t-arc-newlib: Likewise.
8280
8281 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
8282
8283 * config/arc/arc.md (length): Fix attribute length for conditional
8284 executed instructions with long immediate.
8285
8286 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8287
8288 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
8289 type for second alternative.
8290
8291 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
8292
8293 * doc/invoke.texi (Downloading GCC): Mention
8294 contrib/download_prerequisites script.
8295
8296 2015-09-10 Jakub Jelinek <jakub@redhat.com>
8297
8298 PR c++/67523
8299 * gimplify.c (gimplify_omp_for): If inner stmt is not found
8300 for combined loop, assert seen_error () and return GS_ERROR.
8301
8302 PR middle-end/67521
8303 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
8304 if decl is already in outer->variables.
8305
8306 PR middle-end/67517
8307 * gimplify.c (gimplify_scan_omp_clauses): Instead of
8308 asserting that decl is not specified in octx->variables,
8309 break out of the loop if it is.
8310
8311 PR c++/67514
8312 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
8313 iterator is not explicitly determined, but is defined inside
8314 of the combined workshare region, handle it like if it has
8315 DECL_EXPR in OMP_FOR_PRE_BODY.
8316
8317 2015-09-09 Nathan Sidwell <nathan@acm.org>
8318
8319 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
8320 (*cmp<mode>): Add assembler spacing.
8321 (setcc_int<mode>, set_cc_float<mode>): Likewise.
8322 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
8323 level.
8324 (write_func_decl_from_insn): Refactor argument loops & comma emission.
8325 (nvptx_expand_call): Likewise.
8326 (nvptx_output_call_insn): Likewise.
8327 (nvptx_reorg_subreg): Add spacing.
8328
8329 2015-09-09 Marek Polacek <polacek@redhat.com>
8330
8331 PR middle-end/67512
8332 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
8333 for comparisons.
8334
8335 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
8336
8337 PR c++/53184
8338 * doc/invoke.texi ([Wsubobject-linkage]): Document.
8339
8340 2015-09-09 Tom de Vries <tom@codesourcery.com>
8341
8342 * params-list.h: Add missing copyright notice.
8343
8344 2015-09-09 Nathan Sidwell <nathan@acm.org>
8345
8346 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
8347 sel_truesi, not andsi.
8348
8349 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8350
8351 * config/arm/arm.md (*subsi3_compare0): Rename to...
8352 (subsi3_compare0): ... This.
8353 (modsi3): New define_expand.
8354 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
8355 when operand is power of 2.
8356
8357 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8358
8359 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
8360 (*neg<mode>2_compare0): Rename to...
8361 (neg<mode>2_compare0): ... This.
8362 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
8363 Move check for speed inside the if-then-elses. Reflect
8364 CSNEG sequence in MOD by power of 2 case.
8365
8366 2015-09-09 Alan Modra <amodra@gmail.com>
8367
8368 PR target/67378
8369 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
8370 reload replacement for PRE_MODIFY address reg.
8371
8372 2015-09-09 Sebastian Pop <s.pop@samsung.com>
8373
8374 PR tree-optimization/53852
8375 * config.in: Regenerate.
8376 * configure: Regenerate.
8377 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
8378 * graphite-optimize-isl.c (optimize_isl): Stop computation when
8379 PARAM_MAX_ISL_OPERATIONS is reached.
8380 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
8381 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
8382 result equal to isl_stat_ok as the status now can be isl_error_quota.
8383 (subtract_commutative_associative_deps): Same.
8384 (compute_deps): Same.
8385
8386 2015-09-08 Aditya Kumar <hiraditya@msn.com>
8387 Sebastian Pop <s.pop@samsung.com>
8388
8389 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8390 Return the parameter if it was saved in corresponding
8391 parameter_rename_map of the region.
8392 (copy_def): Copy def from sese region to the newly created region.
8393 (copy_internal_parameters): Copy all the internal parameters defined
8394 within a region to the newly created region.
8395 (graphite_regenerate_ast_isl): Copy parameters to the new region before
8396 translating isl to gimple.
8397 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
8398 the loop-nest does not have any data-references.
8399 (build_graphite_scops): Create a scop only when there is at least one
8400 loop inside it.
8401 (contains_only_close_phi_nodes): Deleted.
8402 (print_graphite_scop_statistics): Deleted
8403 (print_graphite_statistics): Deleted
8404 (limit_scops): Deleted.
8405 (build_scops): Removed call to limit_scops.
8406 * sese.c (new_sese): Construct.
8407 (free_sese): Destruct.
8408 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
8409 added.
8410 (set_rename): Pass sese region so that parameters inside the region can
8411 be added to its parameter_rename_map.
8412 (rename_uses): Pass sese region.
8413 (graphite_copy_stmts_from_block): Do not copy parameters that have been
8414 generated in the header of the scop. For each SSA_NAME in the
8415 parameter_rename_map rename its usage.
8416 (invariant_in_sese_p_rec): Return false if tree t is defined outside
8417 sese region.
8418 (scalar_evolution_in_region): If the tree t is invariant just return t.
8419 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
8420 struct sese to keep track of all the parameters which need renaming.
8421 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
8422 any data-refs.
8423 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
8424
8425 2015-09-08 Tom de Vries <tom@codesourcery.com>
8426
8427 * Makefile.in (generated_files): Add params.list.
8428 (params.list, s-params.list): Add rule.
8429 * params.h (enum compiler_param): Include params-list.h. Move define
8430 DEFPARAM, include params.def and undef DEFPARAM ...
8431 * params-list.h: ... here. New file.
8432
8433 2015-09-08 David Malcolm <dmalcolm@redhat.com>
8434
8435 * pretty-print.h (printer_fn): Fix typo in comment.
8436
8437 2015-09-07 Jeff Law <law@redhat.com>
8438
8439 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
8440
8441 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8442
8443 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
8444 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
8445 (arm_neon_fp16_hw): New.
8446
8447 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8448
8449 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
8450 UNITS_PER_WORD >= 4.
8451
8452 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8453
8454 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
8455 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
8456 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
8457 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
8458 (aarch64_float_extend_lo_v2df): Rename to...
8459 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
8460
8461 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
8462 (float_extend_lo): Add v4sf.
8463
8464 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
8465 * config/aarch64/iterators.md (VQ_HSF): New iterator.
8466 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
8467 (Vwide): New mode_attr.
8468
8469 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8470
8471 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
8472 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
8473 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
8474 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
8475 V4HF and V8HF variants to iterator.
8476
8477 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
8478
8479 * config/aarch64/iterators.md (VDQF_F16): New.
8480 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
8481
8482 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8483
8484 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
8485 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8486 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
8487 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
8488 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
8489 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8490 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
8491 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
8492 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
8493 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
8494 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
8495 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8496 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
8497 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
8498 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
8499 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
8500 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
8501 vld1q_dup_f16): New.
8502
8503 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8504
8505 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
8506 Reparameterize to...
8507 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
8508 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
8509 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
8510
8511 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
8512 v8hf variant.
8513 (float_truncate_lo_): Use BUILTIN_VDF iterator.
8514
8515 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
8516
8517 * config/aarch64/iterators.md (VDF, Vdtype): New.
8518 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
8519
8520 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8521
8522 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
8523 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
8524 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
8525 Add __builtin_aarch64_simd_hf.
8526 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
8527 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
8528 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
8529 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
8530 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
8531 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
8532 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
8533 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
8534 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
8535
8536 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
8537 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
8538 (VDC, Vdbl): Add V4HF.
8539
8540 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8541
8542 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
8543 V4HFmode and V8HFmode.
8544 (aarch64_split_simd_move): Add case for V8HFmode.
8545 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
8546 (aarch64_simd_builtin_std_type): Handle HFmode.
8547 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
8548
8549 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
8550 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
8551 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
8552
8553 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
8554 Float16x8_t.
8555
8556 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
8557 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
8558 New typedefs.
8559 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
8560 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
8561 vst1q_lane_f16): New.
8562 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
8563 (VALLDI_F16, VALL_F16): New.
8564 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
8565 Add cases for V4HF and V8HF.
8566 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
8567
8568 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8569
8570 * config/arm/arm-builtins.c (VAR11, VAR12): New.
8571 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
8572 vld4_dup): Add v4hf variant.
8573 (vget_high, vget_low): Add v8hf variant.
8574 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
8575 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
8576 v4hf and v8hf variants.
8577
8578 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
8579 (VDX): Add V4HF.
8580 (V_DOUBLE): Add case for V4HF.
8581 (VQX): Add V8HF.
8582 (V_HALF): Add case for V8HF.
8583 (VDQX): Add V4HF, V8HF.
8584 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
8585 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
8586
8587 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
8588 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
8589 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
8590 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
8591 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
8592 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
8593 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
8594 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
8595 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
8596
8597 (neon_vcreate, neon_vreinterpretv8qi<mode>,
8598 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
8599 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
8600 Change VDX to VD_RE.
8601
8602 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
8603 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
8604 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
8605
8606 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
8607 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
8608 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
8609 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
8610 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
8611 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
8612 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
8613 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
8614 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
8615
8616 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8617
8618 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
8619 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
8620 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
8621 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
8622 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8623 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
8624 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
8625 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
8626 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
8627 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
8628 New.
8629
8630 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8631
8632 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
8633
8634 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
8635
8636 * config/arm/arm-builtins.c (v8hf_UP): New.
8637 (arm_init_simd_builtin_types): Initialise Float16x8_t.
8638
8639 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
8640
8641 * config/arm/arm_neon.h (float16x8_t): New typedef.
8642
8643 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8644
8645 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
8646 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
8647 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
8648 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
8649 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8650 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
8651 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
8652 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
8653 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8654 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
8655
8656 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
8657
8658 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
8659 non-alphanumeric characters in the symbol name.
8660
8661 2015-09-07 Marek Polacek <polacek@redhat.com>
8662
8663 PR inline-asm/67448
8664 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
8665 a memory input.
8666
8667 2015-09-07 Marek Polacek <polacek@redhat.com>
8668
8669 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
8670
8671 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
8672
8673 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
8674 not warn.
8675
8676 2015-09-04 Jakub Jelinek <jakub@redhat.com>
8677
8678 PR middle-end/67452
8679 * tree-ssa-live.c: Include cfgloop.h.
8680 (remove_unused_locals): Clear loop->simduid if simduid is about
8681 to be removed from cfun->local_decls.
8682
8683 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8684
8685 PR target/65210
8686 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
8687 attribute as well.
8688
8689 2015-09-04 Tom de Vries <tom@codesourcery.com>
8690
8691 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
8692
8693 2015-09-04 Jeff Law <law@redhat.com>
8694
8695 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
8696 unnecessary constructor. It's now trivial and implemented inside...
8697 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
8698 constructor. Add comments to various methods. Remove unused
8699 private fields.
8700 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
8701 * tree-vrp.c (identify_jump_threads): Likewise.
8702 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
8703 indentation issues.
8704 (thread_across_edge): Similarly.
8705 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
8706 arguments in constructor call.
8707
8708 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
8709
8710 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
8711 temp path contains a '-'.
8712
8713 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8714 Petr Murzin <petr.murzin@intel.com>
8715 Kirill Yukhin <kirill.yukhin@intel.com>
8716
8717 * config/i386/i386-builtin-types.def
8718 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
8719 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
8720 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
8721 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
8722 * config/i386/i386.c
8723 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
8724 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8725 IX86_BUILTIN_SCATTERALTDIV16SI.
8726 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
8727 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
8728 __builtin_ia32_scatteraltdiv8si.
8729 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
8730 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8731 IX86_BUILTIN_SCATTERALTDIV16SI.
8732 (ix86_vectorize_builtin_scatter): New.
8733 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
8734 ix86_vectorize_builtin_scatter.
8735
8736 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8737 Petr Murzin <petr.murzin@intel.com>
8738 Kirill Yukhin <kirill.yukhin@intel.com>
8739
8740 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
8741 * doc/tm.texi: Regenerate.
8742 * target.def: Add scatter builtin.
8743 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
8744 for loads/stores in case of gather/scatter accordingly.
8745 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8746 STMT_VINFO_GATHER_P(S).
8747 (vect_check_gather): Rename to ...
8748 (vect_check_gather_scatter): this.
8749 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
8750 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
8751 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8752 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
8753 variable and new checkings for it accordingly.
8754 * tree-vect-stmts.c
8755 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8756 STMT_VINFO_GATHER_P(S).
8757 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8758 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
8759
8760 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8761
8762 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
8763 define_insn.
8764 (mulv16qi3): New define_expand.
8765
8766 2015-09-03 Martin Sebor <msebor@redhat.com>
8767
8768 PR c/66516
8769 * doc/extend.texi (Other Builtins): Document when the address
8770 of a built-in function can be taken.
8771
8772 2015-09-03 Richard Biener <rguenther@suse.de>
8773
8774 * dwarf2out.c (flush_limbo_die_list): Split out from ...
8775 (dwarf2out_early_finish): ... here.
8776 (dwarf2out_finish): Do not call dwarf2out_early_finish but
8777 flush_limbo_die_list. Assert we have no deferred asm names.
8778
8779 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8780
8781 * optabs.c (expand_binop): Don't create a broadcast vector with a
8782 source element wider than the inner mode.
8783
8784 2015-09-03 Richard Biener <rguenther@suse.de>
8785
8786 * varasm.c (output_constant): Use fold_convert instead of
8787 wide_int_to_tree.
8788
8789 2015-09-03 Tom de Vries <tom@codesourcery.com>
8790
8791 PR tree-optimization/65637
8792 * omp-low.c (expand_omp_for_static_chunk): Handle case that
8793 fin_bb has 2 predecessors.
8794
8795 2015-09-03 Tom de Vries <tom@codesourcery.com>
8796
8797 PR tree-optimization/65637
8798 * omp-low.c (find_phi_with_arg_on_edge): New function.
8799 (expand_omp_for_static_chunk): Fix inner loop phi.
8800
8801 2015-09-03 Tom de Vries <tom@codesourcery.com>
8802
8803 PR tree-optimization/65637
8804 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
8805 that head is NULL.
8806
8807 2015-09-03 Tom de Vries <tom@codesourcery.com>
8808
8809 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
8810
8811 2015-09-03 Tom de Vries <tom@codesourcery.com>
8812
8813 * doc/invoke.texi (parloops-chunk-size): Add item.
8814 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
8815 * tree-parloops.c: Include params.h.
8816 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
8817 param parloops-chunk-size is used.
8818
8819 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8820
8821 PR middle-end/67351
8822 * fold-const.c (fold_binary_loc) : Move
8823 Transform (x >> c) << c into x & (-1<<c) or
8824 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
8825 types using simplify and match.
8826 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
8827 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
8828
8829 2015-09-03 Richard Biener <rguenther@suse.de>
8830
8831 PR ipa/66705
8832 * tree-ssa-structalias.c (ctor_for_analysis): New function.
8833 (create_variable_info_for_1): Use ctor_for_analysis instead
8834 of get_constructor.
8835 (create_variable_info_for): Likewise.
8836
8837 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
8838
8839 PR ipa/67280
8840 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
8841 in new callgraph edge.
8842
8843 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
8844
8845 PR target/59810
8846 PR target/63652
8847 PR target/63653
8848 * config/aarch64/aarch64-simd.md
8849 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
8850 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
8851 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
8852 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
8853
8854 2015-09-02 Alan Modra <amodra@gmail.com>
8855
8856 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
8857 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
8858 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
8859
8860 2015-09-02 Alan Modra <amodra@gmail.com>
8861
8862 PR target/67417
8863 * config/rs6000/predicates.md (current_file_function_operand): Don't
8864 return true for weak symbols.
8865 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
8866
8867 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
8868 Andrew Bennett <andrew.bennett@imgtec.com>
8869
8870 * config/mips/mips-opts.h (mips_cb_setting): New enum.
8871 * config/mips/mips-protos.h: Add definitions for
8872 mips_output_jump and mips_output_equal_conditional_branch
8873 * config/mips/mips.c (MIPS_JR): Change to support the
8874 JIC instruction.
8875 (mips_emit_compare): Add support for the MIPS R6 conditional
8876 compact branches.
8877 (mips_process_sync_loop): Likewise.
8878 (mips_output_order_conditional_branch): Likewise.
8879 (mips16_build_call_stub): Change MIPS_CALL to
8880 mips_output_jump.
8881 (mips_print_operand_punctuation): Update 's' case to only
8882 apply to micromips r2.
8883 (mips_adjust_insn_length): Add support for forbidden slot
8884 hazards.
8885 (mips_avoid_hazard): Likewise.
8886 (mips_reorg_process_insns): Likewise.
8887 (mips_output_jump): New function.
8888 (mips_output_equal_conditional_branch): Likewise.
8889 (mips_output_conditional_branch): Use jrc/bc if compact
8890 branch support is enabled. Ensure the forbidden slots
8891 between the two branch instructions is filled with a nop.
8892 (mips_option_override): Add support to process the compact
8893 branch option and set the correct defaults. Prevent
8894 non-explict relocs being using for MIPS R6.
8895 (mips_trampoline_init): Add compact branch support.
8896 (mips_mult_zero_zero_cost): Allow zero initialisation of
8897 accumulators with TARGET_DSP.
8898 * config/mips/mips.h (TARGET_CB_NEVER): New define.
8899 (TARGET_CB_MAYBE): New define.
8900 (TARGET_CB_ALWAYS): New define.
8901 (ISA_HAS_DELAY_SLOTS): New define.
8902 (ISA_HAS_COMPACT_BRANCHES): New define.
8903 (ISA_HAS_JRC): New define.
8904 (MIPS_BRANCH_C): New define.
8905 (MIPS_CALL): Removed.
8906 (MICROMIPS_J): Removed.
8907 * config/mips/mips.md (compact_form): New attr.
8908 (hazard): Add support for forbidden slots.
8909 (define_delay): Add support for compact branches.
8910 (*branch_order<mode>): Likewise.
8911 (*branch_order<mode>_inverted): Likewise.
8912 (*branch_equality<mode>): Likewise.
8913 (*branch_equality<mode>_inverted): Likewise.
8914 (*jump_absolute): Likewise.
8915 (*jump_pic): Likewise.
8916 (indirect_jump): Use mips_output_jump to produce assembly output.
8917 (tablejump_<mode>"): Likewise.
8918 (*<optab>"): Likewise.
8919 (<optab>_internal): Likewise.
8920 (sibcall_internal): Likewise.
8921 (sibcall_value_internal): Likewise.
8922 (sibcall_value_multiple_internal): Likewise.
8923 (call_internal): Likewise.
8924 (call_split): Likewise.
8925 (call_internal_direct): Likewise.
8926 (call_direct_split): Likewise.
8927 (call_value_internal): Likewise.
8928 (call_value_split): Likewise.
8929 (call_value_internal_direct): Likewise.
8930 (call_value_direct_split): Likewise.
8931 (call_value_multiple_internal): Likewise.
8932 (call_value_multiple_split): Likewise.
8933 (mips_get_fcsr_mips16_<mode>): Likewise.
8934 (mips_set_fcsr_mips16_<mode>): Likewise.
8935 (tls_get_tp_mips16_<mode>): Likewise.
8936 * config/mips/mips.opt: Add -mcompact-branches option.
8937 * config/mips/predicates.md (order_operator): Ensure the
8938 conditional compact branches are only used if the ISA them.
8939 * doc/invoke.texi: Document -mcompact-branches option.
8940
8941 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
8942
8943 PR target/61578
8944 * lra-lives.c (process_bb_lives): Process move pseudos with the
8945 same value for copies and preferences
8946 * lra-constraints.c (match_reload): Create match reload pseudo
8947 with the same value from single dying input pseudo.
8948
8949 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
8950
8951 PR target/67405
8952 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
8953
8954 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
8955
8956 * trans-mem.c: Add contributed-by.
8957 * trans-mem.h: Same.
8958
8959 2015-09-01 Richard Biener <rguenther@suse.de>
8960
8961 * expr.c (expand_expr_real_1): For expanding TERed defs
8962 set the current location to that of the def if not UNKNOWN.
8963
8964 2015-09-01 David Sherwood <david.sherwood@arm.com>
8965
8966 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
8967
8968 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8969
8970 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
8971 then_cost, else_cost fields. Change branch_cost field to unsigned int.
8972 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
8973 Include rtl-iter.h.
8974 (noce_simple_bbs): New function.
8975 (noce_try_move): Bail if basic blocks are not simple.
8976 (noce_try_store_flag): Likewise.
8977 (noce_try_store_flag_constants): Likewise.
8978 (noce_try_addcc): Likewise.
8979 (noce_try_store_flag_mask): Likewise.
8980 (noce_try_cmove): Likewise.
8981 (noce_try_minmax): Likewise.
8982 (noce_try_abs): Likewise.
8983 (noce_try_sign_mask): Likewise.
8984 (noce_try_bitop): Likewise.
8985 (bbs_ok_for_cmove_arith): New function.
8986 (noce_emit_all_but_last): Likewise.
8987 (noce_emit_insn): Likewise.
8988 (noce_emit_bb): Likewise.
8989 (noce_try_cmove_arith): Handle non-simple basic blocks.
8990 (insn_valid_noce_process_p): New function.
8991 (contains_mem_rtx_p): Likewise.
8992 (bb_valid_for_noce_process_p): Likewise.
8993 (noce_process_if_block): Allow non-simple basic blocks
8994 where appropriate.
8995
8996 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
8997
8998 * tree-ssa-dom.c (record_equivalences_from_phis,
8999 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
9000 (lookup_avail_expr): Likewise, and remove comment and unused temp.
9001
9002 2015-09-01 Nick Clifton <nickc@redhat.com>
9003
9004 * config/msp430/msp430.opt (mcpu): Fix typo.
9005
9006 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9007
9008 * config/aarch64/aarch64.c (aarch64_set_current_function):
9009 Re-layout any vector parameters have non-simd layout.
9010 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
9011 Delete.
9012 (aarch64_simd_expand_args): Delete call to the above.
9013
9014 2015-08-31 Mike Frysinger <vapier@gentoo.org>
9015
9016 * doc/invoke.texi (asan-stack): Add space before option.
9017
9018 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
9019
9020 * tree.h (zerop): New function.
9021 * tree.c (zerop): Likewise.
9022 (element_precision): Handle expressions.
9023 * match.pd (define_predicates): Add zerop.
9024 (x <= +Inf): Fix comment.
9025 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
9026 * fold-const.c (fold_binary_loc): ... here. Remove.
9027
9028 2015-08-31 Richard Biener <rguenther@suse.de>
9029
9030 PR middle-end/67381
9031 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
9032
9033 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
9034
9035 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
9036 (CEXPI): New operator list.
9037 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
9038 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
9039 Converted from ...
9040 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
9041
9042 2015-08-31 Tom de Vries <tom@codesourcery.com>
9043
9044 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
9045 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
9046 parameter.
9047 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
9048 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
9049 (rewrite_into_loop_closed_ssa): ... here.
9050 (replace_uses_in_dominated_bbs): Remove function.
9051 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
9052 rewrite_into_loop_closed_ssa_1.
9053
9054 2015-08-31 Michael Matz <matz@suse.de>
9055
9056 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
9057 enter entry and exit blocks for reverse post order.
9058
9059 2015-08-31 Richard Biener <rguenther@suse.de>
9060
9061 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
9062 (lto_location_cache::current_sysp): Likewise.
9063 (output_block::current_sysp): Likewise.
9064 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
9065 (lto_location_cache::apply_location_cache): Properly record
9066 system header locations.
9067 (lto_location_cache::input_location): Input whether a file
9068 is a system header.
9069 * lto-streamer-out.c (lto_output_location): Stream whether a file
9070 is a system header.
9071
9072 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9073
9074 PR bootstrap/67363
9075 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
9076
9077 2015-08-31 Tom de Vries <tom@codesourcery.com>
9078
9079 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
9080 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
9081 Improve function header comments.
9082
9083 2015-08-30 Michael Collison <michael.collison@linaro.org>
9084
9085 PR other/67320
9086 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
9087 standard names
9088
9089 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9090
9091 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
9092 special_handling bitfield.
9093 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
9094 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
9095 that represents a general xxpermdi.
9096 (insn_is_swappable_p): Add handling for vec_concat of two
9097 doublewords, which maps to a specific xxpermdi.
9098 (adjust_xxpermdi): New function.
9099 (adjust_concat): Likewise.
9100 (handle_special_swappables): Call adjust_xxpermdi and
9101 adjust_concat.
9102 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
9103
9104 2015-08-30 Rich Felker <dalias@libc.org>
9105
9106 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
9107 case instead of sh[123456ble]-*-*.
9108
9109 2015-08-29 Anatoly Sokolov <aesok@post.ru>
9110
9111 * ira.c (print_unform_and_important_classes,
9112 print_translated_classes): Remove reg_class_names static array.
9113 (print_unform_and_important_classes): Rename to ...
9114 (print_uniform_and_important_classes): ... this.
9115 (ira_debug_allocno_classes): Update accordingly.
9116
9117 2015-08-29 Tom de Vries <tom@codesourcery.com>
9118
9119 PR tree-optimization/46193
9120 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
9121 clause.
9122
9123 2015-08-28 Jeff Law <law@redhat.com>
9124
9125 PR lto/66752
9126 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9127 unable to find X NE 0 in the tables, return X as the simplified
9128 condition.
9129 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9130 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
9131 to VISISTED_BBS.
9132 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9133 after removing the control flow statement and unnecessary edges.
9134
9135 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
9136
9137 Revert:
9138 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9139
9140 PR tree-optimization/67283
9141 * tree-sra.c (type_consists_of_records_p): Rename to...
9142 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9143
9144 (completely_scalarize_record): Rename to...
9145 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
9146 code to:
9147 (scalarize_elem): New.
9148
9149 2015-08-28 Jiong Wang <jiong.wang@arm.com>
9150
9151 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
9152 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
9153 (aarch64_symbol_type): Likewise.
9154 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9155 Likewise.
9156 (aarch64_expand_mov_immediate): Likewise.
9157 (aarch64_print_operand): Likewise.
9158 (aarch64_classify_tls_symbol): Likewise.
9159
9160 2015-08-28 Richard Biener <rguenther@suse.de>
9161
9162 * cgraphunit.c (symbol_table::compile): Move early debug generation
9163 and finish...
9164 (symbol_table::finalize_compilation_unit): ... back here and
9165 add a !seen_error () guard.
9166
9167 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9168
9169 * toplev.c (process_options): Do not use flag_loop_block,
9170 flag_loop_interchange, and flag_loop_strip_mine. Add check for
9171 flag_loop_optimize_isl.
9172
9173 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9174
9175 * Makefile.in (OBJS): Remove graphite-blocking.o and
9176 graphite-interchange.o.
9177 * common.opt (floop-strip-mine, floop-interchange, floop-block):
9178 Alias of floop-nest-optimize.
9179 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
9180 Document as alias of -floop-nest-optimize.
9181 * graphite-blocking.c: Remove.
9182 * graphite-interchange.c: Remove.
9183 * graphite-optimize-isl.c: Include dumpfile.h.
9184 (getScheduleForBand): Add dump for tiled loops. Use
9185 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
9186 * graphite-poly.c (scop_max_loop_depth): Remove.
9187 (print_scattering_function_1): Remove.
9188 (print_scattering_function): Remove.
9189 (print_scattering_functions): Remove.
9190 (debug_scattering_function): Remove.
9191 (debug_scattering_functions): Remove.
9192 (apply_poly_transforms): Remove use of flag_loop_block,
9193 flag_loop_strip_mine, and flag_loop_interchange.
9194 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
9195 PBB_ORIGINAL.
9196 (print_pdr_access_layout): Remove.
9197 (print_pdr): Print ISL representation.
9198 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
9199 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
9200 (free_scop): Same.
9201 (openscop_print_pbb_domain): Remove.
9202 (print_pbb): Remove call to print_scattering_function.
9203 (openscop_print_scop_context): Remove.
9204 (print_scop_context): Do not print matrices anymore.
9205 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
9206 SCOP_TRANSFORMED_SCHEDULE.
9207 (print_isl_set): Add printing of a new line.
9208 (print_isl_map): Same.
9209 (print_isl_aff): Same.
9210 (print_isl_constraint): Same.
9211 (loop_to_lst): Remove.
9212 (scop_to_lst): Remove.
9213 (lst_indent_to): Remove.
9214 (print_lst): Remove.
9215 (debug_lst): Remove.
9216 (dot_lst_1): Remove.
9217 (dot_lst): Remove.
9218 (reverse_loop_at_level): Remove.
9219 (reverse_loop_for_pbbs): Remove.
9220 * graphite-poly.h (pdr_dim_iter_domain): Remove.
9221 (pdr_nb_params): Remove.
9222 (pdr_alias_set_dim): Remove.
9223 (pdr_subscript_dim): Remove.
9224 (pdr_iterator_dim): Remove.
9225 (pdr_parameter_dim): Remove.
9226 (same_pdr_p): Remove.
9227 (struct poly_scattering): Remove.
9228 (struct poly_bb): Remove _original, _transformed, _saved.
9229 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
9230 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
9231 (PBB_NB_LOCAL_VARIABLES): Remove.
9232 (PBB_NB_SCATTERING_TRANSFORM): Remove.
9233 (schedule_to_scattering): Remove.
9234 (number_of_write_pdrs): Remove.
9235 (pbb_dim_iter_domain): Remove.
9236 (pbb_nb_params): Remove.
9237 (pbb_nb_scattering_orig): Remove.
9238 (pbb_nb_scattering_transform): Remove.
9239 (pbb_nb_dynamic_scattering_transform): Remove.
9240 (pbb_nb_local_vars): Remove.
9241 (pbb_iterator_dim): Remove.
9242 (pbb_parameter_dim): Remove.
9243 (psco_scattering_dim): Remove.
9244 (psct_scattering_dim): Remove.
9245 (psct_local_var_dim): Remove.
9246 (psco_iterator_dim): Remove.
9247 (psct_iterator_dim): Remove.
9248 (psco_parameter_dim): Remove.
9249 (psct_parameter_dim): Remove.
9250 (psct_dynamic_dim): Remove.
9251 (psct_static_dim): Remove.
9252 (psct_add_local_variable): Remove.
9253 (new_lst_loop): Remove.
9254 (new_lst_stmt): Remove.
9255 (free_lst): Remove.
9256 (copy_lst): Remove.
9257 (lst_add_loop_under_loop): Remove.
9258 (lst_depth): Remove.
9259 (lst_dewey_number): Remove.
9260 (lst_dewey_number_at_depth): Remove.
9261 (lst_pred): Remove.
9262 (lst_succ): Remove.
9263 (lst_find_pbb): Remove.
9264 (find_lst_loop): Remove.
9265 (lst_find_first_pbb): Remove.
9266 (lst_empty_p): Remove.
9267 (lst_find_last_pbb): Remove.
9268 (lst_contains_p): Remove.
9269 (lst_contains_pbb): Remove.
9270 (lst_create_nest): Remove.
9271 (lst_remove_from_sequence): Remove.
9272 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
9273 (lst_niter_for_loop): Remove.
9274 (pbb_update_scattering): Remove.
9275 (lst_update_scattering_under): Remove.
9276 (lst_update_scattering): Remove.
9277 (lst_insert_in_sequence): Remove.
9278 (lst_replace): Remove.
9279 (lst_substitute_3): Remove.
9280 (lst_distribute_lst): Remove.
9281 (lst_remove_all_before_including_pbb): Remove.
9282 (lst_remove_all_before_excluding_pbb): Remove.
9283 (struct scop): Remove original_schedule, transformed_schedule, and
9284 saved_schedule.
9285 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
9286 (SCOP_SAVED_SCHEDULE): Remove.
9287 (poly_scattering_new): Remove.
9288 (poly_scattering_free): Remove.
9289 (poly_scattering_copy): Remove.
9290 (store_scattering_pbb): Remove.
9291 (store_lst_schedule): Remove.
9292 (restore_lst_schedule): Remove.
9293 (store_scattering): Remove.
9294 (restore_scattering_pbb): Remove.
9295 (restore_scattering): Remove.
9296 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9297 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
9298 compute the scattering polyhedron dimension from the dimension of
9299 pbb->domain.
9300 (build_scop_scattering): Update call to
9301 build_pbb_scattering_polyhedrons.
9302 (build_poly_scop): Remove call to scop_to_lst.
9303 * graphite.c (graphite_transform_loops): Add call to print_scop.
9304 (gate_graphite_transforms): Remove use of flag_loop_block,
9305 flag_loop_interchange, and flag_loop_strip_mine.
9306
9307 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9308
9309 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
9310 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
9311 -floop-nest-optimize.
9312 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
9313 (generate_luj_sepclass): Remove.
9314 (generate_luj_options): Remove.
9315 (set_options): Remove opt_luj.
9316 (scop_to_isl_ast): Remove opt_luj.
9317 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
9318 flag_loop_unroll_jam.
9319 (getPrevectorMap_full): Remove.
9320 (getScheduleForBandList): Remove map_sepcl.
9321 (getScheduleMap): Same.
9322 (apply_schedule_map_to_scop): Remove sepcl.
9323 (optimize_isl): Same.
9324 * graphite-poly.c (apply_poly_transforms): Remove check for
9325 flag_loop_unroll_jam.
9326 (new_poly_bb): Remove map_sepclass.
9327 * graphite-poly.h (struct poly_bb): Same.
9328 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
9329 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
9330 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
9331 * toplev.c (process_options): Remove flag_loop_unroll_jam.
9332
9333 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
9334
9335 PR target/67317
9336 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
9337 (addqi3_cc): Ditto.
9338 (UNSPEC_ADD_CARRY): Remove.
9339 (addqi3_cconly_overflow): New expander.
9340 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
9341 Adjust for changed add<mode>3_carry.
9342 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
9343 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
9344 (<plusminus_insn><mode>3_carry): Remove expander.
9345 (*<plusminus_insn><mode>3_carry): Split insn pattern to
9346 add<mode>3_carry and sub<mode>3_carry.
9347 (plusminus_carry_mnemonic): Remove code attribute.
9348 (add<mode>3_carry): Canonicalize insn pattern.
9349 (*addsi3_carry_zext): Ditto.
9350 (sub<mode>3_carry): Ditto.
9351 (*subsi3_carry_zext): Ditto.
9352 (adcx<mode>3): Remove insn pattern.
9353 (addcarry<mode>): New insn pattern.
9354 (subborrow<mode>): Ditto.
9355 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
9356 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
9357 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
9358 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
9359 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
9360 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
9361 Rewrite expander to not clobber carry flag chains.
9362
9363 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
9364
9365 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
9366 instead of a rotate.
9367
9368 2015-08-27 Marek Polacek <polacek@redhat.com>
9369
9370 PR middle-end/67005
9371 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
9372 an entry into an irreducible region.
9373
9374 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9375
9376 * configure: Regenerate.
9377
9378 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9379
9380 PR tree-optimization/67283
9381 * tree-sra.c (type_consists_of_records_p): Rename to...
9382 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9383
9384 (completely_scalarize_record): Rename to...
9385 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9386 (scalarize_elem): New.
9387
9388 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9389
9390 * tree-sra.c (completely_scalarize_var): Rename to...
9391 (create_total_scalarization_access): ... Here. Drop call to
9392 completely_scalarize_record.
9393
9394 (analyze_all_variable_accesses): Replace completely_scalarize_var
9395 with create_total_scalarization_access and completely_scalarize_record.
9396
9397 2015-08-27 Alan Modra <amodra@gmail.com>
9398
9399 PR target/67356
9400 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
9401 for operand 1.
9402
9403 2015-08-27 Richard Biener <rguenther@suse.de>
9404
9405 * passes.c (rest_of_decl_compilation): Guard early_global_decl
9406 call with !seen_error ().
9407 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
9408 early debug generation and finish...
9409 (symbol_table::compile): ... here to put it after a !seen_error ()
9410 guard.
9411
9412 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9413
9414 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
9415 Solaris 12+.
9416
9417 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9418 Andre Vieira <andre.simoesdiasvieira@arm.com>
9419
9420 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
9421 (*cb<optab><mode>1): Likewise.
9422 (*tb<optab><mode>1): Likewise.
9423 (*cb<optab><mode>1): Likewise.
9424 * config/aarch64/iterators.md (inv_cb): New code attribute.
9425 (inv_tb): Likewise.
9426 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
9427 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
9428
9429 2015-08-27 Richard Biener <rguenther@suse.de>
9430
9431 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
9432
9433 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
9434
9435 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
9436 trap to fix ICE.
9437
9438 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9439
9440 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
9441 Add declaration.
9442
9443 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
9444 comment.
9445 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
9446 floating point in VSX registers.
9447 (rs6000_output_move_128bit): Always print out the set insn if we
9448 can't generate an appropriate 128-bit move.
9449 (rs6000_generate_compare): Add support for IEEE 128-bit floating
9450 point in VSX registers comparisons.
9451 (rs6000_expand_float128_convert): Likewise.
9452
9453 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
9454 predicate for only GPR hard registers.
9455
9456 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
9457 modes to iterators. Add new iterators for moving 128-bit values in
9458 scalar FPR registers and VSX registers.
9459 (FMOVE128): Likewise.
9460 (FMOVE128_FPR): Likewise.
9461 (FMOVE128_GPR): Likewise.
9462 (FMOVE128_VSX): Likewise.
9463 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
9464 in VSX registers.
9465 (IFKF): Likewise.
9466 (IBM128): Likewise.
9467 (TFIFKF): Likewise.
9468 (RELOAD): Add IEEE 128-bit floating point modes.
9469 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
9470 floating point in VSX registers modes.
9471 (signbit<mode>2, IBM128 iterator): Likewise.
9472 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
9473 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
9474 (negtf2): Likewise.
9475 (neg<mode>2, TFIFKF iterator): Likewise.
9476 (negtf2_internal): Likewise.
9477 (abstf2): Likewise.
9478 (abs<mode>2, TFIFKF iterator): Likewise.
9479 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
9480 VSX insn support for negate, absolute value, and negative absolute
9481 value.
9482 (ieee_128bit_vsx_neg<mode>2): Likewise.
9483 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9484 (ieee_128bit_vsx_abs<mode>2): Likewise.
9485 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9486 (ieee_128bit_vsx_nabs<mode>2): Likewise.
9487 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9488 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
9489 floating point in VSX registers.
9490 (unpack<mode>_dm): Likewise.
9491 (unpack<mode>_nodm): Likewise.
9492 (pack<mode>): Likewise.
9493 (unpackv1ti): Likewise.
9494 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
9495 (packv1ti): Likewise.
9496 (pack<mode>, FMOVE128_VSX iterator): Likewise.
9497 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
9498 registers.
9499 (extenddftf2_internal): Likewise.
9500 (trunctfdf2): Likewise.
9501 (trunctfdf2_internal2): Likewise.
9502 (fix_trunc_helper): Likewise.
9503 (fix_trunctfdi2"): Likewise.
9504 (floatditf2): Likewise.
9505 (floatuns<mode>tf2): Likewise.
9506 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9507 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9508 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9509 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9510 (float<SDI:mode><IFKF:mode>2): Likewise.
9511 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9512
9513 2015-08-26 Renlin Li <renlin.li@arm.com>
9514
9515 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
9516
9517 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
9518 Jiong Wang <jiong.wang@arm.com>
9519
9520 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
9521 (tlsie_tiny_<mode>): New define_insn.
9522 (tlsie_tiny_sidi): Likewise.
9523 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
9524 SYMBOL_TINY_TLSIE.
9525 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
9526 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
9527 SYMBOL_TINY_TLSIE.
9528 (aarch64_expand_mov_immediate): Likewise.
9529 (aarch64_print_operand): Likewise.
9530 (arch64_classify_tls_symbol): Likewise.
9531
9532 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9533
9534 * config/arm/arm-arches.def: Replace single value flags with
9535 an initializer built from ARM_FSET_MAKE_CPU1.
9536 * config/arm/arm-cores.def: Likewise.
9537 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
9538 derivation from the ARM_CORE macro definition, use the given value
9539 instead.
9540 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
9541 ARM_ARCH macro definition, use the given value instead.
9542
9543 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9544
9545 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
9546 feature set.
9547 (struct builtin_description): Replace field mask with field
9548 features.
9549 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
9550 (IWMMXT2_BUILTIN): Likewise.
9551 (IWMMXT2_BUILTIN2): Likewise.
9552 (FP_BUILTIN): Likewise.
9553 (CRC32_BUILTIN): Likewise.
9554 (CRYPTO_BUILTIN): Likewise.
9555 (iwmmx_mbuiltin): Likewise.
9556 (iwmmx2_mbuiltin): Likewise.
9557 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
9558 struct builtin_description.
9559
9560 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9561
9562 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
9563 (struct builtin_description): Change type of mask to unsigned
9564 long.
9565 * config/arm/arm-protos.h (insn_flags): Declare as type
9566 arm_feature_set.
9567 (tune_flags): Likewise.
9568 * config/arm/arm.c (feature_count): New.
9569 (insn_flags): Define as type arm_feature_set.
9570 (tune_flags): Likewise.
9571 (struct processors): Define field flags as type arm_feature_set.
9572 (all_cores): Update for change to struct processors.
9573 (all_architectures): Likewise.
9574 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
9575 macros.
9576 (arm_option_override_internal): Likewise.
9577 (arm_option_override): Likewise.
9578
9579 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
9580 Jiong Wang <jiong.wang@arm.com>
9581
9582 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
9583 tls size for tiny, small, large memory model.
9584 (aarch64_load_symref_appropriately): Support new symbol types.
9585 (aarch64_expand_mov_immediate): Likewise.
9586 (aarch64_print_operand): Likewise.
9587 (aarch64_classify_tls_symbol): Likewise.
9588 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
9589 (aarch64_symbol_type): Likewise.
9590 * config/aarch64/aarch64.md (tlsle): Deleted.
9591 (tlsle12_<mode>): New define_insn.
9592 (tlsle24_<mode>): Likewise.
9593 (tlsle32_<mode>): Likewise.
9594 (tlsle48_<mode>): Likewise.
9595 * doc/sourcebuild.texi (AArch64-specific attributes): Document
9596 "aarch64_tlsle32".
9597
9598 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9599
9600 * config/arm/arm-protos.h (FL_NONE): New.
9601 (FL_ANY): New.
9602 (arm_feature_set): New.
9603 (ARM_FSET_MAKE): New.
9604 (ARM_FSET_MAKE_CPU1): New.
9605 (ARM_FSET_MAKE_CPU2): New.
9606 (ARM_FSET_CPU1): New.
9607 (ARM_FSET_CPU2): New.
9608 (ARM_FSET_EMPTY): New.
9609 (ARM_FSET_ANY): New.
9610 (ARM_FSET_HAS_CPU1): New.
9611 (ARM_FSET_HAS_CPU2): New.
9612 (ARM_FSET_HAS_CPU): New.
9613 (ARM_FSET_ADD_CPU1): New.
9614 (ARM_FSET_ADD_CPU2): New.
9615 (ARM_FSET_DEL_CPU1): New.
9616 (ARM_FSET_DEL_CPU2): New.
9617 (ARM_FSET_UNION): New.
9618 (ARM_FSET_INTER): New.
9619 (ARM_FSET_XOR): New.
9620 (ARM_FSET_EXCLUDE): New.
9621 (AFM_FSET_IS_EMPTY): New.
9622 (ARM_FSET_CPU_SUBSET): New.
9623
9624 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9625
9626 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
9627 SYMBOL_TLSLE to SYMBOL_TLSLE24.
9628 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9629 Likewise.
9630 (aarch64_expand_mov_immediate): Likewise.
9631 (aarch64_print_operand): Likewise.
9632 (aarch64_classify_symbol): Likewise.
9633
9634 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9635
9636 * config/aarch64/aarch64.opt (mtls-size): New entry.
9637 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
9638 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
9639 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
9640
9641 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9642
9643 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
9644 ARM_CORE entry. Fix some white-space.
9645 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
9646 ARM_CORE definition.
9647
9648 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9649
9650 * fold-const.c (fold_binary_loc) : Move Optimize
9651 root(x)*root(y) as root(x*y) to match.pd.
9652 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
9653 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
9654 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
9655 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
9656 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
9657 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
9658 (mult (exps:s @0) (exps:s @1)) : New simplifier.
9659 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
9660 (rdiv @0 (exps:s @1)) : New simplifier.
9661
9662 2015-08-25 Joseph Myers <joseph@codesourcery.com>
9663
9664 * gcc.c (driver::finalize): Only assign to extra_specs if
9665 [EXTRA_SPECS].
9666
9667 2015-08-25 Marek Polacek <polacek@redhat.com>
9668
9669 PR middle-end/67330
9670 * varasm.c (declare_weak): Return after giving an error.
9671
9672 2015-08-25 David Malcolm <dmalcolm@redhat.com>
9673
9674 * gcc-main.c (main): Add params to driver ctor.
9675 * gcc.c (class env_manager): New.
9676 (env): New global.
9677 (env_manager::init): New.
9678 (env_manager::get): New.
9679 (env_manager::xput): New.
9680 (env_manager::restore): New.
9681 Poison getenv and putenv.
9682 (DEFAULT_TARGET_SYSTEM_ROOT): New.
9683 (target_system_root): Update initialization to use
9684 DEFAULT_TARGET_SYSTEM_ROOT.
9685 (struct spec_list): Add field "default_ptr".
9686 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
9687 (init_spec): Likewise.
9688 (set_spec): Clear field "default_ptr".
9689 (read_specs): Free "spec" and "buffer".
9690 (xputenv): Reimplement in terms of env_manager.
9691 (process_command): Replace ::getenv calls with calls to the
9692 env_manager singleton.
9693 (process_brace_body): Free string in three places.
9694 (driver::driver): New.
9695 (driver::~driver): New.
9696 (used_arg): Convert from a function to...
9697 (class used_arg_t): ...this class, and...
9698 (used_arg): ...this new global instance.
9699 (used_arg_t::finalize): New function.
9700 (getenv_spec_function): Add "const" to local "value". Replace
9701 ::getenv call with call to the env_manager singleton.
9702 (path_prefix_reset): New function.
9703 (driver::finalize): New function.
9704 * gcc.h (driver::driver): New.
9705 (driver::~driver): New.
9706 (driver::finalize): New.
9707
9708 2015-08-25 Nathan Sidwell <nathan@acm.org>
9709
9710 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
9711 target doesn't have one.
9712
9713 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9714
9715 PR target/67346
9716 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
9717
9718 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9719
9720 PR target/67344
9721 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
9722 a define_insn, remove second alternative.
9723
9724 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
9725 Joseph Myers <joseph@codesourcery.com>
9726
9727 * gcc.c (struct switchstr): Expand comment.
9728
9729 2015-08-25 Nathan Sidwell <nathan@acm.org>
9730
9731 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
9732 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
9733
9734 2015-08-25 Richard Biener <rguenther@suse.de>
9735
9736 PR middle-end/67306
9737 * genmatch.c (expr::gen_transform): Verify the result of
9738 builtin_decl_implicit.
9739 (dt_simplify::gen_1): Likewise.
9740
9741 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
9742
9743 * config/arm/constraints.md: Also list Cs and US ARM-specific
9744 constraints as used.
9745
9746 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
9747
9748 PR target/66609
9749 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
9750 UNSPEC_PCREL.
9751 (nonpic_symbol_mentioned_p): Likewise.
9752 (sh_delegitimize_address): Likewise.
9753 (sh_function_ok_for_sibcall): Take into account weak symbols.
9754 (sh_expand_sym_label2reg): New.
9755 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
9756 * config/sh/sh.md (UNSPEC_PCREL): New enum.
9757 (call_pcrel): Use sh_expand_sym_label2reg.
9758 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9759 (symPCREL_label2reg) New expand.
9760
9761 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9762
9763 * graphite-poly.c: Change type of region from void* to sese.
9764 * graphite-poly.h (struct scop): Changing the type of scop::region
9765 from void* to sese. Change accessor macro accordingly.
9766 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
9767
9768 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9769
9770 * graphite-scop-detection.c (stmt_simple_for_scop_p):
9771 Constrain only on INTEGER_TYPE.
9772
9773 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9774
9775 PR target/67211
9776 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
9777 -mefficient-unaligned-vsx on ISA 2.7.
9778
9779 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
9780 option to a masked option.
9781
9782 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
9783 logic for -mefficient-unaligned-vsx so that it is set via an arch
9784 ISA option, instead of being set if -mtune=power8 is set. Move
9785 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
9786 near other default option handling.
9787
9788 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9789
9790 * genflags.c (gen_macro): Delete.
9791 (gen_proto): Don't create GEN.*CALL.* macros.
9792 * gensupport.h (get_file_location): Declare.
9793 * gensupport.c (rtx_locs): New variable.
9794 (read_md_rtx): Record rtx locations.
9795 (get_file_location): New function.
9796 * target-insns.def (call, call_pop, call_value, call_value_pop)
9797 (sibcall, sibcall_value): New patterns.
9798 * gentarget-def.c (parse_argument): New function.
9799 (def_target_insn): Use it. Handle optional operands. Raise an
9800 error if an .md pattern has the wrong number of operands for the
9801 pattern name. Remove the names of unused operands from the prototype.
9802 * builtins.c (expand_builtin_apply): Use targetm functions
9803 instead of HAVE_call_value and GEN_CALL_VALUE.
9804 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
9805 and sibcall_value_pop.
9806 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
9807 of GEN_CALL.
9808 * config/alpha/alpha.md (untyped_call): Likewise.
9809 * config/iq2000/iq2000.md (untyped_call): Likewise.
9810 * config/m68k/m68k.md (untyped_call): Likewise.
9811 * config/mips/mips.md (untyped_call): Likewise.
9812 * config/pa/pa.md (untyped_call): Likewise.
9813 * config/rs6000/rs6000.md (untyped_call): Likewise.
9814 * config/sparc/sparc.md (untyped_call): Likewise.
9815 * config/tilegx/tilegx.md (untyped_call): Likewise.
9816 * config/tilepro/tilepro.md (untyped_call): Likewise.
9817 * config/visium/visium.md (untyped_call): Likewise.
9818 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
9819 gen_call_value instead of GEN_CALL_VALUE.
9820 * config/arm/arm.md (untyped_call): Likewise.
9821 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
9822 GEN_CALL.
9823
9824 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9825
9826 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
9827 (have_cbranchcc4): New variable.
9828 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
9829 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
9830 (if_convert): Initialize have_cbranchcc4.
9831
9832 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9833
9834 * builtins.c (expand_cmpstrn): Rename to...
9835 (expand_cmpstrn_or_cmpmem): ...this.
9836 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
9837 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
9838 Remove mode argument.
9839 (expand_builtin): Update accordingly.
9840
9841 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9842
9843 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
9844 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
9845 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
9846 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
9847 Add predicates for operands 0 and 3.
9848 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
9849 operand.
9850 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
9851 immediate_operand to nonmemory_operand.
9852
9853 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9854
9855 * df-scan.c (df_insn_info_init_fields): New function, split out
9856 from...
9857 (df_insn_create_insn_record): ...here.
9858 (df_insn_info_free_fields): New function, split out from...
9859 (df_insn_info_delete): ...here.
9860 (df_insn_rescan): Use the new functions instead of freeing and
9861 reallocating the df_insn_info.
9862
9863 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9864
9865 * doc/install.texi (Binaries): Remove links no longer valid.
9866
9867 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
9868
9869 * config/nvptx/mkoffload.c (process): Replace
9870 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
9871
9872 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
9873
9874 PR target/67329
9875 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
9876
9877 2015-08-24 Renlin Li <renlin.li@arm.com>
9878
9879 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
9880 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
9881 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
9882 * config/arm/constraints.md ("j"): Add check for high code.
9883
9884 2015-08-24 Tom de Vries <tom@codesourcery.com>
9885
9886 PR tree-optimization/65468
9887 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
9888 chunk_size is one.
9889
9890 2015-08-24 Nathan Sidwell <nathan@acm.org>
9891
9892 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
9893 change to nvptx_type_from_mode call. Use arg_promotion for both
9894 split and non-split args.
9895
9896 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9897
9898 * target-insns.def (movstr): New pattern.
9899 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
9900 (expand_movstr): Use targetm rather than HAVE_movstr/
9901 CODE_FOR_movstr.
9902
9903 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9904
9905 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
9906 cast syntax.
9907
9908 2015-08-24 Andrew Pinski <apinski@cavium.com>
9909
9910 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
9911 AARCH64_EXTRA_TUNING_OPTION.
9912 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
9913 New enum.
9914 (aarch64_extra_tuning_flags): Base the shifted value on the index
9915 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
9916 * config/aarch64/aarch64.c: Remove the last argument to
9917 AARCH64_EXTRA_TUNING_OPTION.
9918
9919 2015-08-23 Nathan Sidwell <nathan@acm.org>
9920
9921 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
9922 decls.
9923 (nvptx_declare_function_name): Insert formatting tabs for
9924 consistency.
9925
9926 2015-08-23 Tom de Vries <tom@codesourcery.com>
9927
9928 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
9929 parm_decl, rather than generating a dummy default def in cfun.
9930 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
9931 ssa_name from cfun and child_fn do not share a stmt as def stmt.
9932 (move_stmt_op): Handle PARM_DECl.
9933 (gather_ssa_name_hash_map_from): New function.
9934 (move_sese_region_to_fn): Add default defs for function params, and add
9935 them to vars_map. Release copied ssa names.
9936 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
9937
9938 2015-08-23 Tom de Vries <tom@codesourcery.com>
9939
9940 * doc/sourcebuild.texi: Rename vect_no_int_max with
9941 vect_no_int_min_max. Update description.
9942
9943 2015-08-22 Andrew Pinski <apinski@cavium.com>
9944
9945 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
9946 * config/aarch64/aarch64-protos.h
9947 (aarch64_fusion_pairs_index): New enum.
9948 (aarch64_fusion_pairs): Base the shifted value on the index instead
9949 Rewrite AARCH64_FUSE_ALL to be based on the end index.
9950 of the argument to AARCH64_FUSION_PAIR.
9951 * config/aarch64/aarch64.c: Remove the last argument to
9952 AARCH64_FUSION_PAIR.
9953
9954 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
9955
9956 * dominance.c (new_zero_array): Define.
9957 (dom_info): Redefine as class with proper encapsulation.
9958 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
9959 Add new members.
9960 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
9961 allocations/deallocations. Pass function as parameter (instead of
9962 using cfun).
9963 (dom_info::get_idom): Define accessor method.
9964 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
9965 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
9966 (calculate_dominance_info): Adjust to use dom_info class.
9967 (verify_dominators): Likewise.
9968
9969 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
9970
9971 * print-rtl.c (print_rtx): Check the correct range for
9972 flag_dump_unnumbered_links to behave as documented.
9973
9974 PR rtl-optimization/67227
9975 PR rtl-optimization/64164
9976 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
9977 (nonoverlapping_memrefs_p): Test offsets and sizes when given
9978 identical gimple_reg exprs.
9979
9980 2015-08-21 Nathan Sidwell <nathan@acm.org>
9981
9982 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
9983 expansion.
9984 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
9985 crtl->stack_alignment_needed to determine alignment.
9986 (nvptx_get_drap_rtx): New.
9987 (TARGET_GET_DRAP_RTX): Override.
9988 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
9989
9990 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9991
9992 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
9993
9994 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9995
9996 * configure.ac: Remove uwin* cases.
9997 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
9998 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
9999 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
10000 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
10001 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
10002 i[34567]86-*-uwin*, powerpc-*-beos*.
10003
10004 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
10005
10006 * gencodes.c (gencodes): Print the comma for the preceding
10007 enum value rather than the current one. Use aliased enum values
10008 rather than #defines for compiled-out patterns.
10009 (main): Update accordingly. Replace LAST_INSN_CODE with
10010 NUM_INSN_CODES.
10011 * lra.c (insn_code_data): Update accordingly.
10012 (finish_insn_code_data_once, get_static_insn_data): Likewise.
10013 * recog.h (target_recog): Likewise.
10014 (preprocess_insn_constraints): Change parameter to unsigned int.
10015 * recog.c (preprocess_insn_constraints): Likewise.
10016 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
10017 * tree-vect-stmts.c (vectorizable_operation): Simplify.
10018
10019 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
10020
10021 PR rtl-optimization/61657
10022 * loop-iv.c (iv_number_of_iterations): Declare up and down as
10023 unsigned. Remove superflous uint64_t cast.
10024
10025 2014-08-21 Felix Yang <felix.yang@huawei.com>
10026 Jiji Jiang <jiangjiji@huawei.com>
10027
10028 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
10029 argument and get builtin function code directly from CALL.
10030 (gimple_stringop_fixed_value): Modified accordingly.
10031 (gimple_stringops_transform, gimple_stringops_values_to_profile):
10032 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
10033
10034 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
10035
10036 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
10037
10038 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10039
10040 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
10041 to match.pd.
10042 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
10043 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
10044 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
10045 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
10046 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
10047 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
10048 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
10049 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
10050 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
10051 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
10052
10053 * match.pd (SIN ) : New Operator.
10054 (TAN) : New Operator.
10055 (mult (SQRT@1 @0) @1) : New simplifier.
10056 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
10057 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
10058 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
10059 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
10060 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
10061 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
10062 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
10063 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
10064 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
10065 (rdiv @0 (POW:s @1 @2)) : New simplifier.
10066
10067 2015-08-21 Bin Cheng <bin.cheng@arm.com>
10068
10069 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
10070 loop if EXPR is simplified to const value.
10071
10072 2015-08-21 Yury Gribov <y.gribov@samsung.com>
10073
10074 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
10075 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
10076
10077 2015-08-21 Richard Biener <rguenther@suse.de>
10078
10079 PR middle-end/67285
10080 * gimple-fold.c (replace_stmt_with_simplification): Assert
10081 seq is empty when replacing a call with itself but different
10082 arguments.
10083 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
10084 a call require that it is const.
10085
10086 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10087
10088 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
10089 * builtins.c (get_object_alignment_2): Adjust.
10090 * varasm.c (align_variable): Likewise.
10091 (get_variable_align): Likewise.
10092 (build_constant_desc): Likewise.
10093 (force_const_mem): Likewise.
10094 * doc/tm.texi.in: Likewise.
10095 * doc/tm.texi: Regenerate.
10096
10097 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10098
10099 * genconfig.c (main): Always define HAVE_cc0.
10100 * recog.c (rest_of_handle_peephole2): Adjust.
10101
10102 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10103
10104 * reorg.c (relax_delay_slots): Don't use #if to check value of
10105 HAVE_cc0.
10106
10107 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10108
10109 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
10110 * targhooks.c (default_have_conditional_execution): Adjust.
10111
10112 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
10113
10114 * rtl.h (rtvec_all_equal_p): Declare.
10115 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
10116 * rtl.c (rtvec_all_equal_p): New function.
10117 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
10118 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
10119 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
10120 * config/arm/arm.c (neon_vdup_constant): Likewise.
10121 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
10122 * config/tilegx/constraints.md (W, Y): Likewise.
10123 * config/tilepro/constraints.md (W, Y): Likewise.
10124 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
10125 (classify_immediate): Use unwrap_const_vec_duplicate.
10126 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
10127 (reg_or_v2s8bit_operand): Likewise.
10128 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
10129 (reg_or_v4s8bit_operand): Likewise.
10130
10131 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10132
10133 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
10134 (vec_shasigma_be): New #define.
10135 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
10136 (VPMSUMH): Likewise.
10137 (VPMSUMW): Likewise.
10138 (VPMSUMD): Likewise.
10139 (VPMSUM): New BU_P8V_OVERLOAD_2.
10140 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
10141 entries for VEC_MADD and VEC_VPMSUM.
10142
10143 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
10144
10145 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
10146 Multiply argument avr_n_flash by 64 to match unit of "KiB".
10147 (avr_pgm_check_var_decl): Same.
10148
10149 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
10150
10151 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
10152 initialization of HFmode scalar type (float16_t) to...
10153 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
10154 code.
10155
10156 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
10157
10158 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
10159 having an -mfp16-format.
10160
10161 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
10162
10163 * config/i386/predicates.md (vector_all_ones_operand): Use
10164 CONSTM1_RTX to simplify definition.
10165
10166 2015-08-20 Richard Biener <rguenther@suse.de>
10167
10168 * toplev.c (compile_file): Remove loop calling late_global_decl
10169 on all symbols.
10170 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
10171 on decls we assembled.
10172
10173 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
10174
10175 * common/config/aarch64/aarch64-common.c
10176 (AARCH64_CPU_NAME_LENGTH): Delete.
10177 (aarch64_option_extension): New.
10178 (all_extensions): Likewise.
10179 (processor_name_to_arch): Likewise.
10180 (arch_to_arch_name): Likewise.
10181 (all_cores): New.
10182 (all_architectures): Likewise.
10183 (aarch64_get_extension_string_for_isa_flags): Likewise.
10184 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
10185 architecture names.
10186 * config/aarch64/aarch64-protos.h
10187 (aarch64_get_extension_string_for_isa_flags): New.
10188 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
10189 (aarch64_option_print): Get the string to print from
10190 aarch64_get_extension_string_for_isa_flags.
10191 (aarch64_declare_function_name): Likewise.
10192 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
10193 (MCPU_TO_MARCH_SPEC): This.
10194 (ASM_CPU_SPEC): Use it.
10195 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
10196 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
10197 (EXTRA_SPEC_FUNCTIONS): Use it.
10198
10199 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
10200
10201 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
10202 expansion when !ISA_HAS_LWL_LWR.
10203 (mips_block_move_straight): Update the size of elements copied to
10204 account for alignment when !ISA_HAS_LWL_LWR.
10205 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
10206
10207 2015-08-19 Jiong Wang <jiong.wang@arm.com>
10208
10209 * expr.c (expand_expr_real_2): Check gimple statement during
10210 LSHIFT_EXPR expand.
10211
10212 2015-08-19 Magnus Granberg <zorry@gentoo.org>
10213
10214 * common.opt (fstack-protector): Initialize to -1.
10215 (fstack-protector-all): Likewise.
10216 (fstack-protector-strong): Likewise.
10217 (fstack-protector-explicit): Likewise.
10218 * configure.ac: Add --enable-default-ssp.
10219 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
10220 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
10221 -1.
10222 * doc/install.texi: Document --enable-default-ssp.
10223 * config.in: Regenerated.
10224 * configure: Likewise.
10225
10226 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
10227
10228 PR rtl-optimization/64164
10229 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
10230 (parm_in_stack_slot_p): ... this. Disregard mode, what
10231 matters is whether the parm will live in a pseudo or a stack
10232 slot.
10233 (expand_one_ssa_partition): Deal with params without a default
10234 def. Disregard mode.
10235 * cfgexpand.h: Renamed function declaration.
10236 * tree-ssa-coalesce.c: Adjust.
10237 * function.c (split_complex_args): Allocate stack slot for
10238 unassigned parms before splitting.
10239 (parm_in_unassigned_mem_p): New. Use it instead of
10240 parm_maybe_byref_p throughout this file.
10241 (assign_parm_setup_block): Use it. Accept pseudos in the
10242 expand-assigned rtl.
10243 (assign_parm_setup_reg): Drop BLKmode requirement.
10244 (assign_parm_setup_stack): Allocate and fill in the address of
10245 unassigned MEM parms.
10246
10247 2015-08-19 David Sherwood <david.sherwood@arm.com>
10248
10249 * genmodes.c (emit_mode_unit_size_inline): New function.
10250 (emit_mode_unit_precision_inline): New function.
10251 (emit_insn_modes_h): Emit new #define. Emit new functions.
10252 (emit_mode_unit_size): New function.
10253 (emit_mode_unit_precision): New function.
10254 (emit_mode_adjustments): Add mode_unit_size adjustments.
10255 (emit_insn_modes_c): Emit new arrays.
10256 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
10257 use new inline methods.
10258
10259 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10260
10261 * config/aarch64/aarch64.c (bit_count): Delete prototype
10262 and definition.
10263 (aarch64_print_operand): Use popcount_hwi instead of the above.
10264
10265 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10266
10267 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
10268 comment.
10269
10270 2015-08-19 Marek Polacek <polacek@redhat.com>
10271
10272 PR middle-end/67133
10273 * gimple-ssa-isolate-paths.c
10274 (insert_trap_and_remove_trailing_statements): Rename to ...
10275 (insert_trap): ... this. Don't remove trailing statements; split
10276 block instead.
10277 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
10278
10279 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
10280
10281 PR other/67042
10282 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
10283 conditionalize the whole on __GNUC__. Add fallback code
10284 depending neither on undefined nor implementation-defined behaviour.
10285
10286 2015-08-19 Jiong Wang <jiong.wang@arm.com>
10287
10288 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
10289 whitespaces with tab.
10290
10291 2015-08-19 Florian Weimer <fweimer@redhat.com>
10292
10293 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
10294 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
10295 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
10296 Move Name_Ids instantiation to the Prj.Proc package, to avoid
10297 trampolines.
10298
10299 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10300
10301 * config/arm/arm.c (bounds_check): Use %wd print format
10302 for HOST_WIDE_INT arguments.
10303
10304 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
10305
10306 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
10307 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
10308 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
10309 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
10310 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
10311 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
10312 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
10313 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
10314 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
10315 typedefs.
10316
10317 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
10318
10319 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
10320 function.c, graphite-scop-detection.c, haifa-sched.c,
10321 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
10322 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
10323 varasm.c: Remove typedefs of structs.
10324
10325 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10326
10327 * config/rs6000/altivec.h (vec_adde): New define.
10328 (vec_addec): Likewise.
10329 (vec_double): Likewise.
10330 (vec_bperm): Likewise.
10331 (vec_gb): Likewise.
10332 * config/rs6000/rs6000-builtin.def (ADDE): New
10333 BU_ALTIVEC_OVERLOAD_3.
10334 (ADDEC): Likewise.
10335 (DOUBLE): New BU_VSX_OVERLOAD_1.
10336 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
10337 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
10338 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
10339 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
10340 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
10341 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
10342 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
10343 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
10344 and P8V_BUILTIN_VEC_VBPERMQ.
10345
10346 2015-08-18 Jason Merrill <jason@redhat.com>
10347
10348 * print-tree.c (print_node): Handle TREE_BINFO.
10349
10350 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10351
10352 PR middle-end/36757
10353 * builtins.c (expand_builtin_signbit): Add asserts to make sure
10354 we can expand BUILT_IN_SIGNBIT inline.
10355 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
10356 * doc/extend.texi: Document the type-generic __builtin_signbit.
10357
10358 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
10359
10360 PR rtl-optimization/67218
10361 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
10362 (simplify_unary_operation_1): Use it.
10363
10364 2015-08-18 Marek Polacek <polacek@redhat.com>
10365
10366 PR middle-end/67222
10367 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
10368 if the call isn't valid.
10369 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
10370 gimple_call_builtin_p.
10371 (call_may_clobber_ref_p_1): Likewise.
10372 (stmt_kills_ref_p): Likewise.
10373
10374 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
10375
10376 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
10377 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
10378 (mips_hard_regno_scratch_ok): Likewise.
10379 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
10380 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
10381
10382 2015-08-18 Bin Cheng <bin.cheng@arm.com>
10383
10384 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
10385 (determine_value_range): Call refine_value_range_using_guard for
10386 each loop initial condition to improve value range.
10387
10388 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
10389
10390 * config/i386/i386.c: Remove include of fibheap.h.
10391
10392 2015-08-17 Richard Biener <rguenther@suse.de>
10393
10394 PR tree-optimization/67221
10395 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
10396 (sccvn_dom_walker::before_dom_children): Mark backedges of
10397 non-executable blocks as not executable.
10398
10399 2015-08-17 David Sherwood <david.sherwood@arm.com>
10400
10401 * config/arm/arm.c (neon_element_bits): Replace call to
10402 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
10403 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
10404 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
10405 (neon_vdup_lane<mode>): Likewise.
10406 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
10407 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
10408 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
10409 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
10410 * config/spu/spu.c (arith_immediate_p): Likewise.
10411 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10412 * expr.c (expand_expr_real_2): Likewise.
10413 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
10414 * simplify-rtx.c (simplify_immed_subreg): Likewise.
10415 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
10416 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
10417 New variable.
10418 * fold-const.c (fold_binary_loc): Replace call to
10419 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
10420 GET_MODE_UNIT_PRECISION (m).
10421
10422 2015-08-17 Mike Stump <mikestump@comcast.net>
10423
10424 * config/arm/arm.c (arm_block_move_unaligned_straight):
10425 Emit normal move instead of unaligned load when source or destination
10426 are appropriately aligned.
10427
10428 2015-08-17 Richard Biener <rguenther@suse.de>
10429 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10430
10431 PR middle-end/16107
10432 * match.pd (div (coss (op @0) : New simplifier.
10433
10434 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
10435
10436 PR rtl-optimization/64164
10437 PR bootstrap/66978
10438 PR middle-end/66983
10439 PR rtl-optimization/67000
10440 PR middle-end/67034
10441 PR middle-end/67035
10442 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10443 * tree-ssa-copyrename.c: Removed.
10444 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10445 -ftree-coalesce-vars.
10446 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10447 * common.opt (ftree-copyrename): Ignore.
10448 (ftree-coalesce-inlined-vars): Likewise.
10449 * doc/invoke.texi: Remove the ignored options above.
10450 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10451 * tree-ssa-coalesce.h: ... here.
10452 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10453 headers required by it.
10454 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10455 across variables when flag_tree_coalesce_vars. Check register
10456 use and promoted modes to allow coalescing. Do not coalesce
10457 maybe-byref parms with SSA_NAMEs of other variables, or
10458 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
10459 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10460 with its member functions to tree-ssa-coalesce.c.
10461 (var_map_base_init): Likewise. Renamed to
10462 compute_samebase_partition_bases.
10463 (partition_view_normal): Drop want_bases parameter.
10464 (partition_view_bitmap): Likewise.
10465 * tree-ssa-live.h: Adjust declarations.
10466 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
10467 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10468 default defs at the entry point.
10469 (dump_part_var_map): New.
10470 (compute_optimized_partition_bases): New, called by...
10471 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10472 of compute_samebase_partition_bases. Adjust.
10473 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10474 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
10475 (ssa_default_def_partition): New.
10476 (get_rtl_for_parm_ssa_default_def): New.
10477 (align_local_variable, add_stack_var): Support anonymous SSA
10478 names.
10479 (defer_stack_allocation): Likewise. Declare earlier.
10480 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10481 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10482 Do no record deferred-allocation marker in
10483 SA.partition_to_pseudo.
10484 (expand_stack_vars): Adjust check for the marker in it.
10485 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10486 redundant MEM attr setting.
10487 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10488 from...
10489 (expand_one_stack_var): ... this. New wrapper to check and
10490 skip already expanded SSA partitions.
10491 (record_alignment_for_reg_var): New, factored out of...
10492 (expand_one_var): ... this.
10493 (expand_one_ssa_partition): New.
10494 (adjust_one_expanded_partition_var): New.
10495 (expand_one_register_var): Check and skip already expanded SSA
10496 partitions.
10497 (expand_used_vars): Don't create DECLs for anonymous SSA
10498 names. Expand all SSA partitions, then adjust all SSA names.
10499 (pass::execute): Replace the loops that set
10500 SA.partition_to_pseudo from partition leaders and cleared
10501 DECL_RTL for multi-location variables, and that which used to
10502 rename vars and set attrs, with one that clears DECL_RTL and
10503 checks that PARMs and RESULTs default_defs match DECL_RTL.
10504 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10505 * emit-rtl.c: Include stor-layout.h.
10506 (set_reg_attrs_for_parm): Handle NULL decl.
10507 (set_reg_attrs_for_decl_rtl): Take mode from expression if
10508 it's not a DECL.
10509 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
10510 rather than its possibly-NULL DECL.
10511 * explow.c (promote_ssa_mode): New.
10512 * explow.h (promote_ssa_mode): Declare.
10513 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10514 (read_complex_part): Export.
10515 * expr.h (read_complex_part): Declare.
10516 * cfgexpand.h (parm_maybe_byref_p): Declare.
10517 * function.c: Include cfgexpand.h.
10518 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10519 (use_register_for_parm_decl): Wrapper for the above to
10520 special-case the result_ptr.
10521 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10522 (split_complex_args): Take assign_parm_data_all argument.
10523 Pass it to rtl_for_parm. Set up rtl and context for split
10524 args. Reset complex parm before fetching its default decl
10525 rtl.
10526 (assign_parms_unsplit_complex): Use the default-def complex
10527 parm rtl if it matches the components.
10528 (assign_parms_augmented_arg_list): Adjust.
10529 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10530 multiple locations. Recognize split complex args.
10531 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10532 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10533 (assign_parm_setup_block): Prefer SSA-assigned location, and
10534 fill in its address if the memory location of a maybe-byref
10535 parm was not assigned by cfgexpand.
10536 (assign_parm_setup_reg): Likewise. Adjust its mode as
10537 needed. Use entry_parm for equiv if stack_parm is NULL. Make
10538 sure passed_pointer parms don't need conversion. Copy address
10539 or value as needed.
10540 (assign_parm_setup_stack): Prefer SSA-assigned location.
10541 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10542 rtl before testing for pointer bounds. Special-case result_ptr.
10543 (expand_function_start): Maybe reset DECL_RTL of result.
10544 Prefer SSA-assigned location for result and static chain.
10545 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
10546 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
10547 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10548 anonymous SSA names. Use promote_ssa_mode.
10549 (get_temp_reg): Likewise.
10550 (remove_ssa_form): Adjust.
10551 * stor-layout.c (layout_decl): Don't set mem attributes of
10552 non-MEMs.
10553 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10554 and get its reg_usage for reg invalidation.
10555 (compute_bb_dataflow): Pass it insn.
10556 (emit_notes_in_bb): Likewise.
10557
10558 2015-08-14 Marek Polacek <polacek@redhat.com>
10559
10560 * tree-core.h (tree_base): Fix typo.
10561
10562 2015-08-14 Marek Polacek <polacek@redhat.com>
10563
10564 PR middle-end/67133
10565 * gimple.c (infer_nonnull_range_by_attribute): Check that the
10566 nonnull argument position is not outside function arguments.
10567
10568 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
10569
10570 PR target/67143
10571 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
10572 'lconst_atomic' with 'const_atomic'.
10573 (atomic_fetch_<optab><mode>): Likewise.
10574 (atomic_<optab>_fetch<mode>): Likewise.
10575 * config/aarch64/iterators.md (lconst-atomic): Move below
10576 'const_atomic'.
10577 (const_atomic): New.
10578
10579 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
10580 Bernd Schmidt <bernds@codesourcery.com>
10581
10582 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
10583 debug options.
10584 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
10585 (DWARF2_DEBUGGING_INFO): Don't define.
10586 * debug.h (dwarf2_lineno_debug_hooks): Declare.
10587 * toplev.c (process_options): Add a case for it.
10588 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
10589 (dwarf2out_init): Skip most initializations if
10590 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
10591 case.
10592 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
10593 DWARF2_LINENO_DEBUGGING_INFO.
10594 * opts.c (set_debug_level): Likewise.
10595
10596 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
10597
10598 * config/arm/types.md (is_neon_type): Add missing types.
10599
10600 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
10601
10602 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
10603 for skylake.
10604 * config/i386/i386.c (PTA_SKYLAKE): New macros.
10605 (processor_alias_table): Add skylake description.
10606 (enum processor_model): Add skylake processor.
10607 (arch_names_table): Add skylake record.
10608 * doc/invoke.texi: Add skylake item.
10609
10610 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
10611
10612 * ira-int.h: Include recog.h.
10613 * ira-build.c: Don't include recog.h.
10614 * ira-color.c: Likewise.
10615 * ira-conflicts.c: Likewise.
10616 * ira-costs.c: Likewise.
10617 * ira-emit.c: Likewise.
10618 * ira-lives.c: Likewise.
10619 * ira.c: Likewise.
10620 * sched-deps.c: Likewise.
10621 * sel-sched.c: Likewise.
10622 * target-globals.c: Likewise.
10623
10624 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
10625
10626 PR bootstrap/55035
10627 * reload1.c (elimination_costs_in_insn): Make it obvious to the
10628 compiler that the n_dups and n_operands loop bounds are invariant.
10629
10630 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10631
10632 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
10633 expressions in A and B.
10634
10635 2015-08-13 Richard Biener <rguenther@suse.de>
10636
10637 * tree.c (nonnull_arg_p): Move from ...
10638 * tree-vrp.c (nonnull_arg_p): ... here.
10639 * tree.h (nonnull_arg_p): Declare.
10640 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
10641 here, register ptr != 0 for nonnull_arg_p pointer arguments.
10642 Properly initialize static chain and by-reference result pointer.
10643 (run_scc_vn): Adjust.
10644
10645 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10646
10647 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
10648 TUNE_I6400.
10649
10650 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10651
10652 * config/aarch64/aarch64-protos.h
10653 (aarch64_gen_atomic_cas): Declare.
10654 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
10655 Choose appropriate instruction pattern for the target.
10656 (aarch64_gen_atomic_cas): New.
10657 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
10658 (atomic_compare_and_swap<mode>_1): Rename to
10659 aarch64_compare_and_swap<mode>. Fix some indentation.
10660 (aarch64_compare_and_swap<mode>_lse): New.
10661 (aarch64_atomic_cas<mode>): New.
10662
10663 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10664
10665 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
10666 (TARGET_LSE): New.
10667
10668 2015-08-13 Richard Biener <rguenther@suse.de>
10669
10670 PR tree-optimization/67191
10671 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
10672 assert we value-numbered last stmts operand because it can validly
10673 trigger for unreachable code.
10674
10675 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10676
10677 PR rtl-optimization/67103
10678 * ifcvt.c (noce_try_store_flag_constants): Move
10679 x = (-(test != 0) & (b - a)) + a transformation to...
10680 (noce_try_cmove): ... Here. Try it if normal conditional
10681 move fails.
10682
10683 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10684
10685 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
10686 pseudo-processors.
10687 * config/mips/mips.md (processor): Remove w32 and w64.
10688
10689 2015-08-13 Richard Biener <rguenther@suse.de>
10690
10691 PR tree-optimization/66502
10692 PR tree-optimization/67167
10693 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
10694 backedge arguments.
10695 (vn_phi_lookup): Adjust.
10696 (vn_phi_insert): Likewise.
10697 (visit_phi): Prefer to value-number to another PHI node
10698 over value-numbering to a PHI argument.
10699 (init_scc_vn): Mark DFS back edges.
10700
10701 2015-08-13 Richard Biener <rguenther@suse.de>
10702
10703 * gimple.h (gcall::code_): New constant static member.
10704 (gcond::code_): Likewise.
10705 * gimple.c (gcall::code_): Define.
10706 (gcond::code_): Likewise.
10707 (is_a_helper <const gcond *>): Add.
10708 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
10709 and forward to a new gcall overload with less checking and a
10710 cheaper way to access the operand.
10711 (gimple_call_lhs_ptr): Likewise.
10712 (gimple_call_set_lhs): Likewise.
10713 (gimple_call_internal_p): Likewise.
10714 (gimple_call_with_bounds_p): Likewise.
10715 (gimple_call_set_with_bounds): Likewise.
10716 (gimple_call_internal_fn): Likewise.
10717 (gimple_call_set_ctrl_altering): Likewise.
10718 (gimple_call_ctrl_altering_p): Likewise.
10719 (gimple_call_fntype): Likewise.
10720 (gimple_call_fn): Likewise.
10721 (gimple_call_fn_ptr): Likewise.
10722 (gimple_call_set_fndecl): Likewise.
10723 (gimple_call_fndecl): Likewise.
10724 (gimple_call_chain): Likewise.
10725 (gimple_call_num_args): Likewise.
10726 (gimple_call_arg): Likewise.
10727 (gimple_call_arg_ptr): Likewise.
10728 (gimple_call_set_arg): Likewise.
10729 (gimple_call_noreturn_p): Likewise.
10730 (gimple_cond_code): Likewise.
10731 (gimple_cond_lhs): Likewise.
10732 (gimple_cond_rhs): Likewise.
10733 (gimple_has_lhs): Reduce checking.
10734
10735 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10736
10737 PR middle-end/25529
10738 * match.pd (div (mult @0 @1) @1) : New simplifier.
10739
10740 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10741
10742 PR target/67071
10743 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
10744 predicate to allow construction of vector constants using the
10745 VSLDOI vector shift instruction.
10746
10747 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
10748 declaration.
10749
10750 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
10751 the number of bytes to be shifted left and filled in with either
10752 all zero or all one bits.
10753 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
10754 methods exist.
10755 (output_vec_const_move): On power8, generate XXLORC to generate
10756 a vector constant with all 1's. Do a split if we need to use a
10757 VSLDOI instruction.
10758
10759 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
10760 properly test for the MSB.
10761
10762 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
10763 vector constants that can be created with VSLDOI.
10764
10765 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
10766
10767 revert:
10768 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10769 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10770 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10771 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10772 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10773 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10774 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10775 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10776 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10777
10778 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
10779
10780 * config/xtensa/constraints.md (define_constraint "Y"): New
10781 constraint.
10782 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
10783 * config/xtensa/linux.h (ASM_SPEC): Likewise.
10784 * config/xtensa/predicates.md (move_operand): Match constants
10785 and symbols in the presence of TARGET_AUTO_LITPOOLS.
10786 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
10787 immediate references to TLS data.
10788 (xtensa_emit_move_sequence): Don't force constants to memory in
10789 the presence of TARGET_AUTO_LITPOOLS.
10790 (print_operand): Add 'y' format, same as default, but capable of
10791 printing SF mode constants as well.
10792 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
10793 (movsf_internal): Add movi pattern that loads literal.
10794 (movsf, movdf): Don't force constants to memory in the presence
10795 of TARGET_AUTO_LITPOOLS.
10796 (movdf_internal): Add 'Y' constraint.
10797 * config/xtensa/xtensa.opt (mauto-litpools): New option.
10798 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
10799
10800 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10801
10802 * config/arm/arm-fpus.def: Replace booleans with feature flags.
10803 Update comment.
10804 * config/arm/arm.c (ARM_FPU): Update macro.
10805 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
10806 (TARGET_FP16): Likewise.
10807 (TARGET_CRYPTO): Likewise.
10808 (TARGET_NEON): Likewise.
10809 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
10810 field features.
10811
10812 2015-08-12 Tom de Vries <tom@codesourcery.com>
10813
10814 PR other/67092
10815 PR other/67098
10816 * doc/install.texi: Remove --with_host_libstdcxx item. Update
10817 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
10818 accordingly. Mention default for --with-stage1-ldflags.
10819
10820 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10821
10822 * config/arm/arm.h (arm_fpu_feature_set): New.
10823 (ARM_FPU_FSET_HAS): New.
10824 (FPU_FL_NONE): New.
10825 (FPU_FL_NEON): New.
10826 (FPU_FL_FP16): New.
10827 (FPU_FL_CRYPTO): New.
10828
10829 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10830
10831 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
10832 after -mcmodel=large -fPIC sorry.
10833
10834 2015-08-12 Richard Biener <rguenther@suse.de>
10835
10836 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
10837 comparison operand order and commutative ternary op operand order.
10838 (sccvn_dom_walker::cond_stack): New state to track temporary
10839 expressions.
10840 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
10841 no longer valid.
10842 (sccvn_dom_walker::record_cond): Add a single temporary conditional
10843 expression.
10844 (sccvn_dom_walker::record_conds): Add a temporary conditional
10845 expressions and all related expressions also true/false.
10846 (sccvn_dom_walker::before_dom_children): Record temporary
10847 expressions based on the controlling condition of a single
10848 predecessor. When trying to simplify a conditional statement
10849 lookup expressions we might have inserted earlier.
10850
10851 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
10852
10853 PR target/67127
10854 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
10855 to ARM core registers.
10856
10857 2015-08-12 Nathan Sidwell <nathan@acm.org>
10858
10859 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
10860 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
10861
10862 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
10863
10864 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
10865 line with comments.
10866 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
10867
10868 2015-08-12 Richard Biener <rguenther@suse.de>
10869
10870 * gimple.h (remove_pointer): New trait.
10871 (GIMPLE_CHECK2): New inline template function.
10872 (gassign::code_): New constant static member.
10873 (is_a_helper<const gassign *>): Add.
10874 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
10875 and forward to a new gassign overload with less checking and a
10876 cheaper way to access the operand.
10877 (gimple_assign_lhs_ptr): Likewise.
10878 (gimple_assign_set_lhs): Likewise.
10879 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
10880 Likewise.
10881 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
10882 Likewise.
10883 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
10884 Likewise.
10885 (gimple_assign_rhs_code): Likewise.
10886 * gimple.c (gassign::code_): Define.
10887
10888 2015-08-12 Richard Biener <rguenther@suse.de>
10889
10890 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10891 Eliminate edges marked as not executable by SCCVN.
10892 * tree-ssa-sccvn.c: Include gimple-iterator.h.
10893 (cond_dom_walker): Rename to sccvn_dom_walker.
10894 (sccvn_dom_walker::before_dom_children): Value-number defs
10895 of all stmts.
10896 (run_scc_vn): Remove loop value-numbering all SSA names.
10897 Drop not visited SSA names to varying.
10898
10899 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
10900
10901 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10902 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10903 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10904 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10905 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10906 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10907 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10908 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10909 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10910
10911 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
10912
10913 PR target/66954
10914 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
10915 to enum feature_priority and feature_list.
10916 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
10917 and isa_names_table.
10918
10919 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
10920
10921 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
10922 vect_induction_def.
10923
10924 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10925
10926 PR c/66098
10927 PR c/66711
10928 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
10929 account when deciding what was the command-line status.
10930
10931 2015-08-11 Nathan Sidwell <nathan@acm.org>
10932
10933 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
10934
10935 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
10936 we're not the only contributor to target phi.
10937
10938 2015-08-11 Jiong Wang <jiong.wang@arm.com>
10939
10940 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
10941 FIXED_REG0.
10942
10943 2015-08-11 Tom de Vries <tom@codesourcery.com>
10944
10945 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
10946
10947 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
10948
10949 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
10950 with CPU_SLM.
10951 * config/i386/i386.md (cpu): Remove knl.
10952
10953 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10954
10955 PR libgomp/65742
10956 PR middle-end/66332
10957 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
10958 open-coded sequence.
10959 * omp-low.c (oacc_process_reduction_data): Remove handline of
10960 GOMP_DEVICE_HOST_NONSHM.
10961
10962 * lto-streamer-in.c (lto_input_mode_table): Adjust to
10963 GET_MODE_INNER changes.
10964
10965 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10966 Ilya Verbin <ilya.verbin@intel.com>
10967
10968 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
10969
10970 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10971
10972 * doc/options.texi (EnabledBy): Document that the argument must be
10973 a Common option.
10974 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
10975 Not enabled by -Wall.
10976 * optc-gen.awk: Give nicer error messages. Detect if the argument
10977 of EnabledBy is not a Common option.
10978 * common.opt (Wnull-dereference): Not enabled by -Wall.
10979 * opt-functions.awk (lang_enabled_by): Nicer error messages.
10980
10981 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
10982
10983 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
10984 model == 0x4f as Broadwell.
10985
10986 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
10987
10988 PR rtl-optimization/67028
10989 * combine.c (simplify_comparison): Fix comment. Rearrange code.
10990 Add test to see if a const_int fits in the new mode.
10991
10992 2015-08-07 DJ Delorie <dj@redhat.com>
10993
10994 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
10995
10996 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
10997
10998 PR rtl-optimization/67029
10999 * ira-color.c: Include "recog.h" before including "ira-int.h".
11000 * target-globals.c: Likewise.
11001 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
11002 adds an alternative_mask argument and use it instead of
11003 preferred_alternatives.
11004 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
11005 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
11006 * sched-deps.c: Include "ira-int.h" after including "ira.h".
11007 (sched_analyze_insn): Update call to
11008 ira_implicitly_set_insn_hard_regs.
11009 * sel-sched.c: Include "ira-int.h" after including "ira.h".
11010 (implicit_clobber_conflict_p): Update call to
11011 ira_implicitly_set_insn_hard_regs.
11012
11013 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
11014
11015 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
11016
11017 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
11018
11019 PR target/67002
11020 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
11021 currently_expanding_to_rtl is set.
11022
11023 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
11024
11025 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
11026 * configure: Regenerate.
11027
11028 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11029 Jiong Wang <jiong.wang@arm.com>
11030
11031 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11032 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11033 (REG_CLASS_NAMES): Likewise.
11034 (REG_CLASS_CONTENTS): Likewise.
11035 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11036 (aarch64_register_move_cost): Likewise.
11037 (aarch64_load_symref_appropriately): Invoke the new added pattern if
11038 possible.
11039 * config/aarch64/constraints.md (Uc0): New constraint.
11040
11041 2015-08-06 Jiong Wang <jiong.wang@arm.com>
11042
11043 * config/aarch64/constraints.md (Usf): Add the test of
11044 aarch64_is_noplt_call_p.
11045
11046 2015-08-06 Jiong Wang <jiong.wang@arm.com>
11047
11048 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
11049 declaration.
11050 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
11051 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
11052 (call_symbol): Likewise.
11053
11054 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11055
11056 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
11057 for vectorizing multiplication patterns.
11058 * tree-vectorizer.h: Adjust the number of patterns.
11059
11060 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
11061
11062 * config/i386/sse.md (*vec_concatv2df): Declare added
11063 alternatives as sselog type.
11064
11065 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11066
11067 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
11068 all GPRs.
11069
11070 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11071
11072 * config/s390/s390.c (s390_expand_tbegin): Expand either
11073 tbegin_1_z13 or tbegin_1 depending on VX flag.
11074 * config/s390/s390.md ("tbegin_1_z13"): New expander.
11075
11076 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11077
11078 * config/s390/s390.opt: Clarify description for -mzvector
11079 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
11080 -mzvector.
11081
11082 2015-08-06 Richard Biener <rguenther@suse.de>
11083
11084 * gimple.h (gimple_call_set_fn): Access op member directly.
11085 (gimple_call_chain_ptr): Likewise.
11086 (gimple_call_set_chain): Likewise.
11087 (gimple_cond_lhs_ptr): Likewise.
11088 (gimple_cond_set_lhs): Likewise.
11089 (gimple_cond_rhs_ptr): Likewise.
11090 (gimple_cond_set_rhs): Likewise.
11091 (gimple_cond_true_label): Likewise.
11092 (gimple_cond_set_true_label): Likewise.
11093 (gimple_cond_set_false_label): Likewise.
11094 (gimple_cond_false_label): Likewise.
11095 (gimple_label_label): Likewise.
11096 (gimple_label_set_label): Likewise.
11097 (gimple_goto_set_dest): Likewise.
11098 (gimple_asm_input_op): Likewise.
11099 (gimple_asm_input_op_ptr): Likewise.
11100 (gimple_asm_set_input_op): Likewise.
11101 (gimple_asm_output_op): Likewise.
11102 (gimple_asm_output_op_ptr): Likewise.
11103 (gimple_asm_set_output_op): Likewise.
11104 (gimple_asm_clobber_op): Likewise.
11105 (gimple_asm_set_clobber_op): Likewise.
11106 (gimple_asm_label_op): Likewise.
11107 (gimple_asm_set_label_op): Likewise.
11108 (gimple_switch_index): Likewise.
11109 (gimple_switch_index_ptr): Likewise.
11110 (gimple_return_retval_ptr): Likewise.
11111 (gimple_return_retval): Likewise.
11112 (gimple_return_set_retval): Likewise.
11113 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
11114 (gimple_switch_label): Likewise.
11115 (gimple_switch_set_label): Likewise.
11116
11117 2015-08-06 Richard Biener <rguenther@suse.de>
11118
11119 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
11120 bool comparison canonicalization and restrict to integers.
11121
11122 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
11123
11124 * coretypes.h (enum symbol_visibility): Relocate here.
11125 * flag-types.h (enum symbol_visibility): Remove.
11126 * tree-core.h (enum symbol_visibility): Remove.
11127
11128 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
11129
11130 PR target/66870
11131 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
11132 for no_split_stack function attribute along with
11133 flag_split_stack.
11134 (rs6000_expand_split_stack_prologue): Likewise.
11135
11136 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
11137 Jeff Law <law@redhat.com>
11138
11139 PR c/16351
11140 * doc/invoke.texi (Wnull-dereference): New.
11141 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
11142 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
11143 Warn for potential NULL dereferences.
11144 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
11145 * ubsan.c (instrument_nonnull_arg): Call
11146 infer_nonnull_range_by_attribute.
11147 (instrument_nonnull_return): Likewise.
11148 * common.opt (Wnull-dereference); New.
11149 * gimple.c (infer_nonnull_range): Remove bool arguments.
11150 (infer_nonnull_range_by_dereference): New.
11151 (infer_nonnull_range_by_attribute): New.
11152 * gimple.h: Update declarations.
11153
11154 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11155
11156 * gensupport.c (sequence_num): Replace with...
11157 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
11158 ...these new variables.
11159 (init_rtx_reader_args_cb): Update accordingly.
11160 (get_num_code_insns): Likewise.
11161 (read_md_rtx): Rework to use a while loop and get_c_test.
11162 Use the new counters. Remove redundant DEFINE_SUBST case.
11163 * genoutput.c (gen_split): Delete.
11164 (main): Don't call it.
11165
11166 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11167
11168 * gensupport.h (get_c_test): Declare.
11169 * gensupport.c (get_c_test): New function.
11170 * genconditions.c (main): Use it.
11171 * genrecog.c (validate_pattern): Likewise.
11172 (match_pattern_1): Likewise. Remove c_test argument.
11173 (match_pattern): Update accordingly and remove c_test argument.
11174 (main): Update accordingly.
11175
11176 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11177
11178 * gensupport.h (get_num_insn_codes): Declare.
11179 * gensupport.c (get_num_insn_codes): New function.
11180 * genattrtab.c (optimize_attrs): Rename max_insn_code to
11181 num_insn_codes.
11182 (main): Likewise. Use get_num_insn_codes.
11183 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
11184
11185 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11186
11187 PR middle-end/66311
11188 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
11189 is zero- rather than sign-extended.
11190
11191 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11192
11193 * target-insns.def (can_extend): Delete.
11194
11195 2015-08-05 Richard Biener <rguenther@suse.de>
11196
11197 PR tree-optimization/67121
11198 * tree-if-conv.c (combine_blocks): Clear range-info produced
11199 by stmts no longer executed conditionally.
11200
11201 2015-08-05 Nick Clifton <nickc@redhat.com>
11202
11203 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
11204 to allow identical far pointers to remain.
11205
11206 2015-08-05 Richard Biener <rguenther@suse.de>
11207
11208 PR middle-end/67120
11209 * match.pd: Compare address bases with == if they are decls
11210 or SSA names, not operand_equal_p. Otherwise fail.
11211
11212 2015-08-05 Richard Biener <rguenther@suse.de>
11213
11214 PR tree-optimization/67055
11215 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
11216 NULL gimple_block.
11217
11218 * g++.dg/torture/pr67055.C: New testcase.
11219
11220 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
11221
11222 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
11223 noavx512vl.
11224 (define_attr "enabled"): Handle avx521vl and noavx512vl.
11225 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
11226 AVX-512 alternative out of SSE.
11227 (define_insn "*vec_concatv2df"): Ditto.
11228
11229 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
11230
11231 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
11232 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
11233 CODE_FOR_avx_ptestv4di.
11234 * config/i386/sse.md (define_mode_iterator V_AVX): New.
11235 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
11236 (define_insn "avx_ptest256"): Merge this ...
11237 (define_insn "sse4_1_ptest"): And this ...
11238 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
11239
11240 2015-08-05 Richard Biener <rguenther@suse.de>
11241
11242 PR tree-optimization/67109
11243 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
11244 against too big groups. Print whether this is a load or store
11245 group. Rename from ...
11246 (vect_analyze_group_access): ... this which is now a wrapper
11247 dissolving an invalid group.
11248 (vect_analyze_data_ref_accesses): Print whether this is a load
11249 or store group.
11250
11251 2015-08-05 Richard Biener <rguenther@suse.de>
11252
11253 PR middle-end/67107
11254 * match.pd: Guard const_binop result checking against NULL_TREE
11255 result.
11256
11257 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
11258
11259 * cse.c (cse_insn): Restoring old behaviour for src_eqv
11260 when dest and value in the REG_EQUAL are same and dest
11261 is STRICT_LOW_PART.
11262
11263 2015-08-04 Anatoly Sokolov <aesok@post.ru>
11264
11265 * config/moxie/moxie.h (PRINT_OPERAND,
11266 PRINT_OPERAND_ADDRESS): Remove macros.
11267 * config/moxie/moxie-protos.h (moxie_print_operand,
11268 moxie_print_operand_address): Remove declaration.
11269 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
11270 TARGET_PRINT_OPERAND_ADDRESS): Define.
11271 (moxie_print_operand, moxie_print_operand_address): Make static.
11272
11273 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
11274
11275 PR target/66731
11276 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
11277 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
11278
11279 2015-08-04 Richard Biener <rguenther@suse.de>
11280
11281 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
11282 generated code.
11283 (dt_operand::gen_gimple_expr): Adjust.
11284
11285 2015-08-04 Richard Biener <rguenther@suse.de>
11286
11287 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
11288 bool compares on RHS.
11289 * match.pd: Add X ==/!= !X is false/true pattern.
11290
11291 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
11292
11293 * config/aarch64/aarch64.c: Change inner loop statement cost
11294 to be consistent with other targets.
11295
11296 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
11297
11298 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
11299 targets.
11300
11301 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
11302
11303 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
11304 (machine_function): Remove pseudos field.
11305
11306 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11307
11308 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11309 Exit early and use target_option_current_node if processing current
11310 pragma.
11311
11312 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11313
11314 * doc/extend.texi (AArch64 Function Attributes): New node.
11315 (AArch64 Pragmas): Likewise.
11316
11317 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11318
11319 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11320 Initialize simd builtins if TARGET_SIMD.
11321 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
11322 Make sure that the builtins are initialized only once no matter how
11323 many times the function is called.
11324 (aarch64_init_builtins): Unconditionally initialize crc builtins.
11325 (aarch64_relayout_simd_param): New function.
11326 (aarch64_simd_expand_args): Use above during argument expansion.
11327 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
11328 simd builtins if TARGET_SIMD.
11329 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
11330 prototype.
11331 (aarch64_relayout_simd_types): Likewise.
11332
11333 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11334
11335 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
11336 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
11337 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
11338 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11339 static keyword.
11340 (aarch64_reset_previous_fndecl): New function.
11341 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
11342 the string.
11343 * config/aarch64/aarch64-c.c: New file.
11344 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
11345 Push and pop options at beginning and end. Remove ifdef
11346 __ARM_FEATURE_CRC32.
11347 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
11348 Add pragma +nothing+simd and +nothing+crypto where appropriate.
11349 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
11350 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
11351 Define prototype.
11352 (aarch64_register_pragmas): Likewise.
11353 (aarch64_reset_previous_fndecl): Likewise.
11354 (aarch64_process_target_attr): Likewise.
11355 (aarch64_override_options_internal): Likewise.
11356
11357 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11358
11359 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
11360 New function.
11361 (aarch64_can_inline_p): Likewise.
11362 (TARGET_CAN_INLINE_P): Define.
11363
11364 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11365
11366 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
11367 Remove static. Handle OPT_mgeneral_regs_only,
11368 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
11369 OPT_momit_leaf_frame_pointer.
11370 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
11371 (aarch64_attr_opt_type): New enum.
11372 (aarch64_attribute_info): New struct.
11373 (aarch64_handle_attr_arch): New function.
11374 (aarch64_handle_attr_cpu): Likewise.
11375 (aarch64_handle_attr_tune): Likewise.
11376 (aarch64_handle_attr_isa_flags): Likewise.
11377 (aarch64_attributes): New table.
11378 (aarch64_process_one_target_attr): New function.
11379 (num_occurences_in_str): Likewise.
11380 (aarch64_process_target_attr): Likewise.
11381 (aarch64_option_valid_attribute_p): Likewise.
11382 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
11383 * config/aarch64/aarch64-protos.h: Include input.h
11384 (aarch64_handle_option): Declare prototype.
11385
11386 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11387
11388 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
11389 * config/aarch64/aarch64.c: Include target-globals.h
11390 (aarch64_previous_fndecl): New variable.
11391 (aarch64_set_current_function): New function.
11392 (TARGET_SET_CURRENT_FUNCTION): Define.
11393
11394 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11395
11396 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
11397 (explicit_arch): Likewise.
11398 (x_aarch64_isa_flags): Likewise.
11399 (mgeneral-regs-only): Mark as Save.
11400 (mfix-cortex-a53-835769): Likewise.
11401 (mcmodel=): Likewise.
11402 (mstrict-align): Likewise.
11403 (momit-leaf-frame-pointer): Likewise.
11404 (mtls-dialect): Likewise.
11405 (master=): Likewise.
11406 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
11407 (aarch64_isa_flags): Remove extern declaration.
11408 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
11409 to indicate success or failure.
11410 (aarch64_validate_march): Likewise.
11411 (aarch64_validate_mtune): Likewise.
11412 (aarch64_isa_flags): Delete.
11413 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
11414 instead of aarch64_isa_flags.
11415 (aarch64_get_tune_cpu): New function.
11416 (aarch64_get_arch): Likewise.
11417 (aarch64_override_options): Use above and set up explicit_tune_core
11418 and explicit_arch.
11419 (aarch64_print_extension): Move earlier in file. Add isa_flags
11420 argument and use that instead of the global aarch64_isa_flags.
11421 (aarch64_option_save): New function.
11422 (aarch64_option_restore): Likewise.
11423 (aarch64_option_print): Likewise.
11424 (aarch64_declare_function_name): Likewise.
11425 (aarch64_start_file): Delete.
11426 (TARGET_ASM_FILE_START): Do not define.
11427 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
11428 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
11429 Declare prototype.
11430
11431 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11432
11433 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
11434 flag_omit_leaf_frame_pointer to 2.
11435
11436 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11437
11438 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
11439 define to 0 or 1.
11440 (TARGET_FIX_ERR_A53_835769): New macro.
11441 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11442 handling of opts->x_aarch64_fix_a53_err835769.
11443 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
11444 than aarch64_fix_a53_err835769.
11445 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
11446 * config/aarch64/aarch64-linux.h: Likewise.
11447
11448 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
11449
11450 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
11451 ix86_expand_int_movcc as boolean.
11452
11453 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11454
11455 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
11456 (aarch64_cpu_string): Likewise.
11457 (aarch64_tune_string): Likewise.
11458 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
11459 (aarch64_parse_extension): Return aarch64_parse_opt_result.
11460 Add extra argument to put result into.
11461 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
11462 (aarch64_parse_cpu): Add arguments to put results into. Return
11463 aarch64_parse_opt_result.
11464 (aarch64_parse_tune): Likewise.
11465 (aarch64_override_options_after_change_1): New function.
11466 (aarch64_override_options_internal): New function.
11467 (aarch64_validate_mcpu): Likewise.
11468 (aarch64_validate_march): Likewise.
11469 (aarch64_validate_mtune): Likewise.
11470 (aarch64_override_options): Update to reflect above changes.
11471 Move some logic into aarch64_override_options_internal.
11472 Initialize target_option_default_node and target_option_current_node.
11473 (aarch64_override_options_after_change): Move logic into
11474 aarch64_override_options_after_change_1 and call it with global_options.
11475 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
11476 flag values from that.
11477
11478 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11479
11480 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11481 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
11482 * config/aarch64/aarch64.c (struct processor): Add arch field.
11483 (all_architectures): Handle above, move above all_cores.
11484 (all_cores): Handle above.
11485 (aarch64_parse_arch): Handle above changes.
11486 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
11487 above. Update comments.
11488 (armv8.1-a): Likewise.
11489 * config/aarch64/aarch64-cores.def: Update according to above.
11490 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
11491 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
11492 aarch64_arch_driver_info.
11493
11494 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11495
11496 * config/aarch64/aarch64.c (struct processor): Add ident field.
11497 Rename core sched_core.
11498 (all_cores): Handle above changes.
11499 (all_architectures): Likewise.
11500 (aarch64_parse_arch): Likewise.
11501 (aarch64_override_options): Likewise.
11502
11503 2015-08-04 Richard Biener <rguenther@suse.de>
11504
11505 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
11506 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
11507 comparisons embedded in [VEC_]COND_EXPRs.
11508
11509 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
11510
11511 * tree-if-conv.c: Fix various typos in comments.
11512 * tree-vect-stmts.c: Likewise.
11513
11514 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
11515
11516 PR tree-optimization/67043
11517 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
11518 preheader after hoisting invariant in it.
11519 (find_defs): Force recomputation of all luids.
11520
11521 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
11522
11523 * config/rs6000/htm.md (tabort.): Restrict the source operand to
11524 using a base register.
11525
11526 2015-08-03 David Malcolm <dmalcolm@redhat.com>
11527
11528 * main.c (main): Pass in NULL for toplev's external_timer.
11529 * timevar.c: Include coretypes.h.
11530 (class timer::named_items): New.
11531 (timer::named_items::named_items): New.
11532 (timer::named_items::~named_items): New.
11533 (timer::named_items::push): New.
11534 (timer::named_items::pop): New.
11535 (timer::named_items::print): New.
11536 (timer::timer): Initialize field "m_jit_client_items".
11537 (timer::~timer): New.
11538 (timer::push): Move bulk of implementation to...
11539 (timer::push_internal): ...here. New function.
11540 (timer::pop): Move bulk of implementation to...
11541 (timer::pop_internal): ...here. New function.
11542 (timer::push_client_item): New.
11543 (timer::pop_client_item): New.
11544 (timer::print_row): New function, taken from timer::print.
11545 (timer::print): Print "GCC items" header if we also have client
11546 items. Move row-printing to timer::print_row. Print any client
11547 items.
11548 (timer::get_topmost_item_name): New method.
11549 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
11550 (TV_JIT_CLIENT_CODE): New.
11551 * timevar.h (timer::push_client_item): New declaration.
11552 (timer::pop_client_item): New declaration.
11553 (timer::get_topmost_item_name): New method.
11554 (timer::push_internal): New declaration.
11555 (timer::pop_internal): New declaration.
11556 (timer::print_row): New declaration.
11557 (timer::named_items): New declaration.
11558 (timer::m_jit_client_items): New field.
11559 (timer): Add friend class named_items.
11560 (auto_timevar::auto_timevar): Add timer param.
11561 (auto_timevar::~auto_timevar): Use field "m_timer".
11562 (auto_timevar::m_timer): New field.
11563 * toplev.c (initialize_rtl): Add g_timer as param when
11564 constructing auto_timevar instance.
11565 (toplev::toplev): Add "external_timer" param, and use it to
11566 initialize the "g_timer" global if non-NULL.
11567 (toplev::~toplev): If this created "g_timer", delete it.
11568 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
11569 with "external_timer" timer *.
11570
11571 2015-08-03 Alexander Basov <coohpt@gmail.com>
11572
11573 PR middle-end/64744
11574 PR middle-end/48470
11575 PR middle-end/43404
11576 * cfgexpand.c (expand_one_var): Add check if stack is going to
11577 be used in naked function.
11578 * expr.c (expand_expr_addr_expr_1): Remove excess checking
11579 whether expression should not reside in MEM.
11580 * function.c (use_register_for_decl): Do not use registers for
11581 non-register things (volatile, float, BLKMode) in naked functions.
11582
11583 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
11584
11585 PR target/67060
11586 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
11587 Adjust splits to match new pattern.
11588
11589 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11590
11591 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
11592 (VEC_M): Likewise.
11593 (VEC_N): Likewise.
11594 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
11595 point in VSX registers.
11596
11597 * config/rs6000/constraints.md (wb constraint): Document unused
11598 w<x> constraint.
11599 (we constraint): Likewise.
11600 (wo constraint): Likewise.
11601 (wp constraint): New constraint for IEEE 128-bit floating point in
11602 VSX registers.
11603 (wq constraint): Likewise.
11604
11605 * config/rs6000/predicates.md (easy_fp_constant): Add support for
11606 IEEE 128-bit floating point in VSX registers.
11607 (easy_scalar_constant): Likewise.
11608
11609 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
11610 constraints (wp, wq) for IEEE 128-bit floating point in VSX
11611 registers.
11612 (rs6000_init_hard_regno_mode_ok): Likewise.
11613
11614 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
11615 floating point in VSX registers.
11616 (VSX_L): Likewise.
11617 (VSX_M): Likewise.
11618 (VSX_M2): Likewise.
11619 (VSm): Likewise.
11620 (VSs): Likewise.
11621 (VSr): Likewise.
11622 (VSa): Likewise.
11623 (VSv): Likewise.
11624 (vsx_le_permute_<mode>): Add support to properly swap bytes for
11625 IEEE 128-bit floating point in VSX registers on little endian.
11626 (vsx_le_undo_permute_<mode>): Likewise.
11627 (vsx_le_perm_load_<mode>): Likewise.
11628 (vsx_le_perm_store_<mode>): Likewise.
11629 (splitters for IEEE 128-bit fp moves): Likewise.
11630
11631 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
11632 wq constraints.
11633
11634 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
11635 floating point in VSX registers.
11636 (VM2): Likewise.
11637
11638 * doc/md.text (Machine Constraints): Document wp and wq
11639 constraints on PowerPC.
11640
11641 2015-08-03 Jeff Law <law@redhat.com>
11642
11643 PR middle-end/66314
11644 PR gcov-profile/66899
11645 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
11646 iterate over the jump threading paths when an element in the
11647 jump threading paths array is eliminated.
11648
11649 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
11650
11651 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
11652
11653 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
11654
11655 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
11656 is_use_properly_guarded the variable def_preds. Free its
11657 contents before returning.
11658 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
11659 (is_use_properly_guarded): Replace local variable def_preds with
11660 a parameter. Adjust accordingly. Only update *def_preds if it's
11661 the empty vector.
11662
11663 2015-08-03 Richard Biener <rguenther@suse.de>
11664
11665 * genmatch.c (simplify::for_subst_vec): New member.
11666 (binary_ok): New helper for for lowering.
11667 (lower_for): Delay substituting operators into result expressions
11668 if we can merge the results eventually again.
11669 (capture_info::walk_result): Adjust for user_id appearing as
11670 result expression operator.
11671 (expr::gen_transform): Likewise.
11672 (dt_simplify::gen_1): Likewise.
11673 (dt_simplify::gen): Pass not substituted operators to tail
11674 functions or initialize local variable with it.
11675 (decision_tree::gen): Adjust function signature.
11676 * match.pd: Fix tests against global code and add default
11677 cases to switch stmts.
11678
11679 2015-08-03 Richard Biener <rguenther@suse.de>
11680
11681 * genmatch.c (dt_simplify::gen): Create captures array
11682 with an initializer.
11683
11684 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11685
11686 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
11687 the host compiler is affected by placement new aliasing bug.
11688 * configure: Regenerate.
11689 * Makefile.in (ALIASING_FLAGS): New variable.
11690 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
11691
11692 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
11693
11694 PR target/66731
11695 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
11696 (negmulsf3_vfp): Likewise.
11697 (muldf3negdf_vfp): Disable for -frounding-math.
11698 (mulsf3negsf_vfp): Likewise.
11699 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
11700 fix MULT cost with -frounding-math.
11701
11702 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11703
11704 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
11705 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
11706 explicit. Prefer to add the flag whenever possible.
11707 (noce_process_if_block): Try noce_try_store_flag_constants before
11708 noce_try_cmove.
11709
11710 2015-08-03 Richard Biener <rguenther@suse.de>
11711
11712 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
11713 New hash-map to record equivalent transforms.
11714 (dt_node::analyze): Populate the equivalent transforms hash-map.
11715 (dt_simplify::info): Add reference to hash-map entry.
11716 (dt_simplify::gen): If we have split out a function for the
11717 transform, generate a call to it.
11718 (sinfo_hashmap_traits::hash): New function.
11719 (compare_op): New helper function for ...
11720 (sinfo_hashmap_traits::equal_keys): ... this new function.
11721 (decision_tree::gen): Split out common equivalent transforms
11722 into functions.
11723
11724 2015-08-03 Richard Biener <rguenther@suse.de>
11725
11726 * gimple-fold.c (fold_gimple_assign): Remove folding of
11727 the comparison in COND_EXPRs.
11728
11729 2015-08-03 Richard Biener <rguenther@suse.de>
11730
11731 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
11732 on the rhs of assignments first simplify the embedded
11733 GENERIC condition.
11734
11735 2015-08-03 Richard Biener <rguenther@suse.de>
11736
11737 PR tree-optimization/66917
11738 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
11739 field.
11740 (DR_VECT_AUX): New macro.
11741 (set_dr_misalignment): Adjust.
11742 (dr_misalignment): Likewise.
11743 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11744 Compute whether the base is at least element aligned.
11745 * tree-vect-stmts.c (ensure_base_align): Adjust.
11746 (vectorizable_store): If the base is not element aligned
11747 preserve alignment of the original access if misalignment is unknown.
11748 (vectorizable_load): Likewise.
11749
11750 2015-08-02 Martin Sebor <msebor@redhat.com>
11751
11752 * c-family/c.opt (-Wframe-address): New warning option.
11753 * doc/invoke.texi (Wframe-address): Document it.
11754 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
11755 Clarify possible effects of calling the functions with non-zero
11756 arguments and mention -Wframe-address.
11757 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
11758
11759 2015-08-01 Michael Collison <michael.collison@linaro.org
11760 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11761
11762 * config/arm/arm.md (*arm_smin_cmp): New pattern.
11763 (*arm_umin_cmp): Likewise.
11764
11765 2015-08-01 Caroline Tice <cmtice@google.com>
11766
11767 PR 66521
11768 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
11769 global variables.
11770 (vtbl_find_mangled_name): New function.
11771 (vtbl_register_mangled_name): New function.
11772 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
11773 mangled name in mangled name vectors.
11774 (find_or_create_vtbl_map_node): Ditto.
11775 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
11776 update recursion_depth on function entry; pass it to every recursive
11777 call; automatically exit if depth > 25 (give up looking at that point).
11778 (verify_bb_vtables): Initialize recursion_depth and pass it to
11779 var_is_used_for_virtual_call_p.
11780 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
11781 global variable decls.
11782 (vtbl_register_mangled_name): New extern function decl.
11783
11784 2015-08-01 Tom de Vries <tom@codesourcery.com>
11785
11786 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
11787 function.
11788 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
11789 Declare.
11790 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
11791 operation_no_trapping_overflow. Allow non-overflow operations.
11792 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
11793 operations.
11794
11795 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
11796
11797 PR target/67049
11798 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
11799
11800 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11801
11802 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
11803 Enable for TARGET_32BIT.
11804 (*if_move_neg): Likewise.
11805
11806 2015-07-31 Nick Clifton <nickc@redhat.com>
11807
11808 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
11809 Returns true for __model__.
11810 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11811
11812 2015-07-31 Alan Modra <amodra@gmail.com>
11813
11814 PR target/66870
11815 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
11816 (rs6000_emit_prologue): Set it.
11817 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
11818
11819 2015-07-31 Richard Biener <rguenther@suse.de>
11820
11821 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
11822 -> X == (C1 ^ C2) which is already implemented in match.pd.
11823 Remove redundant dispatching to fold_relational_const.
11824 Move unordered self and NaN compares ...
11825 * match.pd: ... as patterns here. Remove some stray captures
11826 and add a comment.
11827
11828 2015-07-31 Petr Murzin <petr.murzin@intel.com>
11829
11830 * config/i386/i386.c
11831 (bdesc_special_args): Convert mask type from signed to unsigned for
11832 masked builtins.
11833 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
11834 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
11835 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
11836 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
11837 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
11838 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
11839 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
11840 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
11841 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
11842 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
11843 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
11844 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
11845 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
11846 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
11847 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
11848 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
11849 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
11850 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
11851 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
11852 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
11853 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
11854 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
11855 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
11856 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
11857 * config/i386/i386-builtin-types.def
11858 (V16QI_FTYPE_V16SI): Remove.
11859 (V8DF_FTYPE_V8SI): Ditto.
11860 (V8HI_FTYPE_V8DI): Ditto.
11861 (V8SI_FTYPE_V8DI): Ditto.
11862 (V8SF_FTYPE_V8DF): Ditto.
11863 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
11864 (V16HI_FTYPE_V16SI): Ditto.
11865 (V16SF_FTYPE_V16HI): Ditto.
11866 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
11867 (V16SF_FTYPE_V16SI): Ditto.
11868 (V4DI_FTYPE_V4DI): Ditto.
11869 (V16SI_FTYPE_V16SF): Ditto.
11870 (V16SF_FTYPE_FLOAT): Ditto.
11871 (V8DF_FTYPE_DOUBLE): Ditto.
11872 (V8DI_FTYPE_INT64): Ditto.
11873 (V8DI_FTYPE_V4DI): Ditto.
11874 (V16QI_FTYPE_V8DI): Ditto.
11875 (UINT_FTYPE_V4SF): Ditto.
11876 (UINT64_FTYPE_V4SF): Ditto.
11877 (UINT_FTYPE_V2DF): Ditto.
11878 (UINT64_FTYPE_V2DF): Ditto.
11879 (V16SI_FTYPE_V16SI): Ditto.
11880 (V8DI_FTYPE_V8DI): Ditto.
11881 (V16SI_FTYPE_PV4SI): Ditto.
11882 (V16SF_FTYPE_PV4SF): Ditto.
11883 (V8DI_FTYPE_PV2DI): Ditto.
11884 (V8DF_FTYPE_PV2DF): Ditto.
11885 (V4DI_FTYPE_PV2DI): Ditto.
11886 (V4DF_FTYPE_PV2DF): Ditto.
11887 (V16SI_FTYPE_PV2SI): Ditto.
11888 (V16SF_FTYPE_PV2SF): Ditto.
11889 (V8DI_FTYPE_PV4DI): Ditto.
11890 (V8DF_FTYPE_PV4DF): Ditto.
11891 (V8SF_FTYPE_FLOAT): Ditto.
11892 (V4SF_FTYPE_FLOAT): Ditto.
11893 (V4DF_FTYPE_DOUBLE): Ditto.
11894 (V8SF_FTYPE_PV4SF): Ditto.
11895 (V8SI_FTYPE_PV4SI): Ditto.
11896 (V4SI_FTYPE_PV2SI): Ditto.
11897 (V8SF_FTYPE_PV2SF): Ditto.
11898 (V8SI_FTYPE_PV2SI): Ditto.
11899 (V16SF_FTYPE_PV8SF): Ditto.
11900 (V16SI_FTYPE_PV8SI): Ditto.
11901 (V8DI_FTYPE_V8SF): Ditto.
11902 (V4DI_FTYPE_V4SF): Ditto.
11903 (V2DI_FTYPE_V4SF): Ditto.
11904 (V64QI_FTYPE_QI): Ditto.
11905 (V32HI_FTYPE_HI): Ditto.
11906 (V8UHI_FTYPE_V8UHI): Ditto.
11907 (V16UHI_FTYPE_V16UHI): Ditto.
11908 (V32UHI_FTYPE_V32UHI): Ditto.
11909 (V2UDI_FTYPE_V2UDI): Ditto.
11910 (V4UDI_FTYPE_V4UDI): Ditto.
11911 (V8UDI_FTYPE_V8UDI): Ditto.
11912 (V4USI_FTYPE_V4USI): Ditto.
11913 (V8USI_FTYPE_V8USI): Ditto.
11914 (V16USI_FTYPE_V16USI): Ditto.
11915 (V2DF_FTYPE_V2DF_UINT64): Ditto.
11916 (V2DI_FTYPE_V2DF_V2DF): Ditto.
11917 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
11918 (V8DF_FTYPE_V8DF_V8DI): Ditto.
11919 (V4SF_FTYPE_V4SF_UINT64): Ditto.
11920 (V4SI_FTYPE_V4SF_V4SF): Ditto.
11921 (V16SF_FTYPE_V16SF_V16SI): Ditto.
11922 (V64QI_FTYPE_V32HI_V32HI): Ditto.
11923 (V32HI_FTYPE_V16SI_V16SI): Ditto.
11924 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
11925 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
11926 (V32HI_FTYPE_V64QI_V64QI): Ditto.
11927 (V32HI_FTYPE_V32HI_V32HI): Ditto.
11928 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
11929 (V16SI_FTYPE_V16SI_V4SI): Ditto.
11930 (V16SI_FTYPE_V16SI_V16SI): Ditto.
11931 (V16SI_FTYPE_V32HI_V32HI): Ditto.
11932 (V16SI_FTYPE_V16SI_SI): Ditto.
11933 (V8DI_FTYPE_V8DI_V8DI): Ditto.
11934 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
11935 (V8DI_FTYPE_V16SI_V16SI): Ditto.
11936 (V8DI_FTYPE_V8DI_V2DI): Ditto.
11937 (QI_FTYPE_QI): Ditto.
11938 (SI_FTYPE_SI): Ditto.
11939 (DI_FTYPE_DI): Ditto.
11940 (QI_FTYPE_QI_QI): Ditto.
11941 (QI_FTYPE_QI_INT): Ditto.
11942 (HI_FTYPE_HI_INT): Ditto.
11943 (SI_FTYPE_SI_INT): Ditto.
11944 (DI_FTYPE_DI_INT): Ditto.
11945 (HI_FTYPE_V16QI_V16QI): Ditto.
11946 (SI_FTYPE_V32QI_V32QI): Ditto.
11947 (DI_FTYPE_V64QI_V64QI): Ditto.
11948 (QI_FTYPE_V8HI_V8HI): Ditto.
11949 (HI_FTYPE_V16HI_V16HI): Ditto.
11950 (SI_FTYPE_V32HI_V32HI): Ditto.
11951 (QI_FTYPE_V4SI_V4SI): Ditto.
11952 (QI_FTYPE_V8SI_V8SI): Ditto.
11953 (QI_FTYPE_V2DI_V2DI): Ditto.
11954 (QI_FTYPE_V4DI_V4DI): Ditto.
11955 (QI_FTYPE_V8DI_V8DI): Ditto.
11956 (HI_FTYPE_V16SI_V16SI): Ditto.
11957 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
11958 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
11959 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
11960 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
11961 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
11962 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
11963 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
11964 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
11965 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
11966 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
11967 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
11968 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
11969 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
11970 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
11971 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
11972 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
11973 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
11974 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
11975 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
11976 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
11977 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
11978 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
11979 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
11980 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
11981 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
11982 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
11983 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
11984 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
11985 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
11986 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
11987 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
11988 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
11989 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
11990 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
11991 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
11992 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
11993 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
11994 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
11995 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
11996 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
11997 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
11998 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
11999 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
12000 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
12001 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
12002 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
12003 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
12004 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
12005 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
12006 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
12007 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
12008 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
12009 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
12010 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
12011 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
12012 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
12013 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
12014 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
12015 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
12016 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
12017 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
12018 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
12019 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
12020 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
12021 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
12022 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
12023 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
12024 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
12025 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
12026 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
12027 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
12028 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
12029 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
12030 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
12031 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
12032 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
12033 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
12034 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
12035 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
12036 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
12037 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
12038 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
12039 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
12040 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
12041 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
12042 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
12043 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
12044 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
12045 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
12046 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
12047 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
12048 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
12049 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
12050 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
12051 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
12052 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
12053 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
12054 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
12055 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
12056 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
12057 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
12058 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
12059 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
12060 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
12061 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
12062 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
12063 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
12064 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
12065 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
12066 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
12067 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
12068 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
12069 (HI_FTYPE_HI): Ditto.
12070 (HI_FTYPE_V16QI): Ditto.
12071 (SI_FTYPE_V32QI): Ditto.
12072 (DI_FTYPE_V64QI): Ditto.
12073 (QI_FTYPE_V8HI): Ditto.
12074 (HI_FTYPE_V16HI): Ditto.
12075 (SI_FTYPE_V32HI): Ditto.
12076 (QI_FTYPE_V4SI): Ditto.
12077 (QI_FTYPE_V8SI): Ditto.
12078 (HI_FTYPE_V16SI): Ditto.
12079 (QI_FTYPE_V2DI): Ditto.
12080 (QI_FTYPE_V4DI): Ditto.
12081 (QI_FTYPE_V8DI): Ditto.
12082 (V16QI_FTYPE_HI): Ditto.
12083 (V32QI_FTYPE_SI): Ditto.
12084 (V64QI_FTYPE_DI): Ditto.
12085 (V8HI_FTYPE_QI): Ditto.
12086 (V16HI_FTYPE_HI): Ditto.
12087 (V32HI_FTYPE_SI): Ditto.
12088 (V4SI_FTYPE_QI): Ditto.
12089 (V4SI_FTYPE_HI): Ditto.
12090 (V8SI_FTYPE_QI): Ditto.
12091 (V8SI_FTYPE_HI): Ditto.
12092 (V2DI_FTYPE_QI): Ditto.
12093 (V4DI_FTYPE_QI): Ditto.
12094 (HI_FTYPE_HI_HI): Ditto.
12095 (SI_FTYPE_SI_SI): Ditto.
12096 (DI_FTYPE_DI_DI): Ditto.
12097 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
12098 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
12099 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
12100 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
12101 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
12102 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
12103 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
12104 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
12105 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
12106 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
12107 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
12108 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
12109 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
12110 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
12111 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
12112 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
12113 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
12114 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
12115 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
12116 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
12117 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
12118 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
12119 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
12120 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
12121 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
12122 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
12123 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
12124 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
12125 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
12126 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
12127 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
12128 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
12129 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
12130 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
12131 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
12132 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
12133 (V16SI_FTYPE_HI): Ditto.
12134 (V8DI_FTYPE_QI): Ditto.
12135 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
12136 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
12137 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
12138 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
12139 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
12140 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
12141 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
12142 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
12143 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
12144 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
12145 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
12146 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
12147 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
12148 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
12149 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
12150 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
12151 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
12152 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
12153 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
12154 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
12155 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
12156 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
12157 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
12158 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
12159 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
12160 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
12161 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
12162 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
12163 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
12164 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
12165 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
12166 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
12167 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
12168 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
12169 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
12170 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
12171 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
12172 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
12173 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
12174 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
12175 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
12176 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
12177 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
12178 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
12179 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
12180 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
12181 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
12182 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
12183 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
12184 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
12185 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
12186 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
12187 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
12188 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
12189 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
12190 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
12191 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
12192 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
12193 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
12194 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
12195 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
12196 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
12197 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
12198 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
12199 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
12200 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
12201 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
12202 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
12203 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
12204 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
12205 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
12206 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
12207 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
12208 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
12209 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
12210 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
12211 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
12212 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
12213 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
12214 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
12215 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
12216 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
12217 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
12218 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
12219 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
12220 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
12221 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
12222 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
12223 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
12224 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
12225 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
12226 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
12227 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
12228 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
12229 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
12230 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
12231 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
12232 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
12233 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
12234 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
12235 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
12236 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
12237 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
12238 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
12239 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
12240 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
12241 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
12242 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
12243 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
12244 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
12245 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
12246 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
12247 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
12248 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
12249 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
12250 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
12251 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
12252 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
12253 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
12254 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
12255 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
12256 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
12257 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
12258 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
12259 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
12260 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
12261 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
12262 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
12263 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
12264 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
12265 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
12266 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
12267 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
12268 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
12269 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
12270 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
12271 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
12272 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
12273 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
12274 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
12275 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
12276 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
12277 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
12278 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
12279 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
12280 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
12281 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
12282 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
12283 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
12284 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
12285 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
12286 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
12287 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
12288 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
12289 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
12290 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
12291 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
12292 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
12293 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
12294 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
12295 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
12296 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
12297 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
12298 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
12299 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
12300 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
12301 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
12302 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
12303 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
12304 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
12305 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
12306 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
12307 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
12308 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
12309 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
12310 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
12311 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
12312 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
12313 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
12314 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
12315 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
12316 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
12317 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
12318 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
12319 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
12320 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
12321 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
12322 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
12323 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
12324 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
12325 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
12326 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
12327 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
12328 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
12329 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
12330 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
12331 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
12332 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
12333 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
12334 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
12335 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
12336 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
12337 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
12338 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
12339 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
12340 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
12341 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
12342 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
12343 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
12344 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
12345 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
12346 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
12347 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
12348 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
12349 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
12350 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
12351 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
12352 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
12353 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
12354 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
12355 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
12356 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
12357 (QI_FTYPE_V8DF_INT_QI): Ditto.
12358 (QI_FTYPE_V4DF_INT_QI): Ditto.
12359 (QI_FTYPE_V2DF_INT_QI): Ditto.
12360 (HI_FTYPE_V16SF_INT_HI): Ditto.
12361 (QI_FTYPE_V8SF_INT_QI): Ditto.
12362 (QI_FTYPE_V4SF_INT_QI): Ditto.
12363 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
12364
12365 2015-07-31 Richard Biener <rguenther@suse.de>
12366
12367 * gimple-fold.c (fold_gimple_assign): Remove folding of
12368 GIMPLE_BINARY_RHS.
12369
12370 2015-07-31 Tom de Vries <tom@codesourcery.com>
12371
12372 PR tree-optimization/66846
12373 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
12374 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
12375 (expand_omp_target) [ENABLE_CHECKING]: Same.
12376 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
12377 cfun if !LOOPS_NEED_FIXUP.
12378 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
12379 that omp_for already has its own loop struct.
12380 * tree-parloops.c (create_phi_for_local_result)
12381 (create_call_for_reduction): Handle simple latch bb.
12382 (create_parallel_loop): Add simple latch bb to preserve
12383 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
12384 (gen_parallel_loop): Remove call to cancel_loop_tree.
12385 (parallelize_loops): Skip loops that are inner loops of parallelized
12386 loops.
12387 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
12388 verify_loop_structure.
12389
12390 2015-07-30 Anatoly Sokolov <aesok@post.ru>
12391
12392 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
12393 * config/v850/v850.md (RV_REGNUM): New constants.
12394 * config/v850/v850.c (v850_libcall_value): New functions.
12395 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
12396 (TARGET_LIBCALL_VALUE): Define.
12397
12398 2015-07-30 Anatoly Sokolov <aesok@post.ru>
12399
12400 * rtl.h (lowpart_subreg): Move in file.
12401 * loop-iv.c (lowpart_subreg): Move to...
12402 * simplify-rtx.c (lowpart_subreg): ...here.
12403 (simplify_binary_operation_1): Use lowpart_subreg instead of
12404 simplify_gen_subreg.
12405 * expr.c (expand_expr_real_2): Ditto.
12406 * emit-rtl.c (gen_lowpart_common): Ditto.
12407 * combine.c (gen_lowpart_for_combine): Ditto.
12408 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
12409 expand_debug_source_expr): Ditto.
12410
12411 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
12412
12413 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
12414 (expand_builtin_atomic_clear): Remove support for atomic_clear
12415 pattern.
12416
12417 2015-07-30 Richard Biener <rguenther@suse.de>
12418
12419 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
12420 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
12421 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
12422 redundant operand canonicalization.
12423
12424 2015-07-30 David Sherwood <david.sherwood@arm.com>
12425
12426 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
12427 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
12428 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
12429 * config/arm/arm.c (neon_valid_immediate): Likewise.
12430 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
12431 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
12432 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
12433 (expand_vec_perm_vpshufb2_vpermq): Likewise.
12434 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
12435 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
12436 * config/i386/sse.md
12437 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
12438 (*ssse3_palignr<mode>_perm): Likewise.
12439 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
12440 * config/spu/spu.c (arith_immediate_p): Likewise.
12441 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12442 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
12443
12444 2015-07-30 Richard Biener <rguenther@suse.de>
12445
12446 * genmatch.c (decision_tree::gen_gimple): Merge with ...
12447 (decision_tree::gen_generic): ... this into ...
12448 (decision_tree::gen): ... this.
12449 (main): Adjust callers.
12450
12451 2015-07-30 Richard Biener <rguenther@suse.de>
12452
12453 * genmatch.c (verbose): New global.
12454 (warning_at): Add overload with source_location.
12455 (capture_info::capture_info): Add bool whether generating gimple
12456 or generic. Add gimple member.
12457 (capture_info::cinfo): Add capture member.
12458 (capture_info::walk_match): Record capture. Warn on
12459 non-captured leafs.
12460 (capture_info::walk_c_expr): Add more fragments captures cannot
12461 escape through. Warn on escaped captures.
12462 (dt_simplify::gen_1): Warn on operands we force to have no
12463 side-effects.
12464 (main): Initialize verbose.
12465 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
12466
12467 2015-07-30 Richard Biener <rguenther@suse.de>
12468
12469 PR middle-end/67053
12470 * match.pd: Allow both operands to independently have conversion
12471 when simplifying compares of addresses.
12472
12473 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
12474
12475 PR target/66217
12476 PR target/67045
12477 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
12478 around those cases that need one.
12479
12480 2015-07-29 Aditya Kumar <hiraditya@msn.com>
12481
12482 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
12483
12484 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
12485
12486 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
12487 New. Copied from config/i386/gnu-user.h.
12488 (ASM_COMMENT_START): Likewise.
12489 (DBX_REGISTER_NUMBER): Likewise.
12490
12491 2015-07-29 Richard Biener <rguenther@suse.de>
12492
12493 * gimple-fold.c (fold_gimple_cond): Remove.
12494 (fold_stmt_1): Do not call it.
12495
12496 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
12497
12498 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
12499 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
12500
12501 * config/aarch64/aarch64-modes.def: Add HFmode.
12502
12503 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12504 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
12505
12506 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
12507 aarch64_promoted_type): New.
12508
12509 (aarch64_float_const_representable_p): Disable HFmode.
12510 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
12511 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
12512 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
12513
12514 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
12515 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
12516
12517 * config/aarch64/iterators.md (GPF_F16): New.
12518
12519 2015-07-29 Richard Biener <rguenther@suse.de>
12520
12521 * match.pd: Merge address comparison patterns and make them
12522 handle some more cases.
12523
12524 2015-07-29 Richard Biener <rguenther@suse.de>
12525
12526 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
12527 (parser::parse_capture): Add bool argument on whether to reject
12528 unknown captures.
12529 (parser::parse_expr): Adjust.
12530 (parser::parse_op): Likewise.
12531 (parser::parse_pattern): Likewise.
12532
12533 2015-07-29 Richard Biener <rguenther@suse.de>
12534
12535 * gimple-fold.c (has_use_on_stmt): New function.
12536 (replace_stmt_with_simplification): Use it to allow
12537 abnormals originally referenced in the stmt.
12538 (fold_stmt_1): Canonicalize operand order.
12539
12540 2015-07-28 David Sherwood <david.sherwood@arm.com>
12541
12542 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
12543 GET_MODE_INNER unconditionally.
12544 * config/spu/spu.c (arith_immediate_p): Likewise.
12545 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
12546 * expmed.c (synth_mult): Remove check for VOIDmode result from
12547 GET_MODE_INNER.
12548 (expand_mult_const): Likewise.
12549 * fold-const.c (fold_binary_loc): Replace call to element_precision
12550 with call to GET_MODE_PRECISION.
12551 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
12552 m->name.
12553 (emit_mode_inner): Likewise.
12554 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
12555 result check.
12556 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
12557 (GET_MODE_UNIT_PRECISION): Likewise.
12558 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
12559 * simplify-rtx.c (simplify_immed_subreg): Likewise.
12560 * stor-layout.c (bitwise_type_for_mode): Update assert.
12561 (element_precision): Remove.
12562
12563 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12564
12565 * target-insns.def (reload_load_address): New targetm instruction
12566 pattern.
12567 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
12568
12569 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12570
12571 * target-insns.def (atomic_test_and_set): New targetm instruction
12572 pattern.
12573 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
12574 HAVE_*/gen_* interface.
12575
12576 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12577
12578 * target-insns.def (can_extend, ptr_extend): New targetm instruction
12579 patterns.
12580 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
12581 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12582 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
12583 * rtlanal.c (nonzero_bits1): Likewise.
12584 (num_sign_bit_copies1): Likewise.
12585
12586 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12587
12588 * target-insns.def (eh_return): New targetm instruction pattern.
12589 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
12590 interface.
12591 * function.c (thread_prologue_and_epilogue_insns): Remove
12592 preprocessor condition.
12593
12594 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12595
12596 * target-insns.def (indirect_jump): New targetm instruction pattern.
12597 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
12598 interface.
12599
12600 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12601
12602 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
12603 instead of nonimmediate_operand. Remove C condiition.
12604
12605 2015-07-28 Richard Biener <rguenther@suse.de>
12606
12607 * match.pd: Add more simplification of address comparisons.
12608
12609 2015-07-28 Richard Biener <rguenther@suse.de>
12610
12611 * match.pd: Re-order two cases in comparison with max/min
12612 value simplification to make it apply for bools.
12613
12614 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12615
12616 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
12617 Handle simple SIGN_EXTEND or ZERO_EXTEND.
12618 (aarch64_rtx_costs): Properly strip extend or extract before
12619 passing down to rtx costs again.
12620
12621 2015-07-28 Nick Clifton <nickc@redhat.com>
12622
12623 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
12624 Optimizes the case where -mes0 is active and a constant symbolic
12625 address is used.
12626 * config/rl78/rl78-protos.h: Prototype the new function.
12627 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
12628
12629 2015-07-28 Tom de Vries <tom@codesourcery.com>
12630
12631 * tree-parloops.c (reduc_stmt_res): New function.
12632 (initialize_reductions, add_field_for_reduction)
12633 (create_phi_for_local_result, create_loads_for_reductions)
12634 (create_stores_for_reduction, build_new_reduction): Handle case that
12635 reduc_stmt is a phi.
12636 (gather_scalar_reductions): Allow double_reduc reductions.
12637
12638 2015-07-28 Richard Biener <rguenther@suse.de>
12639
12640 * fold-const.c (fold_comparison): Remove equality folding
12641 of decl addresses ...
12642 * match.pd: ... here and merge with existing pattern.
12643
12644 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12645
12646 PR tree-optimization/66828
12647 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
12648 from int64_t to uint64_t.
12649
12650 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
12651
12652 * opts-common.c (read_cmdline_option): List DriverOnly enum values
12653 as valid only in the error message of the driver, not in the
12654 messages of the language compilers.
12655
12656 2015-07-27 Tom de Vries <tom@codesourcery.com>
12657
12658 * tree-parloops.c (gather_scalar_reductions): Simplify function
12659 structure.
12660
12661 2015-07-27 Marek Polacek <polacek@redhat.com>
12662
12663 * ipa-devirt.c (types_same_for_odr): Fix typo.
12664
12665 2015-07-27 Jason Merrill <jason@redhat.com>
12666
12667 PR debug/66468
12668 * dwarf2out.c (gen_inlined_subroutine_die): Check
12669 cgraph_function_possibly_inlined_p.
12670
12671 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12672
12673 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
12674 Place integer variant first.
12675 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12676
12677 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12678
12679 PR/63870
12680 * config/arm/arm-builtins.c (enum arm_builtins):
12681 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
12682 (ARM_BUILTIN_NEON_BASE): Rename macro to....
12683 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
12684 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
12685 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
12686
12687 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12688
12689 PR/63870
12690 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
12691 Add qualifier_lane_index.
12692 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
12693 (arm_getlane_qualifiers): Use qualifier_lane_index.
12694 (arm_lanemac_qualifiers): Rename to...
12695 (arm_mac_n_qualifiers): ...this.
12696 (LANEMAC_QUALIFIERS): Rename to...
12697 (MAC_N_QUALIFIERS): ...this.
12698 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
12699 (arm_setlane_qualifiers): Use qualifier_lane_index.
12700 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
12701 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
12702 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
12703 (arm_expand_neon_builtin): Handle qualifier_lane_index.
12704
12705 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
12706 * config/arm/arm.c (bounds_check): Likewise, improve error message.
12707 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
12708 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
12709 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
12710 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
12711 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
12712 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
12713 qualifiers to TERNOP_IMM.
12714 (vdup_lane): Change qualifiers to GETLANE.
12715 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
12716 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
12717 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
12718 vqdmlsl_n): Change qualifiers to MAC_N.
12719
12720 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
12721 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
12722 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
12723 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
12724 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
12725 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
12726 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
12727 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
12728 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
12729 Remove call to neon_lane_bounds.
12730
12731 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12732
12733 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12734 Place integer variant first.
12735
12736 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
12737
12738 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
12739 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
12740 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
12741 for armv6kz targets.
12742 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
12743 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
12744 (FL_FOR_ARCH6ZK): Remove.
12745 (FL_FOR_ARCH6KZ): New.
12746 (arm_arch6zk): New declaration.
12747 * config/arm/arm-tables.opt: Regenerate.
12748 * config/arm/arm.c (arm_arch6kz): New.
12749 (arm_option_override): Set arm_arch6kz.
12750 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
12751 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
12752 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
12753
12754 2015-07-27 Marek Polacek <polacek@redhat.com>
12755
12756 PR c++/66555
12757 PR c/54979
12758 * doc/invoke.texi: Document -Wtautological-compare.
12759
12760 2015-07-27 Richard Biener <rguenther@suse.de>
12761
12762 * genmatch.c (decision_tree::gen_gimple): Split out large
12763 subtrees into separate functions.
12764 (decision_tree::gen_generic): Likewise.
12765
12766 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
12767
12768 * config/alpha/alpha.c: Use SUBREG_P predicate.
12769 * config/alpha/predicates.md: Ditto.
12770
12771 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
12772
12773 * config.host (s390*-*-*): Include driver-native.c only when
12774 building with s390* as host *and* target.
12775
12776 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
12777
12778 PR target/66930
12779 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
12780 T bit register modified_between_p check.
12781
12782 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12783
12784 * config/i386/i386.c: Use SUBREG_P predicate.
12785 * config/i386/i386.md: Ditto.
12786 * config/i386/sse.md: Ditto.
12787 * config/i386/predicates.md: Ditto.
12788
12789 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12790
12791 PR target/67004
12792 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
12793 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
12794
12795 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12796
12797 * Makefile.in: Remove use of TREEBROWSER.
12798 * config.in: Regenerated.
12799 * configure: Regenerated.
12800 * configure.ac: Remove definition of TREEBROWSER.
12801 * tree-browser.c: Removed.
12802 * tree-browser.def: Removed.
12803
12804 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12805
12806 * graphite-scop-detection.c: Include gimple-pretty-print.h.
12807 (stmt_simple_for_scop_p): Print when a stmt is not handled in
12808 Graphite.
12809 (scopdet_basic_block_info): Print when a loop or bb cannot be
12810 represented in Graphite.
12811
12812 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12813
12814 PR target/66648
12815 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
12816 execution guard when min_size is less than size_needed.
12817
12818 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12819
12820 * doc/install.texi: Document supported versions of ISL.
12821
12822 2015-07-25 Jeff Law <law@redhat.com>
12823
12824 Revert:
12825 PR lto/66752
12826 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12827 unable to find X NE 0 in the tables, return X as the simplified
12828 condition.
12829 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12830 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
12831 to VISISTED_BBS. */
12832 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12833 after removing the control flow statement and unnecessary edges.
12834
12835 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
12836
12837 Revert:
12838 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
12839
12840 PR rtl-optimization/64164
12841 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12842 * tree-ssa-copyrename.c: Removed.
12843 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12844 -ftree-coalesce-vars.
12845 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12846 * common.opt (ftree-copyrename): Ignore.
12847 (ftree-coalesce-inlined-vars): Likewise.
12848 * doc/invoke.texi: Remove the ignored options above.
12849 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12850 * tree-ssa-coalesce.h: ... here.
12851 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12852 headers required by it.
12853 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12854 across variables when flag_tree_coalesce_vars. Check register
12855 use and promoted modes to allow coalescing. Moved to
12856 tree-ssa-coalesce.c.
12857 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12858 with its member functions to tree-ssa-coalesce.c.
12859 (var_map_base_init): Likewise. Renamed to
12860 compute_samebase_partition_bases.
12861 (partition_view_normal): Drop want_bases parameter.
12862 (partition_view_bitmap): Likewise.
12863 * tree-ssa-live.h: Adjust declarations.
12864 * tree-ssa-coalesce.c: Include explow.h.
12865 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12866 default defs at the entry point.
12867 (dump_part_var_map): New.
12868 (compute_optimized_partition_bases): New, called by...
12869 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12870 of compute_samebase_partition_bases. Adjust.
12871 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12872 * cfgexpand.c (leader_merge): New.
12873 (get_rtl_for_parm_ssa_default_def): New.
12874 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12875 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12876 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12877 redundant MEM attr setting.
12878 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12879 from...
12880 (expand_one_stack_var): ... this. New wrapper to check and
12881 skip already expanded SSA partitions.
12882 (record_alignment_for_reg_var): New, factored out of...
12883 (expand_one_var): ... this.
12884 (expand_one_ssa_partition): New.
12885 (adjust_one_expanded_partition_var): New.
12886 (expand_one_register_var): Check and skip already expanded SSA
12887 partitions.
12888 (expand_used_vars): Don't create DECLs for anonymous SSA
12889 names. Expand all SSA partitions, then adjust all SSA names.
12890 (pass::execute): Replace the loops that set
12891 SA.partition_to_pseudo from partition leaders and cleared
12892 DECL_RTL for multi-location variables, and that which used to
12893 rename vars and set attrs, with one that clears DECL_RTL and
12894 checks that PARMs and RESULTs default_defs match DECL_RTL.
12895 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12896 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12897 * explow.c (promote_ssa_mode): New.
12898 * explow.h (promote_ssa_mode): Declare.
12899 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12900 * function.c: Include cfgexpand.h.
12901 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12902 (use_register_for_parm_decl): Wrapper for the above to
12903 special-case the result_ptr.
12904 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12905 (split_complex_args): Take assign_parm_data_all argument.
12906 Pass it to rtl_for_parm. Set up rtl and context for split
12907 args.
12908 (assign_parms_augmented_arg_list): Adjust.
12909 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12910 multiple locations. Recognize split complex args.
12911 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12912 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12913 (assign_parm_setup_block): Prefer SSA-assigned location.
12914 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12915 if stack_parm is NULL.
12916 (assign_parm_setup_stack): Prefer SSA-assigned location.
12917 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12918 rtl before testing for pointer bounds. Special-case result_ptr.
12919 (expand_function_start): Maybe reset DECL_RTL of result.
12920 Prefer SSA-assigned location for result and static chain.
12921 Factor out DECL_RESULT and SET_DECL_RTL.
12922 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12923 anonymous SSA names. Use promote_ssa_mode.
12924 (get_temp_reg): Likewise.
12925 (remove_ssa_form): Adjust.
12926 * stor-layout.c (layout_decl): Don't set mem attributes of
12927 non-MEMs.
12928 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12929 and get its reg_usage for reg invalidation.
12930 (compute_bb_dataflow): Pass it insn.
12931 (emit_notes_in_bb): Likewise.
12932
12933 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12934
12935 * config/i386/i386.c (ix86_va_start): Remove
12936 unneeded !TARGET_64BIT check.
12937 (ix86_gimplify_va_arg): Ditto.
12938
12939 2015-07-24 Tom de Vries <tom@codesourcery.com>
12940
12941 * graphite-sese-to-poly.c (build_poly_scop): Always call
12942 rewrite_commutative_reductions_out_of_ssa.
12943
12944 2015-07-24 Tom de Vries <tom@codesourcery.com>
12945
12946 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
12947 flag_associative_math to FLOAT_TYPE_P. Honour
12948 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
12949
12950 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12951
12952 PR c++/64079
12953 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
12954 and "%qD" in warning_at instead of "%q+D" in warning.
12955
12956 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
12957
12958 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
12959 (ix86_function_abi): Cleanup.
12960
12961 2015-07-24 Michael Darling <darlingm@gmail.com>
12962
12963 PR other/66259
12964 * acinclude.m4: Reflects renaming of configure.in to configure.ac
12965 * configure: Likewise
12966 * configure.ac: Likewise
12967 * doc/install.texi: Likewise
12968 * doc/tm.texi: Likewise
12969 * doc/tm.texi.in: Likewise
12970
12971 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12972
12973 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
12974 manually swapping values.
12975 * cse.c (fold_rtx): Likewise.
12976 * lra-eliminations.c (form_sum): Likewise.
12977
12978 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
12979
12980 PR target/64003
12981 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
12982 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
12983 (*jcc_1, *jcc_2, jump, simple_return_internal)
12984 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
12985 Set length_nobnd attribute instead of length attribute.
12986 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
12987 (length_nobnd): Remove attribute.
12988 (length): Remove length_nobnd processing.
12989
12990 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
12991
12992 * gimplify.c (omp_default_clause): New function. Reorganize flow
12993 for clarity. Broken out of ...
12994 (omp_notice_variable): ... here.
12995
12996 2015-07-24 Gary Funck <gary@intrepid.com>
12997
12998 PR middle-end/66984
12999 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
13000 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
13001
13002 2015-07-24 Tom de Vries <tom@codesourcery.com>
13003
13004 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
13005 exit-first loop transform.
13006
13007 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
13008
13009 PR 66714
13010 * tree-cfg.c (struct replace_decls_d): New struct.
13011 (replace_block_vars_by_duplicates_1): New function.
13012 (replace_block_vars_by_duplicates): Use it to replace the decls
13013 in the value exprs by duplicates.
13014
13015 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
13016
13017 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
13018 -shared, -symbolic, -rdynamic.
13019
13020 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
13021
13022 PR target/65711
13023 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
13024 -dynamic-linker within %{!static %{!shared, and -rdynamic within
13025 %{!static.
13026
13027 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
13028
13029 PR ipa/66566
13030 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
13031 edge summary is available.
13032
13033 2015-07-24 Richard Biener <rguenther@suse.de>
13034
13035 * genmatch.c (struct dt_node): Add statistic fields.
13036 (dt_node::analyze): New method.
13037 (decision_tree::gen_gimple): Call analyze on the root node
13038 and print statistics to stderr.
13039 (decision_tree::gen_generic): Likewise.
13040
13041 2015-07-24 Richard Biener <rguenther@suse.de>
13042
13043 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
13044 against the highest or lowest possible integer ...
13045 * match.pd: ... as patterns here.
13046
13047 2015-07-24 Richard Biener <rguenther@suse.de>
13048
13049 * genmatch.c (struct capture_info): Add same_as field.
13050 (capture_info::capture_info): Initialize same_as.
13051 (capture_info::walk_match): Compute same_as.
13052 (capture_info::walk_result): Compute stuff for the leader.
13053 (capture_info::walk_c_expr): Likewise.
13054 (dt_simplify::gen_1): Only look at leaders when deciding
13055 to force no side-effects or emit side-effects of omitted operands.
13056
13057 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13058
13059 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
13060 reg note to the GPR -> FPR save instructions.
13061
13062 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13063
13064 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
13065 cheaper.
13066 (s390_expand_insv): Don't generate risbg pattern for constant zero
13067 sources.
13068 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
13069 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
13070 splitters.
13071
13072 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13073
13074 * config/s390/s390.c (s390_reorg): Clean up handling of processors
13075 with
13076 -mtune=
13077 (s390_issue_rate): Likewise.
13078 (s390_sched_reorder): Likewise.
13079 (s390_sched_variable_issue): Likewise.
13080 (s390_loop_unroll_adjust): Likewise.
13081 (s390_option_override): Likewise.
13082
13083 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13084
13085 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
13086 processor capabilities with -march=native.
13087 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
13088 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
13089 (S390_TARGET_BITS_STRING): Macro to simplify specs.
13090
13091 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13092
13093 * config/s390/s390.c (s390_issue_rate): Handle
13094 PROCESSOR_2094_Z9_EC.
13095 (s390_option_override): Likewise.
13096 (s390_adjust_priority): Likewise.
13097
13098 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13099
13100 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
13101 when cross compiling.
13102
13103 2015-07-24 Richard Biener <rguenther@suse.de>
13104
13105 * fold-const.c (maybe_canonicalize_comparison_1): Move
13106 A code CST canonicalization ...
13107 * match.pd: ... to a pattern here.
13108
13109 2015-07-24 Jiong Wang <jiong.wang@arm.com>
13110
13111 Revert:
13112 2015-07-22 Jiong Wang <jiong.wang@arm.com>
13113 PR target/63521
13114 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13115 (HONOR_REG_ALLOC_ORDER): Define.
13116
13117 2015-07-24 Richard Biener <rguenther@suse.de>
13118
13119 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
13120 * fold-const.c (fold_comparison): Move parameter does not
13121 alias &local simplification ...
13122 * match.pd: ... as a pattern here.
13123
13124 2015-07-24 Richard Biener <rguenther@suse.de>
13125
13126 * gimple-fold.c (replace_stmt_with_simplification): Special-case
13127 valueizing call operands.
13128 * gimple-match-head.c (maybe_push_res_to_seq): Take
13129 number of call arguments from ops array.
13130 (do_valueize): New function.
13131 (gimple_simplify): Return true if valueization changed
13132 any operand even if the result didn't simplify further.
13133
13134 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13135
13136 PR middle-end/25530
13137 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
13138
13139 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13140
13141 PR middle-end/25529
13142 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
13143
13144 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13145
13146 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
13147 instruction.
13148
13149 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13150
13151 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
13152 clean up.
13153
13154 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
13155
13156 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
13157 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
13158 targets here.
13159 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
13160 ms_va_list_type_node initialization.
13161
13162 2015-07-23 Jeff Law <law@redhat.com>
13163
13164 PR lto/66752
13165 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13166 unable to find X NE 0 in the tables, return X as the simplified
13167 condition.
13168 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13169 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13170 to VISISTED_BBS. */
13171 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13172 after removing the control flow statement and unnecessary edges.
13173
13174 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
13175
13176 * tree-pass.h (get_current_pass_name): Removed.
13177
13178 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
13179
13180 PR rtl-optimization/64164
13181 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13182 * tree-ssa-copyrename.c: Removed.
13183 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13184 -ftree-coalesce-vars.
13185 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13186 * common.opt (ftree-copyrename): Ignore.
13187 (ftree-coalesce-inlined-vars): Likewise.
13188 * doc/invoke.texi: Remove the ignored options above.
13189 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13190 * tree-ssa-coalesce.h: ... here.
13191 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13192 headers required by it.
13193 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13194 across variables when flag_tree_coalesce_vars. Check register
13195 use and promoted modes to allow coalescing. Moved to
13196 tree-ssa-coalesce.c.
13197 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13198 with its member functions to tree-ssa-coalesce.c.
13199 (var_map_base_init): Likewise. Renamed to
13200 compute_samebase_partition_bases.
13201 (partition_view_normal): Drop want_bases parameter.
13202 (partition_view_bitmap): Likewise.
13203 * tree-ssa-live.h: Adjust declarations.
13204 * tree-ssa-coalesce.c: Include explow.h.
13205 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13206 default defs at the entry point.
13207 (dump_part_var_map): New.
13208 (compute_optimized_partition_bases): New, called by...
13209 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13210 of compute_samebase_partition_bases. Adjust.
13211 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13212 * cfgexpand.c (leader_merge): New.
13213 (get_rtl_for_parm_ssa_default_def): New.
13214 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13215 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13216 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13217 redundant MEM attr setting.
13218 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13219 from...
13220 (expand_one_stack_var): ... this. New wrapper to check and
13221 skip already expanded SSA partitions.
13222 (record_alignment_for_reg_var): New, factored out of...
13223 (expand_one_var): ... this.
13224 (expand_one_ssa_partition): New.
13225 (adjust_one_expanded_partition_var): New.
13226 (expand_one_register_var): Check and skip already expanded SSA
13227 partitions.
13228 (expand_used_vars): Don't create DECLs for anonymous SSA
13229 names. Expand all SSA partitions, then adjust all SSA names.
13230 (pass::execute): Replace the loops that set
13231 SA.partition_to_pseudo from partition leaders and cleared
13232 DECL_RTL for multi-location variables, and that which used to
13233 rename vars and set attrs, with one that clears DECL_RTL and
13234 checks that PARMs and RESULTs default_defs match DECL_RTL.
13235 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13236 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13237 * explow.c (promote_ssa_mode): New.
13238 * explow.h (promote_ssa_mode): Declare.
13239 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13240 * function.c: Include cfgexpand.h.
13241 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13242 (use_register_for_parm_decl): Wrapper for the above to
13243 special-case the result_ptr.
13244 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13245 (split_complex_args): Take assign_parm_data_all argument.
13246 Pass it to rtl_for_parm. Set up rtl and context for split
13247 args.
13248 (assign_parms_augmented_arg_list): Adjust.
13249 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13250 multiple locations. Recognize split complex args.
13251 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13252 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13253 (assign_parm_setup_block): Prefer SSA-assigned location.
13254 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13255 if stack_parm is NULL.
13256 (assign_parm_setup_stack): Prefer SSA-assigned location.
13257 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13258 rtl before testing for pointer bounds. Special-case result_ptr.
13259 (expand_function_start): Maybe reset DECL_RTL of result.
13260 Prefer SSA-assigned location for result and static chain.
13261 Factor out DECL_RESULT and SET_DECL_RTL.
13262 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13263 anonymous SSA names. Use promote_ssa_mode.
13264 (get_temp_reg): Likewise.
13265 (remove_ssa_form): Adjust.
13266 * stor-layout.c (layout_decl): Don't set mem attributes of
13267 non-MEMs.
13268 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13269 and get its reg_usage for reg invalidation.
13270 (compute_bb_dataflow): Pass it insn.
13271 (emit_notes_in_bb): Likewise.
13272
13273 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
13274
13275 PR target/66217
13276 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
13277 prototype.
13278 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
13279 (rs6000_emit_2insn_and): Handle dot forms.
13280 * config/rs6000/rs6000.md (and<mode>3): Adjust.
13281 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
13282 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
13283
13284 2015-07-23 Richard Biener <rguenther@suse.de>
13285
13286 * generic-match-head.c: Include cgraph.h.
13287 * gimple-match-head.c: Likewise.
13288 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
13289 SSA names.
13290 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
13291 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
13292 pattern.
13293
13294 2015-07-23 Richard Biener <rguenther@suse.de>
13295
13296 * gimple-fold.c (fold_gimple_cond): Do not require folding
13297 results to pass valid_gimple_rhs_p.
13298 * tree-cfg.h (fold_cond_expr_cond): Remove.
13299 * tree-cfg.c (fold_cond_expr_cond): Likewise.
13300 (make_edges): Do not call it.
13301 * tree-inline.c (tree_function_versioning): Likewise.
13302
13303 2015-07-23 Tom de Vries <tom@codesourcery.com>
13304
13305 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
13306 vect_force_simple_reduction.
13307 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
13308 (vect_is_simple_reduction_1): Add and handle
13309 need_wrapping_integral_overflow parameter.
13310 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
13311 need_wrapping_integral_overflow parameter.
13312 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
13313 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
13314 decl.
13315
13316 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
13317
13318 PR tree-optimization/66926,66951
13319 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
13320 INNER_LOOP and fix up condition for renaming virtual operands.
13321
13322 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13323
13324 * combine.c (try_combine): Use std::swap instead of manually
13325 swapping.
13326
13327 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
13328
13329 * config/mips/i6400.md: New file.
13330 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
13331 (mips64r6): Likewise.
13332 (i6400): Define.
13333 * config/mips/mips-tables.opt: Regenerate.
13334 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
13335 (mips_issue_rate): Add support for i6400.
13336 (mips_multipass_dfa_lookahead): Likewise.
13337 * config/mips/mips.h (TUNE_I6400): Define.
13338 * config/mips/mips.md: Include i6400.md.
13339 (processor): Add i6400.
13340 * doc/invoke.texi (-march=@var{arch}): Add i6400.
13341
13342 2015-07-23 Richard Biener <rguenther@suse.de>
13343
13344 PR middle-end/66916
13345 * match.pd: Guard widen and sign-change comparison simplification
13346 with single_use.
13347
13348 2015-07-23 Richard Biener <rguenther@suse.de>
13349
13350 PR tree-optimization/66945
13351 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
13352 ::before_dom_children): Force the propagators idea of
13353 non-executable edges to materialize, not what the folder
13354 chooses.
13355
13356 2015-07-23 Richard Biener <rguenther@suse.de>
13357
13358 * gimple.h (gimple_cond_make_false): Use 0 != 0.
13359 (gimple_cond_make_true): Use 1 != 0.
13360
13361 2015-07-22 DJ Delorie <dj@redhat.com>
13362
13363 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
13364 slashes.
13365
13366 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
13367 (ashrhi3): Likewise.
13368 (lshrhi3): Likewise.
13369 (movhi): Take advantage of zero-extend to load small constants.
13370 (movpsi): Likewise.
13371 (and<mode>3): Likewise.
13372 (zero_extendqihi2): Likewise.
13373 (zero_extendqisi2): New.
13374 * config/msp430/constraints.md (N,O): New.
13375 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
13376
13377 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
13378
13379 PR target/66954
13380 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
13381 to enum feature_priority and feature_list.
13382 (fold_builtin_cpu): Add F_AES to enum processor_features
13383 and isa_names_table.
13384
13385 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
13386
13387 PR driver/66737
13388 * config/i386/linux-common.h (MPX_SPEC): Use linker option
13389 for 64bit target only.
13390
13391 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
13392
13393 * config/nvptx/nvptx.c: Expand some comments.
13394
13395 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
13396
13397 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
13398 (cortex_a53_advsimd): ...This.
13399
13400 2015-07-22 Richard Biener <rguenther@suse.de>
13401
13402 * genmatch.c (expr::gen_transform): Clarify error message
13403 and display location.
13404
13405 2015-07-22 Richard Biener <rguenther@suse.de>
13406
13407 * genmatch.c (struct operand): Add location member.
13408 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
13409 constructors.
13410 (struct simplify): Remove match_location and result_location
13411 members.
13412 (elsehwere): Adjust.
13413
13414 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
13415
13416 * config/mips/m5100.md: New file.
13417 * config/mips/mips-cpus.def (m5100, m5101): Define.
13418 * config/mips/mips-tables.opt: Regenerate.
13419 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
13420 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
13421 -march=m5101 to -mips32r5.
13422 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
13423 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
13424 !-msoft-float.
13425 * config/mips/mips.md: Include m5100.md.
13426 (processor): Add m5100.
13427 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
13428
13429 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
13430
13431 * config/mips/mips-cpus.def (interaptiv): Define.
13432 * config/mips/mips-tables.opt: Regenerate.
13433 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
13434 -mips32r2.
13435 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
13436 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
13437
13438 2015-07-22 Jiong Wang <jiong.wang@arm.com>
13439
13440 PR target/63521
13441 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13442 (HONOR_REG_ALLOC_ORDER): Define.
13443
13444 2015-07-22 Richard Biener <rguenther@suse.de>
13445
13446 PR tree-optimization/66952
13447 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
13448 blocks we end up executing unconditionally reset all SSA
13449 info such as range and alignment.
13450 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
13451 * tree-ssanames.c (reset_flow_sensitive_info): New function.
13452
13453 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
13454
13455 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
13456 typo in attribute.
13457
13458 2015-07-22 Richard Biener <rguenther@suse.de>
13459
13460 * genmatch.c (parser::parse_result): Properly handle
13461 match with result operands and conditions.
13462
13463 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
13464
13465 PR target/63870
13466 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
13467 Add qualifier_struct_load_store_lane_index.
13468 (aarch64_types_loadstruct_lane_qualifiers): Use
13469 qualifier_struct_load_store_lane_index for lane index argument for
13470 last argument.
13471 (aarch64_types_storestruct_lane_qualifiers): Ditto.
13472 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13473 (aarch64_simd_expand_args): Add new argument describing mode of
13474 builtin. Check lane bounds for arguments with
13475 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13476 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
13477 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13478 (aarch64_simd_expand_builtin): Handle arguments with
13479 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
13480 aarch64_simd_expand_args.
13481 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
13482 vst[234]_lane with BUILTIN_VALLDIF.
13483 * config/aarch64/aarch64-simd.md:
13484 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
13485 endianness reversal on lane index.
13486 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
13487 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
13488 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
13489 (vec_store_lanesci_lane<mode>): Ditto.
13490 (vec_store_lanesxi_lane<mode>): Ditto.
13491 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
13492 reversal of lane index.
13493 (aarch64_ld3_lane<mode>): Ditto.
13494 (aarch64_ld4_lane<mode>): Ditto.
13495 (aarch64_st2_lane<mode>): Ditto.
13496 (aarch64_st3_lane<mode>): Ditto.
13497 (aarch64_st4_lane<mode>): Ditto.
13498 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
13499 to qmode. Add new mode parameter. Update uses.
13500 (__LD3_LANE_FUNC): Ditto.
13501 (__LD4_LANE_FUNC): Ditto.
13502 (__ST2_LANE_FUNC): Ditto.
13503 (__ST3_LANE_FUNC): Ditto.
13504 (__ST4_LANE_FUNC): Ditto.
13505
13506 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
13507
13508 * doc/invoke.texi (Language Independent Options): Rename node to
13509 Diagnostic Message Formatting Options.
13510
13511 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
13512
13513 PR ipa/66424.
13514 * lra-remat.c (operand_to_remat): Prevent using insns with input
13515 subregs processed separately by IRA.
13516
13517 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
13518
13519 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
13520 straight loops.
13521 (single_imm_use): Check for iterator node.
13522 (num_imm_uses): Likewise.
13523 * tree-ssa-operands.c (has_zero_uses_1): Delete.
13524 (single_imm_use_1): Check for iterator node.
13525
13526 2015-07-21 Mike Frysinger <vapier@gentoo.org>
13527 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13528
13529 * configure.ac: Add check for new options in isl-0.15.
13530 * config.in, configure: Rebuilt.
13531 * graphite-blocking.c: Include <isl/constraint.h>
13532 * graphite-interchange.c, graphite-poly.c: Likewise.
13533 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
13534 * graphite.c: Likewise.
13535 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
13536 <isl/union_set.h>.
13537 * graphite-dependences.c: Include <isl/constraint.h>.
13538 (max_number_of_out_dimensions): Returns isl_stat.
13539 (extend_schedule_1): Likewise
13540 (extend_schedule): Corresponding changes.
13541 * graphite-optimize-isl.c: Include <isl/constraint.h> and
13542 <isl/union_set.h>.
13543 (getSingleMap): Change return type of isl_stat.
13544 (optimize_isl): Conditionally use
13545 isl_options_set_schedule_serialize_sccs.
13546 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
13547 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
13548
13549 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
13550
13551 PR target/66956
13552 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
13553 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
13554
13555 2015-07-21 Richard Biener <rguenther@suse.de>
13556
13557 PR tree-optimization/66948
13558 * genmatch.c (capture_info::walk_match): Also recurse to
13559 captures. Properly compute expr state from captures of
13560 captures.
13561 * match.pd: Add single-use guards to
13562 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
13563
13564 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
13565
13566 * config/nvptx/mkoffload.c (process): Add static destructor call.
13567
13568 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13569
13570 PR middle-end/66915
13571 * match.pd (A - B -> A + (-B)): Don't allow folding
13572 when type if a fixed-point type.
13573
13574 2015-07-20 DJ Delorie <dj@redhat.com>
13575
13576 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
13577 (iorqi3_real): Likewise for set1.
13578
13579 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
13580
13581 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
13582 for !TARGET_64BIT.
13583
13584 2015-07-20 Aditya Kumar <hiraditya@msn.com>
13585
13586 * graphite-isl-ast-to-gimple.c:
13587 Refactor so that each function can access 'region'. This will help
13588 maintain a parameter rename_map within a region.
13589
13590 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
13591
13592 * config/rs6000/rs6000.md (*lt0_disi): New.
13593
13594 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
13595
13596 PR target/66217
13597 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
13598 "available letters" comment.
13599 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
13600 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
13601 and_2rld_operand): Delete.
13602 (and_operand): Adjust.
13603 (rotate_mask_operator): New.
13604 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
13605 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
13606 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
13607 extract_ME): Delete.
13608 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13609 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
13610 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
13611 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13612 rs6000_emit_2insn_and): New.
13613 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
13614 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
13615 includes_rldic_lshift_p, includes_rldicr_lshift_p,
13616 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
13617 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13618 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
13619 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
13620 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13621 rs6000_emit_2insn_and): New.
13622 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
13623 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
13624 handling.
13625 <NOT>: Don't fall through to next case.
13626 <AND>: Handle the various rotate-and-mask cases directly.
13627 <IOR>: Always cost as one insn.
13628 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
13629 (and<mode>3): Adjust expander for the new patterns.
13630 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
13631 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
13632 (*and<mode>3_imm_dot_shifted): New.
13633 (*and<mode>3_mask): Delete, rewrite as ...
13634 (and<mode>3_mask): ... New.
13635 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
13636 (andsi3_internal0_nomc): Delete.
13637 (*andsi3_internal6): Delete.
13638 (*and<mode>3_2insn): New.
13639 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13640 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13641 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
13642 *insvdi_internal3): Delete.
13643 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
13644 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
13645 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
13646 *ior<mode>_mask): New.
13647 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
13648 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13649 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13650 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13651 Delete.
13652 (ashr<mode>3): Delete expander.
13653 (*ashr<mode>3): Rename to ...
13654 (ashr<mode>3): ... This.
13655 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
13656 (*rotldi3_internal4, *rotldi3_internal5 and split,
13657 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
13658 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
13659 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
13660 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
13661 (splitter for loading a mask): Adjust.
13662 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
13663
13664 2015-07-20 Marek Polacek <polacek@redhat.com>
13665
13666 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
13667 output_add_clobbers, output_added_clobbers_hard_reg_p,
13668 gen_rtx_scratch): Remove declarations.
13669
13670 2015-07-20 Marek Polacek <polacek@redhat.com>
13671
13672 PR c++/55095
13673 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
13674
13675 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13676
13677 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
13678 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
13679
13680 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13681
13682 * combine.c (combine_simplify_rtx): Move simplification step
13683 before various transformations/substitutions.
13684
13685 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
13686
13687 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
13688 (struct int_traits): Likewise.
13689
13690 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13691
13692 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
13693 function to vmsdbgout_function_decl.
13694
13695 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13696
13697 PR target/66922
13698 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
13699 from misaligned positions.
13700 (ix86_expand_pinsr): Reject insertions to misaligned positions.
13701
13702 2015-07-18 Sebastian Pop <s.pop@samsung.com>
13703
13704 PR middle-end/46851
13705 PR middle-end/60340
13706 * Makefile.in: Removed omega.o.
13707 * common.opt: Document flag fcheck-data-deps as deprecated.
13708 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
13709 its associated params: omega-max-vars, omega-max-geqs,
13710 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
13711 omega-max-keys, omega-eliminate-redundant-constraints.
13712 * doc/loop.texi: Remove all the section on Omega.
13713 * graphite-blocking.c: Include missing params.h: it used to be
13714 included through tree-data-ref.h and omega.h.
13715 * graphite-isl-ast-to-gimple.c: Same.
13716 * graphite-optimize-isl.c: Same.
13717 * graphite-sese-to-poly.c: Same.
13718 * graphite.c: Same.
13719 * omega.c: Remove.
13720 * omega.h: Remove.
13721 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
13722 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
13723 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
13724 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
13725 * passes.def: Remove pass_check_data_deps.
13726 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
13727 (dump_conflict_function): Same.
13728 (dump_subscript): Same.
13729 (print_direction_vector): Same.
13730 (print_dir_vectors): Same.
13731 (print_lambda_vector): Same.
13732 (print_dist_vectors): Same.
13733 (dump_data_dependence_relation): Same.
13734 (dump_data_dependence_relations): Same.
13735 (dump_dist_dir_vectors): Same.
13736 (dump_ddrs): Same.
13737 (init_omega_eq_with_af): Removed.
13738 (omega_extract_distance_vectors): Removed.
13739 (omega_setup_subscript): Removed.
13740 (init_omega_for_ddr_1): Removed.
13741 (init_omega_for_ddr): Removed.
13742 (ddr_consistent_p): Removed.
13743 (compute_affine_dependence): Do not use omega to check data
13744 dependences.
13745 (compute_data_dependences_for_bb): Removed.
13746 (analyze_all_data_dependences): Removed.
13747 (tree_check_data_deps): Removed.
13748 * tree-data-ref.h: Do not include omega.h.
13749 (compute_data_dependences_for_bb): Removed.
13750 (tree_check_data_deps): Removed.
13751 * tree-ssa-loop.c (pass_check_data_deps): Removed.
13752 (make_pass_check_data_deps): Removed.
13753 * tree-ssa-phiopt.c: Include params.h.
13754 * tree-vect-data-refs.c: Same.
13755 * tree-vect-slp.c: Same.
13756
13757 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13758
13759 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
13760 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
13761 (mem->fpreg splitters): Ditto.
13762 (general_operand->nonimmediate_operand splitter): Use explicit modes.
13763 Disable DFmode for TARGET_64BIT.
13764
13765 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
13766
13767 PR target/66906
13768 * config/i386/i386.c (ix86_expand_prologue): Replicate static
13769 chain on the stack.
13770
13771 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13772
13773 * config/nvptx/mkoffload.c (process): Constify host data.
13774 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13775 Constify host data.
13776 (generate_host_descr_file): Likewise.
13777
13778 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
13779 Sebastian Pop <s.pop@samsung.com>
13780
13781 PR middle-end/61929
13782 * graphite-dependences.c (add_pdr_constraints): Renamed
13783 pdr->extent to pdr->subscript_sizes.
13784 * graphite-interchange.c (build_linearized_memory_access): Add
13785 back all gcc_assert's that the "isl_int to isl_val conversion"
13786 patch has removed. Refactored.
13787 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
13788 * graphite-poly.c (new_poly_dr): Same.
13789 (free_poly_dr): Same.
13790 * graphite-poly.h (struct poly_dr): Same.
13791 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
13792 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
13793 * graphite-scop-detection.h: Fix space.
13794 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
13795 back all gcc_assert's removed by a previous patch.
13796 (wrap): Remove the_isl_ctx global variable that the same patch has
13797 added.
13798 (build_loop_iteration_domains): Same.
13799 (add_param_constraints): Same.
13800 (pdr_add_data_dimensions): Same. Refactored.
13801 (build_poly_dr): Renamed extent to subscript_sizes.
13802
13803 2015-07-17 Marek Polacek <polacek@redhat.com>
13804
13805 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
13806 * match.pd: ... here.
13807
13808 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13809
13810 * config/nvptx/mkoffload.c (process): Constify target data.
13811 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13812 Constify target data.
13813 (generate_target_offloadend_file): Likewise.
13814
13815 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
13816
13817 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
13818 to allow renaming of PHI arguments on edges incoming from outer
13819 loop header, add corresponding check before start PHI iterator.
13820 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
13821 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
13822 with true force_vectorize. Set-up dominator for outer loop too.
13823 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
13824 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
13825 was marked with force_vectorize and has restricted cfg.
13826 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
13827 inner loop.
13828 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
13829 do peeling for outer loops.
13830
13831 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
13832 Matthias Klose <doko@ubuntu.com>
13833
13834 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
13835 build-sysroot, sysroot from the `Miscenalleous configure options' to
13836 the `Directories' section and strip trailing `/' from with_sysroot.
13837 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
13838 * configure: Regenerated.
13839
13840 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13841
13842 PR target/66824
13843 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
13844 (TARGET_HARD_DF_REGS): Ditto.
13845 (TARGET_HARD_XF_REGS): Ditto.
13846 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
13847 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
13848 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
13849 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
13850 (*movsf_internal): Add alternatives 16 and 17. Enable
13851 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
13852
13853 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13854
13855 PR rtl-optimization/66891
13856 * calls.c (expand_call): Wrap precompute_register_parameters with
13857 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
13858
13859 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
13860
13861 * config/nvptx/mkoffload.c (process): Constify mapping variables.
13862 Define target data struct and initialize it.
13863
13864 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
13865
13866 PR rtl-optimization/66626
13867 * ira.h (emit-rtl.h): Include.
13868 (non_spilled_static_chain_regno_p): New.
13869 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
13870 unless it is non spilled static chain pseudo.
13871 (assign_hard_rego): Spill memory profitable allocno unless it is
13872 non spilled static chain pseudo.
13873 (allocno_spill_priority_compare): Put non spilled static chain
13874 pseudo at the end of sorted array.
13875 (improve_allocation): Do nothing if we have static chain and
13876 non-local goto.
13877 (allocno__priority_compare_func): Put non spilled static chain
13878 pseudo at the beginning of sorted array.
13879 (move_spill_restore): Ignore non spilled static chain pseudo.
13880 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
13881 to non spilled static chain pseudo.
13882 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
13883 pseudo at the beginning of sorted array.
13884 (spill_for): Spill non spilled static chain pseudo last.
13885 * lra-constraints.c (lra_constraints): Remove static chain pseudo
13886 check for equivalence.
13887
13888 2015-07-16 Martin Liska <mliska@suse.cz>
13889
13890 PR ipa/66896.
13891 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
13892 dst_ctx if it does not exist.
13893
13894 2015-07-16 Martin Liska <mliska@suse.cz>
13895
13896 * hash-set.h (remove): New function.
13897 (iterator): New iteration class for hash_set.
13898
13899 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13900
13901 * genattrtab.c (make_canonical): Add a file_location parameter.
13902 Use fatal_at rather than fatal.
13903 (get_attr_value): Likewise. Update call to make_canonical.
13904 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
13905 (make_internal_attr): Update calls accordingly.
13906
13907 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13908
13909 * read-md.h (message_with_line, error_with_line): Delete.
13910 * read-md.c (message_with_line, error_with_line): Delete.
13911 * gensupport.h: Include read-md.h.
13912 (md_rtx_info): New structure.
13913 (read_md_rtx): Use it. Return a bool success value.
13914 * gensupport.c (read_md_rtx): Likewise.
13915 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
13916 (main): Update after interface changes.
13917 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
13918 (main): Update after interface changes.
13919 * genattrtab.c (insn_code_number): Delete.
13920 (optimize_attrs): Add a max_insn_code parameter and use it instead
13921 of insn_code_number.
13922 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
13923 Use *_at rather than *_with_line functions.
13924 (gen_insn): Likewise.
13925 (gen_delay): Likewise.
13926 (gen_insn_reserv): Likewise.
13927 (gen_bypass): Take an md_rtx_info rather than an rtx.
13928 (main): Update after interface changes. Use a local max_insn_code
13929 variable instead of insn_code_number.
13930 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
13931 an rtx. Use fatal_at rather than fatal.
13932 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
13933 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
13934 (gen_absence_set, gen_final_absence_set, gen_automaton)
13935 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
13936 (main): Update after interface changes.
13937 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
13938 and code number.
13939 (main): Update after interface changes.
13940 * genconditions.c (main): Use new read_md_rtx interface.
13941 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
13942 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
13943 (main): Update after interface changes.
13944 * genemit.c (insn_code_number, insn_index_number): Delete.
13945 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13946 Use fatal_at rather than fatal.
13947 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
13948 rather than fatal.
13949 (gen_split): Likewise.
13950 (main): Update after interface changes.
13951 * genextract.c (line_no): Delete.
13952 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13953 Update call to walk_rtx.
13954 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
13955 rather than message_with_line.
13956 (walk_rtx): Add an md_rtx_info argument. Update call to
13957 VEC_safe_set_locstr.
13958 (main): Update after interface changes.
13959 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
13960 and lineno. Use error_at rather than separate message_with_line
13961 calls and have_error assignments.
13962 (main): Update after interface changes.
13963 * genmddump.c (main): Use new read_md_rtx interface.
13964 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
13965 (main): Update after interface changes.
13966 * genoutput.c (next_code_number): Delete.
13967 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13968 (gen_peephole, gen_expand, gen_split): Likewise.
13969 (note_constraint): Likewise. Use *_at rather than *_with_line
13970 functions.
13971 (main): Update after interface changes.
13972 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
13973 rtx and lineno.
13974 (main): Update after interface changes.
13975 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
13976 than an rtx and lineno.
13977 (process_define_constraint): Likewise.
13978 (process_define_register_constraint): Likewise.
13979 (main): Update after interface changes.
13980 * genrecog.c (next_insn_code, pattern_lineno): Delete.
13981 (validate_pattern): Replace top-level rtx with an md_rtx_info.
13982 Use *_at rather than *_with_line functions.
13983 (match_pattern_2): Likewise.
13984 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
13985 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
13986 Use *_at rather than *_with_line functions.
13987 * gentarget-def.c (add_insn): New function.
13988 (main): Use it. Use new read_md_rtx interface.
13989
13990 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13991
13992 * gensupport.h (compute_test_codes): Take a file_location rather
13993 than a line number.
13994 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
13995 rather than *_with_line functions.
13996 (process_define_predicate): Update call to compute_test_codes.
13997 * genpreds.c (validate_exp): Take a file_location rather than a
13998 line number. Use *_at functions rather than *_with_line functions.
13999 (process_define_predicate): Update call to validate_exp.
14000 (constraint_data): Replace lineno field with a file_location.
14001 (add_constraint): Take a file_location rather than a line number.
14002 Use *_at functions rather than *_with_line functions. Fix error
14003 message for address constraints. Update after changes to
14004 validate_exp, constraint_data and compute_test_codes.
14005 (process_define_constraint): Update accordingly.
14006 (process_define_register_constraint): Likewise.
14007
14008 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14009
14010 * genoutput.c (data): Use a file_location to record the source
14011 position.
14012 (nothing): Delete.
14013 (idata, idata_end): Remove initialization.
14014 (constraint_data): Replace lineno with a file_location.
14015 (output_insn_data): Update after changes to data.
14016 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
14017 (scan_operands): Likewise, using *_at rather than *_with_line
14018 functions.
14019 (process_template): Likewise.
14020 (validate_insn_alternatives): Likewise.
14021 (validate_insn_operands): Likewise.
14022 (validate_optab_operands): Likewise.
14023 (init_insn_for_nothing): Initialize idata and idata_end.
14024 (note_constraint): Update after changes to constraint_data,
14025 using at rather than with_line functions.
14026 (mdep_constraint_len): Take a file_location rather than a
14027 line number. Use at rather than with_line functions.
14028
14029 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14030
14031 * read-md.h (fatal_at): Declare.
14032 * read-md.c (fatal_at): New function.
14033 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
14034 to record the source position.
14035 (check_attr_test): Take a file_location instead of a line number.
14036 Use fatal_at instead of fatal.
14037 (check_attr_value): Update after above changes, using "at"
14038 rather than "with_line" reporting functions.
14039 (convert_set_attr_alternative): Likewise.
14040 (gen_attr): Likewise.
14041 (check_defs): Likewise. Don't assign to read_md_filename.
14042 (gen_insn): Update initialization after above changes.
14043 (gen_delay): Likewise.
14044 (write_insn_cases): Print the filename for a define_peephole.
14045 (gen_insn_reserv): Take a line number as argument and update
14046 the call to check_attr_test.
14047 (main): Pass a line number to gen_insn_reserv.
14048
14049 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14050
14051 * read-md.h (file_location): New structure.
14052 (directive_handler_t): Take a file_location rather than a line number.
14053 (message_at, error_at): Declare.
14054 (read_skip_construct): Delete.
14055 * read-md.c (message_with_line_1): Replace with...
14056 (message_at_1): ...this new function.
14057 (message_at, error_at): New functions.
14058 (message_with_line, error_with_line): Update to use message_at_1.
14059 (handle_enum): Take a file_location rather than a line number
14060 and use error_at for error reporting.
14061 (handle_include): Likewise.
14062 (read_skip_construct): Likewise. Make static.
14063 (handle_file): Update after above changes. Pass a file_location
14064 rather than a line number to handle_directive.
14065 * gensupport.c (queue_elem): Replace separate filename and lineno
14066 with a file_location.
14067 (queue_pattern): Replace filename and lineno arguments with a
14068 file_location. Update after change to queue_elem.
14069 (process_define_predicate): Replace lineno argument with a
14070 file_location and use error_at for error reporting. Update
14071 after above changes.
14072 (process_rtx): Likewise.
14073 (subst_pattern_match): Likewise.
14074 (get_alternatives_number): Likewise.
14075 (alter_predicate_for_insn): Likewise.
14076 (rtx_handle_directive): Likewise.
14077 (is_predicable): Update after above changes, using error_at rather
14078 than error_with_line.
14079 (has_subst_attribute): Likewise.
14080 (identify_predicable_attribute): Likewise.
14081 (alter_attrs_for_subst_insn): Likewise.
14082 (process_one_cond_exec): Likewise.
14083 (process_substs_on_one_elem): Likewise.
14084 (process_define_subst): Likewise.
14085 (check_define_attr_duplicates): Likewise.
14086 (read_md_rtx): Update after change to queue_elem.
14087
14088 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14089
14090 * genoutput.c (next_index_number): Delete.
14091 (data): Remove index_number.
14092 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
14093 (main): Remove manipulation of next_index_number.
14094
14095 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14096
14097 * genattrtab.c (check_attr_value): Remove handling of null attrs.
14098 (make_canonical): Likewise.
14099
14100 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
14101
14102 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
14103 instead of adjust_address_nv.
14104 (restore_stack_nonlocal): Likewise.
14105 (nonlocal_goto): Likewise.
14106
14107 2015-07-16 Tom de Vries <tom@codesourcery.com>
14108
14109 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
14110 not have a corresponding loop header phi.
14111
14112 2015-07-16 Tom de Vries <tom@codesourcery.com>
14113
14114 * tree-parloops.c (create_loads_for_reductions): Handle case that
14115 reduction is unused.
14116
14117 2015-07-16 Richard Biener <rguenther@suse.de>
14118
14119 PR tree-optimization/66894
14120 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
14121 about deriving NE_EXPR from truncated values.
14122
14123 2015-07-16 Martin Liska <mliska@suse.cz>
14124
14125 * alloc-pool.h
14126 (object_allocator): Add new class.
14127 (pool_allocator::initialize): Use the underlying class.
14128 (pool_allocator::allocate): Likewise.
14129 (pool_allocator::remove): Likewise.
14130 (operator new): A new generic allocator.
14131 * asan.c (struct asan_mem_ref): Remove unused members.
14132 (asan_mem_ref_new): Replace new operator with
14133 object_allocator::allocate.
14134 (free_mem_ref_resources): Change deallocation.
14135 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
14136 with object_allocator.
14137 * config/sh/sh.c (add_constant): Replace new operator with
14138 object_allocator::allocate.
14139 (sh_reorg): Change call to a release method.
14140 * cselib.c (struct elt_list): Remove unused members.
14141 (new_elt_list): Replace new operator with
14142 object_allocator::allocate.
14143 (new_elt_loc_list): Likewise.
14144 (new_cselib_val): Likewise.
14145 (unchain_one_elt_list): Change delete operator with remove method.
14146 (unchain_one_elt_loc_list): Likewise.
14147 (unchain_one_value): Likewise.
14148 (cselib_finish): Release newly added static allocators.
14149 * cselib.h (struct cselib_val): Remove unused members.
14150 (struct elt_loc_list): Likewise.
14151 * df-problems.c (df_chain_alloc): Replace pool_allocator with
14152 object_allocator.
14153 * df-scan.c (struct df_scan_problem_data): Likewise.
14154 (df_scan_alloc): Likewise.
14155 * df.h (struct dataflow): Likewise.
14156 * dse.c (struct read_info_type): Likewise.
14157 (struct insn_info_type): Likewise.
14158 (struct dse_bb_info_type): Likewise.
14159 (struct group_info): Likewise.
14160 (struct deferred_change): Likewise.
14161 (get_group_info): Likewise.
14162 (delete_dead_store_insn): Likewise.
14163 (free_read_records): Likewise.
14164 (replace_read): Likewise.
14165 (check_mem_read_rtx): Likewise.
14166 (scan_insn): Likewise.
14167 (dse_step1): Likewise.
14168 (dse_step7): Likewise.
14169 * et-forest.c (struct et_occ): Remove unused members.
14170 (et_new_occ): Use allocate instead of new operator.
14171 (et_new_tree): Likewise.
14172 (et_free_tree): Call release method explicitly.
14173 (et_free_tree_force): Likewise.
14174 (et_free_pools): Likewise.
14175 (et_split): Use remove instead of delete operator.
14176 * et-forest.h (struct et_node): Remove unused members.
14177 * ipa-cp.c: Change pool_allocator to object_allocator.
14178 * ipa-inline-analysis.c: Likewise.
14179 * ipa-profile.c: Likewise.
14180 * ipa-prop.c: Likewise.
14181 * ipa-prop.h: Likewise.
14182 * ira-build.c (initiate_cost_vectors): Cast return value.
14183 (ira_allocate_cost_vector): Likewise.
14184 * ira-color.c (struct update_cost_record): Remove unused members.
14185 * lra-int.h (struct lra_live_range): Likewise.
14186 (struct lra_copy): Likewise.
14187 (struct lra_insn_reg): Likewise.
14188 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
14189 * lra.c (new_insn_reg): Replace new operator with allocate method.
14190 (free_insn_regs): Same for operator delete.
14191 (finish_insn_regs): Release new static allocator.
14192 (finish_insn_recog_data): Likewise.
14193 (lra_free_copies): Replace delete operator with remove method.
14194 (lra_create_copy): Replace operator new with allocate method.
14195 (invalidate_insn_data_regno_info): Same for remove method.
14196 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
14197 (free_debug_insn_changes): Replace delete operator with remove method.
14198 (replace_oldest_value_reg): Replace operator new with allocate method.
14199 (pass_cprop_hardreg::execute): Release new static variable.
14200 * sched-deps.c (sched_deps_init): Change pool_allocator to
14201 object_allocator.
14202 * sel-sched-ir.c: Likewise.
14203 * sel-sched-ir.h: Likewise.
14204 * stmt.c (expand_case): Likewise.
14205 (expand_sjlj_dispatch_table): Likewise.
14206 * tree-sra.c (struct access): Remove unused members.
14207 (struct assign_link): Likewise.
14208 (sra_deinitialize): Release newly added static pools.
14209 (create_access_1):Replace operator new with allocate method.
14210 (build_accesses_from_assign): Likewise.
14211 (create_artificial_child_access): Likewise.
14212 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
14213 pool_allocator to object_allocator.
14214 * tree-ssa-pre.c: Likewise.
14215 * tree-ssa-reassoc.c: Likewise.
14216 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14217 * tree-ssa-strlen.c: Likewise.
14218 * tree-ssa-structalias.c: Likewise.
14219 * var-tracking.c (onepart_pool_allocate): New function.
14220 (unshare_variable): Use the newly added function.
14221 (variable_merge_over_cur): Likewise.
14222 (variable_from_dropped): Likewise.
14223 (variable_was_changed): Likewise.
14224 (set_slot_part): Likewise.
14225 (emit_notes_for_differences_1): Likewise.
14226 (vt_finalize): Release newly added static pools.
14227
14228 2015-07-16 Martin Jambor <mjambor@suse.cz>
14229
14230 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
14231 all uses. Fix two typos in its general comment.
14232 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
14233
14234 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
14235
14236 * config/i386/linux-common.h (LINK_MPX): New.
14237 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
14238 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
14239 indicating '-z bndplt' support by linker.
14240 * configure: Regenerate.
14241 * config.in: Regenerate.
14242
14243 2015-07-16 Richard Biener <rguenther@suse.de>
14244
14245 * fold-const.c (fold_widened_comparison): Remove.
14246 (fold_sign_changed_comparison): Likewise.
14247 (fold_comparison): Move widened and sign-changed comparison
14248 simplification ...
14249 * match.pd: ... to patterns here.
14250 * generic-match-head.c: Include target.h.
14251 * gimple-match-head.c: Likewise.
14252
14253 2015-07-16 Richard Biener <rguenther@suse.de>
14254
14255 * tree-ssa-dom.c (dom_valueize): New function.
14256 (record_temporary_equivalences): Also record equivalences
14257 for dominating stmts that have uses of equivalences we are
14258 about to record.
14259
14260 2015-07-16 Bin Cheng <bin.cheng@arm.com>
14261
14262 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
14263 add_autoinc_candidates.
14264 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
14265 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
14266 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
14267 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
14268 Call new function.
14269 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
14270 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
14271 Remove parameter struct iv*. Call add_autoinc_candidates here.
14272 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
14273 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
14274 Call new function.
14275 (find_iv_candidates): Call new functions.
14276
14277 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
14278
14279 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
14280 uninitialized-variable warning.
14281
14282 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
14283
14284 PR target/65249
14285 * config/sh/sh.md (movdi): Split simple reg move to two movsi
14286 when the destination is R0.
14287
14288 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
14289
14290 PR target/66866
14291 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
14292 * config/i386/i386.c (ix86_expand_pextr): New function.
14293 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
14294 for non-lowpart subregs.
14295 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
14296 (insv<mode>): Use SWI248 mode iterator.
14297 (insv<mode>_1): Ditto.
14298
14299 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14300 Sebastian Pop <s.pop@samsung.com>
14301
14302 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
14303 iterator to use_stmt.
14304
14305 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14306 Sebastian Pop <s.pop@samsung.com>
14307
14308 * graphite-scop-detection.c (build_scops_1): Discard scops for
14309 which entry==exit.
14310
14311 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14312 Sebastian Pop <s.pop@samsung.com>
14313
14314 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
14315 case of a return statement in scop.
14316
14317 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14318 Sebastian Pop <s.pop@samsung.com>
14319
14320 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
14321 INTEGER_TYPE parameters.
14322 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
14323 VECTOR_CST in scan_tree_for_params.
14324 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
14325
14326 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
14327
14328 * gimple-pretty-print.h: Don't include pretty-print.h.
14329 * tree-streamer.h: Don't include lto-streamer.h.
14330 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
14331 * gimple-streamer-in.c: Remove redundant includes.
14332 * gimple-streamer-out.c: Likewise.
14333 * ipa-devirt.c: Likewise.
14334 * ipa-icf.c: Likewise.
14335 * ipa-inline-analysis.c: Likewise.
14336 * ipa-polymorphic-call.c: Likewise.
14337 * ipa-profile.c: Likewise.
14338 * ipa-prop.c: Likewise.
14339 * ipa-pure-const.c: Likewise.
14340 * lto-cgraph.c: Likewise.
14341 * lto-streamer-in.c: Likewise.
14342 * lto-streamer-out.c: Likewise.
14343 * lto-streamer.c: Likewise.
14344 * tree-streamer-in.c: Likewise.
14345 * tree-streamer-out.c: Likewise.
14346 * tree-streamer.c: Likewise.
14347
14348 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
14349
14350 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
14351 include input.h.
14352 * opts.c: Remove multiline #include comment.
14353
14354 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
14355
14356 * config/nvptx/mkoffload.c (process): Add C++ protection to
14357 emitted code.
14358
14359 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14360
14361 PR target/66854
14362 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
14363 null before IEEE 128-bit floating point support patch.
14364
14365 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14366
14367 * simplify-rtx.c (simplify_ternary_operation): Add simplification
14368 for (!c) != {0,...,0} ? a : b for vector modes.
14369
14370 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
14371 Martin Jambor <mjambor@suse.cz>
14372
14373 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
14374 struct func_body_info* instead of struct ipa_node_params*, expecting
14375 fbi->info to be filled in. Replace throughout. Adjust call to
14376 ipa_load_from_parm_agg.
14377 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
14378 instead of struct ipa_node_params*. Adjust calls to other functions
14379 so that they pass either fbi or fbi->info.
14380 (set_switch_stmt_execution_predicate): Likewise.
14381 (will_be_nonconstant_predicate): Likewise.
14382 (compute_bb_predicates): Likewise.
14383 (estimate_function_body_sizes): Move asserts earlier. Fill in
14384 struct func_body_info, replace parms_info with fbi.info. Adjust
14385 calls to functions that now accept struct func_body_info.
14386 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
14387 (struct func_body_info): Likewise.
14388 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
14389 remove static. Adjust callers.
14390 (ipa_load_from_parm_agg): Remove.
14391 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
14392 (func_body_info): Likewise.
14393 (ipa_load_from_parm_agg): Adjust prototype.
14394
14395 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14396
14397 * gensupport.c (rtx_handle_directive): Adjust.
14398 * read-rtl.c (apply_iterators): Take vector to add rtxs to
14399 instead of expr list rtx.
14400 (add_define_attr_for_define_subst): Likewise.
14401 (add_define_subst_attr): Likewise.
14402 (read_subst_mapping): Likewise.
14403 (read_rtx): Likewise.
14404 * rtl.h (read_rtx): Adjust.
14405
14406 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14407
14408 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
14409
14410 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14411
14412 PR target/58066
14413 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
14414 (*tls_local_dynamic_base_64_<mode>): Ditto.
14415 (*tls_local_dynamic_base_64_largepic): Ditto.
14416 (tls_global_dynamic_64_<mode>): Update expander pattern.
14417 (tls_local_dynamic_base_64_<mode>): Ditto.
14418
14419 2015-07-15 Richard Biener <rguenther@suse.de>
14420
14421 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
14422 and bool_var == 1 -> bool_var simplifications ...
14423 * match.pd: ... to patterns here. Factor out negate_expr_p
14424 cases from the A - B -> A + (-B) patterns as negate_expr_p
14425 predicate and add a -(A + B) -> (-B) - A pattern.
14426
14427 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
14428
14429 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
14430
14431 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
14432 Robert Suchanek <robert.suchanek@imgtec.com>
14433
14434 * config/mips/mips.c (mips_int_mask): New enum.
14435 (mips_shadow_set): Likewise.
14436 (int_mask): New variable.
14437 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
14438 (machine_function): Add int_mask and use_shadow_register_set.
14439 (mips_attribute_table): Add attribute handlers for interrupt and
14440 use_shadow_register_set.
14441 (mips_interrupt_mask): New static function.
14442 (mips_handle_interrupt_attr): Likewise.
14443 (mips_handle_use_shadow_register_set_attr): Likewise.
14444 (mips_use_shadow_register_set): Change return type to enum
14445 mips_shadow_set. Add argument handling for use_shadow_register_set
14446 attribute.
14447 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
14448 compare with mips_shadow_set enum.
14449 (mips_compute_frame_info): Add interrupt mask and
14450 use_shadow_register_set to per-function information structure.
14451 Add a stack slot for EPC unconditionally.
14452 (mips_expand_prologue): Compare use_shadow_register_set value
14453 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
14454 masked interrupt register but in EIC mode use K0 and save Cause in K0.
14455 EPC saved and restored unconditionally. Use PMODE_INSN macro when
14456 copying the stack pointer from the shadow register set.
14457 * config/mips/mips.h (SR_IM0): New define.
14458 * config/mips/mips.md (mips_rdpgpr): Rename to...
14459 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
14460 * doc/extend.texi (Declaring Attributes of Functions): Document
14461 optional arguments for interrupt and use_shadow_register_set
14462 attributes.
14463
14464 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
14465
14466 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
14467 interrupt attribute.
14468 (mips_expand_prologue): Disable the floating point unit in an ISR.
14469 * config/mips/mips.h (SR_COP1): New define.
14470
14471 2015-07-15 Richard Biener <rguenther@suse.de>
14472
14473 * genmatch.c (parser::peek, parser::peek_ident): Add argument
14474 to tell how many tokens to peek ahead (default 1).
14475 (parser::eat_token, parser::eat_ident): Return token consumed.
14476 (parser::parse_result): Parse new switch statement.
14477 * match.pd: Use case statements where appropriate.
14478
14479 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14480
14481 PR rtl-optimization/58066
14482 * calls.c (expand_call): Precompute register parameters before stack
14483 alignment is performed.
14484
14485 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14486
14487 PR rtl-optimization/66838
14488 * postreload.c (reload_cse_move2add): Also process
14489 CALL_INSN_FUNCTION_USAGE when resetting information of
14490 call-clobbered registers.
14491
14492 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14493 Cesar Philippidis <cesar@codesourcery.com>
14494 Chung-Lin Tang <cltang@codesourcery.com>
14495
14496 * config/nios2/constraints.md (U, v): New constraints.
14497 * config/nios2/predicates.md (rdprs_dcache_operand): New.
14498 (ldstex_memory_operand): New.
14499 * config/nios2/sync.md: New file.
14500 * config/nios2/nios2.md (unspecv): Add new builtin function
14501 UNSPECV codes.
14502 (rdprs, flushd, flushda, wrpie, eni): New patterns.
14503 (top-level): Include sync.md.
14504 * config/nios2/nios2.c (N2_FTYPES): Add function types for
14505 new builtins.
14506 (N2_BUILTINS): Add arch field setting, add new builtins.
14507 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
14508 for arch field.
14509 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
14510 Also handle ldex/stex/ldsex/stsex builtins.
14511 (nios2_expand_rdprs_builtin): New function.
14512 (nios2_expand_cache_builtin): New function.
14513 (nios2_expand_wrpie_builtin): New function.
14514 (nios2_expand_eni_builtin): New function.
14515 (nios2_expand_builtin): Add arch field handling and new builtin
14516 cases.
14517 * doc/extend.texi (Altera Nios II Built-in Functions): Document
14518 new builtins.
14519 * doc/md.texi (Machine Constraints): Document U and v constraints.
14520
14521 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14522 Cesar Philippidis <cesar@codesourcery.com>
14523 Chung-Lin Tang <cltang@codesourcery.com>
14524
14525 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
14526 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
14527 callee_save_reg_size and uses_anonymous_args fields.
14528 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
14529 (nios2_create_cfa_notes): New function.
14530 (nios2_adjust_stack): New function for adjusting stack.
14531 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
14532 Use nios2_adjust_stack.
14533 (nios2_expand_epilogue): Likewise.
14534 (nios2_expand_return): New function.
14535 (nios2_can_use_return_insn): Update for CDX pop.n usage.
14536 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
14537 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
14538 * config/nios2/nios2.md (return): Use nios2_expand_return.
14539
14540 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14541 Cesar Philippidis <cesar@codesourcery.com>
14542 Chung-Lin Tang <cltang@codesourcery.com>
14543
14544 * config/nios2/predicates.md (pop_operation): New.
14545 (ldwm_operation, stwm_operation): New.
14546 (nios2_hard_register_operand): New.
14547 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
14548 (ldstwm_operation_p): Declare.
14549 (gen_ldstwm_peep): Declare.
14550 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
14551 (base_reg_adjustment_p): New.
14552 (pop_operation_p): New.
14553 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
14554 (nios2_ldstwm_regset_p): New.
14555 (ldstwm_operation_p): New.
14556 (gen_ldst): New.
14557 (nios2_ldst_parallel): New.
14558 (struct ldswm_operand): Declare.
14559 (compare_ldstwm_operands): New.
14560 (can_use_cdx_ldstw): New.
14561 (gen_ldstwm_peep): New.
14562 * config/nios2/nios2-ldstwm.sml: New.
14563 * config/nios2/nios2.md: Include ldstwm.md.
14564 * config/nios2/ldstwm.md: Generated.
14565
14566 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14567 Cesar Philippidis <cesar@codesourcery.com>
14568 Chung-Lin Tang <cltang@codesourcery.com>
14569
14570 * config/nios2/nios2.h (LABEL_ALIGN): Define.
14571 (REG_ALLOC_ORDER): Define.
14572 (ADJUST_REG_ALLOC_ORDER): Define.
14573 (HONOR_REG_ALLOC_ORDER): Define.
14574 (CDX_REG_P): Define.
14575 (ANDCLEAR_INT): Define.
14576 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
14577 (nios2_label_align): Declare.
14578 (nios2_cdx_narrow_form_p): Declare.
14579 (nios2_adjust_reg_alloc_order): Declare.
14580 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
14581 operation.
14582 (nios2_large_unspec_reloc_p): New function, split from...
14583 (nios2_legitimate_pic_operand_p): ...here.
14584 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
14585 (nios2_print_operand_punct_valid_p): New.
14586 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
14587 (split_mem_address): New.
14588 (split_alu_insn): New.
14589 (cdxreg): New.
14590 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
14591 (enum nios2_add_insn_kind): New.
14592 (nios2_add_insn_names, nios2_add_insn_narrow): New.
14593 (nios2_add_insn_classify): New.
14594 (nios2_add_insn_asm): New.
14595 (nios2_cdx_narrow_form_p): New.
14596 (label_align, min_labelno, max_labelno): New.
14597 (nios2_reorg): New.
14598 (nios2_label_align): New.
14599 (nios2_adjust_reg_alloc_order): New.
14600 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14601 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14602 * config/nios2/constraints.md (P): New constraint.
14603 * config/nios2/predicates.md (const_and_operand): New.
14604 (and_operand): New.
14605 (stack_memory_operand): New.
14606 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
14607 (length): Update to use nios2_cdx_narrow_form_p().
14608 (type): Add new insn type values.
14609 (control, alu, st, ld, shift): Update insn reservations with
14610 new insn type values.
14611 (*high, *lo_sum): Define new insn patterns for constant generation.
14612 (movqi_internal, movhi_internal, movsi_internal): Reduce
14613 alternatives, update asm template to handle CDX variants, update
14614 type attributes.
14615 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
14616 template, update type attributes.
14617 (extendhisi2, extendqi<mode>2): Likewise.
14618 (addsi3): Change to use function for asm string.
14619 (subsi3): Add CDX notation to asm template, update type attributes.
14620 (negsi3, one_cmplsi3): Likewise.
14621 (andsi3): New pattern, specialized from logical patterns.
14622 (<code>si3): Remove and case, combine alternatives, update asm
14623 template.
14624 (<shift_op>si3): Add CDX notation, update type attributes.
14625 (rotrsi3): Update type attribute.
14626 (*merge, extzv, insv): New insn patterns.
14627 (return): Change to define_expand.
14628 (simple_return): Add CDX notation, update type attributes.
14629 (indirect_jump): Add CDX notation.
14630 (jump): Update asm cases, update length attribute expression.
14631 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
14632 (nios2_cbranch): Update asm cases and length attribute expression
14633 to handle CDX variants.
14634 (nios2_cmp<code>): Update asm template.
14635 (nop): Add CDX notation, update type attributes.
14636 (trap): Add CDX notation.
14637 (ctrapsi4): Update asm cases and length attribute expression to
14638 handle CDX variant.
14639 * doc/md.texi (Machine Constraints): Document P constraint.
14640
14641 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14642 Cesar Philippidis <cesar@codesourcery.com>
14643 Chung-Lin Tang <cltang@codesourcery.com>
14644
14645 * config/nios2/nios2.h (SMALL_INT12): New macro.
14646 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
14647 (nios2_valid_addr_expr_p): Use it.
14648 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
14649 with implicit "io" instructions on R2.
14650 * config/nios2/constraints.md (w): New constraint.
14651 * config/nios2/predicates.md (ldstio_memory_operand): New.
14652 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
14653 operand predicate and constraint.
14654 (ld<bh>io_signed, st<bhw>io>): Likewise.
14655 * doc/md.texi (Machine Constraints): Document w constraint.
14656
14657 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14658 Cesar Philippidis <cesar@codesourcery.com>
14659 Chung-Lin Tang <cltang@codesourcery.com>
14660
14661 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
14662 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
14663 Nios II architecture level.
14664 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
14665 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
14666 (OPTION_DEFAULT_SPECS): Define.
14667 (ASM_SPEC): Add -march= spec strings.
14668 * config/nios2/nios2.c (nios2_option_override): Check for
14669 conflicts involving new options.
14670 * config.gcc (nios2*-*-*): Support --with-arch=.
14671 * doc/invoke.texi (Option Summary, Nios II Options): Document
14672 -march=, -mbmx, and -mcdx.
14673
14674 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
14675
14676 PR rtl-optimization/66626
14677 * lra-constraints.c (lra_constraints): Prevent equivalence
14678 substitution for static chain pseudo in functions with nonlocal
14679 goto.
14680
14681 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14682
14683 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
14684 (nios2_emit_stack_limit_check): Add size parameter. Handle
14685 -fstack-limit-symbol as well as -fstack-limit-register.
14686 (nios2_expand_prologue): Emit only a single stack limit check,
14687 even if multiple stack adjustments are required.
14688 (nios2_option_override): Diagnose unsupported combination of -fpic
14689 and -stack-limit-symbol.
14690
14691 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
14692
14693 * Makefile.in (top_srcdir): New.
14694 * configure.ac: Use AM_ZLIB.
14695 * configure: Regeneated.
14696
14697 2015-07-14 Matthias Klose <doko@ubuntu.com>
14698
14699 PR target/66840
14700 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
14701
14702 2015-07-14 Richard Biener <rguenther@suse.de>
14703
14704 PR tree-optimization/66863
14705 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
14706 what we record for conversion use stmt lhs inequalities.
14707
14708 2015-07-14 Richard Biener <rguenther@suse.de>
14709
14710 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
14711 (decision_tree::gen_gimple): Likewise.
14712
14713 2015-07-14 Tom de Vries <tom@codesourcery.com>
14714
14715 * gcc.c (greater_than_spec_func): Declare forward.
14716 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
14717 -ftree-parallelize-loops={0,1}.
14718 (static_spec_functions): Add greater_than_spec_func function with name
14719 "gt".
14720 (greater_than_spec_func): New function.
14721
14722 2015-07-14 Richard Biener <rguenther@suse.de>
14723
14724 * tree-ssa-dom.c (record_temporary_equivalences): Merge
14725 wideing type conversion case from record_equivalences_from_incoming_edge
14726 and use record_equality to record equivalences.
14727 (record_equivalences_from_incoming_edge): Call
14728 record_temporary_equivalences.
14729
14730 2015-07-14 Richard Biener <rguenther@suse.de>
14731
14732 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
14733 (struct if_expr): New.
14734 (struct with_expr): Likewise.
14735 (is_a_helper): Add helpers for if_expr and with_expr.
14736 (struct simplify): Add simplify_kind enum and member. Remove
14737 ifexpr_vec member.
14738 (simplify::simplify): Adjust.
14739 (lower_commutative): Adjust.
14740 (lower_opt_convert): Likewise.
14741 (lower_cond): Likewise.
14742 (replace_id): Handle with_expr and if_expr.
14743 (lower_for): Adjust.
14744 (dt_simplify::gen_1): New recursive worker, split out from ...
14745 (dt_simplify::gen): ... here. Deal with if and with expansion
14746 recursively.
14747 (capture_info::capture_info): Take context argument
14748 (capture_info::walk_result): Only analyze specific result.
14749 (parser::parse_result): New function.
14750 (parser::parse_simplify): Adjust to parse ifs with then end
14751 else case.
14752 (parser::parse_if): Simplify.
14753 (parser::parse_pattern): Pass down simplify kind.
14754 * match.pd: Convert if structure to new syntax.
14755
14756 2015-07-13 Marek Polacek <polacek@redhat.com>
14757
14758 * rtl.c (rtx_equal_p_cb): Fix typo.
14759
14760 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
14761
14762 * omega.h: Don't include config.h, don't include params.h again if
14763 omega.h has already been included.
14764 * graphite-poly.h: Include sese.h.
14765 * graphite.c: Don't include sese.h, remove needless includes and
14766 minimize includes outside #ifdef HAVE_isl block.
14767 * graphite-blocking.c: Don't include sese.h, remove needless includes,
14768 and wrap entire file in #ifdef HAVE_isl
14769 * graphite-dependences.c: Likewise.
14770 * graphite-interchange.c: Likewise.
14771 * graphite-isl-ast-to-gimple.c: Likewise.
14772 * graphite-optimize-isl.c: Likewise.
14773 * graphite-poly.c: Likewise.
14774 * graphite-scop-detection.c: Likewise.
14775 * graphite-sese-to-poly.c: Likewise.
14776
14777 2015-07-13 Tom de Vries <tom@codesourcery.com>
14778
14779 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
14780
14781 2015-07-13 Renlin Li <renlin.li@arm.com>
14782
14783 PR rtl/66556
14784 * simplify-rtx.c (simplify_const_relational_operation): Add
14785 side_effects_p checks.
14786
14787 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
14788
14789 * bitmap.h: Fix double word typos.
14790 * builtins.c: Same.
14791 * calls.c: Same.
14792 * cfgloopmanip.c: Same.
14793 * cgraph.c: Same.
14794 * cgraph.h: Same.
14795 * cgraphclones.c: Same.
14796 * combine.c: Same.
14797 * config/aarch64/aarch64-protos.h: Same.
14798 * config/aarch64/aarch64.c: Same.
14799 * config/aarch64/aarch64.md: Same.
14800 * config/arm/arm.md: Same.
14801 * config/arm/arm1020e.md: Same.
14802 * config/arm/arm1026ejs.md: Same.
14803 * config/arm/arm926ejs.md: Same.
14804 * config/arm/fa526.md: Same.
14805 * config/arm/fa606te.md: Same.
14806 * config/arm/fa626te.md: Same.
14807 * config/arm/fa726te.md: Same.
14808 * config/arm/fmp626.md: Same.
14809 * config/darwin.c: Same.
14810 * config/epiphany/epiphany.c: Same.
14811 * config/frv/frv.c: Same.
14812 * config/ft32/ft32.c: Same.
14813 * config/gnu-user.h: Same.
14814 * config/h8300/constraints.md: Same.
14815 * config/i386/i386.c: Same.
14816 * config/i386/i386.md: Same.
14817 * config/iq2000/iq2000.md: Same.
14818 * config/mips/mips.c: Same.
14819 * config/mmix/mmix.md: Same.
14820 * config/moxie/moxie.c: Same.
14821 * config/nds32/nds32.md: Same.
14822 * config/pa/pa.h: Same.
14823 * config/rs6000/aix.h: Same.
14824 * config/rs6000/rs6000.h: Same.
14825 * config/sh/sh.c: Same.
14826 * config/tilegx/tilegx.md: Same.
14827 * config/tilepro/gen-mul-tables.cc: Same.
14828 * cse.c: Same.
14829 * dbxout.c: Same.
14830 * doc/invoke.texi: Same.
14831 * dse.c: Same.
14832 * dwarf2out.c: Same.
14833 * final.c: Same.
14834 * gcc.c: Same.
14835 * genmatch.c: Same.
14836 * gimplify.c: Same.
14837 * hash-table.h: Same.
14838 * internal-fn.c: Same.
14839 * ipa-cp.c: Same.
14840 * ipa-devirt.c: Same.
14841 * ipa-icf.c: Same.
14842 * ipa-icf.h: Same.
14843 * ipa-profile.c: Same.
14844 * ipa-prop.c: Same.
14845 * ipa-prop.h: Same.
14846 * ira.c: Same.
14847 * omp-low.c: Same.
14848 * reg-stack.c: Same.
14849 * regcprop.c: Same.
14850 * reorg.c: Same.
14851 * rtl.h: Same.
14852 * sbitmap.h: Same.
14853 * tree-eh.c: Same.
14854 * tree-inline.c: Same.
14855 * tree-sra.c: Same.
14856 * tree-ssa-dom.c: Same.
14857 * tree-ssa-loop-ivopts.c: Same.
14858 * tree-ssa-structalias.c: Same.
14859 * tree-ssa-tail-merge.c: Same.
14860 * tree-ssa-ter.c: Same.
14861 * tree-ssa-threadupdate.c: Same.
14862 * tree-ssa-uninit.c: Same.
14863 * tree-ssanames.c: Same.
14864 * tree-vect-loop-manip.c: Same.
14865 * tree-vrp.c: Same.
14866 * tree.c: Same.
14867 * valtrack.c: Same.
14868 * vec.h: Same.
14869
14870 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14871
14872 PR middle-end/66726
14873 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
14874 tree_ssa_phiopt_worker): Call it.
14875
14876 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14877
14878 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
14879 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
14880 REG_EQUAL note.
14881
14882 2015-07-11 Marek Polacek <polacek@redhat.com>
14883
14884 PR middle-end/66353
14885 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
14886 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
14887 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
14888 rather than bb_has_abnormal_call_pred.
14889 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
14890 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
14891 rather than bb_has_abnormal_call_pred.
14892
14893 2015-07-10 Anatoly Sokolov <aesok@post.ru>
14894
14895 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14896 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
14897 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14898 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
14899 v850_legitimate_address_p): New functions.
14900 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14901
14902 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
14903
14904 PR target/66819
14905 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
14906 indirect sibcall with register arguments if register available
14907 for argument passing.
14908 (init_cumulative_args): Set cfun->machine->arg_reg_available
14909 to (cum->nregs > 0) or to true if function has a variable
14910 argument list.
14911 (function_arg_advance_32): Set cfun->machine->arg_reg_available
14912 to false if cum->nregs <= 0.
14913 * config/i386/i386.h (machine_function): Add arg_reg_available.
14914
14915 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
14916
14917 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
14918 and gen_higpart instead of gen_rtx_SUBREG.
14919 * config/i386/i386.md
14920 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
14921 (read-modify peephole2): Use gen_lowpart instead of
14922 gen_rtx_SUBREG for operand 5.
14923
14924 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
14925
14926 * config/tilepro/gen-mul-tables.cc (main): Change include list for
14927 generated files.
14928 * config/tilepro/mul-tables.c: Regenerate.
14929 * config/tilegx/mul-tables.c: Regenerate.
14930
14931 2015-07-10 Richard Biener <rguenther@suse.de>
14932
14933 * fold-const.c (distribute_bit_expr): Remove.
14934 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
14935 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
14936 to A & (B | C) and simplifying A << C1 << C2 to ...
14937 * match.pd: ... patterns here.
14938
14939 2015-07-10 Jiong Wang <jiong.wang@arm.com>
14940
14941 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14942 Mark mem as READONLY and NOTRAP for PIC symbol.
14943
14944 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
14945
14946 * gimple-predict.h: New file.
14947 (gimple_predict_predictor, gimple_predict_set_predictor,
14948 gimple_predict_outcome, gimple_predict_set_outcome,
14949 gimple_build_predict): Relocate here.
14950 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
14951 gimple_predict_outcome, gimple_predict_set_outcome): Move to
14952 gimple-predict.h.
14953 * gimple.c (gimple_build_predict): Move to gimple-predict.h
14954 * basic-block.h: Don't include cfghooks.h.
14955 * backend.h: Don't include predict.h.
14956 * cfghooks.h: Include predict.h.
14957 * gimple-pretty-print.c: Include gimple-predict.h.
14958 * gimplify.c: Likwise.
14959 * predict.c: Adjust includes.
14960 * tree-inline.c: Likewise.
14961 * asan.c: Likewise.
14962 * auto-inc-dec.c: Likewise.
14963 * auto-profile.c: Likewise.
14964 * bb-reorder.c: Likewise.
14965 * builtins.c: Likewise.
14966 * caller-save.c: Likewise.
14967 * calls.c: Likewise.
14968 * cfganal.c: Likewise.
14969 * cfgbuild.c: Likewise.
14970 * cfg.c: Likewise.
14971 * cfgcleanup.c: Likewise.
14972 * cfgexpand.c: Likewise.
14973 * cfghooks.c: Likewise.
14974 * cfgloopanal.c: Likewise.
14975 * cfgloop.c: Likewise.
14976 * cfgloopmanip.c: Likewise.
14977 * cfgrtl.c: Likewise.
14978 * cgraph.c: Likewise.
14979 * cgraphunit.c: Likewise.
14980 * combine.c: Likewise.
14981 * cprop.c: Likewise.
14982 * cse.c: Likewise.
14983 * dce.c: Likewise.
14984 * dojump.c: Likewise.
14985 * dse.c: Likewise.
14986 * except.c: Likewise.
14987 * expmed.c: Likewise.
14988 * expr.c: Likewise.
14989 * final.c: Likewise.
14990 * fold-const.c: Likewise.
14991 * function.c: Likewise.
14992 * fwprop.c: Likewise.
14993 * gcc-plugin.h: Likewise.
14994 * gcse.c: Likewise.
14995 * genattrtab.c: Likewise.
14996 * genemit.c: Likewise.
14997 * gengtype.c: Likewise.
14998 * genopinit.c: Likewise.
14999 * genoutput.c: Likewise.
15000 * genpreds.c: Likewise.
15001 * genrecog.c: Likewise.
15002 * gimple-fold.c: Likewise.
15003 * gimple-iterator.c: Likewise.
15004 * gimple-ssa-isolate-paths.c: Likewise.
15005 * gimple-ssa-strength-reduction.c: Likewise.
15006 * graph.c: Likewise.
15007 * graphite-blocking.c: Likewise.
15008 * graphite.c: Likewise.
15009 * graphite-dependences.c: Likewise.
15010 * graphite-interchange.c: Likewise.
15011 * graphite-isl-ast-to-gimple.c: Likewise.
15012 * graphite-optimize-isl.c: Likewise.
15013 * graphite-poly.c: Likewise.
15014 * graphite-scop-detection.c: Likewise.
15015 * graphite-sese-to-poly.c: Likewise.
15016 * haifa-sched.c: Likewise.
15017 * ifcvt.c: Likewise.
15018 * internal-fn.c: Likewise.
15019 * ipa-cp.c: Likewise.
15020 * ipa-profile.c: Likewise.
15021 * ipa-split.c: Likewise.
15022 * ipa-utils.c: Likewise.
15023 * ira-build.c: Likewise.
15024 * ira-color.c: Likewise.
15025 * ira-conflicts.c: Likewise.
15026 * ira-costs.c: Likewise.
15027 * ira-emit.c: Likewise.
15028 * ira-lives.c: Likewise.
15029 * jump.c: Likewise.
15030 * loop-doloop.c: Likewise.
15031 * loop-init.c: Likewise.
15032 * loop-invariant.c: Likewise.
15033 * loop-unroll.c: Likewise.
15034 * lower-subreg.c: Likewise.
15035 * lra-assigns.c: Likewise.
15036 * lra.c: Likewise.
15037 * lra-coalesce.c: Likewise.
15038 * lra-constraints.c: Likewise.
15039 * lra-lives.c: Likewise.
15040 * lto-cgraph.c: Likewise.
15041 * lto-streamer-in.c: Likewise.
15042 * mode-switching.c: Likewise.
15043 * modulo-sched.c: Likewise.
15044 * omp-low.c: Likewise.
15045 * optabs.c: Likewise.
15046 * passes.c: Likewise.
15047 * postreload.c: Likewise.
15048 * postreload-gcse.c: Likewise.
15049 * profile.c: Likewise.
15050 * recog.c: Likewise.
15051 * regstat.c: Likewise.
15052 * reload1.c: Likewise.
15053 * reorg.c: Likewise.
15054 * rtlanal.c: Likewise.
15055 * sched-ebb.c: Likewise.
15056 * sel-sched-ir.c: Likewise.
15057 * sese.c: Likewise.
15058 * shrink-wrap.c: Likewise.
15059 * simplify-rtx.c: Likewise.
15060 * stmt.c: Likewise.
15061 * store-motion.c: Likewise.
15062 * tracer.c: Likewise.
15063 * trans-mem.c: Likewise.
15064 * tree-call-cdce.c: Likewise.
15065 * tree-cfg.c: Likewise.
15066 * tree-cfgcleanup.c: Likewise.
15067 * tree-chkp.c: Likewise.
15068 * tree-complex.c: Likewise.
15069 * tree-eh.c: Likewise.
15070 * tree-if-conv.c: Likewise.
15071 * tree-loop-distribution.c: Likewise.
15072 * tree-outof-ssa.c: Likewise.
15073 * tree-parloops.c: Likewise.
15074 * tree-predcom.c: Likewise.
15075 * tree-pretty-print.c: Likewise.
15076 * tree-profile.c: Likewise.
15077 * tree-sra.c: Likewise.
15078 * tree-ssa.c: Likewise.
15079 * tree-ssa-coalesce.c: Likewise.
15080 * tree-ssa-dce.c: Likewise.
15081 * tree-ssa-dom.c: Likewise.
15082 * tree-ssa-forwprop.c: Likewise.
15083 * tree-ssa-ifcombine.c: Likewise.
15084 * tree-ssa-loop-ch.c: Likewise.
15085 * tree-ssa-loop-im.c: Likewise.
15086 * tree-ssa-loop-ivcanon.c: Likewise.
15087 * tree-ssa-loop-ivopts.c: Likewise.
15088 * tree-ssa-loop-manip.c: Likewise.
15089 * tree-ssa-loop-prefetch.c: Likewise.
15090 * tree-ssa-loop-unswitch.c: Likewise.
15091 * tree-ssa-math-opts.c: Likewise.
15092 * tree-ssa-phiopt.c: Likewise.
15093 * tree-ssa-pre.c: Likewise.
15094 * tree-ssa-reassoc.c: Likewise.
15095 * tree-ssa-sink.c: Likewise.
15096 * tree-ssa-tail-merge.c: Likewise.
15097 * tree-ssa-threadedge.c: Likewise.
15098 * tree-ssa-threadupdate.c: Likewise.
15099 * tree-switch-conversion.c: Likewise.
15100 * tree-tailcall.c: Likewise.
15101 * tree-vect-data-refs.c: Likewise.
15102 * tree-vect-loop.c: Likewise.
15103 * tree-vect-loop-manip.c: Likewise.
15104 * tree-vectorizer.c: Likewise.
15105 * tree-vrp.c: Likewise.
15106 * ubsan.c: Likewise.
15107 * value-prof.c: Likewise.
15108 * varasm.c: Likewise.
15109 * var-tracking.c: Likewise.
15110 * config/aarch64/aarch64-builtins.c: Likewise.
15111 * config/aarch64/aarch64.c: Likewise.
15112 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15113 * config/alpha/alpha.c: Likewise.
15114 * config/arc/arc.c: Likewise.
15115 * config/arm/arm.c: Likewise.
15116 * config/avr/avr.c: Likewise.
15117 * config/bfin/bfin.c: Likewise.
15118 * config/c6x/c6x.c: Likewise.
15119 * config/cr16/cr16.c: Likewise.
15120 * config/cris/cris.c: Likewise.
15121 * config/darwin.c: Likewise.
15122 * config/darwin-c.c: Likewise.
15123 * config/epiphany/epiphany.c: Likewise.
15124 * config/epiphany/mode-switch-use.c: Likewise.
15125 * config/epiphany/resolve-sw-modes.c: Likewise.
15126 * config/fr30/fr30.c: Likewise.
15127 * config/frv/frv.c: Likewise.
15128 * config/ft32/ft32.c: Likewise.
15129 * config/h8300/h8300.c: Likewise.
15130 * config/i386/i386.c: Likewise.
15131 * config/i386/winnt.c: Likewise.
15132 * config/ia64/ia64.c: Likewise.
15133 * config/iq2000/iq2000.c: Likewise.
15134 * config/lm32/lm32.c: Likewise.
15135 * config/m32c/m32c.c: Likewise.
15136 * config/m32r/m32r.c: Likewise.
15137 * config/m68k/m68k.c: Likewise.
15138 * config/mcore/mcore.c: Likewise.
15139 * config/mep/mep.c: Likewise.
15140 * config/microblaze/microblaze.c: Likewise.
15141 * config/mips/mips.c: Likewise.
15142 * config/mmix/mmix.c: Likewise.
15143 * config/mn10300/mn10300.c: Likewise.
15144 * config/moxie/moxie.c: Likewise.
15145 * config/msp430/msp430.c: Likewise.
15146 * config/nds32/nds32.c: Likewise.
15147 * config/nds32/nds32-cost.c: Likewise.
15148 * config/nds32/nds32-fp-as-gp.c: Likewise.
15149 * config/nds32/nds32-intrinsic.c: Likewise.
15150 * config/nds32/nds32-isr.c: Likewise.
15151 * config/nds32/nds32-md-auxiliary.c: Likewise.
15152 * config/nds32/nds32-memory-manipulation.c: Likewise.
15153 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15154 * config/nds32/nds32-predicates.c: Likewise.
15155 * config/nios2/nios2.c: Likewise.
15156 * config/nvptx/nvptx.c: Likewise.
15157 * config/pa/pa.c: Likewise.
15158 * config/pdp11/pdp11.c: Likewise.
15159 * config/rl78/rl78.c: Likewise.
15160 * config/rs6000/rs6000.c: Likewise.
15161 * config/rx/rx.c: Likewise.
15162 * config/s390/s390.c: Likewise.
15163 * config/sh/sh.c: Likewise.
15164 * config/sh/sh-mem.cc: Likewise.
15165 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15166 * config/sh/sh_treg_combine.cc: Likewise.
15167 * config/sparc/sparc.c: Likewise.
15168 * config/spu/spu.c: Likewise.
15169 * config/stormy16/stormy16.c: Likewise.
15170 * config/tilegx/tilegx.c: Likewise.
15171 * config/tilepro/tilepro.c: Likewise.
15172 * config/v850/v850.c: Likewise.
15173 * config/vax/vax.c: Likewise.
15174 * config/visium/visium.c: Likewise.
15175 * config/xtensa/xtensa.c: Likewise.
15176
15177 2015-07-10 Richard Biener <rguenther@suse.de>
15178
15179 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
15180 (decision_tree::gen_gimple): Likewise.
15181 (decision_tree::gen_generic): Likewise.
15182
15183 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
15184
15185 PR target/66813
15186 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
15187 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
15188
15189 2015-07-10 Jakub Jelinek <jakub@redhat.com>
15190
15191 PR middle-end/66820
15192 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
15193 or ORT_TASK contexts.
15194 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
15195 is non-zero.
15196
15197 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15198
15199 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
15200 above function.
15201
15202 2015-07-10 Tom de Vries <tom@codesourcery.com>
15203
15204 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
15205 insert nit + 1 bound.
15206
15207 2015-07-10 Richard Biener <rguenther@suse.de>
15208
15209 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
15210 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
15211 (if_convertible_loop_p_1): For this always compute bb predicates.
15212 (if_convertible_loop_p): And free them.
15213
15214 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15215
15216 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
15217 in dump message.
15218
15219 2015-07-10 Richard Biener <rguenther@suse.de>
15220
15221 PR tree-optimization/66823
15222 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
15223 inverted predicate.
15224
15225 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
15226
15227 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
15228 to handle mips[32|64]r3 and mips[32|64]r5.
15229
15230 2015-07-09 Jakub Jelinek <jakub@redhat.com>
15231
15232 PR middle-end/66633
15233 * tree-nested.c (get_static_chain): Or in a flag into
15234 info->static_chain_added.
15235 (get_frame_field, get_nonlocal_debug_decl): Likewise.
15236 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
15237 2015-07-01 changes.
15238 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
15239 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
15240 add it to clauses.
15241
15242 PR tree-optimization/66718
15243 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
15244 field.
15245 (vect_simd_lane_linear): New function.
15246 (vectorizable_simd_clone_call): Support using linear arguments for
15247 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
15248
15249 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15250
15251 PR target/66821
15252 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
15253
15254 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
15255
15256 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
15257 Use machine mode, not enum machine_mode in the prototype.
15258
15259 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
15260 classify 128-bit floating point support.
15261 (FLOAT128_IBM_P): Likewise.
15262 (FLOAT128_VECTOR_P): Likewise.
15263 (FLOAT128_2REG_P): Likewise.
15264 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
15265 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
15266 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15267 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
15268
15269 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
15270 tests against TFmode/TDmode, since those modes do not use VSX
15271 addresses.
15272 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
15273 support.
15274 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
15275 tests against TFmode, etc.
15276 (invalid_e500_subreg): Add tests against IFmode/KFmode.
15277 (reg_offset_addressing_ok_p): Likewise.
15278 (rs6000_legitimate_offset_address_p): Likewise.
15279 (rs6000_legitimize_address): Likewise.
15280 (rs6000_legitimize_reload_address): Likewise.
15281 (rs6000_legitimate_address_p): Clean up tests against TFmode and
15282 TDmode to use the new helper macros, which will include IFmode and
15283 KFmode.
15284 (rs6000_emit_move): Likewise.
15285 (rs6000_darwin64_record_arg_recurse): Likewise.
15286 (print_operand): Likewise.
15287 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
15288 that uses a single vector register as a vector and not as a
15289 floating point register in terms of the calling sequence.
15290 (rs6000_discover_homogeneous_aggregate): Likewise.
15291 (rs6000_return_in_memory): Likewise.
15292 (init_cumulative_args): Likewise.
15293 (rs6000_function_arg_boundary): Likewise.
15294 (rs6000_function_arg_advance_1): Likewise.
15295 (rs6000_function_arg): Likewise.
15296 (rs6000_pass_by_reference): Likewise.
15297 (rs6000_gimplify_va_arg): Likewise.
15298 (rs6000_secondary_reload_memory): Use machine_mode not enum
15299 machine mode.
15300 (rs6000_split_multireg_move): Use new helper macros.
15301 (spe_func_has_64bit_regs_p): Likewise.
15302 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
15303 (output_toc): Use new helper macros.
15304 (rs6000_register_move_cost): Likewise.
15305 (rs6000_function_value): Add IEEE 128-bit floating point calling
15306 sequence support.
15307 (rs6000_libcall_value): Likewise.
15308 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
15309 floating point support.
15310 (rs6000_vector_mode_supported_p): Likewise.
15311
15312 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
15313
15314 PR rtl-optimization/66782
15315 * lra-int.h (struct lra_insn_recog_data): Add comment about
15316 clobbered hard regs for arg_hard_regs.
15317 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
15318 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
15319 Add condition for processing used hard regs.
15320 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
15321 Process clobbered hard regs.
15322
15323 2015-07-09 Michael Matz <matz@suse.de>
15324
15325 * genmatch.c (fprintf_indent): New function.
15326 (operand::gen_transform): Add indent parameter.
15327 (expr::gen_transform, c_expr::gen_transform,
15328 capture::gen_transform): Ditto and use fprintf_indent.
15329 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
15330 (dt_operand::gen, dt_operand::gen_predicate,
15331 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
15332 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
15333 (decision_tree::gen_gimple): Adjust calls and indent generated
15334 code.
15335 (decision_tree::gen_generic): Ditto.
15336 (write_predicate): Ditto.
15337
15338 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15339
15340 PR target/66814
15341 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
15342 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
15343 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
15344 {GENERAL,SSE,MMX}_REG_P where appropriate.
15345
15346 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
15347
15348 * lto-streamer.h: Don't include target.h and alloc-pool.h.
15349 * builtins.c: Adjust includes.
15350 * gimple.c: Likewise.
15351 * ipa-icf.c: Likewise.
15352 * lto-opts.c: Likewise.
15353 * ipa-reference.c: Likewise.
15354 * lto-section-out.c: Likewise.
15355 * lto-streamer-in.c: Likewise.
15356 * lto-streamer-out.c: Likewise.
15357 * opts-global.c: Likewise.
15358 * symtab.c: Likewise.
15359 * tree-chkp.c: Likewise.
15360 * tree-ssa-live.c: Likewise.
15361 * tree-streamer-in.c: Likewise.
15362 * tree-streamer-out.c: Likewise.
15363 * config/darwin.c: Likewise.
15364 * config/i386/winnt.c: Likewise.
15365
15366 2015-07-09 Richard Biener <rguenther@suse.de>
15367
15368 * genmatch.c (struct expr): Add force_single_use flag.
15369 (expr::expr): Add copy constructor.
15370 (capture_info::walk_match): Gather force_single_use captures.
15371 (expr::gen_transform): Use possibly NULLified sequence.
15372 (dt_simplify::gen): Apply single-use restrictions by NULLifying
15373 seq if any constrained expr is not single-use.
15374 (parser::parse_expr): Refactor to allow multiple flags. Handle
15375 's' flag to force an expression have a single-use if the pattern
15376 simplifies to more than one statement.
15377 * match.pd: Convert most single_use conditionals to :s flags.
15378
15379 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15380
15381 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
15382 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15383 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
15384
15385 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
15386
15387 * flags.h: Don't include flag-types.h or options.h.
15388 * opts-common.c: Adjust includes.
15389 * opts-global.c: Likewise.
15390 * common/config/epiphany/epiphany-common.c: Likewise.
15391
15392 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15393
15394 PR target/66818
15395 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
15396 for IA MCU.
15397
15398 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15399
15400 PR target/66817
15401 * config/i386/i386.c (ix86_return_in_memory): Return true
15402 if int_size_in_bytes returns negative for IA MCU.
15403
15404 2015-07-09 Marek Polacek <polacek@redhat.com>
15405
15406 PR tree-optimization/66718
15407 * Makefile.in (OBJS): Add gimple-laddress.o.
15408 * passes.def: Schedule pass_laddress.
15409 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
15410 * tree-pass.h (make_pass_laddress): Declare.
15411 * gimple-laddress.c: New file.
15412
15413 2015-07-09 Richard Biener <rguenther@suse.de>
15414
15415 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
15416
15417 2015-07-09 Richard Biener <rguenther@suse.de>
15418
15419 PR tree-optimization/66807
15420 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
15421
15422 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
15423
15424 * function.c (stack_protect_epilogue): Use if rather than switch for
15425 check targetm.have_stack_protect_test.
15426
15427 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15428
15429 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
15430 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
15431 * config/arc/arc.h: Likewise.
15432 * config/arm/arm.h: Likewise.
15433 * config/bfin/bfin.h: Likewise.
15434 * config/epiphany/epiphany.h: Likewise.
15435 * config/frv/frv.h: Likewise.
15436 * config/ia64/ia64.h: Likewise.
15437 * config/iq2000/iq2000.h: Likewise.
15438 * config/lm32/lm32.h: Likewise.
15439 * config/m32r/m32r.h: Likewise.
15440 * config/mcore/mcore.h: Likewise.
15441 * config/mep/mep.h: Likewise.
15442 * config/microblaze/microblaze.h: Likewise.
15443 * config/mips/mips.h: Likewise.
15444 * config/mmix/mmix.h: Likewise.
15445 * config/mn10300/mn10300.h: Likewise.
15446 * config/nds32/nds32.h: Likewise.
15447 * config/nios2/nios2.h: Likewise.
15448 * config/pa/pa.h: Likewise.
15449 * config/rl78/rl78.h: Likewise.
15450 * config/sh/sh.h: Likewise.
15451 * config/sparc/sparc.h: Likewise.
15452 * config/stormy16/stormy16.h: Likewise.
15453 * config/tilegx/tilegx.h: Likewise.
15454 * config/tilepro/tilepro.h: Likewise.
15455 * config/v850/v850.h: Likewise.
15456 * config/xtensa/xtensa.h: Likewise.
15457 * doc/tm.texi: Regenerate.
15458 * doc/tm.texi.in: Adjust.
15459 * combine.c (simplify_set): Likewise.
15460 (simplify_comparison): Likewise.
15461 * expr.c (store_constructor): Likewise.
15462 * internal-fn.c (expand_arith_overflow): Likewise.
15463 * reload.c (push_reload): Likewise.
15464 (find_reloads): Likewise.
15465 (find_reloads_subreg_address): Likewise.
15466 * reload1.c (eliminate_regs_1): Likewise.
15467 * rtlanal.c (nonzero_bits1): Likewise.
15468 (num_sign_bit_copies1): Likewise.
15469 * simplify-rtx.c (simplify_truncation): Likewise.
15470
15471 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15472
15473 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
15474 of AUTO_INC_DEC with the preprocessor.
15475 * combine.c (combine_instructions): Likewise.
15476 (can_combine_p): Likewise.
15477 (try_combine): Likewise.
15478 * emit-rtl.c (try_split): Likewise.
15479 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15480 * lower-subreg.c (resolve_simple_move): Likewise.
15481 * lra.c (update_inc_notes): Likewise.
15482 * recog.c (asm_operand_ok): Likewise.
15483 (constrain_operands): Likewise.
15484 * regrename.c (scan_rtx_address): Likewise.
15485 * reload.c (update_auto_inc_notes): Likewise.
15486 (reg_inc_found_and_valid_p): Likewise.
15487 * reload1.c (reload): Likewise.
15488 (emit_input_reload_insns): Likewise.
15489 (delete_output_reload): Likewise.
15490 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15491 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15492
15493 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15494
15495 * rtl.h: Always define AUTO_INC_DEC.
15496 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
15497 * combine.c (combine_instructions): Likewise.
15498 (can_combine_p): Likewise.
15499 (try_combine): Likewise.
15500 * emit-rtl.c (try_split): Likewise.
15501 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15502 * lower-subreg.c (resolve_simple_move): Likewise.
15503 * lra.c (update_inc_notes): Likewise.
15504 * recog.c (asm_operand_ok): Likewise.
15505 (constrain_operands): Likewise.
15506 * regrename.c (scan_rtx_address): Likewise.
15507 * reload.c (update_auto_inc_notes): Likewise.
15508 (find_equiv_reg): Likewise.
15509 * reload1.c (reload): Likewise.
15510 (reload_as_needed): Likewise.
15511 (choose_reload_regs): Likewise.
15512 (emit_input_reload_insns): Likewise.
15513 (delete_output_reload): Likewise.
15514 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15515 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15516
15517 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15518
15519 * combine.c (can_combine_def_p): Don't check the value of
15520 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
15521 (combinable_i3pat): Likewise.
15522 (mark_used_regs_combine): Likewise.
15523 * regrename.c (rename_chains): Likewise.
15524 * reload.c (find_reloads_address): Likewise.
15525 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15526
15527 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15528
15529 * combine.c (update_rsp_from_reg_equal): Don't check if
15530 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
15531 (reg_nonzero_bits_for_combine): Likewise.
15532 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
15533 1.
15534 * config/frv/frv.h: Likewise.
15535 * config/lm32/lm32.h: Likewise.
15536 * config/mep/mep.h: Likewise.
15537 * config/mips/mips.h: Likewise.
15538 * config/rs6000/rs6000.h: Likewise.
15539 * config/sh/sh.h: Likewise.
15540 * config/tilegx/tilegx.h (enum reg_class): Likewise.
15541 * config/tilepro/tilepro.h: Likewise.
15542 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
15543 * doc/tm.texi: Regenerate.
15544 * doc/tm.texi.in: Adjust.
15545 * rtlanal.c (nonzero_bits1): Likewise.
15546
15547 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15548
15549 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
15550 with the preprocessor.
15551 (combine_instructions): Likewise.
15552 (try_combine): Likewise.
15553 (subst): Likewise.
15554 (distribute_notes): Likewise.
15555
15556 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15557
15558 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
15559 defined.
15560 (simplify_set): Likewise.
15561 * cse.c (cse_insn): Likewise.
15562 * fold-const.c (fold_single_bit_test): Likewise.
15563 (fold_unary_loc): Likewise.
15564 * postreload.c (reload_cse_simplify_set): Likewise.
15565 (reload_cse_simplify_operands): Likewise.
15566
15567 2015-07-08 Jiong Wang <jiong.wang@arm.com>
15568
15569 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
15570 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
15571
15572 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
15573
15574 PR target/66746
15575 * config/i386/x86intrin.h: Include <adxintrin.h> even if
15576 __iamcu__ is defined.
15577
15578 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15579
15580 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
15581
15582 2015-07-08 Iain Sandoe <iain@codesourcery.com>
15583
15584 PR target/66523
15585 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
15586 names from preservation.
15587
15588 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
15589
15590 PR target/66806
15591 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
15592 change for IAMCU.
15593 (function_arg_advance_32): Don't pass vectors in registers for
15594 IAMCU.
15595 (function_arg_32): Likewise.
15596 (ix86_return_in_memory): Don't return vectors in registers for
15597 IAMCU.
15598
15599 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
15600
15601 PR middle-end/66334
15602 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
15603 hard regno live at the start of BB with incoming abnormal edges.
15604 * lra-lives.c (process_bb_lives): Ditto.
15605
15606 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15607
15608 PR libgomp/65099
15609 * config/nvptx/mkoffload.c (main): Create an offload image only in
15610 64-bit configurations.
15611
15612 2015-07-08 Martin Liska <mliska@suse.cz>
15613
15614 PR bootstrap/66744
15615 * tree-sra.c (create_access_1): Call ctor without brackets.
15616 (create_artificial_child_access): Likewise.
15617
15618 2015-07-08 Richard Biener <rguenther@suse.de>
15619
15620 PR tree-optimization/66793
15621 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
15622 Properly split the block after stmts ending it.
15623
15624 2015-07-08 Richard Biener <rguenther@suse.de>
15625
15626 PR tree-optimization/66794
15627 * passes.c (execute_function_todo): Assert that post-dominators
15628 are not computed.
15629 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
15630 Free post-dominators.
15631
15632 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15633
15634 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
15635 with early exit.
15636
15637 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15638
15639 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
15640 more than or equal 8 and less than 32 when optimizing for size.
15641
15642 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15643
15644 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
15645 COSTS_N_INSNS (1) and increment it appropriately throughout the
15646 function.
15647
15648 2015-07-08 Richard Biener <rguenther@suse.de>
15649
15650 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
15651
15652 2015-07-08 Alan Modra <amodra@gmail.com>
15653
15654 * target.def (rtx_costs): Remove "code" param, add "mode".
15655 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
15656 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
15657 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
15658 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
15659 call. Track mode when given in rtx.
15660 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
15661 (default_address_cost): Pass Pmode to rtx_cost.
15662 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
15663 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
15664 with NULL set.
15665 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
15666 (notreg_cost): Add mode param. Use it.
15667 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
15668 mode param and pass to set_src_cost. Update all calls.
15669 (hash_scan_set): Formatting.
15670 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
15671 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
15672 * hooks.h: Ditto.
15673 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
15674 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
15675 emit_store_flag): Update set_src_cost and rtx_cost calls.
15676 * auto-inc-dec.c (attempt_change): Likewise.
15677 * calls.c (precompute_register_parameters): Likewise.
15678 * combine.c (expand_compound_operation, make_extraction,
15679 force_to_mode, distribute_and_simplify_rtx): Likewise.
15680 * dojump.c (prefer_and_bit_test): Likewise.
15681 * dse.c (find_shift_sequence): Likewise.
15682 * expr.c (compress_float_constant): Likewise.
15683 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
15684 * ifcvt.c (noce_try_sign_mask): Likewise.
15685 * loop-doloop.c (doloop_optimize): Likewise.
15686 * loop-invariant.c (create_new_invariant): Likewise.
15687 * lower-subreg.c (shift_cost, compute_costs): Likewise.
15688 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
15689 lshift_cheap_p): Likewise.
15690 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
15691 try_replace_in_use, reload_cse_move2add): Likewise.
15692 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
15693 Likewise.
15694 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15695 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
15696 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
15697 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
15698 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
15699 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
15700 to rtx_cost calls.
15701 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
15702 * config/arc/arc.c (arc_rtx_costs): Likewise.
15703 * config/arm/arm.c (arm_rtx_costs): Likewise.
15704 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
15705 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
15706 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
15707 * config/cris/cris.c (cris_rtx_costs): Likewise.
15708 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
15709 * config/frv/frv.c (frv_rtx_costs): Likewise.
15710 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
15711 * config/i386/i386.c (ix86_rtx_costs): Likewise.
15712 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
15713 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
15714 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
15715 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
15716 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
15717 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
15718 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
15719 * config/mep/mep.c (mep_rtx_cost): Likewise.
15720 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
15721 * config/mips/mips.c (mips_rtx_costs): Likewise.
15722 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
15723 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
15724 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
15725 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
15726 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
15727 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
15728 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
15729 * config/pa/pa.c (hppa_rtx_costs): Likewise.
15730 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
15731 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
15732 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
15733 * config/s390/s390.c (s390_rtx_costs): Likewise.
15734 * config/sh/sh.c (sh_rtx_costs): Likewise.
15735 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
15736 * config/spu/spu.c (spu_rtx_costs): Likewise.
15737 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
15738 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
15739 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
15740 * config/v850/v850.c (v850_rtx_costs): Likewise.
15741 * config/vax/vax.c (vax_rtx_costs): Likewise.
15742 * config/visium/visium.c (visium_rtx_costs): Likewise.
15743 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
15744 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
15745 "code" param, and pass as outer_code to first rtx_cost call. Pass
15746 mode to rtx_cost calls.
15747 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
15748 calls.
15749 (aarch64_rtx_costs_wrapper): Update.
15750 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
15751 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
15752 rtx_cost calls.
15753 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
15754 and rtx_cost calls.
15755 (avr_operand_rtx_cost): Similarly.
15756 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
15757 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
15758 * config/mips/mips.c (mips_stack_address_p): Comment typo.
15759 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
15760 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
15761 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
15762 rtx_cost.
15763 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
15764 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
15765 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
15766 * doc/tm.texi: Regenerate.
15767
15768 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
15769
15770 * tree-core.h: Include symtab.h.
15771 * rtl.h: Include hard-reg-set.h but not flags.h.
15772 (HARD_CONST): Remove condition compilation involving HARD_CONST since
15773 hard-reg-set.h is always included.
15774 * regs.h: Don't include hard-reg-set.h or rtl.h.
15775 * cfg.h: Include dominance.h.
15776 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
15777 * backend.h: New. Aggregate commonly used backend header files.
15778 * gimple-ssa.h: Don't include tree-hasher.h.
15779 * ssa.h: New. Aggregate commonly used SSA header files.
15780 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
15781 * sel-sched-ir.h: Flatten includes.
15782 * lra-int.h: Flatten completely.
15783 * sel-sched-dump.h: Flatten includes.
15784 * ira-int.h: Flatten includes.
15785 * gimple-streamer.h: Remove all includes.
15786 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
15787 * resource.h: Flatten hard-reg-set.h and df.h.
15788 * sched-int.h: Flatten insn-arrt.h and df.h.
15789 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
15790 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
15791 * genattrtab.c (write_header): Adjust generated includes.
15792 * genautomata.c (main): Likewise.
15793 * genconditions.c (write-header): Likewise.
15794 * genemit.c (main): Likewise.
15795 * gengtype.c (open_base_files): Likewise.
15796 * genopinit.c (main): Likewise.
15797 * genoutput.c (output_prologue): Likewise.
15798 * genpeep.c (main): Likewise.
15799 * genpreds.c (write_insn_preds_c): Likewise.
15800 * genrecog.c (write_header): Likewise.
15801 * alias.c: Adjust includes.
15802 * asan.c: Likewise.
15803 * attribs.c: Likewise.
15804 * auto-inc-dec.c: Likewise.
15805 * auto-profile.c: Likewise.
15806 * bb-reorder.c: Likewise.
15807 * bt-load.c: Likewise.
15808 * builtins.c: Likewise.
15809 * caller-save.c: Likewise.
15810 * calls.c: Likewise.
15811 * ccmp.c: Likewise.
15812 * cfg.c: Likewise.
15813 * cfganal.c: Likewise.
15814 * cfgbuild.c: Likewise.
15815 * cfgcleanup.c: Likewise.
15816 * cfgexpand.c: Likewise.
15817 * cfghooks.c: Likewise.
15818 * cfgloop.c: Likewise.
15819 * cfgloopanal.c: Likewise.
15820 * cfgloopmanip.c: Likewise.
15821 * cfgrtl.c: Likewise.
15822 * cgraph.c: Likewise.
15823 * cgraphbuild.c: Likewise.
15824 * cgraphclones.c: Likewise.
15825 * cgraphunit.c: Likewise.
15826 * cilk-common.c: Likewise.
15827 * combine-stack-adj.c: Likewise.
15828 * combine.c: Likewise.
15829 * compare-elim.c: Likewise.
15830 * convert.c: Likewise.
15831 * coverage.c: Likewise.
15832 * cppbuiltin.c: Likewise.
15833 * cprop.c: Likewise.
15834 * cse.c: Likewise.
15835 * cselib.c: Likewise.
15836 * data-streamer-in.c: Likewise.
15837 * data-streamer-out.c: Likewise.
15838 * data-streamer.c: Likewise.
15839 * dbxout.c: Likewise.
15840 * dce.c: Likewise.
15841 * ddg.c: Likewise.
15842 * debug.c: Likewise.
15843 * df-core.c: Likewise.
15844 * df-problems.c: Likewise.
15845 * df-scan.c: Likewise.
15846 * dfp.c: Likewise.
15847 * dojump.c: Likewise.
15848 * dominance.c: Likewise.
15849 * domwalk.c: Likewise.
15850 * double-int.c: Likewise.
15851 * dse.c: Likewise.
15852 * dumpfile.c: Likewise.
15853 * dwarf2asm.c: Likewise.
15854 * dwarf2cfi.c: Likewise.
15855 * dwarf2out.c: Likewise.
15856 * emit-rtl.c: Likewise.
15857 * et-forest.c: Likewise.
15858 * except.c: Likewise.
15859 * explow.c: Likewise.
15860 * expmed.c: Likewise.
15861 * expr.c: Likewise.
15862 * final.c: Likewise.
15863 * fixed-value.c: Likewise.
15864 * fold-const.c: Likewise.
15865 * function.c: Likewise.
15866 * fwprop.c: Likewise.
15867 * gcc-plugin.h: Likewise.
15868 * gcse-common.c: Likewise.
15869 * gcse.c: Likewise.
15870 * generic-match-head.c: Likewise.
15871 * ggc-page.c: Likewise.
15872 * gimple-builder.c: Likewise.
15873 * gimple-expr.c: Likewise.
15874 * gimple-fold.c: Likewise.
15875 * gimple-iterator.c: Likewise.
15876 * gimple-low.c: Likewise.
15877 * gimple-match-head.c: Likewise.
15878 * gimple-pretty-print.c: Likewise.
15879 * gimple-ssa-isolate-paths.c: Likewise.
15880 * gimple-ssa-strength-reduction.c: Likewise.
15881 * gimple-streamer-in.c: Likewise.
15882 * gimple-streamer-out.c: Likewise.
15883 * gimple-walk.c: Likewise.
15884 * gimple.c: Likewise.
15885 * gimplify-me.c: Likewise.
15886 * gimplify.c: Likewise.
15887 * godump.c: Likewise.
15888 * graph.c: Likewise.
15889 * graphite-blocking.c: Likewise.
15890 * graphite-dependences.c: Likewise.
15891 * graphite-interchange.c: Likewise.
15892 * graphite-isl-ast-to-gimple.c: Likewise.
15893 * graphite-optimize-isl.c: Likewise.
15894 * graphite-poly.c: Likewise.
15895 * graphite-scop-detection.c: Likewise.
15896 * graphite-sese-to-poly.c: Likewise.
15897 * graphite.c: Likewise.
15898 * haifa-sched.c: Likewise.
15899 * hw-doloop.c: Likewise.
15900 * ifcvt.c: Likewise.
15901 * init-regs.c: Likewise.
15902 * internal-fn.c: Likewise.
15903 * ipa-chkp.c: Likewise.
15904 * ipa-comdats.c: Likewise.
15905 * ipa-cp.c: Likewise.
15906 * ipa-devirt.c: Likewise.
15907 * ipa-icf-gimple.c: Likewise.
15908 * ipa-icf.c: Likewise.
15909 * ipa-inline-analysis.c: Likewise.
15910 * ipa-inline-transform.c: Likewise.
15911 * ipa-inline.c: Likewise.
15912 * ipa-polymorphic-call.c: Likewise.
15913 * ipa-profile.c: Likewise.
15914 * ipa-prop.c: Likewise.
15915 * ipa-pure-const.c: Likewise.
15916 * ipa-ref.c: Likewise.
15917 * ipa-reference.c: Likewise.
15918 * ipa-split.c: Likewise.
15919 * ipa-utils.c: Likewise.
15920 * ipa-visibility.c: Likewise.
15921 * ipa.c: Likewise.
15922 * ira-build.c: Likewise.
15923 * ira-color.c: Likewise.
15924 * ira-conflicts.c: Likewise.
15925 * ira-costs.c: Likewise.
15926 * ira-emit.c: Likewise.
15927 * ira-lives.c: Likewise.
15928 * ira.c: Likewise.
15929 * jump.c: Likewise.
15930 * langhooks.c: Likewise.
15931 * lcm.c: Likewise.
15932 * loop-doloop.c: Likewise.
15933 * loop-init.c: Likewise.
15934 * loop-invariant.c: Likewise.
15935 * loop-iv.c: Likewise.
15936 * loop-unroll.c: Likewise.
15937 * lower-subreg.c: Likewise.
15938 * lra-assigns.c: Likewise.
15939 * lra-coalesce.c: Likewise.
15940 * lra-constraints.c: Likewise.
15941 * lra-eliminations.c: Likewise.
15942 * lra-lives.c: Likewise.
15943 * lra-remat.c: Likewise.
15944 * lra-spills.c: Likewise.
15945 * lra.c: Likewise.
15946 * lto-cgraph.c: Likewise.
15947 * lto-compress.c: Likewise.
15948 * lto-opts.c: Likewise.
15949 * lto-section-in.c: Likewise.
15950 * lto-section-out.c: Likewise.
15951 * lto-streamer-in.c: Likewise.
15952 * lto-streamer-out.c: Likewise.
15953 * lto-streamer.c: Likewise.
15954 * mcf.c: Likewise.
15955 * mode-switching.c: Likewise.
15956 * modulo-sched.c: Likewise.
15957 * omega.c: Likewise.
15958 * omp-low.c: Likewise.
15959 * optabs.c: Likewise.
15960 * opts-global.c: Likewise.
15961 * passes.c: Likewise.
15962 * plugin.c: Likewise.
15963 * postreload-gcse.c: Likewise.
15964 * postreload.c: Likewise.
15965 * predict.c: Likewise.
15966 * print-rtl.c: Likewise.
15967 * print-tree.c: Likewise.
15968 * profile.c: Likewise.
15969 * real.c: Likewise.
15970 * realmpfr.c: Likewise.
15971 * recog.c: Likewise.
15972 * ree.c: Likewise.
15973 * reg-stack.c: Likewise.
15974 * regcprop.c: Likewise.
15975 * reginfo.c: Likewise.
15976 * regrename.c: Likewise.
15977 * regstat.c: Likewise.
15978 * reload.c: Likewise.
15979 * reload1.c: Likewise.
15980 * reorg.c: Likewise.
15981 * resource.c: Likewise.
15982 * rtl-chkp.c: Likewise.
15983 * rtlanal.c: Likewise.
15984 * rtlhooks.c: Likewise.
15985 * sanopt.c: Likewise.
15986 * sched-deps.c: Likewise.
15987 * sched-ebb.c: Likewise.
15988 * sched-rgn.c: Likewise.
15989 * sched-vis.c: Likewise.
15990 * sdbout.c: Likewise.
15991 * sel-sched-dump.c: Likewise.
15992 * sel-sched-ir.c: Likewise.
15993 * sel-sched.c: Likewise.
15994 * sese.c: Likewise.
15995 * shrink-wrap.c: Likewise.
15996 * simplify-rtx.c: Likewise.
15997 * stack-ptr-mod.c: Likewise.
15998 * stmt.c: Likewise.
15999 * stor-layout.c: Likewise.
16000 * store-motion.c: Likewise.
16001 * stringpool.c: Likewise.
16002 * symtab.c: Likewise.
16003 * target-globals.c: Likewise.
16004 * targhooks.c: Likewise.
16005 * toplev.c: Likewise.
16006 * tracer.c: Likewise.
16007 * trans-mem.c: Likewise.
16008 * tree-affine.c: Likewise.
16009 * tree-browser.c: Likewise.
16010 * tree-call-cdce.c: Likewise.
16011 * tree-cfg.c: Likewise.
16012 * tree-cfgcleanup.c: Likewise.
16013 * tree-chkp-opt.c: Likewise.
16014 * tree-chkp.c: Likewise.
16015 * tree-chrec.c: Likewise.
16016 * tree-complex.c: Likewise.
16017 * tree-data-ref.c: Likewise.
16018 * tree-dfa.c: Likewise.
16019 * tree-diagnostic.c: Likewise.
16020 * tree-dump.c: Likewise.
16021 * tree-eh.c: Likewise.
16022 * tree-emutls.c: Likewise.
16023 * tree-if-conv.c: Likewise.
16024 * tree-inline.c: Likewise.
16025 * tree-into-ssa.c: Likewise.
16026 * tree-iterator.c: Likewise.
16027 * tree-loop-distribution.c: Likewise.
16028 * tree-nested.c: Likewise.
16029 * tree-nrv.c: Likewise.
16030 * tree-object-size.c: Likewise.
16031 * tree-outof-ssa.c: Likewise.
16032 * tree-parloops.c: Likewise.
16033 * tree-phinodes.c: Likewise.
16034 * tree-predcom.c: Likewise.
16035 * tree-pretty-print.c: Likewise.
16036 * tree-profile.c: Likewise.
16037 * tree-scalar-evolution.c: Likewise.
16038 * tree-sra.c: Likewise.
16039 * tree-ssa-address.c: Likewise.
16040 * tree-ssa-alias.c: Likewise.
16041 * tree-ssa-ccp.c: Likewise.
16042 * tree-ssa-coalesce.c: Likewise.
16043 * tree-ssa-copy.c: Likewise.
16044 * tree-ssa-copyrename.c: Likewise.
16045 * tree-ssa-dce.c: Likewise.
16046 * tree-ssa-dom.c: Likewise.
16047 * tree-ssa-dse.c: Likewise.
16048 * tree-ssa-forwprop.c: Likewise.
16049 * tree-ssa-ifcombine.c: Likewise.
16050 * tree-ssa-live.c: Likewise.
16051 * tree-ssa-loop-ch.c: Likewise.
16052 * tree-ssa-loop-im.c: Likewise.
16053 * tree-ssa-loop-ivcanon.c: Likewise.
16054 * tree-ssa-loop-ivopts.c: Likewise.
16055 * tree-ssa-loop-manip.c: Likewise.
16056 * tree-ssa-loop-niter.c: Likewise.
16057 * tree-ssa-loop-prefetch.c: Likewise.
16058 * tree-ssa-loop-unswitch.c: Likewise.
16059 * tree-ssa-loop.c: Likewise.
16060 * tree-ssa-math-opts.c: Likewise.
16061 * tree-ssa-operands.c: Likewise.
16062 * tree-ssa-phiopt.c: Likewise.
16063 * tree-ssa-phiprop.c: Likewise.
16064 * tree-ssa-pre.c: Likewise.
16065 * tree-ssa-propagate.c: Likewise.
16066 * tree-ssa-reassoc.c: Likewise.
16067 * tree-ssa-sccvn.c: Likewise.
16068 * tree-ssa-scopedtables.c: Likewise.
16069 * tree-ssa-sink.c: Likewise.
16070 * tree-ssa-strlen.c: Likewise.
16071 * tree-ssa-structalias.c: Likewise.
16072 * tree-ssa-tail-merge.c: Likewise.
16073 * tree-ssa-ter.c: Likewise.
16074 * tree-ssa-threadedge.c: Likewise.
16075 * tree-ssa-threadupdate.c: Likewise.
16076 * tree-ssa-uncprop.c: Likewise.
16077 * tree-ssa-uninit.c: Likewise.
16078 * tree-ssa.c: Likewise.
16079 * tree-ssanames.c: Likewise.
16080 * tree-stdarg.c: Likewise.
16081 * tree-streamer-in.c: Likewise.
16082 * tree-streamer-out.c: Likewise.
16083 * tree-streamer.c: Likewise.
16084 * tree-switch-conversion.c: Likewise.
16085 * tree-tailcall.c: Likewise.
16086 * tree-vect-data-refs.c: Likewise.
16087 * tree-vect-generic.c: Likewise.
16088 * tree-vect-loop-manip.c: Likewise.
16089 * tree-vect-loop.c: Likewise.
16090 * tree-vect-patterns.c: Likewise.
16091 * tree-vect-slp.c: Likewise.
16092 * tree-vect-stmts.c: Likewise.
16093 * tree-vectorizer.c: Likewise.
16094 * tree-vrp.c: Likewise.
16095 * tree.c: Likewise.
16096 * tsan.c: Likewise.
16097 * ubsan.c: Likewise.
16098 * valtrack.c: Likewise.
16099 * value-prof.c: Likewise.
16100 * var-tracking.c: Likewise.
16101 * varasm.c: Likewise.
16102 * varpool.c: Likewise.
16103 * vmsdbgout.c: Likewise.
16104 * vtable-verify.c: Likewise.
16105 * web.c: Likewise.
16106 * wide-int.cc: Likewise.
16107 * xcoffout.c: Likewise.
16108 * config/aarch64/aarch64-builtins.c: Likewise.
16109 * config/aarch64/aarch64.c: Likewise.
16110 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16111 * config/alpha/alpha.c: Likewise.
16112 * config/arc/arc.c: Likewise.
16113 * config/arm/aarch-common.c: Likewise.
16114 * config/arm/arm-builtins.c: Likewise.
16115 * config/arm/arm-c.c: Likewise.
16116 * config/arm/arm.c: Likewise.
16117 * config/avr/avr-c.c: Likewise.
16118 * config/avr/avr-log.c: Likewise.
16119 * config/avr/avr.c: Likewise.
16120 * config/bfin/bfin.c: Likewise.
16121 * config/c6x/c6x.c: Likewise.
16122 * config/cr16/cr16.c: Likewise.
16123 * config/cris/cris.c: Likewise.
16124 * config/darwin-c.c: Likewise.
16125 * config/darwin.c: Likewise.
16126 * config/epiphany/epiphany.c: Likewise.
16127 * config/epiphany/mode-switch-use.c: Likewise.
16128 * config/epiphany/resolve-sw-modes.c: Likewise.
16129 * config/fr30/fr30.c: Likewise.
16130 * config/frv/frv.c: Likewise.
16131 * config/ft32/ft32.c: Likewise.
16132 * config/h8300/h8300.c: Likewise.
16133 * config/i386/i386-c.c: Likewise.
16134 * config/i386/i386.c: Likewise.
16135 * config/i386/msformat-c.c: Likewise.
16136 * config/i386/winnt-cxx.c: Likewise.
16137 * config/i386/winnt-stubs.c: Likewise.
16138 * config/i386/winnt.c: Likewise.
16139 * config/ia64/ia64-c.c: Likewise.
16140 * config/ia64/ia64.c: Likewise.
16141 * config/iq2000/iq2000.c: Likewise.
16142 * config/lm32/lm32.c: Likewise.
16143 * config/m32c/m32c-pragma.c: Likewise.
16144 * config/m32c/m32c.c: Likewise.
16145 * config/m32r/m32r.c: Likewise.
16146 * config/m68k/m68k.c: Likewise.
16147 * config/mcore/mcore.c: Likewise.
16148 * config/mep/mep-pragma.c: Likewise.
16149 * config/mep/mep.c: Likewise.
16150 * config/microblaze/microblaze-c.c: Likewise.
16151 * config/microblaze/microblaze.c: Likewise.
16152 * config/mips/mips.c: Likewise.
16153 * config/mmix/mmix.c: Likewise.
16154 * config/mn10300/mn10300.c: Likewise.
16155 * config/moxie/moxie.c: Likewise.
16156 * config/msp430/msp430-c.c: Likewise.
16157 * config/msp430/msp430.c: Likewise.
16158 * config/nds32/nds32-cost.c: Likewise.
16159 * config/nds32/nds32-fp-as-gp.c: Likewise.
16160 * config/nds32/nds32-intrinsic.c: Likewise.
16161 * config/nds32/nds32-isr.c: Likewise.
16162 * config/nds32/nds32-md-auxiliary.c: Likewise.
16163 * config/nds32/nds32-memory-manipulation.c: Likewise.
16164 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16165 * config/nds32/nds32-predicates.c: Likewise.
16166 * config/nds32/nds32.c: Likewise.
16167 * config/nios2/nios2.c: Likewise.
16168 * config/nvptx/nvptx.c: Likewise.
16169 * config/pa/pa.c: Likewise.
16170 * config/pdp11/pdp11.c: Likewise.
16171 * config/rl78/rl78-c.c: Likewise.
16172 * config/rl78/rl78.c: Likewise.
16173 * config/rs6000/rs6000-c.c: Likewise.
16174 * config/rs6000/rs6000.c: Likewise.
16175 * config/rx/rx.c: Likewise.
16176 * config/s390/s390-c.c: Likewise.
16177 * config/s390/s390.c: Likewise.
16178 * config/sh/sh-c.c: Likewise.
16179 * config/sh/sh-mem.cc: Likewise.
16180 * config/sh/sh.c: Likewise.
16181 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16182 * config/sh/sh_treg_combine.cc: Likewise.
16183 * config/sol2-c.c: Likewise.
16184 * config/sol2-cxx.c: Likewise.
16185 * config/sol2-stubs.c: Likewise.
16186 * config/sol2.c: Likewise.
16187 * config/sparc/sparc-c.c: Likewise.
16188 * config/sparc/sparc.c: Likewise.
16189 * config/spu/spu-c.c: Likewise.
16190 * config/spu/spu.c: Likewise.
16191 * config/stormy16/stormy16.c: Likewise.
16192 * config/tilegx/mul-tables.c: Likewise.
16193 * config/tilegx/tilegx-c.c: Likewise.
16194 * config/tilegx/tilegx.c: Likewise.
16195 * config/tilepro/mul-tables.c: Likewise.
16196 * config/tilepro/tilepro-c.c: Likewise.
16197 * config/tilepro/tilepro.c: Likewise.
16198 * config/v850/v850-c.c: Likewise.
16199 * config/v850/v850.c: Likewise.
16200 * config/vax/vax.c: Likewise.
16201 * config/visium/visium.c: Likewise.
16202 * config/vms/vms-c.c: Likewise.
16203 * config/vms/vms.c: Likewise.
16204 * config/vxworks.c: Likewise.
16205 * config/xtensa/xtensa.c: Likewise.
16206
16207 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
16208
16209 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
16210 Remove operand constraints. Change operand 2 predicate to
16211 nonmemory operand. Limit const_int values to mode bitsize. Only
16212 allow const_int values less than 32 when optimizing for size.
16213 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
16214 Remove operand constraints.
16215 (*bt<mode>): Use SImode for const_int values less than 32.
16216 (regmode): Remove mode attribute.
16217
16218 2015-07-07 Anatoly Sokolov <aesok@post.ru>
16219
16220 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16221 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
16222 moxie_legitimate_address_p): New functions.
16223 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16224
16225 2015-07-07 Tom de Vries <tom@codesourcery.com>
16226
16227 PR tree-optimization/66642
16228 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
16229 header comment. Rename split_edge variable to edge_at_split. Split
16230 exit edge to create new loop exit bb. Insert loop exit phis in new
16231 loop exit bb.
16232
16233 2015-07-07 Tom de Vries <tom@codesourcery.com>
16234
16235 * tree-cfg.c (get_virtual_phi): New function.
16236 * tree-cfg.h (get_virtual_phi): Declare.
16237 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
16238 (rewrite_virtuals_into_loop_closed_ssa): New function.
16239 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
16240 Declare.
16241 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
16242 (transform_to_exit_first_loop_alt): Use
16243 rewrite_virtuals_into_loop_closed_ssa.
16244
16245 2015-07-07 Richard Biener <rguenther@suse.de>
16246
16247 * fold-const.c (fold_binary_loc): Move
16248 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
16249 * match.pd: ... here.
16250 Add (X * C1) % C2 -> 0 simplification pattern derived from
16251 extract_muldiv_1.
16252
16253 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
16254
16255 PR target/66780
16256 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
16257 change for target/65249.
16258
16259 2015-07-07 Paulo Matos <pmatos@broadcom.com>
16260
16261 * symtab.c (address_matters_1): Fix typo in comment above.
16262 (can_increase_alignment_p): Likewise.
16263
16264 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16265
16266 * function.c (free_after_compilation): Clear PROP_cfg in
16267 f->curr_properties.
16268
16269 2015-07-07 Richard Biener <rguenther@suse.de>
16270
16271 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
16272 add which use to.
16273 (add_control_edge): Remove excessive vertical space in dumping.
16274 (process_ssa_edge_worklist): Simulate at most one statement and
16275 return whether we did. Do not simulate PHIs if they are in a
16276 BB not yet simulated.
16277 (ssa_propagate): Adjust to always drain the BB worklist whenever
16278 a BB is available there, likewise the VARYING edges list before
16279 the interesting edge list.
16280
16281 2015-07-07 Christian Bruel <christian.bruel@st.com>
16282
16283 PR target/52144
16284 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
16285
16286 2015-07-07 Richard Biener <rguenther@suse.de>
16287
16288 PR middle-end/66739
16289 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
16290 A - B.
16291
16292 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
16293
16294 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
16295 modes for operands 0 and 3. Use SImode for operands 2 and 3.
16296 Copy operand 0 to a temporary if !ext_register_operand. Remove
16297 ancient extract_bit_field workaround.
16298 (insv<mode>_1): Rename from mov<mode>_insv_1.
16299 (*insvqi): Rename from *movqi_insv_2.
16300 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
16301 for renamed insvsi_1.
16302 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
16303
16304 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
16305
16306 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
16307 call to nvptx_reorg_subreg.
16308
16309 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
16310
16311 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
16312 * graphite-dependencies.c, graphite-interchange.c,
16313 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
16314 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
16315 Likewise.
16316
16317 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
16318
16319 * match.pd: Remove element_mode inside HONOR_*.
16320 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
16321 (~X | X -> -1, ~X ^ X -> -1): Merge.
16322 * tree.c (build_each_one_cst): New function.
16323 * tree.h (build_each_one_cst): Likewise.
16324
16325 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16326
16327 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16328 PROCESSOR_IAMCU.
16329
16330 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
16331
16332 * config.gcc <mips*-*-*>: Add fused-madd.opt.
16333 * config/mips/mips.opt (mfused-madd): Remove.
16334 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
16335 * config/mips/mips.h (TARGET_MIPS8000): New.
16336 (ISA_HAS_FP_MADD4_MSUB4): Remove.
16337 (ISA_HAS_FP_MADDF_MSUBF): Remove.
16338 (ISA_HAS_FP_MADD3_MSUB3): Remove.
16339 (ISA_HAS_NMADD4_NMSUB4): Remove.
16340 (ISA_HAS_NMADD3_NMSUB3): Remove.
16341 (ISA_HAS_FUSED_MADD4): New.
16342 (ISA_HAS_UNFUSED_MADD4): New.
16343 (ISA_HAS_FUSED_MADDF): New.
16344 (ISA_HAS_FUSED_MADD3): New.
16345 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
16346 (*fma<mode>4_madd3) New.
16347 (*fma<mode>4_madd4) New.
16348 (*fma<mode>4_maddf) New.
16349 (fms<mode>4) New.
16350 (*fms<mode>4_msub3) New.
16351 (*fms<mode>4_msub4) New.
16352 (fnma<mode>4) New.
16353 (*fnma<mode>4_nmadd3) New.
16354 (*fnma<mode>4_nmadd4) New.
16355 (fnms<mode>4) New.
16356 (*fnms<mode>4_nmsub3) New.
16357 (*fnms<mode>4_nmsub4) New.
16358 (*madd4<mode>) Modify to be unfused only.
16359 (*msub4<mode>) Modify to be unfused only.
16360 (*nmadd4<mode>) Modify to be unfused only.
16361 (*nmsub4<mode>) Modify to be unfused only.
16362 (*madd3<mode>) Remove.
16363 (*msub3<mode>) Remove.
16364 (*nmadd3<mode>) Remove.
16365 (*nmsub3<mode>) Remove.
16366 (*nmadd3<mode>_fastmath) Remove.
16367 (*nmsub3<mode>_fastmath) Remove.
16368 (*nmadd4<mode>_fastmath) Update condition.
16369 (*nmsub4<mode>_fastmath) Update condition.
16370
16371 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
16372
16373 PR target/65956
16374 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
16375 alignment attribute, exploring one level down for records and arrays.
16376
16377 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
16378
16379 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
16380 modes for operands 0 and 1. Use SImode for operands 2 and 3.
16381 Copy operand 1 to a temporary if !ext_register_operand. Remove
16382 ancient extract_bit_field workaround.
16383 (*extv<mode>): Rename from *mov<mode>_extv_1.
16384 (*extvqi): Rename from *movqi_extv_1.
16385 (extzv<mode>): Rename from extzv. Use SWI248 modes for
16386 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
16387 to a temporary if !ext_register_operand. Remove ancient
16388 extract_bit_field workaround.
16389 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
16390 (*extzvqi): Rename from *movqi_extzv_2.
16391 (*testqi_ext_3): Remove modes from const_int_operand predicated
16392 operands. Add "n" constraint.
16393 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
16394 operand. Add "J" constraint.
16395 (*btsq, *btrq, *btcq peephole2s): Remove mode from
16396 const_0_to_63 predicated operand.
16397 (regmode): New insn attribute.
16398 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
16399 to nonmemory_operand. Use regmode insn attribute.
16400 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
16401 (*jcc_bt<mode>_mask): Remove mode from operand 3.
16402 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
16403 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
16404 operands. Use "N" constraint instead of "n".
16405
16406 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
16407
16408 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
16409
16410 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16411
16412 PR target/66749
16413 * config/i386/i386.c (iamcu_cost): New.
16414 (m_IAMCU): Likewise.
16415 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
16416 (processor_target_table): Add an entry for "iamcu".
16417 (processor_alias_table): Likewise.
16418 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
16419 (ix86_adjust_cost): Likewise.
16420 (ia32_multipass_dfa_lookahead): Likewise.
16421 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
16422 * config/i386/x86-tune.def: Updated for m_IAMCU.
16423
16424 2015-07-06 Richard Biener <rguenther@suse.de>
16425
16426 PR tree-optimization/66772
16427 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
16428 values are available in the PHI node BB when there are
16429 still unexecutable edges.
16430
16431 2015-07-06 Richard Biener <rguenther@suse.de>
16432
16433 PR tree-optimization/66767
16434 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
16435 Make sure to build the alignment test on a SSA name without
16436 final alignment info valid only if the alignment test
16437 evaluates to true.
16438
16439 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
16440
16441 PR target/66620
16442 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
16443 loop start when inserting LSETUP.
16444
16445 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16446
16447 PR target/53383
16448 * config/i386/i386.c (ix86_option_override_internal): Allow
16449 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
16450
16451 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16452
16453 * read-md.c (decimal_string): Rename to ...
16454 (md_decimal_string): ... this.
16455 (handle_enum): Reflect this.
16456
16457 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
16458
16459 PR target/66731
16460 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
16461
16462 2015-07-06 Richard Biener <rguenther@suse.de>
16463
16464 PR middle-end/66759
16465 * match.pd: Add missing constraint of y to REAL_CST in
16466 REAL_CST - x CMP y to y - CST CMP x simplification.
16467
16468 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
16469
16470 PR tree-optimization/66757
16471 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
16472
16473 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
16474 Sandra Loosemore <sandra@codesourcery.com>
16475
16476 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
16477 Delete extern declaration.
16478 (gprel_constant_p): Add extern declaration.
16479 * config/nios2/constraints.md ("S"): Use gprel_constant_p
16480 instead of nios2_symbol_ref_in_small_data_p.
16481 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
16482 (nios2_symbol_ref_in_small_data_p): Make static.
16483 (gprel_constant_p): Make non-static.
16484
16485 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
16486
16487 * doc/fragments.texi (Target Fragment): Convert debian.org
16488 link to use https.
16489 * doc/install.texi (Configuration): Ditto.
16490
16491 2015-07-05 Jakub Jelinek <jakub@redhat.com>
16492
16493 PR tree-optimization/66718
16494 * tree-vect-stmts.c (vectorizable_call): Replace uses of
16495 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
16496
16497 PR tree-optimization/66718
16498 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
16499 vectorizable_load, vectorizable_condition): Move vectype,
16500 nunits, ncopies computation after checking what kind of statement
16501 stmt is.
16502
16503 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16504
16505 * target-insns.def (extv, extzv, insv): New targetm instruction
16506 patterns.
16507 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
16508 interface.
16509 * recog.c (simplify_while_replacing): Likewise.
16510
16511 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16512
16513 * target-insns.def (doloop_begin, doloop_end): New targetm
16514 instruction patterns.
16515 * loop-init.c: Include target.h.
16516 (pass_loop2::gate): Use the new targetm patterns instead of
16517 HAVE_*/gen_* interface.
16518 (pass_rtl_doloop::gate): Likewise.
16519 (pass_rtl_doloop::execute): Remove preprocessor condition.
16520 * hw-doloop.c: Build unconditionally.
16521 * loop-doloop.c: Likewise.
16522 (doloop_optimize): Use the new targetm patterns instead of
16523 HAVE_*/gen_* interface.
16524 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
16525 * modulo-sched.c (doloop_register_get): Likewise.
16526
16527 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16528
16529 * target-insns.def (clear_cache): New targetm instruction pattern.
16530 * builtins.c (expand_builtin___clear_cache): Use it instead of
16531 HAVE_*/gen_* interface.
16532
16533 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16534
16535 * target-insns.def (allocate_stack, check_stack, probe_stack)
16536 (probe_stack_address, split_stack_prologue, split_stack_space_check):
16537 New targetm instruction patterns.
16538 * explow.c (allocate_dynamic_stack_space): Use them instead of
16539 HAVE_*/gen_* interface.
16540 (emit_stack_probe): Likewise.
16541 (probe_stack_range): Likewise.
16542 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16543
16544 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16545
16546 * target-insns.def (stack_protect_set, stack_protect_test): New
16547 targetm instruction patterns.
16548 * cfgexpand.c (stack_protect_prologue): Use them instead of
16549 HAVE_*/gen_* interface.
16550 * function.c (stack_protect_epilogue): Likewise.
16551
16552 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16553
16554 * expr.h (gen_move_insn_uncast): Delete.
16555 * expr.c (gen_move_insn_uncast): Delete.
16556
16557 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16558
16559 * target-insns.def (restore_stack_block, restore_stack_function)
16560 (restore_stack_nonlocal, save_stack_block, save_stack_function)
16561 (save_stack_nonlocal): New targetm instruction patterns.
16562 * builtins.c (expand_builtin_apply): Use them instead of
16563 HAVE_*/gen_* interface.
16564 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
16565
16566 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16567
16568 * target-insns.def (trap): New targetm instruction pattern.
16569 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
16570 interface.
16571 * explow.c (allocate_dynamic_stack_space): Likewise.
16572 * ifcvt.c (find_if_header): Likewise.
16573
16574 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16575
16576 * target-insns.def (prefetch): New targetm instruction pattern.
16577 * tree-ssa-loop-prefetch.c: Include targeth.
16578 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
16579 of HAVE_*/gen_* interface.
16580 * builtins.c (expand_builtin_prefetch): Likewise.
16581 * toplev.c (process_options): Likewise.
16582
16583 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16584
16585 * target-insns.def (untyped_call, untyped_return): New targetm
16586 instruction patterns.
16587 * builtins.c (expand_builtin_apply): Use them instead of
16588 HAVE_*/gen_* interface.
16589 (result_vector): Define unconditionally.
16590
16591 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16592
16593 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
16594 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
16595 (nonlocal_goto_receiver): New targetm instruction patterns.
16596 * builtins.c (expand_builtin_setjmp_setup): Use them instead
16597 of HAVE_*/gen_* interface.
16598 (expand_builtin_setjmp_receiver): Likewise.
16599 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
16600 * except.c (expand_dw2_landing_pad_for_region): Likewise.
16601
16602 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16603
16604 * target.def: Add code_for_* hooks.
16605 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
16606 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
16607 * target-insns.def (casesi, tablejump): New targetm instruction
16608 patterns.
16609 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
16610 (do_tablejump): Likewise.
16611 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
16612 (expand_sjlj_dispatch_table): Likewise.
16613 * targhooks.c (default_case_values_threshold): Likewise.
16614
16615 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
16616
16617 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
16618 Use rtx_insn * instead of rtx.
16619 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
16620 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
16621 (nios2_call_tls_get_addr): Likewise.
16622 (nios2_emit_expensive_div): Likewise.
16623 (nios2_emit_move_sequence): Change return type to bool.
16624 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
16625 Change return type to bool.
16626
16627 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16628
16629 PR target/66747
16630 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
16631
16632 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
16633
16634 PR target/66114
16635 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
16636 of register_operand. Remove constraint.
16637
16638 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
16639
16640 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
16641 the first argument.
16642
16643 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
16644
16645 * attribs.c (decl_attributes): Guard inform with the return value
16646 of the preceding warning.
16647
16648 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16649
16650 * doc/invoke.texi (moverride): Move to correct section.
16651
16652 2015-07-03 Richard Biener <rguenther@suse.de>
16653
16654 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
16655 Copy from tree.c
16656 (dt_operand::gen_gimple_expr): After valueizing operands
16657 re-canonicalize operand order for commutative tree codes.
16658
16659 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
16660
16661 PR target/66746.
16662 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
16663 is defined.
16664 (__crc32w): Likewise.
16665 (__crc32d): Likewise.
16666 (__rdpmc): Likewise.
16667 (__rdtscp): Likewise.
16668 (_rdpmc): Likewise.
16669 (_rdtscp): Likewise.
16670 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
16671 is defined.
16672
16673 2015-07-03 Richard Biener <rguenther@suse.de>
16674
16675 * fold-const.c (fold_mathfn_compare): Remove.
16676 (fold_inf_compare): Likewise.
16677 (fold_comparison): Move floating point comparison simplifications...
16678 * match.pd: ... to patterns here. Introduce simple_comparisons
16679 operator list and use it for patterns formerly in fold_comparison.
16680
16681 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16682
16683 PR tree-optimization/66119
16684 * toplev.c (process_options): Don't set up default values for
16685 the sra_max_scalarization_size_{speed,size} parameters.
16686 * tree-sra (analyze_all_variable_accesses): If no values
16687 have been set for the sra_max_scalarization_size_{speed,size}
16688 parameters, call get_move_ratio to get target defaults.
16689
16690 2015-07-03 Richard Biener <rguenther@suse.de>
16691
16692 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
16693 * match.pd: ... here.
16694
16695 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
16696
16697 PR target/37072
16698 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
16699 is not actually the default on FreeBSD.
16700
16701 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16702
16703 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
16704 definition.
16705 (CMPGE_8HI): Likewise.
16706 (CMPGE_4SI): Likewise.
16707 (CMPGE_2DI): Likewise.
16708 (CMPGE_U16QI): Likewise.
16709 (CMPGE_U8HI): Likewise.
16710 (CMPGE_U4SI): Likewise.
16711 (CMPGE_U2DI): Likewise.
16712 (CMPLE_16QI): Likewise.
16713 (CMPLE_8HI): Likewise.
16714 (CMPLE_4SI): Likewise.
16715 (CMPLE_2DI): Likewise.
16716 (CMPLE_U16QI): Likewise.
16717 (CMPLE_U8HI): Likewise.
16718 (CMPLE_U4SI): Likewise.
16719 (CMPLE_U2DI): Likewise.
16720 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16721 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
16722 ALTIVEC_BUILTIN_VEC_CMPLE.
16723 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
16724 floating-point vector modes.
16725 (vector_nlt<mode>): New define_expand.
16726 (vector_nltu<mode>): Likewise.
16727 (vector_ngt<mode>): Likewise.
16728 (vector_ngtu<mode>): Likewise.
16729
16730 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
16731
16732 PR rtl-optimization/66706
16733 * combine.c (make_compound_operation): If an AND of SUBREG of
16734 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
16735
16736 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
16737
16738 * tree-pass.h (make_pass_ch_vect): New.
16739 * passes.def: Add pass_ch_vect just before pass_if_conversion.
16740
16741 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
16742 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
16743 make_pass_ch_vect): New.
16744 (pass_ch): Extend ch_base.
16745
16746 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
16747 (ch_base::copy_headers): ...here.
16748
16749 2015-07-02 Richard Biener <rguenther@suse.de>
16750
16751 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
16752 * fold-const.c (get_pointer_modulus_and_residue): Remove.
16753 (fold_binary_loc): Implement (T)ptr & CST in terms of
16754 get_pointer_alignment_1.
16755 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
16756 Make sure to build the alignment test on a SSA name without
16757 final alignment info valid only after the prologue.
16758
16759 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
16760
16761 * config/cris/cris.md ("epilogue"): Remove condition.
16762 ("prologue"): Ditto.
16763
16764 2015-07-02 Richard Biener <rguenther@suse.de>
16765
16766 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
16767 parameter to record a condition that is false.
16768 (record_conditions): When recording an extra NE_EXPR that is
16769 true also record a EQ_EXPR that is false.
16770
16771 2015-07-02 Bin Cheng <bin.cheng@arm.com>
16772
16773 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
16774 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
16775 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
16776 (set_iv, find_interesting_uses_address, add_candidate_1): New
16777 argument to alloc_iv.
16778 (find_interesting_uses_op, find_interesting_uses_cond): Don't
16779 duplicate struct iv.
16780 (free_loop_data): Don't free struct iv explicitly.
16781 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
16782
16783 2015-07-01 DJ Delorie <dj@redhat.com>
16784
16785 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
16786 (LIB_SPEC): Add.
16787 (SUPPORTS_DISCRIMINATOR): Define.
16788
16789 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16790
16791 PR bootstrap/66685
16792 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
16793 there are no CALLs in the same pattern.
16794
16795 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
16796
16797 PR rtl-optimization/61047
16798 * rtlanal.c (get_initial_register_offset): New function.
16799 (rtx_addr_can_trap_p_1): Check offsets of stack references.
16800
16801 2015-07-01 Richard Biener <rguenther@suse.de>
16802
16803 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
16804 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
16805 ~X CMP C -> X CMP' ~C to ...
16806 * match.pd: ... patterns here.
16807
16808 2015-07-01 Nick Clifton <nickc@redhat.com>
16809
16810 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
16811 a 16-bit value into a 20-bit memory slot.
16812
16813 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16814
16815 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16816 "aarch64_tiny", "aarch64_small", "aarch64_large",
16817 "aarch64_little_endian", "aarch64_big_endian".
16818
16819 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16820
16821 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
16822 Document "aarch64_small_fpic".
16823
16824 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16825
16826 * configure.ac: Add check for aarch64 assembler -fpic relocation
16827 modifier support.
16828 * configure: Regenerate.
16829 * config.in: Regenerate.
16830 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
16831 to -fPIC if not support of -fpic relocation modifier in assembler.
16832
16833 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16834
16835 PR bootstrap/66685
16836 * rtl.c (classify_insn): Handle returns in PARALLELs.
16837
16838 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
16839
16840 PR middle-end/66633
16841 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
16842 to true if the function is nested and if not optimizing.
16843 (convert_local_omp_clauses): Initialize need_frame to true if the
16844 function contains nested functions and if not optimizing.
16845
16846 2015-07-01 Richard Biener <rguenther@suse.de>
16847
16848 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
16849 (X & Y) ^ Y -> ~X & Y transforms to ...
16850 * match.pd: ... here.
16851
16852 2015-07-01 Richard Biener <rguenther@suse.de>
16853
16854 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
16855 of converts to avoid uninteresting noise from the conversion
16856 simplifying patterns.
16857
16858 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
16859
16860 * config/c6x/c6x.c (try_rename_operands): Do not depend on
16861 gcc_assert evaluating its argument for side-effect.
16862
16863 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
16864
16865 PR target/64833
16866 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
16867 flag_pic is set.
16868
16869 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
16870
16871 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
16872 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
16873 (hash_scc): Add this_ref_p and ref_p parameters and pass them
16874 to the inner DFS walk.
16875
16876 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16877
16878 * target-insns.def (jump): New targetm instruction pattern.
16879 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
16880 instead of gen_jump.
16881 (fix_up_crossing_landing_pad): Likewise.
16882 (add_labels_and_missing_jumps): Likewise.
16883 (fix_crossing_conditional_branches): Likewise.
16884 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
16885 (force_nonfallthru_and_redirect): Likewise.
16886 * cse.c (cse_insn): Likewise.
16887 * expmed.c (expand_divmod): Likewise.
16888 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
16889 * haifa-sched.c (init_before_recovery): Likewise.
16890 (sched_create_recovery_edges): Likewise.
16891 * ifcvt.c (find_cond_trap): Likewise.
16892 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
16893 (expand_float, expand_fix): Likewise.
16894 * stmt.c (emit_jump): Likewise.
16895
16896 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16897
16898 * defaults.h (HAVE_load_multiple, gen_load_multiple)
16899 (HAVE_store_multiple, gen_store_multiple): Delete.
16900 * target-insns.def (load_multiple, store_multiple): New targetm
16901 instruction patterns.
16902 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
16903 of HAVE_*/gen_* interface.
16904
16905 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16906
16907 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
16908 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
16909 (gen_mem_signal_fence): Delete.
16910 * target-insns.def (mem_signal_fence, mem_thread_fence)
16911 (memory_barrier): New targetm instruction patterns.
16912 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
16913 interface.
16914 (expand_mem_signal_fence): Likewise.
16915
16916 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16917
16918 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
16919 * target-insns.def (epilogue, prologue, sibcall_prologue): New
16920 targetm instruction patterns.
16921 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
16922 interface.
16923 * calls.c (expand_call): Likewise.
16924 * cfgrtl.c (cfg_layout_finalize): Likewise.
16925 * df-scan.c (df_get_entry_block_def_set): Likewise.
16926 (df_get_exit_block_use_set): Likewise.
16927 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
16928 * final.c (final_start_function): Likewise.
16929 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16930 (reposition_prologue_and_epilogue_notes): Likewise.
16931 * reorg.c (find_end_label): Likewise.
16932 * toplev.c (process_options): Likewise.
16933
16934 2015-06-30 David Malcolm <dmalcolm@redhat.com>
16935
16936 * typed-splay-tree.h: New file.
16937
16938 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
16939
16940 PR debug/66691
16941 * lra-int.h (lra_substitute_pseudo): Add a parameter.
16942 (lra_substitute_pseudo_within_insn): Ditto.
16943 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
16944 of constant.
16945 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
16946 to lra_substitute_pseudo.
16947 * lra-lives.c (process_bb_lives): Add an argument to
16948 lra_substitute_pseudo_within_insn call.
16949 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
16950 argument to lra_substitute_pseudo and
16951 lra_substitute_pseudo_within_insn calls.
16952 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
16953
16954 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
16955
16956 * configure: Regenerated.
16957
16958 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
16959
16960 * config.gcc: Support i[34567]86-*-elfiamcu target.
16961 * config/i386/iamcu.h: New.
16962 * config/i386/i386.opt: Add -miamcu.
16963 * doc/invoke.texi: Document -miamcu.
16964 * common/config/i386/i386-common.c (ix86_handle_option): Turn
16965 off x87/MMX/SSE/AVX codegen for -miamcu.
16966 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16967 __iamcu/__iamcu__ for -miamcu.
16968 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
16969 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
16970 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
16971 * config/i386/i386.c (ix86_option_override_internal): Ignore and
16972 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
16973 MCU by default. Default long double to 64-bit for Intel MCU.
16974 Turn on -freg-struct-return for Intel MCU. Issue an error when
16975 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
16976 AVX is turned on.
16977 (function_arg_advance_32): Pass value whose size is no larger
16978 than 8 bytes in registers for Intel MCU.
16979 (function_arg_32): Likewise.
16980 (ix86_return_in_memory): Return value whose size is no larger
16981 than 8 bytes in registers for Intel MCU.
16982 (iamcu_alignment): New function.
16983 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
16984 true.
16985 (ix86_local_alignment): Don't increase alignment for Intel MCU.
16986 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
16987 true.
16988
16989 2015-06-30 Marek Polacek <polacek@redhat.com>
16990
16991 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
16992 both operands of the resulting expression.
16993
16994 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
16995 the final expression with the operand's type and then convert
16996 it to the type of the expression.
16997
16998 2015-06-30 Richard Biener <rguenther@suse.de>
16999
17000 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
17001 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
17002 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
17003 * match.pd: ... to patterns here.
17004
17005 2015-06-30 Richard Biener <rguenther@suse.de>
17006
17007 PR tree-optimization/66704
17008 * tree-vect-data-refs.c (vect_setup_realignment): Use
17009 make_ssa_name for non-SSA name source.
17010
17011 2015-06-30 Jakub Jelinek <jakub@redhat.com>
17012
17013 PR middle-end/66702
17014 * omp-low.c (simd_clone_adjust): Handle addressable linear
17015 or uniform parameters or non-gimple type uniform parameters.
17016
17017 2015-06-30 Richard Biener <rguenther@suse.de>
17018
17019 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
17020 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
17021 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
17022 * match.pd: ... here.
17023 Add a few cases of A - B -> A + (-B) when B "easily" negates.
17024 Move (x & y) | x -> x and friends before
17025 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
17026
17027 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
17028
17029 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
17030 -mfix-ut699 is not specified.
17031 (leon3_load): Rename into...
17032 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
17033 is specified.
17034
17035 2015-06-30 Marek Polacek <polacek@redhat.com>
17036
17037 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
17038 * match.pd: ... here.
17039
17040 2015-06-30 Richard Biener <rguenther@suse.de>
17041
17042 * target-insns.def (canonicalize_funcptr_for_compare): Add.
17043 * fold-const.c (build_range_check): Replace uses of
17044 HAVE_canonicalize_funcptr_for_compare.
17045 (fold_widened_comparison): Likewise.
17046 (fold_sign_changed_comparison): Likewise.
17047 * dojump.c: Include "target.h".
17048 (do_compare_and_jump): Replace uses of
17049 HAVE_canonicalize_funcptr_for_compare and
17050 gen_canonicalize_funcptr_for_compare.
17051 * expr.c (do_store_flag): Likewise.
17052
17053 2015-06-30 Tom de Vries <tom@codesourcery.com>
17054
17055 PR tree-optimization/66652
17056 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
17057 max_loop_iterations to determine if nit + 1 overflows.
17058
17059 2015-06-30 Richard Biener <rguenther@suse.de>
17060
17061 * tree-vrp.c (register_edge_assert_for_2): Also register
17062 asserts for dominating conversion results.
17063
17064 2015-06-30 Bin Cheng <bin.cheng@arm.com>
17065
17066 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
17067 field in struct iv.
17068
17069 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
17070
17071 PR target/66509
17072 * configure.ac: Fix filds and fildq test for 64-bit.
17073 * configure: Regenerated.
17074
17075 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
17076
17077 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
17078 (nvptx_reorg): Here. Keep the non-subreg pieces.
17079
17080 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
17081
17082 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
17083 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
17084
17085 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
17086
17087 * config/i386/i386.md (*jcc_1): Use %! in asm template.
17088 Set attribute "length_nobnd" instead of "length".
17089 (*jcc_2): Ditto.
17090 (jump): Ditto.
17091 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
17092
17093 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
17094
17095 * config/nios2/nios2.c (nios2_delegitimize_address): Make
17096 assert less restrictive.
17097
17098 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
17099
17100 PR fortran/66605
17101 * cgraphunit.c (cgraph_node::finalize_function): Do not call
17102 do_warn_unused_parameter.
17103 * function.c (do_warn_unused_parameter): Move from here.
17104 * function.h (do_warn_unused_parameter): Do not declare.
17105
17106 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17107
17108 PR target/65697
17109 * gcc.target/arm/armv-sync-comp-swap.c: New.
17110 * gcc.target/arm/armv-sync-op-acquire.c: New.
17111 * gcc.target/arm/armv-sync-op-full.c: New.
17112 * gcc.target/arm/armv-sync-op-release.c: New.
17113
17114 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17115
17116 PR target/65697
17117 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
17118 initial acquire barrier with final barrier.
17119
17120 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17121
17122 PR target/65697
17123 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
17124 initial acquire barrier with final barrier.
17125
17126 2015-06-29 Richard Henderson <rth@redhat.com>
17127
17128 * config/i386/constraints.md (Bf): New constraint.
17129 * config/i386/i386-c.c (ix86_target_macros): Define
17130 __GCC_ASM_FLAG_OUTPUTS__.
17131 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
17132 as flags outputs.
17133 * doc/extend.texi (FlagOutputOperands): Document them.
17134
17135 2015-06-29 Jiong Wang <jiong.wang@arm.com>
17136
17137 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
17138 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
17139 unspec name.
17140 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
17141 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
17142 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
17143 (aarch64_symbol_context): Ditto.
17144 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
17145 and use new pattern name.
17146 (aarch64_expand_mov_immediate): Ditto.
17147 (aarch64_print_operand): Ditto.
17148 (aarch64_classify_tls_symbol): Ditto.
17149
17150 2015-06-29 Marek Polacek <polacek@redhat.com>
17151 Marc Glisse <marc.glisse@inria.fr>
17152
17153 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
17154 * match.pd: ... pattern here.
17155
17156 2015-06-29 Tom de Vries <tom@codesourcery.com>
17157
17158 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
17159 function structure.
17160
17161 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17162
17163 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
17164 feature description, split out the native option, add a link to
17165 the feature documentation, rearrange and slightly rewrite text.
17166 (Aarch64 options, -mcpu): Likewise.
17167 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
17168 +rdma implies Adv. SIMD.
17169
17170 2015-06-29 Marek Polacek <polacek@redhat.com>
17171
17172 PR c/66322
17173 * function.c (stack_protect_epilogue): Remove a cast to int.
17174 * doc/invoke.texi: Update -Wswitch-bool description.
17175
17176 2015-06-29 Richard Biener <rguenther@suse.de>
17177
17178 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
17179 * fold-const.c (fold_binary_loc): Move &A - &B simplification
17180 via ptr_difference_const ...
17181 * match.pd: ... here.
17182 When matching (X ^ Y) == Y also match with swapped operands.
17183
17184 2015-06-29 Richard Biener <rguenther@suse.de>
17185
17186 * lto-streamer.h (LTO_major_version): Bump to 5.
17187
17188 2015-06-29 Richard Biener <rguenther@suse.de>
17189
17190 PR tree-optimization/66677
17191 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
17192 STMT_VINFO_VEC_STMT clobbering less strict.
17193
17194 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
17195
17196 PR middle-end/64130
17197 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
17198 division, compute max and min when value ranges for dividend and
17199 divisor are available.
17200
17201 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
17202 Sandra Loosemore <sandra@codesourcery.com>
17203
17204 * regrename.h (regrename_do_replace): Change to return bool.
17205 * regrename.c (rename_chains): Check return value of
17206 regname_do_replace.
17207 (regrename_do_replace): Re-validate the modified insns and
17208 return bool status.
17209 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
17210 Update to match rename_chains changes.
17211 * config/c6x/c6x.c (try_rename_operands): Assert that
17212 regrename_do_replace returns true.
17213
17214 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
17215
17216 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
17217 operand 2 here. Use copy_addr_to_reg to copy non-index
17218 register operand 2 to a temporary.
17219 (<mode>_stx): Ditto for operand 1.
17220 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
17221 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
17222 (ix86_store_bounds): Ditto.
17223
17224 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
17225
17226 * print-tree.c (print_node) [TREE_VEC]: Print its length.
17227
17228 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
17229
17230 * gimple.c (gimple_call_set_fndecl): Remove.
17231 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
17232 build1_loc directly instead of build_fold_addr_expr_loc.
17233
17234 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
17235
17236 * hash-map.h (hash_map::traverse): Use the definition of the
17237 Key typedef rather than the typedef itself.
17238
17239 2015-06-26 Martin Jambor <mjambor@suse.cz>
17240
17241 PR debug/66301
17242 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
17243 NULL instead of calling dump_enabled_p.
17244
17245 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17246
17247 * config/aarch64/aarch64.opt: (override): New.
17248 * doc/invoke.texi (override): Document.
17249 * config/aarch64/aarch64.c (aarch64_flag_desc): New
17250 (aarch64_fusible_pairs): Likewise.
17251 (aarch64_tuning_flags): Likewise.
17252 (aarch64_tuning_override_function): Likewise.
17253 (aarch64_tuning_override_functions): Likewise.
17254 (aarch64_parse_one_option_token): Likewise.
17255 (aarch64_parse_boolean_options): Likewise.
17256 (aarch64_parse_fuse_string): Likewise.
17257 (aarch64_parse_tune_string): Likewise.
17258 (aarch64_parse_one_override_token): Likewise.
17259 (aarch64_parse_override_string): Likewise.
17260 (aarch64_override_options): Parse the -override string if it
17261 is present.
17262
17263 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17264
17265 * config/aarch64/aarch64-protos.h (tune_params): Remove
17266 const from members.
17267 (aarch64_tune_params): Remove const, change to no longer be
17268 a pointer.
17269 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
17270 change to no longer be a pointer, initialize to generic_tunings.
17271 (aarch64_min_divisions_for_recip_mul): Change dereference of
17272 aarch64_tune_params to member access.
17273 (aarch64_reassociation_width): Likewise.
17274 (aarch64_rtx_mult_cost): Likewise.
17275 (aarch64_address_cost): Likewise.
17276 (aarch64_branch_cost): Likewise.
17277 (aarch64_rtx_costs): Likewise.
17278 (aarch64_register_move_cost): Likewise.
17279 (aarch64_memory_move_cost): Likewise.
17280 (aarch64_sched_issue_rate): Likewise.
17281 (aarch64_builtin_vectorization_cost): Likewise.
17282 (aarch64_override_options): Take a copy of the selected tuning
17283 struct in to aarch64_tune_params, rather than just setting
17284 a pointer, change dereferences of aarch64_tune_params to member
17285 accesses.
17286 (aarch64_override_options_after_change): Change dereferences of
17287 aarch64_tune_params to member access.
17288 (aarch64_macro_fusion_p): Likewise.
17289 (aarch_macro_fusion_pair_p): Likewise.
17290 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
17291
17292 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17293
17294 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
17295 (aarch64_tune_flags): Likewise.
17296 (AARCH64_TUNE_FMA_STEERING): Likewise.
17297 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
17298 to AARCH64_FL_USE_FMA_STEERING_PASS.
17299 (cortex-a57.cortex-a53): Likewise.
17300 (cortex-a72): Use cortexa72_tunings.
17301 (cortex-a72.cortex-a53): Likewise.
17302 (exynos-m1): Likewise.
17303 * config/aarch64/aarch64-protos.h (tune_params): Add
17304 a field: extra_tuning_flags.
17305 * config/aarch64/aarch64-tuning-flags.def: New.
17306 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
17307 (aarch64_extra_tuning_flags): Likewise.
17308 (aarch64_tune_params): Declare here.
17309 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
17310 (cortexa53_tunings): Likewise.
17311 (cortexa57_tunings): Likewise.
17312 (thunderx_tunings): Likewise.
17313 (xgene1_tunings): Likewise.
17314 (cortexa72_tunings): New.
17315 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
17316 (gate): Check against aarch64_tune_params.
17317 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
17318 aarch64-protos.h.
17319
17320 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17321
17322 * config/aarch64/aarch64-fusion-pairs.def: New.
17323 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
17324 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
17325 aarch64_fusion_pairs.
17326 (AARCH64_FUSE_MOV_MOVK): Likewise.
17327 (AARCH64_FUSE_ADRP_ADD): Likewise.
17328 (AARCH64_FUSE_MOVK_MOVK): Likewise.
17329 (AARCH64_FUSE_ADRP_LDR): Likewise.
17330 (AARCH64_FUSE_CMP_BRANCH): Likewise.
17331
17332 2015-06-26 Jiong Wang <jiong.wang@arm.com>
17333
17334 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
17335 SYMBOL_SMALL_GOT_28K.
17336 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
17337 relocation modifiers.
17338 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
17339 (ldr_got_small_28k_<mode>): New.
17340 (ldr_got_small_28k_sidi): New.
17341 * config/aarch64/iterators.md (got_modifier): New mode iterator.
17342 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
17343 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17344 SYMBOL_SMALL_GOT_28K.
17345 (aarch64_rtx_costs): Add costs for new instruction sequences.
17346 (initialize_aarch64_code_model): Initialize new model.
17347 (aarch64_classify_symbol): Recognize new model and new symbol classification.
17348 (aarch64_asm_preferred_eh_data_format): Support new model.
17349 (aarch64_load_symref_appropriately): Generate new instruction
17350 sequences for -fpic.
17351 (TARGET_USE_PSEUDO_PIC_REG): New definition.
17352 (aarch64_use_pseudo_pic_reg): New function.
17353
17354 2015-06-26 Jiong Wang <jiong.wang@arm.com>
17355
17356 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17357 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
17358 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
17359 (aarch64_expand_mov_immediate): Ditto.
17360 (aarch64_print_operand): Ditto.
17361 (aarch64_classify_symbol): Ditto.
17362
17363 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
17364
17365 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
17366
17367 2015-06-26 Bin Cheng <bin.cheng@arm.com>
17368
17369 PR bootstrap/66638
17370 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
17371 assertion failed. Remove assertion itself.
17372
17373 2015-06-26 Richard Biener <rguenther@suse.de>
17374
17375 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
17376 and -A CMP CST -> A CMP -CST which is redundant with a pattern
17377 in match.pd.
17378 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
17379 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
17380 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
17381 * match.pd: ... patterns here.
17382
17383 2015-06-26 Marek Polacek <polacek@redhat.com>
17384
17385 * match.pd ((x | y) & ~(x & y) -> x ^ y,
17386 (x | y) & (~x ^ y) -> x & y): New patterns.
17387
17388 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
17389
17390 * rtl.h (emit): Add an optional boolean parameter to control
17391 whether barriers are emitted.
17392 * emit-rtl.c (emit): Likewise.
17393 * gensupport.c (get_emit_function): Return null rather than "emit".
17394 * genemit.c (gen_emit_seq): Handle the null return value.
17395 Don't emit barriers after the final instruction in the sequence.
17396 * gentarget-def.c (main): Don't emit barriers after the instruction.
17397
17398 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17399
17400 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
17401 TARGET_UNIFIED_ASM.
17402
17403 2015-06-26 Richard Biener <rguenther@suse.de>
17404
17405 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
17406
17407 2015-06-26 Richard Biener <rguenther@suse.de>
17408
17409 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
17410 irrespective on whether the inner operation has a single use
17411 of both off are constant.
17412
17413 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
17414 Segher Boessenkool <segher@kernel.crashing.org>
17415
17416 PR target/66412
17417 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
17418 before doing PUT_MODE or PUT_CODE on operands to avoid
17419 in-place RTX modification.
17420
17421 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
17422
17423 * gentarget-def.c (def_target_insn): Cast return of strtol to
17424 unsigned int.
17425
17426 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17427
17428 * gimple.h (gimple_call_set_fn): Move inline function.
17429 * gimple.c (gimple_call_set_fn): Relocate here.
17430
17431 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
17432
17433 PR target/65979
17434 PR target/66611
17435 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
17436 the replacement insn will work.
17437
17438 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
17439
17440 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
17441 by default.
17442
17443 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17444
17445 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
17446 * cgraph.h: Include ipa-ref.h and plugin-api.h.
17447 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
17448 (symtab_node::address_can_be_compared_p): Move function.
17449 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
17450 definition here.
17451 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
17452 * auto-profile.c: Likewise.
17453 * bb-reorder.c: Likewise.
17454 * builtins.c: Likewise.
17455 * calls.c: Likewise.
17456 * cfgexpand.c: Likewise.
17457 * cgraphbuild.c: Likewise.
17458 * cgraphclones.c: Likewise.
17459 * cgraphunit.c: Likewise.
17460 * combine.c: Likewise.
17461 * coverage.c: Likewise.
17462 * data-streamer-in.c: Likewise.
17463 * data-streamer-out.c: Likewise.
17464 * data-streamer.c: Likewise.
17465 * dbxout.c: Likewise.
17466 * dwarf2out.c: Likewise.
17467 * except.c: Likewise.
17468 * expr.c: Likewise.
17469 * final.c: Likewise.
17470 * fold-const.c: Likewise.
17471 * ggc-page.c: Likewise.
17472 * gimple-fold.c: Likewise.
17473 * gimple-iterator.c: Likewise.
17474 * gimple-pretty-print.c: Likewise.
17475 * gimple-streamer-in.c: Likewise.
17476 * gimple-streamer-out.c: Likewise.
17477 * gimple.c: Likewise.
17478 * gimplify.c: Likewise.
17479 * ipa-chkp.c: Likewise.
17480 * ipa-comdats.c: Likewise.
17481 * ipa-cp.c: Likewise.
17482 * ipa-devirt.c: Likewise.
17483 * ipa-icf-gimple.c: Likewise.
17484 * ipa-icf.c: Likewise.
17485 * ipa-inline-analysis.c: Likewise.
17486 * ipa-inline-transform.c: Likewise.
17487 * ipa-inline.c: Likewise.
17488 * ipa-polymorphic-call.c: Likewise.
17489 * ipa-profile.c: Likewise.
17490 * ipa-prop.c: Likewise.
17491 * ipa-pure-const.c: Likewise.
17492 * ipa-ref.c: Likewise.
17493 * ipa-reference.c: Likewise.
17494 * ipa-split.c: Likewise.
17495 * ipa-utils.c: Likewise.
17496 * ipa-visibility.c: Likewise.
17497 * ipa.c: Likewise.
17498 * langhooks.c: Likewise.
17499 * lto-cgraph.c: Likewise.
17500 * lto-compress.c: Likewise.
17501 * lto-opts.c: Likewise.
17502 * lto-section-in.c: Likewise.
17503 * lto-section-out.c: Likewise.
17504 * lto-streamer-in.c: Likewise.
17505 * lto-streamer-out.c: Likewise.
17506 * lto-streamer.c: Likewise.
17507 * omp-low.c: Likewise.
17508 * opts-global.c: Likewise.
17509 * passes.c: Likewise.
17510 * predict.c: Likewise.
17511 * print-tree.c: Likewise.
17512 * profile.c: Likewise.
17513 * ree.c: Likewise.
17514 * sanopt.c: Likewise.
17515 * stor-layout.c: Likewise.
17516 * symtab.c: Likewise.
17517 * toplev.c: Likewise.
17518 * trans-mem.c: Likewise.
17519 * tree-cfg.c: Likewise.
17520 * tree-chkp.c: Likewise.
17521 * tree-eh.c: Likewise.
17522 * tree-emutls.c: Likewise.
17523 * tree-inline.c: Likewise.
17524 * tree-nested.c: Likewise.
17525 * tree-parloops.c: Likewise.
17526 * tree-pretty-print.c: Likewise.
17527 * tree-profile.c: Likewise.
17528 * tree-sra.c: Likewise.
17529 * tree-ssa-alias.c: Likewise.
17530 * tree-ssa-live.c: Likewise.
17531 * tree-ssa-loop-ivcanon.c: Likewise.
17532 * tree-ssa-loop-ivopts.c: Likewise.
17533 * tree-ssa-pre.c: Likewise.
17534 * tree-ssa-sccvn.c: Likewise.
17535 * tree-ssa-strlen.c: Likewise.
17536 * tree-ssa-structalias.c: Likewise.
17537 * tree-streamer-in.c: Likewise.
17538 * tree-streamer-out.c: Likewise.
17539 * tree-streamer.c: Likewise.
17540 * tree-switch-conversion.c: Likewise.
17541 * tree-tailcall.c: Likewise.
17542 * tree-vect-data-refs.c: Likewise.
17543 * tree-vect-stmts.c: Likewise.
17544 * tree-vectorizer.c: Likewise.
17545 * tree.c: Likewise.
17546 * tsan.c: Likewise.
17547 * ubsan.c: Likewise.
17548 * value-prof.c: Likewise.
17549 * varasm.c: Likewise.
17550 * varpool.c: Likewise.
17551 * config/arm/arm.c: Likewise.
17552 * config/bfin/bfin.c: Likewise.
17553 * config/c6x/c6x.c: Likewise.
17554 * config/cris/cris.c: Likewise.
17555 * config/darwin-c.c: Likewise.
17556 * config/darwin.c: Likewise.
17557 * config/i386/i386.c: Likewise.
17558 * config/i386/winnt.c: Likewise.
17559 * config/microblaze/microblaze.c: Likewise.
17560 * config/mips/mips.c: Likewise.
17561 * config/rs6000/rs6000.c: Likewise.
17562 * config/rx/rx.c: Likewise.
17563 * config/s390/s390.c: Likewise.
17564 * config/tilegx/mul-tables.c: Likewise.
17565
17566 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17567
17568 * config/aarch64/aarch64.c, config/alpha/alpha.c,
17569 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
17570 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
17571 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
17572 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17573 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17574 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17575 config/microblaze/microblaze.c, config/mips/mips.c,
17576 config/mmix/mmix.c, config/mn10300/mn10300.c,
17577 config/moxie/moxie.c, config/msp430/msp430.c,
17578 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17579 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17580 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17581 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17582 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17583 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17584 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
17585 target-def.h include.
17586 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
17587
17588 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17589
17590 * Makefile.in (TARGET_DEF): Add target-insns.def.
17591 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
17592 (build/gentarget-def.o): New rule.
17593 (genprogrtl): Add target-def.
17594 * target-insns.def, gentarget-def.c: New files.
17595 * target.def: Add targetm.have_* and targetm.gen_* hooks,
17596 based on the contents of target-insns.def.
17597 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
17598 (HAVE_return, gen_return): Delete.
17599 * target-def.h: Include insn-target-def.h.
17600 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
17601 instead of direct calls. Rely on them to do the appropriate assertions.
17602 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
17603 (convert_jumps_to_returns): Use targetm interface instead of
17604 direct calls.
17605 (thread_prologue_and_epilogue_insns): Likewise.
17606 * reorg.c (find_end_label, dbr_schedule): Likewise.
17607 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
17608 * shrink-wrap.c (convert_to_simple_return): Likewise.
17609 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
17610
17611 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17612
17613 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
17614 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17615 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
17616 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
17617 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17618 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17619 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17620 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
17621 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
17622 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17623 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17624 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17625 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17626 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17627 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17628 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
17629 includes to end.
17630
17631 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17632
17633 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
17634 (unbounded_int_hashmap_traits::key_type): Likewise.
17635 * hash-map.h (hash_map): Get the key type from the traits.
17636 * hash-traits.h (default_hash_traits): By default, inherit from the
17637 template parameter.
17638 * alias.c (alias_set_traits): Delete.
17639 (alias_set_entry_d::children): Use alias_set_hash as the first
17640 template parameter.
17641 (record_alias_subset): Update accordingly.
17642 * except.c (tree_hash_traits): Delete.
17643 (type_to_runtime_map): Use tree_hash as the first template parameter.
17644 (init_eh): Update accordingly.
17645 * genmatch.c (capture_id_map_hasher): Delete.
17646 (cid_map_t): Use nofree_string_hash as first template parameter.
17647 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
17648 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
17649 Use symbol_compare_hash as the first template parameter in
17650 subdivide_hash_map.
17651 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
17652 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
17653 template parameter.
17654 * passes.c (pass_registry_hasher): Delete.
17655 (name_to_pass_map): Use nofree_string_hash as the first template
17656 parameter.
17657 (register_pass_name): Update accordingly.
17658 * sanopt.c (sanopt_tree_map_traits): Delete.
17659 (sanopt_tree_triplet_map_traits): Delete.
17660 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
17661 template parameter.
17662 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
17663 the first template parameter.
17664 * sese.c (rename_map_hasher): Delete.
17665 (rename_map_type): Use tree_ssa_name_hash as the first template
17666 parameter.
17667 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
17668 (function_summary::m_map): Use map_hash as the first template
17669 parameter.
17670 (function_summary::release): Update accordingly.
17671 * tree-if-conv.c (phi_args_hash_traits): Delete.
17672 (predicate_scalar_phi): Use tree_operand_hash as the first template
17673 parameter to phi_arg_map.
17674 * tree-inline.h (dependence_hasher): Delete.
17675 (copy_body_data::dependence_map): Use dependence_hash as the first
17676 template parameter.
17677 * tree-inline.c (remap_dependence_clique): Update accordingly.
17678 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
17679 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
17680 parameter.
17681 (addr_stridxptr): Update accordingly.
17682 * value-prof.c (profile_id_traits): Delete.
17683 (cgraph_node_map): Use profile_id_hash as the first template
17684 parameter.
17685 (init_node_map): Update accordingly.
17686 * config/alpha/alpha.c (string_traits): Delete.
17687 (machine_function::links): Use nofree_string_hash as the first
17688 template parameter.
17689 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
17690 * config/m32c/m32c.c (pragma_traits): Delete.
17691 (pragma_htab): Use nofree_string_hash as the first template parameter.
17692 (m32c_note_pragma_address): Update accordingly.
17693 * config/mep/mep.c (pragma_traits): Delete.
17694 (pragma_htab): Use nofree_string_hash as the first template parameter.
17695 (mep_note_pragma_flag): Update accordingly.
17696 * config/mips/mips.c (mips16_flip_traits): Delete.
17697 (mflip_mips16_htab): Use nofree_string_hash as the first template
17698 parameter.
17699 (mflip_mips16_use_mips16_p): Update accordingly.
17700 (local_alias_traits): Delete.
17701 (mips16_local_aliases): Use nofree_string_hash as the first template
17702 parameter.
17703 (mips16_local_alias): Update accordingly.
17704
17705 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17706
17707 * hash-map-traits.h (default_hashmap_traits): Delete.
17708
17709 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17710
17711 * hash-map-traits.h (unbounded_hashmap_traits): New class.
17712 (unbounded_int_hashmap_traits): Likewise.
17713 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
17714
17715 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17716
17717 * ipa-icf.h (symbol_compare_hash): New class.
17718 (symbol_compare_hashmap_traits): Use it.
17719 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
17720 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
17721 (mem_alloc_description::reverse_mem_map_t): Remove redundant
17722 default_hashmap_traits.
17723 * sanopt.c (sanopt_tree_triplet_hash): New class.
17724 (sanopt_tree_triplet_map_traits): Use it.
17725
17726 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17727
17728 * gengtype-parse.c (require_template_declaration): Allow '+' in
17729 template parameters. Consolidate cases.
17730 * hash-traits.h (int_hash): New class.
17731 * alias.c (alias_set_hash): New structure.
17732 (alias_set_traits): Use it.
17733 * symbol-summary.h (function_summary::map_hash): New class.
17734 (function_summary::summary_hashmap_traits): Use it.
17735 * tree-inline.h (dependence_hash): New class.
17736 (dependence_hasher): Use it.
17737 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
17738 * value-prof.c (profile_id_hash): New class.
17739 (profile_id_traits): Use it.
17740
17741 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17742
17743 * config/mips/mips.c (mips16_flip_traits): Use it.
17744 (local_alias_traits, mips16_local_aliases): Convert from a map of
17745 rtxes to a map of symbol names.
17746 (mips16_local_alias): Update accordingly.
17747
17748 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17749
17750 * hash-traits.h (string_hash, nofree_string_hash): New classes.
17751 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
17752 * passes.c (pass_registry_hasher): Likewise.
17753 * config/alpha/alpha.c (string_traits): Likewise.
17754 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
17755 * config/m32c/m32c.c (pragma_traits): Likewise.
17756 * config/mep/mep.c (pragma_traits): Likewise.
17757
17758 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17759
17760 * tree-hash-traits.h (tree_hash): New class.
17761 * except.c: Include tree-hash-traits.h.
17762 (tree_hash_traits): Use tree_hash.
17763
17764 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17765
17766 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
17767 * sese.c: Include tree-hash-traits.h.
17768 (rename_map_hasher): Use tree_ssa_name_hasher.
17769
17770 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17771
17772 * tree-hash-traits.h (tree_decl_hash): New class.
17773 * tree-ssa-strlen.c: Include tree-hash-traits.h.
17774 (stridxlist_hash_traits): Use tree_decl_hash.
17775
17776 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17777
17778 * tree-hash-traits.h: New file.
17779 (tree_operand_hash): New class.
17780 * sanopt.c: Include tree-hash-traits.h.
17781 (sanopt_tree_map_traits): Use tree_operand_hash.
17782 * tree-if-conv.c: Include tree-hash-traits.h.
17783 (phi_args_hash_traits): Use tree_operand_hash.
17784 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
17785 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
17786
17787 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17788
17789 * hash-map-traits.h: Include hash-traits.h.
17790 (simple_hashmap_traits): New class.
17791 * mem-stats.h (hash_map): Change the default traits to
17792 simple_hashmap_traits<default_hash_traits<Key> >.
17793
17794 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17795
17796 * hash-table.h: Update comments.
17797
17798 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17799
17800 * hash-traits.h (default_hash_traits): New structure.
17801 * hash-set.h (default_hashset_traits): Delete.
17802 (hash_set): Use default_hash_traits<Key> instead of
17803 default_hashset_traits. Delete hash_entry type and use Key directly.
17804 * ipa-devirt.c (pair_traits): Delete.
17805 (default_hash_traits <type_pair>): Override.
17806 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
17807 (odr_types_equivalent_p, add_type_duplicate): Likewise.
17808
17809 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17810
17811 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
17812
17813 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17814
17815 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
17816 (has_is_empty, is_empty_helper): Delete.
17817 (has_mark_deleted, mark_deleted_helper): Delete.
17818 (has_mark_empty, mark_empty_helper): Delete.
17819 (hash_table::is_deleted): Call the Descriptor unconditionally.
17820 (hash_table::is_empty): Likewise.
17821 (hash_table::mark_deleted): Likewise.
17822 (hash_table::mark_empty): Likewise.
17823
17824 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17825
17826 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
17827 redundant typedefs and members.
17828 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
17829 redundant typedefs.
17830 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
17831 * ipa-devirt.c (odr_name_hasher): Likewise.
17832 (polymorphic_call_target_hasher): Likewise.
17833 * ira-costs.c (cost_classes_hasher): Likewise.
17834 * statistics.c (stats_counter_hasher): Likewise.
17835 * trans-mem.c (log_entry_hasher): Likewise.
17836 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17837 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
17838 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
17839 * var-tracking.c (variable_hasher): Likewise.
17840 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
17841 Remove redundant typedefs and members.
17842
17843 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17844
17845 * hash-traits.h (ggc_cache_hasher): Rename to...
17846 (ggc_cache_remove): ...this and remove typedefs.
17847 (ggc_cache_ptr_hash): New class.
17848 * hash-table.h: Update commentary.
17849 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
17850 rather than ggc_cache_hasher.
17851 (const_wide_int_hasher, reg_attr_hasher): Likewise.
17852 (const_double_hasher, const_fixed_hasher): Likewise.
17853 * function.c (insn_cache_hasher): Likewise.
17854 * trans-mem.c (tm_wrapper_hasher): Likewise.
17855 * tree.h (tree_decl_map_cache_hasher): Likewise.
17856 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
17857 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
17858 * ubsan.c (tree_type_map_cache_hasher): Likewise.
17859 * varasm.c (tm_clone_hasher): Likewise.
17860 * config/i386/i386.c (dllimport_hasher): Likewise.
17861 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
17862 (tree_hasher): Likewise.
17863
17864 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17865
17866 * hash-traits.h (ggc_hasher): Rename to...
17867 (ggc_remover): ...this and remove typedefs.
17868 (ggc_cache_hasher): Update accordingly. Add typedefs.
17869 (ggc_ptr_hash): New class.
17870 * hash-table.h: Update comment.
17871 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
17872 ggc_hasher.
17873 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
17874 (tree_descriptor_hasher): Likewise.
17875 * cgraph.c (function_version_hasher): Likewise.
17876 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
17877 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
17878 (dw_loc_list_hasher, addr_hasher): Likewise.
17879 * function.h (used_type_hasher): Likewise.
17880 * function.c (temp_address_hasher): Likewise.
17881 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
17882 * libfuncs.h (libfunc_hasher): Likewise.
17883 * lto-streamer.h (decl_state_hasher): Likewise.
17884 * optabs.c (libfunc_decl_hasher): Likewise.
17885 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
17886 * varasm.c (section_hasher, object_block_hasher): Likewise.
17887 (const_rtx_desc_hasher): Likewise.
17888 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
17889 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
17890
17891 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17892
17893 * hash-traits.h (free_ptr_hash): New class.
17894 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
17895 rather than typed_free_remove. Remove redudant typedefs.
17896 (external_ref_hasher): Likewise.
17897 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
17898 (ehspec_hasher): Likewise.
17899 * ggc-common.c (saving_hasher): Likewise.
17900 * gimplify.c (gimplify_hasher): Likewise.
17901 * haifa-sched.c (delay_i2_hasher): Likewise.
17902 * loop-invariant.c (invariant_expr_hasher): Likewise.
17903 * loop-iv.c (biv_entry_hasher): Likewise.
17904 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
17905 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
17906 * tree-cfg.c (locus_discrim_hasher): Likewise.
17907 * tree-eh.c (finally_tree_hasher): Likewise.
17908 * tree-into-ssa.c (var_info_hasher): Likewise.
17909 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
17910 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
17911 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
17912 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
17913 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
17914 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
17915 (shared_bitmap_hasher): Likewise.
17916 * tree-ssa-threadupdate.c (redirection_data): Likewise.
17917 * tree-vectorizer.h (peel_info_hasher): Likewise.
17918 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
17919 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
17920
17921 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17922
17923 * hash-table.h: Update comments.
17924 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
17925 (nofree_ptr_hash): New class.
17926 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
17927 than typed_noop_remove. Remove redudant typedefs.
17928 * attribs.c (attribute_hasher): Likewise.
17929 * cfg.c (bb_copy_hasher): Likewise.
17930 * cselib.c (cselib_hasher): Likewise.
17931 * dse.c (invariant_group_base_hasher): Likewise.
17932 * dwarf2cfi.c (trace_info_hasher): Likewise.
17933 * dwarf2out.c (macinfo_entry_hasher): Likewise.
17934 (comdat_type_hasher, loc_list_hasher): Likewise.
17935 * gcse.c (pre_ldst_expr_hasher): Likewise.
17936 * genmatch.c (id_base): Likewise.
17937 * genrecog.c (test_pattern_hasher): Likewise.
17938 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
17939 * haifa-sched.c (delay_i1_hasher): Likewise.
17940 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
17941 * ipa-icf.h (congruence_class_group_hash): Likewise.
17942 * ipa-profile.c (histogram_hash): Likewise.
17943 * ira-color.c (allocno_hard_regs_hasher): Likewise.
17944 * lto-streamer.h (string_slot_hasher): Likewise.
17945 * lto-streamer.c (tree_entry_hasher): Likewise.
17946 * plugin.c (event_hasher): Likewise.
17947 * postreload-gcse.c (expr_hasher): Likewise.
17948 * store-motion.c (st_expr_hasher): Likewise.
17949 * tree-sra.c (uid_decl_hasher): Likewise.
17950 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
17951 (ssa_name_var_hash): Likewise.
17952 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
17953 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
17954 * tree-ssa-pre.c (pre_expr_d): Likewise.
17955 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
17956 * vtable-verify.h (registration_hasher): Likewise.
17957 * vtable-verify.c (vtbl_map_hasher): Likewise.
17958 * config/arm/arm.c (libcall_hasher): Likewise.
17959 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
17960 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
17961 * config/sol2.c (comdat_entry_hasher): Likewise.
17962 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
17963 (print_fold_checksum, fold_checksum_tree): Likewise.
17964 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
17965 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
17966 (fold_build_call_array_loc): Likewise.
17967 * tree-ssa-ccp.c (gimple_htab): Likewise.
17968 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
17969 rather than pointer_type.
17970
17971 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17972
17973 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
17974 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
17975
17976 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17977
17978 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
17979 (ggc_hasher::ggc_mx): Likewise.
17980 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
17981 that duplicate ggc_hasher ones.
17982
17983 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17984
17985 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
17986 (gt_cleare_cache): Check here for deleted and empty entries.
17987 Replace handle_cache_entry with a call to keep_cache_entry.
17988 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
17989 (ggc_cache_hasher::keep_cache_entry): New function.
17990 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
17991 (tm_wrapper_hasher::keep_cache_entry): New function.
17992 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
17993 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17994 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
17995 (type_cache_hasher::keep_cache_entry): New function.
17996 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
17997 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17998 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
17999 (tree_type_map_cache_hasher::keep_cache_entry): New function.
18000 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
18001 (tm_clone_hasher::keep_cache_entry): New function.
18002 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
18003 (dllimport_hasher::keep_cache_entry): New function.
18004
18005 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18006
18007 * hash-table.h: Include hash-traits.h.
18008 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
18009 (ggc_cache_hasher): Move to...
18010 * hash-traits.h: ...this new file.
18011
18012 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18013
18014 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
18015 struct cl_optimization.
18016 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
18017 * tree.c (make_node_stat): Allocate cl_optimization struct.
18018 (copy_node_stat): Allocate and copy cl_optimization struct.
18019
18020 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18021
18022 * function.h (struct incoming_args): Move struct.
18023 (pass_by_reference, reference_callee_copied): Remove prototypes.
18024 * emit-rtl.h (struct incoming_args): Relocate struct here.
18025 * calls.h (pass_by_reference, reference_callee_copied): Relocate
18026 prototypes here.
18027 * function.c (pass_by_reference, reference_callee_copied): Move.
18028 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
18029 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
18030 * ipa-chkp.c: Include calls.h.
18031
18032 2015-06-25 Andrew Macleod <amacleod@redhat.com>
18033
18034 * alias.h (alias_set_type): Move typedef.
18035 * coretypes.h (alias_set_type): Relocate typedef here.
18036 * rtl.h: Don't include alias.h.
18037
18038 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18039
18040 * cgraph.h (cgraph_rtl_info): Move to rtl.h
18041 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
18042 and instance.
18043 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
18044 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
18045 doesn't exist.
18046 * calls.c: Include hard-reg-set.h before rtl.h.
18047 * ira.c: Likewise.
18048
18049 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18050 Vladimir Makarov <vmakarov@redhat.com>
18051
18052 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
18053 Add assert.
18054
18055 2015-06-25 Richard Biener <rguenther@suse.de>
18056
18057 * fold-const.c (fold_binary_loc): Move simplification of
18058 (X <<>> C1) & C2 ...
18059 * match.pd: ... here.
18060
18061 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
18062
18063 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
18064
18065 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18066
18067 * match.pd: Add patterns for vec_conds between 1 and 0.
18068
18069 2015-06-25 Richard Biener <rguenther@suse.de>
18070
18071 * tree-vect-stmts.c (vectorizable_conversion): Do not set
18072 STMT_VINFO_VEC_STMT for SLP.
18073 (vectorizable_store): Likewise.
18074 (vectorizable_load): Likewise.
18075 (vect_transform_stmt): Catch SLP vectorization clobbering
18076 STMT_VINFO_VEC_STMT.
18077
18078 2015-06-25 Richard Biener <rguenther@suse.de>
18079
18080 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
18081 dumping.
18082 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
18083 cleanup resulting dead code and parameters.
18084 (vect_transform_slp_perm_load): Adjust.
18085
18086 2015-06-25 Nick Clifton <nickc@redhat.com>
18087
18088 * config/bfin/bfin.c (bfin_expand_prologue): Set
18089 current_function_static_stack_size if flag_stack_usage_info is set.
18090 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
18091 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
18092 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18093 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
18094
18095 2015-06-25 Tom de Vries <tom@codesourcery.com>
18096
18097 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
18098 comment that the generated IV is unsigned.
18099
18100 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18101
18102 PR target/29693
18103 * config/arm/arm.c (arm_dbx_register_number): Return
18104 DWARF_FRAME_REGISTERS by default.
18105
18106 2015-06-25 Tom de Vries <tom@codesourcery.com>
18107
18108 * dominance.c (calculate_dominance_info): Fix verify_dominators call
18109 argument. Call verify_dominator when reusing dominator info.
18110
18111 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
18112
18113 PR target/66563
18114 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
18115 an additional element of the unspec vector. Modify indices
18116 of operands.
18117 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
18118 * config/sh/sh.c (prepare_move_operands): Pass incremented
18119 const_int to gen_GOTaddr2picreg.
18120 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
18121
18122 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18123
18124 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
18125 Condition on TARGET_FLOAT.
18126
18127 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18128
18129 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
18130 and (no)crypto.
18131
18132 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18133
18134 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
18135
18136 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
18137 aarch64_err_no_fpadvsimd.
18138
18139 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
18140 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
18141 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
18142 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
18143 Turn error into assert, test TARGET_FLOAT.
18144 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
18145 TARGET_FLOAT.
18146
18147 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
18148
18149 PR debug/66482
18150 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
18151
18152 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18153
18154 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
18155
18156 2015-06-24 Renlin Li <renlin.li@arm.com>
18157
18158 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
18159 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
18160
18161 2015-06-24 Richard Biener <rguenther@suse.de>
18162
18163 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
18164 (main): Likewise.
18165 (lower_opt_convert): Support lowering of conditional view_convert.
18166 (parser::parse_operation): Likewise.
18167 (parser::parse_for): Likewise.
18168
18169 2015-06-24 Renlin Li <renlin.li@arm.com>
18170
18171 * varasm.c (emit_local): Use unsigned int for align variable.
18172
18173 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18174
18175 PR target/63408
18176 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
18177 for negative numbers.
18178
18179 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18180
18181 PR rtl-optimization/66306
18182 * reload.c (find_reloads): Swap the match_dup info for
18183 commutative operands.
18184
18185 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18186
18187 * config/s390/vx-builtins.md
18188 ("vec_scatter_element<mode>_<non_vec_int>")
18189 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
18190 attribute with bhfgq.
18191
18192 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18193
18194 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
18195
18196 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18197
18198 * config/s390/s390-builtin-types.def: Add flag to indicate the
18199 options under which the function type is needed.
18200 * config/s390/s390-builtins.def: Add flag to indicate the options
18201 under which the builtin is enabled.
18202 * config/s390/s390-builtins.h: Add flags parameter to macro
18203 definitions.
18204 (bflags_for_builtin): New function.
18205 (flags_for_builtin): Renamed to ...
18206 (opflags_for_builtin): ... this.
18207 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
18208 flags_for_builtin to bflags_for_builtin and
18209 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
18210 * config/s390/s390.c: Add initialization of bflags_builtin and
18211 opflags_builtin arrays.
18212 Remove code for flags_builtin.
18213 (s390_init_builtins): Only create builtin function types if one of
18214 their flags is active.
18215 Only create builtins if all of their flags are active.
18216 (s390_expand_builtin): Rename flags_for_builtin to
18217 opflags_for_builtin.
18218
18219 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18220
18221 * config/s390/vecintrin.h: Remove internal builtins.
18222
18223 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18224
18225 * config/s390/s390.c (s390_secondary_reload): Fix check for
18226 GENERAL_REGS register class.
18227
18228 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18229
18230 * config/s390/s390.c (s390_support_vector_misalignment): Call
18231 default implementation for !TARGET_VX.
18232
18233 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18234
18235 * config/s390/s390.c (s390_legitimate_constant_p): Add
18236 TARGET_VX check.
18237
18238 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18239
18240 * config/s390/s390.c (s390_vector_abi): New variable definition.
18241 (s390_check_type_for_vector_abi): New function.
18242 (TARGET_ASM_FILE_END): New macro definition.
18243 (s390_asm_file_end): New function.
18244 (s390_function_arg): Call s390_check_type_for_vector_abi.
18245 (s390_gimplify_va_arg): Likewise.
18246 * configure: Regenerate.
18247 * configure.ac: Check for .gnu_attribute Binutils feature.
18248
18249 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
18250
18251 PR target/65803
18252 * config/bfin/bfin.c (hwloop_optimize): Initialize
18253 JUMP_LABEL for newly created jump.
18254
18255 2015-06-23 Tristan Gingold <gingold@adacore.com>
18256
18257 * collect-utils.c (collect_wait): Unlink the response file here
18258 instead of...
18259 (do_wait): ...here.
18260 (utils_cleanup): ...and here.
18261
18262 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
18263
18264 * df-scan.c: Don't include target-def.h.
18265 * targhooks.c: Likewise.
18266 * config/arm/arm-c.c: Likewise.
18267 * config/i386/i386-c.c: Likewise.
18268 * config/nds32/nds32-cost.c: Likewise.
18269 * config/nds32/nds32-fp-as-gp.c: Likewise.
18270 * config/nds32/nds32-intrinsic.c: Likewise.
18271 * config/nds32/nds32-isr.c: Likewise.
18272 * config/nds32/nds32-md-auxiliary.c: Likewise.
18273 * config/nds32/nds32-memory-manipulation.c: Likewise.
18274 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18275 * config/nds32/nds32-predicates.c: Likewise.
18276
18277 2015-06-23 Richard Biener <rguenther@suse.de>
18278
18279 PR tree-optimization/66636
18280 * tree-vect-stmts.c (vectorizable_store): Properly compute the
18281 def type for further defs for strided stores.
18282
18283 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
18284
18285 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
18286 conditional selects.
18287 (setcc_int<mode>, setcc_float<mode>): Reformat.
18288
18289 2015-06-23 Marek Polacek <polacek@redhat.com>
18290
18291 * match.pd ((x + y) - (x | y) -> x & y,
18292 (x + y) - (x & y) -> x | y): New patterns.
18293
18294 2015-06-23 Ludovic Courtès <ludo@gnu.org>
18295
18296 PR 65711
18297 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
18298 '-dynamic-linker' within %{!shared: ...}.
18299
18300 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
18301
18302 PR target/66560
18303 * config/i386/predicates.md (addsub_vm_operator): New predicate.
18304 (addsub_vs_operator): Ditto.
18305 (addsub_vs_parallel): Ditto.
18306 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
18307 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
18308 Put minus RTX before plus and adjust vec_merge selector.
18309 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
18310 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
18311 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
18312 (addsub vec_merge splitters): New combiner splitters.
18313 (addsub vec_select/vec_concat splitters): Ditto.
18314
18315 2015-06-23 Bin Cheng <bin.cheng@arm.com>
18316
18317 PR tree-optimization/66449
18318 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
18319 POINTER_PLUS_EXPR for pointers.
18320
18321 2015-06-23 Alan Modra <amodra@gmail.com>
18322
18323 * rtlanal.c (commutative_operand_precedence): Correct comments.
18324 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
18325 declaration. Return an int. Distinguish REG,REG return from
18326 others.
18327 (struct simplify_plus_minus_op_data): Make local to function.
18328 (simplify_plus_minus): Don't set canonicalized if merely sorting
18329 registers. Avoid packing ops if nothing changes. White space fixes.
18330
18331 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
18332
18333 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
18334 -fdump-ada-spec is passed but not if -fsyntax-only is.
18335
18336 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
18337
18338 PR bootstrap/63740
18339 * lra-lives.c (process_bb_lives): Check insn copying the same
18340 reload pseudo and don't create a copy for it.
18341
18342 2015-06-22 Tom de Vries <tom@codesourcery.com>
18343
18344 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
18345 for cond_stmt.
18346
18347 2015-06-22 Tom de Vries <tom@codesourcery.com>
18348
18349 * builtins.def (DEF_GOMP_BUILTIN): Test
18350 'flag_tree_parallelize_loops > 1' instead of
18351 'flag_tree_parallelize_loops'. Test flag_cilkplus.
18352
18353 2015-06-22 Tom de Vries <tom@codesourcery.com>
18354
18355 * dominance.c (calculate_dominance_info): Verify dominators if
18356 early-out.
18357
18358 2015-06-22 Marek Polacek <polacek@redhat.com>
18359
18360 * match.pd ((x ^ y) ^ (x | y) -> x & y,
18361 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
18362 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
18363 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
18364
18365 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
18366
18367 PR target/65871
18368 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
18369 cost of embedded comparison.
18370
18371 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18372
18373 PR target/65914
18374 * config/rs6000/predicates.md (altivec_register_operand): Permit
18375 virtual stack registers.
18376 (vsx_register_operand): Likewise.
18377 (vfloat_operand): Likewise.
18378 (vint_operand): Likewise.
18379 (vlogical_operand): Likewise.
18380
18381 2015-06-22 Richard Biener <rguenther@suse.de>
18382
18383 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
18384 and single_scalar_iteration_cost members.
18385 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
18386 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
18387 (vect_get_single_scalar_iteration_cost): Remove.
18388 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
18389 Use LOOP_VINFO_SCALAR_ITERATION_COST.
18390 * tree-vect-loop.c (destroy_loop_vec_info): Free
18391 scalar_cost_vec.
18392 (vect_get_single_scalar_iteration_cost): Compute result into
18393 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
18394 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
18395 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
18396 (vect_estimate_min_profitable_iters): Use them.
18397
18398 2015-06-22 Christian Bruel <christian.bruel@st.com>
18399
18400 PR target/52144
18401 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
18402 (TARGET_INSERT_ATTRIBUTES): Define.
18403 (thumb_flipper): New var.
18404 * config/arm/arm.opt (-mflip-thumb): New switch.
18405
18406 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
18407 Martin Liska <mliska@suse.cz>
18408
18409 PR ipa/65908
18410 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
18411 construction of arg_types.
18412 (sem_function::sem_function): Likewise.
18413 (sem_function::~sem_function): Remove destruction of arg_types.
18414 (sem_function::compatible_parm_types_p): New function.
18415 (sem_function::equals_wpa): Reorg matching of return values
18416 and parameter types.
18417 (sem_function::equals_private): Reorg mathcing of argument types.
18418 (sem_function::parse_tree_args): Remove.
18419 * ipa-icf.h (init_wpa): Do not call it.
18420 (parse_tree_args): Remove.
18421 (compatible_parm_types_p): Declare.
18422 (result_type): Remove.
18423 (arg_types): Remove.
18424
18425 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
18426
18427 PR ipa/66351
18428 * ipa-polymorphic-call.c
18429 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
18430 initializing alias oracle; fix formating; set base_alias_set if it
18431 is known.
18432
18433 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
18434
18435 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
18436 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
18437 (find_inc): Likewise.
18438 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
18439 swapping.
18440 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
18441 * df-scan.c (df_swap_refs): Remove.
18442 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
18443 * dominance.c (link_roots): Use std::swap instead of manually swapping.
18444 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
18445 * fold-const.c (fold_relational_const): Likewise.
18446 * genattrtab.c (simplify_test_exp): Likewise.
18447 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
18448 gimple_simplify): Likewise.
18449 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
18450 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
18451 * ipa-devirt.c (add_type_duplicate): Likewise.
18452 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
18453 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
18454 * lra.c (lra_create_copy): Likewise.
18455 * lto-streamer-out.c (DFS::DFS): Likewise.
18456 * modulo-sched.c (get_sched_window): Likewise.
18457 * omega.c (omega_pretty_print_problem): Likewise.
18458 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
18459 * reload1.c (reloads_unique_chain_p): Likewise.
18460 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
18461 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
18462 use std::swap.
18463 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
18464 manually swapping.
18465 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
18466 predicate_mem_writes): Likewise.
18467 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
18468 * tree-predcom.c (combine_chains): Likewise.
18469 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
18470 refs_may_alias_p_1): Likewise.
18471 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
18472 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18473 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
18474 number_of_iterations_cond): Likewise.
18475 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
18476 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
18477 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
18478 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
18479 * tree-vrp.c (extract_range_from_binary_expr_1,
18480 extract_range_from_unary_expr_1): Likewise.
18481
18482 2015-06-20 Marek Polacek <polacek@redhat.com>
18483
18484 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
18485
18486 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
18487
18488 PR target/66591
18489 * config/sh/sh.c (prepare_move_operands): Replace subreg
18490 index term with R0 for base and index addressing.
18491
18492 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
18493
18494 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
18495 op1 is an fp zero.
18496 (movsf_aarch64): Change condition from register_operand to
18497 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
18498 load1. Change type for alternative 7 to store1.
18499 (movdf_aarch64): Likewise.
18500
18501 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
18502
18503 * config/vax/vax.md: Adjust sign/zero extend patterns to
18504 handle SUBREGs in operands[1].
18505
18506 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18507
18508 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
18509 of manually swapping.
18510 (expand_vec_perm_interleave2): Likewise.
18511
18512 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
18513
18514 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
18515 reuse bounds created for abnormal ssa names.
18516
18517 2015-06-19 Jakub Jelinek <jakub@redhat.com>
18518
18519 * config/nvptx/nvptx.md (allocate_stack): Rename to...
18520 (allocate_stack_<mode>): ... this, and add :P on both
18521 match_operand and unspec.
18522 (allocate_stack): New expander.
18523
18524 2015-06-19 Christian Bruel <christian.bruel@st.com>
18525
18526 PR target/66541
18527 PR target/52144
18528 * config/arm/arm.c (arm_set_current_function): Handle
18529 explicit default options.
18530
18531 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
18532
18533 * config/i386/i386.md (*movsicc_noc_zext): New insn.
18534 (zero-extended cmove with mem peephole2): New pattern.
18535 (cmove with mem peephole2): Merge patterns.
18536
18537 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
18538
18539 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
18540
18541 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
18542
18543 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
18544 * config/mips/mips.md (*madd4<mode>): Ditto.
18545 (*nmadd3<mode>) Ditto.
18546 (*nmadd4<mode>_fastmath): Ditto.
18547 (*nmadd3<mode>_fastmath): Ditto.
18548 (*nmsub4<mode>): Ditto.
18549 (*nmsub3<mode>): Ditto.
18550 (*nmsub4<mode>_fastmath): Ditto.
18551 (*nmsub3<mode>_fastmath): Ditto.
18552
18553 2015-06-18 Michael Matz <matz@suse.de>
18554
18555 PR middle-end/66253
18556 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
18557 grouped strided stores.
18558 (vectorizable_load): Don't use the DR from first_stmt in
18559 the non-SLP grouped strided case.
18560
18561 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18562
18563 PR target/66569
18564 * function.c (assign_bounds): Add arguments assign_regs,
18565 assign_special, assign_bt.
18566 (assign_parms): For vararg functions handle bounds in BT
18567 and special slots after incoming vararg bounds.
18568
18569 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18570
18571 PR middle-end/66568
18572 * cfgexpand.c (expand_return): Handle missing bounds.
18573 (expand_gimple_stmt_1): Likewise.
18574 * tree-chkp.c (chkp_expand_zero_bounds): New.
18575 * tree-chkp.h (chkp_expand_zero_bounds): New.
18576
18577 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18578
18579 PR middle-end/66567
18580 * ipa-chkp.c (chkp_maybe_create_clone): Require
18581 functions to be instrumentable.
18582 * tree-chkp.c (chkp_replace_function_pointer): Use
18583 chkp_instrumentable_p instead of attribute check.
18584
18585 2015-06-18 Richard Biener <rguenther@suse.de>
18586
18587 PR tree-optimization/66510
18588 * tree-vect-stmts.c (vectorizable_load): Properly compute the
18589 number of vector loads for SLP permuted loads.
18590 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
18591 check the stride for loop vectorization.
18592 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
18593 vectorization factor.
18594 (vect_analyze_group_access): If the group size is not a power
18595 of two require a epilogue loop.
18596 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
18597 compute and optimizing and alias test pruning after final
18598 vectorization factor computation.
18599 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
18600 vector alignment.
18601 (vect_transform_slp_perm_load): Properly compute the original
18602 number of vector load stmts.
18603
18604 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
18605
18606 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
18607 "unlikely character , in @var" warning.
18608
18609 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
18610
18611 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
18612 (ix86_function_arg_advance): Ditto.
18613 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
18614
18615 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18616
18617 * function.h (struct rtl_data): Remove struct and accessor macros.
18618 * emit-rtl.h (struct rtl_data): Relocate to here.
18619 * Makefile.in (GTFILES): Add emit-rtl.h.
18620 * df-core.c: Include emit-rtl.h.
18621 * genattrtab.c: Likewise.
18622 * genconditions.c: Likewise.
18623 * genpreds.c: Likewise.
18624 * genrecog.c: Likewise.
18625 * regcprop.c: Likewise.
18626 * resource.c: Likewise.
18627 * sched-rgn.c: Likewise.
18628 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18629 * config/i386/winnt.c: Likewise.
18630
18631 2015-06-17 Jakub Jelinek <jakub@redhat.com>
18632
18633 PR middle-end/66429
18634 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
18635 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
18636 and has_force_vectorize_loops flags from cfun into
18637 child_cfun.
18638 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
18639 if simduid is non-NULL.
18640 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
18641 * passes.def (pass_simduid_cleanup): Add new pass after loop
18642 passes.
18643 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
18644 indirection from htab argument's type.
18645 (shrink_simd_arrays): New function.
18646 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
18647 Don't call adjust_simduid_builtins if there are no loops.
18648 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
18649 (pass_simduid_cleanup::execute): New method.
18650 (make_pass_simduid_cleanup): New function.
18651
18652 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
18653
18654 * tree-core.h (tree_target_option): Make opts field a pointer to a
18655 cl_target_option instead of an instance of the struct.
18656 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
18657 the structure.
18658 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
18659 TARGET_OPTION_NODE.
18660 (copy_node_stat): Allocate and copy struct cl_target_option.
18661
18662 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18663
18664 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
18665 Remove conditional exposure of prototypes.
18666 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
18667 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
18668 definitions in tree.h with functions.
18669 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
18670 anon_aggrname_p.
18671 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
18672
18673 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
18674
18675 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
18676 (*cmp<mode>_signed): ... this.
18677 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
18678 (*cmp<mode>_unsigned): ... this. Remove %b.
18679
18680 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18681
18682 * coretypes.h: Include input.h and as-a.h.
18683 * rtl.h: Include input.h and as-a.h for generator files.
18684 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
18685 * vec.c: Don't include diagnostic-core.h.
18686 * alias.c: Do not include input.h, line-map.h or is-a.h.
18687 * asan.c: Likewise.
18688 * attribs.c: Likewise.
18689 * auto-inc-dec.c: Likewise.
18690 * auto-profile.c: Likewise.
18691 * bb-reorder.c: Likewise.
18692 * bt-load.c: Likewise.
18693 * builtins.c: Likewise.
18694 * caller-save.c: Likewise.
18695 * calls.c: Likewise.
18696 * ccmp.c: Likewise.
18697 * cfg.c: Likewise.
18698 * cfganal.c: Likewise.
18699 * cfgbuild.c: Likewise.
18700 * cfgcleanup.c: Likewise.
18701 * cfgexpand.c: Likewise.
18702 * cfghooks.c: Likewise.
18703 * cfgloop.c: Likewise.
18704 * cfgloop.h: Likewise.
18705 * cfgloopanal.c: Likewise.
18706 * cfgloopmanip.c: Likewise.
18707 * cfgrtl.c: Likewise.
18708 * cgraph.c: Likewise.
18709 * cgraphbuild.c: Likewise.
18710 * cgraphclones.c: Likewise.
18711 * cgraphunit.c: Likewise.
18712 * cilk-common.c: Likewise.
18713 * combine-stack-adj.c: Likewise.
18714 * combine.c: Likewise.
18715 * compare-elim.c: Likewise.
18716 * convert.c: Likewise.
18717 * coverage.c: Likewise.
18718 * cppbuiltin.c: Likewise.
18719 * cprop.c: Likewise.
18720 * cse.c: Likewise.
18721 * cselib.c: Likewise.
18722 * data-streamer-in.c: Likewise.
18723 * data-streamer-out.c: Likewise.
18724 * data-streamer.c: Likewise.
18725 * dbxout.c: Likewise.
18726 * dce.c: Likewise.
18727 * ddg.c: Likewise.
18728 * debug.c: Likewise.
18729 * df-core.c: Likewise.
18730 * df-problems.c: Likewise.
18731 * df-scan.c: Likewise.
18732 * df.h: Likewise.
18733 * dfp.c: Likewise.
18734 * diagnostic-core.h: Likewise.
18735 * diagnostic.c: Likewise.
18736 * dojump.c: Likewise.
18737 * dominance.c: Likewise.
18738 * domwalk.c: Likewise.
18739 * double-int.c: Likewise.
18740 * dse.c: Likewise.
18741 * dumpfile.c: Likewise.
18742 * dumpfile.h: Likewise.
18743 * dwarf2asm.c: Likewise.
18744 * dwarf2cfi.c: Likewise.
18745 * dwarf2out.c: Likewise.
18746 * emit-rtl.c: Likewise.
18747 * et-forest.c: Likewise.
18748 * except.c: Likewise.
18749 * explow.c: Likewise.
18750 * expmed.c: Likewise.
18751 * expr.c: Likewise.
18752 * final.c: Likewise.
18753 * fixed-value.c: Likewise.
18754 * fold-const.c: Likewise.
18755 * function.c: Likewise.
18756 * fwprop.c: Likewise.
18757 * gcc-plugin.h: Likewise.
18758 * gcse.c: Likewise.
18759 * generic-match-head.c: Likewise.
18760 * ggc-page.c: Likewise.
18761 * gimple-builder.c: Likewise.
18762 * gimple-expr.c: Likewise.
18763 * gimple-fold.c: Likewise.
18764 * gimple-iterator.c: Likewise.
18765 * gimple-low.c: Likewise.
18766 * gimple-match-head.c: Likewise.
18767 * gimple-pretty-print.c: Likewise.
18768 * gimple-ssa-isolate-paths.c: Likewise.
18769 * gimple-ssa-strength-reduction.c: Likewise.
18770 * gimple-streamer-in.c: Likewise.
18771 * gimple-streamer-out.c: Likewise.
18772 * gimple-streamer.h: Likewise.
18773 * gimple-walk.c: Likewise.
18774 * gimple.c: Likewise.
18775 * gimplify-me.c: Likewise.
18776 * gimplify.c: Likewise.
18777 * godump.c: Likewise.
18778 * graph.c: Likewise.
18779 * graphite-blocking.c: Likewise.
18780 * graphite-dependences.c: Likewise.
18781 * graphite-interchange.c: Likewise.
18782 * graphite-isl-ast-to-gimple.c: Likewise.
18783 * graphite-optimize-isl.c: Likewise.
18784 * graphite-poly.c: Likewise.
18785 * graphite-scop-detection.c: Likewise.
18786 * graphite-sese-to-poly.c: Likewise.
18787 * graphite.c: Likewise.
18788 * haifa-sched.c: Likewise.
18789 * hw-doloop.c: Likewise.
18790 * ifcvt.c: Likewise.
18791 * init-regs.c: Likewise.
18792 * input.c: Likewise.
18793 * internal-fn.c: Likewise.
18794 * ipa-chkp.c: Likewise.
18795 * ipa-comdats.c: Likewise.
18796 * ipa-cp.c: Likewise.
18797 * ipa-devirt.c: Likewise.
18798 * ipa-icf-gimple.c: Likewise.
18799 * ipa-icf.c: Likewise.
18800 * ipa-inline-analysis.c: Likewise.
18801 * ipa-inline-transform.c: Likewise.
18802 * ipa-inline.c: Likewise.
18803 * ipa-polymorphic-call.c: Likewise.
18804 * ipa-profile.c: Likewise.
18805 * ipa-prop.c: Likewise.
18806 * ipa-pure-const.c: Likewise.
18807 * ipa-ref.c: Likewise.
18808 * ipa-reference.c: Likewise.
18809 * ipa-split.c: Likewise.
18810 * ipa-utils.c: Likewise.
18811 * ipa-visibility.c: Likewise.
18812 * ipa.c: Likewise.
18813 * ira-build.c: Likewise.
18814 * ira-color.c: Likewise.
18815 * ira-conflicts.c: Likewise.
18816 * ira-costs.c: Likewise.
18817 * ira-emit.c: Likewise.
18818 * ira-lives.c: Likewise.
18819 * ira.c: Likewise.
18820 * jump.c: Likewise.
18821 * langhooks.c: Likewise.
18822 * lcm.c: Likewise.
18823 * loop-doloop.c: Likewise.
18824 * loop-init.c: Likewise.
18825 * loop-invariant.c: Likewise.
18826 * loop-iv.c: Likewise.
18827 * loop-unroll.c: Likewise.
18828 * lower-subreg.c: Likewise.
18829 * lra-assigns.c: Likewise.
18830 * lra-coalesce.c: Likewise.
18831 * lra-constraints.c: Likewise.
18832 * lra-eliminations.c: Likewise.
18833 * lra-lives.c: Likewise.
18834 * lra-remat.c: Likewise.
18835 * lra-spills.c: Likewise.
18836 * lra.c: Likewise.
18837 * lto-cgraph.c: Likewise.
18838 * lto-compress.c: Likewise.
18839 * lto-opts.c: Likewise.
18840 * lto-section-in.c: Likewise.
18841 * lto-section-out.c: Likewise.
18842 * lto-streamer-in.c: Likewise.
18843 * lto-streamer-out.c: Likewise.
18844 * lto-streamer.c: Likewise.
18845 * mcf.c: Likewise.
18846 * mode-switching.c: Likewise.
18847 * modulo-sched.c: Likewise.
18848 * omega.c: Likewise.
18849 * omp-low.c: Likewise.
18850 * optabs.c: Likewise.
18851 * opts-global.c: Likewise.
18852 * opts.h: Likewise.
18853 * passes.c: Likewise.
18854 * plugin.c: Likewise.
18855 * postreload-gcse.c: Likewise.
18856 * postreload.c: Likewise.
18857 * predict.c: Likewise.
18858 * pretty-print.h: Likewise.
18859 * print-rtl.c: Likewise.
18860 * print-tree.c: Likewise.
18861 * profile.c: Likewise.
18862 * real.c: Likewise.
18863 * realmpfr.c: Likewise.
18864 * recog.c: Likewise.
18865 * ree.c: Likewise.
18866 * reg-stack.c: Likewise.
18867 * regcprop.c: Likewise.
18868 * reginfo.c: Likewise.
18869 * regrename.c: Likewise.
18870 * regstat.c: Likewise.
18871 * reload.c: Likewise.
18872 * reload1.c: Likewise.
18873 * reorg.c: Likewise.
18874 * resource.c: Likewise.
18875 * rtl-chkp.c: Likewise.
18876 * rtl-error.c: Likewise.
18877 * rtlanal.c: Likewise.
18878 * rtlhooks.c: Likewise.
18879 * sanopt.c: Likewise.
18880 * sched-deps.c: Likewise.
18881 * sched-ebb.c: Likewise.
18882 * sched-rgn.c: Likewise.
18883 * sched-vis.c: Likewise.
18884 * sdbout.c: Likewise.
18885 * sel-sched-dump.c: Likewise.
18886 * sel-sched-ir.c: Likewise.
18887 * sel-sched.c: Likewise.
18888 * sese.c: Likewise.
18889 * shrink-wrap.c: Likewise.
18890 * simplify-rtx.c: Likewise.
18891 * stack-ptr-mod.c: Likewise.
18892 * statistics.c: Likewise.
18893 * stmt.c: Likewise.
18894 * stor-layout.c: Likewise.
18895 * store-motion.c: Likewise.
18896 * streamer-hooks.c: Likewise.
18897 * stringpool.c: Likewise.
18898 * symtab.c: Likewise.
18899 * target-globals.c: Likewise.
18900 * targhooks.c: Likewise.
18901 * toplev.c: Likewise.
18902 * tracer.c: Likewise.
18903 * trans-mem.c: Likewise.
18904 * tree-affine.c: Likewise.
18905 * tree-browser.c: Likewise.
18906 * tree-call-cdce.c: Likewise.
18907 * tree-cfg.c: Likewise.
18908 * tree-cfgcleanup.c: Likewise.
18909 * tree-chkp-opt.c: Likewise.
18910 * tree-chkp.c: Likewise.
18911 * tree-chrec.c: Likewise.
18912 * tree-complex.c: Likewise.
18913 * tree-data-ref.c: Likewise.
18914 * tree-dfa.c: Likewise.
18915 * tree-diagnostic.c: Likewise.
18916 * tree-dump.c: Likewise.
18917 * tree-eh.c: Likewise.
18918 * tree-emutls.c: Likewise.
18919 * tree-if-conv.c: Likewise.
18920 * tree-inline.c: Likewise.
18921 * tree-into-ssa.c: Likewise.
18922 * tree-iterator.c: Likewise.
18923 * tree-loop-distribution.c: Likewise.
18924 * tree-nested.c: Likewise.
18925 * tree-nrv.c: Likewise.
18926 * tree-object-size.c: Likewise.
18927 * tree-outof-ssa.c: Likewise.
18928 * tree-parloops.c: Likewise.
18929 * tree-phinodes.c: Likewise.
18930 * tree-predcom.c: Likewise.
18931 * tree-pretty-print.c: Likewise.
18932 * tree-profile.c: Likewise.
18933 * tree-scalar-evolution.c: Likewise.
18934 * tree-sra.c: Likewise.
18935 * tree-ssa-address.c: Likewise.
18936 * tree-ssa-alias.c: Likewise.
18937 * tree-ssa-ccp.c: Likewise.
18938 * tree-ssa-coalesce.c: Likewise.
18939 * tree-ssa-copy.c: Likewise.
18940 * tree-ssa-copyrename.c: Likewise.
18941 * tree-ssa-dce.c: Likewise.
18942 * tree-ssa-dom.c: Likewise.
18943 * tree-ssa-dse.c: Likewise.
18944 * tree-ssa-forwprop.c: Likewise.
18945 * tree-ssa-ifcombine.c: Likewise.
18946 * tree-ssa-live.c: Likewise.
18947 * tree-ssa-loop-ch.c: Likewise.
18948 * tree-ssa-loop-im.c: Likewise.
18949 * tree-ssa-loop-ivcanon.c: Likewise.
18950 * tree-ssa-loop-ivopts.c: Likewise.
18951 * tree-ssa-loop-manip.c: Likewise.
18952 * tree-ssa-loop-niter.c: Likewise.
18953 * tree-ssa-loop-prefetch.c: Likewise.
18954 * tree-ssa-loop-unswitch.c: Likewise.
18955 * tree-ssa-loop.c: Likewise.
18956 * tree-ssa-math-opts.c: Likewise.
18957 * tree-ssa-operands.c: Likewise.
18958 * tree-ssa-phiopt.c: Likewise.
18959 * tree-ssa-phiprop.c: Likewise.
18960 * tree-ssa-pre.c: Likewise.
18961 * tree-ssa-propagate.c: Likewise.
18962 * tree-ssa-reassoc.c: Likewise.
18963 * tree-ssa-sccvn.c: Likewise.
18964 * tree-ssa-scopedtables.c: Likewise.
18965 * tree-ssa-sink.c: Likewise.
18966 * tree-ssa-strlen.c: Likewise.
18967 * tree-ssa-structalias.c: Likewise.
18968 * tree-ssa-tail-merge.c: Likewise.
18969 * tree-ssa-ter.c: Likewise.
18970 * tree-ssa-threadedge.c: Likewise.
18971 * tree-ssa-threadupdate.c: Likewise.
18972 * tree-ssa-uncprop.c: Likewise.
18973 * tree-ssa-uninit.c: Likewise.
18974 * tree-ssa.c: Likewise.
18975 * tree-ssanames.c: Likewise.
18976 * tree-stdarg.c: Likewise.
18977 * tree-streamer-in.c: Likewise.
18978 * tree-streamer-out.c: Likewise.
18979 * tree-streamer.c: Likewise.
18980 * tree-switch-conversion.c: Likewise.
18981 * tree-tailcall.c: Likewise.
18982 * tree-vect-data-refs.c: Likewise.
18983 * tree-vect-generic.c: Likewise.
18984 * tree-vect-loop-manip.c: Likewise.
18985 * tree-vect-loop.c: Likewise.
18986 * tree-vect-patterns.c: Likewise.
18987 * tree-vect-slp.c: Likewise.
18988 * tree-vect-stmts.c: Likewise.
18989 * tree-vectorizer.c: Likewise.
18990 * tree-vrp.c: Likewise.
18991 * tree.c: Likewise.
18992 * tsan.c: Likewise.
18993 * ubsan.c: Likewise.
18994 * valtrack.c: Likewise.
18995 * value-prof.c: Likewise.
18996 * var-tracking.c: Likewise.
18997 * varasm.c: Likewise.
18998 * varpool.c: Likewise.
18999 * vmsdbgout.c: Likewise.
19000 * vtable-verify.c: Likewise.
19001 * web.c: Likewise.
19002 * wide-int.cc: Likewise.
19003 * xcoffout.c: Likewise.
19004 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
19005 * common/common-targhooks.c: Likewise.
19006 * config/aarch64/aarch64-builtins.c: Likewise.
19007 * config/aarch64/aarch64.c: Likewise.
19008 * config/alpha/alpha.c: Likewise.
19009 * config/arc/arc.c: Likewise.
19010 * config/arm/aarch-common.c: Likewise.
19011 * config/arm/arm-builtins.c: Likewise.
19012 * config/arm/arm-c.c: Likewise.
19013 * config/arm/arm.c: Likewise.
19014 * config/avr/avr-c.c: Likewise.
19015 * config/avr/avr-log.c: Likewise.
19016 * config/avr/avr.c: Likewise.
19017 * config/bfin/bfin.c: Likewise.
19018 * config/c6x/c6x.c: Likewise.
19019 * config/cr16/cr16.c: Likewise.
19020 * config/cris/cris.c: Likewise.
19021 * config/darwin-c.c: Likewise.
19022 * config/darwin.c: Likewise.
19023 * config/default-c.c: Likewise.
19024 * config/epiphany/epiphany.c: Likewise.
19025 * config/epiphany/mode-switch-use.c: Likewise.
19026 * config/epiphany/resolve-sw-modes.c: Likewise.
19027 * config/fr30/fr30.c: Likewise.
19028 * config/frv/frv.c: Likewise.
19029 * config/ft32/ft32.c: Likewise.
19030 * config/glibc-c.c: Likewise.
19031 * config/h8300/h8300.c: Likewise.
19032 * config/i386/i386-c.c: Likewise.
19033 * config/i386/i386.c: Likewise.
19034 * config/i386/msformat-c.c: Likewise.
19035 * config/i386/winnt-cxx.c: Likewise.
19036 * config/i386/winnt-stubs.c: Likewise.
19037 * config/i386/winnt.c: Likewise.
19038 * config/ia64/ia64-c.c: Likewise.
19039 * config/ia64/ia64.c: Likewise.
19040 * config/iq2000/iq2000.c: Likewise.
19041 * config/lm32/lm32.c: Likewise.
19042 * config/m32c/m32c-pragma.c: Likewise.
19043 * config/m32c/m32c.c: Likewise.
19044 * config/m32r/m32r.c: Likewise.
19045 * config/m68k/m68k.c: Likewise.
19046 * config/mcore/mcore.c: Likewise.
19047 * config/mep/mep-pragma.c: Likewise.
19048 * config/mep/mep.c: Likewise.
19049 * config/microblaze/microblaze-c.c: Likewise.
19050 * config/microblaze/microblaze.c: Likewise.
19051 * config/mips/mips.c: Likewise.
19052 * config/mmix/mmix.c: Likewise.
19053 * config/mn10300/mn10300.c: Likewise.
19054 * config/moxie/moxie.c: Likewise.
19055 * config/msp430/msp430-c.c: Likewise.
19056 * config/msp430/msp430.c: Likewise.
19057 * config/nds32/nds32-cost.c: Likewise.
19058 * config/nds32/nds32-fp-as-gp.c: Likewise.
19059 * config/nds32/nds32-intrinsic.c: Likewise.
19060 * config/nds32/nds32-isr.c: Likewise.
19061 * config/nds32/nds32-md-auxiliary.c: Likewise.
19062 * config/nds32/nds32-memory-manipulation.c: Likewise.
19063 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19064 * config/nds32/nds32-predicates.c: Likewise.
19065 * config/nds32/nds32.c: Likewise.
19066 * config/nios2/nios2.c: Likewise.
19067 * config/nvptx/nvptx.c: Likewise.
19068 * config/pa/pa.c: Likewise.
19069 * config/pdp11/pdp11.c: Likewise.
19070 * config/rl78/rl78-c.c: Likewise.
19071 * config/rl78/rl78.c: Likewise.
19072 * config/rs6000/rs6000-c.c: Likewise.
19073 * config/rs6000/rs6000.c: Likewise.
19074 * config/rx/rx.c: Likewise.
19075 * config/s390/s390-c.c: Likewise.
19076 * config/s390/s390.c: Likewise.
19077 * config/sh/sh-c.c: Likewise.
19078 * config/sh/sh-mem.cc: Likewise.
19079 * config/sh/sh.c: Likewise.
19080 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19081 * config/sh/sh_treg_combine.cc: Likewise.
19082 * config/sol2-c.c: Likewise.
19083 * config/sol2-cxx.c: Likewise.
19084 * config/sol2-stubs.c: Likewise.
19085 * config/sol2.c: Likewise.
19086 * config/sparc/sparc-c.c: Likewise.
19087 * config/sparc/sparc.c: Likewise.
19088 * config/spu/spu-c.c: Likewise.
19089 * config/spu/spu.c: Likewise.
19090 * config/stormy16/stormy16.c: Likewise.
19091 * config/tilegx/mul-tables.c: Likewise.
19092 * config/tilegx/tilegx-c.c: Likewise.
19093 * config/tilegx/tilegx.c: Likewise.
19094 * config/tilepro/mul-tables.c: Likewise.
19095 * config/tilepro/tilepro-c.c: Likewise.
19096 * config/tilepro/tilepro.c: Likewise.
19097 * config/v850/v850-c.c: Likewise.
19098 * config/v850/v850.c: Likewise.
19099 * config/vax/vax.c: Likewise.
19100 * config/visium/visium.c: Likewise.
19101 * config/vms/vms-c.c: Likewise.
19102 * config/vms/vms.c: Likewise.
19103 * config/vxworks.c: Likewise.
19104 * config/winnt-c.c: Likewise.
19105 * config/xtensa/xtensa.c: Likewise.
19106
19107 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
19108
19109 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
19110 function.
19111 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
19112
19113 2015-06-17 Richard Biener <rguenther@suse.de>
19114
19115 PR tree-optimization/66251
19116 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
19117 stmts for SLP strided stores.
19118
19119 Revert
19120 2015-05-22 Richard Biener <rguenther@suse.de>
19121
19122 PR tree-optimization/66251
19123 * tree-vect-stmts.c (vectorizable_conversion): Properly
19124 set STMT_VINFO_VEC_STMT even for the SLP case.
19125
19126 2015-05-26 Michael Matz <matz@suse.de>
19127
19128 PR middle-end/66251
19129 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
19130 STMT_VINFO_VEC_STMT, also with SLP.
19131
19132 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
19133
19134 PR target/56766
19135 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
19136 (*avx_addsubv4df3_1s): Ditto.
19137 (*sse3_addsubv2df3_1): Ditto.
19138 (*sse3_addsubv2df3_1s): Ditto.
19139 (*avx_addsubv8sf3_1): Ditto.
19140 (*avx_addsubv8sf3_1s): Ditto.
19141 (*sse3_addsubv4sf3_1): Ditto.
19142 (*sse3_addsubv4sf3_1s): Ditto.
19143
19144 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
19145
19146 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
19147 (SYSROOT_SUFFIX_SPEC): Update.
19148 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
19149 (STARTFILE_PREFIX_SPEC): Update.
19150 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
19151 (MULTILIB_REQUIRED): New.
19152 (MULTILIB_OSDIRNAMES): New.
19153 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
19154 (MULTILIB_REQUIRED): New.
19155 (MULTILIB_OSDIRNAMES): New.
19156
19157 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
19158
19159 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
19160 * config/aarch64/aarch64-options-extensions.def: Update "fP",
19161 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
19162 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
19163 (AARCH64_FL_PAN): New.
19164 (AARCH64_FL_LOR): New.
19165 (AARCH64_FL_RDMA): New.
19166 (AARCH64_FL_FOR_ARCH8_1): New.
19167 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
19168 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
19169
19170 2015-06-16 Martin Liska <mliska@suse.cz>
19171
19172 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
19173 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
19174 guard.
19175
19176 2015-06-16 Richard Biener <rguenther@suse.de>
19177
19178 * tree-vect-stmts.c (vectorizable_store): Adjust.
19179 (vectorizable_load): Likewise.
19180 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19181 Simplify.
19182 (vect_create_data_ref_ptr): Likewise.
19183 (bump_vector_ptr): Adjust.
19184
19185 2015-06-16 Richard Biener <rguenther@suse.de>
19186
19187 * tree-vect-stmts.c (vectorizable_load): Properly start loads
19188 with the first element if this is grouped loads.
19189
19190 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
19191
19192 * config/arm/arm-protos.h (struct tune_params): Rename
19193 log_op_non_sc to log_op_non_short_circuit, and rename enum
19194 values to expand SC to SHORT_CIRCUIT.
19195 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
19196 to LOG_OP_NON_SHORT_CIRCUIT.
19197 (arm_fastmul_tune):Likewise
19198 (arm_strongarm_tune): Likewise.
19199 (arm_xscale_tune): Likewise.
19200 (arm_9e_tune): Likewise.
19201 (arm_marvell_pj4_tune): Likewise.
19202 (arm_v6t2_tune): Likewise.
19203 (arm_cortex_tune): Likewise.
19204 (arm_cortex_a8_tune): Likewise.
19205 (arm_cortex_a7_tune): Likewise.
19206 (arm_cortex_a15_tune): Likewise.
19207 (arm_cortex_a53_tune): Likewise.
19208 (arm_cortex_a57_tune): Likewise.
19209 (arm_xgene1_tune): Likewise.
19210 (arm_cortex_a5_tune): Likewise.
19211 (arm_cortex_a9_tune): Likewise.
19212 (arm_cortex_a12_tune): Likewise.
19213 (arm_v7m_tune): Likewise.
19214 (arm_cortex_m7_tune): Likewise.
19215 (arm_v6m_tune): Likewise.
19216 (arm_fa726te_tune): Likewise.
19217
19218 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
19219
19220 * altivec.md: Delete UNSPEC_VMLADDUHM.
19221 (mulv4si3_p8): New pattern.
19222 (mulv4si3): Use it for POWER8.
19223 (mulv8hi3): Use vmladduhm with zero addend.
19224 (altivec_vmladduhm): Descriptive RTL.
19225
19226 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
19227
19228 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
19229 to use neon_move instead of mov_imm.
19230 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
19231 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
19232
19233 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
19234 aarch64_float_const_zero_rtx_p check before TFmode check.
19235 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
19236 an fp zero.
19237 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
19238 code and attributes to match. Change condition from register_operand
19239 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
19240 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
19241 to store2.
19242
19243 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
19244
19245 PR debug/66535
19246 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
19247 there is no parent.
19248
19249 2015-06-14 Shiva Chen <shiva0217@gmail.com>
19250
19251 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
19252 HOST_WIDE_INT parameter.
19253
19254 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
19255
19256 PR ipa/66181
19257 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
19258 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
19259 TYPE_NO_FORCE_BLK.
19260 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
19261
19262 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
19263
19264 * rtl.h (classify_insn): Declare.
19265 * emit-rtl.c (classify_insn): Move to...
19266 * rtl.c: ...here and add generator support.
19267 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
19268 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
19269 * genemit.c (gen_emit_seq): New function.
19270 (gen_expand, gen_split): Use it.
19271
19272 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
19273
19274 * tree.c (make_vector_stat): Fix comment to state that the
19275 function returns a VECTOR_CST.
19276
19277 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
19278
19279 * gensupport.h (add_implicit_parallel): Declare.
19280 * genrecog.c (add_implicit_parallel): Move to...
19281 * gensupport.c (add_implicit_parallel): ...here.
19282 (process_one_cond_exec): Use it.
19283 * genemit.c (gen_insn): Likewise.
19284
19285 2015-06-13 Iain Sandoe <iain@codesourcery.com>
19286
19287 PR bootstrap/66448
19288 * passes.c (rest_of_decl_compilation): Do not register globals for
19289 early debug if they are declared in built-ins.
19290
19291 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
19292
19293 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
19294
19295 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19296
19297 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
19298 manually swapping.
19299 (noce_try_cmove_arith): Likewise.
19300 (noce_get_alt_condition): Likewise.
19301
19302 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19303
19304 * common/config/i386/i386-common.c
19305 (OPTION_MASK_ISA_MWAITX_SET): New.
19306 (ix86_handle_option): Handle mwaitx.
19307 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
19308 (x86_64-*-*): Likewise.
19309 * config/i386/mwaitxintrin.h: New header.
19310 * config/i386/cpuid.h (bit_MWAITX): Define.
19311 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19312 MWAITX support.
19313 * config/i386/i386.opt (mwaitx): New.
19314 * config/i386/i386-builtin-types.def
19315 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
19316 * config/i386/i386-c.c: Define __MWAITX__ if needed.
19317 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
19318 (PTA_MWAITX): New.
19319 (ix86_option_override_internal): Handle new option.
19320 (processor_alias_table): Added PTA_MWAITX.
19321 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
19322 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
19323 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
19324 IX86_BUILTIN_MONITORX built-ins.
19325 * config/i386/i386.h (TARGET_MWAITX): New.
19326 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
19327 UNSPEC_MONITORX.
19328 (mwaitx): New pattern.
19329 (monitorx_<mode>): New pattern.
19330 * config/i386/x86intrin.h: Include mwaitxintrin.h.
19331 * doc/extend.texi: Document monitorx and mwaitx builtins.
19332 * doc/invoke.texi: Document -mmwaitx option.
19333
19334 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
19335
19336 * emit-rtl.c (need_atomic_barrier_p): Mask model with
19337 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
19338
19339 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
19340
19341 * dbxout.c (xcoff_debug_hooks): Provide a function for
19342 register_main_translation_unit hook.
19343
19344 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
19345
19346 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
19347 variants cases from switch.
19348 (rs6000_post_atomic_barrier): Same.
19349 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
19350 (rs6000_expand_atomic_exchange): Same.
19351 (rs6000_expand_atomic_op): Same.
19352 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
19353 SYNC variants cases from switch.
19354 (atomic_load): Same.
19355 (atomic_store): Same.
19356
19357 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
19358
19359 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
19360 CONST_INT for goto.
19361
19362 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
19363
19364 PR bootstrap/66448
19365 * dwarf2out.c (check_die): Check for common duplicate attributes.
19366 (add_location_or_const_value_attribute): Do not add duplicate
19367 attributes.
19368 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
19369 time around.
19370 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
19371 (gen_type_die_with_usage): Call check_die.
19372 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
19373
19374 2015-06-11 Jason Merrill <jason@redhat.com>
19375
19376 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
19377 dies.
19378
19379 2015-06-11 Marek Polacek <polacek@redhat.com>
19380
19381 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
19382
19383 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
19384
19385 PR bootstrap/66252
19386 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
19387 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
19388 (*addx_extend_sp32): Fix pasto.
19389 (*subx_extend): Rename into...
19390 (*subx_extend_sp32): ...this.
19391 (*adddi3_extend_sp32): Add earlyclobber.
19392 (*subdi3_insn_sp32): Likewise.
19393 (*subdi3_extend_sp32): Likewise.
19394 (*and_not_di_sp32): Likewise.
19395 (*or_not_di_sp32): Likewise.
19396 (*xor_not_di_sp32): Likewise.
19397 (*negdi2_sp32): Likewise.
19398 (*one_cmpldi2_sp32): Likewise.
19399
19400 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
19401
19402 * debug.h (struct gcc_debug_hooks): Add a
19403 register_main_translation_unit hook.
19404 * debug.c (do_nothing_debug_hooks): Provide a function for this
19405 new hook.
19406 * dbxout.c (dbx_debug_hooks): Likewise.
19407 * sdbout.c (sdb_debug_hooks): Likewise.
19408 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19409 * dwarf2out.c (main_translation_unit): New global variable.
19410 (dwarf2out_register_main_translation_unit): New function
19411 implementing the new hook.
19412 (dwarf2_debug_hooks): Assign
19413 dwarf2out_register_main_translation_unit to this new hook.
19414 (dwarf2out_init): Associate any main translation unit to
19415 comp_unit_die ().
19416
19417 2015-06-11 Marek Polacek <polacek@redhat.com>
19418
19419 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
19420
19421 2015-06-11 Marek Polacek <polacek@redhat.com>
19422
19423 * match.pd: Use single_use throughout.
19424
19425 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19426
19427 * config/arm/arm.c (arm_option_params_internal): When optimising
19428 for speed set max_insns_skipped when arm_restrict_it.
19429
19430 2015-06-11 Christian Bruel <christian.bruel@st.com>
19431
19432 PR target/52144
19433 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
19434 macros in ...
19435 (arm_cpu_builtins): New function.
19436 (arm_pragma_target_parse): Call arm_cpu_builtins.
19437 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
19438 (arm_register_target_pragmas): Likewise.
19439 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
19440 Call arm_register_target_pragmas.
19441 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
19442 (arm_pragma_target_parse): Likewise.
19443
19444 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
19445
19446 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
19447 of the second operand.
19448
19449 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
19450
19451 PR target/66473
19452 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
19453 to prepare mask operand for AVX512 modes.
19454
19455 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
19456
19457 PR target/66474
19458 * doc/md.texi (Machine Constraints): Document that on the PowerPC
19459 if you use a constraint that targets a VSX register, you must use
19460 %x<n> in the template.
19461
19462 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
19463
19464 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
19465 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
19466 (define_insn "trap"): New definition.
19467
19468 2015-06-10 Richard Biener <rguenther@suse.de>
19469
19470 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
19471 out from ...
19472 (vect_supported_load_permutation_p): ... here. Handle
19473 supportable permutations in reductions.
19474 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
19475 for vectorizing strided group loads.
19476
19477 2015-06-10 Jakub Jelinek <jakub@redhat.com>
19478
19479 PR target/66470
19480 * config/i386/i386.c (ix86_split_long_move): For collisions
19481 involving direct tls segment refs, move the UNSPEC_TP possibly
19482 wrapped in ZERO_EXTEND out of the address for lea, to each of
19483 the memory loads.
19484
19485 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19486
19487 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
19488 dmb sy. Adjust tabs.
19489
19490 2015-06-10 Tom de Vries <tom@codesourcery.com>
19491
19492 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
19493
19494 2015-06-10 Martin Liska <mliska@suse.cz>
19495
19496 PR bootstrap/66471
19497 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
19498 all enum values in mem_alloc_origin.
19499 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
19500 name.
19501 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
19502 * bitmap.c (bitmap_register): Likewise.
19503 (dump_bitmap_statistics): Likewise.
19504 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
19505 (ggc_record_overhead): Likewise.
19506 * hash-map.h: Likewise.
19507 * hash-set.h: Likewise.
19508 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
19509 * hash-table.h: Likewise.
19510 * vec.c (vec_prefix::register_overhead): Likewise.
19511 (vec_prefix::release_overhead): Likewise.
19512 (dump_vec_loc_statistics): Likewise.
19513
19514 2015-06-09 Christian Bruel <christian.bruel@st.com>
19515
19516 PR target/52144
19517 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
19518 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
19519 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
19520 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
19521 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
19522 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
19523 (arm_valid_target_attribute_p): Likewise.
19524 (arm_set_current_function, arm_can_inline_p): Likewise.
19525 (arm_valid_target_attribute_rec): Likewise.
19526 (arm_previous_fndecl): New variable.
19527 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19528 (TARGET_CAN_INLINE_P): Define.
19529 (arm_asm_trampoline_template): Emit mode.
19530 (arm_file_start): Don't set unified syntax.
19531 (arm_declare_function_name): Set unified syntax and mode.
19532 (arm_option_override): Init target_option_default_node.
19533 and target_option_current_node.
19534 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
19535 (*call_symbol): Likewise.
19536 * doc/extend.texi: Document ARM/Thumb target attribute.
19537 * doc/invoke.texi: Likewise.
19538
19539 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19540
19541 Revert:
19542 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19543 PR rtl-optimization/64164
19544 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19545 * tree-ssa-copyrename.c: Removed.
19546 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19547 -ftree-coalesce-vars.
19548 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19549 * common.opt (ftree-copyrename): Ignore.
19550 (ftree-coalesce-inlined-vars): Likewise.
19551 * doc/invoke.texi: Remove the ignored options above.
19552 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19553 * tree-ssa-coalesce.h: ... here.
19554 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19555 headers required by it.
19556 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19557 across variables when flag_tree_coalesce_vars. Check register
19558 use and promoted modes to allow coalescing. Moved to
19559 tree-ssa-coalesce.c.
19560 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19561 with its member functions to tree-ssa-coalesce.c.
19562 (var_map_base_init): Likewise. Renamed to
19563 compute_samebase_partition_bases.
19564 (partition_view_normal): Drop want_bases parameter.
19565 (partition_view_bitmap): Likewise.
19566 * tree-ssa-live.h: Adjust declarations.
19567 * tree-ssa-coalesce.c: Include explow.h.
19568 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19569 default defs at the entry point.
19570 (dump_part_var_map): New.
19571 (compute_optimized_partition_bases): New, called by...
19572 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19573 of compute_samebase_partition_bases. Adjust.
19574 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19575 * cfgexpand.c (leader_merge): New.
19576 (get_rtl_for_parm_ssa_default_def): New.
19577 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19578 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19579 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19580 redundant MEM attr setting.
19581 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19582 from...
19583 (expand_one_stack_var): ... this. New wrapper to check and
19584 skip already expanded SSA partitions.
19585 (record_alignment_for_reg_var): New, factored out of...
19586 (expand_one_var): ... this.
19587 (expand_one_ssa_partition): New.
19588 (adjust_one_expanded_partition_var): New.
19589 (expand_one_register_var): Check and skip already expanded SSA
19590 partitions.
19591 (expand_used_vars): Don't create DECLs for anonymous SSA
19592 names. Expand all SSA partitions, then adjust all SSA names.
19593 (pass::execute): Replace the loops that set
19594 SA.partition_to_pseudo from partition leaders and cleared
19595 DECL_RTL for multi-location variables, and that which used to
19596 rename vars and set attrs, with one that clears DECL_RTL and
19597 checks that PARMs and RESULTs default_defs match DECL_RTL.
19598 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19599 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19600 * explow.c (promote_ssa_mode): New.
19601 * explow.h (promote_ssa_mode): Declare.
19602 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19603 * function.c: Include cfgexpand.h.
19604 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19605 (use_register_for_parm_decl): Wrapper for the above to
19606 special-case the result_ptr.
19607 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19608 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19609 multiple locations.
19610 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19611 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19612 (assign_parm_setup_block): Prefer SSA-assigned location.
19613 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19614 if stack_parm is NULL.
19615 (assign_parm_setup_stack): Prefer SSA-assigned location.
19616 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19617 rtl before testing for pointer bounds. Special-case result_ptr.
19618 (expand_function_start): Maybe reset DECL_RTL of result.
19619 Prefer SSA-assigned location for result and static chain.
19620 Factor out DECL_RESULT and SET_DECL_RTL.
19621 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19622 anonymous SSA names. Use promote_ssa_mode.
19623 (get_temp_reg): Likewise.
19624 (remove_ssa_form): Adjust.
19625 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19626 and get its reg_usage for reg invalidation.
19627 (compute_bb_dataflow): Pass it insn.
19628 (emit_notes_in_bb): Likewise.
19629 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19630 fail assert on conversion between unsigned types.
19631
19632 2015-06-09 Tom de Vries <tom@codesourcery.com>
19633
19634 PR tree-optimization/65460
19635 * omp-low.c (expand_omp_target): Set parallelized_function on
19636 cgraph_node for child_fn.
19637
19638 2015-06-09 Tom de Vries <tom@codesourcery.com>
19639
19640 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
19641 parallelized_function before add_new_function.
19642
19643 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
19644
19645 * gcc-plugin.h: Move decls to plugin.h and include it.
19646 * plugin.h: Relocate decls from gcc-plugin.h
19647 * ggc-page.c: Include required header files.
19648 * passes.c: Likewise.
19649 * cgraphunit.c: Likewise.
19650
19651 2015-06-09 Tom de Vries <tom@codesourcery.com>
19652
19653 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
19654
19655 2015-06-09 Jason Merrill <jason@redhat.com>
19656
19657 PR bootstrap/66448
19658 * toplev.c (check_global_declaration): Don't warn about a clone.
19659
19660 2015-06-09 Marek Polacek <polacek@redhat.com>
19661
19662 PR tree-optimization/66299
19663 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
19664 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
19665 patterns.
19666
19667 2015-06-09 Richard Biener <rguenther@suse.de>
19668
19669 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
19670 (vect_analyze_slp_instance): Instead do not falsely drop
19671 load permutations.
19672
19673 2015-06-09 Richard Biener <rguenther@suse.de>
19674
19675 PR middle-end/66423
19676 * match.pd: Handle A % (unsigned)(1 << B).
19677
19678 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
19679
19680 * varasm.c (output_object_block_htab): Remove.
19681 (output_object_block_compare): New.
19682 (output_object_blocks): Sort named object_blocks before outputting
19683 them.
19684
19685 2015-06-09 Richard Biener <rguenther@suse.de>
19686
19687 PR tree-optimization/66419
19688 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
19689 consider GROUP_GAP when detecting a perfect subchain.
19690
19691 2015-06-09 Nick Clifton <nickc@redhat.com>
19692
19693 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
19694 place read only data in the .frodata section.
19695
19696 2015-06-09 Shiva Chen <shiva0217@gmail.com>
19697
19698 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
19699 (atomic_store<mode>): Likewise.
19700
19701 2015-06-09 Richard Biener <rguenther@suse.de>
19702
19703 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
19704
19705 2015-06-09 Richard Biener <rguenther@suse.de>
19706
19707 PR middle-end/66413
19708 * tree-inline.c (insert_init_debug_bind): Unshare value.
19709
19710 2015-06-09 Richard Biener <rguenther@suse.de>
19711
19712 PR tree-optimization/66396
19713 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
19714 Rename virtual operands.
19715
19716 2015-06-09 Tom de Vries <tom@codesourcery.com>
19717
19718 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
19719 always return false.
19720
19721 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19722
19723 PR rtl-optimization/64164
19724 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19725 * tree-ssa-copyrename.c: Removed.
19726 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19727 -ftree-coalesce-vars.
19728 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19729 * common.opt (ftree-copyrename): Ignore.
19730 (ftree-coalesce-inlined-vars): Likewise.
19731 * doc/invoke.texi: Remove the ignored options above.
19732 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19733 * tree-ssa-coalesce.h: ... here.
19734 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19735 headers required by it.
19736 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19737 across variables when flag_tree_coalesce_vars. Check register
19738 use and promoted modes to allow coalescing. Moved to
19739 tree-ssa-coalesce.c.
19740 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19741 with its member functions to tree-ssa-coalesce.c.
19742 (var_map_base_init): Likewise. Renamed to
19743 compute_samebase_partition_bases.
19744 (partition_view_normal): Drop want_bases parameter.
19745 (partition_view_bitmap): Likewise.
19746 * tree-ssa-live.h: Adjust declarations.
19747 * tree-ssa-coalesce.c: Include explow.h.
19748 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19749 default defs at the entry point.
19750 (dump_part_var_map): New.
19751 (compute_optimized_partition_bases): New, called by...
19752 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19753 of compute_samebase_partition_bases. Adjust.
19754 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19755 * cfgexpand.c (leader_merge): New.
19756 (get_rtl_for_parm_ssa_default_def): New.
19757 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19758 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19759 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19760 redundant MEM attr setting.
19761 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19762 from...
19763 (expand_one_stack_var): ... this. New wrapper to check and
19764 skip already expanded SSA partitions.
19765 (record_alignment_for_reg_var): New, factored out of...
19766 (expand_one_var): ... this.
19767 (expand_one_ssa_partition): New.
19768 (adjust_one_expanded_partition_var): New.
19769 (expand_one_register_var): Check and skip already expanded SSA
19770 partitions.
19771 (expand_used_vars): Don't create DECLs for anonymous SSA
19772 names. Expand all SSA partitions, then adjust all SSA names.
19773 (pass::execute): Replace the loops that set
19774 SA.partition_to_pseudo from partition leaders and cleared
19775 DECL_RTL for multi-location variables, and that which used to
19776 rename vars and set attrs, with one that clears DECL_RTL and
19777 checks that PARMs and RESULTs default_defs match DECL_RTL.
19778 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19779 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19780 * explow.c (promote_ssa_mode): New.
19781 * explow.h (promote_ssa_mode): Declare.
19782 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19783 * function.c: Include cfgexpand.h.
19784 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19785 (use_register_for_parm_decl): Wrapper for the above to
19786 special-case the result_ptr.
19787 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19788 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19789 multiple locations.
19790 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19791 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19792 (assign_parm_setup_block): Prefer SSA-assigned location.
19793 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19794 if stack_parm is NULL.
19795 (assign_parm_setup_stack): Prefer SSA-assigned location.
19796 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19797 rtl before testing for pointer bounds. Special-case result_ptr.
19798 (expand_function_start): Maybe reset DECL_RTL of result.
19799 Prefer SSA-assigned location for result and static chain.
19800 Factor out DECL_RESULT and SET_DECL_RTL.
19801 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19802 anonymous SSA names. Use promote_ssa_mode.
19803 (get_temp_reg): Likewise.
19804 (remove_ssa_form): Adjust.
19805 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19806 and get its reg_usage for reg invalidation.
19807 (compute_bb_dataflow): Pass it insn.
19808 (emit_notes_in_bb): Likewise.
19809 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19810 fail assert on conversion between unsigned types.
19811
19812 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19813
19814 PR debug/58315
19815 * tree-inline.c (reset_debug_binding): New.
19816 (reset_debug_bindings): Likewise.
19817 (expand_call_inline): Call it.
19818
19819 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19820
19821 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
19822 TYPE_STRING_FLAG.
19823
19824 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19825
19826 * lto-streamer-out.c (lto_output_location): Stream
19827 reserved locations correctly.
19828 * lto-streamer-in.c (lto_output_location): Likewise.
19829
19830 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
19831
19832 * coretypes.h: Include hash-table.h and hash-set.h for host files.
19833 * ggc.h: Don't include statistics.h>
19834 * hash-map.h: Remove all includes.
19835 * hash-set.h: Likewise.
19836 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
19837 the include list. Remove <new>.
19838 * inchash.h: Remove all includes.
19839 * mem-stats.h: Likewise.
19840 * vec.h: No special processing for generators or ggc.
19841 * alias.c : Adjust include files.
19842 * alloc-pool.c : Likewise.
19843 * alloc-pool.h : Likewise.
19844 * asan.c : Likewise.
19845 * attribs.c : Likewise.
19846 * auto-inc-dec.c : Likewise.
19847 * auto-profile.c : Likewise.
19848 * bb-reorder.c : Likewise.
19849 * bitmap.c : Likewise.
19850 * bitmap.h : Likewise.
19851 * bt-load.c : Likewise.
19852 * builtins.c : Likewise.
19853 * caller-save.c : Likewise.
19854 * calls.c : Likewise.
19855 * ccmp.c : Likewise.
19856 * cfg.c : Likewise.
19857 * cfganal.c : Likewise.
19858 * cfgbuild.c : Likewise.
19859 * cfgcleanup.c : Likewise.
19860 * cfgexpand.c : Likewise.
19861 * cfghooks.c : Likewise.
19862 * cfgloop.c : Likewise.
19863 * cfgloop.h : Likewise.
19864 * cfgloopanal.c : Likewise.
19865 * cfgloopmanip.c : Likewise.
19866 * cfgrtl.c : Likewise.
19867 * cgraph.c : Likewise.
19868 * cgraphbuild.c : Likewise.
19869 * cgraphclones.c : Likewise.
19870 * cgraphunit.c : Likewise.
19871 * cilk-common.c : Likewise.
19872 * combine-stack-adj.c : Likewise.
19873 * combine.c : Likewise.
19874 * compare-elim.c : Likewise.
19875 * context.c : Likewise.
19876 * convert.c : Likewise.
19877 * coverage.c : Likewise.
19878 * cppbuiltin.c : Likewise.
19879 * cprop.c : Likewise.
19880 * cse.c : Likewise.
19881 * cselib.c : Likewise.
19882 * data-streamer-in.c : Likewise.
19883 * data-streamer-out.c : Likewise.
19884 * data-streamer.c : Likewise.
19885 * data-streamer.h : Likewise.
19886 * dbxout.c : Likewise.
19887 * dce.c : Likewise.
19888 * ddg.c : Likewise.
19889 * debug.c : Likewise.
19890 * df-core.c : Likewise.
19891 * df-problems.c : Likewise.
19892 * df-scan.c : Likewise.
19893 * df.h : Likewise.
19894 * dfp.c : Likewise.
19895 * dojump.c : Likewise.
19896 * dominance.c : Likewise.
19897 * domwalk.c : Likewise.
19898 * double-int.c : Likewise.
19899 * dse.c : Likewise.
19900 * dumpfile.c : Likewise.
19901 * dwarf2asm.c : Likewise.
19902 * dwarf2cfi.c : Likewise.
19903 * dwarf2out.c : Likewise.
19904 * emit-rtl.c : Likewise.
19905 * et-forest.c : Likewise.
19906 * except.c : Likewise.
19907 * except.h : Likewise.
19908 * explow.c : Likewise.
19909 * expmed.c : Likewise.
19910 * expr.c : Likewise.
19911 * final.c : Likewise.
19912 * fixed-value.c : Likewise.
19913 * fold-const.c : Likewise.
19914 * function.c : Likewise.
19915 * fwprop.c : Likewise.
19916 * gcc-plugin.h : Likewise.
19917 * gcc.c : Likewise.
19918 * gcse-common.c : Likewise.
19919 * gcse.c : Likewise.
19920 * genattrtab.c : Likewise.
19921 * genautomata.c : Likewise.
19922 * genconditions.c : Likewise.
19923 * genemit.c : Likewise.
19924 * generic-match-head.c : Likewise.
19925 * genextract.c : Likewise.
19926 * gengtype-state.c : Likewise.
19927 * gengtype.c : Likewise.
19928 * genhooks.c : Likewise.
19929 * genmatch.c : Likewise.
19930 * genmodes.c : Likewise.
19931 * genrecog.c : Likewise.
19932 * gensupport.c : Likewise.
19933 * ggc-common.c : Likewise.
19934 * ggc-internal.h : Likewise.
19935 * ggc-none.c : Likewise.
19936 * ggc-page.c : Likewise.
19937 * gimple-builder.c : Likewise.
19938 * gimple-expr.c : Likewise.
19939 * gimple-fold.c : Likewise.
19940 * gimple-iterator.c : Likewise.
19941 * gimple-low.c : Likewise.
19942 * gimple-match-head.c : Likewise.
19943 * gimple-pretty-print.c : Likewise.
19944 * gimple-ssa-isolate-paths.c : Likewise.
19945 * gimple-ssa-strength-reduction.c : Likewise.
19946 * gimple-ssa.h : Likewise.
19947 * gimple-streamer-in.c : Likewise.
19948 * gimple-streamer-out.c : Likewise.
19949 * gimple-streamer.h : Likewise.
19950 * gimple-walk.c : Likewise.
19951 * gimple.c : Likewise.
19952 * gimplify-me.c : Likewise.
19953 * gimplify.c : Likewise.
19954 * godump.c : Likewise.
19955 * graph.c : Likewise.
19956 * graphds.c : Likewise.
19957 * graphite-blocking.c : Likewise.
19958 * graphite-dependences.c : Likewise.
19959 * graphite-interchange.c : Likewise.
19960 * graphite-isl-ast-to-gimple.c : Likewise.
19961 * graphite-optimize-isl.c : Likewise.
19962 * graphite-poly.c : Likewise.
19963 * graphite-scop-detection.c : Likewise.
19964 * graphite-sese-to-poly.c : Likewise.
19965 * graphite.c : Likewise.
19966 * haifa-sched.c : Likewise.
19967 * hard-reg-set.h : Likewise.
19968 * hw-doloop.c : Likewise.
19969 * ifcvt.c : Likewise.
19970 * inchash.c : Likewise.
19971 * incpath.c : Likewise.
19972 * init-regs.c : Likewise.
19973 * input.c : Likewise.
19974 * internal-fn.c : Likewise.
19975 * ipa-chkp.c : Likewise.
19976 * ipa-comdats.c : Likewise.
19977 * ipa-cp.c : Likewise.
19978 * ipa-devirt.c : Likewise.
19979 * ipa-icf-gimple.c : Likewise.
19980 * ipa-icf.c : Likewise.
19981 * ipa-inline-analysis.c : Likewise.
19982 * ipa-inline-transform.c : Likewise.
19983 * ipa-inline.c : Likewise.
19984 * ipa-polymorphic-call.c : Likewise.
19985 * ipa-profile.c : Likewise.
19986 * ipa-prop.c : Likewise.
19987 * ipa-pure-const.c : Likewise.
19988 * ipa-ref.c : Likewise.
19989 * ipa-reference.c : Likewise.
19990 * ipa-split.c : Likewise.
19991 * ipa-utils.c : Likewise.
19992 * ipa-visibility.c : Likewise.
19993 * ipa.c : Likewise.
19994 * ira-build.c : Likewise.
19995 * ira-color.c : Likewise.
19996 * ira-conflicts.c : Likewise.
19997 * ira-costs.c : Likewise.
19998 * ira-emit.c : Likewise.
19999 * ira-lives.c : Likewise.
20000 * ira.c : Likewise.
20001 * jump.c : Likewise.
20002 * langhooks.c : Likewise.
20003 * lcm.c : Likewise.
20004 * libfuncs.h : Likewise.
20005 * lists.c : Likewise.
20006 * loop-doloop.c : Likewise.
20007 * loop-init.c : Likewise.
20008 * loop-invariant.c : Likewise.
20009 * loop-iv.c : Likewise.
20010 * loop-unroll.c : Likewise.
20011 * lower-subreg.c : Likewise.
20012 * lra-assigns.c : Likewise.
20013 * lra-coalesce.c : Likewise.
20014 * lra-constraints.c : Likewise.
20015 * lra-eliminations.c : Likewise.
20016 * lra-lives.c : Likewise.
20017 * lra-remat.c : Likewise.
20018 * lra-spills.c : Likewise.
20019 * lra.c : Likewise.
20020 * lto-cgraph.c : Likewise.
20021 * lto-compress.c : Likewise.
20022 * lto-opts.c : Likewise.
20023 * lto-section-in.c : Likewise.
20024 * lto-section-out.c : Likewise.
20025 * lto-streamer-in.c : Likewise.
20026 * lto-streamer-out.c : Likewise.
20027 * lto-streamer.c : Likewise.
20028 * lto-streamer.h : Likewise.
20029 * mcf.c : Likewise.
20030 * mode-switching.c : Likewise.
20031 * modulo-sched.c : Likewise.
20032 * omega.c : Likewise.
20033 * omp-low.c : Likewise.
20034 * optabs.c : Likewise.
20035 * opts-global.c : Likewise.
20036 * opts.h : Likewise.
20037 * passes.c : Likewise.
20038 * plugin.c : Likewise.
20039 * postreload-gcse.c : Likewise.
20040 * postreload.c : Likewise.
20041 * predict.c : Likewise.
20042 * print-rtl.c : Likewise.
20043 * print-tree.c : Likewise.
20044 * profile.c : Likewise.
20045 * read-md.c : Likewise.
20046 * read-md.h : Likewise.
20047 * read-rtl.c : Likewise.
20048 * real.c : Likewise.
20049 * realmpfr.c : Likewise.
20050 * recog.c : Likewise.
20051 * ree.c : Likewise.
20052 * reg-stack.c : Likewise.
20053 * regcprop.c : Likewise.
20054 * reginfo.c : Likewise.
20055 * regrename.c : Likewise.
20056 * regstat.c : Likewise.
20057 * reload.c : Likewise.
20058 * reload1.c : Likewise.
20059 * reorg.c : Likewise.
20060 * resource.c : Likewise.
20061 * rtl-chkp.c : Likewise.
20062 * rtl.c : Likewise.
20063 * rtl.h : Likewise.
20064 * rtlanal.c : Likewise.
20065 * rtlhash.c : Likewise.
20066 * rtlhash.h : Likewise.
20067 * rtlhooks.c : Likewise.
20068 * sanopt.c : Likewise.
20069 * sched-deps.c : Likewise.
20070 * sched-ebb.c : Likewise.
20071 * sched-rgn.c : Likewise.
20072 * sched-vis.c : Likewise.
20073 * sdbout.c : Likewise.
20074 * sel-sched-dump.c : Likewise.
20075 * sel-sched-ir.c : Likewise.
20076 * sel-sched-ir.h : Likewise.
20077 * sel-sched.c : Likewise.
20078 * sese.c : Likewise.
20079 * shrink-wrap.c : Likewise.
20080 * shrink-wrap.h : Likewise.
20081 * simplify-rtx.c : Likewise.
20082 * stack-ptr-mod.c : Likewise.
20083 * statistics.c : Likewise.
20084 * stmt.c : Likewise.
20085 * stor-layout.c : Likewise.
20086 * store-motion.c : Likewise.
20087 * stringpool.c : Likewise.
20088 * symtab.c : Likewise.
20089 * target-globals.c : Likewise.
20090 * targhooks.c : Likewise.
20091 * tlink.c : Likewise.
20092 * toplev.c : Likewise.
20093 * tracer.c : Likewise.
20094 * trans-mem.c : Likewise.
20095 * tree-affine.c : Likewise.
20096 * tree-affine.h : Likewise.
20097 * tree-browser.c : Likewise.
20098 * tree-call-cdce.c : Likewise.
20099 * tree-cfg.c : Likewise.
20100 * tree-cfgcleanup.c : Likewise.
20101 * tree-chkp-opt.c : Likewise.
20102 * tree-chkp.c : Likewise.
20103 * tree-chrec.c : Likewise.
20104 * tree-complex.c : Likewise.
20105 * tree-data-ref.c : Likewise.
20106 * tree-dfa.c : Likewise.
20107 * tree-diagnostic.c : Likewise.
20108 * tree-dump.c : Likewise.
20109 * tree-eh.c : Likewise.
20110 * tree-eh.h : Likewise.
20111 * tree-emutls.c : Likewise.
20112 * tree-hasher.h : Likewise.
20113 * tree-if-conv.c : Likewise.
20114 * tree-inline.c : Likewise.
20115 * tree-inline.h : Likewise.
20116 * tree-into-ssa.c : Likewise.
20117 * tree-iterator.c : Likewise.
20118 * tree-loop-distribution.c : Likewise.
20119 * tree-nested.c : Likewise.
20120 * tree-nrv.c : Likewise.
20121 * tree-object-size.c : Likewise.
20122 * tree-outof-ssa.c : Likewise.
20123 * tree-parloops.c : Likewise.
20124 * tree-phinodes.c : Likewise.
20125 * tree-predcom.c : Likewise.
20126 * tree-pretty-print.c : Likewise.
20127 * tree-profile.c : Likewise.
20128 * tree-scalar-evolution.c : Likewise.
20129 * tree-sra.c : Likewise.
20130 * tree-ssa-address.c : Likewise.
20131 * tree-ssa-alias.c : Likewise.
20132 * tree-ssa-ccp.c : Likewise.
20133 * tree-ssa-coalesce.c : Likewise.
20134 * tree-ssa-copy.c : Likewise.
20135 * tree-ssa-copyrename.c : Likewise.
20136 * tree-ssa-dce.c : Likewise.
20137 * tree-ssa-dom.c : Likewise.
20138 * tree-ssa-dse.c : Likewise.
20139 * tree-ssa-forwprop.c : Likewise.
20140 * tree-ssa-ifcombine.c : Likewise.
20141 * tree-ssa-live.c : Likewise.
20142 * tree-ssa-loop-ch.c : Likewise.
20143 * tree-ssa-loop-im.c : Likewise.
20144 * tree-ssa-loop-ivcanon.c : Likewise.
20145 * tree-ssa-loop-ivopts.c : Likewise.
20146 * tree-ssa-loop-manip.c : Likewise.
20147 * tree-ssa-loop-niter.c : Likewise.
20148 * tree-ssa-loop-prefetch.c : Likewise.
20149 * tree-ssa-loop-unswitch.c : Likewise.
20150 * tree-ssa-loop.c : Likewise.
20151 * tree-ssa-math-opts.c : Likewise.
20152 * tree-ssa-operands.c : Likewise.
20153 * tree-ssa-phiopt.c : Likewise.
20154 * tree-ssa-phiprop.c : Likewise.
20155 * tree-ssa-pre.c : Likewise.
20156 * tree-ssa-propagate.c : Likewise.
20157 * tree-ssa-reassoc.c : Likewise.
20158 * tree-ssa-sccvn.c : Likewise.
20159 * tree-ssa-scopedtables.c : Likewise.
20160 * tree-ssa-sink.c : Likewise.
20161 * tree-ssa-strlen.c : Likewise.
20162 * tree-ssa-structalias.c : Likewise.
20163 * tree-ssa-tail-merge.c : Likewise.
20164 * tree-ssa-ter.c : Likewise.
20165 * tree-ssa-threadedge.c : Likewise.
20166 * tree-ssa-threadupdate.c : Likewise.
20167 * tree-ssa-uncprop.c : Likewise.
20168 * tree-ssa-uninit.c : Likewise.
20169 * tree-ssa.c : Likewise.
20170 * tree-ssanames.c : Likewise.
20171 * tree-stdarg.c : Likewise.
20172 * tree-streamer-in.c : Likewise.
20173 * tree-streamer-out.c : Likewise.
20174 * tree-streamer.c : Likewise.
20175 * tree-streamer.h : Likewise.
20176 * tree-switch-conversion.c : Likewise.
20177 * tree-tailcall.c : Likewise.
20178 * tree-vect-data-refs.c : Likewise.
20179 * tree-vect-generic.c : Likewise.
20180 * tree-vect-loop-manip.c : Likewise.
20181 * tree-vect-loop.c : Likewise.
20182 * tree-vect-patterns.c : Likewise.
20183 * tree-vect-slp.c : Likewise.
20184 * tree-vect-stmts.c : Likewise.
20185 * tree-vectorizer.c : Likewise.
20186 * tree-vectorizer.h : Likewise.
20187 * tree-vrp.c : Likewise.
20188 * tree.c : Likewise.
20189 * tsan.c : Likewise.
20190 * ubsan.c : Likewise.
20191 * valtrack.c : Likewise.
20192 * valtrack.h : Likewise.
20193 * value-prof.c : Likewise.
20194 * var-tracking.c : Likewise.
20195 * varasm.c : Likewise.
20196 * varpool.c : Likewise.
20197 * vec.c: Likewise.
20198 * vmsdbgout.c : Likewise.
20199 * vtable-verify.c : Likewise.
20200 * vtable-verify.h : Likewise.
20201 * web.c : Likewise.
20202 * wide-int.cc : Likewise.
20203 * xcoffout.c : Likewise.
20204 * config/aarch64/aarch64-builtins.c : Likewise.
20205 * config/aarch64/aarch64.c : Likewise.
20206 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
20207 * config/alpha/alpha.c : Likewise.
20208 * config/arc/arc.c : Likewise.
20209 * config/arm/aarch-common.c : Likewise.
20210 * config/arm/arm-builtins.c : Likewise.
20211 * config/arm/arm-c.c : Likewise.
20212 * config/arm/arm.c : Likewise.
20213 * config/avr/avr-c.c : Likewise.
20214 * config/avr/avr-log.c : Likewise.
20215 * config/avr/avr.c : Likewise.
20216 * config/bfin/bfin.c : Likewise.
20217 * config/c6x/c6x.c : Likewise.
20218 * config/cr16/cr16.c : Likewise.
20219 * config/cris/cris.c : Likewise.
20220 * config/darwin-c.c : Likewise.
20221 * config/darwin.c : Likewise.
20222 * config/default-c.c : Likewise.
20223 * config/epiphany/epiphany.c : Likewise.
20224 * config/epiphany/mode-switch-use.c : Likewise.
20225 * config/epiphany/resolve-sw-modes.c : Likewise.
20226 * config/fr30/fr30.c : Likewise.
20227 * config/frv/frv.c : Likewise.
20228 * config/ft32/ft32.c : Likewise.
20229 * config/glibc-c.c : Likewise.
20230 * config/h8300/h8300.c : Likewise.
20231 * config/i386/i386-c.c : Likewise.
20232 * config/i386/i386.c : Likewise.
20233 * config/i386/msformat-c.c : Likewise.
20234 * config/i386/winnt-cxx.c : Likewise.
20235 * config/i386/winnt-stubs.c : Likewise.
20236 * config/i386/winnt.c : Likewise.
20237 * config/ia64/ia64-c.c : Likewise.
20238 * config/ia64/ia64.c : Likewise.
20239 * config/iq2000/iq2000.c : Likewise.
20240 * config/lm32/lm32.c : Likewise.
20241 * config/m32c/m32c-pragma.c : Likewise.
20242 * config/m32c/m32c.c : Likewise.
20243 * config/m32r/m32r.c : Likewise.
20244 * config/m68k/m68k.c : Likewise.
20245 * config/mcore/mcore.c : Likewise.
20246 * config/mep/mep-pragma.c : Likewise.
20247 * config/mep/mep.c : Likewise.
20248 * config/microblaze/microblaze-c.c : Likewise.
20249 * config/microblaze/microblaze.c : Likewise.
20250 * config/mips/mips.c : Likewise.
20251 * config/mmix/mmix.c : Likewise.
20252 * config/mn10300/mn10300.c : Likewise.
20253 * config/moxie/moxie.c : Likewise.
20254 * config/msp430/msp430-c.c : Likewise.
20255 * config/msp430/msp430.c : Likewise.
20256 * config/nds32/nds32-cost.c : Likewise.
20257 * config/nds32/nds32-fp-as-gp.c : Likewise.
20258 * config/nds32/nds32-intrinsic.c : Likewise.
20259 * config/nds32/nds32-isr.c : Likewise.
20260 * config/nds32/nds32-md-auxiliary.c : Likewise.
20261 * config/nds32/nds32-memory-manipulation.c : Likewise.
20262 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
20263 * config/nds32/nds32-predicates.c : Likewise.
20264 * config/nds32/nds32.c : Likewise.
20265 * config/nios2/nios2.c : Likewise.
20266 * config/nvptx/nvptx.c : Likewise.
20267 * config/pa/pa.c : Likewise.
20268 * config/pdp11/pdp11.c : Likewise.
20269 * config/rl78/rl78-c.c : Likewise.
20270 * config/rl78/rl78.c : Likewise.
20271 * config/rs6000/rs6000-c.c : Likewise.
20272 * config/rs6000/rs6000.c : Likewise.
20273 * config/rx/rx.c : Likewise.
20274 * config/s390/s390-c.c : Likewise.
20275 * config/s390/s390.c : Likewise.
20276 * config/sh/sh-c.c : Likewise.
20277 * config/sh/sh-mem.cc : Likewise.
20278 * config/sh/sh.c : Likewise.
20279 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
20280 * config/sh/sh_treg_combine.cc : Likewise.
20281 * config/sol2-c.c : Likewise.
20282 * config/sol2-cxx.c : Likewise.
20283 * config/sol2-stubs.c : Likewise.
20284 * config/sol2.c : Likewise.
20285 * config/sparc/sparc-c.c : Likewise.
20286 * config/sparc/sparc.c : Likewise.
20287 * config/spu/spu-c.c : Likewise.
20288 * config/spu/spu.c : Likewise.
20289 * config/stormy16/stormy16.c : Likewise.
20290 * config/tilegx/mul-tables.c : Likewise.
20291 * config/tilegx/tilegx-c.c : Likewise.
20292 * config/tilegx/tilegx.c : Likewise.
20293 * config/tilepro/mul-tables.c : Likewise.
20294 * config/tilepro/tilepro-c.c : Likewise.
20295 * config/tilepro/tilepro.c : Likewise.
20296 * config/v850/v850-c.c : Likewise.
20297 * config/v850/v850.c : Likewise.
20298 * config/vax/vax.c : Likewise.
20299 * config/visium/visium.c : Likewise.
20300 * config/vms/vms-c.c : Likewise.
20301 * config/vms/vms.c : Likewise.
20302 * config/vxworks.c : Likewise.
20303 * config/winnt-c.c : Likewise.
20304 * config/xtensa/xtensa.c : Likewise.
20305
20306 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
20307
20308 PR lto/65378
20309 * ipa-utils.h (warn_types_mismatch): Update prototype.
20310 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
20311 parameters.
20312 (type_mismatch_p): New function.
20313 (warn_types_mismatch): Reorg to work better on non-C++ types.
20314 (odr_types_equivalent_p): Add loc1/loc2 parameters.
20315 (add_type_duplicate): Update.
20316
20317 2015-06-08 Tom de Vries <tom@codesourcery.com>
20318
20319 PR rtl-optimization/66444
20320 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
20321 call_used_regs.
20322
20323 2015-06-08 Richard Biener <rguenther@suse.de>
20324
20325 PR tree-optimization/66422
20326 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
20327 block after inserted gcc_unreachable.
20328
20329 2015-06-08 Nick Clifton <nickc@redhat.com>
20330
20331 * config/rx/rx.c (rx_function_value): Do not promote vector types.
20332 (rx_promote_function_mode): Likewise.
20333 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
20334
20335 2015-06-08 Jakub Jelinek <jakub@redhat.com>
20336
20337 * genattrtab.c (insn_alternatives): Change type from int *
20338 to uint64_t *.
20339 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
20340 (get_attr_value): Change type of num_alt to uint64_t.
20341 (compute_alternative_mask): Change return type from
20342 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
20343 (make_alternative_compare, mk_attr_alt): Change argument type
20344 from int to uint64_t.
20345 (simplify_test_exp): Change type of i from int to uint64_t.
20346 Shift ((uint64_t) 1) instead of 1 up.
20347 (main): Adjust oballocvec first argument from int to uint64_t.
20348 Shift ((uint64_t) 1) instead of 1 up.
20349
20350 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
20351
20352 PR other/65366
20353 * gdbhooks.py: Import sys.
20354 (intptr): New function. Replace int(...) by intptr(...).
20355
20356 2015-06-08 Richard Biener <rguenther@suse.de>
20357
20358 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
20359 adjustment for gaps at the end of a SLP load group properly.
20360 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
20361 all permutations we can generate.
20362 (vect_transform_slp_perm_load): Use the correct group-size.
20363
20364 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
20365
20366 * genmatch.c (expr::gen_transform): For conditions, guess the type
20367 from the second operand.
20368
20369 2015-06-08 Tom de Vries <tom@codesourcery.com>
20370
20371 PR tree-optimization/66442
20372 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
20373 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
20374 if the loop latch is not a singleton. Use
20375 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
20376
20377 2015-06-08 Marek Polacek <polacek@redhat.com>
20378
20379 PR sanitizer/66452
20380 * toplev.c (check_global_declaration): Don't warn about artificial
20381 decls.
20382
20383 2015-06-08 Tom de Vries <tom@codesourcery.com>
20384
20385 PR tree-optimization/66436
20386 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
20387 dump file.
20388 * gimplify.c: Add tree-dump.h include.
20389 (gimplify_function_tree): Dump function to gimple dump file.
20390 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
20391 dump file.
20392
20393 2015-06-08 Tom de Vries <tom@codesourcery.com>
20394
20395 PR tree-optimization/66435
20396 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
20397 function.
20398
20399 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
20400
20401 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
20402 of ptr_type_node to not be ptr_to_node.
20403 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
20404 TREE_TYPE of pointers.
20405 * gimple-expr.c (useless_type_conversion): Reorder the check for
20406 function pointers and TYPE_CANONICAL.
20407
20408 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
20409
20410 PR bootstrap/66319
20411 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
20412 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
20413 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
20414 later.
20415 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
20416 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
20417 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
20418 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
20419 and non iso if unix2003.
20420
20421 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
20422
20423 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
20424
20425 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
20426
20427 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
20428 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
20429 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
20430 except.c, final.c, function.c, gcse-common.c, genemit.c,
20431 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
20432 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
20433 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
20434 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
20435 more derived ones.
20436
20437 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
20438
20439 * combine.c (combine_split_insns): Remove cast.
20440 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
20441 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
20442 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
20443 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
20444 * genemit.c (gen_split): Change return type of generated functions to
20445 rtx_insn.
20446 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
20447 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
20448 gen_peephole2_* functions.
20449 (print_subroutine, main): Likewise.
20450 * recog.c (peephole2_optimize): Remove cast.
20451 (peep2_next_insn): Promote return type to rtx_insn.
20452 * recog.h (peep2_next_insn): Fix prototype.
20453 * rtl.h (try_split, split_insns): Likewise.
20454
20455 2015-06-06 DJ Delorie <dj@redhat.com>
20456
20457 * config/msp430/msp430.c (msp430_asm_integer): Support addition
20458 and subtraction too.
20459
20460 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
20461
20462 PR target/66410
20463 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
20464 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
20465 instead of Snd. Disparage Sid/z alternative with '^'.
20466
20467 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
20468
20469 * dwarf2out.c: Remove deferred_locations*.
20470 (dwarf2_debug_hooks): Add early_finish hook.
20471 Remove global_decl hook.
20472 Add early_global_decl and late_global_decl hook.
20473 New global early_dwarf.
20474 New structure set_early_dwarf.
20475 (output_die): Indicate whether a DIE was generated early
20476 when generating assembly with -dA.
20477 (struct limbo_die_struct): Document created_for field.
20478 Remove file_table_last_lookup.
20479 (remove_AT): Return TRUE if successful.
20480 (remove_child_TAG): Clear die_parent.
20481 (reparent_child): New function abstracted from...
20482 (splice_child_die): ...here.
20483 (new_die): ICE if a DIE ends up in limbo too late.
20484 (check_die): New.
20485 (defer_location): Remove.
20486 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
20487 (fill_variable_array_bounds): New.
20488 (decl_start_label): Call fill_variable_array_bounds.
20489 (gen_formal_parameter_die): Rewrite to reuse previously generated
20490 DIEs.
20491 (gen_subprogram_die): Same.
20492 (gen_variable_die): Same.
20493 (gen_const_die): Same.
20494 (gen_label_die): Same.
20495 (gen_lexical_block_die): Same.
20496 (decl_will_get_specification_p): New.
20497 (local_function_static): New.
20498 (gen_struct_or_union_type_die): Fill in variable-length fields.
20499 (gen_typedef_die): Fill in variable-length typedefs.
20500 (gen_tagged_type_die): Gracefully return on error_mark_node.
20501 Handle re-entrancy.
20502 (gen_type_die_with_usage): Handle variable-length types.
20503 Remove duplicate code for ARRAY_TYPE case.
20504 (process_scope_var): Only process imported modules during early
20505 dwarf.
20506 (dwarf2out_early_global_decl): New.
20507 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
20508 (dwarf2out_type_decl): Set early_dwarf while calling
20509 dwarf2out_decl.
20510 (dwarf2out_decl): Verify that we did not recreate a previously
20511 generated DIE.
20512 Do not return on DECL_EXTERNALs in VAR_DECLs.
20513 Abstract some code to local_function_static.
20514 (lookup_filename): Remove use of file_table_last_lookup.
20515 Gracefully exit on missing file_name.
20516 (dwarf2out_finish): Verify limbo list.
20517 Remove deferred_locations_list use.
20518 Move deferred_asm_name and limbo flushing to...
20519 (dwarf2out_early_finish): ...here. New.
20520 (dwarf2out_c_finalize): Remove set of deferred_location_list,
20521 deferred_asm_name, and file_table_last_lookup.
20522 * cgraph.h (referred_to_p): Add default argument.
20523 * cgraphunit.c (referred_to_p): Add and handle include_self
20524 argument.
20525 (analyze_functions): Add first_time argument.
20526 Call check_global_declaration for all symbols.
20527 Call late_global_decl for nodes for moribund nodes.
20528 (finalize_compilation_unit): Add new argument to
20529 analyze_functions.
20530 Call early_global_decl for functions.
20531 Call early_finish debug hook.
20532 * dbxout.c (dbxout_early_global_decl): New.
20533 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
20534 (dbx_debug_hooks): Add new hooks.
20535 (xcoff_debug_hooks): Same.
20536 * debug.c (do_nothing_debug_hooks): Add early_finish field.
20537 Add early and late debug hooks.
20538 Remove global_decl hook.
20539 * debug.h (struct gcc_debug_hooks): Add early_finish,
20540 early_global_decl, and late_global_decl fields.
20541 Remove global_decl field.
20542 Document gcc_debug_hooks.
20543 * gengtype.c (output_typename): Remove.
20544 * godump.c (go_early_global_decl): New.
20545 (go_late_global_decl): New.
20546 (go_global_decl): Remove.
20547 (dump_go_spec_init): Remove global_decl. Add
20548 {early,late}_global_decl.
20549 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
20550 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
20551 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
20552 (write_global_declarations): Remove.
20553 (global_decl_processing): New.
20554 * langhooks.h (struct lang_hooks_for_decls): Remove
20555 final_write_globals field.
20556 Add post_compilation_parsing_cleanups field.
20557 * passes.c (rest_of_decl_compilation): Call early_global_decl.
20558 * sdbout.c: Add early and late_global_decl hooks. Remove
20559 sdbout_global_decl hook.
20560 Add early_finish field for sdb_debug_hooks.
20561 (sdbout_global_decl): Remove.
20562 (sdbout_early_global_decl): New.
20563 (sdbout_late_global_decl): New.
20564 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
20565 * toplev.c (check_global_declaration): Rename from
20566 check_global_declaration_1.
20567 Adapt to use symtab infrastructure.
20568 (check_global_declarations): Remove.
20569 (emit_debug_global_declarations): Remove.
20570 (compile_file): Remove call to final_write_globals langhook.
20571 Run the actual compilation process.
20572 Perform any post compilation parser cleanups.
20573 Generate late debug info.
20574 * toplev.h (check_global_declaration): New.
20575 (check_global_declaration_1): Remove.
20576 (check_global_declarations): Remove.
20577 (write_global_declarations): Remove.
20578 (emit_debug_global_declarations): Remove.
20579 (global_decl_processing): New.
20580 * tree-core.h (struct tree_block): Add DIE field.
20581 * tree.h (BLOCK_DIE): New.
20582 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
20583 throughout.
20584 (vmsdbgout_early_global_decl): New.
20585 (vmsdbgout_late_global_decl): New.
20586 Add early_finish debug hook field to vmsdbg_debug_hooks.
20587 Remove vmsdbgout_decl to vmsdbgout_function_decl.
20588 Add early and late_global_decl debug hooks.
20589
20590 2015-06-05 Julian Brown <julian@codesourcery.com>
20591 Sandra Loosemore <sandra@codesourcery.com>
20592
20593 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
20594 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
20595 to print-sysroot-suffix.sh script.
20596
20597 2015-06-05 Tom de Vries <tom@codesourcery.com>
20598
20599 merge from gomp4 branch:
20600 2015-05-28 Tom de Vries <tom@codesourcery.com>
20601
20602 PR tree-optimization/65443
20603 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
20604 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
20605 (try_transform_to_exit_first_loop_alt): New function.
20606 (transform_to_exit_first_loop): Use
20607 try_transform_to_exit_first_loop_alt.
20608
20609 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
20610
20611 * builtins.c (expand_builtin_atomic_compare_exchange): Call
20612 emit_cmp_and_jump_insns with the mode of target.
20613
20614 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20615
20616 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
20617
20618 2015-06-04 DJ Delorie <dj@redhat.com>
20619
20620 * config/msp430/msp430.md (movsi_s): New. Special case for
20621 storing a 20-bit symbol into a 32-bit register.
20622 * config/msp430/msp430.c (msp430_subreg): Add support for it.
20623 * config/msp430/predicates.md (msp430_symbol_operand): New.
20624
20625 2015-06-04 Sriraman Tallam <tmsriram@google.com>
20626
20627 * c-family/c-common.c (noplt): New attribute.
20628 (handle_noplt_attribute): New handler.
20629 * calls.c (prepare_call_address): Check for noplt
20630 attribute.
20631 * config/i386/i386.c (ix86_expand_call): Check
20632 for noplt attribute.
20633 (ix86_nopic_noplt_attribute_p): New function.
20634 (ix86_output_call_insn): Output indirect call for non-pic
20635 no plt calls.
20636 * doc/extend.texi (noplt): Document new attribute.
20637 * doc/invoke.texi: Document new attribute.
20638
20639 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
20640
20641 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
20642 real.h, and fixed-value.h when included in host source files.
20643 * double-int.h: Remove redundant #includes listed above.
20644 * fixed-value.h: Likewise.
20645 * real.h: Likewise.
20646 * wide-int.h: Likewise.
20647 * inchash.h: Likewise.
20648 * rtl.h: Add some include files When included from a generator file.
20649 * target.h: Remove wide-int.h and insn-modes.h from the include list.
20650 * internal-fn.h: Don't include coretypes.h.
20651 * alias.c: Adjust includes for restructured coretypes.h.
20652 * asan.c: Likewise.
20653 * attribs.c: Likewise.
20654 * auto-inc-dec.c: Likewise.
20655 * auto-profile.c: Likewise.
20656 * bb-reorder.c: Likewise.
20657 * bt-load.c: Likewise.
20658 * builtins.c: Likewise.
20659 * caller-save.c: Likewise.
20660 * calls.c: Likewise.
20661 * ccmp.c: Likewise.
20662 * cfg.c: Likewise.
20663 * cfganal.c: Likewise.
20664 * cfgbuild.c: Likewise.
20665 * cfgcleanup.c: Likewise.
20666 * cfgexpand.c: Likewise.
20667 * cfghooks.c: Likewise.
20668 * cfgloop.c: Likewise.
20669 * cfgloop.h: Likewise.
20670 * cfgloopanal.c: Likewise.
20671 * cfgloopmanip.c: Likewise.
20672 * cfgrtl.c: Likewise.
20673 * cgraph.c: Likewise.
20674 * cgraphbuild.c: Likewise.
20675 * cgraphclones.c: Likewise.
20676 * cgraphunit.c: Likewise.
20677 * cilk-common.c: Likewise.
20678 * combine-stack-adj.c: Likewise.
20679 * combine.c: Likewise.
20680 * compare-elim.c: Likewise.
20681 * convert.c: Likewise.
20682 * coverage.c: Likewise.
20683 * cppbuiltin.c: Likewise.
20684 * cprop.c: Likewise.
20685 * cse.c: Likewise.
20686 * cselib.c: Likewise.
20687 * data-streamer-in.c: Likewise.
20688 * data-streamer-out.c: Likewise.
20689 * data-streamer.c: Likewise.
20690 * dbxout.c: Likewise.
20691 * dce.c: Likewise.
20692 * ddg.c: Likewise.
20693 * debug.c: Likewise.
20694 * df-core.c: Likewise.
20695 * df-problems.c: Likewise.
20696 * df-scan.c: Likewise.
20697 * df.h: Likewise.
20698 * dfp.c: Likewise.
20699 * dojump.c: Likewise.
20700 * dominance.c: Likewise.
20701 * domwalk.c: Likewise.
20702 * double-int.c: Likewise.
20703 * dse.c: Likewise.
20704 * dumpfile.c: Likewise.
20705 * dwarf2asm.c: Likewise.
20706 * dwarf2cfi.c: Likewise.
20707 * dwarf2out.c: Likewise.
20708 * dwarf2out.h: Likewise.
20709 * emit-rtl.c: Likewise.
20710 * et-forest.c: Likewise.
20711 * except.c: Likewise.
20712 * explow.c: Likewise.
20713 * expmed.c: Likewise.
20714 * expr.c: Likewise.
20715 * final.c: Likewise.
20716 * fixed-value.c: Likewise.
20717 * fold-const.c: Likewise.
20718 * function.c: Likewise.
20719 * fwprop.c: Likewise.
20720 * gcc-plugin.h: Likewise.
20721 * gcse.c: Likewise.
20722 * generic-match-head.c: Likewise.
20723 * ggc-page.c: Likewise.
20724 * gimple-builder.c: Likewise.
20725 * gimple-expr.c: Likewise.
20726 * gimple-fold.c: Likewise.
20727 * gimple-iterator.c: Likewise.
20728 * gimple-low.c: Likewise.
20729 * gimple-match-head.c: Likewise.
20730 * gimple-pretty-print.c: Likewise.
20731 * gimple-ssa-isolate-paths.c: Likewise.
20732 * gimple-ssa-strength-reduction.c: Likewise.
20733 * gimple-streamer-in.c: Likewise.
20734 * gimple-streamer-out.c: Likewise.
20735 * gimple-streamer.h: Likewise.
20736 * gimple-walk.c: Likewise.
20737 * gimple.c: Likewise.
20738 * gimplify-me.c: Likewise.
20739 * gimplify.c: Likewise.
20740 * godump.c: Likewise.
20741 * graph.c: Likewise.
20742 * graphite-blocking.c: Likewise.
20743 * graphite-dependences.c: Likewise.
20744 * graphite-interchange.c: Likewise.
20745 * graphite-isl-ast-to-gimple.c: Likewise.
20746 * graphite-optimize-isl.c: Likewise.
20747 * graphite-poly.c: Likewise.
20748 * graphite-scop-detection.c: Likewise.
20749 * graphite-sese-to-poly.c: Likewise.
20750 * graphite.c: Likewise.
20751 * haifa-sched.c: Likewise.
20752 * hooks.h: Likewise.
20753 * hw-doloop.c: Likewise.
20754 * ifcvt.c: Likewise.
20755 * incpath.c: Likewise.
20756 * init-regs.c: Likewise.
20757 * internal-fn.c: Likewise.
20758 * ipa-chkp.c: Likewise.
20759 * ipa-comdats.c: Likewise.
20760 * ipa-cp.c: Likewise.
20761 * ipa-devirt.c: Likewise.
20762 * ipa-icf-gimple.c: Likewise.
20763 * ipa-icf.c: Likewise.
20764 * ipa-inline-analysis.c: Likewise.
20765 * ipa-inline-transform.c: Likewise.
20766 * ipa-inline.c: Likewise.
20767 * ipa-polymorphic-call.c: Likewise.
20768 * ipa-profile.c: Likewise.
20769 * ipa-prop.c: Likewise.
20770 * ipa-pure-const.c: Likewise.
20771 * ipa-ref.c: Likewise.
20772 * ipa-reference.c: Likewise.
20773 * ipa-split.c: Likewise.
20774 * ipa-utils.c: Likewise.
20775 * ipa-visibility.c: Likewise.
20776 * ipa.c: Likewise.
20777 * ira-build.c: Likewise.
20778 * ira-color.c: Likewise.
20779 * ira-conflicts.c: Likewise.
20780 * ira-costs.c: Likewise.
20781 * ira-emit.c: Likewise.
20782 * ira-lives.c: Likewise.
20783 * ira.c: Likewise.
20784 * jump.c: Likewise.
20785 * langhooks.c: Likewise.
20786 * lcm.c: Likewise.
20787 * loop-doloop.c: Likewise.
20788 * loop-init.c: Likewise.
20789 * loop-invariant.c: Likewise.
20790 * loop-iv.c: Likewise.
20791 * loop-unroll.c: Likewise.
20792 * lower-subreg.c: Likewise.
20793 * lra-assigns.c: Likewise.
20794 * lra-coalesce.c: Likewise.
20795 * lra-constraints.c: Likewise.
20796 * lra-eliminations.c: Likewise.
20797 * lra-lives.c: Likewise.
20798 * lra-remat.c: Likewise.
20799 * lra-spills.c: Likewise.
20800 * lra.c: Likewise.
20801 * lto-cgraph.c: Likewise.
20802 * lto-compress.c: Likewise.
20803 * lto-opts.c: Likewise.
20804 * lto-section-in.c: Likewise.
20805 * lto-section-out.c: Likewise.
20806 * lto-streamer-in.c: Likewise.
20807 * lto-streamer-out.c: Likewise.
20808 * lto-streamer.c: Likewise.
20809 * mcf.c: Likewise.
20810 * mode-switching.c: Likewise.
20811 * modulo-sched.c: Likewise.
20812 * omega.c: Likewise.
20813 * omp-low.c: Likewise.
20814 * optabs.c: Likewise.
20815 * opts-global.c: Likewise.
20816 * passes.c: Likewise.
20817 * plugin.c: Likewise.
20818 * postreload-gcse.c: Likewise.
20819 * postreload.c: Likewise.
20820 * predict.c: Likewise.
20821 * print-rtl.c: Likewise.
20822 * print-tree.c: Likewise.
20823 * profile.c: Likewise.
20824 * real.c: Likewise.
20825 * realmpfr.c: Likewise.
20826 * realmpfr.h: Likewise.
20827 * recog.c: Likewise.
20828 * ree.c: Likewise.
20829 * reg-stack.c: Likewise.
20830 * regcprop.c: Likewise.
20831 * reginfo.c: Likewise.
20832 * regrename.c: Likewise.
20833 * regs.h: Likewise.
20834 * regstat.c: Likewise.
20835 * reload.c: Likewise.
20836 * reload1.c: Likewise.
20837 * reorg.c: Likewise.
20838 * resource.c: Likewise.
20839 * rtl-chkp.c: Likewise.
20840 * rtlanal.c: Likewise.
20841 * rtlhooks.c: Likewise.
20842 * sanopt.c: Likewise.
20843 * sched-deps.c: Likewise.
20844 * sched-ebb.c: Likewise.
20845 * sched-rgn.c: Likewise.
20846 * sched-vis.c: Likewise.
20847 * sdbout.c: Likewise.
20848 * sel-sched-dump.c: Likewise.
20849 * sel-sched-ir.c: Likewise.
20850 * sel-sched.c: Likewise.
20851 * sese.c: Likewise.
20852 * shrink-wrap.c: Likewise.
20853 * shrink-wrap.h: Likewise.
20854 * simplify-rtx.c: Likewise.
20855 * stack-ptr-mod.c: Likewise.
20856 * statistics.c: Likewise.
20857 * stmt.c: Likewise.
20858 * stor-layout.c: Likewise.
20859 * store-motion.c: Likewise.
20860 * stringpool.c: Likewise.
20861 * symtab.c: Likewise.
20862 * target-globals.c: Likewise.
20863 * targhooks.c: Likewise.
20864 * toplev.c: Likewise.
20865 * tracer.c: Likewise.
20866 * trans-mem.c: Likewise.
20867 * tree-affine.c: Likewise.
20868 * tree-affine.h: Likewise.
20869 * tree-browser.c: Likewise.
20870 * tree-call-cdce.c: Likewise.
20871 * tree-cfg.c: Likewise.
20872 * tree-cfgcleanup.c: Likewise.
20873 * tree-chkp-opt.c: Likewise.
20874 * tree-chkp.c: Likewise.
20875 * tree-chrec.c: Likewise.
20876 * tree-complex.c: Likewise.
20877 * tree-data-ref.c: Likewise.
20878 * tree-dfa.c: Likewise.
20879 * tree-diagnostic.c: Likewise.
20880 * tree-dump.c: Likewise.
20881 * tree-eh.c: Likewise.
20882 * tree-emutls.c: Likewise.
20883 * tree-if-conv.c: Likewise.
20884 * tree-inline.c: Likewise.
20885 * tree-into-ssa.c: Likewise.
20886 * tree-iterator.c: Likewise.
20887 * tree-loop-distribution.c: Likewise.
20888 * tree-nested.c: Likewise.
20889 * tree-nrv.c: Likewise.
20890 * tree-object-size.c: Likewise.
20891 * tree-outof-ssa.c: Likewise.
20892 * tree-parloops.c: Likewise.
20893 * tree-phinodes.c: Likewise.
20894 * tree-predcom.c: Likewise.
20895 * tree-pretty-print.c: Likewise.
20896 * tree-pretty-print.h: Likewise.
20897 * tree-profile.c: Likewise.
20898 * tree-scalar-evolution.c: Likewise.
20899 * tree-sra.c: Likewise.
20900 * tree-ssa-address.c: Likewise.
20901 * tree-ssa-alias.c: Likewise.
20902 * tree-ssa-ccp.c: Likewise.
20903 * tree-ssa-coalesce.c: Likewise.
20904 * tree-ssa-copy.c: Likewise.
20905 * tree-ssa-copyrename.c: Likewise.
20906 * tree-ssa-dce.c: Likewise.
20907 * tree-ssa-dom.c: Likewise.
20908 * tree-ssa-dse.c: Likewise.
20909 * tree-ssa-forwprop.c: Likewise.
20910 * tree-ssa-ifcombine.c: Likewise.
20911 * tree-ssa-live.c: Likewise.
20912 * tree-ssa-loop-ch.c: Likewise.
20913 * tree-ssa-loop-im.c: Likewise.
20914 * tree-ssa-loop-ivcanon.c: Likewise.
20915 * tree-ssa-loop-ivopts.c: Likewise.
20916 * tree-ssa-loop-manip.c: Likewise.
20917 * tree-ssa-loop-niter.c: Likewise.
20918 * tree-ssa-loop-prefetch.c: Likewise.
20919 * tree-ssa-loop-unswitch.c: Likewise.
20920 * tree-ssa-loop.c: Likewise.
20921 * tree-ssa-loop.h: Likewise.
20922 * tree-ssa-math-opts.c: Likewise.
20923 * tree-ssa-operands.c: Likewise.
20924 * tree-ssa-phiopt.c: Likewise.
20925 * tree-ssa-phiprop.c: Likewise.
20926 * tree-ssa-pre.c: Likewise.
20927 * tree-ssa-propagate.c: Likewise.
20928 * tree-ssa-reassoc.c: Likewise.
20929 * tree-ssa-sccvn.c: Likewise.
20930 * tree-ssa-scopedtables.c: Likewise.
20931 * tree-ssa-sink.c: Likewise.
20932 * tree-ssa-strlen.c: Likewise.
20933 * tree-ssa-structalias.c: Likewise.
20934 * tree-ssa-tail-merge.c: Likewise.
20935 * tree-ssa-ter.c: Likewise.
20936 * tree-ssa-threadedge.c: Likewise.
20937 * tree-ssa-threadupdate.c: Likewise.
20938 * tree-ssa-uncprop.c: Likewise.
20939 * tree-ssa-uninit.c: Likewise.
20940 * tree-ssa.c: Likewise.
20941 * tree-ssanames.c: Likewise.
20942 * tree-stdarg.c: Likewise.
20943 * tree-streamer-in.c: Likewise.
20944 * tree-streamer-out.c: Likewise.
20945 * tree-streamer.c: Likewise.
20946 * tree-switch-conversion.c: Likewise.
20947 * tree-tailcall.c: Likewise.
20948 * tree-vect-data-refs.c: Likewise.
20949 * tree-vect-generic.c: Likewise.
20950 * tree-vect-loop-manip.c: Likewise.
20951 * tree-vect-loop.c: Likewise.
20952 * tree-vect-patterns.c: Likewise.
20953 * tree-vect-slp.c: Likewise.
20954 * tree-vect-stmts.c: Likewise.
20955 * tree-vectorizer.c: Likewise.
20956 * tree-vrp.c: Likewise.
20957 * tree.c: Likewise.
20958 * tsan.c: Likewise.
20959 * ubsan.c: Likewise.
20960 * valtrack.c: Likewise.
20961 * value-prof.c: Likewise.
20962 * var-tracking.c: Likewise.
20963 * varasm.c: Likewise.
20964 * varpool.c: Likewise.
20965 * vmsdbgout.c: Likewise.
20966 * vtable-verify.c: Likewise.
20967 * web.c: Likewise.
20968 * wide-int-print.cc: Likewise.
20969 * wide-int-print.h: Likewise.
20970 * wide-int.cc: Likewise.
20971 * xcoffout.c: Likewise.
20972 * config/aarch64/aarch64-builtins.c: Likewise.
20973 * config/aarch64/aarch64.c: Likewise.
20974 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20975 * config/alpha/alpha.c: Likewise.
20976 * config/arc/arc.c: Likewise.
20977 * config/arm/aarch-common.c: Likewise.
20978 * config/arm/arm-builtins.c: Likewise.
20979 * config/arm/arm-c.c: Likewise.
20980 * config/arm/arm.c: Likewise.
20981 * config/avr/avr-c.c: Likewise.
20982 * config/avr/avr-log.c: Likewise.
20983 * config/avr/avr.c: Likewise.
20984 * config/bfin/bfin.c: Likewise.
20985 * config/c6x/c6x.c: Likewise.
20986 * config/cr16/cr16.c: Likewise.
20987 * config/cris/cris.c: Likewise.
20988 * config/darwin-c.c: Likewise.
20989 * config/darwin.c: Likewise.
20990 * config/default-c.c: Likewise.
20991 * config/epiphany/epiphany.c: Likewise.
20992 * config/epiphany/mode-switch-use.c: Likewise.
20993 * config/epiphany/resolve-sw-modes.c: Likewise.
20994 * config/fr30/fr30.c: Likewise.
20995 * config/frv/frv.c: Likewise.
20996 * config/ft32/ft32.c: Likewise.
20997 * config/glibc-c.c: Likewise.
20998 * config/h8300/h8300.c: Likewise.
20999 * config/i386/i386-c.c: Likewise.
21000 * config/i386/i386.c: Likewise.
21001 * config/i386/msformat-c.c: Likewise.
21002 * config/i386/winnt-cxx.c: Likewise.
21003 * config/i386/winnt-stubs.c: Likewise.
21004 * config/i386/winnt.c: Likewise.
21005 * config/ia64/ia64-c.c: Likewise.
21006 * config/ia64/ia64.c: Likewise.
21007 * config/iq2000/iq2000.c: Likewise.
21008 * config/lm32/lm32.c: Likewise.
21009 * config/m32c/m32c-pragma.c: Likewise.
21010 * config/m32c/m32c.c: Likewise.
21011 * config/m32r/m32r.c: Likewise.
21012 * config/m68k/m68k.c: Likewise.
21013 * config/mcore/mcore.c: Likewise.
21014 * config/mep/mep-pragma.c: Likewise.
21015 * config/mep/mep.c: Likewise.
21016 * config/microblaze/microblaze-c.c: Likewise.
21017 * config/microblaze/microblaze.c: Likewise.
21018 * config/mips/mips.c: Likewise.
21019 * config/mmix/mmix.c: Likewise.
21020 * config/mn10300/mn10300.c: Likewise.
21021 * config/moxie/moxie.c: Likewise.
21022 * config/msp430/msp430-c.c: Likewise.
21023 * config/msp430/msp430.c: Likewise.
21024 * config/nds32/nds32-cost.c: Likewise.
21025 * config/nds32/nds32-fp-as-gp.c: Likewise.
21026 * config/nds32/nds32-intrinsic.c: Likewise.
21027 * config/nds32/nds32-isr.c: Likewise.
21028 * config/nds32/nds32-md-auxiliary.c: Likewise.
21029 * config/nds32/nds32-memory-manipulation.c: Likewise.
21030 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21031 * config/nds32/nds32-predicates.c: Likewise.
21032 * config/nds32/nds32.c: Likewise.
21033 * config/nios2/nios2.c: Likewise.
21034 * config/nvptx/nvptx.c: Likewise.
21035 * config/pa/pa.c: Likewise.
21036 * config/pdp11/pdp11.c: Likewise.
21037 * config/rl78/rl78-c.c: Likewise.
21038 * config/rl78/rl78.c: Likewise.
21039 * config/rs6000/rs6000-c.c: Likewise.
21040 * config/rs6000/rs6000.c: Likewise.
21041 * config/rx/rx.c: Likewise.
21042 * config/s390/s390-c.c: Likewise.
21043 * config/s390/s390.c: Likewise.
21044 * config/sh/sh-c.c: Likewise.
21045 * config/sh/sh-mem.cc: Likewise.
21046 * config/sh/sh.c: Likewise.
21047 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21048 * config/sh/sh_treg_combine.cc: Likewise.
21049 * config/sol2-c.c: Likewise.
21050 * config/sol2-cxx.c: Likewise.
21051 * config/sol2-stubs.c: Likewise.
21052 * config/sol2.c: Likewise.
21053 * config/sparc/sparc-c.c: Likewise.
21054 * config/sparc/sparc.c: Likewise.
21055 * config/spu/spu-c.c: Likewise.
21056 * config/spu/spu.c: Likewise.
21057 * config/stormy16/stormy16.c: Likewise.
21058 * config/tilegx/mul-tables.c: Likewise.
21059 * config/tilegx/tilegx-c.c: Likewise.
21060 * config/tilegx/tilegx.c: Likewise.
21061 * config/tilepro/mul-tables.c: Likewise.
21062 * config/tilepro/tilepro-c.c: Likewise.
21063 * config/tilepro/tilepro.c: Likewise.
21064 * config/v850/v850-c.c: Likewise.
21065 * config/v850/v850.c: Likewise.
21066 * config/vax/vax.c: Likewise.
21067 * config/visium/visium.c: Likewise.
21068 * config/vms/vms-c.c: Likewise.
21069 * config/vms/vms.c: Likewise.
21070 * config/vxworks.c: Likewise.
21071 * config/winnt-c.c: Likewise.
21072 * config/xtensa/xtensa.c: Likewise.
21073 * common/config/bfin/bfin-common.c: Likewise.
21074
21075 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
21076
21077 * tree.h (tree_code_for_canonical_type_merging): New function.
21078 * tree.c (gimple_canonical_types_compatible_p): Use
21079 tree_code_for_canonical_type_merging..
21080
21081 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21082
21083 PR c++/66192
21084 PR target/66200
21085 * doc/tm.texi: Regenerate.
21086 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
21087 * target.def (TARGET_RELAXED_ORDERING): Likewise.
21088 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
21089 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
21090 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
21091 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
21092 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
21093 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
21094 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
21095
21096 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21097
21098 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
21099 register fma steering pass.
21100 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
21101 AARCH64_TUNE_FMA_STEERING.
21102
21103 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
21104
21105 * tree.c (verify_type_variant): Verify that type and variant is
21106 compatible.
21107 (gimple_canonical_types_compatible_p): Look for main variants.
21108
21109 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
21110
21111 * config.gcc (powerpc*-*-*): Add support for a new configure
21112 option --with-advance-toolchain=<xxx> which overrides using the
21113 default header files, libraries and dynamic linker.
21114
21115 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
21116 specs to support the configure --with-advance-toolchain=<xxx>
21117 option.
21118 (INCLUDE_EXTRA_SPEC): Likewise.
21119 (LINK_OS_EXTRA_SPEC32): Likewise.
21120 (LINK_OK_EXTRA_SPEC64): Likewise.
21121 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
21122 (DYNAMIC_LINKER_PREFIX): Likewise.
21123 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
21124 toolchain support.
21125 (GLIBC_DYNAMIC_LINKER32): Likewise.
21126 (GLIBC_DYNAMIC_LINKER64): Likewise.
21127 (LINK_OS_LINUX_SPEC32): Likewise.
21128 (LINK_OS_LINUX_SPEC64): Likewise.
21129
21130 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
21131 configuration option.
21132
21133 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
21134
21135 PR target/66275
21136 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
21137 to determine current function ABI.
21138 (ix86_function_value_regno_p): Ditto.
21139
21140 2015-06-03 Martin Liska <mliska@suse.cz>
21141
21142 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
21143 * bitmap.h (struct bitmap_usage): Likewise.
21144 * ggc-common.c (struct ggc_usage): Likewise.
21145 * mem-stats.h (struct mem_location): Likewise.
21146 (struct mem_usage): Likewise.
21147 * vec.c (struct vec_usage): Likewise.
21148
21149 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
21150
21151 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
21152 -Bsymbolic.
21153
21154 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
21155
21156 * doc/plugins.texi (enum plugin_event): New event.
21157 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
21158 and PLUGIN_FINISH_FUNCTION.
21159 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
21160 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
21161
21162 2015-06-03 Richard Biener <rguenther@suse.de>
21163
21164 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
21165 compute GROUP_GAP for the first element.
21166 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
21167 on in-group gaps.
21168
21169 2015-06-03 Nick Clifton <nickc@redhat.com>
21170
21171 * config/rl78/rl78-real.md: Add peepholes to avoid a register
21172 copy when calling a function.
21173 * config/rl78/rl78.c (need_to_save): Do not push the frame
21174 pointer in an interrupt handler prologue if it is never used.
21175
21176 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21177
21178 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
21179
21180 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
21181
21182 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
21183 reference when cloning alias node.
21184
21185 2015-06-03 Martin Liska <mliska@suse.cz>
21186
21187 * alloc-pool.h (struct pool_usage): Correct space padding.
21188 * ggc-page.c (ggc_print_statistics): Align columns in a report.
21189 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
21190 * tree.c (dump_tree_statistics): Align columns in a report.
21191
21192 2015-06-03 Martin Liska <mliska@suse.cz>
21193
21194 * alloc-pool.c (allocate_pool_descriptor): Remove.
21195 (struct pool_output_info): Likewise.
21196 (print_alloc_pool_statistics): Likewise.
21197 (dump_alloc_pool_statistics): Likewise.
21198 * alloc-pool.h (struct pool_usage): New struct.
21199 (pool_allocator::initialize): Change usage of memory statistics
21200 to a new interface.
21201 (pool_allocator::release): Likewise.
21202 (pool_allocator::allocate): Likewise.
21203 (pool_allocator::remove): Likewise.
21204 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
21205 for a pool allocator.
21206 * mem-stats.h (struct mem_location): Add new ctor.
21207 (struct mem_usage): Add counter for number of
21208 instances.
21209 (mem_alloc_description::register_descriptor): New overload of
21210 * mem-stats.h (mem_location::to_string): New function.
21211 * bitmap.h (struct bitmap_usage): Use this new function.
21212 * ggc-common.c (struct ggc_usage): Likewise.
21213 the function.
21214
21215 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
21216
21217 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
21218 of GCC_INSN_FLAGS_H block.
21219
21220 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
21221
21222 * explow.c (plus_constant): Update check after force_const_mem call
21223 to see if the value returned is not a NULL_RTX.
21224
21225 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
21226
21227 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
21228 remove instumentation thunks calling reachable functions.
21229 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
21230 * lto/lto-partition.c (privatize_symbol_name_1): New.
21231 (privatize_symbol_name): Privatize both decl and orig_decl
21232 names for instrumented functions.
21233 * cgraph.c (cgraph_node::verify_node): Add transparent
21234 alias chain check for instrumented node.
21235
21236 2015-06-03 Marek Polacek <polacek@redhat.com>
21237
21238 PR c/64223
21239 PR c/29358
21240 * tree.c (attribute_value_equal): Handle attribute format.
21241 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
21242
21243 2015-06-03 Richard Biener <rguenther@suse.de>
21244
21245 PR tree-optimization/63916
21246 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
21247 Forward-propagate non-invariant addresses by splicing their
21248 reference ops if the result isn't going to be used by PRE.
21249 (vn_reference_lookup_3): Remove pointless assert.
21250
21251 2015-06-03 Richard Biener <rguenther@suse.de>
21252
21253 PR tree-optimization/66375
21254 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
21255 add to the evolution before following SSA edges.
21256
21257 2015-06-03 Bin Cheng <bin.cheng@arm.com>
21258
21259 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
21260 (dump_use, dump_cand, find_induction_variables): Pass new argument
21261 to dump_iv.
21262 (record_use): Preserve the ssa name information in IV.
21263
21264 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
21265
21266 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
21267 NO_MODE_TEST.
21268 (add_mode_tests): Don't add mode tests if the predicate only
21269 accepts scalar constant integers. Otherwise, allow the mode
21270 of "op" to be VOIDmode if the predicate does accept such integers.
21271
21272 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
21273
21274 PR target/66258
21275 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
21276 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
21277 (aarch64_secondary_reload): Likewise
21278 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
21279 to !TARGET_FLOAT.
21280 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
21281 Likewise.
21282
21283 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
21284 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21285
21286 PR target/65768
21287 * cprop.c (try_replace_reg): Check cost of constants before propagating.
21288
21289 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21290
21291 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
21292 provide access to the IBM extended double floating point mode if
21293 long double is IEEE 128-bit floating point.
21294 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
21295 point if long double is the IBM extended double type.
21296
21297 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
21298 enable adding IEEE 128-bit floating point support.
21299 (-mfloat128-software): Likewise.
21300 (-mfloat128-sw): Likewise.
21301
21302 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
21303 128-bit floating point types to occupy any register if
21304 -mlong-double-64. Do not allow use of IFmode/KFmode unless
21305 -mfloat128-software is enabled.
21306 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
21307 support.
21308 (rs6000_option_override_internal): Add -mfloat128-* support.
21309 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
21310
21311 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
21312 and float128 type nodes.
21313 (ieee128_float_type_node): Likewise.
21314 (ibm128_float_type_node): Likewise.
21315
21316 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
21317
21318 PR target/66136
21319 * config/aarch64/geniterators.sh: Rewrite in awk.
21320
21321 2015-06-02 Martin Liska <mliska@suse.cz>
21322
21323 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
21324 values to avoid -Wmaybe-uninitialized errors.
21325
21326 2015-06-02 Richard Biener <rguenther@suse.de>
21327
21328 PR debug/65549
21329 * dwarf2out.c (lookup_context_die): New function.
21330 (resolve_addr): Avoid forcing a full DIE for the
21331 target of a DW_TAG_GNU_call_site during late compilation.
21332 Instead create a stub DIE without a type if we have a
21333 context DIE present.
21334
21335 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
21336
21337 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
21338
21339 2015-06-02 Bin Cheng <bin.cheng@arm.com>
21340
21341 PR tree-optimization/48052
21342 * cfgloop.h (struct control_iv): New.
21343 (struct loop): New field control_ivs.
21344 * tree-ssa-loop-niter.c : Include "stor-layout.h".
21345 (number_of_iterations_lt): Set no_overflow information.
21346 (number_of_iterations_exit): Init control iv in niter struct.
21347 (record_control_iv): New.
21348 (estimate_numbers_of_iterations_loop): Call record_control_iv.
21349 (loop_exits_before_overflow): New. Interface factored out of
21350 scev_probably_wraps_p.
21351 (scev_probably_wraps_p): Factor loop niter related code into
21352 loop_exits_before_overflow.
21353 (free_numbers_of_iterations_estimates_loop): Free control ivs.
21354 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
21355
21356 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
21357
21358 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
21359 the target doesn't belong to the current function.
21360
21361 2015-06-02 Marek Polacek <polacek@redhat.com>
21362
21363 PR middle-end/66345
21364 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
21365 get_maxval_strlen does not produce an INTEGER_CST.
21366
21367 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
21368
21369 * config/arc/constraints.md: Use lower-case names in match_code.
21370 * config/mmix/constraints.md: Likewise.
21371
21372 2015-06-02 Richard Biener <rguenther@suse.de>
21373
21374 PR tree-optimization/65961
21375 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
21376 check and clarify dump message.
21377 (vect_build_slp_tree): If all children are built up from scalars
21378 build up the parent from scalars instead.
21379 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
21380
21381 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
21382
21383 PR other/65366
21384 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
21385 instead of print ... .
21386
21387 2015-06-02 Alan Modra <amodra@gmail.com>
21388
21389 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
21390 2014-08-11 change.
21391
21392 2015-06-02 Bin Cheng <bin.cheng@arm.com>
21393
21394 PR tree-optimization/52563
21395 PR tree-optimization/62173
21396 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
21397 (alloc_iv, set_iv): New parameter.
21398 (determine_biv_step): Delete.
21399 (find_bivs): Inline original determine_biv_step. Pass new
21400 argument to set_iv.
21401 (idx_find_step): Use no_overflow information for conversion.
21402 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
21403 resolve_mixers handle folded_casts.
21404 (instantiate_scev_name): Change bool parameter to bool pointer.
21405 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
21406 (instantiate_array_ref, instantiate_scev_not): Ditto.
21407 (instantiate_scev_3, instantiate_scev_2): Ditto.
21408 (instantiate_scev_1, instantiate_scev_r): Ditto.
21409 (instantiate_scev_convert, ): Change parameter. Pass argument
21410 to chrec_convert_aggressive.
21411 (instantiate_scev): Change argument.
21412 (resolve_mixers): New parameter and set it.
21413 (scev_const_prop): New argument.
21414 * tree-scalar-evolution.h (resolve_mixers): New parameter.
21415 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
21416 of chrec_conert_1.
21417 (chrec_convert): New parameter. Move definition below.
21418 (chrec_convert_aggressive): New parameter and set it. Call
21419 convert_affine_scev.
21420 * tree-chrec.h (chrec_convert): New parameter.
21421 (chrec_convert_aggressive): Ditto.
21422
21423 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
21424
21425 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
21426 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
21427 the LHS of a no-return call if its type has variable size.
21428 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21429 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
21430
21431 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
21432
21433 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
21434 * config.in: Regenerate.
21435
21436 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21437
21438 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
21439 consecutive accesses within outer-loop with force_vectorize
21440 for references with zero step in inner-loop.
21441
21442 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
21443
21444 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
21445 rather than from gcc/build directory.
21446
21447 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
21448
21449 PR target/65697
21450 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
21451 for __sync memory models, emit initial loads and final barriers as
21452 appropriate.
21453
21454 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
21455
21456 PR target/65697
21457 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
21458 (aarch64_split_atomic_op): Check for __sync memory models, emit
21459 appropriate initial loads and final barriers.
21460
21461 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
21462
21463 * Makefile.in: Fix gcov dependencies that should
21464 not point to a build folder.
21465
21466 2015-06-01 Richard Biener <rguenther@suse.de>
21467
21468 Revert
21469 2015-05-29 Richard Biener <rguenther@suse.de>
21470
21471 PR tree-optimization/66314
21472 * tree-ssa-threadupdate.c (create_block_for_threading): Add
21473 parameter that says which loop the new block belongs to.
21474 (ssa_create_duplicates): Blocks duplicated for the threaded
21475 path belong to the loop of the thread destination.
21476
21477 2015-06-01 Martin Liska <mliska@suse.cz>
21478
21479 * sched-deps.c: Include pool-alloc.h before
21480 cselib.h header file is included.
21481
21482 2015-06-01 Richard Biener <rguenther@suse.de>
21483
21484 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
21485 functions.
21486
21487 2015-06-01 Martin Liska <mliska@suse.cz>
21488
21489 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
21490 a function local variable.
21491
21492 2015-06-01 Martin Liska <mliska@suse.cz>
21493
21494 * alloc-pool.c (create_alloc_pool): Remove.
21495 (empty_alloc_pool): Likewise.
21496 (free_alloc_pool): Likewise.
21497 (free_alloc_pool_if_empty): Likewise.
21498 (pool_alloc): Likewise.
21499 (pool_free): Likewise.
21500 * alloc-pool.h: Remove old declarations.
21501
21502 2015-06-01 Martin Liska <mliska@suse.cz>
21503
21504 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
21505 (ira_create_object): Likewise.
21506 (ira_create_allocno): Likewise.
21507 (ira_create_live_range): Likewise.
21508 (copy_live_range): Likewise.
21509 (ira_finish_live_range): Likewise.
21510 (ira_free_allocno_costs): Likewise.
21511 (finish_allocno): Likewise.
21512 (finish_allocnos): Likewise.
21513 (initiate_prefs): Likewise.
21514 (ira_create_pref): Likewise.
21515 (finish_pref): Likewise.
21516 (finish_prefs): Likewise.
21517 (initiate_copies): Likewise.
21518 (ira_create_copy): Likewise.
21519 (finish_copy): Likewise.
21520 (finish_copies): Likewise.
21521 (finish_prefs): Likewise.
21522
21523 2015-06-01 Martin Liska <mliska@suse.cz>
21524
21525 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
21526 (allocate_and_init_ipcp_value): Likewise.
21527 (ipcp_lattice::add_value): Likewise.
21528 (merge_agg_lats_step): Likewise.
21529 (ipcp_driver): Likewise.
21530 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
21531 (ipa_free_all_structures_after_iinln): Likewise.
21532 * ipa-prop.h: Likewise.
21533
21534 2015-06-01 Martin Liska <mliska@suse.cz>
21535
21536 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
21537 pool allocator.
21538 (set_hint_predicate): Likewise.
21539 (inline_summary_alloc): Likewise.
21540 (reset_inline_edge_summary): Likewise.
21541 (reset_inline_summary): Likewise.
21542 (set_cond_stmt_execution_predicate): Likewise.
21543 (set_switch_stmt_execution_predicate): Likewise.
21544 (compute_bb_predicates): Likewise.
21545 (estimate_function_body_sizes): Likewise.
21546 (inline_free_summary): Likewise.
21547
21548 2015-06-01 Martin Liska <mliska@suse.cz>
21549
21550 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
21551 (ipa_edge_duplication_hook): Likewise.
21552 (ipa_free_all_structures_after_ipa_cp): Likewise.
21553 (ipa_free_all_structures_after_iinln): Likewise.
21554
21555 2015-06-01 Martin Liska <mliska@suse.cz>
21556
21557 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
21558 (ipa_profile_generate_summary): Likewise.
21559 (ipa_profile_read_summary): Likewise.
21560 (ipa_profile): Likewise.
21561
21562 2015-06-01 Martin Liska <mliska@suse.cz>
21563
21564 * tree-ssa-structalias.c (new_var_info): Use new type-based
21565 pool allocator.
21566 (new_constraint): Likewise.
21567 (init_alias_vars): Likewise.
21568 (delete_points_to_sets): Likewise.
21569
21570 2015-06-01 Martin Liska <mliska@suse.cz>
21571
21572 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
21573 (free_strinfo): Likewise.
21574 (pass_strlen::execute): Likewise.
21575
21576 2015-06-01 Martin Liska <mliska@suse.cz>
21577
21578 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
21579 pool allocator.
21580 (vn_reference_insert_pieces): Likewise.
21581 (vn_phi_insert): Likewise.
21582 (visit_reference_op_call): Likewise.
21583 (copy_phi): Likewise.
21584 (copy_reference): Likewise.
21585 (process_scc): Likewise.
21586 (allocate_vn_table): Likewise.
21587 (free_vn_table): Likewise.
21588
21589 2015-06-01 Martin Liska <mliska@suse.cz>
21590
21591 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
21592 pool allocator.
21593 (add_repeat_to_ops_vec): Likewise.
21594 (get_ops): Likewise.
21595 (maybe_optimize_range_tests): Likewise.
21596 (init_reassoc): Likewise.
21597 (fini_reassoc): Likewise.
21598
21599 2015-06-01 Martin Liska <mliska@suse.cz>
21600
21601 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
21602 pool allocator.
21603 (bitmap_set_new): Likewise.
21604 (get_or_alloc_expr_for_constant): Likewise.
21605 (get_or_alloc_expr_for): Likewise.
21606 (phi_translate_1): Likewise.
21607 (compute_avail): Likewise.
21608 (init_pre): Likewise.
21609 (fini_pre): Likewise.
21610
21611 2015-06-01 Martin Liska <mliska@suse.cz>
21612
21613 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
21614 (delete_dep_node): Likewise.
21615 (create_deps_list): Likewise.
21616 (free_deps_list): Likewise.
21617 (sched_deps_init): Likewise.
21618 (sched_deps_finish): Likewise.
21619
21620 2015-06-01 Martin Liska <mliska@suse.cz>
21621
21622 * regcprop.c (free_debug_insn_changes): Use new type-based
21623 pool allocator.
21624 (replace_oldest_value_reg): Likewise.
21625 (pass_cprop_hardreg::execute): Likewise.
21626
21627 2015-06-01 Martin Liska <mliska@suse.cz>
21628
21629 * ira-build.c (initiate_cost_vectors): Use new type-based
21630 pool allocator.
21631 (ira_allocate_cost_vector): Likewise.
21632 (ira_free_cost_vector): Likewise.
21633 (finish_cost_vectors): Likewise.
21634
21635 2015-06-01 Martin Liska <mliska@suse.cz>
21636
21637 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
21638 pool allocator.
21639 (free_sched_pools): Likewise.
21640 * sel-sched-ir.h (_list_alloc): Likewise.
21641 (_list_remove): Likewise.
21642
21643 2015-06-01 Martin Liska <mliska@suse.cz>
21644
21645 * stmt.c (add_case_node): Use new type-based pool allocator.
21646 (expand_case): Likewise.
21647 (expand_sjlj_dispatch_table): Likewise.
21648
21649 2015-06-01 Martin Liska <mliska@suse.cz>
21650
21651 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
21652 (free_bb): Likewise.
21653 (pass_cse_reciprocals::execute): Likewise.
21654
21655 2015-06-01 Martin Liska <mliska@suse.cz>
21656
21657 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
21658 (sra_deinitialize) Likewise.
21659 (create_access_1) Likewise.
21660 (build_accesses_from_assign) Likewise.
21661 (create_artificial_child_access) Likewise.
21662
21663 2015-06-01 Martin Liska <mliska@suse.cz>
21664
21665 * dse.c (get_group_info):Use new type-based pool allocator.
21666 (dse_step0) Likewise.
21667 (free_store_info) Likewise.
21668 (delete_dead_store_insn) Likewise.
21669 (free_read_records) Likewise.
21670 (record_store) Likewise.
21671 (replace_read) Likewise.
21672 (check_mem_read_rtx) Likewise.
21673 (scan_insn) Likewise.
21674 (dse_step1) Likewise.
21675 (dse_step7) Likewise.
21676
21677 2015-06-01 Martin Liska <mliska@suse.cz>
21678
21679 * df-scan.c (struct df_scan_problem_data):Use new type-based
21680 pool allocator.
21681 (df_scan_free_internal) Likewise.
21682 (df_scan_alloc) Likewise.
21683 (df_grow_reg_info) Likewise.
21684 (df_free_ref) Likewise.
21685 (df_insn_create_insn_record) Likewise.
21686 (df_mw_hardreg_chain_delete) Likewise.
21687 (df_insn_info_delete) Likewise.
21688 (df_free_collection_rec) Likewise.
21689 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
21690 (df_sort_and_compress_mws) Likewise.
21691 (df_ref_create_structure) Likewise.
21692 (df_ref_record) Likewise.
21693
21694 2015-06-01 Martin Liska <mliska@suse.cz>
21695
21696 * df-problems.c (df_chain_create):Use new type-based pool allocator.
21697 (df_chain_unlink_1) Likewise.
21698 (df_chain_unlink) Likewise.
21699 (df_chain_remove_problem) Likewise.
21700 (df_chain_alloc) Likewise.
21701 (df_chain_free) Likewise.
21702 * df.h (struct dataflow) Likewise.
21703
21704 2015-06-01 Martin Liska <mliska@suse.cz>
21705
21706 * cselib.c (new_elt_list):Use new type-based pool allocator.
21707 (new_elt_loc_list) Likewise.
21708 (unchain_one_elt_list) Likewise.
21709 (unchain_one_elt_loc_list) Likewise.
21710 (unchain_one_value) Likewise.
21711 (new_cselib_val) Likewise.
21712 (cselib_init) Likewise.
21713 (cselib_finish) Likewise.
21714
21715 2015-06-01 Martin Liska <mliska@suse.cz>
21716
21717 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
21718 (sh_reorg) Likewise.
21719
21720 2015-06-01 Martin Liska <mliska@suse.cz>
21721
21722 * cfg.c (initialize_original_copy_tables):Use new type-based
21723 pool allocator.
21724 (free_original_copy_tables) Likewise.
21725 (copy_original_table_clear) Likewise.
21726 (copy_original_table_set) Likewise.
21727
21728 2015-06-01 Martin Liska <mliska@suse.cz>
21729
21730 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
21731 pool allocator.
21732 (asan_mem_ref_new) Likewise.
21733 (free_mem_ref_resources) Likewise.
21734
21735 2015-06-01 Martin Liska <mliska@suse.cz>
21736
21737 * var-tracking.c (variable_htab_free):Use new type-based
21738 pool allocator.
21739 (attrs_list_clear) Likewise.
21740 (attrs_list_insert) Likewise.
21741 (attrs_list_copy) Likewise.
21742 (shared_hash_unshare) Likewise.
21743 (shared_hash_destroy) Likewise.
21744 (unshare_variable) Likewise.
21745 (var_reg_delete_and_set) Likewise.
21746 (var_reg_delete) Likewise.
21747 (var_regno_delete) Likewise.
21748 (drop_overlapping_mem_locs) Likewise.
21749 (variable_union) Likewise.
21750 (insert_into_intersection) Likewise.
21751 (canonicalize_values_star) Likewise.
21752 (variable_merge_over_cur) Likewise.
21753 (dataflow_set_merge) Likewise.
21754 (remove_duplicate_values) Likewise.
21755 (variable_post_merge_new_vals) Likewise.
21756 (dataflow_set_preserve_mem_locs) Likewise.
21757 (dataflow_set_remove_mem_locs) Likewise.
21758 (variable_from_dropped) Likewise.
21759 (variable_was_changed) Likewise.
21760 (set_slot_part) Likewise.
21761 (clobber_slot_part) Likewise.
21762 (delete_slot_part) Likewise.
21763 (loc_exp_insert_dep) Likewise.
21764 (notify_dependents_of_changed_value) Likewise.
21765 (emit_notes_for_differences_1) Likewise.
21766 (vt_emit_notes) Likewise.
21767 (vt_initialize) Likewise.
21768 (vt_finalize) Likewise.
21769
21770 2015-06-01 Martin Liska <mliska@suse.cz>
21771
21772 * ira-color.c (init_update_cost_records):Use new type-based
21773 pool allocator.
21774 (get_update_cost_record) Likewise.
21775 (free_update_cost_record_list) Likewise.
21776 (finish_update_cost_records) Likewise.
21777 (initiate_cost_update) Likewise.
21778
21779 2015-06-01 Martin Liska <mliska@suse.cz>
21780
21781 * lra.c (init_insn_regs): Use new type-based pool allocator.
21782 (new_insn_reg) Likewise.
21783 (free_insn_reg) Likewise.
21784 (free_insn_regs) Likewise.
21785 (finish_insn_regs) Likewise.
21786 (init_insn_recog_data) Likewise.
21787 (init_reg_info) Likewise.
21788 (finish_reg_info) Likewise.
21789 (lra_free_copies) Likewise.
21790 (lra_create_copy) Likewise.
21791 (invalidate_insn_data_regno_info) Likewise.
21792
21793 2015-06-01 Martin Liska <mliska@suse.cz>
21794
21795 * lra-lives.c (free_live_range): Use new type-based pool allocator.
21796 (free_live_range_list) Likewise.
21797 (create_live_range) Likewise.
21798 (copy_live_range) Likewise.
21799 (lra_merge_live_ranges) Likewise.
21800 (remove_some_program_points_and_update_live_ranges) Likewise.
21801 (lra_live_ranges_init) Likewise.
21802 (lra_live_ranges_finish) Likewise.
21803
21804 2015-06-01 Martin Liska <mliska@suse.cz>
21805
21806 * et-forest.c (et_new_occ): Use new type-based pool allocator.
21807 (et_new_tree): Likewise.
21808 (et_free_tree): Likewise.
21809 (et_free_tree_force): Likewise.
21810 (et_free_pools): Likewise.
21811 (et_split): Likewise.
21812
21813 2015-06-01 Martin Liska <mliska@suse.cz>
21814
21815 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
21816 to header file.
21817 * alloc-pool.h (pool_allocator::pool_allocator): New function.
21818 (pool_allocator::release): Likewise.
21819 (inline pool_allocator::release_if_empty): Likewise.
21820 (inline pool_allocator::~pool_allocator): Likewise.
21821 (pool_allocator::allocate): Likewise.
21822 (pool_allocator::remove): Likewise.
21823
21824 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21825
21826 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
21827 in comment.
21828
21829 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21830
21831 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
21832 to fusible_ops.
21833 * config/arm/arm.c (arm_print_tune_info): Likewise.
21834 (arm_macro_fusion_p): Likewise.
21835 (arm_macro_fusion_pair_p): Likewise.
21836
21837 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21838
21839 * config/aarch64/aarch64-protos.h (tune_params): Rename
21840 fuseable_ops to fusible_ops.
21841 * config/aarch64/aarch64.c (generic_tunings): Rename
21842 fuseable_ops to fusible_ops.
21843 (cortexa53_tunings): Likewise.
21844 (cortexa57_tunings): Likewise.
21845 (thunderx_tunings): Likewise.
21846 (xgene1_tunings): Likewise.
21847 (aarch64_macro_fusion_p): Likewise.
21848 (aarch64_macro_fusion_pair_p): Likewise.
21849
21850 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
21851
21852 * config/s390/driver-native.c: New file.
21853 * config/s390/x-native: New file.
21854 * config.host: Add new files for s390.
21855 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
21856 and -march=native
21857 * config.gcc: Likewise.
21858 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
21859 * config/s390/s390-opts.h (enum processor_type): Ditto.
21860 * config/s390/s390.c (s390_option_override): Catch unhandled
21861 PROCESSOR_NATIVE
21862
21863 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
21864
21865 PR target/65527
21866 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
21867 redirection for instrumented calls.
21868 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
21869 (append_compiler_options): Append -fcheck-pointer-bounds.
21870 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
21871 (chkp_redirect_edge): New.
21872 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
21873 (chkp_redirect_edge): New.
21874
21875 2015-06-01 Richard Biener <rguenther@suse.de>
21876
21877 PR tree-optimization/66280
21878 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
21879 def-use walking.
21880
21881 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21882
21883 * config/aarch64/aarch64.md
21884 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
21885 logic_shift_imm.
21886
21887 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
21888
21889 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
21890 Remove obsolete kludge.
21891
21892 2015-06-01 Richard Biener <rguenther@suse.de>
21893
21894 * tree-ssa-reassoc.c (get_rank): Simplify.
21895
21896 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
21897
21898 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
21899 * configure: Regenerated.
21900
21901 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
21902
21903 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
21904 issue (add space between string literal and macro).
21905 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
21906
21907 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
21908
21909 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
21910 implict or explicit -fPIE or -fpie.
21911
21912 2015-05-30 Mike Frysinger <vapier@gentoo.org>
21913
21914 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
21915
21916 2015-05-28 DJ Delorie <dj@redhat.com>
21917
21918 * expmed.c (extract_bit_field_1): Avoid clobbering a
21919 yet-to-be-used base/index register.
21920
21921 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
21922
21923 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
21924 (alias_stats): Add num_universal.
21925 (alias_set_subset_of): Special case pointers; be ready for NULL
21926 children.
21927 (alias_sets_conflict_p): Special case pointers; be ready for NULL
21928 children.
21929 (init_alias_set_entry): Break out from ...
21930 (record_alias_subset): ... here; propagate new fields;
21931 allocate children only when really needed.
21932 (get_alias_set): Do less generous pointer globbing.
21933 (dump_alias_stats_in_alias_c): Update statistics.
21934
21935 2015-05-30 Alan Modra <amodra@gmail.com>
21936
21937 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
21938 correct block for use of r12.
21939 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
21940
21941 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21942
21943 PR target/66215
21944 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
21945 with -mhotpatch=.
21946
21947 2015-05-29 Jakub Jelinek <jakub@redhat.com>
21948
21949 PR tree-optimization/66142
21950 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
21951 virtual phis that feed themselves.
21952
21953 2015-05-29 Richard Biener <rguenther@suse.de>
21954
21955 PR tree-optimization/66314
21956 * tree-ssa-threadupdate.c (create_block_for_threading): Add
21957 parameter that says which loop the new block belongs to.
21958 (ssa_create_duplicates): Blocks duplicated for the threaded
21959 path belong to the loop of the thread destination.
21960
21961 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21962
21963 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
21964 to cleanup-saved-temps.
21965 * doc/sourcebuild.texi (Clean up generated test files): Expand
21966 introduction.
21967 (dg-keep-saved-temps): Document new proc.
21968 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
21969 cleanup-saved-temps): Remove.
21970
21971 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
21972
21973 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
21974 gcc_AC_CHECK_DECLS.
21975 * configure: Regenerate.
21976
21977 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21978
21979 * config/nios2/linux.h (CPP_SPEC): Define.
21980
21981 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21982
21983 * config/microblaze/linux.h (CPP_SPEC): Define.
21984
21985 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21986
21987 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
21988 -pthread is specified.
21989
21990 2015-05-28 Richard Biener <rguenther@suse.de>
21991
21992 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
21993 (vect_fixup_scalar_cycles_with_patterns): Likewise.
21994 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
21995 after pattern recog.
21996 (vect_create_epilog_for_reduction): Properly handle reductions
21997 with patterns.
21998 (vectorizable_reduction): Likewise.
21999 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
22000 reduction chains.
22001 (vect_get_constant_vectors): Create the correct number of
22002 initial values for reductions.
22003 (vect_schedule_slp_instance): Handle reduction chains that are
22004 type changing properly.
22005 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
22006
22007 2015-05-28 Richard Biener <rguenther@suse.de>
22008
22009 PR tree-optimization/66142
22010 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
22011 values better in memcpy destination handling. Handle non-aliasing
22012 we discover here.
22013
22014 2015-05-28 Lawrence Velázquez <vq@larryv.me>
22015
22016 PR target/63810
22017 * config/darwin-c.c (version_components): New global enum.
22018 (parse_version, version_as_legacy_macro)
22019 (version_as_modern_macro, macosx_version_as_macro): New functions.
22020 (version_as_macro): Remove.
22021 (darwin_cpp_builtins): Use new function.
22022
22023 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
22024
22025 * builtins.c (expand_builtin_acc_on_device): Mark parameters
22026 with ATTRIBUTE_UNUSED.
22027
22028 2015-05-28 Julian Brown <julian@codesourcery.com>
22029
22030 PR libgomp/65742
22031
22032 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
22033 sequence for !ACCEL_COMPILER.
22034
22035 2015-05-28 Nick Clifton <nickc@redhat.com>
22036
22037 * config/rx/rx.c (push_regs): New function. Extracts code from...
22038 (rx_expand_prologue): ... here. Use push_regs to push even small
22039 spans of registers.
22040 (pop_regs): New function.
22041 (rx_expand_epilogue): Use pop_regs to pop even small spans of
22042 registers.
22043
22044 2015-05-28 Richard Biener <rguenther@suse.de>
22045
22046 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
22047 member.
22048 (SLP_INSTANCE_BODY_COST_VEC): Remove.
22049 (vect_update_slp_costs_according_to_vf): Likewise.
22050 (vect_slp_analyze_operations): Update prototype.
22051 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
22052 vect_update_slp_costs_according_to_vf, adjust.
22053 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
22054 (vect_analyze_slp_cost_1): Likewise.
22055 (vect_analyze_slp_cost): Likewise. Properly deal with
22056 widening reduction ops. Commit body costs.
22057 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
22058 cost for loops from here.
22059 (vect_slp_analyze_operations): But do it from here when
22060 the vectorization factor is known and stmts are analyzed.
22061 (vect_bb_vectorization_profitable_p): Simplify.
22062 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
22063 (vect_update_slp_costs_according_to_vf): Remove.
22064
22065 2015-05-27 Magnus Granberg <zorry@gentoo.org>
22066 H.J. Lu <hongjiu.lu@intel.com>
22067
22068 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
22069 (BUILD_CFLAGS): Likewise.
22070 (BUILD_CXXFLAGS): Likewise.
22071 (LINKER): Add @NO_PIE_FLAG@.
22072 (BUILD_LDFLAGS): Likewise.
22073 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
22074 --enable-default-pie.
22075 * common.opt (fPIE): Initialize to -1.
22076 (fpie): Likewise.
22077 (no-pie): New option.
22078 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
22079 * configure.ac: Add --enable-default-pie.
22080 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
22081 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
22082 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
22083 * gcc.c (NO_PIE_SPEC): New.
22084 (PIE_SPEC): Likewise.
22085 (NO_FPIE1_SPEC): Likewise.
22086 (FPIE1_SPEC): Likewise.
22087 (NO_FPIE2_SPEC): Likewise.
22088 (FPIE2_SPEC): Likewise.
22089 (NO_FPIE2_SPEC): Likewise.
22090 (FPIE_SPEC): Likewise.
22091 (NO_FPIE_SPEC): Likewise.
22092 (NO_FPIC1_SPEC): Likewise.
22093 (FPIC1_SPEC): Likewise.
22094 (NO_FPIC2_SPEC): Likewise.
22095 (FPIC2_SPEC): Likewise.
22096 (NO_FPIC2_SPEC): Likewise.
22097 (FPIC_SPEC): Likewise.
22098 (NO_FPIC_SPEC): Likewise.
22099 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
22100 (FPIE1_OR_FPIC1_SPEC): Likewise.
22101 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
22102 (FPIE2_OR_FPIC2_SPEC): Likewise.
22103 (NO_FPIE_AND_FPIC_SPEC): Likewise.
22104 (FPIE_OR_FPIC_SPEC): Likewise.
22105 (LD_PIE_SPEC): Likewise.
22106 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
22107 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
22108 * config/darwin.h (PIE_SPEC): Renamed to ...
22109 (DARWIN_PIE_SPEC): This.
22110 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
22111 * config/darwin9.h (PIE_SPEC): Renamed to ...
22112 (DARWIN_PIE_SPEC): This.
22113 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
22114 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22115 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
22116 FPIE2_OR_FPIC2_SPEC.
22117 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
22118 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
22119 * config/sol2.h (ASM_PIC_SPEC): Likewise.
22120 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22121 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22122 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22123 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
22124 * config/m32r/m32r.h (ASM_SPEC): Likewise.
22125 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
22126 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
22127 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
22128 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
22129 * config/sparc/linux.h (ASM_SPEC): Likewise.
22130 * config/sparc/linux64.h (ASM_SPEC): Likewise.
22131 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
22132 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
22133 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22134 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22135 * config/sparc/sparc.h (ASM_SPEC): Likewise.
22136 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
22137 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
22138 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
22139 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
22140 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
22141 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
22142 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
22143 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
22144 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
22145 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
22146 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
22147 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
22148 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22149 * config/vax/linux.h (ASM_SPEC): Likewise.
22150 * doc/install.texi: Document --enable-default-pie.
22151 * doc/invoke.texi: Document -no-pie.
22152 * config.in: Regenerated.
22153 * configure: Likewise.
22154
22155 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
22156
22157 PR rtl-optimization/66168
22158 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
22159 can_move_invariant_reg.
22160
22161 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
22162
22163 PR target/66148
22164 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
22165 REG_EQUAL note when doing insert.
22166
22167 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
22168 instead of "%d" for 'o' operand.
22169
22170 2015-05-27 Nathan Sidwell <nathan@acm.org>
22171
22172 PR c++/66270
22173 * tree.c (build_pointer_type_for_mode): Canonical type does not
22174 inherit can_alias_all.
22175 (build_reference_type_for_mode): Likewise.
22176
22177 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
22178
22179 * expr.h (array_at_struct_end_p): Move to...
22180 (array_ref_element_size): Likewise.
22181 (component_ref_field_offset): Likewise.
22182 * tree.h (array_ref_element_size): ...here.
22183 (array_at_struct_end_p): Likewise.
22184 (component_ref_field_offset): Likewise.
22185 * expr.c (array_ref_element_size): Move to...
22186 (array_ref_low_bound): Likewise.
22187 (array_at_struct_end_p): Likewise.
22188 (array_ref_up_bound): Likewise.
22189 (component_ref_field_offset): Likewise.
22190 * tree.c (array_ref_element_size): ...here.
22191 (array_ref_low_bound): Likewise.
22192 (array_ref_up_bound): Likewise.
22193 (array_at_struct_end_p): Likewise.
22194 (component_ref_field_offset): Likewise.
22195
22196 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
22197 Szabolcs Nagy <szabolcs.nagy@arm.com>
22198
22199 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
22200
22201 2015-05-27 Jason Merrill <jason@redhat.com>
22202
22203 PR bootstrap/66304
22204 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
22205 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
22206 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
22207
22208 2015-05-22 Aditya Kumar <hiraditya@msn.com>
22209
22210 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
22211 is true.
22212
22213 * statistics.c (statistics_fini_pass): Print pass name.
22214
22215 2015-05-27 Richard Biener <rguenther@suse.de>
22216
22217 PR tree-optimization/66272
22218 Revert parts of
22219 2014-08-15 Richard Biener <rguenther@suse.de>
22220
22221 PR tree-optimization/62031
22222 * tree-data-ref.c (dr_analyze_indices): Do not set
22223 DR_UNCONSTRAINED_BASE.
22224 (dr_may_alias_p): All indirect accesses have to go the
22225 formerly DR_UNCONSTRAINED_BASE path.
22226 * tree-data-ref.h (struct indices): Remove
22227 unconstrained_base member.
22228 (DR_UNCONSTRAINED_BASE): Remove.
22229
22230 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
22231
22232 * dwarf2out.c: Remove block_map.
22233 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
22234 (gen_lexical_block_die): Same.
22235 (dwarf2out_function_decl): Remove block_map use.
22236 (dwarf2out_c_finalize): Same.
22237 * tree-core.h (struct tree_block): Add die field.
22238 * tree.h (BLOCK_DIE): New.
22239
22240 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22241
22242 PR target/65358
22243 * expr.c (memory_load_overlap): New function.
22244 (emit_push_insn): When pushing partial args to the stack would
22245 clobber the register part load the overlapping part into a pseudo
22246 and put it into the hard reg after pushing. Change return type
22247 to bool. Add bool argument.
22248 * expr.h (emit_push_insn): Change return type to bool.
22249 Add bool argument.
22250 * calls.c (expand_call): Cancel sibcall optimization when encountering
22251 partial argument on targets with ARGS_GROW_DOWNWARD and
22252 !STACK_GROWS_DOWNWARD.
22253 (emit_library_call_value_1): Update callsite of emit_push_insn.
22254 (store_one_arg): Likewise.
22255
22256 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
22257
22258 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
22259
22260 2015-05-27 Martin Liska <mliska@suse.cz>
22261
22262 * Makefile.in: Add additional dependencies related to memory report
22263 enhancement.
22264 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
22265 * bitmap.c (struct bitmap_descriptor_d): Remove.
22266 (struct loc): Likewise.
22267 (struct bitmap_desc_hasher): Likewise.
22268 (bitmap_desc_hasher::hash): Likewise.
22269 (bitmap_desc_hasher::equal): Likewise.
22270 (get_bitmap_descriptor): Likewise.
22271 (bitmap_register): User new memory descriptor API.
22272 (register_overhead): Likewise.
22273 (bitmap_find_bit): Register nsearches and search_iter statistics.
22274 (struct bitmap_output_info): Remove.
22275 (print_statistics): Likewise.
22276 (dump_bitmap_statistics): Use new memory descriptor.
22277 * bitmap.h (struct bitmap_usage): New class.
22278 * genmatch.c: Extend header file inclusion.
22279 * genpreds.c: Likewise.
22280 * ggc-common.c (struct ggc_usage): New class.
22281 (struct ggc_loc_desc_hasher): Remove.
22282 (ggc_loc_desc_hasher::hash): Likewise.
22283 (ggc_loc_desc_hasher::equal): Likewise.
22284 (struct ggc_ptr_hash_entry): Likewise.
22285 (struct ptr_hash_hasher): Likewise.
22286 (ptr_hash_hasher::hash): Likewise.
22287 (ptr_hash_hasher::equal): Likewise.
22288 (make_loc_descriptor): Likewise.
22289 (ggc_prune_ptr): Likewise.
22290 (dump_ggc_loc_statistics): Use new memory descriptor.
22291 (ggc_record_overhead): Likewise.
22292 (ggc_free_overhead): Likewise.
22293 (final_cmp_statistic): Remove.
22294 (cmp_statistic): Likewise.
22295 (ggc_add_statistics): Liekwise.
22296 (ggc_prune_overhead_list): Likewise.
22297 * hash-map-traits.h: New file.
22298 * hash-map.h (struct default_hashmap_traits): Move the traits to a
22299 separate header file.
22300 * hash-set.h: Pass memory statistics info to ctor.
22301 * hash-table.c (void dump_hash_table_loc_statistics): New function.
22302 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
22303 (hash_table::~hash_table): Register memory release operation.
22304 (hash_table::alloc_entries): Handle memory allocation operation.
22305 (hash_table::expand): Likewise.
22306 * inchash.c (iterative_hash_hashval_t): Move implementation to header
22307 file.
22308 (iterative_hash_host_wide_int): Likewise.
22309 * inchash.h (class hash): Likewise.
22310 * mem-stats-traits.h: New file.
22311 * mem-stats.h: New file.
22312 (mem_location): Add new class.
22313 (mem_usage): Likewise.
22314 (mem_alloc_description): Likewise.
22315 * sese.c: Add new header file inclusision.
22316 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
22317 and hash_set.
22318 * tree-sra.c: Add new header file inclusision.
22319 * vec.c (struct vec_descriptor): Remove.
22320 (hash_descriptor): Likewise.
22321 (struct vec_usage): Likewise.
22322 (struct ptr_hash_entry): Likewise.
22323 (hash_ptr): Likewise.
22324 (eq_ptr): Likewise.
22325 (vec_prefix::register_overhead): Use new memory descriptor API.
22326 (vec_prefix::release_overhead): Likewise.
22327 (add_statistics): Remove.
22328 (dump_vec_loc_statistics): Use new memory descriptor API.
22329 * vec.h (struct vec_prefix): Likewise.
22330 (va_heap::reserve): Likewise.
22331 (va_heap::release): Likewise.
22332 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
22333
22334 2015-05-27 Richard Biener <rguenther@suse.de>
22335
22336 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
22337 earlier and remove ??? comment.
22338 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
22339 and got called from loop analysis bail out. Always pass the SLP
22340 node to the vectorizable_* functions.
22341 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
22342 the premature SLP check here.
22343 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
22344 detected SLP stmts.
22345 (vect_detect_hybrid_slp_1): Likewise.
22346
22347 2015-05-26 Jeff Law <law@redhat.com>
22348
22349 * combine.c (find_split_point): Verify that the shift count is a
22350 constant when choosing (plus (ashift ...)) as a split point.
22351
22352 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
22353 No functional changes.
22354
22355 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
22356
22357 * ipa-polymorphic-call.c
22358 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
22359 case when call target is already known.
22360
22361 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
22362
22363 PR target/65979
22364 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
22365 take into account the case that operands[1] and operands[2]
22366 are the same register.
22367
22368 2015-05-26 Michael Matz <matz@suse.de>
22369
22370 PR middle-end/66251
22371
22372 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
22373 stores.
22374 (vect_create_vectorized_demotion_stmts): Always set
22375 STMT_VINFO_VEC_STMT, also with SLP.
22376 (vectorizable_store): Handle strided group stores.
22377
22378 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22379
22380 PR target/66049
22381 * config/aarch64/aarch64.md
22382 (*adds_shift_imm_<mode>): New pattern.
22383 (*subs_shift_imm_<mode>): Likewise.
22384 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22385 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22386 (*add_uxt<mode>_shift2): Likewise.
22387 (*add_uxtsi_shift2_uxtw): Likewise.
22388 (*sub_uxt<mode>_shift2): Likewise.
22389 (*sub_uxtsi_shift2_uxtw): Likewise.
22390
22391 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
22392
22393 * config/rs6000/constraints.md (Y, U): Use match_test.
22394
22395 2015-05-26 Christian Bruel <christian.bruel@st.com>
22396
22397 PR target/52144
22398 * config/arm/arm.c (arm_option_check_internal)
22399 (arm_option_params_internal): Check opts->target_flags to set macros.
22400 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22401 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
22402 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22403 (builtin_define): Replaced with def_or_undef_macro.
22404 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22405 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
22406 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22407 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
22408 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
22409 (TARGET_ARM_FEATURE_LDREX_P)
22410 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
22411 * config/arm/arm-c.c (def_or_undef_macro): New function.
22412 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
22413
22414 2015-05-26 Christian Bruel <christian.bruel@st.com>
22415
22416 * c-common.h (builtin_define_with_int_value)
22417 (builtin_define_type_sizeof): Declare.
22418 * c-cppbuiltin.c (builtin_define_with_int_value)
22419 (builtin_define_type_sizeof): Externalize.
22420 (builtin_define_std): Cleanup declaration.
22421 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
22422 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
22423 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
22424 (builtin_define, builtin_assert): New macros.
22425
22426 2015-05-26 Richard Biener <rguenther@suse.de>
22427
22428 PR tree-optimization/66142
22429 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
22430 MEM_REFs for the same base address.
22431
22432 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22433
22434 PR ipa/66181
22435 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
22436
22437 2015-05-26 Jason Merrill <jason@redhat.com>
22438
22439 * configure.ac: Set CXXFLAGS for ISL test.
22440 * configure: Regenerate.
22441
22442 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
22443 strstr and basename.
22444 * configure: Regenerate.
22445
22446 2015-05-26 Richard Biener <rguenther@suse.de>
22447
22448 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
22449 X % C -> X & (C - 1) for C being a power-of two to ...
22450 * match.pd: ... patterns.
22451
22452 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
22453
22454 * match.pd (swapped_tcc_comparison): New operator list.
22455 (-A CMP -B): New simplification.
22456 * fold-const.c (fold_comparison): Remove corresponding code.
22457
22458 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
22459
22460 * caller-save.c (init_caller_save): Base temporary register numbers
22461 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
22462 * cfgloopanal.c (init_set_costs): Likewise.
22463 * dojump.c (prefer_and_bit_test): Likewise.
22464 * expr.c (init_expr_target): Likewise.
22465 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22466 * lower-subreg.c (init_lower_subreg): Likewise.
22467 * postreload.c (reload_cse_regs_1): Likewise.
22468
22469 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
22470
22471 * gensupport.h (compute_test_codes): Declare.
22472 * gensupport.c (compute_predicate_codes): Rename to...
22473 (compute_test_codes): ...this. Generalize error message.
22474 (process_define_predicate): Update accordingly.
22475 * genpreds.c (compute_maybe_allows): Delete.
22476 (add_constraint): Use compute_test_codes to determine whether
22477 something can accept a SUBREG, REG or MEM.
22478
22479 2015-05-26 Torvald Riegel <triegel@redhat.com>
22480
22481 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
22482 'memory model' to align with C++11; fix description of memory orders;
22483 fix a few typos.
22484
22485 2015-05-26 Richard Biener <rguenther@suse.de>
22486
22487 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
22488 (vect_analyze_loop_operations): ... here. Remove slp parameter,
22489 detect whether we apply SLP. Remove call to
22490 vect_update_slp_costs_according_to_vf.
22491 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
22492 vect_update_slp_costs_according_to_vf from here. Dispatch
22493 to vect_slp_analyze_operations to analyze SLP stmts.
22494 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
22495 unused bb_vec_info parameter, adjust assert.
22496 (vect_slp_analyze_operations): Pass in the slp instance tree
22497 instead of bb_vec_info.
22498 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
22499 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
22500
22501 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
22502
22503 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
22504 Q_REGS. Expand comment.
22505 (REG_CLASS_NAMES): Ditto.
22506 (REG_CLASS_CONTENTS): Ditto.
22507
22508 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
22509
22510 PR target/66274
22511 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
22512 when LEGACY_INT_REGNO_P is processed.
22513
22514 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
22515
22516 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
22517
22518 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22519
22520 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
22521 register if not marked dead/unused, before return.
22522
22523 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22524
22525 PR lto/66180
22526 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
22527 is set; check for assembler name at LTO time.
22528 (type_in_anonymous_namespace): Remove hacks, check that all
22529 anonymous types are called "<anon>"
22530 (odr_type_p): Simplify; add check for "<anon>"
22531 (odr_subtypes_equivalent): Add odr_type_p check.
22532 * tree.c (need_assembler_name_p): Even anonymous namespace needs
22533 assembler name.
22534
22535 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22536
22537 * ipa-utils.h (method_class_type): Remove.
22538 * cgraphunit.c (walk_polymorphic_call_targets): Use
22539 TYPE_METHOD_BASETYPE.
22540 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
22541 on main variants only.
22542 (method_class_type): Remove.
22543 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
22544 (build_type_inheritance_graph): Likewise.
22545 * ipa-icf.c (sem_function::equals_wpa): Likewise.
22546 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
22547 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
22548
22549 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22550
22551 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
22552 is_typedef_decl, typedef_variant_p): Constify.
22553 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
22554 is_typedef_decl, typedef_variant_p): Constify.
22555
22556 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22557
22558 * defaults.h (gen_tablejump): New function.
22559 (HAVE_tablejump): Add default value.
22560 * expr.c: Adjust.
22561 * stmt.c: Likewise.
22562
22563 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22564
22565 * defaults.h (gen_store_multiple): New function.
22566 (HAVE_store_multiple): Add default value.
22567 * expr.c (move_block_from_reg): Adjust.
22568
22569 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22570
22571 * defaults.h (gen_load_multiple): New function.
22572 (HAVE_load_multiple): Add default value.
22573 * expr.c (move_block_to_reg): Adjust.
22574
22575 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22576
22577 * defaults.h (gen_mem_signal_fence): New function.
22578 (HAVE_mem_signal_fence): Add default value.
22579 * optabs.c: Adjust.
22580
22581 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22582
22583 * defaults.h (gen_memory_barrier): New function.
22584 (HAVE_memory_barrier): Add default value.
22585 * optabs.c: Adjust.
22586
22587 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22588
22589 * defaults.h (gen_mem_thread_fence): New function.
22590 (HAVE_mem_thread_fence): Add default definition.
22591 * optabs.c: Adjust.
22592
22593 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22594
22595 * combine.c (find_split_point): Check the value of HAVE_lo_sum
22596 instead of if it is defined.
22597 (combine_simplify_rtx): Likewise.
22598 * lra-constraints.c (process_address_1): Likewise.
22599 * config/darwin.c: Adjust.
22600 * genconfig.c (main): Always define HAVE_lo_sum.
22601
22602 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22603
22604 * genmatch.c (parser::parse_operation): Reject expanding
22605 operator-list inside 'for'.
22606
22607 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22608
22609 * genmatch.c (parser::parse_for): Reject iterator if used as
22610 operator-list.
22611
22612 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22613
22614 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
22615 after end of id-list.
22616
22617 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22618
22619 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
22620 we do not try to compute canonical type for type that does not need
22621 alias set.
22622 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
22623 FUNCITON_TYPE.
22624 * tree.h (type_with_alias_set_p): New.
22625
22626 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22627
22628 * tree.c (gimple_canonical_types_compatible_p): Do not compare
22629 function attributes.
22630 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
22631
22632 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
22633
22634 * Makefile.in (check_gcc_parallelize): Delete.
22635 (lang_checks_parallelized): Update comment.
22636
22637 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
22638
22639 PR rtl-optimization/66237
22640 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
22641 location of an "as_a" cast.
22642
22643 2015-05-22 Jeff Law <law@redhat.com>
22644
22645 * config/pa/pa.md (non-canonical shift-add insns): Remove.
22646 (peepholes with non-canonical RTL sources): Remove.
22647 (peepholes for indexed stores of FP regs in integer modes): Match and
22648 generate canonical RTL.
22649
22650 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22651
22652 PR tree-optimization/63387
22653 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
22654 ((x ord x) & (y ord y) -> (x ord y),
22655 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
22656 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
22657 vectors like scalars.
22658
22659 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22660
22661 * convert.c (convert_to_integer, convert_to_vector): Include the
22662 types in the error message.
22663
22664 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22665
22666 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
22667 simplifications.
22668
22669 2015-05-22 Jeff Law <law@redhat.com>
22670
22671 * config/pa/pa.md (integer_indexed_store splitters): Use
22672 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
22673 insns -- adjusting the constant 2nd operand accordingly.
22674
22675 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
22676 (plus (ashift X log2) Y) if it is a split point.
22677
22678 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
22679 out of hppa_legitimize_address to handle both forms of a multiply
22680 by 2, 4 or 8.
22681 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
22682 Always generate the ASHIFT variant as the result is not directly
22683 used in a MEM. Update comments and refactor slightly to improve
22684 readability.
22685
22686 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22687
22688 PR target/65491
22689 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
22690 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
22691 (aarch64_composite_type_p): Return false if given type and mode are
22692 for a short vector.
22693
22694 2015-05-22 Richard Biener <rguenther@suse.de>
22695
22696 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
22697 member.
22698 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
22699 patterns when determining whether SLP is pure.
22700 (vect_is_slp_reduction): Remove check for pattern stmts.
22701 (vect_is_simple_reduction_1): Remove dead code.
22702 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
22703 (vect_get_and_check_slp_defs): Pass in the stmt number.
22704 Allow the first def in a reduction to be not a pattern stmt when
22705 the rest of the stmts def are patterns.
22706 (vect_build_slp_tree_1): Allow tcc_expression codes like
22707 SAD_EXPR and DOT_PROD_EXPR.
22708 (vect_build_slp_tree): Adjust.
22709 (vect_analyze_slp): Refactor and move BB vect error message ...
22710 (vect_slp_analyze_bb_1): ... here.
22711
22712 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
22713
22714 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
22715 for CSWTCH temporary.
22716
22717 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22718
22719 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
22720 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
22721 unknown unspecs.
22722
22723 2015-05-22 Richard Biener <rguenther@suse.de>
22724
22725 PR tree-optimization/66251
22726 * tree-vect-stmts.c (vectorizable_conversion): Properly
22727 set STMT_VINFO_VEC_STMT even for the SLP case.
22728
22729 2015-05-22 Marek Polacek <polacek@redhat.com>
22730
22731 * doc/extend.texi: Use @pxref instead of @xref.
22732
22733 2015-05-22 hiraditya <hiraditya@msn.com>
22734
22735 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
22736 redundant if.
22737
22738 2015-05-22 Richard Biener <rguenther@suse.de>
22739
22740 PR tree-optimization/65701
22741 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22742 Move peeling cost models into one place. Peel for alignment
22743 for single loads only if an aligned load is cheaper than
22744 an unaligned load.
22745
22746 2015-05-22 Marek Polacek <polacek@redhat.com>
22747
22748 PR c/47043
22749 * doc/extend.texi (Enumerator Attributes): New section.
22750 Document syntax of enumerator attributes.
22751
22752 2015-05-22 Richard Biener <rguenther@suse.de>
22753
22754 * tree-vect-loop.c (get_reduction_op): New function.
22755 (vect_model_reduction_cost): Use it, add reduc_index parameter.
22756 Make ready for BB reductions.
22757 (vect_create_epilog_for_reduction): Use get_reduction_op.
22758 (vectorizable_reduction): Init reduc_index to a valid value.
22759 Adjust vect_model_reduction_cost call.
22760 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
22761 operand for reduction defaults. Add SAD_EXPR support.
22762 Assert we have a neutral op for SLP reductions.
22763 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
22764 walking pattern stmt ops only recurse to SSA names.
22765
22766 2015-05-22 Richard Biener <rguenther@suse.de>
22767
22768 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
22769 assert with guard, remove check on detected reduction.
22770 (vect_recog_sad_pattern): Likewise.
22771 (vect_recog_widen_sum_pattern): Likewise.
22772
22773 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22774
22775 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
22776 __always_inline__ attribute.
22777 (vaesdq_u8): Likewise.
22778 (vaesmcq_u8): Likewise.
22779 (vaesimcq_u8): Likewise.
22780 (vsha1cq_u32): Likewise.
22781 (vsha1mq_u32): Likewise.
22782 (vsha1pq_u32): Likewise.
22783 (vsha1h_u32): Likewise.
22784 (vsha1su0q_u32): Likewise.
22785 (vsha1su1q_u32): Likewise.
22786 (vsha256hq_u32): Likewise.
22787 (vsha256h2q_u32): Likewise.
22788 (vsha256su0q_u32): Likewise.
22789 (vsha256su1q_u32): Likewise.
22790 (vmull_p64): Likewise.
22791 (vmull_high_p64): Likewise.
22792
22793 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22794
22795 * final.c (final_scan_insn): Don't check HAVE_peephole with the
22796 preprocessor.
22797 * output.h: Likewise.
22798 * genconfig.c (main): Alwways define HAVE_peephole.
22799 * genpeep.c: Don't emit checks of HAVE_peephole.
22800
22801 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22802
22803 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
22804 check HAVE_conditional_move with the preprocessor.
22805
22806 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22807
22808 * genconfig.c (main): Always define HAVE_conditional_move.
22809 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
22810 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
22811 is defined.
22812
22813 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22814
22815 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
22816 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
22817 and FRAME_POINTER_REGNUM with the preprocessor.
22818
22819 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22820
22821 * defaults.h: Add default for STACK_PUSH_CODE.
22822 * expr.c: Don't redefine STACK_PUSH_CODE.
22823 * recog.c: Likewise.
22824
22825 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22826
22827 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
22828 sched-deps.c: Use if instead of preprocessor checks with
22829 STACK_GROWS_DOWNWARD.
22830
22831 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22832
22833 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
22834 is defined.
22835 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
22836 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
22837 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
22838 * doc/tm.texi: Regenerate.
22839
22840 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
22841
22842 PR target/66232
22843 * config/i386/constraints.md (Bg): New constraint for GOT memory
22844 operand.
22845 * config/i386/i386.md (*call_got_x32): New pattern.
22846 (*call_value_got_x32): Likewise.
22847 * config/i386/predicates.md (GOT_memory_operand): New predicate.
22848
22849 2015-05-21 Jakub Jelinek <jakub@redhat.com>
22850
22851 PR tree-optimization/66233
22852 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
22853 Simplify.
22854
22855 2015-05-21 Jeff Law <law@redhat.com>
22856
22857 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
22858 than MULT for shadd sequences.
22859
22860 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
22861
22862 * alias.c (alias_stats): New static var.
22863 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
22864 (dump_alias_stats_in_alias_c): New function.
22865 * alias.h (dump_alias_stats_in_alias_c): Declare.
22866 * tree-ssa-alias.c (dump_alias_stats): Call it.
22867
22868 2015-05-08 Michael Matz <matz@suse.de>
22869
22870 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
22871 to strided_p.
22872 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
22873 (STMT_VINFO_STRIDED_P): ... this.
22874 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
22875 (vect_verify_datarefs_alignment): Likewise.
22876 (vect_enhance_data_refs_alignment): Likewise.
22877 (vect_analyze_data_ref_access): Likewise.
22878 (vect_analyze_data_refs): Accept strided stores.
22879 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
22880 (vect_model_load_cost): Adjust for macro rename.
22881 (vectorizable_mask_load_store): Likewise.
22882 (vectorizable_load): Likewise.
22883 (vectorizable_store): Open code strided stores.
22884
22885 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22886
22887 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
22888 Document sqrt_insn.
22889
22890 2015-05-21 Richard Biener <rguenther@suse.de>
22891
22892 PR c++/66211
22893 * match.pd: Guard pattern optimzing (int)(float)int
22894 conversions to apply only on GIMPLE.
22895
22896 2015-05-21 Jeff Law <law@redhat.com>
22897
22898 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
22899 multiply-accumulate/shift-add insn generation.
22900
22901 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
22902
22903 PR target/54236
22904 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
22905 operands[1] are the same.
22906
22907 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
22908
22909 PR middle-end/66221
22910 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
22911 build_distinct_type_copy to copy bounds.
22912
22913 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
22914
22915 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
22916 Change to unsigned int.
22917
22918 2015-05-20 Jeff Law <law@redhat.com>
22919
22920 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
22921 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
22922 (pa_shadd_constant_p): Allow constants for shadd insns rather
22923 than valid scaling constants for memory addresses.
22924 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
22925 * config/pa/predicates.md (mem_shadd_operand): New predicate.
22926 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
22927 (shift-add insns using ASHIFT): New patterns.
22928
22929 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
22930
22931 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
22932 feasible.
22933 (fix_up_fall_thru_edges): Likewise.
22934 (fix_crossing_conditional_branches): Likewise. Promote jump targets
22935 from to rtx_insn to rtx_code_label where feasible.
22936 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
22937 gen_move_insn (returned type changed to rtx_insn).
22938 * builtins.c (expand_errno_check): Fix arguments of
22939 do_compare_rtx_and_jump (now expects rtx_code_label).
22940 (expand_builtin_acc_on_device): Likewise.
22941 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
22942 invert_jump (now exprects rtx_jump_insn).
22943 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
22944 (construct_init_block): Use rtx_code_label.
22945 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
22946 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
22947 calling redirect_jump.
22948 (patch_jump_insn): Likewise.
22949 (redirect_branch_edge): Likewise.
22950 (force_nonfallthru_and_redirect): Likewise.
22951 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
22952 when suitable.
22953 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
22954 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
22955 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
22956 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
22957 to store the value retured by gen_label_rtx.
22958 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
22959 rtx_jump_insn.
22960 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
22961 (split_branches): Fix calls of redirect_jump.
22962 * dojump.c (jumpifnot): Promote argument type from rtx to
22963 rtx_code_label.
22964 (jumpifnot_1): Likewise.
22965 (jumpif): Likewise.
22966 (jumpif_1): Likewise.
22967 (do_jump_1): Likewise.
22968 (do_jump): Likewise. Use rtx_code_label when feasible.
22969 (do_jump_by_parts_greater_rtx): Likewise.
22970 (do_jump_by_parts_zero_rtx): Likewise.
22971 (do_jump_by_parts_equality_rtx): Likewise.
22972 (do_compare_rtx_and_jump): Likewise.
22973 * dojump.h: Update function prototypes.
22974 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
22975 returns rtx_insn).
22976 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
22977 rtx_jump_insn.
22978 (emit_label_before): Likewise.
22979 (emit_jump_insn_after_noloc): Likewise.
22980 (emit_jump_insn_after_setloc): Likewise.
22981 (emit_jump_insn_after): Likewise
22982 (emit_jump_insn_before_setloc): Likewise.
22983 (emit_jump_insn_before): Likewise.
22984 (emit_label_before): Promote return type to rtx_code_label.
22985 (emit_label): Likewise.
22986 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
22987 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
22988 gen_move_insn.
22989 (emit_stack_restore): Likewise.
22990 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
22991 (do_cmp_and_jump): Likewise.
22992 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
22993 from rtx to rtx_code_label.
22994 (gen_move_insn_uncast): New function.
22995 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
22996 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
22997 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
22998 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
22999 invert_jump_1 and redirect_jump_1.
23000 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
23001 do_compare_rtx_and_jump.
23002 (expand_addsub_overflow): Likewise.
23003 (expand_neg_overflow): Likewise.
23004 (expand_mul_overflow): Likewise.
23005 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
23006 return value of gen_move_insn.
23007 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
23008 * loop-doloop.c (add_test): Use rtx_code_label.
23009 (doloop_modify): Likewise.
23010 (doloop_optimize): Likewise.
23011 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
23012 * lra-constraints.c (emit_spill_move): Remove cast of value returned
23013 by gen_move_insn.
23014 (inherit_reload_reg): Add cast when calling dump_insn_slim.
23015 (split_reg): Likewise.
23016 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
23017 gen_move_insn.
23018 * optabs.c (expand_binop_directly): Remove casts of values returned by
23019 maybe_gen_insn.
23020 (expand_unop_direct): Likewise.
23021 (expand_abs): Likewise.
23022 (maybe_emit_unop_insn): Likewise.
23023 (maybe_gen_insn): Promote return type to rtx_insn.
23024 * optabs.h: Update prototype of maybe_gen_insn.
23025 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
23026 redundant cast.
23027 * recog.c (struct peep2_insn_data): Promote type of insn field to
23028 rtx_insn.
23029 (peep2_reinit_state): Use NULL instead of NULL_RTX.
23030 (peep2_attempt): Remove casts of insn in peep2_insn_data.
23031 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
23032 * recog.h (struct insn_gen_fn): Promote return types of function
23033 pointers and operator ().from rtx to rtx_insn.
23034 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
23035 (fill_eager_delay_slots): Likewise.
23036 (relax_delay_slots): Likewise.
23037 (make_return_insns): Likewise.
23038 (dbr_schedule): Likewise.
23039 (optimize_skips): Likewise.
23040 (reorg_redirect_jump): Likewise.
23041 (fill_slots_from_thread): Likewise.
23042 * reorg.h: Update prototypes.
23043 * resource.c (find_dead_or_set_registers): Use dyn_cast to
23044 rtx_jump_insn instead of check. Use it's jump_target method.
23045 * rtl.h (rtx_jump_insn::jump_label): Define new method.
23046 (rtx_jump_insn::jump_target): Define new method.
23047 (rtx_jump_insn::set_jump_target): Define new method.
23048 * rtlanal.c (tablejump_p): Promote type of one local variable.
23049 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
23050 (sched_analyze_insn): Likewise.
23051 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
23052 (print_insn): Likewise.
23053 * stmt.c (label_rtx): Promote return type to rtx_insn.
23054 (force_label_rtx): Likewise.
23055 (jump_target_rtx): Define new function.
23056 (expand_label): Use it, get rid of one cast.
23057 (expand_naked_return): Promote rtx to rtx_code_label.
23058 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
23059 (expand_case): Use rtx_code_label instread of rtx where feasible.
23060 (expand_sjlj_dispatch_table): Likewise.
23061 (emit_case_nodes): Likewise.
23062 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
23063 * store-motion.c (insert_store): Make use of new return type of
23064 gen_move_insn and remove a cast.
23065 (replace_store_insn): Likewise.
23066
23067 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
23068
23069 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
23070 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
23071
23072 2015-05-20 Jeff Law <law@redhat.com>
23073
23074 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
23075 dispose of the jump thread path when the jump threading
23076 opportunity is cancelled.
23077
23078 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
23079
23080 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
23081 when printing the caret character.
23082
23083 2015-05-20 Marek Polacek <polacek@redhat.com>
23084
23085 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
23086
23087 2015-05-20 Marek Polacek <polacek@redhat.com>
23088
23089 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
23090 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
23091 * gimple-fold.c (canonicalize_bool): Likewise.
23092 (same_bool_result_p): Likewise.
23093 * tree-if-conv.c (parse_predicate): Likewise.
23094
23095 2015-05-20 Marek Polacek <polacek@redhat.com>
23096
23097 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
23098 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
23099
23100 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23101
23102 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
23103 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
23104 values.
23105
23106 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
23107
23108 * config/mips/mips.h (micromips_globals): Declare.
23109
23110 2015-05-20 David Malcolm <dmalcolm@redhat.com>
23111
23112 * timevar.def (TV_INITIALIZE_RTL): New.
23113 * toplev.c (initialize_rtl): Use an auto_timevar to account this
23114 function's time to TV_INITIALIZE_RTL.
23115
23116 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
23117
23118 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
23119 gimple_build_nop calls.
23120 (chkp_find_bounds_for_elem): Likewise.
23121 (chkp_get_zero_bounds): Likewise.
23122 (chkp_get_none_bounds): Likewise.
23123 (chkp_get_bounds_by_definition): Likewise.
23124 (chkp_generate_extern_var_bounds): Likewise.
23125 (chkp_get_bounds_for_decl_addr): Likewise.
23126 (chkp_get_bounds_for_string_cst): Likewise.
23127
23128 2015-05-20 Bin Cheng <bin.cheng@arm.com>
23129
23130 PR tree-optimization/65447
23131 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
23132 (dump_use, dump_uses): Support to dump sub use.
23133 (record_use): New parameters to support sub use. Remove call to
23134 dump_use.
23135 (record_sub_use, record_group_use): New functions.
23136 (compute_max_addr_offset, split_all_small_groups): New functions.
23137 (group_address_uses, rewrite_use_address): New functions.
23138 (strip_offset): New declaration.
23139 (find_interesting_uses_address): Call record_group_use.
23140 (add_candidate): New assertion.
23141 (infinite_cost_p): Move definition forward.
23142 (add_costs): Check INFTY cost and return immediately.
23143 (get_computation_cost_at): Clear setup cost and dependent bitmap
23144 for sub uses.
23145 (determine_use_iv_cost_address): Compute cost for sub uses.
23146 (rewrite_use_address_1): Rename from old rewrite_use_address.
23147 (free_loop_data): Free sub uses.
23148 (tree_ssa_iv_optimize_loop): Call group_address_uses.
23149
23150 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
23151 Jim Wilson <jim.wilson@linaro.org>
23152
23153 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
23154 new fields loadv and storev.
23155 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
23156 Initialize loadv and storev.
23157 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
23158 (cortexa53_extra_costs): Likewise.
23159 (cortexa57_extra_costs): Likewise.
23160 (xgene1_extra_costs): Likewise.
23161 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
23162 rtx_costs.
23163
23164 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
23165
23166 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
23167 storev.
23168 (cortexa8_extra_costs): Likewise.
23169 (cortexa5_extra_costs): Likewise.
23170 (cortexa7_extra_costs): Likewise.
23171 (cortexa12_extra_costs): Likewise.
23172 (cortexa15_extra_costs): Likewise.
23173 (v7m_extra_costs): Likewise.
23174
23175 2015-05-20 Jeff Law <law@redhat.com>
23176
23177 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
23178 instead of open-coded version. Also delete the jump thread created
23179 within this function.
23180
23181 2015-05-20 Alan Modra <amodra@gmail.com>
23182
23183 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
23184 stack adjusting insn. Formatting.
23185 (rs6000_emit_prologue): Track stack adjusting insn, and use of
23186 r12. If possible, emit first -fsplit-stack arg pointer insn
23187 before stack adjust. Don't use r12 to save cr if split-stack.
23188
23189 2015-05-20 Alan Modra <amodra@gmail.com>
23190
23191 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
23192 Define.
23193 (rs6000_supports_split_stack): New function.
23194 * config/rs6000/rs6000.c (machine_function): Add
23195 split_stack_arg_pointer.
23196 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
23197 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
23198 rather than virtual_incoming_args_rtx.
23199 (rs6000_va_start): Likewise.
23200 (split_stack_arg_pointer_used_p): New function.
23201 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
23202 (morestack_ref): New var.
23203 (gen_add3_const, rs6000_expand_split_stack_prologue,
23204 rs6000_internal_arg_pointer, rs6000_live_on_entry,
23205 rs6000_split_stack_space_check): New functions.
23206 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
23207 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
23208 (UNSPECV_SPLIT_STACK_RETURN): Define.
23209 (split_stack_prologue, load_split_stack_limit,
23210 load_split_stack_limit_di, load_split_stack_limit_si,
23211 split_stack_return, split_stack_space_check): New expands and insns.
23212 * config/rs6000/rs6000-protos.h
23213 (rs6000_expand_split_stack_prologue): Declare.
23214 (rs6000_split_stack_space_check): Declare.
23215
23216 2015-05-20 Alan Modra <amodra@gmail.com>
23217
23218 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
23219 (direct_return): Test vrsave_size rather than vrsave_mask.
23220 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
23221 (rs6000_emit_epilogue): Likewise.
23222
23223 2015-05-20 Alan Modra <amodra@gmail.com>
23224
23225 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
23226 when not saving registers.
23227 (debug_stack_info): Adjust to omit printing unused offsets,
23228 as before.
23229 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
23230 expression.
23231
23232 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23233
23234 PR c++/65835
23235 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
23236 value_type to const char *.
23237
23238 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
23239
23240 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
23241 to build a biarch toolchain again.
23242
23243 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
23244
23245 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
23246 or implicit declarations.
23247 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
23248 into it.
23249 (get_odr_type): Check type has linkage before adding bases.
23250 (register_odr_type): Check that type has linkage before adding it.
23251 (type_known_to_have_no_deriavations_p): Rename to ..
23252 (type_known_to_have_no_derivations_p): This one.
23253 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
23254 (type_known_to_have_no_derivations_p): This one.
23255 * ipa-polymorphic-call.c
23256 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
23257 type has linkage.
23258
23259 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
23260
23261 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
23262 (layout_type): Use RECORD_OR_UNION_TYPE_P.
23263
23264 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23265
23266 * config/s390/s390.c (s390_vector_bool_type_p): New function.
23267 (s390_invalid_binary_op): New function.
23268 (TARGET_INVALID_BINARY_OP): Define macro.
23269
23270 2015-05-19 David Sherwood <david.sherwood@arm.com>
23271
23272 * loop-invariant.c (create_new_invariant): Don't calculate address cost
23273 if mode is not a scalar integer.
23274 (get_inv_cost): Increase computational cost for unused invariants.
23275
23276 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23277
23278 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
23279 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
23280 * config/s390/s390-builtin-types.def: New file.
23281 * config/s390/s390-builtins.def: New file.
23282 * config/s390/s390-builtins.h: New file.
23283 * config/s390/s390-c.c: New file.
23284 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
23285 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
23286 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
23287 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
23288 prototypes.
23289 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
23290 Include.
23291 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
23292 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
23293 variable definitions.
23294 (s390_const_operand_ok): New function.
23295 (s390_expand_builtin): Rewrite.
23296 (s390_init_builtins): New function.
23297 (s390_handle_vectorbool_attribute): New function.
23298 (s390_attribute_table): Add s390_vector_bool attribute.
23299 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
23300 (s390_branch_condition_mask): Generate masks for new modes.
23301 (s390_expand_vec_compare_cc): New function.
23302 (s390_mangle_type): Add mangling for vector bool types.
23303 (enum s390_builtin): Remove.
23304 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
23305 efpc builtins.
23306 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
23307 s390_cpu_cpp_builtins.
23308 (REGISTER_TARGET_PRAGMAS): New macro.
23309 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
23310 (insn_cmp mode attribute): Add new CC modes.
23311 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
23312 (lcbb): New pattern definition.
23313 * config/s390/s390intrin.h: Include vecintrin.h.
23314 * config/s390/t-s390: New file.
23315 * config/s390/vecintrin.h: New file.
23316 * config/s390/vector.md: Include vx-builtins.md.
23317 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
23318 support.
23319
23320 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23321
23322 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
23323 CCVFHE.
23324 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
23325 (s390_select_ccmode): Likewise.
23326 (s390_canonicalize_comparison): Swap operands if necessary.
23327 (s390_expand_vec_compare_scalar): Expand DFmode compare using
23328 single element vector instructions.
23329 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
23330 (s390_branch_condition_mask): Generate CC masks for the new modes.
23331 * config/s390/s390.md (v0, vf, vd): New mode attributes.
23332 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
23333 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
23334 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
23335 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
23336 (*extend<DSF:mode><BFP:mode>2): New insn definition.
23337 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
23338 (extend<DSF:mode><BFP:mode>2): Turn into expander.
23339 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
23340 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
23341 (sqrt<mode>2): Add vector instruction.
23342
23343 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23344
23345 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
23346 constraints.
23347 * config/s390/predicates.md (const0_operand, constm1_operand)
23348 (constable_operand): Accept vector operands.
23349 * config/s390/s390-modes.def: Add supported vector modes.
23350 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
23351 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
23352 (s390_bytemask_vector_p, s390_expand_vec_strlen)
23353 (s390_expand_vec_compare, s390_expand_vcond)
23354 (s390_expand_vec_init): Add prototypes.
23355 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
23356 (s390_vector_mode_supported_p): New function.
23357 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
23358 (s390_contiguous_bitmask_vector_p): New function.
23359 (s390_bytemask_vector_p): New function.
23360 (s390_split_ok_p): Vector regs don't work either.
23361 (regclass_map): Add VEC_REGS.
23362 (s390_legitimate_constant_p): Handle vector constants.
23363 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
23364 (legitimate_reload_vector_constant_p): New function.
23365 (s390_preferred_reload_class): Handle CONST_VECTOR.
23366 (s390_reload_symref_address): Likewise.
23367 (s390_secondary_reload): Vector memory instructions only support
23368 short displacements. Rename reload*_nonoffmem* to reload*_la*.
23369 (s390_emit_ccraw_jump): New function.
23370 (s390_expand_vec_strlen): New function.
23371 (s390_expand_vec_compare): New function.
23372 (s390_expand_vcond): New function.
23373 (s390_expand_vec_init): New function.
23374 (s390_dwarf_frame_reg_mode): New function.
23375 (print_operand): Handle addresses with 'O' and 'R' constraints.
23376 (NR_C_MODES, constant_modes): Add vector modes.
23377 (s390_output_pool_entry): Handle vector constants.
23378 (s390_hard_regno_mode_ok): Handle vector registers.
23379 (s390_class_max_nregs): Likewise.
23380 (s390_cannot_change_mode_class): New function.
23381 (s390_invalid_arg_for_unprototyped_fn): New function.
23382 (s390_function_arg_vector): New function.
23383 (s390_function_arg_float): Remove size variable.
23384 (s390_pass_by_reference): Handle vector arguments.
23385 (s390_function_arg_advance): Likewise.
23386 (s390_function_arg): Likewise.
23387 (s390_return_in_memory): Vector values are returned in a VR if
23388 possible.
23389 (s390_function_and_libcall_value): Handle vector arguments.
23390 (s390_gimplify_va_arg): Likewise.
23391 (s390_call_saved_register_used): Consider the arguments named.
23392 (s390_conditional_register_usage): Disable v16-v31 for non-vec
23393 targets.
23394 (s390_preferred_simd_mode): New function.
23395 (s390_support_vector_misalignment): New function.
23396 (s390_vector_alignment): New function.
23397 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
23398 (TARGET_VECTOR_MODE_SUPPORTED_P)
23399 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
23400 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23401 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
23402 (TARGET_VECTOR_ALIGNMENT): Define target macro.
23403 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
23404 (FIRST_PSEUDO_REGISTER): Increase value.
23405 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
23406 (VECTOR_REG_P): Define macros.
23407 (FIXED_REGISTERS, CALL_USED_REGISTERS)
23408 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
23409 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
23410 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
23411 Add vector registers.
23412 (CANNOT_CHANGE_MODE_CLASS): Call C function.
23413 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
23414 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
23415 memory.
23416 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
23417 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
23418 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
23419 (VR*_REGNUM): New constants.
23420 (ALL): New mode iterator.
23421 (INTALL): Remove mode iterator.
23422 Include vector.md.
23423 (movti): Implement TImode moves for VRs.
23424 Disable TImode splitter for VR targets.
23425 Implement splitting TImode GPR<->VR moves.
23426 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
23427 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
23428 reload<mode>_la_in, reload<mode>_la_out.
23429 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
23430 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
23431 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
23432 (mov<mode> SF SD): Prefer lder, lde for loading.
23433 Add lrl and strl instructions.
23434 Add vector instructions.
23435 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
23436 Call s390_expand_vec_strlen on z13.
23437 (*cc_to_int): Change predicate to nonimmediate_operand.
23438 (addti3): Rename to *addti3. New expander.
23439 (subti3): Rename to *subti3. New expander.
23440 * config/s390/vector.md: New file.
23441
23442 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23443
23444 * common/config/s390/s390-common.c (processor_flags_table): Add
23445 z13.
23446 * config.gcc: Add z13.
23447 * config/s390/s390-opts.h (enum processor_type): Add
23448 PROCESSOR_2964_Z13.
23449 * config/s390/s390.c (s390_adjust_priority): Check for
23450 PROCESSOR_2964_Z13.
23451 (s390_reorg): Likewise.
23452 (s390_sched_reorder): Likewise.
23453 (s390_sched_variable_issue): Likewise.
23454 (s390_loop_unroll_adjust): Likewise.
23455 (s390_option_override): Likewise. Default to -mvx when available.
23456 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
23457 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
23458 (TARGET_VX_ABI): Define macros.
23459 macros.
23460 (TARGET_DEFAULT): Add MASK_OPT_VX.
23461 * config/s390/s390.md ("cpu" attribute): Add z13.
23462 ("cpu_facility" attribute): Add vec.
23463 * config/s390/s390.opt (processor_type): Add z13.
23464 (mvx): New options.
23465 * doc/invoke.texi: Add z13 option for -march.
23466
23467 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23468
23469 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
23470 mode check to make sure that only scalar integer values are
23471 accepted.
23472
23473 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
23474
23475 * tree.c (verify_type_variant): Fix #undef.
23476 (gimple_canonical_types_compatible_p): Move here from lto.c
23477 (verify_type): Verify TYPE_CANONICAL compatibility.
23478 * tree.h (gimple_canonical_types_compatible_p): Declare.
23479
23480 2015-05-19 Jakub Jelinek <jakub@redhat.com>
23481
23482 PR middle-end/66199
23483 * tree.h (OMP_TEAMS_COMBINED): Define.
23484 * gimplify.c (enum gimplify_omp_var_data): Add
23485 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
23486 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
23487 (omp_notice_variable): Accept both ORT_TEAMS
23488 and ORT_COMBINED_TEAMS. Don't recurse if
23489 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
23490 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
23491 GOVD_FIRSTPRIVATE.
23492 (omp_no_lastprivate): New function.
23493 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
23494 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
23495 notice_outer and set appropriate bits, otherwise make
23496 sure default(none) combined constructs won't complain.
23497 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
23498 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
23499 omp_no_lastprivate either remove the clause or turn it
23500 into OMP_CLAUSE_PRIVATE.
23501 (gimplify_omp_for): Fix up handling of implicit
23502 lastprivate or linear iterators.
23503 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
23504 ORT_COMBINED_TEAMS.
23505 * omp-low.c (lower_omp_for_lastprivate): For combined
23506 for simd use fd.loop.n2 from the for rather than simd.
23507
23508 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23509
23510 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
23511 instead of gen_rtx_raw_REG.
23512 (cris_expand_epilogue): Likewise.
23513 * config/microblaze/microblaze.c (microblaze_classify_address):
23514 Likewise.
23515 * config/sparc/sparc.md: Likewise.
23516
23517 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
23518
23519 * config/alpha/alpha.c (alpha_legitimize_reload_address)
23520 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
23521 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
23522 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
23523 Use CASE_CONST_SCALAR_INT.
23524 (print_operand) <case 'M'>: Use mode_width_operand to check the
23525 value of the constant.
23526 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
23527 * config/alpha/predicates.md (input_operand): Use general_operand
23528 instead of match_code as operand check.
23529 (symbolic_operand): Use match_code with subexpression digits.
23530 * config/alpha/constraints.md (Q): Ditto.
23531
23532 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23533
23534 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
23535
23536 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23537
23538 * config/s390/s390.c (s390_secondary_reload): Fix check for
23539 load/store relative.
23540
23541 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23542
23543 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
23544 alternative_mask to uint64_t.
23545
23546 2015-05-19 Jakub Jelinek <jakub@redhat.com>
23547
23548 PR tree-optimization/66187
23549 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
23550 Pass TYPE_SIGN to tree_int_cst_min_precision. If
23551 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
23552
23553 2015-05-19 David Malcolm <dmalcolm@redhat.com>
23554
23555 * diagnostic.c (diagnostic_report_current_module): Strengthen
23556 local "new_map" from const line_map * to
23557 const line_map_ordinary *.
23558 * genmatch.c (error_cb): Likewise for local "map".
23559 (output_line_directive): Likewise for local "map".
23560 * input.c (expand_location_1): Likewise for local "map".
23561 Pass NULL rather than &map to
23562 linemap_unwind_to_first_non_reserved_loc, since the value is never
23563 read from there, and the value written back not read from here.
23564 (is_location_from_builtin_token): Strengthen local "map" from
23565 const line_map * to const line_map_ordinary *.
23566 (dump_location_info): Strengthen locals "map" from
23567 line_map *, one to const line_map_ordinary *, the other
23568 to const line_map_macro *.
23569 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
23570 const line_map * to const line_map_macro *.
23571 (maybe_unwind_expanded_macro_loc): Add a call to
23572 linemap_check_macro when writing to the "map" field of the
23573 loc_map_pair.
23574 Introduce local const line_map_ordinary * "ord_map", using it in
23575 place of "map" in the part of the function where we know we have
23576 an ordinary map. Strengthen local "m" from const line_map * to
23577 const line_map_ordinary *.
23578
23579 2015-05-19 Nick Clifton <nickc@redhat.com>
23580
23581 PR target/66156
23582 * config/msp430/msp430.md (zero_extendhisi2): Add support for
23583 separate source and destination registers.
23584
23585 2015-05-19 Richard Biener <rguenther@suse.de>
23586
23587 PR tree-optimization/66165
23588 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
23589 for no load permutation.
23590
23591 PR tree-optimization/66185
23592 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
23593 when building the SLP node from scalars.
23594
23595 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
23596 Tristan Gingold <gingold@adacore.com>
23597
23598 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
23599 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
23600 (expand_stack_restore): Call record_new_stack_level.
23601 (expand_stack_save): Do not call do_pending_stack_adjust.
23602 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
23603 * calls.c (expand_call): Call record_new_stack_level for alloca.
23604 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
23605 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
23606 (update_sjlj_context): New global function.
23607 * except.h (update_sjlj_context): Declare.
23608 * explow.c (record_new_stack_level): New global function.
23609 (allocate_dynamic_stack_space): Call record_new_stack_level.
23610 * explow.h (record_new_stack_level): Declare.
23611 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
23612 * cfgrtl.c (duplicate_insn_chain): Likewise.
23613
23614 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23615
23616 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
23617 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
23618 STACK_GROWS_DOWNWARD as normal if.
23619 (expand_call): Likewise.
23620
23621 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
23622
23623 PR target/54236
23624 * config/sh/sh.md (*round_int_even): New insn_and_split and
23625 accompanying new unnamed split.
23626
23627 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23628
23629 * bitmap.c (bitmap_set_range): Handle count==1 specially.
23630 (bitmap_clear_range): Likewise.
23631 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
23632 bitmap_set_range unconditionally.
23633 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23634 * df-scan.c (df_mark_reg): Likewise.
23635 * haifa-sched.c (setup_ref_regs): Likewise.
23636 * sched-rgn.c (update_live_1): Likewise.
23637
23638 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23639
23640 * regs.h (END_HARD_REGNO): Delete.
23641 (END_REGNO): Move to...
23642 * rtl.h: ...here.
23643 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
23644 * caller-save.c (mark_set_regs): Likewise.
23645 * combine.c (move_deaths, distribute_notes): Likewise.
23646 * cse.c (invalidate, invalidate_for_call): Likewise.
23647 * df-scan.c (df_ref_record): Likewise.
23648 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
23649 (record_last_reg_set_info): Likewise.
23650 * reg-stack.c (convert_regs_exit): Likewise.
23651 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
23652 * resource.c (update_live_status): Likewise.
23653 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
23654
23655 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23656
23657 * rtl.h (reg_info): Add an nregs field.
23658 (REG_NREGS): Use it.
23659 (SET_REGNO_RAW): Delete.
23660 (set_regno_raw): New function.
23661 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
23662 (END_REGNO): Redefine in terms of REG_NREGS.
23663 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
23664 SET_REGNO_RAW.
23665 * emit-rtl.c (set_mode_and_regno): Likewise.
23666 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
23667 instead of SET_REGNO_RAW.
23668
23669 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23670
23671 * rtl.h (PUT_MODE_RAW): New macro.
23672 (PUT_REG_NOTE_KIND): Use it.
23673 (set_mode_and_regno): Declare.
23674 (gen_raw_REG): Change regno to "unsigned int".
23675 (gen_rtx_REG): Change "unsigned" to "unsigned int".
23676 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
23677 use set_mode_and_regno to change the mode of registers.
23678 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
23679 * emit-rtl.c (set_mode_and_regno): New function.
23680 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
23681 * caller-save.c (reg_save_code): Use set_mode_and_regno.
23682 * expr.c (init_expr_target): Likewise.
23683 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23684 * postreload.c (reload_cse_simplify_operands): Likewise.
23685
23686 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23687
23688 * caller-save.c (init_caller_save): Use word_mode and
23689 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
23690 * expr.c (init_expr_target): Likewise.
23691 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23692 * postreload.c (reload_cse_regs_1): Likewise.
23693
23694 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23695
23696 * rtl.def (REG): Change format to "r".
23697 * rtl.h (rtunion): Remove rt_reg.
23698 (reg_info): New structure.
23699 (rtx_def): Add reg field to main union.
23700 (X0REGATTR): Delete.
23701 (REG_CHECK): New macro.
23702 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
23703 * rtl.c (rtx_format): Document "r".
23704 (rtx_code_size): Handle REG specially.
23705 * gengenrtl.c (special_format): Return true for formats
23706 that include 'r'.
23707 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
23708 Deal with REG_ATTRS after the field loop.
23709 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
23710 * expmed.c (init_expmed): Call gen_raw_REG instead of
23711 gen_rtx_raw_REG.
23712 * expr.c (init_expr_target): Likewise.
23713 * regcprop.c (maybe_mode_change): Likewise.
23714 * varasm.c (make_decl_rtl): Likewise.
23715 * final.c (leaf_renumber_regs_insn): Return early after
23716 handling REGs.
23717 * genemit.c (gen_exp): Handle 'r' fields.
23718 * genpeep.c (match_rtx): Likewise.
23719 * gensupport.c (subst_pattern_match): Likewise.
23720 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
23721 (alter_constraints, subst_dup): Likewise.
23722 * read-rtl.c (read_rtx_code): Likewise.
23723 * print-rtl.c (print_rtx): Likewise.
23724 * genrecog.c (find_operand, find_matching_operand): Likewise.
23725 (validate_pattern, match_pattern_2): Likewise.
23726 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
23727 (rtx_test::regno_field): New function.
23728 (operator ==, safe_to_hoist_p, transition_parameter_type)
23729 (parameter_type_string, print_parameter_value)
23730 (print_nonbool_test, print_test): Handle new enum values.
23731 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
23732 * lra-constraints.c (operands_match_p): Likewise.
23733
23734 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23735
23736 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
23737 Change type of new_regno to unsigned int.
23738 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
23739 new_regno to unsigned int.
23740 (df_ref_change_reg_with_loc): Remove old_regno parameter.
23741 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
23742 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
23743 (SET_REGNO_RAW): Add space after ",".
23744
23745 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23746
23747 * rtl.h (REG_NREGS): New macro
23748 * alias.c (record_set): Use it.
23749 * cfgcleanup.c (mark_effect): Likewise.
23750 * combine.c (likely_spilled_retval_1): Likewise.
23751 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
23752 (move_deaths, distribute_notes): Likewise.
23753 * cselib.c (cselib_record_set): Likewise.
23754 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23755 * df-scan.c (df_mark_reg): Likewise.
23756 * dse.c (look_for_hardregs): Likewise.
23757 * dwarf2out.c (reg_loc_descriptor): Likewise.
23758 (multiple_reg_loc_descriptor): Likewise.
23759 * expr.c (write_complex_part, read_complex_part): Likewise.
23760 (emit_move_complex): Likewise.
23761 * haifa-sched.c (setup_ref_regs): Likewise.
23762 * ira-lives.c (mark_hard_reg_live): Likewise.
23763 * lra.c (lra_set_insn_recog_data): Likewise.
23764 * mode-switching.c (create_pre_exit): Likewise.
23765 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
23766 (reload_combine_recognize_pattern): Likewise.
23767 (reload_combine_note_use, move2add_record_mode): Likewise.
23768 (reload_cse_move2add): Likewise.
23769 * reg-stack.c (subst_stack_regs_pat): Likewise.
23770 * regcprop.c (kill_value, copy_value): Likewise.
23771 (copyprop_hardreg_forward_1): Likewise.
23772 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
23773 (build_def_use): Likewise.
23774 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
23775 (deps_analyze_insn): Likewise.
23776 * sched-rgn.c (check_live_1, update_live_1): Likewise.
23777 * sel-sched.c (count_occurrences_equiv): Likewise.
23778 * valtrack.c (dead_debug_insert_temp): Likewise.
23779
23780 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23781
23782 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
23783 * dse.c (note_add_store): Likewise.
23784 * ira-lives.c (mark_hard_reg_dead): Likewise.
23785 * loop-invariant.c (mark_reg_store): Likewise.
23786 (mark_reg_death): Likewise.
23787 * postreload.c (reload_combine): Likewise.
23788 (reload_combine_note_store): Likewise.
23789 (reload_combine_note_use): Likewise.
23790 * recog.c (peep2_reg_dead_p): Likewise.
23791
23792 2015-05-19 Alan Modra <amodra@gmail.com>
23793
23794 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
23795 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
23796 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
23797 unused predicates.
23798 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
23799 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
23800 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
23801 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
23802
23803 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
23804
23805 * config/mips/mips.md (JOIN_MODE): New mode iterator.
23806 (join2_load_Store<JOIN_MODE:mode>): New pattern.
23807 (join2_loadhi): Likewise.
23808 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
23809 load-load and store-stores.
23810 * config/mips/mips.opt (mload-store-pairs): New option.
23811 (TARGET_LOAD_STORE_PAIRS): New macro.
23812 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
23813 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
23814 * config/mips/mips.c (mips_load_store_bonding_p): New function.
23815
23816 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
23817
23818 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
23819 explicit swaps.
23820 * dojump.c (do_compare_rtx_and_jump): Likewise.
23821 * expmed.c (emit_store_flag_1): Likewise.
23822 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
23823 * final.c (sprint_ul): Use std::reverse for reversing a string.
23824 * fold-const.c (extract_muldiv_1): Use std::swap.
23825 * genmodes.c (emit_mode_int_n): Likewise.
23826 * ifcvt.c (dead_or_predicable): Likewise.
23827 * ira-build.c (ira_merge_live_ranges): Likewise.
23828 (swap_allocno_copy_ends_if_necessary): Likewise.
23829 * ira.c (ira_setup_alts): Likewise.
23830 * loop-iv.c (iv_analyze_expr): Likewise.
23831 (implies_p): Likewise.
23832 (canon_condition): Likewise.
23833 * lra-constraints.c (swap_operands): Likewise.
23834 * lra-lives.c (lra_merge_live_ranges): Likewise.
23835 * omega.c (swap): Remove.
23836 (bswap): Remove.
23837 (omega_unprotect_1): Use std::swap.
23838 (omega_solve_geq): Likewise.
23839 * optabs.c (expand_binop_directly): Likewise.
23840 (expand_binop): Likewise.
23841 (emit_conditional_move): Likewise.
23842 (emit_conditional_add): Likewise.
23843 * postreload.c (reload_cse_simplify_operands): Likewise.
23844 * reg-stack.c (emit_swap_insn): Likewise.
23845 (swap_to_top): Likewise.
23846 (compare_for_stack_reg): Likewise.
23847 (subst_asm_stack_regs): Likewise.
23848 * reload.c (find_reloads): Likewise.
23849 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
23850 * sel-sched.c (invoke_reorder_hooks): Likewise.
23851 (create_block_for_bookkeeping): Likewise.
23852 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
23853 (lambda_matrix_right_hermite): Use std::swap.
23854 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
23855 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
23856 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
23857 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
23858 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
23859 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
23860 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
23861 * tree-vrp.c (compare_ranges): Likewise.
23862 * var-tracking.c (add_with_sets): Likewise.
23863 (vt_find_locations): Likewise.
23864
23865 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
23866
23867 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
23868 pie executables.
23869 (FBSD_ENDFILE_SPEC): Likewise.
23870 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
23871 config/freebsd-spec.h.
23872 (ENDFILE_SPEC): Likewise.
23873
23874 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
23875 Richard Henderson <rth@redhat.com>
23876
23877 PR target/57032
23878 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
23879 Check for a memory location that is not a reference (using an AND)
23880 to an unaligned location here.
23881 * config/alpha/predicates.md (normal_memory_operand): Remove.
23882
23883 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
23884
23885 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
23886 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
23887
23888 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
23889
23890 * config/mips/mips.c (micromips_globals): New variable.
23891 (mips_set_compression_mode): Save and reinitialize target-dependent
23892 state for microMIPS.
23893
23894 2015-05-18 Martin Liska <mliska@suse.cz>
23895
23896 * dbgcnt.def: Add new counter.
23897 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
23898
23899 2015-05-18 Martin Liska <mliska@suse.cz>
23900
23901 * dbgcnt.def: Sort counters.
23902 * opts.c (common_handle_option): Do not compile if
23903 -fdbg-cnt-list is enabled.
23904
23905 2015-05-18 Tom de Vries <tom@codesourcery.com>
23906
23907 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
23908 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
23909 address operator to va_list operand.
23910 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
23911 unconditionally.
23912 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
23913 operand.
23914 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
23915 * config/s390/s390.c (s390_gimplify_va_arg): Same.
23916 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
23917
23918 2015-05-18 Tom de Vries <tom@codesourcery.com>
23919
23920 * tree-ssa-tail-merge.c: Fix whitespace.
23921
23922 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
23923
23924 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
23925 cortex-a17, and cortex-a17.cortex-a7.
23926
23927 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
23928
23929 PR target/54236
23930 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
23931
23932 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
23933
23934 PR target/66174
23935 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
23936 QImode inner modes for TARGET_AVX512BW. Force mask operand
23937 to a register for AVX512F modes.
23938
23939 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23940
23941 * toplev.c (emit_debug_global_declarations): Do not output debug info
23942 when doing slim LTO objects.
23943
23944 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23945
23946 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
23947 odr_types_equivalent_p): Declare.
23948 (odr_type_p): Use gcc_checking_assert.
23949 (type_in_anonymous_namespace_p) Declare.
23950 (type_with_linkage_p): Declare.
23951 * common.opt (Wlto-type-mismatch): New warning.
23952 * ipa-devirt.c (compound_type_base): New function.
23953 (odr_or_derived_type_p): New function.
23954 (odr_types_equivalent_p): New function.
23955 (add_type_duplicate): Simplify.
23956 (type_with_linkage_p): Add hack to prevent false positives on C types
23957 (type_in_anonymous_namespace_p): Likewise.
23958 * tree.c (need_assembler_name_p): Use type_with_linkage.
23959 * tree.h (type_in_anonymous_namespace_p): Remove.
23960 * doc/invoke.texi (-Wlto-type-mismatch): Document
23961
23962 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23963
23964 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
23965 (verify_type): Verify STRING_FLAG.
23966
23967 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
23968
23969 PR fortran/44054
23970 * tree-pretty-print.c (percent_K_format): Replace locus pointer
23971 with accessor function.
23972 * tree-diagnostic.c (diagnostic_report_current_function): Use
23973 diagnostic_location function.
23974 (maybe_unwind_expanded_macro_loc): Likewise.
23975 (virt_loc_aware_diagnostic_finalizer): Likewise.
23976 (default_tree_printer): Replace locus pointer with accessor function.
23977 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
23978 (diagnostic_set_info_translated): Initialize second location.
23979 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
23980 (diagnostic_show_locus): Handle two locations. Call
23981 diagnostic_print_caret_line.
23982 (diagnostic_print_caret_line): New.
23983 (default_diagnostic_starter): Use diagnostic_location function.
23984 (diagnostic_report_diagnostic): Use diagnostic_location function.
23985 (verbatim): Do not set text.locus.
23986 * diagnostic.h (struct diagnostic_info): Remove location field.
23987 (struct diagnostic_context): Make caret_chars an array of two.
23988 (diagnostic_location): New inline.
23989 (diagnostic_expand_location): Handle two locations.
23990 (diagnostic_same_line): New inline.
23991 (diagnostic_print_caret_line): Declare.
23992 (CARET_LINE_MARGIN): New constant.
23993 * pretty-print.c (pp_printf): Do not set text.locus.
23994 (pp_verbatim): Do not set text.locus.
23995 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
23996 (struct text_info): Replace locus pointer with locations
23997 array. Add accessor functions.
23998
23999 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
24000 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24001
24002 PR target/65768
24003 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
24004 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
24005 large constants in register instead of splitting them.
24006
24007 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
24008
24009 PR target/66140
24010 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
24011 replacements in memory addresses.
24012 (get_unaligned_address): Ditto.
24013
24014 2015-05-16 James Bowman <james.bowman@ftdichip.com>
24015
24016 * config/ft32/*: New files for FT32 port.
24017 * doc/install.texi: Add FT32 information.
24018 * doc/invoke.texi: Add FT32 information.
24019 * doc/md.texi: Add FT32 information.
24020 * doc/contrib.texi: Self added.
24021
24022 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
24023
24024 PR tree-optimization/64454
24025 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
24026 (-1 - A -> ~A): Remove unnecessary condition.
24027
24028 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
24029
24030 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
24031 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
24032 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
24033
24034 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
24035
24036 * ipa-chkp.h (chkp_wrap_function): New.
24037 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
24038 (chkp_wrap_function_name): New.
24039 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
24040 to get wrapper name.
24041 * lto-cgraph.c: Include ipa-chkp.h.
24042 (input_cgraph_1): Avoid alias chain for wrappers.
24043
24044 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
24045
24046 PR middle-end/66134
24047 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
24048 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
24049
24050 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24051
24052 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
24053 (AARCH64_FL_SLOWMUL): Delete.
24054 (AARCH64_FL_CRC): Redefine to 1<<3.
24055 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
24056
24057 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24058
24059 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
24060 casting.
24061
24062 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
24063
24064 * config/alpha/alpha.md (extendqidi2): Use general_operand
24065 instead of some_operand for operand[1] predicate.
24066 (extendhidi2): Ditto.
24067 (cbranchdi4): Use general_operand instead of some_operand
24068 for operand[1] and operands[2] predicates.
24069 (cstoredi4): Ditto.
24070 * config/alpha/predicates.md (some_operand): Remove unused predicate.
24071 (some_ni_operand): Ditto.
24072
24073 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
24074
24075 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
24076 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
24077 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
24078 low part of the constant using alpha_emit_set_const_1.
24079 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
24080
24081 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
24082
24083 * varasm.c (output_constant_pool_1): Pass down alignment from
24084 constant pool entry's descriptor to output_constant_pool_2.
24085 (output_object_block): Add comment prior to call to
24086 output_constant_pool_1.
24087
24088 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
24089
24090 PR rtl-optimization/65862
24091 * target.def (ira_change_pseudo_allocno_class): New hook.
24092 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
24093 value of the hook.
24094 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
24095 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
24096 hook.
24097 * ira-costs.c (find_costs_and_classes): Call the hook and change
24098 classes when it is necessary.
24099 * doc/tm.texi: Update.
24100
24101 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
24102
24103 * config/i386/i386.md (sibcall_memory): Check that register with
24104 callee address is not also used as one of the arguments, instead
24105 of checking that it is not live after the sibcall.
24106 (sibcall_pop_memory): Ditto.
24107 (sibcall_value_memory): Ditto.
24108 (sibcall_value_pop_memory): Ditto.
24109
24110 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
24111
24112 * generic-match-head.c (types_match): Handle non-types.
24113 * gimple-match-head.c (types_match): Likewise.
24114 * match.pd: Remove unnecessary TREE_TYPE for types_match.
24115
24116 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
24117
24118 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
24119 (csneg3<mode>_insn): Enable expansion of pattern.
24120
24121 2015-05-14 Nick Clifton <nickc@redhat.com>
24122
24123 * config/rl78/rl78.c (rl78_select_section): Select the correct
24124 default section based upon the category of the decl.
24125
24126 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24127
24128 PR rtl-optimization/30967
24129 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
24130 destination mode for the cost of scc patterns.
24131
24132 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
24133
24134 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
24135 using SWIM248 mode iterator.
24136 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
24137 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
24138 for operand[2] constraint.
24139 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
24140
24141 2015-05-13 Jakub Jelinek <jakub@redhat.com>
24142
24143 PR middle-end/66133
24144 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
24145 make sure it is never noreturn, even when the task body does not
24146 return.
24147 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
24148 right before GIMPLE_OMP_RETURN.
24149 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
24150 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
24151 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
24152
24153 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24154
24155 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
24156 * tree-ssa-math-opts.c: Include params.h
24157 (pow_synth_sqrt_info): New struct.
24158 (representable_as_half_series_p): New function.
24159 (get_fn_chain): Likewise.
24160 (print_nested_fn): Likewise.
24161 (dump_fractional_sqrt_sequence): Likewise.
24162 (dump_integer_part): Likewise.
24163 (expand_pow_as_sqrts): Likewise.
24164 (gimple_expand_builtin_pow): Use above to attempt to expand
24165 pow as series of square roots. Removed now unused variables.
24166
24167 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
24168
24169 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
24170 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
24171 Remove *p0 and *p1 arguments. Rewrite function.
24172 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
24173 (alpha_split_const_mov): Update calls to alpha_extract_integer and
24174 alpha_emit_set_long_const.
24175 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
24176 (alpha_output_mi_thunk_osf): Ditto.
24177 * config/alpha/alpha.md (movti): Do not check operands[1]
24178 for CONST_DOUBLE.
24179
24180 2015-05-13 Richard Biener <rguenther@suse.de>
24181
24182 PR tree-optimization/66129
24183 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
24184 commutative.
24185 (vect_schedule_slp_instance): Fix typo.
24186
24187 2015-05-13 David Malcolm <dmalcolm@redhat.com>
24188
24189 * common.opt (fdump-internal-locations): New option.
24190 * input.c: Include diagnostic-core.h.
24191 (get_end_location): New function.
24192 (write_digit): New function.
24193 (write_digit_row): New function.
24194 (dump_location_range): New function.
24195 (dump_labelled_location_range): New function.
24196 (dump_location_info): New function.
24197 * input.h (dump_location_info): New prototype.
24198 * toplev.c (compile_file): Handle flag_dump_locations.
24199
24200 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
24201
24202 * gimple-expr.h (is_gimple_constant): Reorder.
24203 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
24204
24205 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24206
24207 * combine.c (simplify_set): When generating a CC set, if the
24208 source already is in the correct mode, do not wrap it in a
24209 compare. Simplify the rest of that code.
24210
24211 2015-05-13 Richard Biener <rguenther@suse.de>
24212
24213 PR tree-optimization/66123
24214 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
24215 a taken edge.
24216
24217 2015-05-13 Richard Biener <rguenther@suse.de>
24218
24219 PR middle-end/66110
24220 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
24221 specially.
24222 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
24223
24224 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24225
24226 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
24227 * aclocal.m4: Regenerated with automake-1.11.6.
24228
24229 2015-05-13 Tom de Vries <tom@codesourcery.com>
24230
24231 PR tree-optimization/66010
24232 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
24233 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
24234 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
24235 and rval based on do_deref.
24236
24237 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24238
24239 PR target/65103
24240 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
24241 link time constants into adress expressions and therefore set
24242 their cost to 0.
24243
24244 2015-05-13 Jakub Jelinek <jakub@redhat.com>
24245
24246 PR target/66112
24247 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
24248 Use SWI248 iterator instead of SWI.
24249 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
24250 Use eq_attr "alternative" "0" instead of match_test in
24251 length_immediate attribute computation.
24252 (*mulvhi4, *mulvhi4_1): New define_insns.
24253
24254 PR target/66112
24255 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
24256 SIGNED to get precision of non-negative value.
24257
24258 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24259
24260 PR target/66048
24261 * function.c (diddle_return_value_1): Process bounds first.
24262 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
24263 register.
24264
24265 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
24266
24267 PR rtl-optimization/64616
24268 * loop-invariant.c (can_move_invariant_reg): New.
24269 (move_invariant_reg): Call above new function to decide whether
24270 instruction can just be moved, skipping creation of temporary
24271 register.
24272
24273 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24274
24275 PR target/pr66047.c
24276 * i386.c (ix86_function_sseregparm): Only return -1 if local function
24277 with implied regparm is called from -mno-sse function.
24278 (init_cumulative_args): Output error if ix86_function_sseregparm
24279 return -1 and SSE register would be needed.
24280 (function_arg_advance_32): Likewise.
24281 (function_arg_32): Likewise.
24282 * i386.h (ix86_args): Add decl field.
24283
24284 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24285
24286 PR ipa/65873
24287 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
24288 inlines across optimization boundary.
24289
24290 2015-05-12 Jason Merrill <jason@redhat.com>
24291
24292 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
24293 string literal and macro name.
24294
24295 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
24296
24297 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
24298 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
24299 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
24300
24301 2015-05-12 David Malcolm <dmalcolm@redhat.com>
24302
24303 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
24304 (-Wmisleading-indentation): New option.
24305 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
24306
24307 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
24308
24309 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
24310 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
24311 (alpha_extract_integer): Ditto.
24312 (alpha_legitimate_constant_p): Ditto.
24313 (alpha_split_tmode_pair): Ditto.
24314 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
24315 (alpha_expand_mov): Ditto.
24316 (print_operand): Remove handling of 'H' modifier.
24317 <case 'm'>: Remove CONST_DOUBLE handling.
24318 (summarize_insn): Handle CONST_WIDE_INT.
24319 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
24320 (anddi3): Ditto.
24321 (movti): Handle CONST_WIDE_INT.
24322 * config/alpha/constraints.md ('H'): Remove constraint definition.
24323 ('G'): Do not match MODE_FLOAT class.
24324 * config/alpha/predicates.md (const0_operand): Also match
24325 const_wide_int.
24326 (non_add_const_operand): Ditto.
24327 (non_zero_const_operand): Ditto.
24328 (some_operand): Ditto.
24329 (input_operand): Ditto. Handle CONST_WIDE_INT.
24330 (and_operand): Do not match const_double.
24331 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
24332
24333 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
24334
24335 PR target/65697
24336 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
24337 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
24338 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
24339 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
24340 is_mm_seq_cst, is_mm_sync): New accessor functions.
24341 * builtins.c (expand_builtin_sync_operation,
24342 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
24343 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
24344 (get_memmodel, expand_builtin_atomic_compare_exchange,
24345 expand_builtin_atomic_load, expand_builtin_atomic_store,
24346 expand_builtin_atomic_clear): Use new accessor routines.
24347 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
24348 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
24349 (maybe_emit_sync_lock_test_and_set): Use new accessors and
24350 MEMMODEL_SYNC_ACQUIRE.
24351 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
24352 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
24353 expand_atomic_store): Use new accessors.
24354 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
24355 * tsan.c (instrument_builtin_call): Update check for memory model beyond
24356 final enum to use MEMMODEL_LAST.
24357 * c-family/c-common.c: Use new accessor for memmodel_base.
24358 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
24359 accessors.
24360 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
24361 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
24362 mem_thread_fence, *dmb): Likewise.
24363 * config/alpha/alpha.c (alpha_split_compare_and_swap,
24364 alpha_split_compare_and_swap_12): Likewise.
24365 * config/arm/arm.c (arm_expand_compare_and_swap,
24366 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
24367 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
24368 atomic_loaddi): Likewise.
24369 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
24370 Likewise.
24371 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
24372 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
24373 use new accessors.
24374 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
24375 atomic_store<mode>, atomic_compare_and_swap<mode>,
24376 atomic_exchange<mode>): Use new accessors.
24377 * config/mips/mips.c (mips_process_sync_loop): Likewise.
24378 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
24379 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
24380 rs6000_post_atomic_barrier): Add new cases.
24381 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
24382 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
24383 (atomic_load<mode>): Add new cases and use new accessors.
24384 (store_quadpti): Add new cases.
24385 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
24386 accessors.
24387 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
24388 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
24389 model, not 8.
24390
24391 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24392
24393 * ipa-devirt.c (type_with_linkage_p): New function.
24394 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
24395 type has linkage.
24396 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
24397 (can_be_name_hashed_p): Simplify.
24398 (hash_odr_name): Check that type has linkage before checking if it is
24399 anonymous.
24400 (types_same_for_odr): Likewise.
24401 (odr_name_hasher::equal): Likewise.
24402 (odr_subtypes_equivalent_p): Likewise.
24403 (warn_types_mismatch): Likewise.
24404 (get_odr_type): Likewise.
24405 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
24406 * ipa-utils.h (odr_type_p): Move offline.
24407 * tree.c (need_assembler_name_p): Fix handling of types
24408 without linkages.
24409 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
24410
24411 2015-05-12 David Malcolm <dmalcolm@redhat.com>
24412
24413 * timevar.c (timevar_enable): Delete in favor of...
24414 (g_timer): New global.
24415 (struct timevar_def): Move to timevar.h inside class timer.
24416 (struct timevar_stack_def): Likewise.
24417 (timevars): Delete global in favor of field "m_timevars" within
24418 class timer in timevar.h
24419 (stack): Likewise, in favor of field "m_stack".
24420 (unused_stack_instances): Likewise, in favor of field
24421 "m_unused_stack_instances".
24422 (start_time): Likewise, in favor of field "m_start_time".
24423 (get_time): Eliminate check for timevar_enable.
24424 (timer::timer): New function, built from part of timevar_init.
24425 (timevar_init): Rewrite idempotency test from using
24426 "timevar_enable" bool to using dynamic allocation of "g_timer".
24427 Move rest of implementation into timer's constructor.
24428 (timevar_push_1): Rename to...
24429 (timer::push): ...this, adding "m_" prefixes to variables that
24430 are now fields of timer.
24431 (timevar_pop_1): Likewise, rename to...
24432 (timer::pop): ...this, and add "m_" prefixes.
24433 (timevar_start): Replace test for "timevar_enable" with one for
24434 "g_timer", and move bulk of implementation to...
24435 (timer::start): ...here, adding "m_" prefixes.
24436 (timevar_stop): Likewise, from here...
24437 (timer::stop): ...to here.
24438 (timevar_cond_start): Likewise, from here...
24439 (timer::cond_start): ...to here.
24440 (timevar_cond_stop): Likewise, from here...
24441 (timer::cond_stop): ...to here.
24442 (validate_phases): Rename to...
24443 (timer::validate_phases): ...this, and add "m_" prefixes. Make
24444 locals "total" and "tv" const.
24445 (timevar_print): Rename to...
24446 (timer::print): ...this, and add "m_" prefixes. Make locals
24447 "total" and "tv" const. Eliminate test for timevar_enable.
24448 * timevar.h (timevar_enable): Eliminate.
24449 (g_timer): New declaration.
24450 (timevar_push_1): Eliminate.
24451 (timevar_pop_1): Eliminate.
24452 (timevar_print): Eliminate.
24453 (class timer): New class.
24454 (timevar_push): Rewrite to use g_timer.
24455 (timevar_pop): Likewise.
24456 * toplev.c (toplev::~toplev): Likewise.
24457
24458 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
24459
24460 * arm-protos.h (arm_sched_autopref): Delete.
24461 (tune_params): Re-organize, use enums for flag values.
24462 (FUSE_OPS): New macro.
24463 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
24464 (ARM_PREFETCH_BENEFICIAL): Likewise.
24465 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
24466 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
24467 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
24468 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
24469 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
24470 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
24471 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
24472 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
24473 format.
24474 (arm_option_override, thumb2_reorg, arm_print_tune_info)
24475 (aarch_macro_fusion_pair_p): Update uses of current_tune.
24476 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
24477
24478 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
24479
24480 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
24481 "break".
24482
24483 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
24484 Sandra Loosemore <sandra@codesourcery.com>
24485
24486 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
24487 value.
24488 (REG_CLASS_NAMES): Add "IJMP_REGS".
24489 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
24490 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
24491 use new "c" register constraint.
24492 * config/nios2/constraint.md (c): New register constraint
24493 corresponding to IJMP_REGS.
24494
24495 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24496
24497 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
24498 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
24499 define_splits): Delete, revamp, transmogrify into ...
24500 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
24501 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
24502 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
24503 New.
24504
24505 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24506
24507 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
24508 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
24509
24510 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24511
24512 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
24513 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
24514 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
24515 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
24516 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
24517 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
24518 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
24519 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
24520 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
24521 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24522 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
24523 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
24524 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
24525 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
24526 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
24527 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
24528 and 30 corresponding splitters): Delete.
24529
24530 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24531
24532 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
24533 zero_extract.
24534
24535 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24536
24537 * combine.c (recog_for_combine_1): New function, factored out
24538 from recog_for_combine.
24539 (change_zero_ext): New function.
24540 (recog_for_combine): If recog fails, try again with the pattern
24541 modified by change_zero_ext; if that still fails, restore the
24542 pattern.
24543
24544 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24545
24546 * combine.c (get_undo_marker): New function.
24547 (undo_to_marker): New function, largely factored out from ...
24548 (undo_all): ... this. Adjust.
24549
24550 2015-05-12 Richard Biener <rguenther@suse.de>
24551
24552 PR tree-optimization/66101
24553 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
24554 fixup if we turn a loop exit edge to a fallthru edge.
24555
24556 2015-05-12 Richard Biener <rguenther@suse.de>
24557
24558 PR tree-optimization/37021
24559 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
24560 (SLP_TREE_TWO_OPERATORS): New define.
24561 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
24562 SLP_TREE_TWO_OPERATORS.
24563 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
24564 SLP node.
24565 (vect_build_slp_tree): Adjust.
24566 (vect_analyze_slp_cost_1): Likewise.
24567 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
24568 emitting two vector stmts and mixing the results.
24569
24570 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
24571
24572 * call.c (print_z_candidates): Remove dead code.
24573
24574 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24575
24576 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
24577 and zEC12_simple_fp.
24578 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
24579 to 1.
24580
24581 2015-05-12 Tom de Vries <tom@codesourcery.com>
24582
24583 PR tree-optimization/66010
24584 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
24585 ifn_va_arg.
24586 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
24587 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
24588 va_lists are passed, and remove corresponding handling.
24589 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
24590 do_deref argument to ifn_va_arg.
24591 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
24592 ifn_va_arg.
24593
24594 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24595
24596 PR target/65955
24597 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
24598 REG before taking its REGNO.
24599
24600 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
24601
24602 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
24603 rsp->sign_bit_copies and rsp->nonzero_bits into ...
24604 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
24605 present to get more accurate information about the number of sign bit
24606 copies and non zero bits.
24607
24608 2015-05-12 Richard Biener <rguenther@suse.de>
24609
24610 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
24611 do not allow unrolling.
24612
24613 2015-05-11 Richard Henderson <rth@redhat.com>
24614
24615 * config/i386/i386-modes.def (CCP): New.
24616 * config/i386/i386.c (put_condition_code): Handle it.
24617 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
24618
24619 2015-05-11 Richard Henderson <rth@redhat.com>
24620
24621 * target.def (md_asm_clobbers): Replace with...
24622 (md_asm_adjust): this.
24623 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
24624 (TARGET_MD_ASM_ADJUST): New.
24625 * tm.texi: Rebuild.
24626 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
24627 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
24628 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
24629
24630 * cfgexpand.c (check_operand_nalternatives): Accept vector of
24631 constraints instead of lists of outputs and inputs.
24632 (expand_asm_stmt): Save and restore input_location around the
24633 body of the function. Move asm data into vectors instead of
24634 building tree lists. Generate cleanup sequences as needed,
24635 rather than waiting til the end. Use new md_asm_adjust hook.
24636
24637 * config/vxworks.c: Include vec.h before target.h.
24638 * gimple.c: Likewise.
24639 * incpath.c: Likewise.
24640 * mode-switching.c: Likewise.
24641
24642 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
24643 (cris_md_asm_adjust): this.
24644 (TARGET_MD_ASM_CLOBBERS): Remove.
24645 (TARGET_MD_ASM_ADJUST): New.
24646 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
24647 (ix86_md_asm_adjust): this.
24648 (TARGET_MD_ASM_CLOBBERS): Remove.
24649 (TARGET_MD_ASM_ADJUST): New.
24650 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
24651 (mn10300_md_asm_adjust): this.
24652 (TARGET_MD_ASM_CLOBBERS): Remove.
24653 (TARGET_MD_ASM_ADJUST): New.
24654 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
24655 (rs6000_md_asm_adjust): this.
24656 (TARGET_MD_ASM_CLOBBERS): Remove.
24657 (TARGET_MD_ASM_ADJUST): New.
24658 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
24659 (visium_md_asm_adjust): this.
24660 (TARGET_MD_ASM_CLOBBERS): Remove.
24661 (TARGET_MD_ASM_ADJUST): New.
24662
24663 2015-05-11 Richard Henderson <rth@redhat.com>
24664
24665 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
24666 if noutputs is zero.
24667 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
24668
24669 * cfgexpand.c (expand_asm_operands): Merge into...
24670 (expand_asm_stmt): ... here.
24671
24672 * cfgexpand.c (expand_asm_operands): Don't call
24673 resolve_asm_operand_names.
24674 * stmt.c (resolve_asm_operand_names): Clarify block comment.
24675
24676 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
24677
24678 * dwarf2out.c (gen_member_die): Sanity check that we access
24679 TYPE_MAIN_VARIANT for TYPE_METHODS.
24680 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
24681 checking TYPE_METHODS.
24682 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
24683 if non-null.
24684 (build_distinct_type_copy): Clear TYPE_METHODS.
24685 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
24686 (verify_type): Allow TYPE_METHODS to be error_mark_node.
24687 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
24688
24689 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
24690
24691 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
24692 (emit_pattern_before_setloc): Likewise.
24693
24694 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24695
24696 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
24697 for define_peephole2s.
24698 (get_peephole2_pattern): New function.
24699 (main): Use it. Call validate_pattern.
24700
24701 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24702
24703 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
24704 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
24705 (Last callee saved reg is different for AVR_TINY architecture)
24706
24707 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24708
24709 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
24710 when looking for memory references.
24711
24712 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24713
24714 PR target/65753
24715 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
24716 via function pointers.
24717
24718 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24719
24720 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
24721 indirect call by forcing address into a pseudo with -fno-plt.
24722 * common.opt (flag_plt): New option.
24723 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
24724 ([-fno-plt]): Document.
24725
24726 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
24727
24728 PR bootstrap/66105
24729 * config/rs6000/option-defaults.h: Add space between string literal
24730 and macro name.
24731
24732 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
24733
24734 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
24735 accross ARM targets.
24736
24737 2015-05-11 Christian Bruel <christian.bruel@st.com>
24738
24739 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
24740 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
24741
24742 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24743
24744 PR rtl-optimization/66076
24745 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
24746 Don't grow the heap array if it is already big enough from a
24747 previous iteration.
24748
24749 2015-05-11 Christian Bruel <christian.bruel@st.com>
24750
24751 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
24752 (is_called_in_ARM_mode): Remove.
24753 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
24754 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
24755 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
24756 arm_declare_function_name.
24757
24758 2015-05-11 Christian Bruel <christian.bruel@st.com>
24759
24760 * config/arm/arm.c (arm_option_override): Reoganized and split into :
24761 (arm_option_params_internal); New function.
24762 (arm_option_check_internal): New function.
24763 (arm_option_override_internal): New function.
24764 (thumb_code, thumb1_code): Remove.
24765 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
24766 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
24767 (thumb_code, thumb1_code): Remove.
24768 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
24769
24770 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24771
24772 * config/alpha/alpha.c (alpha_emit_set_const_1)
24773 (alpha_emit_set_long_const, alpha_extract_integer)
24774 (alpha_legitimate_constant_p, alpha_split_const_mov)
24775 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
24776 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24777 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
24778 HOST_WIDE_INT_1U.
24779 * config/alpha/predicates.md (mode_mask_operand): Do not match
24780 const_double RTX.
24781 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24782 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
24783 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
24784 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24785 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
24786
24787 2015-05-11 Jakub Jelinek <jakub@redhat.com>
24788
24789 PR target/65780
24790 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
24791 default_binds_local_p_2.
24792 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
24793 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
24794
24795 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24796
24797 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
24798
24799 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24800
24801 Patch by Richard Biener
24802 * coverage.c (coverage_obj_init): Delay building of type variant
24803 until the type is finished.
24804
24805 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24806
24807 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
24808 mismatch between C and C++ type; compoare correctly ARG_TYPES
24809 for non-prototypes and output correctly parameter index for METHOD_TYPE.
24810 (odr_types_equivalent_p): Fix wording of warning about attributes;
24811 it is OK to match prototype and non-prototype.
24812
24813 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24814
24815 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
24816 TYPE_ARG_TYPES list.
24817 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
24818 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
24819
24820 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24821
24822 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
24823 * tree.h (is_lang_specific): Constify.
24824
24825 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
24826
24827 PR tree-optimization/64454
24828 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
24829 Rewrite.
24830
24831 2015-05-08 Jason Merrill <jason@redhat.com>
24832
24833 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
24834 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
24835 config/darwin.h, config/darwin9.h, config/elfos.h,
24836 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
24837 config/microblaze/microblaze.h, config/mips/mips.h,
24838 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
24839 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
24840 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
24841 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
24842 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
24843 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
24844 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
24845 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
24846 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
24847 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
24848 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
24849 between string literal and macro name.
24850
24851 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24852
24853 * jump.c: Change argument types to rtx_insn *.
24854 * rtl.h: Adjust.
24855
24856 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24857
24858 * lra-constraints.c: Change argument type to rtx_insn *.
24859
24860 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24861
24862 * df-problems.c: Change argument type to rtx_insn *.
24863
24864 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24865
24866 * combine.c: Change argument type to rtx_insn *.
24867
24868 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24869
24870 * rtl.h: Adjust.
24871 * rtlanal.c: Change argument type to rtx_insn *.
24872
24873 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24874
24875 * sched-deps.c: Change argument types to rtx_insn *.
24876 * sched-int.h: Adjust.
24877
24878 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24879
24880 * dwarf2cfi.c: Change argument type to rtx_insn *.
24881
24882 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24883
24884 * ira.c (decrease_live_ranges_number): Changetype of local
24885 variable to rtx_insn *.
24886 * recog.c: Change argument types to rtx_insn *.
24887 * recog.h: Adjust.
24888
24889 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24890
24891 * reorg.c: Change argument types to rtx_insn *.
24892
24893 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24894
24895 * ira-color.c: Change argument types to rtx_insn *.
24896 * lra-eliminations.c: Likewise.
24897 * ira.h: Adjust.
24898
24899 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24900
24901 * gcse.c: Change argument types to rtx_insn *.
24902
24903 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24904
24905 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
24906
24907 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24908
24909 * emit-rtl.c (emit_debug_insn_before): Change argument type to
24910 rtx_insn *.
24911 * rtl.h: Adjust.
24912
24913 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24914
24915 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
24916 * rtl.h: Adjust.
24917
24918 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24919
24920 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
24921 * rtl.h: Adjust.
24922
24923 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24924
24925 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
24926 * rtl.h: Adjust.
24927
24928 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24929
24930 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
24931 * rtl.h: Adjust.
24932
24933 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24934
24935 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
24936 to rtx_insn *.
24937 * rtl.h: Adjust.
24938
24939 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24940
24941 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
24942 to rtx_insn *.
24943 * rtl.h: Likewise.
24944
24945 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24946
24947 * except.c (can_nonlocal_goto): Change type of argument to
24948 rtx_insn *.
24949 * rtl.h: Adjust.
24950
24951 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24952
24953 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
24954 * rtl.h: Adjust.
24955
24956 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24957
24958 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
24959 * cfgrtl.c (can_delete_label_p): Adjust.
24960 * rtl.h: likewise.
24961
24962 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24963
24964 * reorg.c (stop_search_p): Change argument to rtx_insn *.
24965
24966 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24967
24968 * except.c (make_reg_eh_region_note): Change argument to
24969 rtx_insn *.
24970 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
24971 * except.h: Adjust.
24972
24973 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24974
24975 * mode-switching.c (commit_mode_sets): Change type of local
24976 variable from rtx to rtx_insn *.
24977
24978 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
24979
24980 * doc/install.texi (--enable-languages): Add missing jit and lto info.
24981 Add ^ to grep command.
24982 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
24983 arg to last gimple_simplify declaration. Add missing gimple_build
24984 declaration for built-in function case with four tree args.
24985
24986 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
24987 Szabolcs Nagy <szabolcs.nagy@arm.com>
24988
24989 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
24990 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
24991 (GNU_USER_DYNAMIC_LINKERN32): Update.
24992
24993 2015-05-08 Richard Biener <rguenther@suse.de>
24994
24995 PR tree-optimization/66036
24996 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
24997 Handle strided group loads.
24998 (vect_verify_datarefs_alignment): Likewise.
24999 (vect_enhance_data_refs_alignment): Likewise.
25000 (vect_analyze_group_access): Likewise.
25001 (vect_analyze_data_ref_access): Likewise.
25002 (vect_analyze_data_ref_accesses): Likewise.
25003 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
25004 (vectorizable_load): Likewise.
25005
25006 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
25007
25008 * config/rs6000/rs6000.md: Require operand inequality in one
25009 of the peepholes.
25010
25011 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
25012 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
25013
25014 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
25015 from (set ...).
25016 * config/rx/rx.md (movdi, movdf): Likewise.
25017 Likewise for define_peephole2s.
25018
25019 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
25020
25021 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
25022 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
25023 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
25024 vtst_u64): Rewrite using gcc vector extensions.
25025
25026 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
25027
25028 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
25029 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
25030
25031 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
25032
25033 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
25034
25035 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
25036
25037 * config/glibc-stdint.h (OPTION_MUSL): Define.
25038 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
25039 Change the definition based on OPTION_MUSL for 64 bit targets.
25040 * config/linux.h (OPTION_MUSL): Redefine.
25041 * config/alpha/linux.h (OPTION_MUSL): Redefine.
25042 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
25043 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
25044
25045 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
25046 Szabolcs Nagy <szabolcs.nagy@arm.com>
25047
25048 * config.gcc (LIBC_MUSL): New tm_defines macro.
25049 * config/linux.h (OPTION_MUSL): Define.
25050 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
25051 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
25052 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25053 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25054 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25055 * config/linux.opt (mmusl): New option.
25056 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
25057 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25058 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25059 * configure: Regenerate.
25060
25061 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
25062 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25063
25064 PR target/48904
25065 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
25066 * config/i386/knetbsd-gnu64.h: New file.
25067
25068 2015-05-08 Marek Polacek <polacek@redhat.com>
25069
25070 PR c/64918
25071 * doc/invoke.texi: Document -Woverride-init-side-effects.
25072
25073 2015-05-07 Marek Polacek <polacek@redhat.com>
25074
25075 PR c/65179
25076 * doc/invoke.texi: Document -Wshift-negative-value.
25077
25078 2015-05-06 Aditya Kumar <hiraditya@msn.com>
25079
25080 * gcov-tool.c (do_merge): Refactore to remove int ret.
25081 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
25082 !type == FUNC to type != FUNC.
25083 * reload.h (struct target_reload): Changee to type of
25084 x_spill_indirect_levels from bool to unsigned char.
25085
25086 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
25087
25088 * rtl.h (always_void_p): New function.
25089 * gengenrtl.c (always_void_p): Likewise.
25090 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
25091 with code foo are always VOIDmode.
25092 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
25093 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
25094 compare-elim.c, config/aarch64/aarch64.c,
25095 config/aarch64/aarch64.md, config/alpha/alpha.c,
25096 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
25097 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
25098 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
25099 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25100 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
25101 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
25102 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
25103 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
25104 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
25105 config/ia64/vect.md, config/iq2000/iq2000.c,
25106 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
25107 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
25108 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
25109 config/mep/mep.c, config/microblaze/microblaze.c,
25110 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
25111 config/mn10300/mn10300.c, config/msp430/msp430.c,
25112 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
25113 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
25114 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
25115 config/rs6000/altivec.md, config/rs6000/rs6000.c,
25116 config/rs6000/rs6000.md, config/rs6000/vector.md,
25117 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
25118 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
25119 config/sh/sh.md, config/sh/sh_treg_combine.cc,
25120 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
25121 config/spu/spu.md, config/stormy16/stormy16.c,
25122 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
25123 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
25124 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
25125 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
25126 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
25127 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
25128 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
25129 var-tracking.c: Update calls accordingly.
25130
25131 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25132
25133 PR middle-end/192
25134 PR middle-end/54303
25135 * varasm.c (function_mergeable_rodata_prefix): New function.
25136 (mergeable_string_section): Use it.
25137 (mergeable_constant_section): Use it.
25138
25139 2015-05-07 Jeff Law <law@redhat.com>
25140
25141 PR target/39726
25142 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25143 simplifier to narrow arithmetic.
25144 * generic-match-head.c: (types_match, single_use): New functions.
25145 * gimple-match-head.c: (types_match, single_use): New functions.
25146
25147 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25148
25149 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
25150 rtx type.
25151
25152 2015-05-07 Richard Biener <rguenther@suse.de>
25153
25154 PR tree-optimization/66002
25155 * passes.def: Schedule another pass_merge_phi after ifcombine, right
25156 before phiopt.
25157
25158 2015-05-07 Marek Polacek <polacek@redhat.com>
25159 Martin Uecker <uecker@eecs.berkeley.edu>
25160
25161 * doc/invoke.texi: Document -fsanitize=bounds-strict.
25162 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
25163 into SANITIZE_NONDEFAULT.
25164 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
25165
25166 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
25167
25168 PR target/66015
25169 * config/alpha/alpha.c (alpha_override_options_after_change): New.
25170 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
25171 (alpha_override_options): Move align_loops, align_jumps and
25172 align_functions handling into alpha_override_options_after_change.
25173
25174 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
25175 Chris Jones <chrisj@nvidia.com>
25176 Joshua Conner <jconner@nvidia.com>
25177
25178 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
25179 linking of crtfastmath.o.
25180 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
25181
25182 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25183
25184 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
25185 (cstore<mode>4_unsigned_imm): New expander.
25186 (cstore<mode>4): Remove empty constraint strings. Use the new
25187 expanders.
25188
25189 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
25190
25191 PR target/64208
25192 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
25193 alternatives.
25194
25195 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
25196
25197 * config/aarch64/geniterators.sh: Use standard BRE in sed.
25198
25199 2015-05-06 Alan Modra <amodra@gmail.com>
25200
25201 PR target/66033
25202 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
25203 (UNSPEC_NOP): Define.
25204 (reload_vsx_from_gpr<mode>): Add missing DONE.
25205 (reload_gpr_from_vsx<mode>): Likewise.
25206 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
25207 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
25208
25209 2015-05-06 Christian Bruel <christian.bruel@st.com>
25210
25211 PR target/66015
25212 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
25213 align_jumps, align_functions into aarch64_override_options_after_change.
25214
25215 2015-05-06 Richard Biener <rguenther@suse.de>
25216
25217 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
25218 vect_transform_slp_perm_load to check if we support a permutation
25219 for basic-block vectorization.
25220
25221 2015-05-06 Nick Clifton <nickc@redhat.com>
25222
25223 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
25224 used, even if it is not being used as a frame pointer.
25225
25226 2015-05-05 Jason Merrill <jason@redhat.com>
25227
25228 * dwarf2out.c (gen_member_die): Don't emit anything for an
25229 anonymous class constructor.
25230
25231 2015-05-05 David Malcolm <dmalcolm@redhat.com>
25232
25233 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
25234 that it reflects the block structure.
25235 (afdo_propagate_edge): Likewise.
25236 (afdo_calculate_branch_prob): Likewise.
25237 (afdo_annotate_cfg): Likewise.
25238 * cfgcleanup.c (equal_different_set_p): Likewise.
25239 (try_crossjump_to_edge): Likewise.
25240 * cgraph.c (cgraph_node::verify_node): Likewise.
25241 * cgraphunit.c (expand_all_functions): Likewise.
25242 * config/i386/i386.c (ix86_expand_copysign): Likewise.
25243 (exact_dependency_1): Likewise.
25244 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
25245 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
25246 * gensupport.c (process_define_subst): Likewise.
25247 * lto-wrapper.c (merge_and_complain): Likewise.
25248 * tree-if-conv.c (if_convertible_bb_p): Likewise.
25249 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
25250 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
25251 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
25252 * tree-vect-loop.c (vectorizable_reduction): Likewise.
25253 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
25254 * tree-vect-stmts.c (vectorizable_shift): Likewise.
25255 * tree-vrp.c (vrp_finalize): Likewise.
25256 * tree.c (variably_modified_type_p): Likewise.
25257
25258 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
25259
25260 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
25261 on darwin12 and later.
25262 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
25263 file to pass -rdynamic on darwin12 and later.
25264 * config/darwin.opt (rdynamic): Add.
25265
25266 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25267
25268 * doc/extend.texi (C Extensions): Update menu for moved Variable
25269 Attributes and Type Attributes sections.
25270
25271 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25272
25273 PR target/65990
25274 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
25275 if rep_8byte stringop strategy was specified for 32-bit target.
25276
25277 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
25278
25279 PR target/65915
25280 * config/i386/i386.md (vector convert to float spltiter): Check for
25281 xmm16+, when splitting scalar float conversion.
25282 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
25283
25284 2015-05-05 Nick Clifton <nickc@redhat.com>
25285
25286 * config/msp430/msp430-opts.h (enum msp430_regions): New.
25287 * config/msp430/msp430.c (msp430_override_options): Complain if
25288 -mcode-region or -mdata-region is used on a non MSP430X.
25289 (msp430_section_attr): New function. Checks lower, upper and
25290 either attributes.
25291 (msp430_attribute_table): Add lower, upper and either.
25292 (gen_prefix): New function. Generates a prefix for a section
25293 name.
25294 (msp430_select_section): New function - handles the choice of
25295 section for an object. Takes into account memory region
25296 attributes and options.
25297 (msp430_function_section): Use gen_prefix.
25298 (TARGET_SECTION_TYPE_FLAGS): Define.
25299 (msp430_section_type_flags): New function.
25300 (TARGET_ASM_UNIQUE_SECTION): Define.
25301 (msp430_unique_section): New function.
25302 (msp430_output_aligned_decl_common): New function.
25303 (msp430_do_not_relax_short_jumps): New function.
25304 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
25305 Define.
25306 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
25307 * config/msp430/msp430-protos.h
25308 (msp430_do_not_relax_short_jumps): New prototype.
25309 (msp430_output_aligned_decl_common): New prototype.
25310 * config/msp430/msp430.md (length): New attribute.
25311 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
25312 then use a long code sequence for short jumps.
25313 * config/msp430/msp430.opt (mcode-region): New.
25314 (mdata-region): New.
25315 * doc/invoke.texi: Document new options.
25316 * doc/extend.texi: Document new attributes.
25317
25318 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
25319
25320 * config/aarch64-protos.h (struct cpu_branch_cost): New.
25321 (tune_params): Add field branch_costs.
25322 (aarch64_branch_cost): Declare.
25323 * config/aarch64.c (generic_branch_cost): New.
25324 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
25325 (cortexa53_tunings): Likewise.
25326 (cortexa57_tunings): Likewise.
25327 (thunderx_tunings): Likewise.
25328 (xgene1_tunings): Likewise.
25329 (aarch64_branch_cost): Define.
25330 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
25331
25332 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25333
25334 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
25335 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
25336 * config/i386/i386.md: Ditto.
25337 * config/i386/winnt.c: Ditto.
25338
25339 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
25340
25341 * doc/extend.texi (__atomic Builtins): Move implementation details
25342 to the end of the description, rewrite opening paragraphs, state
25343 difference with __sync builtins, state C11/C++11 assumptions,
25344 weaken itemized descriptions, add explanation of memory model
25345 behaviour, expand description of compare-exchange, simplify text.
25346
25347 2015-05-05 Renlin Li <renlin.li@arm.com>
25348
25349 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
25350
25351 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
25352
25353 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
25354 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25355 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
25356 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25357 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
25358 * configure: Regenerate.
25359 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
25360 * doc/install.texi (aarch64*-*-*): Document new
25361 --enable-fix-cortex-a53-843419 option.
25362 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
25363 and -mno-fix-cortex-a53-843419 options.
25364
25365 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25366
25367 PR target/65871
25368 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
25369
25370 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
25371
25372 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
25373 fix overactive TYPE_MIN_VALUE check and add FIXME for type
25374 compatibility problems.
25375
25376 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
25377
25378 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
25379 constraints.
25380 (cbranchsi4_reg): New.
25381 * config/microblaze/microblaze.c
25382 (microblaze_expand_conditional_branch_reg): New.
25383 * config/microblaze/microblaze-protos.h
25384 (microblaze_expand_conditional_branch_reg): New prototype.
25385
25386 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
25387
25388 * config/microblaze/microblaze.md (peephole2): New.
25389
25390 2015-05-04 Jeff Law <law@redhat.com>
25391
25392 Revert:
25393 2015-05-04 Jeff Law <law@redhat.com>
25394
25395 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25396 simplifier to narrow arithmetic.
25397 * generic-match-head.c: (types_match, single_use): New functions.
25398 * gimple-match-head.c: (types_match, single_use): New functions.
25399
25400 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
25401
25402 PR target/65987
25403 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
25404 (split_branches): Likewise.
25405
25406 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
25407
25408 * common.opt (fdelete-null-pointer-checks): Init to -1.
25409 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
25410 override flag_delete_null_pointer_checks default.
25411 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
25412 behavior re address zero. Better document target-specific behavior.
25413 (-fisolate-errneous-paths-dereference): Mention relationship to
25414 -fdelete-null-pointer-checks.
25415
25416 2015-05-04 Jakub Jelinek <jakub@redhat.com>
25417
25418 PR tree-optimization/65984
25419 * ubsan.c: Include tree-cfg.h.
25420 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
25421 stmt_could_throw_p test, rename can_throw variable to ends_bb.
25422
25423 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
25424
25425 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
25426 to CONST_DOUBLE_P predicate.
25427 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
25428 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
25429 allow only operands that satisfy standard_sse_constant_p predicate.
25430 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
25431 to CONST_DOUBLE_P predicate.
25432
25433 2015-05-04 Jeff Law <law@redhat.com>
25434
25435 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25436 simplifier to narrow arithmetic.
25437 * generic-match-head.c: (types_match, single_use): New functions.
25438 * gimple-match-head.c: (types_match, single_use): New functions.
25439
25440 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
25441
25442 * config/arm/arm.c: Restore bootstrap.
25443
25444 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
25445
25446 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
25447 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
25448 as CONST_WIDE_INT, not CONST_DOUBLE.
25449 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
25450 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
25451 (ix86_find_base_term): Do not check for CONST_DOUBLE.
25452 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
25453 (ix86_build_signbit_mask): Rewrite using wide ints.
25454 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
25455 (ix86_rtx_costs): Handle CONST_WIDE_INT.
25456 (find_constant): Ditto.
25457 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
25458 using gen_int_mode.
25459 * config/i386/predicates.md (x86_64_immediate_operand)
25460 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25461 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
25462 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25463 (const0_operand): Also match const_wide_int.
25464 (constm1_operand): Ditto.
25465 (const1_operand): Ditto.
25466
25467 2015-05-04 Richard Biener <rguenther@suse.de>
25468
25469 PR tree-optimization/65965
25470 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
25471 store groups at gaps.
25472
25473 2015-05-04 Richard Biener <rguenther@suse.de>
25474
25475 PR tree-optimization/65935
25476 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
25477 then make sure to apply that swapping to the IL.
25478
25479 2015-05-04 Jakub Jelinek <jakub@redhat.com>
25480
25481 * Makefile.in (PATCHLEVEL_c): New variable.
25482 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
25483 expand the same way as if DEVPHASE_c was non-empty.
25484
25485 2015-05-04 Kai Tietz <ktietz@redhat.com>
25486
25487 PR target/65559
25488 * lto-wrapper.c (run_gcc): Open filename
25489 in binary-mode.
25490
25491 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
25492
25493 * doc/extend.texi (Variable Attributes, Type Attributes): Move
25494 sections up in file, to immediately after the Function Attributes
25495 section.
25496
25497 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
25498
25499 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
25500
25501 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25502
25503 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
25504 (insert_partition_copy_on_edge): Adjust.
25505 (insert_rtx_to_part_on_edge): Likewise.
25506 (insert_part_to_rtx_on_edge): Likewise.
25507
25508 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25509
25510 * function.c (set_return_jump_label): Change type of argument to
25511 rtx_insn *.
25512 * function.h (set_return_jump_label): Adjust.
25513
25514 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25515
25516 * reload.h (struct reg_equivs_t): Change type of init to
25517 rtx_insn *.
25518 * ira.c (fix_reg_equiv_init): Adjust.
25519 * reload1.c (eliminate_regs_1): Likewise.
25520 (init_eliminable_invariants): Likewise.
25521
25522 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25523
25524 * cselib.c (fp_setter_insn): Take a rtx_insn *.
25525 * cselib.h (fp_setter_insn): Adjust.
25526
25527 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25528
25529 * recog.c (struct validate_replace_src_data): Change type of
25530 insn field to rtx_insn *.
25531 (validate_replace_src_group): Change type of argument to rtx_insn *.
25532 * recog.h (validate_replace_src_group): Adjust.
25533
25534 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25535
25536 * haifa-sched.c: Change the type of some variables to rtx_insn *.
25537 * sched-deps.c: Likewise.
25538 * sched-int.h: Likewise.
25539 * sched-rgn.c: Likewise.
25540 * sel-sched.c: Likewise.
25541
25542 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25543
25544 to rtx_insn *.
25545 * config/i386/i386.c: Change the type of some arguments to
25546 rtx_insn *.
25547 * config/arm/arm.c: Likewise.
25548
25549 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25550
25551 * lra-constraints.c: Change type of some arguments to rtx_insn *.
25552
25553 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25554
25555 * regcprop.c (kill_autoinc_value): Change type of argument to
25556 rtx_insn *.
25557
25558 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25559
25560 * genrecog.c (print_subroutine): Adjust.
25561 * recog.c (get_bool_attr_mask_uncached): Likewise.
25562 * recog.h (struct recog_data_d): Change the type of insn to
25563 rtx_insn *.
25564
25565 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25566
25567 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
25568
25569 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25570
25571 * df-problems.c (df_set_note): Change type of argument to
25572 rtx_insn *.
25573
25574 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25575
25576 * builtins.c (expand_builtin_trap): Change type of local
25577 variable to rtx_insn *.
25578 (add_sched_insns_for_speculation): Likewise.
25579 (ix86_emit_save_regs): Likewise.
25580 (get_scratch_register_on_entry): Likewise.
25581 (ix86_emit_restore_reg_using_pop): Likewise.
25582 (ix86_emit_leave): Likewise.
25583 (ix86_emit_restore_regs_using_mov): Likewise.
25584 (ix86_expand_epilogue): Likewise.
25585 Likewise.
25586 (rl78_alloc_physical_registers_umul): Likewise.
25587 * cselib.c (discard_useless_locs): Likewise.
25588 (cselib_invalidate_regno): Likewise.
25589 (cselib_invalidate_mem): Likewise.
25590 * function.c (expand_function_start): Likewise.
25591 (emit_use_return_register_into_block): Likewise.
25592 * gcse.c: Likewise.
25593 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
25594 * ifcvt.c (noce_get_alt_condition): Likewise.
25595 * loop-doloop.c (doloop_condition_get): Likewise.
25596 * lra-constraints.c (inherit_in_ebb): Likewise.
25597 * modulo-sched.c (sms_schedule_by_order): Likewise.
25598 * recog.c (next_insn_tests_no_inequality): Likewise.
25599 * reorg.c (emit_delay_sequence): Likewise.
25600 (update_reg_dead_notes): Likewise.
25601 (fix_reg_dead_note): Likewise.
25602 (fill_slots_from_thread): Likewise.
25603 (delete_computation): Likewise.
25604
25605 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
25606
25607 * doc/extend.texi (Variable Attributes): Add menu and proper
25608 @nodes to subsections. Move Microsoft Windows attributes to
25609 their own subsection.
25610 (Type Attributes): Reorganize introduction to remove duplicate
25611 list of attributes. Add menu and proper @nodes to subsections.
25612 Alphabetize the main table of common attributes.
25613
25614 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
25615
25616 * match.pd: New simplification patterns.
25617 (x + (x & 1)) -> ((x + 1) & ~1)
25618 (x & ~(x & y)) -> ((x & ~y))
25619 (x | ~(x | y)) -> ((x | ~y))
25620
25621 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25622
25623 * target.def (attribute_table): Mention that struct attribute_spec
25624 is defined in tree-core.h rather than tree.h
25625 * doc/tm.texi: Regenerate.
25626
25627 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
25628
25629 * genrecog.c (test): Rename to rtx_test. Update rest of file
25630 accordingly.
25631
25632 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
25633
25634 PR translation/65959
25635 * params.h (DEFPARAM): Rename msgid to nocmsgid.
25636
25637 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25638
25639 * config/aarch64/aarch64-protos.h (tune_params):
25640 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
25641 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
25642 Return value depending on target.
25643 (generic_tunings): Initialize new target settings.
25644 (cortexa53_tunings): Likewise.
25645 (cortexa57_tunings): Likewise.
25646 (thunderx_tunings): Likewise.
25647 (xgene1_tunings): Likewise.
25648
25649 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25650
25651 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
25652 Make Cortex-A53 shift costs more accurate.
25653
25654 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25655
25656 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
25657 UNSIGNED_FLOAT.
25658
25659 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25660
25661 * config/aarch64/aarch64.c (aarch64_rtx_costs):
25662 Calculate cost of op0 and op1 in PLUS and MINUS cases.
25663
25664 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25665
25666 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25667 Add cost of op0 in the compare-with-fpzero case.
25668
25669 2015-04-30 David Malcolm <dmalcolm@redhat.com>
25670
25671 * builtins.c (fold_builtin_1): Remove spurious second
25672 semicolon.
25673 * cgraph.h (symtab_node::get_availability): Likewise.
25674 * opts.c (common_handle_option): Remove spurious second semicolon.
25675 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25676 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
25677
25678 2015-04-30 Caroline Tice <cmtice@google.com>
25679
25680 PR gcov-profile/65929
25681 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
25682 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
25683 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
25684 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
25685 * doc/tm.texi: Regenerate.
25686 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
25687 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
25688 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
25689 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
25690
25691 2015-04-30 Marek Polacek <polacek@redhat.com>
25692
25693 * varasm.c (handle_cache_entry): Fix logic.
25694
25695 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25696
25697 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
25698 (*extrsi5_insn_uxtw_alt): Likewise.
25699 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
25700 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
25701 operations.
25702
25703 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25704
25705 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
25706 fabd in ABS case.
25707
25708 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25709
25710 * config/aarch64/aarch64.md
25711 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
25712 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
25713 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
25714 appropriately. Handle alternative EON form.
25715
25716 2015-04-30 Renlin Li <renlin.li@arm.com>
25717
25718 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
25719 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
25720
25721 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25722
25723 PR ipa/65873
25724 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
25725 -fstrict-aliasing boundaries.
25726
25727 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25728
25729 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
25730 and [SU]MNEGL patterns.
25731
25732 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25733
25734 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
25735 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
25736 combined arithmetic-shift ops. Properly handle all shift and extend
25737 operations that can occur in combination with PLUS/MINUS.
25738 Rename maybe_fma to compound_p.
25739 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
25740 arithmetic and shift operations.
25741
25742 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25743
25744 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
25745 rather than arith_shift cost when costing ADD/MINUS of an
25746 extended value.
25747
25748 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25749
25750 PR lto/65948
25751 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
25752 to itself.
25753
25754 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
25755
25756 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
25757 are for the same position.
25758
25759 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
25760
25761 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
25762 vectorize_loops.
25763 (vectorize_loops): Use it.
25764
25765 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25766
25767 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
25768 for aggregate types.
25769 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
25770 type to be non_ODR.
25771 * tree.c (need_assembler_name_p): Compute mangled name for
25772 non-fundamental types and integer types.
25773
25774 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
25775
25776 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
25777 manual swaps.
25778 * expr.c (expand_expr_real_2): Likewise.
25779
25780 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25781
25782 * tree.c (build_common_builtin_nodes): Do not build
25783 __builtin_alloca_with_align as equivalent of library alloca.
25784
25785 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25786
25787 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
25788 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
25789 bugus variants.
25790 * tree.c: Include print-tree.h and ipa-utils.h
25791 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
25792 (free_lang_data_in_cgraph): Call verify_type.
25793 (verify_type_variant): New function.
25794 (verify_type): New function.
25795 * tree.h (verify_type): Declare.
25796
25797 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
25798
25799 * config/mips/mips-cpus.def: (mips4): Change default processor
25800 from PROCESSOR_R8000 to PROCESSOR_R10000.
25801
25802 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
25803
25804 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
25805 la/jalr instead of jal.
25806
25807 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
25808
25809 PR target/65871
25810 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
25811 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
25812 (setcc+movzbl peephole2): Check also clobbered reg.
25813 (setcc+andl peephole2): Ditto.
25814
25815 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25816
25817 PR libgomp/65099
25818 * config/nvptx/mkoffload.c (target_ilp32): New variable.
25819 (main): Set it depending on "-foffload-abi=[...]".
25820 (compile_native, main): Use it to pass "-m32" or "-m64" to the
25821 compiler.
25822
25823 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25824
25825 PR target/65770
25826 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
25827 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
25828 Flip lane index back at assembly time for bigendian.
25829
25830 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25831
25832 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
25833 * gimplify.c (gimplify_omp_workshare): Use it.
25834
25835 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25836
25837 * Makefile.in (build/genrecog.o): Depend on inchash.h.
25838 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
25839 build/inchash.o
25840 * genrecog.c: Rewrite most of the code except for the third page.
25841
25842 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25843
25844 * inchash.h, inchash.c: Include bconfig.h for build objects.
25845 * Makefile.in (build/inchash.o): New rule.
25846
25847 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
25848
25849 PR target/65924
25850 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
25851 number in type attribute expression.
25852
25853 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25854
25855 * loop-iv.c (canon_condition): Generalize to all types of integer
25856 constant.
25857
25858 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
25859
25860 * gimple-walk.c: Prune duplicate or unneeded includes.
25861 (walk_gimple_asm): Only call parse_input_constraint or
25862 parse_output_constraint if their findings are used.
25863 Honour parse_input_constraint and parse_output_constraint
25864 result.
25865
25866 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25867
25868 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
25869
25870 2015-04-29 Tom de Vries <tom@codesourcery.com>
25871
25872 PR tree-optimization/65893
25873 * passes.def (pass_all_optimizations): Move pass_stdarg to after
25874 pass_dce.
25875
25876 2015-04-29 Richard Biener <rguenther@suse.de>
25877
25878 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25879 compute GROUP_SIZE for basic-block SLP.
25880 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
25881 take into account gaps.
25882 (vect_get_mask_element): Properly reject references to previous
25883 vectors.
25884 (vect_transform_slp_perm_load): Likewise.
25885
25886 2015-04-29 Christian Bruel <christian.bruel@st.com>
25887
25888 PR target/64835
25889 * config/i386/i386.c (ix86_default_align): New function.
25890 (ix86_override_options_after_change): Call ix86_default_align.
25891 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
25892 (ix86_override_options_after_change): New function.
25893
25894 2015-04-28 Jeff Law <law@redhat.com>
25895
25896 * tree-ssa-dom.c (record_equality); Fix comment typos.
25897
25898 2015-04-28 Tom de Vries <tom@codesourcery.com>
25899
25900 PR tree-optimization/65887
25901 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
25902
25903 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
25904
25905 * doc/extend.texi (Declaring Attributes of Functions): Split into
25906 subsections by target. Alphabetize the table of common attributes.
25907 Rewrite some of the introductory text to reflect the new structure.
25908 Update some cross-references to point to the new subsections.
25909 (Attribute Syntax): Put paragraph about "__" naming here. Remove
25910 duplicate copies in the discussion of function, label, and type
25911 attributes.
25912
25913 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
25914
25915 PR bootstrap/65910
25916 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
25917
25918 2015-04-28 Jason Merrill <jason@redhat.com>
25919
25920 PR c++/65734
25921 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
25922 (finalize_type_size): Respect TYPE_USER_ALIGN.
25923 (layout_type) [ARRAY_TYPE]: Likewise.
25924
25925 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
25926
25927 * config/arm/arm.md (*arm_movt): Fix type attribute.
25928 (*cmpsi_shiftsi): Likewise.
25929 (*cmpsi_shiftsi_swp): Likewise.
25930 (*movsicc_insn): Likewise.
25931 (*cond_move): Likewise.
25932 (*if_plus_move): Likewise.
25933 (*if_move_plus): Likewise.
25934 (*if_arith_move): Likewise.
25935 (*if_move_arith): Likewise.
25936 (*if_shift_move): Likewise.
25937 (*if_move_shift): Likewise.
25938 (*arm_movtas_ze): Likewise.
25939 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
25940 redundancy and type attribute.
25941 (*thumb2_movsi_insn): Fix type attribute.
25942 (*thumb2_addsi_short): Likewise.
25943 (thumb2_addsi3_compare0): Likewise.
25944 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
25945 attributes accordingly.
25946
25947 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
25948
25949 PR other/65911
25950 * function.c (pad_to_arg_alignment): Add parentheses.
25951
25952 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
25953
25954 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
25955 libgcc/config/frv/elf-lib.h.
25956
25957 2015-04-28 Tom de Vries <tom@codesourcery.com>
25958
25959 * tree-call-cdce.c: Fix example in header comment.
25960
25961 2015-04-28 Richard Biener <rguenther@suse.de>
25962
25963 PR tree-optimization/62283
25964 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
25965 fails fatally and we are vectorizing a basic-block simply
25966 cause the child to be constructed piecewise.
25967 (vect_analyze_slp_cost_1): Adjust.
25968 (vect_detect_hybrid_slp_stmts): Likewise.
25969 (vect_bb_slp_scalar_cost): Likewise.
25970 (vect_get_constant_vectors): For piecewise constructed
25971 constants place them after the last def.
25972 (vect_get_slp_defs): Adjust.
25973 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
25974 externals for basic-block vectorization.
25975
25976 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25977
25978 PR target/63503
25979 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
25980 aarch64-*-*.
25981 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
25982 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
25983 (AARCH64_TUNE_FMA_STEERING): Likewise.
25984 * config/aarch64/aarch64-cores.def: Set
25985 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
25986 FMUL/FMADD instructions.
25987 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
25988 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
25989 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
25990 * config/aarch64/cortex-a57-fma-steering.h: New file.
25991 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25992
25993 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
25994
25995 * gensupport.c (std_preds): Add missing codes to address_operand entry.
25996
25997 2015-04-28 Richard Biener <rguenther@suse.de>
25998
25999 PR tree-optimization/65851
26000 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
26001 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
26002 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
26003 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
26004 (ccp_visit_phi_node): Adjust.
26005 (evaluate_stmt): For simplifications to SSA names return its
26006 lattice value if that isn't VARYING. Return immediately when
26007 simplified to a constant.
26008 (visit_assignment): Adjust.
26009 (ccp_visit_stmt): Likewise.
26010
26011 2015-04-28 Tom de Vries <tom@codesourcery.com>
26012
26013 PR tree-optimization/65818
26014 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
26015 evaluated.
26016
26017 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26018
26019 * calls.c (save_fixed_argument_area): Don't check
26020 ARGS_GROW_DOWNWARD with the preprocessor.
26021 (restore_fixed_argument_area): Likewise.
26022 (mem_overlaps_already_clobbered_arg_p): Likewise.
26023 (check_sibcall_argument_overlap): Likewise.
26024 (expand_call): Likewise.
26025 (emit_library_call_value_1): Likewise.
26026 (store_one_arg): Likewise.
26027 * function.c (assign_parms): Likewise.
26028 (locate_and_pad_parm): Likewise.
26029 (pad_to_arg_alignment): Likewise.
26030 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
26031
26032 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26033
26034 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
26035 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
26036 * calls.c (save_fixed_argument_area): Don't chekc if
26037 ARGS_GROW_DOWNWARD is defined.
26038 (restore_fixed_argument_area): Likewise.
26039 (mem_overlaps_already_clobbered_arg_p): Likewise.
26040 (check_sibcall_argument_overlap): Likewise.
26041 (expand_call): Likewise.
26042 (emit_library_call_value_1): Likewise.
26043 (store_one_arg): Likewise.
26044 * function.c (assign_parms): Likewise.
26045 (locate_and_pad_parm): Likewise.
26046 (pad_to_arg_alignment): Likewise.
26047 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
26048
26049 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26050
26051 * defaults.h (gen_epilogue): New function.
26052 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
26053 defined.
26054 * cfgrtl.c (cfg_layout_finalize): Likewise.
26055 * df-scan.c: Likewise.
26056 * function.c (thread_prologue_and_epilogue_insns): Likewise.
26057 (reposition_prologue_and_epilogue_notes): Likewise.
26058 * reorg.c (find_end_label): Likewise.
26059 * toplev.c: Likewise.
26060
26061 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26062
26063 * bb-reorder.c (HAVE_return): Don't check if its undefined.
26064 * defaults.h (gen_simple_return): New function.
26065 (gen_simple_return): Likewise.
26066 (HAVE_return): Add default definition to false.
26067 (HAVE_simple_return): Likewise.
26068 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
26069 HAVE_return and HAVE_simple_return are defined.
26070 * function.c (gen_return_pattern): Likewise.
26071 (convert_jumps_to_returns): Likewise.
26072 (thread_prologue_and_epilogue_insns): Likewise.
26073 * reorg.c (find_end_label): Likewise.
26074 (dbr_schedule): Likewise.
26075 * shrink-wrap.c: Likewise.
26076 * shrink-wrap.h: Likewise.
26077
26078 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26079
26080 * defaults.h (EPILOGUE_USES): Add default definition of false.
26081 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
26082 * resource.c (init_resource_info): Likewise.
26083
26084 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26085
26086 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
26087 to false.
26088 * dwarf2out.c (field_byte_offset): REmove check if
26089 PCC_BITFIELD_TYPE_MATTERS is defined.
26090 * stor-layout.c (layout_decl): Likewise.
26091 (update_alignment_for_field): Likewise.
26092 (place_field): Likewise.
26093
26094 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26095
26096 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
26097 true.
26098 * regrename.c (check_new_reg_p): Remove check if
26099 HARD_REGNO_RENAME_OK is defined.
26100 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
26101
26102 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26103
26104 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
26105 * cse.c (fold_rtx): Likewise.
26106 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
26107 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
26108 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
26109 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
26110 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
26111 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
26112 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
26113 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
26114 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
26115 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
26116 * Likewise.
26117 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
26118 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
26119 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
26120 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
26121 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
26122 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
26123 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
26124 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
26125 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
26126 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
26127 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
26128 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
26129 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
26130 * doc/tm.texi: Regenerate.
26131 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
26132 either true or false.
26133
26134 2015-04-27 Jeff Law <law@redhat.com>
26135
26136 PR tree-optimization/65217
26137 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
26138 of them has a single use, make sure it is the LHS of the implied
26139 copy.
26140
26141 2015-04-28 Alan Modra <amodra@gmail.com>
26142
26143 PR target/65810
26144 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
26145 (offsettable_ok_by_alignment): Use minimum of decl and toc
26146 pointer alignment. Replace dead code with assertion.
26147 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
26148 case if size exceeds toc pointer alignment.
26149 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
26150 (rs6000_emit_move): Likewise.
26151 * configure.ac: Add linker toc pointer alignment check.
26152 * configure: Regenerate.
26153 * config.in: Regenerate.
26154
26155 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
26156
26157 * config.gcc: Add h8300-*-linux.
26158 * config/h8300/linux.h: New.
26159 * config/h8300/t-linux: New.
26160 * config/h8300/h8300.c (h8300_option_override): Normal mode
26161 is not supported for h8300-*-linux.
26162 (h8300_file_start): Target priority change.
26163 (get_shift_alg): Likewise.
26164 (h8300_shift_need_scratch_p): Likewise.
26165 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
26166 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
26167
26168 2015-04-27 Caroline Tice <cmtice@google.com>
26169
26170 * final.c (final_scan_insn): Output cold_function_name as function
26171 type.
26172 * varasm.c (cold_function_name): Make global.
26173 (assemble_start_function): Re-set cold_function_name.
26174 (assemble_end_function): Output cold partition size.
26175 * varasm.h (cold_function_name): Declare global.
26176
26177 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
26178
26179 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
26180 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
26181 constraint.
26182 (*movxi_internal_avx512f): Ditto.
26183 (define_split): Check for xmm16+, when splitting scalar float_extend.
26184 (*extendsfdf2_mixed): Use "v" constraint.
26185 (define_split): Check for xmm16+, when splitting scalar float_truncate.
26186 (*truncdfsf_fast_sse): Use "v" constraint.
26187 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
26188 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
26189 (define_peephole2): Check for xmm16+, when converting scalar
26190 float_truncate.
26191 (define_peephole2): Check for xmm16+, when converting scalar
26192 float_extend.
26193 (*fop_<mode>_comm_mixed): Use "v" constraint.
26194 (*fop_<mode>_comm_sse): Ditto.
26195 (*fop_<mode>_1_mixed): Ditto.
26196 (*sqrt<mode>2_sse): Ditto.
26197 (*ieee_s<ieee_maxmin><mode>3): Ditto.
26198
26199 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26200
26201 * combine.c (simplify_if_then_else): Use std::swap instead
26202 of manually swapping.
26203 (known_cond): Likewise.
26204 (simplify_comparison): Likewise.
26205
26206 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
26207
26208 PR target/64579
26209 * config/rs6000/htm.md: Remove all define_expands.
26210 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
26211 UNSPECV_HTM_TABORTWCI): Remove.
26212 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
26213 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
26214 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
26215 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
26216 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
26217 tabortwci_internal): Remove define_insns.
26218 (tabort<wd>c, tabort<wd>ci): New define_insns.
26219 (tabort): Use gpc_reg_operand.
26220 (tcheck): Remove operand.
26221 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
26222 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
26223 expected value.
26224 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
26225 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
26226 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
26227 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
26228 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
26229 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
26230 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
26231 (tcheck): Remove builtin argument.
26232 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
26233 not TARGET_64BIT.
26234 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
26235 tabortdc and tabortdci builtins when not in 64-bit mode.
26236 Modify code to handle the loss of the HTM define_expands.
26237 Emit code to copy the CR register to TARGET.
26238 (htm_init_builtins): Modify code to handle the loss of the HTM
26239 define_expands.
26240 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
26241 (RS6000_BTC_64BIT): Likewise.
26242 (RS6000_BTC_CR): New macro.
26243 * doc/extend.texi: Update documentation for htm builtins.
26244
26245 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26246
26247 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
26248 of manually swapping.
26249 (simplify_associative_operation): Likewise.
26250 (simplify_binary_operation): Likewise.
26251 (simplify_plus_minus): Likewise.
26252 (simplify_relational_operation): Likewise.
26253 (simplify_ternary_operation): Likewise.
26254
26255 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
26256
26257 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
26258 (xs_hi_nonmemory_operand): Remove error.
26259 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
26260 general_operand rather than xs_hi_general_operand.
26261
26262 2015-04-27 Richard Biener <rguenther@suse.de>
26263
26264 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
26265 (record_equivalences_from_stmt): Valueize rhs.
26266 (record_equality): Canonicalize x and y order via
26267 tree_swap_operands_p. Do not swap operands for same loop depth.
26268
26269 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
26270
26271 PR target/65296
26272 PR target/65895
26273 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
26274 Add hint how to use own spec file.
26275
26276 2015-04-27 Jakub Jelinek <jakub@redhat.com>
26277
26278 PR tree-optimization/65875
26279 * tree-vrp.c (update_value_range): If in is_new case setting
26280 old_vr to VR_VARYING, also set new_vr to it. Remove
26281 old_vr->type == VR_VARYING test.
26282 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
26283 SSA_PROP_INTERESTING if update_value_range returned true,
26284 but new range is VR_VARYING.
26285
26286 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
26287
26288 * combine.c (sign_extend_short_imm): New.
26289 (set_nonzero_bits_and_sign_copies): Use above new function for sign
26290 extension of src short immediate.
26291 (reg_nonzero_bits_for_combine): Likewise for tem.
26292
26293 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
26294
26295 * stor-layout.c (self_referential_component_ref_p): New predicate.
26296 (copy_self_referential_tree_r): Use it.
26297 (self_referential_size): Punt for simple operations directly involving
26298 self-referential component references.
26299 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
26300
26301 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
26302
26303 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
26304
26305 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
26306
26307 * vec.h (vec): Make splice arguments const. Update definitions
26308 accordingly.
26309
26310 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
26311
26312 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
26313 alternatives.
26314
26315 2015-04-26 Tom de Vries <tom@codesourcery.com>
26316
26317 PR tree-optimization/65826
26318 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
26319
26320 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
26321
26322 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
26323 (*madd3<mode>): Ditto.
26324 (*msub4<mode>): Ditto.
26325 (*msub3<mode>): Ditto.
26326 (*nmadd4<mode>): Ditto.
26327 (*nmadd3<mode>): Ditto.
26328 (*nmadd4<mode>_fastmath): Ditto.
26329 (*nmadd3<mode>_fastmath): Ditto.
26330 (*nmsub4<mode>): Ditto.
26331 (*nmsub3<mode>): Ditto.
26332 (*nmsub4<mode>_fastmath): Ditto.
26333 (*nmsub3<mode>_fastmath): Ditto.
26334
26335 2015-04-24 Jason Merrill <jason@redhat.com>
26336
26337 PR c++/50800
26338 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
26339 down when building TYPE_CANONICAL.
26340 (build_pointer_type_for_mode): Likewise.
26341
26342 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
26343
26344 * genrecog.c (validate_pattern): Check matching constraint refers
26345 to a lower numbered operand.
26346
26347 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
26348
26349 PR target/65849
26350 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
26351 save to independent variables use the Save attribute. This will
26352 allow these options to be modified with the #pragma/attribute
26353 target support.
26354 (-mallow-movmisalign): Likewise.
26355 (-mallow-df-permute): Likewise.
26356 (-msched-groups): Likewise.
26357 (-malways-hint): Likewise.
26358 (-malign-branch-targets): Likewise.
26359 (-mvectorize-builtins): Likewise.
26360 (-msave-toc-indirect): Likewise.
26361
26362 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
26363 can be set via the #pragma/attribute target support.
26364 (rs6000_opt_vars): Likewise.
26365 (rs6000_inner_target_options): If VSX was set, also set
26366 -mno-avoid-indexed-addresses.
26367
26368 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26369
26370 * config/arm/iterators.md (shiftable_ops): Rename to...
26371 (SHIFTABLE_OPS): ... This. Update use in comments.
26372 (ior_xor): Rename to...
26373 (IOR_XOR): ... This.
26374 (vqh_ops): Rename to...
26375 (VQH_OPS): ... This.
26376 (vqhs_ops): Rename to...
26377 (VQHS_OPS): ... This.
26378 (rshifts): Rename to...
26379 (RSHIFTS): ... This.
26380 (returns): Rename to...
26381 (RETURNS): ... This.
26382 * config/arm/arm.md: Update uses of the above.
26383 * config/arm/neon.md: Likewise.
26384
26385 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26386
26387 * config.host (case ${host}): Add aarch64*-*-linux case.
26388 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
26389 fields to all the cores.
26390 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
26391 Add MCPU_MTUNE_NATIVE_SPECS.
26392 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
26393 field to all extensions.
26394 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
26395 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
26396 Adjust definition of AARCH64_OPT_EXTENSION.
26397 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
26398 (MCPU_MTUNE_NATIVE_SPECS): Define.
26399 * config/aarch64/driver-aarch64.c: New file.
26400 * config/aarch64/x-arch64: New file.
26401 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
26402 -mtune and -march.
26403
26404 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26405 Wei Mi <wmi@google.com>
26406
26407 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
26408 * config/i386/i386.c (extract_base_offset_in_addr): New function.
26409 (ix86_operands_ok_for_move_multiple): Ditto.
26410 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
26411 (movlpd/movhpd to movupd peephole2): Ditto.
26412
26413 2015-04-24 Marek Polacek <polacek@redhat.com>
26414
26415 PR c/61534
26416 * input.h (from_macro_expansion_at): Define.
26417
26418 PR c/63357
26419 * doc/invoke.texi: Update description of -Wlogical-op.
26420
26421 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26422
26423 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
26424 ternary operator in fprintf and harmonize spacing.
26425
26426 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26427
26428 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
26429 Mark operand1 commutative.
26430
26431 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26432
26433 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
26434 input operands in memory.
26435 (*vec_concatv2si_sse4_1): Ditto.
26436 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
26437 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
26438 register_operand.
26439 (vec_extract_hi_v32hi): Ditto.
26440 (vec_extract_hi_v64hi): Ditto.
26441 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
26442
26443 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26444 Steven Bosscher <steven@gcc.gnu.org>
26445
26446 PR rtl-optimization/34503
26447 * cprop.c (cprop_reg_p): New.
26448 (hash_scan_set): Use above function to check if register can be
26449 propagated.
26450 (find_avail_set): Return up to two sets, one whose source is a
26451 register and one whose source is a constant. Sets are returned in an
26452 array passed as parameter rather than as a return value.
26453 (cprop_insn): Use a do while loop rather than a goto. Try each of the
26454 sets returned by find_avail_set, starting with the one whose source is
26455 a constant. Use cprop_reg_p to check if register can be propagated.
26456 (do_local_cprop): Use cprop_reg_p to check if register can be
26457 propagated.
26458 (implicit_set_cond_p): Likewise.
26459
26460 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26461
26462 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
26463 (sem_function::equals): IGNORED_NODES parameter is now unused;
26464 update call of equals_private.
26465 (sem_function::equals_private): Do not call equals_wpa; skip
26466 gimple body matching if there is no body.
26467 (sem_function::init): Add logic to hash tthunk info.
26468 (sem_function::parse): Also parse thunks.
26469 * ipa-icf.h (equals_private): Update declaration.
26470
26471 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26472
26473 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
26474 asterisk from name so this can be generated directly.
26475 (*altivec_stvx_<mode>_internal): Likewise.
26476 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
26477 that this is never called during or after reload/lra.
26478 (rs6000_frame_related): Remove split_reg
26479 argument and logic that references it.
26480 (emit_frame_save): Remove last parameter from call to
26481 rs6000_frame_related.
26482 (rs6000_emit_prologue): Remove last parameter from eight calls to
26483 rs6000_frame_related. Force generation of stvx instruction for
26484 Altivec register saves. Remove split_reg handling, which is no
26485 longer needed.
26486 (rs6000_emit_epilogue): Force generation of lvx instruction for
26487 Altivec register restores.
26488
26489 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26490
26491 * config/rs6000/rs6000.opt (mcrypto): Change option description to
26492 match category changes in ISA 2.07B.
26493
26494 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26495
26496 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
26497 iterators.
26498 (cmp_op, cmp_type): New code attributes.
26499 (NEON_VCMP, NEON_VACMP): New int iterators.
26500 (cmp_op_unsp): New int attribute.
26501 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
26502 (neon_vceq<mode>): Delete.
26503 (neon_vc<cmp_op><mode>_insn): New pattern.
26504 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
26505 (neon_vcgeu<mode>): Delete.
26506 (neon_vcle<mode>): Likewise.
26507 (neon_vclt<mode>: Likewise.
26508 (neon_vcage<mode>): Likewise.
26509 (neon_vcagt<mode>): Likewise.
26510 (neon_vca<cmp_op><mode>): New define_expand.
26511 (neon_vca<cmp_op><mode>_insn): New pattern.
26512 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
26513
26514 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26515
26516 * tree.h (attribute_value_equal): Declare.
26517 * tree.c (attribute_value_equal): Export.
26518
26519 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26520
26521 * ipa-icf.c (sem_item::compare_attributes): New function.
26522 (sem_item::compare_referenced_symbol_properties): Compare variable
26523 attributes.
26524 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
26525 (sem_function::param_used_p): New function.
26526 (sem_function::equals_wpa): Fix attribute comparsion; match
26527 parameter type codes; do not compare paremter flags when
26528 they are not used; compare edge flags; compare indirect calls.
26529 (sem_item::update_hash_by_addr_refs): Hash reference type.
26530 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
26531 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
26532 reference use type.
26533 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
26534 * ipa-icf.h (compare_attributes, param_used_p): Declare.
26535
26536 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26537
26538 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
26539 cleanup.
26540 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
26541 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
26542 (sem_item::compare_referenced_symbol_properties): New.
26543 (sem_item::hash_referenced_symbol_properties): New.
26544 (sem_item::compare_cgraph_references): Rename to ...
26545 (sem_item::compare_symbol_references): ... this one; use
26546 compare_referenced_symbol_properties.
26547 (sem_function::equals_wpa): Do not compare
26548 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
26549 DECL_IS_OPERATOR_NEW; compare pointer sizes.
26550 (sem_item::update_hash_by_addr_refs): Call
26551 hash_referenced_symbol_properties.
26552 (sem_item::update_hash_by_local_refs): Cleanup.
26553 (sem_function::merge): Do not mix up symbol properties.
26554 (sem_variable::equals_wpa): Use compare_symbol_references.
26555 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
26556 (sem_item::hash_referenced_symbol_properties): New.
26557 (sem_item::compare_symbol_references): New.
26558 (sem_item::compare_cgraph_references): Remove.
26559
26560 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
26561
26562 PR target/26702
26563 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
26564 Emit size of local.
26565
26566 2015-04-23 Nick Clifton <nickc@redhat.com>
26567
26568 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
26569 ATTRIBUTE_UNUSED to x parameter.
26570 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
26571
26572 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26573
26574 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
26575 TARGET_CRYPTO to TARGET_P8_VECTOR>
26576 (crypto_vpermxor_<mode>): Likewise.
26577 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
26578 (BU_CRYPTO_3A): Likewise.
26579 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
26580 (BU_CRYPTO_OVERLOAD_3A): New #define.
26581 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
26582 (VPMSUMH): Likewise.
26583 (VPMSUMW): Likewise.
26584 (VPMSUMD): Likewise.
26585 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
26586 (VPERMXOR_V4SI): Likewise.
26587 (VPERMXOR_V8HI): Likewise.
26588 (VPERMXOR_V16QI): Likewise.
26589 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
26590 BU_CRYPTO_OVERLOAD_2A.
26591 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
26592 BU_CRYPTO_OVERLOAD_3A.
26593 * config/rs6000/rs6000.opt (mcrypto): Change description of
26594 option.
26595
26596 2015-04-23 Richard Biener <rguenther@suse.de>
26597
26598 * passes.def: Remove copy propagation passes run directly after CCP.
26599 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
26600 SSA names.
26601 (ccp_visit_phi_node): Rework to handle first executable edge
26602 specially.
26603
26604 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
26605
26606 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
26607 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26608 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26609 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
26610 (thumb_legimitimize_reload_address): Remove.
26611 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
26612 Remove.
26613 (thumb_legimitimize_reload_address): Remove.
26614
26615 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26616
26617 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
26618
26619 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26620
26621 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
26622 MAX_LDM_STM_OPS.
26623 (store_multiple): Likewise.
26624
26625 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26626
26627 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
26628 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
26629 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
26630 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
26631 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
26632 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
26633 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
26634 Specify issue_rate value.
26635 (arm_issue_rate): Look up issue rate from tuning structs. Remove
26636 large switch statement.
26637 (arm_marvell_pj4_tune): New struct.
26638 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
26639 struct.
26640
26641 2015-04-23 Richard Biener <rguenther@suse.de>
26642
26643 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
26644 (vect_find_last_store_in_slp_instance): Rename to ...
26645 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
26646 (vect_analyze_slp_cost_1): Use vector_load for constant defs
26647 and vec_construct for external defs when estimating prologue cost.
26648 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
26649 Compute costs here only when vectorizing loops.
26650 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
26651 have been determined.
26652 (vect_schedule_slp_instance): Simplify vectorized code placement
26653 and prepare for in-BB external defs.
26654 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
26655 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
26656 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
26657 guard.
26658 (vect_model_load_cost): Likewise.
26659 (vectorizable_store): Instead add it here.
26660 (vectorizable_load): Likewise.
26661 (vect_is_simple_use): Dump def type textually.
26662
26663 2015-04-23 Richard Biener <rguenther@suse.de>
26664
26665 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
26666 * cfgloop.c (verify_loop_structure): Verify the root loop node.
26667 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
26668 instead of get_eh_region_from_lp_number.
26669 * loop-init.c (fix_loop_structure): If we removed a loop, reset
26670 the SCEV cache.
26671
26672 2015-04-23 Anton Blanchard <anton@samba.org>
26673
26674 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
26675 need for -mprofile-kernel to save LR to stack.
26676
26677 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26678
26679 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
26680 adjustments.
26681 (insn_is_swappable_p): Return 1 for a convert from double to
26682 single precision when all of its uses are splats of BE element
26683 zero.
26684
26685 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
26686
26687 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
26688
26689 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26690
26691 PR target/65456
26692 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
26693 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
26694 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
26695 option.
26696 (rs6000_builtin_mask_for_load): Return 0 for targets with
26697 efficient unaligned VSX accesses so that the vectorizer will use
26698 direct unaligned loads.
26699 (rs6000_builtin_support_vector_misalignment): Always return true
26700 for targets with efficient unaligned VSX accesses.
26701 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
26702 stores on targets with efficient unaligned VSX accesses is almost
26703 always the same as the cost of an aligned load or store, so model
26704 it that way.
26705 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
26706 unaligned vectors if we have efficient unaligned VSX accesses.
26707 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
26708 undocumented option.
26709
26710 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26711
26712 Revert:
26713 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26714
26715 * config.gcc (LIBC_MUSL): New tm_defines macro.
26716 * config/linux.h (OPTION_MUSL): Define.
26717 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26718 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26719 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26720
26721 * config/linux.opt (mmusl): New option.
26722 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26723 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26724
26725 * configure: Regenerate.
26726
26727 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26728
26729 * config.gcc (LIBC_MUSL): New tm_defines macro.
26730 * config/linux.h (OPTION_MUSL): Define.
26731 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26732 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26733 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26734
26735 * config/linux.opt (mmusl): New option.
26736 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26737 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26738
26739 * configure: Regenerate.
26740
26741 2015-04-22 Yury Gribov <y.gribov@samsung.com>
26742
26743 * doc/invoke.texi (-fsanitize-sections): Update description.
26744 * asan.c (set_sanitized_sections): Parse incoming arg.
26745 (section_sanitized_p): Support wildcards.
26746
26747 2015-04-22 Tom de Vries <tom@codesourcery.com>
26748
26749 PR tree-optimization/65823
26750 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
26751 equality between ap_copy and ap.
26752
26753 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26754
26755 PR target/47098
26756 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
26757
26758 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26759
26760 PR target/47122
26761 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
26762
26763 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26764
26765 PR target/55144
26766 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
26767 remove already contained t-files.
26768
26769 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26770
26771 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
26772 Remove unneeded forward declarations.
26773 (suitable_for_tail_call_opt_p): Commentary typo fix.
26774
26775 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26776
26777 * varasm.c (emit_bss): Remove redundant guard.
26778
26779 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26780
26781 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
26782
26783 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26784
26785 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
26786
26787 2015-04-22 Hale Wang <hale.wang@arm.com>
26788 Terry Guo <terry.guo@arm.com>
26789
26790 PR rtl-optimization/64818
26791 * combine.c (can_combine_p): Don't combine user-specified
26792 register if it is in an asm input.
26793
26794 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
26795
26796 PR ipa/65076
26797 * passes.def (early_optimizations): Add pass_dse.
26798
26799 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26800
26801 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
26802 * reorg.c (redundant_insn): Remove ifdef
26803 INSN_REFERENCES_ARE_DELAYED.
26804 * resource.c (mark_referenced_resources): Likewise.
26805
26806 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26807
26808 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
26809 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
26810 * resource.c (mark_set_resources): Likewise.
26811
26812 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26813
26814 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
26815 * cfgcleanup.c (flow_find_cross_jump): Likewise.
26816 (flow_find_head_matching_sequence): Likewise.
26817 (try_head_merge_bb): Likewise.
26818 * combine.c (can_combine_p): Likewise.
26819 (try_combine): Likewise.
26820 (distribute_notes): Likewise.
26821 * df-problems.c (can_move_insns_across): Likewise.
26822 * final.c (final): Likewise.
26823 * gcse.c (insert_insn_end_basic_block): Likewise.
26824 * ira.c (find_moveable_pseudos): Likewise.
26825 * reorg.c (try_merge_delay_insns): Likewise.
26826 (fill_simple_delay_slots): Likewise.
26827 (fill_slots_from_thread): Likewise.
26828 * sched-deps.c (sched_analyze_2): Likewise.
26829
26830 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26831
26832 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
26833 PIC_OFFSET_TABLE_REGNUM.
26834
26835 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26836
26837 * alias.c (init_alias_target): Remove ifdef
26838 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
26839 * df-scan.c (df_insn_refs_collect): Likewise.
26840 (df_get_regular_block_artificial_uses): Likewise.
26841 (df_get_eh_block_artificial_uses): Likewise.
26842 (df_get_entry_block_def_set): Likewise.
26843 (df_get_exit_block_use_set): Likewise.
26844 * emit-rtl.c (gen_rtx_REG): Likewise.
26845 * ira.c (ira_setup_eliminable_regset): Likewise.
26846 * reginfo.c (init_reg_sets_1): Likewise.
26847 * regrename.c (rename_chains): Likewise.
26848 * reload1.c (reload): Likewise.
26849 (eliminate_regs_in_insn): Likewise.
26850 * resource.c (mark_referenced_resources): Likewise.
26851 (init_resource_info): Likewise.
26852
26853 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26854
26855 * defaults.h (MASK_RETURN_ADDR): New definition.
26856 * except.c (expand_builtin_extract_return_addr): Remove ifdef
26857 MASK_RETURN_ADDR.
26858
26859 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26860
26861 * defaults.h (RETURN_ADDR_OFFSET): New definition.
26862 * except.c (expand_builtin_extract_return_addr): Remove ifdef
26863 RETURN_ADDR_OFFSET.
26864 (expand_builtin_frob_return_addr): Likewise.
26865
26866 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26867
26868 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
26869 (try_redirect_by_replacing_jump): Likewise.
26870 (rtl_tidy_fallthru_edge): Likewise.
26871 * combine.c (insn_a_feeds_b): Likewise.
26872 (find_split_point): Likewise.
26873 (simplify_set): Likewise.
26874 * cprop.c (cprop_jump): Likewise.
26875 * cse.c (cse_extended_basic_block): Likewise.
26876 * df-problems.c (can_move_insns_across): Likewise.
26877 * function.c (emit_use_return_register_into_block): Likewise.
26878 * haifa-sched.c (sched_init): Likewise.
26879 * ira.c (find_moveable_pseudos): Likewise.
26880 * loop-invariant.c (find_invariant_insn): Likewise.
26881 * lra-constraints.c (curr_insn_transform): Likewise.
26882 * postreload.c (reload_combine_recognize_const_pattern):
26883 * Likewise.
26884 * reload.c (find_reloads): Likewise.
26885 * reorg.c (delete_scheduled_jump): Likewise.
26886 (steal_delay_list_from_target): Likewise.
26887 (steal_delay_list_from_fallthrough): Likewise.
26888 (redundant_insn): Likewise.
26889 (fill_simple_delay_slots): Likewise.
26890 (fill_slots_from_thread): Likewise.
26891 (delete_computation): Likewise.
26892 * sched-rgn.c (add_branch_dependences): Likewise.
26893
26894 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26895
26896 * genconfig.c (main): Always define HAVE_cc0.
26897 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
26898 HAVE_cc0.
26899 * cfgcleanup.c (flow_find_cross_jump): Likewise.
26900 (flow_find_head_matching_sequence): Likewise.
26901 (try_head_merge_bb): Likewise.
26902 * cfgrtl.c (rtl_merge_blocks): Likewise.
26903 (try_redirect_by_replacing_jump): Likewise.
26904 (rtl_tidy_fallthru_edge): Likewise.
26905 * combine.c (do_SUBST_MODE): Likewise.
26906 (insn_a_feeds_b): Likewise.
26907 (combine_instructions): Likewise.
26908 (can_combine_p): Likewise.
26909 (try_combine): Likewise.
26910 (find_split_point): Likewise.
26911 (subst): Likewise.
26912 (simplify_set): Likewise.
26913 (distribute_notes): Likewise.
26914 * cprop.c (cprop_jump): Likewise.
26915 * cse.c (cse_extended_basic_block): Likewise.
26916 * df-problems.c (can_move_insns_across): Likewise.
26917 * final.c (final): Likewise.
26918 (final_scan_insn): Likewise.
26919 * function.c (emit_use_return_register_into_block): Likewise.
26920 * gcse.c (insert_insn_end_basic_block): Likewise.
26921 * haifa-sched.c (sched_init): Likewise.
26922 * ira.c (find_moveable_pseudos): Likewise.
26923 * loop-invariant.c (find_invariant_insn): Likewise.
26924 * lra-constraints.c (curr_insn_transform): Likewise.
26925 * optabs.c (prepare_cmp_insn): Likewise.
26926 * postreload.c (reload_combine_recognize_const_pattern):
26927 * Likewise.
26928 * reload.c (find_reloads): Likewise.
26929 (find_reloads_address_1): Likewise.
26930 * reorg.c (delete_scheduled_jump): Likewise.
26931 (steal_delay_list_from_target): Likewise.
26932 (steal_delay_list_from_fallthrough): Likewise.
26933 (try_merge_delay_insns): Likewise.
26934 (redundant_insn): Likewise.
26935 (fill_simple_delay_slots): Likewise.
26936 (fill_slots_from_thread): Likewise.
26937 (delete_computation): Likewise.
26938 (relax_delay_slots): Likewise.
26939 * sched-deps.c (sched_analyze_2): Likewise.
26940 * sched-rgn.c (add_branch_dependences): Likewise.
26941
26942 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26943
26944 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
26945 that is trivially ded on non cc0 targets.
26946 (simplify_set): Likewise.
26947 (mark_used_regs_combine): Likewise.
26948 * cse.c (new_basic_block): Likewise.
26949 (fold_rtx): Likewise.
26950 (cse_insn): Likewise.
26951 (cse_extended_basic_block): Likewise.
26952 (set_live_p): Likewise.
26953 * rtlanal.c (canonicalize_condition): Likewise.
26954 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
26955
26956 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26957
26958 * conditions.h: Define macros even if HAVE_cc0 is undefined.
26959 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
26960 * final.c: Likewise.
26961 * jump.c: Likewise.
26962 * recog.c: Likewise.
26963 * recog.h: Declare functions even when HAVE_cc0 is undefined.
26964 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
26965
26966 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26967
26968 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
26969 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
26970 * builtins.c (expand_builtin): Remove check if
26971 EH_RETURN_DATA_REGNO is defined.
26972 * df-scan.c (df_bb_refs_collect): Likewise.
26973 (df_get_exit_block_use_set): Likewise.
26974 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
26975 * ira-lives.c (process_bb_node_lives): Likewise.
26976 * lra-lives.c (process_bb_lives): Likewise.
26977
26978 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
26979
26980 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
26981 FIRST_PSEUDO_REG): New.
26982 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
26983 (ARG_POINTER_REGNUM): Define to ARGP_REG.
26984 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
26985 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
26986 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
26987 (FIRST_INT_REG): New.
26988 (LAST_INT_REG): New.
26989 (FIRST_*_REG): Define using *_REG.
26990 (LAST_*_REG): Ditto.
26991 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
26992 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
26993 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
26994
26995 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26996
26997 * expmed.c: (synth_mult): Only assume overlapping
26998 shift with previous steps in alg_sub_t_m2 case.
26999
27000 2015-04-21 Richard Biener <rguenther@suse.de>
27001
27002 PR tree-optimization/65650
27003 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
27004 transitions involving copies.
27005 (set_lattice_value): Adjust for copy lattice state.
27006 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
27007 if that doesn't dominate the merge point.
27008 (bit_value_unop): Adjust what we treat as varying mask.
27009 (bit_value_binop): Likewise.
27010 (bit_value_assume_aligned): Likewise.
27011 (evaluate_stmt): When we simplified to a SSA name record a copy
27012 instead of dropping to varying.
27013 (visit_assignment): Simplify.
27014
27015 * gimple-match.h (gimple_simplify): Add another callback.
27016 * gimple-fold.c (fold_stmt_1): Adjust caller.
27017 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
27018 for the 2nd callback.
27019 * gimple-match-head.c (gimple_simplify): Add a callback that is
27020 used to valueize the stmt operands and use it that way.
27021
27022 2015-04-21 Richard Biener <rguenther@suse.de>
27023
27024 PR tree-optimization/65788
27025 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
27026
27027 2015-04-21 Richard Biener <rguenther@suse.de>
27028
27029 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
27030 vec_construct cost by vec_stmt_cost.
27031
27032 2015-04-21 Richard Biener <rguenther@suse.de>
27033
27034 * cfghooks.h (create_basic_block): Replace with two overloads
27035 for RTL and GIMPLE.
27036 (split_block): Likewise.
27037 * cfghooks.c (split_block): Rename to ...
27038 (split_block_1): ... this.
27039 (split_block): Add two type-safe overloads for RTL and GIMPLE.
27040 (split_block_after_labels): Call split_block_1.
27041 (create_basic_block): Rename to ...
27042 (create_basic_block_1): ... this.
27043 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
27044 (create_empty_bb): Call create_basic_block_1.
27045 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
27046 split_block_after_labels.
27047 * omp-low.c (expand_parallel_call): Likewise.
27048 (expand_omp_target): Likewise.
27049 (simd_clone_adjust): Likewise.
27050 * tree-chkp.c (chkp_get_entry_block): Likewise.
27051 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
27052 create_basic_block overload.
27053 (cgraph_node::expand_thunk): Likewise.
27054 * tree-cfg.c (make_blocks): Likewise.
27055 (handle_abnormal_edges): Likewise.
27056 * tree-inline.c (copy_bb): Likewise.
27057
27058 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27059
27060 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
27061 New pattern.
27062 (*xor_one_cmplsidi3_ze): Likewise.
27063
27064 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
27065
27066 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
27067 use df_remove_problem rather than manually removing problems, leaving
27068 holes in df->problems_in_order[].
27069
27070 2015-04-21 Tom de Vries <tom@codesourcery.com>
27071
27072 PR tree-optimization/65802
27073 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
27074
27075 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27076
27077 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
27078 Increase to 128.
27079 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
27080 at '.'. Assert that there's enough space for everything.
27081
27082 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
27083
27084 PR tree-optimization/64950
27085 Revert:
27086 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
27087
27088 PR target/41089
27089 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
27090 as volatile.
27091
27092 2015-04-20 Shiva Chen <shiva0217@gmail.com>
27093
27094 PR rtl-optimization/64916
27095 * cfgcleanup.c (values_equal_p): New function.
27096 (can_replace_by): Use it.
27097
27098 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
27099
27100 PR c++/65801
27101 * doc/invoke.texi ([-Wnarrowing]): Update.
27102
27103 2015-04-20 Jeff Law <law@redhat.com>
27104
27105 PR tree-optimization/65658
27106 * tree-ssa-threadupdate.c (redirection_block_p): Remove
27107 redundant test for GIMPLE_ASSIGN in last change.
27108
27109 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
27110
27111 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
27112 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
27113 (legitimize_tls_address): Ditto.
27114 (ix86_expand_move): Ditto.
27115 (ix86_expand_binary_operator): Remove reload_in_progress checks.
27116 (ix86_expand_unary_operator): Ditto.
27117 * config/i386/predicates.md (index_register_operand): Ditto.
27118
27119 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
27120
27121 * reorg.c (try_merge_delay_insns): Improve correctness checking
27122 for targets with multiple delay slots.
27123
27124 2015-04-20 Jeff Law <law@redhat.com>
27125
27126 PR tree-optimization/65658
27127 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
27128 statements too.
27129
27130 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
27131
27132 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
27133 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
27134 Delete.
27135
27136 2015-04-20 Jakub Jelinek <jakub@redhat.com>
27137
27138 PR debug/65807
27139 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
27140
27141 2015-04-20 Richard Biener <rguenther@suse.de>
27142
27143 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
27144 * gimple-fold.c (gimple_build_valueize): New function.
27145 (gimple_build): Always use gimple_build_valueize as valueize hook.
27146
27147 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
27148
27149 PR target/64134
27150 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
27151 and overwrite variable parts if <= 1/2 the elements are variable.
27152
27153 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
27154
27155 PR rtl-optimization/65805
27156 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
27157 Don't use difference of offset and previous offset if
27158 update_sp_offset is non-zero.
27159 (eliminate_regs_in_insn): Ditto.
27160 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
27161 lra_eliminate_regs_1 call.
27162 * lra-constraints.c (get_equiv_with_elimination): Ditto.
27163
27164 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
27165
27166 * hash-table.h: Remove version of hash_table that stored value_type *.
27167 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
27168 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
27169 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
27170 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
27171 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
27172 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
27173 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
27174 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
27175 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
27176 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
27177 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
27178 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
27179 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
27180 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
27181 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
27182 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
27183
27184 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27185 Jakub Jelinek <jakub@redhat.com>
27186
27187 PR target/65787
27188 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
27189 subsequent SH_NONE operand does not overwrite an existing *special
27190 value.
27191 (adjust_extract): Handle case where a vec_extract operation is
27192 wrapped in a PARALLEL.
27193
27194 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
27195
27196 PR target/65780
27197 * config/i386/i386.c (ix86_binds_local_p): Define only if
27198 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
27199
27200 2015-04-17 Jeff Law <law@redhat.com>
27201
27202 PR tree-optimization/47679
27203 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
27204 * tree-ssa-scopedtables.c: New file.
27205 * tree-ssa-scopedtables.h: New file.
27206 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
27207 (const_and_copies): Change name/type.
27208 (record_const_or_copy): Move into tree-ssa-scopedtables.c
27209 (record_const_or_copy_1): Similarly.
27210 (restore_vars_to_original_value): Similarly.
27211 (pass_dominator::execute): Create and destroy const_and_copies table.
27212 (thread_across_edge): Update passing of const_and_copies.
27213 (record_temporary_equivalence): Use method calls rather than
27214 manipulating const_and_copies directly.
27215 (record_equality, cprop_into_successor_phis): Similarly.
27216 (dom_opt_dom_walker::before_dom_children): Similarly.
27217 (dom_opt_dom_walker::after_dom_children): Similarly.
27218 (eliminate_redundant_computations): Similarly.
27219 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
27220 (record_temporary_equivalence): Likewise.
27221 (invalidate_equivalences): Likewise.
27222 (record_temporary_equivalences_from_phis): Update due to type
27223 change of const_and_copies. Use method calls rather than
27224 manipulating the stack directly.
27225 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
27226 (thread_through_normal_block, thread_across_edge): Likewise.
27227 (thread_across_edge): Likewise.
27228 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
27229 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
27230 of equiv_stack.
27231 (identify_jump_threads): Update due to type change of equiv_stack.
27232 (finalize_jump_threads): Delete the equiv_stack when complete.
27233
27234 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
27235
27236 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
27237 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
27238 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
27239
27240 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
27241
27242 PR target/65535
27243 * config.gcc: Exit with a comment when we do not have a major version
27244 number for the FreeBSD target.
27245
27246 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27247
27248 PR target/65689
27249 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
27250 maybe_allows_mem bitfields.
27251 (maybe_allows_none_start, maybe_allows_none_end,
27252 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
27253 maybe_allows_mem_end): New variables.
27254 (compute_maybe_allows): New function.
27255 (add_constraint): Use it to initialize maybe_allows_reg and
27256 maybe_allows_mem fields.
27257 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
27258 is_address constraints such that those that allow neither mem nor
27259 reg come first, then those that only allow reg but not mem, then
27260 those that only allow mem but not reg, then the rest.
27261 (write_allows_reg_mem_function): New function.
27262 (write_tm_preds_h): Call it.
27263 * stmt.c (parse_output_constraint, parse_input_constraint): Use
27264 the generated insn_extra_constraint_allows_reg_mem function
27265 instead of always setting *allows_reg = true; *allows_mem = true;
27266 for unknown extra constraints.
27267
27268 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
27269
27270 PR target/65780
27271 * output.h (default_binds_local_p_3): New.
27272 * varasm.c (default_binds_local_p_3): Make it public. Take an
27273 argument to indicate if common symbol may be local. If common
27274 symbol may be local, treat non-external variable as defined
27275 locally.
27276 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
27277 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
27278 * config/i386/i386.c (ix86_binds_local_p): New.
27279 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
27280 ix86_binds_local_p.
27281
27282 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27283
27284 PR debug/65771
27285 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
27286 trying mem_loc_descriptor on XEXP (rtl, 0).
27287
27288 2015-04-17 Martin Liska <mliska@suse.cz>
27289
27290 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
27291 Release symbol_compare_collection.
27292 * ipa-reference.c: Add TODO that a vector should be released.
27293
27294 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
27295
27296 PR target/65296
27297 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
27298 to new AVR-LibC file layout (bug #44574).
27299 (*avrlibc_devicelib): Same.
27300 * config/avr/avr-mcus.def: Adjust comments.
27301 * config/avr/avr.opt (nodevicelib): Adjust help.
27302
27303 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
27304
27305 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
27306
27307 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
27308
27309 PR c++/64527
27310 * gimplify.c (gimplify_init_constructor): Always emit a
27311 side-effecting constructor.
27312
27313 2015-04-17 Tom de Vries <tom@codesourcery.com>
27314
27315 PR tree-optimization/64950
27316 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
27317 in cfun->curr_properties.
27318 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
27319 if we generate an IFN_VA_ARG.
27320 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
27321 function if PROP_gimple_lva is not set in src function.
27322
27323 2015-04-17 Tom de Vries <tom@codesourcery.com>
27324 Michael Matz <matz@suse.de>
27325
27326 PR tree-optimization/64950
27327 * gimple-iterator.c (update_modified_stmts): Remove static.
27328 * gimple-iterator.h (update_modified_stmts): Declare.
27329 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
27330 (gimplify_va_arg_internal): New function.
27331 (gimplify_va_arg_expr): Use IFN_VA_ARG.
27332 * gimplify.h (gimplify_va_arg_internal): Declare.
27333 * internal-fn.c (expand_VA_ARG): New unreachable function.
27334 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
27335 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
27336 (expand_ifn_va_arg): New function.
27337 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
27338 (pass_stdarg::execute): Call expand_ifn_va_arg.
27339 (pass_data_lower_vaarg): New pass_data.
27340 (pass_lower_vaarg): New gimple_opt_pass.
27341 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
27342 (make_pass_lower_vaarg): New function.
27343 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
27344 properties_required field.
27345 * passes.def (all_passes): Add pass_lower_vaarg.
27346 * tree-pass.h (PROP_gimple_lva): Add define.
27347 (make_pass_lower_vaarg): Declare.
27348
27349 2015-04-17 Tom de Vries <tom@codesourcery.com>
27350
27351 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
27352 * calls.c (call_expr_flags): Same.
27353
27354 2015-04-17 Tom de Vries <tom@codesourcery.com>
27355
27356 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
27357 (pass_stdarg::execute): ... here.
27358
27359 2015-04-17 Tom de Vries <tom@codesourcery.com>
27360 Michael Matz <matz@suse.de>
27361
27362 * tree-cfg.c (make_blocks_1): Factor out of ...
27363 (make_blocks): ... here.
27364 (make_edges_bb): Factor out of ...
27365 (make_edges): ... here.
27366 (gimple_find_sub_bbs): New function.
27367 * tree-cfg.h (gimple_find_sub_bbs): Declare.
27368
27369 2015-04-17 Tom de Vries <tom@codesourcery.com>
27370
27371 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
27372
27373 2015-04-17 Yury Gribov <y.gribov@samsung.com>
27374
27375 * asan.c (set_sanitized_sections): New function.
27376 (section_sanitized_p): Ditto.
27377 (asan_protect_global): Optionally sanitize user-defined
27378 sections.
27379 * asan.h (set_sanitized_sections): Declare new function.
27380 * common.opt (fsanitize-sections): New option.
27381 * doc/invoke.texi (-fsanitize-sections): Document new option.
27382 * opts-global.c (handle_common_deferred_options): Handle new
27383 option.
27384
27385 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27386
27387 PR debug/65771
27388 * dwarf2out.c (loc_list_from_tree): Return NULL
27389 for DEBUG_EXPR_DECL.
27390
27391 2015-04-17 Christian Bruel <christian.bruel@st.com>
27392
27393 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
27394 same attributes.
27395
27396 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27397
27398 * ira-color.c (setup_left_conflict_sizes_p): Do not process
27399 node itself when computing left conflict subnode size.
27400
27401 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
27402
27403 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
27404 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
27405 *fop_<mode>_1_sse using enabled attribute. Use
27406 register_mixssei387nonimm_operand operand 1 predicate. Change
27407 alternative 3 constraints from "x" to "v".
27408
27409 2015-04-16 Richard Biener <rguenther@suse.de>
27410
27411 PR tree-optimization/65774
27412 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
27413 bit-value tracking on.
27414
27415 2015-04-16 Richard Biener <rguenther@suse.de>
27416
27417 PR tree-optimization/64277
27418 * tree-vrp.c (check_array_ref): Fix anti-range handling,
27419 simplify upper bound handling.
27420 (search_for_addr_array): Simplify.
27421 (check_array_bounds): Handle ADDR_EXPRs here.
27422 (check_all_array_refs): Simplify.
27423
27424 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
27425
27426 * config/i386/i386.c (print_reg): Rewrite function.
27427
27428 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27429
27430 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
27431 Invert the condition.
27432
27433 2015-04-16 Renlin Li <renlin.li@arm.com>
27434
27435 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
27436 simplifications for UNSIGNED_FLOAT.
27437
27438 2015-04-16 Nick Clifton <nickc@redhat.com>
27439
27440 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
27441 MUL_UNINIT.
27442 (enum rl78_cpu_type): New.
27443 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
27444 (umulhi3_shift_virt): Remove m constraint from operand 1.
27445 (umulqihi3_virt): Likewise.
27446 * config/rl78/rl78.c (rl78_option_override): Add code to process
27447 -mcpu and -mmul options.
27448 (rl78_alloc_physical_registers): Add code to handle divhi and
27449 divsi valloc attributes.
27450 (set_origin): Likewise.
27451 * config/rl78/rl78.h (RL78_MUL_G14): Define.
27452 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
27453 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
27454 __RL78_Gxx__.
27455 (ASM_SPEC): Pass -mcpu on to assembler.
27456 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
27457 (mulqi3_rl78): Likewise.
27458 (mulhi3_g13): Likewise.
27459 (mulhi3): Generate the G13 or G14 versions of the insn directly.
27460 (mulsi3): Likewise.
27461 (mulhi3_g14): Add clobbers of AX and BC.
27462 (mulsi3_g14): Likewise.
27463 (mulsi3_g13): Likewise.
27464 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
27465 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
27466 * config/rl78/rl78.opt (mmul): Initialise value to
27467 RL78_MUL_UNINIT.
27468 (mcpu): New option.
27469 (m13, m14, mrl78): New option aliases.
27470 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
27471 (MULTILIB_DIRNAMES): Add g13 and g14.
27472 * doc/invoke.texi: Document -mcpu and -mmul options.
27473
27474 2015-04-16 Richard Biener <rguenther@suse.de>
27475
27476 * tree-ssa-ccp.c (likely_value): See if we have operands that
27477 are marked as never simulate again and return CONSTANT in this
27478 case.
27479 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
27480 not have any operands that will be simulated again as
27481 not being simulated again.
27482
27483 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
27484
27485 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
27486 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
27487 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
27488 attribute.
27489 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
27490 enabled attribute.
27491 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
27492 *float<SWI48:mode><MODEF:mode>2_sse.
27493 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
27494 enabled attribute.
27495 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
27496 enabled attribute.
27497
27498 2015-04-15 Tom de Vries <tom@codesourcery.com>
27499
27500 PR other/65487
27501 * function.c (push_dummy_function): New function.
27502 (init_dummy_function_start): Use push_dummy_function.
27503 (pop_dummy_function): New function. Factored out of ...
27504 (expand_dummy_function_end): ... here.
27505 * function.h (push_dummy_function, pop_dummy_function): Declare.
27506 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
27507 pop_dummy_function.
27508 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
27509
27510 2015-04-15 Jeff Law <law@redhat.com>
27511
27512 PR tree-optimization/47679
27513 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
27514 need for forward declaration in upcoming changes.
27515 (record_conditions, record_edge_info): Likewise.
27516
27517 PR rtl-optimization/42522
27518 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
27519 SIGN_EXTRACT as a whole object rather than simplifying
27520 its operand.
27521
27522 2015-04-15 Jakub Jelinek <jakub@redhat.com>
27523
27524 PR ipa/65765
27525 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
27526 and GIMPLE_PREDICT use break instead of return true. For
27527 GIMPLE_EH_DISPATCH, compare dispatch region.
27528
27529 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
27530
27531 * doc/extend.texi (__sync Builtins): Simplify some text. Update
27532 details about the implementation. Make clear preference for
27533 __atomic builtins. Reduce possibility of future change.
27534
27535 2015-04-15 Nick Clifton <nickc@redhat.com>
27536
27537 * config/rx/rx.opt (mallow-string-insns): New option.
27538 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
27539 builtin if string instructions are denied.
27540 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
27541 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
27542 appropriate.
27543 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
27544 * config/rx/rx.md (movstr): Enable pattern only if string
27545 instructions are allowed.
27546 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
27547 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
27548 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
27549 (MULTILIB_DIRNAMES): Add no-strings.
27550 * doc/invoke.texi: Document -mno-allow-string-insns.
27551
27552 2015-04-15 Alan Modra <amodra@gmail.com>
27553
27554 PR target/65408
27555 PR target/58744
27556 PR middle-end/36043
27557 * calls.c (load_register_parameters): Don't load past end of
27558 mem unless suitably aligned.
27559
27560 2015-04-15 Nick Clifton <nickc@redhat.com>
27561
27562 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
27563 decrement instruction as being frame related.
27564 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
27565 based addresses.
27566 If zero extending a function address enclose the operation in
27567 %code(...).
27568 (rl78_preferred_reload_class): New function.
27569 (TARGET_PREFERRED_RELOAD_CLASS): Define.
27570 * config/rl78/rl78.md: Remove useless constraints in expanders.
27571 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
27572 (mulhi3_rl78): Likewise.
27573 (mulhi3_g13): Likewise.
27574 (mulsi3_rl78): Likewise.
27575 (es_addr): Move to before the multiply patterns.
27576
27577 2015-04-15 Alan Modra <amodra@gmail.com>
27578
27579 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
27580 and sequence_stack. Add seq.
27581 (seq_stack): Delete.
27582 * function.c (prepare_function_start): Don't access x_last_insn.
27583 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
27584 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
27585 * emit_rtl.c (start_sequence, push_topmost_sequence,
27586 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
27587 sequence accessors.
27588 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
27589 remove_insn): Likewise. Simplify.
27590 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
27591 and pop_topmost_sequence.
27592 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
27593 debug insns.
27594 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
27595
27596 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
27597
27598 PR target/65729
27599 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
27600 the assertiion.
27601
27602 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27603
27604 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
27605 (LEGACY_INT_REGNO_P): Ditto.
27606 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
27607 (ANY_MASK_REG_P): Remove.
27608 (BND_REG_P): Rename from ANY_BND_REG_P.
27609 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
27610 legacy integer registers. Do not handle MMX_REG_P in a special way.
27611 Merge 64byte and 32byte SSE handling.
27612
27613 2015-04-14 Nick Clifton <nickc@redhat.com>
27614
27615 * expr.c (expand_assignment): Force an address offset computation
27616 into a register before changing its mode.
27617 (expand_expr_real_1): Likewise.
27618
27619 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
27620
27621 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
27622 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
27623 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
27624 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
27625 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
27626 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
27627 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
27628 and __aarch64_vget_lane_any.
27629
27630 2015-04-14 Jakub Jelinek <jakub@redhat.com>
27631
27632 PR rtl-optimization/65761
27633 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
27634 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
27635
27636 2015-04-14 Richard Biener <rguenther@suse.de>
27637
27638 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
27639 (graphite_can_represent_scev): Use POINTER_TYPE_P.
27640
27641 2015-04-14 Richard Biener <rguenther@suse.de>
27642
27643 PR tree-optimization/65758
27644 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
27645 against -1.
27646 (ccp_lattice_meet): Likewise.
27647 (bit_value_unop): Likewise.
27648 (bit_value_binop): Likewise.
27649 (bit_value_assume_aligned): Likewise.
27650
27651 2015-04-14 Christian Bruel <christian.bruel@st.com>
27652
27653 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
27654 function.
27655
27656 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
27657
27658 PR tree-optimization/63387
27659 * match.pd ((x unord x) | (y unord y) -> (x unord y),
27660 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
27661
27662 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27663
27664 * config/i386/predicates.md (any_QIreg_operand): Rename from
27665 q_regs_operand. Do not process subregs.
27666 (QIreg_operand): Use QI_REGNO_P predicate.
27667 (ext_QIreg_operand): Ditto.
27668 (ext_register_operand): Ditto.
27669 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
27670 (AND splitters): Ditto.
27671 (AND with -65536 splitter): Add SWI48 mode for operand 0.
27672 (AND with -256 splitter): Use any_QIreg_operand predicate and
27673 SWI248 mode for operand 0.
27674 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
27675 mode for operand 0.
27676 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
27677
27678 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
27679
27680 * doc/plugins.texi: Rewrite first introductory paragraph.
27681
27682 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27683
27684 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
27685 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
27686
27687 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27688
27689 * ipa-profie.c (ipa_profile): Check number of parameters
27690 and possible polymorphic call targets before
27691 devirtualizing.
27692
27693 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
27694
27695 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
27696 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
27697
27698 2015-04-13 Richard Biener <rguenther@suse.de>
27699
27700 PR tree-optimization/65204
27701 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
27702 takens for bit-CCP.
27703
27704 2015-04-13 Richard Biener <rguenther@suse.de>
27705
27706 PR target/65660
27707 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
27708 and cond_not_taken_branch_cost to 4 and 2.
27709 (bdver2_cost): Likewise.
27710 (bdver3_cost): Likewise.
27711 (bdver4_cost): Likewise.
27712
27713 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27714
27715 * hash-table.h (hash_table constructor): Add mem stats.
27716 (alloc_entries): Likewise.
27717
27718 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27719
27720 * ipa-cp.c (ipcp_driver): Relase prev_edge.
27721 * passes.c (execute_one_pass): Only add transform if pass has one.
27722
27723 2015-04-12 Joseph Myers <joseph@codesourcery.com>
27724
27725 * config/i386/i386.c (ix86_option_override_internal): Don't set
27726 -fprefetch-loop-arrays if optimizing for size.
27727
27728 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27729 Gerald Pfeifer <gerald@pfeifer.com>
27730
27731 * doc/contrib.texi (Contributors): Add Martin Jambor and
27732 Michael Matz.
27733
27734 2015-04-12 Jakub Jelinek <jakub@redhat.com>
27735
27736 * BASE-VER: Set to 6.0.0.
27737
27738 PR tree-optimization/65747
27739 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
27740 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
27741
27742 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27743
27744 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
27745 sentence. Improve grammar.
27746
27747 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27748
27749 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
27750
27751 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27752
27753 PR ipa/65743
27754 * ipa-inline-transform.c (speculation_removed): Remove static var.
27755 (check_speculations): New function.
27756 (clone_inlined_nodes): Do not check spculations.
27757 (inline_call): Call check_speculations.
27758 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
27759 consider non-invariants.
27760
27761 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27762 Martin Liska <mliska@suse.cz>
27763
27764 PR ipa/65722
27765 * ipa-icf.c (sem_item::compare_cgraph_references): function and
27766 variable can not match.
27767 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
27768 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
27769
27770 2015-04-11 Jakub Jelinek <jakub@redhat.com>
27771
27772 PR tree-optimization/65735
27773 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
27774 Remove visited_phis argument, add visited_bbs, avoid recursing into the
27775 same bb rather than just into the same phi node.
27776 (thread_through_normal_block): Adjust caller.
27777
27778 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27779
27780 * doc/contrib.texi (Contributors): Add Ira Rosen.
27781
27782 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
27783
27784 * gcov.c (find_source): Fix miswording in error message.
27785 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
27786 (ix86_expand_sse_comi_round): Fix typo in error message.
27787
27788 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27789
27790 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
27791
27792 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
27793
27794 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
27795
27796 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27797
27798 PR target/65710
27799 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
27800 Print bad_spills_num and insn_pseudos_num.
27801
27802 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27803
27804 PR target/65694
27805 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
27806 when creating +1 values for SImode.
27807
27808 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27809
27810 PR target/65729
27811 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
27812 assert.
27813
27814 2015-04-10 Jakub Jelinek <jakub@redhat.com>
27815 Iain Sandoe <iain@codesourcery.com>
27816
27817 PR target/65351
27818 * configure: Regenerate.
27819
27820 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27821
27822 PR target/65671
27823 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
27824
27825 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
27826
27827 * doc/contrib.texi (Contributors): Add John Marino.
27828
27829 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27830
27831 PR tree-optimization/65709
27832 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
27833 TREE_TYPE (TREE_TYPE (t)).
27834
27835 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
27836
27837 PR target/65710
27838 * lra-int.h (lra_bad_spill_regno_start): New.
27839 * lra.c (lra_bad_spill_regno_start): New.
27840 (lra): Set up lra_bad_spill_regno_start. Set up
27841 lra_constraint_new_regno_start unconditionally.
27842 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
27843 spill preferences.
27844
27845 2015-04-09 Marek Polacek <polacek@redhat.com>
27846 Jakub Jelinek <jakub@redhat.com>
27847
27848 PR middle-end/65554
27849 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
27850 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
27851 of STRIP_NOPS.
27852
27853 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
27854
27855 PR rtl-optimization/65693
27856 * combine.c (is_parallel_of_n_reg_sets): Move outside of
27857 #ifndef HAVE_cc0.
27858
27859 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
27860
27861 PR target/65296
27862 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
27863 device specs file if "device-specs%s" didn't resolve to a path.
27864
27865 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27866
27867 PR target/65676
27868 * config/i386/i386.c (fixup_modeless_constant): New.
27869 (ix86_expand_args_builtin): Fixup modeless constant operand.
27870 (ix86_expand_round_builtin): Ditto.
27871 (ix86_expand_special_args_builtin): Ditto.
27872 (ix86_expand_builtin): Ditto.
27873
27874 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27875
27876 PR target/65693
27877 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
27878 any pow2 integer in between 2 and 0x80000000U inclusive.
27879
27880 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
27881
27882 PR rtl-optimization/65693
27883 * combine.c (is_parallel_of_n_reg_sets): Change first argument
27884 from an rtx_insn * to an rtx.
27885 (try_combine): Adjust both callers. Use it once more.
27886
27887 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27888
27889 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
27890 (chkp_make_static_const_bounds): Search existing
27891 symbol by assembler name. Use make_decl_one_only.
27892 (chkp_get_zero_bounds_var): Remove node search which
27893 is now performed in chkp_make_static_const_bounds.
27894 (chkp_get_none_bounds_var): Likewise.
27895
27896 2015-04-08 Michael Witten <mfwitten@gmail.com>
27897
27898 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
27899 to an example.
27900
27901 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27902
27903 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
27904
27905 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
27906
27907 * doc/extend.texi (__sync Builtins): Fix grammar.
27908
27909 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27910
27911 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
27912
27913 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27914
27915 * varasm.c (emit_local): Move definition of align.
27916
27917 2015-04-08 Julian Brown <julian@codesourcery.com>
27918
27919 * config/nvptx/mkoffload.c (process): Support variable mapping.
27920
27921 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
27922
27923 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
27924 alpha_links **.
27925 (alpha_write_one_linkage): Correct typo.
27926
27927 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27928
27929 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
27930
27931 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
27932
27933 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
27934
27935 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27936
27937 * tree-chkp.h (chkp_insert_retbnd_call): New.
27938 * tree-chkp.c (chkp_insert_retbnd_call): New.
27939 * ipa-split.c (insert_bndret_call_after): Remove.
27940 (split_function): Use chkp_insert_retbnd_call.
27941 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
27942 bounds for instrumented functions.
27943
27944 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
27945
27946 PR ipa/65540
27947 * calls.c (initialize_argument_information): When producing tail
27948 call also turn SSA_NAMES passed by references to original PARM_DECLs
27949
27950 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
27951
27952 PR target/65648
27953 * lra-remat.c (do_remat): Process input and non-input insn
27954 registers separately.
27955
27956 2015-04-07 Jakub Jelinek <jakub@redhat.com>
27957
27958 PR debug/65678
27959 * valtrack.c (debug_lowpart_subreg): New function.
27960 (dead_debug_insert_temp): Use it.
27961
27962 PR middle-end/65680
27963 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
27964 into signed HOST_WIDE_INT the same as negative bit_offset.
27965
27966 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
27967
27968 * ipa-comdats.c (ipa_comdats): Visit all thunks
27969 to set proper comdat group.
27970
27971 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27972
27973 PR target/65489
27974 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
27975 on constants for NEON VSTRUCT modes.
27976
27977 2015-04-07 Jakub Jelinek <jakub@redhat.com>
27978 Iain Sandoe <iain@codesourcery.com>
27979
27980 PR target/65351
27981 * configure: Regenerate.
27982
27983 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27984
27985 PR target/65614
27986 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
27987 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
27988 that LFD is used to load double constants instead of LFS. Add
27989 defaults for all costs structures. Add comments for missing
27990 initialization fields.
27991 (size32_cost): Likewise.
27992 (size64_cost): Likewise.
27993 (rs64a_cost): Likewise.
27994 (mpccore_cost): Likewise.
27995 (ppc403_cost): Likewise.
27996 (ppc405_cost): Likewise.
27997 (ppc440_cost): Likewise.
27998 (ppc476_cost): Likewise.
27999 (ppc601_cost): Likewise.
28000 (ppc603_cost): Likewise.
28001 (ppc604_cost): Likewise.
28002 (ppc604e_cost): Likewise.
28003 (ppc620_cost): Likewise.
28004 (ppc630_cost): Likewise.
28005 (ppccell_cost): Likewise.
28006 (ppc750_cost): Likewise.
28007 (ppc7450_cost): Likewise.
28008 (ppc8540_cost): Likewise.
28009 (ppce300c2c3_cost): Likewise.
28010 (ppce500mc_cost): Likewise.
28011 (ppce500mc64_cost): Likewise.
28012 (ppce5500_cost): Likewise.
28013 (ppce6500_cost): Likewise.
28014 (titan_cost): Likewise.
28015 (power4_cost): Likewise.
28016 (power6_cost): Likewise.
28017 (power7_cost): Likewise.
28018 (power8_cost): Likewise.
28019 (ppca2_cost): Likewise.
28020 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
28021
28022 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
28023 instead of XXLOR to copy SFmode to clear out dirty bits created
28024 when SFmode denormals are generated.
28025 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
28026 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
28027
28028 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
28029
28030 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
28031 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
28032 * config/aarch64/aarch64-tune.md: Regenerate.
28033
28034 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
28035
28036 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
28037 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
28038 * config/arm/arm-cores.def (exynos-m1): New core.
28039 * config/arm/arm-tune.md: Regenerate.
28040 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
28041 * config/arm/bpabi.h: Likewise.
28042
28043 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
28044
28045 * ipa-cp (set_single_call_flag): Remove too
28046 restrictive assert.
28047
28048 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
28049
28050 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
28051 GOMP_offload_unregister from the destructor.
28052
28053 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
28054
28055 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
28056 flags for instrumentation thunk.
28057 (chkp_produce_thunks): Likewise.
28058
28059 2015-04-05 Martin Liska <mliska@suse.cz>
28060
28061 PR ipa/65665
28062 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
28063 has computed data structure.
28064 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28065
28066 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
28067
28068 * invoke.texi (inline-unit-growth): Increase growth to 20%
28069 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
28070
28071 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
28072
28073 PR target/65647
28074 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
28075 value checking.
28076 (lra_rematerialization_iter): New.
28077 * lra.c (lra): Initialize lra_rematerialization_iter.
28078 Stop updating lra_constraint_new_regno_start after switching of
28079 inheritance and rematerialization.
28080 * lra-remat.c (lra_rematerialization_iter): New.
28081 (lra_remat): Add printing pass iteration. Do rematerialization
28082 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
28083
28084 2015-04-04 Richard Biener <rguenther@suse.de>
28085
28086 PR tree-optimization/64909
28087 PR tree-optimization/65660
28088 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
28089 to take a cost vector for scalar iteration cost.
28090 (vect_get_single_scalar_iteration_cost): Likewise.
28091 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
28092 Compute the scalar iteration cost into a cost vector.
28093 (vect_get_known_peeling_cost): Use the scalar cost vector to
28094 account for the cost of the peeled iterations.
28095 (vect_estimate_min_profitable_iters): Likewise.
28096 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
28097 Likewise.
28098
28099 2015-04-04 Alan Modra <amodra@gmail.com>
28100
28101 PR target/65576
28102 PR target/65240
28103 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
28104 0.0 constant unless TARGET_VSX.
28105 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
28106 alternative.
28107
28108 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28109
28110 PR ipa/65654
28111 * ipa-inline-transform.c (inline_call): Skip sanity check to work
28112 around the ICE
28113
28114 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28115
28116 PR ipa/65655
28117 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
28118 speculative indirect edges to avoid ordering issue.
28119
28120 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28121
28122 PR ipa/65076
28123 * ipa-inline.c (edge_badness): Add combined size to the denominator.
28124
28125 2015-04-03 Jakub Jelinek <jakub@redhat.com>
28126
28127 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
28128 TYPE_ARTIFICIAL on the .omp_data* types.
28129
28130 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28131
28132 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
28133 instrumentation thunks.
28134
28135 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28136
28137 * config/i386/i386.c (ix86_expand_call): Avoid nested
28138 PARALLEL in returned call value.
28139
28140 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28141
28142 * lto-cgraph.c (input_cgraph_1): Always link instrumented
28143 assembler name with original one.
28144
28145 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28146
28147 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
28148
28149 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28150
28151 Revert parts of r216820.
28152 * config/i386/i386.md (movqi_internal): Correct type calculation
28153 for alternatives 3 and 5.
28154
28155 2015-04-02 Jakub Jelinek <jakub@redhat.com>
28156
28157 PR preprocessor/61977
28158 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
28159 predefine __vector/__bool/__pixel macros nor context sensitive
28160 macros for CLK_ASM.
28161 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
28162
28163 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
28164
28165 * config/pa/pa.c (pa_output_move_double): Directly handle register
28166 indexed memory operand. Simplify handling of scaled register indexed
28167 memory operands.
28168
28169 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28170
28171 PR driver/65444
28172 * config/i386/linux-common.h (MPX_SPEC): New.
28173 (CHKP_SPEC): Add MPX_SPEC.
28174 * doc/invoke.texi (-fcheck-pointer-boudns): Document
28175 possible issues with '-z bndplt' support in linker.
28176
28177 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28178
28179 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
28180 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
28181 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
28182 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
28183 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
28184
28185 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
28186
28187 * config/i386/sync.md (UNSPEC_MOVA): Remove.
28188 (atomic_load<mode>): Change operand 0 predicate to
28189 nonimmediate_operand and fix up the destination when needed.
28190 Use UNSPEC_LDA.
28191 (atomic_loaddi_fpu): Use UNSPEC_LDA.
28192 (atomic_store<mode>): Change operand 1 predicate to
28193 nonimmendate_operand and move the source to register when needed.
28194 Use UNSPEC_STA.
28195 (atomic_store<mode>_1): Use UNSPEC_STA.
28196 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
28197 Fix moves from memory operand. Use UNSPEC_STA.
28198
28199 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
28200
28201 * expmed.c (strict_volatile_bitfield_p): Check that the access will
28202 not cross a MODESIZE boundary.
28203 (store_bit_field, extract_bit_field): Added assertions in the
28204 strict volatile bitfields code path.
28205
28206 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
28207
28208 PR target/65624
28209 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
28210 Increase args array size by one to avoid buffer overflow.
28211
28212 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
28213
28214 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
28215 split_part.
28216 * ipa-inline.c (edge_badness): Add wrapper penalty.
28217 (sum_callers): Move up.
28218 (inline_small_functions): Set single_caller.
28219 * ipa-inline.h (inline_summary): Add single_caller.
28220 * ipa-split.c (split_function): Set split_part.
28221 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
28222 * cgraph.h (cgraph_node): Add split_part.
28223
28224 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
28225
28226 PR target/58945
28227 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
28228 Do not split operands 0 and operands 2 to halfmode.
28229 (atomic_compare_and_swap<mode>): Update for
28230 atomic_compare_and_swap<dwi>_doubleword changes.
28231
28232 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
28233
28234 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
28235 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
28236 no caching is done.
28237
28238 2015-03-31 Martin Liska <mliska@suse.cz>
28239
28240 PR ipa/65557
28241 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
28242 has already filled up function summary.
28243 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28244
28245 2015-03-31 Richard Biener <rguenther@suse.de>
28246
28247 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
28248 of types.
28249
28250 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
28251
28252 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
28253 nested functions.
28254 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
28255 (s390_asm_output_function_label): Adapt to new signature of
28256 s390_function_num_hotpatch_hw
28257 Optimise the code generating assembler output.
28258 Add comments to assembler file.
28259
28260 2015-03-31 Richard Biener <rguenther@suse.de>
28261
28262 PR middle-end/65626
28263 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
28264 of the noreturn call so it is last and cleanup_control_flow_bb
28265 can do the CFG part.
28266
28267 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
28268
28269 PR target/65531
28270 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
28271 same_comdat_group for external symbols.
28272 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
28273 infinite same_comdat_group traversal loop.
28274
28275 2015-03-31 Jakub Jelinek <jakub@redhat.com>
28276
28277 PR plugins/61176
28278 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
28279 automatically to $headers.
28280
28281 2015-03-30 Jakub Jelinek <jakub@redhat.com>
28282
28283 PR ipa/65610
28284 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
28285 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
28286 function.
28287 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
28288 Use it.
28289 * ipa-prop.c (param_type_may_change_p): Likewise.
28290 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
28291 (remove_unused_scope_block_p): Add in_ctor_dtor_block
28292 argument. Before inlining, preserve
28293 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
28294 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
28295 recursive calls.
28296 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
28297
28298 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28299
28300 PR ipa/65076
28301 * ipa-inline.c (edge_badness): Base denominator on callee's
28302 grwoth squared.
28303
28304 2015-03-27 Martin Jambor <mjambor@suse.cz>
28305
28306 PR ipa/65478
28307 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
28308 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
28309 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
28310 node_calling_single_call.
28311 * ipa-cp.c (count_callers): New function.
28312 (set_single_call_flag): Likewise.
28313 (initialize_node_lattices): Count callers and set single_flag_call if
28314 necessary.
28315 (incorporate_penalties): New function.
28316 (good_cloning_opportunity_p): Use it, dump new flags.
28317 (propagate_constants_topo): Set node_within_scc flag if appropriate.
28318 * doc/invoke.texi (ipa-cp-recursion-penalty,
28319 ipa-cp-single-call-pentalty): Document.
28320
28321 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28322
28323 PR ipa/65588
28324 * symtab.c (symtab_node::get_partitioning_class): Register vars
28325 are duplicated.
28326 * varpool.c (symbol_table::output_variables) Do not assemble unefined
28327 decls for non-symbols.
28328
28329 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
28330
28331 PR target/65248
28332 * output.h (default_binds_local_p_2): New.
28333 * varasm.c (default_binds_local_p_2): Renamed to ...
28334 (default_binds_local_p_3): This. Don't return true on protected
28335 data symbol if protected data may be external.
28336 (default_binds_local_p): Use default_binds_local_p_3.
28337 (default_binds_local_p_1): Likewise.
28338 (default_binds_local_p_2): New.
28339 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
28340 default_binds_local_p_2 if TARGET_MACHO is undefined.
28341
28342 2015-03-27 Jakub Jelinek <jakub@redhat.com>
28343
28344 PR target/65593
28345 * config/i386/i386.c (legitimize_pic_address): If base
28346 is SYMBOL_REF or LABEL_REF using %rip addressing, force
28347 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
28348
28349 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28350
28351 PR target/65531
28352 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
28353 comdat groups.
28354
28355 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28356
28357 PR ipa/65600
28358 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
28359 of optimized out indirect call.
28360 (redirect_to_unreachable): Always build symbol table node for
28361 BUILT_IN_UNREACHABLE
28362
28363 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
28364
28365 PR target/65407
28366 * ira-costs.c (record_reg_classes): Process all constraint string
28367 containing 0-9.
28368
28369 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
28370
28371 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
28372 memory_operand.
28373
28374 PR target/65052
28375 * config/c6x/constraints.md (S3): New constraint.
28376 * config/c6x/c6x.md (real_jump): Use it.
28377
28378 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28379
28380 PR middle-end/65595
28381 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
28382 do redirection if the call is not optimized out.
28383
28384 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
28385
28386 PR target/65495
28387 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
28388 (fchkp-check-incomplete-type): Add LTO.
28389 (fchkp-zero-input-bounds-for-main): Likewise.
28390 (fchkp-first-field-has-own-bounds): Likewise.
28391 (fchkp-narrow-bounds): Likewise.
28392 (fchkp-narrow-to-innermost-array): Likewise.
28393 (fchkp-use-static-bounds): Likewise.
28394 (fchkp-use-static-const-bounds): Likewise.
28395 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28396
28397 2015-03-27 Marek Polacek <polacek@redhat.com>
28398
28399 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
28400
28401 2015-03-27 Marek Polacek <polacek@redhat.com>
28402
28403 PR sanitizer/65583
28404 * ubsan.c (ubsan_create_edge): New function.
28405 (instrument_bool_enum_load): Call it.
28406 (instrument_nonnull_arg): Likewise.
28407 (instrument_nonnull_return): Likewise.
28408 (instrument_object_size): Likewise.
28409
28410 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28411
28412 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
28413 auto_vec.
28414
28415 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28416
28417 PR lto/65536
28418 * lto-streamer.h (class lto_location_cache): New.
28419 (struct data_in): Add location_cache.
28420 (lto_input_location): Update prototype.
28421 (stream_input_location_now): New.
28422 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
28423 pointer to location.
28424 (stream_input_location): Update.
28425 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
28426 (warn_odr): Apply location cache before warning.
28427 (lto_input_location): Update prototype.
28428 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
28429 Use stream_input_location_now.
28430 * lto-streamer-in.c (lto_location_cache::current_cache): New static
28431 variable.
28432 (lto_location_cache::cmp_loc): New function.
28433 (lto_location_cache::apply_location_cache): New function.
28434 (lto_location_cache::accept_location_cache): New function.
28435 (lto_location_cache::revert_location_cache): New function.
28436 (lto_location_cache::input_location): New function.
28437 (lto_input_location): Do location caching.
28438 (stream_input_location_now): New function.
28439 (input_eh_region, input_struct_function_base): Use
28440 stream_input_location_now.
28441 (lto_data_in_create): use new.
28442 (lto_data_in_delete): Use delete.
28443 * tree-streamer-in.c (unpack_ts_block_value_fields,
28444 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
28445 lto_input_ts_exp_tree_pointers): Update for cached location api.
28446
28447 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28448
28449 PR ipa/65076
28450 * passes.def: Add pass_nothrow.
28451 * ipa-pure-const.c: (pass_data_nothrow): New.
28452 (pass_nothrow): New.
28453 (pass_nothrow::execute): New.
28454 (make_pass_nothrow): New.
28455 * tree-pass.h (make_pass_nothrow): Declare.
28456
28457 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28458
28459 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
28460 edge to change by speculation resolution or redirection.
28461 (edge_set_predicate): Likewise.
28462 (inline_summary_t::duplicate): Likewise.
28463 (remap_edge_summaries): Likewise.
28464
28465 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28466
28467 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
28468 New macros.
28469 (can_inline_edge_p): Relax option matching for always inline functions.
28470
28471 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
28472
28473 PR target/65561
28474 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
28475 Check operand 4 and operand 0 for equality.
28476 (avx512f_vextract<shuffletype>32x4_1_maskm):
28477 Check operand 6 and operand 0 for equality.
28478 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
28479 for equality.
28480 (vec_extract_hi_<mode>_maskm): Ditto.
28481
28482 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28483
28484 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
28485 dead calls back to live.
28486 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
28487 cross check to ...
28488 (cgraph_node::verify_node): ... here; verify only callee edges,
28489 not caller.
28490 * cif-code.def (CILK_SPAWN): New code.
28491
28492 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28493
28494 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
28495 (edge_set_predicate): Use it to mark unreachable edges.
28496 (inline_summary_t::duplicate): Remove unnecesary code.
28497 (remap_edge_summaries): Likewise.
28498 (dump_inline_summary): Report contains_cilk_spawn.
28499 (compute_inline_parameters): Compute contains_cilk_spawn.
28500 (inline_read_section, inline_write_summary): Stream
28501 contains_cilk_spawn.
28502 * ipa-inline.c (can_inline_edge_p): Do not touch
28503 DECL_STRUCT_FUNCTION that may not be available;
28504 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
28505 remove check for callee_fun->can_throw_non_call_exceptions and
28506 replace it by optimization attribute check; check for flag_exceptions.
28507 * ipa-inline-transform.c (inline_call): Maintain
28508 DECL_FUNCTION_PERSONALITY
28509 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
28510
28511 2015-03-26 Jakub Jelinek <jakub@redhat.com>
28512
28513 PR tree-optimization/65551
28514 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
28515 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
28516
28517 2015-03-26 Richard Biener <rguenther@suse.de>
28518
28519 PR middle-end/65555
28520 * tree-cfg.c (verify_gimple_call): Do not require a call to
28521 have no LHS if it wasn't recognized as control altering yet.
28522
28523 2015-03-26 Jakub Jelinek <jakub@redhat.com>
28524
28525 PR tree-optimization/64715
28526 * passes.def: Add another instance of pass_object_sizes before ccp1.
28527 * tree-object-size.c (pass_object_sizes::execute): In
28528 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
28529 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
28530 __bos result and the computed constant. Remove redundant
28531 checks, obsoleted by gimple_call_builtin_p test.
28532
28533 * var-tracking.c (variable_tracking_main_1): Don't track
28534 variables for targetm.no_register_allocation targets.
28535
28536 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
28537
28538 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
28539 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
28540
28541 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
28542
28543 PR target/65569
28544 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
28545 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
28546 0.0 is correctly setup.
28547 (extenddftf2_internal): Likewise.
28548
28549 2015-03-25 Sebastian Pop <s.pop@samsung.com>
28550
28551 PR tree-optimization/65177
28552 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
28553 (bb_in_bbs): New.
28554 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
28555 edges not adjacent on the path to the original code.
28556
28557 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
28558
28559 PR bootstrap/65537
28560 * doc/install.texi (Building a native compiler): Document new
28561 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
28562 configuration assumes that the host supports the linker plugin.
28563
28564 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
28565
28566 PR target/65508
28567 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
28568 chain for generated call.
28569
28570 2015-03-25 Richard Biener <rguenther@suse.de>
28571
28572 * passes.c (pass_manager::execute_early_local_passes): Guard
28573 execution of pass_chkp_instrumentation_passes with
28574 flag_check_pointer_bounds.
28575 (pass_chkp_instrumentation_passes::gate): Likewise.
28576
28577 2015-03-25 Martin Liska <mliska@suse.cz>
28578
28579 PR tree-optimization/65538
28580 * symbol-summary.h (function_summary::~function_summary):
28581 Relese memory for allocated summaries.
28582 (function_summary::release): New function.
28583
28584 2015-03-25 Jakub Jelinek <jakub@redhat.com>
28585
28586 PR lto/65515
28587 * lto-streamer-out.c (DFS::worklist): New struct.
28588 (DFS::worklist_vec): New data member.
28589 (DFS::next_dfs_num): Remove.
28590 (DFS::DFS): Rewritten using worklist instead of recursion,
28591 using most of code from DFS::DFS_write_tree.
28592 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
28593 pass it to DFS_write_tree calls.
28594 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
28595 quick initial checks push it into worklist_vec and return.
28596
28597 2015-03-25 Richard Biener <rguenther@suse.de>
28598
28599 PR middle-end/65519
28600 * genmatch.c (expr::gen_transform): Re-write to avoid
28601 using gimple_build.
28602
28603 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28604
28605 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
28606
28607 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28608
28609 * config/arm/arm.opt (print_tune_info): New option.
28610 * config/arm/arm.c (arm_print_tune_info): New function.
28611 (arm_file_start): Call arm_print_tune_info.
28612 * config/arm/arm-protos.h (struct tune_params): Add comment.
28613 * doc/invoke.texi (@item -mprint-tune-info): New item.
28614 (-mtune): mention it in ARM Option Summary.
28615
28616 2015-03-25 DJ Delorie <dj@redhat.com>
28617
28618 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
28619 correct clause.
28620
28621 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
28622 Martin Liska <mliska@suse.cz>
28623
28624 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
28625 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
28626 (sem_item::add_type): New function.
28627 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
28628 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
28629 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
28630 (sem_function::equals_wpa): Fix typo.
28631 * ipa-icf.h (sem_item::add_type): New function.
28632 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
28633 order.
28634
28635 2015-03-24 Jakub Jelinek <jakub@redhat.com>
28636
28637 PR tree-optimization/65533
28638 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
28639 with swapped operands, call vect_free_slp_tree on
28640 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
28641 vector.
28642
28643 2015-03-24 Richard Biener <rguenther@suse.de>
28644
28645 PR middle-end/65517
28646 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
28647 for fixup if necessary.
28648
28649 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
28650
28651 * doc/extend.texi (Function Attributes): Add @cindex entries
28652 for all attributes and regularize their format. Delete text
28653 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
28654 information about "eightbit_data", "tiny_data", and "model"
28655 variable attributes to the Variable Attributes section. Fix
28656 some obvious typos and copy-editing issues.
28657 (Variable Attributes, Type Attributes): Likewise add/fix
28658 @cindex entries for all attributes.
28659
28660 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28661
28662 PR target/65523
28663 * tree-chkp.c (chkp_build_returned_bound): Ignore
28664 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
28665
28666 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
28667
28668 PR target/65505
28669 * config/sh/predicates.md (simple_mem_operand,
28670 displacement_mem_operand): Add test for reg.
28671 (short_displacement_mem_operand): Test for displacement_mem_operand
28672 before invoking sh_disp_addr_displacement.
28673 * config/sh/constraints.md (Sdd, Sra): Simplify.
28674 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
28675 Remove redundant displacement_mem_operand tests.
28676
28677 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
28678
28679 PR target/65296
28680 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
28681 the same -mmcu=MCU more than once.
28682
28683 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28684
28685 PR bootstrap/65522
28686 * ipa-devirt.c: Remove duplicate demangle.h include.
28687
28688 PR target/65504
28689 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
28690 on the pseudo.
28691 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
28692 REG_POINTER on *destptr after adjusting it for prologue size.
28693
28694 PR ipa/65521
28695 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
28696 ultimate_alias_target ()->order ints instead of
28697 ultimate_alias_target () pointers.
28698
28699 2015-03-23 Richard Biener <rguenther@suse.de>
28700
28701 PR tree-optimization/65518
28702 * tree-vect-stmts.c (vectorizable_load): Reject single-element
28703 interleaving cases we generate absymal code for.
28704
28705 2015-03-23 Richard Biener <rguenther@suse.de>
28706
28707 PR tree-optimization/65494
28708 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
28709 matches here.
28710 (vect_analyze_slp_instance): But do that here, always and once.
28711
28712 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28713
28714 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
28715 adding T or multiplying by T+1 and subracting T.
28716
28717 2015-03-22 Jeff Law <law@redhat.com>
28718
28719 PR rtl-optimization/64317
28720 * Makefile.in (OBJS): Add gcse-common.c
28721 * gcse.c: Include gcse-common.h
28722 (struct modify_pair_s): Move structure definition to gcse-common.h
28723 (compute_transp): Move function to gcse-common.c.
28724 (canon_list_insert): Similarly.
28725 (record_last_mem_set_info): Break out some code and put it into
28726 gcse-common.c. Call into the new common code.
28727 (compute_local_properties): Pass additional arguments to compute_transp.
28728 * postreload-gcse.c: Include gcse-common.h and df.h
28729 (modify_mem_list_set, blocks_with_calls): New variables.
28730 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
28731 (get_bb_avail_insn): Pass in the expression index too.
28732 (alloc_mem): Allocate memory for the new bitmaps and lists.
28733 (free_mem): Free memory for the new bitmaps and lists.
28734 (insert_expr_in_table): Record a bitmap index for each entry we
28735 add to the table.
28736 (record_last_mem_set_info): Call into common code in gcse-common.c.
28737 (get_bb_avail_insn): If no available insn was found in the requested
28738 BB. If BB has a single predecessor, see if the expression is
28739 transparent in BB and available in that single predecessor.
28740 (compute_expr_transp): New wrapper for compute_transp.
28741 (eliminate_partially_redundant_load): Pass expression's bitmap_index
28742 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
28743 (gcse_after_reload_main): If there are elements in the hash table,
28744 then compute transparency for all the elements in the hash table.
28745 * gcse-common.h: New file.
28746 * gcse-common.c: New file.
28747
28748 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
28749
28750 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
28751 as an adjective.
28752 (System Headers): Likewise.
28753 (Ifdef): Likewise.
28754 (Traditional macros): Likewise.
28755 (Invocation): Likewise.
28756 (Option Index): Likewise.
28757 * doc/cppopts.texi (-M): Likewise.
28758 (-finput-charset): Likewise.
28759 (--help): Likewise.
28760 * doc.invoke.texi (AVR Options): Likewise.
28761 (V850 Options): Likewise.
28762
28763 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
28764
28765 PR ipa/65475
28766 * ipa-devirt.c: Include demangle.h
28767 (odr_type_d): Add field rtti_broken.
28768 (odr_subtypes_equivalent_p): Do not require name to match.
28769 (compare_virtual_tables): Fix typo; if type already has ODR violation,
28770 bypass the tests; be ready for function referneces in vtables that are
28771 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
28772 (warn_odr): Give up for nameless types.
28773 (warn_types_mismatch): Report mismatch in mangled names;
28774 report mismatch in anonymous namespaces; look into component types to
28775 give useful error; report when mismatch is dragged in from other ODR
28776 type.
28777 (odr_types_equivalent_p): Match types for being polymorphic; avoid
28778 duplicated diagnostics.
28779 (add_type_duplicate): Reorder checks so more informative ones come
28780 first; fix typo; do not output "the extra base is defined here" when
28781 we did not warn.
28782 (BINFO_N_BASE_BINFOS): Relax sanity check.
28783
28784 2015-03-22 Martin Liska <mliska@suse.cz>
28785 Jakub Jelinek <jakub@redhat.com>
28786
28787 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
28788 masks that can potentially include a builtin.
28789 (ix86_add_new_builtins): Introduce fast filter for isa values
28790 that cannot trigger builtin inclusion.
28791
28792 2015-03-22 Martin Liska <mliska@suse.cz>
28793
28794 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
28795 (sem_item::update_hash_by_local_refs): Likewise.
28796 (sem_variable::get_hash): Empty line is fixed.
28797 (sem_item_optimizer::execute): Include adding of hash references.
28798 (sem_item_optimizer::update_hash_by_addr_refs): New function.
28799 (sem_item_optimizer::build_hash_based_classes): Use local hash.
28800 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
28801 (sem_item::update_hash_by_local_refs): Likewise.
28802
28803 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28804
28805 PR ipa/65502
28806 * ipa-comdats.c (enqueue_references): Walk through thunks.
28807 (ipa_comdats): Likewise.
28808 (set_comdat_group_1): New function.
28809
28810 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28811
28812 PR ipa/65475
28813 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
28814 non-polymorphic
28815
28816 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
28817 Gerald Pfeifer <gerald@pfeifer.com>
28818
28819 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
28820
28821 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
28822 Sandra Loosemore <sandra@codesourcery.com>
28823
28824 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
28825 function parameter declaration.
28826 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
28827 Update arguments to nios2_adjust_call_address().
28828 (sibcall_internal): Rename from *sibcall.
28829 (sibcall_value_internal): Rename from *sibcall_value.
28830 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
28831 (nios2_large_got_address): Add target temp reg parameter.
28832 (nios2_got_address): Adjust call to nios2_large_got_address, add
28833 force_reg around it.
28834 (nios2_load_pic_address): Add target temp reg parameter, replace call
28835 to nios2_got_address with corresponding code.
28836 (nios2_legitimize_constant_address): Update call to
28837 nios2_load_pic_address.
28838 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
28839 to use temp reg for PIC loading purposes.
28840 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
28841 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
28842 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
28843
28844 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28845
28846 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
28847 usage of "the @option{...}".
28848 (-Wopenmp-simd): Likewise.
28849 (-fsanitize-recover): Likewise.
28850 (-fsanitize-undefined-trap-on-error): Likewise.
28851 (-flto): Likewise.
28852 (tracer-dynamic-coverage-feedback): Likewise.
28853 (reorder-block-duplicate-feedback): Likewise.
28854 (loop-unroll-jam-size): Likewise.
28855 (-B): Likewise.
28856 (-I-): Likewise.
28857 (-mabs=legacy): Likewise.
28858 (-mupper-regs-df): Likewise.
28859 (-mupper-regs-sf): Likewise.
28860 (-mpointers-to-nested-functions): Likewise.
28861
28862 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28863
28864 * doc/extend.texi (Cilk Plus Builtins): Add markup.
28865
28866 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28867
28868 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
28869 additional index entries and cross-references.
28870 (-fchkp-check-incomplete-type): Likewise.
28871 (-fchkp-first-field-has-own-bounds): Likewise.
28872 (-fchkp-narrow-to-innermost-array): Likewise.
28873 (-fchkp-use-fast-string-functions): Likewise.
28874 (-fchkp-use-nochk-string-functions): Likewise.
28875 (-fchkp-use-static-const-bounds): Likewise.
28876 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28877 (-fchkp-instrument-marked-only): Likewise.
28878 (-fchkp-use-wrappers): Likewise.
28879 (-static-libmpx): Likewise.
28880 (-static-libmpxwrappers): Likewise.
28881 * doc/extend.texi (bnd_legacy): Likewise.
28882 (bnd_instrument): Likewise.
28883 (bnd_variable_size): Likewise.
28884 (Pointer Bounds Checker builtins): Likewise.
28885
28886 2015-03-21 Tom de Vries <tom@codesourcery.com>
28887
28888 PR tree-optimization/65458
28889 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
28890 * cgraph.h (cgraph_node): Add parallelized_function field.
28891 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
28892 (input_overwrite_node): Read parallelized_function field.
28893 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
28894 parallelized_function on cgraph_node for child_fn.
28895 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
28896 Remove include of gt-tree-parloops.h.
28897 (parallelized_functions): Remove static variable.
28898 (parallelized_function_p): Rewrite using parallelized_function field of
28899 cgraph_node.
28900 (create_loop_fn): Remove adding to parallelized_functions.
28901 * Makefile.in (GTFILES): Remove tree-parloops.c
28902
28903 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
28904
28905 PR rtl-optimization/64366
28906 * lra.c (lra_update_insn_regno_info): Consider regs in
28907 CALL_INSN_FUNCTION_USAGE memory.
28908
28909 2015-03-20 Richard Biener <rguenther@suse.de>
28910
28911 PR middle-end/64715
28912 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
28913 for type comparison and gcc_checking_assert.
28914 (chrec_fold_plus_poly_poly): Likewise.
28915 (chrec_fold_multiply_poly_poly): Likewise.
28916 (chrec_convert_1): Likewise.
28917 * gimplify.c (gimplify_expr): Remove premature folding of
28918 &X + CST to &MEM[&X, CST].
28919
28920 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28921
28922 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
28923 already is final.
28924 (ipa_inline): Recompute inline_failed codes.
28925 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28926 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
28927 CIF_FINAL_ERROR.
28928
28929 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
28930
28931 PR rtl-optimization/60851
28932 * recog.c (constrain_operands): Accept a pseudo register before reload
28933 for LRA enabled targets.
28934
28935 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
28936
28937 PR target/65240
28938 * config/rs6000/predicates.md (easy_fp_constant): Remove special
28939 -ffast-math handling that kept non-0 constants live in the RTL
28940 until reload. Remove logic testing the number of instructions it
28941 took to create a constant in a GPR that was never used, due to a
28942 test for soft-float earlier.
28943 (memory_fp_constant): Delete, no longer used.
28944
28945 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
28946 alternatives for loading non-0 constants into GPRs for hard
28947 floating point that is no longer needed due to changes in
28948 easy_fp_constant. Add support for loading 0.0 into GPRs.
28949 (mov<mode>_hardfloat32): Likewise.
28950 (mov<mode>_hardfloat64): Likewise.
28951 (mov<mode>_64bit_dm): Likewise.
28952 (movtd_64bit_nodm): Likewise.
28953 (pre-reload move FP constant define_split): Delete define_split,
28954 since it is no longer used.
28955 (extenddftf2_internal): Remove GHF constraints that are not valid
28956 for extenddftf2.
28957
28958 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
28959
28960 PR rtl-optimization/63491
28961 * lra-constraints.c (check_and_process_move): Use src instead of
28962 sreg. Remove some dead code.
28963
28964 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
28965
28966 PR ipa/65380
28967 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
28968 (sem_variable::merge): Likewise.
28969
28970 2015-03-19 Martin Liska <mliska@suse.cz>
28971
28972 PR ipa/65465
28973 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
28974 all fields of cgraph_thunk_info.
28975
28976 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
28977
28978 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
28979 clone instrumented thunks.
28980
28981 2015-03-19 Richard Biener <rguenther@suse.de>
28982
28983 Revert
28984 2015-03-10 Richard Biener <rguenther@suse.de>
28985
28986 PR middle-end/63155
28987 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28988 * tree-ssa-coalesce.c: Include timevar.h.
28989 (attempt_coalesce): Handle graph being NULL.
28990 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28991 Split out abnormal coalescing to ...
28992 (perform_abnormal_coalescing): ... this function.
28993 (coalesce_ssa_name): Perform abnormal coalescing without computing
28994 live/conflict.
28995 (verify_ssa_coalescing_worker): New function.
28996 (verify_ssa_coalescing): Likewise.
28997
28998 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
28999 Jakub Jelinek <jakub@redhat.com>
29000
29001 PR sanitizer/65400
29002 * tsan.c (instrument_gimple): Clear tail call flag on
29003 calls.
29004
29005 2015-03-19 Jakub Jelinek <jakub@redhat.com>
29006
29007 PR sanitizer/65400
29008 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
29009 call in the return bb.
29010 (find_split_points): Add RETURN_BB argument, don't call
29011 find_return_bb.
29012 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
29013 if true append TSAN_FUNC_EXIT internal call after the call to
29014 the split off function.
29015 (execute_split_functions): Call find_return_bb here.
29016 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
29017 Adjust find_split_points and split_function calls.
29018
29019 2015-03-18 DJ Delorie <dj@redhat.com>
29020
29021 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
29022 (iorqi3_virt): Likewise.
29023
29024 2015-03-18 Tom de Vries <tom@codesourcery.com>
29025
29026 * tree-parloops.c (parallelize_loops): Make static.
29027 * tree-parloops.h (parallelize_loops): Remove extern declaration.
29028
29029 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
29030
29031 PR middle-end/64491
29032 Revert:
29033 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
29034
29035 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
29036 condition would be removed due to undefined behaviour.
29037
29038 2015-03-18 Martin Liska <mliska@suse.cz>
29039
29040 PR ipa/65432
29041 * cgraph.c (cgraph_node::get_create): Remove unnecessary
29042 xstrdup_for_dump wrapper.
29043 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
29044 sem_item::name.
29045 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
29046 with xstrdup_for_dump.
29047 (sem_variable::equals): Likewise.
29048 (sem_item_optimizer::read_section): Use symtab_node::name instead of
29049 sem_item::name.
29050 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
29051 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
29052 symtab_node::asm_name with xstrdup_for_dump.
29053 (congruence_class::dump): Use symtab_node::name instead of
29054 sem_item::name.
29055 * ipa-icf.h (symtab_node::name): Remove.
29056 (symtab_node::asm_name): Likewise.
29057
29058 2015-03-18 Jakub Jelinek <jakub@redhat.com>
29059
29060 PR tree-optimization/65450
29061 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
29062 function.
29063 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
29064 it instead of duplicate_ssa_name_ptr_info.
29065
29066 PR target/65222
29067 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
29068
29069 2015-03-18 Richard Biener <rguenther@suse.de>
29070
29071 * tree-data-ref.h (struct access_matrix): Remove.
29072 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
29073 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
29074 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
29075 (am_vector_index_for_loop): Likewise.
29076 (struct data_reference): Remove access_matrix member.
29077 (DR_ACCESS_MATRIX): Remove.
29078 (lambda_vector_new): Add comment.
29079 (lambda_matrix_new): Use XOBNEWVEC.
29080
29081 2015-03-18 Richard Biener <rguenther@suse.de>
29082
29083 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
29084 (pass_ch::execute): Cleanup the CFG only if we did sth.
29085 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
29086
29087 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29088
29089 * expmed.c (synth_mult): Use std::swap instead of manually
29090 swapping algorithms.
29091
29092 2015-03-18 Jakub Jelinek <jakub@redhat.com>
29093
29094 PR target/65078
29095 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
29096
29097 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
29098
29099 PR target/65296
29100 * config/avr/avr.opt (-nodevicelib): New option.
29101 * doc/invoke.texi (AVR Options): Document it.
29102 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
29103 libgcc.a, libc.a, libm.a.
29104 * config/avr/specs.h: Same.
29105 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
29106 which don't (directly) depend on the device. Print more help.
29107 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
29108 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
29109 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
29110 case of an error.
29111 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
29112 for specs file name.
29113 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
29114 * config/avr/avr-mcus.def: Adjust initializers and comments.
29115
29116 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
29117
29118 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
29119 DECL_ONE_ONLY to check if decl is one only.
29120 * ipa-split.c (consider_split): Limit splitt of one only functions.
29121
29122 2015-03-16 Jakub Jelinek <jakub@redhat.com>
29123
29124 PR tree-optimization/65427
29125 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
29126 functions.
29127 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
29128
29129 2015-03-16 Marek Polacek <polacek@redhat.com>
29130
29131 * cgraph.h (add_new_static_var): Remove declaration.
29132 * varpool.c (add_new_static_var): Remove function.
29133
29134 2015-03-16 Jakub Jelinek <jakub@redhat.com>
29135
29136 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
29137 instead of vec<tree> * with vec_alloc and release for args.
29138 Adjust all users.
29139
29140 PR middle-end/65431
29141 * omp-low.c (delete_omp_context): Only splay_tree_delete
29142 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
29143 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
29144
29145 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
29146
29147 PR sanitizer/64820
29148 * cfgexpand.c (align_base): New function.
29149 (alloc_stack_frame_space): Call it.
29150 (expand_stack_vars): Align prev_frame to be sure
29151 data->asan_vec elements aligned properly.
29152
29153 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
29154
29155 PR middle-end/65409
29156 * expr.c (store_field): Do not do a direct block copy if the source is
29157 a PARALLEL with BLKmode.
29158
29159 2015-03-16 Tom de Vries <tom@codesourcery.com>
29160
29161 PR middle-end/65414
29162 Revert:
29163 2015-03-12 Tom de Vries <tom@codesourcery.com>
29164
29165 PR rtl-optimization/64895
29166 * lra-lives.c (check_pseudos_live_through_calls): Use
29167 actual_call_used_reg_set instead of call_used_reg_set, if available.
29168
29169 2015-03-16 Alan Modra <amodra@gmail.com>
29170
29171 PR target/63150
29172 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
29173 Modify Z->r bswapdi splitter to use dest in place of scratch.
29174 In r->Z and Z->r bswapdi splitter rename word_high, word_low
29175 to word1, word2 and rearrange logic to suit.
29176 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
29177 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
29178 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
29179 Add one '?' on r->r. Modify Z->r splitter to avoid need for
29180 early clobber.
29181
29182 2015-03-14 Jakub Jelinek <jakub@redhat.com>
29183
29184 PR tree-optimization/65369
29185 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
29186 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
29187 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
29188
29189 PR tree-optimization/65418
29190 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
29191 are casts in the first PLUS_EXPR operand, ensure tbias and
29192 *totallowp are in the inner type.
29193
29194 PR rtl-optimization/65401
29195 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
29196 argument. If true, adjust_address_nv of x with big-endian
29197 correction for the mode widening to GET_MODE (y).
29198 (make_field_assignment): Don't do MEM mode widening here.
29199 Use MEM_P instead of GET_CODE == MEM.
29200
29201 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
29202
29203 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
29204 the external decls.
29205
29206 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29207
29208 PR target/64600
29209 * config/arm/arm.c (arm_gen_constant, AND case): Use
29210 ARM_SIGN_EXTEND when constructing AND mask.
29211
29212 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29213
29214 * graph.c (print_graph_cfg): Make function names visible and append
29215 parenthesis to it. Also make groups of basic blocks belonging to the
29216 same function visible.
29217
29218 2015-03-12 Richard Biener <rguenther@suse.de>
29219
29220 PR middle-end/44563
29221 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
29222 to avoid quadratic behavior with inline expansion splitting blocks.
29223 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
29224 with the successor if the predecessor will be merged with it.
29225 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
29226 entry block with its successor.
29227
29228 2015-03-13 Richard Biener <rguenther@suse.de>
29229
29230 PR middle-end/44563
29231 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
29232 (cleanup_tree_cfg_1): Do not call it.
29233 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
29234 (fixup_noreturn_call): Mark the stmt as control altering.
29235 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
29236 here.
29237 (pass_data_fixup_cfg): Produce a dump file.
29238 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
29239 (need_noreturn_fixup): New global.
29240 (pass_dominator::execute): Fixup queued noreturn calls.
29241 (optimize_stmt): Queue calls that became noreturn for fixup.
29242 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
29243 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
29244 (el_to_fixup): New global.
29245 (eliminate_dom_walker::before_dom_childre): Queue calls that
29246 became noreturn for fixup.
29247 (eliminate): Fixup queued noreturn calls.
29248 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
29249 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
29250 (substitute_and_fold_dom_walker::before_dom_children): Queue
29251 alls that became noreturn for fixup.
29252 (substitute_and_fold): Fixup queued noreturn calls.
29253
29254 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
29255
29256 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
29257 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
29258 are building; for methods check ODR type of class they belong to if
29259 they may lead to a polymorphic call.
29260 (sem_function::compare_polymorphic_p): Be bit smarter about testing
29261 when function may lead to a polymorphic call.
29262 (sem_function::compare_type_list): Remove.
29263 (sem_variable::equals): Update use of compatible_types_p.
29264 (sem_variable::parse_tree_refs): Remove.
29265 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
29266 cdtor.
29267 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
29268 matching here.
29269 (func_checker::compatible_polymorphic_types_p): Break out from ...
29270 (unc_checker::compatible_types_p): ... here.
29271 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
29272 Declare.
29273 (unc_checker::compatible_types_p): Update.
29274 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
29275 Remove.
29276
29277 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29278
29279 PR rtl-optimization/65235
29280 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
29281 When first element of vec_concat is const_int, calculate its size
29282 using second element.
29283
29284 2015-03-12 Richard Biener <rguenther@suse.de>
29285
29286 PR middle-end/65270
29287 * fold-const.c (operand_equal_p): Fix ordering of resetting
29288 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
29289
29290 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29291
29292 * config/s390/s390.c (s390_reorg): Move code to output nops after label
29293 to s390_reorg ().
29294 (s390_asm_output_function_label): Likewise.
29295 * config/s390/s390.c (s390_asm_output_function_label):
29296 Fix function label alignment with -mhtopatch.
29297 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
29298 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
29299 ("nop_2_byte"): New define_insn.
29300 ("nop_4_byte"): Likewise.
29301 ("nop_6_byte"): Likewise.
29302 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
29303 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
29304
29305 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
29306
29307 PR target/65103
29308 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
29309 register.
29310
29311 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
29312
29313 PR target/65044
29314 * toplev.c (process_options): Restrict Pointer Bounds Checker
29315 usage with Address Sanitizer.
29316
29317 2015-03-12 Richard Biener <rguenther@suse.de>
29318
29319 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
29320 to split on.
29321 * omp-low.c (expand_omp_taskreg): Split block before removing
29322 the stmt.
29323 (expand_omp_target): Likewise.
29324 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
29325 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
29326 stmt to split_block.
29327
29328 2015-03-12 Tom de Vries <tom@codesourcery.com>
29329
29330 PR rtl-optimization/64895
29331 * lra-lives.c (check_pseudos_live_through_calls): Use
29332 actual_call_used_reg_set instead of call_used_reg_set, if available.
29333
29334 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29335
29336 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
29337 (cgraph_node::remove): Likewise.
29338 (cgraph_node::get_untransformed_body): Likewise.
29339 * varpool.c (varpool_node::remove): Likewise.
29340 (varpool_node::get_constructor): Add sanity check.
29341
29342 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
29343
29344 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
29345 old GCC versions.
29346 (-fabi-compat-version): Likewise.
29347 (-ffriend-injection): Likewise.
29348 (-Wdeclaration-after-statement): Likewise.
29349 (-fomit-frame-pointer): Likewise.
29350 (-ftree-coalesce-inlined-vars): Likewise.
29351 (-fvisibility=): Likewise.
29352 * doc/extend.texi (Typeof): Likewise.
29353 (Zero Length): Likewise.
29354 (Escaped Newlines): Likewise.
29355 (Compound Literals): Likewise.
29356 (Function Attributes): Likewise.
29357 (Label Attributes): Likewise.
29358 (Type Attributes): Likewise.
29359 (Function Names): Likewise.
29360 (Other Builtins): Likewise.
29361 (Function Specific Option Pragmas): Likewise.
29362 (C++ Interface): Likewise.
29363
29364 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
29365
29366 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
29367
29368 2015-03-11 Marek Polacek <polacek@redhat.com>
29369
29370 PR tree-optimization/65388
29371 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
29372
29373 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
29374
29375 PR target/65296
29376 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
29377 * configure: Regenerate.
29378 * config.in: Regenerate.
29379 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
29380 [-mn-flash]: Document it.
29381 [__AVR_ARCH__]: Document avrtiny.
29382
29383 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
29384 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
29385 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
29386
29387 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29388
29389 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
29390
29391 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29392
29393 PR target/65242
29394 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
29395 allow reloads of PLUS in floating point/VSX registers.
29396
29397 2015-03-11 Junmo Park <junmoz.park@samsung.com>
29398
29399 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
29400 crypto_sha256_fast.
29401 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
29402
29403 2015-03-11 Richard Biener <rguenther@suse.de>
29404
29405 PR tree-optimization/65310
29406 * tree-sra.c (build_ref_for_offset): Also preserve larger
29407 alignment.
29408
29409 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
29410
29411 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
29412
29413 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29414
29415 PR target/65368
29416 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
29417 new define_expand.
29418 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
29419
29420 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29421
29422 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
29423 (sem_function::equals_wpa): ... here.
29424
29425 2015-03-10 Marek Polacek <polacek@redhat.com>
29426 Jakub Jelinek <jakub@redhat.com>
29427
29428 PR sanitizer/65367
29429 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
29430 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
29431 separately.
29432
29433 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29434
29435 PR target/65286
29436 * config/rs6000/t-linux: For powerpc64* target set
29437 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
29438
29439 2015-03-10 Richard Biener <rguenther@suse.de>
29440
29441 PR middle-end/44563
29442 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
29443 for redirect_all_calls.
29444
29445 2015-03-10 Marek Polacek <polacek@redhat.com>
29446
29447 * gdbinit.in (pcfun): Define and document.
29448
29449 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
29450
29451 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
29452 of libgomp-plugin.h.
29453 (find_target_compiler): Support a case when the path to gcc is
29454 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
29455 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
29456 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
29457 libgomp-plugin.h.
29458 (main): Use GCC_INSTALL_NAME as target_driver_name.
29459 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
29460 define.
29461 (mkoffload.o): Remove obsolete include path and defines.
29462 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
29463
29464 2015-03-10 Richard Biener <rguenther@suse.de>
29465
29466 PR middle-end/63155
29467 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
29468 * tree-ssa-coalesce.c: Include timevar.h.
29469 (attempt_coalesce): Handle graph being NULL.
29470 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
29471 Split out abnormal coalescing to ...
29472 (perform_abnormal_coalescing): ... this function.
29473 (coalesce_ssa_name): Perform abnormal coalescing without computing
29474 live/conflict.
29475 (verify_ssa_coalescing_worker): New function.
29476 (verify_ssa_coalescing): Likewise.
29477
29478 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
29479
29480 PR target/65296
29481 * config.gcc (extra_options) [avr]: Remove.
29482 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
29483 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
29484 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
29485
29486 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
29487 (-mmcu=): Add Var and MissingArgError properties.
29488 (-march=): Remove.
29489 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
29490 * config/avr/t-multilib: Regenerate.
29491 * config/avr/specs.h: New file.
29492 * config/avr/driver-avr.c: New file.
29493 * config/avr/genopt.sh: Remove file.
29494 * config/avr/avr-tables.opt: Remove file.
29495 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
29496 * config/avr/avr-c.c: Same.
29497 * avr-arch.h: Same.
29498 (avr_current_device): Remove proto.
29499 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
29500 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
29501 (EXTRA_SPEC_FUNCTIONS): Define.
29502 (avr_devicespecs_file): New specs function proto.
29503 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
29504 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
29505 (avr_current_device): Remove definition and usage.
29506 (avr_set_core_architecture): New static function.
29507 (avr_option_override): Use it.
29508 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
29509 (mcu_name): New static array.
29510 (comparator, avr_archs_str, avr_mcus_str): New static functions.
29511 (avr_inform_devices, avr_inform_core_architectures): New functions.
29512 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
29513 (avrlibc.h) [WITH_AVRLIBC]: Include.
29514 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
29515 (print_mcu): Rewrite from scratch.
29516 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
29517 Forward to avr-specific specs defined in device-specs file.
29518 * config/avr/t-avr (driver-avr.o): New rule.
29519 (avr-devices.o): Depend on avr-arch.h.
29520 (avr-mcus): No more depend on avr-tables.opt.
29521 (avr-tables.opt): Remove rule.
29522 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
29523
29524 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29525
29526 * c-family/c.opt (fchkp-use-wrappers): New.
29527 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
29528 (chkp_wrap_function): New.
29529 (chkp_build_instrumented_fndecl): Support wrapped
29530 functions.
29531 * doc/invoke.texi (-fcheck-pointer-bounds): New.
29532 (-fchkp-check-incomplete-type): New.
29533 (-fchkp-first-field-has-own-bounds): New.
29534 (-fchkp-narrow-bounds): New.
29535 (-fchkp-narrow-to-innermost-array): New.
29536 (-fchkp-optimize): New.
29537 (-fchkp-use-fast-string-functions): New.
29538 (-fchkp-use-nochk-string-functions): New.
29539 (-fchkp-use-static-bounds): New.
29540 (-fchkp-use-static-const-bounds): New.
29541 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
29542 (-fchkp-check-read): New.
29543 (-fchkp-check-write): New.
29544 (-fchkp-store-bounds): New.
29545 (-fchkp-instrument-calls): New.
29546 (-fchkp-instrument-marked-only): New.
29547 (-fchkp-use-wrappers): New.
29548 (-static-libmpx): New.
29549 (-static-libmpxwrappers): New.
29550
29551 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29552
29553 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
29554 (CHKP_SPEC): Add wrappers library.
29555 * c-family/c.opt (static-libmpxwrappers): New.
29556
29557 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29558
29559 * config/i386/linux-common.h (LIBMPX_LIBS): New.
29560 (LIBMPX_SPEC): New.
29561 (CHKP_SPEC): New.
29562 * gcc.c (CHKP_SPEC): New.
29563 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
29564 * c-family/c.opt (static-libmpx): New.
29565
29566 2015-03-10 Richard Biener <rguenther@suse.de>
29567
29568 PR middle-end/44563
29569 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
29570 for compare_type.
29571 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
29572 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
29573 (cgraph_add_edge_to_call_site_hash): Likewise.
29574 (cgraph_node::get_edge): Likewise.
29575 (cgraph_edge::set_call_stmt): Likewise.
29576 (cgraph_edge::remove_caller): Likewise.
29577
29578 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
29579
29580 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
29581 (callee_saved_gpr_regs_size): ... this.
29582 (callee_saved_regs_first_regno): Rename to ...
29583 (callee_saved_first_gpr_regno): ... this.
29584 (callee_saved_regs_last_regno) Rename to ...
29585 (callee_saved_last_gpr_regno): ... this.
29586 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
29587 variables.
29588 (nds32_initial_elimination_offset): Likewise.
29589 (nds32_expand_prologue): Likewise.
29590 (nds32_expand_epilogue): Likewise.
29591 (nds32_expand_prologue_v3push): Likewise.
29592 (nds32_expand_epilogue_v3pop): Likewise.
29593 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
29594 Adjust renamed variables.
29595 (nds32_output_stack_pop): Likewise.
29596
29597 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
29598
29599 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
29600 code in comment.
29601
29602 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29603
29604 PR rtl-optimization/65321
29605 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
29606 than shift mode.
29607 * var-tracking.c (use_narrower_mode): Likewise.
29608
29609 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29610
29611 PR tree-optimization/65355
29612 * varasm.c (notice_global_symbol): Do not produce RTL.
29613 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
29614 anchor.
29615 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
29616 check for section anchors.
29617
29618 2015-03-10 Alan Modra <amodra@gmail.com>
29619
29620 PR target/65286
29621 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
29622 to be single-arch by default. Set cpu_is_64bit for powerpc64
29623 given --with-cpu=native.
29624 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
29625 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
29626 and powerpc64le.
29627 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
29628 rs6000_isa_flags rather than TARGET_64BIT.
29629
29630 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
29631 Kaz Kojima <kkojima@gcc.gnu.org>
29632
29633 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
29634
29635 2015-03-09 Jakub Jelinek <jakub@redhat.com>
29636
29637 PR lto/65361
29638 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
29639 on a TREE_BINFO, instead use BINFO_TYPE.
29640
29641 2015-03-09 Richard Biener <rguenther@suse.de>
29642
29643 PR middle-end/65270
29644 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
29645 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
29646 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
29647 of that. When comparing dereferences compare alignment.
29648 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
29649
29650 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29651
29652 * ipa-inline-analysis.c (check_callers): Check
29653 node->can_remove_if_no_direct_calls_and_refs_p.
29654 (growth_likely_positive): Reorganize to call
29655 can_remove_if_no_direct_calls_p later.
29656 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
29657 will_be_removed_from_program_if_no_direct_calls_p): Add
29658 will_inline parameter.
29659 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
29660 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29661 Handle inliner case correctly.
29662
29663 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
29664
29665 PR tree-optimization/63743
29666 * cfgexpand.c (reorder_operands): Also reorder if only second operand
29667 had its definition forwarded by TER.
29668
29669 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29670
29671 PR lto/65316
29672 * ipa-utils.h (types_odr_comparable): Add strict argument.
29673 * ipa-devirt.c: Fix whitespace;
29674 (odr_hasher): Remove.
29675 (odr_name_hasher, odr_vtable_hasher): New hashers.
29676 (can_be_name_hashed_p): New predicate.
29677 (hash_type_name): remove.
29678 (hash_odr_name): New.
29679 (odr_name_hasher::hash): new.
29680 (can_be_vtable_hashed_p): New.
29681 (hash_odr_vtable): New.
29682 (odr_vtable_hasher::hash): New.
29683 (types_same_for_odr): Add strict parameter.
29684 (types_odr_comparable): Likewise.
29685 (odr_name_hasher::equal): New.
29686 (odr_vtable_hasher::equal): New.
29687 (odr_name_hasher::remove): New.
29688 (odr_hash_type): Change to hash_table<odr_name_hasher>.
29689 (odr_vtable_hash_type): New.
29690 (odr_vtable_hash): New.
29691 (odr_subtypes_equivalent_p): Do strict comparsion.
29692 (add_type_duplicate): Merge type names; cleanup; avoid type
29693 duplicates.
29694 (register_odr_type): Initialize vtable hash.
29695 (build_type_inheritance_graph): Likewise
29696 (get_odr_type): Reorg to use two hashes.
29697 (dump_possible_polymorphic_call_targets): Move sanity check after debug
29698 output.
29699 (ipa_devirt): Dump type_inheritance_graph.
29700 (types_same_for_odr): Add strict mode.
29701
29702 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29703
29704 PR ipa/65334
29705 * cgraph.h (symtab_node): Add definition_alignment,
29706 can_increase_alignment_p and increase_alignment.
29707 * symtab.c (symtab_node::can_increase_alignment_p,
29708 increase_alignment_1, symtab_node::increase_alignment,
29709 symtab_node::definition_alignment): New.
29710 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
29711 can_increase_alignment_p.
29712 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
29713 * tree-vect-stmts.c (ensure_base_align): Likewise.
29714 * varasm.c (function_section_1): Use definition_alignment.
29715 (assemble_start_function): Likewise.
29716 (emit_local): likewise.
29717 (build_constant_desc): Likewsie.
29718 (output_constant_def_contents): Likewise.
29719 (place_block_symbol): Likewise.
29720 (output_object_block): Likewise.
29721
29722 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29723
29724 PR ipa/65316
29725 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
29726 when outputting debug.
29727
29728 2015-03-07 Marek Polacek <polacek@redhat.com>
29729 Martin Uecker <uecker@eecs.berkeley.edu>
29730
29731 PR sanitizer/65280
29732 * doc/invoke.texi: Update description of -fsanitize=bounds.
29733
29734 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
29735
29736 * tree-ssa-phiopt.c (neg_replacement): Remove.
29737 (tree_ssa_phiopt_worker): Remove negate optimization.
29738
29739 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29740
29741 PR ipa/65302
29742 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
29743
29744 2015-03-06 Richard Biener <rguenther@suse.de>
29745
29746 PR middle-end/64928
29747 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
29748 and liveout_obstack members.
29749 (calculate_live_on_exit): Remove.
29750 (calculate_live_ranges): Change declaration.
29751 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
29752 (new_tree_live_info): Adjust.
29753 (calculate_live_ranges): Delete livein when not wanted.
29754 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
29755 Deal with partly deleted live info.
29756 (loe_visit_block): Remove temporary bitmap by using
29757 bitmap_ior_and_compl_into.
29758 (live_worklist): Adjust accordingly.
29759 (calculate_live_on_exit): Make static.
29760 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
29761 we do not need livein.
29762
29763 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
29764
29765 * real.c (real_from_string): Fix typo in assertion.
29766
29767 2015-03-06 Alex Velenko <alex.velenko@arm.com>
29768
29769 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
29770 the patch.
29771
29772 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29773
29774 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
29775
29776 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
29777
29778 PR target/64342
29779 * lra-assigns.c (find_hard_regno_for): Rename to
29780 find_hard_regno_for_1. Add a new parameter.
29781 (find_hard_regno_for): New function using find_hard_regno_for_1.
29782
29783 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29784
29785 PR rtl-optimization/65067
29786 * expmed.c (store_bit_field, extract_bit_field): Reworked the
29787 strict volatile bitfield handling.
29788
29789 2015-03-05 Martin Liska <mliska@suse.cz>
29790
29791 PR ipa/65318
29792 * ipa-icf.c (sem_variable::equals): Compare variables types.
29793
29794 2015-03-05 Richard Henderson <rth@redhat.com>
29795
29796 PR target/65121
29797 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
29798 correctly check weak symbol binding.
29799
29800 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
29801
29802 PR middle-end/65315
29803 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
29804 needed alignment.
29805
29806 2015-03-05 Martin Liska <mliska@suse.cz>
29807
29808 * ipa-inline.c (inline_small_functions): Set default value to
29809 prevent warning during bootstrap.
29810 * tree.h: Add pragma guard that ignores false positives during
29811 bootstrap.
29812
29813 2015-03-05 Richard Biener <rguenther@suse.de>
29814
29815 PR tree-optimization/65310
29816 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29817 Properly preserve alignment of the base of the access.
29818
29819 2015-03-05 Richard Biener <rguenther@suse.de>
29820
29821 PR ipa/65270
29822 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
29823 Compare dependence info.
29824
29825 2015-03-05 Richard Biener <rguenther@suse.de>
29826
29827 PR middle-end/65233
29828 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
29829 tree-into-ssa.h.
29830 (walk_ssa_copies): Revert last chage. Instead do not walk
29831 SSA names registered for SSA update.
29832
29833 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29834
29835 PR ipa/65270
29836 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
29837 vtable references for their containing type.
29838 (sem_function::equals_wpa): Compare TYPE_RESTRICT
29839 and type attributes.
29840
29841 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
29842
29843 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
29844 before negating it.
29845 * stor-layout.c (finalize_record_size): Revert latest change.
29846
29847 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
29848
29849 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
29850
29851 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29852
29853 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
29854 for correct comdat handling.
29855 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29856 Likewise.
29857 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
29858 (used_from_object_file_p_worker): Remove.
29859 (cgraph_node::only_called_directly_or_alised): Add
29860 used_from_object_file_p.
29861 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
29862 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
29863 can_remove_if_no_direct_calls_and_refs_p.
29864
29865 2015-03-04 Nick Clifton <nickc@redhat.com>
29866
29867 * config/rl78/rl78.h (enum reg_class): Remove real registers from
29868 General register class.
29869 * config/rl78/rl78-real.md: Replace general register constraints
29870 with real+virtual register constraints.
29871
29872 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29873
29874 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
29875 from checking for -mhtm option.
29876
29877 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29878
29879 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
29880 (struct ipa_sra_check_caller_data): Add has_thunk field.
29881 (ipa_sra_check_caller): Check for thunk.
29882 (ipa_sra_preliminary_function_checks): Give up on function with
29883 thunks.
29884 (ipa_early_sra): Use call_for_symbol_and_aliases.
29885
29886 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
29887
29888 PR target/65249
29889 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
29890 called for __stack_chk_guard symbol.
29891
29892 2015-03-03 DJ Delorie <dj@redhat.com>
29893
29894 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
29895 inc/dec.
29896 (*addhi3_real): Likewise.
29897 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
29898 pattern to match incrementing memory.
29899 * config/rl78/predicates.md (rl78_1_2_operand): New.
29900 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
29901 it's the same and only mem.
29902 (rl78_alloc_physical_registers_op2): If there's effectively only
29903 one MEM, transcode it into HL.
29904 (rl78_far_p): Reject addresses that aren't legitimate.
29905
29906 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
29907
29908 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
29909 negating it.
29910
29911 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
29912
29913 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
29914
29915 Implement call0 ABI for xtensa
29916 * config/xtensa/constraints.md ("a" constraint): Include stack
29917 pointer in case of call0 ABI.
29918 ("q" constraint): Make empty in case of call0 ABI.
29919 ("D" constraint): Include stack pointer in case of call0 ABI.
29920 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
29921 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
29922 prototypes.
29923 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
29924 variable.
29925 (xtensa_regno_to_class): Make it a local variable in the
29926 function xtensa_regno_to_class.
29927 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
29928 macro, function prototype and implementation.
29929 (reg_nonleaf_alloc_order): Make it a local variable in the
29930 function order_regs_for_local_alloc.
29931 (xtensa_conditional_register_usage): New function.
29932 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
29933 (xtensa_valid_move): Allow direct moves to stack pointer
29934 register in call0 ABI.
29935 (xtensa_setup_frame_addresses): Only spill register windows in
29936 windowed ABI.
29937 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
29938 call0 ABI respectively.
29939 (xtensa_function_arg_1): Only mark a7 register for copying in
29940 windowed ABI.
29941 (xtensa_call_save_reg): New function.
29942 (compute_frame_size): Add space for callee saved register
29943 storage to the frame size in call0 ABI.
29944 (xtensa_expand_prologue): Generate code to set up stack frame
29945 and save callee-saved registers in call0 ABI.
29946 (xtensa_expand_epilogue): New function.
29947 (xtensa_set_return_address): New function.
29948 (xtensa_return_addr): Calculate return address in call0 ABI.
29949 (xtensa_builtin_saveregs): Only mark a7 register for copying and
29950 emit copying code in windowed ABI.
29951 (order_regs_for_local_alloc): Add preferred register allocation
29952 order for non-leaf function in call0 ABI.
29953 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
29954 (xtensa_asm_trampoline_template): Add trampoline generation for
29955 call0 ABI.
29956 (xtensa_trampoline_init): Add trampoline initialization for
29957 call0 ABI.
29958 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
29959 functions.
29960 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
29961 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
29962 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
29963 ABI call-used registers.
29964 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
29965 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
29966 call0 ABI.
29967 (REG_CLASS_CONTENTS): Include all registers into the preferred
29968 reload registers set, adjust the set in the
29969 xtensa_conditional_register_usage.
29970 (xtensa_regno_to_class): Drop variable declaration.
29971 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
29972 function.
29973 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
29974 respectively.
29975 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
29976 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
29977 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
29978 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
29979 location in call0 ABI.
29980 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
29981 stack adjustment size when handling exception.
29982 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
29983 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
29984 definitions.
29985 ("return" pattern): Generate ret.n/ret in call0 ABI.
29986 ("epilogue" pattern): Expand epilogue.
29987 ("nonlocal_goto" pattern): Use default in call0 ABI.
29988 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
29989 emit eh_set_a0_* depending on ABI.
29990 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
29991 ("eh_set_a0_call0", "blockage"): New patterns.
29992
29993 2015-03-03 Martin Liska <mliska@suse.cz>
29994
29995 PR ipa/65287
29996 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
29997
29998 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29999
30000 PR 65138/target
30001 * config/rs6000/rs6000-tables.opt: Regenerate table.
30002
30003 2015-03-03 Renlin Li <renlin.li@arm.com>
30004
30005 * doc/md.texi (@item ^): Change ? into ^.
30006
30007 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
30008
30009 * doc/tm.texi: Regenerated.
30010
30011 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
30012
30013 * builtins.c (expand_builtin_return_addr): Add
30014 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
30015 surrounding #ifdef.
30016 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
30017 definition to 1.
30018 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
30019 Likewise.
30020 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
30021 undefined.
30022 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
30023 paragraph.
30024
30025 2015-03-03 Martin Jambor <mjambor@suse.cz>
30026 Eric Botcazou <ebotcazou@adacore.com>
30027
30028 * tree-sra.c (ipa_sra_check_caller_data): New type.
30029 (has_caller_p): Removed.
30030 (ipa_sra_check_caller): New function.
30031 (ipa_sra_preliminary_function_checks): Use it.
30032
30033 2015-03-03 Martin Liska <mliska@suse.cz>
30034
30035 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
30036 instead of if branch.
30037
30038 2015-03-03 Martin Liska <mliska@suse.cz>
30039
30040 PR ipa/65282
30041 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
30042
30043 2015-03-23 Jeff Law <law@redhat.com>
30044
30045 PR tree-optimization/65241
30046 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
30047 hash table if INSERT is true.
30048
30049 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30050
30051 PR target/65296
30052 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
30053
30054 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30055
30056 PR target/64331
30057 * config/avr/avr.c (context.h, tree-pass.h): Include them.
30058 (avr_pass_data_recompute_notes): New static variable.
30059 (avr_pass_recompute_notes): New class.
30060 (avr_register_passes): New static function.
30061 (avr_option_override): Call it.
30062
30063 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30064
30065 Fix various problems with specs file generation.
30066
30067 PR target/65296
30068 * config.gcc (extra_gcc_objs) [avr]: Remove.
30069 * config/avr/driver-avr.c: Remove file.
30070 * config/avr/t-avr (driver-avr.o): Remove rule.
30071 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
30072 INCLUDES to build. Depend on TM_H.
30073 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
30074 build warnings. Fix non-matching types and non-existing %-codes.
30075 (tm.h): Include.
30076 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
30077 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
30078 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
30079 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
30080 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
30081 (LIBGCC_SPEC): Remove definitions.
30082
30083 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
30084
30085 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
30086 to create a register in testing mode.
30087
30088 2015-03-03 Martin Liska <mliska@suse.cz>
30089 Jan Hubicka <hubicka@ucw.cz>
30090
30091 PR ipa/65263
30092 * cgraph.c (cgraph_node::has_thunk_p): New function.
30093 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
30094 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
30095 (sem_function::merge): Assert is changed.
30096
30097 2015-03-03 Martin Liska <mliska@suse.cz>
30098 Martin Jambor <mjambor@suse.cz>
30099
30100 PR ipa/65087
30101 * ipa-icf.c (sem_item_optimizer::execute): Change function
30102 return value to boolean.
30103 (sem_item_optimizer::merge_classes): Likewise.
30104 (ipa_icf_driver): Return TODO_remove_functions in case there's
30105 a merge operation processed.
30106 * ipa-icf.h: Change function return value to boolean.
30107
30108 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30109
30110 PR 65138/target
30111 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
30112 processor type for 64-bit little endian PowerPC.
30113
30114 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30115 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
30116 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
30117 printing built-in mask so it does not pass NULL pointers.
30118
30119 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
30120 -mcpu=powerpc64le.
30121
30122 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
30123
30124 PR target/58158
30125 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
30126 !ISA_HAS_FP_CONDMOVE.
30127
30128 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
30129
30130 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
30131 reload_completed.
30132
30133 2015-03-02 Ulrich Drepper <drepper@gmail.com>
30134
30135 * doc/invoke.texi (Options for Code Generation Conventions):
30136 Fix URL of DSO paper.
30137
30138 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30139
30140 PR ipa/65130
30141 * ipa-inline.c (check_callers): Looks for recursion.
30142 (inline_to_all_callers): Give up on uninlinable or recursive edges.
30143 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
30144 summary of inline clones.
30145 (do_estimate_growth_1): Fix recursion check.
30146
30147 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30148
30149 PR ipa/64988
30150 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
30151 comdat groups.
30152
30153 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30154 Aldy Hernandez <aldyh@redhat.com>
30155
30156 PR lto/65276
30157 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
30158 when checking TYPE_BINFO.
30159
30160 2015-03-02 Richard Biener <rguenther@suse.de>
30161
30162 PR ipa/65270
30163 * ipa-icf-gimple.c: Include builtins.h.
30164 (func_checker::compare_memory_operand): Compare base alignment.
30165
30166 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
30167
30168 PR target/65184
30169 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
30170 passed by reference.
30171
30172 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
30173
30174 PR target/65183
30175 * tree-chkp.c (chkp_check_lower): Don't check against
30176 zero bounds for already instrumented functions.
30177 (chkp_check_upper): Likewise.
30178 (chkp_fini): Clean pass local data to avoid wrong reusage.
30179
30180 2015-02-28 Martin Liska <mliska@suse.cz>
30181 Jan Hubicka <hubicka@ucw.cz>
30182
30183 * ipa-icf.c (sem_variable::equals): Improve debug output;
30184 get variable constructor.
30185 (sem_variable::parse): Do not filter out too early; give up on
30186 volatile and register vars.
30187 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
30188 variables.
30189 * ipa-icf.h (sem_variable::init): Do not set ctor.
30190 (sem_variable::ctor): Remove.
30191
30192 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
30193
30194 PR middle-end/65233
30195 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
30196
30197 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30198
30199 * ipa-icf.c: Include stor-layout.h
30200 (sem_function::compare_cgraph_references): Rename to ...
30201 (sem_item::compare_cgraph_references): ... this one.
30202 (sem_variable::equals_wpa): New function
30203 (sem_variable::equals): Do not check stuff already verified by
30204 equals_wpa.
30205 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
30206 * ipa-icf.h (sem_item): Add compare_cgraph_references.
30207 (sem_function): Remove compare_cgraph_references.
30208 (sem_variable): Turns equals_wpa into non-inline.
30209
30210 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30211
30212 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
30213 (sem_item::add_expr): New function.
30214 (sem_function::hash_stmt): Handle operands of most statements.
30215 (sem_variable::get_hash): Hash the actual constructor.
30216 * ipa-icf.h (sem_item): Add add_expr.
30217 (sem_function): Update prototype of hash_stmt
30218
30219 2015-02-28 Martin Liska <mliska@suse.cz>
30220 Jan Hubicka <hubicka@ucw.cz>
30221
30222 PR ipa/65245
30223 * ipa-icf-gimple.c (func_checker::compare_function_decl):
30224 Remove.
30225 (func_checker::compare_variable_decl): Skip symtab vars.
30226 (func_checker::compare_cst_or_decl): Update.
30227 * ipa-icf.c (sem_function::parse): Do not consider aliases.
30228 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
30229 use correct symtab predicates.
30230 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
30231 (sem_variable::parse): Update comment.
30232 (sem_item_optimizer::build_graph): Consider ultimate aliases
30233 for references.
30234
30235 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30236
30237 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
30238 of OBJ_TYPE_REF.
30239
30240 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30241
30242 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
30243 (sem_variable::merge) Likewise.
30244
30245 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30246
30247 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
30248 target; also match flag_ipa_devirt.
30249
30250 2015-03-01 Martin Liska <mliska@suse.cz>
30251 Jan Hubicka <hubicka@ucw.cz>
30252
30253 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
30254 Validate variable alignment.
30255 * ipa-icf.c (sem_function::equals_private): Be more precise
30256 about non-common function attributes.
30257 (sem_variable::equals): Likewise.
30258
30259 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30260
30261 PR ipa/65237
30262 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
30263 across COMDAT group boundary.
30264
30265 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30266
30267 PR ipa/65232
30268 * ipa-icf.c (clear_decl_rtl): New function.
30269 (sem_function::merge): Clear RTL before forming alias.
30270 (sem_variable::merge): Clear RTL before forming alias.
30271
30272 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30273
30274 PR ipa/65236
30275 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
30276
30277 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
30278
30279 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
30280 to neon_to_gp<q>.
30281
30282 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30283
30284 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
30285 a typo in the description.
30286
30287 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30288
30289 PR target/64317
30290 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30291 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30292 * lra-constraints.c: Include "params.h".
30293 (EBB_PROBABILITY_CUTOFF): Use
30294 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
30295 (lra_inheritance): Use '<' instead of '<=' for
30296 EBB_PROBABILITY_CUTOFF.
30297 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
30298 Document change.
30299
30300 2015-02-27 Martin Liska <mliska@suse.cz>
30301
30302 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
30303 vector length condition.
30304
30305 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
30306
30307 * doc/extend.texi (x86 transactional memory intrinsics):
30308 Reorganize discussion of _xbegin. Clarify that the return
30309 value is a bit mask. Expand example and move to end of section.
30310
30311 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30312 Aldy Hernandez <aldyh@redhat.com>
30313
30314 PR rtl-optimization/65220
30315 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
30316
30317 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30318
30319 PR target/65032
30320 * lra-remat.c (update_scratch_ops): New.
30321 (do_remat): Call it.
30322 * lra.c (lra_register_new_scratch_op): New. Take code from ...
30323 (remove_scratches): ... here.
30324 * lra-int.h (lra_register_new_scratch_op): New prototype.
30325
30326 2015-02-27 Marek Polacek <polacek@redhat.com>
30327
30328 PR c/65040
30329 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
30330 -Wformat-signedness anymore.
30331
30332 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30333
30334 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
30335 function.
30336 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
30337
30338 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30339
30340 * config/s390/s390.c (enum s390_builtin):
30341 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
30342 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
30343 (s390_init_builtins): Generate new builtin functions.
30344 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
30345 (s390_sfpc, s390_efpc): New pattern definitions.
30346
30347 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30348
30349 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
30350 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
30351 (s390_builtin_decls): New array.
30352 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
30353 (s390_builtin_decl): New function.
30354 (TARGET_BUILTIN_DECL): Define macro.
30355
30356 2015-02-27 Richard Biener <rguenther@suse.de>
30357
30358 PR middle-end/63175
30359 * builtins.c (get_object_alignment_2): Make sure to re-apply
30360 the ANDed mask after recursing to its operand gets us a new
30361 misalignment bit position.
30362
30363 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
30364 Martin Liska <mliska@suse.cz>
30365
30366 PR bootstrap/65150
30367 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
30368 Use address_matters_p.
30369 (redirect_all_callers, set_addressable): New functions.
30370 (sem_function::merge): Reorganize and fix merging issues.
30371 (sem_variable::merge): Likewise.
30372 (sem_variable::compare_sections): Remove.
30373 * common.opt (fmerge-all-constants, fmerge-constants): Remove
30374 Optimization flag.
30375 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
30376 redirect them.
30377 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
30378 decl is used.
30379 (address_matters_1): New function.
30380 (symtab_node::address_matters_p): New function.
30381 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
30382 check for merged flag.
30383 * cgraph.h (address_matters_p): Declare.
30384 (symtab_node::address_taken_from_non_vtable_p): Remove.
30385 (symtab_node::address_can_be_compared_p): New method.
30386 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
30387 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
30388 Remove.
30389 (comdat_can_be_unshared_p_1) Use address_matters_p.
30390 (update_vtable_references): Fix formating.
30391 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
30392 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
30393 * cgraphclones.c: Preserve merged and icf_merged flags.
30394
30395 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
30396
30397 * doc/extend.texi (Function Attributes): Fix spelling and typos.
30398 (Label Attributes): Likewise.
30399 (Cilk Plus Builtins): Likewise.
30400 (ARC SIMD Built-in Functions): Likewise.
30401 (ARM C Language Extensions (ACLE)): Likewise.
30402 (PowerPC Built-in Functions): Likewise.
30403 (PowerPC Hardware Transactional Memory Built-in Functions):
30404 Likewise.
30405
30406 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30407
30408 PR tree-optimization/65216
30409 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
30410 new stmt and new SSA_NAME for lhs whenever the arguments have
30411 changed and weren't just swapped. Fix comment typo.
30412
30413 PR tree-optimization/65215
30414 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
30415 for PDP endian targets.
30416 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
30417 Fix up formatting issues.
30418 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
30419 size is smaller than the original, adjust MEM_REF offset by the
30420 difference of sizes. Use is_gimple_mem_ref_addr instead of
30421 is_gimple_min_invariant test to avoid adding address temporaries.
30422
30423 2015-02-26 Martin Liska <mliska@suse.cz>
30424 Jan Hubicka <hubicka@ucw.cz>
30425
30426 PR ipa/64693
30427 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
30428 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
30429 (sem_item_optimizer::process_cong_reduction): Include division by
30430 sensitive references.
30431 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
30432 * ipa-ref.c (ipa_ref::address_matters_p): New function.
30433 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
30434
30435 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
30436
30437 PR target/65192
30438 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
30439 Remove.
30440 * config/avr/avr.c: Same.
30441 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
30442 Refuse any constant address not in 0..0xbf.
30443 * config/avr/avr.md (*mov<mode>, *movsf): Remove
30444 tiny_valid_direct_memory_access_range from insn conditions.
30445 (mov<mode>): Don't special-case expansion of avrtiny addresses.
30446
30447 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
30448
30449 PR target/61142
30450 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
30451 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
30452 * config/sh/predicates.md (const_logical_operand): New predicate.
30453 * config/sh/sh.md: Add new peephole2 patterns.
30454
30455 2015-02-26 Marek Polacek <polacek@redhat.com>
30456
30457 PR ipa/65008
30458 * ipa-inline.c (early_inliner): Recompute inline parameters.
30459
30460 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30461
30462 PR target/65171
30463 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
30464 instructions with TImode operands are included in the analysis.
30465
30466 2015-02-26 Sebastian Pop <s.pop@samsung.com>
30467
30468 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
30469 of an EDGE_FSM_THREAD.
30470
30471 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
30472
30473 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
30474
30475 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
30476
30477 PR debug/46102
30478 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
30479
30480 2015-02-26 Sebastian Pop <s.pop@samsung.com>
30481
30482 PR tree-optimization/65048
30483 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
30484 (thread_through_all_blocks): Call valid_jump_thread_path.
30485 Remove invalid FSM jump-thread paths.
30486
30487 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30488
30489 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
30490 (ipa_write_optimization_summaries): Likewise.
30491 * tree-streamer.h: Include data-streamer.h.
30492 (streamer_mode_table): Declare extern variable.
30493 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
30494 * lto-streamer-out.c (lto_output_init_mode_table,
30495 lto_write_mode_table): New functions.
30496 (produce_asm_for_decls): Call lto_write_mode_table when streaming
30497 offloading LTO.
30498 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
30499 (lto_create_simple_input_block): Add mode_table argument to the
30500 lto_input_block constructors.
30501 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
30502 Likewise.
30503 * data-streamer-in.c (string_for_index): Likewise.
30504 * ipa-inline-analysis.c (inline_read_section): Likewise.
30505 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
30506 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
30507 * lto-streamer-in.c (lto_read_body_or_constructor,
30508 lto_input_toplevel_asms): Likewise.
30509 (lto_input_mode_table): New function.
30510 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
30511 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
30512 Use bp_pack_machine_mode.
30513 * real.h (struct real_format): Add name field.
30514 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
30515 (class lto_input_block): Add mode_table member.
30516 (lto_input_block::lto_input_block): Add mode_table_ argument,
30517 initialize mode_table.
30518 (struct lto_file_decl_data): Add mode_table field.
30519 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
30520 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
30521 unpack_ts_decl_common_value_fields,
30522 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
30523 * tree-streamer.c (streamer_mode_table): New variable.
30524 * real.c (ieee_single_format, mips_single_format,
30525 motorola_single_format, spu_single_format, ieee_double_format,
30526 mips_double_format, motorola_double_format,
30527 ieee_extended_motorola_format, ieee_extended_intel_96_format,
30528 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
30529 ibm_extended_format, mips_extended_format, ieee_quad_format,
30530 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
30531 decimal_single_format, decimal_double_format, decimal_quad_format,
30532 ieee_half_format, arm_half_format, real_internal_format): Add name
30533 field.
30534 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
30535
30536 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
30537
30538 PR target/65161
30539 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
30540 reordering for selective scheduling.
30541
30542 2015-02-26 Terry Guo <terry.guo@arm.com>
30543
30544 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
30545 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
30546 (arm_arch_no_volatile_ce): Declare new global variable.
30547 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
30548 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
30549 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
30550 (TARGET_NO_VOLATILE_CE): New macro.
30551 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
30552 volatile memory access in IT block
30553
30554 2015-02-25 Kai Tietz <ktietz@redhat.com>
30555
30556 PR tree-optimization/61917
30557 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
30558 that reduc_def_stmt is null.
30559
30560 2015-02-25 Martin Liska <mliska@suse.cz>
30561
30562 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
30563 hard register variables.
30564
30565 2015-02-25 Kai Tietz <ktietz@redhat.com>
30566
30567 PR target/64212
30568 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
30569 (symtab::noninterposable_alias): Likewise.
30570
30571 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
30572
30573 PR target/65167
30574 * config/i386/i386.c (ix86_function_arg_regno_p): Support
30575 bounds registers.
30576 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
30577
30578 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
30579
30580 PR target/64997
30581 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
30582 as split condition; force split via '#' in output pattern.
30583
30584 2015-02-25 Richard Biener <rguenther@suse.de>
30585 Kai Tietz <ktietz@redhat.com>
30586
30587 PR tree-optimization/61917
30588 * tree-vect-loop.c (vectorizable_reduction): Allow
30589 vect_internal_def without reduction to exit graceful.
30590
30591 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
30592
30593 PR target/65196
30594 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
30595 only with NONDEBUG_INSN_P.
30596
30597 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
30598
30599 Use variadic macros with avr-log.c.
30600
30601 * config/avr/avr-protos.h (avr_vdump): New prototype.
30602 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
30603 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
30604 * config/avr/avr-log.c: Adjust comments.
30605 (avr_vdump): New function.
30606 (avr_vadump): Pass caller as 2nd argument instead of format string.
30607 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
30608 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
30609
30610 2015-02-25 Jakub Jelinek <jakub@redhat.com>
30611
30612 PR lto/64374
30613 * target.def (target_option_stream_in): New target hook.
30614 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
30615 targetm.target_option.post_stream_in if non-NULL.
30616 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
30617 * doc/tm.texi: Updated.
30618 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
30619 function.
30620 (TARGET_OPTION_POST_STREAM_IN): Redefine.
30621
30622 2015-02-24 Jeff Law <law@redhat.com>
30623
30624 PR target/65117
30625 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
30626 of operand 0 and operand 2.
30627 (zero_cost_loop_end, loop_end): Similarly.
30628
30629 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
30630
30631 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
30632 CXX_MEM_STAT_INFO.
30633
30634 2015-02-24 DJ Delorie <dj@redhat.com>
30635
30636 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
30637 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
30638 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
30639 instead of hardcoding SImode.
30640
30641 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
30642
30643 * omp-low.c (create_omp_child_function): Tag entrypoint
30644 functions with a special attribute.
30645
30646 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30647
30648 PR target/65058
30649 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
30650
30651 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
30652
30653 PR rtl-optimization/65123
30654 * lra-remat.c (operand_to_remat): Check hard regs in insn
30655 definition too.
30656
30657 2015-02-24 Nick Clifton <nickc@redhat.com>
30658
30659 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
30660 to the assembler.
30661
30662 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
30663
30664 PR libgomp/64625
30665 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
30666 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
30667 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
30668 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
30669 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
30670 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
30671 (BUILT_IN_GOACC_PARALLEL): Specify as
30672 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
30673 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
30674 * builtin-types.def
30675 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30676 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30677 Remove function types.
30678 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
30679 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30680 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30681 New function types.
30682
30683 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
30684
30685 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
30686
30687 2015-02-24 Jakub Jelinek <jakub@redhat.com>
30688
30689 PR tree-optimization/65170
30690 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
30691 if val[1] < 0, clear also val[2] and return 3.
30692
30693 2015-02-24 Alan Modra <amodra@gmail.com>
30694
30695 PR target/65172
30696 * config/rs6000/rs6000.c (get_memref_parts): Only return true
30697 when *base is a reg. Handle nested plus addresses. Simplify
30698 pre_modify test.
30699
30700 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
30701
30702 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
30703 use natural alignment when optimizing for size.
30704
30705 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
30706
30707 PR target/65153
30708 * config/sh/sh.md (movsicc_true+3): Remove peephole.
30709 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
30710 * config/sh/sh.c (replace_n_hard_rtx): Remove.
30711
30712 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
30713
30714 PR fortran/63427
30715 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
30716 too big for a wide_int. Implement missing wrapping operation.
30717
30718 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
30719
30720 PR target/65163
30721 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
30722 instead of const_int 4294901760.
30723
30724 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
30725
30726 * config/avr/t-avr: Fix typo in comment.
30727
30728 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
30729
30730 * doc/rtl.texi (fma): Clarify documentation.
30731
30732 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
30733
30734 PR debug/58123
30735 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
30736 over input_location.
30737
30738 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30739
30740 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
30741 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
30742 restrict alignments to absolute_biggest_alignment.
30743 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
30744 Define.
30745 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
30746 * doc/tm.texi: Regenerate.
30747 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
30748
30749 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
30750
30751 PR target/64172
30752 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
30753
30754 2015-02-20 Richard Biener <rguenther@suse.de>
30755
30756 PR tree-optimization/65136
30757 * tree-ssa-propagate.c: Include cfgloop.h.
30758 (replace_phi_args_in): Avoid replacing loop latch edge PHI
30759 arguments with constants.
30760
30761 2015-02-20 Jakub Jelinek <jakub@redhat.com>
30762 Martin Liska <mliska@suse.cz>
30763
30764 PR target/63892
30765 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
30766 don't try to create_thunk if stdarg_p. If
30767 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
30768 redirect_callers if possible.
30769 (sem_item_optimizer::execute): Call unregister_hooks here...
30770 (ipa_icf_driver): ... instead of here.
30771
30772 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30773
30774 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
30775 Mark operand 0 as earlyclobber in 2nd alternative.
30776 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
30777 Write negated shift amount into QI lowpart operand 0 and use it
30778 in the shift step.
30779 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
30780
30781 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30782
30783 * cgraph.h (clone_function_name_1): Declare.
30784 * cgraphclones.c (clone_function_name_1): New function.
30785 (clone_function_name): Use it.
30786 * lto-partition.c: Include "stringpool.h".
30787 (must_not_rename, maybe_rewrite_identifier)
30788 (validize_symbol_for_target): New static functions.
30789 (privatize_symbol_name): Use must_not_rename.
30790 (promote_symbol): Call validize_symbol_for_target.
30791 (lto_promote_cross_file_statics): Likewise.
30792 (lto_promote_statics_nonwpa): Likewise.
30793
30794 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
30795
30796 PR target/64452
30797 * config/avr/avr.md (pushhi_insn): New insn.
30798 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
30799
30800 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30801 Jakub Jelinek <jakub@redhat.com>
30802
30803 * tree-streamer.c (preload_common_nodes): Don't preload
30804 TI_VA_LIST* for offloading.
30805 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
30806 in_lto_p.
30807
30808 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
30809
30810 * config/pa/pa.c (pa_emit_move_sequence): Always force
30811 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
30812 note on insn.
30813
30814 * config/pa/pa.c (pa_reloc_rw_mask): New function.
30815 (TARGET_ASM_RELOC_RW_MASK): Define.
30816 (pa_cannot_force_const_mem): Revert previous change.
30817
30818 2015-02-19 Martin Jambor <mjmabor@suse.cz>
30819 Jan Hubicka <hubicka@ucw.cz>
30820
30821 PR ipa/65028
30822 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
30823 across jump functions.
30824
30825 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
30826
30827 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
30828
30829 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
30830
30831 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
30832
30833 2015-02-19 Richard Henderson <rth@redhat.com>
30834
30835 PR middle-end/65074
30836 * varasm.c (default_binds_local_p_2): Don't test node->definition;
30837 test DECL_EXTERNAL independent of symtab_node.
30838
30839 2015-02-19 Jakub Jelinek <jakub@redhat.com>
30840
30841 PR lto/65012
30842 * varpool.c (varpool_node::get_constructor): Return early
30843 if this->lto_file_data is NULL.
30844
30845 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30846
30847 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
30848 (rank_for_schedule_debug): Update.
30849 (ready_sort): Make static. Move sorting logic to ...
30850 (ready_sort_debug, ready_sort_real): New static functions.
30851 (schedule_block): Sort both debug insns and real insns in preparation
30852 for ready list trimming. Improve debug output.
30853 * sched-int.h (ready_sort): Remove global declaration.
30854
30855 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
30856
30857 * ipa-icf.c (sem_function::equals_private): Adjust.
30858 (sem_function::bb_dict_test): Take a vec<int> * instead of
30859 auto_vec<int>.
30860 * ipa-icf.h (bb_dict_test): Likewise.
30861
30862 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30863
30864 PR gcov-profile/64634
30865 * tree-eh.c (frob_into_branch_around): Fix up typos
30866 in function comment.
30867 (lower_catch): Put eh_seq resulting from EH lowering of
30868 the cleanup sequence after the cleanup rather than before it.
30869
30870 2015-02-18 Tom de Vries <tom@codesourcery.com>
30871
30872 * common.opt (fstdarg-opt): New option.
30873 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
30874 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
30875 (@item -fstdarg-opt): New item.
30876
30877 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
30878
30879 PR target/65064
30880 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
30881 for common symbols.
30882
30883 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30884
30885 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
30886 insn-modes.h.
30887 (ALL_HOST_OBJS): Add mkoffload.o.
30888 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
30889
30890 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
30891
30892 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
30893 (compare_virtual_tables): Be smarter about skipping typeinfos;
30894 do sane output on virtual table table mismatch.
30895 (warn_odr): Be ready for forward declarations of enums;
30896 output sane info on base mismatch and virtual table mismatch.
30897 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
30898 when only one type is polymorphic.
30899 (get_odr_type): Fix hashtable corruption.
30900 (dump_odr_type): Dump mangled names.
30901
30902 2015-02-18 Richard Biener <rguenther@suse.de>
30903
30904 PR tree-optimization/65063
30905 * tree-predcom.c (determine_unroll_factor): Return 1 if we
30906 have replaced looparound PHIs.
30907
30908 2015-02-18 Martin Liska <mliska@suse.cz>
30909
30910 * lto-streamer.c (lto_streamer_init): Encapsulate
30911 streamer_check_handled_ts_structures with checking macro.
30912
30913 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30914
30915 PR ipa/65087
30916 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
30917 section if !implicit_section.
30918 (cgraph_node::create_version_clone_with_body): Likewise.
30919 * trans-mem.c (ipa_tm_create_version): Likewise.
30920
30921 2015-02-18 Richard Biener <rguenther@suse.de>
30922
30923 PR tree-optimization/62217
30924 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
30925 into BIVs.
30926
30927 2015-02-18 Marek Polacek <polacek@redhat.com>
30928
30929 PR sanitizer/65081
30930 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
30931 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
30932 is in range [-16K, -1]. Don't issue run-time error if
30933 (ptr > ptr + offset).
30934
30935 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
30936
30937 * doc/install.texi (nvptx-*-none): New section.
30938 * doc/invoke.texi (Nvidia PTX Options): Likewise.
30939 * config/nvptx/nvptx.opt: Update.
30940
30941 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
30942 (access_check): New functions, copied from
30943 config/i386/intelmic-mkoffload.c.
30944 (main): For non-installed testing, look in all COMPILER_PATHs for
30945 GCC_INSTALL_NAME.
30946
30947 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
30948
30949 2015-02-18 Andrew Pinski <apinski@cavium.com>
30950 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30951
30952 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
30953 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
30954
30955 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
30956
30957 * ipa-visibility.c (function_and_variable_visibility): Only
30958 check locality if node is not already local.
30959 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30960 call_for_symbol_and_aliases instead of
30961 call_for_symbol_thunks_and_aliases.
30962 (ipa_inline): Likewise.
30963 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30964 first walk aliases.
30965 * ipa.c (symbol_table::remove_unreachable_nodes): Use
30966 call_for_symbol_and_aliases.
30967 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30968 (ipa_propagate_frequency_1): Use it; use opt_for_fn
30969 (ipa_propagate_frequency): Update.
30970 (ipa_profile): Add opt_for_fn gueards.
30971
30972 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
30973
30974 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
30975 * doc/invoke.texi (SH options): Document it.
30976 * config/sh/sh.c (sh_insn_length_adjustment): Check
30977 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
30978
30979 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
30980
30981 * common.opt (fipa-cp-alignment): New.
30982 * ipa-cp.c (ipcp_store_alignment_results): Check
30983 flag_ipa_cp_alignment.
30984 * opts.c (default_options_table): Enable -fipa-cp-alignment for
30985 -O2.
30986 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
30987 * doc/invoke.texi: Document -fipa-cp-alignment.
30988
30989 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
30990
30991 PR target/64793
30992 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
30993 to nil. Adjust comments.
30994
30995 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
30996
30997 * ipa-visibility.c (function_and_variable_visibility): Only
30998 check locality if node is not already local.
30999 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
31000 call_for_symbol_and_aliases instead of
31001 call_for_symbol_thunks_and_aliases.
31002 (ipa_inline): Likewise.
31003 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
31004 first walk aliases.
31005 * ipa.c (symbol_table::remove_unreachable_nodes): Use
31006 call_for_symbol_and_aliases.
31007 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
31008 (ipa_propagate_frequency_1): Use it; use opt_for_fn
31009 (ipa_propagate_frequency): Update.
31010 (ipa_profile): Add opt_for_fn guards.
31011
31012 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
31013
31014 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
31015 skipping of "strange" tokens.
31016
31017 2015-02-17 Jeff Law <law@redhat.com>
31018
31019 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
31020 obsolete comment.
31021
31022 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
31023
31024 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
31025 as forcing a HARD_DEP between instructions, thereby
31026 disallowing rewriting to break dependencies.
31027
31028 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
31029
31030 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
31031 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
31032 variables in boundary that have no inlitalizer encoded and are
31033 not aliases.
31034 * varasm.c (default_binds_local_p_2): External definitions do not
31035 count as definitions here.
31036
31037 2015-02-16 Jeff Law <law@redhat.com>
31038
31039 PR tree-optimization/64823
31040 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
31041 statements.
31042 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31043 threading through blocks with PHIs, but no statements.
31044 (thread_through_normal_block): Distinguish between blocks where
31045 we did not process all the statements and blocks with no statements.
31046
31047 2015-02-16 Jakub Jelinek <jakub@redhat.com>
31048 James Greenhalgh <james.greenhalgh@arm.com>
31049
31050 PR ipa/64963
31051 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
31052 section if not linkonce. Fix up formatting.
31053 (cgraph_node::create_version_clone_with_body): Copy section.
31054 * trans-mem.c (ipa_tm_create_version): Likewise.
31055
31056 2015-02-16 Richard Biener <rguenther@suse.de>
31057
31058 PR tree-optimization/65077
31059 * tree-ssa-structalias.c (get_constraint_for_1): Handle
31060 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
31061 (find_func_aliases): Allow float values to carry pointers again.
31062
31063 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31064
31065 * doc/install.texi (Specific): Reorder targets list to put
31066 aarch64 in alphabetical order. Add a link to aarch64*-*-*
31067 from the top menu.
31068
31069 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
31070 David Edelsohn <dje.gcc@gmail.com>
31071
31072 PR target/65058
31073 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
31074 mapping class to external variable or function reference.
31075 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
31076 mapping class.
31077
31078 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
31079
31080 PR target/53348
31081 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
31082 ASM_WEAKEN_DECL if defined.
31083
31084 2015-02-16 Richard Biener <rguenther@suse.de>
31085
31086 PR lto/65015
31087 * varasm.c (default_file_start): For LTO produced units
31088 emit <artificial> as file directive.
31089
31090 2015-02-16 Richard Biener <rguenther@suse.de>
31091
31092 PR tree-optimization/63593
31093 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
31094 stmts and releasing SSA names until...
31095 (execute_pred_commoning): ... after processing all chains.
31096
31097 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
31098
31099 PR ipa/65059
31100 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
31101 external functions.
31102
31103 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
31104
31105 * doc/bugreport.texi: Adjust section titles throughout the file
31106 to use "Title Case".
31107 * doc/extend.texi: Likewise.
31108 * doc/gcov.texi: Likewise.
31109 * doc/implement-c.texi: Likewise.
31110 * doc/implement-cxx.texi: Likewise.
31111 * doc/invoke.texi: Likewise.
31112 * doc/objc.texi: Likewise.
31113 * doc/standards.texi: Likewise.
31114 * doc/trouble.texi: Likewise.
31115
31116 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
31117
31118 * cgraph.h (symtab_node::has_aliases_p): Simplify.
31119 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
31120 * tree.c (lookup_binfo_at_offset): Make static.
31121 (get_binfo_at_offset): Do not shadow offset; add explanatory
31122 comment.
31123
31124 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
31125
31126 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
31127 for all floading point loads and stores except those using a register
31128 index address.
31129 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
31130 to a register.
31131
31132 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
31133
31134 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
31135 (do_estimate_growth_1): Record if any uninlinable edge was seen.
31136 (estimate_growth): Handle uninlinable edges correctly.
31137 (check_callers): New.
31138 (growth_likely_positive): Handle aliases correctly.
31139
31140 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
31141
31142 * ipa-chkp.c: Use iterate_direct_aliases.
31143 * symtab.c (resolution_used_from_other_file_p): Move inline.
31144 (symtab_node::create_reference): Fix formating.
31145 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31146 (symtab_node::iterate_reference): Move inline.
31147 (symtab_node::iterate_referring): Move inline.
31148 (symtab_node::iterate_direct_aliases): Move inline.
31149 (symtab_node::used_from_object_file_p_worker): Inline into ...
31150 (symtab_node::used_from_object_file_p): ... this one; move inline.
31151 (symtab_node::call_for_symbol_and_aliases): Move inline;
31152 use iterate_direct_aliases.
31153 (symtab_node::call_for_symbol_and_aliases_1): New method.
31154 (cgraph_node::call_for_symbol_and_aliases): Move inline;
31155 use iterate_direct_aliases.
31156 (cgraph_node::call_for_symbol_and_aliases_1): New method.
31157 (varpool_node::call_for_node_and_aliases): Rename to ...
31158 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
31159 use iterate_direct_aliases.
31160 (varpool_node::call_for_symbol_and_aliases_1): New method.
31161 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
31162 (ipa_discover_readonly_nonaddressable_var): Update.
31163 * ipa-devirt.c: Fix formating.
31164 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
31165 Move inline.
31166 (cgraph_node::call_for_symbol_and_aliases): Move inline.
31167 (cgraph_node::call_for_symbol_and_aliases_1): New function..
31168 * cgraph.h (used_from_object_file_p_worker): Remove.
31169 (resolution_used_from_other_file_p): Move inline.
31170 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31171 (symtab_node::iterate_reference): Move inline.
31172 (symtab_node::iterate_referring): Move inline.
31173 (symtab_node::iterate_direct_aliases): Move inline.
31174 (symtab_node::used_from_object_file_p_worker): Inline into ...
31175 (symtab_node::used_from_object_file_p): Move inline.
31176 * tree-emutls.c (ipa_lower_emutls): Update.
31177 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
31178 (varpool_node::call_for_node_and_aliases): Remove.
31179
31180 2015-02-14 Jakub Jelinek <jakub@redhat.com>
31181
31182 PR tree-optimization/62209
31183 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
31184 op == range->exp, insert seq and gimplified code after labels
31185 instead of after the phi.
31186
31187 2015-02-13 Jeff Law <law@redhat.com>
31188
31189 PR bootstrap/65060
31190 Revert my change for tree-optimization/64823.
31191
31192 2015-02-13 Jakub Jelinek <jakub@redhat.com>
31193
31194 PR tree-optimization/65053
31195 * tree-ssa-phiopt.c (value_replacement): When moving assign before
31196 cond, either reset VR on lhs or set it to phi result VR.
31197
31198 2015-02-13 Jeff Law <law@redhat.com>
31199
31200 PR tree-optimization/64823
31201 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
31202 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31203 threading through blocks with PHIs, but no statements.
31204 (thread_through_normal_block): Distinguish between blocks where
31205 we did not process all the statements and blocks with no statements.
31206
31207 PR rtl-optimization/47477
31208 * match.pd (convert (plus/minus (convert @0) (convert @1): New
31209 simplifier to narrow arithmetic.
31210
31211 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
31212
31213 PR ipa/65028
31214 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
31215 polymorphic call info when type is not known to be preserved.
31216
31217 2015-02-13 Maritn Jambor <mjambor@suse.cz>
31218
31219 PR ipa/65028
31220 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
31221 (inline_call): Use it.
31222
31223 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
31224
31225 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
31226 GOMP_DEVICE_NVIDIA_PTX.
31227
31228 2015-02-13 Jakub Jelinek <jakub@redhat.com>
31229
31230 PR ipa/65034
31231 * stmt.c (emit_case_nodes): Use void_type_node instead of
31232 NULL_TREE as LABEL_DECL type.
31233
31234 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
31235
31236 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
31237 constraints.
31238 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
31239 symbolic references to data to be forced to constant memory on the
31240 SOM target.
31241
31242 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
31243
31244 PR tree-optimization/65002
31245 * tree-cfg.c (pass_data_fixup_cfg): Don't update
31246 SSA on start.
31247 * tree-sra.c (some_callers_have_no_vuse_p): New.
31248 (ipa_early_sra): Reject functions whose callers
31249 assume function is read only.
31250
31251 2015-02-13 Richard Biener <rguenther@suse.de>
31252
31253 PR lto/65015
31254 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
31255 for LTO produced CUs.
31256
31257 2015-02-13 Bin Cheng <bin.cheng@arm.com>
31258
31259 PR tree-optimization/64705
31260 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
31261 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
31262 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
31263 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
31264 expand_simple_operations.
31265
31266 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
31267 Richard Henderson <rth@redhat.com>
31268
31269 PR rtl/32219
31270 * cgraphunit.c (cgraph_node::finalize_function): Set definition
31271 before notice_global_symbol.
31272 (varpool_node::finalize_decl): Likewise.
31273 * varasm.c (default_binds_local_p_2): Rename from
31274 default_binds_local_p_1, add weak_dominate argument. Use direct
31275 returns instead of assigning to local variable. Unify varpool and
31276 cgraph paths via symtab_node. Reject undef weak variables before
31277 testing visibility. Reorder tests for simplicity.
31278 (default_binds_local_p): Use default_binds_local_p_2.
31279 (default_binds_local_p_1): Likewise.
31280 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
31281 via symtab_node.
31282 (default_elf_asm_output_external): Emit visibility when specified.
31283
31284 2015-02-13 Alan Modra <amodra@gmail.com>
31285
31286 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
31287 code setting up r11 for out-of-line fp restore.
31288
31289 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
31290
31291 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
31292 (muser-mode): Likewise.
31293
31294 2015-02-13 Alan Modra <amodra@gmail.com>
31295
31296 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
31297 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
31298
31299 2015-02-12 David Howells <dhowells@redhat.com>
31300
31301 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
31302 warning.
31303 * tree-ssa-uninit.c (dump_predicates): Likewise.
31304 * opts.c (print_filtered_help): Likewise.
31305
31306 2015-02-12 Jakub Jelinek <jakub@redhat.com>
31307
31308 * dwarf2out.c (output_die): Use "%s", name instead of name to
31309 avoid -Wformat-security warning.
31310
31311 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
31312 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31313 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
31314 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31315
31316 2015-02-12 Jason Merrill <jason@redhat.com>
31317
31318 * common.opt (-flifetime-dse): New.
31319
31320 2015-02-12 Jakub Jelinek <jakub@redhat.com>
31321
31322 PR sanitizer/65019
31323 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
31324
31325 PR tree-optimization/65014
31326 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
31327 use original second operand of arg0 or arg1 instead of
31328 that adjusted by STRIP_NOPS.
31329
31330 2015-02-11 Jeff Law <law@redhat.com>
31331
31332 PR target/63347
31333 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
31334 that needs to be queued, just queue it for a single cycle.
31335
31336 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
31337
31338 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
31339 bodies of thunks; comment on why.
31340 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
31341 symbols are extern.
31342
31343 2015-02-11 Richard Henderson <rth@redhat.com>
31344
31345 PR sanitize/65000
31346 * tree-eh.c (mark_reachable_handlers): Mark source and destination
31347 regions of __builtin_eh_copy_values.
31348
31349 2015-02-11 Jakub Jelinek <jakub@redhat.com>
31350
31351 PR middle-end/65003
31352 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
31353 ultimate alias is MEM with SYMBOL_REF satisfying
31354 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
31355 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
31356
31357 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
31358
31359 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
31360 "diagnostic-core.h".
31361 (main): Initialize progname, and call diagnostic_initialize.
31362
31363 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
31364 instead of __OPENMP_TARGET__.
31365
31366 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
31367 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
31368 hard-coding PTX_ID.
31369
31370 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
31371
31372 * doc/sourcebuild.texi (pie_enabled): Document.
31373
31374 2015-02-11 Martin Liska <mliska@suse.cz>
31375
31376 PR ipa/64813
31377 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
31378 a return value for call to a function that is noreturn.
31379
31380 2015-02-11 Richard Biener <rguenther@suse.de>
31381
31382 PR lto/65015
31383 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
31384 and -fresolution.
31385
31386 2015-02-11 Andrew Pinski <apinski@cavium.com>
31387
31388 PR target/64893
31389 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
31390 Change the first argument type to size_type_node and add another
31391 size_type_node.
31392 (aarch64_simd_expand_builtin): Handle the new argument to
31393 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
31394 print an out when the first two arguments are not
31395 nonzero integer constants.
31396 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
31397 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
31398
31399 2015-02-11 Jakub Jelinek <jakub@redhat.com>
31400
31401 PR target/61925
31402 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
31403 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
31404 (ix86_set_current_function): Rewritten.
31405 (ix86_add_new_builtins): Temporarily clear current_target_pragma
31406 when creating builtin fndecls.
31407
31408 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31409
31410 PR ipa/65005
31411 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
31412 function.
31413 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
31414 have no comdat group.
31415 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
31416 (lto_output_varpool_node): Always output alias info.
31417 (output_refs): Output refs of boundary aliases, too.
31418 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
31419 (output_symtab): Output call eges in thunks in boundary.
31420 (get_alias_symbol): Remove.
31421 (input_node, input_varpool_node): Do not special case weakrefs.
31422 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
31423 alias and thunks targets in the boundary; do not take removed symbols
31424 from their comdat groups.
31425 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
31426 (cgraph_node::global_info): Remove.
31427 (cgraph_node::rtl_info): Look through aliases and thunks.
31428 * cgrpah.h (global_info): Remove.
31429 (non_local_p): Remove.
31430
31431 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31432 Sandra Loosemore <sandra@codesourcery.com>
31433
31434 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
31435 to inline asm. List dialects in proper order.
31436
31437 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31438 Sandra Loosemore <sandra@codesourcery.com>
31439
31440 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
31441
31442 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31443
31444 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
31445 modified) reference to Solaris.
31446
31447 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
31448
31449 * doc/extend.texi (Extended Asm): Fix typos.
31450
31451 2015-02-10 Jakub Jelinek <jakub@redhat.com>
31452
31453 PR sanitizer/65004
31454 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
31455
31456 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
31457
31458 PR target/64661
31459 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
31460 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
31461 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
31462 * config/sh/constraints.md (Ara, Add): New constraints.
31463 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
31464 predicates.
31465 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
31466 atomic_mem_operand_0. Don't use force_reg on the memory address.
31467 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
31468 Sra constraint. Convert to insn_and_split. Add workaround for
31469 PR 64974.
31470 (atomic_compare_and_swap<mode>_hard): Copy to
31471 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
31472 Use atomic_mem_operand_0 predicate.
31473 (atomic_compare_and_swap<mode>_soft_gusa,
31474 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
31475 AraAdd constraints.
31476 (atomic_compare_and_swap<mode>_soft_tcb,
31477 atomic_compare_and_swap<mode>_soft_imask,
31478 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
31479 atomic_mem_operand_0 predicate and SraSdd constraints.
31480 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
31481 constraint.
31482 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
31483 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
31484 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
31485 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
31486 force_reg on the memory address.
31487 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
31488 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
31489 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
31490 atomic_mem_operand_1 predicate and Sra constraint.
31491 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
31492 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
31493 Use atomic_mem_operand_1 predicate.
31494 (atomic_<fetchop_name><mode>_hard): Copy to
31495 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
31496 Use atomic_mem_operand_1 predicate.
31497 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
31498 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
31499 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
31500 insn_and_split. Use atomic_mem_operand_1 predicate.
31501 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
31502 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
31503 Use atomic_mem_operand_1 predicate.
31504 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
31505 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
31506 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
31507 in generated insn with original mem operand before emitting the insn.
31508 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
31509 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
31510 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
31511 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
31512 Use atomic_mem_operand_1 predicate and AraAdd constraints.
31513 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
31514 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
31515 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
31516 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
31517 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
31518 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
31519 atomic_not_fetch<mode>_soft_tcb,
31520 atomic_<fetchop_name>_fetch<mode>_soft_imask,
31521 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
31522 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
31523 Use atomic_mem_operand_1 predicate and SraSdd constraints.
31524
31525 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
31526
31527 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
31528 and 3 earlyclobber operands.
31529
31530 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31531
31532 * common.opt (fstack-reuse): Mark as optimization.
31533
31534 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31535
31536 PR ipa/64982
31537 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
31538
31539 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
31540
31541 PR tree-optimization/64326
31542 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
31543
31544 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
31545
31546 PR gcov-profile/61889
31547 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
31548
31549 2015-02-10 Richard Biener <rguenther@suse.de>
31550
31551 PR tree-optimization/64995
31552 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
31553 value we use is final.
31554 (visit_reference_op_store): Always valueize op.
31555 (visit_use): Properly valueize vuses.
31556
31557 2015-02-10 Richard Biener <rguenther@suse.de>
31558
31559 PR tree-optimization/64909
31560 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
31561 pass a scalar-stmt count estimate to the cost model.
31562 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
31563
31564 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
31565
31566 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
31567 enabled by default together with var-tracking.
31568
31569 2015-02-10 Nick Clifton <nickc@redhat.com>
31570
31571 * config/rl78/rl78.c: Remove DIV attribute code accidentally
31572 included in previous rl78 commit.
31573
31574 2015-02-10 Richard Biener <rguenther@suse.de>
31575
31576 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
31577 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
31578 return the bitpack.
31579
31580 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
31581
31582 PR gcov-profile/61889
31583 * config.in: regenerate.
31584 * configure.in: Likewise.
31585 * configure.ac: Check for ftw.h.
31586 * gcov-tool.c: Check for ftw.h before using nftw.
31587
31588 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
31589
31590 PR lto/64076
31591 * ipa-visibility.c (update_visibility_by_resolution_info): Only
31592 assert when not in lto mode.
31593
31594 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31595
31596 * ira-color.c (setup_left_conflict_sizes_p): Simplify
31597 initialization/assignment of conflict_size.
31598
31599 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
31600
31601 PR ipa/64978
31602 * ipa-cp.c (gather_caller_stats): Skip thunks.
31603 (propagate_constants_topo): Skip aliases.
31604
31605 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
31606
31607 PR target/64761
31608 * config/sh/sh.c (sh_option_override): Don't change
31609 -freorder-blocks-and-partition to -freorder-blocks even when
31610 unwinding is enabled.
31611 (sh_can_follow_jump): Return false if the followee jump is
31612 a crossing jump when -freorder-blocks-and-partition is specified.
31613 * config/sh/sh.md (*jump_compact_crossing): New insn.
31614
31615 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
31616 Kaz Kojima <kkojima@gcc.gnu.org>
31617
31618 PR target/64761
31619 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
31620 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
31621 (sh_can_redirect_branch): Rename to ...
31622 (sh_can_follow_jump): ... this. Constify argument types.
31623 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
31624 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
31625 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
31626 * doc/tm.texi: Regenerate.
31627
31628 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31629
31630 PR sanitizer/64981
31631 * builtins.c (expand_builtin): Call targetm.expand_builtin
31632 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
31633
31634 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31635
31636 PR ipa/61548
31637 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
31638
31639 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31640
31641 PR ipa/63566
31642 * ipa-icf.c (set_local): New function.
31643 (sem_function::merge): Use it.
31644
31645 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31646
31647 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
31648 (add_type_duplicate): Fix comparison of BINFOs.
31649
31650 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31651
31652 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
31653 on getting VOID pointer.
31654
31655 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31656
31657 PR target/64979
31658 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
31659 va_list escapes.
31660
31661 2015-02-09 Richard Biener <rguenther@suse.de>
31662
31663 * genmatch.c (replace_id): Copy expr_type.
31664
31665 2015-02-09 Richard Biener <rguenther@suse.de>
31666
31667 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
31668 (streamer_write_tree_bitfields): Declare.
31669 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
31670 properly unpack padding.
31671 (unpack_value_fields): Inline ...
31672 (streamer_read_tree_bitfields): ... here.
31673 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
31674 and properly add padding bits.
31675 (streamer_pack_tree_bitfields): Fold into ...
31676 (streamer_write_tree_bitfields): ... this new function,
31677 exposing the bitpack object.
31678 * lto-streamer-out.c (lto_write_tree_1): Call
31679 streamer_write_tree_bitfields.
31680
31681 2015-02-09 Richard Biener <rguenther@suse.de>
31682
31683 PR tree-optimization/54000
31684 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
31685 (struct ivopts_data): Add loop_loc member.
31686 (tree_ssa_iv_optimize_loop): Dump loop location.
31687 (create_new_ivs): Likewise, also dump number of IVs generated.
31688
31689 2015-02-09 Martin Liska <mliska@suse.cz>
31690
31691 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
31692 just if not yet registered.
31693 (ipa_icf_generate_summary): Register callgraph hooks.
31694
31695 2015-02-08 Andrew Pinski <apinski@cavium.com>
31696
31697 * config/aarch64/aarch64.c (gty_dummy): Delete.
31698
31699 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31700
31701 PR ipa/63566
31702 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
31703 (cgraph_node::local_p): Remove thunk related FIXME.
31704
31705 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31706
31707 PR ipa/63566
31708 * i386.c (ix86_function_regparm): Look through aliases to see if callee
31709 is local and optimized.
31710 (ix86_function_sseregparm): Likewise; also use target's SSE math
31711 settings; error out instead of silently generating wrong code
31712 on mismatches.
31713 (init_cumulative_args): Look through aliases.
31714
31715 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31716
31717 PR ipa/63566
31718 * ipa-split.c (execute_split_functions): Split if function has aliases.
31719
31720 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31721
31722 PR ipa/63566
31723 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
31724 aliases before trying to expand it.
31725 (cgraph_node::expand_thunk): Fix formating.
31726
31727 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
31728
31729 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
31730 (Using Assembly Language with C): Expand introduction.
31731 (Basic Asm): Copy-edit. Add more information about uses of
31732 basic asm.
31733 (Extended Asm): Copy-edit. Document new escape syntax and
31734 %l[label] syntax.
31735 (Global Reg Vars): Copy-edit.
31736 (Local Reg Vars): Likewise.
31737
31738 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
31739
31740 PR debug/2714
31741 PR bootstrap/64256
31742 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
31743 (DBX_CONTIN_CHAR): Define.
31744
31745 2015-02-06 Sebastian Pop <s.pop@samsung.com>
31746 Brian Rzycki <b.rzycki@samsung.com>
31747
31748 PR tree-optimization/64878
31749 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
31750 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
31751 Stop recursion at loop phi nodes after having visited a loop phi node.
31752
31753 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31754
31755 * toplev.c (process_options): Change flag_ipa_ra before creating
31756 optimization_{default,current}_node.
31757
31758 PR ipa/64896
31759 * cgraphunit.c (cgraph_node::expand_thunk): If
31760 restype is not is_gimple_reg_type nor the thunk_fndecl
31761 returns aggregate_value_p, set restmp to a temporary variable
31762 instead of resdecl.
31763
31764 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
31765
31766 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
31767
31768 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
31769
31770 PR target/64205
31771 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
31772 add a general secondary reload handler for SDmode, unless we have
31773 both read/write support for SDmode.
31774
31775 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31776
31777 PR middle-end/64937
31778 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
31779 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
31780 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
31781 1 before, push it to abstract_vec.
31782 (dwarf2out_abstract_function): Adjust caller. Don't call
31783 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
31784 DECL_ABSTRACT_P flags for all abstract_vec elts.
31785
31786 2015-02-06 Renlin Li <renlin.li@arm.com>
31787
31788 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
31789 complex gimple.
31790 * tree-ssa.c (execute_update_addresses_taken): Likewise.
31791
31792 2015-02-06 Jeff Law <law@redhat.com>
31793
31794 PR target/64889
31795 * config/h8300/h8300.c (push): New argument "in_prologue".
31796 Pass "in_prologue" along to "F".
31797 (h8300_push_pop): Corresponding changes.
31798 (h8300_expand_prologue): Likewise.
31799 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
31800
31801 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31802
31803 PR rtl-optimization/64957
31804 PR debug/64817
31805 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
31806 IOR rather than for AND.
31807
31808 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
31809
31810 PR target/62631
31811 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
31812 of shift-add and (add + shift) operations. Rename local variable.
31813
31814 2015-02-05 Jeff Law <law@redhat.com>
31815
31816 PR target/17306
31817 * config/h8300/constraints.md (U): Correctly dectect
31818 "eightbit_data" memory addresses.
31819 * config/h8300/h8300.c (eightbit_constant_address_p): Also
31820 handle (const (plus (symbol_ref (x)))) where x is declared
31821 as an 8-bit data memory address.
31822 * config/h8300/h8300.md (call, call_value): Correctly detect
31823 "funcvec" functions.
31824
31825 PR target/43264
31826 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
31827 24 to 28 bits for the H8/300.
31828
31829 2015-02-06 Alan Modra <amodra@gmail.com>
31830
31831 PR target/64876
31832 * config/rs6000/rs6000.c (chain_already_loaded): New function.
31833 (rs6000_call_aix): Use it.
31834
31835 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
31836
31837 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
31838 check.
31839
31840 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
31841
31842 * config/h8300/constraints.md ("U" constraint): Use strict
31843 variant of REG_OK_FOR_BASE_P after reload has started.
31844
31845 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
31846
31847 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
31848 define to zero if !TARGET_NEON.
31849 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
31850
31851 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31852 Trevor Saunders <tsaunders@mozilla.com>
31853
31854 PR ipa/61548
31855 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
31856
31857 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31858
31859 PR ipa/61548
31860 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
31861 when removing varpool nodes.
31862
31863 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31864
31865 PR ipa/61548
31866 * varpool.c (varpool_node::remove): Fix order of variables.
31867
31868 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31869
31870 PR ipa/64686
31871 * ipa-inline.c (inline_small_functions): Fix ordering issue between
31872 speculation resolution and key updates.
31873
31874 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31875
31876 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
31877 about not letting any speculative edges unupdated.
31878
31879 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31880
31881 PR gcov/64123
31882 * gcov-io.c (gcov_var): Export.
31883
31884 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31885
31886 PR middle-end/64922
31887 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
31888 edges that become speculative.
31889
31890 2015-02-04 Jakub Jelinek <jakub@redhat.com>
31891
31892 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
31893 or DW_LANG_Fortran08.
31894 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
31895 DW_LANG_Fortran08.
31896 (gen_compile_unit_die): Handle "GNU Fortran2003" and
31897 "GNU Fortran2008" language strings.
31898 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
31899 * langhooks.h (lang_GNU_Fortran): New prototype.
31900 * langhooks.c (lang_GNU_Fortran): New function.
31901 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
31902 lang_GNU_Fortran.
31903
31904 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
31905
31906 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
31907 (RTX_OK_FOR_OLO10_P): Likewise.
31908
31909 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
31910
31911 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
31912
31913 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31914
31915 PR middle-end/64922
31916 * gimple.c: Include gimple-ssa.h.
31917 (maybe_remove_unused_call_args): New function.
31918 * gimple.h (maybe_remove_unused_call_args): Declare.
31919 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
31920 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
31921 * gimple-fold.c (gimple_fold_call): Likewise.
31922
31923 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
31924
31925 PR rtl-optimization/64905
31926 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
31927 pointer alignment if it isn't needed.
31928
31929 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
31930
31931 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
31932 cortex-a72.cortex-a53.
31933 * config/aarch64/aarch64-tune.md: Regenerate.
31934 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
31935
31936 2015-02-04 Nick Clifton <nickc@redhat.com>
31937
31938 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
31939 inside a MEM.
31940
31941 2015-02-04 Jakub Jelinek <jakub@redhat.com>
31942
31943 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
31944 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
31945 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
31946 of DEF_BUILTIN.
31947 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
31948 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
31949 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
31950 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
31951 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
31952 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
31953 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
31954 * tree-core.h (enum built_in_function): In between
31955 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
31956 for builtins that use DEF_BUILTIN_CHKP macro.
31957
31958 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
31959
31960 PR debug/64817
31961 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
31962 operands for tcc_comparison exprs. Fix typos.
31963
31964 PR debug/64817
31965 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
31966 of two XORs that have an intervening AND or IOR.
31967
31968 PR debug/64817
31969 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
31970 simplification of XOR of AND to not allocate new rtx before
31971 committing to a simplification.
31972
31973 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31974
31975 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
31976 manual swaps in all peepholes.
31977
31978 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31979
31980 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
31981 of manual swapping implementation.
31982 (aarch64_expand_vec_perm_const_1): Likewise.
31983
31984 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
31985
31986 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
31987 (generic_addrcost_table): Remove NAMED_PARAM.
31988 (cortexa57_addrcost_table): Likewise.
31989 (xgene1_addrcost_table): Likewise.
31990 (generic_regmove_table): Likewise.
31991 (cortexa53_regmove_table): Likewise.
31992 (xgene1_regmove_table): Likewise.
31993 (generic_vector_table): Likewise.
31994 (cortexa57_vector_table): Likewise.
31995 (xgene1_vector_table): Likewise.
31996 (generic_tunings): Likewise.
31997 (cortexa53_tunings): Likewise.
31998 (cortexa57_tunings): Likewise.
31999 (xgene1_tunings): Likewise.
32000
32001 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
32002
32003 * config/arm/arm-cores.def: Add cortex-a72 and
32004 cortex-a72.cortex-a53.
32005 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
32006 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
32007 * config/arm/arm-tune.md: Regenerate.
32008 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
32009 "cortex-a72.cortex-a53".
32010 * doc/invoke.texi (ARM Options/-mtune): Likewise.
32011
32012 2015-02-04 Nick Clifton <nickc@redhat.com>
32013
32014 PR target/64408
32015 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
32016 of accepted codes.
32017 (nonimmediate_di_operand): Likewise.
32018
32019 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
32020 prefixes of known F5 using MSP430 MCUs.
32021
32022 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32023
32024 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
32025 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
32026 instead of __builtin_sqrt.
32027
32028 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
32029
32030 * varasm.c (do_assemble_alias): Follow transparent alias
32031 chain for target.
32032 (default_assemble_visibility): Follow transparent alias
32033 chain for decl name.
32034
32035 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
32036
32037 PR middle-end/62103
32038 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
32039 to compute size of referenced value in the constant case.
32040
32041 2015-02-03 Jakub Jelinek <jakub@redhat.com>
32042
32043 PR rtl-optimization/64756
32044 * cse.c (invalidate_dest): New function.
32045 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
32046 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
32047 invalidate and do not record it.
32048
32049 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
32050
32051 PR target/64660
32052 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
32053 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
32054 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
32055 atomic_nand<mode>_soft_tcb): New insns.
32056 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
32057 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
32058 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
32059 Split into atomic_not_fetchsi_hard if operands[0] is unused.
32060 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
32061 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32062 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
32063 atomic_not<mode>_hard if operands[0] is unused.
32064 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
32065 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
32066 if operands[0] is unused.
32067 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
32068 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
32069 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
32070 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32071 unused.
32072 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
32073 into atomic_not<mode>_soft_tcb if operands[0] is unused.
32074 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
32075 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
32076 if operands[0] is unused.
32077 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
32078 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
32079 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
32080 atomic_nand_fetchsi_hard if operands[0] is unused.
32081 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
32082 atomic_nand<mode>_hard if operands[0] is unused.
32083 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
32084 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
32085 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
32086 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32087 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
32088 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
32089 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
32090 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32091 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
32092 atomic_not<mode>_hard if operands[0] is unused.
32093 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
32094 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32095 unused.
32096 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
32097 into atomic_not<mode>_soft_tcb if operands[0] is unused.
32098 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
32099 atomic_nand<mode>_hard if operands[0] is unused.
32100 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
32101 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32102
32103 2015-02-03 David Malcolm <dmalcolm@redhat.com>
32104
32105 PR jit/64810
32106 * Makefile.in (GCC_OBJS): Add gcc-main.o.
32107 * gcc-main.c: New file, containing "main" taken from gcc.c.
32108 * gcc.c (do_self_spec): Free decoded_options.
32109 (class driver): Move declaration to gcc.h.
32110 (main): Move declaration and implementation to new file
32111 gcc-main.c.
32112 (driver_get_configure_time_options): New function.
32113 * gcc.h (class driver): Move this declaration here, from
32114 gcc.c.
32115 (driver_get_configure_time_options): New declaration.
32116
32117 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
32118
32119 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
32120 cross-module inlining.
32121 * cgraph.h (cgraph_node): Add flag merged.
32122 * ipa-icf.c (sem_function::merge): Maintain it.
32123
32124 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
32125
32126 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
32127 instead of OBJECT_P.
32128
32129 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
32130
32131 PR target/62631
32132 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
32133 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
32134 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
32135 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
32136
32137 2015-02-03 Jakub Jelinek <jakub@redhat.com>
32138
32139 PR other/63504
32140 * combine.c (reg_n_sets_max): New variable.
32141 (can_change_dest_mode, reg_nonzero_bits_for_combine,
32142 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
32143 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
32144 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
32145 (rest_of_handle_combine): Initialize reg_n_sets_max.
32146
32147 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
32148
32149 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
32150 if some always_inline was inlined, apply changes before inlining
32151 heuristically.
32152
32153 2015-02-02 David Malcolm <dmalcolm@redhat.com>
32154
32155 PR jit/64810
32156 * config/arm/arm.c (arm_option_override): Set
32157 arm_selected_arch/cpu/tune to NULL on entry.
32158
32159 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
32160 Andrew Pinski <pinskia@gcc.gnu.org>
32161 Jakub Jelinek <jakub@gcc.gnu.org>
32162
32163 PR target/64231
32164 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
32165 integer typing for small model. Use IN_RANGE.
32166
32167 2015-02-02 Richard Biener <rguenther@suse.de>
32168
32169 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
32170 * tree-vrp.c (vrp_valueize_1): Likewise.
32171
32172 2015-02-02 Alan Modra <amodra@gmail.com>
32173
32174 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
32175 than mem for toc_restore.
32176 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
32177 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
32178 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
32179
32180 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
32181
32182 PR target/64047
32183 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
32184 explicit default options.
32185
32186 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
32187
32188 PR ipa/64872
32189 * ipa-utils.c (ipa_merge_profiles): Add release argument.
32190 * ipa-icf.c (sem_function::merge): Do not release body when merging.
32191 * ipa-utils.h (ipa_merge_profiles): Update prototype.
32192
32193 2015-02-01 Jakub Jelinek <jakub@redhat.com>
32194
32195 PR debug/64817
32196 * cfgexpand.c (deep_ter_debug_map): New variable.
32197 (avoid_deep_ter_for_debug): New function.
32198 (expand_debug_expr): If TERed SSA_NAME is in
32199 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
32200 instead of trying to expand SSA_NAME's def stmt.
32201 (expand_debug_locations): When expanding debug bind
32202 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
32203 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
32204 value.
32205 (pass_expand::execute): Call avoid_deep_ter_for_debug on
32206 all debug bind stmts. Delete deep_ter_debug_map after
32207 expand_debug_location if non-NULL and clear it.
32208
32209 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
32210
32211 PR target/64851
32212 * config/sh/sync.md (atomic_fetch_notsi_hard,
32213 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
32214 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
32215 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
32216 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
32217 atomic_not_fetch<mode>_soft_imask): New insns.
32218
32219 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32220
32221 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
32222 (rank_for_schedule_debug): Split from ...
32223 (rank_for_schedule): ... this.
32224 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
32225 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
32226
32227 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
32228
32229 * doc/md.texi (Machine Constraints): Alphabetize table by target.
32230 * doc/extend.texi (x86 Variable Attributes): Move section to
32231 correct alphabetization after renaming.
32232 (x86 Type Attributes): Likewise.
32233 (Target Builtins): Re-alphabetize menu.
32234 (x86 Built-in Functions): Move section to correct alphabetization
32235 after renaming.
32236 (x86 transactional memory intrinsics): Likewise.
32237 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
32238 and x86 Windows Options in table and menu.
32239 (x86 Options): Move section to correct alphabetization after
32240 renaming.
32241 (x86 Windows Options): Likewise.
32242
32243 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
32244
32245 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
32246 preferred names of the architecture and its 32- and 64-bit
32247 variants.
32248 * doc/invoke.texi: Likewise.
32249 * doc/md.texi: Likewise.
32250
32251 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
32252
32253 PR target/64882
32254 * config/i386/predicates.md (address_no_seg_operand): Reject
32255 non-CONST_INT_P operands in invalid mode.
32256
32257 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
32258
32259 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
32260 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
32261 * config/i386/predicates.md (address_no_seg_operand): Call
32262 address_operand with VOIDmode.
32263 (vsib_address_operand): Ditto.
32264 (address_mpx_no_base_operand): Ditto.
32265 (address_mpx_no_index_operand): Ditto.
32266
32267 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
32268
32269 PR target/64688
32270 * lra-constraints.c (original_subreg_reg_mode): New.
32271 (simplify_operand_subreg): Try to simplify subreg of const. Use
32272 original_subreg_reg_mode for it.
32273 (swap_operands): Update original_subreg_reg_mode.
32274 (curr_insn_transform): Set up original_subreg_reg_mode.
32275
32276 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
32277
32278 PR target/64617
32279 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
32280 function.
32281 (process_alt_operands): Use it.
32282 (curr_insn_transform): Check the optional reload pseudo class is
32283 ok for the mode.
32284
32285 2015-01-30 Joseph Myers <joseph@codesourcery.com>
32286
32287 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
32288 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
32289 prototype.
32290 * toplev.h (init_asm_output): Update comment on use of
32291 UNKNOWN_LOCATION with fatal_error.
32292 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
32293 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
32294 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
32295 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
32296 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
32297 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
32298 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
32299 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
32300 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
32301 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
32302 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
32303 fatal_error changed to pass input_location as first argument.
32304
32305 2015-01-30 Martin Liska <mliska@suse.cz>
32306
32307 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
32308 in #pragma GCC diagnostic guards.
32309
32310 2015-01-30 Richard Biener <rguenther@suse.de>
32311
32312 PR tree-optimization/64829
32313 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
32314 not add a widening conversion pattern but hand off extra
32315 widenings to callers.
32316 (vect_recog_widen_mult_pattern): Handle extra widening produced
32317 by vect_handle_widen_op_by_const.
32318 (vect_recog_widen_shift_pattern): Likewise.
32319 (vect_pattern_recog_1): Remove excess vertical space in dumping.
32320 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
32321 (vect_init_vector_1): Likewise.
32322 (vect_get_vec_def_for_operand): Likewise.
32323 (vect_finish_stmt_generation): Likewise.
32324 (vectorizable_load): Likewise.
32325 (vect_analyze_stmt): Likewise.
32326 (vect_is_simple_use): Likewise.
32327
32328 2015-01-29 Jeff Law <law@redhat.com>
32329
32330 * combine.c (try_combine): Fix typo in comment.
32331
32332 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
32333
32334 PR target/64580
32335 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
32336 (rs6000_stack_info): Add assert.
32337 (rs6000_output_savres_externs): New function, split off from...
32338 (rs6000_output_function_prologue): ... here. Do not call it for
32339 thunks.
32340
32341 2015-01-29 Jeff Law <law@redhat.com>
32342
32343 PR target/15184
32344 * combine.c (try_combine): If I0 is a memory load and I3 a store
32345 to a related address, increase the "goodness" of doing a 4-insn
32346 combination with I0-I3.
32347 (make_field_assignment): Handle SUBREGs in the ior+and case.
32348
32349 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
32350
32351 PR tree-optimization/64746
32352 * tree-if-conv.c (mask_exists): New function.
32353 (predicate_mem_writes): Save created mask with given size for further
32354 use.
32355 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
32356 (ifcvt_repair_bool_pattern): Collect all statements that are root
32357 of bool pattern and use iterative algorithm to remove multiple uses
32358 of predicates, display number of required iterations.
32359
32360 2015-01-29 Richard Biener <rguenther@suse.de>
32361
32362 PR tree-optimization/64853
32363 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
32364 stmt will get simulated again.
32365 * tree-ssa-ccp.c (valueize_op_1): Likewise.
32366
32367 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32368
32369 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
32370 return_in_pc. Remove redundant assignments.
32371 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
32372 (arm_expand_epilogue): Don't compare boolean with true in if condition.
32373
32374 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
32375
32376 * config/i386/i386.c (ix86_mode_after): Make static.
32377
32378 2015-01-29 Richard Biener <rguenther@suse.de>
32379
32380 PR tree-optimization/64844
32381 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
32382 dump cost model analysis.
32383 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32384 Do not register adjusted load/store costs here.
32385
32386 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
32387 Uros Bizjak <ubizjak@gmail.com>
32388
32389 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
32390 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
32391 using x86_use_pseudo_pic_reg.
32392 * config/i386/i386.c (ix86_conditional_register_usage): Remove
32393 support for fixed PIC register.
32394 (ix86_use_pseudo_pic_reg): Not static any more.
32395
32396 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
32397
32398 PR middle-end/64805
32399 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
32400 to avoid error in cgraph node verification.
32401
32402 2015-01-29 Marek Polacek <polacek@redhat.com>
32403
32404 * doc/standards.texi: Reflect that the default for C is gnu11.
32405
32406 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
32407
32408 PR target/64761
32409 * reorg.c (switch_text_sections_between_p): New function.
32410 (relax_delay_slots): Call it when testing if the jump insn
32411 is removable. Use targetm.can_follow_jump when testing if
32412 the conditional branch can follow an unconditional jump.
32413
32414 2015-01-27 Caroline Tice <cmtice@google.com>
32415
32416 Committing VTV Cywin/Ming patch for Patrick Wollgast
32417 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
32418 if -fvtable-verify=preinit/std is used.
32419 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
32420 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
32421 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
32422 if -fvtable-verify=preinit/std is used.
32423 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
32424 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
32425 if -fvtable-verify=preinit/std is used.
32426 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
32427 * config/i386/mingw32.h (LIB_SPEC): Likewise.
32428 * varasm.c (assemble_variable): Add code to properly set the comdat
32429 section and name for the .vtable_map_vars section in case the
32430 target is PE or COFF.
32431
32432 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
32433
32434 PR ipa/64801
32435 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
32436 make sane BB profile.
32437 (cgraph_node::expand_thunk): Make sane BB profile.
32438 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
32439 * cgraph.h (init_lowered_empty_function): Update prototype.
32440 * config/i386/i386.c (make_resolver_func): Update call.
32441 * predict.c (gate): Disable branch prediction pass if
32442 profile is already there.
32443
32444 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
32445
32446 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
32447 * opth-gen.awk: Likewise.
32448 * common.opt: Mark flag_fp_contract_mode as Optimization.
32449
32450 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
32451
32452 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
32453 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
32454
32455 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
32456
32457 PR target/64659
32458 * config/sh/predicates.md (atomic_arith_operand,
32459 atomic_logical_operand): Remove.
32460 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
32461 (atomic_arith_operand_0): New predicate.
32462 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
32463 Use atomic_arith_operand_0 for input values.
32464 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
32465 atomic_compare_and_swap<mode>_soft_gusa,
32466 atomic_compare_and_swap<mode>_soft_tcb,
32467 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
32468 arith_reg_operand instead of register_operand.
32469 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
32470 atomic_arith_operand_0 for newval input.
32471 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
32472 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
32473 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
32474 arith_reg_operand instead of register_operand.
32475 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
32476 fetchop_predicate_1, fetchop_constraint_1_llcs,
32477 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
32478 fetchop_constraint_1_imask): New code iterator attributes.
32479 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
32480 register_operand. Use fetchop_predicate_1.
32481 (atomic_fetch_<fetchop_name>si_hard,
32482 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
32483 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
32484 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
32485 and arith_reg_operand instead of register_operand. Use
32486 fetchop_predicate_1, fetchop_constraint_1_gusa.
32487 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
32488 and arith_reg_operand instead of register_operand. Use
32489 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
32490 to allow R0 usage.
32491 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
32492 and arith_reg_operand instead of register_operand. Use
32493 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
32494 to allow R0 usage.
32495 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
32496 register_operand. Use atomic_logical_operand_1.
32497 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
32498 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
32499 arith_reg_operand instead of register_operand.
32500 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
32501 Use arith_reg_dest and arith_reg_operand instead of register_operand.
32502 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
32503 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
32504 register_operand. Use fetchop_predicate_1.
32505 (atomic_<fetchop_name>_fetchsi_hard,
32506 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
32507 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32508 fetchop_constraint_1_llcs.
32509 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
32510 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32511 fetchop_constraint_1_gusa.
32512 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
32513 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32514 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
32515 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
32516 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32517 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
32518 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
32519 register_operand. Use atomic_logical_operand_1.
32520 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
32521 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
32522 arith_reg_operand instead of register_operand.
32523 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
32524 arith_reg_operand instead of register_operand. Use logical_operand
32525 and K08. Adjust asm sequence to allow R0 usage.
32526 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
32527 arith_reg_operand instead of register_operand. Use logical_operand
32528 and K08.
32529
32530 2015-01-28 Jakub Jelinek <jakub@redhat.com>
32531
32532 PR other/63504
32533 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
32534 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
32535 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
32536 only get_full_len HOST_WIDE_INTs from get_val () array rather than
32537 all bits in *val_wide.
32538
32539 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
32540
32541 * varpool.c (tls_model_names): Fix names.
32542 (varpool_node::dump): Dump tls- prefix for tls models.
32543
32544 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
32545 Bernd Schmidt <bernds@codesourcery.com>
32546 Nathan Sidwell <nathan@codesourcery.com>
32547
32548 * config/nvptx/mkoffload.c: New file.
32549 * config/nvptx/t-nvptx: Add build rules for it.
32550 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
32551 (extra_programs): Add mkoffload.
32552 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
32553 function.
32554 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
32555
32556 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
32557
32558 PR middle-end/64809
32559 * cfgexpand.c (reorder_operands): Skip debug gimples.
32560
32561 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
32562
32563 PR tree-optimization/64277
32564 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
32565 range info when possible to refine estimation.
32566
32567 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32568
32569 PR tree-optimization/64718
32570 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
32571 be a 16bit unsigned integer when n->range is 16.
32572 (bswap_replace): Convert src to that type if necessary for all bswap
32573 sizes. Fix rotation right notation in nearby comment. Use bswap_type
32574 set in pass_optimize_bswap::execute ().
32575
32576 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
32577
32578 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
32579 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
32580 integer and floating point variants.
32581 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
32582
32583 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
32584
32585 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
32586 for all vector modes.
32587
32588 2015-01-28 Jakub Jelinek <jakub@redhat.com>
32589
32590 PR bootstrap/64612
32591 * doc/sourcebuild.texi (comdat_group): Document.
32592
32593 2015-01-28 Terry Guo <terry.guo@arm.com>
32594
32595 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
32596
32597 2015-01-27 David Malcolm <dmalcolm@redhat.com>
32598
32599 * toplev.c (print_version): Add param "show_global_state", and
32600 only print GGC and plugin information if it is true.
32601 (init_asm_output): Pass in "true" for the new param when calling
32602 print_version.
32603 (process_options): Likewise.
32604 (toplev::main): Likewise.
32605 * toplev.h (print_version): Add new param to decl.
32606
32607 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32608
32609 PR ipa/60871
32610 PR ipa/64139
32611 * tree.c (lookup_binfo_at_offset): New function.
32612 (get_binfo_at_offset): Use it.
32613
32614 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32615
32616 PR ipa/64282
32617 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
32618 on vtable being vtable.
32619
32620 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
32621
32622 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
32623 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
32624 -mhotpatch= option.
32625 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
32626 -mno-hotpatch options. Change syntax of -mhotpatch= option.
32627 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
32628 Renamed.
32629 (s390_hotpatch_trampoline_halfwords_max): Renamed.
32630 (s390_hotpatch_hw_max): New name.
32631 (s390_hotpatch_trampoline_halfwords): Renamed.
32632 (s390_hotpatch_hw_before_label): New name.
32633 (get_hotpatch_attribute): Removed.
32634 (s390_hotpatch_hw_after_label): New name.
32635 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
32636 attribute.
32637 (s390_attribute_table): Ditto.
32638 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
32639 (s390_function_num_hotpatch_hw): New name.
32640 Remove special handling of inline functions and hotpatching.
32641 Return number of nops before and after the function label.
32642 (s390_can_inline_p): Removed.
32643 (s390_asm_output_function_label): Emit a configurable number of nops
32644 after the function label.
32645 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
32646 (TARGET_CAN_INLINE_P) Removed.
32647 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
32648
32649 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32650 Jiong Wang <jiong.wang@arm.com>
32651
32652 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
32653 of scratch reg.
32654 (cb<optab><mode>1): Likewise.
32655 * config/aarch64/iterators.md (bcond): New define_code_attr.
32656
32657 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32658
32659 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
32660 memory accesses.
32661
32662 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32663
32664 * config/s390/s390.c (s390_register_move_cost): Increase costs for
32665 FPR->GPR moves.
32666
32667 2015-01-27 Richard Biener <rguenther@suse.de>
32668
32669 * tree-vrp.c (update_value_range): Intersect the range with
32670 old recorded SSA name range information.
32671
32672 2015-01-27 Nick Clifton <nickc@redhat.com>
32673
32674 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
32675 BC, DE and HL registers directly, not via AX.
32676 When decrementing the stack pointer by a large amount, transfer SP
32677 into AX and perform the subtraction there.
32678 (rl78_expand_epilogue): Perform the inverse of the above
32679 enhancements.
32680
32681 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32682
32683 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
32684
32685 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32686 Yury Gribov <y.gribov@samsung.com>
32687
32688 PR ubsan/64741
32689 * ubsan.c (ubsan_source_location): Refactor code.
32690 (ubsan_type_descriptor): Update type size. Refactor code.
32691
32692 2015-01-27 Richard Biener <rguenther@suse.de>
32693
32694 PR tree-optimization/56273
32695 PR tree-optimization/59124
32696 PR tree-optimization/64277
32697 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
32698 from the first VRP pass.
32699
32700 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32701
32702 PR ipa/64776
32703 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
32704 handle the first argument in the same loop as all the other arguments.
32705
32706 PR rtl-optimization/61058
32707 * jump.c (cleanup_barriers): Update basic block boundaries
32708 if BLOCK_FOR_INSN is non-NULL on PREV.
32709
32710 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
32711
32712 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
32713 bounds narrowing, already instrumented calls and calls to
32714 not instrumentable functions.
32715
32716 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32717
32718 PR tree-optimization/64807
32719 * wide-int.cc (wi::divmod_internal): Clear
32720 b_dividend[dividend_blocks_needed].
32721
32722 2015-01-26 DJ Delorie <dj@redhat.com>
32723
32724 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
32725 volatile memory references.
32726
32727 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
32728
32729 PR target/49263
32730 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
32731 remove_insn.
32732 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
32733 shifts if it already fits into K08.
32734
32735 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32736
32737 PR ipa/64730
32738 * ipa-inline.c (inline_small_functions): Print "unknown" even
32739 if edge->call_stmt is non-NULL, but has builtins or unknown
32740 location.
32741
32742 PR middle-end/64421
32743 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
32744 with asterisk, skip the first character.
32745
32746 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32747
32748 PR target/64806
32749 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
32750 order change.
32751
32752 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
32753
32754 PR target/64795
32755 * config/i386/i386.md (*movdi_internal): Also check operand 0
32756 to determine TYPE_LEA operand.
32757 (*movsi_internal): Ditto.
32758
32759 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32760
32761 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
32762 OPTION_MASK_QUAD_MEMORY_ATOMIC.
32763
32764 2015-01-26 Renlin Li <renlin.li@arm.com>
32765
32766 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
32767 the comment.
32768 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
32769 for higher part.
32770
32771 2015-01-26 Richard Biener <rguenther@suse.de>
32772
32773 PR middle-end/64764
32774 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
32775 combining two BIT_AND_EXPR predicates.
32776
32777 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32778
32779 PR bootstrap/64754
32780 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
32781
32782 2015-01-26 Terry Guo <terry.guo@arm.com>
32783
32784 * config/arm/arm.c (arm_file_start): Update the assignment of
32785 Tag_ABI_HardFP_use.
32786
32787 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
32788
32789 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
32790 pipeline model.
32791 config/arm/arm.md: Include the new Cortex-A57 model.
32792 (generic_sched): Don't use generic_sched when tuning for
32793 Cortex-A57.
32794
32795 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
32796 Uros Bizjak <ubizjak@gmail.com>
32797
32798 * config/i386/i386.c (get_builtin_code_for_version): Add
32799 support for BMI and BMI2 multiversion functions.
32800
32801 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32802
32803 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
32804 (extract_bit_field): Likewise.
32805 (extract_low_bits): Likewise.
32806 (expand_mult): Likewise.
32807 (expand_mult_highpart_adjust): Likewise.
32808
32809 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
32810
32811 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
32812 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
32813 * config/i386/i386.c (processor_model): Add
32814 M_INTEL_COREI7_BROADWELL.
32815 (arch_names_table): Add "broadwell".
32816
32817 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
32818
32819 PR target/49263
32820 PR target/53987
32821 PR target/64345
32822 PR target/59533
32823 PR target/52933
32824 PR target/54236
32825 PR target/51244
32826 * config/sh/sh-protos.h
32827 (sh_extending_set_of_reg::can_use_as_unextended_reg,
32828 sh_extending_set_of_reg::use_as_unextended_reg,
32829 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
32830 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
32831 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
32832 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
32833 (sh_treg_insns): New class.
32834 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
32835 (scope_counter): New class.
32836 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
32837 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
32838 sh_extending_set_of_reg::can_use_as_unextended_reg,
32839 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
32840 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
32841 sh_split_treg_set_expr): New functions.
32842 (addsubcosts): Handle treg_set_expr.
32843 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
32844 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
32845 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
32846 (sh_insn_operands_modified_between_p): Make non-static.
32847 * config/sh/predicates.md (zero_extend_movu_operand): Allow
32848 simple_mem_operand in addition to displacement_mem_operand.
32849 (zero_extend_operand): Don't allow zero_extend_movu_operand.
32850 (treg_set_expr, treg_set_expr_not_const01,
32851 arith_reg_or_treg_set_expr): New predicates.
32852 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
32853 arith_or_int_operand instead of logical_operand. Convert to
32854 insn_and_split. Try to optimize constant operand in splitter.
32855 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
32856 (*tstqi_t_zero): Delete.
32857 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
32858 (tstsi_t_and_not): Delete.
32859 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
32860 Convert to insn_and_split.
32861 (unnamed split, tstsi_t_zero_extract_xor,
32862 tstsi_t_zero_extract_subreg_xor_little,
32863 tstsi_t_zero_extract_subreg_xor_big): Delete.
32864 (*tstsi_t_shift_mask): New insn_and_split.
32865 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
32866 to recombine with surrounding insns when splitting.
32867 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
32868 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
32869 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
32870 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
32871 (*cbranch_div0s: Delete.
32872 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
32873 Try to recombine with surrounding insns when splitting. Add operand
32874 order variants.
32875 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
32876 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
32877 *addc_r_r_msb, *addc_2r_msb): Delete.
32878 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
32879 order variant.
32880 (*addc_negreg_t): New insn_and_split.
32881 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
32882 Try to recombine with surrounding insns when splitting.
32883 Add operand order variants.
32884 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
32885 insn_and_split patterns.
32886 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
32887 surrounding insns when splitting.
32888 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
32889 (*rotcl): Likewise. Add zero_extract variant.
32890 (*ashrsi2_31): New insn_and_split.
32891 (*negc): Convert to insn_and_split. Use treg_set_expr.
32892 (*zero_extend<mode>si2_disp_mem): Update comment.
32893 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
32894 condition.
32895 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
32896 with surrounding insns when splitting.
32897 (any_treg_expr_to_reg): New insn_and_split.
32898 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
32899 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
32900 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
32901 *zero_extract_2): New single bit zero extract patterns.
32902 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
32903 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
32904 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
32905 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
32906 set destination.
32907 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
32908 register_operand for set source.
32909
32910 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
32911
32912 * i386.opt (prefetch_sse): New targetsave.
32913 * i386.c (ix86_function_specific_save): Save prefetch_sse.
32914 (ix86_function_specific_restore): Restore prefetch_sse and initialize
32915 ix86_cost/ix86_tune_cost.
32916
32917 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32918
32919 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
32920 Support the JIT by using 0 as the language type.
32921
32922 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
32923
32924 PR target/64317
32925 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
32926 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
32927 (mark_regno_live, process_bb_lives): Pass new parameter value to
32928 make_hard_regno_born.
32929
32930 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32931
32932 PR rtl-optimization/63637
32933 PR rtl-optimization/60663
32934 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
32935 if elt->cost is MAX_COST for ASM_OPERANDS.
32936 (find_sets_in_insn): Fix up comment typo.
32937 (cse_insn): Don't set src_volatile for all non-volatile
32938 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
32939 or with "memory" clobber. Set elt->cost to MAX_COST
32940 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
32941 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
32942
32943 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
32944
32945 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
32946 alternative 1.
32947
32948 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
32949
32950 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
32951 libgcc/config/i386/elf-lib.h.
32952
32953 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32954
32955 PR driver/64737
32956 * gcc.c (print_configuration): Don't print a blank line at the end
32957 here...
32958 (run_attempt): ... but here unstead.
32959
32960 PR middle-end/64734
32961 * omp-low.c (scan_sharing_clauses): Don't ignore
32962 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
32963 on target data/update constructs.
32964
32965 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
32966
32967 PR target/50928
32968 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
32969 (DEBUG_RELOAD): Removed define.
32970 (m32c_limit_reload_class): Enable traces with if DEBUG0.
32971 (m32c_function_arg): Added a type cast.
32972 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
32973 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
32974 * config/m32c/bitops.md (andqi3_16): Likewise.
32975 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
32976 (push_a01_l): Likewise.
32977
32978 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32979
32980 PR jit/64721
32981 * main.c (main): Construct toplev instances with init_signals=true.
32982 * toplev.c (general_init): Add param "init_signals", and use it to
32983 conditionalize the calls to signal and host_hooks.extra_signals.
32984 (toplev::toplev): Add param "init_signals".
32985 (toplev::main): When invoking general_init, pass m_init_signals
32986 to control whether signal-handlers are installed.
32987 * toplev.h (toplev::toplev): Add param "init_signals".
32988 (toplev::m_init_signals): New field.
32989
32990 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32991
32992 PR jit/64722
32993 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
32994 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
32995 latter may be affected by the former (e.g. on i686).
32996
32997 2015-01-23 Martin Liska <mliska@suse.cz>
32998
32999 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
33000 false positive during profiledbootstrap.
33001
33002 2015-01-23 Tom de Vries <tom@codesourcery.com>
33003
33004 PR libgomp/64672
33005 * lto-opts.c (lto_write_options): Output non-explicit conservative
33006 -fno-openacc.
33007 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
33008 (append_compiler_options): Pass -fopenacc through.
33009
33010 2015-01-23 Tom de Vries <tom@codesourcery.com>
33011
33012 PR libgomp/64707
33013 * lto-opts.c (lto_write_options): Output non-explicit conservative
33014 -fno-openmp.
33015 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
33016 (append_compiler_options): Pass -fopenmp through.
33017
33018 2015-01-23 Jakub Jelinek <jakub@redhat.com>
33019
33020 PR debug/64511
33021 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
33022 GTY markup.
33023
33024 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
33025 * diagnostic.def (DK_ICE_NOBT): New kind.
33026 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
33027 like DK_ICE, but never print backtrace.
33028 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
33029 (internal_error_no_backtrace): New function.
33030 * gcc.c (execute): Use internal_error_no_backtrace instead of
33031 internal_error.
33032
33033 2015-01-22 Jeff Law <law@redhat.com>
33034
33035 PR target/52076
33036 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
33037 improve code density for small immediate to memory case.
33038 (insv): Better handle bitfield assignments when the field is
33039 being set to all ones.
33040 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
33041 operand predicate.
33042
33043 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33044 Jakub Jelinek <jakub@redhat.com>
33045
33046 PR middle-end/64729
33047 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
33048 for !TARGET_LIBC_PROVIDES_SSP version and
33049 -fstack-protector-{all,strong,explicit} otherwise.
33050 * config/freebsd.h (LINK_SSP_SPEC): Handle
33051 -fstack-protector-{strong,explicit}.
33052
33053 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
33054 H.J. Lu <hongjiu.lu@intel.com>
33055
33056 PR ipa/64694
33057 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
33058 heap.
33059
33060 2015-01-22 Wei Mi <wmi@google.com>
33061
33062 PR rtl-optimization/64557
33063 * dse.c (record_store): Call get_addr for mem_addr.
33064 (check_mem_read_rtx): Likewise.
33065
33066 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
33067
33068 * fold-const.c (const_binop): Add early return for non-tcc_binary.
33069
33070 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
33071
33072 * toplev.c (init_local_tick): Process the failure when read
33073 fails for random_seed.
33074
33075 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
33076 'pretty_name' to avoid memory overflow.
33077
33078 2015-01-22 Richard Biener <rguenther@suse.de>
33079
33080 PR middle-end/64728
33081 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
33082 abnormal coalescing on undefined SSA names.
33083
33084 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
33085
33086 PR target/64688
33087 PR target/64477
33088 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
33089 for alternative 3.
33090 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
33091
33092 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
33093
33094 PR middle-end/63325
33095 * fold-const.c (fold_checksum_tree): Don't include value of
33096 expr->decl_with_vis.symtab_node in the checksum.
33097
33098 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33099
33100 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
33101
33102 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
33103
33104 PR driver/64690
33105 * gcc.c (insert_comments): New function.
33106 (try_generate_repro): Call it.
33107 (append_text): Removed.
33108
33109 2015-01-22 Richard Biener <rguenther@suse.de>
33110
33111 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
33112 with IL incompatible options. Properly honor user optimize
33113 attributes.
33114
33115 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
33116
33117 PR rtl-optimization/64682
33118 * combine.c (distribute_notes): When moving a death note for
33119 a register that is set in the new I2, make sure to put it
33120 before that new I2.
33121
33122 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
33123
33124 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
33125 not TARGET_DEFAULT.
33126
33127 2015-01-21 Jakub Jelinek <jakub@redhat.com>
33128
33129 PR debug/64511
33130 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
33131 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
33132 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
33133
33134 PR sanitizer/64706
33135 * doc/invoke.texi (-fsanitize=vptr): Document.
33136
33137 PR rtl-optimization/62078
33138 * dse.c: Include cfgcleanup.h.
33139 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
33140 anything call purge_all_dead_edges and cleanup_cfg at the end
33141 of the pass.
33142
33143 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
33144
33145 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
33146 edges.
33147
33148 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33149
33150 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
33151 decl attribute.
33152
33153 2015-01-21 David Sherwood <david.sherwood@arm.com>
33154 Tejas Belagod <Tejas.Belagod@arm.com>
33155
33156 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
33157 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
33158 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
33159 Removed.
33160
33161 2015-01-21 David Sherwood <david.sherwood@arm.com>
33162 Tejas Belagod <Tejas.Belagod@arm.com>
33163
33164 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
33165 (aarch64_reverse_mask): New decls.
33166 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
33167 (insn_count): New mode_attr.
33168 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
33169 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
33170 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
33171 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
33172 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
33173 (aarch64_simd_st4): New patterns.
33174 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
33175 (aarch64_reverse_mask): New functions.
33176
33177 2015-01-21 Alan Hayward <alan.hayward@arm.com>
33178
33179 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
33180 Declare.
33181 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
33182 addressing modes for BE.
33183 (aarch64_print_operand): Add 'R' specifier.
33184 (aarch64_simd_disambiguate_copy): Delete.
33185 (aarch64_simd_emit_reg_reg_move): New function.
33186 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
33187 in define_splits for structural moves.
33188 (mov<mode>): Use less restrictive predicates.
33189 (*aarch64_mov<mode>): Simplify and only allow for LE.
33190 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
33191
33192 2015-01-21 Alan Hayward <alan.hayward@arm.com>
33193
33194 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
33195
33196 2015-01-21 Richard Henderson <rth@redhat.com>
33197
33198 PR target/64669
33199 * ccmp.c (used_in_cond_stmt_p): Remove.
33200 (expand_ccmp_expr): Don't use it.
33201
33202 2015-01-21 Nick Clifton <nickc@redhat.com>
33203
33204 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
33205 PARALLELs.
33206
33207 2015-01-21 Richard Biener <rguenther@suse.de>
33208
33209 PR middle-end/64313
33210 * tree-core.h (builtin_info, builtin_info_type): Turn from
33211 an object with two arrays into an array of an object with
33212 decl and two flags, implicit_p and declared_p.
33213 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
33214 set_builtin_decl, set_builtin_decl_implicit_p,
33215 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
33216 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
33217 * builtins.c (builtin_info): Adjust.
33218 * gimplify.c (gimplify_addr_expr): References to builtins
33219 that have been declared by the user makes them eligible for
33220 use by the compiler. Call set_builtin_decl_implicit_p on them.
33221
33222 2015-01-20 Jeff Law <law@redhat.com>
33223
33224 PR target/59946
33225 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
33226 allow pc-relative addresses in operand predicates or constraints.
33227
33228 2015-01-21 Bin Cheng <bin.cheng@arm.com>
33229
33230 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
33231 neon on aarch32 processors for stringops.
33232
33233 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33234
33235 PR ipa/63576
33236 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
33237
33238 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33239
33240 PR lto/45375
33241 * ipa-inline.c: Include lto-streamer.h
33242 (report_inline_failed_reason): Output source file differences and
33243 flags on optimization/target node mismatch.
33244 (can_inline_edge_p): Consider caller to be the outer inline function;
33245 be less restrictive about matching opimize and optimize_size attributes.
33246 (inline_account_function_p): Break out from ...
33247 (inline_small_functions): ... here.
33248 * ipa-inline-transform.c (clone_inlined_nodes): Use
33249 inline_account_function_p.
33250 (inline_call): Use optimize attribution; use inline_account_function_p.
33251 (inline_transform): Use opt_for_fn.
33252 * ipa-inline.h (inline_account_function_p): Declare.
33253
33254 2015-01-20 Jakub Jelinek <jakub@redhat.com>
33255
33256 PR debug/64663
33257 * dwarf2out.c (decl_piece_node): Don't put bitsize into
33258 mode if bitsize <= 0.
33259 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
33260 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
33261 sizes and positions.
33262
33263 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
33264
33265 * config/nios2/nios2.c (nios2_asm_file_end): Implement
33266 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
33267 needed.
33268 (TARGET_ASM_FILE_END): Define.
33269
33270 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33271
33272 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
33273 (struct tune_params): Use the enum.
33274 * arm.c (arm_*_tune): Update.
33275 (arm_option_override): Update.
33276
33277 2015-01-20 Richard Biener <rguenther@suse.de>
33278
33279 PR ipa/64684
33280 * ipa-reference.c (add_static_var): Inline ...
33281 (analyze_function): ... here after splitting out from ...
33282 (is_proper_for_analysis): ... this.
33283
33284 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
33285
33286 PR target/64149
33287 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
33288 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
33289 replace the conditional with it's true branch.
33290 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
33291 (arm_lra_p): Remove.
33292
33293 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
33294
33295 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
33296
33297 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33298
33299 * config/tilegx/mul-tables.c: Move symtab.h include after
33300 coretypes.h include.
33301 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
33302 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
33303 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
33304 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
33305 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33306
33307 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
33308
33309 PR bootstrap/64676
33310 Revert:
33311 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
33312
33313 PR rtl-optimization/64081
33314 * loop-iv.c (def_pred_latch_p): New function.
33315 (latch_dominating_def): Allow specific cases with non-single
33316 definitions.
33317 (iv_get_reaching_def): Likewise.
33318 (check_complex_exit_p): New function.
33319 (check_simple_exit): Use check_complex_exit_p to allow certain cases
33320 with exits not executing on any iteration.
33321
33322 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33323
33324 PR lto/45375
33325 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
33326 to set branch cost.
33327
33328 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33329
33330 PR lto/45375
33331 * i386.c (gate): Check flag_expensive_optimizations and
33332 optimize_size.
33333 (ix86_option_override_internal): Drop optimize_size condition
33334 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
33335 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
33336 MASK_PREFER_AVX128.
33337 (ix86_avx256_split_vector_move_misalign,
33338 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
33339 * sse.md (all uses of TARGET_PREFER_AVX128): Add
33340 optimize_insn_for_speed_p check.
33341
33342 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
33343
33344 * config/mips/mips.h (FP_ASM_SPEC): New define.
33345 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
33346 instead.
33347
33348 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
33349
33350 PR target/53988
33351 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
33352 nullptr for insn when reaching the first insn.
33353 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
33354 (sh_insn_operands_modified_between_p): Add nullptr check.
33355 (sh_find_extending_set_of_reg): Fix log message. Don't accept
33356 sign extending mem load if the insn contains any UNSPEC or
33357 UNSPEC_VOLATILE.
33358
33359 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33360
33361 * params.def (inline-unit-growth): Drop to 15%.
33362 * invoke.texi (inline-unit-growth): Document change.
33363
33364 2015-01-19 Martin Liska <mliska@suse.cz>
33365
33366 PR ipa/64668
33367 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
33368 function for second argument of OBJ_TYPE_REF.
33369
33370 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33371
33372 PR ipa/64218
33373 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
33374 whether function is an alias.
33375
33376 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33377
33378 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
33379 cases.
33380
33381 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
33382
33383 PR rtl-optimization/64671
33384 * lra-remat.c (operand_to_remat): Don't consider jump and call
33385 insns.
33386
33387 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
33388
33389 PR target/59828
33390 * config/rs6000/default64.h: Include rs6000-cpus.def.
33391 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
33392 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
33393 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
33394 and POWER8.
33395 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
33396 POWER8.
33397 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
33398 pseudo-op to specify assembler dialect.
33399
33400 2015-01-19 Martin Liska <mliska@suse.cz>
33401
33402 PR ipa/64664
33403 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
33404 Handle safe potentially removed nodes during filtering.
33405
33406 2015-01-19 Martin Liska <mliska@suse.cz>
33407
33408 * doc/extend.texi (no_icf): Add new attribute description.
33409 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
33410 where the pass attempts to merge a function with no_icf attribute.
33411
33412 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33413
33414 PR target/64532
33415 * doc/md.texi (ARM Options): Document register constraints.
33416
33417 2015-01-19 Jiong Wang <jiong.wang@arm.com>
33418 Andrew Pinski <apinski@cavium.com>
33419
33420 PR target/64304
33421 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
33422 (ashl<mode>3): Don't expand if operands[2] is not constant.
33423
33424 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33425
33426 PR target/64448
33427 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
33428 Match xor-and-xor RTL pattern.
33429
33430 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
33431
33432 PR rtl-optimization/64081
33433 * loop-iv.c (def_pred_latch_p): New function.
33434 (latch_dominating_def): Allow specific cases with non-single
33435 definitions.
33436 (iv_get_reaching_def): Likewise.
33437 (check_complex_exit_p): New function.
33438 (check_simple_exit): Use check_complex_exit_p to allow certain cases
33439 with exits not executing on any iteration.
33440
33441 2015-01-19 Jakub Jelinek <jakub@redhat.com>
33442
33443 * common.opt (fgraphite): Fix a typo.
33444
33445 2015-01-19 Felix Yang <felix.yang@huawei.com>
33446
33447 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
33448 pattern.
33449 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
33450 uminp, smax_nanp, smin_nanp): New builtins.
33451 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
33452 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
33453 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
33454 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
33455 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
33456 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
33457 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
33458 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
33459 vpminnms_f32): Rewrite using builtin functions.
33460
33461 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
33462
33463 PR libgomp/64625
33464 * omp-low.c (offload_symbol_decl): Remove variable.
33465 (get_offload_symbol_decl): Remove function.
33466 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
33467 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
33468 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
33469 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
33470 BUILT_IN_GOACC_UPDATE don't pass it at all.
33471
33472 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
33473
33474 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
33475 callers.
33476
33477 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
33478
33479 * ipa-chkp.c (chkp_produce_thunks): Add early param
33480 to split thunks production into two passes. Keep
33481 'always_inline' function bodies after the first pass.
33482 (pass_data_ipa_chkp_early_produce_thunks): New.
33483 (pass_ipa_chkp_early_produce_thunks): New.
33484 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
33485 chkp_produce_thunks signature.
33486 (make_pass_ipa_chkp_early_produce_thunks): New.
33487 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
33488 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
33489 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
33490
33491 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33492
33493 * cgraph.c (cgraph_node::dump): Dump profile flags.
33494
33495 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
33496
33497 PR target/64652
33498 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
33499 reg appear first in the parallel.
33500
33501 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33502
33503 * ipa-reference.c (set_reference_optimization_summary,
33504 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
33505 disabled.
33506 (ignore_module_statics): New static var.
33507 (propagate_bits): If ipa-reference is disabled, do not look into local
33508 properties.
33509 (analyze_function): Disable analysis when ipa_reference is disabled.
33510 (generate_summary): Do not dump when reference is disabled;
33511 collect vars accessed from functions with ipa-reference disabled.
33512 (get_read_write_all_from_node): When ipa-reference is disabled, use the
33513 node flags.
33514 (gate): Enable for LTO.
33515 (ignore_edge_p): New function.
33516 (propagate): Skip functions w/o ipa-reference analysis.
33517 * optc-save-gen.awk: Handle optimize_debug correctly.
33518 * opth-gen.awk: Likewise.
33519 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
33520 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
33521 fira-share-save-slots, fira-share-spill-slots,
33522 fmodulo-sched-allow-regmoves, fpartial-inlining,
33523 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
33524 ftracer, ftree-parallelize-loops, fassociative-math,
33525 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
33526 Optimization
33527 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
33528 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
33529 Optimization.
33530 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
33531 Fix for IPA.
33532
33533 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33534
33535 PR ipa/64378
33536 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
33537 flag correctly.
33538 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
33539
33540 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
33541
33542 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
33543 Remove duplicate option listings.
33544
33545 2015-01-18 Felix Yang <felix.yang@huawei.com>
33546
33547 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
33548 (autofdo_source_profile::get_callsite_total_count,
33549 function_instance::get_function_instance_by_decl,
33550 string_table::get_index, string_table::get_index_by_decl,
33551 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
33552 Fix comment typos. Reformatting and minor code rearrangement.
33553
33554 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33555
33556 * config/rs6000/rs6000.md (probe_stack): Delete.
33557 (probe_stack_address): New.
33558
33559 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33560
33561 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
33562 to test for 32-bit ABIs, not !TARGET_POWERPC64.
33563
33564 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33565
33566 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
33567 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
33568 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
33569 snafu.
33570 (rs6000_libcall_value): Use the new function.
33571
33572 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
33573
33574 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
33575
33576 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
33577
33578 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
33579 implement a more precise life analysis for it during backward scan.
33580
33581 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
33582
33583 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
33584
33585 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
33586
33587 PR rtl-optimization/52773
33588 * calls.c (emit_library_call_value): When pushing arguments use
33589 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
33590 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
33591 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
33592
33593 2015-01-17 Jeff Law <law@redhat.com>
33594
33595 PR rtl-optimization/32790
33596 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
33597 not ZERO_EXTEND in SET_DESTs.
33598
33599 2015-01-17 Alan Modra <amodra@gmail.com>
33600
33601 * cprop.c (do_local_cprop): Revert last change.
33602
33603 2015-01-16 DJ Delorie <dj@redhat.com>
33604 Nick Clifton <nickc@redhat.com>
33605
33606 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
33607 (addhi3_real): Likewise. Fix [HL+0] syntax.
33608 (subqi3_real): Likewise.
33609 (subhi3_real): Likewise.
33610 (cbranchqi4_real): Likewise. Allow saddr,#imm.
33611 (cbranchhi4_real): Likewise.
33612 (cbranchhi4_real_inverted): Likewise.
33613 (cbranchsi4_real_lt): Likewise.
33614 (cbranchsi4_real_ge): Likewise.
33615 (cbranchsi4_real_ge): Likewise.
33616 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
33617 (sub<mode>3_virt): Likewise.
33618 (cbranchqi4_virt): Likewise.
33619 (cbranchhi4_virt): Likewise.
33620 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
33621 always use '[reg+imm]' even when imm is zero.
33622 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
33623 (rl78_general_operand): New.
33624 (rl78_nonimmediate_operand): New.
33625 (rl78_nonfar_operand): Use them.
33626 (rl78_nonfar_nonimm_operand): Likewise.
33627 (rl78_stack_based_mem): Fix.
33628 * config/rl78/constraints.md (Ibqi): New.
33629 (IBqi): New.
33630 (Wsa): New.
33631 (Wsf): New.
33632 (Cs1): Fix.
33633 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
33634 (iorqi3): Likewise.
33635 (xorqi3): Likewise.
33636 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
33637
33638 * config/rl78/constrains (Qs8): New constraint.
33639 * config/rl78/rl78.c (rl78_flags_already_set): New function.
33640 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
33641 * config/rl78/rl78-real.md (update_Z): New attribute.
33642 Update patterns to set it.
33643 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
33644 shorter compare and branch sequence can be used.
33645 (cbranchhi4_real): Likewise.
33646 (cbranchhi4_real_inverted): Likewise.
33647
33648 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
33649 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
33650 address space.
33651 * config/rl78/rl78.c (rl78_get_name_encoding): New.
33652 (rl78_option_override): Allow -mes0 only if C.
33653 (characterize_address): Support subregs of symbol_refs.
33654 (rl78_addr_space_address_mode): Move. Add __near.
33655 (rl78_far_p): Likewise.
33656 (rl78_addr_space_pointer_mode): Likewise.
33657 (rl78_as_legitimate_address): Likewise.
33658 (rl78_addr_space_subset_p): Likewise.
33659 (rl78_addr_space_convert): Likewise.
33660 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
33661 symbols with -mes0.
33662 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
33663 addressing.
33664 (rl78_alloc_physical_registers_op1): Change logic to prefer
33665 symbol[BC] addressing.
33666 (frodata_section): New.
33667 (rl78_asm_init_sections): Initialize it.
33668 (rl78_select_section): Put __far readonly symbols in .frodata.
33669 (rl78_make_type_far): New.
33670 (rl78_insert_attributes): Force all readonly symbols to be
33671 __far when -mes0.
33672 (rl78_asm_out_integer): New.
33673 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
33674 * config/rl78/rl78.opt (-mes0): New.
33675
33676 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
33677 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
33678 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
33679 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
33680 (rl78_saddr_p): New.
33681 (rl78_output_aligned_common): New.
33682 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
33683 (rl78_handle_saddr_attribute): New.
33684 (rl78_handle_naked_attribute): New.
33685 (rl78_attribute_table): Add saddr.
33686 (rl78_print_operand_1): Don't print '!' on saddr operands.
33687 (rl78_print_operand_1): Strip encodings.
33688 (rl78_sfr_p): New.
33689 (rl78_strip_name_encoding): New.
33690 (rl78_attrlist_to_encoding): New.
33691 (rl78_encode_section_info): New.
33692 (rl78_asm_init_sections): New.
33693 (rl78_select_section): New.
33694 (rl78_output_labelref): New.
33695 (rl78_output_aligned_common): New.
33696 (rl78_asm_out_integer): New.
33697 (rl78_asm_ctor_dtor): New.
33698 (rl78_asm_constructor): New.
33699 (rl78_asm_destructor): New.
33700
33701 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
33702 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
33703 (transcode_memory_rtx): Update.
33704 (rl78_expand_epilogue): Use A_REG instead of 0.
33705
33706 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33707
33708 * config/arm/arm-protos.h (struct tune_params): New field
33709 sched_autopref_queue_depth.
33710 * config/arm/arm.c (sched-int.h): Include header.
33711 (arm_first_cycle_multipass_dfa_lookahead_guard,)
33712 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
33713 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
33714 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
33715 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
33716 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
33717 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
33718 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
33719 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
33720 * config/arm/t-arm (arm.o): Update.
33721 * haifa-sched.c (update_insn_after_change): Update.
33722 (rank_for_schedule): Use auto-prefetcher model, if requested.
33723 (autopref_multipass_init): New static function.
33724 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
33725 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
33726 variable for debug dumps.
33727 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
33728 (autopref_multipass_dfa_lookahead_guard): New global function that
33729 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
33730 (init_h_i_d): Update.
33731 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
33732 * sched-int.h (enum autopref_multipass_data_status): New const enum.
33733 (autopref_multipass_data_): Structure for auto-prefetcher data.
33734 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
33735 (struct _haifa_insn_data:autopref_multipass_data): New field.
33736 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
33737 (autopref_multipass_dfa_lookahead_guard): Declare.
33738
33739 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33740
33741 * rtlanal.c (get_base_term): Handle SCRATCH.
33742
33743 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33744
33745 * config/aarch64/aarch64.c
33746 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
33747 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33748 * config/arm/arm.c
33749 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
33750 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33751
33752 2015-01-17 Alan Modra <amodra@gmail.com>
33753
33754 * cprop.c (do_local_cprop): Disallow replacement of fixed
33755 hard registers.
33756
33757 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33758
33759 PR target/62066
33760 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
33761 early return 0.
33762
33763 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
33764
33765 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
33766 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
33767
33768 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33769
33770 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
33771 * config/arm/thumb1.md: ... Here.
33772
33773 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33774
33775 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
33776 TImode for TARGET_32BIT.
33777
33778 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33779
33780 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
33781 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
33782 as ...
33783 (rs6000_abi_word_mode): New function.
33784
33785 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33786
33787 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
33788 instead of UNITS_PER_WORD to describe the size of stack slots.
33789
33790 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33791
33792 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
33793 as rs6000_promote_function_mode. Move comment to there.
33794 (rs6000_promote_function_mode): New function.
33795
33796 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33797
33798 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
33799 -mpowerpc64 is active.
33800
33801 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33802
33803 PR middle-end/64353
33804 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
33805 virtuals on start.
33806
33807 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33808
33809 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
33810 introduced in revision 219724.
33811
33812 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33813 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33814
33815 PR target/64263
33816 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
33817 destination is not a GP reg.
33818 (*movdi_aarch64): Likewise.
33819
33820 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
33821
33822 PR target/64623
33823 * config/rs6000/default64.h: Revert ISA change.
33824
33825 2015-01-16 Richard Biener <rguenther@suse.de>
33826
33827 PR middle-end/64614
33828 * tree-ssa-uninit.c: Include tree-cfg.h.
33829 (MAX_SWITCH_CASES): New define.
33830 (convert_control_dep_chain_into_preds): Handle switch statements.
33831 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
33832 (normalize_one_pred_1): Do not split bit-manipulations.
33833 Record (x & CST).
33834
33835 2015-01-16 Richard Biener <rguenther@suse.de>
33836
33837 PR tree-optimization/64568
33838 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
33839 complex load rewriting for TARGET_MEM_REFs.
33840
33841 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
33842
33843 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
33844
33845 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
33846
33847 PR target/64149
33848 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
33849 variable.
33850 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
33851 (aarch64_lra_p): Remove.
33852
33853 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33854
33855 PR target/64363
33856 * ipa-chkp.h (chkp_instrumentable_p): New.
33857 * ipa-chkp.c: Include tree-inline.h.
33858 (chkp_instrumentable_p): New.
33859 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
33860 Fix processing of not instrumentable functions.
33861 (chkp_versioning): Use chkp_instrumentable_p. Warn about
33862 not instrumentable functions.
33863 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
33864 chkp_instrumentable_p.
33865 * tree-inline.h (copy_forbidden): New.
33866 * tree-inline.c (copy_forbidden): Not static anymore.
33867
33868 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33869
33870 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
33871 ptr1, ptr2 unused.
33872
33873 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
33874
33875 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
33876 type OP_OUT to OP_INOUT.
33877
33878 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
33879
33880 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
33881 (high x) y) to y if x and y have the same base.
33882
33883 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33884
33885 * config/arm/cortex-a57.md: New.
33886 * config/aarch64/aarch64.md: Include it.
33887 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
33888 * config/aarch64/aarch64-tune.md: Regenerate.
33889
33890 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
33891
33892 PR target/64015
33893 * ccmp.c (expand_ccmp_next): New function.
33894 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
33895 and compare insn sequence.
33896 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
33897 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
33898 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
33899 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
33900 (*ccmp_ior): Changed to ccmp_ior<mode>.
33901 (cmp<mode>): New pattern.
33902 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
33903 parameters.
33904 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
33905
33906 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
33907
33908 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
33909 _mm256_bsrli_epi128): New.
33910 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
33911
33912 2015-01-15 Jiong Wang <jiong.wang@arm.com>
33913
33914 * expmed.c (store_bit_field_using_insv): Improve warning message.
33915 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
33916
33917 2015-01-15 Jiong Wang <jiong.wang@arm.com>
33918
33919 PR rtl-optimization/64011
33920 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
33921 there is partial overflow.
33922
33923 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33924
33925 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
33926 prototype.
33927 (nds32_expand_epilogue_v3pop): Likewise.
33928 * config/nds32/nds32.md (sibcall): Define this for sibling call
33929 optimization.
33930 (sibcall_register): Likewise.
33931 (sibcall_immediate): Likewise.
33932 (sibcall_value): Likewise.
33933 (sibcall_value_register): Likewise.
33934 (sibcall_value_immediate): Likewise.
33935 (sibcall_epilogue): Likewise.
33936 (epilogue): Pass false to indicate this is not a sibcall epilogue.
33937 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
33938 (nds32_expand_epilogue_v3pop): Likewise.
33939
33940 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33941
33942 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
33943 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
33944 (return_internal): New.
33945 (return): Define this named pattern.
33946 (simple_return): Define this named pattern.
33947 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
33948 pattern instead of unspec_volatile_func_return.
33949 (nds32_expand_epilogue_v3pop): Likewise.
33950 (nds32_can_use_return_insn): New function.
33951
33952 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33953
33954 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
33955 * config/nds32/nds32.md (pop25return): New.
33956 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
33957 pop25return pattern.
33958
33959 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33960
33961 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
33962 -mforbid-fp-as-gp, and -mex9 options.
33963
33964 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33965
33966 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
33967 remove -mgp-direct option.
33968
33969 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33970
33971 * doc/invoke.texi (--param early-inlining-insns): Update default value.
33972 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
33973
33974 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33975
33976 * ipa-inline.c (inline_small_functions): Work around hints
33977 cache issue.
33978
33979 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
33980
33981 PR target/59710
33982 * doc/invoke.texi (Option Summary): Document new Nios II
33983 -mgpopt= syntax.
33984 (Nios II Options): Likewise.
33985 * config/nios2/nios2.opt: Add -mgpopt= option support.
33986 Modify existing -mgpopt and -mno-gpopt options to be aliases.
33987 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
33988 * config/nios2/nios2.c (nios2_option_override): Adjust
33989 -mgpopt defaulting.
33990 (nios2_in_small_data_p): Return true for explicit small data
33991 sections even with -G0.
33992 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
33993 option choices.
33994
33995 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33996
33997 PR ipa/64612
33998 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
33999 of comdat locals.
34000 (inline_call): Fix removal of aliases.
34001
34002 2015-01-15 Jakub Jelinek <jakub@redhat.com>
34003
34004 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
34005 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
34006 * opts.c (common_handle_option): Add -fsanitize=vptr.
34007 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
34008 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
34009 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
34010 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
34011 (ubsan_expand_vptr_ifn): New prototype.
34012 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
34013 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
34014 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
34015 expand_LOOP_VECTORIZED): Make argument nameless, remove
34016 ATTRIBUTE_UNUSED.
34017 (expand_UBSAN_VPTR): New function.
34018 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
34019 in fn spec.
34020 (UBSAN_VPTR): New internal function.
34021 * sanopt.c (tree_map_traits): Renamed to ...
34022 (sanopt_tree_map_traits): ... this.
34023 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
34024 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
34025 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
34026 (maybe_optimize_ubsan_vptr_ifn): New function.
34027 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
34028 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
34029 -fsanitize=vptr.
34030 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
34031 internal calls like pure functions for aliasing, even when they
34032 have other side-effects that prevent making them ECF_PURE.
34033 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
34034 (ubsan_expand_vptr_ifn): New function.
34035
34036 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
34037
34038 PR rtl-optimization/64110
34039 * stmt.c (parse_output_constraint): Process '^' and '$'.
34040 (parse_input_constraint): Ditto.
34041 * lra-constraints.c (process_alt_operands): Process the new
34042 constraints.
34043 * ira-costs.c (record_reg_classes): Process the new constraint
34044 '^'.
34045 * genoutput.c (indep_constraints): Add '^' and '$'.
34046 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
34047 * doc/md.texi: Add description of the new constraints.
34048
34049 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
34050 Bernd Schmidt <bernds@codesourcery.com>
34051 Cesar Philippidis <cesar@codesourcery.com>
34052 James Norris <jnorris@codesourcery.com>
34053 Tom de Vries <tom@codesourcery.com>
34054 Ilmir Usmanov <i.usmanov@samsung.com>
34055 Dmitry Bocharnikov <dmitry.b@samsung.com>
34056 Evgeny Gavrin <e.gavrin@samsung.com>
34057 Jakub Jelinek <jakub@redhat.com>
34058
34059 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
34060 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34061 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34062 New function types.
34063 * builtins.c: Include "gomp-constants.h".
34064 (expand_builtin_acc_on_device): New function.
34065 (expand_builtin, is_inexpensive_builtin): Handle
34066 BUILT_IN_ACC_ON_DEVICE.
34067 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
34068 New macros.
34069 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
34070 flag_openmp.
34071 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
34072 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
34073 i386/intelmic-offload.h.
34074 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
34075 to libgomp and its dependencies.
34076 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
34077 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
34078 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
34079 * config/ia64/hpux.h (LIB_SPEC): Likewise.
34080 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
34081 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
34082 * doc/generic.texi: Update for OpenACC changes.
34083 * doc/gimple.texi: Likewise.
34084 * doc/invoke.texi: Likewise.
34085 * doc/sourcebuild.texi: Likewise.
34086 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
34087 GF_OMP_FOR_KIND_OACC_LOOP.
34088 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
34089 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
34090 GF_OMP_TARGET_KIND_OACC_UPDATE,
34091 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34092 Dump more data.
34093 * gimple.c: Update comments for OpenACC changes.
34094 * gimple.def: Likewise.
34095 * gimple.h: Likewise.
34096 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
34097 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34098 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
34099 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34100 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
34101 appropriate place.
34102 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
34103 * gimplify.c: Include "gomp-constants.h".
34104 Update comments for OpenACC changes.
34105 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
34106 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
34107 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34108 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
34109 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34110 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34111 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
34112 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34113 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
34114 OMP_CLAUSE_SEQ.
34115 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
34116 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
34117 OMP_CLAUSE_SET_MAP_KIND.
34118 (gimplify_oacc_cache): New function.
34119 (gimplify_omp_for): Handle OACC_LOOP.
34120 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
34121 OACC_DATA.
34122 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
34123 OACC_EXIT_DATA, OACC_UPDATE.
34124 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
34125 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
34126 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
34127 (gimplify_body): Consider flag_openacc next to flag_openmp.
34128 * lto-streamer-out.c: Include "gomp-constants.h".
34129 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
34130 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
34131 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
34132 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
34133 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
34134 (BUILT_IN_ACC_ON_DEVICE): New builtins.
34135 * omp-low.c: Include "gomp-constants.h".
34136 Update comments for OpenACC changes.
34137 (struct omp_context): Add reduction_map, gwv_below, gwv_this
34138 members.
34139 (extract_omp_for_data, use_pointer_for_field, install_var_field)
34140 (new_omp_context, delete_omp_context, scan_sharing_clauses)
34141 (create_omp_child_function, scan_omp_for, scan_omp_target)
34142 (check_omp_nesting_restrictions, lower_reduction_clauses)
34143 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
34144 Update for OpenACC changes.
34145 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
34146 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
34147 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
34148 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34149 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
34150 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
34151 OMP_CLAUSE_MAP_*.
34152 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
34153 Handle GF_OMP_FOR_KIND_OACC_LOOP.
34154 (expand_omp_target, lower_omp_target): Handle
34155 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34156 GF_OMP_TARGET_KIND_OACC_UPDATE,
34157 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
34158 GF_OMP_TARGET_KIND_OACC_DATA.
34159 (pass_expand_omp::execute, execute_lower_omp)
34160 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
34161 flag_openmp.
34162 (offload_symbol_decl): New variable.
34163 (oacc_get_reduction_array_id, oacc_max_threads)
34164 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
34165 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
34166 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
34167 (oacc_gimple_assign, oacc_initialize_reduction_data)
34168 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
34169 functions.
34170 (is_targetreg_ctx): Remove function.
34171 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
34172 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
34173 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34174 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
34175 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
34176 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
34177 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
34178 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
34179 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
34180 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
34181 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
34182 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
34183 * tree-core.h: Update comments for OpenACC changes.
34184 (enum omp_clause_map_kind): Remove.
34185 (struct tree_omp_clause): Change type of map_kind member from enum
34186 omp_clause_map_kind to unsigned char.
34187 * tree-inline.c: Update comments for OpenACC changes.
34188 * tree-nested.c: Likewise. Include "gomp-constants.h".
34189 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
34190 (convert_tramp_reference_stmt, convert_gimple_call): Update for
34191 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
34192 OMP_CLAUSE_SET_MAP_KIND.
34193 * tree-pretty-print.c: Include "gomp-constants.h".
34194 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
34195 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
34196 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
34197 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
34198 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34199 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
34200 instead of OMP_CLAUSE_MAP_*.
34201 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
34202 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
34203 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34204 * tree-streamer-in.c: Include "gomp-constants.h".
34205 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
34206 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
34207 * tree-streamer-out.c: Include "gomp-constants.h".
34208 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
34209 OMP_CLAUSE_MAP_*.
34210 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
34211 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
34212 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
34213 * tree.c (omp_clause_num_ops): Update accordingly.
34214 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
34215 Likewise.
34216 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
34217 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
34218 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
34219 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
34220 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
34221 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
34222 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
34223 (OMP_CLAUSE_SET_MAP_KIND): New macro.
34224 * varpool.c (varpool_node::get_create): Consider flag_openacc next
34225 to flag_openmp.
34226 * config/i386/intelmic-offload.h: New file.
34227 * config/nvptx/offload.h: Likewise.
34228
34229 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34230
34231 * explow.h: Remove duplicate contents.
34232 * dojump.h: Likewise.
34233
34234 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
34235
34236 * arm.c (arm_xgene_tune): Add default initializer for instruction
34237 fusion.
34238
34239 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34240
34241 PR ipa/64068
34242 PR ipa/64559
34243 * ipa.c (symbol_table::remove_unreachable_nodes):
34244 Do not put abstract origins into boundary.
34245
34246 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
34247
34248 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
34249 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
34250
34251 2015-01-15 Steve Ellcey <sellcey@mips.com>
34252
34253 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
34254 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
34255 builtins.def, and chkp-builtins.def.
34256
34257 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
34258
34259 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
34260 ISA 2.7 (POWER8).
34261
34262 2015-01-15 Richard Biener <rguenther@suse.de>
34263
34264 PR tree-optimization/61743
34265 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
34266 information on PHIs for some simple cases.
34267
34268 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
34269
34270 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
34271 Include xgene1.md.
34272 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
34273 * config/arm/arm-cores.def (xgene1): New entry.
34274 * config/arm/arm-tables.opt: Regenerate.
34275 * config/arm/arm-tune.md: Regenerate.
34276 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
34277
34278 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34279
34280 * tree-if-conv.c: Include hash-map.h.
34281 (aggressive_if_conv): New variable.
34282 (fold_build_cond_expr): Add simplification of non-zero condition.
34283 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
34284 destination block is not always executed.
34285 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
34286 than two predecessors if AGGRESSIVE_IF_CONV is true.
34287 (if_convertible_stmt_p): Fix commentary.
34288 (all_preds_critical_p): New function.
34289 (has_pred_critical_p): New function.
34290 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
34291 BB can have more than two predecessors and all incoming edges can be
34292 critical.
34293 (predicate_bbs): Skip predication for loop exit block, use build2_loc
34294 to compute predicate for true edge.
34295 (find_phi_replacement_condition): Delete this function.
34296 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
34297 Allow interchange PHI arguments if EXTENDED is false.
34298 Change check that block containing reduction statement candidate
34299 is predecessor of phi-block since phi may have more than two arguments.
34300 (phi_args_hash_traits): New helper structure.
34301 (struct phi_args_hash_traits): New type.
34302 (phi_args_hash_traits::hash): New function.
34303 (phi_args_hash_traits::equal_keys): New function.
34304 (gen_phi_arg_condition): New function.
34305 (predicate_scalar_phi): Add handling of phi nodes with more than two
34306 arguments, delete COND and TRUE_BB arguments, insert body of
34307 find_phi_replacement_condition to predicate ordinary phi nodes.
34308 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
34309 delete call of find_phi_replacement_condition and invoke
34310 predicate_scalar_phi with two arguments.
34311 (insert_gimplified_predicates): Add assert that non-predicated block
34312 don't have statements to insert.
34313 (ifcvt_split_critical_edges): New function.
34314 (ifcvt_split_def_stmt): Likewise.
34315 (ifcvt_walk_pattern_tree): Likewise.
34316 (stmt_is_root_of_bool_pattern): Likewise.
34317 (ifcvt_repair_bool_pattern): Likewise.
34318 (ifcvt_local_dce): Likewise.
34319 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
34320 is copy of inner or outer loop force_vectorize field, invoke
34321 ifcvt_split_critical_edges, ifcvt_local_dce and
34322 ifcvt_repair_bool_pattern for aggressive if-conversion.
34323
34324 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
34325
34326 * config/aarch64/aarch64.md: Include xgene1.md.
34327 * config/aarch64/xgene1.md: New file.
34328
34329 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
34330
34331 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
34332 xgene1 (APM XGene-1) core definition.
34333 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
34334 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
34335 * doc/invoke.texi: Document -mcpu=xgene1.
34336
34337 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34338
34339 * dojump.h: New header file.
34340 * explow.h: Likewise.
34341 * expr.h: Remove includes.
34342 Move expmed.c prototypes to expmed.h.
34343 Move dojump.c prototypes to dojump.h.
34344 Move alias.c prototypes to alias.h.
34345 Move explow.c prototypes to explow.h.
34346 Move calls.c prototypes to calls.h.
34347 Move emit-rtl.c prototypes to emit-rtl.h.
34348 Move varasm.c prototypes to varasm.h.
34349 Move stmt.c prototypes to stmt.h.
34350 (saved_pending_stack_adjust): Move to dojump.h.
34351 (adjust_address): Move to explow.h.
34352 (adjust_address_nv): Move to emit-rtl.h.
34353 (adjust_bitfield_address): Likewise.
34354 (adjust_bitfield_address_size): Likewise.
34355 (adjust_bitfield_address_nv): Likewise.
34356 (adjust_automodify_address_nv): Likewise.
34357 * explow.c (expr_size): Move to expr.c.
34358 (int_expr_size): Likewise.
34359 (tree_expr_size): Likewise.
34360 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34361 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34362 * genemit.c (main): Generate includes statistics.h, real.h,
34363 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
34364 stmt.h.
34365 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
34366 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
34367 explow.h, emit-rtl.h, stmt.h.
34368 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
34369 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
34370 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
34371 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
34372 emit-rtl.h, varasm.h, stmt.h.
34373 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
34374 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
34375 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
34376 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
34377 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34378 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
34379 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
34380 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
34381 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
34382 tm.h tree.h varasm.h vec.h wide-int.h.
34383 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34384 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34385 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
34386 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
34387 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
34388 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
34389 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
34390 * loop-iv.c: Likewise.
34391 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
34392 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
34393 statistics.h stmt.h tree.h varasm.h wide-int.h.
34394 * lra-constraints.c: Likewise.
34395 * lra-eliminations.c: Likewise.
34396 * lra-lives.c: Likewise.
34397 * lra-remat.c: Likewise.
34398 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34399 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
34400 statistics.h stmt.h tree.h varasm.h wide-int.h.
34401 * hw-doloop.c: Likewise.
34402 * ira-color.c: Likewise.
34403 * ira-emit.c: Likewise.
34404 * loop-doloop.c: Likewise.
34405 * loop-invariant.c: Likewise.
34406 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34407 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
34408 statistics.h stmt.h tree.h varasm.h wide-int.h.
34409 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
34410 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
34411 statistics.h stmt.h tree.h varasm.h wide-int.h.
34412 * combine-stack-adj.c: Likewise.
34413 * cse.c: Likewise.
34414 * ddg.c: Likewise.
34415 * ifcvt.c: Likewise.
34416 * ira-costs.c: Likewise.
34417 * jump.c: Likewise.
34418 * lra-coalesce.c: Likewise.
34419 * lra-spills.c: Likewise.
34420 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34421 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
34422 stmt.h varasm.h wide-int.h.
34423 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34424 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34425 varasm.h.
34426 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
34427 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
34428 statistics.h stmt.h varasm.h wide-int.h.
34429 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
34430 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
34431 varasm.h wide-int.h.
34432 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
34433 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34434 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
34435 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
34436 statistics.h stmt.h.
34437 * config/tilepro/tilepro.c: Likewise.
34438 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
34439 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
34440 * config/pdp11/pdp11.c: Likewise.
34441 * config/xtensa/xtensa.c: Likewise.
34442 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
34443 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34444 varasm.h.
34445 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34446 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34447 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
34448 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34449 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34450 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
34451 * rtl-chkp.c: Likewise.
34452 * tree-chkp-opt.c: Likewise.
34453 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
34454 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34455 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
34456 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34457 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34458 statistics.h stmt.h.
34459 * tree-vect-data-refs.c: Likewise.
34460 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
34461 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34462 rtl.h statistics.h stmt.h varasm.h.
34463 * internal-fn.c: Likewise.
34464 * ipa-icf-gimple.c: Likewise.
34465 * lto-section-out.c: Likewise.
34466 * tree-data-ref.c: Likewise.
34467 * tree-nested.c: Likewise.
34468 * tree-outof-ssa.c: Likewise.
34469 * tree-predcom.c: Likewise.
34470 * tree-pretty-print.c: Likewise.
34471 * tree-scalar-evolution.c: Likewise.
34472 * tree-ssa-strlen.c: Likewise.
34473 * tree-vect-loop.c: Likewise.
34474 * tree-vect-patterns.c: Likewise.
34475 * tree-vect-slp.c: Likewise.
34476 * tree-vect-stmts.c: Likewise.
34477 * tsan.c: Likewise.
34478 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34479 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
34480 stmt.h.
34481 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
34482 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34483 statistics.h stmt.h varasm.h.
34484 * loop-unroll.c: Likewise.
34485 * ubsan.c: Likewise.
34486 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
34487 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
34488 stmt.h varasm.h.
34489 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34490 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
34491 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
34492 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34493 statistics.h stmt.h.
34494 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
34495 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34496 statistics.h stmt.h varasm.h.
34497 * gimple-match-head.c: Likewise.
34498 * lto-cgraph.c: Likewise.
34499 * lto-section-in.c: Likewise.
34500 * lto-streamer-in.c: Likewise.
34501 * lto-streamer-out.c: Likewise.
34502 * tree-affine.c: Likewise.
34503 * tree-cfg.c: Likewise.
34504 * tree-cfgcleanup.c: Likewise.
34505 * tree-if-conv.c: Likewise.
34506 * tree-into-ssa.c: Likewise.
34507 * tree-ssa-alias.c: Likewise.
34508 * tree-ssa-copyrename.c: Likewise.
34509 * tree-ssa-dse.c: Likewise.
34510 * tree-ssa-forwprop.c: Likewise.
34511 * tree-ssa-live.c: Likewise.
34512 * tree-ssa-math-opts.c: Likewise.
34513 * tree-ssa-pre.c: Likewise.
34514 * tree-ssa-sccvn.c: Likewise.
34515 * tree-tailcall.c: Likewise.
34516 * tree-vect-generic.c: Likewise.
34517 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34518 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
34519 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34520 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
34521 * varasm.c: Likewise.
34522 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34523 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
34524 varasm.h.
34525 * init-regs.c: Likewise.
34526 * ira.c: Likewise.
34527 * omp-low.c: Likewise.
34528 * stack-ptr-mod.c: Likewise.
34529 * tree-ssa-reassoc.c: Likewise.
34530 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34531 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
34532 varasm.h.
34533 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34534 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
34535 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34536 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
34537 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34538 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
34539 * tree-ssa-phiopt.c: Likewise.
34540 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34541 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34542 * config/fr30/fr30.c: Likewise.
34543 * config/frv/frv.c: Likewise.
34544 * expr.c: Likewise.
34545 * final.c: Likewise.
34546 * optabs.c: Likewise.
34547 * passes.c: Likewise.
34548 * simplify-rtx.c: Likewise.
34549 * stmt.c: Likewise.
34550 * toplev.c: Likewise.
34551 * var-tracking.c: Likewise.
34552 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34553 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34554 * lower-subreg.c: Likewise.
34555 * postreload-gcse.c: Likewise.
34556 * ree.c: Likewise.
34557 * reginfo.c: Likewise.
34558 * store-motion.c: Likewise.
34559 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34560 fixed-value.h hashtab.h real.h stmt.h varasm.h.
34561 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34562 fixed-value.h hashtab.h statistics.h stmt.h.
34563 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34564 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34565 * except.c: Likewise.
34566 * explow.c: Likewise.
34567 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34568 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
34569 varasm.h.
34570 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34571 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
34572 * tree-ssa-structalias.c: Likewise.
34573 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34574 fixed-value.h insn-config.h real.h statistics.h.
34575 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34576 fixed-value.h insn-config.h real.h statistics.h stmt.h.
34577 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34578 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34579 * cfgbuild.c: Likewise.
34580 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34581 fixed-value.h real.h rtl.h statistics.h stmt.h.
34582 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34583 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34584 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34585 fixed-value.h real.h statistics.h stmt.h.
34586 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34587 fixed-value.h real.h statistics.h stmt.h varasm.h.
34588 * cprop.c: Likewise.
34589 * modulo-sched.c: Likewise.
34590 * postreload.c: Likewise.
34591 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34592 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
34593 statistics.h stmt.h varasm.h.
34594 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
34595 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34596 rtl.h statistics.h stmt.h varasm.h.
34597 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
34598 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
34599 varasm.h.
34600 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34601 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
34602 varasm.h.
34603 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
34604 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
34605 varasm.h.
34606 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
34607 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34608 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34609 function.h real.h statistics.h stmt.h varasm.h.
34610 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34611 insn-config.h real.h statistics.h stmt.h.
34612 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34613 statistics.h stmt.h.
34614 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
34615 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
34616 statistics.h stmt.h varasm.h.
34617 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
34618 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
34619 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34620 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
34621 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
34622 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34623 statistics.h stmt.h varasm.h.
34624 * ipa-polymorphic-call.c: Likewise.
34625 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
34626 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34627 statistics.h stmt.h.
34628 * config/c6x/c6x.c: Likewise.
34629 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
34630 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34631 statistics.h stmt.h varasm.h.
34632 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
34633 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
34634 stmt.h varasm.h.
34635 * ipa-split.c: Likewise.
34636 * tree-eh.c: Likewise.
34637 * tree-ssa-dce.c: Likewise.
34638 * tree-ssa-loop-niter.c: Likewise.
34639 * tree-vrp.c: Likewise.
34640 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
34641 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
34642 stmt.h.
34643 * config/nds32/nds32-fp-as-gp.c: Likewise.
34644 * config/nds32/nds32-intrinsic.c: Likewise.
34645 * config/nds32/nds32-isr.c: Likewise.
34646 * config/nds32/nds32-md-auxiliary.c: Likewise.
34647 * config/nds32/nds32-memory-manipulation.c: Likewise.
34648 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
34649 * config/nds32/nds32-predicates.c: Likewise.
34650 * config/nds32/nds32.c: Likewise.
34651 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
34652 fixed-value.h hashtab.h real.h statistics.h.
34653 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
34654 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34655 * config/arm/arm.c: Likewise.
34656 * config/avr/avr.c: Likewise.
34657 * config/bfin/bfin.c: Likewise.
34658 * config/h8300/h8300.c: Likewise.
34659 * config/i386/i386.c: Likewise.
34660 * config/ia64/ia64.c: Likewise.
34661 * config/iq2000/iq2000.c: Likewise.
34662 * config/m32c/m32c.c: Likewise.
34663 * config/m32r/m32r.c: Likewise.
34664 * config/m68k/m68k.c: Likewise.
34665 * config/mcore/mcore.c: Likewise.
34666 * config/mep/mep.c: Likewise.
34667 * config/mips/mips.c: Likewise.
34668 * config/mn10300/mn10300.c: Likewise.
34669 * config/moxie/moxie.c: Likewise.
34670 * config/pa/pa.c: Likewise.
34671 * config/rl78/rl78.c: Likewise.
34672 * config/rx/rx.c: Likewise.
34673 * config/s390/s390.c: Likewise.
34674 * config/sh/sh.c: Likewise.
34675 * config/sparc/sparc.c: Likewise.
34676 * config/spu/spu.c: Likewise.
34677 * config/stormy16/stormy16.c: Likewise.
34678 * config/v850/v850.c: Likewise.
34679 * config/vax/vax.c: Likewise.
34680 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
34681 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34682 * config/msp430/msp430.c: Likewise.
34683 * predict.c: Likewise.
34684 * value-prof.c: Likewise.
34685 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
34686 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
34687 * config/microblaze/microblaze.c: Likewise.
34688 * config/nios2/nios2.c: Likewise.
34689 * config/rs6000/rs6000.c: Likewise.
34690 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34691 insn-config.h real.h rtl.h statistics.h stmt.h.
34692 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34693 insn-config.h real.h statistics.h stmt.h.
34694 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
34695 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34696 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
34697 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34698 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
34699 fixed-value.h real.h statistics.h stmt.h.
34700 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
34701 fixed-value.h statistics.h stmt.h.
34702 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
34703 stmt.h.
34704
34705 2015-01-15 Jakub Jelinek <jakub@redhat.com>
34706
34707 * gengtype.c (create_user_defined_type): Workaround
34708 -Wmaybe-uninitialized false positives.
34709 * cse.c (fold_rtx): Likewise.
34710 * loop-invariant.c (gain_for_invariant): Likewise.
34711
34712 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
34713
34714 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
34715 set the memory attributes in all cases but clear MEM_EXPR if need be.
34716
34717 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34718
34719 PR tree-optimization/64434
34720 * cfgexpand.c (reorder_operands): New function.
34721 (expand_gimple_basic_block): Insert call of reorder_operands if
34722 optimized is true.
34723
34724 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
34725
34726 * config/mips/micromips.md (*swp): Remove explicit parallel.
34727 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
34728 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
34729 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
34730 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
34731 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
34732 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
34733 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
34734 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
34735 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
34736 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
34737 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
34738 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
34739 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
34740 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
34741 (mips_wrdsp): Likewise.
34742 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
34743 parallel.
34744 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
34745 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
34746 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
34747 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
34748 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
34749 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
34750 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
34751 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
34752 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
34753
34754 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34755
34756 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
34757 (mips_print_operand): Support 'y' to print exact log2 in decimal
34758 of a const_int.
34759 * config/mips/mips.h (ISA_HAS_LSA): New define.
34760 (ISA_HAS_DLSA): Likewise.
34761 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
34762 * config/mips/predicates.md (const_immlsa_operand): New predicate.
34763
34764 2015-01-15 Martin Liska <mliska@suse.cz>
34765
34766 PR target/64377
34767 * optc-save-gen.awk: Add support for array types.
34768
34769 2015-01-15 Richard Biener <rguenther@suse.de>
34770
34771 PR middle-end/64365
34772 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
34773 for MEM_REF access functions with the same base can never partially
34774 overlap.
34775
34776 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
34777
34778 * common.opt: New option -fstack-protector-explicit.
34779 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
34780 (stack_protect_decl_phase): Handle stack_protect attribute for
34781 explicit stack protection requests.
34782 (expand_used_vars): Similarly.
34783 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
34784 * doc/extend.texi: Add documentation for "stack_protect" attribute.
34785 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
34786
34787 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
34788
34789 PR target/53988
34790 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
34791 reg-reg copies.
34792 (sh_extending_set_of_reg): New struct.
34793 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
34794 sh_remove_reg_dead_or_unused_notes): New Declarations.
34795 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
34796 sh_find_extending_set_of_reg, sh_split_tst_subregs,
34797 sh_extending_set_of_reg::use_as_extended_reg): New functions.
34798 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
34799 convert to insn_and_split and use new function sh_split_tst_subregs.
34800
34801 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
34802
34803 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
34804 option.
34805 (Optimization Options): Move -fuse-ld documentation to...
34806 (Link Options): ...here.
34807
34808 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34809
34810 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
34811 offsets.
34812 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
34813 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
34814 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
34815 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
34816 instead of ZR for the memory operand of LL/SC.
34817 (compare_and_swap_12, sync_add<mode>): Likewise.
34818 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
34819 (sync_new_<optab>_12, sync_nand_12): Likewise.
34820 (sync_old_nand_12, sync_new_nand_12): Likewise.
34821 (sync_sub<mode>, sync_old_add<mode>): Likewise.
34822 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
34823 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
34824 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
34825 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
34826 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
34827 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
34828 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
34829 * doc/md.texi (ZC): Update description.
34830
34831 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34832
34833 * builtins.c (expand_builtin_atomic_exchange): Remove error when
34834 memory model is CONSUME.
34835 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
34836 expand_builtin_atomic_store): Change invalid memory model errors to
34837 warnings.
34838 (expand_builtin_atomic_clear): Change invalid model errors to warnings
34839 and issue warning for CONSUME.
34840
34841 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
34842
34843 * lto-cgraph: Update function comments for
34844 lto_symtab_encoder_encode_*.
34845
34846 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34847
34848 * Makefile.in (site.exp): Do not set ENABLE_LTO.
34849
34850 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34851
34852 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
34853 * lto-cgraph.c (select_what_to_stream): Remove argument, use
34854 lto_stream_offload_p instead.
34855 * lto-streamer.h (select_what_to_stream): Remove argument.
34856 * passes.c (ipa_write_summaries): Likewise.
34857 * tree-pass.h (ipa_write_summaries): Likewise.
34858
34859 2015-01-14 Richard Biener <rguenther@suse.de>
34860
34861 PR tree-optimization/59354
34862 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
34863 groups larger than the slp group size as having gaps.
34864
34865 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34866
34867 PR middle-end/59448
34868 * builtins.c (get_memmodel): Promote consume to acquire always.
34869
34870 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34871
34872 PR target/64386
34873 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
34874 V32HImode.
34875
34876 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34877
34878 PR target/64393
34879 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
34880 Enable AVX512BW.
34881 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
34882 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
34883 AVX512VBMI, as it implies AVX512BW.
34884
34885 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34886
34887 PR target/64387
34888 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
34889 (vec_unpacks_hi_v16sf): Ditto.
34890
34891 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34892
34893 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
34894 is not available.
34895
34896 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34897
34898 * doc/invoke.texi (mapcs): Mention deprecation.
34899 (mapcs-frame): Likewise.
34900
34901 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
34902
34903 PR target/64453
34904 * config/arm/arm.c (callee_saved_reg_p): Define.
34905 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
34906 register is callee saved instead of !call_used_regs[reg].
34907 (thumb1_compute_save_reg_mask): Likewise.
34908
34909 2015-01-14 Hale Wang <hale.wang@arm.com>
34910
34911 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
34912 Cortex-M7.
34913
34914 2015-01-14 Richard Biener <rguenther@suse.de>
34915
34916 PR lto/64415
34917 * tree-inline.c (insert_debug_decl_map): Check destination
34918 function MAY_HAVE_DEBUG_STMTS.
34919 (insert_init_debug_bind): Likewise.
34920 (insert_init_stmt): Remove redundant check.
34921 (remap_gimple_stmt): Drop debug stmts if the destination
34922 function has var-tracking assignments disabled.
34923
34924 2015-01-14 Martin Liska <mliska@suse.cz>
34925
34926 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
34927 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
34928
34929 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34930
34931 PR target/64460
34932 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
34933 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
34934
34935 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34936
34937 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
34938 level from an ARCH; do not inject the default.
34939 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
34940 MIPS_ISA_LEVEL_SPEC.
34941 (MIPS_ISA_NAN2008_SPEC): Update comment.
34942 (BASE_DRIVER_SELF_SPECS): Likewise.
34943 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
34944 MIPS_DEFAULT_ISA_LEVEL_SPEC.
34945 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
34946 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
34947 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
34948
34949 2015-01-14 Richard Biener <rguenther@suse.de>
34950
34951 PR tree-optimization/64493
34952 PR tree-optimization/64495
34953 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
34954 assign the proper vectorized PHI to the inner loop exit PHIs.
34955
34956 2015-01-14 Joey Ye <joey.ye@arm.com>
34957
34958 * config/arm/arm.c (arm_compute_save_reg_mask):
34959 Do not save lr in case of tail call.
34960 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
34961
34962 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
34963
34964 * tree-vrp.c (check_array_ref): Emit more warnings
34965 for warn_array_bounds >= 2.
34966 * common.opt: New option -Warray-bounds=.
34967 * doc/invoke.texi: Document -Warray-bounds=.
34968
34969 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
34970
34971 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
34972 (mforbid-fp-as-gp): Remove.
34973 (mex9): Remove.
34974 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
34975 (nds32_symbol_load_store_p): Remove.
34976 (nds32_fp_as_gp_check_available): Clean up implementation.
34977 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
34978 cases.
34979 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
34980 fp-as-gp and ex9 cases.
34981
34982 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34983
34984 * tree-profile.c (init_ic_make_global_vars): Drop workaround
34985 for bintuils bug 14342.
34986 (init_ic_make_global_vars): Likewise.
34987 (gimple_init_edge_profiler): Likewise.
34988 (gimple_gen_ic_func_profiler): Likewise.
34989
34990 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34991
34992 * ipa-inline.c (inline_small_functions): Swap the operands in
34993 enum.
34994
34995 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34996
34997 PR ipa/64481
34998 * ipa-inline-analysis.c (node_growth_cache): Remove.
34999 (initialize_growth_caches): Do not initialize it.
35000 (free_growth_caches): Do not free it.
35001 (do_estimate_growth): Rename to ...
35002 (estimate_growth): ... this one; drop growth cache code.
35003 (growth_likely_positive): Always go the heuristics way.
35004 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
35005 (reset_edge_caches): Do not reset node growth.
35006 (heap_edge_removal_hook): Do not maintain cache.
35007 (inline_small_functions): Likewise; strenghten sanity check.
35008 (ipa_inline): Do not maintain caches.
35009 * ipa-inline.h (node_growth_cache): Remove.
35010 (do_estimate_growth): Remove to ...
35011 (estimate_growth): this one; remove inline version.
35012 (reset_node_growth_cache): Remove.
35013
35014 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
35015
35016 PR ipa/64565
35017 * ipa-inline.c (inline_small_functions): Update callee keys after
35018 resolving speculation
35019 (inline_small_functions): Always check monotonicity of the queue.
35020
35021 2015-01-13 Marek Polacek <polacek@redhat.com>
35022
35023 PR middle-end/64391
35024 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
35025
35026 2015-01-13 Jakub Jelinek <jakub@redhat.com>
35027
35028 PR rtl-optimization/64286
35029 * ree.c (combine_reaching_defs): Move part of comment earlier,
35030 remove !SCALAR_INT_MODE_P check.
35031 (add_removable_extension): Don't add vector mode
35032 extensions if all uses of the source register aren't the same
35033 vector extensions.
35034
35035 2015-01-13 Renlin Li <renlin.li@arm.com>
35036
35037 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
35038 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
35039
35040 2015-01-13 Martin Liska <mliska@suse.cz>
35041
35042 * ipa-icf.c (sem_function::equals_private): Call new functions
35043 cl_target_option_print_diff and cl_optimization_print_diff.
35044 * optc-save-gen.awk (cl_target_option_print_diff): New function.
35045 (cl_optimization_print_diff): Likewise.
35046 * opth-gen.awk: Likewise.
35047
35048 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
35049
35050 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
35051 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
35052 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
35053 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
35054 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
35055 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
35056
35057 2015-01-13 Andrew Pinski <apinski@cavium.com>
35058
35059 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
35060 instead of src mode.
35061
35062 2015-01-13 Richard Biener <rguenther@suse.de>
35063
35064 PR lto/64373
35065 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
35066 DECL_CONTEXT.
35067
35068 2015-01-13 Andrew Pinski <apinski@cavium.com>
35069
35070 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
35071 volatile mems.
35072 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
35073
35074 2015-01-13 Jakub Jelinek <jakub@redhat.com>
35075
35076 PR middle-end/63974
35077 * cfgexpand.c (expand_computed_goto): Don't call
35078 convert_memory_address here.
35079
35080 2015-01-13 Richard Biener <rguenther@suse.de>
35081
35082 PR tree-optimization/64406
35083 * tree-loop-distibution.c (pass_loop_distribution::execute):
35084 Reset the SCEV hashtable if we distributed anything.
35085
35086 2015-01-13 Richard Biener <rguenther@suse.de>
35087
35088 PR tree-optimization/64404
35089 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
35090 SLP types for CSEd loads.
35091
35092 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35093
35094 PR tree-optimization/64436
35095 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
35096 merge of two symbolic numbers for a bitwise OR to ...
35097 (perform_symbolic_merge): This. Also fix computation of the range and
35098 end of the symbolic number corresponding to the result of a bitwise OR.
35099
35100 2015-01-13 Richard Biener <rguenther@suse.de>
35101
35102 PR tree-optimization/64568
35103 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
35104 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
35105
35106 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35107
35108 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
35109 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
35110
35111 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35112
35113 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
35114 target-specific symbol_ref flag.
35115 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
35116 resides in rodata section.
35117 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
35118 (nds32_encode_section_info): New function.
35119
35120 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35121
35122 * config/nds32/nds32.md (call): Use pseudo instruction bal which
35123 clobbers TA_REGNUM if large code model is specified.
35124 (call_register): Likewise.
35125 (call_immediate): Likewise.
35126 (call_value): Likewise.
35127 (call_value_register): Likewise.
35128 (call_value_immediate): Likewise.
35129
35130 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35131
35132 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
35133 (TARGET_CMODEL_MEDIUM): New macro.
35134 (TARGET_CMODEL_LARGE): New macro.
35135 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
35136 code model setting in assembly code.
35137
35138 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35139
35140 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
35141 Remove MASK_GP_DIRECT flag.
35142 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
35143 one of the multilib default options.
35144 * config/nds32/nds32.opt (mgp-direct): Remove.
35145 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
35146 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
35147
35148 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35149
35150 * config/nds32/nds32.opt (mcmodel): Add new option.
35151 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
35152 to describe code model.
35153
35154 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
35155
35156 PR target/64479
35157 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
35158
35159 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
35160
35161 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
35162 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
35163 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
35164 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
35165 __builtin_sh_set_fpscr.
35166
35167 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
35168
35169 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
35170 after a funtion name just to indicate it is a function.
35171 ([-fsanitize-undefined-trap-on-error]): Likewise.
35172 ([-fdbg-cnt=]): Likewise.
35173 ([-mmemcpy]): Likewise.
35174 ([-mflush-func]): Likewise.
35175 ([-msynci]): Likewise.
35176
35177 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
35178
35179 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
35180 example.
35181
35182 2015-01-12 Jakub Jelinek <jakub@redhat.com>
35183
35184 PR tree-optimization/64563
35185 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
35186 instead of != VR_VARYING.
35187
35188 PR target/64513
35189 * config/i386/i386.c (ix86_expand_prologue): Add
35190 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
35191
35192 PR tree-optimization/64454
35193 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
35194 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
35195 for signed or [0, op1 - 1] for unsigned modulo.
35196 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
35197 even if op1 does not satisfy integer_pow2p.
35198
35199 PR other/64370
35200 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
35201
35202 2015-01-12 Jeff Law <law@redhat.com>
35203
35204 PR target/64461
35205 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
35206 (trunchiqi2, truncsihi2): Similarly.
35207
35208 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
35209 rather than calling F.
35210
35211 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
35212
35213 * tsan.c (instrument_expr): Use force_gimple_operand.
35214 Use may_be_nonaddressable_p instead of is_gimple_addressable.
35215
35216 2015-01-12 Richard Biener <rguenther@suse.de>
35217
35218 PR tree-optimization/64530
35219 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
35220 back dr1.
35221
35222 2015-01-12 Richard Biener <rguenther@suse.de>
35223
35224 PR middle-end/64357
35225 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
35226 latches properly.
35227
35228 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35229
35230 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
35231 Cortex-A17 tuning parameters.
35232 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
35233
35234 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35235
35236 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
35237 * config/arm/arm.c (arm_macro_fusion_p): New function.
35238 (arm_macro_fusion_pair_p): Likewise.
35239 (TARGET_SCHED_MACRO_FUSION_P): Define.
35240 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
35241 (ARM_FUSE_NOTHING): Likewise.
35242 (ARM_FUSE_MOVW_MOVT): Likewise.
35243 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
35244 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
35245 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
35246 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
35247 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
35248 arm_cortex_a5_tune): Specify fuseable_ops value.
35249
35250 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
35251
35252 PR bootstrap/64561
35253 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
35254 test for PIE with copy reloc.
35255 * configure: Regenerated.
35256
35257 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35258
35259 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
35260 in gen_rtx_REG.
35261 (arm_tls_descseq_addr): Likewise.
35262 (arm_gen_movmemqi): Likewise.
35263 (arm_expand_epilogue_apcs_frame): Likewise.
35264 (arm_expand_epilogue): Likewise.
35265 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
35266 in gen_rtx_REG.
35267
35268 2015-01-12 Martin Liska <mliska@suse.cz>
35269
35270 PR ipa/64550
35271 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
35272 volatility for correct operands.
35273
35274 2015-01-12 Martin Liska <mliska@suse.cz>
35275
35276 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
35277 indication that a function is not leaf.
35278 (sem_function::compare_polymorphic_p): Likewise.
35279
35280 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35281
35282 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
35283 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
35284 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
35285 fold-const.h, tree-check.h.
35286
35287 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
35288
35289 PR ipa/63967
35290 PR ipa/64425
35291 * ipa-inline.c (compute_uninlined_call_time,
35292 compute_inlined_call_time): Use counts for extra precision when
35293 needed possible.
35294 (big_speedup_p): Fix formating.
35295 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
35296 (relative_time_benefit): Remove.
35297 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
35298 merge guessed and read profile paths.
35299 (inline_small_functions): Count only !optimize_size functions into
35300 initial size; be more lax about sanity check when profile is used;
35301 be sure to update inlined function profile when profile is read.
35302
35303 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
35304
35305 PR ipa/63470
35306 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
35307 cost when edge becomes direct.
35308 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
35309 is resolved or when introducing new speculation.
35310
35311 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
35312
35313 PR ipa/64551
35314 PR ipa/64552
35315 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
35316 '||' to fix typo issue.
35317
35318 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
35319 accept and return NULL.
35320
35321 2015-01-12 Martin Liska <mliska@suse.cz>
35322
35323 * cgraph.c (cgraph_edge::remove_callee): Move function to header
35324 file for being inlined.
35325 (cgraph_set_edge_callee): Delete.
35326 (cgraph_edge::redirect_callee): Move function to header file
35327 for being inlined.
35328 (cgraph_edge::make_direct): Use new function.
35329 (cgraph_edge::dump_edge_flags): New function created from
35330 static dump_edge_flags function.
35331 (cgraph_node::dump): Use new function.
35332 (cgraph_edge::verify_count_and_frequency): New function created
35333 from verify_edge_count_and_frequency.
35334 (cgraph_edge::verify_corresponds_to_fndecl): New function created
35335 from verify_edge_corresponds_to_fndecl.
35336 (verify_edge_corresponds_to_fndecl): Delete.
35337 (cgraph_node::verify_node): Use new function.
35338 * cgraph.h (cgraph_edge::set_callee): New function.
35339 (cgraph_edge::dump_edge_flags): Likewise.
35340 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
35341
35342 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
35343
35344 * ipa-utils.c (estimate_function_body_sizes): Do not
35345 free node params when called late with early=true.
35346
35347 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
35348
35349 * doc/md.texi (Instruction Patterns): Rewrite text for
35350 clarity.
35351 (Example): Likewise.
35352
35353 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
35354
35355 * doc/invoke.texi (Option Summary): Break long lines.
35356 [(-fdiagnostics-color)]: Put long literal in @smallexample
35357 instead of inline.
35358 [(-fsanitize-recover)]: Likewise.
35359 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
35360 [(-ffast-math)]: Likewise.
35361 [(--param max-inline-insns-recursive)]: Likewise.
35362 [(--param max-inline-recursive-depth)]: Likewise.
35363 [(-mno-text-section-literals)]: Likewise.
35364
35365 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
35366
35367 * doc/install.texi: Update for libgomp being renamed from "GNU
35368 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
35369 Runtime Library".
35370 * doc/sourcebuild.texi: Likewise.
35371
35372 2015-01-10 Anthony Green <green@moxielogic.com>
35373
35374 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
35375 mul.x availability for moxiebox configuration.
35376
35377 2015-01-09 Anthony Green <green@moxielogic.com>
35378
35379 * config/moxie/moxie.md: Tabify assembly output.
35380
35381 2015-01-09 Anthony Green <green@moxielogic.com>
35382
35383 * config/moxie/moxie.md (CC_REG): Correct register definition.
35384
35385 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
35386
35387 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
35388 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
35389 of log files.
35390
35391 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35392
35393 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
35394
35395 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
35396 Jakub Jelinek <jakub@redhat.com>
35397
35398 PR middle-end/64412
35399 * lto-streamer.h (lto_stream_offload_p): New declaration.
35400 * lto-streamer.c (lto_stream_offload_p): New variable.
35401 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
35402 at the same time as section_name_prefix.
35403 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
35404 if lto_stream_offload_p.
35405 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
35406 stream TREE_TARGET_OPTION if lto_stream_offload_p.
35407 (write_ts_function_decl_tree_pointers): Don't
35408 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
35409 * tree-streamer-in.c (unpack_value_fields): Don't stream
35410 TREE_TARGET_OPTION in if ACCEL_COMPILER.
35411 (lto_input_ts_function_decl_tree_pointers): Don't stream
35412 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
35413 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
35414 instead of section_name_prefix string comparisons.
35415
35416 2015-01-09 Jakub Jelinek <jakub@redhat.com>
35417
35418 PR rtl-optimization/64536
35419 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
35420 tablejumps.
35421
35422 2015-01-09 Michael Collison <michael.collison@linaro.org>
35423
35424 PR tree-optimization/64322
35425 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
35426 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
35427
35428 2015-01-09 Tom de Vries <tom@codesourcery.com>
35429
35430 PR rtl-optimization/64539
35431 * regcprop.c (kill_clobbered_values): Factor out of ...
35432 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
35433 instead of note_stores with kill_clobbered_value.
35434
35435 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35436
35437 * ginclude/unwind-arm-common.h: Revert previous commit.
35438
35439 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35440
35441 * config.gcc (arm*-*-freebsd*): New configuration.
35442 * config/arm/freebsd.h: New file.
35443 * config.host: Add extra components for arm*-*-freebsd*.
35444 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
35445 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
35446
35447 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35448
35449 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
35450 for -mcpu=e6500.
35451 * config/rs6000/t-rtems: Add e6500 multilibs.
35452
35453 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35454
35455 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
35456 MPC8540.
35457
35458 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35459
35460 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
35461 MULTILIB_EXCEPTIONS.
35462
35463 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35464
35465 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
35466 MULTILIB_EXCEPTIONS.
35467
35468 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35469
35470 * config/arm/t-rtems-eabi: Rename to...
35471 * config/arm/t-rtems: ...this.
35472 * config/arm/rtems-eabi.h: Rename to...
35473 * config/arm/rtems.h: ...this.
35474 * config.gcc (arm*-*-rtems*): Reflect changes above.
35475
35476 2015-01-09 Richard Biener <rguenther@suse.de>
35477
35478 PR tree-optimization/64410
35479 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
35480 on the LHS.
35481 (execute_update_addresses_taken): Deal with that.
35482 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
35483 loads/stores for complex variables.
35484
35485 2015-01-09 Martin Liska <mliska@suse.cz>
35486
35487 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
35488 name comparison.
35489 (func_checker::compare_memory_operand): New function.
35490 (func_checker::compare_operand): Split case to newly
35491 added functions.
35492 (func_checker::compare_cst_or_decl): New function.
35493 (func_checker::compare_gimple_call): Identify
35494 memory operands.
35495 (func_checker::compare_gimple_assign): Likewise.
35496 * ipa-icf-gimple.h: New function.
35497
35498 2015-01-09 Martin Liska <mliska@suse.cz>
35499
35500 PR ipa/64503
35501 * sreal.c (sreal::dump): Change unsigned format to signed for
35502 m_exp value.
35503 (sreal::to_double): Replace exp2 with scalbln.
35504
35505 2015-01-09 Martin Liska <mliska@suse.cz>
35506
35507 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
35508 * ipa-icf.c (sem_function::equals_private): Add support for target and
35509 (sem_item_optimizer::merge_classes): Remove redundant function
35510 optimization flags comparison.
35511 * tree.h (target_opts_for_fn): New function.
35512
35513 2015-01-09 Tom de Vries <tom@codesourcery.com>
35514
35515 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
35516
35517 2015-01-09 Kito Cheng <kito@0xlab.org>
35518
35519 PR rtl-optimization/64348
35520 * lra-constraints.c (split_reg): Fix caller-save store/restore
35521 instruction generation.
35522
35523 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
35524
35525 PR gcov-profile/61790
35526 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
35527 long long. Fallback to int64_t if host doesn't have long long and
35528 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
35529
35530 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35531
35532 PR tree-optimization/63989
35533 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
35534 from 1000 to 10000.
35535 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
35536 (get_stridx): If we don't have a record for certain SSA_NAME,
35537 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
35538 constant offset, call get_stridx_plus_constant.
35539 (get_stridx_plus_constant): New function.
35540 (zero_length_string): Don't use get_stridx here.
35541
35542 PR target/55023
35543 PR middle-end/64388
35544 * dse.c (struct insn_info): Mention frame_read set also
35545 before reload for tail calls on some targets.
35546 (scan_insn): Revert 2014-12-22 change. Set frame_read
35547 also before reload for tail calls if
35548 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
35549 instead of add_non_frame_wild_read for non-const/memset
35550 tail calls after reload.
35551
35552 2015-01-08 Jason Merrill <jason@redhat.com>
35553
35554 * ubsan.c (do_ubsan_in_current_function): New.
35555 (pass_ubsan::gate): Use it.
35556 * ubsan.h: Declare it.
35557 * convert.c (convert_to_integer): Use it.
35558
35559 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35560
35561 PR target/64338
35562 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
35563 compare_code when it is unconditionally overwritten afterwards.
35564 Use ix86_reverse_condition instead of reverse_condition. Don't
35565 change code if *reverse_condition* returned UNKNOWN and don't
35566 swap ct/cf and negate diff in that case.
35567
35568 2015-01-08 Mike Stump <mikestump@comcast.net>
35569
35570 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
35571 (pass_tsan_O0::gate): Likewise.
35572 * extend.texi (Function Attributes): Add no_sanitize_thread
35573 documentation.
35574
35575 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
35576
35577 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
35578 for registering builtins.
35579 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
35580 add -fopenmp to the argv_obstack used when invoking
35581 compile_for_target.
35582
35583 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
35584 add "-m32" or "-m64" to argv_obstack.
35585 (generate_host_descr_file): Likewise, when invoking host_compiler.
35586 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
35587 ld.
35588
35589 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
35590
35591 * config/sh/sh-mem.cc: Use constant as second operand when emitting
35592 tstsi_t insns.
35593
35594 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
35595
35596 PR target/55212
35597 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
35598 constant load if constant operand fits into I08.
35599
35600 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35601
35602 PR sanitizer/64336
35603 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
35604 and TREE_THIS_VOLATILE for MEM_REFs.
35605 (build5_stat): Fix up initialization of TREE_READONLY and
35606 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
35607
35608 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
35609
35610 PR target/64533
35611 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
35612 of r for the second alternative of the destination operand.
35613
35614 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
35615
35616 PR target/36557
35617 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
35618
35619 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35620
35621 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
35622 keywords.
35623 ([-fivar-visibility], [-fvisibility]): Likewise.
35624
35625 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35626
35627 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
35628 the file where @code, @command, etc is more appropriate.
35629
35630 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
35631
35632 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
35633 of -mrecip= documentation.
35634
35635 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35636
35637 PR target/64505
35638 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
35639 correct reload handler if -m32 -mpowerpc64 is used.
35640
35641 2015-01-06 Tom de Vries <tom@codesourcery.com>
35642
35643 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
35644
35645 2015-01-08 Christian Bruel <christian.bruel@st.com>
35646
35647 PR target/64507
35648 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
35649
35650 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
35651
35652 PR tree-optimization/63259
35653 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
35654 if optab exists for 16bit byteswap.
35655
35656 2015-01-06 Jakub Jelinek <jakub@redhat.com>
35657
35658 * opts.c (common_handle_option): Add support for
35659 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
35660 * doc/invoke.texi: Document -fno-sanitize=all,
35661 -f{,no-}sanitize-recover=all. Document that
35662 -fsanitize=float-cast-overflow is not enabled
35663 by -fsanitize=undefined. Fix up documentation
35664 of -f{,no-}sanitize-recover.
35665
35666 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
35667
35668 * config.gcc: Add Visium support.
35669 * configure.ac: Likewise.
35670 * configure: Regenerate.
35671 * doc/extend.texi (interrupt attribute): Add Visium.
35672 * doc/invoke.texi: Document Visium options.
35673 * doc/install.texi: Document Visium target.
35674 * doc/md.texi: Document Visium constraints.
35675 * common/config/visium: New directory.
35676 * config/visium: Likewise.
35677
35678 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35679
35680 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
35681 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
35682
35683 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35684
35685 * combine.c (combine_validate_cost): Do not count the cost of a
35686 split I2 twice. Do not display it twice in the dump, either.
35687
35688 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35689
35690 Revert parts of r219199.
35691 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
35692 <inttypes.h>.
35693 ([-Wtraditional]): Restore markup on <limits.h>.
35694
35695 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
35696
35697 PR c++/31397
35698 * doc/invoke.texi: Document -Wsuggest-override.
35699
35700 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
35701
35702 PR rtl-optimization/64287
35703 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
35704 (process_options): Disable flag_ipa_ra if profiling.
35705
35706 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
35707
35708 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
35709
35710 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
35711
35712 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
35713 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
35714 put under #if TARGET_LOOPS guard.
35715
35716 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
35717
35718 * config/i386/i386.c (output_387_binary_op): Use std::swap.
35719
35720 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
35721
35722 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
35723 * rtl.h (refers_to_regno_p): Add overload.
35724 * cse.c: Use it.
35725 * bt-load.c: Likewise.
35726 * combine.c: Likewise.
35727 * df-scan.c: Likewise.
35728 * sched-deps.c: Likewise.
35729 * config/s390/s390.c: Likewise.
35730 * config/m32r/m32r.c: Likewise.
35731 * config/rs6000/spe.md: Likewise.
35732 * config/rs6000/rs6000.c: Likewise.
35733 * config/pa/pa.c: Likewise.
35734 * config/stormy16/stormy16.c: Likewise.
35735 * config/cris/cris.c: Likewise.
35736 * config/arc/arc.md: Likewise.
35737 * config/arc/arc.c: Likewise.
35738 * config/sh/sh.md: Likewise.
35739 * config/sh/sh.c: Likewise.
35740 * config/frv/frv.c: Likewise.
35741
35742 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35743
35744 PR sanitizer/64265
35745 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
35746 call as cleanup of the whole body.
35747 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
35748 * tsan.c (replace_func_exit): New function.
35749 (instrument_func_exit): Moved earlier.
35750 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
35751 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
35752 been found.
35753 (tsan_pass): Don't call instrument_func_exit.
35754 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
35755 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
35756 inlining.
35757
35758 PR sanitizer/64344
35759 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
35760 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
35761 it to libubsan handler instead of EXPR. Fold comparisons earlier,
35762 if the result is integer_zerop, return NULL_TREE.
35763 * convert.c (convert_to_integer): Pass expr as ARG.
35764
35765 PR tree-optimization/64465
35766 * tree-inline.c (redirect_all_calls): During inlining
35767 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
35768 changed the stmt to a non-throwing call.
35769
35770 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35771
35772 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
35773 etc markup throughout the file.
35774
35775 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35776
35777 Enable experimental TSAN support for Ada.
35778 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
35779
35780 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35781
35782 PR tree-optimization/64494
35783 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
35784 clear SSA_NAME_ANTI_RANGE_P flag.
35785
35786 2015-01-05 Marek Polacek <polacek@redhat.com>
35787
35788 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
35789
35790 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35791
35792 Update copyright years.
35793
35794 * gcc.c (process_command): Update copyright notice dates.
35795 * gcov-dump.c: Ditto.
35796 * gcov.c: Ditto.
35797 * doc/cpp.texi: Bump @copying's copyright year.
35798 * doc/cppinternals.texi: Ditto.
35799 * doc/gcc.texi: Ditto.
35800 * doc/gccint.texi: Ditto.
35801 * doc/gcov.texi: Ditto.
35802 * doc/install.texi: Ditto.
35803 * doc/invoke.texi: Ditto.
35804
35805 * auto-profile.c, auto-profile.h: Fix up Copyright line.
35806
35807 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
35808
35809 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
35810 verb tense, etc.
35811 ([-fvtable-verify], [-fvtv-debug]): Likewise.
35812 ([-Wabi]): Likewise.
35813 ([-fmessage-length]): Likewise.
35814 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
35815 ([-Wno-discarded-qualifiers]): Likewise.
35816 ([-Wnodiscarded-array-qualifiers]): Likewise.
35817 ([-Wno-virtual-move-assign]): Likewise.
35818 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
35819 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
35820 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
35821 ([-fsanitize-undefined-trap-on-error]): Likewise.
35822 ([-floop-interchange]): Likewise.
35823 ([-ftree-coalesce-inlined-vars]): Likewise.
35824 ([-fvect-cost-model]): Likewise.
35825 ([-flto]): Likewise.
35826 ([--param]): Likewise.
35827 (Spec Files): Likewise.
35828 ([-mstrict-align]): Likewise.
35829 ([-mfix-cortex-a53-835769]): Likewise.
35830 ([-march], [-mtune]): Likewise.
35831 ([-mpic-register]): Likewise.
35832 ([-munaligned-access]): Likewise.
35833 ([-msp8]): Likewise.
35834 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
35835 (AVR Built-in Macros): Likewise.
35836 ([-mpreferred-stack-boundary]): Likewise.
35837 ([-mtune-crtl]): Likewise.
35838 ([-mashf]): Likewise.
35839 ([-mmcu=]): Likewise.
35840 ([-minrt]): Likewise.
35841 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
35842 ([-mupper-regs]): Likewise.
35843 ([-matomic-model]): Likewise.
35844 ([-mdiv]): Likewise.
35845 ([-mzdcbranch]): Likewise.
35846 ([-mdisable-callt]): Likewise.
35847 ([-msoft-float]): Likewise.
35848 ([-m8byte-align]): Likewise.
35849 ([-fstack-reuse]): Likewise.
35850
35851 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35852
35853 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
35854 Fix markup, light copy-editing.
35855 ([-fauto-profile]): Rewrite to fix formatting and content
35856 problems.
35857
35858 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35859
35860 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
35861 Copy-edit description.
35862 ([-fisolate-erroneous-paths-attribute]): Likewise.
35863 * common.opt (fisolate-erroneous-paths-dereference):
35864 Copy-edit description.
35865 (fisolate-erroneous-paths-attribute): Likewise.
35866
35867 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35868
35869 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
35870 tidy grammar.
35871
35872 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35873
35874 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
35875 ([-fvtv-debug]): Likewise.
35876 ([-Wc++-compat]): Likewise.
35877 ([-Wc++11-compat]): Likewise.
35878 ([-Wc++14-compat]): Likewise.
35879 ([-Wno-sized-deallocation]): Likewise.
35880 ([-femit-class-debug-always]): Likewise.
35881 ([-femit-struct-debug-detailed]): Likewise.
35882 ([-fno-keep-inline-dllexport]): Likewise.
35883 ([-fira-algorithm]): Likewise.
35884 ([-fira-region]): Likewise.
35885 ([-flra-remat]): Likewise.
35886 ([-fipa-ra]): Likewise.
35887 ([-fhoist-adjacent-loads]): Likewise.
35888 ([-fisolate-erroneous-paths-dereference]): Likewise.
35889 ([-fisolate-erroneous-paths-attribute]): Likewise.
35890 ([-ftree-switch-conversion]): Likewise.
35891 ([-ftree-tail-merge]): Likewise.
35892 ([-ftree-loop-if-convert]): Likewise.
35893 ([-ftree-loop-if-convert-stores]): Likewise.
35894 ([-ftree-loop-distribution]): Likewise.
35895 ([-ftree-loop-distribute-patterns]): Likewise.
35896 ([-flto-compression-level]): Likewise.
35897 ([-flto-report]): Likewise.
35898 ([-flto-report-wpa]): Likewise.
35899 ([-fuse-linker-plugin]): Likewise.
35900 ([-mfix-cortex-a53-835769]): Likewise.
35901 ([-mno-fix-cortex-a53-835769]): Likewise.
35902 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
35903 explicit listing; add a note to the discussion indicating they
35904 exist. Reorder table to group similar options. Add missing
35905 @opindex entries. Add @need commands throughout the table to
35906 allow it to be split across multiple pages.
35907 ([-m8bit-idiv]): Fix @opindex.
35908 ([-mavx256-split-unaligned-load]): Likewise.
35909 ([-mavx256-split-unaligned-store]): Likewise.
35910 ([-mstack-protector-guard]): Likewise.
35911 ([-mcpu=]): Likewise.
35912 ([-mcpu]): Likewise.
35913 ([-mpointer-size=]): Likewise.
35914
35915 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
35916
35917 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
35918 instead of `m' constraint. Likewise for unnamed movb comparison
35919 patterns using reg_before_reload_operand predicate.
35920 * config/pa/predicates.md (reg_before_reload_operand): Tighten
35921 predicate to reject register index and LO_SUM DLT memory forms
35922 after reload.
35923
35924 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
35925
35926 * doc/invoke.texi (Option Summary): Fix spelling of
35927 -fdevirtualize-at-ltrans.
35928 ([-fdevirtualize]): Fix markup.
35929 ([-fdevirtualize-speculatively]): Fix typo.
35930 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
35931 implementor-speaky.
35932 * common.opt (fdevirtualize-at-ltrans): Likewise.
35933 * ipa-devirt.c: Fix typos in comments throughout the file.
35934 (ipa_devirt): Fix typos in format strings for dump output.
35935
35936 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
35937
35938 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
35939 discussion of defaults, light copy-editing.
35940
35941 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
35942
35943 * tsan.c (instrument_expr): corrected previous checkin.
35944
35945 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
35946
35947 Instrument bit field and unaligned accesses for TSAN.
35948 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
35949 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
35950 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
35951 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
35952 unaligned memory regions.
35953
35954 2015-01-01 Anthony Green <green@moxielogic.com>
35955
35956 * config/moxie/predicates.md (moxie_general_movsrc_operand):
35957 Restrict move source register offsets to 16 bits.
35958 \f
35959 Copyright (C) 2015 Free Software Foundation, Inc.
35960
35961 Copying and distribution of this file, with or without modification,
35962 are permitted in any medium without royalty provided the copyright
35963 notice and this notice are preserved.