1 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
3 * config/aarch64/aarch64.md (*movhf_aarch64): Use
4 aarch64_reg_or_fp_zero for second operand.
6 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
8 * gimple-expr.c: Include hash-set.h and rtl.h.
9 (mark_addressable_queue): New var.
10 (mark_addressable): Factor actual marking into...
11 (mark_addressable_1): ... this. Queue it up during expand.
12 (mark_addressable_2): New.
13 (flush_mark_addressable_queue): New.
14 * gimple-expr.h (flush_mark_addressable_queue): Declare.
15 * cfgexpand.c: Include gimple-expr.h.
16 (pass_expand::execute): Flush mark_addressable queue.
18 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
20 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
21 bb_no_side_effects_p tests...
22 (tree_ssa_ifcombine_bb): ... here.
24 PR tree-optimization/68083
25 * tree-ssa-ifcombine.c: Include tree-ssa.h.
26 (bb_no_side_effects_p): Test for undefined uses too.
27 * tree-ssa.c (gimple_uses_undefined_value_p): New.
28 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
30 2015-11-02 Jeff Law <jeff@redhat.com>
32 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
33 cases where the loop latch edge is in the middle of an FSM path.
35 2015-11-03 Tom de Vries <tom@codesourcery.com>
37 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
38 (make_param_constraints): ... this. Add and handle restrict_name
39 parameter. Handle is_full_var case.
40 (intra_create_variable_infos): Use make_param_constraints.
42 2015-11-03 Tom de Vries <tom@codesourcery.com>
44 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
45 make_copy_constraint call with make_constraint_from call.
47 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
49 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
52 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
54 * builtins.h (fold_fma): Move to fold-const-call.h.
55 * builtins.c: Include fold-const-call.h.
56 (mathfn_built_in_2): New function, split out from...
57 (mathfn_built_in_1): ...here.
58 (do_real_to_int_conversion, fold_const_builtin_pow)
59 (fold_const_builtin_logb, fold_const_builtin_significand)
60 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
61 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
62 (fold_builtin_sincos): Use fold_const_call to handle constants.
63 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
64 checks for ERROR_MARK. Use fold_const_call to handle constant
65 folds for math functions.
66 (fold_fma): Move to fold-const-call.c.
67 * fold-const.c: Include fold-const-call.h.
68 * Makefile.in (OBJS): Add fold-const-call.o.
69 (PLUGIN_HEADERS): Add fold-const-call.h.
70 * realmpfr.h (real_from_mpfr): Allow the format to be specified
72 * realmpfr.c (real_from_mpfr): Likewise.
73 * fold-const-call.h, fold-const-call.c: New files.
75 2015-11-02 Julian Brown <julian@codesourcery.com>
77 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
78 brackets and semicolon.
80 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
83 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
85 PR tree-optimization/65963
86 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
87 LSHIFT_EXPRs as equivalent MULT_EXPRs.
89 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
92 * fold-const.c: Include "md5.h".
94 2015-11-01 Jeff Law <jeff@redhat.com>
96 * vmsdbgout.c: Revert unused header file reduction patch.
98 * config/mcore/mcore.c: Include regs.h.
100 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
102 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
104 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
106 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
107 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
108 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
110 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
112 * ggc-common.c: Restore needed header for checking=release.
114 2015-10-31 Tom de Vries <tom@codesourcery.com>
116 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
118 2015-10-31 Tom de Vries <tom@codesourcery.com>
120 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
121 existing varinfo for arguments.
123 2015-10-31 Tom de Vries <tom@codesourcery.com>
125 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
126 create_function_info_for. Dump constraints generated during
127 create_function_info_for. Move intra_create_variable_infos call and
128 function-return-values-escape bit to ...
129 (create_function_info_for): ... here, and merge
130 intra_create_variable_infos call with argument loop. Add and handle
131 nonlocal_p parameter.
133 2015-10-31 Tom de Vries <tom@codesourcery.com>
135 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
136 updating is alap, and seperated from preceding code. Make sure
137 insert_vi_for_tree is seperated from surrounding code.
139 2015-10-31 Tom de Vries <tom@codesourcery.com>
141 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
143 2015-10-30 Jeff Law <jeff@redhat.com>
144 Nathan Sidwell <nathan@acm.org>
146 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
148 (MOVE_MAX): Set to 8.
150 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
152 * cgraph.c: Include context.h for offloading.
153 * varpool.c: Include context.h and omp-low.h.
155 2015-10-30 Anatoly Sokolov <aesok@post.ru>
157 * rtl.h (contains_symbol_ref_p): Declare.
158 (SYMBOL_REF_P): Define.
159 * rtlanal.c (contains_symbol_ref_p: New function.
160 * lra-constraints.c (contains_symbol_ref_p): Remove.
161 * var-tracking.c (contains_symbol_ref): Remove.
162 (track_expr_p): Use contains_symbol_ref_p instead of
165 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
167 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
168 * fold-const.c (get_array_ctor_element_at_index): New.
169 (fold): Remove binary-search through CONSTRUCTOR, call previous.
171 * fold-const.h (get_array_ctor_element_at_index): New.
173 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
175 * Makefile.in (OBJS): Add multiple_target.o.
176 * attrib.c (make_attribute): Moved from config/i386/i386.c
177 * config/i386/i386.c (make_attribute): Deleted.
178 * multiple_target.c (create_dispatcher_calls): New.
179 (get_attr_len): Ditto.
180 (get_attr_str): Ditto.
181 (separate_attrs): Ditto.
182 (is_valid_asm_symbol): Ditto.
183 (create_new_asm_name): Ditto.
184 (create_target_clone): Ditto.
185 (expand_target_clones): Ditto.
186 (ipa_target_clone): Ditto.
187 (ipa_dispatcher_calls): Ditto.
188 * passes.def (pass_target_clone): Two new ipa passes.
189 * tree-pass.h (make_pass_target_clone): Ditto.
190 * doc/extend.texi (target_clones): New attribute description.
192 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
194 PR rtl-optimization/68106
195 * lra-remat.c (input_regno_present_p): Process hard regs
196 explicitly present in machine description insns.
197 (call_used_input_regno_present_p): Ditto.
198 (calculate_gen_cands): Ditto.
201 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
203 * config/arm/neon-testgen.ml: Fix comment typo.
205 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
207 * rtlanal.c (reg_set_p): Expand function comment.
209 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
211 * alias.c: Remove unused headers.
213 * attribs.c: Likewise.
214 * auto-inc-dec.c: Likewise.
215 * auto-profile.c: Likewise.
216 * bb-reorder.c: Likewise.
217 * bitmap.c: Likewise.
218 * bt-load.c: Likewise.
219 * builtins.c: Likewise.
220 * caller-save.c: Likewise.
224 * cfganal.c: Likewise.
225 * cfgbuild.c: Likewise.
226 * cfgcleanup.c: Likewise.
227 * cfgexpand.c: Likewise.
228 * cfghooks.c: Likewise.
229 * cfgloop.c: Likewise.
230 * cfgloopanal.c: Likewise.
231 * cfgloopmanip.c: Likewise.
232 * cfgrtl.c: Likewise.
233 * cgraph.c: Likewise.
234 * cgraphbuild.c: Likewise.
235 * cgraphclones.c: Likewise.
236 * cgraphunit.c: Likewise.
237 * cilk-common.c: Likewise.
238 * combine-stack-adj.c: Likewise.
239 * combine.c: Likewise.
240 * compare-elim.c: Likewise.
241 * convert.c: Likewise.
242 * coverage.c: Likewise.
243 * cppbuiltin.c: Likewise.
246 * cselib.c: Likewise.
247 * data-streamer-in.c: Likewise.
248 * data-streamer-out.c: Likewise.
249 * data-streamer.c: Likewise.
250 * dbxout.c: Likewise.
254 * df-core.c: Likewise.
255 * df-problems.c: Likewise.
256 * df-scan.c: Likewise.
258 * dojump.c: Likewise.
259 * dominance.c: Likewise.
260 * domwalk.c: Likewise.
261 * double-int.c: Likewise.
263 * dumpfile.c: Likewise.
264 * dwarf2asm.c: Likewise.
265 * dwarf2cfi.c: Likewise.
266 * dwarf2out.c: Likewise.
267 * emit-rtl.c: Likewise.
268 * except.c: Likewise.
269 * explow.c: Likewise.
270 * expmed.c: Likewise.
273 * fixed-value.c: Likewise.
274 * fold-const.c: Likewise.
275 * function.c: Likewise.
276 * fwprop.c: Likewise.
278 * generic-match-head.c: Likewise.
279 * ggc-common.c: Likewise.
280 * gimple-builder.c: Likewise.
281 * gimple-expr.c: Likewise.
282 * gimple-fold.c: Likewise.
283 * gimple-iterator.c: Likewise.
284 * gimple-low.c: Likewise.
285 * gimple-match-head.c: Likewise.
286 * gimple-pretty-print.c: Likewise.
287 * gimple-ssa-isolate-paths.c: Likewise.
288 * gimple-ssa-strength-reduction.c: Likewise.
289 * gimple-streamer-in.c: Likewise.
290 * gimple-streamer-out.c: Likewise.
291 * gimple-walk.c: Likewise.
292 * gimple.c: Likewise.
293 * gimplify-me.c: Likewise.
294 * gimplify.c: Likewise.
295 * godump.c: Likewise.
297 * graphds.c: Likewise.
298 * haifa-sched.c: Likewise.
299 * hw-doloop.c: Likewise.
301 * init-regs.c: Likewise.
302 * internal-fn.c: Likewise.
303 * ipa-chkp.c: Likewise.
304 * ipa-comdats.c: Likewise.
305 * ipa-cp.c: Likewise.
306 * ipa-devirt.c: Likewise.
307 * ipa-icf-gimple.c: Likewise.
308 * ipa-icf.c: Likewise.
309 * ipa-inline-analysis.c: Likewise.
310 * ipa-inline-transform.c: Likewise.
311 * ipa-inline.c: Likewise.
312 * ipa-polymorphic-call.c: Likewise.
313 * ipa-profile.c: Likewise.
314 * ipa-prop.c: Likewise.
315 * ipa-pure-const.c: Likewise.
316 * ipa-ref.c: Likewise.
317 * ipa-reference.c: Likewise.
318 * ipa-split.c: Likewise.
319 * ipa-utils.c: Likewise.
320 * ipa-visibility.c: Likewise.
322 * ira-build.c: Likewise.
323 * ira-color.c: Likewise.
324 * ira-conflicts.c: Likewise.
325 * ira-costs.c: Likewise.
326 * ira-emit.c: Likewise.
327 * ira-lives.c: Likewise.
330 * langhooks.c: Likewise.
333 * loop-doloop.c: Likewise.
334 * loop-init.c: Likewise.
335 * loop-invariant.c: Likewise.
336 * loop-iv.c: Likewise.
337 * loop-unroll.c: Likewise.
338 * lower-subreg.c: Likewise.
339 * lra-assigns.c: Likewise.
340 * lra-coalesce.c: Likewise.
341 * lra-constraints.c: Likewise.
342 * lra-eliminations.c: Likewise.
343 * lra-lives.c: Likewise.
344 * lra-remat.c: Likewise.
345 * lra-spills.c: Likewise.
347 * lto-cgraph.c: Likewise.
348 * lto-compress.c: Likewise.
349 * lto-opts.c: Likewise.
350 * lto-section-in.c: Likewise.
351 * lto-section-out.c: Likewise.
352 * lto-streamer-in.c: Likewise.
353 * lto-streamer-out.c: Likewise.
354 * lto-streamer.c: Likewise.
356 * mode-switching.c: Likewise.
357 * modulo-sched.c: Likewise.
358 * optabs.c: Likewise.
359 * opts-global.c: Likewise.
360 * passes.c: Likewise.
361 * plugin.c: Likewise.
362 * postreload-gcse.c: Likewise.
363 * postreload.c: Likewise.
364 * predict.c: Likewise.
365 * print-tree.c: Likewise.
366 * profile.c: Likewise.
368 * realmpfr.c: Likewise.
371 * reg-stack.c: Likewise.
372 * regcprop.c: Likewise.
373 * reginfo.c: Likewise.
374 * regrename.c: Likewise.
375 * regstat.c: Likewise.
376 * reload.c: Likewise.
377 * reload1.c: Likewise.
379 * resource.c: Likewise.
380 * rtl-chkp.c: Likewise.
381 * rtl-error.c: Likewise.
382 * rtlanal.c: Likewise.
383 * rtlhooks.c: Likewise.
384 * sanopt.c: Likewise.
385 * sched-deps.c: Likewise.
386 * sched-ebb.c: Likewise.
387 * sched-rgn.c: Likewise.
388 * sdbout.c: Likewise.
389 * sel-sched-dump.c: Likewise.
390 * sel-sched-ir.c: Likewise.
391 * sel-sched.c: Likewise.
393 * shrink-wrap.c: Likewise.
394 * simplify-rtx.c: Likewise.
395 * stack-ptr-mod.c: Likewise.
396 * statistics.c: Likewise.
398 * stor-layout.c: Likewise.
399 * store-motion.c: Likewise.
400 * stringpool.c: Likewise.
401 * symtab.c: Likewise.
402 * target-globals.c: Likewise.
403 * targhooks.c: Likewise.
404 * toplev.c: Likewise.
405 * tracer.c: Likewise.
406 * trans-mem.c: Likewise.
407 * tree-affine.c: Likewise.
408 * tree-call-cdce.c: Likewise.
409 * tree-cfg.c: Likewise.
410 * tree-cfgcleanup.c: Likewise.
411 * tree-chkp-opt.c: Likewise.
412 * tree-chkp.c: Likewise.
413 * tree-chrec.c: Likewise.
414 * tree-complex.c: Likewise.
415 * tree-data-ref.c: Likewise.
416 * tree-dfa.c: Likewise.
417 * tree-diagnostic.c: Likewise.
418 * tree-dump.c: Likewise.
419 * tree-eh.c: Likewise.
420 * tree-emutls.c: Likewise.
421 * tree-if-conv.c: Likewise.
422 * tree-inline.c: Likewise.
423 * tree-into-ssa.c: Likewise.
424 * tree-iterator.c: Likewise.
425 * tree-loop-distribution.c: Likewise.
426 * tree-nested.c: Likewise.
427 * tree-nrv.c: Likewise.
428 * tree-object-size.c: Likewise.
429 * tree-outof-ssa.c: Likewise.
430 * tree-parloops.c: Likewise.
431 * tree-phinodes.c: Likewise.
432 * tree-predcom.c: Likewise.
433 * tree-pretty-print.c: Likewise.
434 * tree-profile.c: Likewise.
435 * tree-scalar-evolution.c: Likewise.
436 * tree-sra.c: Likewise.
437 * tree-ssa-address.c: Likewise.
438 * tree-ssa-alias.c: Likewise.
439 * tree-ssa-ccp.c: Likewise.
440 * tree-ssa-coalesce.c: Likewise.
441 * tree-ssa-copy.c: Likewise.
442 * tree-ssa-dce.c: Likewise.
443 * tree-ssa-dse.c: Likewise.
444 * tree-ssa-forwprop.c: Likewise.
445 * tree-ssa-ifcombine.c: Likewise.
446 * tree-ssa-live.c: Likewise.
447 * tree-ssa-loop-ch.c: Likewise.
448 * tree-ssa-loop-im.c: Likewise.
449 * tree-ssa-loop-ivcanon.c: Likewise.
450 * tree-ssa-loop-ivopts.c: Likewise.
451 * tree-ssa-loop-manip.c: Likewise.
452 * tree-ssa-loop-niter.c: Likewise.
453 * tree-ssa-loop-prefetch.c: Likewise.
454 * tree-ssa-loop-unswitch.c: Likewise.
455 * tree-ssa-loop.c: Likewise.
456 * tree-ssa-math-opts.c: Likewise.
457 * tree-ssa-operands.c: Likewise.
458 * tree-ssa-phiopt.c: Likewise.
459 * tree-ssa-phiprop.c: Likewise.
460 * tree-ssa-pre.c: Likewise.
461 * tree-ssa-propagate.c: Likewise.
462 * tree-ssa-reassoc.c: Likewise.
463 * tree-ssa-scopedtables.c: Likewise.
464 * tree-ssa-sink.c: Likewise.
465 * tree-ssa-strlen.c: Likewise.
466 * tree-ssa-structalias.c: Likewise.
467 * tree-ssa-tail-merge.c: Likewise.
468 * tree-ssa-ter.c: Likewise.
469 * tree-ssa-threadupdate.c: Likewise.
470 * tree-ssa-uncprop.c: Likewise.
471 * tree-ssa-uninit.c: Likewise.
472 * tree-ssa.c: Likewise.
473 * tree-ssanames.c: Likewise.
474 * tree-stdarg.c: Likewise.
475 * tree-streamer-in.c: Likewise.
476 * tree-streamer-out.c: Likewise.
477 * tree-streamer.c: Likewise.
478 * tree-switch-conversion.c: Likewise.
479 * tree-tailcall.c: Likewise.
480 * tree-vect-data-refs.c: Likewise.
481 * tree-vect-generic.c: Likewise.
482 * tree-vect-loop-manip.c: Likewise.
483 * tree-vect-loop.c: Likewise.
484 * tree-vect-patterns.c: Likewise.
485 * tree-vect-slp.c: Likewise.
486 * tree-vect-stmts.c: Likewise.
487 * tree-vectorizer.c: Likewise.
488 * tree-vrp.c: Likewise.
492 * value-prof.c: Likewise.
493 * var-tracking.c: Likewise.
494 * varasm.c: Likewise.
495 * varpool.c: Likewise.
496 * vmsdbgout.c: Likewise.
497 * vtable-verify.c: Likewise.
499 * wide-int-print.cc: Likewise.
500 * wide-int.cc: Likewise.
501 * xcoffout.c: Likewise.
503 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
505 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
506 between pass numbering and execution order.
508 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
510 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
511 check for dependencies.
513 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
515 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
518 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
520 * real.h (format_helper): New.
521 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
522 (real_from_target, real_nan, real_2expN, real_value_truncate)
523 (significand_size, real_from_string2, exact_real_inverse)
524 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
525 (real_round, real_isinteger, real_from_integer): Replace
526 machine_mode arguments with format_helper arguments.
527 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
528 (real_from_integer, real_nan, real_2expN, real_convert)
529 (real_value_truncate, exact_real_truncate, real_to_target)
530 (real_from_target, significand_size, real_powi, real_trunc)
531 (real_floor, real_ceil, real_round, real_isinteger): Replace
532 machine_mode arguments with format_helper arguments.
533 (real_to_target_fmt, real_from_target_fmt): Delete.
534 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
535 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
536 argument with real_format.
537 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
539 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
541 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
542 (fixed_to_decimal, fixed_convert_from_real)
543 (real_convert_from_fixed): Fix mode arguments to real_2expN.
545 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
547 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
550 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
552 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
553 (completely_scalarize): Comment zero-length arrays.
554 (get_access_replacement): Correct comment re. precondition.
556 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
558 * config/i386/i386.c (get_builtin_code_for_version): Set priority
559 for PROCESSOR_ZNVER1.
560 (enum processor_model): Add M_AMDFAM17H_znver1.
561 (struct arch_names_table): Likewise.
562 * doc/extend.texi: ADD znver1.
564 2015-10-30 Richard Biener <rguenther@suse.de>
566 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
567 fold () on single RHSs. Allow CONSTRUCTORS with trailing
568 zeros to be folded to VECTOR_CSTs.
569 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
570 * fold-const.c (fold): Use build_vector_from_ctor.
572 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
574 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
575 "mov %0.h[0], %1.h[0] to "neon_move".
576 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
577 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
579 (*cmovsi_insn_uxtw): Likewise.
581 2015-10-30 Tom de Vries <tom@codesourcery.com>
583 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
584 unsigned, and initialize, and use initial value instead of hardcoded
585 constant. Add generic constraints dumping section. Don't dump global
586 initializers constraints dumping section if empty. Don't update
587 variable from if unused.
589 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
591 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
592 flag_checking and/or CHECKING_P to eliminate conditional compilation
594 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
595 * config/bfin/bfin.c (hwloop_optimize): Likewise.
596 * config/i386/i386.c (ix86_print_operand_address): Likewise.
597 (output_387_binary_op): Likewise.
598 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
599 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
600 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
602 * config/rs6000/rs6000.h: Likewise.
603 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
605 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
607 * config/sh/sh.opt (mfdpic): Add missing period.
609 2015-08-29 Anatoly Sokolov <aesok@post.ru>
611 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
612 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
613 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
614 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
615 mcore_base_register_rtx_p, mcore_legitimate_index_p,
616 mcore_legitimate_address_p): New functions.
617 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
619 2015-10-29 Jeff Law <law@redhat.com>
621 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
623 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
624 * tree-ssa-threadedge.c
625 (record_temporary_equivalences_from_stmts_at_dest): Remove
626 backedge_seen argument and associated code which invalidated
627 equivalences based on the value of that argument.
628 (thread_through_normal_block): Corresponding changes.
630 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
632 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
633 function earlier in the file.
634 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
637 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
639 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
642 2015-10-29 Richard Henderson <rth@redhat.com>
646 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
647 sse check to the exact conditions of PR 67609.
649 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
651 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
652 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
653 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
654 of the traditional names that TFmode uses for handling IEEE
655 extended double. If -mfloat128, add KFmode functions for all of
656 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
657 make TFmode use the same emulation functions as KFmode.
658 (init_float128_ibm): Likewise.
659 (init_float128_ieee): Likewise.
660 (rs6000_generate_compare): For IEEE 128-bit floating point
661 comparisons, call the unordered comparison function instead of the
662 ordered comparison function.
663 (rs6000_expand_float128_convert): Deal with operands that are
664 memory operands. Restructure the code to use a switch statement on
665 the mode. Add support for TFmode defaulting to either IBM extended
666 double or IEEE 128-bit floating point. If the underlying types are
667 the same, use a move instead of a conversion function.
668 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
669 use for IEEE 128-bit floating point constants with -mfloat128.
670 (rs6000_c_mode_for_suffix): Likewise.
671 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
672 128-bit floating point with IBM extended double floating point.
673 (rs6000_invalid_binary_op): Likewise.
674 (rs6000_gen_le_vsx_permute): On little endian systems generate a
675 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
676 types that can go in vector registers.
677 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
678 point types that can go in vector registers on little endian
680 (mark_swaps_for_removal): Likewise.
681 (rs6000_analyze_swaps): Likewise.
682 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
684 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
685 rework IEEE 128-bit floating point insns to deal with TFmode being
686 either IBM extended double or IEEE 128-bit floating point.
688 (IBM128): Update iterator to add condition that the mode is IBM
690 (IEEE128): New iterator for IEEE 128-bit floating point.
691 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
692 (FLOAT128): Likewise.
693 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
695 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
696 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
697 instead of hard coding TFmode or KFmode.
698 (negtf2_internal): Likewise.
699 (neg<mode>2_internal): Likewise.
700 (abs<mode>2): Likewise.
701 (abstf2_internal): Likewise.
702 (abs<mode>2_internal): Likewise.
703 (ieee_128bit_neg<mode>2): Likewise.
704 (ieee_128bit_neg<mode>2_internal): Likewise.
705 (ieee_128bit_abs<mode>2): Likewise.
706 (ieee_128bit_abs<mode>2_internal): Likewise.
707 (ieee_128bit_nabs<mode>2): Likewise.
708 (ieee_128bit_nabs<mode>2_internal): Likewise.
709 (extendiftf2): Add explicit conversions between 128-bit floating
710 point types. Drop the old conversions that had become unwieldy.
711 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
712 (extendifkf2): Likewise.
713 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
714 (extendtfkf2): Likewise.
715 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
716 (trunciftf2): Likewise.
717 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
718 (truncifkf2): Likewise.
719 (float<SDI:mode><IFKF:mode>2): Likewise.
720 (trunckftf2): Likewise.
721 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
722 (trunctfif2): Likewise.
723 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
724 (extenddftf2): Rework 128-bit floating point conversions to
725 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
726 KFmode expanders into one function.
727 (extenddf<mode>2): Likewise.
728 (extenddftf2_fprs): Likewise.
729 (extenddf<mode>2_fprs): Likewise.
730 (extenddftf2_vsx): Likewise.
731 (extenddf<mode>2_vsx): Likewise.
732 (extendsftf2): Likewise.
733 (extendsf<mode>2): Likewise.
734 (trunctfdf2): Likewise.
735 (trunc<mode>df2): Likewise.
736 (trunctfdf2_internal1): Likewise.
737 (trunc<mode>df2_internal1): Likewise.
738 (trunctfdf2_internal2): Likewise.
739 (trunc<mode>df2_internal2): Likewise.
740 (trunctfsf2): Likewise.
741 (trunc<mode>sf2): Likewise.
742 (trunctfsf2_fprs): Likewise.
743 (trunc<mode>sf2_fprs): Likewise.
744 (floatsit2f): Likewise.
745 (floatsi<mode>2): Likewise.
746 (fix_trunc_helper): Likewise.
747 (fix_trunc_helper<mode>): Likewise.
748 (fix_trunctfsi2): Likewise.
749 (fix_trunc<mode>si2): Likewise.
750 (fix_trunctfsi2_fprs): Likewise.
751 (fix_trunc<mode>si2_fprs): Likewise.
752 (fix_trunctfsi2_internal): Likewise.
753 (fix_trunc<mode>si2_internal): Likewise.
754 (fix_trunctfdi2): Likewise.
755 (fix_trunc<mode>di2): Likewise.
756 (fixuns_trunctf<mode>2): Likewise.
757 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
758 (floatditf2): Likewise.
759 (floatdi<mode>2): Likewise.
760 (floatuns<mode>tf2): Likewise.
761 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
762 (cmptf_internal1): Use a mode iterator to add support for both
763 types (IFmode, TFmode) that support IBM extended double.
764 (cmp<mode>_internal1): Likewise.
765 (cmptf_internal2): Likewise.
766 (cmp<mode>_internal2): Likewise.
768 * doc/extend.texi (Floating Types): Document __ibm128 and
769 __float128 on PowerPC.
771 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
772 -mfloat128 and -mno-float128.
774 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
776 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
777 floating point modes that can go in vector registers.
778 (MODES_TIEABLE_P): Move tests for vector modes before tests for
779 scalar floating point, so that IEEE 128-bit floating point that
780 can go in vector registers bind with vectors and not FP.
781 (struct rs6000_args): Add libcall field.
783 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
784 and -mfloat128-software switches. Replace them with a binary
786 (-mfloat128): Likewise.
788 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
789 128-bit floating point types in GPRs, even if the appropriate
790 option enabling the type was not used.
791 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
793 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
794 pre-decrement on IEEE 128-bit floating point values.
795 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
796 is IEEE 128-bit floating point.
797 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
798 128-bit floating point types that can go in vector registers.
799 (rs6000_option_override_internal): Change -mfloat128-none and
800 -mfloat128-software to -mfloat128, and move code to be near other
802 (rs6000_option_override_internal): Disable -mfloat128 if we don't
803 have the Altivec ABI.
804 (rs6000_init_builtins): Don't make TFmode use either IFmode or
805 KFmode floating point nodes. Instead, have three separate nodes.
806 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
807 eventually moving the long double default to IEEE 128-bit floating
809 (rs6000_opt_masks): Add -mfloat128.
810 (struct rs6000_opt_var): Fix typo in comment.
811 (init_cumulative_args): Initialize libcall field in
813 (rs6000_function_arg): Treat library functions as if they had
814 prototypes to prevent IEEE 128-bit support functions from passing
815 arguments in both GPRs and vector registers.
816 (rs6000_arg_partial_bytes): Likewise.
818 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
819 an option that can be turned on via -mcpu=<xxx>.
821 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
824 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
825 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
826 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
827 double is IBM extended double.
829 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
832 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
834 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
835 * genconditions.c: Define CHECKING_P in the generated code.
836 * genextract.c: Use flag_checking in insn_extract.
837 * gengtype.c (main): Remove conditional compilation.
838 * gengtype.h: Likewise.
840 2015-10-29 Jeff Law <law@redhat.com>
842 PR tree-optimization/67892
843 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
845 (thread_through_normal_block): If we have seen a backedge, then
846 do nothing. No longer call find_jump_threads_backwards here.
847 (thread_across_edge): Use find_jump_threads_backwards to find
848 jump threads if the old style threader was not successful.
849 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
850 gsi_last_nondebug_bb. Return NULL if the block does not end
851 with a control statement.
852 (find_jump_threads_backwards): Setup code moved here from
853 tree-ssa-threadedge.c::thread_through_normal_block. Accept
854 single edge argument instead of name & block.
855 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
858 2015-10-29 Tom de Vries <tom@codesourcery.com>
860 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
863 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
865 * omp-low.c (lower_omp_target): Remove unreachable code & merge
868 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
870 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
872 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
874 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
875 guard_bb0 and use guard_bb throughout.
877 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
879 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
882 2015-10-29 Richard Biener <rguenther@suse.de>
885 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
888 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
890 * alias.c: Reorder #include statements and remove duplicates.
892 * attribs.c: Likewise.
893 * auto-inc-dec.c: Likewise.
894 * auto-profile.c: Likewise.
895 * bb-reorder.c: Likewise.
896 * bt-load.c: Likewise.
897 * builtins.c: Likewise.
898 * caller-save.c: Likewise.
902 * cfganal.c: Likewise.
903 * cfgbuild.c: Likewise.
904 * cfgcleanup.c: Likewise.
905 * cfgexpand.c: Likewise.
906 * cfghooks.c: Likewise.
907 * cfgloop.c: Likewise.
908 * cfgloopanal.c: Likewise.
909 * cfgloopmanip.c: Likewise.
910 * cfgrtl.c: Likewise.
911 * cgraph.c: Likewise.
912 * cgraphbuild.c: Likewise.
913 * cgraphclones.c: Likewise.
914 * cgraphunit.c: Likewise.
915 * cilk-common.c: Likewise.
916 * combine-stack-adj.c: Likewise.
917 * combine.c: Likewise.
918 * compare-elim.c: Likewise.
919 * convert.c: Likewise.
920 * coverage.c: Likewise.
921 * cppbuiltin.c: Likewise.
924 * cselib.c: Likewise.
925 * data-streamer-in.c: Likewise.
926 * data-streamer-out.c: Likewise.
927 * data-streamer.c: Likewise.
928 * dbxout.c: Likewise.
932 * df-core.c: Likewise.
933 * df-problems.c: Likewise.
934 * df-scan.c: Likewise.
936 * dojump.c: Likewise.
937 * dominance.c: Likewise.
938 * double-int.c: Likewise.
940 * dumpfile.c: Likewise.
941 * dwarf2asm.c: Likewise.
942 * dwarf2cfi.c: Likewise.
943 * dwarf2out.c: Likewise.
944 * emit-rtl.c: Likewise.
945 * except.c: Likewise.
946 * explow.c: Likewise.
947 * expmed.c: Likewise.
950 * fixed-value.c: Likewise.
951 * fold-const.c: Likewise.
952 * function.c: Likewise.
953 * fwprop.c: Likewise.
955 * generic-match-head.c: Likewise.
956 * ggc-common.c: Likewise.
957 * gimple-builder.c: Likewise.
958 * gimple-expr.c: Likewise.
959 * gimple-fold.c: Likewise.
960 * gimple-iterator.c: Likewise.
961 * gimple-low.c: Likewise.
962 * gimple-match-head.c: Likewise.
963 * gimple-pretty-print.c: Likewise.
964 * gimple-ssa-isolate-paths.c: Likewise.
965 * gimple-ssa-strength-reduction.c: Likewise.
966 * gimple-streamer-in.c: Likewise.
967 * gimple-streamer-out.c: Likewise.
968 * gimple-walk.c: Likewise.
969 * gimple.c: Likewise.
970 * gimplify-me.c: Likewise.
971 * gimplify.c: Likewise.
972 * godump.c: Likewise.
974 * graphite-poly.c: Likewise.
975 * haifa-sched.c: Likewise.
976 * hw-doloop.c: Likewise.
978 * incpath.c: Likewise.
979 * init-regs.c: Likewise.
980 * internal-fn.c: Likewise.
981 * ipa-chkp.c: Likewise.
982 * ipa-comdats.c: Likewise.
983 * ipa-cp.c: Likewise.
984 * ipa-devirt.c: Likewise.
985 * ipa-icf-gimple.c: Likewise.
986 * ipa-icf.c: Likewise.
987 * ipa-inline-analysis.c: Likewise.
988 * ipa-inline-transform.c: Likewise.
989 * ipa-inline.c: Likewise.
990 * ipa-polymorphic-call.c: Likewise.
991 * ipa-profile.c: Likewise.
992 * ipa-prop.c: Likewise.
993 * ipa-pure-const.c: Likewise.
994 * ipa-ref.c: Likewise.
995 * ipa-reference.c: Likewise.
996 * ipa-split.c: Likewise.
997 * ipa-utils.c: Likewise.
998 * ipa-visibility.c: Likewise.
1000 * ira-build.c: Likewise.
1001 * ira-color.c: Likewise.
1002 * ira-conflicts.c: Likewise.
1003 * ira-costs.c: Likewise.
1004 * ira-emit.c: Likewise.
1005 * ira-lives.c: Likewise.
1008 * langhooks.c: Likewise.
1010 * lists.c: Likewise.
1011 * loop-doloop.c: Likewise.
1012 * loop-init.c: Likewise.
1013 * loop-invariant.c: Likewise.
1014 * loop-iv.c: Likewise.
1015 * loop-unroll.c: Likewise.
1016 * lower-subreg.c: Likewise.
1017 * lra-assigns.c: Likewise.
1018 * lra-coalesce.c: Likewise.
1019 * lra-constraints.c: Likewise.
1020 * lra-eliminations.c: Likewise.
1021 * lra-lives.c: Likewise.
1022 * lra-remat.c: Likewise.
1023 * lra-spills.c: Likewise.
1025 * lto-cgraph.c: Likewise.
1026 * lto-compress.c: Likewise.
1027 * lto-opts.c: Likewise.
1028 * lto-section-in.c: Likewise.
1029 * lto-section-out.c: Likewise.
1030 * lto-streamer-in.c: Likewise.
1031 * lto-streamer-out.c: Likewise.
1032 * lto-streamer.c: Likewise.
1033 * mode-switching.c: Likewise.
1034 * modulo-sched.c: Likewise.
1035 * omp-low.c: Likewise.
1036 * optabs.c: Likewise.
1037 * opts-global.c: Likewise.
1038 * passes.c: Likewise.
1039 * plugin.c: Likewise.
1040 * postreload-gcse.c: Likewise.
1041 * postreload.c: Likewise.
1042 * predict.c: Likewise.
1043 * print-tree.c: Likewise.
1044 * profile.c: Likewise.
1046 * realmpfr.c: Likewise.
1047 * recog.c: Likewise.
1049 * reg-stack.c: Likewise.
1050 * regcprop.c: Likewise.
1051 * reginfo.c: Likewise.
1052 * regrename.c: Likewise.
1053 * regstat.c: Likewise.
1054 * reload.c: Likewise.
1055 * reload1.c: Likewise.
1056 * reorg.c: Likewise.
1057 * resource.c: Likewise.
1058 * rtl-chkp.c: Likewise.
1059 * rtl-error.c: Likewise.
1060 * rtlanal.c: Likewise.
1061 * rtlhooks.c: Likewise.
1062 * sanopt.c: Likewise.
1063 * sched-deps.c: Likewise.
1064 * sched-ebb.c: Likewise.
1065 * sched-rgn.c: Likewise.
1067 * shrink-wrap.c: Likewise.
1068 * simplify-rtx.c: Likewise.
1069 * stack-ptr-mod.c: Likewise.
1070 * statistics.c: Likewise.
1072 * stor-layout.c: Likewise.
1073 * store-motion.c: Likewise.
1074 * stringpool.c: Likewise.
1075 * symtab.c: Likewise.
1076 * target-globals.c: Likewise.
1077 * targhooks.c: Likewise.
1078 * toplev.c: Likewise.
1079 * tracer.c: Likewise.
1080 * trans-mem.c: Likewise.
1081 * tree-affine.c: Likewise.
1082 * tree-call-cdce.c: Likewise.
1083 * tree-cfg.c: Likewise.
1084 * tree-cfgcleanup.c: Likewise.
1085 * tree-chkp-opt.c: Likewise.
1086 * tree-chkp.c: Likewise.
1087 * tree-chrec.c: Likewise.
1088 * tree-complex.c: Likewise.
1089 * tree-data-ref.c: Likewise.
1090 * tree-dfa.c: Likewise.
1091 * tree-diagnostic.c: Likewise.
1092 * tree-dump.c: Likewise.
1093 * tree-eh.c: Likewise.
1094 * tree-emutls.c: Likewise.
1095 * tree-if-conv.c: Likewise.
1096 * tree-inline.c: Likewise.
1097 * tree-into-ssa.c: Likewise.
1098 * tree-iterator.c: Likewise.
1099 * tree-loop-distribution.c: Likewise.
1100 * tree-nested.c: Likewise.
1101 * tree-nrv.c: Likewise.
1102 * tree-object-size.c: Likewise.
1103 * tree-outof-ssa.c: Likewise.
1104 * tree-parloops.c: Likewise.
1105 * tree-phinodes.c: Likewise.
1106 * tree-predcom.c: Likewise.
1107 * tree-pretty-print.c: Likewise.
1108 * tree-profile.c: Likewise.
1109 * tree-scalar-evolution.c: Likewise.
1110 * tree-sra.c: Likewise.
1111 * tree-ssa-address.c: Likewise.
1112 * tree-ssa-alias.c: Likewise.
1113 * tree-ssa-ccp.c: Likewise.
1114 * tree-ssa-coalesce.c: Likewise.
1115 * tree-ssa-copy.c: Likewise.
1116 * tree-ssa-dce.c: Likewise.
1117 * tree-ssa-dom.c: Likewise.
1118 * tree-ssa-dse.c: Likewise.
1119 * tree-ssa-forwprop.c: Likewise.
1120 * tree-ssa-ifcombine.c: Likewise.
1121 * tree-ssa-live.c: Likewise.
1122 * tree-ssa-loop-ch.c: Likewise.
1123 * tree-ssa-loop-im.c: Likewise.
1124 * tree-ssa-loop-ivcanon.c: Likewise.
1125 * tree-ssa-loop-ivopts.c: Likewise.
1126 * tree-ssa-loop-manip.c: Likewise.
1127 * tree-ssa-loop-niter.c: Likewise.
1128 * tree-ssa-loop-prefetch.c: Likewise.
1129 * tree-ssa-loop-unswitch.c: Likewise.
1130 * tree-ssa-loop.c: Likewise.
1131 * tree-ssa-math-opts.c: Likewise.
1132 * tree-ssa-operands.c: Likewise.
1133 * tree-ssa-phiopt.c: Likewise.
1134 * tree-ssa-phiprop.c: Likewise.
1135 * tree-ssa-pre.c: Likewise.
1136 * tree-ssa-propagate.c: Likewise.
1137 * tree-ssa-reassoc.c: Likewise.
1138 * tree-ssa-sccvn.c: Likewise.
1139 * tree-ssa-scopedtables.c: Likewise.
1140 * tree-ssa-sink.c: Likewise.
1141 * tree-ssa-strlen.c: Likewise.
1142 * tree-ssa-structalias.c: Likewise.
1143 * tree-ssa-tail-merge.c: Likewise.
1144 * tree-ssa-ter.c: Likewise.
1145 * tree-ssa-threadedge.c: Likewise.
1146 * tree-ssa-threadupdate.c: Likewise.
1147 * tree-ssa-uncprop.c: Likewise.
1148 * tree-ssa-uninit.c: Likewise.
1149 * tree-ssa.c: Likewise.
1150 * tree-ssanames.c: Likewise.
1151 * tree-stdarg.c: Likewise.
1152 * tree-streamer-in.c: Likewise.
1153 * tree-streamer-out.c: Likewise.
1154 * tree-streamer.c: Likewise.
1155 * tree-switch-conversion.c: Likewise.
1156 * tree-tailcall.c: Likewise.
1157 * tree-vect-data-refs.c: Likewise.
1158 * tree-vect-generic.c: Likewise.
1159 * tree-vect-loop-manip.c: Likewise.
1160 * tree-vect-loop.c: Likewise.
1161 * tree-vect-patterns.c: Likewise.
1162 * tree-vect-slp.c: Likewise.
1163 * tree-vect-stmts.c: Likewise.
1164 * tree-vectorizer.c: Likewise.
1165 * tree-vrp.c: Likewise.
1168 * ubsan.c: Likewise.
1169 * value-prof.c: Likewise.
1170 * var-tracking.c: Likewise.
1171 * varasm.c: Likewise.
1172 * varpool.c: Likewise.
1173 * vtable-verify.c: Likewise.
1175 * wide-int-print.cc: Likewise.
1176 * wide-int.cc: Likewise.
1177 * xcoffout.c: Likewise.
1179 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
1181 * Makefile.in (NO_PIE_CFLAGS): New.
1182 (NO_PIE_FLAG): Likewise.
1183 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1184 (NO_PIE_FLAG_FOR_BUILD): Likewise.
1185 (BUILD_NO_PIE_CFLAGS): Likewise.
1186 (BUILD_NO_PIE_FLAG): Likewise.
1187 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
1188 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
1189 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
1190 $(BUILD_NO_PIE_CFLAGS).
1191 (BUILD_CXXFLAGS): Likewise.
1192 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
1193 $(BUILD_NO_PIE_FLAG).
1194 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
1195 (BUILD_NO_PIE_FLAG): Likewise.
1196 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1197 (NO_PIE_FLAG_FOR_BUILD): Likewise.
1198 * configure: Regenerated.
1200 2015-10-29 Richard Biener <rguenther@suse.de>
1203 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
1204 unsigned conditonal negation to ABS_EXPR.
1206 2015-10-29 Richard Biener <rguenther@suse.de>
1208 * gimple-match-head.c (gimple_simplify): Remove premature checking
1209 of builtin_decl_implicit of function calls we simplify.
1211 2015-10-29 Bin Cheng <bin.cheng@arm.com>
1213 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
1214 (get_computation_cost_at): Ditto.
1215 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
1218 2015-10-28 Tom de Vries <tom@codesourcery.com>
1220 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
1223 2015-10-28 Jason Merrill <jason@redhat.com>
1225 * Makefile.in (TAGS): Include libcpp and libiberty.
1227 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1229 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
1230 (extract_omp_for_data): Remove OpenACC special handling of
1233 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
1234 (struct parallel): Update comment.
1235 (nvptx_reorg): Likewise.
1236 (nvptx_neuter): Cleanup whitespace.
1238 2015-10-28 Richard Henderson <rth@redhat.com>
1240 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
1242 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1245 * config/avr/predicates.md (low_io_address_operand): Don't
1246 consider MODE when computing upper bound.
1247 (io_address_operand): Likewise.
1249 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
1251 * fold-const.c (operand_equal_p): Do not verify that types are
1252 compatible for MEM_REFs.
1254 2015-10-28 Richard Biener <rguenther@suse.de>
1256 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
1257 in simplifying VEC_COND_EXPR conditions.
1259 2015-10-28 Tom de Vries <tom@codesourcery.com>
1261 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
1262 into vi_next of a full_var.
1264 2015-10-28 Tom de Vries <tom@codesourcery.com>
1266 * tree-ssa-structalias.c (new_var_info, make_heapvar)
1267 (make_constraint_from_restrict, make_constraint_from_global_restrict)
1268 (create_function_info_for, create_variable_info_for_1)
1269 (create_variable_info_for): Add and handle add_id parameter.
1270 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
1271 (init_base_vars): Add extra argument to calls to new_var_info.
1272 (get_vi_for_tree): Add extra argument to call to
1273 create_variable_info_for.
1274 (process_constraint, do_deref, process_all_all_constraints): Add extra
1275 argument to calls to new_scalar_tmp_constraint_exp.
1276 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
1277 argument to calls to make_heapvar.
1278 (make_restrict_var_constraints): Add extra argument to call to
1279 make_constraint_from_global_restrict.
1280 (intra_create_variable_infos): Add extra argument to call to
1281 create_variable_info_for_1.
1282 (ipa_pta_execute): Add extra argument to call to
1283 create_function_info_for.
1285 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1287 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
1288 (sibcall_value): Likewise.
1290 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1292 * config/nvptx/nvptx.h (struct machine_function): Add
1294 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
1295 nvptx_expand_oacc_join): Declare.
1296 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
1297 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
1298 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
1299 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
1300 UNSPECV_JOINING, UNSPECV_JOIN): New.
1301 (BITS, BITD): New mode iterators.
1302 (br_true_uni, br_false_uni): New.
1303 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
1304 (oacc_dim_size, oacc_dim_pos): New.
1305 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
1306 (oacc_fork, oacc_join): New.
1307 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
1308 (worker_load<mode>, worker_store<mode>): New.
1309 (nvptx_barsync): New.
1310 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
1311 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
1312 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
1313 worker_bcast_sym): New.
1314 (nvptx_option_override): Initialize worker broadcast buffer.
1315 (nvptx_emit_forking, nvptx_emit_joining): New.
1316 (nvptx_init_axis_predicate): New.
1317 (nvptx_declare_function_name): Init axis predicates.
1318 (nvptx_expand_call): Add fork/join markers around routine call.
1319 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
1320 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
1321 (nvptx_gen_vcast): New.
1322 (struct wcast_data_t): New.
1323 (enum propagate_mask): New.
1324 (nvptx_gen_wcast): New.
1325 (nvptx_print_operand): Add 'S' case.
1326 (struct parallel): New.
1327 (parallel::parallel, parallel::~parallel): New.
1328 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
1329 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
1330 nvptx_find_par, nvptx_discover_pars): New.
1331 (nvptx_propagate): New.
1332 (vprop_gen, nvptx_vpropagate): New.
1333 (wprop_gen, nvptx_wpropagate): New.
1335 (nvptx_single, nvptx_skip_par): New.
1336 (nvptx_process_pars, nvptx_neuter_pars): New.
1337 (ntptx_reorg): Split blocks, generate parallel structure, apply
1339 (nvptx_cannot_copy_insn_p): New.
1340 (nvptx_file_end): Emit worker broadcast decl.
1341 (nvptx_goacc_fork_join): New.
1342 (TARGET_CANNOT_COPY_INSN_P): Override.
1343 (TARGET_GOACC_FORK_JOIN): Override.
1345 2015-10-28 Richard Biener <rguenther@suse.de>
1347 * fold-const.c (negate_expr_p): Adjust the division case to
1348 properly avoid introducing undefined overflow.
1349 (fold_negate_expr): Likewise.
1351 2015-10-28 Richard Biener <rguenther@suse.de>
1353 PR tree-optimization/65962
1354 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1355 Avoid creating loop carried dependences also for outer loops
1356 of the loop a use to replace is in.
1358 2015-10-28 Richard Biener <rguenther@suse.de>
1360 * common.opt (fchecking): New flag controlling flag_checking.
1361 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
1362 * timevar.c (timer::print): Adjust output.
1363 * doc/invoke.texi (fchecking): Document.
1365 2015-10-28 Richard Biener <rguenther@suse.de>
1368 * fold-const.c (negate_expr_p): We cannot negate plus or minus
1369 if overflow is not wrapping. Likewise multiplication unless
1370 one operand is constant and not power of two.
1371 (fold_negate_expr): Adjust accordingly.
1373 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1375 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
1377 (is_oacc_parallel, is_oacc_kernels): New.
1378 (enclosing_target_ctx): May return NULL.
1379 (ctx_in_oacc_kernels_region): New.
1380 (check_oacc_kernel_gwv): New.
1381 (oacc_loop_or_target_p): Delete.
1382 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
1383 operands. Strip reductions fro kernels.
1384 (scan_omp_target): Don't calculate gwv mask.
1385 (lower_oacc_head_mark, lower_oacc_loop_marker,
1386 lower_oacc_head_tail): New.
1387 (struct oacc_collapse): New.
1388 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
1389 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1390 Remove OpenACC handling.
1391 (expand_oacc_for): New.
1392 (expand_omp_for): Call expand_oacc_for.
1393 (lower_omp_for): Call lower_oacc_head_tail.
1395 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
1397 * attribs.c (check_attribute_tables): New function, broken out from...
1398 (init_attributes): Use it.
1399 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
1400 gcc_checking_assert and checking_* functions to eliminate
1401 ENABLE_CHECKING conditionals.
1402 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
1403 (pass_expand::execute): Likewise.
1404 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1405 * cgraphunit.c (mark_functions_to_output): Likewise.
1406 (cgraph_node::expand_thunk): Likewise.
1407 (symbol_table::compile): Likewise.
1408 * ddg.c (add_cross_iteration_register_deps): Likewise.
1409 (create_ddg_all_sccs): Likewise.
1410 * df-core.c (df_finish_pass, df_analyze): Likewise.
1411 * diagnostic-core.h: Likewise.
1412 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
1413 * dominance.c (calculate_dominance_info): Likewise.
1414 * dwarf2out.c (add_AT_die_ref): Likewise.
1415 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
1416 (loc_list_from_tree, gen_lexical_block_die): Likewise.
1417 gen_type_die_with_usage, gen_type_die): Likewise.
1418 (dwarf2out_decl): Likewise.
1419 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
1420 * except.c (duplicate_eh_regions): Likewise.
1421 * fwprop.c (register_active_defs, update_df_init): Likewise.
1422 (fwprop_init, fwprop_done): Likewise.
1423 (update_uses): Likewise.
1424 * ggc-page.c (ggc_grow): Likewise.
1425 * gimplify.c (gimplify_body): Likewise.
1426 (gimplify_hasher::equal): Likewise.
1427 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
1428 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
1430 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
1431 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
1432 * hash-table.h (::find_empty_slot_for_expand): Likewise.
1433 * ifcvt.c (if_convert): Likewise.
1434 * ipa-cp.c (ipcp_propagate_stage): Likewise.
1435 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
1436 (odr_type_p, odr_types_equivalent_p): Likewise.
1437 (add_type_duplicate, get_odr_type): Likewise.
1438 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
1439 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
1440 (sem_item_optimizer::verify_classes): Likewise.
1441 (sem_item_optimizer::traverse_congruence_split): Likewise.
1442 (sem_item_optimizer::checking_verify_classes): New.
1443 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
1445 * cfgrtl.c (commit_edge_insertions): Likewise.
1446 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
1447 (rtl_flow_call_edges_add): Likewise.
1448 * cgraph.c (symbol_table::create_edge): Likewise.
1449 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1450 * cgraph.h (symtab_node): Likewise.
1451 (symtab_node::checking_verify_symtab_nodes): Define.
1452 (cgraph_node::checking_verify_cgraph_nodes): Define.
1453 * cfghooks.h (checking_verify_flow_info): Define.
1454 * cfgloop.h (checking_verify_loop_structure): Define.
1455 * dominance.h (checking_verify_dominators): Define.
1456 * et-forest.c: Fix comment.
1457 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
1458 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1459 ENABLE_CHECKING conditionals.
1460 * ipa-inline-transform.c (save_inline_function_body): Likewise.
1461 * ipa-inline.c (inline_small_functions): Likewise.
1462 (early_inliner): Likewise.
1463 * ipa-inline.h (estimate_edge_growth): Likewise.
1464 * ipa-visibility.c (function_and_variable_visibility): Likewise.
1465 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
1466 (ipa_single_use): Likewise.
1467 * ira-int.h: Likewise.
1468 * ira.c (ira): Likewise.
1469 * loop-doloop.c (doloop_optimize_loops): Likewise.
1470 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
1471 * loop-invariant.c (move_loop_invariants): Likewise.
1472 * lra-assigns.c (lra_assign): Likewise.
1473 * lra-constraints.c (lra_constraints): Likewise.
1474 * lra-eliminations.c (lra_eliminate): Likewise.
1475 * lra-int.h (struct lra_reg): Likewise.
1476 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1477 (lra_create_live_ranges_1): Likewise.
1478 * lra-remat.c (create_remat_bb_data): Likewise.
1479 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
1481 (check_rtl): Always define. Remove incorrect guard around
1482 extract_constrain_insn call.
1483 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
1484 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1485 ENABLE_CHECKING conditionals.
1486 * lto-streamer-out.c (DFS::DFS): Likewise.
1487 (lto_output): Likewise.
1488 * lto-streamer.c (lto_streamer_init): Likewise.
1489 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
1490 expand_omp_target, execute_expand_omp): Likewise.
1491 (lower_omp_target): Likewise.
1492 * passes.c (execute_function_todo): Likewise.
1493 (execute_todo, execute_one_pass): Likewise.
1494 (verify_curr_properties): Always define.
1495 * predict.c (tree_estimate_probability: Use flag_checking,
1496 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1497 ENABLE_CHECKING conditionals.
1498 (propagate_freq): Likewise.
1499 * pretty-print.c (pp_format): Likewise.
1500 * real.c (real_to_decimal_for_mode): Likewise.
1501 * recog.c (split_all_insns): Likewise.
1502 * regcprop.c (kill_value_one_regno): Likewise.
1503 (copy_value): Likewise.
1504 (validate_value_data): Define unconditionally.
1505 * reload.c: Fix comment.
1506 * timevar.c: Include options.h
1507 * tree-ssa.h (checking_verify_ssa): Define.
1508 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
1509 * sched-deps.c (CHECK): Remove unused macro.
1510 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
1511 gcc_checking_assert and checking_* functions to eliminate
1512 ENABLE_CHECKING conditionals.
1513 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
1514 * sel-sched.c (struct moveop_static_params): Likewise.
1515 (find_best_reg_for_expr, move_cond_jump): Likewise.
1516 (move_op_orig_expr_not_found): Likewise.
1517 (code_motion_process_successors, move_op): Likewise.
1518 * ssa-iterators.h (first_readonly_imm_use): Likewise.
1519 (next_readonly_imm_use): Likewise.
1520 * store-motion.c (compute_store_table): Likewise.
1521 * symbol-summary.h (function_summary::function_summary): Likewise.
1522 * target.h (cumulative_args_t): Likewise.
1523 (get_cumulative_args, pack_cumulative_args): Likewise.
1524 * timevar.c: (timer::print): Likewise.
1525 * trans-mem.c (ipa_tm_execute): Likewise.
1526 * tree-cfg.c (move_stmt_op): Likewise.
1527 (move_sese_region_to_fn): Likewise.
1528 (gimple_flow_call_edges_add): Likewise.
1529 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
1531 * tree-eh.c (remove_unreachable_handlers): Likewise.
1532 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
1533 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
1534 * tree-into-ssa.c (update_ssa): Likewise.
1535 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
1536 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
1537 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
1538 * tree-predcom.c (suitable_component_p): Likewise.
1539 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
1540 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
1541 * tree-ssa-live.c (verify_live_on_entry): Likewise.
1542 * tree-ssa-live.h (register_ssa_partition): Likewise.
1543 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
1544 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
1545 (tree_transform_and_unroll_loop): Likewise.
1546 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1547 * tree-ssa-operands.c (get_expr_operands): Likewise.
1548 * tree-ssa-propagate.c (replace_exp_1): Likewise.
1549 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
1550 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
1551 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
1552 * tree-ssanames.c (release_ssa_name_fn): Likewise.
1553 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
1554 * tree-vect-loop-manip.c
1555 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1556 (slpeel_checking_verify_cfg_after_peeling): Likewise.
1557 (vect_do_peeling_for_loop_bound): Likewise.
1558 (vect_do_peeling_for_alignment): Likewise.
1559 * tree-vrp.c (supports_overflow_infinity): Likewise.
1560 (set_value_range): Likewise.
1561 * tree.c (free_lang_data_in_cgraph): Likewise.
1562 * value-prof.c (gimple_remove_histogram_value): Likewise.
1563 (free_hist): Likewise.
1564 * var-tracking.c (canonicalize_values_star): Likewise.
1565 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
1567 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1569 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
1570 IFN_GOACC_LOOP): New.
1571 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
1572 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
1573 IFN_UNIQUE_OACC_TAIL_MARK.
1574 (enum ifn_goacc_loop_kind): New.
1575 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
1576 IFN_UNIQUE_OACC_JOIN cases.
1577 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
1578 (expand_GOACC_LOOP): New.
1579 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
1580 * omp-low.c: Include gimple-pretty-print.h.
1581 (struct oacc_loop): New.
1582 (enum oacc_loop_flags): New.
1583 (oacc_thread_numbers): New.
1584 (oacc_xform_loop): New.
1585 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
1586 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
1587 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
1588 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
1589 oacc_loop_discovery): New.
1590 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
1591 oacc_loop_process): New.
1592 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
1593 (execute_oacc_device_lower): Discover & process loops. Process
1595 * target.def (goacc.fork_join): Change sense of hook, clarify
1597 * doc/tm.texi: Regenerated.
1599 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1601 * target-insns.def (oacc_fork, oacc_join): Define.
1602 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
1603 (goacc.fork_join): New GOACC hook.
1604 * targhooks.h (default_goacc_fork_join): Declare.
1605 * omp-low.c (default_goacc_forkjoin): New.
1606 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
1607 * doc/tm.texi: Regenerate.
1609 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1611 * omp-low.c (oacc_init_rediction_array): New.
1612 (oacc_initialize_reduction_data): Initialize array.
1614 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1616 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
1618 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1620 * internal-fn.c (expand_UNIQUE): New.
1621 * internal-fn.h (enum ifn_unique_kind): New.
1622 * internal-fn.def (IFN_UNIQUE): New.
1623 * target-insns.def (unique): Define.
1624 * gimple.h (gimple_call_internal_unique_p): New.
1625 * gimple.c (gimple_call_same_target_p): Check internal fn
1627 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
1628 * tree-ssa-threadedge.c
1629 (record_temporary_equivalences_from_stmts): Likewise.
1630 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
1632 2015-10-27 Richard Henderson <rth@redhat.com>
1635 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
1636 narrowing subregs on SSE and MMX registers.
1637 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
1638 appear to be sub-words of multi-register pseudos must be rejected.
1639 * doc/tm.texi: Regenerate.
1641 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1644 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
1645 operands[0] is a reg before taking its REGNO in split condition.
1646 (*movdi_aarch64): Likewise.
1648 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1650 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
1651 Handle floating point inner modes properly.
1653 2015-10-27 Alan Hayward <alan.hayward@arm.com>
1656 (vectorizable_live_operation): Change iterator.
1658 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1659 Aditya Kumar <aditya.k7@samsung.com>
1661 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
1662 function to schedule based on isl_schedule_node.
1663 (get_schedule_map_st): New schedule optimizer based on
1665 (scop_get_domains): New. Return the isl_union_set containing the
1666 domains of all the pbbs.
1667 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
1669 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
1672 * calls.c (prepare_call_address): Don't handle -fno-plt here.
1673 * config/i386/i386.c (ix86_expand_call): Generate indirect call
1674 via GOT for -fno-plt. Support indirect call via GOT for x32.
1675 * config/i386/predicates.md (sibcall_memory_operand): Allow
1678 2015-10-27 Richard Biener <rguenther@suse.de>
1680 PR tree-optimization/68104
1681 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1682 strided access check ...
1683 (vect_compute_data_refs_alignment): ... here.
1685 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
1686 Joseph Myers <joseph@codesourcery.com>
1687 Mark Shinwell <shinwell@codesourcery.com>
1688 Andrew Stubbs <ams@codesourcery.com>
1689 Rich Felker <dalias@libc.org>
1691 * config.gcc: Handle --enable-fdpic.
1692 * config/sh/constraints.md (Ccl): New constraint.
1693 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
1694 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
1696 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
1698 * config/sh/sh-protos.h (function_symbol_result): New struct.
1699 (function_symbol): Return function_symbol_result.
1700 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
1702 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
1704 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
1705 (sh_option_override): Force -fPIC if FDPIC is in effect.
1706 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
1707 UNSPEC_GOTOFFFUNCDESC cases.
1708 (prepare_move_operands): Use FDPIC initial GOT register for
1709 TLS-related GOT access; inhibit cross-section address offset constants
1711 (sh_assemble_integer): New function.
1712 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
1713 PC-relative call sites.
1714 (expand_ashiftrt): Adapt invocation of function_symbol.
1715 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
1716 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
1717 UNSPEC_GOTOFFFUNCDESC.
1718 (legitimize_pic_address): Resolve function symbols to function
1719 descriptors for FDPIC. Do not use GOT-relative addressing for local
1720 data that may be read-only on FDPIC.
1721 (sh_emit_storesi, sh_emit_storehi): New functions.
1722 (sh_trampoline_init): Generate FDPIC trampolines.
1723 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
1724 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
1725 (sh_output_mi_thunk): Generate FDPIC call.
1726 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
1727 FDPIC, generate call site labels to use PC-relative addressing rather
1728 than GOT-relative addressing.
1729 (sh_conditional_register_usage): Make PIC register fixed and call used
1730 when FDPIC is in effect.
1731 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
1732 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
1733 sh_get_fdpic_reg_initial_val): New functions.
1734 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
1736 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1737 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
1738 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
1739 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
1741 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
1742 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
1743 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
1744 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
1746 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
1747 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
1748 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
1749 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
1750 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
1751 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
1752 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
1753 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
1754 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1755 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
1756 block_move_real, block_lump_real, block_move_real_i4,
1757 block_lump_real_i4): Add support for FDPIC calls.
1758 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
1759 call_value_pop): Adjust for new function_symbol signature.
1760 * config/sh/sh.opt (-mfdpic): New option.
1761 * doc/install.texi (Options specification): Document --enable-fdpic.
1762 * doc/invoke.texi (SH Options): Document -mfdpic.
1765 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
1767 PR tree-optimization/65963
1768 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
1769 LSHIFT_EXPRs as equivalent MULT_EXPRs.
1771 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1774 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
1775 * config/arm/constraints.md (Dp): Update callsite.
1776 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
1778 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1780 * builtins.c (fold_builtin_load_exponent): Rename to...
1781 (fold_const_builtin_load_exponent): ...this and only handle
1783 (fold_builtin_2): Update accordingly.
1784 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
1786 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1788 * builtins.c (fold_builtin_logb): Rename to...
1789 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
1790 (fold_builtin_significand): Rename to...
1791 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
1792 (fold_builtin_1): Update accordingly.
1794 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1796 * builtins.c (fold_builtin_fmin_fmax): Delete.
1797 (fold_builtin_2): Handle constant fmin and fmax arguments here.
1798 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
1800 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
1802 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
1803 for register extension into sign and zero register extension.
1804 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
1805 for sign and zero register extension.
1806 (cortexa57_addrcost_table): Likewise.
1807 (xgene1_addrcost_table): Likewise.
1809 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1811 * fold-const.c (fold_minmax): Delete.
1812 (fold_binary_loc): Don't call it.
1813 * match.pd: Add rules previously handled by fold_minmax.
1815 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1817 * builtins.c (fold_builtin_fma): Remove constant handling.
1818 (fold_builtin_3): Handle constant fma arguments here.
1820 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1822 * builtins.c (fold_builtin_fabs): Remove constant handling.
1823 (fold_builtin_abs): Likewise.
1825 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1827 * builtins.c (fold_builtin_copysign): Delete.
1828 (fold_builtin_2): Handle constant copysign arguments here.
1829 * match.pd: Add rules previously handled by fold_builtin_copysign.
1831 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1833 * builtins.c (fold_builtin_signbit): Delete.
1834 (fold_builtin_2): Handle constant signbit arguments here.
1835 * match.pd: Add rules previously handled by fold_builtin_signbit.
1837 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1839 * match.pd: Handle sqrt(x) cmp 0 specially.
1841 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
1843 * tree-vect-generic.c (expand_vector_operations_1): Check
1844 optab type before using it.
1846 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1848 * config/aarch64/aarch64-protos.h
1849 (struct tune_params): Add autoprefetcher_model field.
1850 * config/aarch64/aarch64.c: Include params.h
1851 (generic_tunings): Specify autoprefetcher_model value.
1852 (cortexa53_tunings): Likewise.
1853 (cortexa57_tunings): Likewise.
1854 (cortexa72_tunings): Likewise.
1855 (thunderx_tunings): Likewise.
1856 (xgene1_tunings): Likewise.
1857 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
1858 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
1859 (aarch64_override_options_internal): Set
1860 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
1862 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1864 * builtins.c (fold_builtin_exponent): Delete.
1865 (fold_builtin_2): Handle constant expN arguments here.
1866 * match.pd: Fold expN(logN(x)) -> x.
1868 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1870 * builtins.c (fold_builtin_powi): Delete.
1871 (fold_builtin_2): Handle constant powi arguments here.
1872 * match.pd: Add rules previously handled by fold_builtin_powi.
1874 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1876 * builtins.c (fold_builtin_pow): Delete in favor of...
1877 (fold_const_builtin_pow): ...this new function. Only handle constant
1879 (fold_builtin_2): Update accordingly.
1880 * match.pd: Add rules previously handled by fold_builtin_pow.
1882 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1884 * builtins.c (fold_builtin_hypot): Delete.
1885 (fold_builtin_2): Handle constant hypot arguments here.
1886 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
1887 hypot(x, x) to fabs(x)*sqrt(2).
1889 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1891 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
1892 instead of make_ssa_name if not yet in SSA form.
1894 2015-10-27 Richard Biener <rguenther@suse.de>
1896 * cfg.c (free_edge): Add function argument and use it instead of cfun.
1897 (clear_edges): Likewise.
1898 * cfg.h (clear_edges): Adjust prototype.
1899 * cfgexpand.c (pass_expand::execute): Adjust.
1900 * cfgloop.c (release_recorded_exits): Add function argument and use
1902 * cfgloop.h (release_recorded_exits): Adjust prototype.
1903 (loops_state_satisfies_p): Add overload with function argument.
1904 (loops_state_set): Likewise.
1905 (loops_state_clear): Likewise.
1906 (struct loop_iterator): Add function argument to constructor
1907 and iterator and use it instead of cfun.
1908 (FOR_EACH_LOOP_FN): New macro.
1909 (loop_optimizer_finalize): Add overload with function argument.
1910 * loop-init.c (loop_optimizer_init): Adjust.
1911 (fix_loop_structure): Likewise.
1912 (loop_optimizer_finaliz): Add function argument and use it
1914 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1915 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
1916 * cgraph.c (release_function_body): Do not push/pop cfun.
1917 * final.c (rest_of_clean_state): Adjust.
1918 * graphite.c (graphite_finalize): Likewise.
1919 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1920 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
1921 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
1922 (tree_unroll_loops_completely): Likewise.
1923 (pass_complete_unrolli::execute): Likewise.
1924 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
1925 Add function argument and use it instead of cfun.
1926 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
1928 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
1929 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
1931 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
1932 * tree-ssanames.c (fini_ssanames): Add function argument and use it
1934 * tree-ssanames.c (fini_ssanames): Adjust prototype.
1935 * tree-vrp.c (execute_vrp): Adjust.
1936 * value-prof.c (free_histograms): Add function argument and use it
1938 * value-prof.h (free_histograms): Adjust prototype.
1940 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1942 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
1943 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
1944 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
1946 2015-10-27 Tom de Vries <tom@codesourcery.com>
1948 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
1951 2015-10-27 Bin Cheng <bin.cheng@arm.com>
1953 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
1954 (inv_can_prop_to_addr_use): New function.
1955 (record_use): Call can_prop_to_addr_uses, set the new field.
1956 (get_inv_cost): Count cost if inv can't be propagated into its
1959 2015-10-26 Doug Evans <dje@google.com>
1961 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
1963 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
1965 * match.pd (fold_widened_comparison): Apply simplifications to all
1968 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
1970 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
1971 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
1972 * doc/tm.texi: Regenerated.
1973 * reorg.c (dbr_schedule): Use new hook.
1974 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
1976 2015-10-26 Jeff Law <law@redhat.com>
1978 PR tree-optimization/68013
1979 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1980 Make sure the first block in the path is in VISITED_BBs.
1982 2015-10-26 Richard Biener <rguenther@suse.de>
1983 Dominik Vogt <vogt@linux.vnet.ibm.com>
1986 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
1987 Properly prune ref->ref for accesses outside of ref.
1989 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
1991 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
1992 new statements to be inserted if inplace. Allow calls to have
1995 2015-10-26 Richard Biener <rguenther@suse.de>
1997 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
1998 (do_valueize): New function.
1999 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
2001 * tree-ssa-threadedge.c: Remove builtins.h include, include
2003 (fold_assignment_stmt): Remove.
2004 (threadedge_valueize): New function.
2005 (record_temporary_equivalences_from_stmts): Use
2006 gimple_fold_stmt_to_constant_1, note additional cleanup
2009 2015-10-26 Richard Biener <rguenther@suse.de>
2011 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
2012 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
2014 2015-10-26 Alan Hayward <alan.hayward@arm.com>
2016 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2017 VEC_COND_EXPR types.
2019 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2021 * auto-inc-dec.c (insert_move_insn_before): Delete.
2022 (attempt_change): Remember to cost the simple move in the
2023 FORM_PRE_ADD and FORM_POST_ADD cases.
2025 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
2028 * config/sh/sh.c (sh_vector_mode_supported_p): Use
2029 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
2031 2015-10-26 Tom de Vries <tom@codesourcery.com>
2033 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
2035 (intra_create_variable_infos): ... here.
2037 2015-10-26 Tom de Vries <tom@codesourcery.com>
2039 * tree-ssa-structalias.c (intra_create_variable_infos): Add
2040 restrict_pointer_p and recursive_restrict_p variables.
2042 2015-10-26 Tom de Vries <tom@codesourcery.com>
2044 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
2045 get_vi_for_tree call.
2047 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2050 * optabs.c (expand_atomic_compare_and_swap): Handle case when
2051 ptarget_oval or ptarget_bool are const0_rtx.
2053 2015-10-26 Christian Bruel <christian.bruel@st.com>
2055 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
2056 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
2057 * cp/method.c (implicitly_declare_fn): Likewise.
2058 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
2059 * java/class.c (add_method_1): Likewise.
2061 2015-10-26 Richard Biener <rguenther@suse.de>
2063 * alloc-pool.h (base_pool_allocator): Use placement new.
2064 (base_pool_allocator::remove): Likewise. Compute size outside of
2067 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2069 * builtins.c (do_real_to_int_conversion): New function.
2070 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
2071 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
2073 * match.pd: Add rules previously handled by fold_fixed_mathfn
2074 and fold_builtin_int_roundingfn.
2076 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2078 * match.pd: Use macros to define built-in operator lists.
2080 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
2081 Richard Biener <rguenther@suse.de>
2083 * genmatch.c (dt_simplify::gen): Skip captures that are
2085 (parser::parse_expr): Allow captures in results too.
2086 * builtins.c (fold_builtin_cexp): Delete.
2087 (fold_builtin_1): Handle constant cexp arguments here.
2088 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
2090 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
2092 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
2093 conditional compilation.
2094 (base_pool_allocator::remove): Use flag_checking.
2096 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
2098 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
2101 * dojump.c (do_compare_and_jump): Canonicalize both function and
2104 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
2107 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
2110 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2113 * ipa-polymorphic-call.c
2114 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
2115 instance offset with offset of outer type.
2117 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2119 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
2121 2015-10-23 Caroline Tice <cmtice@google.com>
2123 (from Richard Biener
2124 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
2125 call to iterative_hash_host_wide_int.
2127 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
2129 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
2132 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2134 * tree-vect-generic.c (expand_vector_operations_1): Check
2135 optab exists before use it.
2137 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2139 * tree-vect-generic.c (expand_vector_condition): Avoid
2140 uninitialized variable warning.
2142 2015-10-23 Jeff Law <law@redhat.com>
2144 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
2146 (execute_todo): Call it here.
2147 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
2149 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
2151 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
2152 Szabolcs Nagy <szabolcs.nagy@arm.com>
2154 * config.gcc (enable_secureplt): Add *-linux*-musl*.
2156 2015-10-23 Jeff Law <law@redhat.com>
2158 PR tree-optimization/67830
2159 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
2160 Explicitly verify the mask has no bits outside the type of
2161 the innermost operands.
2163 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
2164 Szabolcs Nagy <szabolcs.nagy@arm.com>
2166 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
2167 (MUSL_DYNAMIC_LINKER64): Define.
2168 (GNU_USER_DYNAMIC_LINKER32): Update.
2169 (GNU_USER_DYNAMIC_LINKER64): Update.
2170 (CHOOSE_DYNAMIC_LINKER): Update.
2172 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
2173 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
2174 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2175 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2176 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2177 (CHOOSE_DYNAMIC_LINKER): Update.
2178 (INCLUDE_DEFAULTS): Redefine.
2180 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
2182 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2184 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
2185 comparing addresses.
2187 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2189 * fold-const.c (operand_equal_p): Handle matching of vector
2192 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
2194 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
2196 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
2197 Andrew Pinski <apinski@cavium.com>
2199 PR rtl-optimization/67736
2200 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
2203 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2206 * tree.c (build_truth_vector_type): Support BLK mode
2207 returned for boolean vector.
2209 2015-10-23 Alan Hayward <alan.hayward@arm.com>
2211 PR tree-optimization/65947
2213 (vect_is_simple_reduction_1): Find condition reductions.
2214 (vect_model_reduction_cost): Add condition reduction costs.
2215 (get_initial_def_for_reduction): Add condition reduction initial var.
2216 (vect_create_epilog_for_reduction): Add condition reduction epilog.
2217 (vectorizable_reduction): Condition reduction support.
2218 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
2219 * doc/sourcebuild.texi (Vector-specific attributes): Document
2222 2015-10-23 Richard Biener <rguenther@suse.de>
2224 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
2227 2015-10-23 Richard Biener <rguenther@suse.de>
2228 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2230 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
2231 into (A ^ B) - B to match.pd
2232 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
2234 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
2236 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
2238 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
2240 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
2242 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
2243 INTEGER_CST@1)): New simplifier.
2245 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
2247 * builtins.c (integer_valued_real_p): Move to fold-const.c.
2248 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
2249 (fold_builtin_ceil, fold_builtin_round): Delete.
2250 (fold_builtin_1): Handle constant trunc, floor, ceil and round
2252 * convert.c (convert_to_real): Remove narrowing of rounding
2254 * fold-const.h (integer_valued_real_unary_p)
2255 (integer_valued_real_binary_p, integer_valued_real_call_p)
2256 (integer_valued_real_single_p, integer_valued_real_p): Declare.
2257 * fold-const.c (tree_single_nonnegative_warnv_p): Move
2258 name_registered_for_update_p check to SSA_NAME case statement.
2259 Don't call tree_simple_nonnegative_warnv_p for SSA names.
2260 (integer_valued_real_unary_p, integer_valued_real_binary_p)
2261 (integer_valued_real_call_p, integer_valued_real_single_p)
2262 (integer_valued_real_invalid_p): New functions.
2263 (integer_valued_real_p): Move from fold-const.c and rework
2264 to call the functions above. Handle SSA names.
2265 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
2266 * gimple-fold.c (gimple_assign_integer_valued_real_p)
2267 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
2268 (gimple_stmt_integer_valued_real_p): New functions.
2269 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
2270 Fold f(x)->x for the same f if x is known to be integer-valued.
2271 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
2272 the result. Canonicalize floor(x) as trunc(x) if x is
2275 2015-10-23 Tom de Vries <tom@codesourcery.com>
2277 * tree-ssa-structalias.c (intra_create_variable_infos): Use
2278 make_constraint_from.
2280 2015-10-23 Tom de Vries <tom@codesourcery.com>
2282 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
2283 setting of is_full_var in case of a single field.
2285 2015-10-22 Martin Sebor <msebor@redhat.com>
2288 * config/i386/i386.opt: Add missing periods to the ends of sentences.
2289 * config/msp430/msp430.opt: Same.
2291 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2293 * doc/extend.exp (Global Register Variables): Rewrite.
2295 2015-10-22 Jeff Law <law@redhat.com>
2297 * genattrtab.c (main): If we do not have any annul-true or annul-false
2298 slots, then write out a dummy eligible_for_annul_true or
2299 eligible_for_annul_false as needed.
2301 2015-10-22 Nick Clifton <nickc@redhat.com>
2303 * config/msp430/msp430.opt: Add -msilicon-errata and
2304 -msilicon-errata-warn.
2305 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
2307 * doc/invoke.texi: Document new options.
2309 2015-10-22 Richard Biener <rguenther@suse.de>
2311 PR tree-optimization/58497
2312 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
2313 (expand_vector_operations_1): Use it. Lower operations on
2314 all uniform vectors to scalar operations if the HW supports it.
2316 2015-10-22 Richard Biener <rguenther@suse.de>
2318 PR tree-optimization/19049
2319 PR tree-optimization/65962
2320 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
2321 to strided accesses if single-element interleaving doesn't work.
2323 2015-10-22 Richard Biener <rguenther@suse.de>
2327 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
2328 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
2329 (expand_unop): Likewise.
2331 2015-10-22 Richard Biener <rguenther@suse.de>
2333 * fold-const.c (fold_addr_of_array_ref_difference): Properly
2334 convert operands before folding a MINUS_EXPR.
2335 (fold_binary_loc): Move simplification of MINUS_EXPR on
2336 converted POINTER_PLUS_EXPRs ...
2337 * match.pd: ... here.
2339 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
2341 * builtins.c (fold_builtin_tan): Delete.
2342 (fold_builtin_1): Handle constant tan arguments here.
2343 * match.pd: Simplify (tan (atan x)) to x.
2345 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
2347 * builtins.c (fold_builtin_cproj): Delete.
2348 (fold_builtin_1): Handle constant arguments here.
2349 (build_complex_cproj): Move and rename to...
2350 * tree.c: (build_complex_inf): ...this.
2351 * tree.h (build_complex_inf): Declare.
2352 * match.pd: Fold cproj(x)->x if x has no infinity.
2353 Use build_complex_inf for existing cproj rules.
2355 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2358 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
2359 already have a comparison result.
2361 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2364 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
2365 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
2366 (aarch64_classify_address): Likewise.
2367 (aarch64_secondary_reload): Likewise.
2368 (aarch64_override_options_after_change_1): Adjust.
2369 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2370 Use aarch64_nopcrelative_literal_loads.
2371 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2372 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
2375 2015-10-21 Martin Sebor <msebor@redhat.com>
2378 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
2379 (print_filtered_help): Reference aliased option's name and encourage
2380 readers to use it in preference to the alias if the former is not
2381 documented. Mention when using an option is diagnosed.
2382 * gcc.c (display_help): End each sentence with a period.
2384 * common.opt: End each sentence that describes an option with
2386 * config/aarch64/aarch64.opt: Same.
2387 * config/alpha/alpha.opt: Same.
2388 * config/arc/arc.opt: Same.
2389 * config/arm/arm.opt: Same.
2390 * config/avr/avr.opt: Same.
2391 * config/bfin/bfin.opt: Same.
2392 * config/c6x/c6x.opt: Same.
2393 * config/cr16/cr16.opt: Same.
2394 * config/cris/cris.opt: Same.
2395 * config/cris/linux.opt: Same.
2396 * config/darwin.opt: Same.
2397 * config/epiphany/epiphany.opt: Same.
2398 * config/fr30/fr30.opt: Same.
2399 * config/frv/frv.opt: Same.
2400 * config/ft32/ft32.opt: Same.
2401 * config/g.opt: Same.
2402 * config/h8300/h8300.opt: Same.
2403 * config/i386/cygming.opt: Same.
2404 * config/i386/djgpp.opt: Same.
2405 * config/i386/i386.opt: Same.
2406 * config/i386/interix.opt: Same.
2407 * config/i386/mingw-w64.opt: Same.
2408 * config/i386/mingw.opt: Same.
2409 * config/ia64/ia64.opt: Same.
2410 * config/ia64/ilp32.opt: Same.
2411 * config/iq2000/iq2000.opt: Same.
2412 * config/linux.opt: Same.
2413 * config/lm32/lm32.opt: Same.
2414 * config/lynx.opt: Same.
2415 * config/m32c/m32c.opt: Same.
2416 * config/m32r/m32r.opt: Same.
2417 * config/m68k/ieee.opt: Same.
2418 * config/m68k/m68k.opt: Same.
2419 * config/mcore/mcore.opt: Same.
2420 * config/mep/mep.opt: Same.
2421 * config/microblaze/microblaze.opt: Same.
2422 * config/mips/mips.opt: Same.
2423 * config/mmix/mmix.opt: Same.
2424 * config/mn10300/mn10300.opt: Same.
2425 * config/moxie/moxie.opt: Same.
2426 * config/msp430/msp430.opt: Same.
2427 * config/nios2/elf.opt: Same.
2428 * config/nios2/nios2.opt: Same.
2429 * config/nvptx/nvptx.opt: Same.
2430 * config/pa/pa-hpux.opt: Same.
2431 * config/pa/pa-hpux1010.opt: Same.
2432 * config/pa/pa-hpux1111.opt: Same.
2433 * config/pa/pa-hpux1131.opt: Same.
2434 * config/pa/pa.opt: Same.
2435 * config/pa/pa64-hpux.opt: Same.
2436 * config/pdp11/pdp11.opt: Same.
2437 * config/rl78/rl78.opt: Same.
2438 * config/rs6000/476.opt: Same.
2439 * config/rs6000/aix64.opt: Same.
2440 * config/rs6000/darwin.opt: Same.
2441 * config/rs6000/linux64.opt: Same.
2442 * config/rs6000/rs6000.opt: Same.
2443 * config/rs6000/sysv4.opt: Same.
2444 * config/s390/s390.opt: Same.
2445 * config/s390/tpf.opt: Same.
2446 * config/sh/sh.opt: Same.
2447 * config/sol2.opt: Same.
2448 * config/sparc/long-double-switch.opt: Same.
2449 * config/sparc/sparc.opt: Same.
2450 * config/spu/spu.opt: Same.
2451 * config/stormy16/stormy16.opt: Same.
2452 * config/tilegx/tilegx.opt: Same.
2453 * config/tilepro/tilepro.opt: Same.
2454 * config/v850/v850.opt: Same.
2455 * config/vax/vax.opt: Same.
2456 * config/visium/visium.opt: Same.
2457 * config/vms/vms.opt: Same.
2458 * config/vxworks.opt: Same.
2459 * config/xtensa/xtensa.opt: Same.
2461 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2462 Sebastian Pop <s.pop@samsung.com>
2464 * graphite-scop-detection.c (parameter_index_in_region): Update call to
2465 invariant_in_sese_p_rec.
2466 * graphite-sese-to-poly.c (extract_affine): Same.
2467 * sese.c (invariant_in_sese_p_rec): Pass in an extra
2468 parameter has_vdefs.
2469 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
2470 variable depends on virtual definitions in the current region.
2471 * sese.h (invariant_in_sese_p_rec): Update declaration.
2473 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2474 Sebastian Pop <s.pop@samsung.com>
2476 * graphite-scop-detection.c (build_scops): Do not handle scops
2477 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
2478 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
2480 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
2482 * config.in: Regenerate.
2483 * configure: Regenerate.
2484 * configure.ac (CHECKING_P): Define.
2485 * system.h: Use CHECKING_P.
2487 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2490 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
2491 is negative we don't know the type.
2492 (check_stmt_for_type_change): Skip constructors of non-polymorphic
2493 types as those won't help devirutalization.
2495 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2497 * fold-const.c (operand_equal_p): Add code matching empty constructors.
2499 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
2501 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
2503 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
2504 Add comments on sign of the result.
2505 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
2506 Recurse on operand #1 instead of operand #0.
2507 <CEIL_MOD_EXPR>: Do not recurse.
2508 <ROUND_MOD_EXPR>: Likewise.
2510 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2512 * cfgrtl.c (pass_free_cfg::execute): Adjust.
2513 * final.c (dbr_sequence_length): Always define.
2514 (shorten_branches): Adjust.
2515 * genattr-common.c (main): Always define DELAY_SLOTS.
2516 * genattr.c (main): Unconditionally declare functions and define
2517 macros related to delay slots.
2518 * genattrtab.c (write_eligible_delay): Adjust.
2519 (main): Always write out delay slot functions.
2520 * opts.c (default_options_table): Adjust.
2521 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
2522 (redirect_with_delay_list_safe_p): Likewise.
2523 (fill_simple_delay_slots): Likewise.
2524 (fill_slots_from_thread): Likewise.
2525 (make_return_insns): Likewise.
2526 (dbr_schedule): Likewise.
2527 (rest_of_handle_delay_slots): Likewise.
2528 (pass_delay_slots::gate): Likewise.
2529 * toplev.c (process_options): Likewise.
2531 2015-10-21 Richard Henderson <rth@redhat.com>
2533 * targhooks.c (default_addr_space_pointer_mode): Remove check
2534 for generic address space.
2535 (default_addr_space_address_mode): Likewise.
2536 (default_addr_space_valid_pointer_mode): Likewise.
2537 (default_addr_space_legitimate_address_p): Likewise.
2538 (default_addr_space_legitimize_address): Likewise.
2539 * target.def (addr_space.pointer_mode): Update documentation
2540 of default behavior.
2541 (addr_space.address_mode): Likewise.
2544 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
2547 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2549 * builtins.c (fold_builtin_cabs): Delete.
2550 (fold_builtin_1): Update accordingly. Handle constant arguments here.
2551 * match.pd: Add rules previously handled by fold_builtin_cabs.
2553 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2555 * fold-const.h (fold_strip_sign_ops): Delete.
2556 * fold-const.c (fold_strip_sign_ops): Likewise.
2557 (fold_unary_loc, fold_binary_loc): Remove calls to it.
2558 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
2559 (fold_builtin_ccos): Delete.
2560 (fold_builtin_pow): Don't call fold_strip_sign_ops.
2561 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
2562 Remove fndecl argument.
2563 (fold_builtin_1): Update calls accordingly. Handle constant
2564 cos, cosh, ccos and ccosh here.
2566 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2568 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
2569 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
2570 * common.opt (fssa-backprop): New option.
2571 * fold-const.h (negate_mathfn_p): Declare.
2572 * fold-const.c (negate_mathfn_p): Make public.
2573 * timevar.def (TV_TREE_BACKPROP): New.
2574 * tree-pass.h (make_pass_backprop): Declare.
2575 * passes.def (pass_backprop): Add.
2576 * gimple-ssa-backprop.c: New file.
2578 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2579 Sebastian Pop <s.pop@samsung.com>
2581 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
2582 Do not call create_empty_if_region_on_edge when cond_expr is true.
2583 (translate_isl_ast_node_for): Check whether a guard has been generated.
2585 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2587 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
2588 (operator=): Removed.
2589 (dr_info): Make alias_set number the last argument with default
2590 value of invalid_alias_set.
2591 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
2593 (rewrite_reductions_out_of_ssa): Iterate only through the
2594 basic blocks which are inside region.
2595 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2596 * sese.h (struct sese_l): Removed assignment operator.
2597 (split_region_for_bb): Removed dead code.
2599 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2601 * graphite-poly.h (struct dr_info): Removed conversion constructor.
2602 (struct scop): Renamed scop::region to scop::scop_info
2603 (scop_set_region): Same.
2604 (SCOP_REGION): Removed
2605 (SCOP_CONTEXT): Removed.
2606 (POLY_SCOP_P): Removed.
2607 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2608 Rename scop->region to scop->scop_info.
2609 (add_parameters_to_ivs_params): Same.
2610 (graphite_regenerate_ast_isl): Same.
2611 * graphite-poly.c (new_scop): Same.
2613 (print_scop_params): Same.
2614 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
2615 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
2616 (dot_all_scops_1): Rename scop->region to scop->scop_info.
2617 (scop_detection::nb_pbbs_in_loops): Same.
2618 (find_scop_parameters): Same.
2619 (try_generate_gimple_bb): Same.
2620 (gather_bbs::before_dom_children): Same.
2621 (gather_bbs::after_dom_children): Same.
2622 (build_scops): Same.
2623 * graphite-sese-to-poly.c (build_scop_scattering): Same.
2624 (extract_affine_chrec): Same.
2625 (extract_affine): Same.
2626 (set_scop_parameter_dim): Same.
2627 (build_loop_iteration_domains): Same.
2628 (create_pw_aff_from_tree): Same.
2629 (add_param_constraints): Same.
2630 (build_scop_iteration_domain): Same.
2631 (build_scop_drs): Same.
2632 (analyze_drs_in_stmts): Same.
2633 (insert_out_of_ssa_copy_on_edge): Same.
2634 (rewrite_close_phi_out_of_ssa):Same.
2635 (rewrite_reductions_out_of_ssa):Same.
2636 (handle_scalar_deps_crossing_scop_limits):Same.
2637 (rewrite_cross_bb_scalar_deps):Same.
2638 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
2639 (build_poly_scop):Same.
2640 (build_alias_set): Use pointer to dr_info.
2641 * graphite.c (print_graphite_scop_statistics):
2642 (graphite_transform_loops):
2643 * sese.h (struct sese_l): Remove conversion constructor.
2645 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2648 * tree.c (verify_type): Verify that TYPE_MODE match
2649 between TYPE_CANONICAL and type.
2650 * expr.c (store_expr_with_bounds): Revert my previous change.
2651 * expmed.c (store_bit_field_1): Revert prevoius change.
2652 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
2653 to match for all types.
2655 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
2657 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
2660 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2662 * doc/tm.texi: Regenerated.
2663 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
2664 * stor-layout.c (layout_type): Use mode to get vector mask size.
2665 * target.def (get_mask_mode): New.
2666 * targhooks.c (default_get_mask_mode): New.
2667 * targhooks.h (default_get_mask_mode): New.
2668 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
2670 * tree.c (MAX_BOOL_CACHED_PREC): New.
2671 (nonstandard_boolean_type_cache): New.
2672 (build_nonstandard_boolean_type): New.
2673 (make_vector_type): Vector mask has no canonical type.
2674 (build_truth_vector_type): New.
2675 (build_same_sized_truth_vector_type): New.
2676 (truth_type_for): Support vector masks.
2677 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
2678 (build_truth_vector_type): New.
2679 (build_same_sized_truth_vector_type): New.
2680 (build_nonstandard_boolean_type): New.
2681 * tree-cfg.c (verify_gimple_comparison) Require boolean
2682 vector type for vector comparison.
2683 (verify_gimple_assign_ternary): Likewise.
2684 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
2686 * tree-vect-stmts.c (vectorizable_condition): Use boolean
2687 vector type for vector comparison.
2688 * tree-vect-generic.c (elem_op_func): Add new operand to hold
2690 (do_unop): Adjust to modified function type.
2691 (do_binop): Likewise.
2692 (do_plus_minus): Likewise.
2693 (do_negate); Likewise.
2694 (expand_vector_piecewise): Likewise.
2695 (do_cond): Likewise.
2696 (do_compare): Use comparison instead of condition.
2697 (expand_vector_divmod): Use boolean vector type for comparison.
2698 (expand_vector_operations_1): Skip scalar mask operations.
2700 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2702 * omp-low.c (simd_clone_create): Set in_other_partition
2705 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2707 * doc/extend.exp (Local Register Variables): Rewrite.
2709 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2711 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
2712 and x*x in cases where the operands are sign ops. Extend these
2713 rules to handle copysign as a sign op (including for cos, cosh
2714 and pow, which already treated negate and abs as sign ops).
2716 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
2719 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
2720 for 64-bit MS_ABI targets also when default incoming stack boundary
2723 2015-10-21 Richard Biener <rguenther@suse.de>
2725 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
2726 cond stmts, enhanced and split out from ...
2727 (vn_phi_eq): ... here.
2729 2015-10-21 Richard Biener <rguenther@suse.de>
2732 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
2733 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
2734 (tree_single_nonnegative_warnv_p): ... here. For SSA names
2735 make sure they are not registered for update.
2737 2015-10-21 Richard Biener <rguenther@suse.de>
2739 PR tree-optimization/68026
2740 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
2741 unsigned VARYING values.
2743 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2745 * asan.c (asan_emit_stack_protection): Don't pass local stack to
2746 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
2747 NULL and use local stack than.
2748 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
2749 in addition to __asan_init.
2750 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
2751 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
2752 * asan.h (asan_intercepted_p): Handle new string builtins.
2753 * ubsan.c (ubsan_use_new_style_p): New function.
2754 (ubsan_instrument_float_cast): If location is unknown, assign
2755 input_location to loc. Propagate loc to ubsan_create_data if
2756 ubsan_use_new_style_p returned true.
2758 2015-10-21 Jeff Law <law@redhat.com>
2760 * Makefile.in (OBJS): Remove sched-vis.c
2761 * sched-vis.c: Removed. Code moved into...
2762 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
2763 * rtl.h: Remove prototypes for functions now living in print-rtl.c
2764 * print-rtl.h Add prototypes for new functions in print-rtl.c.
2765 * auto-inc-dec.c: Include print-rtl.h
2766 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
2767 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
2769 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
2772 2015-10-21 Richard Biener <rguenther@suse.de>
2773 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2775 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
2777 Move (a * (1 << b)) is (a << b) to match.pd.
2778 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
2779 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
2780 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
2782 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
2784 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
2785 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
2786 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
2788 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
2790 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
2792 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
2793 Szabolcs Nagy <szabolcs.nagy@arm.com>
2794 Alan Modra <amodra@gmail.com>
2796 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
2797 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
2798 (LINK_SPEC): Add %(link_secure_plt).
2799 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
2800 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
2802 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
2803 Szabolcs Nagy <szabolcs.nagy@arm.com>
2805 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
2806 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
2808 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2810 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
2812 (fusion_load_store): Use it.
2813 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
2814 ldp and stp in VD modes.
2815 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
2816 (store_pair<mode>, VD): Likewise.
2818 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
2820 PR rtl-optimization/67609
2821 * lra-splill.c (lra_final_code_change): Don't remove all
2824 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2826 * simplify-rtx.c (simplify_binary_operation): If either operand was
2827 a constant pool reference use them if all other simplifications failed.
2829 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2831 * config/aarch64/aarch64.md
2832 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
2833 * config/aarch64/aarch64-simd.md
2834 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
2835 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
2836 (aarch64_fpconst_pow_of_2): New function.
2837 (aarch64_vec_fpconst_pow_of_2): Likewise.
2838 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
2840 (aarch64_vec_fpconst_pow_of_2): Likewise.
2841 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
2842 (aarch64_fp_vec_pow2): Likewise.
2844 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
2846 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
2847 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
2848 * config/alpha/alpha.c (alpha_function_arg_advance): Update
2849 ALPHA_ARG_SIZE usage.
2850 (alpha_arg_partial_bytes): Ditto.
2852 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
2855 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
2856 error_mark_node decls.
2858 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
2862 * common/config/i386/i386-common.c (ix86_handle_option): Remove
2863 OPT_miamcu handling.
2864 * config/i386/i386.c (PTA_NO_80387): New macro.
2865 (processor_alias_table): Add PTA_NO_80387 to lakemont.
2866 (ix86_option_override_internal): Update MASK_80387 from
2867 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
2868 SSE math only if 80387 is supported. Don't change
2870 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
2872 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
2873 if TARGET_80387 is true and TARGET_IAMCU is false.
2874 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
2875 is true and TARGET_IAMCU_P is false.
2877 2015-10-20 Richard Biener <rguenther@suse.de>
2879 PR tree-optimization/68017
2880 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
2882 2015-10-20 Martin Liska <mliska@suse.cz>
2884 * cgraphclones.c (cgraph_node::create_virtual_clone):
2885 Verify cgraph_node.local.versionable instead of calling
2886 tree_versionable_function_p.
2887 * ipa-cp.c (determine_versionability): Save the information
2888 to ipa_node_params summary.
2889 (ipcp_versionable_function_p): Use it.
2890 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
2891 (ipcp_generate_summary): Do not compute cgraph_node
2893 * ipa-inline-analysis.c (inline_generate_summary): Compute
2894 versionability for all cgraph nodes.
2895 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
2896 ipa_node_params::versionability.
2897 * ipa-prop.h (struct ipa_node_params): Declare it.
2899 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2902 * varasm.c (assemble_variable): Move special vtv handling to..
2903 (handle_vtv_comdat_sections): .. here. New function.
2904 (output_object_block): Handle vtv sections.
2906 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
2909 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
2911 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
2913 * doc/extend.texi: Update documentation WRT inline functions.
2915 2015-10-20 Alan Modra <amodra@gmail.com>
2918 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
2919 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
2920 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
2922 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
2924 PR rtl-optimization/66790
2925 * df.h (DF_MIR): New macro.
2926 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
2927 (DF_MIR_INFO_BB): New macro.
2928 (DF_MIR_IN, DF_MIR_OUT): New macros.
2929 (struct df_mir_bb_info): New.
2930 (df_mir): New macro.
2931 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
2933 (df_mir_get_bb_info): New.
2934 * df-problems.c (struct df_mir_problem_data): New.
2935 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
2936 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
2937 df_mir_confluence_0, df_mir_confluence_n,
2938 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
2939 df_mir_bottom_dump, df_mir_verify_solution_start,
2940 df_mir_verify_solution_end): New.
2942 (df_mir_add_problem, df_mir_simulate_one_insn): New.
2943 * timevar.def (TV_DF_MIR): New.
2944 * ree.c: Include bitmap.h
2945 (add_removable_extension): Add an INIT_REGS parameter. Use it
2946 to skip zero-extensions that may get an uninitialized register.
2947 (find_removable_extensions): Compute must-initialized registers
2948 using the MIR dataflow problem. Update the call to
2949 add_removable_extension.
2950 (find_and_remove_re): Call df_mir_add_problem.
2952 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
2954 * common/config/mn10300/mn10300-common.c
2955 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
2956 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
2958 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
2960 * doc/extend.texi (Explicit Register Variables): Simplify and
2961 avoid unnecessary and confusion abbreviations. Update cross
2963 doc/implement-c.tex: Update cross reference.
2965 2015-10-19 Jeff Law <law@redhat.com>
2967 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
2968 that create irreducible loops unless the path elimiantes a multiway
2971 2015-10-19 Richard Biener <rguenther@suse.de>
2973 PR tree-optimization/67975
2974 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
2975 * tree-cfg.c (extract_true_false_controlled_edges): Split out
2976 core worker from ...
2977 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
2978 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
2979 instead of block number for PHIs with two or one args.
2980 (vn_phi_eq): Compare edge predicates of PHIs that are in different
2983 2015-10-19 Richard Biener <rguenther@suse.de>
2985 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
2986 (gimple_stmt_nonnegative_warnv_p): Use it.
2987 * match.pd (CPROJ): New operator list.
2988 (cproj (complex ...)): Move simplifications from ...
2989 * builtins.c (fold_builtin_cproj): ... here.
2991 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2993 * config/i386/i386.c (ix86_expand_vector_move): Use
2994 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
2997 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2999 * doc/invoke.texi: Replace @optindex with @opindex.
3001 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3004 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
3005 arch= is set, clear all bits in x_ix86_isa_flags, except for
3006 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
3008 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
3011 * common.opt (fkeep-static-functions): New option.
3012 * doc/invoke.texi: Document it.
3013 * cgraphunit.c (cgraph_node::finalize_function): Use it.
3015 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3017 * sched-int.h (struct autopref_multipass_data_): Remove offset
3018 field. Add min_offset, max_offset, multi_mem_insn_p fields.
3019 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
3020 (autopref_multipass_init): Use it. Handle PARALLEL sets.
3021 (autopref_rank_data): New function.
3022 (autopref_rank_for_schedule): Use it.
3023 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
3025 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
3028 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
3030 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3032 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
3033 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
3034 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
3035 (STANDARD_STARTFILE_PREFIX_1): New.
3036 (STANDARD_STARTFILE_PREFIX_2): New.
3038 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3040 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
3041 (darwin_driver_init): Note a version-min when provided on the c/l.
3042 * config/darwin.h (%darwin_minversion): Remove.
3043 * config/i386/darwin.h: Likewise.
3044 * config/rs6000/darwin.h: Likewise.
3045 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
3046 rather than an arbitrary constant.
3048 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3050 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
3051 PPC, detect conflicts between -arch and multilib settings. Detect
3052 and warn about conflicts between multiple -arch definitions.
3054 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3056 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
3058 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3060 * lra-constraints.c (add_next_usage_insn): Change argument type
3061 from rtx to rtx_insn *.
3063 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
3065 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
3068 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
3070 * config/tilepro/gen-mul-tables.cc: Adjust include files.
3071 * config/tilegx/mul-tables.c: Regenerate.
3072 * config/tilepro/mul-tables.c: Regenerate.
3074 * config/tilegx/tilegx-c.c: Adjust include files.
3075 * config/tilegx/tilegx.c: Likewise.
3076 * config/tilepro/tilepro-c.c: Likewise.
3077 * config/tilepro/tilepro.c: Likewise.
3078 * config/aarch64/aarch64-builtins.c: Likewise.
3079 * config/aarch64/aarch64.c: Likewise.
3080 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3081 * config/alpha/alpha.c: Likewise.
3082 * config/arc/arc.c: Likewise.
3083 * config/arm/aarch-common.c: Likewise.
3084 * config/arm/arm-builtins.c: Likewise.
3085 * config/arm/arm-c.c: Likewise.
3086 * config/arm/arm.c: Likewise.
3087 * config/avr/avr-c.c: Likewise.
3088 * config/avr/avr-devices.c: Likewise.
3089 * config/avr/avr-log.c: Likewise.
3090 * config/avr/avr.c: Likewise.
3091 * config/bfin/bfin.c: Likewise.
3092 * config/c6x/c6x.c: Likewise.
3093 * config/cr16/cr16.c: Likewise.
3094 * config/cris/cris.c: Likewise.
3095 * config/darwin-c.c: Likewise.
3096 * config/darwin-driver.c: Likewise.
3097 * config/darwin.c: Likewise.
3098 * config/default-c.c: Likewise.
3099 * config/epiphany/epiphany.c: Likewise.
3100 * config/epiphany/mode-switch-use.c: Likewise.
3101 * config/epiphany/resolve-sw-modes.c: Likewise.
3102 * config/fr30/fr30.c: Likewise.
3103 * config/frv/frv.c: Likewise.
3104 * config/ft32/ft32.c: Likewise.
3105 * config/glibc-c.c: Likewise.
3106 * config/h8300/h8300.c: Likewise.
3107 * config/i386/host-cygwin.c: Likewise.
3108 * config/i386/host-mingw32.c: Likewise.
3109 * config/i386/i386-c.c: Likewise.
3110 * config/i386/i386.c: Likewise.
3111 * config/i386/msformat-c.c: Likewise.
3112 * config/i386/winnt-cxx.c: Likewise.
3113 * config/i386/winnt-stubs.c: Likewise.
3114 * config/i386/winnt.c: Likewise.
3115 * config/ia64/ia64-c.c: Likewise.
3116 * config/ia64/ia64.c: Likewise.
3117 * config/iq2000/iq2000.c: Likewise.
3118 * config/lm32/lm32.c: Likewise.
3119 * config/m32c/m32c-pragma.c: Likewise.
3120 * config/m32c/m32c.c: Likewise.
3121 * config/m32r/m32r.c: Likewise.
3122 * config/mcore/mcore.c: Likewise.
3123 * config/mep/mep-pragma.c: Likewise.
3124 * config/mep/mep.c: Likewise.
3125 * config/microblaze/microblaze-c.c: Likewise.
3126 * config/microblaze/microblaze.c: Likewise.
3127 * config/mips/mips-tables.opt
3128 * config/mips/mips.c: Likewise.
3129 * config/mmix/mmix.c: Likewise.
3130 * config/mn10300/mn10300.c: Likewise.
3131 * config/moxie/moxie.c: Likewise.
3132 * config/msp430/msp430-c.c: Likewise.
3133 * config/msp430/msp430.c: Likewise.
3134 * config/nds32/nds32-cost.c: Likewise.
3135 * config/nds32/nds32-fp-as-gp.c: Likewise.
3136 * config/nds32/nds32-intrinsic.c: Likewise.
3137 * config/nds32/nds32-isr.c: Likewise.
3138 * config/nds32/nds32-md-auxiliary.c: Likewise.
3139 * config/nds32/nds32-memory-manipulation.c: Likewise.
3140 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3141 * config/nds32/nds32-predicates.c: Likewise.
3142 * config/nds32/nds32.c: Likewise.
3143 * config/nios2/nios2.c: Likewise.
3144 * config/nvptx/mkoffload.c: Likewise.
3145 * config/nvptx/nvptx.c: Likewise.
3146 * config/pa/pa.c: Likewise.
3147 * config/pdp11/pdp11.c: Likewise.
3148 * config/rl78/rl78-c.c: Likewise.
3149 * config/rl78/rl78.c: Likewise.
3150 * config/rs6000/host-darwin.c: Likewise.
3151 * config/rs6000/rs6000-c.c: Likewise.
3152 * config/rs6000/rs6000-linux.c: Likewise.
3153 * config/rs6000/rs6000.c: Likewise.
3154 * config/rx/rx.c: Likewise.
3155 * config/s390/s390-c.c: Likewise.
3156 * config/s390/s390.c: Likewise.
3157 * config/sh/sh-c.c: Likewise.
3158 * config/sh/sh-mem.cc: Likewise.
3159 * config/sh/sh.c: Likewise.
3160 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3161 * config/sh/sh_treg_combine.cc: Likewise.
3162 * config/sol2-c.c: Likewise.
3163 * config/sol2-cxx.c: Likewise.
3164 * config/sol2-stubs.c: Likewise.
3165 * config/sol2.c: Likewise.
3166 * config/sparc/sparc-c.c: Likewise.
3167 * config/sparc/sparc.c: Likewise.
3168 * config/spu/spu-c.c: Likewise.
3169 * config/spu/spu.c: Likewise.
3170 * config/stormy16/stormy16.c: Likewise.
3171 * config/v850/v850-c.c: Likewise.
3172 * config/v850/v850.c: Likewise.
3173 * config/vax/vax.c: Likewise.
3174 * config/visium/visium.c: Likewise.
3175 * config/vms/vms-c.c: Likewise.
3176 * config/vms/vms.c: Likewise.
3177 * config/vxworks.c: Likewise.
3178 * config/winnt-c.c: Likewise.
3179 * config/xtensa/xtensa.c: Likewise.
3181 2015-10-16 Christian Bruel <christian.bruel@st.com>
3184 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
3185 (FUNCTION_BOUNDARY_P): New macro:
3186 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
3188 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
3189 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
3190 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
3191 * gcc/function.c (allocate_struct_function): Call
3192 relayout_function hook.
3193 * gcc/passes.c (rest_of_decl_compilation): Likewise.
3195 2015-10-16 Christian Bruel <christian.bruel@st.com>
3198 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
3199 * config/arm/arm.c (arm_option_override_internal): Call
3200 arm_override_options_after_change_1.
3201 (arm_override_options_after_change): New function.
3202 (arm_override_options_after_change_1): Likewise.
3203 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
3205 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3208 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3211 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
3213 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
3214 argument is an ADDR_EXPR.
3216 2015-10-16 Richard Biener <rguenther@suse.de>
3218 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
3219 and get rid of force_gimple_operand_gsi.
3220 (gimple_fold_builtin_memory_chk): Likewise.
3221 (gimple_fold_builtin_stxcpy_chk): Likewise.
3222 (rewrite_to_defined_overflow): Likewise.
3223 (gimple_convert_to_ptrofftype): New function.
3224 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
3226 2015-10-16 Richard Biener <rguenther@suse.de>
3228 * tree-nested.h (build_addr): Adjust prototype.
3229 * tree-nested.c (build_addr): Remove context argument and use
3231 (get_static_chain): Adjust calls to build_addr.
3232 (convert_nl_goto_reference): Likewise.
3233 (convert_tramp_reference_op): Likewise.
3234 (finalize_nesting_tree_1): Likewise.
3235 * value-prof.c (gimple_ic): Likewise.
3236 * gimple-low.c (lower_builtin_setjmp): Likewise.
3237 * tree-parloops.c (take_address_of): Likewise.
3238 (create_call_for_reduction_1): Likewise.
3239 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
3240 (gimple_gen_ic_func_profiler): Likewise.
3242 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3244 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3247 2015-10-16 Michael Collison <michael.collison@linaro.org>
3248 Andrew Pinski <andrew.pinski@caviumnetworks.com>
3250 * match.pd ((x < y) && (x < z) -> x < min (y,z),
3251 (x > y) and (x > z) -> x > max (y,z))
3253 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
3254 Szabolcs Nagy <szabolcs.nagy@arm.com>
3256 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
3257 (DYNAMIC_LINKER): Renamed to ...
3258 (GLIBC_DYNAMIC_LINKER): This.
3259 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
3261 2015-10-15 Marek Polacek <polacek@redhat.com>
3263 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
3264 gimple_call_builtin instead of is_gimple_call.
3266 2015-10-15 Richard Biener <rguenther@suse.de>
3268 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
3270 2015-10-15 Richard Biener <rguenther@suse.de>
3272 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
3273 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
3274 * tree-vect-loop.c (get_initial_def_for_induction): Drop
3275 use of force_gimple_operand in favor of gimple_build.
3276 Use vect_get_new_ssa_name.
3277 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
3278 (vectorizable_mask_load_store): Likewise.
3279 (vectorizable_call): Likewise.
3280 (vectorizable_store): Likewise.
3281 (vectorizable_load): Likewise.
3282 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
3284 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
3286 PR tree-optimization/67945
3287 * tree-pass.h (PROP_gimple_opt_math): New property flag.
3288 * generic-match-head.c (canonicalize_math_p): New function.
3289 * gimple-match-head.c: Include tree-pass.h.
3290 (canonicalize_math_p): New function.
3291 * match.pd: Group math built-in rules into simplifications
3292 and canonicalizations. Guard the latter with canonicalize_math_p.
3293 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
3294 PROP_gimple_opt_math property.
3296 2015-10-15 Marek Polacek <polacek@redhat.com>
3298 PR tree-optimization/67953
3299 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
3301 2015-10-15 Jiong Wang <jiong.wang@arm.com>
3303 * config.gcc: Recognize "." in architecture base name for AArch64.
3305 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
3307 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
3309 * config/mips/mips.c (mips_setup_incoming_varargs): Use
3310 ROUND_DOWN to calculate off.
3311 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
3312 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
3315 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
3317 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
3319 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
3320 Torvald Riegel <triegel@redhat.com>
3323 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
3324 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3325 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
3326 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
3327 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
3328 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3329 trechkpt, treclaim, tsr, ttest): New define_expands.
3330 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3331 __TM_FENCE__ for htm.
3332 * doc/extend.texi: Update documentation for htm builtins.
3334 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
3337 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
3338 REG_CFA_EXPRESSION to aligned SSE stores.
3340 2015-10-14 Jeff Law <law@redhat.com>
3342 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
3343 num_threaded_edges for successful FSM threads too.
3345 2015-10-14 Richard Biener <rguenther@suse.de>
3347 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
3348 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
3349 (vect_get_vec_def_for_operand): Remove unused parameter.
3350 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
3351 (vect_create_epilog_for_reduction): Likewise.
3352 (vectorizable_reduction): Likewise.
3353 (vectorizable_live_operation): Likewise.
3354 * tree-vect-patterns.c (type_conversion_p): Likewise.
3355 (vect_recog_vector_vector_shift_pattern): Likewise.
3356 (check_bool_pattern): Likewise.
3357 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3358 (vect_analyze_slp_cost_1): Likewise.
3359 * tree-vect-stmts.c (process_use): Likewise.
3360 (vect_get_vec_def_for_operand): Do not handle reductions.
3361 (vect_get_vec_defs): Adjust.
3362 (vectorizable_mask_load_store): Likewise.
3363 (vectorizable_call): Likewise.
3364 (vectorizable_simd_clone_call): Likewise.
3365 (vect_get_loop_based_defs): Likewise.
3366 (vectorizable_conversion): Likewise.
3367 (vectorizable_assignment): Likewise.
3368 (vectorizable_shift): Likewise.
3369 (vectorizable_operation): Likewise.
3370 (vectorizable_store): Likewise.
3371 (vectorizable_load): Likewise.
3372 (vect_is_simple_cond): Likewise.
3373 (vectorizable_condition): Likewise.
3374 (vect_is_simple_use): Remove unused parameters.
3375 (vect_is_simple_use_1): Adjust and rename.
3377 2015-10-14 Richard Biener <rguenther@suse.de>
3379 PR tree-optimization/67915
3380 * match.pd: Handle comparisons of addresses of STRING_CSTs.
3381 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
3382 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
3383 stmt folding in favor of GIMPLE one.
3385 2015-10-14 Marek Polacek <polacek@redhat.com>
3387 PR tree-optimization/67815
3388 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
3389 (reassociate_bb): Call it.
3391 2015-10-14 Richard Biener <rguenther@suse.de>
3393 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3394 Reset info at start.
3395 (vect_analyze_group_access_1): Add debug print.
3396 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
3397 (vect_compute_single_scalar_iteration_cost): ... to this.
3398 (vect_analyze_loop_2): Adjust.
3399 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
3400 * tree-vectorizer.h: ... here.
3401 (add_stmt_info_to_vec): Remove.
3402 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
3404 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
3406 * targhooks.c (default_target_option_pragma_parse): Do not warn if
3407 called on behalf of "#pragma GCC pop_options".
3409 2015-10-14 Tom de Vries <tom@codesourcery.com>
3411 * cfganal.c (verify_no_unreachable_blocks): New function.
3412 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
3413 verify_no_unreachable_blocks.
3414 cfganal.h (verify_no_unreachable_blocks): Declare.
3416 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
3418 * common.opt: Add flag_checking.
3419 * system.h (CHECKING_P): Define.
3421 2015-10-13 Jakub Jelinek <jakub@redhat.com>
3422 Aldy Hernandez <aldyh@redhat.com>
3423 Ilya Verbin <ilya.verbin@intel.com>
3425 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
3426 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
3427 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
3428 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
3429 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
3430 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
3431 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
3432 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
3433 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
3434 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
3435 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
3436 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
3437 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
3438 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3439 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
3440 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3441 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3442 (struct cgraph_simd_clone_arg): Adjust comment.
3443 * coretypes.h (struct gomp_ordered): New forward decl.
3444 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
3445 set critical clauses to it.
3446 (gimple_build_omp_ordered): Return gomp_ordered * instead of
3447 gimple *. Add CLAUSES argument, set ordered clauses to it.
3448 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
3450 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
3451 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
3452 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
3453 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
3454 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
3455 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
3456 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
3457 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
3459 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
3460 (gomp_critical): Add clauses field.
3461 (gomp_ordered): New struct.
3462 (is_a_helper <gomp_ordered *>::test): New inline.
3463 (gimple_build_omp_critical): Add CLAUSES argument.
3464 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
3465 instead of gimple *.
3466 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
3467 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
3468 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
3469 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
3471 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
3472 (dump_gimple_omp_target): Handle enter data and exit data.
3473 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
3474 (dump_gimple_omp_critical): Print clauses.
3475 (dump_gimple_omp_ordered): New function.
3476 (dump_gimple_omp_task): Handle taskloop.
3477 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
3479 * gimple-walk.c (walk_gimple_op): Walk clauses on
3480 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
3481 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
3482 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
3483 (struct gimplify_omp_ctx): Add loop_iter_var,
3484 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
3485 and target_firstprivatize_array_bases fields.
3486 (delete_omp_context): Release loop_iter_var.
3487 (gimplify_bind_expr): Handle ORT_NONE.
3488 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
3489 ORT_COMBINED_TARGET.
3490 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
3491 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
3492 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
3493 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
3494 ctx->target_map_scalars_firstprivate.
3495 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
3496 data sharing clauses. For data sharing clause with VLA decl
3497 on omp target/target data don't add firstprivate for the pointer.
3498 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
3499 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
3500 the addition of ORT_COMBINED_TARGET.
3501 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
3502 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
3503 pointers as zero length array sections and
3504 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
3506 (omp_check_private): Handle omp_member_access_dummy_var vars.
3507 (find_decl_expr): New function.
3508 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
3509 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
3510 Handle OMP_CLAUSE_GANG separately. Handle
3511 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3512 clauses. Diagnose linear clause on combined
3513 distribute {, parallel for} simd construct, unless it is the loop
3514 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
3515 Handle map clauses with COMPONENT_REF. Initialize
3516 ctx->target_map_scalars_firstprivate,
3517 ctx->target_firstprivatize_array_bases and
3518 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
3519 linear clause even to target region if combined. Remove
3520 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
3521 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
3522 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
3523 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
3524 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
3525 For linear clause on worksharing loop combined with parallel add
3526 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
3527 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
3528 omp_member_access_dummy_var vars. Add lastprivate clause to outer
3530 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
3531 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
3532 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
3534 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
3535 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
3536 in target body. Handle removal of struct mapping if struct is not
3537 seen in target body. Remove GOMP_MAP_STRUCT map clause on
3538 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
3539 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
3540 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
3541 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
3542 clause appear together. Handle
3543 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
3544 clause if it has map-type-modifier always. Handle
3545 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3547 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
3548 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
3550 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
3551 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
3552 iterators in doacross loops.
3553 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
3554 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
3555 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
3556 for the addition of ORT_COMBINED_TARGET.
3557 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
3558 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
3559 and OMP_TARGET_EXIT_DATA.
3560 (gimplify_omp_ordered): New function.
3561 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
3562 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
3563 Gimplify clauses on OMP_CRITICAL.
3564 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
3565 expand_GOMP_SIMD_ORDERED_END): New functions.
3566 * internal-fn.def (GOMP_SIMD_ORDERED_START,
3567 GOMP_SIMD_ORDERED_END): New internal functions.
3568 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
3569 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
3570 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
3571 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
3572 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
3573 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
3574 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
3575 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
3576 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
3577 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
3578 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
3579 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
3580 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
3581 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
3583 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
3584 GOMP_target_data_41, adjust type.
3585 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
3586 GOMP_target_update_41, adjust type.
3587 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
3589 (struct omp_for_data): Add ordered and simd_schedule fields.
3590 (omp_member_access_dummy_var, unshare_and_remap_1,
3591 unshare_and_remap, is_taskloop_ctx): New functions.
3592 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
3593 (extract_omp_for_data): Handle taskloops and doacross loops
3594 and simd schedule modifier.
3595 (omp_adjust_chunk_size): New function.
3596 (get_ws_args_for): Use it.
3597 (lookup_sfield): Change first argument to splay_tree_key,
3598 add overload with first argument tree.
3599 (maybe_lookup_field): Likewise.
3600 (use_pointer_for_field): Handle omp_member_access_dummy_var.
3601 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
3602 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
3603 (build_outer_var_ref): Add LASTPRIVATE argument, handle
3604 taskloops and omp_member_access_dummy_var vars.
3605 (build_sender_ref): Change first argument to splay_tree_key,
3606 add overload with first argument tree.
3607 (install_var_field): For mask & 8 use &DECL_UID as key instead
3609 (fixup_child_record_type): Const qualify *.omp_data_i.
3610 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
3611 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
3612 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
3613 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
3614 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
3615 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
3616 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
3618 (add_taskreg_looptemp_clauses): New function.
3619 (scan_omp_parallel): Use it.
3620 (scan_omp_task): Likewise.
3621 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3622 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
3623 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3624 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
3625 sandwiched taskloop constructs. Type check
3626 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
3627 region. Diagnose depend(source) or depend(sink:...) on
3628 target constructs or task/taskloop.
3629 (handle_simd_reference): Use get_name.
3630 (lower_rec_input_clauses): Likewise. Ignore all
3631 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
3632 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
3633 before passing it to omp_clause_{default,copy}_ctor. Handle
3634 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
3635 lastprivate_firstprivate flag for linear that needs copyin and
3636 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
3637 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
3638 on taskloop lookup decl in outer context. Pass true to
3639 build_outer_var_ref lastprivate argument. Handle
3640 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
3641 outside of outer taskloop for.
3642 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
3644 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
3645 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
3646 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
3647 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
3648 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
3649 abstract origin. Handle omp_member_access_dummy_var vars.
3650 (expand_parallel_call): Use expand_omp_build_assign.
3651 (expand_task_call): Handle taskloop construct expansion. Add
3652 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
3653 integers. Add priority argument to GOMP_task* calls. Or in
3654 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
3656 (expand_omp_build_assign): Add prototype. Add AFTER
3657 argument, if true emit statements after *GSI_P and continue linking.
3658 (expand_omp_taskreg): Adjust expand_task_call caller.
3659 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
3660 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
3661 zero_iter2_bb and first_zero_iter2 arguments, handle computation
3662 of counts even for ordered loops.
3663 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
3664 (expand_omp_ordered_source, expand_omp_ordered_sink,
3665 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
3667 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
3668 clauses on worksharing loop. Handle DOACROSS loop expansion.
3669 (expand_omp_for_static_nochunk): Handle linear clauses on
3670 worksharing loop. Adjust expand_omp_for_init_counts
3672 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
3673 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
3674 expand_omp_for_init_counts callers.
3675 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
3677 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
3678 Handle doacross loops.
3679 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3680 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
3681 GOMP_target_{41,update_41,enter_exit_data} libcalls.
3682 (expand_omp): Don't expand ordered depend constructs here, record
3683 ord_stmt instead for later expand_omp_for_generic.
3684 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3685 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3686 clause as stand-alone directive.
3687 (lower_omp_ordered_clauses): New function.
3688 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
3689 don't lower anything.
3690 (lower_omp_for_lastprivate): Use last _looptemp_ clause
3691 on taskloop for comparison.
3692 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
3693 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
3694 expansion for linear adjustments.
3695 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3696 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
3697 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
3698 to tree * pointing to the stmt's clauses.
3699 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
3700 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3701 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
3702 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
3703 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
3704 clauses. Always use short kind and 8-bit align shift.
3705 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
3706 (struct lower_omp_regimplify_operands_data): New type.
3707 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
3709 (lower_omp_1): Use lower_omp_regimplify_operands instead of
3710 gimple_regimplify_operands.
3711 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3712 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3713 clause as stand-alone directive.
3714 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
3715 (simd_clone_mangle): Mangle the various linear kinds
3717 (simd_clone_adjust_argument_types): Handle
3718 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
3719 (simd_clone_init_simd_arrays): Don't do anything for uval.
3720 (simd_clone_adjust): Handle
3721 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3722 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
3723 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
3724 * omp-low.h (omp_member_access_dummy_var): New prototype.
3725 * passes.def (pass_simduid_cleanup): Schedule another copy of the
3726 pass after all optimizations.
3727 * tree.c (omp_clause_code_name): Add entries for
3728 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3729 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3730 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
3731 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
3732 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
3733 OMP_CLAUSE_REDUCTION 5 arguments. Handle
3734 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3735 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
3737 * tree-core.h (enum omp_clause_linear_kind): New.
3738 (struct tree_omp_clause): Change type of map_kind
3739 from unsigned char to unsigned int. Add subcode.if_modifier
3740 and subcode.linear_kind fields.
3741 (enum omp_clause_code): Add
3742 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3743 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3744 (OMP_CLAUSE_REDUCTION): Document
3745 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3746 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
3747 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
3748 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
3750 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
3752 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
3754 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
3755 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
3757 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
3758 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
3759 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
3760 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
3761 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
3762 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
3763 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
3764 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
3765 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
3766 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
3767 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
3768 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
3769 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
3770 * tree-inline.c (remap_gimple_stmt): Handle clauses on
3771 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
3772 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
3773 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
3774 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3775 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3776 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3777 (convert_local_omp_clauses): Likewise.
3778 * tree-pretty-print.c (dump_omp_clause): Handle
3779 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3780 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3781 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
3782 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
3783 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
3784 GOMP_MAP_FORCE_DEALLOC. Handle
3785 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
3786 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
3787 and clauses on OMP_ORDERED and OMP_CRITICAL.
3788 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
3789 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
3790 (vectorize_loops): Adjust comments.
3791 (pass_simduid_cleanup::execute): Likewise.
3792 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3793 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
3794 * wide-int.h (wi::gcd): New.
3796 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3798 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
3799 (ix86_function_arg_advance): Ditto.
3800 (ix86_function_arg): Ditto.
3801 (ix86_gimplify_va_arg): Ditto.
3802 (ix86_class_max_nregs): Ditto.
3803 (inline_memory_move_cost): Ditto.
3804 (ix86_set_reg_reg_cost): Ditto.
3805 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
3807 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
3810 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
3812 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3814 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
3815 ROUND_UP macro and UNITS_PER_WORD * 2.
3816 * config/sparc/sparc.c (sparc_compute_frame_size):
3817 Use ROUND_UP and ROUND_DOWN macros where applicable.
3818 (function_arg_record_value, function_arg_record_value_1)
3819 (function_arg_record_value_1): Ditto.
3820 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
3821 alignment to double-word.
3822 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
3823 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
3826 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
3828 * gcc/rtl.h (print_insn): Fix prototype.
3830 2015-10-13 Tom de Vries <tom@codesourcery.com>
3832 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
3833 -1. Add assert that returned entry matches phi argument.
3834 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
3835 free_stmt_vec_info_vec ...
3836 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
3839 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
3841 PR tree-optimization/67909, 67947
3842 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
3843 really skip the inner loop.
3845 2015-10-13 Jeff Law <law@redhat.com>
3847 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3848 Allow single block jump threading paths.
3850 2015-10-13 Tom de Vries <tom@codesourcery.com>
3852 PR tree-optimization/67476
3853 * doc/invoke.texi (@item parloops-schedule): New item.
3854 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
3855 * tree-parloops.c: Include params-enum.h.
3856 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
3858 2015-10-13 Tom de Vries <tom@codesourcery.com>
3860 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
3861 * params-enum.h: New file.
3862 * opts.c (handle_param): Handle case that param arg is a string.
3863 * params-list.h: Handle DEFPARAMENUM5 in params.def.
3864 * params.c (find_param): New function, factored out of ...
3865 (set_param_value): ... here.
3866 (param_string_value_p): New function.
3867 * params.h (struct param_info): Add value_names field.
3868 (find_param, param_string_value_p): Declare.
3870 2015-10-13 Tom de Vries <tom@codesourcery.com>
3872 PR tree-optimization/67476
3873 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
3875 2015-10-13 Richard Biener <rguenther@suse.de>
3877 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
3878 the data dependence vector.
3879 (vect_peeling_hash_insert): Get the peeling hash table as argument.
3880 (vect_peeling_hash_get_lowest_cost): Likewise.
3881 (vect_enhance_data_refs_alignment): Adjust.
3882 (struct _vect_peel_info, struct _vect_peel_extended_info,
3883 struct peel_info_hasher): Move from ...
3884 * tree-vectorizer.h: ... here.
3885 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
3886 (LOOP_VINFO_PEELING_HTAB): Likewise.
3887 (struct _loop_vec_info): Remove min_profitable_iters and
3888 peeling_htab members.
3889 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
3891 (destroy_loop_vec_info): Adjust.
3892 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
3893 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
3894 to estimate alias versioning cost.
3895 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
3897 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
3899 * real.h (real_isinteger): Declare.
3900 * real.c (real_isinteger): New function.
3901 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
3902 if y is an even integer.
3904 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3907 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3908 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
3909 counts when these are more informative.
3911 2015-10-12 Jeff Law <law@redhat.com>
3913 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
3914 (fsm_find_control_stmt_paths): Change name of first argument to
3915 more accurately relfect what it really is. Handle simplification
3916 of GIMPLE_COND after finding a thread path for NAME.
3917 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
3918 nontrivial conditions to be handled by FSM threader.
3919 (thread_through_normal_block): Extract the name to looup via
3920 FSM threader from COND_EXPR.
3922 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
3923 restriction that traced SSA_NAME is a user variable.
3925 2015-10-12 Tom de Vries <tom@codesourcery.com>
3927 PR tree-optimization/67476
3928 * omp-low.c (expand_omp_for_generic): Add missing phis.
3930 2015-10-12 Tom de Vries <tom@codesourcery.com>
3932 PR tree-optimization/67476
3933 * omp-low.c (expand_omp_for_generic): Handle simple latch.
3935 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
3937 * config/aarch64/aarch64-simd-builtins.def: Update builtins
3938 tables: add tbl3 and tbx4.
3939 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
3940 (aarch64_tbx4v8qi): New.
3941 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
3942 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
3943 Rewrite using builtin functions.
3944 * config/aarch64/iterators.md (UNSPEC_TBX): New.
3946 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
3948 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
3950 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
3951 Use ROUND_UP and ROUND_DOWN macros where applicable.
3952 (rs6000_darwin64_record_arg_flush): Ditto.
3953 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
3954 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
3957 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
3959 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
3960 (AARCH64_ROUND_DOWN): Ditto.
3961 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
3963 2015-10-12 Richard Biener <rguenther@suse.de>
3966 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
3967 code that analyzes IVs on each stmt but in a cheaper way avoiding
3970 2015-10-12 Nick Clifton <nickc@redhat.com>
3972 * config/msp430/msp430.c (msp430_mcu_names): Rename to
3973 msp430_mcu_data, add fields for ISA and hardware multiply
3974 support. Import latest data from the devices.csv file.
3975 (msp430_override_option): Use the data from the new array.
3976 (msp430_use_f5_series_hwmult): Likewise.
3977 (use_32bit_hwmult): Likewise.
3978 (msp430_no_hwmult): Likewise.
3979 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
3981 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
3982 not recognised then no hardware multiply support is assumed and
3983 that only the MSP430 ISA is allowed.
3985 2015-10-12 Richard Biener <rguenther@suse.de>
3987 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
3989 (vect_analyze_loop_2): ... here.
3991 2015-10-11 Jason Merrill <jason@redhat.com>
3994 * expr.c (store_field): Call store_constructor directly when
3995 storing a CONSTRUCTOR into a target smaller than its type.
3996 Guard against unsafe bitwise copy.
3998 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4000 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
4001 counts when these are more informative.
4003 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4005 * tree-profile.c (tree_profiling): Do not clear
4006 pure/const when not instrumenting.
4007 (pass tree_profile): Add dump of symtab.
4009 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4011 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
4013 (fold_addr_of_array_ref_difference): Likewise.
4015 2015-10-11 Jeff Law <law@redhat.com>
4017 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
4018 tree-ssa-threadbackward.c.
4019 (fsm_find_control_statement_thread_paths): Likewise.
4020 (thread_through_normal_block): Break out FSM bits and move them
4021 into a new function in tree-ssa-threadbackward.c. Call new function
4023 Minimize header file usage.
4024 * tree-ssa-threadbackward.h: New file.
4025 * tree-ssa-threadbackward.c: Likewise.
4026 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
4028 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
4030 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
4032 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
4034 PR rtl-optimization/67864
4035 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
4036 fallthrough edges for conditional jumps. Don't sort candidate
4037 edges if not optimizing for speed.
4039 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4041 * defaults.h (REVERSE_CONDITION): New default definition.
4042 * jump.c (reversed_comparison_code_parts): Adjust.
4044 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4046 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
4047 check HARD_FRAME_POINTER_IS_ARG_POINTER.
4049 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4051 * defaults.h (FRAME_ADDR_RTX): New default definition.
4052 * builtins.c (expand_builtin_return_addr): Adjust.
4054 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4056 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
4057 * builtins.c (expand_builtin_return_addr): Adjust.
4059 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4061 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
4062 * builtins.c (expand_builtin_return_addr): Adjust.
4063 * doc/tm.texi: Likewise.
4064 * doc/tm.texi.in: Likewise.
4065 * except.c (expand_builtin_unwind_init): Likewise.
4067 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4069 * builtins.c (expand_builtin_return_addr): Adjust.
4070 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
4072 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
4074 * tree.c (type_with_interoperable_signedness): New.
4075 (gimple_canonical_types_compatible_p): Use it.
4076 * tree.h (type_with_interoperable_signedness): Declare
4078 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
4080 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
4081 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
4082 when OEP_ADDRESS_OF is se.
4084 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
4085 Sebastian Pop <s.pop@samsung.com>
4087 * graphite-dependences.c (scop_get_dependences): Add dump of the
4088 data dependence graph.
4089 * graphite-poly.c (print_isl_union_map): New.
4090 (debug_isl_union_map): New.
4091 * graphite-poly.h (print_isl_union_map): Declare.
4092 (debug_isl_union_map): Declare.
4094 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
4095 Sebastian Pop <s.pop@samsung.com>
4097 * graphite-poly.c (print_iteration_domain): Remove verbosity.
4098 Remove OpenScop formatting.
4099 (print_iteration_domains): Same.
4100 (debug_iteration_domain): Same.
4101 (debug_iteration_domains): Same.
4104 (dump_gbb_cases): Same.
4105 (dump_gbb_conditions): Same.
4108 (print_pbb_body): Same.
4110 (print_scop_params): Same.
4111 (print_scop_context): Same.
4113 (debug_pbb_domain): Same.
4115 (debug_scop_context): Same.
4117 (debug_scop_params): Same.
4118 * graphite-poly.h: Same.
4119 * graphite.c (graphite_transform_loops): Same.
4121 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4123 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
4124 call that isn't needed.
4126 2015-10-09 Jeff Law <law@redhat.com>
4128 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
4129 rather than moving each name to the freelist individually.
4131 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
4133 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
4134 * frame-header-opt.c: New file.
4135 * config/mips/mips-proto.h (mips_register_frame_header_opt):
4137 * config/mips/mips.c (mips_compute_frame_info): Check
4138 optimize_call_stack flag.
4139 (mips_option_override): Register new frame_header_opt pass.
4140 (mips_frame_info, mips_int_mask, mips_shadow_set,
4141 machine_function): Move these types to...
4142 * config/mips/mips.h: here.
4143 (machine_function): Add does_not_use_frame_header and
4144 optimize_call_stack fields.
4145 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
4146 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
4148 * config/mips/mips.opt (mframe-header-opt): Add new option.
4150 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
4152 * config/i386/i386.c
4153 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
4154 ROUND_DOWN where applicable.
4156 2015-10-09 Jeff Law <law@redhat.com>
4158 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
4161 2015-10-09 Renlin Li <renlin.li@arm.com>
4163 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
4164 operands[0] and operands[2].
4165 (neon_vtrn<mode>_insn): Likewise.
4166 (neon_vzip<mode>_insn): Likewise.
4168 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
4170 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
4171 ((X & C2) << C1): Expand to...
4172 (X {&,^,|} C2 << C1): ...This.
4173 ((X & C2) >> C1): Expand to...
4174 (X {&,^,|} C2 >> C1): ...This.
4176 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
4179 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
4180 Adjust embedded rounding/SAE specifier position.
4181 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
4182 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
4183 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
4184 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
4185 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
4187 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
4189 2015-10-09 Martin Jambor <mjambor@suse.cz>
4191 tree-optimization/67794
4192 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
4193 between types of state,ents but accept original definitions as a
4195 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
4196 iterate over definitions.
4198 2015-10-09 James Norris <jnorris@codesourcery.com>
4200 * config/rs6000/rs6000.c (rs6000_offload_options): New.
4201 (TARGET_OFFLOAD_OPTIONS): New.
4203 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
4206 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
4209 * function.c (expand_function_end): Move return value
4210 promotion past the handling of PARALLELs and CONCATs.
4212 PR rtl-optimization/67828
4213 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
4214 (tree_may_unswitch_on): Don't unswitch on expressions
4215 involving undefined values.
4217 2015-10-09 Richard Biener <rguenther@suse.de>
4219 * genmatch.c (print_operand): Fix formatting.
4220 (dt_node::append_simplify): Warn for multiple simplifiers
4221 that match the same pattern.
4222 * match.pd (log (exp @0)): Remove duplicates.
4224 2015-10-09 Richard Biener <rguenth@suse.de>
4227 * gimple-fold.c (optabs-query.h): Include
4228 (gimple_fold_builtin_memory_op): Allow unaligned stores
4229 when movmisalign_optabs are available.
4231 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4234 * config/arm/arm.md (movmisalign<mode>): New.
4235 * config/arm/iterators.md (HSI): New.
4237 2015-10-09 Richard Biener <rguenther@suse.de>
4239 PR tree-optimization/67891
4240 * gimple-match.h (gimple_simplified_result_is_gimple_val):
4242 (gimple_resimplify1): Declare.
4243 (gimple_resimplify2): Likewise.
4244 (gimple_resimplify3): Likewise.
4245 * gimple-match-head.c (gimple_resimplify1): Export.
4246 (gimple_resimplify2): Likewise.
4247 (gimple_resimplify3): Likewise.
4248 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
4249 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4250 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
4251 to avoid creating stmts without VN info.
4253 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
4255 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
4258 2015-10-08 Jeff Law <law@redhat.com>
4260 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
4261 and release_ssa_name in two places.
4262 (gimple_stringop_fixed_value): Similarly.
4264 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
4267 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
4268 unlink_stmt_vdef and release_ssa_name_fn.
4270 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
4273 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
4275 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
4276 SSE register save area to 16 bytes only if the incoming stack
4277 boundary is no less than 16 bytes.
4279 2015-10-08 Jeff Law <law@redhat.com>
4281 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
4282 release_ssa_name. Fix typo in comment.
4284 2015-10-08 Nathan Sidwell <nathan@acm.org>
4286 * config/nvptx/nvptx.h (struct machine_function): Add comment.
4287 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
4288 may return pointer as well as in memory.
4289 (nvptx_output_return): Likewise.
4291 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
4293 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
4294 (fold_builtin_1): Update accordingly. Handle constant arguments here.
4295 * match.pd: Add rules previously handled by fold_builtin_sqrt
4296 and fold_builtin_cbrt.
4298 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
4300 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
4301 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
4302 * fold-const.h (tree_unary_nonnegative_warnv_p)
4303 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4304 (tree_expr_nonnegative_warnv_p): Add depth parameters.
4305 * fold-const.c: Include gimple-fold.h and params.h.
4306 (tree_ssa_name_nonnegative_warnv_p): New function.
4307 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
4308 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4309 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
4310 Add a depth parameter and increment it for recursive calls to
4311 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
4312 to handle SSA names.
4313 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
4314 (gimple_stmt_nonnegative_warnv_p): Declare.
4315 * tree-vrp.c (remove_range_assertions): Remove assert that condition
4316 cannot be proven false.
4317 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
4318 (gimple_stmt_nonnegative_warnv_p): Move to...
4319 * gimple-fold.c: ...here. Add depth parameters and pass them
4320 down to the tree routines. Accept statements that aren't
4321 assignments or calls but just return false for them.
4322 (gimple_val_nonnegative_real_p): Delete.
4323 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
4324 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
4325 Check HONOR_NANs first.
4327 2015-10-08 Martin Jambor <mjambor@suse.cz>
4329 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
4332 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4334 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
4335 in the tail of outer-loop.
4337 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
4339 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
4342 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4344 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
4345 "cfghooks.h", add prototypes for introduced new functions.
4346 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
4347 checks on ability of loop unswitching to tree_unswitch_single_loop;
4348 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
4349 on innermost loop check.
4350 (tree_unswitch_single_loop): Add all required checks on ability of
4351 loop unswitching under zero recursive level guard.
4352 (tree_unswitch_outer_loop): New function.
4353 (find_loop_guard): Likewise.
4354 (empty_bb_without_guard_p): Likewise.
4355 (used_outside_loop_p): Likewise.
4356 (get_vop_from_header): Likewise.
4357 (hoist_guard): Likewise.
4358 (check_exit_phi): Likewise.
4360 2015-10-08 Marek Polacek <polacek@redhat.com>
4362 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
4365 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4368 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
4369 create_tmp_var_raw instead of create_tmp_var.
4371 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
4373 * expr.c (store_expr_with_bounds): Handle aggregate moves from
4375 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
4376 to define gimple type system; compare aggregates only by size.
4378 2015-10-07 Jeff Law <law@redhat.com>
4380 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
4381 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
4382 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
4385 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4386 Sebastian Pop <s.pop@samsung.com>
4388 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
4389 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
4390 (generate_isl_schedule): Same.
4391 * graphite-optimize-isl.c (scop_get_domains): Same.
4392 (apply_schedule_map_to_scop): Same.
4393 * graphite-poly.c (print_iteration_domains): Same.
4394 (remove_gbbs_in_scop): Same.
4398 * graphite-poly.h (struct scop): Rename bbs to pbbs.
4400 * graphite-scop-detection.c (compare_bb_depths): Remove.
4401 (graphite_sort_dominated_info): Remove.
4402 (try_generate_gimple_bb): Move out of scop_detection.
4403 (all_non_dominated_preds_marked_p): Remove.
4404 (build_scop_bbs_1): Remove.
4405 (build_scop_bbs): Remove.
4406 (nb_pbbs_in_loops): Do not use SCOP_BBS.
4407 (find_scop_parameters): Same.
4408 (sese_dom_walker): Rename gather_bbs.
4409 (before_dom_children): Call try_generate_gimple_bb and collect gbb
4411 (build_scops): Call gather_bbs.
4412 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
4413 (add_conditions_to_constraints): Same.
4414 (build_scop_iteration_domain): Same.
4415 (build_scop_drs): Same.
4416 (new_pbb_from_pbb): Same.
4417 * sese.c (new_sese_info): Create bbs.
4418 * sese.h (struct sese_info_t): Add bbs.
4420 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
4422 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
4423 encoding in 64-bit mode.
4425 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
4428 * config/i386/i386.c (ix86_option_override_internal): Always use
4429 8-byte minimum stack boundary in 64-bit mode.
4430 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
4431 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
4432 Add a REG_CFA_EXPRESSION note if needed.
4433 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
4434 (ix86_handle_force_align_arg_pointer_attribute): New.
4435 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
4436 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
4437 with ix86_handle_force_align_arg_pointer_attribute.
4438 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
4440 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4441 Sebastian Pop <s.pop@samsung.com>
4443 * graphite-scop-detection.c (parameter_index_in_region): Remove
4444 use of SESE_ADD_PARAMS.
4445 (find_scop_parameters): Same.
4446 * sese.c (new_sese_info): Same.
4447 * sese.h (struct sese_info_t): Remove add_params.
4448 (SESE_ADD_PARAMS): Remove.
4450 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4451 Sebastian Pop <s.pop@samsung.com>
4453 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
4456 (copy_internal_parameters): Same.
4457 (translate_isl_ast_to_gimple): Use an sese_l.
4458 (build_iv_mapping): Same.
4459 * graphite-poly.c (new_sese): Rename new_sese_info.
4460 (free_sese): Rename free_sese_info.
4461 * graphite-poly.h (struct scop): Use an sese_info_p.
4462 (scop_set_region): Same.
4463 * graphite-scop-detection.c (struct sese_l): Moved...
4464 (get_entry_bb): Moved...
4465 (get_exit_bb): Moved...
4466 (parameter_index_in_region_1): Use an sese_info_p.
4467 (parameter_index_in_region): Same.
4468 (scan_tree_for_params): Same.
4469 (find_params_in_bb): Same.
4470 (sese_dom_walker): Use an sese_l.
4471 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
4472 (reduction_phi_p): Same.
4473 (parameter_index_in_region_1): Use an sese_info_p.
4474 (propagate_expr_outside_region): Use an sese_l.
4475 * graphite.c: Replace uses of SCOP_REGION.
4476 * sese.c (sese_record_loop): Use an sese_info_p.
4477 (build_sese_loop_nests): Same.
4478 (sese_build_liveouts_use): Same.
4479 (sese_build_liveouts_bb): Same.
4480 (sese_build_liveouts_bb): Same.
4481 (sese_bad_liveouts_use): Same.
4482 (sese_reset_debug_liveouts_bb): Same.
4483 (sese_build_liveouts): Same.
4484 (new_sese): Renamed new_sese_info.
4485 (free_sese): Renamed free_sese_info.
4486 (set_rename): Use an sese_info_p.
4487 (graphite_copy_stmts_from_block): Same.
4488 (copy_bb_and_scalar_dependences): Same.
4489 (outermost_loop_in_sese_1): Use an sese_l.
4490 (outermost_loop_in_sese): Same.
4491 (if_region_set_false_region): Use an sese_info_p.
4492 (move_sese_in_condition): Same.
4493 (scalar_evolution_in_region): Use an sese_l.
4494 * sese.h (struct sese_l): ... here.
4495 (SESE_ENTRY): Remove.
4496 (SESE_ENTRY_BB): Remove.
4497 (SESE_EXIT): Remove.
4498 (SESE_EXIT_BB): Remove.
4499 (sese_contains_loop): Use an sese_info_p.
4500 (sese_nb_params): Same.
4501 (bb_in_sese_p): Use an sese_l.
4502 (stmt_in_sese_p): Same.
4503 (defined_in_sese_p): Same.
4504 (loop_in_sese_p): Same.
4505 (sese_loop_depth): Same.
4506 (struct ifsese_s): Use an sese_info_p.
4507 (gbb_loop_at_index): Use an sese_l.
4508 (nb_common_loops): Same.
4509 (scev_analyzable_p): Same.
4511 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4513 * config/i386/i386.c (ix86_conditional_register_usage): Use
4514 CALL_USED_REGISTERS_MASK.
4515 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
4517 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4520 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
4521 * configure: Regenerated.
4523 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4526 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
4527 (ix86_set_current_function): This.
4528 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
4530 2015-10-07 Richard Biener <rguenther@suse.de>
4532 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
4533 (vinfo_for_stmt): Adjust.
4534 (set_vinfo_for_stmt): Likewise.
4535 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
4536 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
4537 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
4539 (vect_analyze_loop_1): Remove.
4540 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
4541 inner loop when vectorizing an outer loop by splitting out from ...
4542 (vect_analyze_loop_form): ... here.
4544 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4547 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
4548 Use create_tmp_var_raw instead of create_tmp_var.
4550 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
4552 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
4553 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
4554 * real.c (CACHED_FRACTION): New helper macro.
4555 (dconst_third_ptr): Use it.
4556 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
4557 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
4559 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
4561 2015-10-06 Jeff Law <law@redhat.com>
4563 PR tree-optimization/67816
4564 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
4565 from remove_jump_threads_starting_at. Accept an edge rather than
4567 * tree-ssa-threadupdate.c (removed_edges): New hash table.
4568 (remove_jump_threads_including): Note edges that get removed from
4569 the CFG for later pruning of jump threading paths including them.
4570 (thread_through_all_blocks): Remove paths which include edges that
4572 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
4573 on each outgoing edges when optimizing away a control statement.
4575 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4577 * reorg.c (emit_delay_sequence): Store list of delay slot insns
4578 in a vector instead of rtx_insn_list.
4579 (add_to_delay_list): Likewise.
4580 (delete_from_delay_slot): Likewise.
4581 (optimize_skip): Likewise.
4582 (redirect_with_delay_list_safe_p): Likewise.
4583 (check_annul_list_true_false): Likewise.
4584 (steal_delay_list_from_target): Likewise.
4585 (steal_delay_list_from_fallthrough): Likewise.
4586 (redundant_insn): Likewise.
4587 (fill_simple_delay_slots): Likewise.
4588 (fill_slots_from_thread): Likewise.
4589 (fill_eager_delay_slots): Likewise.
4590 (relax_delay_slots): Likewise.
4592 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
4594 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
4595 For -mgpopt=local, also exclude unintialized common symbols.
4596 * doc/invoke.texi (Nios II Options): Document the change.
4598 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4600 * config/aarch64/iterators.md (vwcore): Add missing cases for
4603 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4604 Sebastian Pop <s.pop@samsung.com>
4606 * graphite-poly.c (new_scop): Initialize drs.
4607 * graphite-poly.h (struct dr_info): New.
4608 (struct scop): Add drs.
4609 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
4610 (pdr_add_memory_accesses): Same.
4611 (build_poly_dr): Same.
4612 (build_alias_set): Same.
4613 (build_scop_drs): Same.
4614 (build_pbb_drs): Remove.
4615 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
4616 * tree-data-ref.h (data_reference): Remove alias_set.
4618 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4619 Sebastian Pop <s.pop@samsung.com>
4621 * graphite-poly.c (free_data_refs_aux): Remove.
4622 (free_gimple_poly_bb): Do not call free_data_refs_aux.
4623 * graphite-poly.h (struct base_alias_pair): Remove.
4624 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
4625 base_alias_pair and dr->aux.
4626 (build_alias_set): Same.
4627 * tree-data-ref.c (create_data_ref): Initialize alias_set.
4628 * tree-data-ref.h (data_reference): Add alias_set.
4630 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4631 Sebastian Pop <s.pop@samsung.com>
4633 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
4634 Do not set PDR_BASE_OBJECT_SET.
4635 * graphite-poly.h (poly_dr): Same.
4636 (PDR_BASE_OBJECT_SET): Remove.
4637 (new_poly_dr): Update decl.
4638 * graphite-sese-to-poly.c (build_poly_dr): Update call to
4640 (write_alias_graph_to_ascii_dimacs): Remove.
4641 (write_alias_graph_to_ascii_dot): Remove.
4642 (write_alias_graph_to_ascii_ecc): Remove.
4643 (dr_same_base_object_p): Remove.
4644 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
4646 (build_base_obj_set_for_drs): Remove.
4647 (dump_alias_graphs): Remove.
4648 (build_scop_drs): Remove dead code.
4650 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4651 Peter Bergner <bergner@vnet.ibm.com>
4654 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
4655 allow registers, but provide insns for the combiner to create for
4656 loads from memory. Separate VSX code from non-VSX code. For
4657 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
4658 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
4659 so that registers come before memory operations. Drop support from
4660 converting DFmode to TFmode, if the DFmode value is in a GPR
4662 (extenddftf2_fprs): Likewise.
4663 (extenddftf2_internal): Likewise.
4664 (extenddftf2_vsx): Likewise.
4665 (extendsftf2): In the expander, only allow registers, but provide
4666 insns for the combiner to create for stores and loads.
4668 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4670 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
4671 from the decl parameter.
4673 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
4676 * gimple-fold.c (gimple_fold_builtin): Add break after
4677 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
4679 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
4681 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
4682 to scop->isl_context.
4684 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4686 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
4687 (output_probe_stack_range): Rotate the loop and simplify.
4688 (thumb1_expand_prologue): Tweak sorry message.
4689 * config/arm/arm.md (probe_stack): Use bare string.
4691 2015-10-06 Nick Clifton <nickc@redhat.com>
4693 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
4695 2015-10-06 Nick Clifton <nickc@redhat.com>
4697 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
4698 (ATTR_PERSIST): New constant.
4699 (msp430_data_attr): New function - verifies an attribute that only
4700 applies to variables.
4701 (msp430_attributes): Add noinit and persistent attributes.
4702 (noinit_section): New variable.
4703 (presis_section): New variable.
4704 (TARGET_ASM_INIT_SECTIONS): Define.
4705 (msp430_init_sections): New function - initialises the noinit and
4706 persist section variables.
4707 (msp430_select_section): Add support for noinit and persist
4709 (msp430_section_type_flags): Likewise.
4710 * doc/extend.texi: Document the reent, critical, wakeup, noinit
4711 and persistent attributes.
4713 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4714 Sebastian Pop <s.pop@samsung.com>
4716 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
4717 (no_violations): Remove.
4718 (subtract_commutative_associative_deps): Remove.
4719 (compute_deps): Do not call subtract_commutative_associative_deps.
4720 (transform_is_safe): Remove.
4721 (graphite_legal_transform): Remove.
4722 * graphite-poly.h (graphite_legal_transform): Remove.
4724 2015-10-05 Aditya Kumar <hiraditya@msn.com>
4726 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
4727 which are in this region are passed so gcc_assert and remove redundant
4729 * sese.c (sese_build_liveouts): Pass only those bbs which are not
4731 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
4732 gcc_assert on that and remove unnecessary computation.
4733 (sese_build_liveouts_use): Same.
4735 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4737 * graphite-dependences.c (scop_get_reads): Renamed scop->context
4738 to scop->param_context.
4739 (scop_get_must_writes): Same.
4740 (scop_get_may_writes): Same.
4741 (scop_get_original_schedule): Same.
4742 (scop_get_transformed_schedule): Same.
4743 (subtract_commutative_associative_deps): Same.
4744 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
4745 (generate_isl_context): Same.
4746 (generate_isl_schedule): Same.
4747 (scop_to_isl_ast): Same.
4748 (graphite_regenerate_ast_isl): Same.
4749 * graphite-optimize-isl.c (scop_get_domains): Same.
4750 (optimize_isl): Renamed scop->context to scop->param_context.
4751 * graphite-poly.c (new_poly_bb): Change the type of argument to
4753 (new_scop): Renamed scop->context to scop->param_context.
4755 (print_scop_context): Same.
4756 * graphite-poly.h (new_poly_dr): Change the type of argument from
4757 void* to data_reference_p.
4758 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
4759 (new_poly_bb): Change the type of argument from void* to
4761 (pbb_set_black_box): Same.
4762 (struct scop): Rename context to param_context, ctx to isl_context.
4763 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
4764 Move declarations closer to assignment.
4765 (find_params_in_bb): Same.
4766 (find_scop_parameters): Same.
4767 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
4768 Global to be used for statement IDs.
4769 (isl_id_for_pbb): Use ssa_name_version_typesize.
4770 (simple_copy_phi_p): Move declarations closer to assignment.
4771 (build_pbb_scattering_polyhedrons): Same.
4772 (build_scop_scattering): Same.
4773 (isl_id_for_ssa_name): Same.
4774 (extract_affine_name): Same.
4775 (extract_affine_int): Same.
4776 (extract_affine): Same.
4777 (set_scop_parameter_dim): Use renamed member.
4778 (build_loop_iteration_domains): Same.
4779 (add_param_constraints): Same.
4780 (build_scop_iteration_domain): Same.
4781 (pdr_add_data_dimensions): Same.
4782 (build_poly_dr): Same.
4783 (build_scop_drs): Move declarations closer to assignment.
4784 (analyze_drs_in_stmts): Same.
4785 (insert_out_of_ssa_copy): Same.
4786 (insert_out_of_ssa_copy_on_edge): Same.
4787 (propagate_expr_outside_region): Same.
4788 (rewrite_phi_out_of_ssa): Same.
4789 (rewrite_degenerate_phi): Same.
4790 (rewrite_reductions_out_of_ssa): Same.
4791 (rewrite_cross_bb_scalar_dependence): Same.
4792 (handle_scalar_deps_crossing_scop_limits): Same.
4793 (rewrite_cross_bb_scalar_deps): Same.
4794 * graphite.c (graphite_transform_loops): Use renamed member.
4796 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
4799 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
4800 create_tmp_var_raw instead of create_tmp_var.
4802 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4805 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
4806 Use create_tmp_var_raw instead of create_tmp_var.
4808 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
4811 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
4812 split for upper-bank registers when target does not support
4814 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
4815 split when target does not support AVX512VL.
4817 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
4820 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
4821 Adjust to use create_tmp_var_raw instead of create_tmp_var.
4823 2015-10-06 Nick Clifton <nickc@redhat.com>
4825 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
4828 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4830 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
4831 (case ${target}): Add znver1.
4832 * config/i386/cpuid.h(bit_CLZERO): Define.
4833 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4834 -march=native recognize znver1 processors.
4835 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4836 znver1, clzero def_and_undef.
4837 * config/i386/i386.c (struct processor_costs znver1_cost): New.
4838 (m_znver1): New definition.
4839 (m_AMD_MULTIPLE): Includes m_znver1.
4840 (processor_target_table): Add znver1 entry.
4841 (ix86_target_string) : Add clzero entry.
4842 (static const char *const cpu_names): Add znver1 entry.
4843 (ix86_option_override_internal): Add znver1 instruction sets.
4844 (PTA_CLZERO) : New definition.
4845 (ix86_option_override_internal): Handle new clzerooption.
4846 (ix86_issue_rate): Add znver1.
4847 (ix86_adjust_cost): Add znver1.
4848 (ia32_multipass_dfa_lookahead): Add znver1.
4849 (has_dispatch): Add znver1.
4850 * config/i386/i386.h (TARGET_znver1): New definition.
4851 (TARGET_CLZERO): Define.
4852 (TARGET_CLZERO_P): Define.
4853 (struct ix86_size_cost): Add TARGET_ZNVER1.
4854 (enum processor_type): Add PROCESSOR_znver1.
4855 * config/i386/i386.md (define_attr "cpu"): Add znver1.
4856 (set_attr znver1_decode): New definitions for znver1.
4857 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
4859 * config/i386/mmx.md (set_attr znver1_decode): New definitions
4861 * config/i386/sse.md (set_attr znver1_decode): Likewise.
4862 * config/i386/x86-tune.def: Add znver1 tunings.
4863 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
4864 * gcc/doc/invoke.texi: Add details about znver1
4866 2015-10-06 Richard Biener <rguenther@suse.de>
4868 PR tree-optimization/67859
4869 * tree-ssa-pre.c (create_expression_by_pieces): Properly
4870 discard not inserted stmts.
4872 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
4874 * doc/extend.texi (Template Instantiation): Reorder options and
4875 de-emphasize -frepo.
4876 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
4877 example instead of -frepo.
4879 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4882 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
4883 use create_tmp_var_raw rather than create_tmp_var.
4885 2015-10-06 Richard Biener <rguenther@suse.de>
4887 * tree-vectorizer.h (vec_info): New base class for...
4888 (_loop_vec_info): ... this and ...
4889 (_bb_vec_info): ... this.
4890 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
4891 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
4892 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
4893 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
4894 vect_destroy_datarefs): Adjust interface to take a vec_info *
4895 rather than both a loop_vec_info and a bb_vec_info argument.
4896 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
4897 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
4898 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
4899 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
4901 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
4902 (destroy_loop_vec_info, vect_analyze_loop_2,
4903 vect_is_simple_reduction_1, get_initial_def_for_induction,
4904 vect_create_epilog_for_reduction, vectorizable_reduction,
4905 vectorizable_live_operation, vect_transform_loop): Adjust.
4906 * tree-vect-patterns.c (type_conversion_p,
4907 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
4908 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
4909 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
4910 check_bool_pattern, vect_recog_bool_pattern,
4911 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
4912 * tree-vect-slp.c (vect_get_and_check_slp_defs,
4913 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
4914 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
4915 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
4916 (new_bb_vec_info): Initialize base classs.
4917 * tree-vect-stmts.c (record_stmt_cost, process_use,
4918 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
4919 vectorizable_mask_load_store, vectorizable_call,
4920 vectorizable_simd_clone_call, vectorizable_conversion,
4921 vectorizable_assignment, vectorizable_shift,
4922 vectorizable_operation, vectorizable_store,
4923 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
4924 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
4925 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
4927 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
4930 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
4931 create_tmp_var_raw rather than create_tmp_var.
4933 2015-10-05 Marek Polacek <polacek@redhat.com>
4935 * tree-ssa-loop-im.c
4936 (move_computations_dom_walker::before_dom_children): Don't set
4937 SSA_NAME_ANTI_RANGE_P.
4938 * tree-ssa-phiopt.c (value_replacement): Likewise.
4940 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4941 Sebastian Pop <s.pop@samsung.com>
4943 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
4945 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4946 Sebastian Pop <s.pop@samsung.com>
4948 * graphite-poly.c (new_gimple_poly_bb): ... here.
4949 (free_data_refs_aux): ... here.
4950 (free_gimple_poly_bb): ... here.
4951 (remove_gbbs_in_scop): ... here.
4952 (new_scop): Call new_sese.
4953 (free_scop): Call remove_gbbs_in_scop and free_sese.
4954 * graphite-poly.h (base_alias_pair): ... here.
4955 (new_gimple_poly_bb): Declare.
4956 (free_gimple_poly_bb): Declare.
4957 * graphite-scop-detection.c (parameter_index_in_region_1):
4958 (parameter_index_in_region): ... here.
4959 (scan_tree_for_params): ... here.
4960 (find_params_in_bb): ... here.
4961 (find_scop_parameters): ... here.
4962 (build_scops): Call find_scop_parameters.
4963 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
4964 (free_scops): Move...
4965 (single_pred_cond_non_loop_exit): Move...
4966 (sese_dom_walker::before_dom_children): Move...
4967 (sese_dom_walker::after_dom_children): Move...
4968 (build_poly_scop): Move...
4969 * graphite-sese-to-poly.h (base_alias_pair): Move...
4970 * graphite.c (free_scops): ... here.
4972 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4973 Sebastian Pop <s.pop@samsung.com>
4975 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
4976 (trivially_empty_bb_p): Move...
4977 (same_close_phi_node): Move...
4978 (new_gimple_poly_bb): Move...
4979 (compare_bb_depths): Move...
4980 (graphite_sort_dominated_info): Move...
4981 (remove_duplicate_close_phi): Move...
4982 (make_close_phi_nodes_unique): Move...
4983 (canonicalize_loop_closed_ssa): Move...
4984 (canonicalize_loop_closed_ssa_form): Move...
4985 (loop_ivs_can_be_represented): Move...
4986 (single_pred_cond_non_loop_exit): Move...
4987 (graphite_can_represent_init): Move...
4988 (graphite_can_represent_scev): Move...
4989 (stmt_has_simple_data_refs_p): Move...
4990 (stmt_has_side_effects): Move...
4991 (graphite_can_represent_stmt): Move...
4992 (scop_detection): ... here.
4993 (sese_dom_walker): ... and here.
4994 (build_scops): Call all moved functions.
4995 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
4996 (all_non_dominated_preds_marked_p): Move...
4997 (build_scop_bbs_1): Move...
4998 (build_scop_bbs): Move...
4999 (set_scop_parameter_dim): Move...
5000 (nb_pbbs_in_loops): Move...
5001 (build_poly_scop): Do not call all the moved functions.
5003 2015-10-05 Martin Jambor <mjambor@suse.cz>
5004 Jan Hubicka <hubicka@ucw.cz>
5006 * ipa-cp.c (ipcp_alignment_lattice): New type.
5007 (ipcp_param_lattices): Use the above to represent alignment.
5008 (ipcp_alignment_lattice::print): New function.
5009 (print_all_lattices): Use it to print alignment information.
5010 (ipcp_alignment_lattice::top_p): New function.
5011 (ipcp_alignment_lattice::bottom_p): Likewise.
5012 (ipcp_alignment_lattice::set_to_bottom): Likewise.
5013 (ipcp_alignment_lattice::meet_with_1): Likewise.
5014 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
5015 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
5016 (initialize_node_lattices): Likewise.
5017 (propagate_alignment_accross_jump_function): Work with the new class
5018 for alignment lattices.
5019 (propagate_constants_accross_call): Pass only the alignment lattice to
5020 propagate_alignment_accross_jump_function.
5021 (ipcp_store_alignment_results): Work with the new class for alignment
5024 2015-10-05 Marek Polacek <polacek@redhat.com>
5026 PR tree-optimization/67821
5027 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
5029 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
5032 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
5034 (mkoffload_cleanup): ... this. Adjust all users.
5035 (maybe_unlink): Look at save_temps and verbose flags instead of
5037 (main): Parse "-save-temps" flag.
5038 (generate_target_descr_file, generate_target_offloadend_file)
5039 (generate_host_descr_file, prepare_target_image): Pass it on.
5040 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
5041 (mkoffload_cleanup): New function.
5042 (maybe_unlink): Look at save_temps and verbose flags instead of
5044 (main): Instead of calling utils_cleanup, register atexit handler
5045 for mkoffload_cleanup.
5046 (main): Parse "-save-temps" flag.
5047 (compile_native, main): Pass it on.
5048 * lto-wrapper.c (compile_offload_image): Likewise.
5050 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5052 * gimple.h (gimple_op_ptr): Require a non const gimple *.
5053 (gimple_assign_lhs_ptr): Likewise.
5054 (gimple_assign_rhs1_ptr): Likewise.
5055 (gimple_assign_rhs2_ptr): Likewise.
5056 (gimple_assign_rhs3_ptr): Likewise.
5057 (gimple_call_lhs_ptr): Likewise.
5058 (gimple_call_fn_ptr): Likewise.
5059 (gimple_call_chain_ptr): Likewise.
5060 (gimple_call_arg_ptr): Likewise.
5061 (gimple_cond_lhs_ptr): Likewise.
5062 (gimple_cond_rhs_ptr): Likewise.
5063 (gimple_switch_index_ptr): Likewise.
5064 (gimple_return_retval_ptr): Likewise.
5066 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5068 * gimple.h (gimple_asm_input_op_ptr): Remove.
5069 (gimple_asm_output_op_ptr): Likewise.
5071 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5073 * gimple.h (gimple_location_ptr): Remove.
5074 * tree-vrp.c (check_all_array_refs): Adjust.
5076 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5078 * tree-ssa-operands.c (build_uses): store tree * instead of
5080 (finalize_ssa_uses): Adjust.
5081 (append_use): Likewise.
5082 (verify_ssa_operands): Likewise.
5084 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5086 * real.h (build_real_truncate): Declare.
5087 * tree.c (build_real_truncate): New function.
5088 (strip_float_extensions): Use it.
5089 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
5090 (fold_builtin_hypot, fold_builtin_pow): Likewise.
5091 * match.pd: Likewise.
5093 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
5094 Jiong Wang <jiong.wang@arm.com>
5096 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
5098 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5100 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
5101 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
5102 (aarch64_print_operand, aarch64_float_const_representable_p)
5103 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
5104 instead of REAL_VALUE_FROM_CONST_DOUBLE.
5105 * config/arc/arc.c (arc_print_operand): Likewise.
5106 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
5107 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
5108 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
5110 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
5111 (consttable_16): Likewise.
5112 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
5113 * config/avr/avr.c (avr_print_operand): Likewise.
5114 * config/bfin/bfin.md: Likewise (in a define_split).
5115 * config/c6x/c6x.md: Likewise (in a define_split).
5116 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
5117 (cr16_print_operand): Likewise.
5118 * config/cris/cris.c (cris_print_operand): Likewise.
5119 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
5120 * config/fr30/fr30.c (fr30_print_operand): Likewise.
5121 (fr30_const_double_is_zero): Likewise.
5122 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
5123 * config/frv/frv.md: Likewise (in a define_split).
5124 * config/frv/predicates.md (int_2word_operand): Likewise.
5125 * config/h8300/h8300.c (h8300_print_operand): Likewise.
5126 * config/i386/i386.c (standard_80387_constant_p): Likewise.
5127 (ix86_print_operand, ix86_split_to_parts): Likewise.
5128 * config/i386/i386.md: Likewise (in a define_split).
5129 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
5130 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
5131 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
5132 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
5133 (print_operand): Likewise.
5134 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
5135 * config/mep/mep.md: Likewise (in define_split).
5136 * config/microblaze/microblaze.c (microblaze_const_double_ok)
5137 (print_operand): Likewise.
5138 * config/mips/mips.md (consttable_float): Likewise.
5139 * config/mmix/mmix.c (mmix_intval): Likewise.
5140 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
5141 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
5142 * config/pa/pa.c (pa_singlemove_string): Likewise.
5143 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
5144 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
5145 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
5146 (output_toc): Likewise.
5147 * config/rs6000/rs6000.md: Likewise (in define_splits).
5148 * config/rx/rx.c (rx_print_operand): Likewise.
5149 * config/s390/s390.c (s390_output_pool_entry): Likewise.
5150 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5151 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
5152 (and also in define_splits).
5153 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
5154 (fp_high_losum_p): Likewise.
5155 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
5156 (*movsf_high): Likewise.
5157 * config/spu/spu.c (const_double_to_hwint): Likewise.
5158 * config/v850/v850.c (const_double_split): Likewise.
5159 * config/vax/vax.c (vax_float_literal): Likewise.
5160 * config/visium/visium.c (visium_expand_copysign): Likewise.
5161 * config/visium/visium.md: Likewise (in define_split).
5162 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5163 * config/xtensa/xtensa.c (print_operand): Likewise.
5164 (xtensa_output_literal): Likewise.
5165 * cprop.c (implicit_set_cond_p): Likewise.
5166 * dwarf2out.c (insert_float): Likewise.
5167 * expmed.c (expand_mult, make_tree): Likewise.
5168 * expr.c (compress_float_constant): Likewise.
5169 * rtlanal.c (split_double): Likewise.
5170 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5171 (simplify_const_unary_operation, simplify_binary_operation_1)
5172 (simplify_const_binary_operation): Likewise.
5173 (simplify_const_relational_operation): Likewise.
5174 * varasm.c (output_constant_pool_2): Likewise.
5176 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5178 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
5179 instead of CONST_DOUBLE_FROM_REAL_VALUE.
5180 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
5181 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
5182 instead of CONST_DOUBLE_FROM_REAL_VALUE.
5183 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
5184 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
5185 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
5186 (ix86_emit_swsqrtsf): Likewise.
5187 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
5188 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
5189 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5190 * config/pa/pa.c (pa_expand_builtin): Likewise.
5191 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
5192 (rs6000_scale_v2df): Likewise.
5193 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
5194 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
5195 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
5196 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
5197 (vec_ctul): Likewise.
5198 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
5199 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
5200 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
5201 * cse.c (fold_rtx): Likewise.
5202 * emit-rtl.c (immed_double_const): Likewise (in comments).
5203 (init_emit_once): Likewise.
5204 * expr.c (compress_float_constant, expand_expr_real_1)
5205 (const_vector_from_tree): Likewise.
5206 * optabs.c (expand_float, expand_fix): Likewise.
5207 * reg-stack.c (reg_to_stack): Likewise.
5208 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5209 (simplify_const_unary_operation, simplify_binary_operation_1)
5210 (simplify_const_binary_operation, simplify_relational_operation)
5211 (simplify_immed_subreg): Likewise.
5213 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5215 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
5216 * doc/tm.texi: Regenerate.
5217 * real.h (REAL_ARITHMETIC): Delete.
5218 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
5219 (ix86_expand_round_sse4): Use real_arithmetic instead of
5221 * config/i386/sse.md (round<mode>2): Likewise.
5222 * rtl.h (rtx_to_tree_code): Likewise (in comment).
5223 * explow.c (rtx_to_tree_code): Likewise (in comment).
5224 * match.pd: Likewise.
5225 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5226 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5227 (expand_pow_as_sqrts): Likewise.
5228 * tree-pretty-print.c (dump_generic_node): Remove code that
5229 was conditional on REAL_ARITHMETIC being undefined.
5231 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5233 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
5234 * doc/tm.texi: Regenerate.
5235 * real.h (real_less): Declare.
5236 (REAL_VALUES_LESS): Delete.
5237 * real.c (real_less): New function.
5238 (real_compare): Use it.
5239 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
5240 of REAL_VALUES_LESS.
5241 * config/microblaze/microblaze.c (microblaze_const_double_ok):
5243 * fold-const.c (fold_convert_const_int_from_real): Likewise.
5244 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5245 (simplify_const_relational_operation): Likewise.
5246 * tree-call-cdce.c (check_pow): Likewise.
5247 (gen_conditions_for_pow_cst_base): Likewise.
5249 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5251 * real.h (REAL_VALUES_IDENTICAL): Delete.
5252 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
5253 instead of REAL_VALUES_IDENTICAL.
5254 * fold-const.c (operand_equal_p): Likewise.
5255 * ipa-icf.c (sem_variable::equals): Likewise.
5256 * tree-complex.c (some_nonzerop): Likewise.
5257 (expand_complex_multiplication): Likewise.
5258 * tree.c (simple_cst_equal): Likewise.
5259 * varasm.c (compare_constant): Likewise.
5261 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5263 * real.h (real_equal): Declare.
5264 (REAL_VALUES_EQUAL): Delete.
5265 * real.c (real_equal): New function.
5266 (real_compare): Use it.
5267 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
5268 * doc/tm.texi: Regenerate.
5269 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
5270 real_equal instead of REAL_VALUES_EQUAL.
5271 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
5272 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
5273 (fp_const_from_val): Likewise.
5274 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
5275 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
5276 (floating_exact_log2): Likewise.
5277 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5278 * config/vax/vax.c (vax_float_literal): Likewise.
5279 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5280 * cprop.c (implicit_set_cond_p): Likewise.
5281 * expmed.c (expand_mult): Likewise.
5282 * fold-const.c (const_binop): Likewise.
5283 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5284 (simplify_const_binary_operation): Likewise.
5285 (simplify_const_relational_operation): Likewise.
5286 * tree-call-cdce.c (check_pow): Likewise.
5287 (gen_conditions_for_pow_cst_base): Likewise.
5288 * tree-inline.c (estimate_num_insns): Likewise.
5289 * tree-ssa-dom.c (record_equality): Likewise.
5290 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5291 (gimple_expand_builtin_pow): Likewise.
5292 (pass_optimize_widening_mul::execute): Likewise.
5293 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5294 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
5295 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
5297 2015-10-05 Richard Biener <rguenther@suse.de>
5300 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
5301 consider loop header PHI defs as IVs.
5303 2015-10-05 Richard Biener <rguenther@suse.de>
5305 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
5307 (create_expression_by_pieces): ... here and build GIMPLE
5308 calls directly. Use gimple_build API and avoid force_gimple_operand.
5309 (insert_into_preds_of_block): Simplify.
5310 (do_regular_insertion): Add comment.
5312 2015-10-04 Jason Merrill <jason@redhat.com>
5314 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
5316 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
5318 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
5319 check for general register.
5320 (ix86_emit_save_regs): Ditto.
5321 (ix86_emit_save_regs_using_mov): Ditto.
5322 (ix86_emit_restore_regs_using_pop): Ditto.
5323 (ix86_emit_restore_regs_using_mov): Ditto.
5325 2015-10-03 Marek Polacek <polacek@redhat.com>
5327 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
5328 (insn-dfatab.o): Likewise.
5330 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
5332 * config.gcc (xtensa*-*-uclinux*): New configuration.
5333 * config/xtensa/uclinux.h: New file.
5334 * config/xtensa/uclinux.opt: New file.
5336 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
5338 * doc/cpp.texi (Standard Predefined Macros): Document value of
5339 __cplusplus for C++14.
5341 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
5343 * gcc.c (process_command): Use spec_machine rather than
5344 spec_host_machine to build tooldir_prefix2.
5346 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5347 Bernd Schmidt <bernds@codesourcery.com>
5349 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
5350 (Token, Stmt): Remove structs.
5351 (decls, vars, fns): Remove variables.
5352 (alloc_comment, append_stmt, is_keyword): Remove macros.
5353 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
5354 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
5355 (parse_init, parse_file): Remove functions.
5356 (read_file): Accept a pointer to a length and store into it.
5357 (process): Don't try to parse the input file, just write it out as
5358 a string, but looking for maps. Also write out the length.
5359 (main): Don't use "-S" to compile PTX code.
5361 2015-10-02 Jeff Law <law@redhat.com>
5363 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
5366 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5369 * config/nvptx/mkoffload.c (main): Scan the argument vector for
5370 -fopenmp, and skip generating an offloading image if specified.
5372 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
5374 * system.h (ROUND_UP): New macro definition.
5375 (ROUND_DOWN): Ditto.
5376 * ggc-page.c (ROUND_UP): Remove local macro definition.
5377 (PAGE_ALIGN): Implement using ROUND_UP macro.
5379 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
5380 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
5382 (ix86_compute_frame_layout): Ditto.
5383 (ix86_expand_prologue): Ditto.
5384 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
5385 to round down values.
5386 (expand_set_or_movmem_via_rep): Ditto.
5388 2015-10-02 Marek Polacek <polacek@redhat.com>
5390 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
5392 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
5394 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
5395 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
5396 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
5397 (free_gimple_bb): Renamed free_gimple_poly_bb.
5398 (try_generate_gimple_bb): Hoist loop invariant code.
5399 (analyze_drs_in_stmts): Same.
5400 (build_scop_drs): Call renamed functions.
5401 (new_pbb_from_pbb): Same.
5402 (scop_ivs_can_be_represented): Delete as functionality now moved to
5403 graphite-scop-detection.c
5404 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
5406 2015-10-02 Aditya Kumar <hiraditya@msn.com>
5408 * graphite-scop-detection.c (stmt_has_side_effects): New function
5409 outlined from stmt_simple_for_scop_p.
5410 (graphite_can_represent_stmt): Same.
5411 (stmt_simple_for_scop_p): Moved code out of this function for better
5414 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5416 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
5418 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
5420 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5422 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
5424 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
5426 PR rtl-optimization/67756
5427 * lra-constraints.c (match_reload): Add a new parameter. Use it
5428 for creating a pseudo with the same value.
5429 (curr_insn_transform): Pass a new argument to match_reload.
5431 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5433 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
5434 (expand_vec_perm_even_odd_1): Handle V64QImode.
5435 (ix86_expand_vec_perm_const_1): Try expansion with
5436 expand_vec_perm_even_odd_trunc as well.
5437 * config/i386/sse.md (VI124_AVX512F): Rename to ...
5438 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
5440 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
5441 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
5443 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
5444 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
5445 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
5446 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
5447 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
5448 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
5450 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5452 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
5453 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
5455 2015-10-02 Jason Merrill <jason@redhat.com>
5458 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
5459 (diagnose_tm_1_op): Also diagnose volatile accesses in
5460 transaction_safe function.
5462 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
5464 * system.h (malloc.h): Don't include obsolete header.
5466 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5468 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
5469 (TLS_SECTION_ASM_FLAG): Delete.
5471 2015-10-02 Marek Polacek <polacek@redhat.com>
5474 * doc/invoke.texi: Document -Wduplicated-cond.
5475 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
5476 (insn-dfatab.o): Likewise.
5477 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
5480 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
5482 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
5485 2015-10-02 Renlin Li <renlin.li@arm.com>
5487 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
5489 2015-10-02 Renlin Li <renlin.li@arm.com>
5492 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
5494 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5496 PR rtl-optimization/67786
5497 PR rtl-optimization/67787
5498 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
5499 it modifies a reg used in the condition calculation.
5501 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
5503 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
5504 alternatives for reads from memory and moves from general-purpose
5506 (*aarch64_combinez_be<mode>): Likewise.
5508 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
5511 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
5512 selectany within this function without need to keep attribute.
5513 (i386_pe_encode_section_info): Remove selectany-code.
5515 2015-10-02 Richard Biener <rguenther@suse.de>
5517 * tree-ssa-sccvn.c (has_VN_INFO): New function.
5518 (free_scc_vn): Use it.
5519 (visit_use): Remove dead code and refactor to use gassign
5520 and use less indentation.
5522 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5526 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
5527 (rs6000_cannot_copy_insn_p): New function.
5528 * config/rs6000/rs6000.md (cannot_copy): New attribute.
5529 (load_toc_v4_PIC_1_normal): Set cannot_copy.
5530 (load_toc_v4_PIC_1_476): Ditto.
5532 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
5534 * graphite-scop-detection.c (struct sese_l): New conversion constructor
5535 so that this type can be pushed into a vec.
5536 (class scop_builder): use sese_l to collect scops.
5537 (get_scops): New getter function.
5538 (remove_intersecting_scops): Use sese_l instead of scops_p.
5542 (remove_subscops): Same.
5543 (build_scops): Add scops to vec<scops_p> once all the scops have been
5546 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
5548 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5549 Renamed type from gimple_bb_p to gimple_poly_bb_p.
5550 (translate_isl_ast_node_user): Same.
5551 * graphite-poly.c (new_poly_bb): Same.
5552 * graphite-poly.h (gbb_from_bb): Same.
5554 * graphite-sese-to-poly.c (new_gimple_bb):
5555 gimple_bb_p -> gimple_poly_bb_p
5556 (build_scop_scattering): Same.
5557 (find_params_in_bb): Same.
5558 (add_conditions_to_domain): Same.
5559 (sese_dom_walker::before_dom_children): Same.
5560 (analyze_drs_in_stmts): Same.
5561 (new_pbb_from_pbb): Same.
5562 (free_data_refs_aux): New pointer to type base_alias_pair.
5563 * graphite-sese-to-poly.h: Same.
5564 * sese.c (if_region_set_false_region): Fixed Indentation.
5565 (move_sese_in_condition): Same.
5567 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5568 Aditya Kumar <aditya.k7@samsung.com>
5570 PR tree-optimization/66980
5571 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
5572 when data reference analysis has failed.
5574 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5575 Aditya Kumar <aditya.k7@samsung.com>
5577 PR tree-optimization/67754
5578 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
5579 scev analysis on the same loop nest as analyze_drs_in_stmts.
5580 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
5582 (try_generate_gimple_bb): Call outermost_loop_in_sese.
5583 (analyze_drs_in_stmts): Same.
5584 * sese.c (outermost_loop_in_sese): ...here.
5586 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5587 Aditya Kumar <aditya.k7@samsung.com>
5589 PR tree-optimization/67754
5590 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
5591 recursion on the inner loops.
5593 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5595 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
5596 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
5597 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
5598 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
5599 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
5601 2015-10-01 Marek Polacek <polacek@redhat.com>
5604 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
5605 create_tmp_var_raw rather than create_tmp_var.
5607 2015-10-01 Marek Polacek <polacek@redhat.com>
5609 PR tree-optimization/67769
5610 * tree-ssa-phiopt.c (conditional_replacement): Call
5611 reset_flow_sensitive_info_in_bb.
5612 (minmax_replacement): Likewise.
5613 (abs_replacement): Likewise.
5615 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
5617 * builtins.c: Don't include gomp-constants.h.
5618 (fold_builtin_1): Don't fold acc_on_device here.
5619 * gimple-fold.c: Include gomp-constants.h.
5620 (gimple_fold_builtin_acc_on_device): New.
5621 (gimple_fold_builtin): Call it.
5623 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
5625 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
5626 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
5628 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
5630 * config/arm/aarch-common-protos.h
5631 (aarch_accumulator_forwarding): New.
5632 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5633 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
5634 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5635 * config/arm/cortex-a53.md: Rewrite.
5637 2015-10-01 Richard Biener <rguenther@suse.de>
5639 * gimple-match.h (mprts_hook): Declare.
5640 * gimple-match.head.c (mprts_hook): Define.
5641 (maybe_push_res_to_seq): Use new hook.
5642 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5643 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
5644 (vn_ssa_aux::has_constants): Remove.
5645 * tree-ssa-sccvn.c: Include gimple-match.h.
5646 (VN_INFO_GET): Assert we don't re-use SSA names.
5647 (vn_get_expr_for): Remove.
5648 (expr_has_constants): Likewise.
5649 (stmt_has_constants): Likewise.
5650 (simplify_binary_expression): Likewise.
5651 (simplify_unary_expression): Likewise.
5652 (vn_lookup_simplify_result): New hook.
5653 (visit_copy): Adjust.
5654 (visit_reference_op_call): Likewise.
5655 (visit_phi): Likewise.
5656 (visit_use): Likewise.
5657 (process_scc): Likewise.
5658 (init_scc_vn): Likewise.
5659 (visit_reference_op_load): Likewise. Use match-and-simplify and
5660 a gimple seq for inserted expressions.
5661 (try_to_simplify): Remove GENERIC stmt combining code.
5662 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
5663 * tree-ssa-pre.c (eliminate_insert): Adjust.
5664 (eliminate_dom_walker::before_dom_children): Likewise.
5666 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5668 * doc/invoke.texi (Optimization Options): Add
5669 -freorder-blocks-algorithm=.
5670 (Optimize Options) <-O>: Add -freorder-blocks.
5671 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
5672 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
5673 <-freorder-blocks>: Also enabled at levels -O and -Os.
5674 <-freorder-blocks-algorithm=>: Document new option.
5676 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5678 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
5679 with flag_reorder_blocks_algorithm.
5680 * common.opt (freorder-blocks-algorithm=): New flag.
5681 (reorder_blocks_algorithm): New enum.
5682 * flag-types.h (reorder_blocks_algorithm): New enum.
5683 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
5684 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
5686 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5688 * bb-reorder.c: Add intro comment.
5689 (reorder_basic_blocks_software_trace_cache): Print a header to
5691 (edge_order): New function.
5692 (reorder_basic_blocks_simple): New function.
5693 (reorder_basic_blocks): Choose between the STC and the simple
5694 algorithms (always choose the former).
5696 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5698 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
5699 function, factored out from ...
5700 (reorder_basic_blocks): ... here.
5702 2015-10-01 Tom de Vries <tom@codesourcery.com>
5704 * tree-cfg.c (dump_function_to_file): Dump function attributes using
5705 __attribute__(()) string. Move dumping of function attributes to before
5708 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
5711 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5712 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
5713 based on gold linker version.
5714 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
5715 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
5716 * configure, config.in: Regenerate.
5718 2015-10-01 Alan Modra <amodra@gmail.com>
5720 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
5721 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
5722 (rs6000_output_mi_thunk): Likewise.
5724 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5726 * config/nvptx/mkoffload.c (process): Change offload data format.
5728 2015-09-30 Jeff Law <law@redhat.com>
5730 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
5731 with constant conditions.
5732 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
5733 (remove_ctrl_stmt_and_useless_edges): No longer static.
5734 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
5735 (remove_ctrl_stmt_and_useless_edges): Likewise.
5737 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5738 Cesar Philippidis <cesar@codesourcery.com>
5740 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
5741 (TARGET_GOACC_VALIDATE_DIMS): Override.
5742 * target.def (TARGET_GOACC): New target hook prefix.
5743 (validate_dims): New hook.
5744 * targhooks.h (default_goacc_validate_dims): New.
5745 * omp-low.c (oacc_validate_dims): New.
5746 (execute_oacc_device_lower): New.
5747 (default_goacc_validate_dims): New.
5748 (pass_data_oacc_device_lower): New.
5749 (pass_oacc_device_lower): New pass.
5750 (make_pass_oacc_device_lower): New.
5751 * tree-pass.h (make_pass_oacc_device_lower): Declare.
5752 * passes.def (pass_oacc_device_lower): Add it.
5753 * doc/tm.texi: Rebuilt.
5754 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
5755 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
5757 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5759 PR rtl-optimization/67037
5760 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
5762 2015-09-30 Bernd Schmidt <bernds@redhat.com>
5764 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
5765 * passes.c: Include tree-ssanames.h.
5766 (execute_function_todo): Flush the pending free SSA_NAMEs after
5767 eliminating unreachable basic blocks.
5768 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
5769 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
5770 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
5771 (flush_ssanames_freelist): New function.
5772 (release_ssaname_fn): Put released names on the queue.
5773 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
5774 * tree-ssanames.h (flush_ssanames_freelist): Declare.
5776 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5778 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
5779 (generate_target_descr_file, generate_target_offloadend_file)
5780 (generate_host_descr_file, prepare_target_image): Pass it on.
5781 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
5782 (compile_native, main): Pass it on.
5783 * lto-wrapper.c (compile_offload_image): Likewise.
5785 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5786 Ilya Verbin <ilya.verbin@intel.com>
5787 Andrey Turetskiy <andrey.turetskiy@intel.com>
5789 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
5790 (prepare_target_image, main): Refactor argv building to use
5793 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5795 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
5796 * config/spu/spu.c (spu_expand_atomic_op): New function.
5797 * config/spu/spu.md (AINT): New mode iterator.
5798 (ATOMIC): New code iterator.
5799 (atomic_name, atomic_pred): New code predicates.
5800 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
5801 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
5802 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
5803 "atomic_<atomic_name>_fetch<mode>"): Likewise.
5805 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
5807 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
5809 (scalar_chain::convert_reg): Likewise.
5811 2015-09-30 Richard Biener <rguenther@suse.de>
5813 * builtins.c: Add comment that no new simplifications should
5816 2015-09-30 Marek Polacek <polacek@redhat.com>
5818 PR tree-optimization/67690
5819 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
5820 reset_flow_sensitive_info_in_bb.
5821 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
5822 * tree-ssanames.c: Include "gimple-iterator.h".
5823 (reset_flow_sensitive_info_in_bb): New function.
5824 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
5826 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5828 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
5829 variable, replacing it with...
5830 (offload_abi): ... this new variable. Adjust all users.
5831 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
5833 2015-09-30 Matthias Klose <doko@ubuntu.com>
5835 * configure.ac: Remove extraneous ;;.
5836 * configure: Regenerate.
5838 2015-09-29 James Bowman <james.bowman@ftdichip.com>
5840 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
5841 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
5842 predicate, disallow register for operand 2.
5844 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
5846 * graphite-dependences.c (scop_get_dependences): Moved in down
5847 in order to be visible to its caller.
5848 * graphite-poly.h: Removed compute_deps, and extend_schedule.
5850 2015-09-29 Sebastian Pop <s.pop@samsung.com>
5851 Aditya Kumar <aditya.k7@samsung.com>
5853 PR tree-optimization/67754
5854 * graphite-optimize-isl.c (optimize_isl): Call
5855 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
5857 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5859 * builtins.c (expand_builtin_acc_on_device): Delete.
5860 (expand_builtin): Don't call it.
5861 (fold_builtin_1): Fold acc_on_device.
5863 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
5865 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
5866 (ix86_nsaved_sseregs): Likewise.
5868 2015-09-29 Jeff Law <law@redhat.com>
5870 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
5871 computation of unused value.
5873 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
5874 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
5875 inline macro expansion.
5877 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
5879 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
5880 (gen_shl_sext): Likewise.
5881 * config/sh/sh.md (divsi3): Likewise.
5882 (imm->ext_dest_operand splitter): Likewise.
5884 2015-09-29 Sebastian Pop <s.pop@samsung.com>
5885 Aditya Kumar <aditya.k7@samsung.com>
5887 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
5888 (nb_data_writes_in_bb): Remove.
5889 (split_pbb): Remove.
5890 (split_reduction_stmt): Remove.
5891 (is_reduction_operation_p): Remove.
5892 (phi_contains_arg): Remove.
5893 (follow_ssa_with_commutative_ops): Remove.
5894 (detect_commutative_reduction_arg): Remove.
5895 (detect_commutative_reduction_assign): Remove.
5896 (follow_inital_value_to_phi): Remove.
5897 (edge_initial_value_for_loop_phi): Remove.
5898 (initial_value_for_loop_phi): Remove.
5899 (used_outside_reduction): Remove.
5900 (detect_commutative_reduction): Remove.
5901 (translate_scalar_reduction_to_array_for_stmt): Remove.
5902 (remove_phi): Remove.
5903 (dr_indices_valid_in_loop): Remove.
5904 (close_phi_written_to_memory): Remove.
5905 (translate_scalar_reduction_to_array): Remove.
5906 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
5907 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
5908 (rewrite_commutative_reductions_out_of_ssa): Remove.
5909 (build_poly_scop): Remove call to
5910 rewrite_commutative_reductions_out_of_ssa.
5912 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
5914 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
5915 Add new insn types for vector load and store pairs.
5916 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
5917 types "neon_ldp{,_q}".
5918 * config/arm/cortex-a57.md (neon_load_c): Add insn types
5920 (neon_store_complex): Add insn types "neon_stp{,_q}".
5921 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
5924 2015-09-29 Jeff Law <law@redhat.com>
5926 * config/rx/constraints.md (Int08): Fix undefined left shift
5928 (Sint08, Sint16, Sint24): Likewise.
5929 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5931 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
5934 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
5935 left shift behaviour.
5936 * config/msp430/constraints.md ('L' constraint): Similarly.
5937 ('Ys' constraint): Similarly.
5939 2015-09-29 Richard Biener <rguenther@suse.de>
5941 PR tree-optimization/67170
5942 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
5943 the translate function pointer parameter to get the
5944 bool whether to disambiguate only by reference.
5945 (walk_non_aliased_vuses): Likewise.
5946 * tree-ssa-alias.c (maybe_skip_until): Adjust.
5947 (get_continuation_for_phi_1): Likewise.
5948 (get_continuation_for_phi): Likewise.
5949 (walk_non_aliased_vuses): Likewise.
5950 * tree-ssa-sccvn.c (const_parms): New bitmap.
5951 (vn_reference_lookup_3): Adjust for interface change.
5952 Disambiguate parameters pointing to readonly memory.
5953 (free_scc_vn): Free const_parms.
5954 (run_scc_vn): Initialize const_parms from a fn spec attribute.
5956 2015-09-29 Richard Biener <rguenther@suse.de>
5958 PR tree-optimization/67741
5959 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
5960 builtin calls with correct signature.
5962 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
5965 * config/i386/i386.c: Include dbgcnt.h.
5966 (has_non_address_hard_reg): New.
5967 (convertible_comparison_p): New.
5968 (scalar_to_vector_candidate_p): New.
5969 (remove_non_convertible_regs): New.
5970 (scalar_chain): New.
5971 (scalar_chain::scalar_chain): New.
5972 (scalar_chain::~scalar_chain): New.
5973 (scalar_chain::add_to_queue): New.
5974 (scalar_chain::mark_dual_mode_def): New.
5975 (scalar_chain::analyze_register_chain): New.
5976 (scalar_chain::add_insn): New.
5977 (scalar_chain::build): New.
5978 (scalar_chain::compute_convert_gain): New.
5979 (scalar_chain::replace_with_subreg): New.
5980 (scalar_chain::replace_with_subreg_in_insn): New.
5981 (scalar_chain::emit_conversion_insns): New.
5982 (scalar_chain::make_vector_copies): New.
5983 (scalar_chain::convert_reg): New.
5984 (scalar_chain::convert_op): New.
5985 (scalar_chain::convert_insn): New.
5986 (scalar_chain::convert): New.
5987 (convert_scalars_to_vector): New.
5988 (pass_data_stv): New.
5990 (make_pass_stv): New.
5991 (ix86_option_override): Created and register stv pass.
5992 (flag_opts): Add -mstv.
5993 (ix86_option_override_internal): Likewise.
5994 * config/i386/i386.md (SWIM1248x): New.
5995 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
5996 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
5997 (*anddi3_doubleword): New.
5998 (*zext<mode>_doubleword): New.
5999 (*zextsi_doubleword): New.
6000 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
6001 (*<code>di3_doubleword): New.
6002 * config/i386/i386.opt (mstv): New.
6003 * dbgcnt.def (stv_conversion): New.
6005 2015-09-29 Tom de Vries <tom@codesourcery.com>
6007 * tree-cfg.c (dump_function_to_file): Dump function attributes.
6009 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
6012 * config/sh/sh.c (sh_override_options_after_change): New.
6013 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6014 (sh_option_override): Move align_loops, align_jumps and
6015 align_functions handling into sh_override_options_after_change.
6017 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6019 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
6020 (nvptx_record_offload_symbol): Record function execution geometry.
6021 * config/nvptx/mkoffload.c (process): Include launch geometry in
6023 * omp-low.c (oacc_launch_pack): New.
6024 (replace_oacc_fn_attrib): New.
6025 (set_oacc_fn_attrib): New.
6026 (get_oacc_fn_attrib): New.
6027 (expand_omp_target): Create keyed varargs for GOACC_parallel call
6029 * omp-low.h (get_oacc_fn_attrib): Declare.
6030 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
6031 (DEF_FUNCTION_TYPE_VAR_11): Delete.
6032 * tree.h (OMP_CLAUSE_EXPR): New.
6033 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
6035 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6036 Sebastian Pop <s.pop@samsung.com>
6038 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
6040 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6041 Sebastian Pop <s.pop@samsung.com>
6043 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
6044 * graphite-scop-detection.c (struct sese_l): New type.
6045 (get_entry_bb): API for getting entry bb of SESE.
6046 (get_exit_bb): API for getting exit bb of SESE.
6047 (class debug_printer): New type. Simple printer in debug mode.
6048 (trivially_empty_bb_p): New. Return true when BB is empty or
6049 contains only debug instructions.
6050 (graphite_can_represent_expr): Call scalar_evoution_in_region
6051 instead of analyze_scalar_evolution. Pass in scop instead of only
6053 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
6055 (stmt_simple_for_scop_p): Same.
6056 (harmful_stmt_in_bb): Same.
6057 (graphite_can_represent_loop): Deleted.
6058 (struct scopdet_info): Deleted.
6059 (scopdet_basic_block_info): Deleted.
6060 (build_scops_1): Deleted.
6061 (bb_in_sd_region): Deleted.
6062 (find_single_entry_edge): Deleted.
6063 (find_single_exit_edge): Deleted.
6064 (create_single_entry_edge): Deleted.
6065 (sd_region_without_exit): Deleted.
6066 (create_single_exit_edge): Deleted.
6067 (unmark_exit_edges): Deleted.
6068 (mark_exit_edges): Deleted.
6069 (create_sese_edges): Deleted.
6070 (build_graphite_scops): Deleted.
6071 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
6072 (build_scops): Use the new scop_builder to build scops.
6073 (dot_all_scops_1): Use the new pretty printer. Print loop father
6075 (loop_body_is_valid_scop): New. Return true if loop body is a
6077 (class scop_builder): New. Builds SCoPs for polyhedral
6079 (scop_builder): New constructor.
6080 (static sese_l invalid_sese): sese_l with invalid edges.
6081 (get_sese): Get an sese (from a loop) if possible, invalid_sese
6083 (get_nearest_dom_with_single_entry): Get nearest dominator of a
6084 basic_block with single entry. Return NULL if we get to the
6085 beginning of a function.
6086 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
6087 a basic_block with single exit. Return NULL if we get to the
6088 beginning of a function.
6089 (print_sese): Pretty-print SESE.
6090 (merge_sese): Merge two SESEs if possible and return the new SESE.
6091 (build_scop_depth): Start building the SCoP within a loop nest.
6092 (build_scop_breadth): Start building the SCoP at a single loop
6093 depth. Merge adjacent SESEs if valid.
6094 (can_represent_loop_1): Returns true if Graphite can represent
6095 loop inside SCoP. Helper for can_represent_loop.
6096 (can_represent_loop): Returns true if Graphite can represent LOOP
6097 and all its nested loops in SCoP.
6098 (loop_is_valid_scop): Returns true if LOOP and all its nests
6099 constitute a valid SCoP.
6100 (region_has_one_loop): Returns true of a region has only one loop.
6101 (add_scop): Add SCoP to the list of valid scops. Removes an
6102 already existing scop if it intersects with or subsumed by this one.
6103 (harmful_stmt_in_region): Returns true if SCoP has any statment
6104 which cannot be represented by Graphite.
6105 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
6106 (remove_subscops): Remove any SCoP from the list of already found
6107 SCoPs, if subsumed by S1.
6108 (intersects): Return true if region bounded by SCoPs S1 and S2
6110 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
6111 * graphite.c (print_graphite_scop_statistics):
6112 (print_graphite_statistics): Print SCoP info while debugging.
6113 (graphite_initialize): Early exit in case number of loops in a
6114 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
6115 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
6116 (graphite_finalize):
6117 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
6118 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
6119 (recompute_all_dominators): Recalculate POST_DOMINATORS.
6120 * tree-cfg.c (print_loops): Print the function name while printing
6123 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6124 Sebastian Pop <s.pop@samsung.com>
6126 PR tree-optimization/67700
6127 * graphite-sese-to-poly.c (parameter_index_in_region): Call
6128 invariant_in_sese_p_rec.
6129 (extract_affine): Same.
6130 (rewrite_cross_bb_scalar_deps): Call update_ssa.
6131 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
6132 * sese.h (invariant_in_sese_p_rec): Declare.
6134 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
6136 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
6138 2015-09-28 Jiong Wang <jiong.wang@arm.com>
6141 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6142 Jiong Wang <jiong.wang@arm.com>
6144 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
6145 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
6146 (REG_CLASS_NAMES): Likewise.
6147 (REG_CLASS_CONTENTS): Likewise.
6148 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
6149 (aarch64_register_move_cost): Likewise.
6150 (aarch64_load_symref_appropriately): Invoke the new added pattern if
6152 * config/aarch64/constraints.md (Uc0): New constraint.
6154 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
6156 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
6158 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
6160 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
6161 SECTION_EXCLUDE in XO mapping class.
6163 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
6166 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
6167 and handle ne and eq codes.
6168 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
6169 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
6170 CONST_INT_P. Use reverse_condition.
6171 (sh_split_treg_set_expr): Likewise.
6173 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
6175 * config/arm/types.md (type): Add rotate_imm.
6176 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
6178 (*rorsi3_insn_uxtw): Likewise.
6179 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
6180 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
6181 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
6183 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6185 PR rtl-optimization/67481
6186 * ifcvt.c (contains_ccmode_rtx_p): New function.
6187 (insn_valid_noce_process_p): Use it.
6189 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6191 PR rtl-optimization/67456
6192 PR rtl-optimization/67464
6193 PR rtl-optimization/67465
6194 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
6195 move in the mode of x. Handle combination of complex and simple
6196 block pairs as well as the case when one is empty.
6198 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6200 * doc/gimple.texi: Update references to gimple_statement_base.
6201 * gdbhooks.py: Likewise.
6202 * gimple.h: Likewise.
6204 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6206 * config/sparc/driver-sparc.c: map LEON to leon3
6208 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6210 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
6211 and make it inverse to change default
6212 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
6214 * doc/invoke.texi: Document change of default
6216 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6218 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
6219 true on %f0 for a target without FPU.
6220 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
6222 (untyped_return): Do not load %f0 for a target without FPU.
6224 2015-09-28 Andrew Pinski <apinski@cavium.com>
6226 * config/aarch64/aarch64.md (prefetch):
6227 Change the predicate of operand 0 to register_operand.
6229 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
6231 * config/i386/predicates.md (register_sse4nonimm_operand): New
6233 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
6234 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
6235 Use register_sse4nonimm_operand as operand 0 predicate.
6236 (*vec_extractv8hi_sse2): Remove insn pattern.
6237 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
6238 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
6240 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
6241 Kaz Kojima <kkojima@gcc.gnu.org>
6244 * config/sh/sh-protos.h (sh_lra_p): Declare.
6245 * config/sh/sh.c (sh_lra_p): Make non-static.
6246 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
6247 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
6248 Expand into addsi3_scr if operands[2] if needed.
6249 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
6250 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
6251 (addsi3_scr, *addsi3): New insn_and_split patterns.
6253 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
6255 PR rtl-optimization/64164
6256 PR tree-optimization/67312
6260 * cfgexpand.c (parm_in_stack_slot_p): Remove.
6261 (ssa_default_def_partition): Remove.
6262 (get_rtl_for_parm_ssa_default_def): Remove.
6263 (set_rtl): Check that RTL assignments match expectations.
6264 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
6265 default def location for params and results. Record SSA names
6266 or types in REG and MEM attrs, respectively.
6267 (set_parm_rtl): New.
6268 (expand_one_ssa_partition): Drop logic that assigned MEMs with
6269 unassigned addresses.
6270 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
6271 deferred stack alloc vars.
6272 (expand_used_vars): Skip partitions holding parm default defs.
6273 Move adjust_one_expanded_partition_var loop...
6274 (pass_expand::execute): ... here. Drop redundant assert.
6275 Adjust comments before the final loop over all ssa names.
6276 Require assigned rtl of parms and results to match exactly.
6277 Reset its attributes to match them, not any other variables in
6279 (expand_debug_expr): Use entry value for PARM's default defs
6280 only iff they have zero nondebug uses.
6281 * cfgexpand.h (parm_in_stack_slot_p): Remove.
6282 (get_rtl_for_parm_ssa_default_def): Remove.
6283 (set_parm_rtl): Declare.
6284 * doc/invoke.texi: Improve wording.
6285 * explow.c (promote_decl_mode): Fix promote_function_mode for
6286 result decls not by reference.
6287 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
6288 bypass TYPE_MODE to get the actual vector mode.
6289 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
6290 2015-08-19's changes as follows. Drop include of
6291 basic-block.h and df.h.
6292 (rtl_for_parm): Remove.
6293 (maybe_reset_rtl_for_parm): Remove.
6294 (parm_in_unassigned_mem_p): Remove.
6295 (use_register_for_decl): Add logic for RESULT_DECLs matching
6296 assign_parms' behavior.
6297 (split_complex_args): Revert.
6298 (assign_parms_augmented_arg_list): Revert. Add comment
6299 referencing the logic above.
6300 (assign_parm_adjust_stack_rtl): Revert.
6301 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
6302 of SET_DECL_RTL. Set up a REG if the parm demands so.
6303 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
6304 calls into a single set_parm_rtl. Set up a temporary RTL
6305 temporarily for expand_assignment.
6306 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
6307 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
6308 (assign_bounds): Revert.
6309 (assign_parms): Revert. Use set_parm_rtl.
6310 (allocate_struct_function): Relayout result and parms of
6311 non-abstruct functions.
6312 (expand_function_start): Revert. Use set_parm_rtl. If the
6313 result is not a hard reg, create a pseudo from the promoted
6314 mode of the default def. Promote static chain mode.
6315 * tree-outof-ssa.c (remove_ssa_form): Drop unused
6316 partition_has_default_def. Set up
6317 partitions_for_parm_default_defs.
6318 (finish_out_of_ssa): Remove partition_has_default_def.
6319 Release partitions_for_parm_default_defs.
6320 * tree-outof-ssa.h (struct ssaexpand): Remove
6321 partition_has_default_def. Add
6322 partitions_for_parm_default_defs.
6323 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
6325 (build_ssa_conflict_graph): Fix conflict-detection of default
6326 defs of even unused default defs of params and results.
6327 (for_all_parms): New.
6328 (create_default_def): New.
6329 (register_default_def): New.
6330 (coalesce_with_default): New.
6331 (create_outofssa_var_map): Create default defs for all parms
6332 and results, and register their partitions. Add GIMPLE_RETURN
6333 operands as coalesce candidates with results. Add default
6334 defs of each parm or result as coalesce candidates with its
6335 other defs. Mark each result def, and each default def of
6336 parms, as used_in_copy.
6337 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
6338 with the ssa names, even anonymous ones. Drop
6339 parm_in_stack_slot_p calls. Require same signedness and
6341 (coalesce_ssa_name): Add coalesce candidates for all defs of
6342 each parm and result, even unused ones.
6343 (parm_default_def_partition_arg): New type.
6344 (set_parm_default_def_partition): New.
6345 (get_parm_default_def_partitions): New.
6346 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
6347 * tree-ssa-live.c (partition_view_init): Regard unused defs of
6348 parms and results as used.
6349 (verify_live_on_entry): Don't error out just because they're
6352 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
6354 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6355 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
6356 (output_fde): Don't output length for debug_frame on AIX.
6357 (output_call_frame_info): Don't output length for debug_frame on AIX.
6358 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
6359 HAVE_XCOFF_DWARF_EXTRAS.
6360 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
6361 HAVE_XCOFF_DWARF_EXTRAS.
6362 (output_compilation_unit_header): Don't output length on AIX.
6363 (output_pubnames): Don't output length on AIX.
6364 (output_aranges): Delete argument. Compute length locally. Don't
6365 output length on AIX.
6366 (output_line_info): Don't output length on AIX.
6367 (dwarf2out_finish): Don't compute aranges_length.
6368 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6369 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
6370 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
6371 symbol decoration for AIX.
6372 (rs6000_xcoff_debug_unwind_info): New.
6373 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
6375 (rs6000_xcoff_declare_function_name): Emit different
6376 .function pseudo-op when DWARF2_DEBUG. Don't call
6377 xcoffout_declare_function for DWARF2_DEBUG.
6378 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
6380 * config/rs6000/aix71.h: New.
6381 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
6383 * configure: Regenerate.
6384 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
6387 2015-09-26 Jeff Law <law@redhat.com>
6389 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
6391 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
6394 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
6397 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
6398 undefined behaviour.
6400 * config/cris/cris.md (asrandb): Fix left shift undefined
6402 (asrandw): Likewise.
6404 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
6407 * lra-constarints.c (match_reload): Check presence of the input pseudo
6408 in the output operand.
6410 2015-09-25 Tobias Burnus <burnus@net-b.de>
6412 * doc/invoke.texi (-fsanitize): Minor wording tweak.
6414 2015-09-25 Tobias Burnus <burnus@net-b.de>
6416 * doc/invoke.texi (-fsanitize): Update URLs.
6418 2015-09-25 Teresa Johnson <tejohnson@google.com>
6420 * opts.c (finish_options): Unset -freorder-blocks-and-partition
6421 if not using profile.
6423 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
6425 PR pretty-print/67567
6426 * pretty-print.c (pp_string): Add gcc_checking_assert.
6427 * pretty-print.h (output_buffer_append_r): Likewise.
6429 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
6432 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
6433 addr2 individually. Don't emit logical or insn if one is known to
6434 be aligned approriately.
6435 (sh_expand_cmpnstr): Likewise.
6437 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
6439 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
6440 __builtin_aarch64_fp[sc]r arguments into a register.
6442 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
6444 * config.gcc (x86_archs): Replace lakemount with lakemont.
6445 (with_cpu): Likewise.
6446 (with_arch): Likewise.
6447 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6448 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
6449 __tune_lakemount__ with __tune_lakemont__.
6450 * config/i386/i386.c (lakemount_cost): Renamed to ...
6451 (lakemont_cost): This.
6452 (m_LAKEMOUNT): Renamed to ...
6454 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
6455 (processor_target_table): Replace "lakemount" with "lakemont".
6456 (processor_alias_table): Likewise.
6457 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
6459 (ix86_adjust_cost): Likewise.
6460 (ia32_multipass_dfa_lookahead): Likewise.
6461 * config/i386/i386.h (processor_type): Likewise.
6462 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
6463 * doc/invoke.texi: Replace lakemount with lakemont. Replace
6464 Lakemount with Lakemont.
6466 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
6468 * config.gcc (x86_archs): Replace iamcu with lakemount.
6469 (with_cpu): Likewise.
6470 (with_arch): Likewise.
6471 * doc/invoke.texi: Likewise.
6472 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6473 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
6474 __tune_iamcu__ with __tune_lakemount__.
6475 * config/i386/i386.c (iamcu_cost): Renamed to ...
6476 (lakemount_cost): This.
6477 (m_IAMCU): Renamed to ...
6478 (m_LAKEMOUNT): This.
6479 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
6480 (processor_target_table): Replace "iamcu" with "lakemount".
6481 (processor_alias_table): Likewise.
6482 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
6483 PROCESSOR_LAKEMOUNT.
6484 (ix86_adjust_cost): Likewise.
6485 (ia32_multipass_dfa_lookahead): Likewise.
6486 * config/i386/i386.h (processor_type): Likewise.
6487 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
6489 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
6491 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
6492 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
6494 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
6495 (pa_expand_compare_and_swap_loop): New.
6496 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
6497 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
6498 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
6499 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
6500 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
6503 2015-09-24 Michael Collison <michael.collison@linaro.org>
6506 * read-md.c (read_name): Allow mode iterators inside angle
6507 brackets in rtl expressions.
6509 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
6512 * ira-color.c (update_allocno_cost): Add parameter.
6513 (update_costs_from_allocno): Decrease conflict cost. Pass the new
6516 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6519 * opts-common.c (prune_options): Discard all -fdiagnostics-color
6520 but the last one, which is moved to the front to be processed
6522 * opts.c (enable_warning_as_error): Reject options that do not
6525 2015-09-24 Jiong Wang <jiong.wang@arm.com>
6527 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
6529 2015-09-24 Jiong Wang <jiong.wang@arm.com>
6531 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
6532 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
6533 (aarch64_cannot_force_const_mem): Likewise.
6534 (aarch64_classify_address): Likewise.
6535 (aarch64_classify_symbolic_expression): Likewise.
6536 (aarch64_print_operand): Likewise.
6537 (aarch64_classify_symbol): Likewise.
6538 (aarch64_mov_operand_p): Likewise.
6539 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
6540 (aarch64_mov_operand): Likewise.
6542 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
6544 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
6545 for info->spe_gp_size.
6547 2015-09-24 Richard Biener <rguenther@suse.de>
6550 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
6553 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
6555 * tree-object-size.c (plus_stmt_object_size)
6556 (cond_expr_object_size): Change the formal parameters from gimple
6558 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
6559 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
6560 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
6562 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6564 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
6565 Check for ld -type pie on Solaris 11.x and 12.
6566 * configure: Regenerate.
6567 * config.in: Regenerate.
6569 * gcc.c (LD_PIE_SPEC): Allow redefinition.
6571 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
6572 (STARTFILE_SPEC): Use it.
6573 (ENDFILE_CRTEND_SPEC): Define.
6574 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
6575 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
6576 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
6577 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
6578 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
6579 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
6580 (ENDFILE_ARCH_SPEC): Define.
6581 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
6583 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6585 * configure.ac (gcc_cv_solaris_crts): New test.
6586 * configure. Regenerate.
6587 * config.in: Regenerate.
6588 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
6589 HAVE_SOLARIS_CRTS variant.
6591 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6593 * tree-inline.h (count_insns_seq): Delete prototype.
6594 (estimate_num_insns_seq): Define prototype.
6595 * tree-inline.c (count_insns_seq): Delete.
6596 (estimate_num_insns_seq): Remove static qualifier.
6597 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
6598 with estimate_num_insns_seq.
6600 2015-09-24 Richard Biener <rguenther@suse.de>
6602 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
6604 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
6605 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
6607 (ao_ref_init_from_vn_reference): Record clique and base in the
6609 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
6611 2015-09-24 Richard Biener <rguenther@suse.de>
6613 PR tree-optimization/48885
6614 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
6615 as not including any restrict tags from other pointers.
6617 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6619 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
6620 character when appending to offload_targets.
6622 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
6623 offload targets by commas, not colons.
6624 * config.in: Regenerate.
6625 * configure: Likewise.
6626 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
6627 instead of setting up the default offload targets here...
6628 (process_command): ..., do it here.
6630 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
6631 targets are separated by commas.
6632 * config.h.in: Regenerate.
6634 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6635 Nathan Sidwell <nathan@codesourcery.com>
6637 * omp-low.h (omp_reduction_init_op): Declare.
6638 * omp-low.c (omp_reduction_init_op): New, broken out of ...
6639 (omp_reduction_init): ... here. Call it.
6640 * tree-parloops.c (initialize_reductions): Use
6641 omp_reduction_init_op.
6643 2015-09-23 Richard Biener <rguenther@suse.de>
6646 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
6647 undefined overflow unless they will cancel out.
6649 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6651 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
6654 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
6657 * opts.h (write_langs): Declare.
6658 * opts-global.c (write_langs): Make it extern.
6660 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
6663 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
6664 overlapping regs when matching the pattern.
6666 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
6668 * config/aarch64/aarch64-simd.md
6669 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
6670 (aarch64_float_truncate_hi_v4sf_le): New.
6671 (aarch64_float_truncate_hi_v4sf_be): Likewise.
6673 2015-09-23 Richard Biener <rguenther@suse.de>
6675 * tree-ssa-structalias.c (intra_create_variable_infos): Build
6676 representatives for all restrict qualified pointer destinations.
6678 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6680 * config/i386/i386.md (define_code_attr mshift): New.
6681 (define_mode_iterator SWI1248_AVX512BW): Rename ...
6682 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
6684 (define_insn "*k<logic><mode>"): Use new iterator name.
6685 (define_insn "*<mshift><mode>3"): New.
6687 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
6690 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
6691 mark the block as accessible.
6693 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
6695 * function.c (thread_prologue_and_epilogue_insns): Delete
6696 orig_entry_edge argument to try_shrink_wrapping.
6697 * shrink-wrap.c (can_get_prologue): New function.
6698 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
6699 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
6700 can_get_prologue where needed. Remove code that finds a single
6701 edge for the prologue. Remove code that tests if any reg clobbered
6702 by the prologue is live on the prologue edge. Remove code that finds
6703 the new prologue edge after duplicating blocks. Make a new prologue
6705 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
6707 2015-09-22 Jeff Law <law@redhat.com>
6709 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
6712 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
6714 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
6715 -Wtemplates, -Wnamespaces): Document.
6717 2015-09-22 Tom de Vries <tom@codesourcery.com>
6719 PR tree-optimization/67671
6720 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
6721 pointer references as restrict.
6723 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6725 * config/nios2/nios2.c (nios2_legitimize_address): When handling
6726 'reg + reloc' cases, allow first operand to be non-REG, and use
6727 force_reg() to enforce address pattern.
6729 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
6732 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
6733 (define_mode_iterator VI12_AVX_AVX512F): New.
6734 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
6735 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
6736 (define_insn "*<code><mode>3"): ... Into new pattern using
6737 VI12_AVX_AVX512F iterators without masking.
6739 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6741 * config.gcc: Support "skylake-avx512".
6742 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6743 PROCESSOR_SKYLAKE_AVX512.
6744 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
6745 (processor_target_table): Add "skylake-avx512".
6746 (PTA_SKYLAKE_AVX512): Define.
6747 (ix86_option_override_internal): Add "skylake_avx512".
6748 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
6749 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
6750 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
6751 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
6752 * doc/invoke.texi (skylake-avx512): New.
6754 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6756 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
6758 (define_insn "kunpcksi"): Ditto.
6759 (define_insn "kunpckdi"): Ditto.
6761 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6763 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
6764 iterator instead of fixed modes.
6766 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6768 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6770 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
6771 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
6772 out_result. Update to support update-fetch operations.
6773 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
6774 Adjust for change to aarch64_gen_atomic_ldop.
6775 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
6776 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
6777 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
6778 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
6779 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
6781 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6783 * config/aarch64/aarch64-protos.h
6784 (aarch64_atomic_ldop_supported_p): Declare.
6785 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
6786 (enum aarch64_atomic_load_op_code): New.
6787 (aarch64_emit_atomic_load_op): New.
6788 (aarch64_gen_atomic_ldop): Update to support load-operate
6790 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
6792 (aarch64_atomic_<atomic_optab><mode>): New.
6793 (aarch64_atomic_<atomic_optab><mode>_lse): New.
6794 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
6795 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
6796 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
6798 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6800 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
6801 (UNSPECV_ATOMIC_LDOP_OR): New.
6802 (UNSPECV_ATOMIC_LDOP_BIC): New.
6803 (UNSPECV_ATOMIC_LDOP_XOR): New.
6804 (UNSPECV_ATOMIC_LDOP_PLUS): New.
6807 (aarch64_atomic_load<atomic_ldop><mode>): New.
6809 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6811 * config/aarch64/aarch64.md
6812 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
6815 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6817 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6819 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
6820 (aarch64_gen_atomic_ldop): New.
6821 (aarch64_split_atomic_op): Fix whitespace and add a comment.
6822 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
6823 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
6824 (atomic_exchange<mode>): Replace with an expander.
6825 (aarch64_atomic_exchange<mode>): New.
6826 (aarch64_atomic_exchange<mode>_lse): New.
6827 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
6828 (aarch64_atomic_swp<mode>): New.
6830 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6832 * tree-inline.c (expand_call_inline): Use inform for extra note.
6833 Do not give a note with UNKNOWN_LOCATION.
6834 Replace input_location with gimple_location (stmt).
6835 Use true/false instead of TRUE/FALSE.
6837 2015-09-22 Tom de Vries <tom@codesourcery.com>
6839 PR tree-optimization/67666
6840 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
6841 with single field non-conservative.
6843 2015-09-21 David S. Miller <davem@davemloft.net>
6847 2015-09-11 David S. Miller <davem@davemloft.net>
6849 * config/sparc/constraints.md: Make "U" constraint a real register
6851 * config/sparc/sparc.c (TARGET_LRA_P): Define.
6852 (D_MODES, DF_MODES): Add missing cast.
6853 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6854 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6855 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6857 * config/sparc/sparc.h (PROMOTE_MODE): Define.
6858 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6859 provide these insn when flag_pic.
6861 2015-09-17 David S. Miller <davem@davemloft.net>
6863 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
6865 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
6867 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6868 (HARD_REGNO_CALLER_SAVE_MODE): Define.
6869 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6870 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6871 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6872 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6873 provide when flag_pic.
6875 2015-09-21 Jeff Law <law@redhat.com>
6877 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
6880 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6882 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
6884 2015-09-21 Richard Biener <rguenther@suse.de>
6886 * passes.c (rest_of_decl_compilation): Do not call
6887 dwarf2out_early_global_decl for aliases.
6889 2015-09-21 Richard Biener <rguenther@suse.de>
6892 * dwarf2out.c (add_location_or_const_value_attribute): Remove
6893 attribute parameter. Early exit if either DW_AT_const_value
6894 or DW_AT_location are present already.
6895 (gen_variable_die): Adjust caller.
6896 (dwarf2out_late_global_decl): Likewise.
6898 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6901 * config/sh/sh.c (sh_remove_overlapping_post_inc,
6902 sh_peephole_emit_move_insn): Add new functions.
6903 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
6904 sh_peephole_emit_move_insn): Declere them.
6905 * config/sh/sh.md: Use them in various peephole2 patterns.
6907 2015-09-21 Richard Biener <rguenther@suse.de>
6910 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
6911 address with -fno-delete-null-pointer-checks.
6913 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
6915 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
6916 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
6917 (reduc_uplus_v16qi): Remove.
6919 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
6920 (reduc_<VEC_reduc_name>_v2df): Remove.
6921 (reduc_<VEC_reduc_name>_v4sf): Remove.
6922 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
6924 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
6925 gen_ function by removing * prefix.
6926 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
6928 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6931 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
6932 Print i_bound without converting it to a tree.
6934 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
6936 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
6937 operands[4] operands[5] swap with std::swap, removed tmp variable.
6938 (arm_evpc_neon_vzip): Replaced in0/in1 and
6939 out0/out1 swaps with std::swap, removed x variable.
6940 (arm_evpc_neon_vtrn): Replaced in0/int1 and
6941 out0/out1 swaos with std::swap, removed x variable.
6942 (arm_expand_vec_perm_const_1): Replaced
6943 d->op0/d->op1 swap with std::swap, removed x variable.
6944 (arm_evpc_neon_vuzp): Replaced in0/in1 and
6945 out0/out1 swaps with std::swap, removed x variable.
6947 2015-09-21 Jonathan Yong <10walls@gmail.com>
6949 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
6950 sysroot/usr/lib/32api for additional win32 libraries,
6951 fixes failing Cygwin bootstrapping.
6953 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6955 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
6957 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6960 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
6961 (*mov_t_msb_neg): Rewrite negc pattern.
6963 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6965 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
6966 immediate generation code.
6968 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6970 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
6971 redundant immediate generation code.
6973 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6975 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
6976 (AARCH64_NUM_BITMASKS): Remove.
6977 (aarch64_bitmasks_cmp): Remove.
6978 (aarch64_build_bitmask_table): Remove.
6980 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6982 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
6983 slow immediate matching loops with a faster algorithm.
6985 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6987 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
6990 2015-09-20 Jeff Law <law@redhat.com>
6992 PR tree-optimization/47679
6993 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
6994 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
6995 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
6996 (thread_through_normal_block): Use record_temporary_equivalences.
6998 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
7000 * coretypes.h (gimple): Change typedef to be a forward declaration.
7001 * gimple.h (gimple_statement_base): rename to gimple.
7002 * (all functions and types using gimple): Adjust.
7005 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
7006 David Edelsohn <dje.gcc@gmail.com>
7008 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
7009 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7010 (EH_FRAME_THROUGH_COLLECT2): Define.
7011 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7012 (ASM_OUTPUT_DWARF_PCREL): Define.
7013 (ASM_OUTPUT_DWARF_DATAREL): Define.
7015 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
7017 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
7020 2015-09-18 Jeff Law <law@redhat.com>
7022 PR tree-optimization/47679
7023 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
7025 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
7026 object. Update constructor.
7027 (pass_dominator::execute): Corresponding chagnes to declaration
7028 and initialization of avail_exprs_stack. Update constructor call
7029 for dom_opt_dom_walker object.
7030 (lookup_avail_expr, record_cond): Accept additional argument. Pass
7031 it down to children as needed.
7032 (record_equivalences_from_incoming_edge): Likewise.
7033 (eliminate_redundant_computations): Likewise.
7034 (record_equivalences_from_stmt): Likewise.
7035 (simplify_stmt_for_jump_threading): Likewise.
7036 (record_temporary_equivalences): Likewise.
7037 (optimize_stmt): Likewise.
7038 (dom_opt_dom_walker::thread_across_edge): Update access to
7039 avail_exprs_stack object and pass it to children as needed.
7040 (dom_opt_dom_walker::before_dom_children): Similarly.
7041 (dom_opt_dom_walker::after_dom_children): Similarly.
7042 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
7043 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
7044 Add avail_expr_stack argument. Pass it to children as needed.
7045 (dummy_simplify): Likewise.
7046 (simplify_control_stmt_condition): Likewise.
7047 (thread_around_empty_blocks): Likewise.
7048 (thread_through_normal_block): Likewise.
7049 (thread_across_edge): Likewise.
7050 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7051 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
7053 PR tree-optimization/47679
7054 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
7056 (dom_opt_dom_walker): New private member holding the const_and_copies
7057 object. Update constructor.
7058 (pass_dominator::execute): Corresponding changes to declaration
7059 and initialization of const_and_copies. Update constructor call
7060 for the dom_opt_dom_walker object.
7061 (record_temporary_equivalences): Accept const_and_copies argument
7062 pass it down to children as needed.
7063 (record_equality): Likewise.
7064 (record_equivalences_from_incoming_edge): Likewise.
7065 (cprop_into_successor_phis, optimize_stmt): Likewise.
7066 (eliminate_redundant_computations): Likewise.
7067 (dom_opt_dom_walker::thread_across_edge): Update access to
7068 const_and_copies object and pass it to children as needed.
7069 (dom_opt_dom_walker::before_dom_children): Similarly.
7070 (dom_opt_dom_walker::after_dom_children): Similarly.
7072 PR tree-optimization/47679
7073 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
7074 it into the avail_exprs_stack class.
7075 (pass_dominator::execute): Corresponding changes to declaration
7076 and initialization of avail_exprs. Pass avail_exprs to
7077 dump_dominator_optimization_stats.
7078 (record_cond): Extract avail_exprs from avail_exprs_stack.
7079 (lookup_avail_expr): Similarly.
7080 (htab_staticstics): Remove unnecessary prototype. Move to earlier
7082 (dump_dominator_optimization_stats): Make static and prototype.
7083 Add argument for the hash table to dump.
7084 (debug_dominator_optimization_stats): Remove.
7085 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
7087 (debug_dominator_optimization_stats): Similarly.
7088 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
7089 "void" in prototype for pop_to_marker method. Add accessor method
7090 for the underlying avail_exprs table.
7092 * tree-ssa-threadedge.c: Remove trailing whitespace.
7094 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
7096 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
7098 (pa_ldil_cint_p): Likewise.
7099 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
7100 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
7102 * config/pa/pa.md: Likewise.
7104 2015-09-18 David Malcolm <dmalcolm@redhat.com>
7106 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
7107 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
7108 (diagnostic_show_locus): Likewise.
7109 (diagnostic_print_caret_line): Likewise.
7110 * diagnostic-show-locus.c: New file.
7112 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
7114 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
7115 "back" parameter. Declare label in #if block.
7117 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
7120 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
7121 the address to a register.
7123 2015-09-18 Jeff Law <law@redhat.com>
7125 PR tree-optimization/47679
7126 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
7127 * tree-ssa-dom.c: Remove unnecessary header includes.
7128 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
7129 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
7130 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
7131 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
7132 (pass_phi_only_cprop::execute): Likewise.
7133 (make_pass_phi_only_cprop): Likewise.
7134 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
7135 uses of file scoped statics by passing the required objects
7136 as parameters wherever needed.
7138 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
7139 David Edelsohn <dje.gcc@gmail.com>
7141 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
7142 EH_FRAME_THROUGH_COLLECT2.
7143 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
7145 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
7146 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
7147 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
7148 * except.c (switch_to_exception_section): Use a read-only section
7149 even if EH_FRAME_SECTION_NAME is undefined.
7150 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
7151 * collect2.c (write_c_file_stat): Provide dbase on AIX.
7152 (scan_prog_file): Don't export __dso_handle nor
7154 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7155 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7156 (ASM_OUTPUT_DWARF_PCREL): Define.
7157 (ASM_OUTPUT_DWARF_DATAREL): Define.
7158 (EH_FRAME_THROUGH_COLLECT2): Define.
7159 (EH_FRAME_IN_DATA_SECTION): Delete.
7160 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
7161 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
7163 (rs6000_asm_output_dwarf_datarel): Declare.
7164 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
7165 (rs6000_aix_asm_output_dwarf_datarel): New.
7166 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
7167 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
7168 (EH_FRAME_THROUGH_COLLECT2): Define.
7169 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
7170 (EH_FRAME_THROUGH_COLLECT2): Define.
7171 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7172 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
7173 (EH_FRAME_THROUGH_COLLECT2): New.
7174 (ASM_OUTPUT_DWARF_DATAREL): New.
7175 * doc/tm.texi: Regenerate.
7177 2015-09-18 Richard Biener <rguenther@suse.de>
7179 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
7180 we're in early phase.
7181 (schedule_generic_params_dies_gen): Likewise.
7182 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
7183 work as possible, retaining unhandled cases.
7184 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
7185 clear out generic_type_instances at the end.
7186 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
7187 (dwarf2out_early_finish): ... here. Do most of
7188 gen_remaining_tmpl_value_param_die_attribute here.
7190 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
7192 PR tree-optimization/67283
7193 * tree-sra.c (type_consists_of_records_p): Rename to...
7194 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7195 (completely_scalarize_record): Rename to...
7196 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7197 (scalarize_elem): New.
7198 (analyze_all_variable_accesses): Follow renamings.
7200 2015-09-18 Richard Biener <rguenther@suse.de>
7202 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
7205 2015-09-18 Richard Biener <rguenther@suse.de>
7207 PR tree-optimization/66142
7208 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
7209 treat MEM[&x] and x the same.
7210 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
7211 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
7212 when we simplified sth.
7213 (vn_reference_maybe_forwprop_address): Likewise.
7214 (valueize_refs_1): When we simplified through
7215 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
7216 set valueized_anything to true.
7217 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
7218 one ref kills the other instead of just a offset-based test.
7219 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
7220 for the operand_equal_p test to compare bases and also compare
7223 2015-09-17 Christian Bruel <christian.bruel@st.com>
7225 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
7227 2015-09-17 Richard Henderson <rth@redhat.com>
7230 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
7231 pointers that encode the alignment of the object.
7233 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
7235 PR rtl-optimization/66790
7236 * df-problems.c (LIVE): Amend documentation.
7238 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
7240 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
7242 (GTFILES): Replace optabs.c with optabs-libfunc.c.
7243 * genopinit.c (main): Add an include guard to insn-opinit.h.
7244 Protect the rtx_code parts with NUM_RTX_CODE.
7245 * optabs.h: Split parts out to...
7246 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
7247 * optabs.c: Split parts out to...
7248 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
7249 * cilk-common.c: Include optabs-query.h rather than optabs.h.
7250 * fold-const.c: Likewise.
7251 * target-globals.c: Likewise.
7252 * tree-if-conv.c: Likewise.
7253 * tree-ssa-forwprop.c: Likewise.
7254 * tree-ssa-loop-prefetch.c: Likewise.
7255 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
7256 Remove unncessary include files.
7257 * tree-ssa-phiopt.c: Likewise.
7258 * tree-ssa-reassoc.c: Likewise.
7259 * tree-switch-conversion.c: Likewise.
7260 * tree-vect-data-refs.c: Likewise.
7261 * tree-vect-generic.c: Likewise.
7262 * tree-vect-loop.c: Likewise.
7263 * tree-vect-patterns.c: Likewise.
7264 * tree-vect-slp.c: Likewise.
7265 * tree-vect-stmts.c: Likewise.
7266 * tree-vrp.c: Likewise.
7267 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
7268 rather than optabs.h.
7269 * expr.c: Include optabs-tree.h.
7270 * function.c: Likewise.
7272 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
7275 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
7276 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
7277 * config/arm/arm.c: Include common/common-target.h.
7278 (use_return_insn): Return 0 if the static chain register was saved
7279 above a non-APCS frame.
7280 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
7281 (struct scratch_reg): New.
7282 (get_scratch_register_on_entry): New function.
7283 (release_scratch_register_on_entry): Likewise.
7284 (arm_emit_probe_stack_range): Likewise.
7285 (output_probe_stack_range): Likewise.
7286 (arm_expand_prologue): Factor out code dealing with the IP register
7287 for nested function and adjust it for stack checking.
7288 Invoke arm_emit_probe_stack_range if static builtin stack checking
7290 (thumb1_expand_prologue): Sorry out if static builtin stack checking
7292 (arm_expand_epilogue): Add the saved static chain register, if any, to
7293 the amount of pre-pushed registers to pop.
7294 (arm_frame_pointer_required): Return true if static stack checking is
7295 enabled and we want to catch the exception with the EABI unwinder.
7296 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
7297 (UNSPEC_PROBE_STACK_RANGE): Likewise.
7298 * config/arm/arm.md (probe_stack): New insn.
7299 (probe_stack_range): Likewise.
7301 2015-09-17 Richard Biener <rguenther@suse.de>
7303 * genmatch.c (parser::parse_expr): Improve error message
7304 for mis-placed flags.
7306 2015-09-17 Richard Biener <rguenther@suse.de>
7308 * passes.c (rest_of_decl_compilation): Always call early_global_decl
7309 debug hook when we created a varpool node.
7310 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
7311 dwarf2out_early_global_decl, when not just add location or
7312 value attributes to existing DIEs.
7314 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
7316 * config/aarch64/aarch64.md (copysigndf3): New.
7317 (copysignsf3): Likewise.
7319 2015-09-17 David S. Miller <davem@davemloft.net>
7321 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
7322 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
7323 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
7324 (HARD_REGNO_CALLER_SAVE_MODE): Define.
7325 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
7326 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
7327 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
7328 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
7329 provide when flag_pic.
7331 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
7333 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
7334 object_allocator change.
7336 2015-09-17 Bin Cheng <bin.cheng@arm.com>
7338 PR tree-optimization/66388
7339 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
7340 (dump_iv): Dump no_overflow information.
7341 (alloc_iv): Initialize new field for struct iv.
7342 (mark_bivs): Count number of no_overflow bivs.
7343 (find_deriving_biv_for_expr, record_biv_for_address_use): New
7345 (idx_find_step): Call new functions above.
7346 (add_candidate_1, add_candidate): New paramter.
7347 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
7348 (get_computation_aff): Simplify convertion of cand for BIV.
7349 (get_computation_cost_at): Step cand's base if necessary.
7351 2015-09-17 Bin Cheng <bin.cheng@arm.com>
7353 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
7355 (tree_simplify_using_condition): Ditto.
7356 (simplify_using_initial_conditions): Ditto.
7357 (loop_exits_before_overflow): Pass new argument to function
7358 simplify_using_initial_conditions. Remove case for type conversions
7360 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
7362 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
7363 in iv base using loop initial conditions.
7365 2015-09-16 Jeff Law <law@redhat.com>
7367 PR tree-optimization/47679
7368 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
7369 (free_all_edge_infos): Use it.
7370 (allocate_edge_info): Free preexisting edge info data.
7371 (pass_dominator::execute): Set up initial edge info structures.
7372 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
7374 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
7375 If non-null, then push/pop markers appropriately.
7376 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7377 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
7380 2015-09-16 James Bowman <james.bowman@ftdichip.com>
7382 * config/ft32/ft32.c: Fix the memory address space predicate.
7384 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
7387 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
7388 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7390 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7392 * toplev.h (check_global_declaration): Remove declaration.
7393 * toplev.c (check_global_declaration): Move to ...
7394 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
7395 (analyze_functions): Update call.
7397 2015-09-16 David S. Miller <davem@davemloft.net>
7399 * lra-constraints.c (simplify_operand_subreg): Do not assume that
7400 lowpart of a SUBREG has offset zero.
7402 2015-09-16 Jeff Law <law@redhat.com>
7404 PR tree-optimization/47679
7405 * tree-ssa-dom.c (enum expr_kind): Moved from here to
7406 tree-ssa-scopedtables.h.
7407 (struct hashable_expr, class expr_hash_elt): Likewise.
7408 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
7409 Move associated methods into tree-ssa-scopedtables.c.
7410 (avail_expr_hash, initialize_expr_from_cond): Similarly.
7411 (hashable_expr_equal_p, add_expr_commutative): Likewise.
7412 (add_hashable_expr): Likewise.
7413 (record_cond): Delete element directly.
7414 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
7415 private copy ctor and assignment operator methods.
7416 (expr_elt_hasher): Inline trivial methods.
7417 (initialize_expr_from_cond): Prototype.
7418 * tree-ssa-scopedtables.c: Add necessary includes, functions and
7419 methods that were previously in tree-ssa-dom.c. Improve various
7422 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
7424 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
7426 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
7429 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7432 2015-09-16 Richard Biener <rguenther@suse.de>
7435 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
7436 location of possibly shared trees.
7438 2015-09-16 Richard Biener <rguenther@suse.de>
7441 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
7443 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
7445 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
7446 offset and size computations instead of HOST_WIDE_INT.
7448 2015-09-16 Richard Biener <rguenther@suse.de>
7451 * fold-const.c (extract_muldiv_1): Properly extend multiplication
7452 result before builting a tree via wide_int_to_tree.
7454 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
7456 * Makefile.in: Add memory-block.cc
7457 (pool_allocator::initialize): Use fixed block size.
7458 (pool_allocator::release): Use memory_block_pool.
7459 (pool_allocator::allocate): Likewise.
7460 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
7462 * cfg.c (initialize_original_copy_tables): Likewise.
7463 * cselib.c (elt_list_pool, elt_loc_list_pool,
7464 cselib_val_pool): Likewise.
7465 * df-problems.c (df_chain_alloc): Likewise.
7466 * df-scan.c (df_scan_alloc): Likewise.
7467 * dse.c (cse_store_info_pool, rtx_store_info_pool,
7468 read_info_type_pool, insn_info_type_pool, bb_info_pool,
7469 group_info_pool, deferred_change_pool): Likewise.
7470 * et-forest.c (et_nodes, et_occurrences): Likewise.
7471 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
7472 ipcp_agg_lattice_pool): Likewise.
7473 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
7474 * ipa-profile.c (histogram_pool): Likewise.
7475 * ipa-prop.c (ipa_refdesc_pool): Likewise.
7476 * ira-build.c (live_range_pool, allocno_pool, object_pool,
7477 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
7478 * ira-color.c (update_cost_record_pool): Likewise.
7479 * lra-lives.c (lra_live_range_pool): Likewise.
7480 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
7481 * memory-block.cc: New file.
7482 * memory-block.h: New file.
7483 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
7484 * sched-deps.c (sched_deps_init): Likewise.
7485 * sel-sched-ir.c (sched_lists_pool): Likewise.
7486 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
7487 * tree-sra.c (access_pool): Likewise.
7488 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7489 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
7490 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
7491 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7492 * tree-ssa-strlen.c (strinfo_pool): Likewise.
7493 * tree-ssa-structalias.c (variable_info_pool): Likewise.
7494 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
7495 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
7497 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
7499 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
7501 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
7504 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
7506 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
7507 to pass TLS call argument, according to current ABI.
7508 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
7509 callx0 for TLS call, according to current ABI.
7511 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7513 * tree-eh.c (lower_try_finally_dup_block): Clear location information
7514 on stack restore statements.
7515 (decide_copy_try_finally): Do not consider a stack restore statement as
7516 coming from sources.
7518 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
7520 * config/alpha/alpha.c (alpha_expand_block_clear): Use
7521 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
7523 2015-09-15 Jeff Law <law@redhat.com>
7525 PR tree-optimization/47679
7526 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
7527 methods and private members.
7528 (avail_exprs_stack): Similarly. Change type of global
7529 from a pair of expr_hash_elt_t to the new class.
7530 (expr_elt_hasher::hash): Corresponding changes.
7531 (expr_elt_hasher::equal): Similarly.
7532 (avail_expr_hash): Similarly.
7533 (pass_dominator::execute): Similarly.
7534 (dom_opt_dom_walker::thread_across_edge): Similarly.
7535 (record_cond): Similarly.
7536 (dom_opt_dom_walker::before_dom_children): Similarly.
7537 (dom_opt_dom_walker::after_dom_children): Similarly.
7538 (lookup_avail_expr): Likewise.
7539 (initialize_hash_element): Now a expr_hash_elt constructor.
7540 (initialize_hash_element_from_expr): Similarly.
7541 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
7542 (free_expr_hash_elt): Call dtor for the element.
7543 (remove_local_expressions_from_table): Now the "pop_to_marker"
7544 method in the available_exprs_stack class.
7545 (avail_expr_stack::record_expr): Method factored out.
7546 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
7548 (hashable_expr_equal_p): Fix formatting.
7550 2015-09-15 David Malcolm <dmalcolm@redhat.com>
7552 * input.h (location_get_source_line): Drop "expanded_location"
7553 param in favor of a file and line number.
7554 * input.c (location_get_source_line): Likewise.
7555 (dump_location_info): Update for change in signature of
7556 location_get_source_line.
7557 * diagnostic.c (diagnostic_print_caret_line): Likewise.
7559 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7561 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
7562 Bump to 4KB for SJLJ exceptions.
7563 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
7564 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
7565 * doc/tm.texi: Regenerate.
7567 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7569 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
7570 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
7573 2015-09-15 Richard Biener <rguenther@suse.de>
7575 PR tree-optimization/67470
7576 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
7577 structure for PHI hoisting by inserting a forwarder block
7580 2015-09-15 Christian Bruel <christian.bruel@st.com>
7582 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
7583 (arm_option_print): New function.
7585 2015-09-15 Christian Bruel <christian.bruel@st.com>
7588 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
7589 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
7590 Remove flags parameter.
7591 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
7592 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
7593 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
7594 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
7595 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
7596 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
7597 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
7598 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
7600 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7602 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
7604 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
7605 AARCH64_VALID_SIMD_DREG_MODE.
7607 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7609 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
7610 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
7611 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
7612 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
7613 aarch64_ld4_lane<mode>): Combine together, making...
7614 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7615 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7616 aarch64_st4_lane<mode>): Combine together, making...
7617 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7618 * config/aarch64/iterators.md (nregs): Add comment.
7620 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7622 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
7623 Change operand mode from <V_TWO_ELEM> to BLK.
7624 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
7625 (aarch64_vec_store_lanesoi_lane<mode): Likewise
7626 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7627 (aarch64_ld2_lane<mode>): Likewise.
7628 (aarch64_st2_lane<VQ:mode>): Likewise.
7629 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
7631 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7633 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
7634 Change operand mode from <V_FOUR_ELEM> to BLK.
7635 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
7636 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
7637 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7638 (aarch64_ld4_lane<mode>): Likewise.
7639 (aarch64_st4_lane<mode>): Likewise.
7640 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
7642 2015-09-15 Richard Biener <rguenther@suse.de>
7645 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
7646 transfer EH info from old to new stmt.
7647 (replace_call_with_value): Likewise.
7648 (replace_call_with_call_and_fold): Likewise.
7649 (gimple_fold_builtin_memory_op): Likewise.
7650 (gimple_fold_builtin_memset): Likewise.
7651 (gimple_fold_builtin_stpcpy): Likewise.
7652 (gimple_fold_call): Likewise.
7654 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7656 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
7658 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
7659 (aarch64_simd_intEI_type_node): Likewise.
7660 (aarch64_simd_builtin_std_type): Remove EImode case.
7661 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
7662 * config/aarch64/aarch64-modes.def: Remove EImode.
7664 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7666 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
7667 Change operand mode from <V_THREE_ELEM> to BLK.
7668 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
7669 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
7670 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7671 (aarch64_ld3_lane<mode>): Likewise.
7672 (aarch64_st3_lane<mode>): Likewise.
7673 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
7675 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7677 * config/aarch64/aarch64-simd.md
7678 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
7679 Change all TImode operands to BLKmode.
7680 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
7681 Change all EImode operands to BLKmode.
7682 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
7683 Change all OImode operands to BLKmode.
7685 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
7686 and call set_mem_size.
7687 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
7689 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
7691 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7693 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
7695 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
7697 (vec_store_lanesci_lane<mode>): Rename to...
7698 (aarch64_vec_store_lanesci_lane<mode>): ...this.
7700 (vec_store_lanesxi_lane<mode>): Rename to...
7701 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
7703 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7704 aarch64_st4_lane<mode>): Follow renaming.
7706 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7708 * config/s390/s390.c (s390_const_operand_ok): Add missing
7711 2015-09-15 Richard Biener <rguenther@suse.de>
7714 * lto-streamer.h (lto_location_cache::current_sysp): Properly
7716 * lto-streamer-out.c (clear_line_info): Likewise.
7718 2015-09-15 Richard Biener <rguenther@suse.de>
7720 * doc/match-and-simplify.texi: Fix wording.
7722 2015-09-15 Bin Cheng <bin.cheng@arm.com>
7724 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
7725 unnecessary type conversion in op1.
7727 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
7729 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
7730 (dup_block_and_redirect): Delete function.
7731 (can_dup_for_shrink_wrapping): New function.
7732 (fix_fake_fallthrough_edge): New function.
7733 (try_shrink_wrapping): Rewrite function.
7734 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
7736 2015-09-14 Rich Felker <dalias@libc.org>
7738 * configure.ac: Change target pattern for sh TLS support
7739 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
7740 * configure: Regenerate.
7742 2015-09-14 Jeff Law <law@redhat.com>
7744 PR tree-optimization/47679
7745 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
7746 type rather than void *.
7748 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7751 * diagnostic.c (diagnostic_initialize): Do not set
7752 some_warnings_are_errors.
7753 (diagnostic_finish): Use DK_WERROR count instead.
7754 (diagnostic_report_diagnostic): Do not set
7755 some_warnings_are_errors.
7756 * diagnostic.h (struct diagnostic_context): Remove
7757 some_warnings_are_errors.
7759 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
7761 * config/sparc/predicates.md (const_all_ones_operand): Use
7762 CONSTM1_RTX to simplify definition.
7764 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
7767 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
7770 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
7772 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
7773 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
7774 OPT_fshow_column to handled saved option cases.
7775 (append_compiler_options): Do not skip the above added options.
7777 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7780 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
7781 nopcrelative_literal_loads.
7782 (aarch64_classify_address): Likewise.
7783 (aarch64_constant_pool_reload_icode): Define.
7784 (aarch64_secondary_reload): Handle secondary reloads for
7786 (aarch64_override_options): Handle nopcrelative_literal_loads.
7787 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
7788 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7790 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7791 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
7792 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
7794 * doc/invoke.texi (mpc-relative-literal-loads): Document.
7796 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
7799 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
7800 sync_compare_and_swap_optab libcall to target_oval.
7802 2015-09-14 Marek Polacek <polacek@redhat.com>
7804 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
7806 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
7808 2015-09-11 Mark Wielaard <mjw@redhat.com>
7811 * toplev.c (check_global_declaration): Check and use
7812 warn_unused_const_variable.
7813 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
7814 (-Wunused-variable): Remove non-constant. For C implies
7815 -Wunused-const-variable.
7816 (-Wunused-const-variable): New.
7818 2015-09-14 Richard Biener <rguenther@suse.de>
7820 * doc/match-and-simplify.texi: Update for changed syntax
7821 of inner ifs and the new switch expression.
7823 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
7825 * config/i386/haswell.md: New file describing Haswell pipeline.
7826 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
7827 haswell-like processors.
7828 (ix86_reassociation_width): Increase reassociation width for 64-bit
7829 Haswell processor family.
7830 * config/i386/i386.md: Introduce haswell cpu and include new md file.
7832 2015-09-14 Richard Biener <rguenther@suse.de>
7834 * doc/match-and-simplify.texi: Fixup some formatting issues
7835 and document the 's' flag.
7837 2015-09-13 Olivier Hainque <hainque@adacore.com>
7838 Eric Botcazou <ebotcazou@adacore.com>
7840 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
7841 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
7842 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
7843 (TARGET_CPU_gr5): Likewise.
7844 (TARGET_CPU_gr6): Likewise.
7845 (MULTILIB_DEFAULTS): Likewise.
7846 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
7847 for mcpu=gr5 and mcpu=gr6.
7848 (MULTILIB_DIRNAMES): Adjust accordingly.
7850 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7852 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
7853 (mem_ref_p): Likewise.
7854 (outermost_indep_loop): Adjust.
7855 (mem_ref_in_stmt): Likewise.
7856 (determine_max_movement): Likewise.
7857 (mem_ref_alloc): Likewise.
7858 (record_mem_ref_loc): Likewise.
7859 (set_ref_stored_in_loop): Likewise.
7860 (mark_ref_stored): Likewise.
7861 (gather_mem_refs_stmt): Likewise.
7862 (mem_refs_may_alias_p): Likewise.
7863 (for_all_locs_in_loop): Likewise.
7864 (struct rewrite_mem_ref_loc): Likewise.
7865 (rewrite_mem_refs): Likewise.
7866 (struct first_mem_ref_loc_1): Likewise.
7867 (first_mem_ref_loc): Likewise.
7868 (struct sm_set_flag_if_changed): Likewise.
7869 (execute_sm_if_changed_flag_set): Likewise.
7870 (execute_sm): Likewise.
7871 (hoist_memory_references):
7872 (struct ref_always_accessed): Likewise.
7873 (ref_always_accessed_p): Likewise.
7874 (refs_independent_p): Likewise.
7875 (record_dep_loop): Likewise.
7876 (ref_indep_loop_p_1): Likewise.
7877 (ref_indep_loop_p_2): Likewise.
7878 (ref_indep_loop_p): Likewise.
7879 (can_sm_ref_p): Likewise.
7880 (find_refs_for_sm): Likewise.
7881 (tree_ssa_lim_finalize): Likewise.
7883 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7885 * dwarf2out.c (dw_attr_ref): Remove typedef.
7886 (dw_line_info_ref): Likewise.
7887 (pubname_ref): Likewise.
7888 (dw_ranges_ref): Likewise.
7889 (dw_ranges_by_label_ref): Likewise.
7890 (comdat_type_node_ref): Likewise.
7892 (get_AT_low_pc): Likewise.
7893 (get_AT_hi_pc): Likewise.
7894 (get_AT_string): Likewise.
7895 (get_AT_flag): Likewise.
7896 (get_AT_unsigned): Likewise.
7897 (get_AT_ref): Likewise.
7898 (get_AT_file): Likewise.
7899 (remove_AT): Likewise.
7900 (print_die): Likewise.
7901 (check_die): Likewise.
7902 (die_checksum): Likewise.
7903 (attr_checksum_ordered): Likewise.
7904 (struct checksum_attributes): Likewise.
7905 (collect_checksum_attributes): Likewise.
7906 (die_checksum_ordered): Likewise.
7907 (same_die_p): Likewise.
7908 (is_declaration_die): Likewise.
7909 (clone_die): Likewise.
7910 (clone_as_declaration): Likewise.
7911 (copy_declaration_context): Likewise.
7912 (break_out_comdat_types): Likewise.
7913 (copy_decls_walk): Likewise.
7914 (output_location_lists): Likewise.
7915 (external_ref_hasher::hash): Likewise.
7916 (optimize_external_refs_1): Likewise.
7917 (build_abbrev_table): Likewise.
7918 (size_of_die): Likewise.
7919 (unmark_all_dies): Likewise.
7920 (size_of_pubnames): Likewise.
7921 (output_die_abbrevs): Likewise.
7922 (output_die): Likewise.
7923 (output_pubnames): Likewise.
7924 (add_ranges_num): Likewise.
7925 (add_ranges_by_labels): Likewise.
7926 (add_high_low_attributes): Likewise.
7927 (gen_producer_string): Likewise.
7928 (dwarf2out_set_name): Likewise.
7929 (new_line_info_table): Likewise.
7930 (prune_unused_types_walk_attribs): Likewise.
7931 (prune_unused_types_update_strings): Likewise.
7932 (prune_unused_types): Likewise.
7933 (resolve_addr): Likewise.
7934 (optimize_location_lists_1): Likewise.
7935 (index_location_lists): Likewise.
7936 (dwarf2out_finish): Likewise.
7938 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7940 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
7942 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7944 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
7945 (dump_asserts_for): Adjust.
7946 (register_new_assert_for): Likewise.
7947 (process_assert_insertions): Likewise.
7948 (insert_range_assertions): Likewise.
7950 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7952 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
7954 (new_temp_expr_table): Adjust.
7955 (free_temp_expr_table): Likewise.
7956 (version_to_be_replaced_p): Likewise.
7957 (make_dependent_on_partition): Likewise.
7958 (add_to_partition_kill_list): Likewise.
7959 (remove_from_partition_kill_list): Likewise.
7960 (add_dependence): Likewise.
7961 (finished_with_expr): Likewise.
7962 (process_replaceable): Likewise.
7963 (kill_expr): Likewise.
7964 (kill_virtual_exprs): Likewise.
7965 (mark_replaceable): Likewise.
7966 (find_replaceable_in_bb): Likewise.
7967 (find_replaceable_exprs): Likewise.
7968 (debug_ter): Likewise.
7970 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7972 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
7973 (struct btr_user): Rename from btr_user_s.
7974 (struct btr_def): Rename from btr_def_s.
7975 (find_btr_def_group): Adjust.
7976 (add_btr_def): Likewise.
7977 (new_btr_user): Likewise.
7978 (note_other_use_this_block): Likewise.
7979 (compute_defs_uses_and_gen): Likewise.
7980 (link_btr_uses): Likewise.
7981 (build_btr_def_use_webs): Likewise.
7982 (block_at_edge_of_live_range_p): Likewise.
7983 (btr_def_live_range): Likewise.
7984 (combine_btr_defs): Likewise.
7985 (move_btr_def): Likewise.
7986 (migrate_btr_def): Likewise.
7987 (migrate_btr_defs): Likewise.
7989 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7991 * var-tracking.c (shared_hash_def): Rename to shared_hash.
7992 (shared_hash): Remove typedef.
7993 (struct dataflow_set): Adjust.
7994 (shared_hash_unshare): Likewise.
7995 (dataflow_set_merge): Likewise.
7996 (vt_initialize): Likewise.
7997 (vt_finalize): Likewise.
7999 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8001 * var-tracking.c (struct location_chain): Rename from
8003 (struct variable_part): Adjust.
8004 (variable_htab_free): Likewise.
8005 (unshare_variable): Likewise.
8006 (get_init_value): Likewise.
8007 (get_addr_from_local_cache): Likewise.
8008 (drop_overlapping_mem_locs): Likewise.
8009 (val_reset): Likewise.
8010 (struct variable_union_info): Likewise.
8011 (variable_union): Likewise.
8012 (find_loc_in_1pdv): Likewise.
8013 (insert_into_intersection): Likewise.
8014 (intersect_loc_chains): Likewise.
8015 (canonicalize_loc_order_check): Likewise.
8016 (canonicalize_values_mark): Likewise.
8017 (canonicalize_values_star): Likewise.
8018 (canonicalize_vars_star): Likewise.
8019 (variable_merge_over_cur): Likewise.
8020 (remove_duplicate_values): Likewise.
8021 (variable_post_merge_new_vals): Likewise.
8022 (variable_post_merge_perm_vals): Likewise.
8023 (find_mem_expr_in_1pdv): Likewise.
8024 (dataflow_set_preserve_mem_locs): Likewise.
8025 (dataflow_set_remove_mem_locs): Likewise.
8026 (variable_part_different_p): Likewise.
8027 (onepart_variable_different_p): Likewise.
8028 (find_src_set_src): Likewise.
8029 (dump_var): Likewise.
8030 (set_slot_part): Likewise.
8031 (clobber_slot_part): Likewise.
8032 (delete_slot_part): Likewise.
8033 (vt_expand_var_loc_chain): Likewise.
8034 (emit_note_insn_var_location): Likewise.
8035 (vt_finalize): Likewise.
8037 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8039 * dse.c (store_info_t): Remove typedef.
8040 (group_info_t): Likewise.
8041 (const_group_info_t): Likewise.
8042 (deferred_change_t): Likewise.
8043 (get_group_info): Adjust.
8044 (free_store_info): Likewise.
8045 (canon_address): Likewise.
8046 (clear_rhs_from_active_local_stores): Likewise.
8047 (record_store): Likewise.
8048 (replace_read): Likewise.
8049 (check_mem_read_rtx): Likewise.
8050 (scan_insn): Likewise.
8051 (remove_useless_values): Likewise.
8052 (dse_step1): Likewise.
8053 (dse_step2_init): Likewise.
8054 (dse_step2_nospill): Likewise.
8055 (scan_stores_nospill): Likewise.
8056 (scan_reads_nospill): Likewise.
8057 (dse_step3_exit_block_scan): Likewise.
8058 (dse_step3): Likewise.
8059 (dse_step5_nospill): Likewise.
8060 (dse_step6): Likewise.
8062 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8064 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
8065 (alias_set_entry): Remove typedef.
8066 (alias_set_subset_of): Adjust.
8067 (alias_sets_conflict_p): Likewise.
8068 (init_alias_set_entry): Likewise.
8069 (get_alias_set): Likewise.
8070 (new_alias_set): Likewise.
8071 (record_alias_subset): Likewise.
8073 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
8075 * doc/install.texi (Downloading the source): Mark up
8076 contrib/download_prerequisites properly and drop leading "./".
8078 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8080 * config/arc/arc.h: Remove define of STRUCT_VALUE.
8081 * config/lm32/lm32.h: Likewise.
8082 * config/mep/mep.h: Likewise.
8083 * config/visium/visium.h: Likewise.
8084 * system.h: Poison STRUCT_VALUE macro.
8086 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
8088 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
8089 CONSTANT_P operands.
8091 2015-09-11 David S. Miller <davem@davemloft.net>
8093 * config/sparc/constraints.md: Make "U" constraint a real register
8095 * config/sparc/sparc.c (TARGET_LRA_P): Define.
8096 (D_MODES, DF_MODES): Add missing cast.
8097 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8098 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8099 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8101 * config/sparc/sparc.h (PROMOTE_MODE): Define.
8102 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8103 provide these insn when flag_pic.
8105 2015-09-11 Jeff Law <law@redhat.com>
8107 PR tree-optimization/47679
8108 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
8109 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
8110 member with m_. Update inline member functions as necessary. Add
8112 * tree-ssa-scopedtables.c: Update const_and_copies's member
8113 functions to use m_ prefix to access the stack.
8115 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
8117 * graphite-optimize-isl.c (disable_tiling): Remove.
8118 (get_schedule_for_band): Do not use disable_tiling.
8119 (get_prevector_map): Delete function.
8120 (enable_polly_vector): Remove.
8121 (get_schedule_for_band_list): Remove dead code.
8123 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
8125 * graphite-optimize-isl.c (get_tile_map): Refactor.
8126 (get_schedule_for_band): Same.
8127 (getScheduleForBand): Same.
8128 (get_prevector_map): Same.
8129 (get_schedule_for_band_list): Same.
8130 (get_schedule_map): Same.
8131 (get_single_map): Same.
8132 (apply_schedule_map_to_scop): Same.
8133 (optimize_isl): Same.
8135 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8138 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
8140 * config/aarch64/iterators.md (GPF_TF_F16): New.
8143 2015-09-10 Nathan Sidwell <nathan@acm.org>
8145 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
8146 (nvptx_reorg): Adjust comments.
8148 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
8151 * configure.ac: Check if setenv and unsetenv are declared.
8152 * configure: Rebuild.
8153 * config.in: Rebuild.
8154 * system.h: Declare setenv and unsetenv if not declared.
8156 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8158 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
8159 commentary to simplify permute mask adjustment equation.
8160 (special_handling_values): Add SH_VPERM.
8161 (const_load_sequence_p): New function.
8162 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
8163 the mask loaded from the constant pool.
8164 (adjust_vperm): New function.
8165 (handle_special_swappables): Call adjust_vperm.
8166 (dump_swap_insn_table): Handle SH_VPERM.
8168 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
8170 * shrink-wrap.c (requires_stack_frame_p): Remove static.
8171 * shrink-wrap.h (requires_stack_frame_p): Put back.
8173 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
8175 * reload1.c (elimination_costs_in_insn): Locally turn
8176 -Wmaybe-uninitialized into a warning.
8178 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
8180 * shrink-wrap.c (requires_stack_frame_p): Make static.
8181 (prepare_shrink_wrap): Likewise.
8182 (dup_block_and_redirect): Likewise.
8183 * shrink-wrap.h: Remove declarations of those functions.
8185 2015-09-10 Mark Wielaard <mjw@redhat.com>
8187 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
8189 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
8192 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
8193 missing simplify_gen_subreg.
8195 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8197 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
8198 the vector element is bigger than 64 bit.
8200 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8202 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
8203 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
8205 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8207 * config/s390/s390.c: Add V1TImode to constant pool modes.
8209 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8212 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
8213 predicate. Set predicable_short_it attr to "no".
8215 2015-09-10 Jiong Wang <jiong.wang@arm.com>
8217 PR rtl-optimization/67421
8218 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
8219 left wide shift tranformation.
8221 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
8223 * common/config/arc/arc-common.c: Remove references to A5.
8224 * config/arc/arc-opts.h: Likewise.
8225 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
8226 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
8227 * config/arc/t-arc-newlib: Likewise.
8229 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
8231 * config/arc/arc.md (length): Fix attribute length for conditional
8232 executed instructions with long immediate.
8234 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8236 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
8237 type for second alternative.
8239 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
8241 * doc/invoke.texi (Downloading GCC): Mention
8242 contrib/download_prerequisites script.
8244 2015-09-10 Jakub Jelinek <jakub@redhat.com>
8247 * gimplify.c (gimplify_omp_for): If inner stmt is not found
8248 for combined loop, assert seen_error () and return GS_ERROR.
8251 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
8252 if decl is already in outer->variables.
8255 * gimplify.c (gimplify_scan_omp_clauses): Instead of
8256 asserting that decl is not specified in octx->variables,
8257 break out of the loop if it is.
8260 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
8261 iterator is not explicitly determined, but is defined inside
8262 of the combined workshare region, handle it like if it has
8263 DECL_EXPR in OMP_FOR_PRE_BODY.
8265 2015-09-09 Nathan Sidwell <nathan@acm.org>
8267 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
8268 (*cmp<mode>): Add assembler spacing.
8269 (setcc_int<mode>, set_cc_float<mode>): Likewise.
8270 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
8272 (write_func_decl_from_insn): Refactor argument loops & comma emission.
8273 (nvptx_expand_call): Likewise.
8274 (nvptx_output_call_insn): Likewise.
8275 (nvptx_reorg_subreg): Add spacing.
8277 2015-09-09 Marek Polacek <polacek@redhat.com>
8280 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
8283 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
8286 * doc/invoke.texi ([Wsubobject-linkage]): Document.
8288 2015-09-09 Tom de Vries <tom@codesourcery.com>
8290 * params-list.h: Add missing copyright notice.
8292 2015-09-09 Nathan Sidwell <nathan@acm.org>
8294 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
8295 sel_truesi, not andsi.
8297 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8299 * config/arm/arm.md (*subsi3_compare0): Rename to...
8300 (subsi3_compare0): ... This.
8301 (modsi3): New define_expand.
8302 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
8303 when operand is power of 2.
8305 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8307 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
8308 (*neg<mode>2_compare0): Rename to...
8309 (neg<mode>2_compare0): ... This.
8310 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
8311 Move check for speed inside the if-then-elses. Reflect
8312 CSNEG sequence in MOD by power of 2 case.
8314 2015-09-09 Alan Modra <amodra@gmail.com>
8317 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
8318 reload replacement for PRE_MODIFY address reg.
8320 2015-09-09 Sebastian Pop <s.pop@samsung.com>
8322 PR tree-optimization/53852
8323 * config.in: Regenerate.
8324 * configure: Regenerate.
8325 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
8326 * graphite-optimize-isl.c (optimize_isl): Stop computation when
8327 PARAM_MAX_ISL_OPERATIONS is reached.
8328 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
8329 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
8330 result equal to isl_stat_ok as the status now can be isl_error_quota.
8331 (subtract_commutative_associative_deps): Same.
8332 (compute_deps): Same.
8334 2015-09-08 Aditya Kumar <hiraditya@msn.com>
8335 Sebastian Pop <s.pop@samsung.com>
8337 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8338 Return the parameter if it was saved in corresponding
8339 parameter_rename_map of the region.
8340 (copy_def): Copy def from sese region to the newly created region.
8341 (copy_internal_parameters): Copy all the internal parameters defined
8342 within a region to the newly created region.
8343 (graphite_regenerate_ast_isl): Copy parameters to the new region before
8344 translating isl to gimple.
8345 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
8346 the loop-nest does not have any data-references.
8347 (build_graphite_scops): Create a scop only when there is at least one
8349 (contains_only_close_phi_nodes): Deleted.
8350 (print_graphite_scop_statistics): Deleted
8351 (print_graphite_statistics): Deleted
8352 (limit_scops): Deleted.
8353 (build_scops): Removed call to limit_scops.
8354 * sese.c (new_sese): Construct.
8355 (free_sese): Destruct.
8356 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
8358 (set_rename): Pass sese region so that parameters inside the region can
8359 be added to its parameter_rename_map.
8360 (rename_uses): Pass sese region.
8361 (graphite_copy_stmts_from_block): Do not copy parameters that have been
8362 generated in the header of the scop. For each SSA_NAME in the
8363 parameter_rename_map rename its usage.
8364 (invariant_in_sese_p_rec): Return false if tree t is defined outside
8366 (scalar_evolution_in_region): If the tree t is invariant just return t.
8367 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
8368 struct sese to keep track of all the parameters which need renaming.
8369 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
8371 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
8373 2015-09-08 Tom de Vries <tom@codesourcery.com>
8375 * Makefile.in (generated_files): Add params.list.
8376 (params.list, s-params.list): Add rule.
8377 * params.h (enum compiler_param): Include params-list.h. Move define
8378 DEFPARAM, include params.def and undef DEFPARAM ...
8379 * params-list.h: ... here. New file.
8381 2015-09-08 David Malcolm <dmalcolm@redhat.com>
8383 * pretty-print.h (printer_fn): Fix typo in comment.
8385 2015-09-07 Jeff Law <law@redhat.com>
8387 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
8389 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8391 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
8392 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
8393 (arm_neon_fp16_hw): New.
8395 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8397 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
8398 UNITS_PER_WORD >= 4.
8400 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8402 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
8403 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
8404 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
8405 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
8406 (aarch64_float_extend_lo_v2df): Rename to...
8407 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
8409 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
8410 (float_extend_lo): Add v4sf.
8412 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
8413 * config/aarch64/iterators.md (VQ_HSF): New iterator.
8414 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
8415 (Vwide): New mode_attr.
8417 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8419 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
8420 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
8421 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
8422 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
8423 V4HF and V8HF variants to iterator.
8425 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
8427 * config/aarch64/iterators.md (VDQF_F16): New.
8428 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
8430 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8432 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
8433 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8434 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
8435 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
8436 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
8437 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8438 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
8439 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
8440 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
8441 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
8442 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
8443 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8444 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
8445 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
8446 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
8447 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
8448 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
8449 vld1q_dup_f16): New.
8451 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8453 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
8454 Reparameterize to...
8455 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
8456 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
8457 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
8459 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
8461 (float_truncate_lo_): Use BUILTIN_VDF iterator.
8463 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
8465 * config/aarch64/iterators.md (VDF, Vdtype): New.
8466 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
8468 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8470 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
8471 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
8472 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
8473 Add __builtin_aarch64_simd_hf.
8474 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
8475 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
8476 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
8477 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
8478 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
8479 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
8480 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
8481 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
8482 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
8484 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
8485 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
8486 (VDC, Vdbl): Add V4HF.
8488 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8490 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
8491 V4HFmode and V8HFmode.
8492 (aarch64_split_simd_move): Add case for V8HFmode.
8493 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
8494 (aarch64_simd_builtin_std_type): Handle HFmode.
8495 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
8497 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
8498 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
8499 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
8501 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
8504 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
8505 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
8507 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
8508 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
8509 vst1q_lane_f16): New.
8510 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
8511 (VALLDI_F16, VALL_F16): New.
8512 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
8513 Add cases for V4HF and V8HF.
8514 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
8516 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8518 * config/arm/arm-builtins.c (VAR11, VAR12): New.
8519 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
8520 vld4_dup): Add v4hf variant.
8521 (vget_high, vget_low): Add v8hf variant.
8522 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
8523 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
8524 v4hf and v8hf variants.
8526 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
8528 (V_DOUBLE): Add case for V4HF.
8530 (V_HALF): Add case for V8HF.
8531 (VDQX): Add V4HF, V8HF.
8532 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
8533 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
8535 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
8536 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
8537 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
8538 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
8539 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
8540 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
8541 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
8542 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
8543 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
8545 (neon_vcreate, neon_vreinterpretv8qi<mode>,
8546 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
8547 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
8548 Change VDX to VD_RE.
8550 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
8551 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
8552 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
8554 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
8555 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
8556 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
8557 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
8558 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
8559 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
8560 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
8561 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
8562 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
8564 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8566 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
8567 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
8568 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
8569 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
8570 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8571 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
8572 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
8573 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
8574 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
8575 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
8578 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8580 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
8582 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
8584 * config/arm/arm-builtins.c (v8hf_UP): New.
8585 (arm_init_simd_builtin_types): Initialise Float16x8_t.
8587 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
8589 * config/arm/arm_neon.h (float16x8_t): New typedef.
8591 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8593 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
8594 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
8595 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
8596 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
8597 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8598 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
8599 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
8600 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
8601 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8602 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
8604 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
8606 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
8607 non-alphanumeric characters in the symbol name.
8609 2015-09-07 Marek Polacek <polacek@redhat.com>
8612 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
8615 2015-09-07 Marek Polacek <polacek@redhat.com>
8617 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
8619 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
8621 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
8624 2015-09-04 Jakub Jelinek <jakub@redhat.com>
8627 * tree-ssa-live.c: Include cfgloop.h.
8628 (remove_unused_locals): Clear loop->simduid if simduid is about
8629 to be removed from cfun->local_decls.
8631 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8634 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
8637 2015-09-04 Tom de Vries <tom@codesourcery.com>
8639 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
8641 2015-09-04 Jeff Law <law@redhat.com>
8643 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
8644 unnecessary constructor. It's now trivial and implemented inside...
8645 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
8646 constructor. Add comments to various methods. Remove unused
8648 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
8649 * tree-vrp.c (identify_jump_threads): Likewise.
8650 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
8652 (thread_across_edge): Similarly.
8653 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
8654 arguments in constructor call.
8656 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
8658 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
8659 temp path contains a '-'.
8661 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8662 Petr Murzin <petr.murzin@intel.com>
8663 Kirill Yukhin <kirill.yukhin@intel.com>
8665 * config/i386/i386-builtin-types.def
8666 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
8667 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
8668 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
8669 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
8670 * config/i386/i386.c
8671 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
8672 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8673 IX86_BUILTIN_SCATTERALTDIV16SI.
8674 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
8675 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
8676 __builtin_ia32_scatteraltdiv8si.
8677 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
8678 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8679 IX86_BUILTIN_SCATTERALTDIV16SI.
8680 (ix86_vectorize_builtin_scatter): New.
8681 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
8682 ix86_vectorize_builtin_scatter.
8684 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8685 Petr Murzin <petr.murzin@intel.com>
8686 Kirill Yukhin <kirill.yukhin@intel.com>
8688 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
8689 * doc/tm.texi: Regenerate.
8690 * target.def: Add scatter builtin.
8691 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
8692 for loads/stores in case of gather/scatter accordingly.
8693 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8694 STMT_VINFO_GATHER_P(S).
8695 (vect_check_gather): Rename to ...
8696 (vect_check_gather_scatter): this.
8697 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
8698 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
8699 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8700 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
8701 variable and new checkings for it accordingly.
8703 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8704 STMT_VINFO_GATHER_P(S).
8705 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8706 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
8708 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8710 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
8712 (mulv16qi3): New define_expand.
8714 2015-09-03 Martin Sebor <msebor@redhat.com>
8717 * doc/extend.texi (Other Builtins): Document when the address
8718 of a built-in function can be taken.
8720 2015-09-03 Richard Biener <rguenther@suse.de>
8722 * dwarf2out.c (flush_limbo_die_list): Split out from ...
8723 (dwarf2out_early_finish): ... here.
8724 (dwarf2out_finish): Do not call dwarf2out_early_finish but
8725 flush_limbo_die_list. Assert we have no deferred asm names.
8727 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8729 * optabs.c (expand_binop): Don't create a broadcast vector with a
8730 source element wider than the inner mode.
8732 2015-09-03 Richard Biener <rguenther@suse.de>
8734 * varasm.c (output_constant): Use fold_convert instead of
8737 2015-09-03 Tom de Vries <tom@codesourcery.com>
8739 PR tree-optimization/65637
8740 * omp-low.c (expand_omp_for_static_chunk): Handle case that
8741 fin_bb has 2 predecessors.
8743 2015-09-03 Tom de Vries <tom@codesourcery.com>
8745 PR tree-optimization/65637
8746 * omp-low.c (find_phi_with_arg_on_edge): New function.
8747 (expand_omp_for_static_chunk): Fix inner loop phi.
8749 2015-09-03 Tom de Vries <tom@codesourcery.com>
8751 PR tree-optimization/65637
8752 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
8755 2015-09-03 Tom de Vries <tom@codesourcery.com>
8757 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
8759 2015-09-03 Tom de Vries <tom@codesourcery.com>
8761 * doc/invoke.texi (parloops-chunk-size): Add item.
8762 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
8763 * tree-parloops.c: Include params.h.
8764 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
8765 param parloops-chunk-size is used.
8767 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8770 * fold-const.c (fold_binary_loc) : Move
8771 Transform (x >> c) << c into x & (-1<<c) or
8772 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
8773 types using simplify and match.
8774 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
8775 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
8777 2015-09-03 Richard Biener <rguenther@suse.de>
8780 * tree-ssa-structalias.c (ctor_for_analysis): New function.
8781 (create_variable_info_for_1): Use ctor_for_analysis instead
8783 (create_variable_info_for): Likewise.
8785 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
8788 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
8789 in new callgraph edge.
8791 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
8796 * config/aarch64/aarch64-simd.md
8797 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
8798 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
8799 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
8800 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
8802 2015-09-02 Alan Modra <amodra@gmail.com>
8804 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
8805 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
8806 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
8808 2015-09-02 Alan Modra <amodra@gmail.com>
8811 * config/rs6000/predicates.md (current_file_function_operand): Don't
8812 return true for weak symbols.
8813 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
8815 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
8816 Andrew Bennett <andrew.bennett@imgtec.com>
8818 * config/mips/mips-opts.h (mips_cb_setting): New enum.
8819 * config/mips/mips-protos.h: Add definitions for
8820 mips_output_jump and mips_output_equal_conditional_branch
8821 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
8823 (mips_emit_compare): Add support for the MIPS R6 conditional
8825 (mips_process_sync_loop): Likewise.
8826 (mips_output_order_conditional_branch): Likewise.
8827 (mips16_build_call_stub): Change MIPS_CALL to
8829 (mips_print_operand_punctuation): Update 's' case to only
8830 apply to micromips r2.
8831 (mips_adjust_insn_length): Add support for forbidden slot
8833 (mips_avoid_hazard): Likewise.
8834 (mips_reorg_process_insns): Likewise.
8835 (mips_output_jump): New function.
8836 (mips_output_equal_conditional_branch): Likewise.
8837 (mips_output_conditional_branch): Use jrc/bc if compact
8838 branch support is enabled. Ensure the forbidden slots
8839 between the two branch instructions is filled with a nop.
8840 (mips_option_override): Add support to process the compact
8841 branch option and set the correct defaults. Prevent
8842 non-explict relocs being using for MIPS R6.
8843 (mips_trampoline_init): Add compact branch support.
8844 (mips_mult_zero_zero_cost): Allow zero initialisation of
8845 accumulators with TARGET_DSP.
8846 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
8847 (TARGET_CB_MAYBE): New define.
8848 (TARGET_CB_ALWAYS): New define.
8849 (ISA_HAS_DELAY_SLOTS): New define.
8850 (ISA_HAS_COMPACT_BRANCHES): New define.
8851 (ISA_HAS_JRC): New define.
8852 (MIPS_BRANCH_C): New define.
8853 (MIPS_CALL): Removed.
8854 (MICROMIPS_J): Removed.
8855 * config/mips/mips.md (compact_form): New attr.
8856 (hazard): Add support for forbidden slots.
8857 (define_delay): Add support for compact branches.
8858 (*branch_order<mode>): Likewise.
8859 (*branch_order<mode>_inverted): Likewise.
8860 (*branch_equality<mode>): Likewise.
8861 (*branch_equality<mode>_inverted): Likewise.
8862 (*jump_absolute): Likewise.
8863 (*jump_pic): Likewise.
8864 (indirect_jump): Use mips_output_jump to produce assembly output.
8865 (tablejump_<mode>"): Likewise.
8866 (*<optab>"): Likewise.
8867 (<optab>_internal): Likewise.
8868 (sibcall_internal): Likewise.
8869 (sibcall_value_internal): Likewise.
8870 (sibcall_value_multiple_internal): Likewise.
8871 (call_internal): Likewise.
8872 (call_split): Likewise.
8873 (call_internal_direct): Likewise.
8874 (call_direct_split): Likewise.
8875 (call_value_internal): Likewise.
8876 (call_value_split): Likewise.
8877 (call_value_internal_direct): Likewise.
8878 (call_value_direct_split): Likewise.
8879 (call_value_multiple_internal): Likewise.
8880 (call_value_multiple_split): Likewise.
8881 (mips_get_fcsr_mips16_<mode>): Likewise.
8882 (mips_set_fcsr_mips16_<mode>): Likewise.
8883 (tls_get_tp_mips16_<mode>): Likewise.
8884 * config/mips/mips.opt: Add -mcompact-branches option.
8885 * config/mips/predicates.md (order_operator): Ensure the
8886 conditional compact branches are only used if the ISA them.
8887 * doc/invoke.texi: Document -mcompact-branches option.
8889 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
8892 * lra-lives.c (process_bb_lives): Process move pseudos with the
8893 same value for copies and preferences
8894 * lra-constraints.c (match_reload): Create match reload pseudo
8895 with the same value from single dying input pseudo.
8897 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
8900 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
8902 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
8904 * trans-mem.c: Add contributed-by.
8905 * trans-mem.h: Same.
8907 2015-09-01 Richard Biener <rguenther@suse.de>
8909 * expr.c (expand_expr_real_1): For expanding TERed defs
8910 set the current location to that of the def if not UNKNOWN.
8912 2015-09-01 David Sherwood <david.sherwood@arm.com>
8914 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
8916 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8918 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
8919 then_cost, else_cost fields. Change branch_cost field to unsigned int.
8920 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
8922 (noce_simple_bbs): New function.
8923 (noce_try_move): Bail if basic blocks are not simple.
8924 (noce_try_store_flag): Likewise.
8925 (noce_try_store_flag_constants): Likewise.
8926 (noce_try_addcc): Likewise.
8927 (noce_try_store_flag_mask): Likewise.
8928 (noce_try_cmove): Likewise.
8929 (noce_try_minmax): Likewise.
8930 (noce_try_abs): Likewise.
8931 (noce_try_sign_mask): Likewise.
8932 (noce_try_bitop): Likewise.
8933 (bbs_ok_for_cmove_arith): New function.
8934 (noce_emit_all_but_last): Likewise.
8935 (noce_emit_insn): Likewise.
8936 (noce_emit_bb): Likewise.
8937 (noce_try_cmove_arith): Handle non-simple basic blocks.
8938 (insn_valid_noce_process_p): New function.
8939 (contains_mem_rtx_p): Likewise.
8940 (bb_valid_for_noce_process_p): Likewise.
8941 (noce_process_if_block): Allow non-simple basic blocks
8944 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
8946 * tree-ssa-dom.c (record_equivalences_from_phis,
8947 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
8948 (lookup_avail_expr): Likewise, and remove comment and unused temp.
8950 2015-09-01 Nick Clifton <nickc@redhat.com>
8952 * config/msp430/msp430.opt (mcpu): Fix typo.
8954 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8956 * config/aarch64/aarch64.c (aarch64_set_current_function):
8957 Re-layout any vector parameters have non-simd layout.
8958 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
8960 (aarch64_simd_expand_args): Delete call to the above.
8962 2015-08-31 Mike Frysinger <vapier@gentoo.org>
8964 * doc/invoke.texi (asan-stack): Add space before option.
8966 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
8968 * tree.h (zerop): New function.
8969 * tree.c (zerop): Likewise.
8970 (element_precision): Handle expressions.
8971 * match.pd (define_predicates): Add zerop.
8972 (x <= +Inf): Fix comment.
8973 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
8974 * fold-const.c (fold_binary_loc): ... here. Remove.
8976 2015-08-31 Richard Biener <rguenther@suse.de>
8979 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
8981 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
8983 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
8984 (CEXPI): New operator list.
8985 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
8986 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
8988 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
8990 2015-08-31 Tom de Vries <tom@codesourcery.com>
8992 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
8993 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
8995 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
8996 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
8997 (rewrite_into_loop_closed_ssa): ... here.
8998 (replace_uses_in_dominated_bbs): Remove function.
8999 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
9000 rewrite_into_loop_closed_ssa_1.
9002 2015-08-31 Michael Matz <matz@suse.de>
9004 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
9005 enter entry and exit blocks for reverse post order.
9007 2015-08-31 Richard Biener <rguenther@suse.de>
9009 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
9010 (lto_location_cache::current_sysp): Likewise.
9011 (output_block::current_sysp): Likewise.
9012 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
9013 (lto_location_cache::apply_location_cache): Properly record
9014 system header locations.
9015 (lto_location_cache::input_location): Input whether a file
9017 * lto-streamer-out.c (lto_output_location): Stream whether a file
9020 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9023 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
9025 2015-08-31 Tom de Vries <tom@codesourcery.com>
9027 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
9028 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
9029 Improve function header comments.
9031 2015-08-30 Michael Collison <michael.collison@linaro.org>
9034 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
9037 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9039 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
9040 special_handling bitfield.
9041 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
9042 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
9043 that represents a general xxpermdi.
9044 (insn_is_swappable_p): Add handling for vec_concat of two
9045 doublewords, which maps to a specific xxpermdi.
9046 (adjust_xxpermdi): New function.
9047 (adjust_concat): Likewise.
9048 (handle_special_swappables): Call adjust_xxpermdi and
9050 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
9052 2015-08-30 Rich Felker <dalias@libc.org>
9054 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
9055 case instead of sh[123456ble]-*-*.
9057 2015-08-29 Anatoly Sokolov <aesok@post.ru>
9059 * ira.c (print_unform_and_important_classes,
9060 print_translated_classes): Remove reg_class_names static array.
9061 (print_unform_and_important_classes): Rename to ...
9062 (print_uniform_and_important_classes): ... this.
9063 (ira_debug_allocno_classes): Update accordingly.
9065 2015-08-29 Tom de Vries <tom@codesourcery.com>
9067 PR tree-optimization/46193
9068 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
9071 2015-08-28 Jeff Law <law@redhat.com>
9074 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9075 unable to find X NE 0 in the tables, return X as the simplified
9077 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9078 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
9080 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9081 after removing the control flow statement and unnecessary edges.
9083 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
9086 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9088 PR tree-optimization/67283
9089 * tree-sra.c (type_consists_of_records_p): Rename to...
9090 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9092 (completely_scalarize_record): Rename to...
9093 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
9095 (scalarize_elem): New.
9097 2015-08-28 Jiong Wang <jiong.wang@arm.com>
9099 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
9100 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
9101 (aarch64_symbol_type): Likewise.
9102 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9104 (aarch64_expand_mov_immediate): Likewise.
9105 (aarch64_print_operand): Likewise.
9106 (aarch64_classify_tls_symbol): Likewise.
9108 2015-08-28 Richard Biener <rguenther@suse.de>
9110 * cgraphunit.c (symbol_table::compile): Move early debug generation
9112 (symbol_table::finalize_compilation_unit): ... back here and
9113 add a !seen_error () guard.
9115 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9117 * toplev.c (process_options): Do not use flag_loop_block,
9118 flag_loop_interchange, and flag_loop_strip_mine. Add check for
9119 flag_loop_optimize_isl.
9121 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9123 * Makefile.in (OBJS): Remove graphite-blocking.o and
9124 graphite-interchange.o.
9125 * common.opt (floop-strip-mine, floop-interchange, floop-block):
9126 Alias of floop-nest-optimize.
9127 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
9128 Document as alias of -floop-nest-optimize.
9129 * graphite-blocking.c: Remove.
9130 * graphite-interchange.c: Remove.
9131 * graphite-optimize-isl.c: Include dumpfile.h.
9132 (getScheduleForBand): Add dump for tiled loops. Use
9133 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
9134 * graphite-poly.c (scop_max_loop_depth): Remove.
9135 (print_scattering_function_1): Remove.
9136 (print_scattering_function): Remove.
9137 (print_scattering_functions): Remove.
9138 (debug_scattering_function): Remove.
9139 (debug_scattering_functions): Remove.
9140 (apply_poly_transforms): Remove use of flag_loop_block,
9141 flag_loop_strip_mine, and flag_loop_interchange.
9142 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
9144 (print_pdr_access_layout): Remove.
9145 (print_pdr): Print ISL representation.
9146 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
9147 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
9149 (openscop_print_pbb_domain): Remove.
9150 (print_pbb): Remove call to print_scattering_function.
9151 (openscop_print_scop_context): Remove.
9152 (print_scop_context): Do not print matrices anymore.
9153 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
9154 SCOP_TRANSFORMED_SCHEDULE.
9155 (print_isl_set): Add printing of a new line.
9156 (print_isl_map): Same.
9157 (print_isl_aff): Same.
9158 (print_isl_constraint): Same.
9159 (loop_to_lst): Remove.
9160 (scop_to_lst): Remove.
9161 (lst_indent_to): Remove.
9162 (print_lst): Remove.
9163 (debug_lst): Remove.
9164 (dot_lst_1): Remove.
9166 (reverse_loop_at_level): Remove.
9167 (reverse_loop_for_pbbs): Remove.
9168 * graphite-poly.h (pdr_dim_iter_domain): Remove.
9169 (pdr_nb_params): Remove.
9170 (pdr_alias_set_dim): Remove.
9171 (pdr_subscript_dim): Remove.
9172 (pdr_iterator_dim): Remove.
9173 (pdr_parameter_dim): Remove.
9174 (same_pdr_p): Remove.
9175 (struct poly_scattering): Remove.
9176 (struct poly_bb): Remove _original, _transformed, _saved.
9177 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
9178 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
9179 (PBB_NB_LOCAL_VARIABLES): Remove.
9180 (PBB_NB_SCATTERING_TRANSFORM): Remove.
9181 (schedule_to_scattering): Remove.
9182 (number_of_write_pdrs): Remove.
9183 (pbb_dim_iter_domain): Remove.
9184 (pbb_nb_params): Remove.
9185 (pbb_nb_scattering_orig): Remove.
9186 (pbb_nb_scattering_transform): Remove.
9187 (pbb_nb_dynamic_scattering_transform): Remove.
9188 (pbb_nb_local_vars): Remove.
9189 (pbb_iterator_dim): Remove.
9190 (pbb_parameter_dim): Remove.
9191 (psco_scattering_dim): Remove.
9192 (psct_scattering_dim): Remove.
9193 (psct_local_var_dim): Remove.
9194 (psco_iterator_dim): Remove.
9195 (psct_iterator_dim): Remove.
9196 (psco_parameter_dim): Remove.
9197 (psct_parameter_dim): Remove.
9198 (psct_dynamic_dim): Remove.
9199 (psct_static_dim): Remove.
9200 (psct_add_local_variable): Remove.
9201 (new_lst_loop): Remove.
9202 (new_lst_stmt): Remove.
9205 (lst_add_loop_under_loop): Remove.
9206 (lst_depth): Remove.
9207 (lst_dewey_number): Remove.
9208 (lst_dewey_number_at_depth): Remove.
9211 (lst_find_pbb): Remove.
9212 (find_lst_loop): Remove.
9213 (lst_find_first_pbb): Remove.
9214 (lst_empty_p): Remove.
9215 (lst_find_last_pbb): Remove.
9216 (lst_contains_p): Remove.
9217 (lst_contains_pbb): Remove.
9218 (lst_create_nest): Remove.
9219 (lst_remove_from_sequence): Remove.
9220 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
9221 (lst_niter_for_loop): Remove.
9222 (pbb_update_scattering): Remove.
9223 (lst_update_scattering_under): Remove.
9224 (lst_update_scattering): Remove.
9225 (lst_insert_in_sequence): Remove.
9226 (lst_replace): Remove.
9227 (lst_substitute_3): Remove.
9228 (lst_distribute_lst): Remove.
9229 (lst_remove_all_before_including_pbb): Remove.
9230 (lst_remove_all_before_excluding_pbb): Remove.
9231 (struct scop): Remove original_schedule, transformed_schedule, and
9233 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
9234 (SCOP_SAVED_SCHEDULE): Remove.
9235 (poly_scattering_new): Remove.
9236 (poly_scattering_free): Remove.
9237 (poly_scattering_copy): Remove.
9238 (store_scattering_pbb): Remove.
9239 (store_lst_schedule): Remove.
9240 (restore_lst_schedule): Remove.
9241 (store_scattering): Remove.
9242 (restore_scattering_pbb): Remove.
9243 (restore_scattering): Remove.
9244 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9245 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
9246 compute the scattering polyhedron dimension from the dimension of
9248 (build_scop_scattering): Update call to
9249 build_pbb_scattering_polyhedrons.
9250 (build_poly_scop): Remove call to scop_to_lst.
9251 * graphite.c (graphite_transform_loops): Add call to print_scop.
9252 (gate_graphite_transforms): Remove use of flag_loop_block,
9253 flag_loop_interchange, and flag_loop_strip_mine.
9255 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9257 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
9258 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
9259 -floop-nest-optimize.
9260 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
9261 (generate_luj_sepclass): Remove.
9262 (generate_luj_options): Remove.
9263 (set_options): Remove opt_luj.
9264 (scop_to_isl_ast): Remove opt_luj.
9265 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
9266 flag_loop_unroll_jam.
9267 (getPrevectorMap_full): Remove.
9268 (getScheduleForBandList): Remove map_sepcl.
9269 (getScheduleMap): Same.
9270 (apply_schedule_map_to_scop): Remove sepcl.
9271 (optimize_isl): Same.
9272 * graphite-poly.c (apply_poly_transforms): Remove check for
9273 flag_loop_unroll_jam.
9274 (new_poly_bb): Remove map_sepclass.
9275 * graphite-poly.h (struct poly_bb): Same.
9276 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
9277 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
9278 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
9279 * toplev.c (process_options): Remove flag_loop_unroll_jam.
9281 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
9284 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
9286 (UNSPEC_ADD_CARRY): Remove.
9287 (addqi3_cconly_overflow): New expander.
9288 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
9289 Adjust for changed add<mode>3_carry.
9290 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
9291 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
9292 (<plusminus_insn><mode>3_carry): Remove expander.
9293 (*<plusminus_insn><mode>3_carry): Split insn pattern to
9294 add<mode>3_carry and sub<mode>3_carry.
9295 (plusminus_carry_mnemonic): Remove code attribute.
9296 (add<mode>3_carry): Canonicalize insn pattern.
9297 (*addsi3_carry_zext): Ditto.
9298 (sub<mode>3_carry): Ditto.
9299 (*subsi3_carry_zext): Ditto.
9300 (adcx<mode>3): Remove insn pattern.
9301 (addcarry<mode>): New insn pattern.
9302 (subborrow<mode>): Ditto.
9303 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
9304 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
9305 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
9306 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
9307 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
9308 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
9309 Rewrite expander to not clobber carry flag chains.
9311 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
9313 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
9314 instead of a rotate.
9316 2015-08-27 Marek Polacek <polacek@redhat.com>
9319 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
9320 an entry into an irreducible region.
9322 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9324 * configure: Regenerate.
9326 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9328 PR tree-optimization/67283
9329 * tree-sra.c (type_consists_of_records_p): Rename to...
9330 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9332 (completely_scalarize_record): Rename to...
9333 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9334 (scalarize_elem): New.
9336 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9338 * tree-sra.c (completely_scalarize_var): Rename to...
9339 (create_total_scalarization_access): ... Here. Drop call to
9340 completely_scalarize_record.
9342 (analyze_all_variable_accesses): Replace completely_scalarize_var
9343 with create_total_scalarization_access and completely_scalarize_record.
9345 2015-08-27 Alan Modra <amodra@gmail.com>
9348 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
9351 2015-08-27 Richard Biener <rguenther@suse.de>
9353 * passes.c (rest_of_decl_compilation): Guard early_global_decl
9354 call with !seen_error ().
9355 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
9356 early debug generation and finish...
9357 (symbol_table::compile): ... here to put it after a !seen_error ()
9360 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9362 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
9365 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9366 Andre Vieira <andre.simoesdiasvieira@arm.com>
9368 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
9369 (*cb<optab><mode>1): Likewise.
9370 (*tb<optab><mode>1): Likewise.
9371 (*cb<optab><mode>1): Likewise.
9372 * config/aarch64/iterators.md (inv_cb): New code attribute.
9374 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
9375 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
9377 2015-08-27 Richard Biener <rguenther@suse.de>
9379 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
9381 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
9383 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
9386 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9388 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
9391 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
9393 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
9394 floating point in VSX registers.
9395 (rs6000_output_move_128bit): Always print out the set insn if we
9396 can't generate an appropriate 128-bit move.
9397 (rs6000_generate_compare): Add support for IEEE 128-bit floating
9398 point in VSX registers comparisons.
9399 (rs6000_expand_float128_convert): Likewise.
9401 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
9402 predicate for only GPR hard registers.
9404 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
9405 modes to iterators. Add new iterators for moving 128-bit values in
9406 scalar FPR registers and VSX registers.
9407 (FMOVE128): Likewise.
9408 (FMOVE128_FPR): Likewise.
9409 (FMOVE128_GPR): Likewise.
9410 (FMOVE128_VSX): Likewise.
9411 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
9416 (RELOAD): Add IEEE 128-bit floating point modes.
9417 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
9418 floating point in VSX registers modes.
9419 (signbit<mode>2, IBM128 iterator): Likewise.
9420 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
9421 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
9423 (neg<mode>2, TFIFKF iterator): Likewise.
9424 (negtf2_internal): Likewise.
9426 (abs<mode>2, TFIFKF iterator): Likewise.
9427 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
9428 VSX insn support for negate, absolute value, and negative absolute
9430 (ieee_128bit_vsx_neg<mode>2): Likewise.
9431 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9432 (ieee_128bit_vsx_abs<mode>2): Likewise.
9433 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9434 (ieee_128bit_vsx_nabs<mode>2): Likewise.
9435 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9436 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
9437 floating point in VSX registers.
9438 (unpack<mode>_dm): Likewise.
9439 (unpack<mode>_nodm): Likewise.
9440 (pack<mode>): Likewise.
9441 (unpackv1ti): Likewise.
9442 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
9443 (packv1ti): Likewise.
9444 (pack<mode>, FMOVE128_VSX iterator): Likewise.
9445 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
9447 (extenddftf2_internal): Likewise.
9448 (trunctfdf2): Likewise.
9449 (trunctfdf2_internal2): Likewise.
9450 (fix_trunc_helper): Likewise.
9451 (fix_trunctfdi2"): Likewise.
9452 (floatditf2): Likewise.
9453 (floatuns<mode>tf2): Likewise.
9454 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9455 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9456 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9457 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9458 (float<SDI:mode><IFKF:mode>2): Likewise.
9459 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9461 2015-08-26 Renlin Li <renlin.li@arm.com>
9463 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
9465 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
9466 Jiong Wang <jiong.wang@arm.com>
9468 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
9469 (tlsie_tiny_<mode>): New define_insn.
9470 (tlsie_tiny_sidi): Likewise.
9471 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
9473 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
9474 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
9476 (aarch64_expand_mov_immediate): Likewise.
9477 (aarch64_print_operand): Likewise.
9478 (arch64_classify_tls_symbol): Likewise.
9480 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9482 * config/arm/arm-arches.def: Replace single value flags with
9483 an initializer built from ARM_FSET_MAKE_CPU1.
9484 * config/arm/arm-cores.def: Likewise.
9485 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
9486 derivation from the ARM_CORE macro definition, use the given value
9488 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
9489 ARM_ARCH macro definition, use the given value instead.
9491 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9493 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
9495 (struct builtin_description): Replace field mask with field
9497 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
9498 (IWMMXT2_BUILTIN): Likewise.
9499 (IWMMXT2_BUILTIN2): Likewise.
9500 (FP_BUILTIN): Likewise.
9501 (CRC32_BUILTIN): Likewise.
9502 (CRYPTO_BUILTIN): Likewise.
9503 (iwmmx_mbuiltin): Likewise.
9504 (iwmmx2_mbuiltin): Likewise.
9505 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
9506 struct builtin_description.
9508 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9510 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
9511 (struct builtin_description): Change type of mask to unsigned
9513 * config/arm/arm-protos.h (insn_flags): Declare as type
9515 (tune_flags): Likewise.
9516 * config/arm/arm.c (feature_count): New.
9517 (insn_flags): Define as type arm_feature_set.
9518 (tune_flags): Likewise.
9519 (struct processors): Define field flags as type arm_feature_set.
9520 (all_cores): Update for change to struct processors.
9521 (all_architectures): Likewise.
9522 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
9524 (arm_option_override_internal): Likewise.
9525 (arm_option_override): Likewise.
9527 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
9528 Jiong Wang <jiong.wang@arm.com>
9530 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
9531 tls size for tiny, small, large memory model.
9532 (aarch64_load_symref_appropriately): Support new symbol types.
9533 (aarch64_expand_mov_immediate): Likewise.
9534 (aarch64_print_operand): Likewise.
9535 (aarch64_classify_tls_symbol): Likewise.
9536 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
9537 (aarch64_symbol_type): Likewise.
9538 * config/aarch64/aarch64.md (tlsle): Deleted.
9539 (tlsle12_<mode>): New define_insn.
9540 (tlsle24_<mode>): Likewise.
9541 (tlsle32_<mode>): Likewise.
9542 (tlsle48_<mode>): Likewise.
9543 * doc/sourcebuild.texi (AArch64-specific attributes): Document
9546 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9548 * config/arm/arm-protos.h (FL_NONE): New.
9550 (arm_feature_set): New.
9551 (ARM_FSET_MAKE): New.
9552 (ARM_FSET_MAKE_CPU1): New.
9553 (ARM_FSET_MAKE_CPU2): New.
9554 (ARM_FSET_CPU1): New.
9555 (ARM_FSET_CPU2): New.
9556 (ARM_FSET_EMPTY): New.
9557 (ARM_FSET_ANY): New.
9558 (ARM_FSET_HAS_CPU1): New.
9559 (ARM_FSET_HAS_CPU2): New.
9560 (ARM_FSET_HAS_CPU): New.
9561 (ARM_FSET_ADD_CPU1): New.
9562 (ARM_FSET_ADD_CPU2): New.
9563 (ARM_FSET_DEL_CPU1): New.
9564 (ARM_FSET_DEL_CPU2): New.
9565 (ARM_FSET_UNION): New.
9566 (ARM_FSET_INTER): New.
9567 (ARM_FSET_XOR): New.
9568 (ARM_FSET_EXCLUDE): New.
9569 (AFM_FSET_IS_EMPTY): New.
9570 (ARM_FSET_CPU_SUBSET): New.
9572 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9574 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
9575 SYMBOL_TLSLE to SYMBOL_TLSLE24.
9576 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9578 (aarch64_expand_mov_immediate): Likewise.
9579 (aarch64_print_operand): Likewise.
9580 (aarch64_classify_symbol): Likewise.
9582 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9584 * config/aarch64/aarch64.opt (mtls-size): New entry.
9585 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
9586 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
9587 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
9589 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9591 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
9592 ARM_CORE entry. Fix some white-space.
9593 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
9594 ARM_CORE definition.
9596 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9598 * fold-const.c (fold_binary_loc) : Move Optimize
9599 root(x)*root(y) as root(x*y) to match.pd.
9600 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
9601 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
9602 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
9603 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
9604 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
9605 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
9606 (mult (exps:s @0) (exps:s @1)) : New simplifier.
9607 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
9608 (rdiv @0 (exps:s @1)) : New simplifier.
9610 2015-08-25 Joseph Myers <joseph@codesourcery.com>
9612 * gcc.c (driver::finalize): Only assign to extra_specs if
9615 2015-08-25 Marek Polacek <polacek@redhat.com>
9618 * varasm.c (declare_weak): Return after giving an error.
9620 2015-08-25 David Malcolm <dmalcolm@redhat.com>
9622 * gcc-main.c (main): Add params to driver ctor.
9623 * gcc.c (class env_manager): New.
9625 (env_manager::init): New.
9626 (env_manager::get): New.
9627 (env_manager::xput): New.
9628 (env_manager::restore): New.
9629 Poison getenv and putenv.
9630 (DEFAULT_TARGET_SYSTEM_ROOT): New.
9631 (target_system_root): Update initialization to use
9632 DEFAULT_TARGET_SYSTEM_ROOT.
9633 (struct spec_list): Add field "default_ptr".
9634 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
9635 (init_spec): Likewise.
9636 (set_spec): Clear field "default_ptr".
9637 (read_specs): Free "spec" and "buffer".
9638 (xputenv): Reimplement in terms of env_manager.
9639 (process_command): Replace ::getenv calls with calls to the
9640 env_manager singleton.
9641 (process_brace_body): Free string in three places.
9642 (driver::driver): New.
9643 (driver::~driver): New.
9644 (used_arg): Convert from a function to...
9645 (class used_arg_t): ...this class, and...
9646 (used_arg): ...this new global instance.
9647 (used_arg_t::finalize): New function.
9648 (getenv_spec_function): Add "const" to local "value". Replace
9649 ::getenv call with call to the env_manager singleton.
9650 (path_prefix_reset): New function.
9651 (driver::finalize): New function.
9652 * gcc.h (driver::driver): New.
9653 (driver::~driver): New.
9654 (driver::finalize): New.
9656 2015-08-25 Nathan Sidwell <nathan@acm.org>
9658 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
9659 target doesn't have one.
9661 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9664 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
9666 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9669 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
9670 a define_insn, remove second alternative.
9672 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
9673 Joseph Myers <joseph@codesourcery.com>
9675 * gcc.c (struct switchstr): Expand comment.
9677 2015-08-25 Nathan Sidwell <nathan@acm.org>
9679 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
9680 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
9682 2015-08-25 Richard Biener <rguenther@suse.de>
9685 * genmatch.c (expr::gen_transform): Verify the result of
9686 builtin_decl_implicit.
9687 (dt_simplify::gen_1): Likewise.
9689 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
9691 * config/arm/constraints.md: Also list Cs and US ARM-specific
9692 constraints as used.
9694 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
9697 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
9699 (nonpic_symbol_mentioned_p): Likewise.
9700 (sh_delegitimize_address): Likewise.
9701 (sh_function_ok_for_sibcall): Take into account weak symbols.
9702 (sh_expand_sym_label2reg): New.
9703 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
9704 * config/sh/sh.md (UNSPEC_PCREL): New enum.
9705 (call_pcrel): Use sh_expand_sym_label2reg.
9706 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9707 (symPCREL_label2reg) New expand.
9709 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9711 * graphite-poly.c: Change type of region from void* to sese.
9712 * graphite-poly.h (struct scop): Changing the type of scop::region
9713 from void* to sese. Change accessor macro accordingly.
9714 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
9716 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9718 * graphite-scop-detection.c (stmt_simple_for_scop_p):
9719 Constrain only on INTEGER_TYPE.
9721 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9724 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
9725 -mefficient-unaligned-vsx on ISA 2.7.
9727 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
9728 option to a masked option.
9730 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
9731 logic for -mefficient-unaligned-vsx so that it is set via an arch
9732 ISA option, instead of being set if -mtune=power8 is set. Move
9733 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
9734 near other default option handling.
9736 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9738 * genflags.c (gen_macro): Delete.
9739 (gen_proto): Don't create GEN.*CALL.* macros.
9740 * gensupport.h (get_file_location): Declare.
9741 * gensupport.c (rtx_locs): New variable.
9742 (read_md_rtx): Record rtx locations.
9743 (get_file_location): New function.
9744 * target-insns.def (call, call_pop, call_value, call_value_pop)
9745 (sibcall, sibcall_value): New patterns.
9746 * gentarget-def.c (parse_argument): New function.
9747 (def_target_insn): Use it. Handle optional operands. Raise an
9748 error if an .md pattern has the wrong number of operands for the
9749 pattern name. Remove the names of unused operands from the prototype.
9750 * builtins.c (expand_builtin_apply): Use targetm functions
9751 instead of HAVE_call_value and GEN_CALL_VALUE.
9752 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
9753 and sibcall_value_pop.
9754 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
9756 * config/alpha/alpha.md (untyped_call): Likewise.
9757 * config/iq2000/iq2000.md (untyped_call): Likewise.
9758 * config/m68k/m68k.md (untyped_call): Likewise.
9759 * config/mips/mips.md (untyped_call): Likewise.
9760 * config/pa/pa.md (untyped_call): Likewise.
9761 * config/rs6000/rs6000.md (untyped_call): Likewise.
9762 * config/sparc/sparc.md (untyped_call): Likewise.
9763 * config/tilegx/tilegx.md (untyped_call): Likewise.
9764 * config/tilepro/tilepro.md (untyped_call): Likewise.
9765 * config/visium/visium.md (untyped_call): Likewise.
9766 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
9767 gen_call_value instead of GEN_CALL_VALUE.
9768 * config/arm/arm.md (untyped_call): Likewise.
9769 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
9772 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9774 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
9775 (have_cbranchcc4): New variable.
9776 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
9777 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
9778 (if_convert): Initialize have_cbranchcc4.
9780 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9782 * builtins.c (expand_cmpstrn): Rename to...
9783 (expand_cmpstrn_or_cmpmem): ...this.
9784 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
9785 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
9786 Remove mode argument.
9787 (expand_builtin): Update accordingly.
9789 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9791 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
9792 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
9793 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
9794 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
9795 Add predicates for operands 0 and 3.
9796 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
9798 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
9799 immediate_operand to nonmemory_operand.
9801 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9803 * df-scan.c (df_insn_info_init_fields): New function, split out
9805 (df_insn_create_insn_record): ...here.
9806 (df_insn_info_free_fields): New function, split out from...
9807 (df_insn_info_delete): ...here.
9808 (df_insn_rescan): Use the new functions instead of freeing and
9809 reallocating the df_insn_info.
9811 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9813 * doc/install.texi (Binaries): Remove links no longer valid.
9815 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
9817 * config/nvptx/mkoffload.c (process): Replace
9818 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
9820 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
9823 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
9825 2015-08-24 Renlin Li <renlin.li@arm.com>
9827 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
9828 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
9829 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
9830 * config/arm/constraints.md ("j"): Add check for high code.
9832 2015-08-24 Tom de Vries <tom@codesourcery.com>
9834 PR tree-optimization/65468
9835 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
9838 2015-08-24 Nathan Sidwell <nathan@acm.org>
9840 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
9841 change to nvptx_type_from_mode call. Use arg_promotion for both
9842 split and non-split args.
9844 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9846 * target-insns.def (movstr): New pattern.
9847 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
9848 (expand_movstr): Use targetm rather than HAVE_movstr/
9851 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9853 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
9856 2015-08-24 Andrew Pinski <apinski@cavium.com>
9858 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
9859 AARCH64_EXTRA_TUNING_OPTION.
9860 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
9862 (aarch64_extra_tuning_flags): Base the shifted value on the index
9863 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
9864 * config/aarch64/aarch64.c: Remove the last argument to
9865 AARCH64_EXTRA_TUNING_OPTION.
9867 2015-08-23 Nathan Sidwell <nathan@acm.org>
9869 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
9871 (nvptx_declare_function_name): Insert formatting tabs for
9874 2015-08-23 Tom de Vries <tom@codesourcery.com>
9876 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
9877 parm_decl, rather than generating a dummy default def in cfun.
9878 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
9879 ssa_name from cfun and child_fn do not share a stmt as def stmt.
9880 (move_stmt_op): Handle PARM_DECl.
9881 (gather_ssa_name_hash_map_from): New function.
9882 (move_sese_region_to_fn): Add default defs for function params, and add
9883 them to vars_map. Release copied ssa names.
9884 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
9886 2015-08-23 Tom de Vries <tom@codesourcery.com>
9888 * doc/sourcebuild.texi: Rename vect_no_int_max with
9889 vect_no_int_min_max. Update description.
9891 2015-08-22 Andrew Pinski <apinski@cavium.com>
9893 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
9894 * config/aarch64/aarch64-protos.h
9895 (aarch64_fusion_pairs_index): New enum.
9896 (aarch64_fusion_pairs): Base the shifted value on the index instead
9897 Rewrite AARCH64_FUSE_ALL to be based on the end index.
9898 of the argument to AARCH64_FUSION_PAIR.
9899 * config/aarch64/aarch64.c: Remove the last argument to
9900 AARCH64_FUSION_PAIR.
9902 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
9904 * dominance.c (new_zero_array): Define.
9905 (dom_info): Redefine as class with proper encapsulation.
9906 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
9908 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
9909 allocations/deallocations. Pass function as parameter (instead of
9911 (dom_info::get_idom): Define accessor method.
9912 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
9913 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
9914 (calculate_dominance_info): Adjust to use dom_info class.
9915 (verify_dominators): Likewise.
9917 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
9919 * print-rtl.c (print_rtx): Check the correct range for
9920 flag_dump_unnumbered_links to behave as documented.
9922 PR rtl-optimization/67227
9923 PR rtl-optimization/64164
9924 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
9925 (nonoverlapping_memrefs_p): Test offsets and sizes when given
9926 identical gimple_reg exprs.
9928 2015-08-21 Nathan Sidwell <nathan@acm.org>
9930 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
9932 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
9933 crtl->stack_alignment_needed to determine alignment.
9934 (nvptx_get_drap_rtx): New.
9935 (TARGET_GET_DRAP_RTX): Override.
9936 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
9938 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9940 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
9942 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9944 * configure.ac: Remove uwin* cases.
9945 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
9946 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
9947 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
9948 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
9949 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
9950 i[34567]86-*-uwin*, powerpc-*-beos*.
9952 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
9954 * gencodes.c (gencodes): Print the comma for the preceding
9955 enum value rather than the current one. Use aliased enum values
9956 rather than #defines for compiled-out patterns.
9957 (main): Update accordingly. Replace LAST_INSN_CODE with
9959 * lra.c (insn_code_data): Update accordingly.
9960 (finish_insn_code_data_once, get_static_insn_data): Likewise.
9961 * recog.h (target_recog): Likewise.
9962 (preprocess_insn_constraints): Change parameter to unsigned int.
9963 * recog.c (preprocess_insn_constraints): Likewise.
9964 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
9965 * tree-vect-stmts.c (vectorizable_operation): Simplify.
9967 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
9969 PR rtl-optimization/61657
9970 * loop-iv.c (iv_number_of_iterations): Declare up and down as
9971 unsigned. Remove superflous uint64_t cast.
9973 2014-08-21 Felix Yang <felix.yang@huawei.com>
9974 Jiji Jiang <jiangjiji@huawei.com>
9976 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
9977 argument and get builtin function code directly from CALL.
9978 (gimple_stringop_fixed_value): Modified accordingly.
9979 (gimple_stringops_transform, gimple_stringops_values_to_profile):
9980 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
9982 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
9984 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
9986 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9988 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
9990 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
9991 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
9992 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
9993 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
9994 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
9995 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
9996 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
9997 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
9998 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
9999 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
10001 * match.pd (SIN ) : New Operator.
10002 (TAN) : New Operator.
10003 (mult (SQRT@1 @0) @1) : New simplifier.
10004 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
10005 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
10006 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
10007 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
10008 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
10009 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
10010 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
10011 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
10012 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
10013 (rdiv @0 (POW:s @1 @2)) : New simplifier.
10015 2015-08-21 Bin Cheng <bin.cheng@arm.com>
10017 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
10018 loop if EXPR is simplified to const value.
10020 2015-08-21 Yury Gribov <y.gribov@samsung.com>
10022 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
10023 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
10025 2015-08-21 Richard Biener <rguenther@suse.de>
10027 PR middle-end/67285
10028 * gimple-fold.c (replace_stmt_with_simplification): Assert
10029 seq is empty when replacing a call with itself but different
10031 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
10032 a call require that it is const.
10034 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10036 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
10037 * builtins.c (get_object_alignment_2): Adjust.
10038 * varasm.c (align_variable): Likewise.
10039 (get_variable_align): Likewise.
10040 (build_constant_desc): Likewise.
10041 (force_const_mem): Likewise.
10042 * doc/tm.texi.in: Likewise.
10043 * doc/tm.texi: Regenerate.
10045 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10047 * genconfig.c (main): Always define HAVE_cc0.
10048 * recog.c (rest_of_handle_peephole2): Adjust.
10050 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10052 * reorg.c (relax_delay_slots): Don't use #if to check value of
10055 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10057 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
10058 * targhooks.c (default_have_conditional_execution): Adjust.
10060 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
10062 * rtl.h (rtvec_all_equal_p): Declare.
10063 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
10064 * rtl.c (rtvec_all_equal_p): New function.
10065 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
10066 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
10067 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
10068 * config/arm/arm.c (neon_vdup_constant): Likewise.
10069 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
10070 * config/tilegx/constraints.md (W, Y): Likewise.
10071 * config/tilepro/constraints.md (W, Y): Likewise.
10072 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
10073 (classify_immediate): Use unwrap_const_vec_duplicate.
10074 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
10075 (reg_or_v2s8bit_operand): Likewise.
10076 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
10077 (reg_or_v4s8bit_operand): Likewise.
10079 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10081 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
10082 (vec_shasigma_be): New #define.
10083 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
10084 (VPMSUMH): Likewise.
10085 (VPMSUMW): Likewise.
10086 (VPMSUMD): Likewise.
10087 (VPMSUM): New BU_P8V_OVERLOAD_2.
10088 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
10089 entries for VEC_MADD and VEC_VPMSUM.
10091 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
10093 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
10094 Multiply argument avr_n_flash by 64 to match unit of "KiB".
10095 (avr_pgm_check_var_decl): Same.
10097 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
10099 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
10100 initialization of HFmode scalar type (float16_t) to...
10101 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
10104 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
10106 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
10107 having an -mfp16-format.
10109 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
10111 * config/i386/predicates.md (vector_all_ones_operand): Use
10112 CONSTM1_RTX to simplify definition.
10114 2015-08-20 Richard Biener <rguenther@suse.de>
10116 * toplev.c (compile_file): Remove loop calling late_global_decl
10118 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
10119 on decls we assembled.
10121 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
10123 * common/config/aarch64/aarch64-common.c
10124 (AARCH64_CPU_NAME_LENGTH): Delete.
10125 (aarch64_option_extension): New.
10126 (all_extensions): Likewise.
10127 (processor_name_to_arch): Likewise.
10128 (arch_to_arch_name): Likewise.
10130 (all_architectures): Likewise.
10131 (aarch64_get_extension_string_for_isa_flags): Likewise.
10132 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
10133 architecture names.
10134 * config/aarch64/aarch64-protos.h
10135 (aarch64_get_extension_string_for_isa_flags): New.
10136 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
10137 (aarch64_option_print): Get the string to print from
10138 aarch64_get_extension_string_for_isa_flags.
10139 (aarch64_declare_function_name): Likewise.
10140 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
10141 (MCPU_TO_MARCH_SPEC): This.
10142 (ASM_CPU_SPEC): Use it.
10143 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
10144 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
10145 (EXTRA_SPEC_FUNCTIONS): Use it.
10147 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
10149 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
10150 expansion when !ISA_HAS_LWL_LWR.
10151 (mips_block_move_straight): Update the size of elements copied to
10152 account for alignment when !ISA_HAS_LWL_LWR.
10153 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
10155 2015-08-19 Jiong Wang <jiong.wang@arm.com>
10157 * expr.c (expand_expr_real_2): Check gimple statement during
10158 LSHIFT_EXPR expand.
10160 2015-08-19 Magnus Granberg <zorry@gentoo.org>
10162 * common.opt (fstack-protector): Initialize to -1.
10163 (fstack-protector-all): Likewise.
10164 (fstack-protector-strong): Likewise.
10165 (fstack-protector-explicit): Likewise.
10166 * configure.ac: Add --enable-default-ssp.
10167 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
10168 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
10170 * doc/install.texi: Document --enable-default-ssp.
10171 * config.in: Regenerated.
10172 * configure: Likewise.
10174 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
10176 PR rtl-optimization/64164
10177 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
10178 (parm_in_stack_slot_p): ... this. Disregard mode, what
10179 matters is whether the parm will live in a pseudo or a stack
10181 (expand_one_ssa_partition): Deal with params without a default
10182 def. Disregard mode.
10183 * cfgexpand.h: Renamed function declaration.
10184 * tree-ssa-coalesce.c: Adjust.
10185 * function.c (split_complex_args): Allocate stack slot for
10186 unassigned parms before splitting.
10187 (parm_in_unassigned_mem_p): New. Use it instead of
10188 parm_maybe_byref_p throughout this file.
10189 (assign_parm_setup_block): Use it. Accept pseudos in the
10190 expand-assigned rtl.
10191 (assign_parm_setup_reg): Drop BLKmode requirement.
10192 (assign_parm_setup_stack): Allocate and fill in the address of
10193 unassigned MEM parms.
10195 2015-08-19 David Sherwood <david.sherwood@arm.com>
10197 * genmodes.c (emit_mode_unit_size_inline): New function.
10198 (emit_mode_unit_precision_inline): New function.
10199 (emit_insn_modes_h): Emit new #define. Emit new functions.
10200 (emit_mode_unit_size): New function.
10201 (emit_mode_unit_precision): New function.
10202 (emit_mode_adjustments): Add mode_unit_size adjustments.
10203 (emit_insn_modes_c): Emit new arrays.
10204 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
10205 use new inline methods.
10207 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10209 * config/aarch64/aarch64.c (bit_count): Delete prototype
10211 (aarch64_print_operand): Use popcount_hwi instead of the above.
10213 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10215 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
10218 2015-08-19 Marek Polacek <polacek@redhat.com>
10220 PR middle-end/67133
10221 * gimple-ssa-isolate-paths.c
10222 (insert_trap_and_remove_trailing_statements): Rename to ...
10223 (insert_trap): ... this. Don't remove trailing statements; split
10225 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
10227 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
10230 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
10231 conditionalize the whole on __GNUC__. Add fallback code
10232 depending neither on undefined nor implementation-defined behaviour.
10234 2015-08-19 Jiong Wang <jiong.wang@arm.com>
10236 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
10237 whitespaces with tab.
10239 2015-08-19 Florian Weimer <fweimer@redhat.com>
10241 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
10242 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
10243 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
10244 Move Name_Ids instantiation to the Prj.Proc package, to avoid
10247 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10249 * config/arm/arm.c (bounds_check): Use %wd print format
10250 for HOST_WIDE_INT arguments.
10252 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
10254 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
10255 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
10256 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
10257 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
10258 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
10259 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
10260 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
10261 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
10262 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
10265 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
10267 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
10268 function.c, graphite-scop-detection.c, haifa-sched.c,
10269 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
10270 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
10271 varasm.c: Remove typedefs of structs.
10273 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10275 * config/rs6000/altivec.h (vec_adde): New define.
10276 (vec_addec): Likewise.
10277 (vec_double): Likewise.
10278 (vec_bperm): Likewise.
10279 (vec_gb): Likewise.
10280 * config/rs6000/rs6000-builtin.def (ADDE): New
10281 BU_ALTIVEC_OVERLOAD_3.
10283 (DOUBLE): New BU_VSX_OVERLOAD_1.
10284 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
10285 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
10286 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
10287 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
10288 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
10289 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
10290 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
10291 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
10292 and P8V_BUILTIN_VEC_VBPERMQ.
10294 2015-08-18 Jason Merrill <jason@redhat.com>
10296 * print-tree.c (print_node): Handle TREE_BINFO.
10298 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10300 PR middle-end/36757
10301 * builtins.c (expand_builtin_signbit): Add asserts to make sure
10302 we can expand BUILT_IN_SIGNBIT inline.
10303 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
10304 * doc/extend.texi: Document the type-generic __builtin_signbit.
10306 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
10308 PR rtl-optimization/67218
10309 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
10310 (simplify_unary_operation_1): Use it.
10312 2015-08-18 Marek Polacek <polacek@redhat.com>
10314 PR middle-end/67222
10315 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
10316 if the call isn't valid.
10317 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
10318 gimple_call_builtin_p.
10319 (call_may_clobber_ref_p_1): Likewise.
10320 (stmt_kills_ref_p): Likewise.
10322 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
10324 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
10325 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
10326 (mips_hard_regno_scratch_ok): Likewise.
10327 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
10328 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
10330 2015-08-18 Bin Cheng <bin.cheng@arm.com>
10332 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
10333 (determine_value_range): Call refine_value_range_using_guard for
10334 each loop initial condition to improve value range.
10336 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
10338 * config/i386/i386.c: Remove include of fibheap.h.
10340 2015-08-17 Richard Biener <rguenther@suse.de>
10342 PR tree-optimization/67221
10343 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
10344 (sccvn_dom_walker::before_dom_children): Mark backedges of
10345 non-executable blocks as not executable.
10347 2015-08-17 David Sherwood <david.sherwood@arm.com>
10349 * config/arm/arm.c (neon_element_bits): Replace call to
10350 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
10351 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
10352 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
10353 (neon_vdup_lane<mode>): Likewise.
10354 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
10355 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
10356 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
10357 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
10358 * config/spu/spu.c (arith_immediate_p): Likewise.
10359 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10360 * expr.c (expand_expr_real_2): Likewise.
10361 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
10362 * simplify-rtx.c (simplify_immed_subreg): Likewise.
10363 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
10364 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
10366 * fold-const.c (fold_binary_loc): Replace call to
10367 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
10368 GET_MODE_UNIT_PRECISION (m).
10370 2015-08-17 Mike Stump <mikestump@comcast.net>
10372 * config/arm/arm.c (arm_block_move_unaligned_straight):
10373 Emit normal move instead of unaligned load when source or destination
10374 are appropriately aligned.
10376 2015-08-17 Richard Biener <rguenther@suse.de>
10377 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10379 PR middle-end/16107
10380 * match.pd (div (coss (op @0) : New simplifier.
10382 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
10384 PR rtl-optimization/64164
10386 PR middle-end/66983
10387 PR rtl-optimization/67000
10388 PR middle-end/67034
10389 PR middle-end/67035
10390 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10391 * tree-ssa-copyrename.c: Removed.
10392 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10393 -ftree-coalesce-vars.
10394 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10395 * common.opt (ftree-copyrename): Ignore.
10396 (ftree-coalesce-inlined-vars): Likewise.
10397 * doc/invoke.texi: Remove the ignored options above.
10398 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10399 * tree-ssa-coalesce.h: ... here.
10400 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10401 headers required by it.
10402 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10403 across variables when flag_tree_coalesce_vars. Check register
10404 use and promoted modes to allow coalescing. Do not coalesce
10405 maybe-byref parms with SSA_NAMEs of other variables, or
10406 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
10407 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10408 with its member functions to tree-ssa-coalesce.c.
10409 (var_map_base_init): Likewise. Renamed to
10410 compute_samebase_partition_bases.
10411 (partition_view_normal): Drop want_bases parameter.
10412 (partition_view_bitmap): Likewise.
10413 * tree-ssa-live.h: Adjust declarations.
10414 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
10415 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10416 default defs at the entry point.
10417 (dump_part_var_map): New.
10418 (compute_optimized_partition_bases): New, called by...
10419 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10420 of compute_samebase_partition_bases. Adjust.
10421 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10422 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
10423 (ssa_default_def_partition): New.
10424 (get_rtl_for_parm_ssa_default_def): New.
10425 (align_local_variable, add_stack_var): Support anonymous SSA
10427 (defer_stack_allocation): Likewise. Declare earlier.
10428 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10429 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10430 Do no record deferred-allocation marker in
10431 SA.partition_to_pseudo.
10432 (expand_stack_vars): Adjust check for the marker in it.
10433 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10434 redundant MEM attr setting.
10435 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10437 (expand_one_stack_var): ... this. New wrapper to check and
10438 skip already expanded SSA partitions.
10439 (record_alignment_for_reg_var): New, factored out of...
10440 (expand_one_var): ... this.
10441 (expand_one_ssa_partition): New.
10442 (adjust_one_expanded_partition_var): New.
10443 (expand_one_register_var): Check and skip already expanded SSA
10445 (expand_used_vars): Don't create DECLs for anonymous SSA
10446 names. Expand all SSA partitions, then adjust all SSA names.
10447 (pass::execute): Replace the loops that set
10448 SA.partition_to_pseudo from partition leaders and cleared
10449 DECL_RTL for multi-location variables, and that which used to
10450 rename vars and set attrs, with one that clears DECL_RTL and
10451 checks that PARMs and RESULTs default_defs match DECL_RTL.
10452 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10453 * emit-rtl.c: Include stor-layout.h.
10454 (set_reg_attrs_for_parm): Handle NULL decl.
10455 (set_reg_attrs_for_decl_rtl): Take mode from expression if
10457 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
10458 rather than its possibly-NULL DECL.
10459 * explow.c (promote_ssa_mode): New.
10460 * explow.h (promote_ssa_mode): Declare.
10461 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10462 (read_complex_part): Export.
10463 * expr.h (read_complex_part): Declare.
10464 * cfgexpand.h (parm_maybe_byref_p): Declare.
10465 * function.c: Include cfgexpand.h.
10466 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10467 (use_register_for_parm_decl): Wrapper for the above to
10468 special-case the result_ptr.
10469 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10470 (split_complex_args): Take assign_parm_data_all argument.
10471 Pass it to rtl_for_parm. Set up rtl and context for split
10472 args. Reset complex parm before fetching its default decl
10474 (assign_parms_unsplit_complex): Use the default-def complex
10475 parm rtl if it matches the components.
10476 (assign_parms_augmented_arg_list): Adjust.
10477 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10478 multiple locations. Recognize split complex args.
10479 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10480 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10481 (assign_parm_setup_block): Prefer SSA-assigned location, and
10482 fill in its address if the memory location of a maybe-byref
10483 parm was not assigned by cfgexpand.
10484 (assign_parm_setup_reg): Likewise. Adjust its mode as
10485 needed. Use entry_parm for equiv if stack_parm is NULL. Make
10486 sure passed_pointer parms don't need conversion. Copy address
10487 or value as needed.
10488 (assign_parm_setup_stack): Prefer SSA-assigned location.
10489 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10490 rtl before testing for pointer bounds. Special-case result_ptr.
10491 (expand_function_start): Maybe reset DECL_RTL of result.
10492 Prefer SSA-assigned location for result and static chain.
10493 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
10494 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
10495 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10496 anonymous SSA names. Use promote_ssa_mode.
10497 (get_temp_reg): Likewise.
10498 (remove_ssa_form): Adjust.
10499 * stor-layout.c (layout_decl): Don't set mem attributes of
10501 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10502 and get its reg_usage for reg invalidation.
10503 (compute_bb_dataflow): Pass it insn.
10504 (emit_notes_in_bb): Likewise.
10506 2015-08-14 Marek Polacek <polacek@redhat.com>
10508 * tree-core.h (tree_base): Fix typo.
10510 2015-08-14 Marek Polacek <polacek@redhat.com>
10512 PR middle-end/67133
10513 * gimple.c (infer_nonnull_range_by_attribute): Check that the
10514 nonnull argument position is not outside function arguments.
10516 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
10519 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
10520 'lconst_atomic' with 'const_atomic'.
10521 (atomic_fetch_<optab><mode>): Likewise.
10522 (atomic_<optab>_fetch<mode>): Likewise.
10523 * config/aarch64/iterators.md (lconst-atomic): Move below
10525 (const_atomic): New.
10527 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
10528 Bernd Schmidt <bernds@codesourcery.com>
10530 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
10532 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
10533 (DWARF2_DEBUGGING_INFO): Don't define.
10534 * debug.h (dwarf2_lineno_debug_hooks): Declare.
10535 * toplev.c (process_options): Add a case for it.
10536 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
10537 (dwarf2out_init): Skip most initializations if
10538 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
10540 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
10541 DWARF2_LINENO_DEBUGGING_INFO.
10542 * opts.c (set_debug_level): Likewise.
10544 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
10546 * config/arm/types.md (is_neon_type): Add missing types.
10548 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
10550 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
10552 * config/i386/i386.c (PTA_SKYLAKE): New macros.
10553 (processor_alias_table): Add skylake description.
10554 (enum processor_model): Add skylake processor.
10555 (arch_names_table): Add skylake record.
10556 * doc/invoke.texi: Add skylake item.
10558 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
10560 * ira-int.h: Include recog.h.
10561 * ira-build.c: Don't include recog.h.
10562 * ira-color.c: Likewise.
10563 * ira-conflicts.c: Likewise.
10564 * ira-costs.c: Likewise.
10565 * ira-emit.c: Likewise.
10566 * ira-lives.c: Likewise.
10568 * sched-deps.c: Likewise.
10569 * sel-sched.c: Likewise.
10570 * target-globals.c: Likewise.
10572 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
10575 * reload1.c (elimination_costs_in_insn): Make it obvious to the
10576 compiler that the n_dups and n_operands loop bounds are invariant.
10578 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10580 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
10581 expressions in A and B.
10583 2015-08-13 Richard Biener <rguenther@suse.de>
10585 * tree.c (nonnull_arg_p): Move from ...
10586 * tree-vrp.c (nonnull_arg_p): ... here.
10587 * tree.h (nonnull_arg_p): Declare.
10588 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
10589 here, register ptr != 0 for nonnull_arg_p pointer arguments.
10590 Properly initialize static chain and by-reference result pointer.
10591 (run_scc_vn): Adjust.
10593 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10595 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
10598 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10600 * config/aarch64/aarch64-protos.h
10601 (aarch64_gen_atomic_cas): Declare.
10602 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
10603 Choose appropriate instruction pattern for the target.
10604 (aarch64_gen_atomic_cas): New.
10605 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
10606 (atomic_compare_and_swap<mode>_1): Rename to
10607 aarch64_compare_and_swap<mode>. Fix some indentation.
10608 (aarch64_compare_and_swap<mode>_lse): New.
10609 (aarch64_atomic_cas<mode>): New.
10611 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10613 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
10616 2015-08-13 Richard Biener <rguenther@suse.de>
10618 PR tree-optimization/67191
10619 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
10620 assert we value-numbered last stmts operand because it can validly
10621 trigger for unreachable code.
10623 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10625 PR rtl-optimization/67103
10626 * ifcvt.c (noce_try_store_flag_constants): Move
10627 x = (-(test != 0) & (b - a)) + a transformation to...
10628 (noce_try_cmove): ... Here. Try it if normal conditional
10631 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10633 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
10635 * config/mips/mips.md (processor): Remove w32 and w64.
10637 2015-08-13 Richard Biener <rguenther@suse.de>
10639 PR tree-optimization/66502
10640 PR tree-optimization/67167
10641 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
10642 backedge arguments.
10643 (vn_phi_lookup): Adjust.
10644 (vn_phi_insert): Likewise.
10645 (visit_phi): Prefer to value-number to another PHI node
10646 over value-numbering to a PHI argument.
10647 (init_scc_vn): Mark DFS back edges.
10649 2015-08-13 Richard Biener <rguenther@suse.de>
10651 * gimple.h (gcall::code_): New constant static member.
10652 (gcond::code_): Likewise.
10653 * gimple.c (gcall::code_): Define.
10654 (gcond::code_): Likewise.
10655 (is_a_helper <const gcond *>): Add.
10656 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
10657 and forward to a new gcall overload with less checking and a
10658 cheaper way to access the operand.
10659 (gimple_call_lhs_ptr): Likewise.
10660 (gimple_call_set_lhs): Likewise.
10661 (gimple_call_internal_p): Likewise.
10662 (gimple_call_with_bounds_p): Likewise.
10663 (gimple_call_set_with_bounds): Likewise.
10664 (gimple_call_internal_fn): Likewise.
10665 (gimple_call_set_ctrl_altering): Likewise.
10666 (gimple_call_ctrl_altering_p): Likewise.
10667 (gimple_call_fntype): Likewise.
10668 (gimple_call_fn): Likewise.
10669 (gimple_call_fn_ptr): Likewise.
10670 (gimple_call_set_fndecl): Likewise.
10671 (gimple_call_fndecl): Likewise.
10672 (gimple_call_chain): Likewise.
10673 (gimple_call_num_args): Likewise.
10674 (gimple_call_arg): Likewise.
10675 (gimple_call_arg_ptr): Likewise.
10676 (gimple_call_set_arg): Likewise.
10677 (gimple_call_noreturn_p): Likewise.
10678 (gimple_cond_code): Likewise.
10679 (gimple_cond_lhs): Likewise.
10680 (gimple_cond_rhs): Likewise.
10681 (gimple_has_lhs): Reduce checking.
10683 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10685 PR middle-end/25529
10686 * match.pd (div (mult @0 @1) @1) : New simplifier.
10688 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10691 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
10692 predicate to allow construction of vector constants using the
10693 VSLDOI vector shift instruction.
10695 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
10698 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
10699 the number of bytes to be shifted left and filled in with either
10700 all zero or all one bits.
10701 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
10703 (output_vec_const_move): On power8, generate XXLORC to generate
10704 a vector constant with all 1's. Do a split if we need to use a
10705 VSLDOI instruction.
10707 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
10708 properly test for the MSB.
10710 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
10711 vector constants that can be created with VSLDOI.
10713 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
10716 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10717 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10718 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10719 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10720 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10721 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10722 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10723 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10724 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10726 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
10728 * config/xtensa/constraints.md (define_constraint "Y"): New
10730 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
10731 * config/xtensa/linux.h (ASM_SPEC): Likewise.
10732 * config/xtensa/predicates.md (move_operand): Match constants
10733 and symbols in the presence of TARGET_AUTO_LITPOOLS.
10734 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
10735 immediate references to TLS data.
10736 (xtensa_emit_move_sequence): Don't force constants to memory in
10737 the presence of TARGET_AUTO_LITPOOLS.
10738 (print_operand): Add 'y' format, same as default, but capable of
10739 printing SF mode constants as well.
10740 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
10741 (movsf_internal): Add movi pattern that loads literal.
10742 (movsf, movdf): Don't force constants to memory in the presence
10743 of TARGET_AUTO_LITPOOLS.
10744 (movdf_internal): Add 'Y' constraint.
10745 * config/xtensa/xtensa.opt (mauto-litpools): New option.
10746 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
10748 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10750 * config/arm/arm-fpus.def: Replace booleans with feature flags.
10752 * config/arm/arm.c (ARM_FPU): Update macro.
10753 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
10754 (TARGET_FP16): Likewise.
10755 (TARGET_CRYPTO): Likewise.
10756 (TARGET_NEON): Likewise.
10757 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
10760 2015-08-12 Tom de Vries <tom@codesourcery.com>
10764 * doc/install.texi: Remove --with_host_libstdcxx item. Update
10765 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
10766 accordingly. Mention default for --with-stage1-ldflags.
10768 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10770 * config/arm/arm.h (arm_fpu_feature_set): New.
10771 (ARM_FPU_FSET_HAS): New.
10772 (FPU_FL_NONE): New.
10773 (FPU_FL_NEON): New.
10774 (FPU_FL_FP16): New.
10775 (FPU_FL_CRYPTO): New.
10777 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10779 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
10780 after -mcmodel=large -fPIC sorry.
10782 2015-08-12 Richard Biener <rguenther@suse.de>
10784 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
10785 comparison operand order and commutative ternary op operand order.
10786 (sccvn_dom_walker::cond_stack): New state to track temporary
10788 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
10790 (sccvn_dom_walker::record_cond): Add a single temporary conditional
10792 (sccvn_dom_walker::record_conds): Add a temporary conditional
10793 expressions and all related expressions also true/false.
10794 (sccvn_dom_walker::before_dom_children): Record temporary
10795 expressions based on the controlling condition of a single
10796 predecessor. When trying to simplify a conditional statement
10797 lookup expressions we might have inserted earlier.
10799 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
10802 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
10803 to ARM core registers.
10805 2015-08-12 Nathan Sidwell <nathan@acm.org>
10807 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
10808 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
10810 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
10812 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
10813 line with comments.
10814 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
10816 2015-08-12 Richard Biener <rguenther@suse.de>
10818 * gimple.h (remove_pointer): New trait.
10819 (GIMPLE_CHECK2): New inline template function.
10820 (gassign::code_): New constant static member.
10821 (is_a_helper<const gassign *>): Add.
10822 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
10823 and forward to a new gassign overload with less checking and a
10824 cheaper way to access the operand.
10825 (gimple_assign_lhs_ptr): Likewise.
10826 (gimple_assign_set_lhs): Likewise.
10827 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
10829 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
10831 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
10833 (gimple_assign_rhs_code): Likewise.
10834 * gimple.c (gassign::code_): Define.
10836 2015-08-12 Richard Biener <rguenther@suse.de>
10838 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10839 Eliminate edges marked as not executable by SCCVN.
10840 * tree-ssa-sccvn.c: Include gimple-iterator.h.
10841 (cond_dom_walker): Rename to sccvn_dom_walker.
10842 (sccvn_dom_walker::before_dom_children): Value-number defs
10844 (run_scc_vn): Remove loop value-numbering all SSA names.
10845 Drop not visited SSA names to varying.
10847 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
10849 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10850 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10851 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10852 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10853 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10854 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10855 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10856 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10857 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10859 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
10862 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
10863 to enum feature_priority and feature_list.
10864 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
10865 and isa_names_table.
10867 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
10869 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
10870 vect_induction_def.
10872 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10876 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
10877 account when deciding what was the command-line status.
10879 2015-08-11 Nathan Sidwell <nathan@acm.org>
10881 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
10883 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
10884 we're not the only contributor to target phi.
10886 2015-08-11 Jiong Wang <jiong.wang@arm.com>
10888 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
10891 2015-08-11 Tom de Vries <tom@codesourcery.com>
10893 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
10895 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
10897 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
10899 * config/i386/i386.md (cpu): Remove knl.
10901 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10904 PR middle-end/66332
10905 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
10906 open-coded sequence.
10907 * omp-low.c (oacc_process_reduction_data): Remove handline of
10908 GOMP_DEVICE_HOST_NONSHM.
10910 * lto-streamer-in.c (lto_input_mode_table): Adjust to
10911 GET_MODE_INNER changes.
10913 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10914 Ilya Verbin <ilya.verbin@intel.com>
10916 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
10918 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10920 * doc/options.texi (EnabledBy): Document that the argument must be
10922 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
10923 Not enabled by -Wall.
10924 * optc-gen.awk: Give nicer error messages. Detect if the argument
10925 of EnabledBy is not a Common option.
10926 * common.opt (Wnull-dereference): Not enabled by -Wall.
10927 * opt-functions.awk (lang_enabled_by): Nicer error messages.
10929 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
10931 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
10932 model == 0x4f as Broadwell.
10934 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
10936 PR rtl-optimization/67028
10937 * combine.c (simplify_comparison): Fix comment. Rearrange code.
10938 Add test to see if a const_int fits in the new mode.
10940 2015-08-07 DJ Delorie <dj@redhat.com>
10942 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
10944 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
10946 PR rtl-optimization/67029
10947 * ira-color.c: Include "recog.h" before including "ira-int.h".
10948 * target-globals.c: Likewise.
10949 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
10950 adds an alternative_mask argument and use it instead of
10951 preferred_alternatives.
10952 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
10953 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
10954 * sched-deps.c: Include "ira-int.h" after including "ira.h".
10955 (sched_analyze_insn): Update call to
10956 ira_implicitly_set_insn_hard_regs.
10957 * sel-sched.c: Include "ira-int.h" after including "ira.h".
10958 (implicit_clobber_conflict_p): Update call to
10959 ira_implicitly_set_insn_hard_regs.
10961 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
10963 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
10965 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
10968 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
10969 currently_expanding_to_rtl is set.
10971 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
10973 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
10974 * configure: Regenerate.
10976 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10977 Jiong Wang <jiong.wang@arm.com>
10979 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10980 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10981 (REG_CLASS_NAMES): Likewise.
10982 (REG_CLASS_CONTENTS): Likewise.
10983 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10984 (aarch64_register_move_cost): Likewise.
10985 (aarch64_load_symref_appropriately): Invoke the new added pattern if
10987 * config/aarch64/constraints.md (Uc0): New constraint.
10989 2015-08-06 Jiong Wang <jiong.wang@arm.com>
10991 * config/aarch64/constraints.md (Usf): Add the test of
10992 aarch64_is_noplt_call_p.
10994 2015-08-06 Jiong Wang <jiong.wang@arm.com>
10996 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
10998 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
10999 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
11000 (call_symbol): Likewise.
11002 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11004 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
11005 for vectorizing multiplication patterns.
11006 * tree-vectorizer.h: Adjust the number of patterns.
11008 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
11010 * config/i386/sse.md (*vec_concatv2df): Declare added
11011 alternatives as sselog type.
11013 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11015 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
11018 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11020 * config/s390/s390.c (s390_expand_tbegin): Expand either
11021 tbegin_1_z13 or tbegin_1 depending on VX flag.
11022 * config/s390/s390.md ("tbegin_1_z13"): New expander.
11024 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11026 * config/s390/s390.opt: Clarify description for -mzvector
11027 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
11030 2015-08-06 Richard Biener <rguenther@suse.de>
11032 * gimple.h (gimple_call_set_fn): Access op member directly.
11033 (gimple_call_chain_ptr): Likewise.
11034 (gimple_call_set_chain): Likewise.
11035 (gimple_cond_lhs_ptr): Likewise.
11036 (gimple_cond_set_lhs): Likewise.
11037 (gimple_cond_rhs_ptr): Likewise.
11038 (gimple_cond_set_rhs): Likewise.
11039 (gimple_cond_true_label): Likewise.
11040 (gimple_cond_set_true_label): Likewise.
11041 (gimple_cond_set_false_label): Likewise.
11042 (gimple_cond_false_label): Likewise.
11043 (gimple_label_label): Likewise.
11044 (gimple_label_set_label): Likewise.
11045 (gimple_goto_set_dest): Likewise.
11046 (gimple_asm_input_op): Likewise.
11047 (gimple_asm_input_op_ptr): Likewise.
11048 (gimple_asm_set_input_op): Likewise.
11049 (gimple_asm_output_op): Likewise.
11050 (gimple_asm_output_op_ptr): Likewise.
11051 (gimple_asm_set_output_op): Likewise.
11052 (gimple_asm_clobber_op): Likewise.
11053 (gimple_asm_set_clobber_op): Likewise.
11054 (gimple_asm_label_op): Likewise.
11055 (gimple_asm_set_label_op): Likewise.
11056 (gimple_switch_index): Likewise.
11057 (gimple_switch_index_ptr): Likewise.
11058 (gimple_return_retval_ptr): Likewise.
11059 (gimple_return_retval): Likewise.
11060 (gimple_return_set_retval): Likewise.
11061 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
11062 (gimple_switch_label): Likewise.
11063 (gimple_switch_set_label): Likewise.
11065 2015-08-06 Richard Biener <rguenther@suse.de>
11067 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
11068 bool comparison canonicalization and restrict to integers.
11070 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
11072 * coretypes.h (enum symbol_visibility): Relocate here.
11073 * flag-types.h (enum symbol_visibility): Remove.
11074 * tree-core.h (enum symbol_visibility): Remove.
11076 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
11079 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
11080 for no_split_stack function attribute along with
11082 (rs6000_expand_split_stack_prologue): Likewise.
11084 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
11085 Jeff Law <law@redhat.com>
11088 * doc/invoke.texi (Wnull-dereference): New.
11089 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
11090 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
11091 Warn for potential NULL dereferences.
11092 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
11093 * ubsan.c (instrument_nonnull_arg): Call
11094 infer_nonnull_range_by_attribute.
11095 (instrument_nonnull_return): Likewise.
11096 * common.opt (Wnull-dereference); New.
11097 * gimple.c (infer_nonnull_range): Remove bool arguments.
11098 (infer_nonnull_range_by_dereference): New.
11099 (infer_nonnull_range_by_attribute): New.
11100 * gimple.h: Update declarations.
11102 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11104 * gensupport.c (sequence_num): Replace with...
11105 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
11106 ...these new variables.
11107 (init_rtx_reader_args_cb): Update accordingly.
11108 (get_num_code_insns): Likewise.
11109 (read_md_rtx): Rework to use a while loop and get_c_test.
11110 Use the new counters. Remove redundant DEFINE_SUBST case.
11111 * genoutput.c (gen_split): Delete.
11112 (main): Don't call it.
11114 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11116 * gensupport.h (get_c_test): Declare.
11117 * gensupport.c (get_c_test): New function.
11118 * genconditions.c (main): Use it.
11119 * genrecog.c (validate_pattern): Likewise.
11120 (match_pattern_1): Likewise. Remove c_test argument.
11121 (match_pattern): Update accordingly and remove c_test argument.
11122 (main): Update accordingly.
11124 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11126 * gensupport.h (get_num_insn_codes): Declare.
11127 * gensupport.c (get_num_insn_codes): New function.
11128 * genattrtab.c (optimize_attrs): Rename max_insn_code to
11130 (main): Likewise. Use get_num_insn_codes.
11131 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
11133 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11135 PR middle-end/66311
11136 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
11137 is zero- rather than sign-extended.
11139 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11141 * target-insns.def (can_extend): Delete.
11143 2015-08-05 Richard Biener <rguenther@suse.de>
11145 PR tree-optimization/67121
11146 * tree-if-conv.c (combine_blocks): Clear range-info produced
11147 by stmts no longer executed conditionally.
11149 2015-08-05 Nick Clifton <nickc@redhat.com>
11151 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
11152 to allow identical far pointers to remain.
11154 2015-08-05 Richard Biener <rguenther@suse.de>
11156 PR middle-end/67120
11157 * match.pd: Compare address bases with == if they are decls
11158 or SSA names, not operand_equal_p. Otherwise fail.
11160 2015-08-05 Richard Biener <rguenther@suse.de>
11162 PR tree-optimization/67055
11163 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
11166 * g++.dg/torture/pr67055.C: New testcase.
11168 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
11170 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
11172 (define_attr "enabled"): Handle avx521vl and noavx512vl.
11173 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
11174 AVX-512 alternative out of SSE.
11175 (define_insn "*vec_concatv2df"): Ditto.
11177 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
11179 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
11180 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
11181 CODE_FOR_avx_ptestv4di.
11182 * config/i386/sse.md (define_mode_iterator V_AVX): New.
11183 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
11184 (define_insn "avx_ptest256"): Merge this ...
11185 (define_insn "sse4_1_ptest"): And this ...
11186 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
11188 2015-08-05 Richard Biener <rguenther@suse.de>
11190 PR tree-optimization/67109
11191 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
11192 against too big groups. Print whether this is a load or store
11193 group. Rename from ...
11194 (vect_analyze_group_access): ... this which is now a wrapper
11195 dissolving an invalid group.
11196 (vect_analyze_data_ref_accesses): Print whether this is a load
11199 2015-08-05 Richard Biener <rguenther@suse.de>
11201 PR middle-end/67107
11202 * match.pd: Guard const_binop result checking against NULL_TREE
11205 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
11207 * cse.c (cse_insn): Restoring old behaviour for src_eqv
11208 when dest and value in the REG_EQUAL are same and dest
11209 is STRICT_LOW_PART.
11211 2015-08-04 Anatoly Sokolov <aesok@post.ru>
11213 * config/moxie/moxie.h (PRINT_OPERAND,
11214 PRINT_OPERAND_ADDRESS): Remove macros.
11215 * config/moxie/moxie-protos.h (moxie_print_operand,
11216 moxie_print_operand_address): Remove declaration.
11217 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
11218 TARGET_PRINT_OPERAND_ADDRESS): Define.
11219 (moxie_print_operand, moxie_print_operand_address): Make static.
11221 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
11224 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
11225 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
11227 2015-08-04 Richard Biener <rguenther@suse.de>
11229 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
11231 (dt_operand::gen_gimple_expr): Adjust.
11233 2015-08-04 Richard Biener <rguenther@suse.de>
11235 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
11236 bool compares on RHS.
11237 * match.pd: Add X ==/!= !X is false/true pattern.
11239 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
11241 * config/aarch64/aarch64.c: Change inner loop statement cost
11242 to be consistent with other targets.
11244 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
11246 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
11249 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
11251 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
11252 (machine_function): Remove pseudos field.
11254 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11256 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11257 Exit early and use target_option_current_node if processing current
11260 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11262 * doc/extend.texi (AArch64 Function Attributes): New node.
11263 (AArch64 Pragmas): Likewise.
11265 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11267 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11268 Initialize simd builtins if TARGET_SIMD.
11269 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
11270 Make sure that the builtins are initialized only once no matter how
11271 many times the function is called.
11272 (aarch64_init_builtins): Unconditionally initialize crc builtins.
11273 (aarch64_relayout_simd_param): New function.
11274 (aarch64_simd_expand_args): Use above during argument expansion.
11275 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
11276 simd builtins if TARGET_SIMD.
11277 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
11279 (aarch64_relayout_simd_types): Likewise.
11281 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11283 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
11284 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
11285 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
11286 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11288 (aarch64_reset_previous_fndecl): New function.
11289 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
11291 * config/aarch64/aarch64-c.c: New file.
11292 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
11293 Push and pop options at beginning and end. Remove ifdef
11294 __ARM_FEATURE_CRC32.
11295 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
11296 Add pragma +nothing+simd and +nothing+crypto where appropriate.
11297 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
11298 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
11300 (aarch64_register_pragmas): Likewise.
11301 (aarch64_reset_previous_fndecl): Likewise.
11302 (aarch64_process_target_attr): Likewise.
11303 (aarch64_override_options_internal): Likewise.
11305 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11307 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
11309 (aarch64_can_inline_p): Likewise.
11310 (TARGET_CAN_INLINE_P): Define.
11312 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11314 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
11315 Remove static. Handle OPT_mgeneral_regs_only,
11316 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
11317 OPT_momit_leaf_frame_pointer.
11318 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
11319 (aarch64_attr_opt_type): New enum.
11320 (aarch64_attribute_info): New struct.
11321 (aarch64_handle_attr_arch): New function.
11322 (aarch64_handle_attr_cpu): Likewise.
11323 (aarch64_handle_attr_tune): Likewise.
11324 (aarch64_handle_attr_isa_flags): Likewise.
11325 (aarch64_attributes): New table.
11326 (aarch64_process_one_target_attr): New function.
11327 (num_occurences_in_str): Likewise.
11328 (aarch64_process_target_attr): Likewise.
11329 (aarch64_option_valid_attribute_p): Likewise.
11330 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
11331 * config/aarch64/aarch64-protos.h: Include input.h
11332 (aarch64_handle_option): Declare prototype.
11334 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11336 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
11337 * config/aarch64/aarch64.c: Include target-globals.h
11338 (aarch64_previous_fndecl): New variable.
11339 (aarch64_set_current_function): New function.
11340 (TARGET_SET_CURRENT_FUNCTION): Define.
11342 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11344 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
11345 (explicit_arch): Likewise.
11346 (x_aarch64_isa_flags): Likewise.
11347 (mgeneral-regs-only): Mark as Save.
11348 (mfix-cortex-a53-835769): Likewise.
11349 (mcmodel=): Likewise.
11350 (mstrict-align): Likewise.
11351 (momit-leaf-frame-pointer): Likewise.
11352 (mtls-dialect): Likewise.
11353 (master=): Likewise.
11354 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
11355 (aarch64_isa_flags): Remove extern declaration.
11356 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
11357 to indicate success or failure.
11358 (aarch64_validate_march): Likewise.
11359 (aarch64_validate_mtune): Likewise.
11360 (aarch64_isa_flags): Delete.
11361 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
11362 instead of aarch64_isa_flags.
11363 (aarch64_get_tune_cpu): New function.
11364 (aarch64_get_arch): Likewise.
11365 (aarch64_override_options): Use above and set up explicit_tune_core
11367 (aarch64_print_extension): Move earlier in file. Add isa_flags
11368 argument and use that instead of the global aarch64_isa_flags.
11369 (aarch64_option_save): New function.
11370 (aarch64_option_restore): Likewise.
11371 (aarch64_option_print): Likewise.
11372 (aarch64_declare_function_name): Likewise.
11373 (aarch64_start_file): Delete.
11374 (TARGET_ASM_FILE_START): Do not define.
11375 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
11376 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
11379 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11381 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
11382 flag_omit_leaf_frame_pointer to 2.
11384 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11386 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
11388 (TARGET_FIX_ERR_A53_835769): New macro.
11389 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11390 handling of opts->x_aarch64_fix_a53_err835769.
11391 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
11392 than aarch64_fix_a53_err835769.
11393 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
11394 * config/aarch64/aarch64-linux.h: Likewise.
11396 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
11398 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
11399 ix86_expand_int_movcc as boolean.
11401 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11403 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
11404 (aarch64_cpu_string): Likewise.
11405 (aarch64_tune_string): Likewise.
11406 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
11407 (aarch64_parse_extension): Return aarch64_parse_opt_result.
11408 Add extra argument to put result into.
11409 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
11410 (aarch64_parse_cpu): Add arguments to put results into. Return
11411 aarch64_parse_opt_result.
11412 (aarch64_parse_tune): Likewise.
11413 (aarch64_override_options_after_change_1): New function.
11414 (aarch64_override_options_internal): New function.
11415 (aarch64_validate_mcpu): Likewise.
11416 (aarch64_validate_march): Likewise.
11417 (aarch64_validate_mtune): Likewise.
11418 (aarch64_override_options): Update to reflect above changes.
11419 Move some logic into aarch64_override_options_internal.
11420 Initialize target_option_default_node and target_option_current_node.
11421 (aarch64_override_options_after_change): Move logic into
11422 aarch64_override_options_after_change_1 and call it with global_options.
11423 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
11424 flag values from that.
11426 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11428 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11429 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
11430 * config/aarch64/aarch64.c (struct processor): Add arch field.
11431 (all_architectures): Handle above, move above all_cores.
11432 (all_cores): Handle above.
11433 (aarch64_parse_arch): Handle above changes.
11434 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
11435 above. Update comments.
11436 (armv8.1-a): Likewise.
11437 * config/aarch64/aarch64-cores.def: Update according to above.
11438 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
11439 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
11440 aarch64_arch_driver_info.
11442 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11444 * config/aarch64/aarch64.c (struct processor): Add ident field.
11445 Rename core sched_core.
11446 (all_cores): Handle above changes.
11447 (all_architectures): Likewise.
11448 (aarch64_parse_arch): Likewise.
11449 (aarch64_override_options): Likewise.
11451 2015-08-04 Richard Biener <rguenther@suse.de>
11453 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
11454 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
11455 comparisons embedded in [VEC_]COND_EXPRs.
11457 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
11459 * tree-if-conv.c: Fix various typos in comments.
11460 * tree-vect-stmts.c: Likewise.
11462 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
11464 PR tree-optimization/67043
11465 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
11466 preheader after hoisting invariant in it.
11467 (find_defs): Force recomputation of all luids.
11469 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
11471 * config/rs6000/htm.md (tabort.): Restrict the source operand to
11472 using a base register.
11474 2015-08-03 David Malcolm <dmalcolm@redhat.com>
11476 * main.c (main): Pass in NULL for toplev's external_timer.
11477 * timevar.c: Include coretypes.h.
11478 (class timer::named_items): New.
11479 (timer::named_items::named_items): New.
11480 (timer::named_items::~named_items): New.
11481 (timer::named_items::push): New.
11482 (timer::named_items::pop): New.
11483 (timer::named_items::print): New.
11484 (timer::timer): Initialize field "m_jit_client_items".
11485 (timer::~timer): New.
11486 (timer::push): Move bulk of implementation to...
11487 (timer::push_internal): ...here. New function.
11488 (timer::pop): Move bulk of implementation to...
11489 (timer::pop_internal): ...here. New function.
11490 (timer::push_client_item): New.
11491 (timer::pop_client_item): New.
11492 (timer::print_row): New function, taken from timer::print.
11493 (timer::print): Print "GCC items" header if we also have client
11494 items. Move row-printing to timer::print_row. Print any client
11496 (timer::get_topmost_item_name): New method.
11497 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
11498 (TV_JIT_CLIENT_CODE): New.
11499 * timevar.h (timer::push_client_item): New declaration.
11500 (timer::pop_client_item): New declaration.
11501 (timer::get_topmost_item_name): New method.
11502 (timer::push_internal): New declaration.
11503 (timer::pop_internal): New declaration.
11504 (timer::print_row): New declaration.
11505 (timer::named_items): New declaration.
11506 (timer::m_jit_client_items): New field.
11507 (timer): Add friend class named_items.
11508 (auto_timevar::auto_timevar): Add timer param.
11509 (auto_timevar::~auto_timevar): Use field "m_timer".
11510 (auto_timevar::m_timer): New field.
11511 * toplev.c (initialize_rtl): Add g_timer as param when
11512 constructing auto_timevar instance.
11513 (toplev::toplev): Add "external_timer" param, and use it to
11514 initialize the "g_timer" global if non-NULL.
11515 (toplev::~toplev): If this created "g_timer", delete it.
11516 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
11517 with "external_timer" timer *.
11519 2015-08-03 Alexander Basov <coohpt@gmail.com>
11521 PR middle-end/64744
11522 PR middle-end/48470
11523 PR middle-end/43404
11524 * cfgexpand.c (expand_one_var): Add check if stack is going to
11525 be used in naked function.
11526 * expr.c (expand_expr_addr_expr_1): Remove excess checking
11527 whether expression should not reside in MEM.
11528 * function.c (use_register_for_decl): Do not use registers for
11529 non-register things (volatile, float, BLKMode) in naked functions.
11531 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
11534 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
11535 Adjust splits to match new pattern.
11537 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11539 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
11542 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
11543 point in VSX registers.
11545 * config/rs6000/constraints.md (wb constraint): Document unused
11547 (we constraint): Likewise.
11548 (wo constraint): Likewise.
11549 (wp constraint): New constraint for IEEE 128-bit floating point in
11551 (wq constraint): Likewise.
11553 * config/rs6000/predicates.md (easy_fp_constant): Add support for
11554 IEEE 128-bit floating point in VSX registers.
11555 (easy_scalar_constant): Likewise.
11557 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
11558 constraints (wp, wq) for IEEE 128-bit floating point in VSX
11560 (rs6000_init_hard_regno_mode_ok): Likewise.
11562 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
11563 floating point in VSX registers.
11566 (VSX_M2): Likewise.
11572 (vsx_le_permute_<mode>): Add support to properly swap bytes for
11573 IEEE 128-bit floating point in VSX registers on little endian.
11574 (vsx_le_undo_permute_<mode>): Likewise.
11575 (vsx_le_perm_load_<mode>): Likewise.
11576 (vsx_le_perm_store_<mode>): Likewise.
11577 (splitters for IEEE 128-bit fp moves): Likewise.
11579 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
11582 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
11583 floating point in VSX registers.
11586 * doc/md.text (Machine Constraints): Document wp and wq
11587 constraints on PowerPC.
11589 2015-08-03 Jeff Law <law@redhat.com>
11591 PR middle-end/66314
11592 PR gcov-profile/66899
11593 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
11594 iterate over the jump threading paths when an element in the
11595 jump threading paths array is eliminated.
11597 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
11599 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
11601 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
11603 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
11604 is_use_properly_guarded the variable def_preds. Free its
11605 contents before returning.
11606 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
11607 (is_use_properly_guarded): Replace local variable def_preds with
11608 a parameter. Adjust accordingly. Only update *def_preds if it's
11611 2015-08-03 Richard Biener <rguenther@suse.de>
11613 * genmatch.c (simplify::for_subst_vec): New member.
11614 (binary_ok): New helper for for lowering.
11615 (lower_for): Delay substituting operators into result expressions
11616 if we can merge the results eventually again.
11617 (capture_info::walk_result): Adjust for user_id appearing as
11618 result expression operator.
11619 (expr::gen_transform): Likewise.
11620 (dt_simplify::gen_1): Likewise.
11621 (dt_simplify::gen): Pass not substituted operators to tail
11622 functions or initialize local variable with it.
11623 (decision_tree::gen): Adjust function signature.
11624 * match.pd: Fix tests against global code and add default
11625 cases to switch stmts.
11627 2015-08-03 Richard Biener <rguenther@suse.de>
11629 * genmatch.c (dt_simplify::gen): Create captures array
11630 with an initializer.
11632 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11634 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
11635 the host compiler is affected by placement new aliasing bug.
11636 * configure: Regenerate.
11637 * Makefile.in (ALIASING_FLAGS): New variable.
11638 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
11640 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
11643 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
11644 (negmulsf3_vfp): Likewise.
11645 (muldf3negdf_vfp): Disable for -frounding-math.
11646 (mulsf3negsf_vfp): Likewise.
11647 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
11648 fix MULT cost with -frounding-math.
11650 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11652 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
11653 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
11654 explicit. Prefer to add the flag whenever possible.
11655 (noce_process_if_block): Try noce_try_store_flag_constants before
11658 2015-08-03 Richard Biener <rguenther@suse.de>
11660 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
11661 New hash-map to record equivalent transforms.
11662 (dt_node::analyze): Populate the equivalent transforms hash-map.
11663 (dt_simplify::info): Add reference to hash-map entry.
11664 (dt_simplify::gen): If we have split out a function for the
11665 transform, generate a call to it.
11666 (sinfo_hashmap_traits::hash): New function.
11667 (compare_op): New helper function for ...
11668 (sinfo_hashmap_traits::equal_keys): ... this new function.
11669 (decision_tree::gen): Split out common equivalent transforms
11672 2015-08-03 Richard Biener <rguenther@suse.de>
11674 * gimple-fold.c (fold_gimple_assign): Remove folding of
11675 the comparison in COND_EXPRs.
11677 2015-08-03 Richard Biener <rguenther@suse.de>
11679 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
11680 on the rhs of assignments first simplify the embedded
11683 2015-08-03 Richard Biener <rguenther@suse.de>
11685 PR tree-optimization/66917
11686 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
11688 (DR_VECT_AUX): New macro.
11689 (set_dr_misalignment): Adjust.
11690 (dr_misalignment): Likewise.
11691 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11692 Compute whether the base is at least element aligned.
11693 * tree-vect-stmts.c (ensure_base_align): Adjust.
11694 (vectorizable_store): If the base is not element aligned
11695 preserve alignment of the original access if misalignment is unknown.
11696 (vectorizable_load): Likewise.
11698 2015-08-02 Martin Sebor <msebor@redhat.com>
11700 * c-family/c.opt (-Wframe-address): New warning option.
11701 * doc/invoke.texi (Wframe-address): Document it.
11702 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
11703 Clarify possible effects of calling the functions with non-zero
11704 arguments and mention -Wframe-address.
11705 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
11707 2015-08-01 Michael Collison <michael.collison@linaro.org
11708 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11710 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
11711 (*arm_umin_cmp): Likewise.
11713 2015-08-01 Caroline Tice <cmtice@google.com>
11716 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
11718 (vtbl_find_mangled_name): New function.
11719 (vtbl_register_mangled_name): New function.
11720 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
11721 mangled name in mangled name vectors.
11722 (find_or_create_vtbl_map_node): Ditto.
11723 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
11724 update recursion_depth on function entry; pass it to every recursive
11725 call; automatically exit if depth > 25 (give up looking at that point).
11726 (verify_bb_vtables): Initialize recursion_depth and pass it to
11727 var_is_used_for_virtual_call_p.
11728 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
11729 global variable decls.
11730 (vtbl_register_mangled_name): New extern function decl.
11732 2015-08-01 Tom de Vries <tom@codesourcery.com>
11734 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
11736 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
11738 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
11739 operation_no_trapping_overflow. Allow non-overflow operations.
11740 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
11743 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
11746 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
11748 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11750 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
11751 Enable for TARGET_32BIT.
11752 (*if_move_neg): Likewise.
11754 2015-07-31 Nick Clifton <nickc@redhat.com>
11756 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
11757 Returns true for __model__.
11758 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11760 2015-07-31 Alan Modra <amodra@gmail.com>
11763 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
11764 (rs6000_emit_prologue): Set it.
11765 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
11767 2015-07-31 Richard Biener <rguenther@suse.de>
11769 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
11770 -> X == (C1 ^ C2) which is already implemented in match.pd.
11771 Remove redundant dispatching to fold_relational_const.
11772 Move unordered self and NaN compares ...
11773 * match.pd: ... as patterns here. Remove some stray captures
11776 2015-07-31 Petr Murzin <petr.murzin@intel.com>
11778 * config/i386/i386.c
11779 (bdesc_special_args): Convert mask type from signed to unsigned for
11781 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
11782 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
11783 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
11784 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
11785 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
11786 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
11787 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
11788 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
11789 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
11790 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
11791 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
11792 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
11793 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
11794 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
11795 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
11796 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
11797 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
11798 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
11799 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
11800 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
11801 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
11802 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
11803 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
11804 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
11805 * config/i386/i386-builtin-types.def
11806 (V16QI_FTYPE_V16SI): Remove.
11807 (V8DF_FTYPE_V8SI): Ditto.
11808 (V8HI_FTYPE_V8DI): Ditto.
11809 (V8SI_FTYPE_V8DI): Ditto.
11810 (V8SF_FTYPE_V8DF): Ditto.
11811 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
11812 (V16HI_FTYPE_V16SI): Ditto.
11813 (V16SF_FTYPE_V16HI): Ditto.
11814 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
11815 (V16SF_FTYPE_V16SI): Ditto.
11816 (V4DI_FTYPE_V4DI): Ditto.
11817 (V16SI_FTYPE_V16SF): Ditto.
11818 (V16SF_FTYPE_FLOAT): Ditto.
11819 (V8DF_FTYPE_DOUBLE): Ditto.
11820 (V8DI_FTYPE_INT64): Ditto.
11821 (V8DI_FTYPE_V4DI): Ditto.
11822 (V16QI_FTYPE_V8DI): Ditto.
11823 (UINT_FTYPE_V4SF): Ditto.
11824 (UINT64_FTYPE_V4SF): Ditto.
11825 (UINT_FTYPE_V2DF): Ditto.
11826 (UINT64_FTYPE_V2DF): Ditto.
11827 (V16SI_FTYPE_V16SI): Ditto.
11828 (V8DI_FTYPE_V8DI): Ditto.
11829 (V16SI_FTYPE_PV4SI): Ditto.
11830 (V16SF_FTYPE_PV4SF): Ditto.
11831 (V8DI_FTYPE_PV2DI): Ditto.
11832 (V8DF_FTYPE_PV2DF): Ditto.
11833 (V4DI_FTYPE_PV2DI): Ditto.
11834 (V4DF_FTYPE_PV2DF): Ditto.
11835 (V16SI_FTYPE_PV2SI): Ditto.
11836 (V16SF_FTYPE_PV2SF): Ditto.
11837 (V8DI_FTYPE_PV4DI): Ditto.
11838 (V8DF_FTYPE_PV4DF): Ditto.
11839 (V8SF_FTYPE_FLOAT): Ditto.
11840 (V4SF_FTYPE_FLOAT): Ditto.
11841 (V4DF_FTYPE_DOUBLE): Ditto.
11842 (V8SF_FTYPE_PV4SF): Ditto.
11843 (V8SI_FTYPE_PV4SI): Ditto.
11844 (V4SI_FTYPE_PV2SI): Ditto.
11845 (V8SF_FTYPE_PV2SF): Ditto.
11846 (V8SI_FTYPE_PV2SI): Ditto.
11847 (V16SF_FTYPE_PV8SF): Ditto.
11848 (V16SI_FTYPE_PV8SI): Ditto.
11849 (V8DI_FTYPE_V8SF): Ditto.
11850 (V4DI_FTYPE_V4SF): Ditto.
11851 (V2DI_FTYPE_V4SF): Ditto.
11852 (V64QI_FTYPE_QI): Ditto.
11853 (V32HI_FTYPE_HI): Ditto.
11854 (V8UHI_FTYPE_V8UHI): Ditto.
11855 (V16UHI_FTYPE_V16UHI): Ditto.
11856 (V32UHI_FTYPE_V32UHI): Ditto.
11857 (V2UDI_FTYPE_V2UDI): Ditto.
11858 (V4UDI_FTYPE_V4UDI): Ditto.
11859 (V8UDI_FTYPE_V8UDI): Ditto.
11860 (V4USI_FTYPE_V4USI): Ditto.
11861 (V8USI_FTYPE_V8USI): Ditto.
11862 (V16USI_FTYPE_V16USI): Ditto.
11863 (V2DF_FTYPE_V2DF_UINT64): Ditto.
11864 (V2DI_FTYPE_V2DF_V2DF): Ditto.
11865 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
11866 (V8DF_FTYPE_V8DF_V8DI): Ditto.
11867 (V4SF_FTYPE_V4SF_UINT64): Ditto.
11868 (V4SI_FTYPE_V4SF_V4SF): Ditto.
11869 (V16SF_FTYPE_V16SF_V16SI): Ditto.
11870 (V64QI_FTYPE_V32HI_V32HI): Ditto.
11871 (V32HI_FTYPE_V16SI_V16SI): Ditto.
11872 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
11873 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
11874 (V32HI_FTYPE_V64QI_V64QI): Ditto.
11875 (V32HI_FTYPE_V32HI_V32HI): Ditto.
11876 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
11877 (V16SI_FTYPE_V16SI_V4SI): Ditto.
11878 (V16SI_FTYPE_V16SI_V16SI): Ditto.
11879 (V16SI_FTYPE_V32HI_V32HI): Ditto.
11880 (V16SI_FTYPE_V16SI_SI): Ditto.
11881 (V8DI_FTYPE_V8DI_V8DI): Ditto.
11882 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
11883 (V8DI_FTYPE_V16SI_V16SI): Ditto.
11884 (V8DI_FTYPE_V8DI_V2DI): Ditto.
11885 (QI_FTYPE_QI): Ditto.
11886 (SI_FTYPE_SI): Ditto.
11887 (DI_FTYPE_DI): Ditto.
11888 (QI_FTYPE_QI_QI): Ditto.
11889 (QI_FTYPE_QI_INT): Ditto.
11890 (HI_FTYPE_HI_INT): Ditto.
11891 (SI_FTYPE_SI_INT): Ditto.
11892 (DI_FTYPE_DI_INT): Ditto.
11893 (HI_FTYPE_V16QI_V16QI): Ditto.
11894 (SI_FTYPE_V32QI_V32QI): Ditto.
11895 (DI_FTYPE_V64QI_V64QI): Ditto.
11896 (QI_FTYPE_V8HI_V8HI): Ditto.
11897 (HI_FTYPE_V16HI_V16HI): Ditto.
11898 (SI_FTYPE_V32HI_V32HI): Ditto.
11899 (QI_FTYPE_V4SI_V4SI): Ditto.
11900 (QI_FTYPE_V8SI_V8SI): Ditto.
11901 (QI_FTYPE_V2DI_V2DI): Ditto.
11902 (QI_FTYPE_V4DI_V4DI): Ditto.
11903 (QI_FTYPE_V8DI_V8DI): Ditto.
11904 (HI_FTYPE_V16SI_V16SI): Ditto.
11905 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
11906 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
11907 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
11908 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
11909 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
11910 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
11911 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
11912 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
11913 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
11914 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
11915 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
11916 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
11917 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
11918 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
11919 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
11920 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
11921 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
11922 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
11923 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
11924 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
11925 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
11926 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
11927 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
11928 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
11929 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
11930 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
11931 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
11932 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
11933 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
11934 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
11935 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
11936 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
11937 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
11938 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
11939 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
11940 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
11941 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
11942 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
11943 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
11944 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
11945 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
11946 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
11947 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
11948 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
11949 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
11950 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
11951 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
11952 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
11953 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
11954 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
11955 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
11956 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
11957 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
11958 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
11959 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
11960 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
11961 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
11962 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
11963 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
11964 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
11965 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
11966 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
11967 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
11968 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
11969 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
11970 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
11971 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
11972 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
11973 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
11974 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
11975 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
11976 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
11977 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
11978 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
11979 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
11980 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
11981 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
11982 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
11983 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
11984 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
11985 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
11986 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
11987 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
11988 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
11989 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
11990 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
11991 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
11992 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
11993 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
11994 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
11995 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
11996 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
11997 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
11998 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
11999 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
12000 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
12001 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
12002 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
12003 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
12004 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
12005 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
12006 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
12007 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
12008 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
12009 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
12010 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
12011 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
12012 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
12013 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
12014 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
12015 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
12016 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
12017 (HI_FTYPE_HI): Ditto.
12018 (HI_FTYPE_V16QI): Ditto.
12019 (SI_FTYPE_V32QI): Ditto.
12020 (DI_FTYPE_V64QI): Ditto.
12021 (QI_FTYPE_V8HI): Ditto.
12022 (HI_FTYPE_V16HI): Ditto.
12023 (SI_FTYPE_V32HI): Ditto.
12024 (QI_FTYPE_V4SI): Ditto.
12025 (QI_FTYPE_V8SI): Ditto.
12026 (HI_FTYPE_V16SI): Ditto.
12027 (QI_FTYPE_V2DI): Ditto.
12028 (QI_FTYPE_V4DI): Ditto.
12029 (QI_FTYPE_V8DI): Ditto.
12030 (V16QI_FTYPE_HI): Ditto.
12031 (V32QI_FTYPE_SI): Ditto.
12032 (V64QI_FTYPE_DI): Ditto.
12033 (V8HI_FTYPE_QI): Ditto.
12034 (V16HI_FTYPE_HI): Ditto.
12035 (V32HI_FTYPE_SI): Ditto.
12036 (V4SI_FTYPE_QI): Ditto.
12037 (V4SI_FTYPE_HI): Ditto.
12038 (V8SI_FTYPE_QI): Ditto.
12039 (V8SI_FTYPE_HI): Ditto.
12040 (V2DI_FTYPE_QI): Ditto.
12041 (V4DI_FTYPE_QI): Ditto.
12042 (HI_FTYPE_HI_HI): Ditto.
12043 (SI_FTYPE_SI_SI): Ditto.
12044 (DI_FTYPE_DI_DI): Ditto.
12045 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
12046 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
12047 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
12048 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
12049 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
12050 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
12051 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
12052 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
12053 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
12054 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
12055 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
12056 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
12057 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
12058 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
12059 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
12060 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
12061 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
12062 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
12063 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
12064 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
12065 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
12066 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
12067 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
12068 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
12069 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
12070 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
12071 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
12072 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
12073 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
12074 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
12075 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
12076 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
12077 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
12078 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
12079 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
12080 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
12081 (V16SI_FTYPE_HI): Ditto.
12082 (V8DI_FTYPE_QI): Ditto.
12083 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
12084 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
12085 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
12086 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
12087 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
12088 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
12089 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
12090 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
12091 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
12092 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
12093 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
12094 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
12095 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
12096 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
12097 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
12098 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
12099 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
12100 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
12101 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
12102 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
12103 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
12104 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
12105 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
12106 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
12107 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
12108 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
12109 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
12110 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
12111 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
12112 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
12113 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
12114 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
12115 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
12116 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
12117 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
12118 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
12119 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
12120 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
12121 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
12122 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
12123 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
12124 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
12125 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
12126 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
12127 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
12128 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
12129 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
12130 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
12131 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
12132 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
12133 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
12134 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
12135 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
12136 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
12137 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
12138 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
12139 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
12140 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
12141 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
12142 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
12143 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
12144 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
12145 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
12146 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
12147 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
12148 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
12149 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
12150 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
12151 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
12152 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
12153 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
12154 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
12155 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
12156 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
12157 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
12158 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
12159 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
12160 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
12161 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
12162 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
12163 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
12164 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
12165 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
12166 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
12167 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
12168 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
12169 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
12170 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
12171 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
12172 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
12173 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
12174 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
12175 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
12176 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
12177 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
12178 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
12179 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
12180 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
12181 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
12182 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
12183 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
12184 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
12185 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
12186 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
12187 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
12188 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
12189 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
12190 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
12191 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
12192 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
12193 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
12194 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
12195 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
12196 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
12197 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
12198 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
12199 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
12200 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
12201 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
12202 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
12203 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
12204 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
12205 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
12206 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
12207 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
12208 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
12209 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
12210 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
12211 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
12212 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
12213 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
12214 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
12215 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
12216 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
12217 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
12218 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
12219 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
12220 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
12221 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
12222 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
12223 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
12224 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
12225 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
12226 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
12227 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
12228 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
12229 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
12230 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
12231 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
12232 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
12233 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
12234 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
12235 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
12236 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
12237 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
12238 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
12239 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
12240 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
12241 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
12242 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
12243 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
12244 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
12245 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
12246 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
12247 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
12248 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
12249 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
12250 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
12251 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
12252 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
12253 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
12254 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
12255 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
12256 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
12257 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
12258 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
12259 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
12260 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
12261 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
12262 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
12263 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
12264 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
12265 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
12266 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
12267 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
12268 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
12269 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
12270 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
12271 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
12272 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
12273 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
12274 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
12275 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
12276 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
12277 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
12278 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
12279 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
12280 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
12281 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
12282 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
12283 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
12284 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
12285 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
12286 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
12287 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
12288 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
12289 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
12290 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
12291 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
12292 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
12293 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
12294 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
12295 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
12296 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
12297 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
12298 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
12299 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
12300 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
12301 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
12302 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
12303 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
12304 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
12305 (QI_FTYPE_V8DF_INT_QI): Ditto.
12306 (QI_FTYPE_V4DF_INT_QI): Ditto.
12307 (QI_FTYPE_V2DF_INT_QI): Ditto.
12308 (HI_FTYPE_V16SF_INT_HI): Ditto.
12309 (QI_FTYPE_V8SF_INT_QI): Ditto.
12310 (QI_FTYPE_V4SF_INT_QI): Ditto.
12311 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
12313 2015-07-31 Richard Biener <rguenther@suse.de>
12315 * gimple-fold.c (fold_gimple_assign): Remove folding of
12318 2015-07-31 Tom de Vries <tom@codesourcery.com>
12320 PR tree-optimization/66846
12321 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
12322 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
12323 (expand_omp_target) [ENABLE_CHECKING]: Same.
12324 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
12325 cfun if !LOOPS_NEED_FIXUP.
12326 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
12327 that omp_for already has its own loop struct.
12328 * tree-parloops.c (create_phi_for_local_result)
12329 (create_call_for_reduction): Handle simple latch bb.
12330 (create_parallel_loop): Add simple latch bb to preserve
12331 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
12332 (gen_parallel_loop): Remove call to cancel_loop_tree.
12333 (parallelize_loops): Skip loops that are inner loops of parallelized
12335 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
12336 verify_loop_structure.
12338 2015-07-30 Anatoly Sokolov <aesok@post.ru>
12340 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
12341 * config/v850/v850.md (RV_REGNUM): New constants.
12342 * config/v850/v850.c (v850_libcall_value): New functions.
12343 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
12344 (TARGET_LIBCALL_VALUE): Define.
12346 2015-07-30 Anatoly Sokolov <aesok@post.ru>
12348 * rtl.h (lowpart_subreg): Move in file.
12349 * loop-iv.c (lowpart_subreg): Move to...
12350 * simplify-rtx.c (lowpart_subreg): ...here.
12351 (simplify_binary_operation_1): Use lowpart_subreg instead of
12352 simplify_gen_subreg.
12353 * expr.c (expand_expr_real_2): Ditto.
12354 * emit-rtl.c (gen_lowpart_common): Ditto.
12355 * combine.c (gen_lowpart_for_combine): Ditto.
12356 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
12357 expand_debug_source_expr): Ditto.
12359 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
12361 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
12362 (expand_builtin_atomic_clear): Remove support for atomic_clear
12365 2015-07-30 Richard Biener <rguenther@suse.de>
12367 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
12368 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
12369 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
12370 redundant operand canonicalization.
12372 2015-07-30 David Sherwood <david.sherwood@arm.com>
12374 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
12375 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
12376 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
12377 * config/arm/arm.c (neon_valid_immediate): Likewise.
12378 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
12379 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
12380 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
12381 (expand_vec_perm_vpshufb2_vpermq): Likewise.
12382 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
12383 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
12384 * config/i386/sse.md
12385 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
12386 (*ssse3_palignr<mode>_perm): Likewise.
12387 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
12388 * config/spu/spu.c (arith_immediate_p): Likewise.
12389 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12390 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
12392 2015-07-30 Richard Biener <rguenther@suse.de>
12394 * genmatch.c (decision_tree::gen_gimple): Merge with ...
12395 (decision_tree::gen_generic): ... this into ...
12396 (decision_tree::gen): ... this.
12397 (main): Adjust callers.
12399 2015-07-30 Richard Biener <rguenther@suse.de>
12401 * genmatch.c (verbose): New global.
12402 (warning_at): Add overload with source_location.
12403 (capture_info::capture_info): Add bool whether generating gimple
12404 or generic. Add gimple member.
12405 (capture_info::cinfo): Add capture member.
12406 (capture_info::walk_match): Record capture. Warn on
12407 non-captured leafs.
12408 (capture_info::walk_c_expr): Add more fragments captures cannot
12409 escape through. Warn on escaped captures.
12410 (dt_simplify::gen_1): Warn on operands we force to have no
12412 (main): Initialize verbose.
12413 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
12415 2015-07-30 Richard Biener <rguenther@suse.de>
12417 PR middle-end/67053
12418 * match.pd: Allow both operands to independently have conversion
12419 when simplifying compares of addresses.
12421 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
12425 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
12426 around those cases that need one.
12428 2015-07-29 Aditya Kumar <hiraditya@msn.com>
12430 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
12432 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
12434 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
12435 New. Copied from config/i386/gnu-user.h.
12436 (ASM_COMMENT_START): Likewise.
12437 (DBX_REGISTER_NUMBER): Likewise.
12439 2015-07-29 Richard Biener <rguenther@suse.de>
12441 * gimple-fold.c (fold_gimple_cond): Remove.
12442 (fold_stmt_1): Do not call it.
12444 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
12446 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
12447 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
12449 * config/aarch64/aarch64-modes.def: Add HFmode.
12451 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12452 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
12454 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
12455 aarch64_promoted_type): New.
12457 (aarch64_float_const_representable_p): Disable HFmode.
12458 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
12459 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
12460 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
12462 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
12463 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
12465 * config/aarch64/iterators.md (GPF_F16): New.
12467 2015-07-29 Richard Biener <rguenther@suse.de>
12469 * match.pd: Merge address comparison patterns and make them
12470 handle some more cases.
12472 2015-07-29 Richard Biener <rguenther@suse.de>
12474 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
12475 (parser::parse_capture): Add bool argument on whether to reject
12477 (parser::parse_expr): Adjust.
12478 (parser::parse_op): Likewise.
12479 (parser::parse_pattern): Likewise.
12481 2015-07-29 Richard Biener <rguenther@suse.de>
12483 * gimple-fold.c (has_use_on_stmt): New function.
12484 (replace_stmt_with_simplification): Use it to allow
12485 abnormals originally referenced in the stmt.
12486 (fold_stmt_1): Canonicalize operand order.
12488 2015-07-28 David Sherwood <david.sherwood@arm.com>
12490 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
12491 GET_MODE_INNER unconditionally.
12492 * config/spu/spu.c (arith_immediate_p): Likewise.
12493 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
12494 * expmed.c (synth_mult): Remove check for VOIDmode result from
12496 (expand_mult_const): Likewise.
12497 * fold-const.c (fold_binary_loc): Replace call to element_precision
12498 with call to GET_MODE_PRECISION.
12499 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
12501 (emit_mode_inner): Likewise.
12502 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
12504 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
12505 (GET_MODE_UNIT_PRECISION): Likewise.
12506 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
12507 * simplify-rtx.c (simplify_immed_subreg): Likewise.
12508 * stor-layout.c (bitwise_type_for_mode): Update assert.
12509 (element_precision): Remove.
12511 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12513 * target-insns.def (reload_load_address): New targetm instruction
12515 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
12517 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12519 * target-insns.def (atomic_test_and_set): New targetm instruction
12521 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
12522 HAVE_*/gen_* interface.
12524 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12526 * target-insns.def (can_extend, ptr_extend): New targetm instruction
12528 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
12529 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12530 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
12531 * rtlanal.c (nonzero_bits1): Likewise.
12532 (num_sign_bit_copies1): Likewise.
12534 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12536 * target-insns.def (eh_return): New targetm instruction pattern.
12537 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
12539 * function.c (thread_prologue_and_epilogue_insns): Remove
12540 preprocessor condition.
12542 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12544 * target-insns.def (indirect_jump): New targetm instruction pattern.
12545 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
12548 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12550 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
12551 instead of nonimmediate_operand. Remove C condiition.
12553 2015-07-28 Richard Biener <rguenther@suse.de>
12555 * match.pd: Add more simplification of address comparisons.
12557 2015-07-28 Richard Biener <rguenther@suse.de>
12559 * match.pd: Re-order two cases in comparison with max/min
12560 value simplification to make it apply for bools.
12562 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12564 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
12565 Handle simple SIGN_EXTEND or ZERO_EXTEND.
12566 (aarch64_rtx_costs): Properly strip extend or extract before
12567 passing down to rtx costs again.
12569 2015-07-28 Nick Clifton <nickc@redhat.com>
12571 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
12572 Optimizes the case where -mes0 is active and a constant symbolic
12574 * config/rl78/rl78-protos.h: Prototype the new function.
12575 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
12577 2015-07-28 Tom de Vries <tom@codesourcery.com>
12579 * tree-parloops.c (reduc_stmt_res): New function.
12580 (initialize_reductions, add_field_for_reduction)
12581 (create_phi_for_local_result, create_loads_for_reductions)
12582 (create_stores_for_reduction, build_new_reduction): Handle case that
12583 reduc_stmt is a phi.
12584 (gather_scalar_reductions): Allow double_reduc reductions.
12586 2015-07-28 Richard Biener <rguenther@suse.de>
12588 * fold-const.c (fold_comparison): Remove equality folding
12589 of decl addresses ...
12590 * match.pd: ... here and merge with existing pattern.
12592 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12594 PR tree-optimization/66828
12595 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
12596 from int64_t to uint64_t.
12598 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
12600 * opts-common.c (read_cmdline_option): List DriverOnly enum values
12601 as valid only in the error message of the driver, not in the
12602 messages of the language compilers.
12604 2015-07-27 Tom de Vries <tom@codesourcery.com>
12606 * tree-parloops.c (gather_scalar_reductions): Simplify function
12609 2015-07-27 Marek Polacek <polacek@redhat.com>
12611 * ipa-devirt.c (types_same_for_odr): Fix typo.
12613 2015-07-27 Jason Merrill <jason@redhat.com>
12616 * dwarf2out.c (gen_inlined_subroutine_die): Check
12617 cgraph_function_possibly_inlined_p.
12619 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12621 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
12622 Place integer variant first.
12623 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12625 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12628 * config/arm/arm-builtins.c (enum arm_builtins):
12629 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
12630 (ARM_BUILTIN_NEON_BASE): Rename macro to....
12631 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
12632 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
12633 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
12635 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12638 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
12639 Add qualifier_lane_index.
12640 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
12641 (arm_getlane_qualifiers): Use qualifier_lane_index.
12642 (arm_lanemac_qualifiers): Rename to...
12643 (arm_mac_n_qualifiers): ...this.
12644 (LANEMAC_QUALIFIERS): Rename to...
12645 (MAC_N_QUALIFIERS): ...this.
12646 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
12647 (arm_setlane_qualifiers): Use qualifier_lane_index.
12648 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
12649 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
12650 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
12651 (arm_expand_neon_builtin): Handle qualifier_lane_index.
12653 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
12654 * config/arm/arm.c (bounds_check): Likewise, improve error message.
12655 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
12656 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
12657 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
12658 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
12659 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
12660 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
12661 qualifiers to TERNOP_IMM.
12662 (vdup_lane): Change qualifiers to GETLANE.
12663 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
12664 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
12665 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
12666 vqdmlsl_n): Change qualifiers to MAC_N.
12668 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
12669 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
12670 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
12671 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
12672 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
12673 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
12674 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
12675 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
12676 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
12677 Remove call to neon_lane_bounds.
12679 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12681 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12682 Place integer variant first.
12684 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
12686 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
12687 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
12688 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
12689 for armv6kz targets.
12690 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
12691 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
12692 (FL_FOR_ARCH6ZK): Remove.
12693 (FL_FOR_ARCH6KZ): New.
12694 (arm_arch6zk): New declaration.
12695 * config/arm/arm-tables.opt: Regenerate.
12696 * config/arm/arm.c (arm_arch6kz): New.
12697 (arm_option_override): Set arm_arch6kz.
12698 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
12699 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
12700 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
12702 2015-07-27 Marek Polacek <polacek@redhat.com>
12706 * doc/invoke.texi: Document -Wtautological-compare.
12708 2015-07-27 Richard Biener <rguenther@suse.de>
12710 * genmatch.c (decision_tree::gen_gimple): Split out large
12711 subtrees into separate functions.
12712 (decision_tree::gen_generic): Likewise.
12714 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
12716 * config/alpha/alpha.c: Use SUBREG_P predicate.
12717 * config/alpha/predicates.md: Ditto.
12719 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
12721 * config.host (s390*-*-*): Include driver-native.c only when
12722 building with s390* as host *and* target.
12724 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
12727 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
12728 T bit register modified_between_p check.
12730 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12732 * config/i386/i386.c: Use SUBREG_P predicate.
12733 * config/i386/i386.md: Ditto.
12734 * config/i386/sse.md: Ditto.
12735 * config/i386/predicates.md: Ditto.
12737 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12740 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
12741 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
12743 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12745 * Makefile.in: Remove use of TREEBROWSER.
12746 * config.in: Regenerated.
12747 * configure: Regenerated.
12748 * configure.ac: Remove definition of TREEBROWSER.
12749 * tree-browser.c: Removed.
12750 * tree-browser.def: Removed.
12752 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12754 * graphite-scop-detection.c: Include gimple-pretty-print.h.
12755 (stmt_simple_for_scop_p): Print when a stmt is not handled in
12757 (scopdet_basic_block_info): Print when a loop or bb cannot be
12758 represented in Graphite.
12760 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12763 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
12764 execution guard when min_size is less than size_needed.
12766 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12768 * doc/install.texi: Document supported versions of ISL.
12770 2015-07-25 Jeff Law <law@redhat.com>
12774 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12775 unable to find X NE 0 in the tables, return X as the simplified
12777 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12778 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
12779 to VISISTED_BBS. */
12780 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12781 after removing the control flow statement and unnecessary edges.
12783 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
12786 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
12788 PR rtl-optimization/64164
12789 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12790 * tree-ssa-copyrename.c: Removed.
12791 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12792 -ftree-coalesce-vars.
12793 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12794 * common.opt (ftree-copyrename): Ignore.
12795 (ftree-coalesce-inlined-vars): Likewise.
12796 * doc/invoke.texi: Remove the ignored options above.
12797 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12798 * tree-ssa-coalesce.h: ... here.
12799 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12800 headers required by it.
12801 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12802 across variables when flag_tree_coalesce_vars. Check register
12803 use and promoted modes to allow coalescing. Moved to
12804 tree-ssa-coalesce.c.
12805 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12806 with its member functions to tree-ssa-coalesce.c.
12807 (var_map_base_init): Likewise. Renamed to
12808 compute_samebase_partition_bases.
12809 (partition_view_normal): Drop want_bases parameter.
12810 (partition_view_bitmap): Likewise.
12811 * tree-ssa-live.h: Adjust declarations.
12812 * tree-ssa-coalesce.c: Include explow.h.
12813 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12814 default defs at the entry point.
12815 (dump_part_var_map): New.
12816 (compute_optimized_partition_bases): New, called by...
12817 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12818 of compute_samebase_partition_bases. Adjust.
12819 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12820 * cfgexpand.c (leader_merge): New.
12821 (get_rtl_for_parm_ssa_default_def): New.
12822 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12823 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12824 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12825 redundant MEM attr setting.
12826 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12828 (expand_one_stack_var): ... this. New wrapper to check and
12829 skip already expanded SSA partitions.
12830 (record_alignment_for_reg_var): New, factored out of...
12831 (expand_one_var): ... this.
12832 (expand_one_ssa_partition): New.
12833 (adjust_one_expanded_partition_var): New.
12834 (expand_one_register_var): Check and skip already expanded SSA
12836 (expand_used_vars): Don't create DECLs for anonymous SSA
12837 names. Expand all SSA partitions, then adjust all SSA names.
12838 (pass::execute): Replace the loops that set
12839 SA.partition_to_pseudo from partition leaders and cleared
12840 DECL_RTL for multi-location variables, and that which used to
12841 rename vars and set attrs, with one that clears DECL_RTL and
12842 checks that PARMs and RESULTs default_defs match DECL_RTL.
12843 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12844 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12845 * explow.c (promote_ssa_mode): New.
12846 * explow.h (promote_ssa_mode): Declare.
12847 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12848 * function.c: Include cfgexpand.h.
12849 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12850 (use_register_for_parm_decl): Wrapper for the above to
12851 special-case the result_ptr.
12852 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12853 (split_complex_args): Take assign_parm_data_all argument.
12854 Pass it to rtl_for_parm. Set up rtl and context for split
12856 (assign_parms_augmented_arg_list): Adjust.
12857 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12858 multiple locations. Recognize split complex args.
12859 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12860 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12861 (assign_parm_setup_block): Prefer SSA-assigned location.
12862 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12863 if stack_parm is NULL.
12864 (assign_parm_setup_stack): Prefer SSA-assigned location.
12865 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12866 rtl before testing for pointer bounds. Special-case result_ptr.
12867 (expand_function_start): Maybe reset DECL_RTL of result.
12868 Prefer SSA-assigned location for result and static chain.
12869 Factor out DECL_RESULT and SET_DECL_RTL.
12870 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12871 anonymous SSA names. Use promote_ssa_mode.
12872 (get_temp_reg): Likewise.
12873 (remove_ssa_form): Adjust.
12874 * stor-layout.c (layout_decl): Don't set mem attributes of
12876 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12877 and get its reg_usage for reg invalidation.
12878 (compute_bb_dataflow): Pass it insn.
12879 (emit_notes_in_bb): Likewise.
12881 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12883 * config/i386/i386.c (ix86_va_start): Remove
12884 unneeded !TARGET_64BIT check.
12885 (ix86_gimplify_va_arg): Ditto.
12887 2015-07-24 Tom de Vries <tom@codesourcery.com>
12889 * graphite-sese-to-poly.c (build_poly_scop): Always call
12890 rewrite_commutative_reductions_out_of_ssa.
12892 2015-07-24 Tom de Vries <tom@codesourcery.com>
12894 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
12895 flag_associative_math to FLOAT_TYPE_P. Honour
12896 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
12898 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12901 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
12902 and "%qD" in warning_at instead of "%q+D" in warning.
12904 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
12906 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
12907 (ix86_function_abi): Cleanup.
12909 2015-07-24 Michael Darling <darlingm@gmail.com>
12912 * acinclude.m4: Reflects renaming of configure.in to configure.ac
12913 * configure: Likewise
12914 * configure.ac: Likewise
12915 * doc/install.texi: Likewise
12916 * doc/tm.texi: Likewise
12917 * doc/tm.texi.in: Likewise
12919 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12921 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
12922 manually swapping values.
12923 * cse.c (fold_rtx): Likewise.
12924 * lra-eliminations.c (form_sum): Likewise.
12926 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
12929 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
12930 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
12931 (*jcc_1, *jcc_2, jump, simple_return_internal)
12932 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
12933 Set length_nobnd attribute instead of length attribute.
12934 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
12935 (length_nobnd): Remove attribute.
12936 (length): Remove length_nobnd processing.
12938 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
12940 * gimplify.c (omp_default_clause): New function. Reorganize flow
12941 for clarity. Broken out of ...
12942 (omp_notice_variable): ... here.
12944 2015-07-24 Gary Funck <gary@intrepid.com>
12946 PR middle-end/66984
12947 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
12948 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
12950 2015-07-24 Tom de Vries <tom@codesourcery.com>
12952 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
12953 exit-first loop transform.
12955 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
12958 * tree-cfg.c (struct replace_decls_d): New struct.
12959 (replace_block_vars_by_duplicates_1): New function.
12960 (replace_block_vars_by_duplicates): Use it to replace the decls
12961 in the value exprs by duplicates.
12963 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
12965 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
12966 -shared, -symbolic, -rdynamic.
12968 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
12971 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
12972 -dynamic-linker within %{!static %{!shared, and -rdynamic within
12975 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
12978 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
12979 edge summary is available.
12981 2015-07-24 Richard Biener <rguenther@suse.de>
12983 * genmatch.c (struct dt_node): Add statistic fields.
12984 (dt_node::analyze): New method.
12985 (decision_tree::gen_gimple): Call analyze on the root node
12986 and print statistics to stderr.
12987 (decision_tree::gen_generic): Likewise.
12989 2015-07-24 Richard Biener <rguenther@suse.de>
12991 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
12992 against the highest or lowest possible integer ...
12993 * match.pd: ... as patterns here.
12995 2015-07-24 Richard Biener <rguenther@suse.de>
12997 * genmatch.c (struct capture_info): Add same_as field.
12998 (capture_info::capture_info): Initialize same_as.
12999 (capture_info::walk_match): Compute same_as.
13000 (capture_info::walk_result): Compute stuff for the leader.
13001 (capture_info::walk_c_expr): Likewise.
13002 (dt_simplify::gen_1): Only look at leaders when deciding
13003 to force no side-effects or emit side-effects of omitted operands.
13005 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13007 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
13008 reg note to the GPR -> FPR save instructions.
13010 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13012 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
13014 (s390_expand_insv): Don't generate risbg pattern for constant zero
13016 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
13017 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
13020 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13022 * config/s390/s390.c (s390_reorg): Clean up handling of processors
13025 (s390_issue_rate): Likewise.
13026 (s390_sched_reorder): Likewise.
13027 (s390_sched_variable_issue): Likewise.
13028 (s390_loop_unroll_adjust): Likewise.
13029 (s390_option_override): Likewise.
13031 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13033 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
13034 processor capabilities with -march=native.
13035 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
13036 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
13037 (S390_TARGET_BITS_STRING): Macro to simplify specs.
13039 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13041 * config/s390/s390.c (s390_issue_rate): Handle
13042 PROCESSOR_2094_Z9_EC.
13043 (s390_option_override): Likewise.
13044 (s390_adjust_priority): Likewise.
13046 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13048 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
13049 when cross compiling.
13051 2015-07-24 Richard Biener <rguenther@suse.de>
13053 * fold-const.c (maybe_canonicalize_comparison_1): Move
13054 A code CST canonicalization ...
13055 * match.pd: ... to a pattern here.
13057 2015-07-24 Jiong Wang <jiong.wang@arm.com>
13060 2015-07-22 Jiong Wang <jiong.wang@arm.com>
13062 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13063 (HONOR_REG_ALLOC_ORDER): Define.
13065 2015-07-24 Richard Biener <rguenther@suse.de>
13067 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
13068 * fold-const.c (fold_comparison): Move parameter does not
13069 alias &local simplification ...
13070 * match.pd: ... as a pattern here.
13072 2015-07-24 Richard Biener <rguenther@suse.de>
13074 * gimple-fold.c (replace_stmt_with_simplification): Special-case
13075 valueizing call operands.
13076 * gimple-match-head.c (maybe_push_res_to_seq): Take
13077 number of call arguments from ops array.
13078 (do_valueize): New function.
13079 (gimple_simplify): Return true if valueization changed
13080 any operand even if the result didn't simplify further.
13082 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13084 PR middle-end/25530
13085 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
13087 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13089 PR middle-end/25529
13090 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
13092 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13094 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
13097 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13099 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
13102 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
13104 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
13105 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
13107 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
13108 ms_va_list_type_node initialization.
13110 2015-07-23 Jeff Law <law@redhat.com>
13113 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13114 unable to find X NE 0 in the tables, return X as the simplified
13116 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13117 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13118 to VISISTED_BBS. */
13119 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13120 after removing the control flow statement and unnecessary edges.
13122 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
13124 * tree-pass.h (get_current_pass_name): Removed.
13126 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
13128 PR rtl-optimization/64164
13129 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13130 * tree-ssa-copyrename.c: Removed.
13131 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13132 -ftree-coalesce-vars.
13133 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13134 * common.opt (ftree-copyrename): Ignore.
13135 (ftree-coalesce-inlined-vars): Likewise.
13136 * doc/invoke.texi: Remove the ignored options above.
13137 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13138 * tree-ssa-coalesce.h: ... here.
13139 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13140 headers required by it.
13141 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13142 across variables when flag_tree_coalesce_vars. Check register
13143 use and promoted modes to allow coalescing. Moved to
13144 tree-ssa-coalesce.c.
13145 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13146 with its member functions to tree-ssa-coalesce.c.
13147 (var_map_base_init): Likewise. Renamed to
13148 compute_samebase_partition_bases.
13149 (partition_view_normal): Drop want_bases parameter.
13150 (partition_view_bitmap): Likewise.
13151 * tree-ssa-live.h: Adjust declarations.
13152 * tree-ssa-coalesce.c: Include explow.h.
13153 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13154 default defs at the entry point.
13155 (dump_part_var_map): New.
13156 (compute_optimized_partition_bases): New, called by...
13157 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13158 of compute_samebase_partition_bases. Adjust.
13159 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13160 * cfgexpand.c (leader_merge): New.
13161 (get_rtl_for_parm_ssa_default_def): New.
13162 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13163 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13164 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13165 redundant MEM attr setting.
13166 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13168 (expand_one_stack_var): ... this. New wrapper to check and
13169 skip already expanded SSA partitions.
13170 (record_alignment_for_reg_var): New, factored out of...
13171 (expand_one_var): ... this.
13172 (expand_one_ssa_partition): New.
13173 (adjust_one_expanded_partition_var): New.
13174 (expand_one_register_var): Check and skip already expanded SSA
13176 (expand_used_vars): Don't create DECLs for anonymous SSA
13177 names. Expand all SSA partitions, then adjust all SSA names.
13178 (pass::execute): Replace the loops that set
13179 SA.partition_to_pseudo from partition leaders and cleared
13180 DECL_RTL for multi-location variables, and that which used to
13181 rename vars and set attrs, with one that clears DECL_RTL and
13182 checks that PARMs and RESULTs default_defs match DECL_RTL.
13183 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13184 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13185 * explow.c (promote_ssa_mode): New.
13186 * explow.h (promote_ssa_mode): Declare.
13187 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13188 * function.c: Include cfgexpand.h.
13189 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13190 (use_register_for_parm_decl): Wrapper for the above to
13191 special-case the result_ptr.
13192 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13193 (split_complex_args): Take assign_parm_data_all argument.
13194 Pass it to rtl_for_parm. Set up rtl and context for split
13196 (assign_parms_augmented_arg_list): Adjust.
13197 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13198 multiple locations. Recognize split complex args.
13199 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13200 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13201 (assign_parm_setup_block): Prefer SSA-assigned location.
13202 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13203 if stack_parm is NULL.
13204 (assign_parm_setup_stack): Prefer SSA-assigned location.
13205 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13206 rtl before testing for pointer bounds. Special-case result_ptr.
13207 (expand_function_start): Maybe reset DECL_RTL of result.
13208 Prefer SSA-assigned location for result and static chain.
13209 Factor out DECL_RESULT and SET_DECL_RTL.
13210 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13211 anonymous SSA names. Use promote_ssa_mode.
13212 (get_temp_reg): Likewise.
13213 (remove_ssa_form): Adjust.
13214 * stor-layout.c (layout_decl): Don't set mem attributes of
13216 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13217 and get its reg_usage for reg invalidation.
13218 (compute_bb_dataflow): Pass it insn.
13219 (emit_notes_in_bb): Likewise.
13221 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
13224 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
13226 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
13227 (rs6000_emit_2insn_and): Handle dot forms.
13228 * config/rs6000/rs6000.md (and<mode>3): Adjust.
13229 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
13230 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
13232 2015-07-23 Richard Biener <rguenther@suse.de>
13234 * generic-match-head.c: Include cgraph.h.
13235 * gimple-match-head.c: Likewise.
13236 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
13238 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
13239 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
13242 2015-07-23 Richard Biener <rguenther@suse.de>
13244 * gimple-fold.c (fold_gimple_cond): Do not require folding
13245 results to pass valid_gimple_rhs_p.
13246 * tree-cfg.h (fold_cond_expr_cond): Remove.
13247 * tree-cfg.c (fold_cond_expr_cond): Likewise.
13248 (make_edges): Do not call it.
13249 * tree-inline.c (tree_function_versioning): Likewise.
13251 2015-07-23 Tom de Vries <tom@codesourcery.com>
13253 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
13254 vect_force_simple_reduction.
13255 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
13256 (vect_is_simple_reduction_1): Add and handle
13257 need_wrapping_integral_overflow parameter.
13258 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
13259 need_wrapping_integral_overflow parameter.
13260 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
13261 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
13264 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
13266 PR tree-optimization/66926,66951
13267 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
13268 INNER_LOOP and fix up condition for renaming virtual operands.
13270 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13272 * combine.c (try_combine): Use std::swap instead of manually
13275 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
13277 * config/mips/i6400.md: New file.
13278 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
13279 (mips64r6): Likewise.
13281 * config/mips/mips-tables.opt: Regenerate.
13282 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
13283 (mips_issue_rate): Add support for i6400.
13284 (mips_multipass_dfa_lookahead): Likewise.
13285 * config/mips/mips.h (TUNE_I6400): Define.
13286 * config/mips/mips.md: Include i6400.md.
13287 (processor): Add i6400.
13288 * doc/invoke.texi (-march=@var{arch}): Add i6400.
13290 2015-07-23 Richard Biener <rguenther@suse.de>
13292 PR middle-end/66916
13293 * match.pd: Guard widen and sign-change comparison simplification
13296 2015-07-23 Richard Biener <rguenther@suse.de>
13298 PR tree-optimization/66945
13299 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
13300 ::before_dom_children): Force the propagators idea of
13301 non-executable edges to materialize, not what the folder
13304 2015-07-23 Richard Biener <rguenther@suse.de>
13306 * gimple.h (gimple_cond_make_false): Use 0 != 0.
13307 (gimple_cond_make_true): Use 1 != 0.
13309 2015-07-22 DJ Delorie <dj@redhat.com>
13311 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
13314 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
13315 (ashrhi3): Likewise.
13316 (lshrhi3): Likewise.
13317 (movhi): Take advantage of zero-extend to load small constants.
13318 (movpsi): Likewise.
13319 (and<mode>3): Likewise.
13320 (zero_extendqihi2): Likewise.
13321 (zero_extendqisi2): New.
13322 * config/msp430/constraints.md (N,O): New.
13323 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
13325 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
13328 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
13329 to enum feature_priority and feature_list.
13330 (fold_builtin_cpu): Add F_AES to enum processor_features
13331 and isa_names_table.
13333 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
13336 * config/i386/linux-common.h (MPX_SPEC): Use linker option
13337 for 64bit target only.
13339 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
13341 * config/nvptx/nvptx.c: Expand some comments.
13343 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
13345 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
13346 (cortex_a53_advsimd): ...This.
13348 2015-07-22 Richard Biener <rguenther@suse.de>
13350 * genmatch.c (expr::gen_transform): Clarify error message
13351 and display location.
13353 2015-07-22 Richard Biener <rguenther@suse.de>
13355 * genmatch.c (struct operand): Add location member.
13356 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
13358 (struct simplify): Remove match_location and result_location
13360 (elsehwere): Adjust.
13362 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
13364 * config/mips/m5100.md: New file.
13365 * config/mips/mips-cpus.def (m5100, m5101): Define.
13366 * config/mips/mips-tables.opt: Regenerate.
13367 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
13368 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
13369 -march=m5101 to -mips32r5.
13370 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
13371 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
13373 * config/mips/mips.md: Include m5100.md.
13374 (processor): Add m5100.
13375 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
13377 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
13379 * config/mips/mips-cpus.def (interaptiv): Define.
13380 * config/mips/mips-tables.opt: Regenerate.
13381 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
13383 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
13384 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
13386 2015-07-22 Jiong Wang <jiong.wang@arm.com>
13389 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13390 (HONOR_REG_ALLOC_ORDER): Define.
13392 2015-07-22 Richard Biener <rguenther@suse.de>
13394 PR tree-optimization/66952
13395 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
13396 blocks we end up executing unconditionally reset all SSA
13397 info such as range and alignment.
13398 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
13399 * tree-ssanames.c (reset_flow_sensitive_info): New function.
13401 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
13403 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
13406 2015-07-22 Richard Biener <rguenther@suse.de>
13408 * genmatch.c (parser::parse_result): Properly handle
13409 match with result operands and conditions.
13411 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
13414 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
13415 Add qualifier_struct_load_store_lane_index.
13416 (aarch64_types_loadstruct_lane_qualifiers): Use
13417 qualifier_struct_load_store_lane_index for lane index argument for
13419 (aarch64_types_storestruct_lane_qualifiers): Ditto.
13420 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13421 (aarch64_simd_expand_args): Add new argument describing mode of
13422 builtin. Check lane bounds for arguments with
13423 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13424 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
13425 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13426 (aarch64_simd_expand_builtin): Handle arguments with
13427 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
13428 aarch64_simd_expand_args.
13429 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
13430 vst[234]_lane with BUILTIN_VALLDIF.
13431 * config/aarch64/aarch64-simd.md:
13432 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
13433 endianness reversal on lane index.
13434 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
13435 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
13436 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
13437 (vec_store_lanesci_lane<mode>): Ditto.
13438 (vec_store_lanesxi_lane<mode>): Ditto.
13439 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
13440 reversal of lane index.
13441 (aarch64_ld3_lane<mode>): Ditto.
13442 (aarch64_ld4_lane<mode>): Ditto.
13443 (aarch64_st2_lane<mode>): Ditto.
13444 (aarch64_st3_lane<mode>): Ditto.
13445 (aarch64_st4_lane<mode>): Ditto.
13446 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
13447 to qmode. Add new mode parameter. Update uses.
13448 (__LD3_LANE_FUNC): Ditto.
13449 (__LD4_LANE_FUNC): Ditto.
13450 (__ST2_LANE_FUNC): Ditto.
13451 (__ST3_LANE_FUNC): Ditto.
13452 (__ST4_LANE_FUNC): Ditto.
13454 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
13456 * doc/invoke.texi (Language Independent Options): Rename node to
13457 Diagnostic Message Formatting Options.
13459 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
13462 * lra-remat.c (operand_to_remat): Prevent using insns with input
13463 subregs processed separately by IRA.
13465 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
13467 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
13469 (single_imm_use): Check for iterator node.
13470 (num_imm_uses): Likewise.
13471 * tree-ssa-operands.c (has_zero_uses_1): Delete.
13472 (single_imm_use_1): Check for iterator node.
13474 2015-07-21 Mike Frysinger <vapier@gentoo.org>
13475 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13477 * configure.ac: Add check for new options in isl-0.15.
13478 * config.in, configure: Rebuilt.
13479 * graphite-blocking.c: Include <isl/constraint.h>
13480 * graphite-interchange.c, graphite-poly.c: Likewise.
13481 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
13482 * graphite.c: Likewise.
13483 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
13485 * graphite-dependences.c: Include <isl/constraint.h>.
13486 (max_number_of_out_dimensions): Returns isl_stat.
13487 (extend_schedule_1): Likewise
13488 (extend_schedule): Corresponding changes.
13489 * graphite-optimize-isl.c: Include <isl/constraint.h> and
13491 (getSingleMap): Change return type of isl_stat.
13492 (optimize_isl): Conditionally use
13493 isl_options_set_schedule_serialize_sccs.
13494 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
13495 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
13497 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
13500 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
13501 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
13503 2015-07-21 Richard Biener <rguenther@suse.de>
13505 PR tree-optimization/66948
13506 * genmatch.c (capture_info::walk_match): Also recurse to
13507 captures. Properly compute expr state from captures of
13509 * match.pd: Add single-use guards to
13510 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
13512 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
13514 * config/nvptx/mkoffload.c (process): Add static destructor call.
13516 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13518 PR middle-end/66915
13519 * match.pd (A - B -> A + (-B)): Don't allow folding
13520 when type if a fixed-point type.
13522 2015-07-20 DJ Delorie <dj@redhat.com>
13524 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
13525 (iorqi3_real): Likewise for set1.
13527 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
13529 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
13532 2015-07-20 Aditya Kumar <hiraditya@msn.com>
13534 * graphite-isl-ast-to-gimple.c:
13535 Refactor so that each function can access 'region'. This will help
13536 maintain a parameter rename_map within a region.
13538 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
13540 * config/rs6000/rs6000.md (*lt0_disi): New.
13542 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
13545 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
13546 "available letters" comment.
13547 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
13548 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
13549 and_2rld_operand): Delete.
13550 (and_operand): Adjust.
13551 (rotate_mask_operator): New.
13552 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
13553 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
13554 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
13555 extract_ME): Delete.
13556 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13557 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
13558 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
13559 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13560 rs6000_emit_2insn_and): New.
13561 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
13562 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
13563 includes_rldic_lshift_p, includes_rldicr_lshift_p,
13564 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
13565 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13566 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
13567 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
13568 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13569 rs6000_emit_2insn_and): New.
13570 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
13571 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
13573 <NOT>: Don't fall through to next case.
13574 <AND>: Handle the various rotate-and-mask cases directly.
13575 <IOR>: Always cost as one insn.
13576 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
13577 (and<mode>3): Adjust expander for the new patterns.
13578 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
13579 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
13580 (*and<mode>3_imm_dot_shifted): New.
13581 (*and<mode>3_mask): Delete, rewrite as ...
13582 (and<mode>3_mask): ... New.
13583 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
13584 (andsi3_internal0_nomc): Delete.
13585 (*andsi3_internal6): Delete.
13586 (*and<mode>3_2insn): New.
13587 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13588 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13589 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
13590 *insvdi_internal3): Delete.
13591 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
13592 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
13593 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
13594 *ior<mode>_mask): New.
13595 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
13596 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13597 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13598 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13600 (ashr<mode>3): Delete expander.
13601 (*ashr<mode>3): Rename to ...
13602 (ashr<mode>3): ... This.
13603 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
13604 (*rotldi3_internal4, *rotldi3_internal5 and split,
13605 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
13606 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
13607 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
13608 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
13609 (splitter for loading a mask): Adjust.
13610 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
13612 2015-07-20 Marek Polacek <polacek@redhat.com>
13614 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
13615 output_add_clobbers, output_added_clobbers_hard_reg_p,
13616 gen_rtx_scratch): Remove declarations.
13618 2015-07-20 Marek Polacek <polacek@redhat.com>
13621 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
13623 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13625 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
13626 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
13628 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13630 * combine.c (combine_simplify_rtx): Move simplification step
13631 before various transformations/substitutions.
13633 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
13635 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
13636 (struct int_traits): Likewise.
13638 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13640 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
13641 function to vmsdbgout_function_decl.
13643 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13646 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
13647 from misaligned positions.
13648 (ix86_expand_pinsr): Reject insertions to misaligned positions.
13650 2015-07-18 Sebastian Pop <s.pop@samsung.com>
13652 PR middle-end/46851
13653 PR middle-end/60340
13654 * Makefile.in: Removed omega.o.
13655 * common.opt: Document flag fcheck-data-deps as deprecated.
13656 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
13657 its associated params: omega-max-vars, omega-max-geqs,
13658 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
13659 omega-max-keys, omega-eliminate-redundant-constraints.
13660 * doc/loop.texi: Remove all the section on Omega.
13661 * graphite-blocking.c: Include missing params.h: it used to be
13662 included through tree-data-ref.h and omega.h.
13663 * graphite-isl-ast-to-gimple.c: Same.
13664 * graphite-optimize-isl.c: Same.
13665 * graphite-sese-to-poly.c: Same.
13666 * graphite.c: Same.
13669 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
13670 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
13671 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
13672 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
13673 * passes.def: Remove pass_check_data_deps.
13674 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
13675 (dump_conflict_function): Same.
13676 (dump_subscript): Same.
13677 (print_direction_vector): Same.
13678 (print_dir_vectors): Same.
13679 (print_lambda_vector): Same.
13680 (print_dist_vectors): Same.
13681 (dump_data_dependence_relation): Same.
13682 (dump_data_dependence_relations): Same.
13683 (dump_dist_dir_vectors): Same.
13685 (init_omega_eq_with_af): Removed.
13686 (omega_extract_distance_vectors): Removed.
13687 (omega_setup_subscript): Removed.
13688 (init_omega_for_ddr_1): Removed.
13689 (init_omega_for_ddr): Removed.
13690 (ddr_consistent_p): Removed.
13691 (compute_affine_dependence): Do not use omega to check data
13693 (compute_data_dependences_for_bb): Removed.
13694 (analyze_all_data_dependences): Removed.
13695 (tree_check_data_deps): Removed.
13696 * tree-data-ref.h: Do not include omega.h.
13697 (compute_data_dependences_for_bb): Removed.
13698 (tree_check_data_deps): Removed.
13699 * tree-ssa-loop.c (pass_check_data_deps): Removed.
13700 (make_pass_check_data_deps): Removed.
13701 * tree-ssa-phiopt.c: Include params.h.
13702 * tree-vect-data-refs.c: Same.
13703 * tree-vect-slp.c: Same.
13705 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13707 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
13708 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
13709 (mem->fpreg splitters): Ditto.
13710 (general_operand->nonimmediate_operand splitter): Use explicit modes.
13711 Disable DFmode for TARGET_64BIT.
13713 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
13716 * config/i386/i386.c (ix86_expand_prologue): Replicate static
13717 chain on the stack.
13719 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13721 * config/nvptx/mkoffload.c (process): Constify host data.
13722 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13723 Constify host data.
13724 (generate_host_descr_file): Likewise.
13726 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
13727 Sebastian Pop <s.pop@samsung.com>
13729 PR middle-end/61929
13730 * graphite-dependences.c (add_pdr_constraints): Renamed
13731 pdr->extent to pdr->subscript_sizes.
13732 * graphite-interchange.c (build_linearized_memory_access): Add
13733 back all gcc_assert's that the "isl_int to isl_val conversion"
13734 patch has removed. Refactored.
13735 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
13736 * graphite-poly.c (new_poly_dr): Same.
13737 (free_poly_dr): Same.
13738 * graphite-poly.h (struct poly_dr): Same.
13739 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
13740 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
13741 * graphite-scop-detection.h: Fix space.
13742 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
13743 back all gcc_assert's removed by a previous patch.
13744 (wrap): Remove the_isl_ctx global variable that the same patch has
13746 (build_loop_iteration_domains): Same.
13747 (add_param_constraints): Same.
13748 (pdr_add_data_dimensions): Same. Refactored.
13749 (build_poly_dr): Renamed extent to subscript_sizes.
13751 2015-07-17 Marek Polacek <polacek@redhat.com>
13753 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
13754 * match.pd: ... here.
13756 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13758 * config/nvptx/mkoffload.c (process): Constify target data.
13759 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13760 Constify target data.
13761 (generate_target_offloadend_file): Likewise.
13763 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
13765 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
13766 to allow renaming of PHI arguments on edges incoming from outer
13767 loop header, add corresponding check before start PHI iterator.
13768 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
13769 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
13770 with true force_vectorize. Set-up dominator for outer loop too.
13771 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
13772 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
13773 was marked with force_vectorize and has restricted cfg.
13774 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
13776 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
13777 do peeling for outer loops.
13779 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
13780 Matthias Klose <doko@ubuntu.com>
13782 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
13783 build-sysroot, sysroot from the `Miscenalleous configure options' to
13784 the `Directories' section and strip trailing `/' from with_sysroot.
13785 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
13786 * configure: Regenerated.
13788 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13791 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
13792 (TARGET_HARD_DF_REGS): Ditto.
13793 (TARGET_HARD_XF_REGS): Ditto.
13794 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
13795 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
13796 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
13797 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
13798 (*movsf_internal): Add alternatives 16 and 17. Enable
13799 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
13801 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13803 PR rtl-optimization/66891
13804 * calls.c (expand_call): Wrap precompute_register_parameters with
13805 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
13807 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
13809 * config/nvptx/mkoffload.c (process): Constify mapping variables.
13810 Define target data struct and initialize it.
13812 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
13814 PR rtl-optimization/66626
13815 * ira.h (emit-rtl.h): Include.
13816 (non_spilled_static_chain_regno_p): New.
13817 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
13818 unless it is non spilled static chain pseudo.
13819 (assign_hard_rego): Spill memory profitable allocno unless it is
13820 non spilled static chain pseudo.
13821 (allocno_spill_priority_compare): Put non spilled static chain
13822 pseudo at the end of sorted array.
13823 (improve_allocation): Do nothing if we have static chain and
13825 (allocno__priority_compare_func): Put non spilled static chain
13826 pseudo at the beginning of sorted array.
13827 (move_spill_restore): Ignore non spilled static chain pseudo.
13828 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
13829 to non spilled static chain pseudo.
13830 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
13831 pseudo at the beginning of sorted array.
13832 (spill_for): Spill non spilled static chain pseudo last.
13833 * lra-constraints.c (lra_constraints): Remove static chain pseudo
13834 check for equivalence.
13836 2015-07-16 Martin Liska <mliska@suse.cz>
13839 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
13840 dst_ctx if it does not exist.
13842 2015-07-16 Martin Liska <mliska@suse.cz>
13844 * hash-set.h (remove): New function.
13845 (iterator): New iteration class for hash_set.
13847 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13849 * genattrtab.c (make_canonical): Add a file_location parameter.
13850 Use fatal_at rather than fatal.
13851 (get_attr_value): Likewise. Update call to make_canonical.
13852 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
13853 (make_internal_attr): Update calls accordingly.
13855 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13857 * read-md.h (message_with_line, error_with_line): Delete.
13858 * read-md.c (message_with_line, error_with_line): Delete.
13859 * gensupport.h: Include read-md.h.
13860 (md_rtx_info): New structure.
13861 (read_md_rtx): Use it. Return a bool success value.
13862 * gensupport.c (read_md_rtx): Likewise.
13863 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
13864 (main): Update after interface changes.
13865 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
13866 (main): Update after interface changes.
13867 * genattrtab.c (insn_code_number): Delete.
13868 (optimize_attrs): Add a max_insn_code parameter and use it instead
13869 of insn_code_number.
13870 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
13871 Use *_at rather than *_with_line functions.
13872 (gen_insn): Likewise.
13873 (gen_delay): Likewise.
13874 (gen_insn_reserv): Likewise.
13875 (gen_bypass): Take an md_rtx_info rather than an rtx.
13876 (main): Update after interface changes. Use a local max_insn_code
13877 variable instead of insn_code_number.
13878 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
13879 an rtx. Use fatal_at rather than fatal.
13880 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
13881 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
13882 (gen_absence_set, gen_final_absence_set, gen_automaton)
13883 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
13884 (main): Update after interface changes.
13885 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
13887 (main): Update after interface changes.
13888 * genconditions.c (main): Use new read_md_rtx interface.
13889 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
13890 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
13891 (main): Update after interface changes.
13892 * genemit.c (insn_code_number, insn_index_number): Delete.
13893 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13894 Use fatal_at rather than fatal.
13895 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
13897 (gen_split): Likewise.
13898 (main): Update after interface changes.
13899 * genextract.c (line_no): Delete.
13900 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13901 Update call to walk_rtx.
13902 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
13903 rather than message_with_line.
13904 (walk_rtx): Add an md_rtx_info argument. Update call to
13905 VEC_safe_set_locstr.
13906 (main): Update after interface changes.
13907 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
13908 and lineno. Use error_at rather than separate message_with_line
13909 calls and have_error assignments.
13910 (main): Update after interface changes.
13911 * genmddump.c (main): Use new read_md_rtx interface.
13912 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
13913 (main): Update after interface changes.
13914 * genoutput.c (next_code_number): Delete.
13915 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13916 (gen_peephole, gen_expand, gen_split): Likewise.
13917 (note_constraint): Likewise. Use *_at rather than *_with_line
13919 (main): Update after interface changes.
13920 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
13922 (main): Update after interface changes.
13923 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
13924 than an rtx and lineno.
13925 (process_define_constraint): Likewise.
13926 (process_define_register_constraint): Likewise.
13927 (main): Update after interface changes.
13928 * genrecog.c (next_insn_code, pattern_lineno): Delete.
13929 (validate_pattern): Replace top-level rtx with an md_rtx_info.
13930 Use *_at rather than *_with_line functions.
13931 (match_pattern_2): Likewise.
13932 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
13933 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
13934 Use *_at rather than *_with_line functions.
13935 * gentarget-def.c (add_insn): New function.
13936 (main): Use it. Use new read_md_rtx interface.
13938 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13940 * gensupport.h (compute_test_codes): Take a file_location rather
13941 than a line number.
13942 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
13943 rather than *_with_line functions.
13944 (process_define_predicate): Update call to compute_test_codes.
13945 * genpreds.c (validate_exp): Take a file_location rather than a
13946 line number. Use *_at functions rather than *_with_line functions.
13947 (process_define_predicate): Update call to validate_exp.
13948 (constraint_data): Replace lineno field with a file_location.
13949 (add_constraint): Take a file_location rather than a line number.
13950 Use *_at functions rather than *_with_line functions. Fix error
13951 message for address constraints. Update after changes to
13952 validate_exp, constraint_data and compute_test_codes.
13953 (process_define_constraint): Update accordingly.
13954 (process_define_register_constraint): Likewise.
13956 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13958 * genoutput.c (data): Use a file_location to record the source
13961 (idata, idata_end): Remove initialization.
13962 (constraint_data): Replace lineno with a file_location.
13963 (output_insn_data): Update after changes to data.
13964 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
13965 (scan_operands): Likewise, using *_at rather than *_with_line
13967 (process_template): Likewise.
13968 (validate_insn_alternatives): Likewise.
13969 (validate_insn_operands): Likewise.
13970 (validate_optab_operands): Likewise.
13971 (init_insn_for_nothing): Initialize idata and idata_end.
13972 (note_constraint): Update after changes to constraint_data,
13973 using at rather than with_line functions.
13974 (mdep_constraint_len): Take a file_location rather than a
13975 line number. Use at rather than with_line functions.
13977 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13979 * read-md.h (fatal_at): Declare.
13980 * read-md.c (fatal_at): New function.
13981 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
13982 to record the source position.
13983 (check_attr_test): Take a file_location instead of a line number.
13984 Use fatal_at instead of fatal.
13985 (check_attr_value): Update after above changes, using "at"
13986 rather than "with_line" reporting functions.
13987 (convert_set_attr_alternative): Likewise.
13988 (gen_attr): Likewise.
13989 (check_defs): Likewise. Don't assign to read_md_filename.
13990 (gen_insn): Update initialization after above changes.
13991 (gen_delay): Likewise.
13992 (write_insn_cases): Print the filename for a define_peephole.
13993 (gen_insn_reserv): Take a line number as argument and update
13994 the call to check_attr_test.
13995 (main): Pass a line number to gen_insn_reserv.
13997 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13999 * read-md.h (file_location): New structure.
14000 (directive_handler_t): Take a file_location rather than a line number.
14001 (message_at, error_at): Declare.
14002 (read_skip_construct): Delete.
14003 * read-md.c (message_with_line_1): Replace with...
14004 (message_at_1): ...this new function.
14005 (message_at, error_at): New functions.
14006 (message_with_line, error_with_line): Update to use message_at_1.
14007 (handle_enum): Take a file_location rather than a line number
14008 and use error_at for error reporting.
14009 (handle_include): Likewise.
14010 (read_skip_construct): Likewise. Make static.
14011 (handle_file): Update after above changes. Pass a file_location
14012 rather than a line number to handle_directive.
14013 * gensupport.c (queue_elem): Replace separate filename and lineno
14014 with a file_location.
14015 (queue_pattern): Replace filename and lineno arguments with a
14016 file_location. Update after change to queue_elem.
14017 (process_define_predicate): Replace lineno argument with a
14018 file_location and use error_at for error reporting. Update
14019 after above changes.
14020 (process_rtx): Likewise.
14021 (subst_pattern_match): Likewise.
14022 (get_alternatives_number): Likewise.
14023 (alter_predicate_for_insn): Likewise.
14024 (rtx_handle_directive): Likewise.
14025 (is_predicable): Update after above changes, using error_at rather
14026 than error_with_line.
14027 (has_subst_attribute): Likewise.
14028 (identify_predicable_attribute): Likewise.
14029 (alter_attrs_for_subst_insn): Likewise.
14030 (process_one_cond_exec): Likewise.
14031 (process_substs_on_one_elem): Likewise.
14032 (process_define_subst): Likewise.
14033 (check_define_attr_duplicates): Likewise.
14034 (read_md_rtx): Update after change to queue_elem.
14036 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14038 * genoutput.c (next_index_number): Delete.
14039 (data): Remove index_number.
14040 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
14041 (main): Remove manipulation of next_index_number.
14043 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14045 * genattrtab.c (check_attr_value): Remove handling of null attrs.
14046 (make_canonical): Likewise.
14048 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
14050 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
14051 instead of adjust_address_nv.
14052 (restore_stack_nonlocal): Likewise.
14053 (nonlocal_goto): Likewise.
14055 2015-07-16 Tom de Vries <tom@codesourcery.com>
14057 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
14058 not have a corresponding loop header phi.
14060 2015-07-16 Tom de Vries <tom@codesourcery.com>
14062 * tree-parloops.c (create_loads_for_reductions): Handle case that
14063 reduction is unused.
14065 2015-07-16 Richard Biener <rguenther@suse.de>
14067 PR tree-optimization/66894
14068 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
14069 about deriving NE_EXPR from truncated values.
14071 2015-07-16 Martin Liska <mliska@suse.cz>
14074 (object_allocator): Add new class.
14075 (pool_allocator::initialize): Use the underlying class.
14076 (pool_allocator::allocate): Likewise.
14077 (pool_allocator::remove): Likewise.
14078 (operator new): A new generic allocator.
14079 * asan.c (struct asan_mem_ref): Remove unused members.
14080 (asan_mem_ref_new): Replace new operator with
14081 object_allocator::allocate.
14082 (free_mem_ref_resources): Change deallocation.
14083 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
14084 with object_allocator.
14085 * config/sh/sh.c (add_constant): Replace new operator with
14086 object_allocator::allocate.
14087 (sh_reorg): Change call to a release method.
14088 * cselib.c (struct elt_list): Remove unused members.
14089 (new_elt_list): Replace new operator with
14090 object_allocator::allocate.
14091 (new_elt_loc_list): Likewise.
14092 (new_cselib_val): Likewise.
14093 (unchain_one_elt_list): Change delete operator with remove method.
14094 (unchain_one_elt_loc_list): Likewise.
14095 (unchain_one_value): Likewise.
14096 (cselib_finish): Release newly added static allocators.
14097 * cselib.h (struct cselib_val): Remove unused members.
14098 (struct elt_loc_list): Likewise.
14099 * df-problems.c (df_chain_alloc): Replace pool_allocator with
14101 * df-scan.c (struct df_scan_problem_data): Likewise.
14102 (df_scan_alloc): Likewise.
14103 * df.h (struct dataflow): Likewise.
14104 * dse.c (struct read_info_type): Likewise.
14105 (struct insn_info_type): Likewise.
14106 (struct dse_bb_info_type): Likewise.
14107 (struct group_info): Likewise.
14108 (struct deferred_change): Likewise.
14109 (get_group_info): Likewise.
14110 (delete_dead_store_insn): Likewise.
14111 (free_read_records): Likewise.
14112 (replace_read): Likewise.
14113 (check_mem_read_rtx): Likewise.
14114 (scan_insn): Likewise.
14115 (dse_step1): Likewise.
14116 (dse_step7): Likewise.
14117 * et-forest.c (struct et_occ): Remove unused members.
14118 (et_new_occ): Use allocate instead of new operator.
14119 (et_new_tree): Likewise.
14120 (et_free_tree): Call release method explicitly.
14121 (et_free_tree_force): Likewise.
14122 (et_free_pools): Likewise.
14123 (et_split): Use remove instead of delete operator.
14124 * et-forest.h (struct et_node): Remove unused members.
14125 * ipa-cp.c: Change pool_allocator to object_allocator.
14126 * ipa-inline-analysis.c: Likewise.
14127 * ipa-profile.c: Likewise.
14128 * ipa-prop.c: Likewise.
14129 * ipa-prop.h: Likewise.
14130 * ira-build.c (initiate_cost_vectors): Cast return value.
14131 (ira_allocate_cost_vector): Likewise.
14132 * ira-color.c (struct update_cost_record): Remove unused members.
14133 * lra-int.h (struct lra_live_range): Likewise.
14134 (struct lra_copy): Likewise.
14135 (struct lra_insn_reg): Likewise.
14136 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
14137 * lra.c (new_insn_reg): Replace new operator with allocate method.
14138 (free_insn_regs): Same for operator delete.
14139 (finish_insn_regs): Release new static allocator.
14140 (finish_insn_recog_data): Likewise.
14141 (lra_free_copies): Replace delete operator with remove method.
14142 (lra_create_copy): Replace operator new with allocate method.
14143 (invalidate_insn_data_regno_info): Same for remove method.
14144 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
14145 (free_debug_insn_changes): Replace delete operator with remove method.
14146 (replace_oldest_value_reg): Replace operator new with allocate method.
14147 (pass_cprop_hardreg::execute): Release new static variable.
14148 * sched-deps.c (sched_deps_init): Change pool_allocator to
14150 * sel-sched-ir.c: Likewise.
14151 * sel-sched-ir.h: Likewise.
14152 * stmt.c (expand_case): Likewise.
14153 (expand_sjlj_dispatch_table): Likewise.
14154 * tree-sra.c (struct access): Remove unused members.
14155 (struct assign_link): Likewise.
14156 (sra_deinitialize): Release newly added static pools.
14157 (create_access_1):Replace operator new with allocate method.
14158 (build_accesses_from_assign): Likewise.
14159 (create_artificial_child_access): Likewise.
14160 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
14161 pool_allocator to object_allocator.
14162 * tree-ssa-pre.c: Likewise.
14163 * tree-ssa-reassoc.c: Likewise.
14164 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14165 * tree-ssa-strlen.c: Likewise.
14166 * tree-ssa-structalias.c: Likewise.
14167 * var-tracking.c (onepart_pool_allocate): New function.
14168 (unshare_variable): Use the newly added function.
14169 (variable_merge_over_cur): Likewise.
14170 (variable_from_dropped): Likewise.
14171 (variable_was_changed): Likewise.
14172 (set_slot_part): Likewise.
14173 (emit_notes_for_differences_1): Likewise.
14174 (vt_finalize): Release newly added static pools.
14176 2015-07-16 Martin Jambor <mjambor@suse.cz>
14178 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
14179 all uses. Fix two typos in its general comment.
14180 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
14182 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
14184 * config/i386/linux-common.h (LINK_MPX): New.
14185 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
14186 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
14187 indicating '-z bndplt' support by linker.
14188 * configure: Regenerate.
14189 * config.in: Regenerate.
14191 2015-07-16 Richard Biener <rguenther@suse.de>
14193 * fold-const.c (fold_widened_comparison): Remove.
14194 (fold_sign_changed_comparison): Likewise.
14195 (fold_comparison): Move widened and sign-changed comparison
14197 * match.pd: ... to patterns here.
14198 * generic-match-head.c: Include target.h.
14199 * gimple-match-head.c: Likewise.
14201 2015-07-16 Richard Biener <rguenther@suse.de>
14203 * tree-ssa-dom.c (dom_valueize): New function.
14204 (record_temporary_equivalences): Also record equivalences
14205 for dominating stmts that have uses of equivalences we are
14208 2015-07-16 Bin Cheng <bin.cheng@arm.com>
14210 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
14211 add_autoinc_candidates.
14212 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
14213 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
14214 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
14215 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
14217 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
14218 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
14219 Remove parameter struct iv*. Call add_autoinc_candidates here.
14220 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
14221 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
14223 (find_iv_candidates): Call new functions.
14225 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
14227 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
14228 uninitialized-variable warning.
14230 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
14233 * config/sh/sh.md (movdi): Split simple reg move to two movsi
14234 when the destination is R0.
14236 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
14239 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
14240 * config/i386/i386.c (ix86_expand_pextr): New function.
14241 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
14242 for non-lowpart subregs.
14243 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
14244 (insv<mode>): Use SWI248 mode iterator.
14245 (insv<mode>_1): Ditto.
14247 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14248 Sebastian Pop <s.pop@samsung.com>
14250 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
14251 iterator to use_stmt.
14253 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14254 Sebastian Pop <s.pop@samsung.com>
14256 * graphite-scop-detection.c (build_scops_1): Discard scops for
14259 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14260 Sebastian Pop <s.pop@samsung.com>
14262 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
14263 case of a return statement in scop.
14265 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14266 Sebastian Pop <s.pop@samsung.com>
14268 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
14269 INTEGER_TYPE parameters.
14270 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
14271 VECTOR_CST in scan_tree_for_params.
14272 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
14274 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
14276 * gimple-pretty-print.h: Don't include pretty-print.h.
14277 * tree-streamer.h: Don't include lto-streamer.h.
14278 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
14279 * gimple-streamer-in.c: Remove redundant includes.
14280 * gimple-streamer-out.c: Likewise.
14281 * ipa-devirt.c: Likewise.
14282 * ipa-icf.c: Likewise.
14283 * ipa-inline-analysis.c: Likewise.
14284 * ipa-polymorphic-call.c: Likewise.
14285 * ipa-profile.c: Likewise.
14286 * ipa-prop.c: Likewise.
14287 * ipa-pure-const.c: Likewise.
14288 * lto-cgraph.c: Likewise.
14289 * lto-streamer-in.c: Likewise.
14290 * lto-streamer-out.c: Likewise.
14291 * lto-streamer.c: Likewise.
14292 * tree-streamer-in.c: Likewise.
14293 * tree-streamer-out.c: Likewise.
14294 * tree-streamer.c: Likewise.
14296 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
14298 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
14300 * opts.c: Remove multiline #include comment.
14302 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
14304 * config/nvptx/mkoffload.c (process): Add C++ protection to
14307 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14310 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
14311 null before IEEE 128-bit floating point support patch.
14313 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14315 * simplify-rtx.c (simplify_ternary_operation): Add simplification
14316 for (!c) != {0,...,0} ? a : b for vector modes.
14318 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
14319 Martin Jambor <mjambor@suse.cz>
14321 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
14322 struct func_body_info* instead of struct ipa_node_params*, expecting
14323 fbi->info to be filled in. Replace throughout. Adjust call to
14324 ipa_load_from_parm_agg.
14325 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
14326 instead of struct ipa_node_params*. Adjust calls to other functions
14327 so that they pass either fbi or fbi->info.
14328 (set_switch_stmt_execution_predicate): Likewise.
14329 (will_be_nonconstant_predicate): Likewise.
14330 (compute_bb_predicates): Likewise.
14331 (estimate_function_body_sizes): Move asserts earlier. Fill in
14332 struct func_body_info, replace parms_info with fbi.info. Adjust
14333 calls to functions that now accept struct func_body_info.
14334 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
14335 (struct func_body_info): Likewise.
14336 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
14337 remove static. Adjust callers.
14338 (ipa_load_from_parm_agg): Remove.
14339 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
14340 (func_body_info): Likewise.
14341 (ipa_load_from_parm_agg): Adjust prototype.
14343 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14345 * gensupport.c (rtx_handle_directive): Adjust.
14346 * read-rtl.c (apply_iterators): Take vector to add rtxs to
14347 instead of expr list rtx.
14348 (add_define_attr_for_define_subst): Likewise.
14349 (add_define_subst_attr): Likewise.
14350 (read_subst_mapping): Likewise.
14351 (read_rtx): Likewise.
14352 * rtl.h (read_rtx): Adjust.
14354 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14356 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
14358 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14361 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
14362 (*tls_local_dynamic_base_64_<mode>): Ditto.
14363 (*tls_local_dynamic_base_64_largepic): Ditto.
14364 (tls_global_dynamic_64_<mode>): Update expander pattern.
14365 (tls_local_dynamic_base_64_<mode>): Ditto.
14367 2015-07-15 Richard Biener <rguenther@suse.de>
14369 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
14370 and bool_var == 1 -> bool_var simplifications ...
14371 * match.pd: ... to patterns here. Factor out negate_expr_p
14372 cases from the A - B -> A + (-B) patterns as negate_expr_p
14373 predicate and add a -(A + B) -> (-B) - A pattern.
14375 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
14377 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
14379 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
14380 Robert Suchanek <robert.suchanek@imgtec.com>
14382 * config/mips/mips.c (mips_int_mask): New enum.
14383 (mips_shadow_set): Likewise.
14384 (int_mask): New variable.
14385 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
14386 (machine_function): Add int_mask and use_shadow_register_set.
14387 (mips_attribute_table): Add attribute handlers for interrupt and
14388 use_shadow_register_set.
14389 (mips_interrupt_mask): New static function.
14390 (mips_handle_interrupt_attr): Likewise.
14391 (mips_handle_use_shadow_register_set_attr): Likewise.
14392 (mips_use_shadow_register_set): Change return type to enum
14393 mips_shadow_set. Add argument handling for use_shadow_register_set
14395 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
14396 compare with mips_shadow_set enum.
14397 (mips_compute_frame_info): Add interrupt mask and
14398 use_shadow_register_set to per-function information structure.
14399 Add a stack slot for EPC unconditionally.
14400 (mips_expand_prologue): Compare use_shadow_register_set value
14401 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
14402 masked interrupt register but in EIC mode use K0 and save Cause in K0.
14403 EPC saved and restored unconditionally. Use PMODE_INSN macro when
14404 copying the stack pointer from the shadow register set.
14405 * config/mips/mips.h (SR_IM0): New define.
14406 * config/mips/mips.md (mips_rdpgpr): Rename to...
14407 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
14408 * doc/extend.texi (Declaring Attributes of Functions): Document
14409 optional arguments for interrupt and use_shadow_register_set
14412 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
14414 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
14415 interrupt attribute.
14416 (mips_expand_prologue): Disable the floating point unit in an ISR.
14417 * config/mips/mips.h (SR_COP1): New define.
14419 2015-07-15 Richard Biener <rguenther@suse.de>
14421 * genmatch.c (parser::peek, parser::peek_ident): Add argument
14422 to tell how many tokens to peek ahead (default 1).
14423 (parser::eat_token, parser::eat_ident): Return token consumed.
14424 (parser::parse_result): Parse new switch statement.
14425 * match.pd: Use case statements where appropriate.
14427 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14429 PR rtl-optimization/58066
14430 * calls.c (expand_call): Precompute register parameters before stack
14431 alignment is performed.
14433 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14435 PR rtl-optimization/66838
14436 * postreload.c (reload_cse_move2add): Also process
14437 CALL_INSN_FUNCTION_USAGE when resetting information of
14438 call-clobbered registers.
14440 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14441 Cesar Philippidis <cesar@codesourcery.com>
14442 Chung-Lin Tang <cltang@codesourcery.com>
14444 * config/nios2/constraints.md (U, v): New constraints.
14445 * config/nios2/predicates.md (rdprs_dcache_operand): New.
14446 (ldstex_memory_operand): New.
14447 * config/nios2/sync.md: New file.
14448 * config/nios2/nios2.md (unspecv): Add new builtin function
14450 (rdprs, flushd, flushda, wrpie, eni): New patterns.
14451 (top-level): Include sync.md.
14452 * config/nios2/nios2.c (N2_FTYPES): Add function types for
14454 (N2_BUILTINS): Add arch field setting, add new builtins.
14455 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
14457 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
14458 Also handle ldex/stex/ldsex/stsex builtins.
14459 (nios2_expand_rdprs_builtin): New function.
14460 (nios2_expand_cache_builtin): New function.
14461 (nios2_expand_wrpie_builtin): New function.
14462 (nios2_expand_eni_builtin): New function.
14463 (nios2_expand_builtin): Add arch field handling and new builtin
14465 * doc/extend.texi (Altera Nios II Built-in Functions): Document
14467 * doc/md.texi (Machine Constraints): Document U and v constraints.
14469 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14470 Cesar Philippidis <cesar@codesourcery.com>
14471 Chung-Lin Tang <cltang@codesourcery.com>
14473 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
14474 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
14475 callee_save_reg_size and uses_anonymous_args fields.
14476 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
14477 (nios2_create_cfa_notes): New function.
14478 (nios2_adjust_stack): New function for adjusting stack.
14479 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
14480 Use nios2_adjust_stack.
14481 (nios2_expand_epilogue): Likewise.
14482 (nios2_expand_return): New function.
14483 (nios2_can_use_return_insn): Update for CDX pop.n usage.
14484 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
14485 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
14486 * config/nios2/nios2.md (return): Use nios2_expand_return.
14488 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14489 Cesar Philippidis <cesar@codesourcery.com>
14490 Chung-Lin Tang <cltang@codesourcery.com>
14492 * config/nios2/predicates.md (pop_operation): New.
14493 (ldwm_operation, stwm_operation): New.
14494 (nios2_hard_register_operand): New.
14495 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
14496 (ldstwm_operation_p): Declare.
14497 (gen_ldstwm_peep): Declare.
14498 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
14499 (base_reg_adjustment_p): New.
14500 (pop_operation_p): New.
14501 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
14502 (nios2_ldstwm_regset_p): New.
14503 (ldstwm_operation_p): New.
14505 (nios2_ldst_parallel): New.
14506 (struct ldswm_operand): Declare.
14507 (compare_ldstwm_operands): New.
14508 (can_use_cdx_ldstw): New.
14509 (gen_ldstwm_peep): New.
14510 * config/nios2/nios2-ldstwm.sml: New.
14511 * config/nios2/nios2.md: Include ldstwm.md.
14512 * config/nios2/ldstwm.md: Generated.
14514 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14515 Cesar Philippidis <cesar@codesourcery.com>
14516 Chung-Lin Tang <cltang@codesourcery.com>
14518 * config/nios2/nios2.h (LABEL_ALIGN): Define.
14519 (REG_ALLOC_ORDER): Define.
14520 (ADJUST_REG_ALLOC_ORDER): Define.
14521 (HONOR_REG_ALLOC_ORDER): Define.
14522 (CDX_REG_P): Define.
14523 (ANDCLEAR_INT): Define.
14524 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
14525 (nios2_label_align): Declare.
14526 (nios2_cdx_narrow_form_p): Declare.
14527 (nios2_adjust_reg_alloc_order): Declare.
14528 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
14530 (nios2_large_unspec_reloc_p): New function, split from...
14531 (nios2_legitimate_pic_operand_p): ...here.
14532 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
14533 (nios2_print_operand_punct_valid_p): New.
14534 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
14535 (split_mem_address): New.
14536 (split_alu_insn): New.
14538 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
14539 (enum nios2_add_insn_kind): New.
14540 (nios2_add_insn_names, nios2_add_insn_narrow): New.
14541 (nios2_add_insn_classify): New.
14542 (nios2_add_insn_asm): New.
14543 (nios2_cdx_narrow_form_p): New.
14544 (label_align, min_labelno, max_labelno): New.
14545 (nios2_reorg): New.
14546 (nios2_label_align): New.
14547 (nios2_adjust_reg_alloc_order): New.
14548 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14549 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14550 * config/nios2/constraints.md (P): New constraint.
14551 * config/nios2/predicates.md (const_and_operand): New.
14552 (and_operand): New.
14553 (stack_memory_operand): New.
14554 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
14555 (length): Update to use nios2_cdx_narrow_form_p().
14556 (type): Add new insn type values.
14557 (control, alu, st, ld, shift): Update insn reservations with
14558 new insn type values.
14559 (*high, *lo_sum): Define new insn patterns for constant generation.
14560 (movqi_internal, movhi_internal, movsi_internal): Reduce
14561 alternatives, update asm template to handle CDX variants, update
14563 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
14564 template, update type attributes.
14565 (extendhisi2, extendqi<mode>2): Likewise.
14566 (addsi3): Change to use function for asm string.
14567 (subsi3): Add CDX notation to asm template, update type attributes.
14568 (negsi3, one_cmplsi3): Likewise.
14569 (andsi3): New pattern, specialized from logical patterns.
14570 (<code>si3): Remove and case, combine alternatives, update asm
14572 (<shift_op>si3): Add CDX notation, update type attributes.
14573 (rotrsi3): Update type attribute.
14574 (*merge, extzv, insv): New insn patterns.
14575 (return): Change to define_expand.
14576 (simple_return): Add CDX notation, update type attributes.
14577 (indirect_jump): Add CDX notation.
14578 (jump): Update asm cases, update length attribute expression.
14579 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
14580 (nios2_cbranch): Update asm cases and length attribute expression
14581 to handle CDX variants.
14582 (nios2_cmp<code>): Update asm template.
14583 (nop): Add CDX notation, update type attributes.
14584 (trap): Add CDX notation.
14585 (ctrapsi4): Update asm cases and length attribute expression to
14586 handle CDX variant.
14587 * doc/md.texi (Machine Constraints): Document P constraint.
14589 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14590 Cesar Philippidis <cesar@codesourcery.com>
14591 Chung-Lin Tang <cltang@codesourcery.com>
14593 * config/nios2/nios2.h (SMALL_INT12): New macro.
14594 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
14595 (nios2_valid_addr_expr_p): Use it.
14596 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
14597 with implicit "io" instructions on R2.
14598 * config/nios2/constraints.md (w): New constraint.
14599 * config/nios2/predicates.md (ldstio_memory_operand): New.
14600 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
14601 operand predicate and constraint.
14602 (ld<bh>io_signed, st<bhw>io>): Likewise.
14603 * doc/md.texi (Machine Constraints): Document w constraint.
14605 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14606 Cesar Philippidis <cesar@codesourcery.com>
14607 Chung-Lin Tang <cltang@codesourcery.com>
14609 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
14610 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
14611 Nios II architecture level.
14612 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
14613 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
14614 (OPTION_DEFAULT_SPECS): Define.
14615 (ASM_SPEC): Add -march= spec strings.
14616 * config/nios2/nios2.c (nios2_option_override): Check for
14617 conflicts involving new options.
14618 * config.gcc (nios2*-*-*): Support --with-arch=.
14619 * doc/invoke.texi (Option Summary, Nios II Options): Document
14620 -march=, -mbmx, and -mcdx.
14622 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
14624 PR rtl-optimization/66626
14625 * lra-constraints.c (lra_constraints): Prevent equivalence
14626 substitution for static chain pseudo in functions with nonlocal
14629 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14631 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
14632 (nios2_emit_stack_limit_check): Add size parameter. Handle
14633 -fstack-limit-symbol as well as -fstack-limit-register.
14634 (nios2_expand_prologue): Emit only a single stack limit check,
14635 even if multiple stack adjustments are required.
14636 (nios2_option_override): Diagnose unsupported combination of -fpic
14637 and -stack-limit-symbol.
14639 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
14641 * Makefile.in (top_srcdir): New.
14642 * configure.ac: Use AM_ZLIB.
14643 * configure: Regeneated.
14645 2015-07-14 Matthias Klose <doko@ubuntu.com>
14648 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
14650 2015-07-14 Richard Biener <rguenther@suse.de>
14652 PR tree-optimization/66863
14653 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
14654 what we record for conversion use stmt lhs inequalities.
14656 2015-07-14 Richard Biener <rguenther@suse.de>
14658 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
14659 (decision_tree::gen_gimple): Likewise.
14661 2015-07-14 Tom de Vries <tom@codesourcery.com>
14663 * gcc.c (greater_than_spec_func): Declare forward.
14664 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
14665 -ftree-parallelize-loops={0,1}.
14666 (static_spec_functions): Add greater_than_spec_func function with name
14668 (greater_than_spec_func): New function.
14670 2015-07-14 Richard Biener <rguenther@suse.de>
14672 * tree-ssa-dom.c (record_temporary_equivalences): Merge
14673 wideing type conversion case from record_equivalences_from_incoming_edge
14674 and use record_equality to record equivalences.
14675 (record_equivalences_from_incoming_edge): Call
14676 record_temporary_equivalences.
14678 2015-07-14 Richard Biener <rguenther@suse.de>
14680 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
14681 (struct if_expr): New.
14682 (struct with_expr): Likewise.
14683 (is_a_helper): Add helpers for if_expr and with_expr.
14684 (struct simplify): Add simplify_kind enum and member. Remove
14686 (simplify::simplify): Adjust.
14687 (lower_commutative): Adjust.
14688 (lower_opt_convert): Likewise.
14689 (lower_cond): Likewise.
14690 (replace_id): Handle with_expr and if_expr.
14691 (lower_for): Adjust.
14692 (dt_simplify::gen_1): New recursive worker, split out from ...
14693 (dt_simplify::gen): ... here. Deal with if and with expansion
14695 (capture_info::capture_info): Take context argument
14696 (capture_info::walk_result): Only analyze specific result.
14697 (parser::parse_result): New function.
14698 (parser::parse_simplify): Adjust to parse ifs with then end
14700 (parser::parse_if): Simplify.
14701 (parser::parse_pattern): Pass down simplify kind.
14702 * match.pd: Convert if structure to new syntax.
14704 2015-07-13 Marek Polacek <polacek@redhat.com>
14706 * rtl.c (rtx_equal_p_cb): Fix typo.
14708 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
14710 * omega.h: Don't include config.h, don't include params.h again if
14711 omega.h has already been included.
14712 * graphite-poly.h: Include sese.h.
14713 * graphite.c: Don't include sese.h, remove needless includes and
14714 minimize includes outside #ifdef HAVE_isl block.
14715 * graphite-blocking.c: Don't include sese.h, remove needless includes,
14716 and wrap entire file in #ifdef HAVE_isl
14717 * graphite-dependences.c: Likewise.
14718 * graphite-interchange.c: Likewise.
14719 * graphite-isl-ast-to-gimple.c: Likewise.
14720 * graphite-optimize-isl.c: Likewise.
14721 * graphite-poly.c: Likewise.
14722 * graphite-scop-detection.c: Likewise.
14723 * graphite-sese-to-poly.c: Likewise.
14725 2015-07-13 Tom de Vries <tom@codesourcery.com>
14727 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
14729 2015-07-13 Renlin Li <renlin.li@arm.com>
14732 * simplify-rtx.c (simplify_const_relational_operation): Add
14733 side_effects_p checks.
14735 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
14737 * bitmap.h: Fix double word typos.
14738 * builtins.c: Same.
14740 * cfgloopmanip.c: Same.
14743 * cgraphclones.c: Same.
14745 * config/aarch64/aarch64-protos.h: Same.
14746 * config/aarch64/aarch64.c: Same.
14747 * config/aarch64/aarch64.md: Same.
14748 * config/arm/arm.md: Same.
14749 * config/arm/arm1020e.md: Same.
14750 * config/arm/arm1026ejs.md: Same.
14751 * config/arm/arm926ejs.md: Same.
14752 * config/arm/fa526.md: Same.
14753 * config/arm/fa606te.md: Same.
14754 * config/arm/fa626te.md: Same.
14755 * config/arm/fa726te.md: Same.
14756 * config/arm/fmp626.md: Same.
14757 * config/darwin.c: Same.
14758 * config/epiphany/epiphany.c: Same.
14759 * config/frv/frv.c: Same.
14760 * config/ft32/ft32.c: Same.
14761 * config/gnu-user.h: Same.
14762 * config/h8300/constraints.md: Same.
14763 * config/i386/i386.c: Same.
14764 * config/i386/i386.md: Same.
14765 * config/iq2000/iq2000.md: Same.
14766 * config/mips/mips.c: Same.
14767 * config/mmix/mmix.md: Same.
14768 * config/moxie/moxie.c: Same.
14769 * config/nds32/nds32.md: Same.
14770 * config/pa/pa.h: Same.
14771 * config/rs6000/aix.h: Same.
14772 * config/rs6000/rs6000.h: Same.
14773 * config/sh/sh.c: Same.
14774 * config/tilegx/tilegx.md: Same.
14775 * config/tilepro/gen-mul-tables.cc: Same.
14778 * doc/invoke.texi: Same.
14780 * dwarf2out.c: Same.
14783 * genmatch.c: Same.
14784 * gimplify.c: Same.
14785 * hash-table.h: Same.
14786 * internal-fn.c: Same.
14788 * ipa-devirt.c: Same.
14791 * ipa-profile.c: Same.
14792 * ipa-prop.c: Same.
14793 * ipa-prop.h: Same.
14796 * reg-stack.c: Same.
14797 * regcprop.c: Same.
14802 * tree-inline.c: Same.
14803 * tree-sra.c: Same.
14804 * tree-ssa-dom.c: Same.
14805 * tree-ssa-loop-ivopts.c: Same.
14806 * tree-ssa-structalias.c: Same.
14807 * tree-ssa-tail-merge.c: Same.
14808 * tree-ssa-ter.c: Same.
14809 * tree-ssa-threadupdate.c: Same.
14810 * tree-ssa-uninit.c: Same.
14811 * tree-ssanames.c: Same.
14812 * tree-vect-loop-manip.c: Same.
14813 * tree-vrp.c: Same.
14815 * valtrack.c: Same.
14818 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14820 PR middle-end/66726
14821 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
14822 tree_ssa_phiopt_worker): Call it.
14824 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14826 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
14827 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
14830 2015-07-11 Marek Polacek <polacek@redhat.com>
14832 PR middle-end/66353
14833 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
14834 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
14835 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
14836 rather than bb_has_abnormal_call_pred.
14837 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
14838 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
14839 rather than bb_has_abnormal_call_pred.
14841 2015-07-10 Anatoly Sokolov <aesok@post.ru>
14843 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14844 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
14845 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14846 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
14847 v850_legitimate_address_p): New functions.
14848 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14850 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
14853 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
14854 indirect sibcall with register arguments if register available
14855 for argument passing.
14856 (init_cumulative_args): Set cfun->machine->arg_reg_available
14857 to (cum->nregs > 0) or to true if function has a variable
14859 (function_arg_advance_32): Set cfun->machine->arg_reg_available
14860 to false if cum->nregs <= 0.
14861 * config/i386/i386.h (machine_function): Add arg_reg_available.
14863 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
14865 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
14866 and gen_higpart instead of gen_rtx_SUBREG.
14867 * config/i386/i386.md
14868 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
14869 (read-modify peephole2): Use gen_lowpart instead of
14870 gen_rtx_SUBREG for operand 5.
14872 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
14874 * config/tilepro/gen-mul-tables.cc (main): Change include list for
14876 * config/tilepro/mul-tables.c: Regenerate.
14877 * config/tilegx/mul-tables.c: Regenerate.
14879 2015-07-10 Richard Biener <rguenther@suse.de>
14881 * fold-const.c (distribute_bit_expr): Remove.
14882 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
14883 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
14884 to A & (B | C) and simplifying A << C1 << C2 to ...
14885 * match.pd: ... patterns here.
14887 2015-07-10 Jiong Wang <jiong.wang@arm.com>
14889 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14890 Mark mem as READONLY and NOTRAP for PIC symbol.
14892 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
14894 * gimple-predict.h: New file.
14895 (gimple_predict_predictor, gimple_predict_set_predictor,
14896 gimple_predict_outcome, gimple_predict_set_outcome,
14897 gimple_build_predict): Relocate here.
14898 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
14899 gimple_predict_outcome, gimple_predict_set_outcome): Move to
14901 * gimple.c (gimple_build_predict): Move to gimple-predict.h
14902 * basic-block.h: Don't include cfghooks.h.
14903 * backend.h: Don't include predict.h.
14904 * cfghooks.h: Include predict.h.
14905 * gimple-pretty-print.c: Include gimple-predict.h.
14906 * gimplify.c: Likwise.
14907 * predict.c: Adjust includes.
14908 * tree-inline.c: Likewise.
14909 * asan.c: Likewise.
14910 * auto-inc-dec.c: Likewise.
14911 * auto-profile.c: Likewise.
14912 * bb-reorder.c: Likewise.
14913 * builtins.c: Likewise.
14914 * caller-save.c: Likewise.
14915 * calls.c: Likewise.
14916 * cfganal.c: Likewise.
14917 * cfgbuild.c: Likewise.
14919 * cfgcleanup.c: Likewise.
14920 * cfgexpand.c: Likewise.
14921 * cfghooks.c: Likewise.
14922 * cfgloopanal.c: Likewise.
14923 * cfgloop.c: Likewise.
14924 * cfgloopmanip.c: Likewise.
14925 * cfgrtl.c: Likewise.
14926 * cgraph.c: Likewise.
14927 * cgraphunit.c: Likewise.
14928 * combine.c: Likewise.
14929 * cprop.c: Likewise.
14932 * dojump.c: Likewise.
14934 * except.c: Likewise.
14935 * expmed.c: Likewise.
14936 * expr.c: Likewise.
14937 * final.c: Likewise.
14938 * fold-const.c: Likewise.
14939 * function.c: Likewise.
14940 * fwprop.c: Likewise.
14941 * gcc-plugin.h: Likewise.
14942 * gcse.c: Likewise.
14943 * genattrtab.c: Likewise.
14944 * genemit.c: Likewise.
14945 * gengtype.c: Likewise.
14946 * genopinit.c: Likewise.
14947 * genoutput.c: Likewise.
14948 * genpreds.c: Likewise.
14949 * genrecog.c: Likewise.
14950 * gimple-fold.c: Likewise.
14951 * gimple-iterator.c: Likewise.
14952 * gimple-ssa-isolate-paths.c: Likewise.
14953 * gimple-ssa-strength-reduction.c: Likewise.
14954 * graph.c: Likewise.
14955 * graphite-blocking.c: Likewise.
14956 * graphite.c: Likewise.
14957 * graphite-dependences.c: Likewise.
14958 * graphite-interchange.c: Likewise.
14959 * graphite-isl-ast-to-gimple.c: Likewise.
14960 * graphite-optimize-isl.c: Likewise.
14961 * graphite-poly.c: Likewise.
14962 * graphite-scop-detection.c: Likewise.
14963 * graphite-sese-to-poly.c: Likewise.
14964 * haifa-sched.c: Likewise.
14965 * ifcvt.c: Likewise.
14966 * internal-fn.c: Likewise.
14967 * ipa-cp.c: Likewise.
14968 * ipa-profile.c: Likewise.
14969 * ipa-split.c: Likewise.
14970 * ipa-utils.c: Likewise.
14971 * ira-build.c: Likewise.
14972 * ira-color.c: Likewise.
14973 * ira-conflicts.c: Likewise.
14974 * ira-costs.c: Likewise.
14975 * ira-emit.c: Likewise.
14976 * ira-lives.c: Likewise.
14977 * jump.c: Likewise.
14978 * loop-doloop.c: Likewise.
14979 * loop-init.c: Likewise.
14980 * loop-invariant.c: Likewise.
14981 * loop-unroll.c: Likewise.
14982 * lower-subreg.c: Likewise.
14983 * lra-assigns.c: Likewise.
14985 * lra-coalesce.c: Likewise.
14986 * lra-constraints.c: Likewise.
14987 * lra-lives.c: Likewise.
14988 * lto-cgraph.c: Likewise.
14989 * lto-streamer-in.c: Likewise.
14990 * mode-switching.c: Likewise.
14991 * modulo-sched.c: Likewise.
14992 * omp-low.c: Likewise.
14993 * optabs.c: Likewise.
14994 * passes.c: Likewise.
14995 * postreload.c: Likewise.
14996 * postreload-gcse.c: Likewise.
14997 * profile.c: Likewise.
14998 * recog.c: Likewise.
14999 * regstat.c: Likewise.
15000 * reload1.c: Likewise.
15001 * reorg.c: Likewise.
15002 * rtlanal.c: Likewise.
15003 * sched-ebb.c: Likewise.
15004 * sel-sched-ir.c: Likewise.
15005 * sese.c: Likewise.
15006 * shrink-wrap.c: Likewise.
15007 * simplify-rtx.c: Likewise.
15008 * stmt.c: Likewise.
15009 * store-motion.c: Likewise.
15010 * tracer.c: Likewise.
15011 * trans-mem.c: Likewise.
15012 * tree-call-cdce.c: Likewise.
15013 * tree-cfg.c: Likewise.
15014 * tree-cfgcleanup.c: Likewise.
15015 * tree-chkp.c: Likewise.
15016 * tree-complex.c: Likewise.
15017 * tree-eh.c: Likewise.
15018 * tree-if-conv.c: Likewise.
15019 * tree-loop-distribution.c: Likewise.
15020 * tree-outof-ssa.c: Likewise.
15021 * tree-parloops.c: Likewise.
15022 * tree-predcom.c: Likewise.
15023 * tree-pretty-print.c: Likewise.
15024 * tree-profile.c: Likewise.
15025 * tree-sra.c: Likewise.
15026 * tree-ssa.c: Likewise.
15027 * tree-ssa-coalesce.c: Likewise.
15028 * tree-ssa-dce.c: Likewise.
15029 * tree-ssa-dom.c: Likewise.
15030 * tree-ssa-forwprop.c: Likewise.
15031 * tree-ssa-ifcombine.c: Likewise.
15032 * tree-ssa-loop-ch.c: Likewise.
15033 * tree-ssa-loop-im.c: Likewise.
15034 * tree-ssa-loop-ivcanon.c: Likewise.
15035 * tree-ssa-loop-ivopts.c: Likewise.
15036 * tree-ssa-loop-manip.c: Likewise.
15037 * tree-ssa-loop-prefetch.c: Likewise.
15038 * tree-ssa-loop-unswitch.c: Likewise.
15039 * tree-ssa-math-opts.c: Likewise.
15040 * tree-ssa-phiopt.c: Likewise.
15041 * tree-ssa-pre.c: Likewise.
15042 * tree-ssa-reassoc.c: Likewise.
15043 * tree-ssa-sink.c: Likewise.
15044 * tree-ssa-tail-merge.c: Likewise.
15045 * tree-ssa-threadedge.c: Likewise.
15046 * tree-ssa-threadupdate.c: Likewise.
15047 * tree-switch-conversion.c: Likewise.
15048 * tree-tailcall.c: Likewise.
15049 * tree-vect-data-refs.c: Likewise.
15050 * tree-vect-loop.c: Likewise.
15051 * tree-vect-loop-manip.c: Likewise.
15052 * tree-vectorizer.c: Likewise.
15053 * tree-vrp.c: Likewise.
15054 * ubsan.c: Likewise.
15055 * value-prof.c: Likewise.
15056 * varasm.c: Likewise.
15057 * var-tracking.c: Likewise.
15058 * config/aarch64/aarch64-builtins.c: Likewise.
15059 * config/aarch64/aarch64.c: Likewise.
15060 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15061 * config/alpha/alpha.c: Likewise.
15062 * config/arc/arc.c: Likewise.
15063 * config/arm/arm.c: Likewise.
15064 * config/avr/avr.c: Likewise.
15065 * config/bfin/bfin.c: Likewise.
15066 * config/c6x/c6x.c: Likewise.
15067 * config/cr16/cr16.c: Likewise.
15068 * config/cris/cris.c: Likewise.
15069 * config/darwin.c: Likewise.
15070 * config/darwin-c.c: Likewise.
15071 * config/epiphany/epiphany.c: Likewise.
15072 * config/epiphany/mode-switch-use.c: Likewise.
15073 * config/epiphany/resolve-sw-modes.c: Likewise.
15074 * config/fr30/fr30.c: Likewise.
15075 * config/frv/frv.c: Likewise.
15076 * config/ft32/ft32.c: Likewise.
15077 * config/h8300/h8300.c: Likewise.
15078 * config/i386/i386.c: Likewise.
15079 * config/i386/winnt.c: Likewise.
15080 * config/ia64/ia64.c: Likewise.
15081 * config/iq2000/iq2000.c: Likewise.
15082 * config/lm32/lm32.c: Likewise.
15083 * config/m32c/m32c.c: Likewise.
15084 * config/m32r/m32r.c: Likewise.
15085 * config/m68k/m68k.c: Likewise.
15086 * config/mcore/mcore.c: Likewise.
15087 * config/mep/mep.c: Likewise.
15088 * config/microblaze/microblaze.c: Likewise.
15089 * config/mips/mips.c: Likewise.
15090 * config/mmix/mmix.c: Likewise.
15091 * config/mn10300/mn10300.c: Likewise.
15092 * config/moxie/moxie.c: Likewise.
15093 * config/msp430/msp430.c: Likewise.
15094 * config/nds32/nds32.c: Likewise.
15095 * config/nds32/nds32-cost.c: Likewise.
15096 * config/nds32/nds32-fp-as-gp.c: Likewise.
15097 * config/nds32/nds32-intrinsic.c: Likewise.
15098 * config/nds32/nds32-isr.c: Likewise.
15099 * config/nds32/nds32-md-auxiliary.c: Likewise.
15100 * config/nds32/nds32-memory-manipulation.c: Likewise.
15101 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15102 * config/nds32/nds32-predicates.c: Likewise.
15103 * config/nios2/nios2.c: Likewise.
15104 * config/nvptx/nvptx.c: Likewise.
15105 * config/pa/pa.c: Likewise.
15106 * config/pdp11/pdp11.c: Likewise.
15107 * config/rl78/rl78.c: Likewise.
15108 * config/rs6000/rs6000.c: Likewise.
15109 * config/rx/rx.c: Likewise.
15110 * config/s390/s390.c: Likewise.
15111 * config/sh/sh.c: Likewise.
15112 * config/sh/sh-mem.cc: Likewise.
15113 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15114 * config/sh/sh_treg_combine.cc: Likewise.
15115 * config/sparc/sparc.c: Likewise.
15116 * config/spu/spu.c: Likewise.
15117 * config/stormy16/stormy16.c: Likewise.
15118 * config/tilegx/tilegx.c: Likewise.
15119 * config/tilepro/tilepro.c: Likewise.
15120 * config/v850/v850.c: Likewise.
15121 * config/vax/vax.c: Likewise.
15122 * config/visium/visium.c: Likewise.
15123 * config/xtensa/xtensa.c: Likewise.
15125 2015-07-10 Richard Biener <rguenther@suse.de>
15127 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
15128 (decision_tree::gen_gimple): Likewise.
15129 (decision_tree::gen_generic): Likewise.
15131 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
15134 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
15135 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
15137 2015-07-10 Jakub Jelinek <jakub@redhat.com>
15139 PR middle-end/66820
15140 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
15141 or ORT_TASK contexts.
15142 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
15145 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15147 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
15150 2015-07-10 Tom de Vries <tom@codesourcery.com>
15152 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
15153 insert nit + 1 bound.
15155 2015-07-10 Richard Biener <rguenther@suse.de>
15157 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
15158 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
15159 (if_convertible_loop_p_1): For this always compute bb predicates.
15160 (if_convertible_loop_p): And free them.
15162 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15164 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
15167 2015-07-10 Richard Biener <rguenther@suse.de>
15169 PR tree-optimization/66823
15170 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
15171 inverted predicate.
15173 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
15175 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
15176 to handle mips[32|64]r3 and mips[32|64]r5.
15178 2015-07-09 Jakub Jelinek <jakub@redhat.com>
15180 PR middle-end/66633
15181 * tree-nested.c (get_static_chain): Or in a flag into
15182 info->static_chain_added.
15183 (get_frame_field, get_nonlocal_debug_decl): Likewise.
15184 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
15185 2015-07-01 changes.
15186 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
15187 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
15190 PR tree-optimization/66718
15191 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
15193 (vect_simd_lane_linear): New function.
15194 (vectorizable_simd_clone_call): Support using linear arguments for
15195 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
15197 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15200 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
15202 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
15204 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
15205 Use machine mode, not enum machine_mode in the prototype.
15207 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
15208 classify 128-bit floating point support.
15209 (FLOAT128_IBM_P): Likewise.
15210 (FLOAT128_VECTOR_P): Likewise.
15211 (FLOAT128_2REG_P): Likewise.
15212 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
15213 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
15214 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15215 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
15217 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
15218 tests against TFmode/TDmode, since those modes do not use VSX
15220 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
15222 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
15223 tests against TFmode, etc.
15224 (invalid_e500_subreg): Add tests against IFmode/KFmode.
15225 (reg_offset_addressing_ok_p): Likewise.
15226 (rs6000_legitimate_offset_address_p): Likewise.
15227 (rs6000_legitimize_address): Likewise.
15228 (rs6000_legitimize_reload_address): Likewise.
15229 (rs6000_legitimate_address_p): Clean up tests against TFmode and
15230 TDmode to use the new helper macros, which will include IFmode and
15232 (rs6000_emit_move): Likewise.
15233 (rs6000_darwin64_record_arg_recurse): Likewise.
15234 (print_operand): Likewise.
15235 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
15236 that uses a single vector register as a vector and not as a
15237 floating point register in terms of the calling sequence.
15238 (rs6000_discover_homogeneous_aggregate): Likewise.
15239 (rs6000_return_in_memory): Likewise.
15240 (init_cumulative_args): Likewise.
15241 (rs6000_function_arg_boundary): Likewise.
15242 (rs6000_function_arg_advance_1): Likewise.
15243 (rs6000_function_arg): Likewise.
15244 (rs6000_pass_by_reference): Likewise.
15245 (rs6000_gimplify_va_arg): Likewise.
15246 (rs6000_secondary_reload_memory): Use machine_mode not enum
15248 (rs6000_split_multireg_move): Use new helper macros.
15249 (spe_func_has_64bit_regs_p): Likewise.
15250 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
15251 (output_toc): Use new helper macros.
15252 (rs6000_register_move_cost): Likewise.
15253 (rs6000_function_value): Add IEEE 128-bit floating point calling
15255 (rs6000_libcall_value): Likewise.
15256 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
15257 floating point support.
15258 (rs6000_vector_mode_supported_p): Likewise.
15260 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
15262 PR rtl-optimization/66782
15263 * lra-int.h (struct lra_insn_recog_data): Add comment about
15264 clobbered hard regs for arg_hard_regs.
15265 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
15266 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
15267 Add condition for processing used hard regs.
15268 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
15269 Process clobbered hard regs.
15271 2015-07-09 Michael Matz <matz@suse.de>
15273 * genmatch.c (fprintf_indent): New function.
15274 (operand::gen_transform): Add indent parameter.
15275 (expr::gen_transform, c_expr::gen_transform,
15276 capture::gen_transform): Ditto and use fprintf_indent.
15277 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
15278 (dt_operand::gen, dt_operand::gen_predicate,
15279 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
15280 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
15281 (decision_tree::gen_gimple): Adjust calls and indent generated
15283 (decision_tree::gen_generic): Ditto.
15284 (write_predicate): Ditto.
15286 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15289 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
15290 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
15291 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
15292 {GENERAL,SSE,MMX}_REG_P where appropriate.
15294 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
15296 * lto-streamer.h: Don't include target.h and alloc-pool.h.
15297 * builtins.c: Adjust includes.
15298 * gimple.c: Likewise.
15299 * ipa-icf.c: Likewise.
15300 * lto-opts.c: Likewise.
15301 * ipa-reference.c: Likewise.
15302 * lto-section-out.c: Likewise.
15303 * lto-streamer-in.c: Likewise.
15304 * lto-streamer-out.c: Likewise.
15305 * opts-global.c: Likewise.
15306 * symtab.c: Likewise.
15307 * tree-chkp.c: Likewise.
15308 * tree-ssa-live.c: Likewise.
15309 * tree-streamer-in.c: Likewise.
15310 * tree-streamer-out.c: Likewise.
15311 * config/darwin.c: Likewise.
15312 * config/i386/winnt.c: Likewise.
15314 2015-07-09 Richard Biener <rguenther@suse.de>
15316 * genmatch.c (struct expr): Add force_single_use flag.
15317 (expr::expr): Add copy constructor.
15318 (capture_info::walk_match): Gather force_single_use captures.
15319 (expr::gen_transform): Use possibly NULLified sequence.
15320 (dt_simplify::gen): Apply single-use restrictions by NULLifying
15321 seq if any constrained expr is not single-use.
15322 (parser::parse_expr): Refactor to allow multiple flags. Handle
15323 's' flag to force an expression have a single-use if the pattern
15324 simplifies to more than one statement.
15325 * match.pd: Convert most single_use conditionals to :s flags.
15327 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15329 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
15330 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15331 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
15333 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
15335 * flags.h: Don't include flag-types.h or options.h.
15336 * opts-common.c: Adjust includes.
15337 * opts-global.c: Likewise.
15338 * common/config/epiphany/epiphany-common.c: Likewise.
15340 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15343 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
15346 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15349 * config/i386/i386.c (ix86_return_in_memory): Return true
15350 if int_size_in_bytes returns negative for IA MCU.
15352 2015-07-09 Marek Polacek <polacek@redhat.com>
15354 PR tree-optimization/66718
15355 * Makefile.in (OBJS): Add gimple-laddress.o.
15356 * passes.def: Schedule pass_laddress.
15357 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
15358 * tree-pass.h (make_pass_laddress): Declare.
15359 * gimple-laddress.c: New file.
15361 2015-07-09 Richard Biener <rguenther@suse.de>
15363 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
15365 2015-07-09 Richard Biener <rguenther@suse.de>
15367 PR tree-optimization/66807
15368 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
15370 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
15372 * function.c (stack_protect_epilogue): Use if rather than switch for
15373 check targetm.have_stack_protect_test.
15375 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15377 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
15378 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
15379 * config/arc/arc.h: Likewise.
15380 * config/arm/arm.h: Likewise.
15381 * config/bfin/bfin.h: Likewise.
15382 * config/epiphany/epiphany.h: Likewise.
15383 * config/frv/frv.h: Likewise.
15384 * config/ia64/ia64.h: Likewise.
15385 * config/iq2000/iq2000.h: Likewise.
15386 * config/lm32/lm32.h: Likewise.
15387 * config/m32r/m32r.h: Likewise.
15388 * config/mcore/mcore.h: Likewise.
15389 * config/mep/mep.h: Likewise.
15390 * config/microblaze/microblaze.h: Likewise.
15391 * config/mips/mips.h: Likewise.
15392 * config/mmix/mmix.h: Likewise.
15393 * config/mn10300/mn10300.h: Likewise.
15394 * config/nds32/nds32.h: Likewise.
15395 * config/nios2/nios2.h: Likewise.
15396 * config/pa/pa.h: Likewise.
15397 * config/rl78/rl78.h: Likewise.
15398 * config/sh/sh.h: Likewise.
15399 * config/sparc/sparc.h: Likewise.
15400 * config/stormy16/stormy16.h: Likewise.
15401 * config/tilegx/tilegx.h: Likewise.
15402 * config/tilepro/tilepro.h: Likewise.
15403 * config/v850/v850.h: Likewise.
15404 * config/xtensa/xtensa.h: Likewise.
15405 * doc/tm.texi: Regenerate.
15406 * doc/tm.texi.in: Adjust.
15407 * combine.c (simplify_set): Likewise.
15408 (simplify_comparison): Likewise.
15409 * expr.c (store_constructor): Likewise.
15410 * internal-fn.c (expand_arith_overflow): Likewise.
15411 * reload.c (push_reload): Likewise.
15412 (find_reloads): Likewise.
15413 (find_reloads_subreg_address): Likewise.
15414 * reload1.c (eliminate_regs_1): Likewise.
15415 * rtlanal.c (nonzero_bits1): Likewise.
15416 (num_sign_bit_copies1): Likewise.
15417 * simplify-rtx.c (simplify_truncation): Likewise.
15419 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15421 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
15422 of AUTO_INC_DEC with the preprocessor.
15423 * combine.c (combine_instructions): Likewise.
15424 (can_combine_p): Likewise.
15425 (try_combine): Likewise.
15426 * emit-rtl.c (try_split): Likewise.
15427 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15428 * lower-subreg.c (resolve_simple_move): Likewise.
15429 * lra.c (update_inc_notes): Likewise.
15430 * recog.c (asm_operand_ok): Likewise.
15431 (constrain_operands): Likewise.
15432 * regrename.c (scan_rtx_address): Likewise.
15433 * reload.c (update_auto_inc_notes): Likewise.
15434 (reg_inc_found_and_valid_p): Likewise.
15435 * reload1.c (reload): Likewise.
15436 (emit_input_reload_insns): Likewise.
15437 (delete_output_reload): Likewise.
15438 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15439 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15441 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15443 * rtl.h: Always define AUTO_INC_DEC.
15444 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
15445 * combine.c (combine_instructions): Likewise.
15446 (can_combine_p): Likewise.
15447 (try_combine): Likewise.
15448 * emit-rtl.c (try_split): Likewise.
15449 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15450 * lower-subreg.c (resolve_simple_move): Likewise.
15451 * lra.c (update_inc_notes): Likewise.
15452 * recog.c (asm_operand_ok): Likewise.
15453 (constrain_operands): Likewise.
15454 * regrename.c (scan_rtx_address): Likewise.
15455 * reload.c (update_auto_inc_notes): Likewise.
15456 (find_equiv_reg): Likewise.
15457 * reload1.c (reload): Likewise.
15458 (reload_as_needed): Likewise.
15459 (choose_reload_regs): Likewise.
15460 (emit_input_reload_insns): Likewise.
15461 (delete_output_reload): Likewise.
15462 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15463 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15465 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15467 * combine.c (can_combine_def_p): Don't check the value of
15468 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
15469 (combinable_i3pat): Likewise.
15470 (mark_used_regs_combine): Likewise.
15471 * regrename.c (rename_chains): Likewise.
15472 * reload.c (find_reloads_address): Likewise.
15473 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15475 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15477 * combine.c (update_rsp_from_reg_equal): Don't check if
15478 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
15479 (reg_nonzero_bits_for_combine): Likewise.
15480 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
15482 * config/frv/frv.h: Likewise.
15483 * config/lm32/lm32.h: Likewise.
15484 * config/mep/mep.h: Likewise.
15485 * config/mips/mips.h: Likewise.
15486 * config/rs6000/rs6000.h: Likewise.
15487 * config/sh/sh.h: Likewise.
15488 * config/tilegx/tilegx.h (enum reg_class): Likewise.
15489 * config/tilepro/tilepro.h: Likewise.
15490 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
15491 * doc/tm.texi: Regenerate.
15492 * doc/tm.texi.in: Adjust.
15493 * rtlanal.c (nonzero_bits1): Likewise.
15495 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15497 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
15498 with the preprocessor.
15499 (combine_instructions): Likewise.
15500 (try_combine): Likewise.
15502 (distribute_notes): Likewise.
15504 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15506 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
15508 (simplify_set): Likewise.
15509 * cse.c (cse_insn): Likewise.
15510 * fold-const.c (fold_single_bit_test): Likewise.
15511 (fold_unary_loc): Likewise.
15512 * postreload.c (reload_cse_simplify_set): Likewise.
15513 (reload_cse_simplify_operands): Likewise.
15515 2015-07-08 Jiong Wang <jiong.wang@arm.com>
15517 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
15518 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
15520 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
15523 * config/i386/x86intrin.h: Include <adxintrin.h> even if
15524 __iamcu__ is defined.
15526 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15528 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
15530 2015-07-08 Iain Sandoe <iain@codesourcery.com>
15533 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
15534 names from preservation.
15536 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
15539 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
15541 (function_arg_advance_32): Don't pass vectors in registers for
15543 (function_arg_32): Likewise.
15544 (ix86_return_in_memory): Don't return vectors in registers for
15547 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
15549 PR middle-end/66334
15550 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
15551 hard regno live at the start of BB with incoming abnormal edges.
15552 * lra-lives.c (process_bb_lives): Ditto.
15554 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15557 * config/nvptx/mkoffload.c (main): Create an offload image only in
15558 64-bit configurations.
15560 2015-07-08 Martin Liska <mliska@suse.cz>
15563 * tree-sra.c (create_access_1): Call ctor without brackets.
15564 (create_artificial_child_access): Likewise.
15566 2015-07-08 Richard Biener <rguenther@suse.de>
15568 PR tree-optimization/66793
15569 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
15570 Properly split the block after stmts ending it.
15572 2015-07-08 Richard Biener <rguenther@suse.de>
15574 PR tree-optimization/66794
15575 * passes.c (execute_function_todo): Assert that post-dominators
15577 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
15578 Free post-dominators.
15580 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15582 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
15585 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15587 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
15588 more than or equal 8 and less than 32 when optimizing for size.
15590 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15592 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
15593 COSTS_N_INSNS (1) and increment it appropriately throughout the
15596 2015-07-08 Richard Biener <rguenther@suse.de>
15598 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
15600 2015-07-08 Alan Modra <amodra@gmail.com>
15602 * target.def (rtx_costs): Remove "code" param, add "mode".
15603 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
15604 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
15605 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
15606 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
15607 call. Track mode when given in rtx.
15608 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
15609 (default_address_cost): Pass Pmode to rtx_cost.
15610 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
15611 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
15613 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
15614 (notreg_cost): Add mode param. Use it.
15615 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
15616 mode param and pass to set_src_cost. Update all calls.
15617 (hash_scan_set): Formatting.
15618 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
15619 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
15621 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
15622 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
15623 emit_store_flag): Update set_src_cost and rtx_cost calls.
15624 * auto-inc-dec.c (attempt_change): Likewise.
15625 * calls.c (precompute_register_parameters): Likewise.
15626 * combine.c (expand_compound_operation, make_extraction,
15627 force_to_mode, distribute_and_simplify_rtx): Likewise.
15628 * dojump.c (prefer_and_bit_test): Likewise.
15629 * dse.c (find_shift_sequence): Likewise.
15630 * expr.c (compress_float_constant): Likewise.
15631 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
15632 * ifcvt.c (noce_try_sign_mask): Likewise.
15633 * loop-doloop.c (doloop_optimize): Likewise.
15634 * loop-invariant.c (create_new_invariant): Likewise.
15635 * lower-subreg.c (shift_cost, compute_costs): Likewise.
15636 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
15637 lshift_cheap_p): Likewise.
15638 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
15639 try_replace_in_use, reload_cse_move2add): Likewise.
15640 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
15642 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15643 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
15644 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
15645 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
15646 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
15647 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
15649 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
15650 * config/arc/arc.c (arc_rtx_costs): Likewise.
15651 * config/arm/arm.c (arm_rtx_costs): Likewise.
15652 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
15653 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
15654 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
15655 * config/cris/cris.c (cris_rtx_costs): Likewise.
15656 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
15657 * config/frv/frv.c (frv_rtx_costs): Likewise.
15658 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
15659 * config/i386/i386.c (ix86_rtx_costs): Likewise.
15660 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
15661 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
15662 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
15663 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
15664 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
15665 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
15666 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
15667 * config/mep/mep.c (mep_rtx_cost): Likewise.
15668 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
15669 * config/mips/mips.c (mips_rtx_costs): Likewise.
15670 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
15671 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
15672 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
15673 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
15674 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
15675 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
15676 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
15677 * config/pa/pa.c (hppa_rtx_costs): Likewise.
15678 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
15679 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
15680 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
15681 * config/s390/s390.c (s390_rtx_costs): Likewise.
15682 * config/sh/sh.c (sh_rtx_costs): Likewise.
15683 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
15684 * config/spu/spu.c (spu_rtx_costs): Likewise.
15685 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
15686 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
15687 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
15688 * config/v850/v850.c (v850_rtx_costs): Likewise.
15689 * config/vax/vax.c (vax_rtx_costs): Likewise.
15690 * config/visium/visium.c (visium_rtx_costs): Likewise.
15691 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
15692 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
15693 "code" param, and pass as outer_code to first rtx_cost call. Pass
15694 mode to rtx_cost calls.
15695 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
15697 (aarch64_rtx_costs_wrapper): Update.
15698 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
15699 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
15701 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
15702 and rtx_cost calls.
15703 (avr_operand_rtx_cost): Similarly.
15704 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
15705 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
15706 * config/mips/mips.c (mips_stack_address_p): Comment typo.
15707 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
15708 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
15709 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
15711 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
15712 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
15713 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
15714 * doc/tm.texi: Regenerate.
15716 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
15718 * tree-core.h: Include symtab.h.
15719 * rtl.h: Include hard-reg-set.h but not flags.h.
15720 (HARD_CONST): Remove condition compilation involving HARD_CONST since
15721 hard-reg-set.h is always included.
15722 * regs.h: Don't include hard-reg-set.h or rtl.h.
15723 * cfg.h: Include dominance.h.
15724 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
15725 * backend.h: New. Aggregate commonly used backend header files.
15726 * gimple-ssa.h: Don't include tree-hasher.h.
15727 * ssa.h: New. Aggregate commonly used SSA header files.
15728 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
15729 * sel-sched-ir.h: Flatten includes.
15730 * lra-int.h: Flatten completely.
15731 * sel-sched-dump.h: Flatten includes.
15732 * ira-int.h: Flatten includes.
15733 * gimple-streamer.h: Remove all includes.
15734 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
15735 * resource.h: Flatten hard-reg-set.h and df.h.
15736 * sched-int.h: Flatten insn-arrt.h and df.h.
15737 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
15738 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
15739 * genattrtab.c (write_header): Adjust generated includes.
15740 * genautomata.c (main): Likewise.
15741 * genconditions.c (write-header): Likewise.
15742 * genemit.c (main): Likewise.
15743 * gengtype.c (open_base_files): Likewise.
15744 * genopinit.c (main): Likewise.
15745 * genoutput.c (output_prologue): Likewise.
15746 * genpeep.c (main): Likewise.
15747 * genpreds.c (write_insn_preds_c): Likewise.
15748 * genrecog.c (write_header): Likewise.
15749 * alias.c: Adjust includes.
15750 * asan.c: Likewise.
15751 * attribs.c: Likewise.
15752 * auto-inc-dec.c: Likewise.
15753 * auto-profile.c: Likewise.
15754 * bb-reorder.c: Likewise.
15755 * bt-load.c: Likewise.
15756 * builtins.c: Likewise.
15757 * caller-save.c: Likewise.
15758 * calls.c: Likewise.
15759 * ccmp.c: Likewise.
15761 * cfganal.c: Likewise.
15762 * cfgbuild.c: Likewise.
15763 * cfgcleanup.c: Likewise.
15764 * cfgexpand.c: Likewise.
15765 * cfghooks.c: Likewise.
15766 * cfgloop.c: Likewise.
15767 * cfgloopanal.c: Likewise.
15768 * cfgloopmanip.c: Likewise.
15769 * cfgrtl.c: Likewise.
15770 * cgraph.c: Likewise.
15771 * cgraphbuild.c: Likewise.
15772 * cgraphclones.c: Likewise.
15773 * cgraphunit.c: Likewise.
15774 * cilk-common.c: Likewise.
15775 * combine-stack-adj.c: Likewise.
15776 * combine.c: Likewise.
15777 * compare-elim.c: Likewise.
15778 * convert.c: Likewise.
15779 * coverage.c: Likewise.
15780 * cppbuiltin.c: Likewise.
15781 * cprop.c: Likewise.
15783 * cselib.c: Likewise.
15784 * data-streamer-in.c: Likewise.
15785 * data-streamer-out.c: Likewise.
15786 * data-streamer.c: Likewise.
15787 * dbxout.c: Likewise.
15790 * debug.c: Likewise.
15791 * df-core.c: Likewise.
15792 * df-problems.c: Likewise.
15793 * df-scan.c: Likewise.
15795 * dojump.c: Likewise.
15796 * dominance.c: Likewise.
15797 * domwalk.c: Likewise.
15798 * double-int.c: Likewise.
15800 * dumpfile.c: Likewise.
15801 * dwarf2asm.c: Likewise.
15802 * dwarf2cfi.c: Likewise.
15803 * dwarf2out.c: Likewise.
15804 * emit-rtl.c: Likewise.
15805 * et-forest.c: Likewise.
15806 * except.c: Likewise.
15807 * explow.c: Likewise.
15808 * expmed.c: Likewise.
15809 * expr.c: Likewise.
15810 * final.c: Likewise.
15811 * fixed-value.c: Likewise.
15812 * fold-const.c: Likewise.
15813 * function.c: Likewise.
15814 * fwprop.c: Likewise.
15815 * gcc-plugin.h: Likewise.
15816 * gcse-common.c: Likewise.
15817 * gcse.c: Likewise.
15818 * generic-match-head.c: Likewise.
15819 * ggc-page.c: Likewise.
15820 * gimple-builder.c: Likewise.
15821 * gimple-expr.c: Likewise.
15822 * gimple-fold.c: Likewise.
15823 * gimple-iterator.c: Likewise.
15824 * gimple-low.c: Likewise.
15825 * gimple-match-head.c: Likewise.
15826 * gimple-pretty-print.c: Likewise.
15827 * gimple-ssa-isolate-paths.c: Likewise.
15828 * gimple-ssa-strength-reduction.c: Likewise.
15829 * gimple-streamer-in.c: Likewise.
15830 * gimple-streamer-out.c: Likewise.
15831 * gimple-walk.c: Likewise.
15832 * gimple.c: Likewise.
15833 * gimplify-me.c: Likewise.
15834 * gimplify.c: Likewise.
15835 * godump.c: Likewise.
15836 * graph.c: Likewise.
15837 * graphite-blocking.c: Likewise.
15838 * graphite-dependences.c: Likewise.
15839 * graphite-interchange.c: Likewise.
15840 * graphite-isl-ast-to-gimple.c: Likewise.
15841 * graphite-optimize-isl.c: Likewise.
15842 * graphite-poly.c: Likewise.
15843 * graphite-scop-detection.c: Likewise.
15844 * graphite-sese-to-poly.c: Likewise.
15845 * graphite.c: Likewise.
15846 * haifa-sched.c: Likewise.
15847 * hw-doloop.c: Likewise.
15848 * ifcvt.c: Likewise.
15849 * init-regs.c: Likewise.
15850 * internal-fn.c: Likewise.
15851 * ipa-chkp.c: Likewise.
15852 * ipa-comdats.c: Likewise.
15853 * ipa-cp.c: Likewise.
15854 * ipa-devirt.c: Likewise.
15855 * ipa-icf-gimple.c: Likewise.
15856 * ipa-icf.c: Likewise.
15857 * ipa-inline-analysis.c: Likewise.
15858 * ipa-inline-transform.c: Likewise.
15859 * ipa-inline.c: Likewise.
15860 * ipa-polymorphic-call.c: Likewise.
15861 * ipa-profile.c: Likewise.
15862 * ipa-prop.c: Likewise.
15863 * ipa-pure-const.c: Likewise.
15864 * ipa-ref.c: Likewise.
15865 * ipa-reference.c: Likewise.
15866 * ipa-split.c: Likewise.
15867 * ipa-utils.c: Likewise.
15868 * ipa-visibility.c: Likewise.
15870 * ira-build.c: Likewise.
15871 * ira-color.c: Likewise.
15872 * ira-conflicts.c: Likewise.
15873 * ira-costs.c: Likewise.
15874 * ira-emit.c: Likewise.
15875 * ira-lives.c: Likewise.
15877 * jump.c: Likewise.
15878 * langhooks.c: Likewise.
15880 * loop-doloop.c: Likewise.
15881 * loop-init.c: Likewise.
15882 * loop-invariant.c: Likewise.
15883 * loop-iv.c: Likewise.
15884 * loop-unroll.c: Likewise.
15885 * lower-subreg.c: Likewise.
15886 * lra-assigns.c: Likewise.
15887 * lra-coalesce.c: Likewise.
15888 * lra-constraints.c: Likewise.
15889 * lra-eliminations.c: Likewise.
15890 * lra-lives.c: Likewise.
15891 * lra-remat.c: Likewise.
15892 * lra-spills.c: Likewise.
15894 * lto-cgraph.c: Likewise.
15895 * lto-compress.c: Likewise.
15896 * lto-opts.c: Likewise.
15897 * lto-section-in.c: Likewise.
15898 * lto-section-out.c: Likewise.
15899 * lto-streamer-in.c: Likewise.
15900 * lto-streamer-out.c: Likewise.
15901 * lto-streamer.c: Likewise.
15903 * mode-switching.c: Likewise.
15904 * modulo-sched.c: Likewise.
15905 * omega.c: Likewise.
15906 * omp-low.c: Likewise.
15907 * optabs.c: Likewise.
15908 * opts-global.c: Likewise.
15909 * passes.c: Likewise.
15910 * plugin.c: Likewise.
15911 * postreload-gcse.c: Likewise.
15912 * postreload.c: Likewise.
15913 * predict.c: Likewise.
15914 * print-rtl.c: Likewise.
15915 * print-tree.c: Likewise.
15916 * profile.c: Likewise.
15917 * real.c: Likewise.
15918 * realmpfr.c: Likewise.
15919 * recog.c: Likewise.
15921 * reg-stack.c: Likewise.
15922 * regcprop.c: Likewise.
15923 * reginfo.c: Likewise.
15924 * regrename.c: Likewise.
15925 * regstat.c: Likewise.
15926 * reload.c: Likewise.
15927 * reload1.c: Likewise.
15928 * reorg.c: Likewise.
15929 * resource.c: Likewise.
15930 * rtl-chkp.c: Likewise.
15931 * rtlanal.c: Likewise.
15932 * rtlhooks.c: Likewise.
15933 * sanopt.c: Likewise.
15934 * sched-deps.c: Likewise.
15935 * sched-ebb.c: Likewise.
15936 * sched-rgn.c: Likewise.
15937 * sched-vis.c: Likewise.
15938 * sdbout.c: Likewise.
15939 * sel-sched-dump.c: Likewise.
15940 * sel-sched-ir.c: Likewise.
15941 * sel-sched.c: Likewise.
15942 * sese.c: Likewise.
15943 * shrink-wrap.c: Likewise.
15944 * simplify-rtx.c: Likewise.
15945 * stack-ptr-mod.c: Likewise.
15946 * stmt.c: Likewise.
15947 * stor-layout.c: Likewise.
15948 * store-motion.c: Likewise.
15949 * stringpool.c: Likewise.
15950 * symtab.c: Likewise.
15951 * target-globals.c: Likewise.
15952 * targhooks.c: Likewise.
15953 * toplev.c: Likewise.
15954 * tracer.c: Likewise.
15955 * trans-mem.c: Likewise.
15956 * tree-affine.c: Likewise.
15957 * tree-browser.c: Likewise.
15958 * tree-call-cdce.c: Likewise.
15959 * tree-cfg.c: Likewise.
15960 * tree-cfgcleanup.c: Likewise.
15961 * tree-chkp-opt.c: Likewise.
15962 * tree-chkp.c: Likewise.
15963 * tree-chrec.c: Likewise.
15964 * tree-complex.c: Likewise.
15965 * tree-data-ref.c: Likewise.
15966 * tree-dfa.c: Likewise.
15967 * tree-diagnostic.c: Likewise.
15968 * tree-dump.c: Likewise.
15969 * tree-eh.c: Likewise.
15970 * tree-emutls.c: Likewise.
15971 * tree-if-conv.c: Likewise.
15972 * tree-inline.c: Likewise.
15973 * tree-into-ssa.c: Likewise.
15974 * tree-iterator.c: Likewise.
15975 * tree-loop-distribution.c: Likewise.
15976 * tree-nested.c: Likewise.
15977 * tree-nrv.c: Likewise.
15978 * tree-object-size.c: Likewise.
15979 * tree-outof-ssa.c: Likewise.
15980 * tree-parloops.c: Likewise.
15981 * tree-phinodes.c: Likewise.
15982 * tree-predcom.c: Likewise.
15983 * tree-pretty-print.c: Likewise.
15984 * tree-profile.c: Likewise.
15985 * tree-scalar-evolution.c: Likewise.
15986 * tree-sra.c: Likewise.
15987 * tree-ssa-address.c: Likewise.
15988 * tree-ssa-alias.c: Likewise.
15989 * tree-ssa-ccp.c: Likewise.
15990 * tree-ssa-coalesce.c: Likewise.
15991 * tree-ssa-copy.c: Likewise.
15992 * tree-ssa-copyrename.c: Likewise.
15993 * tree-ssa-dce.c: Likewise.
15994 * tree-ssa-dom.c: Likewise.
15995 * tree-ssa-dse.c: Likewise.
15996 * tree-ssa-forwprop.c: Likewise.
15997 * tree-ssa-ifcombine.c: Likewise.
15998 * tree-ssa-live.c: Likewise.
15999 * tree-ssa-loop-ch.c: Likewise.
16000 * tree-ssa-loop-im.c: Likewise.
16001 * tree-ssa-loop-ivcanon.c: Likewise.
16002 * tree-ssa-loop-ivopts.c: Likewise.
16003 * tree-ssa-loop-manip.c: Likewise.
16004 * tree-ssa-loop-niter.c: Likewise.
16005 * tree-ssa-loop-prefetch.c: Likewise.
16006 * tree-ssa-loop-unswitch.c: Likewise.
16007 * tree-ssa-loop.c: Likewise.
16008 * tree-ssa-math-opts.c: Likewise.
16009 * tree-ssa-operands.c: Likewise.
16010 * tree-ssa-phiopt.c: Likewise.
16011 * tree-ssa-phiprop.c: Likewise.
16012 * tree-ssa-pre.c: Likewise.
16013 * tree-ssa-propagate.c: Likewise.
16014 * tree-ssa-reassoc.c: Likewise.
16015 * tree-ssa-sccvn.c: Likewise.
16016 * tree-ssa-scopedtables.c: Likewise.
16017 * tree-ssa-sink.c: Likewise.
16018 * tree-ssa-strlen.c: Likewise.
16019 * tree-ssa-structalias.c: Likewise.
16020 * tree-ssa-tail-merge.c: Likewise.
16021 * tree-ssa-ter.c: Likewise.
16022 * tree-ssa-threadedge.c: Likewise.
16023 * tree-ssa-threadupdate.c: Likewise.
16024 * tree-ssa-uncprop.c: Likewise.
16025 * tree-ssa-uninit.c: Likewise.
16026 * tree-ssa.c: Likewise.
16027 * tree-ssanames.c: Likewise.
16028 * tree-stdarg.c: Likewise.
16029 * tree-streamer-in.c: Likewise.
16030 * tree-streamer-out.c: Likewise.
16031 * tree-streamer.c: Likewise.
16032 * tree-switch-conversion.c: Likewise.
16033 * tree-tailcall.c: Likewise.
16034 * tree-vect-data-refs.c: Likewise.
16035 * tree-vect-generic.c: Likewise.
16036 * tree-vect-loop-manip.c: Likewise.
16037 * tree-vect-loop.c: Likewise.
16038 * tree-vect-patterns.c: Likewise.
16039 * tree-vect-slp.c: Likewise.
16040 * tree-vect-stmts.c: Likewise.
16041 * tree-vectorizer.c: Likewise.
16042 * tree-vrp.c: Likewise.
16043 * tree.c: Likewise.
16044 * tsan.c: Likewise.
16045 * ubsan.c: Likewise.
16046 * valtrack.c: Likewise.
16047 * value-prof.c: Likewise.
16048 * var-tracking.c: Likewise.
16049 * varasm.c: Likewise.
16050 * varpool.c: Likewise.
16051 * vmsdbgout.c: Likewise.
16052 * vtable-verify.c: Likewise.
16054 * wide-int.cc: Likewise.
16055 * xcoffout.c: Likewise.
16056 * config/aarch64/aarch64-builtins.c: Likewise.
16057 * config/aarch64/aarch64.c: Likewise.
16058 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16059 * config/alpha/alpha.c: Likewise.
16060 * config/arc/arc.c: Likewise.
16061 * config/arm/aarch-common.c: Likewise.
16062 * config/arm/arm-builtins.c: Likewise.
16063 * config/arm/arm-c.c: Likewise.
16064 * config/arm/arm.c: Likewise.
16065 * config/avr/avr-c.c: Likewise.
16066 * config/avr/avr-log.c: Likewise.
16067 * config/avr/avr.c: Likewise.
16068 * config/bfin/bfin.c: Likewise.
16069 * config/c6x/c6x.c: Likewise.
16070 * config/cr16/cr16.c: Likewise.
16071 * config/cris/cris.c: Likewise.
16072 * config/darwin-c.c: Likewise.
16073 * config/darwin.c: Likewise.
16074 * config/epiphany/epiphany.c: Likewise.
16075 * config/epiphany/mode-switch-use.c: Likewise.
16076 * config/epiphany/resolve-sw-modes.c: Likewise.
16077 * config/fr30/fr30.c: Likewise.
16078 * config/frv/frv.c: Likewise.
16079 * config/ft32/ft32.c: Likewise.
16080 * config/h8300/h8300.c: Likewise.
16081 * config/i386/i386-c.c: Likewise.
16082 * config/i386/i386.c: Likewise.
16083 * config/i386/msformat-c.c: Likewise.
16084 * config/i386/winnt-cxx.c: Likewise.
16085 * config/i386/winnt-stubs.c: Likewise.
16086 * config/i386/winnt.c: Likewise.
16087 * config/ia64/ia64-c.c: Likewise.
16088 * config/ia64/ia64.c: Likewise.
16089 * config/iq2000/iq2000.c: Likewise.
16090 * config/lm32/lm32.c: Likewise.
16091 * config/m32c/m32c-pragma.c: Likewise.
16092 * config/m32c/m32c.c: Likewise.
16093 * config/m32r/m32r.c: Likewise.
16094 * config/m68k/m68k.c: Likewise.
16095 * config/mcore/mcore.c: Likewise.
16096 * config/mep/mep-pragma.c: Likewise.
16097 * config/mep/mep.c: Likewise.
16098 * config/microblaze/microblaze-c.c: Likewise.
16099 * config/microblaze/microblaze.c: Likewise.
16100 * config/mips/mips.c: Likewise.
16101 * config/mmix/mmix.c: Likewise.
16102 * config/mn10300/mn10300.c: Likewise.
16103 * config/moxie/moxie.c: Likewise.
16104 * config/msp430/msp430-c.c: Likewise.
16105 * config/msp430/msp430.c: Likewise.
16106 * config/nds32/nds32-cost.c: Likewise.
16107 * config/nds32/nds32-fp-as-gp.c: Likewise.
16108 * config/nds32/nds32-intrinsic.c: Likewise.
16109 * config/nds32/nds32-isr.c: Likewise.
16110 * config/nds32/nds32-md-auxiliary.c: Likewise.
16111 * config/nds32/nds32-memory-manipulation.c: Likewise.
16112 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16113 * config/nds32/nds32-predicates.c: Likewise.
16114 * config/nds32/nds32.c: Likewise.
16115 * config/nios2/nios2.c: Likewise.
16116 * config/nvptx/nvptx.c: Likewise.
16117 * config/pa/pa.c: Likewise.
16118 * config/pdp11/pdp11.c: Likewise.
16119 * config/rl78/rl78-c.c: Likewise.
16120 * config/rl78/rl78.c: Likewise.
16121 * config/rs6000/rs6000-c.c: Likewise.
16122 * config/rs6000/rs6000.c: Likewise.
16123 * config/rx/rx.c: Likewise.
16124 * config/s390/s390-c.c: Likewise.
16125 * config/s390/s390.c: Likewise.
16126 * config/sh/sh-c.c: Likewise.
16127 * config/sh/sh-mem.cc: Likewise.
16128 * config/sh/sh.c: Likewise.
16129 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16130 * config/sh/sh_treg_combine.cc: Likewise.
16131 * config/sol2-c.c: Likewise.
16132 * config/sol2-cxx.c: Likewise.
16133 * config/sol2-stubs.c: Likewise.
16134 * config/sol2.c: Likewise.
16135 * config/sparc/sparc-c.c: Likewise.
16136 * config/sparc/sparc.c: Likewise.
16137 * config/spu/spu-c.c: Likewise.
16138 * config/spu/spu.c: Likewise.
16139 * config/stormy16/stormy16.c: Likewise.
16140 * config/tilegx/mul-tables.c: Likewise.
16141 * config/tilegx/tilegx-c.c: Likewise.
16142 * config/tilegx/tilegx.c: Likewise.
16143 * config/tilepro/mul-tables.c: Likewise.
16144 * config/tilepro/tilepro-c.c: Likewise.
16145 * config/tilepro/tilepro.c: Likewise.
16146 * config/v850/v850-c.c: Likewise.
16147 * config/v850/v850.c: Likewise.
16148 * config/vax/vax.c: Likewise.
16149 * config/visium/visium.c: Likewise.
16150 * config/vms/vms-c.c: Likewise.
16151 * config/vms/vms.c: Likewise.
16152 * config/vxworks.c: Likewise.
16153 * config/xtensa/xtensa.c: Likewise.
16155 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
16157 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
16158 Remove operand constraints. Change operand 2 predicate to
16159 nonmemory operand. Limit const_int values to mode bitsize. Only
16160 allow const_int values less than 32 when optimizing for size.
16161 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
16162 Remove operand constraints.
16163 (*bt<mode>): Use SImode for const_int values less than 32.
16164 (regmode): Remove mode attribute.
16166 2015-07-07 Anatoly Sokolov <aesok@post.ru>
16168 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16169 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
16170 moxie_legitimate_address_p): New functions.
16171 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16173 2015-07-07 Tom de Vries <tom@codesourcery.com>
16175 PR tree-optimization/66642
16176 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
16177 header comment. Rename split_edge variable to edge_at_split. Split
16178 exit edge to create new loop exit bb. Insert loop exit phis in new
16181 2015-07-07 Tom de Vries <tom@codesourcery.com>
16183 * tree-cfg.c (get_virtual_phi): New function.
16184 * tree-cfg.h (get_virtual_phi): Declare.
16185 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
16186 (rewrite_virtuals_into_loop_closed_ssa): New function.
16187 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
16189 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
16190 (transform_to_exit_first_loop_alt): Use
16191 rewrite_virtuals_into_loop_closed_ssa.
16193 2015-07-07 Richard Biener <rguenther@suse.de>
16195 * fold-const.c (fold_binary_loc): Move
16196 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
16197 * match.pd: ... here.
16198 Add (X * C1) % C2 -> 0 simplification pattern derived from
16201 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
16204 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
16205 change for target/65249.
16207 2015-07-07 Paulo Matos <pmatos@broadcom.com>
16209 * symtab.c (address_matters_1): Fix typo in comment above.
16210 (can_increase_alignment_p): Likewise.
16212 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16214 * function.c (free_after_compilation): Clear PROP_cfg in
16215 f->curr_properties.
16217 2015-07-07 Richard Biener <rguenther@suse.de>
16219 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
16221 (add_control_edge): Remove excessive vertical space in dumping.
16222 (process_ssa_edge_worklist): Simulate at most one statement and
16223 return whether we did. Do not simulate PHIs if they are in a
16224 BB not yet simulated.
16225 (ssa_propagate): Adjust to always drain the BB worklist whenever
16226 a BB is available there, likewise the VARYING edges list before
16227 the interesting edge list.
16229 2015-07-07 Christian Bruel <christian.bruel@st.com>
16232 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
16234 2015-07-07 Richard Biener <rguenther@suse.de>
16236 PR middle-end/66739
16237 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
16240 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
16242 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
16243 modes for operands 0 and 3. Use SImode for operands 2 and 3.
16244 Copy operand 0 to a temporary if !ext_register_operand. Remove
16245 ancient extract_bit_field workaround.
16246 (insv<mode>_1): Rename from mov<mode>_insv_1.
16247 (*insvqi): Rename from *movqi_insv_2.
16248 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
16249 for renamed insvsi_1.
16250 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
16252 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
16254 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
16255 call to nvptx_reorg_subreg.
16257 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
16259 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
16260 * graphite-dependencies.c, graphite-interchange.c,
16261 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
16262 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
16265 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
16267 * match.pd: Remove element_mode inside HONOR_*.
16268 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
16269 (~X | X -> -1, ~X ^ X -> -1): Merge.
16270 * tree.c (build_each_one_cst): New function.
16271 * tree.h (build_each_one_cst): Likewise.
16273 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16275 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16278 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
16280 * config.gcc <mips*-*-*>: Add fused-madd.opt.
16281 * config/mips/mips.opt (mfused-madd): Remove.
16282 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
16283 * config/mips/mips.h (TARGET_MIPS8000): New.
16284 (ISA_HAS_FP_MADD4_MSUB4): Remove.
16285 (ISA_HAS_FP_MADDF_MSUBF): Remove.
16286 (ISA_HAS_FP_MADD3_MSUB3): Remove.
16287 (ISA_HAS_NMADD4_NMSUB4): Remove.
16288 (ISA_HAS_NMADD3_NMSUB3): Remove.
16289 (ISA_HAS_FUSED_MADD4): New.
16290 (ISA_HAS_UNFUSED_MADD4): New.
16291 (ISA_HAS_FUSED_MADDF): New.
16292 (ISA_HAS_FUSED_MADD3): New.
16293 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
16294 (*fma<mode>4_madd3) New.
16295 (*fma<mode>4_madd4) New.
16296 (*fma<mode>4_maddf) New.
16298 (*fms<mode>4_msub3) New.
16299 (*fms<mode>4_msub4) New.
16301 (*fnma<mode>4_nmadd3) New.
16302 (*fnma<mode>4_nmadd4) New.
16304 (*fnms<mode>4_nmsub3) New.
16305 (*fnms<mode>4_nmsub4) New.
16306 (*madd4<mode>) Modify to be unfused only.
16307 (*msub4<mode>) Modify to be unfused only.
16308 (*nmadd4<mode>) Modify to be unfused only.
16309 (*nmsub4<mode>) Modify to be unfused only.
16310 (*madd3<mode>) Remove.
16311 (*msub3<mode>) Remove.
16312 (*nmadd3<mode>) Remove.
16313 (*nmsub3<mode>) Remove.
16314 (*nmadd3<mode>_fastmath) Remove.
16315 (*nmsub3<mode>_fastmath) Remove.
16316 (*nmadd4<mode>_fastmath) Update condition.
16317 (*nmsub4<mode>_fastmath) Update condition.
16319 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
16322 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
16323 alignment attribute, exploring one level down for records and arrays.
16325 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
16327 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
16328 modes for operands 0 and 1. Use SImode for operands 2 and 3.
16329 Copy operand 1 to a temporary if !ext_register_operand. Remove
16330 ancient extract_bit_field workaround.
16331 (*extv<mode>): Rename from *mov<mode>_extv_1.
16332 (*extvqi): Rename from *movqi_extv_1.
16333 (extzv<mode>): Rename from extzv. Use SWI248 modes for
16334 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
16335 to a temporary if !ext_register_operand. Remove ancient
16336 extract_bit_field workaround.
16337 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
16338 (*extzvqi): Rename from *movqi_extzv_2.
16339 (*testqi_ext_3): Remove modes from const_int_operand predicated
16340 operands. Add "n" constraint.
16341 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
16342 operand. Add "J" constraint.
16343 (*btsq, *btrq, *btcq peephole2s): Remove mode from
16344 const_0_to_63 predicated operand.
16345 (regmode): New insn attribute.
16346 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
16347 to nonmemory_operand. Use regmode insn attribute.
16348 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
16349 (*jcc_bt<mode>_mask): Remove mode from operand 3.
16350 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
16351 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
16352 operands. Use "N" constraint instead of "n".
16354 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
16356 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
16358 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16361 * config/i386/i386.c (iamcu_cost): New.
16362 (m_IAMCU): Likewise.
16363 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
16364 (processor_target_table): Add an entry for "iamcu".
16365 (processor_alias_table): Likewise.
16366 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
16367 (ix86_adjust_cost): Likewise.
16368 (ia32_multipass_dfa_lookahead): Likewise.
16369 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
16370 * config/i386/x86-tune.def: Updated for m_IAMCU.
16372 2015-07-06 Richard Biener <rguenther@suse.de>
16374 PR tree-optimization/66772
16375 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
16376 values are available in the PHI node BB when there are
16377 still unexecutable edges.
16379 2015-07-06 Richard Biener <rguenther@suse.de>
16381 PR tree-optimization/66767
16382 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
16383 Make sure to build the alignment test on a SSA name without
16384 final alignment info valid only if the alignment test
16387 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
16390 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
16391 loop start when inserting LSETUP.
16393 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16396 * config/i386/i386.c (ix86_option_override_internal): Allow
16397 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
16399 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16401 * read-md.c (decimal_string): Rename to ...
16402 (md_decimal_string): ... this.
16403 (handle_enum): Reflect this.
16405 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
16408 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
16410 2015-07-06 Richard Biener <rguenther@suse.de>
16412 PR middle-end/66759
16413 * match.pd: Add missing constraint of y to REAL_CST in
16414 REAL_CST - x CMP y to y - CST CMP x simplification.
16416 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
16418 PR tree-optimization/66757
16419 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
16421 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
16422 Sandra Loosemore <sandra@codesourcery.com>
16424 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
16425 Delete extern declaration.
16426 (gprel_constant_p): Add extern declaration.
16427 * config/nios2/constraints.md ("S"): Use gprel_constant_p
16428 instead of nios2_symbol_ref_in_small_data_p.
16429 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
16430 (nios2_symbol_ref_in_small_data_p): Make static.
16431 (gprel_constant_p): Make non-static.
16433 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
16435 * doc/fragments.texi (Target Fragment): Convert debian.org
16437 * doc/install.texi (Configuration): Ditto.
16439 2015-07-05 Jakub Jelinek <jakub@redhat.com>
16441 PR tree-optimization/66718
16442 * tree-vect-stmts.c (vectorizable_call): Replace uses of
16443 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
16445 PR tree-optimization/66718
16446 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
16447 vectorizable_load, vectorizable_condition): Move vectype,
16448 nunits, ncopies computation after checking what kind of statement
16451 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16453 * target-insns.def (extv, extzv, insv): New targetm instruction
16455 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
16457 * recog.c (simplify_while_replacing): Likewise.
16459 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16461 * target-insns.def (doloop_begin, doloop_end): New targetm
16462 instruction patterns.
16463 * loop-init.c: Include target.h.
16464 (pass_loop2::gate): Use the new targetm patterns instead of
16465 HAVE_*/gen_* interface.
16466 (pass_rtl_doloop::gate): Likewise.
16467 (pass_rtl_doloop::execute): Remove preprocessor condition.
16468 * hw-doloop.c: Build unconditionally.
16469 * loop-doloop.c: Likewise.
16470 (doloop_optimize): Use the new targetm patterns instead of
16471 HAVE_*/gen_* interface.
16472 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
16473 * modulo-sched.c (doloop_register_get): Likewise.
16475 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16477 * target-insns.def (clear_cache): New targetm instruction pattern.
16478 * builtins.c (expand_builtin___clear_cache): Use it instead of
16479 HAVE_*/gen_* interface.
16481 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16483 * target-insns.def (allocate_stack, check_stack, probe_stack)
16484 (probe_stack_address, split_stack_prologue, split_stack_space_check):
16485 New targetm instruction patterns.
16486 * explow.c (allocate_dynamic_stack_space): Use them instead of
16487 HAVE_*/gen_* interface.
16488 (emit_stack_probe): Likewise.
16489 (probe_stack_range): Likewise.
16490 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16492 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16494 * target-insns.def (stack_protect_set, stack_protect_test): New
16495 targetm instruction patterns.
16496 * cfgexpand.c (stack_protect_prologue): Use them instead of
16497 HAVE_*/gen_* interface.
16498 * function.c (stack_protect_epilogue): Likewise.
16500 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16502 * expr.h (gen_move_insn_uncast): Delete.
16503 * expr.c (gen_move_insn_uncast): Delete.
16505 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16507 * target-insns.def (restore_stack_block, restore_stack_function)
16508 (restore_stack_nonlocal, save_stack_block, save_stack_function)
16509 (save_stack_nonlocal): New targetm instruction patterns.
16510 * builtins.c (expand_builtin_apply): Use them instead of
16511 HAVE_*/gen_* interface.
16512 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
16514 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16516 * target-insns.def (trap): New targetm instruction pattern.
16517 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
16519 * explow.c (allocate_dynamic_stack_space): Likewise.
16520 * ifcvt.c (find_if_header): Likewise.
16522 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16524 * target-insns.def (prefetch): New targetm instruction pattern.
16525 * tree-ssa-loop-prefetch.c: Include targeth.
16526 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
16527 of HAVE_*/gen_* interface.
16528 * builtins.c (expand_builtin_prefetch): Likewise.
16529 * toplev.c (process_options): Likewise.
16531 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16533 * target-insns.def (untyped_call, untyped_return): New targetm
16534 instruction patterns.
16535 * builtins.c (expand_builtin_apply): Use them instead of
16536 HAVE_*/gen_* interface.
16537 (result_vector): Define unconditionally.
16539 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16541 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
16542 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
16543 (nonlocal_goto_receiver): New targetm instruction patterns.
16544 * builtins.c (expand_builtin_setjmp_setup): Use them instead
16545 of HAVE_*/gen_* interface.
16546 (expand_builtin_setjmp_receiver): Likewise.
16547 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
16548 * except.c (expand_dw2_landing_pad_for_region): Likewise.
16550 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16552 * target.def: Add code_for_* hooks.
16553 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
16554 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
16555 * target-insns.def (casesi, tablejump): New targetm instruction
16557 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
16558 (do_tablejump): Likewise.
16559 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
16560 (expand_sjlj_dispatch_table): Likewise.
16561 * targhooks.c (default_case_values_threshold): Likewise.
16563 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
16565 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
16566 Use rtx_insn * instead of rtx.
16567 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
16568 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
16569 (nios2_call_tls_get_addr): Likewise.
16570 (nios2_emit_expensive_div): Likewise.
16571 (nios2_emit_move_sequence): Change return type to bool.
16572 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
16573 Change return type to bool.
16575 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16578 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
16580 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
16583 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
16584 of register_operand. Remove constraint.
16586 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
16588 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
16589 the first argument.
16591 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
16593 * attribs.c (decl_attributes): Guard inform with the return value
16594 of the preceding warning.
16596 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16598 * doc/invoke.texi (moverride): Move to correct section.
16600 2015-07-03 Richard Biener <rguenther@suse.de>
16602 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
16604 (dt_operand::gen_gimple_expr): After valueizing operands
16605 re-canonicalize operand order for commutative tree codes.
16607 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
16610 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
16612 (__crc32w): Likewise.
16613 (__crc32d): Likewise.
16614 (__rdpmc): Likewise.
16615 (__rdtscp): Likewise.
16616 (_rdpmc): Likewise.
16617 (_rdtscp): Likewise.
16618 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
16621 2015-07-03 Richard Biener <rguenther@suse.de>
16623 * fold-const.c (fold_mathfn_compare): Remove.
16624 (fold_inf_compare): Likewise.
16625 (fold_comparison): Move floating point comparison simplifications...
16626 * match.pd: ... to patterns here. Introduce simple_comparisons
16627 operator list and use it for patterns formerly in fold_comparison.
16629 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16631 PR tree-optimization/66119
16632 * toplev.c (process_options): Don't set up default values for
16633 the sra_max_scalarization_size_{speed,size} parameters.
16634 * tree-sra (analyze_all_variable_accesses): If no values
16635 have been set for the sra_max_scalarization_size_{speed,size}
16636 parameters, call get_move_ratio to get target defaults.
16638 2015-07-03 Richard Biener <rguenther@suse.de>
16640 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
16641 * match.pd: ... here.
16643 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
16646 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
16647 is not actually the default on FreeBSD.
16649 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16651 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
16653 (CMPGE_8HI): Likewise.
16654 (CMPGE_4SI): Likewise.
16655 (CMPGE_2DI): Likewise.
16656 (CMPGE_U16QI): Likewise.
16657 (CMPGE_U8HI): Likewise.
16658 (CMPGE_U4SI): Likewise.
16659 (CMPGE_U2DI): Likewise.
16660 (CMPLE_16QI): Likewise.
16661 (CMPLE_8HI): Likewise.
16662 (CMPLE_4SI): Likewise.
16663 (CMPLE_2DI): Likewise.
16664 (CMPLE_U16QI): Likewise.
16665 (CMPLE_U8HI): Likewise.
16666 (CMPLE_U4SI): Likewise.
16667 (CMPLE_U2DI): Likewise.
16668 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16669 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
16670 ALTIVEC_BUILTIN_VEC_CMPLE.
16671 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
16672 floating-point vector modes.
16673 (vector_nlt<mode>): New define_expand.
16674 (vector_nltu<mode>): Likewise.
16675 (vector_ngt<mode>): Likewise.
16676 (vector_ngtu<mode>): Likewise.
16678 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
16680 PR rtl-optimization/66706
16681 * combine.c (make_compound_operation): If an AND of SUBREG of
16682 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
16684 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
16686 * tree-pass.h (make_pass_ch_vect): New.
16687 * passes.def: Add pass_ch_vect just before pass_if_conversion.
16689 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
16690 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
16691 make_pass_ch_vect): New.
16692 (pass_ch): Extend ch_base.
16694 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
16695 (ch_base::copy_headers): ...here.
16697 2015-07-02 Richard Biener <rguenther@suse.de>
16699 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
16700 * fold-const.c (get_pointer_modulus_and_residue): Remove.
16701 (fold_binary_loc): Implement (T)ptr & CST in terms of
16702 get_pointer_alignment_1.
16703 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
16704 Make sure to build the alignment test on a SSA name without
16705 final alignment info valid only after the prologue.
16707 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
16709 * config/cris/cris.md ("epilogue"): Remove condition.
16710 ("prologue"): Ditto.
16712 2015-07-02 Richard Biener <rguenther@suse.de>
16714 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
16715 parameter to record a condition that is false.
16716 (record_conditions): When recording an extra NE_EXPR that is
16717 true also record a EQ_EXPR that is false.
16719 2015-07-02 Bin Cheng <bin.cheng@arm.com>
16721 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
16722 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
16723 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
16724 (set_iv, find_interesting_uses_address, add_candidate_1): New
16725 argument to alloc_iv.
16726 (find_interesting_uses_op, find_interesting_uses_cond): Don't
16727 duplicate struct iv.
16728 (free_loop_data): Don't free struct iv explicitly.
16729 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
16731 2015-07-01 DJ Delorie <dj@redhat.com>
16733 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
16735 (SUPPORTS_DISCRIMINATOR): Define.
16737 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16740 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
16741 there are no CALLs in the same pattern.
16743 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
16745 PR rtl-optimization/61047
16746 * rtlanal.c (get_initial_register_offset): New function.
16747 (rtx_addr_can_trap_p_1): Check offsets of stack references.
16749 2015-07-01 Richard Biener <rguenther@suse.de>
16751 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
16752 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
16753 ~X CMP C -> X CMP' ~C to ...
16754 * match.pd: ... patterns here.
16756 2015-07-01 Nick Clifton <nickc@redhat.com>
16758 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
16759 a 16-bit value into a 20-bit memory slot.
16761 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16763 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16764 "aarch64_tiny", "aarch64_small", "aarch64_large",
16765 "aarch64_little_endian", "aarch64_big_endian".
16767 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16769 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
16770 Document "aarch64_small_fpic".
16772 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16774 * configure.ac: Add check for aarch64 assembler -fpic relocation
16776 * configure: Regenerate.
16777 * config.in: Regenerate.
16778 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
16779 to -fPIC if not support of -fpic relocation modifier in assembler.
16781 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16784 * rtl.c (classify_insn): Handle returns in PARALLELs.
16786 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
16788 PR middle-end/66633
16789 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
16790 to true if the function is nested and if not optimizing.
16791 (convert_local_omp_clauses): Initialize need_frame to true if the
16792 function contains nested functions and if not optimizing.
16794 2015-07-01 Richard Biener <rguenther@suse.de>
16796 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
16797 (X & Y) ^ Y -> ~X & Y transforms to ...
16798 * match.pd: ... here.
16800 2015-07-01 Richard Biener <rguenther@suse.de>
16802 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
16803 of converts to avoid uninteresting noise from the conversion
16804 simplifying patterns.
16806 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
16808 * config/c6x/c6x.c (try_rename_operands): Do not depend on
16809 gcc_assert evaluating its argument for side-effect.
16811 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
16814 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
16817 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
16819 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
16820 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
16821 (hash_scc): Add this_ref_p and ref_p parameters and pass them
16822 to the inner DFS walk.
16824 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16826 * target-insns.def (jump): New targetm instruction pattern.
16827 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
16828 instead of gen_jump.
16829 (fix_up_crossing_landing_pad): Likewise.
16830 (add_labels_and_missing_jumps): Likewise.
16831 (fix_crossing_conditional_branches): Likewise.
16832 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
16833 (force_nonfallthru_and_redirect): Likewise.
16834 * cse.c (cse_insn): Likewise.
16835 * expmed.c (expand_divmod): Likewise.
16836 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
16837 * haifa-sched.c (init_before_recovery): Likewise.
16838 (sched_create_recovery_edges): Likewise.
16839 * ifcvt.c (find_cond_trap): Likewise.
16840 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
16841 (expand_float, expand_fix): Likewise.
16842 * stmt.c (emit_jump): Likewise.
16844 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16846 * defaults.h (HAVE_load_multiple, gen_load_multiple)
16847 (HAVE_store_multiple, gen_store_multiple): Delete.
16848 * target-insns.def (load_multiple, store_multiple): New targetm
16849 instruction patterns.
16850 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
16851 of HAVE_*/gen_* interface.
16853 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16855 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
16856 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
16857 (gen_mem_signal_fence): Delete.
16858 * target-insns.def (mem_signal_fence, mem_thread_fence)
16859 (memory_barrier): New targetm instruction patterns.
16860 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
16862 (expand_mem_signal_fence): Likewise.
16864 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16866 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
16867 * target-insns.def (epilogue, prologue, sibcall_prologue): New
16868 targetm instruction patterns.
16869 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
16871 * calls.c (expand_call): Likewise.
16872 * cfgrtl.c (cfg_layout_finalize): Likewise.
16873 * df-scan.c (df_get_entry_block_def_set): Likewise.
16874 (df_get_exit_block_use_set): Likewise.
16875 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
16876 * final.c (final_start_function): Likewise.
16877 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16878 (reposition_prologue_and_epilogue_notes): Likewise.
16879 * reorg.c (find_end_label): Likewise.
16880 * toplev.c (process_options): Likewise.
16882 2015-06-30 David Malcolm <dmalcolm@redhat.com>
16884 * typed-splay-tree.h: New file.
16886 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
16889 * lra-int.h (lra_substitute_pseudo): Add a parameter.
16890 (lra_substitute_pseudo_within_insn): Ditto.
16891 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
16893 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
16894 to lra_substitute_pseudo.
16895 * lra-lives.c (process_bb_lives): Add an argument to
16896 lra_substitute_pseudo_within_insn call.
16897 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
16898 argument to lra_substitute_pseudo and
16899 lra_substitute_pseudo_within_insn calls.
16900 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
16902 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
16904 * configure: Regenerated.
16906 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
16908 * config.gcc: Support i[34567]86-*-elfiamcu target.
16909 * config/i386/iamcu.h: New.
16910 * config/i386/i386.opt: Add -miamcu.
16911 * doc/invoke.texi: Document -miamcu.
16912 * common/config/i386/i386-common.c (ix86_handle_option): Turn
16913 off x87/MMX/SSE/AVX codegen for -miamcu.
16914 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16915 __iamcu/__iamcu__ for -miamcu.
16916 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
16917 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
16918 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
16919 * config/i386/i386.c (ix86_option_override_internal): Ignore and
16920 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
16921 MCU by default. Default long double to 64-bit for Intel MCU.
16922 Turn on -freg-struct-return for Intel MCU. Issue an error when
16923 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
16925 (function_arg_advance_32): Pass value whose size is no larger
16926 than 8 bytes in registers for Intel MCU.
16927 (function_arg_32): Likewise.
16928 (ix86_return_in_memory): Return value whose size is no larger
16929 than 8 bytes in registers for Intel MCU.
16930 (iamcu_alignment): New function.
16931 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
16933 (ix86_local_alignment): Don't increase alignment for Intel MCU.
16934 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
16937 2015-06-30 Marek Polacek <polacek@redhat.com>
16939 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
16940 both operands of the resulting expression.
16942 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
16943 the final expression with the operand's type and then convert
16944 it to the type of the expression.
16946 2015-06-30 Richard Biener <rguenther@suse.de>
16948 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
16949 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
16950 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
16951 * match.pd: ... to patterns here.
16953 2015-06-30 Richard Biener <rguenther@suse.de>
16955 PR tree-optimization/66704
16956 * tree-vect-data-refs.c (vect_setup_realignment): Use
16957 make_ssa_name for non-SSA name source.
16959 2015-06-30 Jakub Jelinek <jakub@redhat.com>
16961 PR middle-end/66702
16962 * omp-low.c (simd_clone_adjust): Handle addressable linear
16963 or uniform parameters or non-gimple type uniform parameters.
16965 2015-06-30 Richard Biener <rguenther@suse.de>
16967 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
16968 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
16969 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
16970 * match.pd: ... here.
16971 Add a few cases of A - B -> A + (-B) when B "easily" negates.
16972 Move (x & y) | x -> x and friends before
16973 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
16975 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
16977 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
16978 -mfix-ut699 is not specified.
16979 (leon3_load): Rename into...
16980 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
16983 2015-06-30 Marek Polacek <polacek@redhat.com>
16985 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
16986 * match.pd: ... here.
16988 2015-06-30 Richard Biener <rguenther@suse.de>
16990 * target-insns.def (canonicalize_funcptr_for_compare): Add.
16991 * fold-const.c (build_range_check): Replace uses of
16992 HAVE_canonicalize_funcptr_for_compare.
16993 (fold_widened_comparison): Likewise.
16994 (fold_sign_changed_comparison): Likewise.
16995 * dojump.c: Include "target.h".
16996 (do_compare_and_jump): Replace uses of
16997 HAVE_canonicalize_funcptr_for_compare and
16998 gen_canonicalize_funcptr_for_compare.
16999 * expr.c (do_store_flag): Likewise.
17001 2015-06-30 Tom de Vries <tom@codesourcery.com>
17003 PR tree-optimization/66652
17004 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
17005 max_loop_iterations to determine if nit + 1 overflows.
17007 2015-06-30 Richard Biener <rguenther@suse.de>
17009 * tree-vrp.c (register_edge_assert_for_2): Also register
17010 asserts for dominating conversion results.
17012 2015-06-30 Bin Cheng <bin.cheng@arm.com>
17014 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
17015 field in struct iv.
17017 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
17020 * configure.ac: Fix filds and fildq test for 64-bit.
17021 * configure: Regenerated.
17023 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
17025 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
17026 (nvptx_reorg): Here. Keep the non-subreg pieces.
17028 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
17030 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
17031 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
17033 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
17035 * config/i386/i386.md (*jcc_1): Use %! in asm template.
17036 Set attribute "length_nobnd" instead of "length".
17039 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
17041 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
17043 * config/nios2/nios2.c (nios2_delegitimize_address): Make
17044 assert less restrictive.
17046 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
17049 * cgraphunit.c (cgraph_node::finalize_function): Do not call
17050 do_warn_unused_parameter.
17051 * function.c (do_warn_unused_parameter): Move from here.
17052 * function.h (do_warn_unused_parameter): Do not declare.
17054 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17057 * gcc.target/arm/armv-sync-comp-swap.c: New.
17058 * gcc.target/arm/armv-sync-op-acquire.c: New.
17059 * gcc.target/arm/armv-sync-op-full.c: New.
17060 * gcc.target/arm/armv-sync-op-release.c: New.
17062 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17065 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
17066 initial acquire barrier with final barrier.
17068 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17071 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
17072 initial acquire barrier with final barrier.
17074 2015-06-29 Richard Henderson <rth@redhat.com>
17076 * config/i386/constraints.md (Bf): New constraint.
17077 * config/i386/i386-c.c (ix86_target_macros): Define
17078 __GCC_ASM_FLAG_OUTPUTS__.
17079 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
17081 * doc/extend.texi (FlagOutputOperands): Document them.
17083 2015-06-29 Jiong Wang <jiong.wang@arm.com>
17085 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
17086 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
17088 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
17089 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
17090 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
17091 (aarch64_symbol_context): Ditto.
17092 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
17093 and use new pattern name.
17094 (aarch64_expand_mov_immediate): Ditto.
17095 (aarch64_print_operand): Ditto.
17096 (aarch64_classify_tls_symbol): Ditto.
17098 2015-06-29 Marek Polacek <polacek@redhat.com>
17099 Marc Glisse <marc.glisse@inria.fr>
17101 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
17102 * match.pd: ... pattern here.
17104 2015-06-29 Tom de Vries <tom@codesourcery.com>
17106 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
17107 function structure.
17109 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17111 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
17112 feature description, split out the native option, add a link to
17113 the feature documentation, rearrange and slightly rewrite text.
17114 (Aarch64 options, -mcpu): Likewise.
17115 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
17116 +rdma implies Adv. SIMD.
17118 2015-06-29 Marek Polacek <polacek@redhat.com>
17121 * function.c (stack_protect_epilogue): Remove a cast to int.
17122 * doc/invoke.texi: Update -Wswitch-bool description.
17124 2015-06-29 Richard Biener <rguenther@suse.de>
17126 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
17127 * fold-const.c (fold_binary_loc): Move &A - &B simplification
17128 via ptr_difference_const ...
17129 * match.pd: ... here.
17130 When matching (X ^ Y) == Y also match with swapped operands.
17132 2015-06-29 Richard Biener <rguenther@suse.de>
17134 * lto-streamer.h (LTO_major_version): Bump to 5.
17136 2015-06-29 Richard Biener <rguenther@suse.de>
17138 PR tree-optimization/66677
17139 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
17140 STMT_VINFO_VEC_STMT clobbering less strict.
17142 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
17144 PR middle-end/64130
17145 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
17146 division, compute max and min when value ranges for dividend and
17147 divisor are available.
17149 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
17150 Sandra Loosemore <sandra@codesourcery.com>
17152 * regrename.h (regrename_do_replace): Change to return bool.
17153 * regrename.c (rename_chains): Check return value of
17154 regname_do_replace.
17155 (regrename_do_replace): Re-validate the modified insns and
17156 return bool status.
17157 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
17158 Update to match rename_chains changes.
17159 * config/c6x/c6x.c (try_rename_operands): Assert that
17160 regrename_do_replace returns true.
17162 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
17164 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
17165 operand 2 here. Use copy_addr_to_reg to copy non-index
17166 register operand 2 to a temporary.
17167 (<mode>_stx): Ditto for operand 1.
17168 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
17169 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
17170 (ix86_store_bounds): Ditto.
17172 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
17174 * print-tree.c (print_node) [TREE_VEC]: Print its length.
17176 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
17178 * gimple.c (gimple_call_set_fndecl): Remove.
17179 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
17180 build1_loc directly instead of build_fold_addr_expr_loc.
17182 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
17184 * hash-map.h (hash_map::traverse): Use the definition of the
17185 Key typedef rather than the typedef itself.
17187 2015-06-26 Martin Jambor <mjambor@suse.cz>
17190 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
17191 NULL instead of calling dump_enabled_p.
17193 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17195 * config/aarch64/aarch64.opt: (override): New.
17196 * doc/invoke.texi (override): Document.
17197 * config/aarch64/aarch64.c (aarch64_flag_desc): New
17198 (aarch64_fusible_pairs): Likewise.
17199 (aarch64_tuning_flags): Likewise.
17200 (aarch64_tuning_override_function): Likewise.
17201 (aarch64_tuning_override_functions): Likewise.
17202 (aarch64_parse_one_option_token): Likewise.
17203 (aarch64_parse_boolean_options): Likewise.
17204 (aarch64_parse_fuse_string): Likewise.
17205 (aarch64_parse_tune_string): Likewise.
17206 (aarch64_parse_one_override_token): Likewise.
17207 (aarch64_parse_override_string): Likewise.
17208 (aarch64_override_options): Parse the -override string if it
17211 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17213 * config/aarch64/aarch64-protos.h (tune_params): Remove
17214 const from members.
17215 (aarch64_tune_params): Remove const, change to no longer be
17217 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
17218 change to no longer be a pointer, initialize to generic_tunings.
17219 (aarch64_min_divisions_for_recip_mul): Change dereference of
17220 aarch64_tune_params to member access.
17221 (aarch64_reassociation_width): Likewise.
17222 (aarch64_rtx_mult_cost): Likewise.
17223 (aarch64_address_cost): Likewise.
17224 (aarch64_branch_cost): Likewise.
17225 (aarch64_rtx_costs): Likewise.
17226 (aarch64_register_move_cost): Likewise.
17227 (aarch64_memory_move_cost): Likewise.
17228 (aarch64_sched_issue_rate): Likewise.
17229 (aarch64_builtin_vectorization_cost): Likewise.
17230 (aarch64_override_options): Take a copy of the selected tuning
17231 struct in to aarch64_tune_params, rather than just setting
17232 a pointer, change dereferences of aarch64_tune_params to member
17234 (aarch64_override_options_after_change): Change dereferences of
17235 aarch64_tune_params to member access.
17236 (aarch64_macro_fusion_p): Likewise.
17237 (aarch_macro_fusion_pair_p): Likewise.
17238 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
17240 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17242 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
17243 (aarch64_tune_flags): Likewise.
17244 (AARCH64_TUNE_FMA_STEERING): Likewise.
17245 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
17246 to AARCH64_FL_USE_FMA_STEERING_PASS.
17247 (cortex-a57.cortex-a53): Likewise.
17248 (cortex-a72): Use cortexa72_tunings.
17249 (cortex-a72.cortex-a53): Likewise.
17250 (exynos-m1): Likewise.
17251 * config/aarch64/aarch64-protos.h (tune_params): Add
17252 a field: extra_tuning_flags.
17253 * config/aarch64/aarch64-tuning-flags.def: New.
17254 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
17255 (aarch64_extra_tuning_flags): Likewise.
17256 (aarch64_tune_params): Declare here.
17257 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
17258 (cortexa53_tunings): Likewise.
17259 (cortexa57_tunings): Likewise.
17260 (thunderx_tunings): Likewise.
17261 (xgene1_tunings): Likewise.
17262 (cortexa72_tunings): New.
17263 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
17264 (gate): Check against aarch64_tune_params.
17265 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
17268 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17270 * config/aarch64/aarch64-fusion-pairs.def: New.
17271 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
17272 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
17273 aarch64_fusion_pairs.
17274 (AARCH64_FUSE_MOV_MOVK): Likewise.
17275 (AARCH64_FUSE_ADRP_ADD): Likewise.
17276 (AARCH64_FUSE_MOVK_MOVK): Likewise.
17277 (AARCH64_FUSE_ADRP_LDR): Likewise.
17278 (AARCH64_FUSE_CMP_BRANCH): Likewise.
17280 2015-06-26 Jiong Wang <jiong.wang@arm.com>
17282 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
17283 SYMBOL_SMALL_GOT_28K.
17284 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
17285 relocation modifiers.
17286 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
17287 (ldr_got_small_28k_<mode>): New.
17288 (ldr_got_small_28k_sidi): New.
17289 * config/aarch64/iterators.md (got_modifier): New mode iterator.
17290 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
17291 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17292 SYMBOL_SMALL_GOT_28K.
17293 (aarch64_rtx_costs): Add costs for new instruction sequences.
17294 (initialize_aarch64_code_model): Initialize new model.
17295 (aarch64_classify_symbol): Recognize new model and new symbol classification.
17296 (aarch64_asm_preferred_eh_data_format): Support new model.
17297 (aarch64_load_symref_appropriately): Generate new instruction
17298 sequences for -fpic.
17299 (TARGET_USE_PSEUDO_PIC_REG): New definition.
17300 (aarch64_use_pseudo_pic_reg): New function.
17302 2015-06-26 Jiong Wang <jiong.wang@arm.com>
17304 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17305 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
17306 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
17307 (aarch64_expand_mov_immediate): Ditto.
17308 (aarch64_print_operand): Ditto.
17309 (aarch64_classify_symbol): Ditto.
17311 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
17313 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
17315 2015-06-26 Bin Cheng <bin.cheng@arm.com>
17318 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
17319 assertion failed. Remove assertion itself.
17321 2015-06-26 Richard Biener <rguenther@suse.de>
17323 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
17324 and -A CMP CST -> A CMP -CST which is redundant with a pattern
17326 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
17327 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
17328 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
17329 * match.pd: ... patterns here.
17331 2015-06-26 Marek Polacek <polacek@redhat.com>
17333 * match.pd ((x | y) & ~(x & y) -> x ^ y,
17334 (x | y) & (~x ^ y) -> x & y): New patterns.
17336 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
17338 * rtl.h (emit): Add an optional boolean parameter to control
17339 whether barriers are emitted.
17340 * emit-rtl.c (emit): Likewise.
17341 * gensupport.c (get_emit_function): Return null rather than "emit".
17342 * genemit.c (gen_emit_seq): Handle the null return value.
17343 Don't emit barriers after the final instruction in the sequence.
17344 * gentarget-def.c (main): Don't emit barriers after the instruction.
17346 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17348 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
17349 TARGET_UNIFIED_ASM.
17351 2015-06-26 Richard Biener <rguenther@suse.de>
17353 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
17355 2015-06-26 Richard Biener <rguenther@suse.de>
17357 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
17358 irrespective on whether the inner operation has a single use
17359 of both off are constant.
17361 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
17362 Segher Boessenkool <segher@kernel.crashing.org>
17365 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
17366 before doing PUT_MODE or PUT_CODE on operands to avoid
17367 in-place RTX modification.
17369 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
17371 * gentarget-def.c (def_target_insn): Cast return of strtol to
17374 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17376 * gimple.h (gimple_call_set_fn): Move inline function.
17377 * gimple.c (gimple_call_set_fn): Relocate here.
17379 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
17383 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
17384 the replacement insn will work.
17386 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
17388 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
17391 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17393 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
17394 * cgraph.h: Include ipa-ref.h and plugin-api.h.
17395 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
17396 (symtab_node::address_can_be_compared_p): Move function.
17397 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
17399 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
17400 * auto-profile.c: Likewise.
17401 * bb-reorder.c: Likewise.
17402 * builtins.c: Likewise.
17403 * calls.c: Likewise.
17404 * cfgexpand.c: Likewise.
17405 * cgraphbuild.c: Likewise.
17406 * cgraphclones.c: Likewise.
17407 * cgraphunit.c: Likewise.
17408 * combine.c: Likewise.
17409 * coverage.c: Likewise.
17410 * data-streamer-in.c: Likewise.
17411 * data-streamer-out.c: Likewise.
17412 * data-streamer.c: Likewise.
17413 * dbxout.c: Likewise.
17414 * dwarf2out.c: Likewise.
17415 * except.c: Likewise.
17416 * expr.c: Likewise.
17417 * final.c: Likewise.
17418 * fold-const.c: Likewise.
17419 * ggc-page.c: Likewise.
17420 * gimple-fold.c: Likewise.
17421 * gimple-iterator.c: Likewise.
17422 * gimple-pretty-print.c: Likewise.
17423 * gimple-streamer-in.c: Likewise.
17424 * gimple-streamer-out.c: Likewise.
17425 * gimple.c: Likewise.
17426 * gimplify.c: Likewise.
17427 * ipa-chkp.c: Likewise.
17428 * ipa-comdats.c: Likewise.
17429 * ipa-cp.c: Likewise.
17430 * ipa-devirt.c: Likewise.
17431 * ipa-icf-gimple.c: Likewise.
17432 * ipa-icf.c: Likewise.
17433 * ipa-inline-analysis.c: Likewise.
17434 * ipa-inline-transform.c: Likewise.
17435 * ipa-inline.c: Likewise.
17436 * ipa-polymorphic-call.c: Likewise.
17437 * ipa-profile.c: Likewise.
17438 * ipa-prop.c: Likewise.
17439 * ipa-pure-const.c: Likewise.
17440 * ipa-ref.c: Likewise.
17441 * ipa-reference.c: Likewise.
17442 * ipa-split.c: Likewise.
17443 * ipa-utils.c: Likewise.
17444 * ipa-visibility.c: Likewise.
17446 * langhooks.c: Likewise.
17447 * lto-cgraph.c: Likewise.
17448 * lto-compress.c: Likewise.
17449 * lto-opts.c: Likewise.
17450 * lto-section-in.c: Likewise.
17451 * lto-section-out.c: Likewise.
17452 * lto-streamer-in.c: Likewise.
17453 * lto-streamer-out.c: Likewise.
17454 * lto-streamer.c: Likewise.
17455 * omp-low.c: Likewise.
17456 * opts-global.c: Likewise.
17457 * passes.c: Likewise.
17458 * predict.c: Likewise.
17459 * print-tree.c: Likewise.
17460 * profile.c: Likewise.
17462 * sanopt.c: Likewise.
17463 * stor-layout.c: Likewise.
17464 * symtab.c: Likewise.
17465 * toplev.c: Likewise.
17466 * trans-mem.c: Likewise.
17467 * tree-cfg.c: Likewise.
17468 * tree-chkp.c: Likewise.
17469 * tree-eh.c: Likewise.
17470 * tree-emutls.c: Likewise.
17471 * tree-inline.c: Likewise.
17472 * tree-nested.c: Likewise.
17473 * tree-parloops.c: Likewise.
17474 * tree-pretty-print.c: Likewise.
17475 * tree-profile.c: Likewise.
17476 * tree-sra.c: Likewise.
17477 * tree-ssa-alias.c: Likewise.
17478 * tree-ssa-live.c: Likewise.
17479 * tree-ssa-loop-ivcanon.c: Likewise.
17480 * tree-ssa-loop-ivopts.c: Likewise.
17481 * tree-ssa-pre.c: Likewise.
17482 * tree-ssa-sccvn.c: Likewise.
17483 * tree-ssa-strlen.c: Likewise.
17484 * tree-ssa-structalias.c: Likewise.
17485 * tree-streamer-in.c: Likewise.
17486 * tree-streamer-out.c: Likewise.
17487 * tree-streamer.c: Likewise.
17488 * tree-switch-conversion.c: Likewise.
17489 * tree-tailcall.c: Likewise.
17490 * tree-vect-data-refs.c: Likewise.
17491 * tree-vect-stmts.c: Likewise.
17492 * tree-vectorizer.c: Likewise.
17493 * tree.c: Likewise.
17494 * tsan.c: Likewise.
17495 * ubsan.c: Likewise.
17496 * value-prof.c: Likewise.
17497 * varasm.c: Likewise.
17498 * varpool.c: Likewise.
17499 * config/arm/arm.c: Likewise.
17500 * config/bfin/bfin.c: Likewise.
17501 * config/c6x/c6x.c: Likewise.
17502 * config/cris/cris.c: Likewise.
17503 * config/darwin-c.c: Likewise.
17504 * config/darwin.c: Likewise.
17505 * config/i386/i386.c: Likewise.
17506 * config/i386/winnt.c: Likewise.
17507 * config/microblaze/microblaze.c: Likewise.
17508 * config/mips/mips.c: Likewise.
17509 * config/rs6000/rs6000.c: Likewise.
17510 * config/rx/rx.c: Likewise.
17511 * config/s390/s390.c: Likewise.
17512 * config/tilegx/mul-tables.c: Likewise.
17514 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17516 * config/aarch64/aarch64.c, config/alpha/alpha.c,
17517 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
17518 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
17519 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
17520 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17521 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17522 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17523 config/microblaze/microblaze.c, config/mips/mips.c,
17524 config/mmix/mmix.c, config/mn10300/mn10300.c,
17525 config/moxie/moxie.c, config/msp430/msp430.c,
17526 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17527 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17528 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17529 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17530 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17531 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17532 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
17533 target-def.h include.
17534 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
17536 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17538 * Makefile.in (TARGET_DEF): Add target-insns.def.
17539 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
17540 (build/gentarget-def.o): New rule.
17541 (genprogrtl): Add target-def.
17542 * target-insns.def, gentarget-def.c: New files.
17543 * target.def: Add targetm.have_* and targetm.gen_* hooks,
17544 based on the contents of target-insns.def.
17545 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
17546 (HAVE_return, gen_return): Delete.
17547 * target-def.h: Include insn-target-def.h.
17548 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
17549 instead of direct calls. Rely on them to do the appropriate assertions.
17550 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
17551 (convert_jumps_to_returns): Use targetm interface instead of
17553 (thread_prologue_and_epilogue_insns): Likewise.
17554 * reorg.c (find_end_label, dbr_schedule): Likewise.
17555 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
17556 * shrink-wrap.c (convert_to_simple_return): Likewise.
17557 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
17559 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17561 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
17562 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17563 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
17564 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
17565 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17566 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17567 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17568 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
17569 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
17570 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17571 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17572 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17573 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17574 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17575 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17576 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
17579 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17581 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
17582 (unbounded_int_hashmap_traits::key_type): Likewise.
17583 * hash-map.h (hash_map): Get the key type from the traits.
17584 * hash-traits.h (default_hash_traits): By default, inherit from the
17585 template parameter.
17586 * alias.c (alias_set_traits): Delete.
17587 (alias_set_entry_d::children): Use alias_set_hash as the first
17588 template parameter.
17589 (record_alias_subset): Update accordingly.
17590 * except.c (tree_hash_traits): Delete.
17591 (type_to_runtime_map): Use tree_hash as the first template parameter.
17592 (init_eh): Update accordingly.
17593 * genmatch.c (capture_id_map_hasher): Delete.
17594 (cid_map_t): Use nofree_string_hash as first template parameter.
17595 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
17596 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
17597 Use symbol_compare_hash as the first template parameter in
17598 subdivide_hash_map.
17599 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
17600 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
17601 template parameter.
17602 * passes.c (pass_registry_hasher): Delete.
17603 (name_to_pass_map): Use nofree_string_hash as the first template
17605 (register_pass_name): Update accordingly.
17606 * sanopt.c (sanopt_tree_map_traits): Delete.
17607 (sanopt_tree_triplet_map_traits): Delete.
17608 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
17609 template parameter.
17610 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
17611 the first template parameter.
17612 * sese.c (rename_map_hasher): Delete.
17613 (rename_map_type): Use tree_ssa_name_hash as the first template
17615 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
17616 (function_summary::m_map): Use map_hash as the first template
17618 (function_summary::release): Update accordingly.
17619 * tree-if-conv.c (phi_args_hash_traits): Delete.
17620 (predicate_scalar_phi): Use tree_operand_hash as the first template
17621 parameter to phi_arg_map.
17622 * tree-inline.h (dependence_hasher): Delete.
17623 (copy_body_data::dependence_map): Use dependence_hash as the first
17624 template parameter.
17625 * tree-inline.c (remap_dependence_clique): Update accordingly.
17626 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
17627 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
17629 (addr_stridxptr): Update accordingly.
17630 * value-prof.c (profile_id_traits): Delete.
17631 (cgraph_node_map): Use profile_id_hash as the first template
17633 (init_node_map): Update accordingly.
17634 * config/alpha/alpha.c (string_traits): Delete.
17635 (machine_function::links): Use nofree_string_hash as the first
17636 template parameter.
17637 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
17638 * config/m32c/m32c.c (pragma_traits): Delete.
17639 (pragma_htab): Use nofree_string_hash as the first template parameter.
17640 (m32c_note_pragma_address): Update accordingly.
17641 * config/mep/mep.c (pragma_traits): Delete.
17642 (pragma_htab): Use nofree_string_hash as the first template parameter.
17643 (mep_note_pragma_flag): Update accordingly.
17644 * config/mips/mips.c (mips16_flip_traits): Delete.
17645 (mflip_mips16_htab): Use nofree_string_hash as the first template
17647 (mflip_mips16_use_mips16_p): Update accordingly.
17648 (local_alias_traits): Delete.
17649 (mips16_local_aliases): Use nofree_string_hash as the first template
17651 (mips16_local_alias): Update accordingly.
17653 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17655 * hash-map-traits.h (default_hashmap_traits): Delete.
17657 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17659 * hash-map-traits.h (unbounded_hashmap_traits): New class.
17660 (unbounded_int_hashmap_traits): Likewise.
17661 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
17663 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17665 * ipa-icf.h (symbol_compare_hash): New class.
17666 (symbol_compare_hashmap_traits): Use it.
17667 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
17668 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
17669 (mem_alloc_description::reverse_mem_map_t): Remove redundant
17670 default_hashmap_traits.
17671 * sanopt.c (sanopt_tree_triplet_hash): New class.
17672 (sanopt_tree_triplet_map_traits): Use it.
17674 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17676 * gengtype-parse.c (require_template_declaration): Allow '+' in
17677 template parameters. Consolidate cases.
17678 * hash-traits.h (int_hash): New class.
17679 * alias.c (alias_set_hash): New structure.
17680 (alias_set_traits): Use it.
17681 * symbol-summary.h (function_summary::map_hash): New class.
17682 (function_summary::summary_hashmap_traits): Use it.
17683 * tree-inline.h (dependence_hash): New class.
17684 (dependence_hasher): Use it.
17685 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
17686 * value-prof.c (profile_id_hash): New class.
17687 (profile_id_traits): Use it.
17689 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17691 * config/mips/mips.c (mips16_flip_traits): Use it.
17692 (local_alias_traits, mips16_local_aliases): Convert from a map of
17693 rtxes to a map of symbol names.
17694 (mips16_local_alias): Update accordingly.
17696 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17698 * hash-traits.h (string_hash, nofree_string_hash): New classes.
17699 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
17700 * passes.c (pass_registry_hasher): Likewise.
17701 * config/alpha/alpha.c (string_traits): Likewise.
17702 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
17703 * config/m32c/m32c.c (pragma_traits): Likewise.
17704 * config/mep/mep.c (pragma_traits): Likewise.
17706 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17708 * tree-hash-traits.h (tree_hash): New class.
17709 * except.c: Include tree-hash-traits.h.
17710 (tree_hash_traits): Use tree_hash.
17712 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17714 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
17715 * sese.c: Include tree-hash-traits.h.
17716 (rename_map_hasher): Use tree_ssa_name_hasher.
17718 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17720 * tree-hash-traits.h (tree_decl_hash): New class.
17721 * tree-ssa-strlen.c: Include tree-hash-traits.h.
17722 (stridxlist_hash_traits): Use tree_decl_hash.
17724 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17726 * tree-hash-traits.h: New file.
17727 (tree_operand_hash): New class.
17728 * sanopt.c: Include tree-hash-traits.h.
17729 (sanopt_tree_map_traits): Use tree_operand_hash.
17730 * tree-if-conv.c: Include tree-hash-traits.h.
17731 (phi_args_hash_traits): Use tree_operand_hash.
17732 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
17733 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
17735 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17737 * hash-map-traits.h: Include hash-traits.h.
17738 (simple_hashmap_traits): New class.
17739 * mem-stats.h (hash_map): Change the default traits to
17740 simple_hashmap_traits<default_hash_traits<Key> >.
17742 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17744 * hash-table.h: Update comments.
17746 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17748 * hash-traits.h (default_hash_traits): New structure.
17749 * hash-set.h (default_hashset_traits): Delete.
17750 (hash_set): Use default_hash_traits<Key> instead of
17751 default_hashset_traits. Delete hash_entry type and use Key directly.
17752 * ipa-devirt.c (pair_traits): Delete.
17753 (default_hash_traits <type_pair>): Override.
17754 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
17755 (odr_types_equivalent_p, add_type_duplicate): Likewise.
17757 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17759 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
17761 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17763 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
17764 (has_is_empty, is_empty_helper): Delete.
17765 (has_mark_deleted, mark_deleted_helper): Delete.
17766 (has_mark_empty, mark_empty_helper): Delete.
17767 (hash_table::is_deleted): Call the Descriptor unconditionally.
17768 (hash_table::is_empty): Likewise.
17769 (hash_table::mark_deleted): Likewise.
17770 (hash_table::mark_empty): Likewise.
17772 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17774 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
17775 redundant typedefs and members.
17776 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
17777 redundant typedefs.
17778 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
17779 * ipa-devirt.c (odr_name_hasher): Likewise.
17780 (polymorphic_call_target_hasher): Likewise.
17781 * ira-costs.c (cost_classes_hasher): Likewise.
17782 * statistics.c (stats_counter_hasher): Likewise.
17783 * trans-mem.c (log_entry_hasher): Likewise.
17784 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17785 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
17786 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
17787 * var-tracking.c (variable_hasher): Likewise.
17788 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
17789 Remove redundant typedefs and members.
17791 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17793 * hash-traits.h (ggc_cache_hasher): Rename to...
17794 (ggc_cache_remove): ...this and remove typedefs.
17795 (ggc_cache_ptr_hash): New class.
17796 * hash-table.h: Update commentary.
17797 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
17798 rather than ggc_cache_hasher.
17799 (const_wide_int_hasher, reg_attr_hasher): Likewise.
17800 (const_double_hasher, const_fixed_hasher): Likewise.
17801 * function.c (insn_cache_hasher): Likewise.
17802 * trans-mem.c (tm_wrapper_hasher): Likewise.
17803 * tree.h (tree_decl_map_cache_hasher): Likewise.
17804 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
17805 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
17806 * ubsan.c (tree_type_map_cache_hasher): Likewise.
17807 * varasm.c (tm_clone_hasher): Likewise.
17808 * config/i386/i386.c (dllimport_hasher): Likewise.
17809 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
17810 (tree_hasher): Likewise.
17812 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17814 * hash-traits.h (ggc_hasher): Rename to...
17815 (ggc_remover): ...this and remove typedefs.
17816 (ggc_cache_hasher): Update accordingly. Add typedefs.
17817 (ggc_ptr_hash): New class.
17818 * hash-table.h: Update comment.
17819 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
17821 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
17822 (tree_descriptor_hasher): Likewise.
17823 * cgraph.c (function_version_hasher): Likewise.
17824 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
17825 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
17826 (dw_loc_list_hasher, addr_hasher): Likewise.
17827 * function.h (used_type_hasher): Likewise.
17828 * function.c (temp_address_hasher): Likewise.
17829 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
17830 * libfuncs.h (libfunc_hasher): Likewise.
17831 * lto-streamer.h (decl_state_hasher): Likewise.
17832 * optabs.c (libfunc_decl_hasher): Likewise.
17833 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
17834 * varasm.c (section_hasher, object_block_hasher): Likewise.
17835 (const_rtx_desc_hasher): Likewise.
17836 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
17837 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
17839 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17841 * hash-traits.h (free_ptr_hash): New class.
17842 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
17843 rather than typed_free_remove. Remove redudant typedefs.
17844 (external_ref_hasher): Likewise.
17845 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
17846 (ehspec_hasher): Likewise.
17847 * ggc-common.c (saving_hasher): Likewise.
17848 * gimplify.c (gimplify_hasher): Likewise.
17849 * haifa-sched.c (delay_i2_hasher): Likewise.
17850 * loop-invariant.c (invariant_expr_hasher): Likewise.
17851 * loop-iv.c (biv_entry_hasher): Likewise.
17852 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
17853 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
17854 * tree-cfg.c (locus_discrim_hasher): Likewise.
17855 * tree-eh.c (finally_tree_hasher): Likewise.
17856 * tree-into-ssa.c (var_info_hasher): Likewise.
17857 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
17858 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
17859 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
17860 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
17861 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
17862 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
17863 (shared_bitmap_hasher): Likewise.
17864 * tree-ssa-threadupdate.c (redirection_data): Likewise.
17865 * tree-vectorizer.h (peel_info_hasher): Likewise.
17866 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
17867 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
17869 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17871 * hash-table.h: Update comments.
17872 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
17873 (nofree_ptr_hash): New class.
17874 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
17875 than typed_noop_remove. Remove redudant typedefs.
17876 * attribs.c (attribute_hasher): Likewise.
17877 * cfg.c (bb_copy_hasher): Likewise.
17878 * cselib.c (cselib_hasher): Likewise.
17879 * dse.c (invariant_group_base_hasher): Likewise.
17880 * dwarf2cfi.c (trace_info_hasher): Likewise.
17881 * dwarf2out.c (macinfo_entry_hasher): Likewise.
17882 (comdat_type_hasher, loc_list_hasher): Likewise.
17883 * gcse.c (pre_ldst_expr_hasher): Likewise.
17884 * genmatch.c (id_base): Likewise.
17885 * genrecog.c (test_pattern_hasher): Likewise.
17886 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
17887 * haifa-sched.c (delay_i1_hasher): Likewise.
17888 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
17889 * ipa-icf.h (congruence_class_group_hash): Likewise.
17890 * ipa-profile.c (histogram_hash): Likewise.
17891 * ira-color.c (allocno_hard_regs_hasher): Likewise.
17892 * lto-streamer.h (string_slot_hasher): Likewise.
17893 * lto-streamer.c (tree_entry_hasher): Likewise.
17894 * plugin.c (event_hasher): Likewise.
17895 * postreload-gcse.c (expr_hasher): Likewise.
17896 * store-motion.c (st_expr_hasher): Likewise.
17897 * tree-sra.c (uid_decl_hasher): Likewise.
17898 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
17899 (ssa_name_var_hash): Likewise.
17900 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
17901 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
17902 * tree-ssa-pre.c (pre_expr_d): Likewise.
17903 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
17904 * vtable-verify.h (registration_hasher): Likewise.
17905 * vtable-verify.c (vtbl_map_hasher): Likewise.
17906 * config/arm/arm.c (libcall_hasher): Likewise.
17907 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
17908 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
17909 * config/sol2.c (comdat_entry_hasher): Likewise.
17910 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
17911 (print_fold_checksum, fold_checksum_tree): Likewise.
17912 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
17913 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
17914 (fold_build_call_array_loc): Likewise.
17915 * tree-ssa-ccp.c (gimple_htab): Likewise.
17916 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
17917 rather than pointer_type.
17919 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17921 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
17922 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
17924 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17926 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
17927 (ggc_hasher::ggc_mx): Likewise.
17928 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
17929 that duplicate ggc_hasher ones.
17931 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17933 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
17934 (gt_cleare_cache): Check here for deleted and empty entries.
17935 Replace handle_cache_entry with a call to keep_cache_entry.
17936 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
17937 (ggc_cache_hasher::keep_cache_entry): New function.
17938 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
17939 (tm_wrapper_hasher::keep_cache_entry): New function.
17940 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
17941 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17942 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
17943 (type_cache_hasher::keep_cache_entry): New function.
17944 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
17945 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17946 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
17947 (tree_type_map_cache_hasher::keep_cache_entry): New function.
17948 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
17949 (tm_clone_hasher::keep_cache_entry): New function.
17950 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
17951 (dllimport_hasher::keep_cache_entry): New function.
17953 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17955 * hash-table.h: Include hash-traits.h.
17956 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
17957 (ggc_cache_hasher): Move to...
17958 * hash-traits.h: ...this new file.
17960 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17962 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
17963 struct cl_optimization.
17964 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
17965 * tree.c (make_node_stat): Allocate cl_optimization struct.
17966 (copy_node_stat): Allocate and copy cl_optimization struct.
17968 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17970 * function.h (struct incoming_args): Move struct.
17971 (pass_by_reference, reference_callee_copied): Remove prototypes.
17972 * emit-rtl.h (struct incoming_args): Relocate struct here.
17973 * calls.h (pass_by_reference, reference_callee_copied): Relocate
17975 * function.c (pass_by_reference, reference_callee_copied): Move.
17976 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
17977 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
17978 * ipa-chkp.c: Include calls.h.
17980 2015-06-25 Andrew Macleod <amacleod@redhat.com>
17982 * alias.h (alias_set_type): Move typedef.
17983 * coretypes.h (alias_set_type): Relocate typedef here.
17984 * rtl.h: Don't include alias.h.
17986 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17988 * cgraph.h (cgraph_rtl_info): Move to rtl.h
17989 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
17991 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
17992 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
17994 * calls.c: Include hard-reg-set.h before rtl.h.
17997 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17998 Vladimir Makarov <vmakarov@redhat.com>
18000 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
18003 2015-06-25 Richard Biener <rguenther@suse.de>
18005 * fold-const.c (fold_binary_loc): Move simplification of
18006 (X <<>> C1) & C2 ...
18007 * match.pd: ... here.
18009 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
18011 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
18013 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18015 * match.pd: Add patterns for vec_conds between 1 and 0.
18017 2015-06-25 Richard Biener <rguenther@suse.de>
18019 * tree-vect-stmts.c (vectorizable_conversion): Do not set
18020 STMT_VINFO_VEC_STMT for SLP.
18021 (vectorizable_store): Likewise.
18022 (vectorizable_load): Likewise.
18023 (vect_transform_stmt): Catch SLP vectorization clobbering
18024 STMT_VINFO_VEC_STMT.
18026 2015-06-25 Richard Biener <rguenther@suse.de>
18028 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
18030 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
18031 cleanup resulting dead code and parameters.
18032 (vect_transform_slp_perm_load): Adjust.
18034 2015-06-25 Nick Clifton <nickc@redhat.com>
18036 * config/bfin/bfin.c (bfin_expand_prologue): Set
18037 current_function_static_stack_size if flag_stack_usage_info is set.
18038 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
18039 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
18040 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18041 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
18043 2015-06-25 Tom de Vries <tom@codesourcery.com>
18045 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
18046 comment that the generated IV is unsigned.
18048 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18051 * config/arm/arm.c (arm_dbx_register_number): Return
18052 DWARF_FRAME_REGISTERS by default.
18054 2015-06-25 Tom de Vries <tom@codesourcery.com>
18056 * dominance.c (calculate_dominance_info): Fix verify_dominators call
18057 argument. Call verify_dominator when reusing dominator info.
18059 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
18062 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
18063 an additional element of the unspec vector. Modify indices
18065 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
18066 * config/sh/sh.c (prepare_move_operands): Pass incremented
18067 const_int to gen_GOTaddr2picreg.
18068 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
18070 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18072 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
18073 Condition on TARGET_FLOAT.
18075 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18077 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
18080 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18082 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
18084 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
18085 aarch64_err_no_fpadvsimd.
18087 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
18088 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
18089 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
18090 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
18091 Turn error into assert, test TARGET_FLOAT.
18092 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
18095 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
18098 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
18100 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18102 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
18104 2015-06-24 Renlin Li <renlin.li@arm.com>
18106 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
18107 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
18109 2015-06-24 Richard Biener <rguenther@suse.de>
18111 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
18113 (lower_opt_convert): Support lowering of conditional view_convert.
18114 (parser::parse_operation): Likewise.
18115 (parser::parse_for): Likewise.
18117 2015-06-24 Renlin Li <renlin.li@arm.com>
18119 * varasm.c (emit_local): Use unsigned int for align variable.
18121 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18124 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
18125 for negative numbers.
18127 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18129 PR rtl-optimization/66306
18130 * reload.c (find_reloads): Swap the match_dup info for
18131 commutative operands.
18133 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18135 * config/s390/vx-builtins.md
18136 ("vec_scatter_element<mode>_<non_vec_int>")
18137 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
18138 attribute with bhfgq.
18140 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18142 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
18144 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18146 * config/s390/s390-builtin-types.def: Add flag to indicate the
18147 options under which the function type is needed.
18148 * config/s390/s390-builtins.def: Add flag to indicate the options
18149 under which the builtin is enabled.
18150 * config/s390/s390-builtins.h: Add flags parameter to macro
18152 (bflags_for_builtin): New function.
18153 (flags_for_builtin): Renamed to ...
18154 (opflags_for_builtin): ... this.
18155 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
18156 flags_for_builtin to bflags_for_builtin and
18157 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
18158 * config/s390/s390.c: Add initialization of bflags_builtin and
18159 opflags_builtin arrays.
18160 Remove code for flags_builtin.
18161 (s390_init_builtins): Only create builtin function types if one of
18162 their flags is active.
18163 Only create builtins if all of their flags are active.
18164 (s390_expand_builtin): Rename flags_for_builtin to
18165 opflags_for_builtin.
18167 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18169 * config/s390/vecintrin.h: Remove internal builtins.
18171 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18173 * config/s390/s390.c (s390_secondary_reload): Fix check for
18174 GENERAL_REGS register class.
18176 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18178 * config/s390/s390.c (s390_support_vector_misalignment): Call
18179 default implementation for !TARGET_VX.
18181 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18183 * config/s390/s390.c (s390_legitimate_constant_p): Add
18186 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18188 * config/s390/s390.c (s390_vector_abi): New variable definition.
18189 (s390_check_type_for_vector_abi): New function.
18190 (TARGET_ASM_FILE_END): New macro definition.
18191 (s390_asm_file_end): New function.
18192 (s390_function_arg): Call s390_check_type_for_vector_abi.
18193 (s390_gimplify_va_arg): Likewise.
18194 * configure: Regenerate.
18195 * configure.ac: Check for .gnu_attribute Binutils feature.
18197 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
18200 * config/bfin/bfin.c (hwloop_optimize): Initialize
18201 JUMP_LABEL for newly created jump.
18203 2015-06-23 Tristan Gingold <gingold@adacore.com>
18205 * collect-utils.c (collect_wait): Unlink the response file here
18207 (do_wait): ...here.
18208 (utils_cleanup): ...and here.
18210 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
18212 * df-scan.c: Don't include target-def.h.
18213 * targhooks.c: Likewise.
18214 * config/arm/arm-c.c: Likewise.
18215 * config/i386/i386-c.c: Likewise.
18216 * config/nds32/nds32-cost.c: Likewise.
18217 * config/nds32/nds32-fp-as-gp.c: Likewise.
18218 * config/nds32/nds32-intrinsic.c: Likewise.
18219 * config/nds32/nds32-isr.c: Likewise.
18220 * config/nds32/nds32-md-auxiliary.c: Likewise.
18221 * config/nds32/nds32-memory-manipulation.c: Likewise.
18222 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18223 * config/nds32/nds32-predicates.c: Likewise.
18225 2015-06-23 Richard Biener <rguenther@suse.de>
18227 PR tree-optimization/66636
18228 * tree-vect-stmts.c (vectorizable_store): Properly compute the
18229 def type for further defs for strided stores.
18231 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
18233 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
18234 conditional selects.
18235 (setcc_int<mode>, setcc_float<mode>): Reformat.
18237 2015-06-23 Marek Polacek <polacek@redhat.com>
18239 * match.pd ((x + y) - (x | y) -> x & y,
18240 (x + y) - (x & y) -> x | y): New patterns.
18242 2015-06-23 Ludovic Courtès <ludo@gnu.org>
18245 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
18246 '-dynamic-linker' within %{!shared: ...}.
18248 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
18251 * config/i386/predicates.md (addsub_vm_operator): New predicate.
18252 (addsub_vs_operator): Ditto.
18253 (addsub_vs_parallel): Ditto.
18254 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
18255 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
18256 Put minus RTX before plus and adjust vec_merge selector.
18257 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
18258 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
18259 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
18260 (addsub vec_merge splitters): New combiner splitters.
18261 (addsub vec_select/vec_concat splitters): Ditto.
18263 2015-06-23 Bin Cheng <bin.cheng@arm.com>
18265 PR tree-optimization/66449
18266 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
18267 POINTER_PLUS_EXPR for pointers.
18269 2015-06-23 Alan Modra <amodra@gmail.com>
18271 * rtlanal.c (commutative_operand_precedence): Correct comments.
18272 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
18273 declaration. Return an int. Distinguish REG,REG return from
18275 (struct simplify_plus_minus_op_data): Make local to function.
18276 (simplify_plus_minus): Don't set canonicalized if merely sorting
18277 registers. Avoid packing ops if nothing changes. White space fixes.
18279 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
18281 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
18282 -fdump-ada-spec is passed but not if -fsyntax-only is.
18284 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
18287 * lra-lives.c (process_bb_lives): Check insn copying the same
18288 reload pseudo and don't create a copy for it.
18290 2015-06-22 Tom de Vries <tom@codesourcery.com>
18292 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
18295 2015-06-22 Tom de Vries <tom@codesourcery.com>
18297 * builtins.def (DEF_GOMP_BUILTIN): Test
18298 'flag_tree_parallelize_loops > 1' instead of
18299 'flag_tree_parallelize_loops'. Test flag_cilkplus.
18301 2015-06-22 Tom de Vries <tom@codesourcery.com>
18303 * dominance.c (calculate_dominance_info): Verify dominators if
18306 2015-06-22 Marek Polacek <polacek@redhat.com>
18308 * match.pd ((x ^ y) ^ (x | y) -> x & y,
18309 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
18310 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
18311 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
18313 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
18316 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
18317 cost of embedded comparison.
18319 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18322 * config/rs6000/predicates.md (altivec_register_operand): Permit
18323 virtual stack registers.
18324 (vsx_register_operand): Likewise.
18325 (vfloat_operand): Likewise.
18326 (vint_operand): Likewise.
18327 (vlogical_operand): Likewise.
18329 2015-06-22 Richard Biener <rguenther@suse.de>
18331 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
18332 and single_scalar_iteration_cost members.
18333 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
18334 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
18335 (vect_get_single_scalar_iteration_cost): Remove.
18336 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
18337 Use LOOP_VINFO_SCALAR_ITERATION_COST.
18338 * tree-vect-loop.c (destroy_loop_vec_info): Free
18340 (vect_get_single_scalar_iteration_cost): Compute result into
18341 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
18342 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
18343 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
18344 (vect_estimate_min_profitable_iters): Use them.
18346 2015-06-22 Christian Bruel <christian.bruel@st.com>
18349 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
18350 (TARGET_INSERT_ATTRIBUTES): Define.
18351 (thumb_flipper): New var.
18352 * config/arm/arm.opt (-mflip-thumb): New switch.
18354 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
18355 Martin Liska <mliska@suse.cz>
18358 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
18359 construction of arg_types.
18360 (sem_function::sem_function): Likewise.
18361 (sem_function::~sem_function): Remove destruction of arg_types.
18362 (sem_function::compatible_parm_types_p): New function.
18363 (sem_function::equals_wpa): Reorg matching of return values
18364 and parameter types.
18365 (sem_function::equals_private): Reorg mathcing of argument types.
18366 (sem_function::parse_tree_args): Remove.
18367 * ipa-icf.h (init_wpa): Do not call it.
18368 (parse_tree_args): Remove.
18369 (compatible_parm_types_p): Declare.
18370 (result_type): Remove.
18371 (arg_types): Remove.
18373 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
18376 * ipa-polymorphic-call.c
18377 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
18378 initializing alias oracle; fix formating; set base_alias_set if it
18381 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
18383 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
18384 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
18385 (find_inc): Likewise.
18386 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
18388 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
18389 * df-scan.c (df_swap_refs): Remove.
18390 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
18391 * dominance.c (link_roots): Use std::swap instead of manually swapping.
18392 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
18393 * fold-const.c (fold_relational_const): Likewise.
18394 * genattrtab.c (simplify_test_exp): Likewise.
18395 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
18396 gimple_simplify): Likewise.
18397 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
18398 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
18399 * ipa-devirt.c (add_type_duplicate): Likewise.
18400 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
18401 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
18402 * lra.c (lra_create_copy): Likewise.
18403 * lto-streamer-out.c (DFS::DFS): Likewise.
18404 * modulo-sched.c (get_sched_window): Likewise.
18405 * omega.c (omega_pretty_print_problem): Likewise.
18406 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
18407 * reload1.c (reloads_unique_chain_p): Likewise.
18408 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
18409 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
18411 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
18413 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
18414 predicate_mem_writes): Likewise.
18415 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
18416 * tree-predcom.c (combine_chains): Likewise.
18417 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
18418 refs_may_alias_p_1): Likewise.
18419 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
18420 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18421 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
18422 number_of_iterations_cond): Likewise.
18423 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
18424 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
18425 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
18426 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
18427 * tree-vrp.c (extract_range_from_binary_expr_1,
18428 extract_range_from_unary_expr_1): Likewise.
18430 2015-06-20 Marek Polacek <polacek@redhat.com>
18432 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
18434 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
18437 * config/sh/sh.c (prepare_move_operands): Replace subreg
18438 index term with R0 for base and index addressing.
18440 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
18442 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
18444 (movsf_aarch64): Change condition from register_operand to
18445 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
18446 load1. Change type for alternative 7 to store1.
18447 (movdf_aarch64): Likewise.
18449 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
18451 * config/vax/vax.md: Adjust sign/zero extend patterns to
18452 handle SUBREGs in operands[1].
18454 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18456 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
18457 of manually swapping.
18458 (expand_vec_perm_interleave2): Likewise.
18460 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
18462 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
18463 reuse bounds created for abnormal ssa names.
18465 2015-06-19 Jakub Jelinek <jakub@redhat.com>
18467 * config/nvptx/nvptx.md (allocate_stack): Rename to...
18468 (allocate_stack_<mode>): ... this, and add :P on both
18469 match_operand and unspec.
18470 (allocate_stack): New expander.
18472 2015-06-19 Christian Bruel <christian.bruel@st.com>
18476 * config/arm/arm.c (arm_set_current_function): Handle
18477 explicit default options.
18479 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
18481 * config/i386/i386.md (*movsicc_noc_zext): New insn.
18482 (zero-extended cmove with mem peephole2): New pattern.
18483 (cmove with mem peephole2): Merge patterns.
18485 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
18487 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
18489 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
18491 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
18492 * config/mips/mips.md (*madd4<mode>): Ditto.
18493 (*nmadd3<mode>) Ditto.
18494 (*nmadd4<mode>_fastmath): Ditto.
18495 (*nmadd3<mode>_fastmath): Ditto.
18496 (*nmsub4<mode>): Ditto.
18497 (*nmsub3<mode>): Ditto.
18498 (*nmsub4<mode>_fastmath): Ditto.
18499 (*nmsub3<mode>_fastmath): Ditto.
18501 2015-06-18 Michael Matz <matz@suse.de>
18503 PR middle-end/66253
18504 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
18505 grouped strided stores.
18506 (vectorizable_load): Don't use the DR from first_stmt in
18507 the non-SLP grouped strided case.
18509 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18512 * function.c (assign_bounds): Add arguments assign_regs,
18513 assign_special, assign_bt.
18514 (assign_parms): For vararg functions handle bounds in BT
18515 and special slots after incoming vararg bounds.
18517 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18519 PR middle-end/66568
18520 * cfgexpand.c (expand_return): Handle missing bounds.
18521 (expand_gimple_stmt_1): Likewise.
18522 * tree-chkp.c (chkp_expand_zero_bounds): New.
18523 * tree-chkp.h (chkp_expand_zero_bounds): New.
18525 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18527 PR middle-end/66567
18528 * ipa-chkp.c (chkp_maybe_create_clone): Require
18529 functions to be instrumentable.
18530 * tree-chkp.c (chkp_replace_function_pointer): Use
18531 chkp_instrumentable_p instead of attribute check.
18533 2015-06-18 Richard Biener <rguenther@suse.de>
18535 PR tree-optimization/66510
18536 * tree-vect-stmts.c (vectorizable_load): Properly compute the
18537 number of vector loads for SLP permuted loads.
18538 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
18539 check the stride for loop vectorization.
18540 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
18541 vectorization factor.
18542 (vect_analyze_group_access): If the group size is not a power
18543 of two require a epilogue loop.
18544 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
18545 compute and optimizing and alias test pruning after final
18546 vectorization factor computation.
18547 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
18549 (vect_transform_slp_perm_load): Properly compute the original
18550 number of vector load stmts.
18552 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
18554 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
18555 "unlikely character , in @var" warning.
18557 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
18559 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
18560 (ix86_function_arg_advance): Ditto.
18561 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
18563 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18565 * function.h (struct rtl_data): Remove struct and accessor macros.
18566 * emit-rtl.h (struct rtl_data): Relocate to here.
18567 * Makefile.in (GTFILES): Add emit-rtl.h.
18568 * df-core.c: Include emit-rtl.h.
18569 * genattrtab.c: Likewise.
18570 * genconditions.c: Likewise.
18571 * genpreds.c: Likewise.
18572 * genrecog.c: Likewise.
18573 * regcprop.c: Likewise.
18574 * resource.c: Likewise.
18575 * sched-rgn.c: Likewise.
18576 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18577 * config/i386/winnt.c: Likewise.
18579 2015-06-17 Jakub Jelinek <jakub@redhat.com>
18581 PR middle-end/66429
18582 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
18583 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
18584 and has_force_vectorize_loops flags from cfun into
18586 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
18587 if simduid is non-NULL.
18588 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
18589 * passes.def (pass_simduid_cleanup): Add new pass after loop
18591 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
18592 indirection from htab argument's type.
18593 (shrink_simd_arrays): New function.
18594 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
18595 Don't call adjust_simduid_builtins if there are no loops.
18596 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
18597 (pass_simduid_cleanup::execute): New method.
18598 (make_pass_simduid_cleanup): New function.
18600 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
18602 * tree-core.h (tree_target_option): Make opts field a pointer to a
18603 cl_target_option instead of an instance of the struct.
18604 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
18606 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
18607 TARGET_OPTION_NODE.
18608 (copy_node_stat): Allocate and copy struct cl_target_option.
18610 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18612 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
18613 Remove conditional exposure of prototypes.
18614 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
18615 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
18616 definitions in tree.h with functions.
18617 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
18619 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
18621 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
18623 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
18624 (*cmp<mode>_signed): ... this.
18625 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
18626 (*cmp<mode>_unsigned): ... this. Remove %b.
18628 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18630 * coretypes.h: Include input.h and as-a.h.
18631 * rtl.h: Include input.h and as-a.h for generator files.
18632 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
18633 * vec.c: Don't include diagnostic-core.h.
18634 * alias.c: Do not include input.h, line-map.h or is-a.h.
18635 * asan.c: Likewise.
18636 * attribs.c: Likewise.
18637 * auto-inc-dec.c: Likewise.
18638 * auto-profile.c: Likewise.
18639 * bb-reorder.c: Likewise.
18640 * bt-load.c: Likewise.
18641 * builtins.c: Likewise.
18642 * caller-save.c: Likewise.
18643 * calls.c: Likewise.
18644 * ccmp.c: Likewise.
18646 * cfganal.c: Likewise.
18647 * cfgbuild.c: Likewise.
18648 * cfgcleanup.c: Likewise.
18649 * cfgexpand.c: Likewise.
18650 * cfghooks.c: Likewise.
18651 * cfgloop.c: Likewise.
18652 * cfgloop.h: Likewise.
18653 * cfgloopanal.c: Likewise.
18654 * cfgloopmanip.c: Likewise.
18655 * cfgrtl.c: Likewise.
18656 * cgraph.c: Likewise.
18657 * cgraphbuild.c: Likewise.
18658 * cgraphclones.c: Likewise.
18659 * cgraphunit.c: Likewise.
18660 * cilk-common.c: Likewise.
18661 * combine-stack-adj.c: Likewise.
18662 * combine.c: Likewise.
18663 * compare-elim.c: Likewise.
18664 * convert.c: Likewise.
18665 * coverage.c: Likewise.
18666 * cppbuiltin.c: Likewise.
18667 * cprop.c: Likewise.
18669 * cselib.c: Likewise.
18670 * data-streamer-in.c: Likewise.
18671 * data-streamer-out.c: Likewise.
18672 * data-streamer.c: Likewise.
18673 * dbxout.c: Likewise.
18676 * debug.c: Likewise.
18677 * df-core.c: Likewise.
18678 * df-problems.c: Likewise.
18679 * df-scan.c: Likewise.
18682 * diagnostic-core.h: Likewise.
18683 * diagnostic.c: Likewise.
18684 * dojump.c: Likewise.
18685 * dominance.c: Likewise.
18686 * domwalk.c: Likewise.
18687 * double-int.c: Likewise.
18689 * dumpfile.c: Likewise.
18690 * dumpfile.h: Likewise.
18691 * dwarf2asm.c: Likewise.
18692 * dwarf2cfi.c: Likewise.
18693 * dwarf2out.c: Likewise.
18694 * emit-rtl.c: Likewise.
18695 * et-forest.c: Likewise.
18696 * except.c: Likewise.
18697 * explow.c: Likewise.
18698 * expmed.c: Likewise.
18699 * expr.c: Likewise.
18700 * final.c: Likewise.
18701 * fixed-value.c: Likewise.
18702 * fold-const.c: Likewise.
18703 * function.c: Likewise.
18704 * fwprop.c: Likewise.
18705 * gcc-plugin.h: Likewise.
18706 * gcse.c: Likewise.
18707 * generic-match-head.c: Likewise.
18708 * ggc-page.c: Likewise.
18709 * gimple-builder.c: Likewise.
18710 * gimple-expr.c: Likewise.
18711 * gimple-fold.c: Likewise.
18712 * gimple-iterator.c: Likewise.
18713 * gimple-low.c: Likewise.
18714 * gimple-match-head.c: Likewise.
18715 * gimple-pretty-print.c: Likewise.
18716 * gimple-ssa-isolate-paths.c: Likewise.
18717 * gimple-ssa-strength-reduction.c: Likewise.
18718 * gimple-streamer-in.c: Likewise.
18719 * gimple-streamer-out.c: Likewise.
18720 * gimple-streamer.h: Likewise.
18721 * gimple-walk.c: Likewise.
18722 * gimple.c: Likewise.
18723 * gimplify-me.c: Likewise.
18724 * gimplify.c: Likewise.
18725 * godump.c: Likewise.
18726 * graph.c: Likewise.
18727 * graphite-blocking.c: Likewise.
18728 * graphite-dependences.c: Likewise.
18729 * graphite-interchange.c: Likewise.
18730 * graphite-isl-ast-to-gimple.c: Likewise.
18731 * graphite-optimize-isl.c: Likewise.
18732 * graphite-poly.c: Likewise.
18733 * graphite-scop-detection.c: Likewise.
18734 * graphite-sese-to-poly.c: Likewise.
18735 * graphite.c: Likewise.
18736 * haifa-sched.c: Likewise.
18737 * hw-doloop.c: Likewise.
18738 * ifcvt.c: Likewise.
18739 * init-regs.c: Likewise.
18740 * input.c: Likewise.
18741 * internal-fn.c: Likewise.
18742 * ipa-chkp.c: Likewise.
18743 * ipa-comdats.c: Likewise.
18744 * ipa-cp.c: Likewise.
18745 * ipa-devirt.c: Likewise.
18746 * ipa-icf-gimple.c: Likewise.
18747 * ipa-icf.c: Likewise.
18748 * ipa-inline-analysis.c: Likewise.
18749 * ipa-inline-transform.c: Likewise.
18750 * ipa-inline.c: Likewise.
18751 * ipa-polymorphic-call.c: Likewise.
18752 * ipa-profile.c: Likewise.
18753 * ipa-prop.c: Likewise.
18754 * ipa-pure-const.c: Likewise.
18755 * ipa-ref.c: Likewise.
18756 * ipa-reference.c: Likewise.
18757 * ipa-split.c: Likewise.
18758 * ipa-utils.c: Likewise.
18759 * ipa-visibility.c: Likewise.
18761 * ira-build.c: Likewise.
18762 * ira-color.c: Likewise.
18763 * ira-conflicts.c: Likewise.
18764 * ira-costs.c: Likewise.
18765 * ira-emit.c: Likewise.
18766 * ira-lives.c: Likewise.
18768 * jump.c: Likewise.
18769 * langhooks.c: Likewise.
18771 * loop-doloop.c: Likewise.
18772 * loop-init.c: Likewise.
18773 * loop-invariant.c: Likewise.
18774 * loop-iv.c: Likewise.
18775 * loop-unroll.c: Likewise.
18776 * lower-subreg.c: Likewise.
18777 * lra-assigns.c: Likewise.
18778 * lra-coalesce.c: Likewise.
18779 * lra-constraints.c: Likewise.
18780 * lra-eliminations.c: Likewise.
18781 * lra-lives.c: Likewise.
18782 * lra-remat.c: Likewise.
18783 * lra-spills.c: Likewise.
18785 * lto-cgraph.c: Likewise.
18786 * lto-compress.c: Likewise.
18787 * lto-opts.c: Likewise.
18788 * lto-section-in.c: Likewise.
18789 * lto-section-out.c: Likewise.
18790 * lto-streamer-in.c: Likewise.
18791 * lto-streamer-out.c: Likewise.
18792 * lto-streamer.c: Likewise.
18794 * mode-switching.c: Likewise.
18795 * modulo-sched.c: Likewise.
18796 * omega.c: Likewise.
18797 * omp-low.c: Likewise.
18798 * optabs.c: Likewise.
18799 * opts-global.c: Likewise.
18800 * opts.h: Likewise.
18801 * passes.c: Likewise.
18802 * plugin.c: Likewise.
18803 * postreload-gcse.c: Likewise.
18804 * postreload.c: Likewise.
18805 * predict.c: Likewise.
18806 * pretty-print.h: Likewise.
18807 * print-rtl.c: Likewise.
18808 * print-tree.c: Likewise.
18809 * profile.c: Likewise.
18810 * real.c: Likewise.
18811 * realmpfr.c: Likewise.
18812 * recog.c: Likewise.
18814 * reg-stack.c: Likewise.
18815 * regcprop.c: Likewise.
18816 * reginfo.c: Likewise.
18817 * regrename.c: Likewise.
18818 * regstat.c: Likewise.
18819 * reload.c: Likewise.
18820 * reload1.c: Likewise.
18821 * reorg.c: Likewise.
18822 * resource.c: Likewise.
18823 * rtl-chkp.c: Likewise.
18824 * rtl-error.c: Likewise.
18825 * rtlanal.c: Likewise.
18826 * rtlhooks.c: Likewise.
18827 * sanopt.c: Likewise.
18828 * sched-deps.c: Likewise.
18829 * sched-ebb.c: Likewise.
18830 * sched-rgn.c: Likewise.
18831 * sched-vis.c: Likewise.
18832 * sdbout.c: Likewise.
18833 * sel-sched-dump.c: Likewise.
18834 * sel-sched-ir.c: Likewise.
18835 * sel-sched.c: Likewise.
18836 * sese.c: Likewise.
18837 * shrink-wrap.c: Likewise.
18838 * simplify-rtx.c: Likewise.
18839 * stack-ptr-mod.c: Likewise.
18840 * statistics.c: Likewise.
18841 * stmt.c: Likewise.
18842 * stor-layout.c: Likewise.
18843 * store-motion.c: Likewise.
18844 * streamer-hooks.c: Likewise.
18845 * stringpool.c: Likewise.
18846 * symtab.c: Likewise.
18847 * target-globals.c: Likewise.
18848 * targhooks.c: Likewise.
18849 * toplev.c: Likewise.
18850 * tracer.c: Likewise.
18851 * trans-mem.c: Likewise.
18852 * tree-affine.c: Likewise.
18853 * tree-browser.c: Likewise.
18854 * tree-call-cdce.c: Likewise.
18855 * tree-cfg.c: Likewise.
18856 * tree-cfgcleanup.c: Likewise.
18857 * tree-chkp-opt.c: Likewise.
18858 * tree-chkp.c: Likewise.
18859 * tree-chrec.c: Likewise.
18860 * tree-complex.c: Likewise.
18861 * tree-data-ref.c: Likewise.
18862 * tree-dfa.c: Likewise.
18863 * tree-diagnostic.c: Likewise.
18864 * tree-dump.c: Likewise.
18865 * tree-eh.c: Likewise.
18866 * tree-emutls.c: Likewise.
18867 * tree-if-conv.c: Likewise.
18868 * tree-inline.c: Likewise.
18869 * tree-into-ssa.c: Likewise.
18870 * tree-iterator.c: Likewise.
18871 * tree-loop-distribution.c: Likewise.
18872 * tree-nested.c: Likewise.
18873 * tree-nrv.c: Likewise.
18874 * tree-object-size.c: Likewise.
18875 * tree-outof-ssa.c: Likewise.
18876 * tree-parloops.c: Likewise.
18877 * tree-phinodes.c: Likewise.
18878 * tree-predcom.c: Likewise.
18879 * tree-pretty-print.c: Likewise.
18880 * tree-profile.c: Likewise.
18881 * tree-scalar-evolution.c: Likewise.
18882 * tree-sra.c: Likewise.
18883 * tree-ssa-address.c: Likewise.
18884 * tree-ssa-alias.c: Likewise.
18885 * tree-ssa-ccp.c: Likewise.
18886 * tree-ssa-coalesce.c: Likewise.
18887 * tree-ssa-copy.c: Likewise.
18888 * tree-ssa-copyrename.c: Likewise.
18889 * tree-ssa-dce.c: Likewise.
18890 * tree-ssa-dom.c: Likewise.
18891 * tree-ssa-dse.c: Likewise.
18892 * tree-ssa-forwprop.c: Likewise.
18893 * tree-ssa-ifcombine.c: Likewise.
18894 * tree-ssa-live.c: Likewise.
18895 * tree-ssa-loop-ch.c: Likewise.
18896 * tree-ssa-loop-im.c: Likewise.
18897 * tree-ssa-loop-ivcanon.c: Likewise.
18898 * tree-ssa-loop-ivopts.c: Likewise.
18899 * tree-ssa-loop-manip.c: Likewise.
18900 * tree-ssa-loop-niter.c: Likewise.
18901 * tree-ssa-loop-prefetch.c: Likewise.
18902 * tree-ssa-loop-unswitch.c: Likewise.
18903 * tree-ssa-loop.c: Likewise.
18904 * tree-ssa-math-opts.c: Likewise.
18905 * tree-ssa-operands.c: Likewise.
18906 * tree-ssa-phiopt.c: Likewise.
18907 * tree-ssa-phiprop.c: Likewise.
18908 * tree-ssa-pre.c: Likewise.
18909 * tree-ssa-propagate.c: Likewise.
18910 * tree-ssa-reassoc.c: Likewise.
18911 * tree-ssa-sccvn.c: Likewise.
18912 * tree-ssa-scopedtables.c: Likewise.
18913 * tree-ssa-sink.c: Likewise.
18914 * tree-ssa-strlen.c: Likewise.
18915 * tree-ssa-structalias.c: Likewise.
18916 * tree-ssa-tail-merge.c: Likewise.
18917 * tree-ssa-ter.c: Likewise.
18918 * tree-ssa-threadedge.c: Likewise.
18919 * tree-ssa-threadupdate.c: Likewise.
18920 * tree-ssa-uncprop.c: Likewise.
18921 * tree-ssa-uninit.c: Likewise.
18922 * tree-ssa.c: Likewise.
18923 * tree-ssanames.c: Likewise.
18924 * tree-stdarg.c: Likewise.
18925 * tree-streamer-in.c: Likewise.
18926 * tree-streamer-out.c: Likewise.
18927 * tree-streamer.c: Likewise.
18928 * tree-switch-conversion.c: Likewise.
18929 * tree-tailcall.c: Likewise.
18930 * tree-vect-data-refs.c: Likewise.
18931 * tree-vect-generic.c: Likewise.
18932 * tree-vect-loop-manip.c: Likewise.
18933 * tree-vect-loop.c: Likewise.
18934 * tree-vect-patterns.c: Likewise.
18935 * tree-vect-slp.c: Likewise.
18936 * tree-vect-stmts.c: Likewise.
18937 * tree-vectorizer.c: Likewise.
18938 * tree-vrp.c: Likewise.
18939 * tree.c: Likewise.
18940 * tsan.c: Likewise.
18941 * ubsan.c: Likewise.
18942 * valtrack.c: Likewise.
18943 * value-prof.c: Likewise.
18944 * var-tracking.c: Likewise.
18945 * varasm.c: Likewise.
18946 * varpool.c: Likewise.
18947 * vmsdbgout.c: Likewise.
18948 * vtable-verify.c: Likewise.
18950 * wide-int.cc: Likewise.
18951 * xcoffout.c: Likewise.
18952 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
18953 * common/common-targhooks.c: Likewise.
18954 * config/aarch64/aarch64-builtins.c: Likewise.
18955 * config/aarch64/aarch64.c: Likewise.
18956 * config/alpha/alpha.c: Likewise.
18957 * config/arc/arc.c: Likewise.
18958 * config/arm/aarch-common.c: Likewise.
18959 * config/arm/arm-builtins.c: Likewise.
18960 * config/arm/arm-c.c: Likewise.
18961 * config/arm/arm.c: Likewise.
18962 * config/avr/avr-c.c: Likewise.
18963 * config/avr/avr-log.c: Likewise.
18964 * config/avr/avr.c: Likewise.
18965 * config/bfin/bfin.c: Likewise.
18966 * config/c6x/c6x.c: Likewise.
18967 * config/cr16/cr16.c: Likewise.
18968 * config/cris/cris.c: Likewise.
18969 * config/darwin-c.c: Likewise.
18970 * config/darwin.c: Likewise.
18971 * config/default-c.c: Likewise.
18972 * config/epiphany/epiphany.c: Likewise.
18973 * config/epiphany/mode-switch-use.c: Likewise.
18974 * config/epiphany/resolve-sw-modes.c: Likewise.
18975 * config/fr30/fr30.c: Likewise.
18976 * config/frv/frv.c: Likewise.
18977 * config/ft32/ft32.c: Likewise.
18978 * config/glibc-c.c: Likewise.
18979 * config/h8300/h8300.c: Likewise.
18980 * config/i386/i386-c.c: Likewise.
18981 * config/i386/i386.c: Likewise.
18982 * config/i386/msformat-c.c: Likewise.
18983 * config/i386/winnt-cxx.c: Likewise.
18984 * config/i386/winnt-stubs.c: Likewise.
18985 * config/i386/winnt.c: Likewise.
18986 * config/ia64/ia64-c.c: Likewise.
18987 * config/ia64/ia64.c: Likewise.
18988 * config/iq2000/iq2000.c: Likewise.
18989 * config/lm32/lm32.c: Likewise.
18990 * config/m32c/m32c-pragma.c: Likewise.
18991 * config/m32c/m32c.c: Likewise.
18992 * config/m32r/m32r.c: Likewise.
18993 * config/m68k/m68k.c: Likewise.
18994 * config/mcore/mcore.c: Likewise.
18995 * config/mep/mep-pragma.c: Likewise.
18996 * config/mep/mep.c: Likewise.
18997 * config/microblaze/microblaze-c.c: Likewise.
18998 * config/microblaze/microblaze.c: Likewise.
18999 * config/mips/mips.c: Likewise.
19000 * config/mmix/mmix.c: Likewise.
19001 * config/mn10300/mn10300.c: Likewise.
19002 * config/moxie/moxie.c: Likewise.
19003 * config/msp430/msp430-c.c: Likewise.
19004 * config/msp430/msp430.c: Likewise.
19005 * config/nds32/nds32-cost.c: Likewise.
19006 * config/nds32/nds32-fp-as-gp.c: Likewise.
19007 * config/nds32/nds32-intrinsic.c: Likewise.
19008 * config/nds32/nds32-isr.c: Likewise.
19009 * config/nds32/nds32-md-auxiliary.c: Likewise.
19010 * config/nds32/nds32-memory-manipulation.c: Likewise.
19011 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19012 * config/nds32/nds32-predicates.c: Likewise.
19013 * config/nds32/nds32.c: Likewise.
19014 * config/nios2/nios2.c: Likewise.
19015 * config/nvptx/nvptx.c: Likewise.
19016 * config/pa/pa.c: Likewise.
19017 * config/pdp11/pdp11.c: Likewise.
19018 * config/rl78/rl78-c.c: Likewise.
19019 * config/rl78/rl78.c: Likewise.
19020 * config/rs6000/rs6000-c.c: Likewise.
19021 * config/rs6000/rs6000.c: Likewise.
19022 * config/rx/rx.c: Likewise.
19023 * config/s390/s390-c.c: Likewise.
19024 * config/s390/s390.c: Likewise.
19025 * config/sh/sh-c.c: Likewise.
19026 * config/sh/sh-mem.cc: Likewise.
19027 * config/sh/sh.c: Likewise.
19028 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19029 * config/sh/sh_treg_combine.cc: Likewise.
19030 * config/sol2-c.c: Likewise.
19031 * config/sol2-cxx.c: Likewise.
19032 * config/sol2-stubs.c: Likewise.
19033 * config/sol2.c: Likewise.
19034 * config/sparc/sparc-c.c: Likewise.
19035 * config/sparc/sparc.c: Likewise.
19036 * config/spu/spu-c.c: Likewise.
19037 * config/spu/spu.c: Likewise.
19038 * config/stormy16/stormy16.c: Likewise.
19039 * config/tilegx/mul-tables.c: Likewise.
19040 * config/tilegx/tilegx-c.c: Likewise.
19041 * config/tilegx/tilegx.c: Likewise.
19042 * config/tilepro/mul-tables.c: Likewise.
19043 * config/tilepro/tilepro-c.c: Likewise.
19044 * config/tilepro/tilepro.c: Likewise.
19045 * config/v850/v850-c.c: Likewise.
19046 * config/v850/v850.c: Likewise.
19047 * config/vax/vax.c: Likewise.
19048 * config/visium/visium.c: Likewise.
19049 * config/vms/vms-c.c: Likewise.
19050 * config/vms/vms.c: Likewise.
19051 * config/vxworks.c: Likewise.
19052 * config/winnt-c.c: Likewise.
19053 * config/xtensa/xtensa.c: Likewise.
19055 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
19057 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
19059 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
19061 2015-06-17 Richard Biener <rguenther@suse.de>
19063 PR tree-optimization/66251
19064 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
19065 stmts for SLP strided stores.
19068 2015-05-22 Richard Biener <rguenther@suse.de>
19070 PR tree-optimization/66251
19071 * tree-vect-stmts.c (vectorizable_conversion): Properly
19072 set STMT_VINFO_VEC_STMT even for the SLP case.
19074 2015-05-26 Michael Matz <matz@suse.de>
19076 PR middle-end/66251
19077 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
19078 STMT_VINFO_VEC_STMT, also with SLP.
19080 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
19083 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
19084 (*avx_addsubv4df3_1s): Ditto.
19085 (*sse3_addsubv2df3_1): Ditto.
19086 (*sse3_addsubv2df3_1s): Ditto.
19087 (*avx_addsubv8sf3_1): Ditto.
19088 (*avx_addsubv8sf3_1s): Ditto.
19089 (*sse3_addsubv4sf3_1): Ditto.
19090 (*sse3_addsubv4sf3_1s): Ditto.
19092 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
19094 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
19095 (SYSROOT_SUFFIX_SPEC): Update.
19096 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
19097 (STARTFILE_PREFIX_SPEC): Update.
19098 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
19099 (MULTILIB_REQUIRED): New.
19100 (MULTILIB_OSDIRNAMES): New.
19101 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
19102 (MULTILIB_REQUIRED): New.
19103 (MULTILIB_OSDIRNAMES): New.
19105 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
19107 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
19108 * config/aarch64/aarch64-options-extensions.def: Update "fP",
19109 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
19110 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
19111 (AARCH64_FL_PAN): New.
19112 (AARCH64_FL_LOR): New.
19113 (AARCH64_FL_RDMA): New.
19114 (AARCH64_FL_FOR_ARCH8_1): New.
19115 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
19116 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
19118 2015-06-16 Martin Liska <mliska@suse.cz>
19120 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
19121 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
19124 2015-06-16 Richard Biener <rguenther@suse.de>
19126 * tree-vect-stmts.c (vectorizable_store): Adjust.
19127 (vectorizable_load): Likewise.
19128 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19130 (vect_create_data_ref_ptr): Likewise.
19131 (bump_vector_ptr): Adjust.
19133 2015-06-16 Richard Biener <rguenther@suse.de>
19135 * tree-vect-stmts.c (vectorizable_load): Properly start loads
19136 with the first element if this is grouped loads.
19138 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
19140 * config/arm/arm-protos.h (struct tune_params): Rename
19141 log_op_non_sc to log_op_non_short_circuit, and rename enum
19142 values to expand SC to SHORT_CIRCUIT.
19143 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
19144 to LOG_OP_NON_SHORT_CIRCUIT.
19145 (arm_fastmul_tune):Likewise
19146 (arm_strongarm_tune): Likewise.
19147 (arm_xscale_tune): Likewise.
19148 (arm_9e_tune): Likewise.
19149 (arm_marvell_pj4_tune): Likewise.
19150 (arm_v6t2_tune): Likewise.
19151 (arm_cortex_tune): Likewise.
19152 (arm_cortex_a8_tune): Likewise.
19153 (arm_cortex_a7_tune): Likewise.
19154 (arm_cortex_a15_tune): Likewise.
19155 (arm_cortex_a53_tune): Likewise.
19156 (arm_cortex_a57_tune): Likewise.
19157 (arm_xgene1_tune): Likewise.
19158 (arm_cortex_a5_tune): Likewise.
19159 (arm_cortex_a9_tune): Likewise.
19160 (arm_cortex_a12_tune): Likewise.
19161 (arm_v7m_tune): Likewise.
19162 (arm_cortex_m7_tune): Likewise.
19163 (arm_v6m_tune): Likewise.
19164 (arm_fa726te_tune): Likewise.
19166 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
19168 * altivec.md: Delete UNSPEC_VMLADDUHM.
19169 (mulv4si3_p8): New pattern.
19170 (mulv4si3): Use it for POWER8.
19171 (mulv8hi3): Use vmladduhm with zero addend.
19172 (altivec_vmladduhm): Descriptive RTL.
19174 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
19176 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
19177 to use neon_move instead of mov_imm.
19178 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
19179 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
19181 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
19182 aarch64_float_const_zero_rtx_p check before TFmode check.
19183 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
19185 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
19186 code and attributes to match. Change condition from register_operand
19187 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
19188 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
19191 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
19194 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
19195 there is no parent.
19197 2015-06-14 Shiva Chen <shiva0217@gmail.com>
19199 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
19200 HOST_WIDE_INT parameter.
19202 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
19205 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
19206 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
19208 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
19210 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
19212 * rtl.h (classify_insn): Declare.
19213 * emit-rtl.c (classify_insn): Move to...
19214 * rtl.c: ...here and add generator support.
19215 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
19216 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
19217 * genemit.c (gen_emit_seq): New function.
19218 (gen_expand, gen_split): Use it.
19220 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
19222 * tree.c (make_vector_stat): Fix comment to state that the
19223 function returns a VECTOR_CST.
19225 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
19227 * gensupport.h (add_implicit_parallel): Declare.
19228 * genrecog.c (add_implicit_parallel): Move to...
19229 * gensupport.c (add_implicit_parallel): ...here.
19230 (process_one_cond_exec): Use it.
19231 * genemit.c (gen_insn): Likewise.
19233 2015-06-13 Iain Sandoe <iain@codesourcery.com>
19236 * passes.c (rest_of_decl_compilation): Do not register globals for
19237 early debug if they are declared in built-ins.
19239 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
19241 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
19243 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19245 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
19247 (noce_try_cmove_arith): Likewise.
19248 (noce_get_alt_condition): Likewise.
19250 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19252 * common/config/i386/i386-common.c
19253 (OPTION_MASK_ISA_MWAITX_SET): New.
19254 (ix86_handle_option): Handle mwaitx.
19255 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
19256 (x86_64-*-*): Likewise.
19257 * config/i386/mwaitxintrin.h: New header.
19258 * config/i386/cpuid.h (bit_MWAITX): Define.
19259 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19261 * config/i386/i386.opt (mwaitx): New.
19262 * config/i386/i386-builtin-types.def
19263 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
19264 * config/i386/i386-c.c: Define __MWAITX__ if needed.
19265 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
19267 (ix86_option_override_internal): Handle new option.
19268 (processor_alias_table): Added PTA_MWAITX.
19269 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
19270 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
19271 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
19272 IX86_BUILTIN_MONITORX built-ins.
19273 * config/i386/i386.h (TARGET_MWAITX): New.
19274 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
19276 (mwaitx): New pattern.
19277 (monitorx_<mode>): New pattern.
19278 * config/i386/x86intrin.h: Include mwaitxintrin.h.
19279 * doc/extend.texi: Document monitorx and mwaitx builtins.
19280 * doc/invoke.texi: Document -mmwaitx option.
19282 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
19284 * emit-rtl.c (need_atomic_barrier_p): Mask model with
19285 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
19287 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
19289 * dbxout.c (xcoff_debug_hooks): Provide a function for
19290 register_main_translation_unit hook.
19292 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
19294 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
19295 variants cases from switch.
19296 (rs6000_post_atomic_barrier): Same.
19297 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
19298 (rs6000_expand_atomic_exchange): Same.
19299 (rs6000_expand_atomic_op): Same.
19300 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
19301 SYNC variants cases from switch.
19302 (atomic_load): Same.
19303 (atomic_store): Same.
19305 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
19307 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
19308 CONST_INT for goto.
19310 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
19313 * dwarf2out.c (check_die): Check for common duplicate attributes.
19314 (add_location_or_const_value_attribute): Do not add duplicate
19316 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
19318 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
19319 (gen_type_die_with_usage): Call check_die.
19320 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
19322 2015-06-11 Jason Merrill <jason@redhat.com>
19324 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
19327 2015-06-11 Marek Polacek <polacek@redhat.com>
19329 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
19331 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
19334 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
19335 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
19336 (*addx_extend_sp32): Fix pasto.
19337 (*subx_extend): Rename into...
19338 (*subx_extend_sp32): ...this.
19339 (*adddi3_extend_sp32): Add earlyclobber.
19340 (*subdi3_insn_sp32): Likewise.
19341 (*subdi3_extend_sp32): Likewise.
19342 (*and_not_di_sp32): Likewise.
19343 (*or_not_di_sp32): Likewise.
19344 (*xor_not_di_sp32): Likewise.
19345 (*negdi2_sp32): Likewise.
19346 (*one_cmpldi2_sp32): Likewise.
19348 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
19350 * debug.h (struct gcc_debug_hooks): Add a
19351 register_main_translation_unit hook.
19352 * debug.c (do_nothing_debug_hooks): Provide a function for this
19354 * dbxout.c (dbx_debug_hooks): Likewise.
19355 * sdbout.c (sdb_debug_hooks): Likewise.
19356 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19357 * dwarf2out.c (main_translation_unit): New global variable.
19358 (dwarf2out_register_main_translation_unit): New function
19359 implementing the new hook.
19360 (dwarf2_debug_hooks): Assign
19361 dwarf2out_register_main_translation_unit to this new hook.
19362 (dwarf2out_init): Associate any main translation unit to
19365 2015-06-11 Marek Polacek <polacek@redhat.com>
19367 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
19369 2015-06-11 Marek Polacek <polacek@redhat.com>
19371 * match.pd: Use single_use throughout.
19373 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19375 * config/arm/arm.c (arm_option_params_internal): When optimising
19376 for speed set max_insns_skipped when arm_restrict_it.
19378 2015-06-11 Christian Bruel <christian.bruel@st.com>
19381 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
19383 (arm_cpu_builtins): New function.
19384 (arm_pragma_target_parse): Call arm_cpu_builtins.
19385 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
19386 (arm_register_target_pragmas): Likewise.
19387 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
19388 Call arm_register_target_pragmas.
19389 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
19390 (arm_pragma_target_parse): Likewise.
19392 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
19394 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
19395 of the second operand.
19397 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
19400 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
19401 to prepare mask operand for AVX512 modes.
19403 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
19406 * doc/md.texi (Machine Constraints): Document that on the PowerPC
19407 if you use a constraint that targets a VSX register, you must use
19408 %x<n> in the template.
19410 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
19412 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
19413 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
19414 (define_insn "trap"): New definition.
19416 2015-06-10 Richard Biener <rguenther@suse.de>
19418 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
19420 (vect_supported_load_permutation_p): ... here. Handle
19421 supportable permutations in reductions.
19422 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
19423 for vectorizing strided group loads.
19425 2015-06-10 Jakub Jelinek <jakub@redhat.com>
19428 * config/i386/i386.c (ix86_split_long_move): For collisions
19429 involving direct tls segment refs, move the UNSPEC_TP possibly
19430 wrapped in ZERO_EXTEND out of the address for lea, to each of
19433 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19435 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
19436 dmb sy. Adjust tabs.
19438 2015-06-10 Tom de Vries <tom@codesourcery.com>
19440 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
19442 2015-06-10 Martin Liska <mliska@suse.cz>
19445 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
19446 all enum values in mem_alloc_origin.
19447 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
19449 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
19450 * bitmap.c (bitmap_register): Likewise.
19451 (dump_bitmap_statistics): Likewise.
19452 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
19453 (ggc_record_overhead): Likewise.
19454 * hash-map.h: Likewise.
19455 * hash-set.h: Likewise.
19456 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
19457 * hash-table.h: Likewise.
19458 * vec.c (vec_prefix::register_overhead): Likewise.
19459 (vec_prefix::release_overhead): Likewise.
19460 (dump_vec_loc_statistics): Likewise.
19462 2015-06-09 Christian Bruel <christian.bruel@st.com>
19465 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
19466 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
19467 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
19468 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
19469 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
19470 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
19471 (arm_valid_target_attribute_p): Likewise.
19472 (arm_set_current_function, arm_can_inline_p): Likewise.
19473 (arm_valid_target_attribute_rec): Likewise.
19474 (arm_previous_fndecl): New variable.
19475 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19476 (TARGET_CAN_INLINE_P): Define.
19477 (arm_asm_trampoline_template): Emit mode.
19478 (arm_file_start): Don't set unified syntax.
19479 (arm_declare_function_name): Set unified syntax and mode.
19480 (arm_option_override): Init target_option_default_node.
19481 and target_option_current_node.
19482 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
19483 (*call_symbol): Likewise.
19484 * doc/extend.texi: Document ARM/Thumb target attribute.
19485 * doc/invoke.texi: Likewise.
19487 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19490 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19491 PR rtl-optimization/64164
19492 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19493 * tree-ssa-copyrename.c: Removed.
19494 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19495 -ftree-coalesce-vars.
19496 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19497 * common.opt (ftree-copyrename): Ignore.
19498 (ftree-coalesce-inlined-vars): Likewise.
19499 * doc/invoke.texi: Remove the ignored options above.
19500 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19501 * tree-ssa-coalesce.h: ... here.
19502 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19503 headers required by it.
19504 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19505 across variables when flag_tree_coalesce_vars. Check register
19506 use and promoted modes to allow coalescing. Moved to
19507 tree-ssa-coalesce.c.
19508 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19509 with its member functions to tree-ssa-coalesce.c.
19510 (var_map_base_init): Likewise. Renamed to
19511 compute_samebase_partition_bases.
19512 (partition_view_normal): Drop want_bases parameter.
19513 (partition_view_bitmap): Likewise.
19514 * tree-ssa-live.h: Adjust declarations.
19515 * tree-ssa-coalesce.c: Include explow.h.
19516 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19517 default defs at the entry point.
19518 (dump_part_var_map): New.
19519 (compute_optimized_partition_bases): New, called by...
19520 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19521 of compute_samebase_partition_bases. Adjust.
19522 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19523 * cfgexpand.c (leader_merge): New.
19524 (get_rtl_for_parm_ssa_default_def): New.
19525 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19526 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19527 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19528 redundant MEM attr setting.
19529 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19531 (expand_one_stack_var): ... this. New wrapper to check and
19532 skip already expanded SSA partitions.
19533 (record_alignment_for_reg_var): New, factored out of...
19534 (expand_one_var): ... this.
19535 (expand_one_ssa_partition): New.
19536 (adjust_one_expanded_partition_var): New.
19537 (expand_one_register_var): Check and skip already expanded SSA
19539 (expand_used_vars): Don't create DECLs for anonymous SSA
19540 names. Expand all SSA partitions, then adjust all SSA names.
19541 (pass::execute): Replace the loops that set
19542 SA.partition_to_pseudo from partition leaders and cleared
19543 DECL_RTL for multi-location variables, and that which used to
19544 rename vars and set attrs, with one that clears DECL_RTL and
19545 checks that PARMs and RESULTs default_defs match DECL_RTL.
19546 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19547 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19548 * explow.c (promote_ssa_mode): New.
19549 * explow.h (promote_ssa_mode): Declare.
19550 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19551 * function.c: Include cfgexpand.h.
19552 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19553 (use_register_for_parm_decl): Wrapper for the above to
19554 special-case the result_ptr.
19555 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19556 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19557 multiple locations.
19558 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19559 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19560 (assign_parm_setup_block): Prefer SSA-assigned location.
19561 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19562 if stack_parm is NULL.
19563 (assign_parm_setup_stack): Prefer SSA-assigned location.
19564 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19565 rtl before testing for pointer bounds. Special-case result_ptr.
19566 (expand_function_start): Maybe reset DECL_RTL of result.
19567 Prefer SSA-assigned location for result and static chain.
19568 Factor out DECL_RESULT and SET_DECL_RTL.
19569 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19570 anonymous SSA names. Use promote_ssa_mode.
19571 (get_temp_reg): Likewise.
19572 (remove_ssa_form): Adjust.
19573 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19574 and get its reg_usage for reg invalidation.
19575 (compute_bb_dataflow): Pass it insn.
19576 (emit_notes_in_bb): Likewise.
19577 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19578 fail assert on conversion between unsigned types.
19580 2015-06-09 Tom de Vries <tom@codesourcery.com>
19582 PR tree-optimization/65460
19583 * omp-low.c (expand_omp_target): Set parallelized_function on
19584 cgraph_node for child_fn.
19586 2015-06-09 Tom de Vries <tom@codesourcery.com>
19588 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
19589 parallelized_function before add_new_function.
19591 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
19593 * gcc-plugin.h: Move decls to plugin.h and include it.
19594 * plugin.h: Relocate decls from gcc-plugin.h
19595 * ggc-page.c: Include required header files.
19596 * passes.c: Likewise.
19597 * cgraphunit.c: Likewise.
19599 2015-06-09 Tom de Vries <tom@codesourcery.com>
19601 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
19603 2015-06-09 Jason Merrill <jason@redhat.com>
19606 * toplev.c (check_global_declaration): Don't warn about a clone.
19608 2015-06-09 Marek Polacek <polacek@redhat.com>
19610 PR tree-optimization/66299
19611 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
19612 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
19615 2015-06-09 Richard Biener <rguenther@suse.de>
19617 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
19618 (vect_analyze_slp_instance): Instead do not falsely drop
19621 2015-06-09 Richard Biener <rguenther@suse.de>
19623 PR middle-end/66423
19624 * match.pd: Handle A % (unsigned)(1 << B).
19626 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
19628 * varasm.c (output_object_block_htab): Remove.
19629 (output_object_block_compare): New.
19630 (output_object_blocks): Sort named object_blocks before outputting
19633 2015-06-09 Richard Biener <rguenther@suse.de>
19635 PR tree-optimization/66419
19636 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
19637 consider GROUP_GAP when detecting a perfect subchain.
19639 2015-06-09 Nick Clifton <nickc@redhat.com>
19641 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
19642 place read only data in the .frodata section.
19644 2015-06-09 Shiva Chen <shiva0217@gmail.com>
19646 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
19647 (atomic_store<mode>): Likewise.
19649 2015-06-09 Richard Biener <rguenther@suse.de>
19651 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
19653 2015-06-09 Richard Biener <rguenther@suse.de>
19655 PR middle-end/66413
19656 * tree-inline.c (insert_init_debug_bind): Unshare value.
19658 2015-06-09 Richard Biener <rguenther@suse.de>
19660 PR tree-optimization/66396
19661 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
19662 Rename virtual operands.
19664 2015-06-09 Tom de Vries <tom@codesourcery.com>
19666 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
19667 always return false.
19669 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19671 PR rtl-optimization/64164
19672 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19673 * tree-ssa-copyrename.c: Removed.
19674 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19675 -ftree-coalesce-vars.
19676 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19677 * common.opt (ftree-copyrename): Ignore.
19678 (ftree-coalesce-inlined-vars): Likewise.
19679 * doc/invoke.texi: Remove the ignored options above.
19680 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19681 * tree-ssa-coalesce.h: ... here.
19682 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19683 headers required by it.
19684 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19685 across variables when flag_tree_coalesce_vars. Check register
19686 use and promoted modes to allow coalescing. Moved to
19687 tree-ssa-coalesce.c.
19688 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19689 with its member functions to tree-ssa-coalesce.c.
19690 (var_map_base_init): Likewise. Renamed to
19691 compute_samebase_partition_bases.
19692 (partition_view_normal): Drop want_bases parameter.
19693 (partition_view_bitmap): Likewise.
19694 * tree-ssa-live.h: Adjust declarations.
19695 * tree-ssa-coalesce.c: Include explow.h.
19696 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19697 default defs at the entry point.
19698 (dump_part_var_map): New.
19699 (compute_optimized_partition_bases): New, called by...
19700 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19701 of compute_samebase_partition_bases. Adjust.
19702 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19703 * cfgexpand.c (leader_merge): New.
19704 (get_rtl_for_parm_ssa_default_def): New.
19705 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19706 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19707 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19708 redundant MEM attr setting.
19709 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19711 (expand_one_stack_var): ... this. New wrapper to check and
19712 skip already expanded SSA partitions.
19713 (record_alignment_for_reg_var): New, factored out of...
19714 (expand_one_var): ... this.
19715 (expand_one_ssa_partition): New.
19716 (adjust_one_expanded_partition_var): New.
19717 (expand_one_register_var): Check and skip already expanded SSA
19719 (expand_used_vars): Don't create DECLs for anonymous SSA
19720 names. Expand all SSA partitions, then adjust all SSA names.
19721 (pass::execute): Replace the loops that set
19722 SA.partition_to_pseudo from partition leaders and cleared
19723 DECL_RTL for multi-location variables, and that which used to
19724 rename vars and set attrs, with one that clears DECL_RTL and
19725 checks that PARMs and RESULTs default_defs match DECL_RTL.
19726 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19727 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19728 * explow.c (promote_ssa_mode): New.
19729 * explow.h (promote_ssa_mode): Declare.
19730 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19731 * function.c: Include cfgexpand.h.
19732 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19733 (use_register_for_parm_decl): Wrapper for the above to
19734 special-case the result_ptr.
19735 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19736 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19737 multiple locations.
19738 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19739 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19740 (assign_parm_setup_block): Prefer SSA-assigned location.
19741 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19742 if stack_parm is NULL.
19743 (assign_parm_setup_stack): Prefer SSA-assigned location.
19744 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19745 rtl before testing for pointer bounds. Special-case result_ptr.
19746 (expand_function_start): Maybe reset DECL_RTL of result.
19747 Prefer SSA-assigned location for result and static chain.
19748 Factor out DECL_RESULT and SET_DECL_RTL.
19749 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19750 anonymous SSA names. Use promote_ssa_mode.
19751 (get_temp_reg): Likewise.
19752 (remove_ssa_form): Adjust.
19753 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19754 and get its reg_usage for reg invalidation.
19755 (compute_bb_dataflow): Pass it insn.
19756 (emit_notes_in_bb): Likewise.
19757 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19758 fail assert on conversion between unsigned types.
19760 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19763 * tree-inline.c (reset_debug_binding): New.
19764 (reset_debug_bindings): Likewise.
19765 (expand_call_inline): Call it.
19767 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19769 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
19772 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19774 * lto-streamer-out.c (lto_output_location): Stream
19775 reserved locations correctly.
19776 * lto-streamer-in.c (lto_output_location): Likewise.
19778 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
19780 * coretypes.h: Include hash-table.h and hash-set.h for host files.
19781 * ggc.h: Don't include statistics.h>
19782 * hash-map.h: Remove all includes.
19783 * hash-set.h: Likewise.
19784 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
19785 the include list. Remove <new>.
19786 * inchash.h: Remove all includes.
19787 * mem-stats.h: Likewise.
19788 * vec.h: No special processing for generators or ggc.
19789 * alias.c : Adjust include files.
19790 * alloc-pool.c : Likewise.
19791 * alloc-pool.h : Likewise.
19792 * asan.c : Likewise.
19793 * attribs.c : Likewise.
19794 * auto-inc-dec.c : Likewise.
19795 * auto-profile.c : Likewise.
19796 * bb-reorder.c : Likewise.
19797 * bitmap.c : Likewise.
19798 * bitmap.h : Likewise.
19799 * bt-load.c : Likewise.
19800 * builtins.c : Likewise.
19801 * caller-save.c : Likewise.
19802 * calls.c : Likewise.
19803 * ccmp.c : Likewise.
19804 * cfg.c : Likewise.
19805 * cfganal.c : Likewise.
19806 * cfgbuild.c : Likewise.
19807 * cfgcleanup.c : Likewise.
19808 * cfgexpand.c : Likewise.
19809 * cfghooks.c : Likewise.
19810 * cfgloop.c : Likewise.
19811 * cfgloop.h : Likewise.
19812 * cfgloopanal.c : Likewise.
19813 * cfgloopmanip.c : Likewise.
19814 * cfgrtl.c : Likewise.
19815 * cgraph.c : Likewise.
19816 * cgraphbuild.c : Likewise.
19817 * cgraphclones.c : Likewise.
19818 * cgraphunit.c : Likewise.
19819 * cilk-common.c : Likewise.
19820 * combine-stack-adj.c : Likewise.
19821 * combine.c : Likewise.
19822 * compare-elim.c : Likewise.
19823 * context.c : Likewise.
19824 * convert.c : Likewise.
19825 * coverage.c : Likewise.
19826 * cppbuiltin.c : Likewise.
19827 * cprop.c : Likewise.
19828 * cse.c : Likewise.
19829 * cselib.c : Likewise.
19830 * data-streamer-in.c : Likewise.
19831 * data-streamer-out.c : Likewise.
19832 * data-streamer.c : Likewise.
19833 * data-streamer.h : Likewise.
19834 * dbxout.c : Likewise.
19835 * dce.c : Likewise.
19836 * ddg.c : Likewise.
19837 * debug.c : Likewise.
19838 * df-core.c : Likewise.
19839 * df-problems.c : Likewise.
19840 * df-scan.c : Likewise.
19842 * dfp.c : Likewise.
19843 * dojump.c : Likewise.
19844 * dominance.c : Likewise.
19845 * domwalk.c : Likewise.
19846 * double-int.c : Likewise.
19847 * dse.c : Likewise.
19848 * dumpfile.c : Likewise.
19849 * dwarf2asm.c : Likewise.
19850 * dwarf2cfi.c : Likewise.
19851 * dwarf2out.c : Likewise.
19852 * emit-rtl.c : Likewise.
19853 * et-forest.c : Likewise.
19854 * except.c : Likewise.
19855 * except.h : Likewise.
19856 * explow.c : Likewise.
19857 * expmed.c : Likewise.
19858 * expr.c : Likewise.
19859 * final.c : Likewise.
19860 * fixed-value.c : Likewise.
19861 * fold-const.c : Likewise.
19862 * function.c : Likewise.
19863 * fwprop.c : Likewise.
19864 * gcc-plugin.h : Likewise.
19865 * gcc.c : Likewise.
19866 * gcse-common.c : Likewise.
19867 * gcse.c : Likewise.
19868 * genattrtab.c : Likewise.
19869 * genautomata.c : Likewise.
19870 * genconditions.c : Likewise.
19871 * genemit.c : Likewise.
19872 * generic-match-head.c : Likewise.
19873 * genextract.c : Likewise.
19874 * gengtype-state.c : Likewise.
19875 * gengtype.c : Likewise.
19876 * genhooks.c : Likewise.
19877 * genmatch.c : Likewise.
19878 * genmodes.c : Likewise.
19879 * genrecog.c : Likewise.
19880 * gensupport.c : Likewise.
19881 * ggc-common.c : Likewise.
19882 * ggc-internal.h : Likewise.
19883 * ggc-none.c : Likewise.
19884 * ggc-page.c : Likewise.
19885 * gimple-builder.c : Likewise.
19886 * gimple-expr.c : Likewise.
19887 * gimple-fold.c : Likewise.
19888 * gimple-iterator.c : Likewise.
19889 * gimple-low.c : Likewise.
19890 * gimple-match-head.c : Likewise.
19891 * gimple-pretty-print.c : Likewise.
19892 * gimple-ssa-isolate-paths.c : Likewise.
19893 * gimple-ssa-strength-reduction.c : Likewise.
19894 * gimple-ssa.h : Likewise.
19895 * gimple-streamer-in.c : Likewise.
19896 * gimple-streamer-out.c : Likewise.
19897 * gimple-streamer.h : Likewise.
19898 * gimple-walk.c : Likewise.
19899 * gimple.c : Likewise.
19900 * gimplify-me.c : Likewise.
19901 * gimplify.c : Likewise.
19902 * godump.c : Likewise.
19903 * graph.c : Likewise.
19904 * graphds.c : Likewise.
19905 * graphite-blocking.c : Likewise.
19906 * graphite-dependences.c : Likewise.
19907 * graphite-interchange.c : Likewise.
19908 * graphite-isl-ast-to-gimple.c : Likewise.
19909 * graphite-optimize-isl.c : Likewise.
19910 * graphite-poly.c : Likewise.
19911 * graphite-scop-detection.c : Likewise.
19912 * graphite-sese-to-poly.c : Likewise.
19913 * graphite.c : Likewise.
19914 * haifa-sched.c : Likewise.
19915 * hard-reg-set.h : Likewise.
19916 * hw-doloop.c : Likewise.
19917 * ifcvt.c : Likewise.
19918 * inchash.c : Likewise.
19919 * incpath.c : Likewise.
19920 * init-regs.c : Likewise.
19921 * input.c : Likewise.
19922 * internal-fn.c : Likewise.
19923 * ipa-chkp.c : Likewise.
19924 * ipa-comdats.c : Likewise.
19925 * ipa-cp.c : Likewise.
19926 * ipa-devirt.c : Likewise.
19927 * ipa-icf-gimple.c : Likewise.
19928 * ipa-icf.c : Likewise.
19929 * ipa-inline-analysis.c : Likewise.
19930 * ipa-inline-transform.c : Likewise.
19931 * ipa-inline.c : Likewise.
19932 * ipa-polymorphic-call.c : Likewise.
19933 * ipa-profile.c : Likewise.
19934 * ipa-prop.c : Likewise.
19935 * ipa-pure-const.c : Likewise.
19936 * ipa-ref.c : Likewise.
19937 * ipa-reference.c : Likewise.
19938 * ipa-split.c : Likewise.
19939 * ipa-utils.c : Likewise.
19940 * ipa-visibility.c : Likewise.
19941 * ipa.c : Likewise.
19942 * ira-build.c : Likewise.
19943 * ira-color.c : Likewise.
19944 * ira-conflicts.c : Likewise.
19945 * ira-costs.c : Likewise.
19946 * ira-emit.c : Likewise.
19947 * ira-lives.c : Likewise.
19948 * ira.c : Likewise.
19949 * jump.c : Likewise.
19950 * langhooks.c : Likewise.
19951 * lcm.c : Likewise.
19952 * libfuncs.h : Likewise.
19953 * lists.c : Likewise.
19954 * loop-doloop.c : Likewise.
19955 * loop-init.c : Likewise.
19956 * loop-invariant.c : Likewise.
19957 * loop-iv.c : Likewise.
19958 * loop-unroll.c : Likewise.
19959 * lower-subreg.c : Likewise.
19960 * lra-assigns.c : Likewise.
19961 * lra-coalesce.c : Likewise.
19962 * lra-constraints.c : Likewise.
19963 * lra-eliminations.c : Likewise.
19964 * lra-lives.c : Likewise.
19965 * lra-remat.c : Likewise.
19966 * lra-spills.c : Likewise.
19967 * lra.c : Likewise.
19968 * lto-cgraph.c : Likewise.
19969 * lto-compress.c : Likewise.
19970 * lto-opts.c : Likewise.
19971 * lto-section-in.c : Likewise.
19972 * lto-section-out.c : Likewise.
19973 * lto-streamer-in.c : Likewise.
19974 * lto-streamer-out.c : Likewise.
19975 * lto-streamer.c : Likewise.
19976 * lto-streamer.h : Likewise.
19977 * mcf.c : Likewise.
19978 * mode-switching.c : Likewise.
19979 * modulo-sched.c : Likewise.
19980 * omega.c : Likewise.
19981 * omp-low.c : Likewise.
19982 * optabs.c : Likewise.
19983 * opts-global.c : Likewise.
19984 * opts.h : Likewise.
19985 * passes.c : Likewise.
19986 * plugin.c : Likewise.
19987 * postreload-gcse.c : Likewise.
19988 * postreload.c : Likewise.
19989 * predict.c : Likewise.
19990 * print-rtl.c : Likewise.
19991 * print-tree.c : Likewise.
19992 * profile.c : Likewise.
19993 * read-md.c : Likewise.
19994 * read-md.h : Likewise.
19995 * read-rtl.c : Likewise.
19996 * real.c : Likewise.
19997 * realmpfr.c : Likewise.
19998 * recog.c : Likewise.
19999 * ree.c : Likewise.
20000 * reg-stack.c : Likewise.
20001 * regcprop.c : Likewise.
20002 * reginfo.c : Likewise.
20003 * regrename.c : Likewise.
20004 * regstat.c : Likewise.
20005 * reload.c : Likewise.
20006 * reload1.c : Likewise.
20007 * reorg.c : Likewise.
20008 * resource.c : Likewise.
20009 * rtl-chkp.c : Likewise.
20010 * rtl.c : Likewise.
20011 * rtl.h : Likewise.
20012 * rtlanal.c : Likewise.
20013 * rtlhash.c : Likewise.
20014 * rtlhash.h : Likewise.
20015 * rtlhooks.c : Likewise.
20016 * sanopt.c : Likewise.
20017 * sched-deps.c : Likewise.
20018 * sched-ebb.c : Likewise.
20019 * sched-rgn.c : Likewise.
20020 * sched-vis.c : Likewise.
20021 * sdbout.c : Likewise.
20022 * sel-sched-dump.c : Likewise.
20023 * sel-sched-ir.c : Likewise.
20024 * sel-sched-ir.h : Likewise.
20025 * sel-sched.c : Likewise.
20026 * sese.c : Likewise.
20027 * shrink-wrap.c : Likewise.
20028 * shrink-wrap.h : Likewise.
20029 * simplify-rtx.c : Likewise.
20030 * stack-ptr-mod.c : Likewise.
20031 * statistics.c : Likewise.
20032 * stmt.c : Likewise.
20033 * stor-layout.c : Likewise.
20034 * store-motion.c : Likewise.
20035 * stringpool.c : Likewise.
20036 * symtab.c : Likewise.
20037 * target-globals.c : Likewise.
20038 * targhooks.c : Likewise.
20039 * tlink.c : Likewise.
20040 * toplev.c : Likewise.
20041 * tracer.c : Likewise.
20042 * trans-mem.c : Likewise.
20043 * tree-affine.c : Likewise.
20044 * tree-affine.h : Likewise.
20045 * tree-browser.c : Likewise.
20046 * tree-call-cdce.c : Likewise.
20047 * tree-cfg.c : Likewise.
20048 * tree-cfgcleanup.c : Likewise.
20049 * tree-chkp-opt.c : Likewise.
20050 * tree-chkp.c : Likewise.
20051 * tree-chrec.c : Likewise.
20052 * tree-complex.c : Likewise.
20053 * tree-data-ref.c : Likewise.
20054 * tree-dfa.c : Likewise.
20055 * tree-diagnostic.c : Likewise.
20056 * tree-dump.c : Likewise.
20057 * tree-eh.c : Likewise.
20058 * tree-eh.h : Likewise.
20059 * tree-emutls.c : Likewise.
20060 * tree-hasher.h : Likewise.
20061 * tree-if-conv.c : Likewise.
20062 * tree-inline.c : Likewise.
20063 * tree-inline.h : Likewise.
20064 * tree-into-ssa.c : Likewise.
20065 * tree-iterator.c : Likewise.
20066 * tree-loop-distribution.c : Likewise.
20067 * tree-nested.c : Likewise.
20068 * tree-nrv.c : Likewise.
20069 * tree-object-size.c : Likewise.
20070 * tree-outof-ssa.c : Likewise.
20071 * tree-parloops.c : Likewise.
20072 * tree-phinodes.c : Likewise.
20073 * tree-predcom.c : Likewise.
20074 * tree-pretty-print.c : Likewise.
20075 * tree-profile.c : Likewise.
20076 * tree-scalar-evolution.c : Likewise.
20077 * tree-sra.c : Likewise.
20078 * tree-ssa-address.c : Likewise.
20079 * tree-ssa-alias.c : Likewise.
20080 * tree-ssa-ccp.c : Likewise.
20081 * tree-ssa-coalesce.c : Likewise.
20082 * tree-ssa-copy.c : Likewise.
20083 * tree-ssa-copyrename.c : Likewise.
20084 * tree-ssa-dce.c : Likewise.
20085 * tree-ssa-dom.c : Likewise.
20086 * tree-ssa-dse.c : Likewise.
20087 * tree-ssa-forwprop.c : Likewise.
20088 * tree-ssa-ifcombine.c : Likewise.
20089 * tree-ssa-live.c : Likewise.
20090 * tree-ssa-loop-ch.c : Likewise.
20091 * tree-ssa-loop-im.c : Likewise.
20092 * tree-ssa-loop-ivcanon.c : Likewise.
20093 * tree-ssa-loop-ivopts.c : Likewise.
20094 * tree-ssa-loop-manip.c : Likewise.
20095 * tree-ssa-loop-niter.c : Likewise.
20096 * tree-ssa-loop-prefetch.c : Likewise.
20097 * tree-ssa-loop-unswitch.c : Likewise.
20098 * tree-ssa-loop.c : Likewise.
20099 * tree-ssa-math-opts.c : Likewise.
20100 * tree-ssa-operands.c : Likewise.
20101 * tree-ssa-phiopt.c : Likewise.
20102 * tree-ssa-phiprop.c : Likewise.
20103 * tree-ssa-pre.c : Likewise.
20104 * tree-ssa-propagate.c : Likewise.
20105 * tree-ssa-reassoc.c : Likewise.
20106 * tree-ssa-sccvn.c : Likewise.
20107 * tree-ssa-scopedtables.c : Likewise.
20108 * tree-ssa-sink.c : Likewise.
20109 * tree-ssa-strlen.c : Likewise.
20110 * tree-ssa-structalias.c : Likewise.
20111 * tree-ssa-tail-merge.c : Likewise.
20112 * tree-ssa-ter.c : Likewise.
20113 * tree-ssa-threadedge.c : Likewise.
20114 * tree-ssa-threadupdate.c : Likewise.
20115 * tree-ssa-uncprop.c : Likewise.
20116 * tree-ssa-uninit.c : Likewise.
20117 * tree-ssa.c : Likewise.
20118 * tree-ssanames.c : Likewise.
20119 * tree-stdarg.c : Likewise.
20120 * tree-streamer-in.c : Likewise.
20121 * tree-streamer-out.c : Likewise.
20122 * tree-streamer.c : Likewise.
20123 * tree-streamer.h : Likewise.
20124 * tree-switch-conversion.c : Likewise.
20125 * tree-tailcall.c : Likewise.
20126 * tree-vect-data-refs.c : Likewise.
20127 * tree-vect-generic.c : Likewise.
20128 * tree-vect-loop-manip.c : Likewise.
20129 * tree-vect-loop.c : Likewise.
20130 * tree-vect-patterns.c : Likewise.
20131 * tree-vect-slp.c : Likewise.
20132 * tree-vect-stmts.c : Likewise.
20133 * tree-vectorizer.c : Likewise.
20134 * tree-vectorizer.h : Likewise.
20135 * tree-vrp.c : Likewise.
20136 * tree.c : Likewise.
20137 * tsan.c : Likewise.
20138 * ubsan.c : Likewise.
20139 * valtrack.c : Likewise.
20140 * valtrack.h : Likewise.
20141 * value-prof.c : Likewise.
20142 * var-tracking.c : Likewise.
20143 * varasm.c : Likewise.
20144 * varpool.c : Likewise.
20146 * vmsdbgout.c : Likewise.
20147 * vtable-verify.c : Likewise.
20148 * vtable-verify.h : Likewise.
20149 * web.c : Likewise.
20150 * wide-int.cc : Likewise.
20151 * xcoffout.c : Likewise.
20152 * config/aarch64/aarch64-builtins.c : Likewise.
20153 * config/aarch64/aarch64.c : Likewise.
20154 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
20155 * config/alpha/alpha.c : Likewise.
20156 * config/arc/arc.c : Likewise.
20157 * config/arm/aarch-common.c : Likewise.
20158 * config/arm/arm-builtins.c : Likewise.
20159 * config/arm/arm-c.c : Likewise.
20160 * config/arm/arm.c : Likewise.
20161 * config/avr/avr-c.c : Likewise.
20162 * config/avr/avr-log.c : Likewise.
20163 * config/avr/avr.c : Likewise.
20164 * config/bfin/bfin.c : Likewise.
20165 * config/c6x/c6x.c : Likewise.
20166 * config/cr16/cr16.c : Likewise.
20167 * config/cris/cris.c : Likewise.
20168 * config/darwin-c.c : Likewise.
20169 * config/darwin.c : Likewise.
20170 * config/default-c.c : Likewise.
20171 * config/epiphany/epiphany.c : Likewise.
20172 * config/epiphany/mode-switch-use.c : Likewise.
20173 * config/epiphany/resolve-sw-modes.c : Likewise.
20174 * config/fr30/fr30.c : Likewise.
20175 * config/frv/frv.c : Likewise.
20176 * config/ft32/ft32.c : Likewise.
20177 * config/glibc-c.c : Likewise.
20178 * config/h8300/h8300.c : Likewise.
20179 * config/i386/i386-c.c : Likewise.
20180 * config/i386/i386.c : Likewise.
20181 * config/i386/msformat-c.c : Likewise.
20182 * config/i386/winnt-cxx.c : Likewise.
20183 * config/i386/winnt-stubs.c : Likewise.
20184 * config/i386/winnt.c : Likewise.
20185 * config/ia64/ia64-c.c : Likewise.
20186 * config/ia64/ia64.c : Likewise.
20187 * config/iq2000/iq2000.c : Likewise.
20188 * config/lm32/lm32.c : Likewise.
20189 * config/m32c/m32c-pragma.c : Likewise.
20190 * config/m32c/m32c.c : Likewise.
20191 * config/m32r/m32r.c : Likewise.
20192 * config/m68k/m68k.c : Likewise.
20193 * config/mcore/mcore.c : Likewise.
20194 * config/mep/mep-pragma.c : Likewise.
20195 * config/mep/mep.c : Likewise.
20196 * config/microblaze/microblaze-c.c : Likewise.
20197 * config/microblaze/microblaze.c : Likewise.
20198 * config/mips/mips.c : Likewise.
20199 * config/mmix/mmix.c : Likewise.
20200 * config/mn10300/mn10300.c : Likewise.
20201 * config/moxie/moxie.c : Likewise.
20202 * config/msp430/msp430-c.c : Likewise.
20203 * config/msp430/msp430.c : Likewise.
20204 * config/nds32/nds32-cost.c : Likewise.
20205 * config/nds32/nds32-fp-as-gp.c : Likewise.
20206 * config/nds32/nds32-intrinsic.c : Likewise.
20207 * config/nds32/nds32-isr.c : Likewise.
20208 * config/nds32/nds32-md-auxiliary.c : Likewise.
20209 * config/nds32/nds32-memory-manipulation.c : Likewise.
20210 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
20211 * config/nds32/nds32-predicates.c : Likewise.
20212 * config/nds32/nds32.c : Likewise.
20213 * config/nios2/nios2.c : Likewise.
20214 * config/nvptx/nvptx.c : Likewise.
20215 * config/pa/pa.c : Likewise.
20216 * config/pdp11/pdp11.c : Likewise.
20217 * config/rl78/rl78-c.c : Likewise.
20218 * config/rl78/rl78.c : Likewise.
20219 * config/rs6000/rs6000-c.c : Likewise.
20220 * config/rs6000/rs6000.c : Likewise.
20221 * config/rx/rx.c : Likewise.
20222 * config/s390/s390-c.c : Likewise.
20223 * config/s390/s390.c : Likewise.
20224 * config/sh/sh-c.c : Likewise.
20225 * config/sh/sh-mem.cc : Likewise.
20226 * config/sh/sh.c : Likewise.
20227 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
20228 * config/sh/sh_treg_combine.cc : Likewise.
20229 * config/sol2-c.c : Likewise.
20230 * config/sol2-cxx.c : Likewise.
20231 * config/sol2-stubs.c : Likewise.
20232 * config/sol2.c : Likewise.
20233 * config/sparc/sparc-c.c : Likewise.
20234 * config/sparc/sparc.c : Likewise.
20235 * config/spu/spu-c.c : Likewise.
20236 * config/spu/spu.c : Likewise.
20237 * config/stormy16/stormy16.c : Likewise.
20238 * config/tilegx/mul-tables.c : Likewise.
20239 * config/tilegx/tilegx-c.c : Likewise.
20240 * config/tilegx/tilegx.c : Likewise.
20241 * config/tilepro/mul-tables.c : Likewise.
20242 * config/tilepro/tilepro-c.c : Likewise.
20243 * config/tilepro/tilepro.c : Likewise.
20244 * config/v850/v850-c.c : Likewise.
20245 * config/v850/v850.c : Likewise.
20246 * config/vax/vax.c : Likewise.
20247 * config/visium/visium.c : Likewise.
20248 * config/vms/vms-c.c : Likewise.
20249 * config/vms/vms.c : Likewise.
20250 * config/vxworks.c : Likewise.
20251 * config/winnt-c.c : Likewise.
20252 * config/xtensa/xtensa.c : Likewise.
20254 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
20257 * ipa-utils.h (warn_types_mismatch): Update prototype.
20258 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
20260 (type_mismatch_p): New function.
20261 (warn_types_mismatch): Reorg to work better on non-C++ types.
20262 (odr_types_equivalent_p): Add loc1/loc2 parameters.
20263 (add_type_duplicate): Update.
20265 2015-06-08 Tom de Vries <tom@codesourcery.com>
20267 PR rtl-optimization/66444
20268 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
20271 2015-06-08 Richard Biener <rguenther@suse.de>
20273 PR tree-optimization/66422
20274 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
20275 block after inserted gcc_unreachable.
20277 2015-06-08 Nick Clifton <nickc@redhat.com>
20279 * config/rx/rx.c (rx_function_value): Do not promote vector types.
20280 (rx_promote_function_mode): Likewise.
20281 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
20283 2015-06-08 Jakub Jelinek <jakub@redhat.com>
20285 * genattrtab.c (insn_alternatives): Change type from int *
20287 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
20288 (get_attr_value): Change type of num_alt to uint64_t.
20289 (compute_alternative_mask): Change return type from
20290 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
20291 (make_alternative_compare, mk_attr_alt): Change argument type
20292 from int to uint64_t.
20293 (simplify_test_exp): Change type of i from int to uint64_t.
20294 Shift ((uint64_t) 1) instead of 1 up.
20295 (main): Adjust oballocvec first argument from int to uint64_t.
20296 Shift ((uint64_t) 1) instead of 1 up.
20298 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
20301 * gdbhooks.py: Import sys.
20302 (intptr): New function. Replace int(...) by intptr(...).
20304 2015-06-08 Richard Biener <rguenther@suse.de>
20306 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
20307 adjustment for gaps at the end of a SLP load group properly.
20308 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
20309 all permutations we can generate.
20310 (vect_transform_slp_perm_load): Use the correct group-size.
20312 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
20314 * genmatch.c (expr::gen_transform): For conditions, guess the type
20315 from the second operand.
20317 2015-06-08 Tom de Vries <tom@codesourcery.com>
20319 PR tree-optimization/66442
20320 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
20321 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
20322 if the loop latch is not a singleton. Use
20323 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
20325 2015-06-08 Marek Polacek <polacek@redhat.com>
20328 * toplev.c (check_global_declaration): Don't warn about artificial
20331 2015-06-08 Tom de Vries <tom@codesourcery.com>
20333 PR tree-optimization/66436
20334 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
20336 * gimplify.c: Add tree-dump.h include.
20337 (gimplify_function_tree): Dump function to gimple dump file.
20338 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
20341 2015-06-08 Tom de Vries <tom@codesourcery.com>
20343 PR tree-optimization/66435
20344 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
20347 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
20349 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
20350 of ptr_type_node to not be ptr_to_node.
20351 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
20352 TREE_TYPE of pointers.
20353 * gimple-expr.c (useless_type_conversion): Reorder the check for
20354 function pointers and TYPE_CANONICAL.
20356 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
20359 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
20360 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
20361 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
20363 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
20364 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
20365 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
20366 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
20367 and non iso if unix2003.
20369 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
20371 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
20373 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
20375 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
20376 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
20377 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
20378 except.c, final.c, function.c, gcse-common.c, genemit.c,
20379 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
20380 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
20381 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
20382 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
20385 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
20387 * combine.c (combine_split_insns): Remove cast.
20388 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
20389 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
20390 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
20391 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
20392 * genemit.c (gen_split): Change return type of generated functions to
20394 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
20395 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
20396 gen_peephole2_* functions.
20397 (print_subroutine, main): Likewise.
20398 * recog.c (peephole2_optimize): Remove cast.
20399 (peep2_next_insn): Promote return type to rtx_insn.
20400 * recog.h (peep2_next_insn): Fix prototype.
20401 * rtl.h (try_split, split_insns): Likewise.
20403 2015-06-06 DJ Delorie <dj@redhat.com>
20405 * config/msp430/msp430.c (msp430_asm_integer): Support addition
20406 and subtraction too.
20408 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
20411 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
20412 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
20413 instead of Snd. Disparage Sid/z alternative with '^'.
20415 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
20417 * dwarf2out.c: Remove deferred_locations*.
20418 (dwarf2_debug_hooks): Add early_finish hook.
20419 Remove global_decl hook.
20420 Add early_global_decl and late_global_decl hook.
20421 New global early_dwarf.
20422 New structure set_early_dwarf.
20423 (output_die): Indicate whether a DIE was generated early
20424 when generating assembly with -dA.
20425 (struct limbo_die_struct): Document created_for field.
20426 Remove file_table_last_lookup.
20427 (remove_AT): Return TRUE if successful.
20428 (remove_child_TAG): Clear die_parent.
20429 (reparent_child): New function abstracted from...
20430 (splice_child_die): ...here.
20431 (new_die): ICE if a DIE ends up in limbo too late.
20433 (defer_location): Remove.
20434 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
20435 (fill_variable_array_bounds): New.
20436 (decl_start_label): Call fill_variable_array_bounds.
20437 (gen_formal_parameter_die): Rewrite to reuse previously generated
20439 (gen_subprogram_die): Same.
20440 (gen_variable_die): Same.
20441 (gen_const_die): Same.
20442 (gen_label_die): Same.
20443 (gen_lexical_block_die): Same.
20444 (decl_will_get_specification_p): New.
20445 (local_function_static): New.
20446 (gen_struct_or_union_type_die): Fill in variable-length fields.
20447 (gen_typedef_die): Fill in variable-length typedefs.
20448 (gen_tagged_type_die): Gracefully return on error_mark_node.
20449 Handle re-entrancy.
20450 (gen_type_die_with_usage): Handle variable-length types.
20451 Remove duplicate code for ARRAY_TYPE case.
20452 (process_scope_var): Only process imported modules during early
20454 (dwarf2out_early_global_decl): New.
20455 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
20456 (dwarf2out_type_decl): Set early_dwarf while calling
20458 (dwarf2out_decl): Verify that we did not recreate a previously
20460 Do not return on DECL_EXTERNALs in VAR_DECLs.
20461 Abstract some code to local_function_static.
20462 (lookup_filename): Remove use of file_table_last_lookup.
20463 Gracefully exit on missing file_name.
20464 (dwarf2out_finish): Verify limbo list.
20465 Remove deferred_locations_list use.
20466 Move deferred_asm_name and limbo flushing to...
20467 (dwarf2out_early_finish): ...here. New.
20468 (dwarf2out_c_finalize): Remove set of deferred_location_list,
20469 deferred_asm_name, and file_table_last_lookup.
20470 * cgraph.h (referred_to_p): Add default argument.
20471 * cgraphunit.c (referred_to_p): Add and handle include_self
20473 (analyze_functions): Add first_time argument.
20474 Call check_global_declaration for all symbols.
20475 Call late_global_decl for nodes for moribund nodes.
20476 (finalize_compilation_unit): Add new argument to
20478 Call early_global_decl for functions.
20479 Call early_finish debug hook.
20480 * dbxout.c (dbxout_early_global_decl): New.
20481 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
20482 (dbx_debug_hooks): Add new hooks.
20483 (xcoff_debug_hooks): Same.
20484 * debug.c (do_nothing_debug_hooks): Add early_finish field.
20485 Add early and late debug hooks.
20486 Remove global_decl hook.
20487 * debug.h (struct gcc_debug_hooks): Add early_finish,
20488 early_global_decl, and late_global_decl fields.
20489 Remove global_decl field.
20490 Document gcc_debug_hooks.
20491 * gengtype.c (output_typename): Remove.
20492 * godump.c (go_early_global_decl): New.
20493 (go_late_global_decl): New.
20494 (go_global_decl): Remove.
20495 (dump_go_spec_init): Remove global_decl. Add
20496 {early,late}_global_decl.
20497 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
20498 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
20499 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
20500 (write_global_declarations): Remove.
20501 (global_decl_processing): New.
20502 * langhooks.h (struct lang_hooks_for_decls): Remove
20503 final_write_globals field.
20504 Add post_compilation_parsing_cleanups field.
20505 * passes.c (rest_of_decl_compilation): Call early_global_decl.
20506 * sdbout.c: Add early and late_global_decl hooks. Remove
20507 sdbout_global_decl hook.
20508 Add early_finish field for sdb_debug_hooks.
20509 (sdbout_global_decl): Remove.
20510 (sdbout_early_global_decl): New.
20511 (sdbout_late_global_decl): New.
20512 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
20513 * toplev.c (check_global_declaration): Rename from
20514 check_global_declaration_1.
20515 Adapt to use symtab infrastructure.
20516 (check_global_declarations): Remove.
20517 (emit_debug_global_declarations): Remove.
20518 (compile_file): Remove call to final_write_globals langhook.
20519 Run the actual compilation process.
20520 Perform any post compilation parser cleanups.
20521 Generate late debug info.
20522 * toplev.h (check_global_declaration): New.
20523 (check_global_declaration_1): Remove.
20524 (check_global_declarations): Remove.
20525 (write_global_declarations): Remove.
20526 (emit_debug_global_declarations): Remove.
20527 (global_decl_processing): New.
20528 * tree-core.h (struct tree_block): Add DIE field.
20529 * tree.h (BLOCK_DIE): New.
20530 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
20532 (vmsdbgout_early_global_decl): New.
20533 (vmsdbgout_late_global_decl): New.
20534 Add early_finish debug hook field to vmsdbg_debug_hooks.
20535 Remove vmsdbgout_decl to vmsdbgout_function_decl.
20536 Add early and late_global_decl debug hooks.
20538 2015-06-05 Julian Brown <julian@codesourcery.com>
20539 Sandra Loosemore <sandra@codesourcery.com>
20541 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
20542 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
20543 to print-sysroot-suffix.sh script.
20545 2015-06-05 Tom de Vries <tom@codesourcery.com>
20547 merge from gomp4 branch:
20548 2015-05-28 Tom de Vries <tom@codesourcery.com>
20550 PR tree-optimization/65443
20551 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
20552 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
20553 (try_transform_to_exit_first_loop_alt): New function.
20554 (transform_to_exit_first_loop): Use
20555 try_transform_to_exit_first_loop_alt.
20557 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
20559 * builtins.c (expand_builtin_atomic_compare_exchange): Call
20560 emit_cmp_and_jump_insns with the mode of target.
20562 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20564 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
20566 2015-06-04 DJ Delorie <dj@redhat.com>
20568 * config/msp430/msp430.md (movsi_s): New. Special case for
20569 storing a 20-bit symbol into a 32-bit register.
20570 * config/msp430/msp430.c (msp430_subreg): Add support for it.
20571 * config/msp430/predicates.md (msp430_symbol_operand): New.
20573 2015-06-04 Sriraman Tallam <tmsriram@google.com>
20575 * c-family/c-common.c (noplt): New attribute.
20576 (handle_noplt_attribute): New handler.
20577 * calls.c (prepare_call_address): Check for noplt
20579 * config/i386/i386.c (ix86_expand_call): Check
20580 for noplt attribute.
20581 (ix86_nopic_noplt_attribute_p): New function.
20582 (ix86_output_call_insn): Output indirect call for non-pic
20584 * doc/extend.texi (noplt): Document new attribute.
20585 * doc/invoke.texi: Document new attribute.
20587 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
20589 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
20590 real.h, and fixed-value.h when included in host source files.
20591 * double-int.h: Remove redundant #includes listed above.
20592 * fixed-value.h: Likewise.
20593 * real.h: Likewise.
20594 * wide-int.h: Likewise.
20595 * inchash.h: Likewise.
20596 * rtl.h: Add some include files When included from a generator file.
20597 * target.h: Remove wide-int.h and insn-modes.h from the include list.
20598 * internal-fn.h: Don't include coretypes.h.
20599 * alias.c: Adjust includes for restructured coretypes.h.
20600 * asan.c: Likewise.
20601 * attribs.c: Likewise.
20602 * auto-inc-dec.c: Likewise.
20603 * auto-profile.c: Likewise.
20604 * bb-reorder.c: Likewise.
20605 * bt-load.c: Likewise.
20606 * builtins.c: Likewise.
20607 * caller-save.c: Likewise.
20608 * calls.c: Likewise.
20609 * ccmp.c: Likewise.
20611 * cfganal.c: Likewise.
20612 * cfgbuild.c: Likewise.
20613 * cfgcleanup.c: Likewise.
20614 * cfgexpand.c: Likewise.
20615 * cfghooks.c: Likewise.
20616 * cfgloop.c: Likewise.
20617 * cfgloop.h: Likewise.
20618 * cfgloopanal.c: Likewise.
20619 * cfgloopmanip.c: Likewise.
20620 * cfgrtl.c: Likewise.
20621 * cgraph.c: Likewise.
20622 * cgraphbuild.c: Likewise.
20623 * cgraphclones.c: Likewise.
20624 * cgraphunit.c: Likewise.
20625 * cilk-common.c: Likewise.
20626 * combine-stack-adj.c: Likewise.
20627 * combine.c: Likewise.
20628 * compare-elim.c: Likewise.
20629 * convert.c: Likewise.
20630 * coverage.c: Likewise.
20631 * cppbuiltin.c: Likewise.
20632 * cprop.c: Likewise.
20634 * cselib.c: Likewise.
20635 * data-streamer-in.c: Likewise.
20636 * data-streamer-out.c: Likewise.
20637 * data-streamer.c: Likewise.
20638 * dbxout.c: Likewise.
20641 * debug.c: Likewise.
20642 * df-core.c: Likewise.
20643 * df-problems.c: Likewise.
20644 * df-scan.c: Likewise.
20647 * dojump.c: Likewise.
20648 * dominance.c: Likewise.
20649 * domwalk.c: Likewise.
20650 * double-int.c: Likewise.
20652 * dumpfile.c: Likewise.
20653 * dwarf2asm.c: Likewise.
20654 * dwarf2cfi.c: Likewise.
20655 * dwarf2out.c: Likewise.
20656 * dwarf2out.h: Likewise.
20657 * emit-rtl.c: Likewise.
20658 * et-forest.c: Likewise.
20659 * except.c: Likewise.
20660 * explow.c: Likewise.
20661 * expmed.c: Likewise.
20662 * expr.c: Likewise.
20663 * final.c: Likewise.
20664 * fixed-value.c: Likewise.
20665 * fold-const.c: Likewise.
20666 * function.c: Likewise.
20667 * fwprop.c: Likewise.
20668 * gcc-plugin.h: Likewise.
20669 * gcse.c: Likewise.
20670 * generic-match-head.c: Likewise.
20671 * ggc-page.c: Likewise.
20672 * gimple-builder.c: Likewise.
20673 * gimple-expr.c: Likewise.
20674 * gimple-fold.c: Likewise.
20675 * gimple-iterator.c: Likewise.
20676 * gimple-low.c: Likewise.
20677 * gimple-match-head.c: Likewise.
20678 * gimple-pretty-print.c: Likewise.
20679 * gimple-ssa-isolate-paths.c: Likewise.
20680 * gimple-ssa-strength-reduction.c: Likewise.
20681 * gimple-streamer-in.c: Likewise.
20682 * gimple-streamer-out.c: Likewise.
20683 * gimple-streamer.h: Likewise.
20684 * gimple-walk.c: Likewise.
20685 * gimple.c: Likewise.
20686 * gimplify-me.c: Likewise.
20687 * gimplify.c: Likewise.
20688 * godump.c: Likewise.
20689 * graph.c: Likewise.
20690 * graphite-blocking.c: Likewise.
20691 * graphite-dependences.c: Likewise.
20692 * graphite-interchange.c: Likewise.
20693 * graphite-isl-ast-to-gimple.c: Likewise.
20694 * graphite-optimize-isl.c: Likewise.
20695 * graphite-poly.c: Likewise.
20696 * graphite-scop-detection.c: Likewise.
20697 * graphite-sese-to-poly.c: Likewise.
20698 * graphite.c: Likewise.
20699 * haifa-sched.c: Likewise.
20700 * hooks.h: Likewise.
20701 * hw-doloop.c: Likewise.
20702 * ifcvt.c: Likewise.
20703 * incpath.c: Likewise.
20704 * init-regs.c: Likewise.
20705 * internal-fn.c: Likewise.
20706 * ipa-chkp.c: Likewise.
20707 * ipa-comdats.c: Likewise.
20708 * ipa-cp.c: Likewise.
20709 * ipa-devirt.c: Likewise.
20710 * ipa-icf-gimple.c: Likewise.
20711 * ipa-icf.c: Likewise.
20712 * ipa-inline-analysis.c: Likewise.
20713 * ipa-inline-transform.c: Likewise.
20714 * ipa-inline.c: Likewise.
20715 * ipa-polymorphic-call.c: Likewise.
20716 * ipa-profile.c: Likewise.
20717 * ipa-prop.c: Likewise.
20718 * ipa-pure-const.c: Likewise.
20719 * ipa-ref.c: Likewise.
20720 * ipa-reference.c: Likewise.
20721 * ipa-split.c: Likewise.
20722 * ipa-utils.c: Likewise.
20723 * ipa-visibility.c: Likewise.
20725 * ira-build.c: Likewise.
20726 * ira-color.c: Likewise.
20727 * ira-conflicts.c: Likewise.
20728 * ira-costs.c: Likewise.
20729 * ira-emit.c: Likewise.
20730 * ira-lives.c: Likewise.
20732 * jump.c: Likewise.
20733 * langhooks.c: Likewise.
20735 * loop-doloop.c: Likewise.
20736 * loop-init.c: Likewise.
20737 * loop-invariant.c: Likewise.
20738 * loop-iv.c: Likewise.
20739 * loop-unroll.c: Likewise.
20740 * lower-subreg.c: Likewise.
20741 * lra-assigns.c: Likewise.
20742 * lra-coalesce.c: Likewise.
20743 * lra-constraints.c: Likewise.
20744 * lra-eliminations.c: Likewise.
20745 * lra-lives.c: Likewise.
20746 * lra-remat.c: Likewise.
20747 * lra-spills.c: Likewise.
20749 * lto-cgraph.c: Likewise.
20750 * lto-compress.c: Likewise.
20751 * lto-opts.c: Likewise.
20752 * lto-section-in.c: Likewise.
20753 * lto-section-out.c: Likewise.
20754 * lto-streamer-in.c: Likewise.
20755 * lto-streamer-out.c: Likewise.
20756 * lto-streamer.c: Likewise.
20758 * mode-switching.c: Likewise.
20759 * modulo-sched.c: Likewise.
20760 * omega.c: Likewise.
20761 * omp-low.c: Likewise.
20762 * optabs.c: Likewise.
20763 * opts-global.c: Likewise.
20764 * passes.c: Likewise.
20765 * plugin.c: Likewise.
20766 * postreload-gcse.c: Likewise.
20767 * postreload.c: Likewise.
20768 * predict.c: Likewise.
20769 * print-rtl.c: Likewise.
20770 * print-tree.c: Likewise.
20771 * profile.c: Likewise.
20772 * real.c: Likewise.
20773 * realmpfr.c: Likewise.
20774 * realmpfr.h: Likewise.
20775 * recog.c: Likewise.
20777 * reg-stack.c: Likewise.
20778 * regcprop.c: Likewise.
20779 * reginfo.c: Likewise.
20780 * regrename.c: Likewise.
20781 * regs.h: Likewise.
20782 * regstat.c: Likewise.
20783 * reload.c: Likewise.
20784 * reload1.c: Likewise.
20785 * reorg.c: Likewise.
20786 * resource.c: Likewise.
20787 * rtl-chkp.c: Likewise.
20788 * rtlanal.c: Likewise.
20789 * rtlhooks.c: Likewise.
20790 * sanopt.c: Likewise.
20791 * sched-deps.c: Likewise.
20792 * sched-ebb.c: Likewise.
20793 * sched-rgn.c: Likewise.
20794 * sched-vis.c: Likewise.
20795 * sdbout.c: Likewise.
20796 * sel-sched-dump.c: Likewise.
20797 * sel-sched-ir.c: Likewise.
20798 * sel-sched.c: Likewise.
20799 * sese.c: Likewise.
20800 * shrink-wrap.c: Likewise.
20801 * shrink-wrap.h: Likewise.
20802 * simplify-rtx.c: Likewise.
20803 * stack-ptr-mod.c: Likewise.
20804 * statistics.c: Likewise.
20805 * stmt.c: Likewise.
20806 * stor-layout.c: Likewise.
20807 * store-motion.c: Likewise.
20808 * stringpool.c: Likewise.
20809 * symtab.c: Likewise.
20810 * target-globals.c: Likewise.
20811 * targhooks.c: Likewise.
20812 * toplev.c: Likewise.
20813 * tracer.c: Likewise.
20814 * trans-mem.c: Likewise.
20815 * tree-affine.c: Likewise.
20816 * tree-affine.h: Likewise.
20817 * tree-browser.c: Likewise.
20818 * tree-call-cdce.c: Likewise.
20819 * tree-cfg.c: Likewise.
20820 * tree-cfgcleanup.c: Likewise.
20821 * tree-chkp-opt.c: Likewise.
20822 * tree-chkp.c: Likewise.
20823 * tree-chrec.c: Likewise.
20824 * tree-complex.c: Likewise.
20825 * tree-data-ref.c: Likewise.
20826 * tree-dfa.c: Likewise.
20827 * tree-diagnostic.c: Likewise.
20828 * tree-dump.c: Likewise.
20829 * tree-eh.c: Likewise.
20830 * tree-emutls.c: Likewise.
20831 * tree-if-conv.c: Likewise.
20832 * tree-inline.c: Likewise.
20833 * tree-into-ssa.c: Likewise.
20834 * tree-iterator.c: Likewise.
20835 * tree-loop-distribution.c: Likewise.
20836 * tree-nested.c: Likewise.
20837 * tree-nrv.c: Likewise.
20838 * tree-object-size.c: Likewise.
20839 * tree-outof-ssa.c: Likewise.
20840 * tree-parloops.c: Likewise.
20841 * tree-phinodes.c: Likewise.
20842 * tree-predcom.c: Likewise.
20843 * tree-pretty-print.c: Likewise.
20844 * tree-pretty-print.h: Likewise.
20845 * tree-profile.c: Likewise.
20846 * tree-scalar-evolution.c: Likewise.
20847 * tree-sra.c: Likewise.
20848 * tree-ssa-address.c: Likewise.
20849 * tree-ssa-alias.c: Likewise.
20850 * tree-ssa-ccp.c: Likewise.
20851 * tree-ssa-coalesce.c: Likewise.
20852 * tree-ssa-copy.c: Likewise.
20853 * tree-ssa-copyrename.c: Likewise.
20854 * tree-ssa-dce.c: Likewise.
20855 * tree-ssa-dom.c: Likewise.
20856 * tree-ssa-dse.c: Likewise.
20857 * tree-ssa-forwprop.c: Likewise.
20858 * tree-ssa-ifcombine.c: Likewise.
20859 * tree-ssa-live.c: Likewise.
20860 * tree-ssa-loop-ch.c: Likewise.
20861 * tree-ssa-loop-im.c: Likewise.
20862 * tree-ssa-loop-ivcanon.c: Likewise.
20863 * tree-ssa-loop-ivopts.c: Likewise.
20864 * tree-ssa-loop-manip.c: Likewise.
20865 * tree-ssa-loop-niter.c: Likewise.
20866 * tree-ssa-loop-prefetch.c: Likewise.
20867 * tree-ssa-loop-unswitch.c: Likewise.
20868 * tree-ssa-loop.c: Likewise.
20869 * tree-ssa-loop.h: Likewise.
20870 * tree-ssa-math-opts.c: Likewise.
20871 * tree-ssa-operands.c: Likewise.
20872 * tree-ssa-phiopt.c: Likewise.
20873 * tree-ssa-phiprop.c: Likewise.
20874 * tree-ssa-pre.c: Likewise.
20875 * tree-ssa-propagate.c: Likewise.
20876 * tree-ssa-reassoc.c: Likewise.
20877 * tree-ssa-sccvn.c: Likewise.
20878 * tree-ssa-scopedtables.c: Likewise.
20879 * tree-ssa-sink.c: Likewise.
20880 * tree-ssa-strlen.c: Likewise.
20881 * tree-ssa-structalias.c: Likewise.
20882 * tree-ssa-tail-merge.c: Likewise.
20883 * tree-ssa-ter.c: Likewise.
20884 * tree-ssa-threadedge.c: Likewise.
20885 * tree-ssa-threadupdate.c: Likewise.
20886 * tree-ssa-uncprop.c: Likewise.
20887 * tree-ssa-uninit.c: Likewise.
20888 * tree-ssa.c: Likewise.
20889 * tree-ssanames.c: Likewise.
20890 * tree-stdarg.c: Likewise.
20891 * tree-streamer-in.c: Likewise.
20892 * tree-streamer-out.c: Likewise.
20893 * tree-streamer.c: Likewise.
20894 * tree-switch-conversion.c: Likewise.
20895 * tree-tailcall.c: Likewise.
20896 * tree-vect-data-refs.c: Likewise.
20897 * tree-vect-generic.c: Likewise.
20898 * tree-vect-loop-manip.c: Likewise.
20899 * tree-vect-loop.c: Likewise.
20900 * tree-vect-patterns.c: Likewise.
20901 * tree-vect-slp.c: Likewise.
20902 * tree-vect-stmts.c: Likewise.
20903 * tree-vectorizer.c: Likewise.
20904 * tree-vrp.c: Likewise.
20905 * tree.c: Likewise.
20906 * tsan.c: Likewise.
20907 * ubsan.c: Likewise.
20908 * valtrack.c: Likewise.
20909 * value-prof.c: Likewise.
20910 * var-tracking.c: Likewise.
20911 * varasm.c: Likewise.
20912 * varpool.c: Likewise.
20913 * vmsdbgout.c: Likewise.
20914 * vtable-verify.c: Likewise.
20916 * wide-int-print.cc: Likewise.
20917 * wide-int-print.h: Likewise.
20918 * wide-int.cc: Likewise.
20919 * xcoffout.c: Likewise.
20920 * config/aarch64/aarch64-builtins.c: Likewise.
20921 * config/aarch64/aarch64.c: Likewise.
20922 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20923 * config/alpha/alpha.c: Likewise.
20924 * config/arc/arc.c: Likewise.
20925 * config/arm/aarch-common.c: Likewise.
20926 * config/arm/arm-builtins.c: Likewise.
20927 * config/arm/arm-c.c: Likewise.
20928 * config/arm/arm.c: Likewise.
20929 * config/avr/avr-c.c: Likewise.
20930 * config/avr/avr-log.c: Likewise.
20931 * config/avr/avr.c: Likewise.
20932 * config/bfin/bfin.c: Likewise.
20933 * config/c6x/c6x.c: Likewise.
20934 * config/cr16/cr16.c: Likewise.
20935 * config/cris/cris.c: Likewise.
20936 * config/darwin-c.c: Likewise.
20937 * config/darwin.c: Likewise.
20938 * config/default-c.c: Likewise.
20939 * config/epiphany/epiphany.c: Likewise.
20940 * config/epiphany/mode-switch-use.c: Likewise.
20941 * config/epiphany/resolve-sw-modes.c: Likewise.
20942 * config/fr30/fr30.c: Likewise.
20943 * config/frv/frv.c: Likewise.
20944 * config/ft32/ft32.c: Likewise.
20945 * config/glibc-c.c: Likewise.
20946 * config/h8300/h8300.c: Likewise.
20947 * config/i386/i386-c.c: Likewise.
20948 * config/i386/i386.c: Likewise.
20949 * config/i386/msformat-c.c: Likewise.
20950 * config/i386/winnt-cxx.c: Likewise.
20951 * config/i386/winnt-stubs.c: Likewise.
20952 * config/i386/winnt.c: Likewise.
20953 * config/ia64/ia64-c.c: Likewise.
20954 * config/ia64/ia64.c: Likewise.
20955 * config/iq2000/iq2000.c: Likewise.
20956 * config/lm32/lm32.c: Likewise.
20957 * config/m32c/m32c-pragma.c: Likewise.
20958 * config/m32c/m32c.c: Likewise.
20959 * config/m32r/m32r.c: Likewise.
20960 * config/m68k/m68k.c: Likewise.
20961 * config/mcore/mcore.c: Likewise.
20962 * config/mep/mep-pragma.c: Likewise.
20963 * config/mep/mep.c: Likewise.
20964 * config/microblaze/microblaze-c.c: Likewise.
20965 * config/microblaze/microblaze.c: Likewise.
20966 * config/mips/mips.c: Likewise.
20967 * config/mmix/mmix.c: Likewise.
20968 * config/mn10300/mn10300.c: Likewise.
20969 * config/moxie/moxie.c: Likewise.
20970 * config/msp430/msp430-c.c: Likewise.
20971 * config/msp430/msp430.c: Likewise.
20972 * config/nds32/nds32-cost.c: Likewise.
20973 * config/nds32/nds32-fp-as-gp.c: Likewise.
20974 * config/nds32/nds32-intrinsic.c: Likewise.
20975 * config/nds32/nds32-isr.c: Likewise.
20976 * config/nds32/nds32-md-auxiliary.c: Likewise.
20977 * config/nds32/nds32-memory-manipulation.c: Likewise.
20978 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20979 * config/nds32/nds32-predicates.c: Likewise.
20980 * config/nds32/nds32.c: Likewise.
20981 * config/nios2/nios2.c: Likewise.
20982 * config/nvptx/nvptx.c: Likewise.
20983 * config/pa/pa.c: Likewise.
20984 * config/pdp11/pdp11.c: Likewise.
20985 * config/rl78/rl78-c.c: Likewise.
20986 * config/rl78/rl78.c: Likewise.
20987 * config/rs6000/rs6000-c.c: Likewise.
20988 * config/rs6000/rs6000.c: Likewise.
20989 * config/rx/rx.c: Likewise.
20990 * config/s390/s390-c.c: Likewise.
20991 * config/s390/s390.c: Likewise.
20992 * config/sh/sh-c.c: Likewise.
20993 * config/sh/sh-mem.cc: Likewise.
20994 * config/sh/sh.c: Likewise.
20995 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20996 * config/sh/sh_treg_combine.cc: Likewise.
20997 * config/sol2-c.c: Likewise.
20998 * config/sol2-cxx.c: Likewise.
20999 * config/sol2-stubs.c: Likewise.
21000 * config/sol2.c: Likewise.
21001 * config/sparc/sparc-c.c: Likewise.
21002 * config/sparc/sparc.c: Likewise.
21003 * config/spu/spu-c.c: Likewise.
21004 * config/spu/spu.c: Likewise.
21005 * config/stormy16/stormy16.c: Likewise.
21006 * config/tilegx/mul-tables.c: Likewise.
21007 * config/tilegx/tilegx-c.c: Likewise.
21008 * config/tilegx/tilegx.c: Likewise.
21009 * config/tilepro/mul-tables.c: Likewise.
21010 * config/tilepro/tilepro-c.c: Likewise.
21011 * config/tilepro/tilepro.c: Likewise.
21012 * config/v850/v850-c.c: Likewise.
21013 * config/v850/v850.c: Likewise.
21014 * config/vax/vax.c: Likewise.
21015 * config/visium/visium.c: Likewise.
21016 * config/vms/vms-c.c: Likewise.
21017 * config/vms/vms.c: Likewise.
21018 * config/vxworks.c: Likewise.
21019 * config/winnt-c.c: Likewise.
21020 * config/xtensa/xtensa.c: Likewise.
21021 * common/config/bfin/bfin-common.c: Likewise.
21023 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
21025 * tree.h (tree_code_for_canonical_type_merging): New function.
21026 * tree.c (gimple_canonical_types_compatible_p): Use
21027 tree_code_for_canonical_type_merging..
21029 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21033 * doc/tm.texi: Regenerate.
21034 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
21035 * target.def (TARGET_RELAXED_ORDERING): Likewise.
21036 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
21037 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
21038 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
21039 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
21040 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
21041 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
21042 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
21044 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21046 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
21047 register fma steering pass.
21048 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
21049 AARCH64_TUNE_FMA_STEERING.
21051 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
21053 * tree.c (verify_type_variant): Verify that type and variant is
21055 (gimple_canonical_types_compatible_p): Look for main variants.
21057 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
21059 * config.gcc (powerpc*-*-*): Add support for a new configure
21060 option --with-advance-toolchain=<xxx> which overrides using the
21061 default header files, libraries and dynamic linker.
21063 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
21064 specs to support the configure --with-advance-toolchain=<xxx>
21066 (INCLUDE_EXTRA_SPEC): Likewise.
21067 (LINK_OS_EXTRA_SPEC32): Likewise.
21068 (LINK_OK_EXTRA_SPEC64): Likewise.
21069 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
21070 (DYNAMIC_LINKER_PREFIX): Likewise.
21071 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
21073 (GLIBC_DYNAMIC_LINKER32): Likewise.
21074 (GLIBC_DYNAMIC_LINKER64): Likewise.
21075 (LINK_OS_LINUX_SPEC32): Likewise.
21076 (LINK_OS_LINUX_SPEC64): Likewise.
21078 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
21079 configuration option.
21081 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
21084 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
21085 to determine current function ABI.
21086 (ix86_function_value_regno_p): Ditto.
21088 2015-06-03 Martin Liska <mliska@suse.cz>
21090 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
21091 * bitmap.h (struct bitmap_usage): Likewise.
21092 * ggc-common.c (struct ggc_usage): Likewise.
21093 * mem-stats.h (struct mem_location): Likewise.
21094 (struct mem_usage): Likewise.
21095 * vec.c (struct vec_usage): Likewise.
21097 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
21099 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
21102 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
21104 * doc/plugins.texi (enum plugin_event): New event.
21105 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
21106 and PLUGIN_FINISH_FUNCTION.
21107 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
21108 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
21110 2015-06-03 Richard Biener <rguenther@suse.de>
21112 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
21113 compute GROUP_GAP for the first element.
21114 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
21117 2015-06-03 Nick Clifton <nickc@redhat.com>
21119 * config/rl78/rl78-real.md: Add peepholes to avoid a register
21120 copy when calling a function.
21121 * config/rl78/rl78.c (need_to_save): Do not push the frame
21122 pointer in an interrupt handler prologue if it is never used.
21124 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21126 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
21128 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
21130 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
21131 reference when cloning alias node.
21133 2015-06-03 Martin Liska <mliska@suse.cz>
21135 * alloc-pool.h (struct pool_usage): Correct space padding.
21136 * ggc-page.c (ggc_print_statistics): Align columns in a report.
21137 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
21138 * tree.c (dump_tree_statistics): Align columns in a report.
21140 2015-06-03 Martin Liska <mliska@suse.cz>
21142 * alloc-pool.c (allocate_pool_descriptor): Remove.
21143 (struct pool_output_info): Likewise.
21144 (print_alloc_pool_statistics): Likewise.
21145 (dump_alloc_pool_statistics): Likewise.
21146 * alloc-pool.h (struct pool_usage): New struct.
21147 (pool_allocator::initialize): Change usage of memory statistics
21148 to a new interface.
21149 (pool_allocator::release): Likewise.
21150 (pool_allocator::allocate): Likewise.
21151 (pool_allocator::remove): Likewise.
21152 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
21153 for a pool allocator.
21154 * mem-stats.h (struct mem_location): Add new ctor.
21155 (struct mem_usage): Add counter for number of
21157 (mem_alloc_description::register_descriptor): New overload of
21158 * mem-stats.h (mem_location::to_string): New function.
21159 * bitmap.h (struct bitmap_usage): Use this new function.
21160 * ggc-common.c (struct ggc_usage): Likewise.
21163 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
21165 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
21166 of GCC_INSN_FLAGS_H block.
21168 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
21170 * explow.c (plus_constant): Update check after force_const_mem call
21171 to see if the value returned is not a NULL_RTX.
21173 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
21175 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
21176 remove instumentation thunks calling reachable functions.
21177 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
21178 * lto/lto-partition.c (privatize_symbol_name_1): New.
21179 (privatize_symbol_name): Privatize both decl and orig_decl
21180 names for instrumented functions.
21181 * cgraph.c (cgraph_node::verify_node): Add transparent
21182 alias chain check for instrumented node.
21184 2015-06-03 Marek Polacek <polacek@redhat.com>
21188 * tree.c (attribute_value_equal): Handle attribute format.
21189 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
21191 2015-06-03 Richard Biener <rguenther@suse.de>
21193 PR tree-optimization/63916
21194 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
21195 Forward-propagate non-invariant addresses by splicing their
21196 reference ops if the result isn't going to be used by PRE.
21197 (vn_reference_lookup_3): Remove pointless assert.
21199 2015-06-03 Richard Biener <rguenther@suse.de>
21201 PR tree-optimization/66375
21202 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
21203 add to the evolution before following SSA edges.
21205 2015-06-03 Bin Cheng <bin.cheng@arm.com>
21207 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
21208 (dump_use, dump_cand, find_induction_variables): Pass new argument
21210 (record_use): Preserve the ssa name information in IV.
21212 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
21214 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
21216 (add_mode_tests): Don't add mode tests if the predicate only
21217 accepts scalar constant integers. Otherwise, allow the mode
21218 of "op" to be VOIDmode if the predicate does accept such integers.
21220 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
21223 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
21224 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
21225 (aarch64_secondary_reload): Likewise
21226 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
21228 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
21231 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
21232 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21235 * cprop.c (try_replace_reg): Check cost of constants before propagating.
21237 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21239 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
21240 provide access to the IBM extended double floating point mode if
21241 long double is IEEE 128-bit floating point.
21242 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
21243 point if long double is the IBM extended double type.
21245 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
21246 enable adding IEEE 128-bit floating point support.
21247 (-mfloat128-software): Likewise.
21248 (-mfloat128-sw): Likewise.
21250 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
21251 128-bit floating point types to occupy any register if
21252 -mlong-double-64. Do not allow use of IFmode/KFmode unless
21253 -mfloat128-software is enabled.
21254 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
21256 (rs6000_option_override_internal): Add -mfloat128-* support.
21257 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
21259 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
21260 and float128 type nodes.
21261 (ieee128_float_type_node): Likewise.
21262 (ibm128_float_type_node): Likewise.
21264 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
21267 * config/aarch64/geniterators.sh: Rewrite in awk.
21269 2015-06-02 Martin Liska <mliska@suse.cz>
21271 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
21272 values to avoid -Wmaybe-uninitialized errors.
21274 2015-06-02 Richard Biener <rguenther@suse.de>
21277 * dwarf2out.c (lookup_context_die): New function.
21278 (resolve_addr): Avoid forcing a full DIE for the
21279 target of a DW_TAG_GNU_call_site during late compilation.
21280 Instead create a stub DIE without a type if we have a
21281 context DIE present.
21283 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
21285 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
21287 2015-06-02 Bin Cheng <bin.cheng@arm.com>
21289 PR tree-optimization/48052
21290 * cfgloop.h (struct control_iv): New.
21291 (struct loop): New field control_ivs.
21292 * tree-ssa-loop-niter.c : Include "stor-layout.h".
21293 (number_of_iterations_lt): Set no_overflow information.
21294 (number_of_iterations_exit): Init control iv in niter struct.
21295 (record_control_iv): New.
21296 (estimate_numbers_of_iterations_loop): Call record_control_iv.
21297 (loop_exits_before_overflow): New. Interface factored out of
21298 scev_probably_wraps_p.
21299 (scev_probably_wraps_p): Factor loop niter related code into
21300 loop_exits_before_overflow.
21301 (free_numbers_of_iterations_estimates_loop): Free control ivs.
21302 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
21304 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
21306 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
21307 the target doesn't belong to the current function.
21309 2015-06-02 Marek Polacek <polacek@redhat.com>
21311 PR middle-end/66345
21312 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
21313 get_maxval_strlen does not produce an INTEGER_CST.
21315 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
21317 * config/arc/constraints.md: Use lower-case names in match_code.
21318 * config/mmix/constraints.md: Likewise.
21320 2015-06-02 Richard Biener <rguenther@suse.de>
21322 PR tree-optimization/65961
21323 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
21324 check and clarify dump message.
21325 (vect_build_slp_tree): If all children are built up from scalars
21326 build up the parent from scalars instead.
21327 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
21329 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
21332 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
21333 instead of print ... .
21335 2015-06-02 Alan Modra <amodra@gmail.com>
21337 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
21340 2015-06-02 Bin Cheng <bin.cheng@arm.com>
21342 PR tree-optimization/52563
21343 PR tree-optimization/62173
21344 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
21345 (alloc_iv, set_iv): New parameter.
21346 (determine_biv_step): Delete.
21347 (find_bivs): Inline original determine_biv_step. Pass new
21348 argument to set_iv.
21349 (idx_find_step): Use no_overflow information for conversion.
21350 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
21351 resolve_mixers handle folded_casts.
21352 (instantiate_scev_name): Change bool parameter to bool pointer.
21353 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
21354 (instantiate_array_ref, instantiate_scev_not): Ditto.
21355 (instantiate_scev_3, instantiate_scev_2): Ditto.
21356 (instantiate_scev_1, instantiate_scev_r): Ditto.
21357 (instantiate_scev_convert, ): Change parameter. Pass argument
21358 to chrec_convert_aggressive.
21359 (instantiate_scev): Change argument.
21360 (resolve_mixers): New parameter and set it.
21361 (scev_const_prop): New argument.
21362 * tree-scalar-evolution.h (resolve_mixers): New parameter.
21363 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
21365 (chrec_convert): New parameter. Move definition below.
21366 (chrec_convert_aggressive): New parameter and set it. Call
21367 convert_affine_scev.
21368 * tree-chrec.h (chrec_convert): New parameter.
21369 (chrec_convert_aggressive): Ditto.
21371 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
21373 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
21374 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
21375 the LHS of a no-return call if its type has variable size.
21376 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21377 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
21379 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
21381 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
21382 * config.in: Regenerate.
21384 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21386 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
21387 consecutive accesses within outer-loop with force_vectorize
21388 for references with zero step in inner-loop.
21390 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
21392 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
21393 rather than from gcc/build directory.
21395 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
21398 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
21399 for __sync memory models, emit initial loads and final barriers as
21402 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
21405 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
21406 (aarch64_split_atomic_op): Check for __sync memory models, emit
21407 appropriate initial loads and final barriers.
21409 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
21411 * Makefile.in: Fix gcov dependencies that should
21412 not point to a build folder.
21414 2015-06-01 Richard Biener <rguenther@suse.de>
21417 2015-05-29 Richard Biener <rguenther@suse.de>
21419 PR tree-optimization/66314
21420 * tree-ssa-threadupdate.c (create_block_for_threading): Add
21421 parameter that says which loop the new block belongs to.
21422 (ssa_create_duplicates): Blocks duplicated for the threaded
21423 path belong to the loop of the thread destination.
21425 2015-06-01 Martin Liska <mliska@suse.cz>
21427 * sched-deps.c: Include pool-alloc.h before
21428 cselib.h header file is included.
21430 2015-06-01 Richard Biener <rguenther@suse.de>
21432 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
21435 2015-06-01 Martin Liska <mliska@suse.cz>
21437 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
21438 a function local variable.
21440 2015-06-01 Martin Liska <mliska@suse.cz>
21442 * alloc-pool.c (create_alloc_pool): Remove.
21443 (empty_alloc_pool): Likewise.
21444 (free_alloc_pool): Likewise.
21445 (free_alloc_pool_if_empty): Likewise.
21446 (pool_alloc): Likewise.
21447 (pool_free): Likewise.
21448 * alloc-pool.h: Remove old declarations.
21450 2015-06-01 Martin Liska <mliska@suse.cz>
21452 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
21453 (ira_create_object): Likewise.
21454 (ira_create_allocno): Likewise.
21455 (ira_create_live_range): Likewise.
21456 (copy_live_range): Likewise.
21457 (ira_finish_live_range): Likewise.
21458 (ira_free_allocno_costs): Likewise.
21459 (finish_allocno): Likewise.
21460 (finish_allocnos): Likewise.
21461 (initiate_prefs): Likewise.
21462 (ira_create_pref): Likewise.
21463 (finish_pref): Likewise.
21464 (finish_prefs): Likewise.
21465 (initiate_copies): Likewise.
21466 (ira_create_copy): Likewise.
21467 (finish_copy): Likewise.
21468 (finish_copies): Likewise.
21469 (finish_prefs): Likewise.
21471 2015-06-01 Martin Liska <mliska@suse.cz>
21473 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
21474 (allocate_and_init_ipcp_value): Likewise.
21475 (ipcp_lattice::add_value): Likewise.
21476 (merge_agg_lats_step): Likewise.
21477 (ipcp_driver): Likewise.
21478 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
21479 (ipa_free_all_structures_after_iinln): Likewise.
21480 * ipa-prop.h: Likewise.
21482 2015-06-01 Martin Liska <mliska@suse.cz>
21484 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
21486 (set_hint_predicate): Likewise.
21487 (inline_summary_alloc): Likewise.
21488 (reset_inline_edge_summary): Likewise.
21489 (reset_inline_summary): Likewise.
21490 (set_cond_stmt_execution_predicate): Likewise.
21491 (set_switch_stmt_execution_predicate): Likewise.
21492 (compute_bb_predicates): Likewise.
21493 (estimate_function_body_sizes): Likewise.
21494 (inline_free_summary): Likewise.
21496 2015-06-01 Martin Liska <mliska@suse.cz>
21498 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
21499 (ipa_edge_duplication_hook): Likewise.
21500 (ipa_free_all_structures_after_ipa_cp): Likewise.
21501 (ipa_free_all_structures_after_iinln): Likewise.
21503 2015-06-01 Martin Liska <mliska@suse.cz>
21505 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
21506 (ipa_profile_generate_summary): Likewise.
21507 (ipa_profile_read_summary): Likewise.
21508 (ipa_profile): Likewise.
21510 2015-06-01 Martin Liska <mliska@suse.cz>
21512 * tree-ssa-structalias.c (new_var_info): Use new type-based
21514 (new_constraint): Likewise.
21515 (init_alias_vars): Likewise.
21516 (delete_points_to_sets): Likewise.
21518 2015-06-01 Martin Liska <mliska@suse.cz>
21520 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
21521 (free_strinfo): Likewise.
21522 (pass_strlen::execute): Likewise.
21524 2015-06-01 Martin Liska <mliska@suse.cz>
21526 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
21528 (vn_reference_insert_pieces): Likewise.
21529 (vn_phi_insert): Likewise.
21530 (visit_reference_op_call): Likewise.
21531 (copy_phi): Likewise.
21532 (copy_reference): Likewise.
21533 (process_scc): Likewise.
21534 (allocate_vn_table): Likewise.
21535 (free_vn_table): Likewise.
21537 2015-06-01 Martin Liska <mliska@suse.cz>
21539 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
21541 (add_repeat_to_ops_vec): Likewise.
21542 (get_ops): Likewise.
21543 (maybe_optimize_range_tests): Likewise.
21544 (init_reassoc): Likewise.
21545 (fini_reassoc): Likewise.
21547 2015-06-01 Martin Liska <mliska@suse.cz>
21549 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
21551 (bitmap_set_new): Likewise.
21552 (get_or_alloc_expr_for_constant): Likewise.
21553 (get_or_alloc_expr_for): Likewise.
21554 (phi_translate_1): Likewise.
21555 (compute_avail): Likewise.
21556 (init_pre): Likewise.
21557 (fini_pre): Likewise.
21559 2015-06-01 Martin Liska <mliska@suse.cz>
21561 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
21562 (delete_dep_node): Likewise.
21563 (create_deps_list): Likewise.
21564 (free_deps_list): Likewise.
21565 (sched_deps_init): Likewise.
21566 (sched_deps_finish): Likewise.
21568 2015-06-01 Martin Liska <mliska@suse.cz>
21570 * regcprop.c (free_debug_insn_changes): Use new type-based
21572 (replace_oldest_value_reg): Likewise.
21573 (pass_cprop_hardreg::execute): Likewise.
21575 2015-06-01 Martin Liska <mliska@suse.cz>
21577 * ira-build.c (initiate_cost_vectors): Use new type-based
21579 (ira_allocate_cost_vector): Likewise.
21580 (ira_free_cost_vector): Likewise.
21581 (finish_cost_vectors): Likewise.
21583 2015-06-01 Martin Liska <mliska@suse.cz>
21585 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
21587 (free_sched_pools): Likewise.
21588 * sel-sched-ir.h (_list_alloc): Likewise.
21589 (_list_remove): Likewise.
21591 2015-06-01 Martin Liska <mliska@suse.cz>
21593 * stmt.c (add_case_node): Use new type-based pool allocator.
21594 (expand_case): Likewise.
21595 (expand_sjlj_dispatch_table): Likewise.
21597 2015-06-01 Martin Liska <mliska@suse.cz>
21599 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
21600 (free_bb): Likewise.
21601 (pass_cse_reciprocals::execute): Likewise.
21603 2015-06-01 Martin Liska <mliska@suse.cz>
21605 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
21606 (sra_deinitialize) Likewise.
21607 (create_access_1) Likewise.
21608 (build_accesses_from_assign) Likewise.
21609 (create_artificial_child_access) Likewise.
21611 2015-06-01 Martin Liska <mliska@suse.cz>
21613 * dse.c (get_group_info):Use new type-based pool allocator.
21614 (dse_step0) Likewise.
21615 (free_store_info) Likewise.
21616 (delete_dead_store_insn) Likewise.
21617 (free_read_records) Likewise.
21618 (record_store) Likewise.
21619 (replace_read) Likewise.
21620 (check_mem_read_rtx) Likewise.
21621 (scan_insn) Likewise.
21622 (dse_step1) Likewise.
21623 (dse_step7) Likewise.
21625 2015-06-01 Martin Liska <mliska@suse.cz>
21627 * df-scan.c (struct df_scan_problem_data):Use new type-based
21629 (df_scan_free_internal) Likewise.
21630 (df_scan_alloc) Likewise.
21631 (df_grow_reg_info) Likewise.
21632 (df_free_ref) Likewise.
21633 (df_insn_create_insn_record) Likewise.
21634 (df_mw_hardreg_chain_delete) Likewise.
21635 (df_insn_info_delete) Likewise.
21636 (df_free_collection_rec) Likewise.
21637 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
21638 (df_sort_and_compress_mws) Likewise.
21639 (df_ref_create_structure) Likewise.
21640 (df_ref_record) Likewise.
21642 2015-06-01 Martin Liska <mliska@suse.cz>
21644 * df-problems.c (df_chain_create):Use new type-based pool allocator.
21645 (df_chain_unlink_1) Likewise.
21646 (df_chain_unlink) Likewise.
21647 (df_chain_remove_problem) Likewise.
21648 (df_chain_alloc) Likewise.
21649 (df_chain_free) Likewise.
21650 * df.h (struct dataflow) Likewise.
21652 2015-06-01 Martin Liska <mliska@suse.cz>
21654 * cselib.c (new_elt_list):Use new type-based pool allocator.
21655 (new_elt_loc_list) Likewise.
21656 (unchain_one_elt_list) Likewise.
21657 (unchain_one_elt_loc_list) Likewise.
21658 (unchain_one_value) Likewise.
21659 (new_cselib_val) Likewise.
21660 (cselib_init) Likewise.
21661 (cselib_finish) Likewise.
21663 2015-06-01 Martin Liska <mliska@suse.cz>
21665 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
21666 (sh_reorg) Likewise.
21668 2015-06-01 Martin Liska <mliska@suse.cz>
21670 * cfg.c (initialize_original_copy_tables):Use new type-based
21672 (free_original_copy_tables) Likewise.
21673 (copy_original_table_clear) Likewise.
21674 (copy_original_table_set) Likewise.
21676 2015-06-01 Martin Liska <mliska@suse.cz>
21678 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
21680 (asan_mem_ref_new) Likewise.
21681 (free_mem_ref_resources) Likewise.
21683 2015-06-01 Martin Liska <mliska@suse.cz>
21685 * var-tracking.c (variable_htab_free):Use new type-based
21687 (attrs_list_clear) Likewise.
21688 (attrs_list_insert) Likewise.
21689 (attrs_list_copy) Likewise.
21690 (shared_hash_unshare) Likewise.
21691 (shared_hash_destroy) Likewise.
21692 (unshare_variable) Likewise.
21693 (var_reg_delete_and_set) Likewise.
21694 (var_reg_delete) Likewise.
21695 (var_regno_delete) Likewise.
21696 (drop_overlapping_mem_locs) Likewise.
21697 (variable_union) Likewise.
21698 (insert_into_intersection) Likewise.
21699 (canonicalize_values_star) Likewise.
21700 (variable_merge_over_cur) Likewise.
21701 (dataflow_set_merge) Likewise.
21702 (remove_duplicate_values) Likewise.
21703 (variable_post_merge_new_vals) Likewise.
21704 (dataflow_set_preserve_mem_locs) Likewise.
21705 (dataflow_set_remove_mem_locs) Likewise.
21706 (variable_from_dropped) Likewise.
21707 (variable_was_changed) Likewise.
21708 (set_slot_part) Likewise.
21709 (clobber_slot_part) Likewise.
21710 (delete_slot_part) Likewise.
21711 (loc_exp_insert_dep) Likewise.
21712 (notify_dependents_of_changed_value) Likewise.
21713 (emit_notes_for_differences_1) Likewise.
21714 (vt_emit_notes) Likewise.
21715 (vt_initialize) Likewise.
21716 (vt_finalize) Likewise.
21718 2015-06-01 Martin Liska <mliska@suse.cz>
21720 * ira-color.c (init_update_cost_records):Use new type-based
21722 (get_update_cost_record) Likewise.
21723 (free_update_cost_record_list) Likewise.
21724 (finish_update_cost_records) Likewise.
21725 (initiate_cost_update) Likewise.
21727 2015-06-01 Martin Liska <mliska@suse.cz>
21729 * lra.c (init_insn_regs): Use new type-based pool allocator.
21730 (new_insn_reg) Likewise.
21731 (free_insn_reg) Likewise.
21732 (free_insn_regs) Likewise.
21733 (finish_insn_regs) Likewise.
21734 (init_insn_recog_data) Likewise.
21735 (init_reg_info) Likewise.
21736 (finish_reg_info) Likewise.
21737 (lra_free_copies) Likewise.
21738 (lra_create_copy) Likewise.
21739 (invalidate_insn_data_regno_info) Likewise.
21741 2015-06-01 Martin Liska <mliska@suse.cz>
21743 * lra-lives.c (free_live_range): Use new type-based pool allocator.
21744 (free_live_range_list) Likewise.
21745 (create_live_range) Likewise.
21746 (copy_live_range) Likewise.
21747 (lra_merge_live_ranges) Likewise.
21748 (remove_some_program_points_and_update_live_ranges) Likewise.
21749 (lra_live_ranges_init) Likewise.
21750 (lra_live_ranges_finish) Likewise.
21752 2015-06-01 Martin Liska <mliska@suse.cz>
21754 * et-forest.c (et_new_occ): Use new type-based pool allocator.
21755 (et_new_tree): Likewise.
21756 (et_free_tree): Likewise.
21757 (et_free_tree_force): Likewise.
21758 (et_free_pools): Likewise.
21759 (et_split): Likewise.
21761 2015-06-01 Martin Liska <mliska@suse.cz>
21763 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
21765 * alloc-pool.h (pool_allocator::pool_allocator): New function.
21766 (pool_allocator::release): Likewise.
21767 (inline pool_allocator::release_if_empty): Likewise.
21768 (inline pool_allocator::~pool_allocator): Likewise.
21769 (pool_allocator::allocate): Likewise.
21770 (pool_allocator::remove): Likewise.
21772 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21774 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
21777 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21779 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
21781 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
21782 (arm_macro_fusion_p): Likewise.
21783 (arm_macro_fusion_pair_p): Likewise.
21785 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21787 * config/aarch64/aarch64-protos.h (tune_params): Rename
21788 fuseable_ops to fusible_ops.
21789 * config/aarch64/aarch64.c (generic_tunings): Rename
21790 fuseable_ops to fusible_ops.
21791 (cortexa53_tunings): Likewise.
21792 (cortexa57_tunings): Likewise.
21793 (thunderx_tunings): Likewise.
21794 (xgene1_tunings): Likewise.
21795 (aarch64_macro_fusion_p): Likewise.
21796 (aarch64_macro_fusion_pair_p): Likewise.
21798 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
21800 * config/s390/driver-native.c: New file.
21801 * config/s390/x-native: New file.
21802 * config.host: Add new files for s390.
21803 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
21805 * config.gcc: Likewise.
21806 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
21807 * config/s390/s390-opts.h (enum processor_type): Ditto.
21808 * config/s390/s390.c (s390_option_override): Catch unhandled
21811 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
21814 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
21815 redirection for instrumented calls.
21816 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
21817 (append_compiler_options): Append -fcheck-pointer-bounds.
21818 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
21819 (chkp_redirect_edge): New.
21820 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
21821 (chkp_redirect_edge): New.
21823 2015-06-01 Richard Biener <rguenther@suse.de>
21825 PR tree-optimization/66280
21826 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
21829 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21831 * config/aarch64/aarch64.md
21832 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
21835 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
21837 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
21838 Remove obsolete kludge.
21840 2015-06-01 Richard Biener <rguenther@suse.de>
21842 * tree-ssa-reassoc.c (get_rank): Simplify.
21844 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
21846 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
21847 * configure: Regenerated.
21849 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
21851 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
21852 issue (add space between string literal and macro).
21853 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
21855 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
21857 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
21858 implict or explicit -fPIE or -fpie.
21860 2015-05-30 Mike Frysinger <vapier@gentoo.org>
21862 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
21864 2015-05-28 DJ Delorie <dj@redhat.com>
21866 * expmed.c (extract_bit_field_1): Avoid clobbering a
21867 yet-to-be-used base/index register.
21869 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
21871 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
21872 (alias_stats): Add num_universal.
21873 (alias_set_subset_of): Special case pointers; be ready for NULL
21875 (alias_sets_conflict_p): Special case pointers; be ready for NULL
21877 (init_alias_set_entry): Break out from ...
21878 (record_alias_subset): ... here; propagate new fields;
21879 allocate children only when really needed.
21880 (get_alias_set): Do less generous pointer globbing.
21881 (dump_alias_stats_in_alias_c): Update statistics.
21883 2015-05-30 Alan Modra <amodra@gmail.com>
21885 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
21886 correct block for use of r12.
21887 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
21889 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21892 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
21895 2015-05-29 Jakub Jelinek <jakub@redhat.com>
21897 PR tree-optimization/66142
21898 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
21899 virtual phis that feed themselves.
21901 2015-05-29 Richard Biener <rguenther@suse.de>
21903 PR tree-optimization/66314
21904 * tree-ssa-threadupdate.c (create_block_for_threading): Add
21905 parameter that says which loop the new block belongs to.
21906 (ssa_create_duplicates): Blocks duplicated for the threaded
21907 path belong to the loop of the thread destination.
21909 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21911 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
21912 to cleanup-saved-temps.
21913 * doc/sourcebuild.texi (Clean up generated test files): Expand
21915 (dg-keep-saved-temps): Document new proc.
21916 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
21917 cleanup-saved-temps): Remove.
21919 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
21921 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
21922 gcc_AC_CHECK_DECLS.
21923 * configure: Regenerate.
21925 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21927 * config/nios2/linux.h (CPP_SPEC): Define.
21929 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21931 * config/microblaze/linux.h (CPP_SPEC): Define.
21933 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21935 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
21936 -pthread is specified.
21938 2015-05-28 Richard Biener <rguenther@suse.de>
21940 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
21941 (vect_fixup_scalar_cycles_with_patterns): Likewise.
21942 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
21943 after pattern recog.
21944 (vect_create_epilog_for_reduction): Properly handle reductions
21946 (vectorizable_reduction): Likewise.
21947 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
21949 (vect_get_constant_vectors): Create the correct number of
21950 initial values for reductions.
21951 (vect_schedule_slp_instance): Handle reduction chains that are
21952 type changing properly.
21953 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
21955 2015-05-28 Richard Biener <rguenther@suse.de>
21957 PR tree-optimization/66142
21958 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
21959 values better in memcpy destination handling. Handle non-aliasing
21962 2015-05-28 Lawrence Velázquez <vq@larryv.me>
21965 * config/darwin-c.c (version_components): New global enum.
21966 (parse_version, version_as_legacy_macro)
21967 (version_as_modern_macro, macosx_version_as_macro): New functions.
21968 (version_as_macro): Remove.
21969 (darwin_cpp_builtins): Use new function.
21971 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
21973 * builtins.c (expand_builtin_acc_on_device): Mark parameters
21974 with ATTRIBUTE_UNUSED.
21976 2015-05-28 Julian Brown <julian@codesourcery.com>
21980 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
21981 sequence for !ACCEL_COMPILER.
21983 2015-05-28 Nick Clifton <nickc@redhat.com>
21985 * config/rx/rx.c (push_regs): New function. Extracts code from...
21986 (rx_expand_prologue): ... here. Use push_regs to push even small
21987 spans of registers.
21988 (pop_regs): New function.
21989 (rx_expand_epilogue): Use pop_regs to pop even small spans of
21992 2015-05-28 Richard Biener <rguenther@suse.de>
21994 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
21996 (SLP_INSTANCE_BODY_COST_VEC): Remove.
21997 (vect_update_slp_costs_according_to_vf): Likewise.
21998 (vect_slp_analyze_operations): Update prototype.
21999 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
22000 vect_update_slp_costs_according_to_vf, adjust.
22001 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
22002 (vect_analyze_slp_cost_1): Likewise.
22003 (vect_analyze_slp_cost): Likewise. Properly deal with
22004 widening reduction ops. Commit body costs.
22005 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
22006 cost for loops from here.
22007 (vect_slp_analyze_operations): But do it from here when
22008 the vectorization factor is known and stmts are analyzed.
22009 (vect_bb_vectorization_profitable_p): Simplify.
22010 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
22011 (vect_update_slp_costs_according_to_vf): Remove.
22013 2015-05-27 Magnus Granberg <zorry@gentoo.org>
22014 H.J. Lu <hongjiu.lu@intel.com>
22016 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
22017 (BUILD_CFLAGS): Likewise.
22018 (BUILD_CXXFLAGS): Likewise.
22019 (LINKER): Add @NO_PIE_FLAG@.
22020 (BUILD_LDFLAGS): Likewise.
22021 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
22022 --enable-default-pie.
22023 * common.opt (fPIE): Initialize to -1.
22025 (no-pie): New option.
22026 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
22027 * configure.ac: Add --enable-default-pie.
22028 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
22029 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
22030 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
22031 * gcc.c (NO_PIE_SPEC): New.
22032 (PIE_SPEC): Likewise.
22033 (NO_FPIE1_SPEC): Likewise.
22034 (FPIE1_SPEC): Likewise.
22035 (NO_FPIE2_SPEC): Likewise.
22036 (FPIE2_SPEC): Likewise.
22037 (NO_FPIE2_SPEC): Likewise.
22038 (FPIE_SPEC): Likewise.
22039 (NO_FPIE_SPEC): Likewise.
22040 (NO_FPIC1_SPEC): Likewise.
22041 (FPIC1_SPEC): Likewise.
22042 (NO_FPIC2_SPEC): Likewise.
22043 (FPIC2_SPEC): Likewise.
22044 (NO_FPIC2_SPEC): Likewise.
22045 (FPIC_SPEC): Likewise.
22046 (NO_FPIC_SPEC): Likewise.
22047 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
22048 (FPIE1_OR_FPIC1_SPEC): Likewise.
22049 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
22050 (FPIE2_OR_FPIC2_SPEC): Likewise.
22051 (NO_FPIE_AND_FPIC_SPEC): Likewise.
22052 (FPIE_OR_FPIC_SPEC): Likewise.
22053 (LD_PIE_SPEC): Likewise.
22054 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
22055 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
22056 * config/darwin.h (PIE_SPEC): Renamed to ...
22057 (DARWIN_PIE_SPEC): This.
22058 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
22059 * config/darwin9.h (PIE_SPEC): Renamed to ...
22060 (DARWIN_PIE_SPEC): This.
22061 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
22062 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22063 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
22064 FPIE2_OR_FPIC2_SPEC.
22065 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
22066 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
22067 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
22068 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22069 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22070 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22071 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
22072 * config/m32r/m32r.h (ASM_SPEC): Likewise.
22073 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
22074 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
22075 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
22076 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
22077 * config/sparc/linux.h (ASM_SPEC): Likewise.
22078 * config/sparc/linux64.h (ASM_SPEC): Likewise.
22079 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
22080 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
22081 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22082 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22083 * config/sparc/sparc.h (ASM_SPEC): Likewise.
22084 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
22085 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
22086 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
22087 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
22088 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
22089 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
22090 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
22091 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
22092 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
22093 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
22094 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
22095 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
22096 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22097 * config/vax/linux.h (ASM_SPEC): Likewise.
22098 * doc/install.texi: Document --enable-default-pie.
22099 * doc/invoke.texi: Document -no-pie.
22100 * config.in: Regenerated.
22101 * configure: Likewise.
22103 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
22105 PR rtl-optimization/66168
22106 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
22107 can_move_invariant_reg.
22109 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
22112 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
22113 REG_EQUAL note when doing insert.
22115 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
22116 instead of "%d" for 'o' operand.
22118 2015-05-27 Nathan Sidwell <nathan@acm.org>
22121 * tree.c (build_pointer_type_for_mode): Canonical type does not
22122 inherit can_alias_all.
22123 (build_reference_type_for_mode): Likewise.
22125 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
22127 * expr.h (array_at_struct_end_p): Move to...
22128 (array_ref_element_size): Likewise.
22129 (component_ref_field_offset): Likewise.
22130 * tree.h (array_ref_element_size): ...here.
22131 (array_at_struct_end_p): Likewise.
22132 (component_ref_field_offset): Likewise.
22133 * expr.c (array_ref_element_size): Move to...
22134 (array_ref_low_bound): Likewise.
22135 (array_at_struct_end_p): Likewise.
22136 (array_ref_up_bound): Likewise.
22137 (component_ref_field_offset): Likewise.
22138 * tree.c (array_ref_element_size): ...here.
22139 (array_ref_low_bound): Likewise.
22140 (array_ref_up_bound): Likewise.
22141 (array_at_struct_end_p): Likewise.
22142 (component_ref_field_offset): Likewise.
22144 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
22145 Szabolcs Nagy <szabolcs.nagy@arm.com>
22147 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
22149 2015-05-27 Jason Merrill <jason@redhat.com>
22152 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
22153 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
22154 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
22156 2015-05-22 Aditya Kumar <hiraditya@msn.com>
22158 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
22161 * statistics.c (statistics_fini_pass): Print pass name.
22163 2015-05-27 Richard Biener <rguenther@suse.de>
22165 PR tree-optimization/66272
22167 2014-08-15 Richard Biener <rguenther@suse.de>
22169 PR tree-optimization/62031
22170 * tree-data-ref.c (dr_analyze_indices): Do not set
22171 DR_UNCONSTRAINED_BASE.
22172 (dr_may_alias_p): All indirect accesses have to go the
22173 formerly DR_UNCONSTRAINED_BASE path.
22174 * tree-data-ref.h (struct indices): Remove
22175 unconstrained_base member.
22176 (DR_UNCONSTRAINED_BASE): Remove.
22178 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
22180 * dwarf2out.c: Remove block_map.
22181 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
22182 (gen_lexical_block_die): Same.
22183 (dwarf2out_function_decl): Remove block_map use.
22184 (dwarf2out_c_finalize): Same.
22185 * tree-core.h (struct tree_block): Add die field.
22186 * tree.h (BLOCK_DIE): New.
22188 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22191 * expr.c (memory_load_overlap): New function.
22192 (emit_push_insn): When pushing partial args to the stack would
22193 clobber the register part load the overlapping part into a pseudo
22194 and put it into the hard reg after pushing. Change return type
22195 to bool. Add bool argument.
22196 * expr.h (emit_push_insn): Change return type to bool.
22198 * calls.c (expand_call): Cancel sibcall optimization when encountering
22199 partial argument on targets with ARGS_GROW_DOWNWARD and
22200 !STACK_GROWS_DOWNWARD.
22201 (emit_library_call_value_1): Update callsite of emit_push_insn.
22202 (store_one_arg): Likewise.
22204 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
22206 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
22208 2015-05-27 Martin Liska <mliska@suse.cz>
22210 * Makefile.in: Add additional dependencies related to memory report
22212 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
22213 * bitmap.c (struct bitmap_descriptor_d): Remove.
22214 (struct loc): Likewise.
22215 (struct bitmap_desc_hasher): Likewise.
22216 (bitmap_desc_hasher::hash): Likewise.
22217 (bitmap_desc_hasher::equal): Likewise.
22218 (get_bitmap_descriptor): Likewise.
22219 (bitmap_register): User new memory descriptor API.
22220 (register_overhead): Likewise.
22221 (bitmap_find_bit): Register nsearches and search_iter statistics.
22222 (struct bitmap_output_info): Remove.
22223 (print_statistics): Likewise.
22224 (dump_bitmap_statistics): Use new memory descriptor.
22225 * bitmap.h (struct bitmap_usage): New class.
22226 * genmatch.c: Extend header file inclusion.
22227 * genpreds.c: Likewise.
22228 * ggc-common.c (struct ggc_usage): New class.
22229 (struct ggc_loc_desc_hasher): Remove.
22230 (ggc_loc_desc_hasher::hash): Likewise.
22231 (ggc_loc_desc_hasher::equal): Likewise.
22232 (struct ggc_ptr_hash_entry): Likewise.
22233 (struct ptr_hash_hasher): Likewise.
22234 (ptr_hash_hasher::hash): Likewise.
22235 (ptr_hash_hasher::equal): Likewise.
22236 (make_loc_descriptor): Likewise.
22237 (ggc_prune_ptr): Likewise.
22238 (dump_ggc_loc_statistics): Use new memory descriptor.
22239 (ggc_record_overhead): Likewise.
22240 (ggc_free_overhead): Likewise.
22241 (final_cmp_statistic): Remove.
22242 (cmp_statistic): Likewise.
22243 (ggc_add_statistics): Liekwise.
22244 (ggc_prune_overhead_list): Likewise.
22245 * hash-map-traits.h: New file.
22246 * hash-map.h (struct default_hashmap_traits): Move the traits to a
22247 separate header file.
22248 * hash-set.h: Pass memory statistics info to ctor.
22249 * hash-table.c (void dump_hash_table_loc_statistics): New function.
22250 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
22251 (hash_table::~hash_table): Register memory release operation.
22252 (hash_table::alloc_entries): Handle memory allocation operation.
22253 (hash_table::expand): Likewise.
22254 * inchash.c (iterative_hash_hashval_t): Move implementation to header
22256 (iterative_hash_host_wide_int): Likewise.
22257 * inchash.h (class hash): Likewise.
22258 * mem-stats-traits.h: New file.
22259 * mem-stats.h: New file.
22260 (mem_location): Add new class.
22261 (mem_usage): Likewise.
22262 (mem_alloc_description): Likewise.
22263 * sese.c: Add new header file inclusision.
22264 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
22266 * tree-sra.c: Add new header file inclusision.
22267 * vec.c (struct vec_descriptor): Remove.
22268 (hash_descriptor): Likewise.
22269 (struct vec_usage): Likewise.
22270 (struct ptr_hash_entry): Likewise.
22271 (hash_ptr): Likewise.
22272 (eq_ptr): Likewise.
22273 (vec_prefix::register_overhead): Use new memory descriptor API.
22274 (vec_prefix::release_overhead): Likewise.
22275 (add_statistics): Remove.
22276 (dump_vec_loc_statistics): Use new memory descriptor API.
22277 * vec.h (struct vec_prefix): Likewise.
22278 (va_heap::reserve): Likewise.
22279 (va_heap::release): Likewise.
22280 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
22282 2015-05-27 Richard Biener <rguenther@suse.de>
22284 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
22285 earlier and remove ??? comment.
22286 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
22287 and got called from loop analysis bail out. Always pass the SLP
22288 node to the vectorizable_* functions.
22289 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
22290 the premature SLP check here.
22291 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
22292 detected SLP stmts.
22293 (vect_detect_hybrid_slp_1): Likewise.
22295 2015-05-26 Jeff Law <law@redhat.com>
22297 * combine.c (find_split_point): Verify that the shift count is a
22298 constant when choosing (plus (ashift ...)) as a split point.
22300 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
22301 No functional changes.
22303 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
22305 * ipa-polymorphic-call.c
22306 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
22307 case when call target is already known.
22309 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
22312 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
22313 take into account the case that operands[1] and operands[2]
22314 are the same register.
22316 2015-05-26 Michael Matz <matz@suse.de>
22318 PR middle-end/66251
22320 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
22322 (vect_create_vectorized_demotion_stmts): Always set
22323 STMT_VINFO_VEC_STMT, also with SLP.
22324 (vectorizable_store): Handle strided group stores.
22326 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22329 * config/aarch64/aarch64.md
22330 (*adds_shift_imm_<mode>): New pattern.
22331 (*subs_shift_imm_<mode>): Likewise.
22332 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22333 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22334 (*add_uxt<mode>_shift2): Likewise.
22335 (*add_uxtsi_shift2_uxtw): Likewise.
22336 (*sub_uxt<mode>_shift2): Likewise.
22337 (*sub_uxtsi_shift2_uxtw): Likewise.
22339 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
22341 * config/rs6000/constraints.md (Y, U): Use match_test.
22343 2015-05-26 Christian Bruel <christian.bruel@st.com>
22346 * config/arm/arm.c (arm_option_check_internal)
22347 (arm_option_params_internal): Check opts->target_flags to set macros.
22348 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22349 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
22350 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22351 (builtin_define): Replaced with def_or_undef_macro.
22352 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22353 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
22354 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22355 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
22356 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
22357 (TARGET_ARM_FEATURE_LDREX_P)
22358 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
22359 * config/arm/arm-c.c (def_or_undef_macro): New function.
22360 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
22362 2015-05-26 Christian Bruel <christian.bruel@st.com>
22364 * c-common.h (builtin_define_with_int_value)
22365 (builtin_define_type_sizeof): Declare.
22366 * c-cppbuiltin.c (builtin_define_with_int_value)
22367 (builtin_define_type_sizeof): Externalize.
22368 (builtin_define_std): Cleanup declaration.
22369 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
22370 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
22371 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
22372 (builtin_define, builtin_assert): New macros.
22374 2015-05-26 Richard Biener <rguenther@suse.de>
22376 PR tree-optimization/66142
22377 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
22378 MEM_REFs for the same base address.
22380 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22383 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
22385 2015-05-26 Jason Merrill <jason@redhat.com>
22387 * configure.ac: Set CXXFLAGS for ISL test.
22388 * configure: Regenerate.
22390 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
22391 strstr and basename.
22392 * configure: Regenerate.
22394 2015-05-26 Richard Biener <rguenther@suse.de>
22396 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
22397 X % C -> X & (C - 1) for C being a power-of two to ...
22398 * match.pd: ... patterns.
22400 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
22402 * match.pd (swapped_tcc_comparison): New operator list.
22403 (-A CMP -B): New simplification.
22404 * fold-const.c (fold_comparison): Remove corresponding code.
22406 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
22408 * caller-save.c (init_caller_save): Base temporary register numbers
22409 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
22410 * cfgloopanal.c (init_set_costs): Likewise.
22411 * dojump.c (prefer_and_bit_test): Likewise.
22412 * expr.c (init_expr_target): Likewise.
22413 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22414 * lower-subreg.c (init_lower_subreg): Likewise.
22415 * postreload.c (reload_cse_regs_1): Likewise.
22417 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
22419 * gensupport.h (compute_test_codes): Declare.
22420 * gensupport.c (compute_predicate_codes): Rename to...
22421 (compute_test_codes): ...this. Generalize error message.
22422 (process_define_predicate): Update accordingly.
22423 * genpreds.c (compute_maybe_allows): Delete.
22424 (add_constraint): Use compute_test_codes to determine whether
22425 something can accept a SUBREG, REG or MEM.
22427 2015-05-26 Torvald Riegel <triegel@redhat.com>
22429 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
22430 'memory model' to align with C++11; fix description of memory orders;
22433 2015-05-26 Richard Biener <rguenther@suse.de>
22435 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
22436 (vect_analyze_loop_operations): ... here. Remove slp parameter,
22437 detect whether we apply SLP. Remove call to
22438 vect_update_slp_costs_according_to_vf.
22439 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
22440 vect_update_slp_costs_according_to_vf from here. Dispatch
22441 to vect_slp_analyze_operations to analyze SLP stmts.
22442 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
22443 unused bb_vec_info parameter, adjust assert.
22444 (vect_slp_analyze_operations): Pass in the slp instance tree
22445 instead of bb_vec_info.
22446 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
22447 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
22449 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
22451 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
22452 Q_REGS. Expand comment.
22453 (REG_CLASS_NAMES): Ditto.
22454 (REG_CLASS_CONTENTS): Ditto.
22456 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
22459 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
22460 when LEGACY_INT_REGNO_P is processed.
22462 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
22464 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
22466 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22468 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
22469 register if not marked dead/unused, before return.
22471 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22474 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
22475 is set; check for assembler name at LTO time.
22476 (type_in_anonymous_namespace): Remove hacks, check that all
22477 anonymous types are called "<anon>"
22478 (odr_type_p): Simplify; add check for "<anon>"
22479 (odr_subtypes_equivalent): Add odr_type_p check.
22480 * tree.c (need_assembler_name_p): Even anonymous namespace needs
22483 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22485 * ipa-utils.h (method_class_type): Remove.
22486 * cgraphunit.c (walk_polymorphic_call_targets): Use
22487 TYPE_METHOD_BASETYPE.
22488 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
22489 on main variants only.
22490 (method_class_type): Remove.
22491 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
22492 (build_type_inheritance_graph): Likewise.
22493 * ipa-icf.c (sem_function::equals_wpa): Likewise.
22494 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
22495 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
22497 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22499 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
22500 is_typedef_decl, typedef_variant_p): Constify.
22501 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
22502 is_typedef_decl, typedef_variant_p): Constify.
22504 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22506 * defaults.h (gen_tablejump): New function.
22507 (HAVE_tablejump): Add default value.
22509 * stmt.c: Likewise.
22511 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22513 * defaults.h (gen_store_multiple): New function.
22514 (HAVE_store_multiple): Add default value.
22515 * expr.c (move_block_from_reg): Adjust.
22517 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22519 * defaults.h (gen_load_multiple): New function.
22520 (HAVE_load_multiple): Add default value.
22521 * expr.c (move_block_to_reg): Adjust.
22523 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22525 * defaults.h (gen_mem_signal_fence): New function.
22526 (HAVE_mem_signal_fence): Add default value.
22527 * optabs.c: Adjust.
22529 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22531 * defaults.h (gen_memory_barrier): New function.
22532 (HAVE_memory_barrier): Add default value.
22533 * optabs.c: Adjust.
22535 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22537 * defaults.h (gen_mem_thread_fence): New function.
22538 (HAVE_mem_thread_fence): Add default definition.
22539 * optabs.c: Adjust.
22541 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22543 * combine.c (find_split_point): Check the value of HAVE_lo_sum
22544 instead of if it is defined.
22545 (combine_simplify_rtx): Likewise.
22546 * lra-constraints.c (process_address_1): Likewise.
22547 * config/darwin.c: Adjust.
22548 * genconfig.c (main): Always define HAVE_lo_sum.
22550 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22552 * genmatch.c (parser::parse_operation): Reject expanding
22553 operator-list inside 'for'.
22555 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22557 * genmatch.c (parser::parse_for): Reject iterator if used as
22560 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22562 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
22563 after end of id-list.
22565 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22567 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
22568 we do not try to compute canonical type for type that does not need
22570 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
22572 * tree.h (type_with_alias_set_p): New.
22574 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22576 * tree.c (gimple_canonical_types_compatible_p): Do not compare
22577 function attributes.
22578 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
22580 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
22582 * Makefile.in (check_gcc_parallelize): Delete.
22583 (lang_checks_parallelized): Update comment.
22585 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
22587 PR rtl-optimization/66237
22588 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
22589 location of an "as_a" cast.
22591 2015-05-22 Jeff Law <law@redhat.com>
22593 * config/pa/pa.md (non-canonical shift-add insns): Remove.
22594 (peepholes with non-canonical RTL sources): Remove.
22595 (peepholes for indexed stores of FP regs in integer modes): Match and
22596 generate canonical RTL.
22598 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22600 PR tree-optimization/63387
22601 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
22602 ((x ord x) & (y ord y) -> (x ord y),
22603 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
22604 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
22605 vectors like scalars.
22607 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22609 * convert.c (convert_to_integer, convert_to_vector): Include the
22610 types in the error message.
22612 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22614 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
22617 2015-05-22 Jeff Law <law@redhat.com>
22619 * config/pa/pa.md (integer_indexed_store splitters): Use
22620 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
22621 insns -- adjusting the constant 2nd operand accordingly.
22623 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
22624 (plus (ashift X log2) Y) if it is a split point.
22626 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
22627 out of hppa_legitimize_address to handle both forms of a multiply
22629 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
22630 Always generate the ASHIFT variant as the result is not directly
22631 used in a MEM. Update comments and refactor slightly to improve
22634 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22637 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
22638 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
22639 (aarch64_composite_type_p): Return false if given type and mode are
22640 for a short vector.
22642 2015-05-22 Richard Biener <rguenther@suse.de>
22644 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
22646 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
22647 patterns when determining whether SLP is pure.
22648 (vect_is_slp_reduction): Remove check for pattern stmts.
22649 (vect_is_simple_reduction_1): Remove dead code.
22650 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
22651 (vect_get_and_check_slp_defs): Pass in the stmt number.
22652 Allow the first def in a reduction to be not a pattern stmt when
22653 the rest of the stmts def are patterns.
22654 (vect_build_slp_tree_1): Allow tcc_expression codes like
22655 SAD_EXPR and DOT_PROD_EXPR.
22656 (vect_build_slp_tree): Adjust.
22657 (vect_analyze_slp): Refactor and move BB vect error message ...
22658 (vect_slp_analyze_bb_1): ... here.
22660 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
22662 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
22663 for CSWTCH temporary.
22665 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22667 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
22668 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
22671 2015-05-22 Richard Biener <rguenther@suse.de>
22673 PR tree-optimization/66251
22674 * tree-vect-stmts.c (vectorizable_conversion): Properly
22675 set STMT_VINFO_VEC_STMT even for the SLP case.
22677 2015-05-22 Marek Polacek <polacek@redhat.com>
22679 * doc/extend.texi: Use @pxref instead of @xref.
22681 2015-05-22 hiraditya <hiraditya@msn.com>
22683 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
22686 2015-05-22 Richard Biener <rguenther@suse.de>
22688 PR tree-optimization/65701
22689 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22690 Move peeling cost models into one place. Peel for alignment
22691 for single loads only if an aligned load is cheaper than
22694 2015-05-22 Marek Polacek <polacek@redhat.com>
22697 * doc/extend.texi (Enumerator Attributes): New section.
22698 Document syntax of enumerator attributes.
22700 2015-05-22 Richard Biener <rguenther@suse.de>
22702 * tree-vect-loop.c (get_reduction_op): New function.
22703 (vect_model_reduction_cost): Use it, add reduc_index parameter.
22704 Make ready for BB reductions.
22705 (vect_create_epilog_for_reduction): Use get_reduction_op.
22706 (vectorizable_reduction): Init reduc_index to a valid value.
22707 Adjust vect_model_reduction_cost call.
22708 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
22709 operand for reduction defaults. Add SAD_EXPR support.
22710 Assert we have a neutral op for SLP reductions.
22711 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
22712 walking pattern stmt ops only recurse to SSA names.
22714 2015-05-22 Richard Biener <rguenther@suse.de>
22716 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
22717 assert with guard, remove check on detected reduction.
22718 (vect_recog_sad_pattern): Likewise.
22719 (vect_recog_widen_sum_pattern): Likewise.
22721 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22723 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
22724 __always_inline__ attribute.
22725 (vaesdq_u8): Likewise.
22726 (vaesmcq_u8): Likewise.
22727 (vaesimcq_u8): Likewise.
22728 (vsha1cq_u32): Likewise.
22729 (vsha1mq_u32): Likewise.
22730 (vsha1pq_u32): Likewise.
22731 (vsha1h_u32): Likewise.
22732 (vsha1su0q_u32): Likewise.
22733 (vsha1su1q_u32): Likewise.
22734 (vsha256hq_u32): Likewise.
22735 (vsha256h2q_u32): Likewise.
22736 (vsha256su0q_u32): Likewise.
22737 (vsha256su1q_u32): Likewise.
22738 (vmull_p64): Likewise.
22739 (vmull_high_p64): Likewise.
22741 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22743 * final.c (final_scan_insn): Don't check HAVE_peephole with the
22745 * output.h: Likewise.
22746 * genconfig.c (main): Alwways define HAVE_peephole.
22747 * genpeep.c: Don't emit checks of HAVE_peephole.
22749 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22751 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
22752 check HAVE_conditional_move with the preprocessor.
22754 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22756 * genconfig.c (main): Always define HAVE_conditional_move.
22757 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
22758 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
22761 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22763 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
22764 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
22765 and FRAME_POINTER_REGNUM with the preprocessor.
22767 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22769 * defaults.h: Add default for STACK_PUSH_CODE.
22770 * expr.c: Don't redefine STACK_PUSH_CODE.
22771 * recog.c: Likewise.
22773 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22775 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
22776 sched-deps.c: Use if instead of preprocessor checks with
22777 STACK_GROWS_DOWNWARD.
22779 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22781 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
22783 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
22784 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
22785 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
22786 * doc/tm.texi: Regenerate.
22788 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
22791 * config/i386/constraints.md (Bg): New constraint for GOT memory
22793 * config/i386/i386.md (*call_got_x32): New pattern.
22794 (*call_value_got_x32): Likewise.
22795 * config/i386/predicates.md (GOT_memory_operand): New predicate.
22797 2015-05-21 Jakub Jelinek <jakub@redhat.com>
22799 PR tree-optimization/66233
22800 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
22803 2015-05-21 Jeff Law <law@redhat.com>
22805 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
22806 than MULT for shadd sequences.
22808 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
22810 * alias.c (alias_stats): New static var.
22811 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
22812 (dump_alias_stats_in_alias_c): New function.
22813 * alias.h (dump_alias_stats_in_alias_c): Declare.
22814 * tree-ssa-alias.c (dump_alias_stats): Call it.
22816 2015-05-08 Michael Matz <matz@suse.de>
22818 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
22820 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
22821 (STMT_VINFO_STRIDED_P): ... this.
22822 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
22823 (vect_verify_datarefs_alignment): Likewise.
22824 (vect_enhance_data_refs_alignment): Likewise.
22825 (vect_analyze_data_ref_access): Likewise.
22826 (vect_analyze_data_refs): Accept strided stores.
22827 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
22828 (vect_model_load_cost): Adjust for macro rename.
22829 (vectorizable_mask_load_store): Likewise.
22830 (vectorizable_load): Likewise.
22831 (vectorizable_store): Open code strided stores.
22833 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22835 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
22836 Document sqrt_insn.
22838 2015-05-21 Richard Biener <rguenther@suse.de>
22841 * match.pd: Guard pattern optimzing (int)(float)int
22842 conversions to apply only on GIMPLE.
22844 2015-05-21 Jeff Law <law@redhat.com>
22846 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
22847 multiply-accumulate/shift-add insn generation.
22849 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
22852 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
22853 operands[1] are the same.
22855 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
22857 PR middle-end/66221
22858 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
22859 build_distinct_type_copy to copy bounds.
22861 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
22863 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
22864 Change to unsigned int.
22866 2015-05-20 Jeff Law <law@redhat.com>
22868 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
22869 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
22870 (pa_shadd_constant_p): Allow constants for shadd insns rather
22871 than valid scaling constants for memory addresses.
22872 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
22873 * config/pa/predicates.md (mem_shadd_operand): New predicate.
22874 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
22875 (shift-add insns using ASHIFT): New patterns.
22877 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
22879 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
22881 (fix_up_fall_thru_edges): Likewise.
22882 (fix_crossing_conditional_branches): Likewise. Promote jump targets
22883 from to rtx_insn to rtx_code_label where feasible.
22884 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
22885 gen_move_insn (returned type changed to rtx_insn).
22886 * builtins.c (expand_errno_check): Fix arguments of
22887 do_compare_rtx_and_jump (now expects rtx_code_label).
22888 (expand_builtin_acc_on_device): Likewise.
22889 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
22890 invert_jump (now exprects rtx_jump_insn).
22891 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
22892 (construct_init_block): Use rtx_code_label.
22893 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
22894 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
22895 calling redirect_jump.
22896 (patch_jump_insn): Likewise.
22897 (redirect_branch_edge): Likewise.
22898 (force_nonfallthru_and_redirect): Likewise.
22899 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
22901 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
22902 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
22903 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
22904 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
22905 to store the value retured by gen_label_rtx.
22906 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
22908 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
22909 (split_branches): Fix calls of redirect_jump.
22910 * dojump.c (jumpifnot): Promote argument type from rtx to
22912 (jumpifnot_1): Likewise.
22913 (jumpif): Likewise.
22914 (jumpif_1): Likewise.
22915 (do_jump_1): Likewise.
22916 (do_jump): Likewise. Use rtx_code_label when feasible.
22917 (do_jump_by_parts_greater_rtx): Likewise.
22918 (do_jump_by_parts_zero_rtx): Likewise.
22919 (do_jump_by_parts_equality_rtx): Likewise.
22920 (do_compare_rtx_and_jump): Likewise.
22921 * dojump.h: Update function prototypes.
22922 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
22924 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
22926 (emit_label_before): Likewise.
22927 (emit_jump_insn_after_noloc): Likewise.
22928 (emit_jump_insn_after_setloc): Likewise.
22929 (emit_jump_insn_after): Likewise
22930 (emit_jump_insn_before_setloc): Likewise.
22931 (emit_jump_insn_before): Likewise.
22932 (emit_label_before): Promote return type to rtx_code_label.
22933 (emit_label): Likewise.
22934 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
22935 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
22937 (emit_stack_restore): Likewise.
22938 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
22939 (do_cmp_and_jump): Likewise.
22940 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
22941 from rtx to rtx_code_label.
22942 (gen_move_insn_uncast): New function.
22943 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
22944 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
22945 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
22946 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
22947 invert_jump_1 and redirect_jump_1.
22948 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
22949 do_compare_rtx_and_jump.
22950 (expand_addsub_overflow): Likewise.
22951 (expand_neg_overflow): Likewise.
22952 (expand_mul_overflow): Likewise.
22953 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
22954 return value of gen_move_insn.
22955 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
22956 * loop-doloop.c (add_test): Use rtx_code_label.
22957 (doloop_modify): Likewise.
22958 (doloop_optimize): Likewise.
22959 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
22960 * lra-constraints.c (emit_spill_move): Remove cast of value returned
22962 (inherit_reload_reg): Add cast when calling dump_insn_slim.
22963 (split_reg): Likewise.
22964 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
22966 * optabs.c (expand_binop_directly): Remove casts of values returned by
22968 (expand_unop_direct): Likewise.
22969 (expand_abs): Likewise.
22970 (maybe_emit_unop_insn): Likewise.
22971 (maybe_gen_insn): Promote return type to rtx_insn.
22972 * optabs.h: Update prototype of maybe_gen_insn.
22973 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
22975 * recog.c (struct peep2_insn_data): Promote type of insn field to
22977 (peep2_reinit_state): Use NULL instead of NULL_RTX.
22978 (peep2_attempt): Remove casts of insn in peep2_insn_data.
22979 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
22980 * recog.h (struct insn_gen_fn): Promote return types of function
22981 pointers and operator ().from rtx to rtx_insn.
22982 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
22983 (fill_eager_delay_slots): Likewise.
22984 (relax_delay_slots): Likewise.
22985 (make_return_insns): Likewise.
22986 (dbr_schedule): Likewise.
22987 (optimize_skips): Likewise.
22988 (reorg_redirect_jump): Likewise.
22989 (fill_slots_from_thread): Likewise.
22990 * reorg.h: Update prototypes.
22991 * resource.c (find_dead_or_set_registers): Use dyn_cast to
22992 rtx_jump_insn instead of check. Use it's jump_target method.
22993 * rtl.h (rtx_jump_insn::jump_label): Define new method.
22994 (rtx_jump_insn::jump_target): Define new method.
22995 (rtx_jump_insn::set_jump_target): Define new method.
22996 * rtlanal.c (tablejump_p): Promote type of one local variable.
22997 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
22998 (sched_analyze_insn): Likewise.
22999 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
23000 (print_insn): Likewise.
23001 * stmt.c (label_rtx): Promote return type to rtx_insn.
23002 (force_label_rtx): Likewise.
23003 (jump_target_rtx): Define new function.
23004 (expand_label): Use it, get rid of one cast.
23005 (expand_naked_return): Promote rtx to rtx_code_label.
23006 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
23007 (expand_case): Use rtx_code_label instread of rtx where feasible.
23008 (expand_sjlj_dispatch_table): Likewise.
23009 (emit_case_nodes): Likewise.
23010 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
23011 * store-motion.c (insert_store): Make use of new return type of
23012 gen_move_insn and remove a cast.
23013 (replace_store_insn): Likewise.
23015 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
23017 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
23018 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
23020 2015-05-20 Jeff Law <law@redhat.com>
23022 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
23023 dispose of the jump thread path when the jump threading
23024 opportunity is cancelled.
23026 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
23028 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
23029 when printing the caret character.
23031 2015-05-20 Marek Polacek <polacek@redhat.com>
23033 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
23035 2015-05-20 Marek Polacek <polacek@redhat.com>
23037 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
23038 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
23039 * gimple-fold.c (canonicalize_bool): Likewise.
23040 (same_bool_result_p): Likewise.
23041 * tree-if-conv.c (parse_predicate): Likewise.
23043 2015-05-20 Marek Polacek <polacek@redhat.com>
23045 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
23046 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
23048 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23050 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
23051 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
23054 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
23056 * config/mips/mips.h (micromips_globals): Declare.
23058 2015-05-20 David Malcolm <dmalcolm@redhat.com>
23060 * timevar.def (TV_INITIALIZE_RTL): New.
23061 * toplev.c (initialize_rtl): Use an auto_timevar to account this
23062 function's time to TV_INITIALIZE_RTL.
23064 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
23066 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
23067 gimple_build_nop calls.
23068 (chkp_find_bounds_for_elem): Likewise.
23069 (chkp_get_zero_bounds): Likewise.
23070 (chkp_get_none_bounds): Likewise.
23071 (chkp_get_bounds_by_definition): Likewise.
23072 (chkp_generate_extern_var_bounds): Likewise.
23073 (chkp_get_bounds_for_decl_addr): Likewise.
23074 (chkp_get_bounds_for_string_cst): Likewise.
23076 2015-05-20 Bin Cheng <bin.cheng@arm.com>
23078 PR tree-optimization/65447
23079 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
23080 (dump_use, dump_uses): Support to dump sub use.
23081 (record_use): New parameters to support sub use. Remove call to
23083 (record_sub_use, record_group_use): New functions.
23084 (compute_max_addr_offset, split_all_small_groups): New functions.
23085 (group_address_uses, rewrite_use_address): New functions.
23086 (strip_offset): New declaration.
23087 (find_interesting_uses_address): Call record_group_use.
23088 (add_candidate): New assertion.
23089 (infinite_cost_p): Move definition forward.
23090 (add_costs): Check INFTY cost and return immediately.
23091 (get_computation_cost_at): Clear setup cost and dependent bitmap
23093 (determine_use_iv_cost_address): Compute cost for sub uses.
23094 (rewrite_use_address_1): Rename from old rewrite_use_address.
23095 (free_loop_data): Free sub uses.
23096 (tree_ssa_iv_optimize_loop): Call group_address_uses.
23098 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
23099 Jim Wilson <jim.wilson@linaro.org>
23101 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
23102 new fields loadv and storev.
23103 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
23104 Initialize loadv and storev.
23105 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
23106 (cortexa53_extra_costs): Likewise.
23107 (cortexa57_extra_costs): Likewise.
23108 (xgene1_extra_costs): Likewise.
23109 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
23112 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
23114 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
23116 (cortexa8_extra_costs): Likewise.
23117 (cortexa5_extra_costs): Likewise.
23118 (cortexa7_extra_costs): Likewise.
23119 (cortexa12_extra_costs): Likewise.
23120 (cortexa15_extra_costs): Likewise.
23121 (v7m_extra_costs): Likewise.
23123 2015-05-20 Jeff Law <law@redhat.com>
23125 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
23126 instead of open-coded version. Also delete the jump thread created
23127 within this function.
23129 2015-05-20 Alan Modra <amodra@gmail.com>
23131 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
23132 stack adjusting insn. Formatting.
23133 (rs6000_emit_prologue): Track stack adjusting insn, and use of
23134 r12. If possible, emit first -fsplit-stack arg pointer insn
23135 before stack adjust. Don't use r12 to save cr if split-stack.
23137 2015-05-20 Alan Modra <amodra@gmail.com>
23139 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
23141 (rs6000_supports_split_stack): New function.
23142 * gcc/config/rs6000/rs6000.c (machine_function): Add
23143 split_stack_arg_pointer.
23144 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
23145 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
23146 rather than virtual_incoming_args_rtx.
23147 (rs6000_va_start): Likewise.
23148 (split_stack_arg_pointer_used_p): New function.
23149 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
23150 (morestack_ref): New var.
23151 (gen_add3_const, rs6000_expand_split_stack_prologue,
23152 rs6000_internal_arg_pointer, rs6000_live_on_entry,
23153 rs6000_split_stack_space_check): New functions.
23154 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
23155 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
23156 (UNSPECV_SPLIT_STACK_RETURN): Define.
23157 (split_stack_prologue, load_split_stack_limit,
23158 load_split_stack_limit_di, load_split_stack_limit_si,
23159 split_stack_return, split_stack_space_check): New expands and insns.
23160 * gcc/config/rs6000/rs6000-protos.h
23161 (rs6000_expand_split_stack_prologue): Declare.
23162 (rs6000_split_stack_space_check): Declare.
23164 2015-05-20 Alan Modra <amodra@gmail.com>
23166 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
23167 (direct_return): Test vrsave_size rather than vrsave_mask.
23168 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
23169 (rs6000_emit_epilogue): Likewise.
23171 2015-05-20 Alan Modra <amodra@gmail.com>
23173 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
23174 when not saving registers.
23175 (debug_stack_info): Adjust to omit printing unused offsets,
23177 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
23180 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23183 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
23184 value_type to const char *.
23186 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
23188 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
23189 to build a biarch toolchain again.
23191 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
23193 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
23194 or implicit declarations.
23195 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
23197 (get_odr_type): Check type has linkage before adding bases.
23198 (register_odr_type): Check that type has linkage before adding it.
23199 (type_known_to_have_no_deriavations_p): Rename to ..
23200 (type_known_to_have_no_derivations_p): This one.
23201 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
23202 (type_known_to_have_no_derivations_p): This one.
23203 * ipa-polymorphic-call.c
23204 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
23207 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
23209 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
23210 (layout_type): Use RECORD_OR_UNION_TYPE_P.
23212 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23214 * config/s390/s390.c (s390_vector_bool_type_p): New function.
23215 (s390_invalid_binary_op): New function.
23216 (TARGET_INVALID_BINARY_OP): Define macro.
23218 2015-05-19 David Sherwood <david.sherwood@arm.com>
23220 * loop-invariant.c (create_new_invariant): Don't calculate address cost
23221 if mode is not a scalar integer.
23222 (get_inv_cost): Increase computational cost for unused invariants.
23224 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23226 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
23227 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
23228 * config/s390/s390-builtin-types.def: New file.
23229 * config/s390/s390-builtins.def: New file.
23230 * config/s390/s390-builtins.h: New file.
23231 * config/s390/s390-c.c: New file.
23232 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
23233 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
23234 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
23235 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
23237 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
23239 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
23240 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
23241 variable definitions.
23242 (s390_const_operand_ok): New function.
23243 (s390_expand_builtin): Rewrite.
23244 (s390_init_builtins): New function.
23245 (s390_handle_vectorbool_attribute): New function.
23246 (s390_attribute_table): Add s390_vector_bool attribute.
23247 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
23248 (s390_branch_condition_mask): Generate masks for new modes.
23249 (s390_expand_vec_compare_cc): New function.
23250 (s390_mangle_type): Add mangling for vector bool types.
23251 (enum s390_builtin): Remove.
23252 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
23254 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
23255 s390_cpu_cpp_builtins.
23256 (REGISTER_TARGET_PRAGMAS): New macro.
23257 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
23258 (insn_cmp mode attribute): Add new CC modes.
23259 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
23260 (lcbb): New pattern definition.
23261 * config/s390/s390intrin.h: Include vecintrin.h.
23262 * config/s390/t-s390: New file.
23263 * config/s390/vecintrin.h: New file.
23264 * config/s390/vector.md: Include vx-builtins.md.
23265 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
23268 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23270 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
23272 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
23273 (s390_select_ccmode): Likewise.
23274 (s390_canonicalize_comparison): Swap operands if necessary.
23275 (s390_expand_vec_compare_scalar): Expand DFmode compare using
23276 single element vector instructions.
23277 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
23278 (s390_branch_condition_mask): Generate CC masks for the new modes.
23279 * config/s390/s390.md (v0, vf, vd): New mode attributes.
23280 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
23281 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
23282 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
23283 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
23284 (*extend<DSF:mode><BFP:mode>2): New insn definition.
23285 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
23286 (extend<DSF:mode><BFP:mode>2): Turn into expander.
23287 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
23288 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
23289 (sqrt<mode>2): Add vector instruction.
23291 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23293 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
23295 * config/s390/predicates.md (const0_operand, constm1_operand)
23296 (constable_operand): Accept vector operands.
23297 * config/s390/s390-modes.def: Add supported vector modes.
23298 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
23299 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
23300 (s390_bytemask_vector_p, s390_expand_vec_strlen)
23301 (s390_expand_vec_compare, s390_expand_vcond)
23302 (s390_expand_vec_init): Add prototypes.
23303 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
23304 (s390_vector_mode_supported_p): New function.
23305 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
23306 (s390_contiguous_bitmask_vector_p): New function.
23307 (s390_bytemask_vector_p): New function.
23308 (s390_split_ok_p): Vector regs don't work either.
23309 (regclass_map): Add VEC_REGS.
23310 (s390_legitimate_constant_p): Handle vector constants.
23311 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
23312 (legitimate_reload_vector_constant_p): New function.
23313 (s390_preferred_reload_class): Handle CONST_VECTOR.
23314 (s390_reload_symref_address): Likewise.
23315 (s390_secondary_reload): Vector memory instructions only support
23316 short displacements. Rename reload*_nonoffmem* to reload*_la*.
23317 (s390_emit_ccraw_jump): New function.
23318 (s390_expand_vec_strlen): New function.
23319 (s390_expand_vec_compare): New function.
23320 (s390_expand_vcond): New function.
23321 (s390_expand_vec_init): New function.
23322 (s390_dwarf_frame_reg_mode): New function.
23323 (print_operand): Handle addresses with 'O' and 'R' constraints.
23324 (NR_C_MODES, constant_modes): Add vector modes.
23325 (s390_output_pool_entry): Handle vector constants.
23326 (s390_hard_regno_mode_ok): Handle vector registers.
23327 (s390_class_max_nregs): Likewise.
23328 (s390_cannot_change_mode_class): New function.
23329 (s390_invalid_arg_for_unprototyped_fn): New function.
23330 (s390_function_arg_vector): New function.
23331 (s390_function_arg_float): Remove size variable.
23332 (s390_pass_by_reference): Handle vector arguments.
23333 (s390_function_arg_advance): Likewise.
23334 (s390_function_arg): Likewise.
23335 (s390_return_in_memory): Vector values are returned in a VR if
23337 (s390_function_and_libcall_value): Handle vector arguments.
23338 (s390_gimplify_va_arg): Likewise.
23339 (s390_call_saved_register_used): Consider the arguments named.
23340 (s390_conditional_register_usage): Disable v16-v31 for non-vec
23342 (s390_preferred_simd_mode): New function.
23343 (s390_support_vector_misalignment): New function.
23344 (s390_vector_alignment): New function.
23345 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
23346 (TARGET_VECTOR_MODE_SUPPORTED_P)
23347 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
23348 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23349 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
23350 (TARGET_VECTOR_ALIGNMENT): Define target macro.
23351 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
23352 (FIRST_PSEUDO_REGISTER): Increase value.
23353 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
23354 (VECTOR_REG_P): Define macros.
23355 (FIXED_REGISTERS, CALL_USED_REGISTERS)
23356 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
23357 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
23358 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
23359 Add vector registers.
23360 (CANNOT_CHANGE_MODE_CLASS): Call C function.
23361 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
23362 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
23364 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
23365 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
23366 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
23367 (VR*_REGNUM): New constants.
23368 (ALL): New mode iterator.
23369 (INTALL): Remove mode iterator.
23371 (movti): Implement TImode moves for VRs.
23372 Disable TImode splitter for VR targets.
23373 Implement splitting TImode GPR<->VR moves.
23374 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
23375 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
23376 reload<mode>_la_in, reload<mode>_la_out.
23377 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
23378 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
23379 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
23380 (mov<mode> SF SD): Prefer lder, lde for loading.
23381 Add lrl and strl instructions.
23382 Add vector instructions.
23383 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
23384 Call s390_expand_vec_strlen on z13.
23385 (*cc_to_int): Change predicate to nonimmediate_operand.
23386 (addti3): Rename to *addti3. New expander.
23387 (subti3): Rename to *subti3. New expander.
23388 * config/s390/vector.md: New file.
23390 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23392 * common/config/s390/s390-common.c (processor_flags_table): Add
23394 * config.gcc: Add z13.
23395 * config/s390/s390-opts.h (enum processor_type): Add
23396 PROCESSOR_2964_Z13.
23397 * config/s390/s390.c (s390_adjust_priority): Check for
23398 PROCESSOR_2964_Z13.
23399 (s390_reorg): Likewise.
23400 (s390_sched_reorder): Likewise.
23401 (s390_sched_variable_issue): Likewise.
23402 (s390_loop_unroll_adjust): Likewise.
23403 (s390_option_override): Likewise. Default to -mvx when available.
23404 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
23405 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
23406 (TARGET_VX_ABI): Define macros.
23408 (TARGET_DEFAULT): Add MASK_OPT_VX.
23409 * config/s390/s390.md ("cpu" attribute): Add z13.
23410 ("cpu_facility" attribute): Add vec.
23411 * config/s390/s390.opt (processor_type): Add z13.
23412 (mvx): New options.
23413 * doc/invoke.texi: Add z13 option for -march.
23415 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23417 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
23418 mode check to make sure that only scalar integer values are
23421 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
23423 * tree.c (verify_type_variant): Fix #undef.
23424 (gimple_canonical_types_compatible_p): Move here from lto.c
23425 (verify_type): Verify TYPE_CANONICAL compatibility.
23426 * tree.h (gimple_canonical_types_compatible_p): Declare.
23428 2015-05-19 Jakub Jelinek <jakub@redhat.com>
23430 PR middle-end/66199
23431 * tree.h (OMP_TEAMS_COMBINED): Define.
23432 * gimplify.c (enum gimplify_omp_var_data): Add
23433 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
23434 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
23435 (omp_notice_variable): Accept both ORT_TEAMS
23436 and ORT_COMBINED_TEAMS. Don't recurse if
23437 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
23438 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
23440 (omp_no_lastprivate): New function.
23441 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
23442 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
23443 notice_outer and set appropriate bits, otherwise make
23444 sure default(none) combined constructs won't complain.
23445 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
23446 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
23447 omp_no_lastprivate either remove the clause or turn it
23448 into OMP_CLAUSE_PRIVATE.
23449 (gimplify_omp_for): Fix up handling of implicit
23450 lastprivate or linear iterators.
23451 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
23452 ORT_COMBINED_TEAMS.
23453 * omp-low.c (lower_omp_for_lastprivate): For combined
23454 for simd use fd.loop.n2 from the for rather than simd.
23456 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23458 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
23459 instead of gen_rtx_raw_REG.
23460 (cris_expand_epilogue): Likewise.
23461 * config/microblaze/microblaze.c (microblaze_classify_address):
23463 * config/sparc/sparc.md: Likewise.
23465 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
23467 * config/alpha/alpha.c (alpha_legitimize_reload_address)
23468 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
23469 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
23470 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
23471 Use CASE_CONST_SCALAR_INT.
23472 (print_operand) <case 'M'>: Use mode_width_operand to check the
23473 value of the constant.
23474 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
23475 * config/alpha/predicates.md (input_operand): Use general_operand
23476 instead of match_code as operand check.
23477 (symbolic_operand): Use match_code with subexpression digits.
23478 * config/alpha/constraints.md (Q): Ditto.
23480 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23482 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
23484 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23486 * config/s390/s390.c (s390_secondary_reload): Fix check for
23487 load/store relative.
23489 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23491 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
23492 alternative_mask to uint64_t.
23494 2015-05-19 Jakub Jelinek <jakub@redhat.com>
23496 PR tree-optimization/66187
23497 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
23498 Pass TYPE_SIGN to tree_int_cst_min_precision. If
23499 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
23501 2015-05-19 David Malcolm <dmalcolm@redhat.com>
23503 * diagnostic.c (diagnostic_report_current_module): Strengthen
23504 local "new_map" from const line_map * to
23505 const line_map_ordinary *.
23506 * genmatch.c (error_cb): Likewise for local "map".
23507 (output_line_directive): Likewise for local "map".
23508 * input.c (expand_location_1): Likewise for local "map".
23509 Pass NULL rather than &map to
23510 linemap_unwind_to_first_non_reserved_loc, since the value is never
23511 read from there, and the value written back not read from here.
23512 (is_location_from_builtin_token): Strengthen local "map" from
23513 const line_map * to const line_map_ordinary *.
23514 (dump_location_info): Strengthen locals "map" from
23515 line_map *, one to const line_map_ordinary *, the other
23516 to const line_map_macro *.
23517 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
23518 const line_map * to const line_map_macro *.
23519 (maybe_unwind_expanded_macro_loc): Add a call to
23520 linemap_check_macro when writing to the "map" field of the
23522 Introduce local const line_map_ordinary * "ord_map", using it in
23523 place of "map" in the part of the function where we know we have
23524 an ordinary map. Strengthen local "m" from const line_map * to
23525 const line_map_ordinary *.
23527 2015-05-19 Nick Clifton <nickc@redhat.com>
23530 * config/msp430/msp430.md (zero_extendhisi2): Add support for
23531 separate source and destination registers.
23533 2015-05-19 Richard Biener <rguenther@suse.de>
23535 PR tree-optimization/66165
23536 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
23537 for no load permutation.
23539 PR tree-optimization/66185
23540 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
23541 when building the SLP node from scalars.
23543 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
23544 Tristan Gingold <gingold@adacore.com>
23546 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
23547 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
23548 (expand_stack_restore): Call record_new_stack_level.
23549 (expand_stack_save): Do not call do_pending_stack_adjust.
23550 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
23551 * calls.c (expand_call): Call record_new_stack_level for alloca.
23552 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
23553 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
23554 (update_sjlj_context): New global function.
23555 * except.h (update_sjlj_context): Declare.
23556 * explow.c (record_new_stack_level): New global function.
23557 (allocate_dynamic_stack_space): Call record_new_stack_level.
23558 * explow.h (record_new_stack_level): Declare.
23559 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
23560 * cfgrtl.c (duplicate_insn_chain): Likewise.
23562 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23564 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
23565 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
23566 STACK_GROWS_DOWNWARD as normal if.
23567 (expand_call): Likewise.
23569 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
23572 * config/sh/sh.md (*round_int_even): New insn_and_split and
23573 accompanying new unnamed split.
23575 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23577 * bitmap.c (bitmap_set_range): Handle count==1 specially.
23578 (bitmap_clear_range): Likewise.
23579 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
23580 bitmap_set_range unconditionally.
23581 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23582 * df-scan.c (df_mark_reg): Likewise.
23583 * haifa-sched.c (setup_ref_regs): Likewise.
23584 * sched-rgn.c (update_live_1): Likewise.
23586 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23588 * regs.h (END_HARD_REGNO): Delete.
23589 (END_REGNO): Move to...
23591 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
23592 * caller-save.c (mark_set_regs): Likewise.
23593 * combine.c (move_deaths, distribute_notes): Likewise.
23594 * cse.c (invalidate, invalidate_for_call): Likewise.
23595 * df-scan.c (df_ref_record): Likewise.
23596 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
23597 (record_last_reg_set_info): Likewise.
23598 * reg-stack.c (convert_regs_exit): Likewise.
23599 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
23600 * resource.c (update_live_status): Likewise.
23601 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
23603 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23605 * rtl.h (reg_info): Add an nregs field.
23606 (REG_NREGS): Use it.
23607 (SET_REGNO_RAW): Delete.
23608 (set_regno_raw): New function.
23609 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
23610 (END_REGNO): Redefine in terms of REG_NREGS.
23611 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
23613 * emit-rtl.c (set_mode_and_regno): Likewise.
23614 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
23615 instead of SET_REGNO_RAW.
23617 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23619 * rtl.h (PUT_MODE_RAW): New macro.
23620 (PUT_REG_NOTE_KIND): Use it.
23621 (set_mode_and_regno): Declare.
23622 (gen_raw_REG): Change regno to "unsigned int".
23623 (gen_rtx_REG): Change "unsigned" to "unsigned int".
23624 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
23625 use set_mode_and_regno to change the mode of registers.
23626 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
23627 * emit-rtl.c (set_mode_and_regno): New function.
23628 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
23629 * caller-save.c (reg_save_code): Use set_mode_and_regno.
23630 * expr.c (init_expr_target): Likewise.
23631 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23632 * postreload.c (reload_cse_simplify_operands): Likewise.
23634 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23636 * caller-save.c (init_caller_save): Use word_mode and
23637 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
23638 * expr.c (init_expr_target): Likewise.
23639 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23640 * postreload.c (reload_cse_regs_1): Likewise.
23642 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23644 * rtl.def (REG): Change format to "r".
23645 * rtl.h (rtunion): Remove rt_reg.
23646 (reg_info): New structure.
23647 (rtx_def): Add reg field to main union.
23648 (X0REGATTR): Delete.
23649 (REG_CHECK): New macro.
23650 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
23651 * rtl.c (rtx_format): Document "r".
23652 (rtx_code_size): Handle REG specially.
23653 * gengenrtl.c (special_format): Return true for formats
23655 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
23656 Deal with REG_ATTRS after the field loop.
23657 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
23658 * expmed.c (init_expmed): Call gen_raw_REG instead of
23660 * expr.c (init_expr_target): Likewise.
23661 * regcprop.c (maybe_mode_change): Likewise.
23662 * varasm.c (make_decl_rtl): Likewise.
23663 * final.c (leaf_renumber_regs_insn): Return early after
23665 * genemit.c (gen_exp): Handle 'r' fields.
23666 * genpeep.c (match_rtx): Likewise.
23667 * gensupport.c (subst_pattern_match): Likewise.
23668 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
23669 (alter_constraints, subst_dup): Likewise.
23670 * read-rtl.c (read_rtx_code): Likewise.
23671 * print-rtl.c (print_rtx): Likewise.
23672 * genrecog.c (find_operand, find_matching_operand): Likewise.
23673 (validate_pattern, match_pattern_2): Likewise.
23674 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
23675 (rtx_test::regno_field): New function.
23676 (operator ==, safe_to_hoist_p, transition_parameter_type)
23677 (parameter_type_string, print_parameter_value)
23678 (print_nonbool_test, print_test): Handle new enum values.
23679 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
23680 * lra-constraints.c (operands_match_p): Likewise.
23682 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23684 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
23685 Change type of new_regno to unsigned int.
23686 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
23687 new_regno to unsigned int.
23688 (df_ref_change_reg_with_loc): Remove old_regno parameter.
23689 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
23690 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
23691 (SET_REGNO_RAW): Add space after ",".
23693 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23695 * rtl.h (REG_NREGS): New macro
23696 * alias.c (record_set): Use it.
23697 * cfgcleanup.c (mark_effect): Likewise.
23698 * combine.c (likely_spilled_retval_1): Likewise.
23699 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
23700 (move_deaths, distribute_notes): Likewise.
23701 * cselib.c (cselib_record_set): Likewise.
23702 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23703 * df-scan.c (df_mark_reg): Likewise.
23704 * dse.c (look_for_hardregs): Likewise.
23705 * dwarf2out.c (reg_loc_descriptor): Likewise.
23706 (multiple_reg_loc_descriptor): Likewise.
23707 * expr.c (write_complex_part, read_complex_part): Likewise.
23708 (emit_move_complex): Likewise.
23709 * haifa-sched.c (setup_ref_regs): Likewise.
23710 * ira-lives.c (mark_hard_reg_live): Likewise.
23711 * lra.c (lra_set_insn_recog_data): Likewise.
23712 * mode-switching.c (create_pre_exit): Likewise.
23713 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
23714 (reload_combine_recognize_pattern): Likewise.
23715 (reload_combine_note_use, move2add_record_mode): Likewise.
23716 (reload_cse_move2add): Likewise.
23717 * reg-stack.c (subst_stack_regs_pat): Likewise.
23718 * regcprop.c (kill_value, copy_value): Likewise.
23719 (copyprop_hardreg_forward_1): Likewise.
23720 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
23721 (build_def_use): Likewise.
23722 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
23723 (deps_analyze_insn): Likewise.
23724 * sched-rgn.c (check_live_1, update_live_1): Likewise.
23725 * sel-sched.c (count_occurrences_equiv): Likewise.
23726 * valtrack.c (dead_debug_insert_temp): Likewise.
23728 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23730 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
23731 * dse.c (note_add_store): Likewise.
23732 * ira-lives.c (mark_hard_reg_dead): Likewise.
23733 * loop-invariant.c (mark_reg_store): Likewise.
23734 (mark_reg_death): Likewise.
23735 * postreload.c (reload_combine): Likewise.
23736 (reload_combine_note_store): Likewise.
23737 (reload_combine_note_use): Likewise.
23738 * recog.c (peep2_reg_dead_p): Likewise.
23740 2015-05-19 Alan Modra <amodra@gmail.com>
23742 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
23743 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
23744 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
23746 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
23747 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
23748 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
23749 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
23751 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
23753 * config/mips/mips.md (JOIN_MODE): New mode iterator.
23754 (join2_load_Store<JOIN_MODE:mode>): New pattern.
23755 (join2_loadhi): Likewise.
23756 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
23757 load-load and store-stores.
23758 * config/mips/mips.opt (mload-store-pairs): New option.
23759 (TARGET_LOAD_STORE_PAIRS): New macro.
23760 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
23761 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
23762 * config/mips/mips.c (mips_load_store_bonding_p): New function.
23764 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
23766 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
23768 * dojump.c (do_compare_rtx_and_jump): Likewise.
23769 * expmed.c (emit_store_flag_1): Likewise.
23770 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
23771 * final.c (sprint_ul): Use std::reverse for reversing a string.
23772 * fold-const.c (extract_muldiv_1): Use std::swap.
23773 * genmodes.c (emit_mode_int_n): Likewise.
23774 * ifcvt.c (dead_or_predicable): Likewise.
23775 * ira-build.c (ira_merge_live_ranges): Likewise.
23776 (swap_allocno_copy_ends_if_necessary): Likewise.
23777 * ira.c (ira_setup_alts): Likewise.
23778 * loop-iv.c (iv_analyze_expr): Likewise.
23779 (implies_p): Likewise.
23780 (canon_condition): Likewise.
23781 * lra-constraints.c (swap_operands): Likewise.
23782 * lra-lives.c (lra_merge_live_ranges): Likewise.
23783 * omega.c (swap): Remove.
23785 (omega_unprotect_1): Use std::swap.
23786 (omega_solve_geq): Likewise.
23787 * optabs.c (expand_binop_directly): Likewise.
23788 (expand_binop): Likewise.
23789 (emit_conditional_move): Likewise.
23790 (emit_conditional_add): Likewise.
23791 * postreload.c (reload_cse_simplify_operands): Likewise.
23792 * reg-stack.c (emit_swap_insn): Likewise.
23793 (swap_to_top): Likewise.
23794 (compare_for_stack_reg): Likewise.
23795 (subst_asm_stack_regs): Likewise.
23796 * reload.c (find_reloads): Likewise.
23797 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
23798 * sel-sched.c (invoke_reorder_hooks): Likewise.
23799 (create_block_for_bookkeeping): Likewise.
23800 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
23801 (lambda_matrix_right_hermite): Use std::swap.
23802 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
23803 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
23804 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
23805 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
23806 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
23807 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
23808 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
23809 * tree-vrp.c (compare_ranges): Likewise.
23810 * var-tracking.c (add_with_sets): Likewise.
23811 (vt_find_locations): Likewise.
23813 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
23815 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
23817 (FBSD_ENDFILE_SPEC): Likewise.
23818 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
23819 config/freebsd-spec.h.
23820 (ENDFILE_SPEC): Likewise.
23822 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
23823 Richard Henderson <rth@redhat.com>
23826 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
23827 Check for a memory location that is not a reference (using an AND)
23828 to an unaligned location here.
23829 * config/alpha/predicates.md (normal_memory_operand): Remove.
23831 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
23833 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
23834 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
23836 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
23838 * config/mips/mips.c (micromips_globals): New variable.
23839 (mips_set_compression_mode): Save and reinitialize target-dependent
23840 state for microMIPS.
23842 2015-05-18 Martin Liska <mliska@suse.cz>
23844 * dbgcnt.def: Add new counter.
23845 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
23847 2015-05-18 Martin Liska <mliska@suse.cz>
23849 * dbgcnt.def: Sort counters.
23850 * opts.c (common_handle_option): Do not compile if
23851 -fdbg-cnt-list is enabled.
23853 2015-05-18 Tom de Vries <tom@codesourcery.com>
23855 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
23856 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
23857 address operator to va_list operand.
23858 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
23860 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
23862 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
23863 * config/s390/s390.c (s390_gimplify_va_arg): Same.
23864 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
23866 2015-05-18 Tom de Vries <tom@codesourcery.com>
23868 * tree-ssa-tail-merge.c: Fix whitespace.
23870 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
23872 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
23873 cortex-a17, and cortex-a17.cortex-a7.
23875 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
23878 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
23880 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
23883 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
23884 QImode inner modes for TARGET_AVX512BW. Force mask operand
23885 to a register for AVX512F modes.
23887 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23889 * toplev.c (emit_debug_global_declarations): Do not output debug info
23890 when doing slim LTO objects.
23892 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23894 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
23895 odr_types_equivalent_p): Declare.
23896 (odr_type_p): Use gcc_checking_assert.
23897 (type_in_anonymous_namespace_p) Declare.
23898 (type_with_linkage_p): Declare.
23899 * common.opt (Wlto-type-mismatch): New warning.
23900 * ipa-devirt.c (compound_type_base): New function.
23901 (odr_or_derived_type_p): New function.
23902 (odr_types_equivalent_p): New function.
23903 (add_type_duplicate): Simplify.
23904 (type_with_linkage_p): Add hack to prevent false positives on C types
23905 (type_in_anonymous_namespace_p): Likewise.
23906 * tree.c (need_assembler_name_p): Use type_with_linkage.
23907 * tree.h (type_in_anonymous_namespace_p): Remove.
23908 * doc/invoke.texi (-Wlto-type-mismatch): Document
23910 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23912 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
23913 (verify_type): Verify STRING_FLAG.
23915 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
23918 * tree-pretty-print.c (percent_K_format): Replace locus pointer
23919 with accessor function.
23920 * tree-diagnostic.c (diagnostic_report_current_function): Use
23921 diagnostic_location function.
23922 (maybe_unwind_expanded_macro_loc): Likewise.
23923 (virt_loc_aware_diagnostic_finalizer): Likewise.
23924 (default_tree_printer): Replace locus pointer with accessor function.
23925 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
23926 (diagnostic_set_info_translated): Initialize second location.
23927 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
23928 (diagnostic_show_locus): Handle two locations. Call
23929 diagnostic_print_caret_line.
23930 (diagnostic_print_caret_line): New.
23931 (default_diagnostic_starter): Use diagnostic_location function.
23932 (diagnostic_report_diagnostic): Use diagnostic_location function.
23933 (verbatim): Do not set text.locus.
23934 * diagnostic.h (struct diagnostic_info): Remove location field.
23935 (struct diagnostic_context): Make caret_chars an array of two.
23936 (diagnostic_location): New inline.
23937 (diagnostic_expand_location): Handle two locations.
23938 (diagnostic_same_line): New inline.
23939 (diagnostic_print_caret_line): Declare.
23940 (CARET_LINE_MARGIN): New constant.
23941 * pretty-print.c (pp_printf): Do not set text.locus.
23942 (pp_verbatim): Do not set text.locus.
23943 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
23944 (struct text_info): Replace locus pointer with locations
23945 array. Add accessor functions.
23947 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
23948 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23951 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
23952 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
23953 large constants in register instead of splitting them.
23955 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
23958 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
23959 replacements in memory addresses.
23960 (get_unaligned_address): Ditto.
23962 2015-05-16 James Bowman <james.bowman@ftdichip.com>
23964 * config/ft32/*: New files for FT32 port.
23965 * doc/install.texi: Add FT32 information.
23966 * doc/invoke.texi: Add FT32 information.
23967 * doc/md.texi: Add FT32 information.
23968 * doc/contrib.texi: Self added.
23970 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
23972 PR tree-optimization/64454
23973 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
23974 (-1 - A -> ~A): Remove unnecessary condition.
23976 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
23978 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
23979 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
23980 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
23982 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
23984 * ipa-chkp.h (chkp_wrap_function): New.
23985 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
23986 (chkp_wrap_function_name): New.
23987 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
23988 to get wrapper name.
23989 * lto-cgraph.c: Include ipa-chkp.h.
23990 (input_cgraph_1): Avoid alias chain for wrappers.
23992 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
23994 PR middle-end/66134
23995 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
23996 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
23998 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24000 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
24001 (AARCH64_FL_SLOWMUL): Delete.
24002 (AARCH64_FL_CRC): Redefine to 1<<3.
24003 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
24005 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24007 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
24010 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
24012 * config/alpha/alpha.md (extendqidi2): Use general_operand
24013 instead of some_operand for operand[1] predicate.
24014 (extendhidi2): Ditto.
24015 (cbranchdi4): Use general_operand instead of some_operand
24016 for operand[1] and operands[2] predicates.
24017 (cstoredi4): Ditto.
24018 * config/alpha/predicates.md (some_operand): Remove unused predicate.
24019 (some_ni_operand): Ditto.
24021 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
24023 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
24024 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
24025 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
24026 low part of the constant using alpha_emit_set_const_1.
24027 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
24029 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
24031 * varasm.c (output_constant_pool_1): Pass down alignment from
24032 constant pool entry's descriptor to output_constant_pool_2.
24033 (output_object_block): Add comment prior to call to
24034 output_constant_pool_1.
24036 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
24038 PR rtl-optimization/65862
24039 * target.def (ira_change_pseudo_allocno_class): New hook.
24040 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
24042 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
24043 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
24045 * ira-costs.c (find_costs_and_classes): Call the hook and change
24046 classes when it is necessary.
24047 * doc/tm.texi: Update.
24049 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
24051 * config/i386/i386.md (sibcall_memory): Check that register with
24052 callee address is not also used as one of the arguments, instead
24053 of checking that it is not live after the sibcall.
24054 (sibcall_pop_memory): Ditto.
24055 (sibcall_value_memory): Ditto.
24056 (sibcall_value_pop_memory): Ditto.
24058 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
24060 * generic-match-head.c (types_match): Handle non-types.
24061 * gimple-match-head.c (types_match): Likewise.
24062 * match.pd: Remove unnecessary TREE_TYPE for types_match.
24064 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
24066 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
24067 (csneg3<mode>_insn): Enable expansion of pattern.
24069 2015-05-14 Nick Clifton <nickc@redhat.com>
24071 * config/rl78/rl78.c (rl78_select_section): Select the correct
24072 default section based upon the category of the decl.
24074 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24076 PR rtl-optimization/30967
24077 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
24078 destination mode for the cost of scc patterns.
24080 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
24082 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
24083 using SWIM248 mode iterator.
24084 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
24085 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
24086 for operand[2] constraint.
24087 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
24089 2015-05-13 Jakub Jelinek <jakub@redhat.com>
24091 PR middle-end/66133
24092 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
24093 make sure it is never noreturn, even when the task body does not
24095 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
24096 right before GIMPLE_OMP_RETURN.
24097 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
24098 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
24099 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
24101 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24103 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
24104 * tree-ssa-math-opts.c: Include params.h
24105 (pow_synth_sqrt_info): New struct.
24106 (representable_as_half_series_p): New function.
24107 (get_fn_chain): Likewise.
24108 (print_nested_fn): Likewise.
24109 (dump_fractional_sqrt_sequence): Likewise.
24110 (dump_integer_part): Likewise.
24111 (expand_pow_as_sqrts): Likewise.
24112 (gimple_expand_builtin_pow): Use above to attempt to expand
24113 pow as series of square roots. Removed now unused variables.
24115 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
24117 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
24118 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
24119 Remove *p0 and *p1 arguments. Rewrite function.
24120 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
24121 (alpha_split_const_mov): Update calls to alpha_extract_integer and
24122 alpha_emit_set_long_const.
24123 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
24124 (alpha_output_mi_thunk_osf): Ditto.
24125 * config/alpha/alpha.md (movti): Do not check operands[1]
24128 2015-05-13 Richard Biener <rguenther@suse.de>
24130 PR tree-optimization/66129
24131 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
24133 (vect_schedule_slp_instance): Fix typo.
24135 2015-05-13 David Malcolm <dmalcolm@redhat.com>
24137 * common.opt (fdump-internal-locations): New option.
24138 * input.c: Include diagnostic-core.h.
24139 (get_end_location): New function.
24140 (write_digit): New function.
24141 (write_digit_row): New function.
24142 (dump_location_range): New function.
24143 (dump_labelled_location_range): New function.
24144 (dump_location_info): New function.
24145 * input.h (dump_location_info): New prototype.
24146 * toplev.c (compile_file): Handle flag_dump_locations.
24148 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
24150 * gimple-expr.h (is_gimple_constant): Reorder.
24151 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
24153 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24155 * combine.c (simplify_set): When generating a CC set, if the
24156 source already is in the correct mode, do not wrap it in a
24157 compare. Simplify the rest of that code.
24159 2015-05-13 Richard Biener <rguenther@suse.de>
24161 PR tree-optimization/66123
24162 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
24165 2015-05-13 Richard Biener <rguenther@suse.de>
24167 PR middle-end/66110
24168 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
24170 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
24172 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24174 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
24175 * aclocal.m4: Regenerated with automake-1.11.6.
24177 2015-05-13 Tom de Vries <tom@codesourcery.com>
24179 PR tree-optimization/66010
24180 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
24181 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
24182 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
24183 and rval based on do_deref.
24185 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24188 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
24189 link time constants into adress expressions and therefore set
24192 2015-05-13 Jakub Jelinek <jakub@redhat.com>
24195 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
24196 Use SWI248 iterator instead of SWI.
24197 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
24198 Use eq_attr "alternative" "0" instead of match_test in
24199 length_immediate attribute computation.
24200 (*mulvhi4, *mulvhi4_1): New define_insns.
24203 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
24204 SIGNED to get precision of non-negative value.
24206 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24209 * function.c (diddle_return_value_1): Process bounds first.
24210 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
24213 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
24215 PR rtl-optimization/64616
24216 * loop-invariant.c (can_move_invariant_reg): New.
24217 (move_invariant_reg): Call above new function to decide whether
24218 instruction can just be moved, skipping creation of temporary
24221 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24223 PR target/pr66047.c
24224 * i386.c (ix86_function_sseregparm): Only return -1 if local function
24225 with implied regparm is called from -mno-sse function.
24226 (init_cumulative_args): Output error if ix86_function_sseregparm
24227 return -1 and SSE register would be needed.
24228 (function_arg_advance_32): Likewise.
24229 (function_arg_32): Likewise.
24230 * i386.h (ix86_args): Add decl field.
24232 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24235 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
24236 inlines across optimization boundary.
24238 2015-05-12 Jason Merrill <jason@redhat.com>
24240 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
24241 string literal and macro name.
24243 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
24245 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
24246 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
24247 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
24249 2015-05-12 David Malcolm <dmalcolm@redhat.com>
24251 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
24252 (-Wmisleading-indentation): New option.
24253 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
24255 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
24257 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
24258 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
24259 (alpha_extract_integer): Ditto.
24260 (alpha_legitimate_constant_p): Ditto.
24261 (alpha_split_tmode_pair): Ditto.
24262 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
24263 (alpha_expand_mov): Ditto.
24264 (print_operand): Remove handling of 'H' modifier.
24265 <case 'm'>: Remove CONST_DOUBLE handling.
24266 (summarize_insn): Handle CONST_WIDE_INT.
24267 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
24269 (movti): Handle CONST_WIDE_INT.
24270 * config/alpha/constraints.md ('H'): Remove constraint definition.
24271 ('G'): Do not match MODE_FLOAT class.
24272 * config/alpha/predicates.md (const0_operand): Also match
24274 (non_add_const_operand): Ditto.
24275 (non_zero_const_operand): Ditto.
24276 (some_operand): Ditto.
24277 (input_operand): Ditto. Handle CONST_WIDE_INT.
24278 (and_operand): Do not match const_double.
24279 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
24281 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
24284 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
24285 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
24286 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
24287 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
24288 is_mm_seq_cst, is_mm_sync): New accessor functions.
24289 * builtins.c (expand_builtin_sync_operation,
24290 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
24291 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
24292 (get_memmodel, expand_builtin_atomic_compare_exchange,
24293 expand_builtin_atomic_load, expand_builtin_atomic_store,
24294 expand_builtin_atomic_clear): Use new accessor routines.
24295 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
24296 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
24297 (maybe_emit_sync_lock_test_and_set): Use new accessors and
24298 MEMMODEL_SYNC_ACQUIRE.
24299 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
24300 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
24301 expand_atomic_store): Use new accessors.
24302 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
24303 * tsan.c (instrument_builtin_call): Update check for memory model beyond
24304 final enum to use MEMMODEL_LAST.
24305 * c-family/c-common.c: Use new accessor for memmodel_base.
24306 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
24308 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
24309 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
24310 mem_thread_fence, *dmb): Likewise.
24311 * config/alpha/alpha.c (alpha_split_compare_and_swap,
24312 alpha_split_compare_and_swap_12): Likewise.
24313 * config/arm/arm.c (arm_expand_compare_and_swap,
24314 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
24315 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
24316 atomic_loaddi): Likewise.
24317 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
24319 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
24320 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
24322 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
24323 atomic_store<mode>, atomic_compare_and_swap<mode>,
24324 atomic_exchange<mode>): Use new accessors.
24325 * config/mips/mips.c (mips_process_sync_loop): Likewise.
24326 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
24327 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
24328 rs6000_post_atomic_barrier): Add new cases.
24329 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
24330 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
24331 (atomic_load<mode>): Add new cases and use new accessors.
24332 (store_quadpti): Add new cases.
24333 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
24335 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
24336 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
24339 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24341 * ipa-devirt.c (type_with_linkage_p): New function.
24342 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
24344 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
24345 (can_be_name_hashed_p): Simplify.
24346 (hash_odr_name): Check that type has linkage before checking if it is
24348 (types_same_for_odr): Likewise.
24349 (odr_name_hasher::equal): Likewise.
24350 (odr_subtypes_equivalent_p): Likewise.
24351 (warn_types_mismatch): Likewise.
24352 (get_odr_type): Likewise.
24353 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
24354 * ipa-utils.h (odr_type_p): Move offline.
24355 * tree.c (need_assembler_name_p): Fix handling of types
24357 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
24359 2015-05-12 David Malcolm <dmalcolm@redhat.com>
24361 * timevar.c (timevar_enable): Delete in favor of...
24362 (g_timer): New global.
24363 (struct timevar_def): Move to timevar.h inside class timer.
24364 (struct timevar_stack_def): Likewise.
24365 (timevars): Delete global in favor of field "m_timevars" within
24366 class timer in timevar.h
24367 (stack): Likewise, in favor of field "m_stack".
24368 (unused_stack_instances): Likewise, in favor of field
24369 "m_unused_stack_instances".
24370 (start_time): Likewise, in favor of field "m_start_time".
24371 (get_time): Eliminate check for timevar_enable.
24372 (timer::timer): New function, built from part of timevar_init.
24373 (timevar_init): Rewrite idempotency test from using
24374 "timevar_enable" bool to using dynamic allocation of "g_timer".
24375 Move rest of implementation into timer's constructor.
24376 (timevar_push_1): Rename to...
24377 (timer::push): ...this, adding "m_" prefixes to variables that
24378 are now fields of timer.
24379 (timevar_pop_1): Likewise, rename to...
24380 (timer::pop): ...this, and add "m_" prefixes.
24381 (timevar_start): Replace test for "timevar_enable" with one for
24382 "g_timer", and move bulk of implementation to...
24383 (timer::start): ...here, adding "m_" prefixes.
24384 (timevar_stop): Likewise, from here...
24385 (timer::stop): ...to here.
24386 (timevar_cond_start): Likewise, from here...
24387 (timer::cond_start): ...to here.
24388 (timevar_cond_stop): Likewise, from here...
24389 (timer::cond_stop): ...to here.
24390 (validate_phases): Rename to...
24391 (timer::validate_phases): ...this, and add "m_" prefixes. Make
24392 locals "total" and "tv" const.
24393 (timevar_print): Rename to...
24394 (timer::print): ...this, and add "m_" prefixes. Make locals
24395 "total" and "tv" const. Eliminate test for timevar_enable.
24396 * timevar.h (timevar_enable): Eliminate.
24397 (g_timer): New declaration.
24398 (timevar_push_1): Eliminate.
24399 (timevar_pop_1): Eliminate.
24400 (timevar_print): Eliminate.
24401 (class timer): New class.
24402 (timevar_push): Rewrite to use g_timer.
24403 (timevar_pop): Likewise.
24404 * toplev.c (toplev::~toplev): Likewise.
24406 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
24408 * arm-protos.h (arm_sched_autopref): Delete.
24409 (tune_params): Re-organize, use enums for flag values.
24410 (FUSE_OPS): New macro.
24411 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
24412 (ARM_PREFETCH_BENEFICIAL): Likewise.
24413 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
24414 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
24415 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
24416 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
24417 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
24418 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
24419 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
24420 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
24422 (arm_option_override, thumb2_reorg, arm_print_tune_info)
24423 (aarch_macro_fusion_pair_p): Update uses of current_tune.
24424 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
24426 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
24428 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
24431 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
24432 Sandra Loosemore <sandra@codesourcery.com>
24434 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
24436 (REG_CLASS_NAMES): Add "IJMP_REGS".
24437 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
24438 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
24439 use new "c" register constraint.
24440 * config/nios2/constraint.md (c): New register constraint
24441 corresponding to IJMP_REGS.
24443 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24445 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
24446 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
24447 define_splits): Delete, revamp, transmogrify into ...
24448 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
24449 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
24450 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
24453 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24455 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
24456 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
24458 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24460 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
24461 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
24462 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
24463 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
24464 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
24465 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
24466 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
24467 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
24468 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
24469 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24470 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
24471 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
24472 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
24473 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
24474 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
24475 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
24476 and 30 corresponding splitters): Delete.
24478 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24480 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
24483 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24485 * combine.c (recog_for_combine_1): New function, factored out
24486 from recog_for_combine.
24487 (change_zero_ext): New function.
24488 (recog_for_combine): If recog fails, try again with the pattern
24489 modified by change_zero_ext; if that still fails, restore the
24492 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24494 * combine.c (get_undo_marker): New function.
24495 (undo_to_marker): New function, largely factored out from ...
24496 (undo_all): ... this. Adjust.
24498 2015-05-12 Richard Biener <rguenther@suse.de>
24500 PR tree-optimization/66101
24501 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
24502 fixup if we turn a loop exit edge to a fallthru edge.
24504 2015-05-12 Richard Biener <rguenther@suse.de>
24506 PR tree-optimization/37021
24507 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
24508 (SLP_TREE_TWO_OPERATORS): New define.
24509 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
24510 SLP_TREE_TWO_OPERATORS.
24511 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
24513 (vect_build_slp_tree): Adjust.
24514 (vect_analyze_slp_cost_1): Likewise.
24515 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
24516 emitting two vector stmts and mixing the results.
24518 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
24520 * call.c (print_z_candidates): Remove dead code.
24522 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24524 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
24525 and zEC12_simple_fp.
24526 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
24529 2015-05-12 Tom de Vries <tom@codesourcery.com>
24531 PR tree-optimization/66010
24532 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
24534 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
24535 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
24536 va_lists are passed, and remove corresponding handling.
24537 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
24538 do_deref argument to ifn_va_arg.
24539 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
24542 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24545 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
24546 REG before taking its REGNO.
24548 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
24550 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
24551 rsp->sign_bit_copies and rsp->nonzero_bits into ...
24552 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
24553 present to get more accurate information about the number of sign bit
24554 copies and non zero bits.
24556 2015-05-12 Richard Biener <rguenther@suse.de>
24558 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
24559 do not allow unrolling.
24561 2015-05-11 Richard Henderson <rth@redhat.com>
24563 * config/i386/i386-modes.def (CCP): New.
24564 * config/i386/i386.c (put_condition_code): Handle it.
24565 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
24567 2015-05-11 Richard Henderson <rth@redhat.com>
24569 * target.def (md_asm_clobbers): Replace with...
24570 (md_asm_adjust): this.
24571 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
24572 (TARGET_MD_ASM_ADJUST): New.
24573 * tm.texi: Rebuild.
24574 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
24575 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
24576 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
24578 * cfgexpand.c (check_operand_nalternatives): Accept vector of
24579 constraints instead of lists of outputs and inputs.
24580 (expand_asm_stmt): Save and restore input_location around the
24581 body of the function. Move asm data into vectors instead of
24582 building tree lists. Generate cleanup sequences as needed,
24583 rather than waiting til the end. Use new md_asm_adjust hook.
24585 * config/vxworks.c: Include vec.h before target.h.
24586 * gimple.c: Likewise.
24587 * incpath.c: Likewise.
24588 * mode-switching.c: Likewise.
24590 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
24591 (cris_md_asm_adjust): this.
24592 (TARGET_MD_ASM_CLOBBERS): Remove.
24593 (TARGET_MD_ASM_ADJUST): New.
24594 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
24595 (ix86_md_asm_adjust): this.
24596 (TARGET_MD_ASM_CLOBBERS): Remove.
24597 (TARGET_MD_ASM_ADJUST): New.
24598 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
24599 (mn10300_md_asm_adjust): this.
24600 (TARGET_MD_ASM_CLOBBERS): Remove.
24601 (TARGET_MD_ASM_ADJUST): New.
24602 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
24603 (rs6000_md_asm_adjust): this.
24604 (TARGET_MD_ASM_CLOBBERS): Remove.
24605 (TARGET_MD_ASM_ADJUST): New.
24606 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
24607 (visium_md_asm_adjust): this.
24608 (TARGET_MD_ASM_CLOBBERS): Remove.
24609 (TARGET_MD_ASM_ADJUST): New.
24611 2015-05-11 Richard Henderson <rth@redhat.com>
24613 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
24614 if noutputs is zero.
24615 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
24617 * cfgexpand.c (expand_asm_operands): Merge into...
24618 (expand_asm_stmt): ... here.
24620 * cfgexpand.c (expand_asm_operands): Don't call
24621 resolve_asm_operand_names.
24622 * stmt.c (resolve_asm_operand_names): Clarify block comment.
24624 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
24626 * dwarf2out.c (gen_member_die): Sanity check that we access
24627 TYPE_MAIN_VARIANT for TYPE_METHODS.
24628 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
24629 checking TYPE_METHODS.
24630 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
24632 (build_distinct_type_copy): Clear TYPE_METHODS.
24633 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
24634 (verify_type): Allow TYPE_METHODS to be error_mark_node.
24635 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
24637 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
24639 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
24640 (emit_pattern_before_setloc): Likewise.
24642 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24644 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
24645 for define_peephole2s.
24646 (get_peephole2_pattern): New function.
24647 (main): Use it. Call validate_pattern.
24649 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24651 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
24652 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
24653 (Last callee saved reg is different for AVR_TINY architecture)
24655 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24657 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
24658 when looking for memory references.
24660 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24663 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
24664 via function pointers.
24666 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24668 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
24669 indirect call by forcing address into a pseudo with -fno-plt.
24670 * common.opt (flag_plt): New option.
24671 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
24672 ([-fno-plt]): Document.
24674 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
24677 * config/rs6000/option-defaults.h: Add space between string literal
24680 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
24682 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
24683 accross ARM targets.
24685 2015-05-11 Christian Bruel <christian.bruel@st.com>
24687 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
24688 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
24690 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24692 PR rtl-optimization/66076
24693 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
24694 Don't grow the heap array if it is already big enough from a
24695 previous iteration.
24697 2015-05-11 Christian Bruel <christian.bruel@st.com>
24699 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
24700 (is_called_in_ARM_mode): Remove.
24701 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
24702 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
24703 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
24704 arm_declare_function_name.
24706 2015-05-11 Christian Bruel <christian.bruel@st.com>
24708 * config/arm/arm.c (arm_option_override): Reoganized and split into :
24709 (arm_option_params_internal); New function.
24710 (arm_option_check_internal): New function.
24711 (arm_option_override_internal): New function.
24712 (thumb_code, thumb1_code): Remove.
24713 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
24714 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
24715 (thumb_code, thumb1_code): Remove.
24716 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
24718 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24720 * config/alpha/alpha.c (alpha_emit_set_const_1)
24721 (alpha_emit_set_long_const, alpha_extract_integer)
24722 (alpha_legitimate_constant_p, alpha_split_const_mov)
24723 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
24724 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24725 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
24727 * config/alpha/predicates.md (mode_mask_operand): Do not match
24729 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24730 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
24731 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
24732 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24733 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
24735 2015-05-11 Jakub Jelinek <jakub@redhat.com>
24738 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
24739 default_binds_local_p_2.
24740 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
24741 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
24743 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24745 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
24747 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24749 Patch by Richard Biener
24750 * coverage.c (coverage_obj_init): Delay building of type variant
24751 until the type is finished.
24753 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24755 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
24756 mismatch between C and C++ type; compoare correctly ARG_TYPES
24757 for non-prototypes and output correctly parameter index for METHOD_TYPE.
24758 (odr_types_equivalent_p): Fix wording of warning about attributes;
24759 it is OK to match prototype and non-prototype.
24761 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24763 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
24764 TYPE_ARG_TYPES list.
24765 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
24766 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
24768 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24770 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
24771 * tree.h (is_lang_specific): Constify.
24773 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
24775 PR tree-optimization/64454
24776 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
24779 2015-05-08 Jason Merrill <jason@redhat.com>
24781 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
24782 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
24783 config/darwin.h, config/darwin9.h, config/elfos.h,
24784 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
24785 config/microblaze/microblaze.h, config/mips/mips.h,
24786 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
24787 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
24788 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
24789 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
24790 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
24791 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
24792 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
24793 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
24794 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
24795 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
24796 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
24797 between string literal and macro name.
24799 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24801 * jump.c: Change argument types to rtx_insn *.
24804 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24806 * lra-constraints.c: Change argument type to rtx_insn *.
24808 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24810 * df-problems.c: Change argument type to rtx_insn *.
24812 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24814 * combine.c: Change argument type to rtx_insn *.
24816 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24819 * rtlanal.c: Change argument type to rtx_insn *.
24821 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24823 * sched-deps.c: Change argument types to rtx_insn *.
24824 * sched-int.h: Adjust.
24826 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24828 * dwarf2cfi.c: Change argument type to rtx_insn *.
24830 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24832 * ira.c (decrease_live_ranges_number): Changetype of local
24833 variable to rtx_insn *.
24834 * recog.c: Change argument types to rtx_insn *.
24837 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24839 * reorg.c: Change argument types to rtx_insn *.
24841 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24843 * ira-color.c: Change argument types to rtx_insn *.
24844 * lra-eliminations.c: Likewise.
24847 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24849 * gcse.c: Change argument types to rtx_insn *.
24851 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24853 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
24855 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24857 * emit-rtl.c (emit_debug_insn_before): Change argument type to
24861 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24863 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
24866 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24868 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
24871 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24873 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
24876 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24878 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
24881 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24883 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
24887 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24889 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
24893 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24895 * except.c (can_nonlocal_goto): Change type of argument to
24899 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24901 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
24904 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24906 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
24907 * cfgrtl.c (can_delete_label_p): Adjust.
24910 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24912 * reorg.c (stop_search_p): Change argument to rtx_insn *.
24914 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24916 * except.c (make_reg_eh_region_note): Change argument to
24918 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
24919 * except.h: Adjust.
24921 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24923 * mode-switching.c (commit_mode_sets): Change type of local
24924 variable from rtx to rtx_insn *.
24926 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
24928 * doc/install.texi (--enable-languages): Add missing jit and lto info.
24929 Add ^ to grep command.
24930 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
24931 arg to last gimple_simplify declaration. Add missing gimple_build
24932 declaration for built-in function case with four tree args.
24934 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
24935 Szabolcs Nagy <szabolcs.nagy@arm.com>
24937 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
24938 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
24939 (GNU_USER_DYNAMIC_LINKERN32): Update.
24941 2015-05-08 Richard Biener <rguenther@suse.de>
24943 PR tree-optimization/66036
24944 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
24945 Handle strided group loads.
24946 (vect_verify_datarefs_alignment): Likewise.
24947 (vect_enhance_data_refs_alignment): Likewise.
24948 (vect_analyze_group_access): Likewise.
24949 (vect_analyze_data_ref_access): Likewise.
24950 (vect_analyze_data_ref_accesses): Likewise.
24951 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
24952 (vectorizable_load): Likewise.
24954 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
24956 * config/rs6000/rs6000.md: Require operand inequality in one
24959 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
24960 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24962 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
24964 * config/rx/rx.md (movdi, movdf): Likewise.
24965 Likewise for define_peephole2s.
24967 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24969 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
24970 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
24971 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
24972 vtst_u64): Rewrite using gcc vector extensions.
24974 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24976 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
24977 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
24979 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24981 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
24983 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
24985 * config/glibc-stdint.h (OPTION_MUSL): Define.
24986 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
24987 Change the definition based on OPTION_MUSL for 64 bit targets.
24988 * config/linux.h (OPTION_MUSL): Redefine.
24989 * config/alpha/linux.h (OPTION_MUSL): Redefine.
24990 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
24991 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
24993 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
24994 Szabolcs Nagy <szabolcs.nagy@arm.com>
24996 * config.gcc (LIBC_MUSL): New tm_defines macro.
24997 * config/linux.h (OPTION_MUSL): Define.
24998 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
24999 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
25000 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25001 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25002 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25003 * config/linux.opt (mmusl): New option.
25004 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
25005 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25006 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25007 * configure: Regenerate.
25009 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
25010 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25013 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
25014 * config/i386/knetbsd-gnu64.h: New file.
25016 2015-05-08 Marek Polacek <polacek@redhat.com>
25019 * doc/invoke.texi: Document -Woverride-init-side-effects.
25021 2015-05-07 Marek Polacek <polacek@redhat.com>
25024 * doc/invoke.texi: Document -Wshift-negative-value.
25026 2015-05-06 Aditya Kumar <hiraditya@msn.com>
25028 * gcov-tool.c (do_merge): Refactore to remove int ret.
25029 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
25030 !type == FUNC to type != FUNC.
25031 * reload.h (struct target_reload): Changee to type of
25032 x_spill_indirect_levels from bool to unsigned char.
25034 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
25036 * rtl.h (always_void_p): New function.
25037 * gengenrtl.c (always_void_p): Likewise.
25038 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
25039 with code foo are always VOIDmode.
25040 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
25041 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
25042 compare-elim.c, config/aarch64/aarch64.c,
25043 config/aarch64/aarch64.md, config/alpha/alpha.c,
25044 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
25045 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
25046 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
25047 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25048 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
25049 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
25050 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
25051 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
25052 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
25053 config/ia64/vect.md, config/iq2000/iq2000.c,
25054 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
25055 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
25056 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
25057 config/mep/mep.c, config/microblaze/microblaze.c,
25058 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
25059 config/mn10300/mn10300.c, config/msp430/msp430.c,
25060 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
25061 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
25062 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
25063 config/rs6000/altivec.md, config/rs6000/rs6000.c,
25064 config/rs6000/rs6000.md, config/rs6000/vector.md,
25065 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
25066 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
25067 config/sh/sh.md, config/sh/sh_treg_combine.cc,
25068 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
25069 config/spu/spu.md, config/stormy16/stormy16.c,
25070 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
25071 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
25072 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
25073 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
25074 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
25075 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
25076 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
25077 var-tracking.c: Update calls accordingly.
25079 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25082 PR middle-end/54303
25083 * varasm.c (function_mergeable_rodata_prefix): New function.
25084 (mergeable_string_section): Use it.
25085 (mergeable_constant_section): Use it.
25087 2015-05-07 Jeff Law <law@redhat.com>
25090 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25091 simplifier to narrow arithmetic.
25092 * generic-match-head.c: (types_match, single_use): New functions.
25093 * gimple-match-head.c: (types_match, single_use): New functions.
25095 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25097 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
25100 2015-05-07 Richard Biener <rguenther@suse.de>
25102 PR tree-optimization/66002
25103 * passes.def: Schedule another pass_merge_phi after ifcombine, right
25106 2015-05-07 Marek Polacek <polacek@redhat.com>
25107 Martin Uecker <uecker@eecs.berkeley.edu>
25109 * doc/invoke.texi: Document -fsanitize=bounds-strict.
25110 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
25111 into SANITIZE_NONDEFAULT.
25112 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
25114 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
25117 * config/alpha/alpha.c (alpha_override_options_after_change): New.
25118 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
25119 (alpha_override_options): Move align_loops, align_jumps and
25120 align_functions handling into alpha_override_options_after_change.
25122 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
25123 Chris Jones <chrisj@nvidia.com>
25124 Joshua Conner <jconner@nvidia.com>
25126 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
25127 linking of crtfastmath.o.
25128 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
25130 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25132 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
25133 (cstore<mode>4_unsigned_imm): New expander.
25134 (cstore<mode>4): Remove empty constraint strings. Use the new
25137 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
25140 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
25143 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
25145 * config/aarch64/geniterators.sh: Use standard BRE in sed.
25147 2015-05-06 Alan Modra <amodra@gmail.com>
25150 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
25151 (UNSPEC_NOP): Define.
25152 (reload_vsx_from_gpr<mode>): Add missing DONE.
25153 (reload_gpr_from_vsx<mode>): Likewise.
25154 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
25155 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
25157 2015-05-06 Christian Bruel <christian.bruel@st.com>
25160 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
25161 align_jumps, align_functions into aarch64_override_options_after_change.
25163 2015-05-06 Richard Biener <rguenther@suse.de>
25165 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
25166 vect_transform_slp_perm_load to check if we support a permutation
25167 for basic-block vectorization.
25169 2015-05-06 Nick Clifton <nickc@redhat.com>
25171 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
25172 used, even if it is not being used as a frame pointer.
25174 2015-05-05 Jason Merrill <jason@redhat.com>
25176 * dwarf2out.c (gen_member_die): Don't emit anything for an
25177 anonymous class constructor.
25179 2015-05-05 David Malcolm <dmalcolm@redhat.com>
25181 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
25182 that it reflects the block structure.
25183 (afdo_propagate_edge): Likewise.
25184 (afdo_calculate_branch_prob): Likewise.
25185 (afdo_annotate_cfg): Likewise.
25186 * cfgcleanup.c (equal_different_set_p): Likewise.
25187 (try_crossjump_to_edge): Likewise.
25188 * cgraph.c (cgraph_node::verify_node): Likewise.
25189 * cgraphunit.c (expand_all_functions): Likewise.
25190 * config/i386/i386.c (ix86_expand_copysign): Likewise.
25191 (exact_dependency_1): Likewise.
25192 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
25193 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
25194 * gensupport.c (process_define_subst): Likewise.
25195 * lto-wrapper.c (merge_and_complain): Likewise.
25196 * tree-if-conv.c (if_convertible_bb_p): Likewise.
25197 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
25198 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
25199 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
25200 * tree-vect-loop.c (vectorizable_reduction): Likewise.
25201 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
25202 * tree-vect-stmts.c (vectorizable_shift): Likewise.
25203 * tree-vrp.c (vrp_finalize): Likewise.
25204 * tree.c (variably_modified_type_p): Likewise.
25206 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
25208 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
25209 on darwin12 and later.
25210 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
25211 file to pass -rdynamic on darwin12 and later.
25212 * config/darwin.opt (rdynamic): Add.
25214 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25216 * doc/extend.texi (C Extensions): Update menu for moved Variable
25217 Attributes and Type Attributes sections.
25219 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25222 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
25223 if rep_8byte stringop strategy was specified for 32-bit target.
25225 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
25228 * config/i386/i386.md (vector convert to float spltiter): Check for
25229 xmm16+, when splitting scalar float conversion.
25230 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
25232 2015-05-05 Nick Clifton <nickc@redhat.com>
25234 * config/msp430/msp430-opts.h (enum msp430_regions): New.
25235 * config/msp430/msp430.c (msp430_override_options): Complain if
25236 -mcode-region or -mdata-region is used on a non MSP430X.
25237 (msp430_section_attr): New function. Checks lower, upper and
25239 (msp430_attribute_table): Add lower, upper and either.
25240 (gen_prefix): New function. Generates a prefix for a section
25242 (msp430_select_section): New function - handles the choice of
25243 section for an object. Takes into account memory region
25244 attributes and options.
25245 (msp430_function_section): Use gen_prefix.
25246 (TARGET_SECTION_TYPE_FLAGS): Define.
25247 (msp430_section_type_flags): New function.
25248 (TARGET_ASM_UNIQUE_SECTION): Define.
25249 (msp430_unique_section): New function.
25250 (msp430_output_aligned_decl_common): New function.
25251 (msp430_do_not_relax_short_jumps): New function.
25252 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
25254 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
25255 * config/msp430/msp430-protos.h
25256 (msp430_do_not_relax_short_jumps): New prototype.
25257 (msp430_output_aligned_decl_common): New prototype.
25258 * config/msp430/msp430.md (length): New attribute.
25259 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
25260 then use a long code sequence for short jumps.
25261 * config/msp430/msp430.opt (mcode-region): New.
25262 (mdata-region): New.
25263 * doc/invoke.texi: Document new options.
25264 * doc/extend.texi: Document new attributes.
25266 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
25268 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
25269 (tune_params): Add field branch_costs.
25270 (aarch64_branch_cost): Declare.
25271 * gcc/config/aarch64.c (generic_branch_cost): New.
25272 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
25273 (cortexa53_tunings): Likewise.
25274 (cortexa57_tunings): Likewise.
25275 (thunderx_tunings): Likewise.
25276 (xgene1_tunings): Likewise.
25277 (aarch64_branch_cost): Define.
25278 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
25280 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25282 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
25283 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
25284 * config/i386/i386.md: Ditto.
25285 * config/i386/winnt.c: Ditto.
25287 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
25289 * doc/extend.texi (__atomic Builtins): Move implementation details
25290 to the end of the description, rewrite opening paragraphs, state
25291 difference with __sync builtins, state C11/C++11 assumptions,
25292 weaken itemized descriptions, add explanation of memory model
25293 behaviour, expand description of compare-exchange, simplify text.
25295 2015-05-05 Renlin Li <renlin.li@arm.com>
25297 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
25299 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
25301 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
25302 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25303 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
25304 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25305 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
25306 * configure: Regenerate.
25307 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
25308 * doc/install.texi (aarch64*-*-*): Document new
25309 --enable-fix-cortex-a53-843419 option.
25310 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
25311 and -mno-fix-cortex-a53-843419 options.
25313 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25316 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
25318 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
25320 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
25321 fix overactive TYPE_MIN_VALUE check and add FIXME for type
25322 compatibility problems.
25324 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
25326 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
25328 (cbranchsi4_reg): New.
25329 * config/microblaze/microblaze.c
25330 (microblaze_expand_conditional_branch_reg): New.
25331 * config/microblaze/microblaze-protos.h
25332 (microblaze_expand_conditional_branch_reg): New prototype.
25334 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
25336 * config/microblaze/microblaze.md (peephole2): New.
25338 2015-05-04 Jeff Law <law@redhat.com>
25341 2015-05-04 Jeff Law <law@redhat.com>
25343 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25344 simplifier to narrow arithmetic.
25345 * generic-match-head.c: (types_match, single_use): New functions.
25346 * gimple-match-head.c: (types_match, single_use): New functions.
25348 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
25351 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
25352 (split_branches): Likewise.
25354 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
25356 * common.opt (fdelete-null-pointer-checks): Init to -1.
25357 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
25358 override flag_delete_null_pointer_checks default.
25359 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
25360 behavior re address zero. Better document target-specific behavior.
25361 (-fisolate-errneous-paths-dereference): Mention relationship to
25362 -fdelete-null-pointer-checks.
25364 2015-05-04 Jakub Jelinek <jakub@redhat.com>
25366 PR tree-optimization/65984
25367 * ubsan.c: Include tree-cfg.h.
25368 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
25369 stmt_could_throw_p test, rename can_throw variable to ends_bb.
25371 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
25373 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
25374 to CONST_DOUBLE_P predicate.
25375 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
25376 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
25377 allow only operands that satisfy standard_sse_constant_p predicate.
25378 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
25379 to CONST_DOUBLE_P predicate.
25381 2015-05-04 Jeff Law <law@redhat.com>
25383 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25384 simplifier to narrow arithmetic.
25385 * generic-match-head.c: (types_match, single_use): New functions.
25386 * gimple-match-head.c: (types_match, single_use): New functions.
25388 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
25390 * config/arm/arm.c: Restore bootstrap.
25392 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
25394 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
25395 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
25396 as CONST_WIDE_INT, not CONST_DOUBLE.
25397 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
25398 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
25399 (ix86_find_base_term): Do not check for CONST_DOUBLE.
25400 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
25401 (ix86_build_signbit_mask): Rewrite using wide ints.
25402 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
25403 (ix86_rtx_costs): Handle CONST_WIDE_INT.
25404 (find_constant): Ditto.
25405 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
25406 using gen_int_mode.
25407 * config/i386/predicates.md (x86_64_immediate_operand)
25408 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25409 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
25410 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25411 (const0_operand): Also match const_wide_int.
25412 (constm1_operand): Ditto.
25413 (const1_operand): Ditto.
25415 2015-05-04 Richard Biener <rguenther@suse.de>
25417 PR tree-optimization/65965
25418 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
25419 store groups at gaps.
25421 2015-05-04 Richard Biener <rguenther@suse.de>
25423 PR tree-optimization/65935
25424 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
25425 then make sure to apply that swapping to the IL.
25427 2015-05-04 Jakub Jelinek <jakub@redhat.com>
25429 * Makefile.in (PATCHLEVEL_c): New variable.
25430 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
25431 expand the same way as if DEVPHASE_c was non-empty.
25433 2015-05-04 Kai Tietz <ktietz@redhat.com>
25436 * lto-wrapper.c (run_gcc): Open filename
25439 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
25441 * doc/extend.texi (Variable Attributes, Type Attributes): Move
25442 sections up in file, to immediately after the Function Attributes
25445 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
25447 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
25449 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25451 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
25452 (insert_partition_copy_on_edge): Adjust.
25453 (insert_rtx_to_part_on_edge): Likewise.
25454 (insert_part_to_rtx_on_edge): Likewise.
25456 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25458 * function.c (set_return_jump_label): Change type of argument to
25460 * function.h (set_return_jump_label): Adjust.
25462 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25464 * reload.h (struct reg_equivs_t): Change type of init to
25466 * ira.c (fix_reg_equiv_init): Adjust.
25467 * reload1.c (eliminate_regs_1): Likewise.
25468 (init_eliminable_invariants): Likewise.
25470 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25472 * cselib.c (fp_setter_insn): Take a rtx_insn *.
25473 * cselib.h (fp_setter_insn): Adjust.
25475 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25477 * recog.c (struct validate_replace_src_data): Change type of
25478 insn field to rtx_insn *.
25479 (validate_replace_src_group): Change type of argument to rtx_insn *.
25480 * recog.h (validate_replace_src_group): Adjust.
25482 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25484 * haifa-sched.c: Change the type of some variables to rtx_insn *.
25485 * sched-deps.c: Likewise.
25486 * sched-int.h: Likewise.
25487 * sched-rgn.c: Likewise.
25488 * sel-sched.c: Likewise.
25490 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25493 * config/i386/i386.c: Change the type of some arguments to
25495 * config/arm/arm.c: Likewise.
25497 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25499 * lra-constraints.c: Change type of some arguments to rtx_insn *.
25501 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25503 * regcprop.c (kill_autoinc_value): Change type of argument to
25506 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25508 * genrecog.c (print_subroutine): Adjust.
25509 * recog.c (get_bool_attr_mask_uncached): Likewise.
25510 * recog.h (struct recog_data_d): Change the type of insn to
25513 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25515 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
25517 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25519 * df-problems.c (df_set_note): Change type of argument to
25522 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25524 * builtins.c (expand_builtin_trap): Change type of local
25525 variable to rtx_insn *.
25526 (add_sched_insns_for_speculation): Likewise.
25527 (ix86_emit_save_regs): Likewise.
25528 (get_scratch_register_on_entry): Likewise.
25529 (ix86_emit_restore_reg_using_pop): Likewise.
25530 (ix86_emit_leave): Likewise.
25531 (ix86_emit_restore_regs_using_mov): Likewise.
25532 (ix86_expand_epilogue): Likewise.
25534 (rl78_alloc_physical_registers_umul): Likewise.
25535 * cselib.c (discard_useless_locs): Likewise.
25536 (cselib_invalidate_regno): Likewise.
25537 (cselib_invalidate_mem): Likewise.
25538 * function.c (expand_function_start): Likewise.
25539 (emit_use_return_register_into_block): Likewise.
25540 * gcse.c: Likewise.
25541 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
25542 * ifcvt.c (noce_get_alt_condition): Likewise.
25543 * loop-doloop.c (doloop_condition_get): Likewise.
25544 * lra-constraints.c (inherit_in_ebb): Likewise.
25545 * modulo-sched.c (sms_schedule_by_order): Likewise.
25546 * recog.c (next_insn_tests_no_inequality): Likewise.
25547 * reorg.c (emit_delay_sequence): Likewise.
25548 (update_reg_dead_notes): Likewise.
25549 (fix_reg_dead_note): Likewise.
25550 (fill_slots_from_thread): Likewise.
25551 (delete_computation): Likewise.
25553 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
25555 * doc/extend.texi (Variable Attributes): Add menu and proper
25556 @nodes to subsections. Move Microsoft Windows attributes to
25557 their own subsection.
25558 (Type Attributes): Reorganize introduction to remove duplicate
25559 list of attributes. Add menu and proper @nodes to subsections.
25560 Alphabetize the main table of common attributes.
25562 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
25564 * match.pd: New simplification patterns.
25565 (x + (x & 1)) -> ((x + 1) & ~1)
25566 (x & ~(x & y)) -> ((x & ~y))
25567 (x | ~(x | y)) -> ((x | ~y))
25569 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25571 * target.def (attribute_table): Mention that struct attribute_spec
25572 is defined in tree-core.h rather than tree.h
25573 * doc/tm.texi: Regenerate.
25575 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
25577 * genrecog.c (test): Rename to rtx_test. Update rest of file
25580 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
25582 PR translation/65959
25583 * params.h (DEFPARAM): Rename msgid to nocmsgid.
25585 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25587 * gcc/config/aarch64/aarch64-protos.h (tune_params):
25588 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
25589 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
25590 Return value depending on target.
25591 (generic_tunings): Initialize new target settings.
25592 (cortexa53_tunings): Likewise.
25593 (cortexa57_tunings): Likewise.
25594 (thunderx_tunings): Likewise.
25595 (xgene1_tunings): Likewise.
25597 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25599 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
25600 Make Cortex-A53 shift costs more accurate.
25602 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25604 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
25607 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25609 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
25610 Calculate cost of op0 and op1 in PLUS and MINUS cases.
25612 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25614 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25615 Add cost of op0 in the compare-with-fpzero case.
25617 2015-04-30 David Malcolm <dmalcolm@redhat.com>
25619 * builtins.c (fold_builtin_1): Remove spurious second
25621 * cgraph.h (symtab_node::get_availability): Likewise.
25622 * opts.c (common_handle_option): Remove spurious second semicolon.
25623 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25624 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
25626 2015-04-30 Caroline Tice <cmtice@google.com>
25628 PR gcov-profile/65929
25629 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
25630 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
25631 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
25632 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
25633 * doc/tm.texi: Regenerate.
25634 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
25635 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
25636 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
25637 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
25639 2015-04-30 Marek Polacek <polacek@redhat.com>
25641 * varasm.c (handle_cache_entry): Fix logic.
25643 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25645 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
25646 (*extrsi5_insn_uxtw_alt): Likewise.
25647 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
25648 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
25651 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25653 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
25656 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25658 * config/aarch64/aarch64.md
25659 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
25660 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
25661 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
25662 appropriately. Handle alternative EON form.
25664 2015-04-30 Renlin Li <renlin.li@arm.com>
25666 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
25667 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
25669 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25672 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
25673 -fstrict-aliasing boundaries.
25675 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25677 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
25678 and [SU]MNEGL patterns.
25680 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25682 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
25683 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
25684 combined arithmetic-shift ops. Properly handle all shift and extend
25685 operations that can occur in combination with PLUS/MINUS.
25686 Rename maybe_fma to compound_p.
25687 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
25688 arithmetic and shift operations.
25690 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25692 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
25693 rather than arith_shift cost when costing ADD/MINUS of an
25696 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25699 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
25702 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
25704 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
25705 are for the same position.
25707 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
25709 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
25711 (vectorize_loops): Use it.
25713 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25715 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
25716 for aggregate types.
25717 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
25718 type to be non_ODR.
25719 * tree.c (need_assembler_name_p): Compute mangled name for
25720 non-fundamental types and integer types.
25722 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
25724 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
25726 * expr.c (expand_expr_real_2): Likewise.
25728 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25730 * tree.c (build_common_builtin_nodes): Do not build
25731 __builtin_alloca_with_align as equivalent of library alloca.
25733 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25735 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
25736 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
25738 * tree.c: Include print-tree.h and ipa-utils.h
25739 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
25740 (free_lang_data_in_cgraph): Call verify_type.
25741 (verify_type_variant): New function.
25742 (verify_type): New function.
25743 * tree.h (verify_type): Declare.
25745 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
25747 * config/mips/mips-cpus.def: (mips4): Change default processor
25748 from PROCESSOR_R8000 to PROCESSOR_R10000.
25750 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
25752 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
25753 la/jalr instead of jal.
25755 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
25758 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
25759 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
25760 (setcc+movzbl peephole2): Check also clobbered reg.
25761 (setcc+andl peephole2): Ditto.
25763 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25766 * config/nvptx/mkoffload.c (target_ilp32): New variable.
25767 (main): Set it depending on "-foffload-abi=[...]".
25768 (compile_native, main): Use it to pass "-m32" or "-m64" to the
25771 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25774 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
25775 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
25776 Flip lane index back at assembly time for bigendian.
25778 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25780 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
25781 * gimplify.c (gimplify_omp_workshare): Use it.
25783 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25785 * Makefile.in (build/genrecog.o): Depend on inchash.h.
25786 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
25788 * genrecog.c: Rewrite most of the code except for the third page.
25790 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25792 * inchash.h, inchash.c: Include bconfig.h for build objects.
25793 * Makefile.in (build/inchash.o): New rule.
25795 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
25798 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
25799 number in type attribute expression.
25801 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25803 * loop-iv.c (canon_condition): Generalize to all types of integer
25806 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
25808 * gimple-walk.c: Prune duplicate or unneeded includes.
25809 (walk_gimple_asm): Only call parse_input_constraint or
25810 parse_output_constraint if their findings are used.
25811 Honour parse_input_constraint and parse_output_constraint
25814 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25816 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
25818 2015-04-29 Tom de Vries <tom@codesourcery.com>
25820 PR tree-optimization/65893
25821 * passes.def (pass_all_optimizations): Move pass_stdarg to after
25824 2015-04-29 Richard Biener <rguenther@suse.de>
25826 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25827 compute GROUP_SIZE for basic-block SLP.
25828 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
25829 take into account gaps.
25830 (vect_get_mask_element): Properly reject references to previous
25832 (vect_transform_slp_perm_load): Likewise.
25834 2015-04-29 Christian Bruel <christian.bruel@st.com>
25837 * config/i386/i386.c (ix86_default_align): New function.
25838 (ix86_override_options_after_change): Call ix86_default_align.
25839 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
25840 (ix86_override_options_after_change): New function.
25842 2015-04-28 Jeff Law <law@redhat.com>
25844 * tree-ssa-dom.c (record_equality); Fix comment typos.
25846 2015-04-28 Tom de Vries <tom@codesourcery.com>
25848 PR tree-optimization/65887
25849 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
25851 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
25853 * doc/extend.texi (Declaring Attributes of Functions): Split into
25854 subsections by target. Alphabetize the table of common attributes.
25855 Rewrite some of the introductory text to reflect the new structure.
25856 Update some cross-references to point to the new subsections.
25857 (Attribute Syntax): Put paragraph about "__" naming here. Remove
25858 duplicate copies in the discussion of function, label, and type
25861 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
25864 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
25866 2015-04-28 Jason Merrill <jason@redhat.com>
25869 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
25870 (finalize_type_size): Respect TYPE_USER_ALIGN.
25871 (layout_type) [ARRAY_TYPE]: Likewise.
25873 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
25875 * config/arm/arm.md (*arm_movt): Fix type attribute.
25876 (*cmpsi_shiftsi): Likewise.
25877 (*cmpsi_shiftsi_swp): Likewise.
25878 (*movsicc_insn): Likewise.
25879 (*cond_move): Likewise.
25880 (*if_plus_move): Likewise.
25881 (*if_move_plus): Likewise.
25882 (*if_arith_move): Likewise.
25883 (*if_move_arith): Likewise.
25884 (*if_shift_move): Likewise.
25885 (*if_move_shift): Likewise.
25886 (*arm_movtas_ze): Likewise.
25887 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
25888 redundancy and type attribute.
25889 (*thumb2_movsi_insn): Fix type attribute.
25890 (*thumb2_addsi_short): Likewise.
25891 (thumb2_addsi3_compare0): Likewise.
25892 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
25893 attributes accordingly.
25895 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
25898 * function.c (pad_to_arg_alignment): Add parentheses.
25900 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
25902 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
25903 libgcc/config/frv/elf-lib.h.
25905 2015-04-28 Tom de Vries <tom@codesourcery.com>
25907 * tree-call-cdce.c: Fix example in header comment.
25909 2015-04-28 Richard Biener <rguenther@suse.de>
25911 PR tree-optimization/62283
25912 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
25913 fails fatally and we are vectorizing a basic-block simply
25914 cause the child to be constructed piecewise.
25915 (vect_analyze_slp_cost_1): Adjust.
25916 (vect_detect_hybrid_slp_stmts): Likewise.
25917 (vect_bb_slp_scalar_cost): Likewise.
25918 (vect_get_constant_vectors): For piecewise constructed
25919 constants place them after the last def.
25920 (vect_get_slp_defs): Adjust.
25921 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
25922 externals for basic-block vectorization.
25924 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25927 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
25929 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
25930 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
25931 (AARCH64_TUNE_FMA_STEERING): Likewise.
25932 * config/aarch64/aarch64-cores.def: Set
25933 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
25934 FMUL/FMADD instructions.
25935 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
25936 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
25937 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
25938 * config/aarch64/cortex-a57-fma-steering.h: New file.
25939 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25941 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
25943 * gensupport.c (std_preds): Add missing codes to address_operand entry.
25945 2015-04-28 Richard Biener <rguenther@suse.de>
25947 PR tree-optimization/65851
25948 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
25949 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
25950 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
25951 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
25952 (ccp_visit_phi_node): Adjust.
25953 (evaluate_stmt): For simplifications to SSA names return its
25954 lattice value if that isn't VARYING. Return immediately when
25955 simplified to a constant.
25956 (visit_assignment): Adjust.
25957 (ccp_visit_stmt): Likewise.
25959 2015-04-28 Tom de Vries <tom@codesourcery.com>
25961 PR tree-optimization/65818
25962 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
25965 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25967 * calls.c (save_fixed_argument_area): Don't check
25968 ARGS_GROW_DOWNWARD with the preprocessor.
25969 (restore_fixed_argument_area): Likewise.
25970 (mem_overlaps_already_clobbered_arg_p): Likewise.
25971 (check_sibcall_argument_overlap): Likewise.
25972 (expand_call): Likewise.
25973 (emit_library_call_value_1): Likewise.
25974 (store_one_arg): Likewise.
25975 * function.c (assign_parms): Likewise.
25976 (locate_and_pad_parm): Likewise.
25977 (pad_to_arg_alignment): Likewise.
25978 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
25980 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25982 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
25983 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
25984 * calls.c (save_fixed_argument_area): Don't chekc if
25985 ARGS_GROW_DOWNWARD is defined.
25986 (restore_fixed_argument_area): Likewise.
25987 (mem_overlaps_already_clobbered_arg_p): Likewise.
25988 (check_sibcall_argument_overlap): Likewise.
25989 (expand_call): Likewise.
25990 (emit_library_call_value_1): Likewise.
25991 (store_one_arg): Likewise.
25992 * function.c (assign_parms): Likewise.
25993 (locate_and_pad_parm): Likewise.
25994 (pad_to_arg_alignment): Likewise.
25995 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
25997 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25999 * defaults.h (gen_epilogue): New function.
26000 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
26002 * cfgrtl.c (cfg_layout_finalize): Likewise.
26003 * df-scan.c: Likewise.
26004 * function.c (thread_prologue_and_epilogue_insns): Likewise.
26005 (reposition_prologue_and_epilogue_notes): Likewise.
26006 * reorg.c (find_end_label): Likewise.
26007 * toplev.c: Likewise.
26009 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26011 * bb-reorder.c (HAVE_return): Don't check if its undefined.
26012 * defaults.h (gen_simple_return): New function.
26013 (gen_simple_return): Likewise.
26014 (HAVE_return): Add default definition to false.
26015 (HAVE_simple_return): Likewise.
26016 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
26017 HAVE_return and HAVE_simple_return are defined.
26018 * function.c (gen_return_pattern): Likewise.
26019 (convert_jumps_to_returns): Likewise.
26020 (thread_prologue_and_epilogue_insns): Likewise.
26021 * reorg.c (find_end_label): Likewise.
26022 (dbr_schedule): Likewise.
26023 * shrink-wrap.c: Likewise.
26024 * shrink-wrap.h: Likewise.
26026 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26028 * defaults.h (EPILOGUE_USES): Add default definition of false.
26029 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
26030 * resource.c (init_resource_info): Likewise.
26032 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26034 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
26036 * dwarf2out.c (field_byte_offset): REmove check if
26037 PCC_BITFIELD_TYPE_MATTERS is defined.
26038 * stor-layout.c (layout_decl): Likewise.
26039 (update_alignment_for_field): Likewise.
26040 (place_field): Likewise.
26042 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26044 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
26046 * regrename.c (check_new_reg_p): Remove check if
26047 HARD_REGNO_RENAME_OK is defined.
26048 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
26050 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26052 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
26053 * cse.c (fold_rtx): Likewise.
26054 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
26055 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
26056 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
26057 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
26058 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
26059 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
26060 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
26061 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
26062 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
26063 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
26065 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
26066 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
26067 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
26068 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
26069 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
26070 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
26071 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
26072 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
26073 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
26074 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
26075 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
26076 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
26077 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
26078 * doc/tm.texi: Regenerate.
26079 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
26080 either true or false.
26082 2015-04-27 Jeff Law <law@redhat.com>
26084 PR tree-optimization/65217
26085 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
26086 of them has a single use, make sure it is the LHS of the implied
26089 2015-04-28 Alan Modra <amodra@gmail.com>
26092 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
26093 (offsettable_ok_by_alignment): Use minimum of decl and toc
26094 pointer alignment. Replace dead code with assertion.
26095 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
26096 case if size exceeds toc pointer alignment.
26097 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
26098 (rs6000_emit_move): Likewise.
26099 * configure.ac: Add linker toc pointer alignment check.
26100 * configure: Regenerate.
26101 * config.in: Regenerate.
26103 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
26105 * config.gcc: Add h8300-*-linux.
26106 * config/h8300/linux.h: New.
26107 * config/h8300/t-linux: New.
26108 * config/h8300/h8300.c (h8300_option_override): Normal mode
26109 is not supported for h8300-*-linux.
26110 (h8300_file_start): Target priority change.
26111 (get_shift_alg): Likewise.
26112 (h8300_shift_need_scratch_p): Likewise.
26113 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
26114 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
26116 2015-04-27 Caroline Tice <cmtice@google.com>
26118 * final.c (final_scan_insn): Output cold_function_name as function
26120 * varasm.c (cold_function_name): Make global.
26121 (assemble_start_function): Re-set cold_function_name.
26122 (assemble_end_function): Output cold partition size.
26123 * varasm.h (cold_function_name): Declare global.
26125 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
26127 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
26128 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
26130 (*movxi_internal_avx512f): Ditto.
26131 (define_split): Check for xmm16+, when splitting scalar float_extend.
26132 (*extendsfdf2_mixed): Use "v" constraint.
26133 (define_split): Check for xmm16+, when splitting scalar float_truncate.
26134 (*truncdfsf_fast_sse): Use "v" constraint.
26135 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
26136 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
26137 (define_peephole2): Check for xmm16+, when converting scalar
26139 (define_peephole2): Check for xmm16+, when converting scalar
26141 (*fop_<mode>_comm_mixed): Use "v" constraint.
26142 (*fop_<mode>_comm_sse): Ditto.
26143 (*fop_<mode>_1_mixed): Ditto.
26144 (*sqrt<mode>2_sse): Ditto.
26145 (*ieee_s<ieee_maxmin><mode>3): Ditto.
26147 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26149 * combine.c (simplify_if_then_else): Use std::swap instead
26150 of manually swapping.
26151 (known_cond): Likewise.
26152 (simplify_comparison): Likewise.
26154 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
26157 * config/rs6000/htm.md: Remove all define_expands.
26158 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
26159 UNSPECV_HTM_TABORTWCI): Remove.
26160 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
26161 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
26162 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
26163 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
26164 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
26165 tabortwci_internal): Remove define_insns.
26166 (tabort<wd>c, tabort<wd>ci): New define_insns.
26167 (tabort): Use gpc_reg_operand.
26168 (tcheck): Remove operand.
26169 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
26170 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
26172 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
26173 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
26174 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
26175 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
26176 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
26177 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
26178 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
26179 (tcheck): Remove builtin argument.
26180 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
26182 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
26183 tabortdc and tabortdci builtins when not in 64-bit mode.
26184 Modify code to handle the loss of the HTM define_expands.
26185 Emit code to copy the CR register to TARGET.
26186 (htm_init_builtins): Modify code to handle the loss of the HTM
26188 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
26189 (RS6000_BTC_64BIT): Likewise.
26190 (RS6000_BTC_CR): New macro.
26191 * doc/extend.texi: Update documentation for htm builtins.
26193 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26195 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
26196 of manually swapping.
26197 (simplify_associative_operation): Likewise.
26198 (simplify_binary_operation): Likewise.
26199 (simplify_plus_minus): Likewise.
26200 (simplify_relational_operation): Likewise.
26201 (simplify_ternary_operation): Likewise.
26203 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
26205 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
26206 (xs_hi_nonmemory_operand): Remove error.
26207 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
26208 general_operand rather than xs_hi_general_operand.
26210 2015-04-27 Richard Biener <rguenther@suse.de>
26212 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
26213 (record_equivalences_from_stmt): Valueize rhs.
26214 (record_equality): Canonicalize x and y order via
26215 tree_swap_operands_p. Do not swap operands for same loop depth.
26217 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
26221 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
26222 Add hint how to use own spec file.
26224 2015-04-27 Jakub Jelinek <jakub@redhat.com>
26226 PR tree-optimization/65875
26227 * tree-vrp.c (update_value_range): If in is_new case setting
26228 old_vr to VR_VARYING, also set new_vr to it. Remove
26229 old_vr->type == VR_VARYING test.
26230 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
26231 SSA_PROP_INTERESTING if update_value_range returned true,
26232 but new range is VR_VARYING.
26234 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
26236 * combine.c (sign_extend_short_imm): New.
26237 (set_nonzero_bits_and_sign_copies): Use above new function for sign
26238 extension of src short immediate.
26239 (reg_nonzero_bits_for_combine): Likewise for tem.
26241 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
26243 * stor-layout.c (self_referential_component_ref_p): New predicate.
26244 (copy_self_referential_tree_r): Use it.
26245 (self_referential_size): Punt for simple operations directly involving
26246 self-referential component references.
26247 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
26249 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
26251 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
26253 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
26255 * vec.h (vec): Make splice arguments const. Update definitions
26258 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
26260 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
26263 2015-04-26 Tom de Vries <tom@codesourcery.com>
26265 PR tree-optimization/65826
26266 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
26268 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
26270 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
26271 (*madd3<mode>): Ditto.
26272 (*msub4<mode>): Ditto.
26273 (*msub3<mode>): Ditto.
26274 (*nmadd4<mode>): Ditto.
26275 (*nmadd3<mode>): Ditto.
26276 (*nmadd4<mode>_fastmath): Ditto.
26277 (*nmadd3<mode>_fastmath): Ditto.
26278 (*nmsub4<mode>): Ditto.
26279 (*nmsub3<mode>): Ditto.
26280 (*nmsub4<mode>_fastmath): Ditto.
26281 (*nmsub3<mode>_fastmath): Ditto.
26283 2015-04-24 Jason Merrill <jason@redhat.com>
26286 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
26287 down when building TYPE_CANONICAL.
26288 (build_pointer_type_for_mode): Likewise.
26290 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
26292 * genrecog.c (validate_pattern): Check matching constraint refers
26293 to a lower numbered operand.
26295 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
26298 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
26299 save to independent variables use the Save attribute. This will
26300 allow these options to be modified with the #pragma/attribute
26302 (-mallow-movmisalign): Likewise.
26303 (-mallow-df-permute): Likewise.
26304 (-msched-groups): Likewise.
26305 (-malways-hint): Likewise.
26306 (-malign-branch-targets): Likewise.
26307 (-mvectorize-builtins): Likewise.
26308 (-msave-toc-indirect): Likewise.
26310 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
26311 can be set via the #pragma/attribute target support.
26312 (rs6000_opt_vars): Likewise.
26313 (rs6000_inner_target_options): If VSX was set, also set
26314 -mno-avoid-indexed-addresses.
26316 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26318 * config/arm/iterators.md (shiftable_ops): Rename to...
26319 (SHIFTABLE_OPS): ... This. Update use in comments.
26320 (ior_xor): Rename to...
26321 (IOR_XOR): ... This.
26322 (vqh_ops): Rename to...
26323 (VQH_OPS): ... This.
26324 (vqhs_ops): Rename to...
26325 (VQHS_OPS): ... This.
26326 (rshifts): Rename to...
26327 (RSHIFTS): ... This.
26328 (returns): Rename to...
26329 (RETURNS): ... This.
26330 * config/arm/arm.md: Update uses of the above.
26331 * config/arm/neon.md: Likewise.
26333 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26335 * config.host (case ${host}): Add aarch64*-*-linux case.
26336 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
26337 fields to all the cores.
26338 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
26339 Add MCPU_MTUNE_NATIVE_SPECS.
26340 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
26341 field to all extensions.
26342 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
26343 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
26344 Adjust definition of AARCH64_OPT_EXTENSION.
26345 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
26346 (MCPU_MTUNE_NATIVE_SPECS): Define.
26347 * config/aarch64/driver-aarch64.c: New file.
26348 * config/aarch64/x-arch64: New file.
26349 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
26352 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26353 Wei Mi <wmi@google.com>
26355 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
26356 * config/i386/i386.c (extract_base_offset_in_addr): New function.
26357 (ix86_operands_ok_for_move_multiple): Ditto.
26358 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
26359 (movlpd/movhpd to movupd peephole2): Ditto.
26361 2015-04-24 Marek Polacek <polacek@redhat.com>
26364 * input.h (from_macro_expansion_at): Define.
26367 * doc/invoke.texi: Update description of -Wlogical-op.
26369 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26371 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
26372 ternary operator in fprintf and harmonize spacing.
26374 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26376 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
26377 Mark operand1 commutative.
26379 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26381 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
26382 input operands in memory.
26383 (*vec_concatv2si_sse4_1): Ditto.
26384 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
26385 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
26387 (vec_extract_hi_v32hi): Ditto.
26388 (vec_extract_hi_v64hi): Ditto.
26389 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
26391 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26392 Steven Bosscher <steven@gcc.gnu.org>
26394 PR rtl-optimization/34503
26395 * cprop.c (cprop_reg_p): New.
26396 (hash_scan_set): Use above function to check if register can be
26398 (find_avail_set): Return up to two sets, one whose source is a
26399 register and one whose source is a constant. Sets are returned in an
26400 array passed as parameter rather than as a return value.
26401 (cprop_insn): Use a do while loop rather than a goto. Try each of the
26402 sets returned by find_avail_set, starting with the one whose source is
26403 a constant. Use cprop_reg_p to check if register can be propagated.
26404 (do_local_cprop): Use cprop_reg_p to check if register can be
26406 (implicit_set_cond_p): Likewise.
26408 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26410 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
26411 (sem_function::equals): IGNORED_NODES parameter is now unused;
26412 update call of equals_private.
26413 (sem_function::equals_private): Do not call equals_wpa; skip
26414 gimple body matching if there is no body.
26415 (sem_function::init): Add logic to hash tthunk info.
26416 (sem_function::parse): Also parse thunks.
26417 * ipa-icf.h (equals_private): Update declaration.
26419 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26421 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
26422 asterisk from name so this can be generated directly.
26423 (*altivec_stvx_<mode>_internal): Likewise.
26424 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
26425 that this is never called during or after reload/lra.
26426 (rs6000_frame_related): Remove split_reg
26427 argument and logic that references it.
26428 (emit_frame_save): Remove last parameter from call to
26429 rs6000_frame_related.
26430 (rs6000_emit_prologue): Remove last parameter from eight calls to
26431 rs6000_frame_related. Force generation of stvx instruction for
26432 Altivec register saves. Remove split_reg handling, which is no
26434 (rs6000_emit_epilogue): Force generation of lvx instruction for
26435 Altivec register restores.
26437 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26439 * config/rs6000/rs6000.opt (mcrypto): Change option description to
26440 match category changes in ISA 2.07B.
26442 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26444 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
26446 (cmp_op, cmp_type): New code attributes.
26447 (NEON_VCMP, NEON_VACMP): New int iterators.
26448 (cmp_op_unsp): New int attribute.
26449 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
26450 (neon_vceq<mode>): Delete.
26451 (neon_vc<cmp_op><mode>_insn): New pattern.
26452 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
26453 (neon_vcgeu<mode>): Delete.
26454 (neon_vcle<mode>): Likewise.
26455 (neon_vclt<mode>: Likewise.
26456 (neon_vcage<mode>): Likewise.
26457 (neon_vcagt<mode>): Likewise.
26458 (neon_vca<cmp_op><mode>): New define_expand.
26459 (neon_vca<cmp_op><mode>_insn): New pattern.
26460 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
26462 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26464 * tree.h (attribute_value_equal): Declare.
26465 * tree.c (attribute_value_equal): Export.
26467 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26469 * ipa-icf.c (sem_item::compare_attributes): New function.
26470 (sem_item::compare_referenced_symbol_properties): Compare variable
26472 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
26473 (sem_function::param_used_p): New function.
26474 (sem_function::equals_wpa): Fix attribute comparsion; match
26475 parameter type codes; do not compare paremter flags when
26476 they are not used; compare edge flags; compare indirect calls.
26477 (sem_item::update_hash_by_addr_refs): Hash reference type.
26478 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
26479 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
26480 reference use type.
26481 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
26482 * ipa-icf.h (compare_attributes, param_used_p): Declare.
26484 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26486 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
26488 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
26489 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
26490 (sem_item::compare_referenced_symbol_properties): New.
26491 (sem_item::hash_referenced_symbol_properties): New.
26492 (sem_item::compare_cgraph_references): Rename to ...
26493 (sem_item::compare_symbol_references): ... this one; use
26494 compare_referenced_symbol_properties.
26495 (sem_function::equals_wpa): Do not compare
26496 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
26497 DECL_IS_OPERATOR_NEW; compare pointer sizes.
26498 (sem_item::update_hash_by_addr_refs): Call
26499 hash_referenced_symbol_properties.
26500 (sem_item::update_hash_by_local_refs): Cleanup.
26501 (sem_function::merge): Do not mix up symbol properties.
26502 (sem_variable::equals_wpa): Use compare_symbol_references.
26503 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
26504 (sem_item::hash_referenced_symbol_properties): New.
26505 (sem_item::compare_symbol_references): New.
26506 (sem_item::compare_cgraph_references): Remove.
26508 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
26511 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
26512 Emit size of local.
26514 2015-04-23 Nick Clifton <nickc@redhat.com>
26516 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
26517 ATTRIBUTE_UNUSED to x parameter.
26518 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
26520 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26522 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
26523 TARGET_CRYPTO to TARGET_P8_VECTOR>
26524 (crypto_vpermxor_<mode>): Likewise.
26525 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
26526 (BU_CRYPTO_3A): Likewise.
26527 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
26528 (BU_CRYPTO_OVERLOAD_3A): New #define.
26529 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
26530 (VPMSUMH): Likewise.
26531 (VPMSUMW): Likewise.
26532 (VPMSUMD): Likewise.
26533 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
26534 (VPERMXOR_V4SI): Likewise.
26535 (VPERMXOR_V8HI): Likewise.
26536 (VPERMXOR_V16QI): Likewise.
26537 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
26538 BU_CRYPTO_OVERLOAD_2A.
26539 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
26540 BU_CRYPTO_OVERLOAD_3A.
26541 * config/rs6000/rs6000.opt (mcrypto): Change description of
26544 2015-04-23 Richard Biener <rguenther@suse.de>
26546 * passes.def: Remove copy propagation passes run directly after CCP.
26547 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
26549 (ccp_visit_phi_node): Rework to handle first executable edge
26552 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
26554 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
26555 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26556 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26557 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
26558 (thumb_legimitimize_reload_address): Remove.
26559 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
26561 (thumb_legimitimize_reload_address): Remove.
26563 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26565 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
26567 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26569 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
26571 (store_multiple): Likewise.
26573 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26575 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
26576 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
26577 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
26578 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
26579 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
26580 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
26581 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
26582 Specify issue_rate value.
26583 (arm_issue_rate): Look up issue rate from tuning structs. Remove
26584 large switch statement.
26585 (arm_marvell_pj4_tune): New struct.
26586 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
26589 2015-04-23 Richard Biener <rguenther@suse.de>
26591 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
26592 (vect_find_last_store_in_slp_instance): Rename to ...
26593 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
26594 (vect_analyze_slp_cost_1): Use vector_load for constant defs
26595 and vec_construct for external defs when estimating prologue cost.
26596 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
26597 Compute costs here only when vectorizing loops.
26598 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
26599 have been determined.
26600 (vect_schedule_slp_instance): Simplify vectorized code placement
26601 and prepare for in-BB external defs.
26602 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
26603 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
26604 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
26606 (vect_model_load_cost): Likewise.
26607 (vectorizable_store): Instead add it here.
26608 (vectorizable_load): Likewise.
26609 (vect_is_simple_use): Dump def type textually.
26611 2015-04-23 Richard Biener <rguenther@suse.de>
26613 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
26614 * cfgloop.c (verify_loop_structure): Verify the root loop node.
26615 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
26616 instead of get_eh_region_from_lp_number.
26617 * loop-init.c (fix_loop_structure): If we removed a loop, reset
26620 2015-04-23 Anton Blanchard <anton@samba.org>
26622 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
26623 need for -mprofile-kernel to save LR to stack.
26625 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26627 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
26629 (insn_is_swappable_p): Return 1 for a convert from double to
26630 single precision when all of its uses are splats of BE element
26633 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
26635 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
26637 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26640 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
26641 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
26642 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
26644 (rs6000_builtin_mask_for_load): Return 0 for targets with
26645 efficient unaligned VSX accesses so that the vectorizer will use
26646 direct unaligned loads.
26647 (rs6000_builtin_support_vector_misalignment): Always return true
26648 for targets with efficient unaligned VSX accesses.
26649 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
26650 stores on targets with efficient unaligned VSX accesses is almost
26651 always the same as the cost of an aligned load or store, so model
26653 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
26654 unaligned vectors if we have efficient unaligned VSX accesses.
26655 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
26656 undocumented option.
26658 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26661 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26663 * config.gcc (LIBC_MUSL): New tm_defines macro.
26664 * config/linux.h (OPTION_MUSL): Define.
26665 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26666 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26667 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26669 * config/linux.opt (mmusl): New option.
26670 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26671 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26673 * configure: Regenerate.
26675 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26677 * config.gcc (LIBC_MUSL): New tm_defines macro.
26678 * config/linux.h (OPTION_MUSL): Define.
26679 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26680 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26681 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26683 * config/linux.opt (mmusl): New option.
26684 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26685 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26687 * configure: Regenerate.
26689 2015-04-22 Yury Gribov <y.gribov@samsung.com>
26691 * doc/invoke.texi (-fsanitize-sections): Update description.
26692 * asan.c (set_sanitized_sections): Parse incoming arg.
26693 (section_sanitized_p): Support wildcards.
26695 2015-04-22 Tom de Vries <tom@codesourcery.com>
26697 PR tree-optimization/65823
26698 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
26699 equality between ap_copy and ap.
26701 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26704 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
26706 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26709 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
26711 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26714 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
26715 remove already contained t-files.
26717 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26719 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
26720 Remove unneeded forward declarations.
26721 (suitable_for_tail_call_opt_p): Commentary typo fix.
26723 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26725 * varasm.c (emit_bss): Remove redundant guard.
26727 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26729 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
26731 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26733 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
26735 2015-04-22 Hale Wang <hale.wang@arm.com>
26736 Terry Guo <terry.guo@arm.com>
26738 PR rtl-optimization/64818
26739 * combine.c (can_combine_p): Don't combine user-specified
26740 register if it is in an asm input.
26742 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
26745 * passes.def (early_optimizations): Add pass_dse.
26747 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26749 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
26750 * reorg.c (redundant_insn): Remove ifdef
26751 INSN_REFERENCES_ARE_DELAYED.
26752 * resource.c (mark_referenced_resources): Likewise.
26754 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26756 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
26757 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
26758 * resource.c (mark_set_resources): Likewise.
26760 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26762 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
26763 * cfgcleanup.c (flow_find_cross_jump): Likewise.
26764 (flow_find_head_matching_sequence): Likewise.
26765 (try_head_merge_bb): Likewise.
26766 * combine.c (can_combine_p): Likewise.
26767 (try_combine): Likewise.
26768 (distribute_notes): Likewise.
26769 * df-problems.c (can_move_insns_across): Likewise.
26770 * final.c (final): Likewise.
26771 * gcse.c (insert_insn_end_basic_block): Likewise.
26772 * ira.c (find_moveable_pseudos): Likewise.
26773 * reorg.c (try_merge_delay_insns): Likewise.
26774 (fill_simple_delay_slots): Likewise.
26775 (fill_slots_from_thread): Likewise.
26776 * sched-deps.c (sched_analyze_2): Likewise.
26778 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26780 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
26781 PIC_OFFSET_TABLE_REGNUM.
26783 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26785 * alias.c (init_alias_target): Remove ifdef
26786 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
26787 * df-scan.c (df_insn_refs_collect): Likewise.
26788 (df_get_regular_block_artificial_uses): Likewise.
26789 (df_get_eh_block_artificial_uses): Likewise.
26790 (df_get_entry_block_def_set): Likewise.
26791 (df_get_exit_block_use_set): Likewise.
26792 * emit-rtl.c (gen_rtx_REG): Likewise.
26793 * ira.c (ira_setup_eliminable_regset): Likewise.
26794 * reginfo.c (init_reg_sets_1): Likewise.
26795 * regrename.c (rename_chains): Likewise.
26796 * reload1.c (reload): Likewise.
26797 (eliminate_regs_in_insn): Likewise.
26798 * resource.c (mark_referenced_resources): Likewise.
26799 (init_resource_info): Likewise.
26801 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26803 * defaults.h (MASK_RETURN_ADDR): New definition.
26804 * except.c (expand_builtin_extract_return_addr): Remove ifdef
26807 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26809 * defaults.h (RETURN_ADDR_OFFSET): New definition.
26810 * except.c (expand_builtin_extract_return_addr): Remove ifdef
26811 RETURN_ADDR_OFFSET.
26812 (expand_builtin_frob_return_addr): Likewise.
26814 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26816 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
26817 (try_redirect_by_replacing_jump): Likewise.
26818 (rtl_tidy_fallthru_edge): Likewise.
26819 * combine.c (insn_a_feeds_b): Likewise.
26820 (find_split_point): Likewise.
26821 (simplify_set): Likewise.
26822 * cprop.c (cprop_jump): Likewise.
26823 * cse.c (cse_extended_basic_block): Likewise.
26824 * df-problems.c (can_move_insns_across): Likewise.
26825 * function.c (emit_use_return_register_into_block): Likewise.
26826 * haifa-sched.c (sched_init): Likewise.
26827 * ira.c (find_moveable_pseudos): Likewise.
26828 * loop-invariant.c (find_invariant_insn): Likewise.
26829 * lra-constraints.c (curr_insn_transform): Likewise.
26830 * postreload.c (reload_combine_recognize_const_pattern):
26832 * reload.c (find_reloads): Likewise.
26833 * reorg.c (delete_scheduled_jump): Likewise.
26834 (steal_delay_list_from_target): Likewise.
26835 (steal_delay_list_from_fallthrough): Likewise.
26836 (redundant_insn): Likewise.
26837 (fill_simple_delay_slots): Likewise.
26838 (fill_slots_from_thread): Likewise.
26839 (delete_computation): Likewise.
26840 * sched-rgn.c (add_branch_dependences): Likewise.
26842 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26844 * genconfig.c (main): Always define HAVE_cc0.
26845 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
26847 * cfgcleanup.c (flow_find_cross_jump): Likewise.
26848 (flow_find_head_matching_sequence): Likewise.
26849 (try_head_merge_bb): Likewise.
26850 * cfgrtl.c (rtl_merge_blocks): Likewise.
26851 (try_redirect_by_replacing_jump): Likewise.
26852 (rtl_tidy_fallthru_edge): Likewise.
26853 * combine.c (do_SUBST_MODE): Likewise.
26854 (insn_a_feeds_b): Likewise.
26855 (combine_instructions): Likewise.
26856 (can_combine_p): Likewise.
26857 (try_combine): Likewise.
26858 (find_split_point): Likewise.
26860 (simplify_set): Likewise.
26861 (distribute_notes): Likewise.
26862 * cprop.c (cprop_jump): Likewise.
26863 * cse.c (cse_extended_basic_block): Likewise.
26864 * df-problems.c (can_move_insns_across): Likewise.
26865 * final.c (final): Likewise.
26866 (final_scan_insn): Likewise.
26867 * function.c (emit_use_return_register_into_block): Likewise.
26868 * gcse.c (insert_insn_end_basic_block): Likewise.
26869 * haifa-sched.c (sched_init): Likewise.
26870 * ira.c (find_moveable_pseudos): Likewise.
26871 * loop-invariant.c (find_invariant_insn): Likewise.
26872 * lra-constraints.c (curr_insn_transform): Likewise.
26873 * optabs.c (prepare_cmp_insn): Likewise.
26874 * postreload.c (reload_combine_recognize_const_pattern):
26876 * reload.c (find_reloads): Likewise.
26877 (find_reloads_address_1): Likewise.
26878 * reorg.c (delete_scheduled_jump): Likewise.
26879 (steal_delay_list_from_target): Likewise.
26880 (steal_delay_list_from_fallthrough): Likewise.
26881 (try_merge_delay_insns): Likewise.
26882 (redundant_insn): Likewise.
26883 (fill_simple_delay_slots): Likewise.
26884 (fill_slots_from_thread): Likewise.
26885 (delete_computation): Likewise.
26886 (relax_delay_slots): Likewise.
26887 * sched-deps.c (sched_analyze_2): Likewise.
26888 * sched-rgn.c (add_branch_dependences): Likewise.
26890 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26892 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
26893 that is trivially ded on non cc0 targets.
26894 (simplify_set): Likewise.
26895 (mark_used_regs_combine): Likewise.
26896 * cse.c (new_basic_block): Likewise.
26897 (fold_rtx): Likewise.
26898 (cse_insn): Likewise.
26899 (cse_extended_basic_block): Likewise.
26900 (set_live_p): Likewise.
26901 * rtlanal.c (canonicalize_condition): Likewise.
26902 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
26904 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26906 * conditions.h: Define macros even if HAVE_cc0 is undefined.
26907 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
26908 * final.c: Likewise.
26909 * jump.c: Likewise.
26910 * recog.c: Likewise.
26911 * recog.h: Declare functions even when HAVE_cc0 is undefined.
26912 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
26914 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26916 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
26917 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
26918 * builtins.c (expand_builtin): Remove check if
26919 EH_RETURN_DATA_REGNO is defined.
26920 * df-scan.c (df_bb_refs_collect): Likewise.
26921 (df_get_exit_block_use_set): Likewise.
26922 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
26923 * ira-lives.c (process_bb_node_lives): Likewise.
26924 * lra-lives.c (process_bb_lives): Likewise.
26926 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
26928 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
26929 FIRST_PSEUDO_REG): New.
26930 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
26931 (ARG_POINTER_REGNUM): Define to ARGP_REG.
26932 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
26933 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
26934 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
26935 (FIRST_INT_REG): New.
26936 (LAST_INT_REG): New.
26937 (FIRST_*_REG): Define using *_REG.
26938 (LAST_*_REG): Ditto.
26939 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
26940 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
26941 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
26943 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26945 * expmed.c: (synth_mult): Only assume overlapping
26946 shift with previous steps in alg_sub_t_m2 case.
26948 2015-04-21 Richard Biener <rguenther@suse.de>
26950 PR tree-optimization/65650
26951 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
26952 transitions involving copies.
26953 (set_lattice_value): Adjust for copy lattice state.
26954 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
26955 if that doesn't dominate the merge point.
26956 (bit_value_unop): Adjust what we treat as varying mask.
26957 (bit_value_binop): Likewise.
26958 (bit_value_assume_aligned): Likewise.
26959 (evaluate_stmt): When we simplified to a SSA name record a copy
26960 instead of dropping to varying.
26961 (visit_assignment): Simplify.
26963 * gimple-match.h (gimple_simplify): Add another callback.
26964 * gimple-fold.c (fold_stmt_1): Adjust caller.
26965 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
26966 for the 2nd callback.
26967 * gimple-match-head.c (gimple_simplify): Add a callback that is
26968 used to valueize the stmt operands and use it that way.
26970 2015-04-21 Richard Biener <rguenther@suse.de>
26972 PR tree-optimization/65788
26973 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
26975 2015-04-21 Richard Biener <rguenther@suse.de>
26977 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
26978 vec_construct cost by vec_stmt_cost.
26980 2015-04-21 Richard Biener <rguenther@suse.de>
26982 * cfghooks.h (create_basic_block): Replace with two overloads
26983 for RTL and GIMPLE.
26984 (split_block): Likewise.
26985 * cfghooks.c (split_block): Rename to ...
26986 (split_block_1): ... this.
26987 (split_block): Add two type-safe overloads for RTL and GIMPLE.
26988 (split_block_after_labels): Call split_block_1.
26989 (create_basic_block): Rename to ...
26990 (create_basic_block_1): ... this.
26991 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
26992 (create_empty_bb): Call create_basic_block_1.
26993 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
26994 split_block_after_labels.
26995 * omp-low.c (expand_parallel_call): Likewise.
26996 (expand_omp_target): Likewise.
26997 (simd_clone_adjust): Likewise.
26998 * tree-chkp.c (chkp_get_entry_block): Likewise.
26999 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
27000 create_basic_block overload.
27001 (cgraph_node::expand_thunk): Likewise.
27002 * tree-cfg.c (make_blocks): Likewise.
27003 (handle_abnormal_edges): Likewise.
27004 * tree-inline.c (copy_bb): Likewise.
27006 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27008 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
27010 (*xor_one_cmplsidi3_ze): Likewise.
27012 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
27014 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
27015 use df_remove_problem rather than manually removing problems, leaving
27016 holes in df->problems_in_order[].
27018 2015-04-21 Tom de Vries <tom@codesourcery.com>
27020 PR tree-optimization/65802
27021 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
27023 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27025 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
27027 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
27028 at '.'. Assert that there's enough space for everything.
27030 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
27032 PR tree-optimization/64950
27034 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
27037 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
27040 2015-04-20 Shiva Chen <shiva0217@gmail.com>
27042 PR rtl-optimization/64916
27043 * cfgcleanup.c (values_equal_p): New function.
27044 (can_replace_by): Use it.
27046 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
27049 * doc/invoke.texi ([-Wnarrowing]): Update.
27051 2015-04-20 Jeff Law <law@redhat.com>
27053 PR tree-optimization/65658
27054 * tree-ssa-threadupdate.c (redirection_block_p): Remove
27055 redundant test for GIMPLE_ASSIGN in last change.
27057 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
27059 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
27060 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
27061 (legitimize_tls_address): Ditto.
27062 (ix86_expand_move): Ditto.
27063 (ix86_expand_binary_operator): Remove reload_in_progress checks.
27064 (ix86_expand_unary_operator): Ditto.
27065 * config/i386/predicates.md (index_register_operand): Ditto.
27067 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
27069 * reorg.c (try_merge_delay_insns): Improve correctness checking
27070 for targets with multiple delay slots.
27072 2015-04-20 Jeff Law <law@redhat.com>
27074 PR tree-optimization/65658
27075 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
27078 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
27080 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
27081 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
27084 2015-04-20 Jakub Jelinek <jakub@redhat.com>
27087 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
27089 2015-04-20 Richard Biener <rguenther@suse.de>
27091 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
27092 * gimple-fold.c (gimple_build_valueize): New function.
27093 (gimple_build): Always use gimple_build_valueize as valueize hook.
27095 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
27098 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
27099 and overwrite variable parts if <= 1/2 the elements are variable.
27101 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
27103 PR rtl-optimization/65805
27104 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
27105 Don't use difference of offset and previous offset if
27106 update_sp_offset is non-zero.
27107 (eliminate_regs_in_insn): Ditto.
27108 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
27109 lra_eliminate_regs_1 call.
27110 * lra-constraints.c (get_equiv_with_elimination): Ditto.
27112 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
27114 * hash-table.h: Remove version of hash_table that stored value_type *.
27115 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
27116 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
27117 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
27118 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
27119 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
27120 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
27121 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
27122 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
27123 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
27124 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
27125 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
27126 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
27127 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
27128 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
27129 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
27130 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
27132 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27133 Jakub Jelinek <jakub@redhat.com>
27136 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
27137 subsequent SH_NONE operand does not overwrite an existing *special
27139 (adjust_extract): Handle case where a vec_extract operation is
27140 wrapped in a PARALLEL.
27142 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
27145 * config/i386/i386.c (ix86_binds_local_p): Define only if
27146 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
27148 2015-04-17 Jeff Law <law@redhat.com>
27150 PR tree-optimization/47679
27151 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
27152 * tree-ssa-scopedtables.c: New file.
27153 * tree-ssa-scopedtables.h: New file.
27154 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
27155 (const_and_copies): Change name/type.
27156 (record_const_or_copy): Move into tree-ssa-scopedtables.c
27157 (record_const_or_copy_1): Similarly.
27158 (restore_vars_to_original_value): Similarly.
27159 (pass_dominator::execute): Create and destroy const_and_copies table.
27160 (thread_across_edge): Update passing of const_and_copies.
27161 (record_temporary_equivalence): Use method calls rather than
27162 manipulating const_and_copies directly.
27163 (record_equality, cprop_into_successor_phis): Similarly.
27164 (dom_opt_dom_walker::before_dom_children): Similarly.
27165 (dom_opt_dom_walker::after_dom_children): Similarly.
27166 (eliminate_redundant_computations): Similarly.
27167 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
27168 (record_temporary_equivalence): Likewise.
27169 (invalidate_equivalences): Likewise.
27170 (record_temporary_equivalences_from_phis): Update due to type
27171 change of const_and_copies. Use method calls rather than
27172 manipulating the stack directly.
27173 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
27174 (thread_through_normal_block, thread_across_edge): Likewise.
27175 (thread_across_edge): Likewise.
27176 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
27177 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
27179 (identify_jump_threads): Update due to type change of equiv_stack.
27180 (finalize_jump_threads): Delete the equiv_stack when complete.
27182 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
27184 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
27185 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
27186 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
27188 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
27191 * config.gcc: Exit with a comment when we do not have a major version
27192 number for the FreeBSD target.
27194 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27197 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
27198 maybe_allows_mem bitfields.
27199 (maybe_allows_none_start, maybe_allows_none_end,
27200 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
27201 maybe_allows_mem_end): New variables.
27202 (compute_maybe_allows): New function.
27203 (add_constraint): Use it to initialize maybe_allows_reg and
27204 maybe_allows_mem fields.
27205 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
27206 is_address constraints such that those that allow neither mem nor
27207 reg come first, then those that only allow reg but not mem, then
27208 those that only allow mem but not reg, then the rest.
27209 (write_allows_reg_mem_function): New function.
27210 (write_tm_preds_h): Call it.
27211 * stmt.c (parse_output_constraint, parse_input_constraint): Use
27212 the generated insn_extra_constraint_allows_reg_mem function
27213 instead of always setting *allows_reg = true; *allows_mem = true;
27214 for unknown extra constraints.
27216 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
27219 * output.h (default_binds_local_p_3): New.
27220 * varasm.c (default_binds_local_p_3): Make it public. Take an
27221 argument to indicate if common symbol may be local. If common
27222 symbol may be local, treat non-external variable as defined
27224 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
27225 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
27226 * config/i386/i386.c (ix86_binds_local_p): New.
27227 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
27228 ix86_binds_local_p.
27230 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27233 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
27234 trying mem_loc_descriptor on XEXP (rtl, 0).
27236 2015-04-17 Martin Liska <mliska@suse.cz>
27238 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
27239 Release symbol_compare_collection.
27240 * ipa-reference.c: Add TODO that a vector should be released.
27242 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
27245 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
27246 to new AVR-LibC file layout (bug #44574).
27247 (*avrlibc_devicelib): Same.
27248 * config/avr/avr-mcus.def: Adjust comments.
27249 * config/avr/avr.opt (nodevicelib): Adjust help.
27251 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
27253 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
27255 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
27258 * gimplify.c (gimplify_init_constructor): Always emit a
27259 side-effecting constructor.
27261 2015-04-17 Tom de Vries <tom@codesourcery.com>
27263 PR tree-optimization/64950
27264 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
27265 in cfun->curr_properties.
27266 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
27267 if we generate an IFN_VA_ARG.
27268 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
27269 function if PROP_gimple_lva is not set in src function.
27271 2015-04-17 Tom de Vries <tom@codesourcery.com>
27272 Michael Matz <matz@suse.de>
27274 PR tree-optimization/64950
27275 * gimple-iterator.c (update_modified_stmts): Remove static.
27276 * gimple-iterator.h (update_modified_stmts): Declare.
27277 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
27278 (gimplify_va_arg_internal): New function.
27279 (gimplify_va_arg_expr): Use IFN_VA_ARG.
27280 * gimplify.h (gimplify_va_arg_internal): Declare.
27281 * internal-fn.c (expand_VA_ARG): New unreachable function.
27282 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
27283 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
27284 (expand_ifn_va_arg): New function.
27285 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
27286 (pass_stdarg::execute): Call expand_ifn_va_arg.
27287 (pass_data_lower_vaarg): New pass_data.
27288 (pass_lower_vaarg): New gimple_opt_pass.
27289 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
27290 (make_pass_lower_vaarg): New function.
27291 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
27292 properties_required field.
27293 * passes.def (all_passes): Add pass_lower_vaarg.
27294 * tree-pass.h (PROP_gimple_lva): Add define.
27295 (make_pass_lower_vaarg): Declare.
27297 2015-04-17 Tom de Vries <tom@codesourcery.com>
27299 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
27300 * calls.c (call_expr_flags): Same.
27302 2015-04-17 Tom de Vries <tom@codesourcery.com>
27304 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
27305 (pass_stdarg::execute): ... here.
27307 2015-04-17 Tom de Vries <tom@codesourcery.com>
27308 Michael Matz <matz@suse.de>
27310 * tree-cfg.c (make_blocks_1): Factor out of ...
27311 (make_blocks): ... here.
27312 (make_edges_bb): Factor out of ...
27313 (make_edges): ... here.
27314 (gimple_find_sub_bbs): New function.
27315 * tree-cfg.h (gimple_find_sub_bbs): Declare.
27317 2015-04-17 Tom de Vries <tom@codesourcery.com>
27319 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
27321 2015-04-17 Yury Gribov <y.gribov@samsung.com>
27323 * asan.c (set_sanitized_sections): New function.
27324 (section_sanitized_p): Ditto.
27325 (asan_protect_global): Optionally sanitize user-defined
27327 * asan.h (set_sanitized_sections): Declare new function.
27328 * common.opt (fsanitize-sections): New option.
27329 * doc/invoke.texi (-fsanitize-sections): Document new option.
27330 * opts-global.c (handle_common_deferred_options): Handle new
27333 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27336 * dwarf2out.c (loc_list_from_tree): Return NULL
27337 for DEBUG_EXPR_DECL.
27339 2015-04-17 Christian Bruel <christian.bruel@st.com>
27341 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
27344 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27346 * ira-color.c (setup_left_conflict_sizes_p): Do not process
27347 node itself when computing left conflict subnode size.
27349 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
27351 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
27352 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
27353 *fop_<mode>_1_sse using enabled attribute. Use
27354 register_mixssei387nonimm_operand operand 1 predicate. Change
27355 alternative 3 constraints from "x" to "v".
27357 2015-04-16 Richard Biener <rguenther@suse.de>
27359 PR tree-optimization/65774
27360 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
27361 bit-value tracking on.
27363 2015-04-16 Richard Biener <rguenther@suse.de>
27365 PR tree-optimization/64277
27366 * tree-vrp.c (check_array_ref): Fix anti-range handling,
27367 simplify upper bound handling.
27368 (search_for_addr_array): Simplify.
27369 (check_array_bounds): Handle ADDR_EXPRs here.
27370 (check_all_array_refs): Simplify.
27372 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
27374 * config/i386/i386.c (print_reg): Rewrite function.
27376 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27378 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
27379 Invert the condition.
27381 2015-04-16 Renlin Li <renlin.li@arm.com>
27383 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
27384 simplifications for UNSIGNED_FLOAT.
27386 2015-04-16 Nick Clifton <nickc@redhat.com>
27388 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
27390 (enum rl78_cpu_type): New.
27391 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
27392 (umulhi3_shift_virt): Remove m constraint from operand 1.
27393 (umulqihi3_virt): Likewise.
27394 * config/rl78/rl78.c (rl78_option_override): Add code to process
27395 -mcpu and -mmul options.
27396 (rl78_alloc_physical_registers): Add code to handle divhi and
27397 divsi valloc attributes.
27398 (set_origin): Likewise.
27399 * config/rl78/rl78.h (RL78_MUL_G14): Define.
27400 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
27401 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
27403 (ASM_SPEC): Pass -mcpu on to assembler.
27404 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
27405 (mulqi3_rl78): Likewise.
27406 (mulhi3_g13): Likewise.
27407 (mulhi3): Generate the G13 or G14 versions of the insn directly.
27408 (mulsi3): Likewise.
27409 (mulhi3_g14): Add clobbers of AX and BC.
27410 (mulsi3_g14): Likewise.
27411 (mulsi3_g13): Likewise.
27412 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
27413 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
27414 * config/rl78/rl78.opt (mmul): Initialise value to
27416 (mcpu): New option.
27417 (m13, m14, mrl78): New option aliases.
27418 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
27419 (MULTILIB_DIRNAMES): Add g13 and g14.
27420 * doc/invoke.texi: Document -mcpu and -mmul options.
27422 2015-04-16 Richard Biener <rguenther@suse.de>
27424 * tree-ssa-ccp.c (likely_value): See if we have operands that
27425 are marked as never simulate again and return CONSTANT in this
27427 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
27428 not have any operands that will be simulated again as
27429 not being simulated again.
27431 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
27433 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
27434 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
27435 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
27437 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
27439 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
27440 *float<SWI48:mode><MODEF:mode>2_sse.
27441 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
27443 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
27446 2015-04-15 Tom de Vries <tom@codesourcery.com>
27449 * function.c (push_dummy_function): New function.
27450 (init_dummy_function_start): Use push_dummy_function.
27451 (pop_dummy_function): New function. Factored out of ...
27452 (expand_dummy_function_end): ... here.
27453 * function.h (push_dummy_function, pop_dummy_function): Declare.
27454 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
27455 pop_dummy_function.
27456 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
27458 2015-04-15 Jeff Law <law@redhat.com>
27460 PR tree-optimization/47679
27461 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
27462 need for forward declaration in upcoming changes.
27463 (record_conditions, record_edge_info): Likewise.
27465 PR rtl-optimization/42522
27466 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
27467 SIGN_EXTRACT as a whole object rather than simplifying
27470 2015-04-15 Jakub Jelinek <jakub@redhat.com>
27473 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
27474 and GIMPLE_PREDICT use break instead of return true. For
27475 GIMPLE_EH_DISPATCH, compare dispatch region.
27477 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
27479 * doc/extend.texi (__sync Builtins): Simplify some text. Update
27480 details about the implementation. Make clear preference for
27481 __atomic builtins. Reduce possibility of future change.
27483 2015-04-15 Nick Clifton <nickc@redhat.com>
27485 * config/rx/rx.opt (mallow-string-insns): New option.
27486 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
27487 builtin if string instructions are denied.
27488 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
27489 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
27491 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
27492 * config/rx/rx.md (movstr): Enable pattern only if string
27493 instructions are allowed.
27494 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
27495 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
27496 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
27497 (MULTILIB_DIRNAMES): Add no-strings.
27498 * doc/invoke.texi: Document -mno-allow-string-insns.
27500 2015-04-15 Alan Modra <amodra@gmail.com>
27504 PR middle-end/36043
27505 * calls.c (load_register_parameters): Don't load past end of
27506 mem unless suitably aligned.
27508 2015-04-15 Nick Clifton <nickc@redhat.com>
27510 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
27511 decrement instruction as being frame related.
27512 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
27514 If zero extending a function address enclose the operation in
27516 (rl78_preferred_reload_class): New function.
27517 (TARGET_PREFERRED_RELOAD_CLASS): Define.
27518 * config/rl78/rl78.md: Remove useless constraints in expanders.
27519 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
27520 (mulhi3_rl78): Likewise.
27521 (mulhi3_g13): Likewise.
27522 (mulsi3_rl78): Likewise.
27523 (es_addr): Move to before the multiply patterns.
27525 2015-04-15 Alan Modra <amodra@gmail.com>
27527 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
27528 and sequence_stack. Add seq.
27529 (seq_stack): Delete.
27530 * function.c (prepare_function_start): Don't access x_last_insn.
27531 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
27532 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
27533 * emit_rtl.c (start_sequence, push_topmost_sequence,
27534 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
27535 sequence accessors.
27536 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
27537 remove_insn): Likewise. Simplify.
27538 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
27539 and pop_topmost_sequence.
27540 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
27542 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
27544 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
27547 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
27550 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27552 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
27553 (LEGACY_INT_REGNO_P): Ditto.
27554 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
27555 (ANY_MASK_REG_P): Remove.
27556 (BND_REG_P): Rename from ANY_BND_REG_P.
27557 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
27558 legacy integer registers. Do not handle MMX_REG_P in a special way.
27559 Merge 64byte and 32byte SSE handling.
27561 2015-04-14 Nick Clifton <nickc@redhat.com>
27563 * expr.c (expand_assignment): Force an address offset computation
27564 into a register before changing its mode.
27565 (expand_expr_real_1): Likewise.
27567 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
27569 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
27570 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
27571 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
27572 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
27573 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
27574 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
27575 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
27576 and __aarch64_vget_lane_any.
27578 2015-04-14 Jakub Jelinek <jakub@redhat.com>
27580 PR rtl-optimization/65761
27581 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
27582 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
27584 2015-04-14 Richard Biener <rguenther@suse.de>
27586 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
27587 (graphite_can_represent_scev): Use POINTER_TYPE_P.
27589 2015-04-14 Richard Biener <rguenther@suse.de>
27591 PR tree-optimization/65758
27592 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
27594 (ccp_lattice_meet): Likewise.
27595 (bit_value_unop): Likewise.
27596 (bit_value_binop): Likewise.
27597 (bit_value_assume_aligned): Likewise.
27599 2015-04-14 Christian Bruel <christian.bruel@st.com>
27601 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
27604 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
27606 PR tree-optimization/63387
27607 * match.pd ((x unord x) | (y unord y) -> (x unord y),
27608 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
27610 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27612 * config/i386/predicates.md (any_QIreg_operand): Rename from
27613 q_regs_operand. Do not process subregs.
27614 (QIreg_operand): Use QI_REGNO_P predicate.
27615 (ext_QIreg_operand): Ditto.
27616 (ext_register_operand): Ditto.
27617 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
27618 (AND splitters): Ditto.
27619 (AND with -65536 splitter): Add SWI48 mode for operand 0.
27620 (AND with -256 splitter): Use any_QIreg_operand predicate and
27621 SWI248 mode for operand 0.
27622 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
27623 mode for operand 0.
27624 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
27626 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
27628 * doc/plugins.texi: Rewrite first introductory paragraph.
27630 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27632 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
27633 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
27635 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27637 * ipa-profie.c (ipa_profile): Check number of parameters
27638 and possible polymorphic call targets before
27641 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
27643 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
27644 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
27646 2015-04-13 Richard Biener <rguenther@suse.de>
27648 PR tree-optimization/65204
27649 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
27650 takens for bit-CCP.
27652 2015-04-13 Richard Biener <rguenther@suse.de>
27655 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
27656 and cond_not_taken_branch_cost to 4 and 2.
27657 (bdver2_cost): Likewise.
27658 (bdver3_cost): Likewise.
27659 (bdver4_cost): Likewise.
27661 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27663 * hash-table.h (hash_table constructor): Add mem stats.
27664 (alloc_entries): Likewise.
27666 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27668 * ipa-cp.c (ipcp_driver): Relase prev_edge.
27669 * passes.c (execute_one_pass): Only add transform if pass has one.
27671 2015-04-12 Joseph Myers <joseph@codesourcery.com>
27673 * config/i386/i386.c (ix86_option_override_internal): Don't set
27674 -fprefetch-loop-arrays if optimizing for size.
27676 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27677 Gerald Pfeifer <gerald@pfeifer.com>
27679 * doc/contrib.texi (Contributors): Add Martin Jambor and
27682 2015-04-12 Jakub Jelinek <jakub@redhat.com>
27684 * BASE-VER: Set to 6.0.0.
27686 PR tree-optimization/65747
27687 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
27688 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
27690 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27692 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
27693 sentence. Improve grammar.
27695 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27697 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
27699 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27702 * ipa-inline-transform.c (speculation_removed): Remove static var.
27703 (check_speculations): New function.
27704 (clone_inlined_nodes): Do not check spculations.
27705 (inline_call): Call check_speculations.
27706 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
27707 consider non-invariants.
27709 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27710 Martin Liska <mliska@suse.cz>
27713 * ipa-icf.c (sem_item::compare_cgraph_references): function and
27714 variable can not match.
27715 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
27716 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
27718 2015-04-11 Jakub Jelinek <jakub@redhat.com>
27720 PR tree-optimization/65735
27721 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
27722 Remove visited_phis argument, add visited_bbs, avoid recursing into the
27723 same bb rather than just into the same phi node.
27724 (thread_through_normal_block): Adjust caller.
27726 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27728 * doc/contrib.texi (Contributors): Add Ira Rosen.
27730 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
27732 * gcov.c (find_source): Fix miswording in error message.
27733 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
27734 (ix86_expand_sse_comi_round): Fix typo in error message.
27736 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27738 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
27740 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
27742 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
27744 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27747 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
27748 Print bad_spills_num and insn_pseudos_num.
27750 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27753 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
27754 when creating +1 values for SImode.
27756 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27759 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
27762 2015-04-10 Jakub Jelinek <jakub@redhat.com>
27763 Iain Sandoe <iain@codesourcery.com>
27766 * configure: Regenerate.
27768 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27771 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
27773 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
27775 * doc/contrib.texi (Contributors): Add John Marino.
27777 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27779 PR tree-optimization/65709
27780 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
27781 TREE_TYPE (TREE_TYPE (t)).
27783 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
27786 * lra-int.h (lra_bad_spill_regno_start): New.
27787 * lra.c (lra_bad_spill_regno_start): New.
27788 (lra): Set up lra_bad_spill_regno_start. Set up
27789 lra_constraint_new_regno_start unconditionally.
27790 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
27793 2015-04-09 Marek Polacek <polacek@redhat.com>
27794 Jakub Jelinek <jakub@redhat.com>
27796 PR middle-end/65554
27797 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
27798 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
27801 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
27803 PR rtl-optimization/65693
27804 * combine.c (is_parallel_of_n_reg_sets): Move outside of
27807 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
27810 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
27811 device specs file if "device-specs%s" didn't resolve to a path.
27813 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27816 * config/i386/i386.c (fixup_modeless_constant): New.
27817 (ix86_expand_args_builtin): Fixup modeless constant operand.
27818 (ix86_expand_round_builtin): Ditto.
27819 (ix86_expand_special_args_builtin): Ditto.
27820 (ix86_expand_builtin): Ditto.
27822 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27825 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
27826 any pow2 integer in between 2 and 0x80000000U inclusive.
27828 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
27830 PR rtl-optimization/65693
27831 * combine.c (is_parallel_of_n_reg_sets): Change first argument
27832 from an rtx_insn * to an rtx.
27833 (try_combine): Adjust both callers. Use it once more.
27835 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27837 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
27838 (chkp_make_static_const_bounds): Search existing
27839 symbol by assembler name. Use make_decl_one_only.
27840 (chkp_get_zero_bounds_var): Remove node search which
27841 is now performed in chkp_make_static_const_bounds.
27842 (chkp_get_none_bounds_var): Likewise.
27844 2015-04-08 Michael Witten <mfwitten@gmail.com>
27846 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
27849 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27851 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
27853 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
27855 * doc/extend.texi (__sync Builtins): Fix grammar.
27857 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27859 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
27861 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27863 * varasm.c (emit_local): Move definition of align.
27865 2015-04-08 Julian Brown <julian@codesourcery.com>
27867 * config/nvptx/mkoffload.c (process): Support variable mapping.
27869 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
27871 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
27873 (alpha_write_one_linkage): Correct typo.
27875 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27877 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
27879 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
27881 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
27883 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27885 * tree-chkp.h (chkp_insert_retbnd_call): New.
27886 * tree-chkp.c (chkp_insert_retbnd_call): New.
27887 * ipa-split.c (insert_bndret_call_after): Remove.
27888 (split_function): Use chkp_insert_retbnd_call.
27889 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
27890 bounds for instrumented functions.
27892 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
27895 * calls.c (initialize_argument_information): When producing tail
27896 call also turn SSA_NAMES passed by references to original PARM_DECLs
27898 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
27901 * lra-remat.c (do_remat): Process input and non-input insn
27902 registers separately.
27904 2015-04-07 Jakub Jelinek <jakub@redhat.com>
27907 * valtrack.c (debug_lowpart_subreg): New function.
27908 (dead_debug_insert_temp): Use it.
27910 PR middle-end/65680
27911 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
27912 into signed HOST_WIDE_INT the same as negative bit_offset.
27914 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
27916 * ipa-comdats.c (ipa_comdats): Visit all thunks
27917 to set proper comdat group.
27919 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27922 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
27923 on constants for NEON VSTRUCT modes.
27925 2015-04-07 Jakub Jelinek <jakub@redhat.com>
27926 Iain Sandoe <iain@codesourcery.com>
27929 * configure: Regenerate.
27931 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27934 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
27935 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
27936 that LFD is used to load double constants instead of LFS. Add
27937 defaults for all costs structures. Add comments for missing
27938 initialization fields.
27939 (size32_cost): Likewise.
27940 (size64_cost): Likewise.
27941 (rs64a_cost): Likewise.
27942 (mpccore_cost): Likewise.
27943 (ppc403_cost): Likewise.
27944 (ppc405_cost): Likewise.
27945 (ppc440_cost): Likewise.
27946 (ppc476_cost): Likewise.
27947 (ppc601_cost): Likewise.
27948 (ppc603_cost): Likewise.
27949 (ppc604_cost): Likewise.
27950 (ppc604e_cost): Likewise.
27951 (ppc620_cost): Likewise.
27952 (ppc630_cost): Likewise.
27953 (ppccell_cost): Likewise.
27954 (ppc750_cost): Likewise.
27955 (ppc7450_cost): Likewise.
27956 (ppc8540_cost): Likewise.
27957 (ppce300c2c3_cost): Likewise.
27958 (ppce500mc_cost): Likewise.
27959 (ppce500mc64_cost): Likewise.
27960 (ppce5500_cost): Likewise.
27961 (ppce6500_cost): Likewise.
27962 (titan_cost): Likewise.
27963 (power4_cost): Likewise.
27964 (power6_cost): Likewise.
27965 (power7_cost): Likewise.
27966 (power8_cost): Likewise.
27967 (ppca2_cost): Likewise.
27968 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
27970 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
27971 instead of XXLOR to copy SFmode to clear out dirty bits created
27972 when SFmode denormals are generated.
27973 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
27974 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
27976 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
27978 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
27979 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
27980 * config/aarch64/aarch64-tune.md: Regenerate.
27982 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
27984 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
27985 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
27986 * config/arm/arm-cores.def (exynos-m1): New core.
27987 * config/arm/arm-tune.md: Regenerate.
27988 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
27989 * config/arm/bpabi.h: Likewise.
27991 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
27993 * ipa-cp (set_single_call_flag): Remove too
27994 restrictive assert.
27996 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
27998 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
27999 GOMP_offload_unregister from the destructor.
28001 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
28003 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
28004 flags for instrumentation thunk.
28005 (chkp_produce_thunks): Likewise.
28007 2015-04-05 Martin Liska <mliska@suse.cz>
28010 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
28011 has computed data structure.
28012 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28014 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
28016 * invoke.texi (inline-unit-growth): Increase growth to 20%
28017 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
28019 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
28022 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
28024 (lra_rematerialization_iter): New.
28025 * lra.c (lra): Initialize lra_rematerialization_iter.
28026 Stop updating lra_constraint_new_regno_start after switching of
28027 inheritance and rematerialization.
28028 * lra-remat.c (lra_rematerialization_iter): New.
28029 (lra_remat): Add printing pass iteration. Do rematerialization
28030 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
28032 2015-04-04 Richard Biener <rguenther@suse.de>
28034 PR tree-optimization/64909
28035 PR tree-optimization/65660
28036 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
28037 to take a cost vector for scalar iteration cost.
28038 (vect_get_single_scalar_iteration_cost): Likewise.
28039 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
28040 Compute the scalar iteration cost into a cost vector.
28041 (vect_get_known_peeling_cost): Use the scalar cost vector to
28042 account for the cost of the peeled iterations.
28043 (vect_estimate_min_profitable_iters): Likewise.
28044 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
28047 2015-04-04 Alan Modra <amodra@gmail.com>
28051 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
28052 0.0 constant unless TARGET_VSX.
28053 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
28056 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28059 * ipa-inline-transform.c (inline_call): Skip sanity check to work
28062 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28065 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
28066 speculative indirect edges to avoid ordering issue.
28068 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28071 * ipa-inline.c (edge_badness): Add combined size to the denominator.
28073 2015-04-03 Jakub Jelinek <jakub@redhat.com>
28075 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
28076 TYPE_ARTIFICIAL on the .omp_data* types.
28078 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28080 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
28081 instrumentation thunks.
28083 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28085 * config/i386/i386.c (ix86_expand_call): Avoid nested
28086 PARALLEL in returned call value.
28088 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28090 * lto-cgraph.c (input_cgraph_1): Always link instrumented
28091 assembler name with original one.
28093 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28095 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
28097 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28099 Revert parts of r216820.
28100 * config/i386/i386.md (movqi_internal): Correct type calculation
28101 for alternatives 3 and 5.
28103 2015-04-02 Jakub Jelinek <jakub@redhat.com>
28105 PR preprocessor/61977
28106 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
28107 predefine __vector/__bool/__pixel macros nor context sensitive
28108 macros for CLK_ASM.
28109 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
28111 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
28113 * config/pa/pa.c (pa_output_move_double): Directly handle register
28114 indexed memory operand. Simplify handling of scaled register indexed
28117 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28120 * config/i386/linux-common.h (MPX_SPEC): New.
28121 (CHKP_SPEC): Add MPX_SPEC.
28122 * doc/invoke.texi (-fcheck-pointer-boudns): Document
28123 possible issues with '-z bndplt' support in linker.
28125 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28127 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
28128 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
28129 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
28130 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
28131 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
28133 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
28135 * config/i386/sync.md (UNSPEC_MOVA): Remove.
28136 (atomic_load<mode>): Change operand 0 predicate to
28137 nonimmediate_operand and fix up the destination when needed.
28139 (atomic_loaddi_fpu): Use UNSPEC_LDA.
28140 (atomic_store<mode>): Change operand 1 predicate to
28141 nonimmendate_operand and move the source to register when needed.
28143 (atomic_store<mode>_1): Use UNSPEC_STA.
28144 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
28145 Fix moves from memory operand. Use UNSPEC_STA.
28147 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
28149 * expmed.c (strict_volatile_bitfield_p): Check that the access will
28150 not cross a MODESIZE boundary.
28151 (store_bit_field, extract_bit_field): Added assertions in the
28152 strict volatile bitfields code path.
28154 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
28157 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
28158 Increase args array size by one to avoid buffer overflow.
28160 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
28162 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
28164 * ipa-inline.c (edge_badness): Add wrapper penalty.
28165 (sum_callers): Move up.
28166 (inline_small_functions): Set single_caller.
28167 * ipa-inline.h (inline_summary): Add single_caller.
28168 * ipa-split.c (split_function): Set split_part.
28169 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
28170 * cgraph.h (cgraph_node): Add split_part.
28172 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
28175 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
28176 Do not split operands 0 and operands 2 to halfmode.
28177 (atomic_compare_and_swap<mode>): Update for
28178 atomic_compare_and_swap<dwi>_doubleword changes.
28180 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
28182 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
28183 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
28184 no caching is done.
28186 2015-03-31 Martin Liska <mliska@suse.cz>
28189 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
28190 has already filled up function summary.
28191 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28193 2015-03-31 Richard Biener <rguenther@suse.de>
28195 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
28198 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
28200 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
28202 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
28203 (s390_asm_output_function_label): Adapt to new signature of
28204 s390_function_num_hotpatch_hw
28205 Optimise the code generating assembler output.
28206 Add comments to assembler file.
28208 2015-03-31 Richard Biener <rguenther@suse.de>
28210 PR middle-end/65626
28211 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
28212 of the noreturn call so it is last and cleanup_control_flow_bb
28213 can do the CFG part.
28215 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
28218 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
28219 same_comdat_group for external symbols.
28220 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
28221 infinite same_comdat_group traversal loop.
28223 2015-03-31 Jakub Jelinek <jakub@redhat.com>
28226 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
28227 automatically to $headers.
28229 2015-03-30 Jakub Jelinek <jakub@redhat.com>
28232 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
28233 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
28235 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
28237 * ipa-prop.c (param_type_may_change_p): Likewise.
28238 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
28239 (remove_unused_scope_block_p): Add in_ctor_dtor_block
28240 argument. Before inlining, preserve
28241 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
28242 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
28244 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
28246 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28249 * ipa-inline.c (edge_badness): Base denominator on callee's
28252 2015-03-27 Martin Jambor <mjambor@suse.cz>
28255 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
28256 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
28257 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
28258 node_calling_single_call.
28259 * ipa-cp.c (count_callers): New function.
28260 (set_single_call_flag): Likewise.
28261 (initialize_node_lattices): Count callers and set single_flag_call if
28263 (incorporate_penalties): New function.
28264 (good_cloning_opportunity_p): Use it, dump new flags.
28265 (propagate_constants_topo): Set node_within_scc flag if appropriate.
28266 * doc/invoke.texi (ipa-cp-recursion-penalty,
28267 ipa-cp-single-call-pentalty): Document.
28269 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28272 * symtab.c (symtab_node::get_partitioning_class): Register vars
28274 * varpool.c (symbol_table::output_variables) Do not assemble unefined
28275 decls for non-symbols.
28277 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
28280 * output.h (default_binds_local_p_2): New.
28281 * varasm.c (default_binds_local_p_2): Renamed to ...
28282 (default_binds_local_p_3): This. Don't return true on protected
28283 data symbol if protected data may be external.
28284 (default_binds_local_p): Use default_binds_local_p_3.
28285 (default_binds_local_p_1): Likewise.
28286 (default_binds_local_p_2): New.
28287 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
28288 default_binds_local_p_2 if TARGET_MACHO is undefined.
28290 2015-03-27 Jakub Jelinek <jakub@redhat.com>
28293 * config/i386/i386.c (legitimize_pic_address): If base
28294 is SYMBOL_REF or LABEL_REF using %rip addressing, force
28295 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
28297 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28300 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
28303 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28306 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
28307 of optimized out indirect call.
28308 (redirect_to_unreachable): Always build symbol table node for
28309 BUILT_IN_UNREACHABLE
28311 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
28314 * ira-costs.c (record_reg_classes): Process all constraint string
28317 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
28319 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
28323 * config/c6x/constraints.md (S3): New constraint.
28324 * config/c6x/c6x.md (real_jump): Use it.
28326 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28328 PR middle-end/65595
28329 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
28330 do redirection if the call is not optimized out.
28332 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
28335 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
28336 (fchkp-check-incomplete-type): Add LTO.
28337 (fchkp-zero-input-bounds-for-main): Likewise.
28338 (fchkp-first-field-has-own-bounds): Likewise.
28339 (fchkp-narrow-bounds): Likewise.
28340 (fchkp-narrow-to-innermost-array): Likewise.
28341 (fchkp-use-static-bounds): Likewise.
28342 (fchkp-use-static-const-bounds): Likewise.
28343 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28345 2015-03-27 Marek Polacek <polacek@redhat.com>
28347 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
28349 2015-03-27 Marek Polacek <polacek@redhat.com>
28352 * ubsan.c (ubsan_create_edge): New function.
28353 (instrument_bool_enum_load): Call it.
28354 (instrument_nonnull_arg): Likewise.
28355 (instrument_nonnull_return): Likewise.
28356 (instrument_object_size): Likewise.
28358 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28360 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
28363 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28366 * lto-streamer.h (class lto_location_cache): New.
28367 (struct data_in): Add location_cache.
28368 (lto_input_location): Update prototype.
28369 (stream_input_location_now): New.
28370 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
28371 pointer to location.
28372 (stream_input_location): Update.
28373 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
28374 (warn_odr): Apply location cache before warning.
28375 (lto_input_location): Update prototype.
28376 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
28377 Use stream_input_location_now.
28378 * lto-streamer-in.c (lto_location_cache::current_cache): New static
28380 (lto_location_cache::cmp_loc): New function.
28381 (lto_location_cache::apply_location_cache): New function.
28382 (lto_location_cache::accept_location_cache): New function.
28383 (lto_location_cache::revert_location_cache): New function.
28384 (lto_location_cache::input_location): New function.
28385 (lto_input_location): Do location caching.
28386 (stream_input_location_now): New function.
28387 (input_eh_region, input_struct_function_base): Use
28388 stream_input_location_now.
28389 (lto_data_in_create): use new.
28390 (lto_data_in_delete): Use delete.
28391 * tree-streamer-in.c (unpack_ts_block_value_fields,
28392 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
28393 lto_input_ts_exp_tree_pointers): Update for cached location api.
28395 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28398 * passes.def: Add pass_nothrow.
28399 * ipa-pure-const.c: (pass_data_nothrow): New.
28400 (pass_nothrow): New.
28401 (pass_nothrow::execute): New.
28402 (make_pass_nothrow): New.
28403 * tree-pass.h (make_pass_nothrow): Declare.
28405 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28407 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
28408 edge to change by speculation resolution or redirection.
28409 (edge_set_predicate): Likewise.
28410 (inline_summary_t::duplicate): Likewise.
28411 (remap_edge_summaries): Likewise.
28413 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28415 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
28417 (can_inline_edge_p): Relax option matching for always inline functions.
28419 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
28422 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
28423 Check operand 4 and operand 0 for equality.
28424 (avx512f_vextract<shuffletype>32x4_1_maskm):
28425 Check operand 6 and operand 0 for equality.
28426 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
28428 (vec_extract_hi_<mode>_maskm): Ditto.
28430 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28432 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
28433 dead calls back to live.
28434 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
28436 (cgraph_node::verify_node): ... here; verify only callee edges,
28438 * cif-code.def (CILK_SPAWN): New code.
28440 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28442 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
28443 (edge_set_predicate): Use it to mark unreachable edges.
28444 (inline_summary_t::duplicate): Remove unnecesary code.
28445 (remap_edge_summaries): Likewise.
28446 (dump_inline_summary): Report contains_cilk_spawn.
28447 (compute_inline_parameters): Compute contains_cilk_spawn.
28448 (inline_read_section, inline_write_summary): Stream
28449 contains_cilk_spawn.
28450 * ipa-inline.c (can_inline_edge_p): Do not touch
28451 DECL_STRUCT_FUNCTION that may not be available;
28452 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
28453 remove check for callee_fun->can_throw_non_call_exceptions and
28454 replace it by optimization attribute check; check for flag_exceptions.
28455 * ipa-inline-transform.c (inline_call): Maintain
28456 DECL_FUNCTION_PERSONALITY
28457 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
28459 2015-03-26 Jakub Jelinek <jakub@redhat.com>
28461 PR tree-optimization/65551
28462 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
28463 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
28465 2015-03-26 Richard Biener <rguenther@suse.de>
28467 PR middle-end/65555
28468 * tree-cfg.c (verify_gimple_call): Do not require a call to
28469 have no LHS if it wasn't recognized as control altering yet.
28471 2015-03-26 Jakub Jelinek <jakub@redhat.com>
28473 PR tree-optimization/64715
28474 * passes.def: Add another instance of pass_object_sizes before ccp1.
28475 * tree-object-size.c (pass_object_sizes::execute): In
28476 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
28477 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
28478 __bos result and the computed constant. Remove redundant
28479 checks, obsoleted by gimple_call_builtin_p test.
28481 * var-tracking.c (variable_tracking_main_1): Don't track
28482 variables for targetm.no_register_allocation targets.
28484 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
28486 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
28487 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
28489 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
28492 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
28493 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
28494 0.0 is correctly setup.
28495 (extenddftf2_internal): Likewise.
28497 2015-03-25 Sebastian Pop <s.pop@samsung.com>
28499 PR tree-optimization/65177
28500 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
28502 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
28503 edges not adjacent on the path to the original code.
28505 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
28508 * doc/install.texi (Building a native compiler): Document new
28509 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
28510 configuration assumes that the host supports the linker plugin.
28512 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
28515 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
28516 chain for generated call.
28518 2015-03-25 Richard Biener <rguenther@suse.de>
28520 * passes.c (pass_manager::execute_early_local_passes): Guard
28521 execution of pass_chkp_instrumentation_passes with
28522 flag_check_pointer_bounds.
28523 (pass_chkp_instrumentation_passes::gate): Likewise.
28525 2015-03-25 Martin Liska <mliska@suse.cz>
28527 PR tree-optimization/65538
28528 * symbol-summary.h (function_summary::~function_summary):
28529 Relese memory for allocated summaries.
28530 (function_summary::release): New function.
28532 2015-03-25 Jakub Jelinek <jakub@redhat.com>
28535 * lto-streamer-out.c (DFS::worklist): New struct.
28536 (DFS::worklist_vec): New data member.
28537 (DFS::next_dfs_num): Remove.
28538 (DFS::DFS): Rewritten using worklist instead of recursion,
28539 using most of code from DFS::DFS_write_tree.
28540 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
28541 pass it to DFS_write_tree calls.
28542 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
28543 quick initial checks push it into worklist_vec and return.
28545 2015-03-25 Richard Biener <rguenther@suse.de>
28547 PR middle-end/65519
28548 * genmatch.c (expr::gen_transform): Re-write to avoid
28549 using gimple_build.
28551 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28553 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
28555 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28557 * config/arm/arm.opt (print_tune_info): New option.
28558 * config/arm/arm.c (arm_print_tune_info): New function.
28559 (arm_file_start): Call arm_print_tune_info.
28560 * config/arm/arm-protos.h (struct tune_params): Add comment.
28561 * doc/invoke.texi (@item -mprint-tune-info): New item.
28562 (-mtune): mention it in ARM Option Summary.
28564 2015-03-25 DJ Delorie <dj@redhat.com>
28566 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
28569 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
28570 Martin Liska <mliska@suse.cz>
28572 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
28573 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
28574 (sem_item::add_type): New function.
28575 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
28576 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
28577 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
28578 (sem_function::equals_wpa): Fix typo.
28579 * ipa-icf.h (sem_item::add_type): New function.
28580 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
28583 2015-03-24 Jakub Jelinek <jakub@redhat.com>
28585 PR tree-optimization/65533
28586 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
28587 with swapped operands, call vect_free_slp_tree on
28588 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
28591 2015-03-24 Richard Biener <rguenther@suse.de>
28593 PR middle-end/65517
28594 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
28595 for fixup if necessary.
28597 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
28599 * doc/extend.texi (Function Attributes): Add @cindex entries
28600 for all attributes and regularize their format. Delete text
28601 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
28602 information about "eightbit_data", "tiny_data", and "model"
28603 variable attributes to the Variable Attributes section. Fix
28604 some obvious typos and copy-editing issues.
28605 (Variable Attributes, Type Attributes): Likewise add/fix
28606 @cindex entries for all attributes.
28608 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28611 * tree-chkp.c (chkp_build_returned_bound): Ignore
28612 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
28614 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
28617 * config/sh/predicates.md (simple_mem_operand,
28618 displacement_mem_operand): Add test for reg.
28619 (short_displacement_mem_operand): Test for displacement_mem_operand
28620 before invoking sh_disp_addr_displacement.
28621 * config/sh/constraints.md (Sdd, Sra): Simplify.
28622 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
28623 Remove redundant displacement_mem_operand tests.
28625 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
28628 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
28629 the same -mmcu=MCU more than once.
28631 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28634 * ipa-devirt.c: Remove duplicate demangle.h include.
28637 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
28639 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
28640 REG_POINTER on *destptr after adjusting it for prologue size.
28643 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
28644 ultimate_alias_target ()->order ints instead of
28645 ultimate_alias_target () pointers.
28647 2015-03-23 Richard Biener <rguenther@suse.de>
28649 PR tree-optimization/65518
28650 * tree-vect-stmts.c (vectorizable_load): Reject single-element
28651 interleaving cases we generate absymal code for.
28653 2015-03-23 Richard Biener <rguenther@suse.de>
28655 PR tree-optimization/65494
28656 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
28658 (vect_analyze_slp_instance): But do that here, always and once.
28660 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28662 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
28663 adding T or multiplying by T+1 and subracting T.
28665 2015-03-22 Jeff Law <law@redhat.com>
28667 PR rtl-optimization/64317
28668 * Makefile.in (OBJS): Add gcse-common.c
28669 * gcse.c: Include gcse-common.h
28670 (struct modify_pair_s): Move structure definition to gcse-common.h
28671 (compute_transp): Move function to gcse-common.c.
28672 (canon_list_insert): Similarly.
28673 (record_last_mem_set_info): Break out some code and put it into
28674 gcse-common.c. Call into the new common code.
28675 (compute_local_properties): Pass additional arguments to compute_transp.
28676 * postreload-gcse.c: Include gcse-common.h and df.h
28677 (modify_mem_list_set, blocks_with_calls): New variables.
28678 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
28679 (get_bb_avail_insn): Pass in the expression index too.
28680 (alloc_mem): Allocate memory for the new bitmaps and lists.
28681 (free_mem): Free memory for the new bitmaps and lists.
28682 (insert_expr_in_table): Record a bitmap index for each entry we
28684 (record_last_mem_set_info): Call into common code in gcse-common.c.
28685 (get_bb_avail_insn): If no available insn was found in the requested
28686 BB. If BB has a single predecessor, see if the expression is
28687 transparent in BB and available in that single predecessor.
28688 (compute_expr_transp): New wrapper for compute_transp.
28689 (eliminate_partially_redundant_load): Pass expression's bitmap_index
28690 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
28691 (gcse_after_reload_main): If there are elements in the hash table,
28692 then compute transparency for all the elements in the hash table.
28693 * gcse-common.h: New file.
28694 * gcse-common.c: New file.
28696 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
28698 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
28700 (System Headers): Likewise.
28702 (Traditional macros): Likewise.
28703 (Invocation): Likewise.
28704 (Option Index): Likewise.
28705 * doc/cppopts.texi (-M): Likewise.
28706 (-finput-charset): Likewise.
28707 (--help): Likewise.
28708 * doc.invoke.texi (AVR Options): Likewise.
28709 (V850 Options): Likewise.
28711 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
28714 * ipa-devirt.c: Include demangle.h
28715 (odr_type_d): Add field rtti_broken.
28716 (odr_subtypes_equivalent_p): Do not require name to match.
28717 (compare_virtual_tables): Fix typo; if type already has ODR violation,
28718 bypass the tests; be ready for function referneces in vtables that are
28719 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
28720 (warn_odr): Give up for nameless types.
28721 (warn_types_mismatch): Report mismatch in mangled names;
28722 report mismatch in anonymous namespaces; look into component types to
28723 give useful error; report when mismatch is dragged in from other ODR
28725 (odr_types_equivalent_p): Match types for being polymorphic; avoid
28726 duplicated diagnostics.
28727 (add_type_duplicate): Reorder checks so more informative ones come
28728 first; fix typo; do not output "the extra base is defined here" when
28730 (BINFO_N_BASE_BINFOS): Relax sanity check.
28732 2015-03-22 Martin Liska <mliska@suse.cz>
28733 Jakub Jelinek <jakub@redhat.com>
28735 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
28736 masks that can potentially include a builtin.
28737 (ix86_add_new_builtins): Introduce fast filter for isa values
28738 that cannot trigger builtin inclusion.
28740 2015-03-22 Martin Liska <mliska@suse.cz>
28742 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
28743 (sem_item::update_hash_by_local_refs): Likewise.
28744 (sem_variable::get_hash): Empty line is fixed.
28745 (sem_item_optimizer::execute): Include adding of hash references.
28746 (sem_item_optimizer::update_hash_by_addr_refs): New function.
28747 (sem_item_optimizer::build_hash_based_classes): Use local hash.
28748 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
28749 (sem_item::update_hash_by_local_refs): Likewise.
28751 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28754 * ipa-comdats.c (enqueue_references): Walk through thunks.
28755 (ipa_comdats): Likewise.
28756 (set_comdat_group_1): New function.
28758 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28761 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
28764 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
28765 Gerald Pfeifer <gerald@pfeifer.com>
28767 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
28769 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
28770 Sandra Loosemore <sandra@codesourcery.com>
28772 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
28773 function parameter declaration.
28774 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
28775 Update arguments to nios2_adjust_call_address().
28776 (sibcall_internal): Rename from *sibcall.
28777 (sibcall_value_internal): Rename from *sibcall_value.
28778 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
28779 (nios2_large_got_address): Add target temp reg parameter.
28780 (nios2_got_address): Adjust call to nios2_large_got_address, add
28781 force_reg around it.
28782 (nios2_load_pic_address): Add target temp reg parameter, replace call
28783 to nios2_got_address with corresponding code.
28784 (nios2_legitimize_constant_address): Update call to
28785 nios2_load_pic_address.
28786 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
28787 to use temp reg for PIC loading purposes.
28788 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
28789 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
28790 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
28792 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28794 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
28795 usage of "the @option{...}".
28796 (-Wopenmp-simd): Likewise.
28797 (-fsanitize-recover): Likewise.
28798 (-fsanitize-undefined-trap-on-error): Likewise.
28800 (tracer-dynamic-coverage-feedback): Likewise.
28801 (reorder-block-duplicate-feedback): Likewise.
28802 (loop-unroll-jam-size): Likewise.
28805 (-mabs=legacy): Likewise.
28806 (-mupper-regs-df): Likewise.
28807 (-mupper-regs-sf): Likewise.
28808 (-mpointers-to-nested-functions): Likewise.
28810 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28812 * doc/extend.texi (Cilk Plus Builtins): Add markup.
28814 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28816 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
28817 additional index entries and cross-references.
28818 (-fchkp-check-incomplete-type): Likewise.
28819 (-fchkp-first-field-has-own-bounds): Likewise.
28820 (-fchkp-narrow-to-innermost-array): Likewise.
28821 (-fchkp-use-fast-string-functions): Likewise.
28822 (-fchkp-use-nochk-string-functions): Likewise.
28823 (-fchkp-use-static-const-bounds): Likewise.
28824 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28825 (-fchkp-instrument-marked-only): Likewise.
28826 (-fchkp-use-wrappers): Likewise.
28827 (-static-libmpx): Likewise.
28828 (-static-libmpxwrappers): Likewise.
28829 * doc/extend.texi (bnd_legacy): Likewise.
28830 (bnd_instrument): Likewise.
28831 (bnd_variable_size): Likewise.
28832 (Pointer Bounds Checker builtins): Likewise.
28834 2015-03-21 Tom de Vries <tom@codesourcery.com>
28836 PR tree-optimization/65458
28837 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
28838 * cgraph.h (cgraph_node): Add parallelized_function field.
28839 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
28840 (input_overwrite_node): Read parallelized_function field.
28841 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
28842 parallelized_function on cgraph_node for child_fn.
28843 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
28844 Remove include of gt-tree-parloops.h.
28845 (parallelized_functions): Remove static variable.
28846 (parallelized_function_p): Rewrite using parallelized_function field of
28848 (create_loop_fn): Remove adding to parallelized_functions.
28849 * Makefile.in (GTFILES): Remove tree-parloops.c
28851 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
28853 PR rtl-optimization/64366
28854 * lra.c (lra_update_insn_regno_info): Consider regs in
28855 CALL_INSN_FUNCTION_USAGE memory.
28857 2015-03-20 Richard Biener <rguenther@suse.de>
28859 PR middle-end/64715
28860 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
28861 for type comparison and gcc_checking_assert.
28862 (chrec_fold_plus_poly_poly): Likewise.
28863 (chrec_fold_multiply_poly_poly): Likewise.
28864 (chrec_convert_1): Likewise.
28865 * gimplify.c (gimplify_expr): Remove premature folding of
28866 &X + CST to &MEM[&X, CST].
28868 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28870 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
28872 (ipa_inline): Recompute inline_failed codes.
28873 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28874 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
28877 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
28879 PR rtl-optimization/60851
28880 * recog.c (constrain_operands): Accept a pseudo register before reload
28881 for LRA enabled targets.
28883 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
28886 * config/rs6000/predicates.md (easy_fp_constant): Remove special
28887 -ffast-math handling that kept non-0 constants live in the RTL
28888 until reload. Remove logic testing the number of instructions it
28889 took to create a constant in a GPR that was never used, due to a
28890 test for soft-float earlier.
28891 (memory_fp_constant): Delete, no longer used.
28893 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
28894 alternatives for loading non-0 constants into GPRs for hard
28895 floating point that is no longer needed due to changes in
28896 easy_fp_constant. Add support for loading 0.0 into GPRs.
28897 (mov<mode>_hardfloat32): Likewise.
28898 (mov<mode>_hardfloat64): Likewise.
28899 (mov<mode>_64bit_dm): Likewise.
28900 (movtd_64bit_nodm): Likewise.
28901 (pre-reload move FP constant define_split): Delete define_split,
28902 since it is no longer used.
28903 (extenddftf2_internal): Remove GHF constraints that are not valid
28906 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
28908 PR rtl-optimization/63491
28909 * lra-constraints.c (check_and_process_move): Use src instead of
28910 sreg. Remove some dead code.
28912 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
28915 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
28916 (sem_variable::merge): Likewise.
28918 2015-03-19 Martin Liska <mliska@suse.cz>
28921 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
28922 all fields of cgraph_thunk_info.
28924 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
28926 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
28927 clone instrumented thunks.
28929 2015-03-19 Richard Biener <rguenther@suse.de>
28932 2015-03-10 Richard Biener <rguenther@suse.de>
28934 PR middle-end/63155
28935 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28936 * tree-ssa-coalesce.c: Include timevar.h.
28937 (attempt_coalesce): Handle graph being NULL.
28938 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28939 Split out abnormal coalescing to ...
28940 (perform_abnormal_coalescing): ... this function.
28941 (coalesce_ssa_name): Perform abnormal coalescing without computing
28943 (verify_ssa_coalescing_worker): New function.
28944 (verify_ssa_coalescing): Likewise.
28946 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
28947 Jakub Jelinek <jakub@redhat.com>
28950 * tsan.c (instrument_gimple): Clear tail call flag on
28953 2015-03-19 Jakub Jelinek <jakub@redhat.com>
28956 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
28957 call in the return bb.
28958 (find_split_points): Add RETURN_BB argument, don't call
28960 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
28961 if true append TSAN_FUNC_EXIT internal call after the call to
28962 the split off function.
28963 (execute_split_functions): Call find_return_bb here.
28964 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
28965 Adjust find_split_points and split_function calls.
28967 2015-03-18 DJ Delorie <dj@redhat.com>
28969 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
28970 (iorqi3_virt): Likewise.
28972 2015-03-18 Tom de Vries <tom@codesourcery.com>
28974 * tree-parloops.c (parallelize_loops): Make static.
28975 * tree-parloops.h (parallelize_loops): Remove extern declaration.
28977 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
28979 PR middle-end/64491
28981 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
28983 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
28984 condition would be removed due to undefined behaviour.
28986 2015-03-18 Martin Liska <mliska@suse.cz>
28989 * cgraph.c (cgraph_node::get_create): Remove unnecessary
28990 xstrdup_for_dump wrapper.
28991 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
28993 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
28994 with xstrdup_for_dump.
28995 (sem_variable::equals): Likewise.
28996 (sem_item_optimizer::read_section): Use symtab_node::name instead of
28998 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
28999 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
29000 symtab_node::asm_name with xstrdup_for_dump.
29001 (congruence_class::dump): Use symtab_node::name instead of
29003 * ipa-icf.h (symtab_node::name): Remove.
29004 (symtab_node::asm_name): Likewise.
29006 2015-03-18 Jakub Jelinek <jakub@redhat.com>
29008 PR tree-optimization/65450
29009 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
29011 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
29012 it instead of duplicate_ssa_name_ptr_info.
29015 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
29017 2015-03-18 Richard Biener <rguenther@suse.de>
29019 * tree-data-ref.h (struct access_matrix): Remove.
29020 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
29021 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
29022 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
29023 (am_vector_index_for_loop): Likewise.
29024 (struct data_reference): Remove access_matrix member.
29025 (DR_ACCESS_MATRIX): Remove.
29026 (lambda_vector_new): Add comment.
29027 (lambda_matrix_new): Use XOBNEWVEC.
29029 2015-03-18 Richard Biener <rguenther@suse.de>
29031 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
29032 (pass_ch::execute): Cleanup the CFG only if we did sth.
29033 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
29035 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29037 * expmed.c (synth_mult): Use std::swap instead of manually
29038 swapping algorithms.
29040 2015-03-18 Jakub Jelinek <jakub@redhat.com>
29043 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
29045 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
29048 * config/avr/avr.opt (-nodevicelib): New option.
29049 * doc/invoke.texi (AVR Options): Document it.
29050 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
29051 libgcc.a, libc.a, libm.a.
29052 * config/avr/specs.h: Same.
29053 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
29054 which don't (directly) depend on the device. Print more help.
29055 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
29056 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
29057 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
29059 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
29060 for specs file name.
29061 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
29062 * config/avr/avr-mcus.def: Adjust initializers and comments.
29064 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
29066 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
29067 DECL_ONE_ONLY to check if decl is one only.
29068 * ipa-split.c (consider_split): Limit splitt of one only functions.
29070 2015-03-16 Jakub Jelinek <jakub@redhat.com>
29072 PR tree-optimization/65427
29073 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
29075 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
29077 2015-03-16 Marek Polacek <polacek@redhat.com>
29079 * cgraph.h (add_new_static_var): Remove declaration.
29080 * varpool.c (add_new_static_var): Remove function.
29082 2015-03-16 Jakub Jelinek <jakub@redhat.com>
29084 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
29085 instead of vec<tree> * with vec_alloc and release for args.
29088 PR middle-end/65431
29089 * omp-low.c (delete_omp_context): Only splay_tree_delete
29090 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
29091 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
29093 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
29096 * cfgexpand.c (align_base): New function.
29097 (alloc_stack_frame_space): Call it.
29098 (expand_stack_vars): Align prev_frame to be sure
29099 data->asan_vec elements aligned properly.
29101 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
29103 PR middle-end/65409
29104 * expr.c (store_field): Do not do a direct block copy if the source is
29105 a PARALLEL with BLKmode.
29107 2015-03-16 Tom de Vries <tom@codesourcery.com>
29109 PR middle-end/65414
29111 2015-03-12 Tom de Vries <tom@codesourcery.com>
29113 PR rtl-optimization/64895
29114 * lra-lives.c (check_pseudos_live_through_calls): Use
29115 actual_call_used_reg_set instead of call_used_reg_set, if available.
29117 2015-03-16 Alan Modra <amodra@gmail.com>
29120 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
29121 Modify Z->r bswapdi splitter to use dest in place of scratch.
29122 In r->Z and Z->r bswapdi splitter rename word_high, word_low
29123 to word1, word2 and rearrange logic to suit.
29124 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
29125 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
29126 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
29127 Add one '?' on r->r. Modify Z->r splitter to avoid need for
29130 2015-03-14 Jakub Jelinek <jakub@redhat.com>
29132 PR tree-optimization/65369
29133 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
29134 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
29135 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
29137 PR tree-optimization/65418
29138 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
29139 are casts in the first PLUS_EXPR operand, ensure tbias and
29140 *totallowp are in the inner type.
29142 PR rtl-optimization/65401
29143 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
29144 argument. If true, adjust_address_nv of x with big-endian
29145 correction for the mode widening to GET_MODE (y).
29146 (make_field_assignment): Don't do MEM mode widening here.
29147 Use MEM_P instead of GET_CODE == MEM.
29149 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
29151 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
29152 the external decls.
29154 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29157 * config/arm/arm.c (arm_gen_constant, AND case): Use
29158 ARM_SIGN_EXTEND when constructing AND mask.
29160 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29162 * graph.c (print_graph_cfg): Make function names visible and append
29163 parenthesis to it. Also make groups of basic blocks belonging to the
29164 same function visible.
29166 2015-03-12 Richard Biener <rguenther@suse.de>
29168 PR middle-end/44563
29169 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
29170 to avoid quadratic behavior with inline expansion splitting blocks.
29171 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
29172 with the successor if the predecessor will be merged with it.
29173 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
29174 entry block with its successor.
29176 2015-03-13 Richard Biener <rguenther@suse.de>
29178 PR middle-end/44563
29179 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
29180 (cleanup_tree_cfg_1): Do not call it.
29181 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
29182 (fixup_noreturn_call): Mark the stmt as control altering.
29183 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
29185 (pass_data_fixup_cfg): Produce a dump file.
29186 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
29187 (need_noreturn_fixup): New global.
29188 (pass_dominator::execute): Fixup queued noreturn calls.
29189 (optimize_stmt): Queue calls that became noreturn for fixup.
29190 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
29191 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
29192 (el_to_fixup): New global.
29193 (eliminate_dom_walker::before_dom_childre): Queue calls that
29194 became noreturn for fixup.
29195 (eliminate): Fixup queued noreturn calls.
29196 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
29197 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
29198 (substitute_and_fold_dom_walker::before_dom_children): Queue
29199 alls that became noreturn for fixup.
29200 (substitute_and_fold): Fixup queued noreturn calls.
29202 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
29204 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
29205 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
29206 are building; for methods check ODR type of class they belong to if
29207 they may lead to a polymorphic call.
29208 (sem_function::compare_polymorphic_p): Be bit smarter about testing
29209 when function may lead to a polymorphic call.
29210 (sem_function::compare_type_list): Remove.
29211 (sem_variable::equals): Update use of compatible_types_p.
29212 (sem_variable::parse_tree_refs): Remove.
29213 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
29215 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
29217 (func_checker::compatible_polymorphic_types_p): Break out from ...
29218 (unc_checker::compatible_types_p): ... here.
29219 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
29221 (unc_checker::compatible_types_p): Update.
29222 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
29225 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29227 PR rtl-optimization/65235
29228 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
29229 When first element of vec_concat is const_int, calculate its size
29230 using second element.
29232 2015-03-12 Richard Biener <rguenther@suse.de>
29234 PR middle-end/65270
29235 * fold-const.c (operand_equal_p): Fix ordering of resetting
29236 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
29238 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29240 * config/s390/s390.c (s390_reorg): Move code to output nops after label
29242 (s390_asm_output_function_label): Likewise.
29243 * config/s390/s390.c (s390_asm_output_function_label):
29244 Fix function label alignment with -mhtopatch.
29245 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
29246 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
29247 ("nop_2_byte"): New define_insn.
29248 ("nop_4_byte"): Likewise.
29249 ("nop_6_byte"): Likewise.
29250 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
29251 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
29253 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
29256 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
29259 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
29262 * toplev.c (process_options): Restrict Pointer Bounds Checker
29263 usage with Address Sanitizer.
29265 2015-03-12 Richard Biener <rguenther@suse.de>
29267 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
29269 * omp-low.c (expand_omp_taskreg): Split block before removing
29271 (expand_omp_target): Likewise.
29272 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
29273 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
29274 stmt to split_block.
29276 2015-03-12 Tom de Vries <tom@codesourcery.com>
29278 PR rtl-optimization/64895
29279 * lra-lives.c (check_pseudos_live_through_calls): Use
29280 actual_call_used_reg_set instead of call_used_reg_set, if available.
29282 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29284 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
29285 (cgraph_node::remove): Likewise.
29286 (cgraph_node::get_untransformed_body): Likewise.
29287 * varpool.c (varpool_node::remove): Likewise.
29288 (varpool_node::get_constructor): Add sanity check.
29290 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
29292 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
29294 (-fabi-compat-version): Likewise.
29295 (-ffriend-injection): Likewise.
29296 (-Wdeclaration-after-statement): Likewise.
29297 (-fomit-frame-pointer): Likewise.
29298 (-ftree-coalesce-inlined-vars): Likewise.
29299 (-fvisibility=): Likewise.
29300 * doc/extend.texi (Typeof): Likewise.
29301 (Zero Length): Likewise.
29302 (Escaped Newlines): Likewise.
29303 (Compound Literals): Likewise.
29304 (Function Attributes): Likewise.
29305 (Label Attributes): Likewise.
29306 (Type Attributes): Likewise.
29307 (Function Names): Likewise.
29308 (Other Builtins): Likewise.
29309 (Function Specific Option Pragmas): Likewise.
29310 (C++ Interface): Likewise.
29312 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
29314 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
29316 2015-03-11 Marek Polacek <polacek@redhat.com>
29318 PR tree-optimization/65388
29319 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
29321 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
29324 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
29325 * configure: Regenerate.
29326 * config.in: Regenerate.
29327 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
29328 [-mn-flash]: Document it.
29329 [__AVR_ARCH__]: Document avrtiny.
29331 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
29332 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
29333 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
29335 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29337 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
29339 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29342 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
29343 allow reloads of PLUS in floating point/VSX registers.
29345 2015-03-11 Junmo Park <junmoz.park@samsung.com>
29347 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
29348 crypto_sha256_fast.
29349 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
29351 2015-03-11 Richard Biener <rguenther@suse.de>
29353 PR tree-optimization/65310
29354 * tree-sra.c (build_ref_for_offset): Also preserve larger
29357 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
29359 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
29361 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29364 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
29366 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
29368 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29370 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
29371 (sem_function::equals_wpa): ... here.
29373 2015-03-10 Marek Polacek <polacek@redhat.com>
29374 Jakub Jelinek <jakub@redhat.com>
29377 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
29378 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
29381 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29384 * config/rs6000/t-linux: For powerpc64* target set
29385 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
29387 2015-03-10 Richard Biener <rguenther@suse.de>
29389 PR middle-end/44563
29390 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
29391 for redirect_all_calls.
29393 2015-03-10 Marek Polacek <polacek@redhat.com>
29395 * gdbinit.in (pcfun): Define and document.
29397 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
29399 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
29400 of libgomp-plugin.h.
29401 (find_target_compiler): Support a case when the path to gcc is
29402 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
29403 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
29404 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
29406 (main): Use GCC_INSTALL_NAME as target_driver_name.
29407 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
29409 (mkoffload.o): Remove obsolete include path and defines.
29410 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
29412 2015-03-10 Richard Biener <rguenther@suse.de>
29414 PR middle-end/63155
29415 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
29416 * tree-ssa-coalesce.c: Include timevar.h.
29417 (attempt_coalesce): Handle graph being NULL.
29418 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
29419 Split out abnormal coalescing to ...
29420 (perform_abnormal_coalescing): ... this function.
29421 (coalesce_ssa_name): Perform abnormal coalescing without computing
29423 (verify_ssa_coalescing_worker): New function.
29424 (verify_ssa_coalescing): Likewise.
29426 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
29429 * config.gcc (extra_options) [avr]: Remove.
29430 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
29431 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
29432 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
29434 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
29435 (-mmcu=): Add Var and MissingArgError properties.
29437 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
29438 * config/avr/t-multilib: Regenerate.
29439 * config/avr/specs.h: New file.
29440 * config/avr/driver-avr.c: New file.
29441 * config/avr/genopt.sh: Remove file.
29442 * config/avr/avr-tables.opt: Remove file.
29443 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
29444 * config/avr/avr-c.c: Same.
29445 * avr-arch.h: Same.
29446 (avr_current_device): Remove proto.
29447 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
29448 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
29449 (EXTRA_SPEC_FUNCTIONS): Define.
29450 (avr_devicespecs_file): New specs function proto.
29451 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
29452 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
29453 (avr_current_device): Remove definition and usage.
29454 (avr_set_core_architecture): New static function.
29455 (avr_option_override): Use it.
29456 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
29457 (mcu_name): New static array.
29458 (comparator, avr_archs_str, avr_mcus_str): New static functions.
29459 (avr_inform_devices, avr_inform_core_architectures): New functions.
29460 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
29461 (avrlibc.h) [WITH_AVRLIBC]: Include.
29462 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
29463 (print_mcu): Rewrite from scratch.
29464 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
29465 Forward to avr-specific specs defined in device-specs file.
29466 * config/avr/t-avr (driver-avr.o): New rule.
29467 (avr-devices.o): Depend on avr-arch.h.
29468 (avr-mcus): No more depend on avr-tables.opt.
29469 (avr-tables.opt): Remove rule.
29470 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
29472 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29474 * c-family/c.opt (fchkp-use-wrappers): New.
29475 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
29476 (chkp_wrap_function): New.
29477 (chkp_build_instrumented_fndecl): Support wrapped
29479 * doc/invoke.texi (-fcheck-pointer-bounds): New.
29480 (-fchkp-check-incomplete-type): New.
29481 (-fchkp-first-field-has-own-bounds): New.
29482 (-fchkp-narrow-bounds): New.
29483 (-fchkp-narrow-to-innermost-array): New.
29484 (-fchkp-optimize): New.
29485 (-fchkp-use-fast-string-functions): New.
29486 (-fchkp-use-nochk-string-functions): New.
29487 (-fchkp-use-static-bounds): New.
29488 (-fchkp-use-static-const-bounds): New.
29489 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
29490 (-fchkp-check-read): New.
29491 (-fchkp-check-write): New.
29492 (-fchkp-store-bounds): New.
29493 (-fchkp-instrument-calls): New.
29494 (-fchkp-instrument-marked-only): New.
29495 (-fchkp-use-wrappers): New.
29496 (-static-libmpx): New.
29497 (-static-libmpxwrappers): New.
29499 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29501 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
29502 (CHKP_SPEC): Add wrappers library.
29503 * c-family/c.opt (static-libmpxwrappers): New.
29505 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29507 * config/i386/linux-common.h (LIBMPX_LIBS): New.
29508 (LIBMPX_SPEC): New.
29510 * gcc.c (CHKP_SPEC): New.
29511 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
29512 * c-family/c.opt (static-libmpx): New.
29514 2015-03-10 Richard Biener <rguenther@suse.de>
29516 PR middle-end/44563
29517 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
29519 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
29520 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
29521 (cgraph_add_edge_to_call_site_hash): Likewise.
29522 (cgraph_node::get_edge): Likewise.
29523 (cgraph_edge::set_call_stmt): Likewise.
29524 (cgraph_edge::remove_caller): Likewise.
29526 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
29528 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
29529 (callee_saved_gpr_regs_size): ... this.
29530 (callee_saved_regs_first_regno): Rename to ...
29531 (callee_saved_first_gpr_regno): ... this.
29532 (callee_saved_regs_last_regno) Rename to ...
29533 (callee_saved_last_gpr_regno): ... this.
29534 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
29536 (nds32_initial_elimination_offset): Likewise.
29537 (nds32_expand_prologue): Likewise.
29538 (nds32_expand_epilogue): Likewise.
29539 (nds32_expand_prologue_v3push): Likewise.
29540 (nds32_expand_epilogue_v3pop): Likewise.
29541 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
29542 Adjust renamed variables.
29543 (nds32_output_stack_pop): Likewise.
29545 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
29547 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
29550 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29552 PR rtl-optimization/65321
29553 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
29555 * var-tracking.c (use_narrower_mode): Likewise.
29557 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29559 PR tree-optimization/65355
29560 * varasm.c (notice_global_symbol): Do not produce RTL.
29561 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
29563 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
29564 check for section anchors.
29566 2015-03-10 Alan Modra <amodra@gmail.com>
29569 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
29570 to be single-arch by default. Set cpu_is_64bit for powerpc64
29571 given --with-cpu=native.
29572 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
29573 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
29575 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
29576 rs6000_isa_flags rather than TARGET_64BIT.
29578 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
29579 Kaz Kojima <kkojima@gcc.gnu.org>
29581 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
29583 2015-03-09 Jakub Jelinek <jakub@redhat.com>
29586 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
29587 on a TREE_BINFO, instead use BINFO_TYPE.
29589 2015-03-09 Richard Biener <rguenther@suse.de>
29591 PR middle-end/65270
29592 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
29593 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
29594 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
29595 of that. When comparing dereferences compare alignment.
29596 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
29598 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29600 * ipa-inline-analysis.c (check_callers): Check
29601 node->can_remove_if_no_direct_calls_and_refs_p.
29602 (growth_likely_positive): Reorganize to call
29603 can_remove_if_no_direct_calls_p later.
29604 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
29605 will_be_removed_from_program_if_no_direct_calls_p): Add
29606 will_inline parameter.
29607 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
29608 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29609 Handle inliner case correctly.
29611 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
29613 PR tree-optimization/63743
29614 * cfgexpand.c (reorder_operands): Also reorder if only second operand
29615 had its definition forwarded by TER.
29617 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29620 * ipa-utils.h (types_odr_comparable): Add strict argument.
29621 * ipa-devirt.c: Fix whitespace;
29622 (odr_hasher): Remove.
29623 (odr_name_hasher, odr_vtable_hasher): New hashers.
29624 (can_be_name_hashed_p): New predicate.
29625 (hash_type_name): remove.
29626 (hash_odr_name): New.
29627 (odr_name_hasher::hash): new.
29628 (can_be_vtable_hashed_p): New.
29629 (hash_odr_vtable): New.
29630 (odr_vtable_hasher::hash): New.
29631 (types_same_for_odr): Add strict parameter.
29632 (types_odr_comparable): Likewise.
29633 (odr_name_hasher::equal): New.
29634 (odr_vtable_hasher::equal): New.
29635 (odr_name_hasher::remove): New.
29636 (odr_hash_type): Change to hash_table<odr_name_hasher>.
29637 (odr_vtable_hash_type): New.
29638 (odr_vtable_hash): New.
29639 (odr_subtypes_equivalent_p): Do strict comparsion.
29640 (add_type_duplicate): Merge type names; cleanup; avoid type
29642 (register_odr_type): Initialize vtable hash.
29643 (build_type_inheritance_graph): Likewise
29644 (get_odr_type): Reorg to use two hashes.
29645 (dump_possible_polymorphic_call_targets): Move sanity check after debug
29647 (ipa_devirt): Dump type_inheritance_graph.
29648 (types_same_for_odr): Add strict mode.
29650 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29653 * cgraph.h (symtab_node): Add definition_alignment,
29654 can_increase_alignment_p and increase_alignment.
29655 * symtab.c (symtab_node::can_increase_alignment_p,
29656 increase_alignment_1, symtab_node::increase_alignment,
29657 symtab_node::definition_alignment): New.
29658 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
29659 can_increase_alignment_p.
29660 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
29661 * tree-vect-stmts.c (ensure_base_align): Likewise.
29662 * varasm.c (function_section_1): Use definition_alignment.
29663 (assemble_start_function): Likewise.
29664 (emit_local): likewise.
29665 (build_constant_desc): Likewsie.
29666 (output_constant_def_contents): Likewise.
29667 (place_block_symbol): Likewise.
29668 (output_object_block): Likewise.
29670 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29673 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
29674 when outputting debug.
29676 2015-03-07 Marek Polacek <polacek@redhat.com>
29677 Martin Uecker <uecker@eecs.berkeley.edu>
29680 * doc/invoke.texi: Update description of -fsanitize=bounds.
29682 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
29684 * tree-ssa-phiopt.c (neg_replacement): Remove.
29685 (tree_ssa_phiopt_worker): Remove negate optimization.
29687 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29690 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
29692 2015-03-06 Richard Biener <rguenther@suse.de>
29694 PR middle-end/64928
29695 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
29696 and liveout_obstack members.
29697 (calculate_live_on_exit): Remove.
29698 (calculate_live_ranges): Change declaration.
29699 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
29700 (new_tree_live_info): Adjust.
29701 (calculate_live_ranges): Delete livein when not wanted.
29702 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
29703 Deal with partly deleted live info.
29704 (loe_visit_block): Remove temporary bitmap by using
29705 bitmap_ior_and_compl_into.
29706 (live_worklist): Adjust accordingly.
29707 (calculate_live_on_exit): Make static.
29708 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
29709 we do not need livein.
29711 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
29713 * real.c (real_from_string): Fix typo in assertion.
29715 2015-03-06 Alex Velenko <alex.velenko@arm.com>
29717 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
29720 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29722 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
29724 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
29727 * lra-assigns.c (find_hard_regno_for): Rename to
29728 find_hard_regno_for_1. Add a new parameter.
29729 (find_hard_regno_for): New function using find_hard_regno_for_1.
29731 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29733 PR rtl-optimization/65067
29734 * expmed.c (store_bit_field, extract_bit_field): Reworked the
29735 strict volatile bitfield handling.
29737 2015-03-05 Martin Liska <mliska@suse.cz>
29740 * ipa-icf.c (sem_variable::equals): Compare variables types.
29742 2015-03-05 Richard Henderson <rth@redhat.com>
29745 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
29746 correctly check weak symbol binding.
29748 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
29750 PR middle-end/65315
29751 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
29754 2015-03-05 Martin Liska <mliska@suse.cz>
29756 * ipa-inline.c (inline_small_functions): Set default value to
29757 prevent warning during bootstrap.
29758 * tree.h: Add pragma guard that ignores false positives during
29761 2015-03-05 Richard Biener <rguenther@suse.de>
29763 PR tree-optimization/65310
29764 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29765 Properly preserve alignment of the base of the access.
29767 2015-03-05 Richard Biener <rguenther@suse.de>
29770 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
29771 Compare dependence info.
29773 2015-03-05 Richard Biener <rguenther@suse.de>
29775 PR middle-end/65233
29776 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
29778 (walk_ssa_copies): Revert last chage. Instead do not walk
29779 SSA names registered for SSA update.
29781 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29784 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
29785 vtable references for their containing type.
29786 (sem_function::equals_wpa): Compare TYPE_RESTRICT
29787 and type attributes.
29789 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
29791 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
29792 before negating it.
29793 * stor-layout.c (finalize_record_size): Revert latest change.
29795 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
29797 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
29799 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29801 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
29802 for correct comdat handling.
29803 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29805 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
29806 (used_from_object_file_p_worker): Remove.
29807 (cgraph_node::only_called_directly_or_alised): Add
29808 used_from_object_file_p.
29809 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
29810 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
29811 can_remove_if_no_direct_calls_and_refs_p.
29813 2015-03-04 Nick Clifton <nickc@redhat.com>
29815 * config/rl78/rl78.h (enum reg_class): Remove real registers from
29816 General register class.
29817 * config/rl78/rl78-real.md: Replace general register constraints
29818 with real+virtual register constraints.
29820 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29822 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
29823 from checking for -mhtm option.
29825 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29827 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
29828 (struct ipa_sra_check_caller_data): Add has_thunk field.
29829 (ipa_sra_check_caller): Check for thunk.
29830 (ipa_sra_preliminary_function_checks): Give up on function with
29832 (ipa_early_sra): Use call_for_symbol_and_aliases.
29834 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
29837 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
29838 called for __stack_chk_guard symbol.
29840 2015-03-03 DJ Delorie <dj@redhat.com>
29842 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
29844 (*addhi3_real): Likewise.
29845 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
29846 pattern to match incrementing memory.
29847 * config/rl78/predicates.md (rl78_1_2_operand): New.
29848 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
29849 it's the same and only mem.
29850 (rl78_alloc_physical_registers_op2): If there's effectively only
29851 one MEM, transcode it into HL.
29852 (rl78_far_p): Reject addresses that aren't legitimate.
29854 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
29856 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
29859 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
29861 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
29863 Implement call0 ABI for xtensa
29864 * config/xtensa/constraints.md ("a" constraint): Include stack
29865 pointer in case of call0 ABI.
29866 ("q" constraint): Make empty in case of call0 ABI.
29867 ("D" constraint): Include stack pointer in case of call0 ABI.
29868 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
29869 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
29871 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
29873 (xtensa_regno_to_class): Make it a local variable in the
29874 function xtensa_regno_to_class.
29875 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
29876 macro, function prototype and implementation.
29877 (reg_nonleaf_alloc_order): Make it a local variable in the
29878 function order_regs_for_local_alloc.
29879 (xtensa_conditional_register_usage): New function.
29880 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
29881 (xtensa_valid_move): Allow direct moves to stack pointer
29882 register in call0 ABI.
29883 (xtensa_setup_frame_addresses): Only spill register windows in
29885 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
29886 call0 ABI respectively.
29887 (xtensa_function_arg_1): Only mark a7 register for copying in
29889 (xtensa_call_save_reg): New function.
29890 (compute_frame_size): Add space for callee saved register
29891 storage to the frame size in call0 ABI.
29892 (xtensa_expand_prologue): Generate code to set up stack frame
29893 and save callee-saved registers in call0 ABI.
29894 (xtensa_expand_epilogue): New function.
29895 (xtensa_set_return_address): New function.
29896 (xtensa_return_addr): Calculate return address in call0 ABI.
29897 (xtensa_builtin_saveregs): Only mark a7 register for copying and
29898 emit copying code in windowed ABI.
29899 (order_regs_for_local_alloc): Add preferred register allocation
29900 order for non-leaf function in call0 ABI.
29901 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
29902 (xtensa_asm_trampoline_template): Add trampoline generation for
29904 (xtensa_trampoline_init): Add trampoline initialization for
29906 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
29908 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
29909 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
29910 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
29911 ABI call-used registers.
29912 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
29913 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
29915 (REG_CLASS_CONTENTS): Include all registers into the preferred
29916 reload registers set, adjust the set in the
29917 xtensa_conditional_register_usage.
29918 (xtensa_regno_to_class): Drop variable declaration.
29919 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
29921 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
29923 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
29924 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
29925 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
29926 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
29927 location in call0 ABI.
29928 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
29929 stack adjustment size when handling exception.
29930 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
29931 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
29933 ("return" pattern): Generate ret.n/ret in call0 ABI.
29934 ("epilogue" pattern): Expand epilogue.
29935 ("nonlocal_goto" pattern): Use default in call0 ABI.
29936 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
29937 emit eh_set_a0_* depending on ABI.
29938 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
29939 ("eh_set_a0_call0", "blockage"): New patterns.
29941 2015-03-03 Martin Liska <mliska@suse.cz>
29944 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
29946 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29949 * config/rs6000/rs6000-tables.opt: Regenerate table.
29951 2015-03-03 Renlin Li <renlin.li@arm.com>
29953 * doc/md.texi (@item ^): Change ? into ^.
29955 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
29957 * doc/tm.texi: Regenerated.
29959 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
29961 * builtins.c (expand_builtin_return_addr): Add
29962 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
29963 surrounding #ifdef.
29964 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
29966 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
29968 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
29970 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
29973 2015-03-03 Martin Jambor <mjambor@suse.cz>
29974 Eric Botcazou <ebotcazou@adacore.com>
29976 * tree-sra.c (ipa_sra_check_caller_data): New type.
29977 (has_caller_p): Removed.
29978 (ipa_sra_check_caller): New function.
29979 (ipa_sra_preliminary_function_checks): Use it.
29981 2015-03-03 Martin Liska <mliska@suse.cz>
29983 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
29984 instead of if branch.
29986 2015-03-03 Martin Liska <mliska@suse.cz>
29989 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
29991 2015-03-23 Jeff Law <law@redhat.com>
29993 PR tree-optimization/65241
29994 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
29995 hash table if INSERT is true.
29997 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30000 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
30002 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30005 * config/avr/avr.c (context.h, tree-pass.h): Include them.
30006 (avr_pass_data_recompute_notes): New static variable.
30007 (avr_pass_recompute_notes): New class.
30008 (avr_register_passes): New static function.
30009 (avr_option_override): Call it.
30011 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30013 Fix various problems with specs file generation.
30016 * config.gcc (extra_gcc_objs) [avr]: Remove.
30017 * config/avr/driver-avr.c: Remove file.
30018 * config/avr/t-avr (driver-avr.o): Remove rule.
30019 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
30020 INCLUDES to build. Depend on TM_H.
30021 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
30022 build warnings. Fix non-matching types and non-existing %-codes.
30024 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
30025 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
30026 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
30027 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
30028 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
30029 (LIBGCC_SPEC): Remove definitions.
30031 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
30033 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
30034 to create a register in testing mode.
30036 2015-03-03 Martin Liska <mliska@suse.cz>
30037 Jan Hubicka <hubicka@ucw.cz>
30040 * cgraph.c (cgraph_node::has_thunk_p): New function.
30041 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
30042 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
30043 (sem_function::merge): Assert is changed.
30045 2015-03-03 Martin Liska <mliska@suse.cz>
30046 Martin Jambor <mjambor@suse.cz>
30049 * ipa-icf.c (sem_item_optimizer::execute): Change function
30050 return value to boolean.
30051 (sem_item_optimizer::merge_classes): Likewise.
30052 (ipa_icf_driver): Return TODO_remove_functions in case there's
30053 a merge operation processed.
30054 * ipa-icf.h: Change function return value to boolean.
30056 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30059 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
30060 processor type for 64-bit little endian PowerPC.
30062 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30063 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
30064 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
30065 printing built-in mask so it does not pass NULL pointers.
30067 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
30070 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
30073 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
30074 !ISA_HAS_FP_CONDMOVE.
30076 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
30078 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
30081 2015-03-02 Ulrich Drepper <drepper@gmail.com>
30083 * doc/invoke.texi (Options for Code Generation Conventions):
30084 Fix URL of DSO paper.
30086 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30089 * ipa-inline.c (check_callers): Looks for recursion.
30090 (inline_to_all_callers): Give up on uninlinable or recursive edges.
30091 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
30092 summary of inline clones.
30093 (do_estimate_growth_1): Fix recursion check.
30095 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30098 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
30101 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30102 Aldy Hernandez <aldyh@redhat.com>
30105 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
30106 when checking TYPE_BINFO.
30108 2015-03-02 Richard Biener <rguenther@suse.de>
30111 * ipa-icf-gimple.c: Include builtins.h.
30112 (func_checker::compare_memory_operand): Compare base alignment.
30114 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
30117 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
30118 are never passed by reference.
30120 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
30123 * tree-chkp.c (chkp_check_lower): Don't check against
30124 zero bounds for already instrumented functions.
30125 (chkp_check_upper): Likewise.
30126 (chkp_fini): Clean pass local data to avoid wrong reusage.
30128 2015-02-28 Martin Liska <mliska@suse.cz>
30129 Jan Hubicka <hubicka@ucw.cz>
30131 * ipa-icf.c (sem_variable::equals): Improve debug output;
30132 get variable constructor.
30133 (sem_variable::parse): Do not filter out too early; give up on
30134 volatile and register vars.
30135 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
30137 * ipa-icf.h (sem_variable::init): Do not set ctor.
30138 (sem_variable::ctor): Remove.
30140 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
30142 PR middle-end/65233
30143 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
30145 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30147 * ipa-icf.c: Include stor-layout.h
30148 (sem_function::compare_cgraph_references): Rename to ...
30149 (sem_item::compare_cgraph_references): ... this one.
30150 (sem_variable::equals_wpa): New function
30151 (sem_variable::equals): Do not check stuff already verified by
30153 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
30154 * ipa-icf.h (sem_item): Add compare_cgraph_references.
30155 (sem_function): Remove compare_cgraph_references.
30156 (sem_variable): Turns equals_wpa into non-inline.
30158 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30160 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
30161 (sem_item::add_expr): New function.
30162 (sem_function::hash_stmt): Handle operands of most statements.
30163 (sem_variable::get_hash): Hash the actual constructor.
30164 * ipa-icf.h (sem_item): Add add_expr.
30165 (sem_function): Update prototype of hash_stmt
30167 2015-02-28 Martin Liska <mliska@suse.cz>
30168 Jan Hubicka <hubicka@ucw.cz>
30171 * ipa-icf-gimple.c (func_checker::compare_function_decl):
30173 (func_checker::compare_variable_decl): Skip symtab vars.
30174 (func_checker::compare_cst_or_decl): Update.
30175 * ipa-icf.c (sem_function::parse): Do not consider aliases.
30176 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
30177 use correct symtab predicates.
30178 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
30179 (sem_variable::parse): Update comment.
30180 (sem_item_optimizer::build_graph): Consider ultimate aliases
30183 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30185 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
30188 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30190 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
30191 (sem_variable::merge) Likewise.
30193 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30195 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
30196 target; also match flag_ipa_devirt.
30198 2015-03-01 Martin Liska <mliska@suse.cz>
30199 Jan Hubicka <hubicka@ucw.cz>
30201 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
30202 Validate variable alignment.
30203 * ipa-icf.c (sem_function::equals_private): Be more precise
30204 about non-common function attributes.
30205 (sem_variable::equals): Likewise.
30207 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30210 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
30211 across COMDAT group boundary.
30213 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30216 * ipa-icf.c (clear_decl_rtl): New function.
30217 (sem_function::merge): Clear RTL before forming alias.
30218 (sem_variable::merge): Clear RTL before forming alias.
30220 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30223 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
30225 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
30227 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
30230 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30232 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
30233 a typo in the description.
30235 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30238 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30239 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30240 * lra-constraints.c: Include "params.h".
30241 (EBB_PROBABILITY_CUTOFF): Use
30242 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
30243 (lra_inheritance): Use '<' instead of '<=' for
30244 EBB_PROBABILITY_CUTOFF.
30245 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
30248 2015-02-27 Martin Liska <mliska@suse.cz>
30250 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
30251 vector length condition.
30253 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
30255 * doc/extend.texi (x86 transactional memory intrinsics):
30256 Reorganize discussion of _xbegin. Clarify that the return
30257 value is a bit mask. Expand example and move to end of section.
30259 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30260 Aldy Hernandez <aldyh@redhat.com>
30262 PR rtl-optimization/65220
30263 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
30265 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30268 * lra-remat.c (update_scratch_ops): New.
30269 (do_remat): Call it.
30270 * lra.c (lra_register_new_scratch_op): New. Take code from ...
30271 (remove_scratches): ... here.
30272 * lra-int.h (lra_register_new_scratch_op): New prototype.
30274 2015-02-27 Marek Polacek <polacek@redhat.com>
30277 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
30278 -Wformat-signedness anymore.
30280 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30282 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
30284 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
30286 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30288 * config/s390/s390.c (enum s390_builtin):
30289 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
30290 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
30291 (s390_init_builtins): Generate new builtin functions.
30292 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
30293 (s390_sfpc, s390_efpc): New pattern definitions.
30295 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30297 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
30298 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
30299 (s390_builtin_decls): New array.
30300 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
30301 (s390_builtin_decl): New function.
30302 (TARGET_BUILTIN_DECL): Define macro.
30304 2015-02-27 Richard Biener <rguenther@suse.de>
30306 PR middle-end/63175
30307 * builtins.c (get_object_alignment_2): Make sure to re-apply
30308 the ANDed mask after recursing to its operand gets us a new
30309 misalignment bit position.
30311 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
30312 Martin Liska <mliska@suse.cz>
30315 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
30316 Use address_matters_p.
30317 (redirect_all_callers, set_addressable): New functions.
30318 (sem_function::merge): Reorganize and fix merging issues.
30319 (sem_variable::merge): Likewise.
30320 (sem_variable::compare_sections): Remove.
30321 * common.opt (fmerge-all-constants, fmerge-constants): Remove
30323 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
30325 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
30327 (address_matters_1): New function.
30328 (symtab_node::address_matters_p): New function.
30329 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
30330 check for merged flag.
30331 * cgraph.h (address_matters_p): Declare.
30332 (symtab_node::address_taken_from_non_vtable_p): Remove.
30333 (symtab_node::address_can_be_compared_p): New method.
30334 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
30335 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
30337 (comdat_can_be_unshared_p_1) Use address_matters_p.
30338 (update_vtable_references): Fix formating.
30339 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
30340 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
30341 * cgraphclones.c: Preserve merged and icf_merged flags.
30343 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
30345 * doc/extend.texi (Function Attributes): Fix spelling and typos.
30346 (Label Attributes): Likewise.
30347 (Cilk Plus Builtins): Likewise.
30348 (ARC SIMD Built-in Functions): Likewise.
30349 (ARM C Language Extensions (ACLE)): Likewise.
30350 (PowerPC Built-in Functions): Likewise.
30351 (PowerPC Hardware Transactional Memory Built-in Functions):
30354 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30356 PR tree-optimization/65216
30357 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
30358 new stmt and new SSA_NAME for lhs whenever the arguments have
30359 changed and weren't just swapped. Fix comment typo.
30361 PR tree-optimization/65215
30362 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
30363 for PDP endian targets.
30364 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
30365 Fix up formatting issues.
30366 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
30367 size is smaller than the original, adjust MEM_REF offset by the
30368 difference of sizes. Use is_gimple_mem_ref_addr instead of
30369 is_gimple_min_invariant test to avoid adding address temporaries.
30371 2015-02-26 Martin Liska <mliska@suse.cz>
30372 Jan Hubicka <hubicka@ucw.cz>
30375 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
30376 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
30377 (sem_item_optimizer::process_cong_reduction): Include division by
30378 sensitive references.
30379 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
30380 * ipa-ref.c (ipa_ref::address_matters_p): New function.
30381 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
30383 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
30386 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
30388 * config/avr/avr.c: Same.
30389 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
30390 Refuse any constant address not in 0..0xbf.
30391 * config/avr/avr.md (*mov<mode>, *movsf): Remove
30392 tiny_valid_direct_memory_access_range from insn conditions.
30393 (mov<mode>): Don't special-case expansion of avrtiny addresses.
30395 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
30398 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
30399 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
30400 * config/sh/predicates.md (const_logical_operand): New predicate.
30401 * config/sh/sh.md: Add new peephole2 patterns.
30403 2015-02-26 Marek Polacek <polacek@redhat.com>
30406 * ipa-inline.c (early_inliner): Recompute inline parameters.
30408 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30411 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
30412 instructions with TImode operands are included in the analysis.
30414 2015-02-26 Sebastian Pop <s.pop@samsung.com>
30416 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
30417 of an EDGE_FSM_THREAD.
30419 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
30421 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
30423 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
30426 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
30428 2015-02-26 Sebastian Pop <s.pop@samsung.com>
30430 PR tree-optimization/65048
30431 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
30432 (thread_through_all_blocks): Call valid_jump_thread_path.
30433 Remove invalid FSM jump-thread paths.
30435 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30437 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
30438 (ipa_write_optimization_summaries): Likewise.
30439 * tree-streamer.h: Include data-streamer.h.
30440 (streamer_mode_table): Declare extern variable.
30441 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
30442 * lto-streamer-out.c (lto_output_init_mode_table,
30443 lto_write_mode_table): New functions.
30444 (produce_asm_for_decls): Call lto_write_mode_table when streaming
30446 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
30447 (lto_create_simple_input_block): Add mode_table argument to the
30448 lto_input_block constructors.
30449 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
30451 * data-streamer-in.c (string_for_index): Likewise.
30452 * ipa-inline-analysis.c (inline_read_section): Likewise.
30453 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
30454 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
30455 * lto-streamer-in.c (lto_read_body_or_constructor,
30456 lto_input_toplevel_asms): Likewise.
30457 (lto_input_mode_table): New function.
30458 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
30459 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
30460 Use bp_pack_machine_mode.
30461 * real.h (struct real_format): Add name field.
30462 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
30463 (class lto_input_block): Add mode_table member.
30464 (lto_input_block::lto_input_block): Add mode_table_ argument,
30465 initialize mode_table.
30466 (struct lto_file_decl_data): Add mode_table field.
30467 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
30468 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
30469 unpack_ts_decl_common_value_fields,
30470 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
30471 * tree-streamer.c (streamer_mode_table): New variable.
30472 * real.c (ieee_single_format, mips_single_format,
30473 motorola_single_format, spu_single_format, ieee_double_format,
30474 mips_double_format, motorola_double_format,
30475 ieee_extended_motorola_format, ieee_extended_intel_96_format,
30476 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
30477 ibm_extended_format, mips_extended_format, ieee_quad_format,
30478 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
30479 decimal_single_format, decimal_double_format, decimal_quad_format,
30480 ieee_half_format, arm_half_format, real_internal_format): Add name
30482 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
30484 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
30487 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
30488 reordering for selective scheduling.
30490 2015-02-26 Terry Guo <terry.guo@arm.com>
30492 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
30493 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
30494 (arm_arch_no_volatile_ce): Declare new global variable.
30495 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
30496 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
30497 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
30498 (TARGET_NO_VOLATILE_CE): New macro.
30499 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
30500 volatile memory access in IT block
30502 2015-02-25 Kai Tietz <ktietz@redhat.com>
30504 PR tree-optimization/61917
30505 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
30506 that reduc_def_stmt is null.
30508 2015-02-25 Martin Liska <mliska@suse.cz>
30510 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
30511 hard register variables.
30513 2015-02-25 Kai Tietz <ktietz@redhat.com>
30516 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
30517 (symtab::noninterposable_alias): Likewise.
30519 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
30522 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
30524 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
30526 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
30529 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
30530 as split condition; force split via '#' in output pattern.
30532 2015-02-25 Richard Biener <rguenther@suse.de>
30533 Kai Tietz <ktietz@redhat.com>
30535 PR tree-optimization/61917
30536 * tree-vect-loop.c (vectorizable_reduction): Allow
30537 vect_internal_def without reduction to exit graceful.
30539 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
30542 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
30543 only with NONDEBUG_INSN_P.
30545 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
30547 Use variadic macros with avr-log.c.
30549 * config/avr/avr-protos.h (avr_vdump): New prototype.
30550 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
30551 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
30552 * config/avr/avr-log.c: Adjust comments.
30553 (avr_vdump): New function.
30554 (avr_vadump): Pass caller as 2nd argument instead of format string.
30555 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
30556 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
30558 2015-02-25 Jakub Jelinek <jakub@redhat.com>
30561 * target.def (target_option_stream_in): New target hook.
30562 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
30563 targetm.target_option.post_stream_in if non-NULL.
30564 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
30565 * doc/tm.texi: Updated.
30566 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
30568 (TARGET_OPTION_POST_STREAM_IN): Redefine.
30570 2015-02-24 Jeff Law <law@redhat.com>
30573 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
30574 of operand 0 and operand 2.
30575 (zero_cost_loop_end, loop_end): Similarly.
30577 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
30579 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
30582 2015-02-24 DJ Delorie <dj@redhat.com>
30584 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
30585 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
30586 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
30587 instead of hardcoding SImode.
30589 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
30591 * omp-low.c (create_omp_child_function): Tag entrypoint
30592 functions with a special attribute.
30594 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30597 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
30599 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
30601 PR rtl-optimization/65123
30602 * lra-remat.c (operand_to_remat): Check hard regs in insn
30605 2015-02-24 Nick Clifton <nickc@redhat.com>
30607 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
30610 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
30613 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
30614 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
30615 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
30616 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
30617 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
30618 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
30619 (BUILT_IN_GOACC_PARALLEL): Specify as
30620 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
30621 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
30622 * builtin-types.def
30623 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30624 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30625 Remove function types.
30626 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
30627 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30628 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30629 New function types.
30631 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
30633 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
30635 2015-02-24 Jakub Jelinek <jakub@redhat.com>
30637 PR tree-optimization/65170
30638 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
30639 if val[1] < 0, clear also val[2] and return 3.
30641 2015-02-24 Alan Modra <amodra@gmail.com>
30644 * config/rs6000/rs6000.c (get_memref_parts): Only return true
30645 when *base is a reg. Handle nested plus addresses. Simplify
30648 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
30650 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
30651 use natural alignment when optimizing for size.
30653 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
30656 * config/sh/sh.md (movsicc_true+3): Remove peephole.
30657 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
30658 * config/sh/sh.c (replace_n_hard_rtx): Remove.
30660 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
30663 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
30664 too big for a wide_int. Implement missing wrapping operation.
30666 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
30669 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
30670 instead of const_int 4294901760.
30672 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
30674 * config/avr/t-avr: Fix typo in comment.
30676 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
30678 * doc/rtl.texi (fma): Clarify documentation.
30680 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
30683 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
30684 over input_location.
30686 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30688 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
30689 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
30690 restrict alignments to absolute_biggest_alignment.
30691 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
30693 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
30694 * doc/tm.texi: Regenerate.
30695 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
30697 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
30700 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
30702 2015-02-20 Richard Biener <rguenther@suse.de>
30704 PR tree-optimization/65136
30705 * tree-ssa-propagate.c: Include cfgloop.h.
30706 (replace_phi_args_in): Avoid replacing loop latch edge PHI
30707 arguments with constants.
30709 2015-02-20 Jakub Jelinek <jakub@redhat.com>
30710 Martin Liska <mliska@suse.cz>
30713 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
30714 don't try to create_thunk if stdarg_p. If
30715 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
30716 redirect_callers if possible.
30717 (sem_item_optimizer::execute): Call unregister_hooks here...
30718 (ipa_icf_driver): ... instead of here.
30720 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30722 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
30723 Mark operand 0 as earlyclobber in 2nd alternative.
30724 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
30725 Write negated shift amount into QI lowpart operand 0 and use it
30727 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
30729 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30731 * cgraph.h (clone_function_name_1): Declare.
30732 * cgraphclones.c (clone_function_name_1): New function.
30733 (clone_function_name): Use it.
30734 * lto-partition.c: Include "stringpool.h".
30735 (must_not_rename, maybe_rewrite_identifier)
30736 (validize_symbol_for_target): New static functions.
30737 (privatize_symbol_name): Use must_not_rename.
30738 (promote_symbol): Call validize_symbol_for_target.
30739 (lto_promote_cross_file_statics): Likewise.
30740 (lto_promote_statics_nonwpa): Likewise.
30742 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
30745 * config/avr/avr.md (pushhi_insn): New insn.
30746 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
30748 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30749 Jakub Jelinek <jakub@redhat.com>
30751 * tree-streamer.c (preload_common_nodes): Don't preload
30752 TI_VA_LIST* for offloading.
30753 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
30756 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
30758 * config/pa/pa.c (pa_emit_move_sequence): Always force
30759 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
30762 * config/pa/pa.c (pa_reloc_rw_mask): New function.
30763 (TARGET_ASM_RELOC_RW_MASK): Define.
30764 (pa_cannot_force_const_mem): Revert previous change.
30766 2015-02-19 Martin Jambor <mjmabor@suse.cz>
30767 Jan Hubicka <hubicka@ucw.cz>
30770 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
30771 across jump functions.
30773 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
30775 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
30777 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
30779 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
30781 2015-02-19 Richard Henderson <rth@redhat.com>
30783 PR middle-end/65074
30784 * varasm.c (default_binds_local_p_2): Don't test node->definition;
30785 test DECL_EXTERNAL independent of symtab_node.
30787 2015-02-19 Jakub Jelinek <jakub@redhat.com>
30790 * varpool.c (varpool_node::get_constructor): Return early
30791 if this->lto_file_data is NULL.
30793 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30795 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
30796 (rank_for_schedule_debug): Update.
30797 (ready_sort): Make static. Move sorting logic to ...
30798 (ready_sort_debug, ready_sort_real): New static functions.
30799 (schedule_block): Sort both debug insns and real insns in preparation
30800 for ready list trimming. Improve debug output.
30801 * sched-int.h (ready_sort): Remove global declaration.
30803 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
30805 * ipa-icf.c (sem_function::equals_private): Adjust.
30806 (sem_function::bb_dict_test): Take a vec<int> * instead of
30808 * ipa-icf.h (bb_dict_test): Likewise.
30810 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30812 PR gcov-profile/64634
30813 * tree-eh.c (frob_into_branch_around): Fix up typos
30814 in function comment.
30815 (lower_catch): Put eh_seq resulting from EH lowering of
30816 the cleanup sequence after the cleanup rather than before it.
30818 2015-02-18 Tom de Vries <tom@codesourcery.com>
30820 * common.opt (fstdarg-opt): New option.
30821 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
30822 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
30823 (@item -fstdarg-opt): New item.
30825 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
30828 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
30829 for common symbols.
30831 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30833 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
30835 (ALL_HOST_OBJS): Add mkoffload.o.
30836 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
30838 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
30840 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
30841 (compare_virtual_tables): Be smarter about skipping typeinfos;
30842 do sane output on virtual table table mismatch.
30843 (warn_odr): Be ready for forward declarations of enums;
30844 output sane info on base mismatch and virtual table mismatch.
30845 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
30846 when only one type is polymorphic.
30847 (get_odr_type): Fix hashtable corruption.
30848 (dump_odr_type): Dump mangled names.
30850 2015-02-18 Richard Biener <rguenther@suse.de>
30852 PR tree-optimization/65063
30853 * tree-predcom.c (determine_unroll_factor): Return 1 if we
30854 have replaced looparound PHIs.
30856 2015-02-18 Martin Liska <mliska@suse.cz>
30858 * lto-streamer.c (lto_streamer_init): Encapsulate
30859 streamer_check_handled_ts_structures with checking macro.
30861 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30864 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
30865 section if !implicit_section.
30866 (cgraph_node::create_version_clone_with_body): Likewise.
30867 * trans-mem.c (ipa_tm_create_version): Likewise.
30869 2015-02-18 Richard Biener <rguenther@suse.de>
30871 PR tree-optimization/62217
30872 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
30875 2015-02-18 Marek Polacek <polacek@redhat.com>
30878 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
30879 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
30880 is in range [-16K, -1]. Don't issue run-time error if
30881 (ptr > ptr + offset).
30883 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
30885 * doc/install.texi (nvptx-*-none): New section.
30886 * doc/invoke.texi (Nvidia PTX Options): Likewise.
30887 * config/nvptx/nvptx.opt: Update.
30889 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
30890 (access_check): New functions, copied from
30891 config/i386/intelmic-mkoffload.c.
30892 (main): For non-installed testing, look in all COMPILER_PATHs for
30895 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
30897 2015-02-18 Andrew Pinski <apinski@cavium.com>
30898 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30900 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
30901 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
30903 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
30905 * ipa-visibility.c (function_and_variable_visibility): Only
30906 check locality if node is not already local.
30907 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30908 call_for_symbol_and_aliases instead of
30909 call_for_symbol_thunks_and_aliases.
30910 (ipa_inline): Likewise.
30911 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30912 first walk aliases.
30913 * ipa.c (symbol_table::remove_unreachable_nodes): Use
30914 call_for_symbol_and_aliases.
30915 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30916 (ipa_propagate_frequency_1): Use it; use opt_for_fn
30917 (ipa_propagate_frequency): Update.
30918 (ipa_profile): Add opt_for_fn gueards.
30920 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
30922 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
30923 * doc/invoke.texi (SH options): Document it.
30924 * config/sh/sh.c (sh_insn_length_adjustment): Check
30925 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
30927 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
30929 * common.opt (fipa-cp-alignment): New.
30930 * ipa-cp.c (ipcp_store_alignment_results): Check
30931 flag_ipa_cp_alignment.
30932 * opts.c (default_options_table): Enable -fipa-cp-alignment for
30934 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
30935 * doc/invoke.texi: Document -fipa-cp-alignment.
30937 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
30940 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
30941 to nil. Adjust comments.
30943 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
30945 * ipa-visibility.c (function_and_variable_visibility): Only
30946 check locality if node is not already local.
30947 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30948 call_for_symbol_and_aliases instead of
30949 call_for_symbol_thunks_and_aliases.
30950 (ipa_inline): Likewise.
30951 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30952 first walk aliases.
30953 * ipa.c (symbol_table::remove_unreachable_nodes): Use
30954 call_for_symbol_and_aliases.
30955 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30956 (ipa_propagate_frequency_1): Use it; use opt_for_fn
30957 (ipa_propagate_frequency): Update.
30958 (ipa_profile): Add opt_for_fn guards.
30960 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
30962 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
30963 skipping of "strange" tokens.
30965 2015-02-17 Jeff Law <law@redhat.com>
30967 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
30970 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
30972 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
30973 as forcing a HARD_DEP between instructions, thereby
30974 disallowing rewriting to break dependencies.
30976 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
30978 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
30979 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
30980 variables in boundary that have no inlitalizer encoded and are
30982 * varasm.c (default_binds_local_p_2): External definitions do not
30983 count as definitions here.
30985 2015-02-16 Jeff Law <law@redhat.com>
30987 PR tree-optimization/64823
30988 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
30990 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
30991 threading through blocks with PHIs, but no statements.
30992 (thread_through_normal_block): Distinguish between blocks where
30993 we did not process all the statements and blocks with no statements.
30995 2015-02-16 Jakub Jelinek <jakub@redhat.com>
30996 James Greenhalgh <james.greenhalgh@arm.com>
30999 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
31000 section if not linkonce. Fix up formatting.
31001 (cgraph_node::create_version_clone_with_body): Copy section.
31002 * trans-mem.c (ipa_tm_create_version): Likewise.
31004 2015-02-16 Richard Biener <rguenther@suse.de>
31006 PR tree-optimization/65077
31007 * tree-ssa-structalias.c (get_constraint_for_1): Handle
31008 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
31009 (find_func_aliases): Allow float values to carry pointers again.
31011 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31013 * doc/install.texi (Specific): Reorder targets list to put
31014 aarch64 in alphabetical order. Add a link to aarch64*-*-*
31017 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
31018 David Edelsohn <dje.gcc@gmail.com>
31021 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
31022 mapping class to external variable or function reference.
31023 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
31026 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
31029 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
31030 ASM_WEAKEN_DECL if defined.
31032 2015-02-16 Richard Biener <rguenther@suse.de>
31035 * varasm.c (default_file_start): For LTO produced units
31036 emit <artificial> as file directive.
31038 2015-02-16 Richard Biener <rguenther@suse.de>
31040 PR tree-optimization/63593
31041 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
31042 stmts and releasing SSA names until...
31043 (execute_pred_commoning): ... after processing all chains.
31045 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
31048 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
31049 external functions.
31051 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
31053 * doc/bugreport.texi: Adjust section titles throughout the file
31054 to use "Title Case".
31055 * doc/extend.texi: Likewise.
31056 * doc/gcov.texi: Likewise.
31057 * doc/implement-c.texi: Likewise.
31058 * doc/implement-cxx.texi: Likewise.
31059 * doc/invoke.texi: Likewise.
31060 * doc/objc.texi: Likewise.
31061 * doc/standards.texi: Likewise.
31062 * doc/trouble.texi: Likewise.
31064 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
31066 * cgraph.h (symtab_node::has_aliases_p): Simplify.
31067 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
31068 * tree.c (lookup_binfo_at_offset): Make static.
31069 (get_binfo_at_offset): Do not shadow offset; add explanatory
31072 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
31074 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
31075 for all floading point loads and stores except those using a register
31077 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
31080 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
31082 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
31083 (do_estimate_growth_1): Record if any uninlinable edge was seen.
31084 (estimate_growth): Handle uninlinable edges correctly.
31085 (check_callers): New.
31086 (growth_likely_positive): Handle aliases correctly.
31088 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
31090 * ipa-chkp.c: Use iterate_direct_aliases.
31091 * symtab.c (resolution_used_from_other_file_p): Move inline.
31092 (symtab_node::create_reference): Fix formating.
31093 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31094 (symtab_node::iterate_reference): Move inline.
31095 (symtab_node::iterate_referring): Move inline.
31096 (symtab_node::iterate_direct_aliases): Move inline.
31097 (symtab_node::used_from_object_file_p_worker): Inline into ...
31098 (symtab_node::used_from_object_file_p): ... this one; move inline.
31099 (symtab_node::call_for_symbol_and_aliases): Move inline;
31100 use iterate_direct_aliases.
31101 (symtab_node::call_for_symbol_and_aliases_1): New method.
31102 (cgraph_node::call_for_symbol_and_aliases): Move inline;
31103 use iterate_direct_aliases.
31104 (cgraph_node::call_for_symbol_and_aliases_1): New method.
31105 (varpool_node::call_for_node_and_aliases): Rename to ...
31106 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
31107 use iterate_direct_aliases.
31108 (varpool_node::call_for_symbol_and_aliases_1): New method.
31109 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
31110 (ipa_discover_readonly_nonaddressable_var): Update.
31111 * ipa-devirt.c: Fix formating.
31112 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
31114 (cgraph_node::call_for_symbol_and_aliases): Move inline.
31115 (cgraph_node::call_for_symbol_and_aliases_1): New function..
31116 * cgraph.h (used_from_object_file_p_worker): Remove.
31117 (resolution_used_from_other_file_p): Move inline.
31118 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31119 (symtab_node::iterate_reference): Move inline.
31120 (symtab_node::iterate_referring): Move inline.
31121 (symtab_node::iterate_direct_aliases): Move inline.
31122 (symtab_node::used_from_object_file_p_worker): Inline into ...
31123 (symtab_node::used_from_object_file_p): Move inline.
31124 * tree-emutls.c (ipa_lower_emutls): Update.
31125 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
31126 (varpool_node::call_for_node_and_aliases): Remove.
31128 2015-02-14 Jakub Jelinek <jakub@redhat.com>
31130 PR tree-optimization/62209
31131 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
31132 op == range->exp, insert seq and gimplified code after labels
31133 instead of after the phi.
31135 2015-02-13 Jeff Law <law@redhat.com>
31138 Revert my change for tree-optimization/64823.
31140 2015-02-13 Jakub Jelinek <jakub@redhat.com>
31142 PR tree-optimization/65053
31143 * tree-ssa-phiopt.c (value_replacement): When moving assign before
31144 cond, either reset VR on lhs or set it to phi result VR.
31146 2015-02-13 Jeff Law <law@redhat.com>
31148 PR tree-optimization/64823
31149 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
31150 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31151 threading through blocks with PHIs, but no statements.
31152 (thread_through_normal_block): Distinguish between blocks where
31153 we did not process all the statements and blocks with no statements.
31155 PR rtl-optimization/47477
31156 * match.pd (convert (plus/minus (convert @0) (convert @1): New
31157 simplifier to narrow arithmetic.
31159 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
31162 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
31163 polymorphic call info when type is not known to be preserved.
31165 2015-02-13 Maritn Jambor <mjambor@suse.cz>
31168 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
31169 (inline_call): Use it.
31171 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
31173 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
31174 GOMP_DEVICE_NVIDIA_PTX.
31176 2015-02-13 Jakub Jelinek <jakub@redhat.com>
31179 * stmt.c (emit_case_nodes): Use void_type_node instead of
31180 NULL_TREE as LABEL_DECL type.
31182 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
31184 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
31186 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
31187 symbolic references to data to be forced to constant memory on the
31190 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
31192 PR tree-optimization/65002
31193 * tree-cfg.c (pass_data_fixup_cfg): Don't update
31195 * tree-sra.c (some_callers_have_no_vuse_p): New.
31196 (ipa_early_sra): Reject functions whose callers
31197 assume function is read only.
31199 2015-02-13 Richard Biener <rguenther@suse.de>
31202 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
31203 for LTO produced CUs.
31205 2015-02-13 Bin Cheng <bin.cheng@arm.com>
31207 PR tree-optimization/64705
31208 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
31209 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
31210 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
31211 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
31212 expand_simple_operations.
31214 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
31215 Richard Henderson <rth@redhat.com>
31218 * cgraphunit.c (cgraph_node::finalize_function): Set definition
31219 before notice_global_symbol.
31220 (varpool_node::finalize_decl): Likewise.
31221 * varasm.c (default_binds_local_p_2): Rename from
31222 default_binds_local_p_1, add weak_dominate argument. Use direct
31223 returns instead of assigning to local variable. Unify varpool and
31224 cgraph paths via symtab_node. Reject undef weak variables before
31225 testing visibility. Reorder tests for simplicity.
31226 (default_binds_local_p): Use default_binds_local_p_2.
31227 (default_binds_local_p_1): Likewise.
31228 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
31230 (default_elf_asm_output_external): Emit visibility when specified.
31232 2015-02-13 Alan Modra <amodra@gmail.com>
31234 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
31235 code setting up r11 for out-of-line fp restore.
31237 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
31239 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
31240 (muser-mode): Likewise.
31242 2015-02-13 Alan Modra <amodra@gmail.com>
31244 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
31245 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
31247 2015-02-12 David Howells <dhowells@redhat.com>
31249 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
31251 * tree-ssa-uninit.c (dump_predicates): Likewise.
31252 * opts.c (print_filtered_help): Likewise.
31254 2015-02-12 Jakub Jelinek <jakub@redhat.com>
31256 * dwarf2out.c (output_die): Use "%s", name instead of name to
31257 avoid -Wformat-security warning.
31259 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
31260 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31261 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
31262 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31264 2015-02-12 Jason Merrill <jason@redhat.com>
31266 * common.opt (-flifetime-dse): New.
31268 2015-02-12 Jakub Jelinek <jakub@redhat.com>
31271 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
31273 PR tree-optimization/65014
31274 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
31275 use original second operand of arg0 or arg1 instead of
31276 that adjusted by STRIP_NOPS.
31278 2015-02-11 Jeff Law <law@redhat.com>
31281 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
31282 that needs to be queued, just queue it for a single cycle.
31284 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
31286 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
31287 bodies of thunks; comment on why.
31288 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
31289 symbols are extern.
31291 2015-02-11 Richard Henderson <rth@redhat.com>
31294 * tree-eh.c (mark_reachable_handlers): Mark source and destination
31295 regions of __builtin_eh_copy_values.
31297 2015-02-11 Jakub Jelinek <jakub@redhat.com>
31299 PR middle-end/65003
31300 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
31301 ultimate alias is MEM with SYMBOL_REF satisfying
31302 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
31303 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
31305 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
31307 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
31308 "diagnostic-core.h".
31309 (main): Initialize progname, and call diagnostic_initialize.
31311 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
31312 instead of __OPENMP_TARGET__.
31314 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
31315 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
31316 hard-coding PTX_ID.
31318 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
31320 * doc/sourcebuild.texi (pie_enabled): Document.
31322 2015-02-11 Martin Liska <mliska@suse.cz>
31325 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
31326 a return value for call to a function that is noreturn.
31328 2015-02-11 Richard Biener <rguenther@suse.de>
31331 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
31334 2015-02-11 Andrew Pinski <apinski@cavium.com>
31337 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
31338 Change the first argument type to size_type_node and add another
31340 (aarch64_simd_expand_builtin): Handle the new argument to
31341 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
31342 print an out when the first two arguments are not
31343 nonzero integer constants.
31344 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
31345 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
31347 2015-02-11 Jakub Jelinek <jakub@redhat.com>
31350 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
31351 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
31352 (ix86_set_current_function): Rewritten.
31353 (ix86_add_new_builtins): Temporarily clear current_target_pragma
31354 when creating builtin fndecls.
31356 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31359 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
31361 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
31362 have no comdat group.
31363 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
31364 (lto_output_varpool_node): Always output alias info.
31365 (output_refs): Output refs of boundary aliases, too.
31366 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
31367 (output_symtab): Output call eges in thunks in boundary.
31368 (get_alias_symbol): Remove.
31369 (input_node, input_varpool_node): Do not special case weakrefs.
31370 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
31371 alias and thunks targets in the boundary; do not take removed symbols
31372 from their comdat groups.
31373 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
31374 (cgraph_node::global_info): Remove.
31375 (cgraph_node::rtl_info): Look through aliases and thunks.
31376 * cgrpah.h (global_info): Remove.
31377 (non_local_p): Remove.
31379 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31380 Sandra Loosemore <sandra@codesourcery.com>
31382 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
31383 to inline asm. List dialects in proper order.
31385 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31386 Sandra Loosemore <sandra@codesourcery.com>
31388 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
31390 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31392 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
31393 modified) reference to Solaris.
31395 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
31397 * doc/extend.texi (Extended Asm): Fix typos.
31399 2015-02-10 Jakub Jelinek <jakub@redhat.com>
31402 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
31404 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
31407 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
31408 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
31409 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
31410 * config/sh/constraints.md (Ara, Add): New constraints.
31411 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
31413 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
31414 atomic_mem_operand_0. Don't use force_reg on the memory address.
31415 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
31416 Sra constraint. Convert to insn_and_split. Add workaround for
31418 (atomic_compare_and_swap<mode>_hard): Copy to
31419 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
31420 Use atomic_mem_operand_0 predicate.
31421 (atomic_compare_and_swap<mode>_soft_gusa,
31422 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
31423 AraAdd constraints.
31424 (atomic_compare_and_swap<mode>_soft_tcb,
31425 atomic_compare_and_swap<mode>_soft_imask,
31426 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
31427 atomic_mem_operand_0 predicate and SraSdd constraints.
31428 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
31430 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
31431 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
31432 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
31433 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
31434 force_reg on the memory address.
31435 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
31436 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
31437 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
31438 atomic_mem_operand_1 predicate and Sra constraint.
31439 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
31440 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
31441 Use atomic_mem_operand_1 predicate.
31442 (atomic_<fetchop_name><mode>_hard): Copy to
31443 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
31444 Use atomic_mem_operand_1 predicate.
31445 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
31446 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
31447 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
31448 insn_and_split. Use atomic_mem_operand_1 predicate.
31449 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
31450 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
31451 Use atomic_mem_operand_1 predicate.
31452 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
31453 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
31454 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
31455 in generated insn with original mem operand before emitting the insn.
31456 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
31457 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
31458 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
31459 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
31460 Use atomic_mem_operand_1 predicate and AraAdd constraints.
31461 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
31462 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
31463 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
31464 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
31465 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
31466 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
31467 atomic_not_fetch<mode>_soft_tcb,
31468 atomic_<fetchop_name>_fetch<mode>_soft_imask,
31469 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
31470 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
31471 Use atomic_mem_operand_1 predicate and SraSdd constraints.
31473 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
31475 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
31476 and 3 earlyclobber operands.
31478 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31480 * common.opt (fstack-reuse): Mark as optimization.
31482 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31485 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
31487 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
31489 PR tree-optimization/64326
31490 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
31492 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
31494 PR gcov-profile/61889
31495 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
31497 2015-02-10 Richard Biener <rguenther@suse.de>
31499 PR tree-optimization/64995
31500 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
31501 value we use is final.
31502 (visit_reference_op_store): Always valueize op.
31503 (visit_use): Properly valueize vuses.
31505 2015-02-10 Richard Biener <rguenther@suse.de>
31507 PR tree-optimization/64909
31508 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
31509 pass a scalar-stmt count estimate to the cost model.
31510 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
31512 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
31514 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
31515 enabled by default together with var-tracking.
31517 2015-02-10 Nick Clifton <nickc@redhat.com>
31519 * config/rl78/rl78.c: Remove DIV attribute code accidentally
31520 included in previous rl78 commit.
31522 2015-02-10 Richard Biener <rguenther@suse.de>
31524 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
31525 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
31526 return the bitpack.
31528 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
31530 PR gcov-profile/61889
31531 * config.in: regenerate.
31532 * configure.in: Likewise.
31533 * configure.ac: Check for ftw.h.
31534 * gcov-tool.c: Check for ftw.h before using nftw.
31536 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
31539 * ipa-visibility.c (update_visibility_by_resolution_info): Only
31540 assert when not in lto mode.
31542 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31544 * ira-color.c (setup_left_conflict_sizes_p): Simplify
31545 initialization/assignment of conflict_size.
31547 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
31550 * ipa-cp.c (gather_caller_stats): Skip thunks.
31551 (propagate_constants_topo): Skip aliases.
31553 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
31556 * config/sh/sh.c (sh_option_override): Don't change
31557 -freorder-blocks-and-partition to -freorder-blocks even when
31558 unwinding is enabled.
31559 (sh_can_follow_jump): Return false if the followee jump is
31560 a crossing jump when -freorder-blocks-and-partition is specified.
31561 * config/sh/sh.md (*jump_compact_crossing): New insn.
31563 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
31564 Kaz Kojima <kkojima@gcc.gnu.org>
31567 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
31568 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
31569 (sh_can_redirect_branch): Rename to ...
31570 (sh_can_follow_jump): ... this. Constify argument types.
31571 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
31572 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
31573 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
31574 * doc/tm.texi: Regenerate.
31576 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31579 * builtins.c (expand_builtin): Call targetm.expand_builtin
31580 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
31582 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31585 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
31587 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31590 * ipa-icf.c (set_local): New function.
31591 (sem_function::merge): Use it.
31593 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31595 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
31596 (add_type_duplicate): Fix comparison of BINFOs.
31598 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31600 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
31601 on getting VOID pointer.
31603 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31606 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
31609 2015-02-09 Richard Biener <rguenther@suse.de>
31611 * genmatch.c (replace_id): Copy expr_type.
31613 2015-02-09 Richard Biener <rguenther@suse.de>
31615 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
31616 (streamer_write_tree_bitfields): Declare.
31617 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
31618 properly unpack padding.
31619 (unpack_value_fields): Inline ...
31620 (streamer_read_tree_bitfields): ... here.
31621 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
31622 and properly add padding bits.
31623 (streamer_pack_tree_bitfields): Fold into ...
31624 (streamer_write_tree_bitfields): ... this new function,
31625 exposing the bitpack object.
31626 * lto-streamer-out.c (lto_write_tree_1): Call
31627 streamer_write_tree_bitfields.
31629 2015-02-09 Richard Biener <rguenther@suse.de>
31631 PR tree-optimization/54000
31632 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
31633 (struct ivopts_data): Add loop_loc member.
31634 (tree_ssa_iv_optimize_loop): Dump loop location.
31635 (create_new_ivs): Likewise, also dump number of IVs generated.
31637 2015-02-09 Martin Liska <mliska@suse.cz>
31639 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
31640 just if not yet registered.
31641 (ipa_icf_generate_summary): Register callgraph hooks.
31643 2015-02-08 Andrew Pinski <apinski@cavium.com>
31645 * config/aarch64/aarch64.c (gty_dummy): Delete.
31647 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31650 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
31651 (cgraph_node::local_p): Remove thunk related FIXME.
31653 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31656 * i386.c (ix86_function_regparm): Look through aliases to see if callee
31657 is local and optimized.
31658 (ix86_function_sseregparm): Likewise; also use target's SSE math
31659 settings; error out instead of silently generating wrong code
31661 (init_cumulative_args): Look through aliases.
31663 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31666 * ipa-split.c (execute_split_functions): Split if function has aliases.
31668 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31671 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
31672 aliases before trying to expand it.
31673 (cgraph_node::expand_thunk): Fix formating.
31675 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
31677 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
31678 (Using Assembly Language with C): Expand introduction.
31679 (Basic Asm): Copy-edit. Add more information about uses of
31681 (Extended Asm): Copy-edit. Document new escape syntax and
31683 (Global Reg Vars): Copy-edit.
31684 (Local Reg Vars): Likewise.
31686 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
31690 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
31691 (DBX_CONTIN_CHAR): Define.
31693 2015-02-06 Sebastian Pop <s.pop@samsung.com>
31694 Brian Rzycki <b.rzycki@samsung.com>
31696 PR tree-optimization/64878
31697 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
31698 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
31699 Stop recursion at loop phi nodes after having visited a loop phi node.
31701 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31703 * toplev.c (process_options): Change flag_ipa_ra before creating
31704 optimization_{default,current}_node.
31707 * cgraphunit.c (cgraph_node::expand_thunk): If
31708 restype is not is_gimple_reg_type nor the thunk_fndecl
31709 returns aggregate_value_p, set restmp to a temporary variable
31710 instead of resdecl.
31712 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
31714 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
31716 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
31719 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
31720 add a general secondary reload handler for SDmode, unless we have
31721 both read/write support for SDmode.
31723 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31725 PR middle-end/64937
31726 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
31727 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
31728 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
31729 1 before, push it to abstract_vec.
31730 (dwarf2out_abstract_function): Adjust caller. Don't call
31731 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
31732 DECL_ABSTRACT_P flags for all abstract_vec elts.
31734 2015-02-06 Renlin Li <renlin.li@arm.com>
31736 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
31738 * tree-ssa.c (execute_update_addresses_taken): Likewise.
31740 2015-02-06 Jeff Law <law@redhat.com>
31743 * config/h8300/h8300.c (push): New argument "in_prologue".
31744 Pass "in_prologue" along to "F".
31745 (h8300_push_pop): Corresponding changes.
31746 (h8300_expand_prologue): Likewise.
31747 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
31749 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31751 PR rtl-optimization/64957
31753 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
31754 IOR rather than for AND.
31756 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
31759 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
31760 of shift-add and (add + shift) operations. Rename local variable.
31762 2015-02-05 Jeff Law <law@redhat.com>
31765 * config/h8300/constraints.md (U): Correctly dectect
31766 "eightbit_data" memory addresses.
31767 * config/h8300/h8300.c (eightbit_constant_address_p): Also
31768 handle (const (plus (symbol_ref (x)))) where x is declared
31769 as an 8-bit data memory address.
31770 * config/h8300/h8300.md (call, call_value): Correctly detect
31771 "funcvec" functions.
31774 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
31775 24 to 28 bits for the H8/300.
31777 2015-02-06 Alan Modra <amodra@gmail.com>
31780 * config/rs6000/rs6000.c (chain_already_loaded): New function.
31781 (rs6000_call_aix): Use it.
31783 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
31785 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
31788 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
31790 * config/h8300/constraints.md ("U" constraint): Use strict
31791 variant of REG_OK_FOR_BASE_P after reload has started.
31793 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
31795 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
31796 define to zero if !TARGET_NEON.
31797 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
31799 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31800 Trevor Saunders <tsaunders@mozilla.com>
31803 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
31805 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31808 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
31809 when removing varpool nodes.
31811 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31814 * varpool.c (varpool_node::remove): Fix order of variables.
31816 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31819 * ipa-inline.c (inline_small_functions): Fix ordering issue between
31820 speculation resolution and key updates.
31822 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31824 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
31825 about not letting any speculative edges unupdated.
31827 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31830 * gcov-io.c (gcov_var): Export.
31832 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31834 PR middle-end/64922
31835 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
31836 edges that become speculative.
31838 2015-02-04 Jakub Jelinek <jakub@redhat.com>
31840 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
31841 or DW_LANG_Fortran08.
31842 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
31844 (gen_compile_unit_die): Handle "GNU Fortran2003" and
31845 "GNU Fortran2008" language strings.
31846 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
31847 * langhooks.h (lang_GNU_Fortran): New prototype.
31848 * langhooks.c (lang_GNU_Fortran): New function.
31849 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
31852 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
31854 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
31855 (RTX_OK_FOR_OLO10_P): Likewise.
31857 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
31859 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
31861 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31863 PR middle-end/64922
31864 * gimple.c: Include gimple-ssa.h.
31865 (maybe_remove_unused_call_args): New function.
31866 * gimple.h (maybe_remove_unused_call_args): Declare.
31867 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
31868 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
31869 * gimple-fold.c (gimple_fold_call): Likewise.
31871 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
31873 PR rtl-optimization/64905
31874 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
31875 pointer alignment if it isn't needed.
31877 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
31879 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
31880 cortex-a72.cortex-a53.
31881 * config/aarch64/aarch64-tune.md: Regenerate.
31882 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
31884 2015-02-04 Nick Clifton <nickc@redhat.com>
31886 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
31889 2015-02-04 Jakub Jelinek <jakub@redhat.com>
31891 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
31892 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
31893 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
31895 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
31896 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
31897 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
31898 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
31899 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
31900 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
31901 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
31902 * tree-core.h (enum built_in_function): In between
31903 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
31904 for builtins that use DEF_BUILTIN_CHKP macro.
31906 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
31909 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
31910 operands for tcc_comparison exprs. Fix typos.
31913 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
31914 of two XORs that have an intervening AND or IOR.
31917 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
31918 simplification of XOR of AND to not allocate new rtx before
31919 committing to a simplification.
31921 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31923 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
31924 manual swaps in all peepholes.
31926 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31928 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
31929 of manual swapping implementation.
31930 (aarch64_expand_vec_perm_const_1): Likewise.
31932 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
31934 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
31935 (generic_addrcost_table): Remove NAMED_PARAM.
31936 (cortexa57_addrcost_table): Likewise.
31937 (xgene1_addrcost_table): Likewise.
31938 (generic_regmove_table): Likewise.
31939 (cortexa53_regmove_table): Likewise.
31940 (xgene1_regmove_table): Likewise.
31941 (generic_vector_table): Likewise.
31942 (cortexa57_vector_table): Likewise.
31943 (xgene1_vector_table): Likewise.
31944 (generic_tunings): Likewise.
31945 (cortexa53_tunings): Likewise.
31946 (cortexa57_tunings): Likewise.
31947 (xgene1_tunings): Likewise.
31949 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
31951 * config/arm/arm-cores.def: Add cortex-a72 and
31952 cortex-a72.cortex-a53.
31953 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
31954 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
31955 * config/arm/arm-tune.md: Regenerate.
31956 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
31957 "cortex-a72.cortex-a53".
31958 * doc/invoke.texi (ARM Options/-mtune): Likewise.
31960 2015-02-04 Nick Clifton <nickc@redhat.com>
31963 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
31965 (nonimmediate_di_operand): Likewise.
31967 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
31968 prefixes of known F5 using MSP430 MCUs.
31970 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31972 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
31973 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
31974 instead of __builtin_sqrt.
31976 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
31978 * varasm.c (do_assemble_alias): Follow transparent alias
31980 (default_assemble_visibility): Follow transparent alias
31981 chain for decl name.
31983 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
31985 PR middle-end/62103
31986 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
31987 to compute size of referenced value in the constant case.
31989 2015-02-03 Jakub Jelinek <jakub@redhat.com>
31991 PR rtl-optimization/64756
31992 * cse.c (invalidate_dest): New function.
31993 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
31994 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
31995 invalidate and do not record it.
31997 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
32000 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
32001 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
32002 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
32003 atomic_nand<mode>_soft_tcb): New insns.
32004 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
32005 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
32006 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
32007 Split into atomic_not_fetchsi_hard if operands[0] is unused.
32008 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
32009 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32010 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
32011 atomic_not<mode>_hard if operands[0] is unused.
32012 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
32013 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
32014 if operands[0] is unused.
32015 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
32016 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
32017 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
32018 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32020 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
32021 into atomic_not<mode>_soft_tcb if operands[0] is unused.
32022 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
32023 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
32024 if operands[0] is unused.
32025 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
32026 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
32027 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
32028 atomic_nand_fetchsi_hard if operands[0] is unused.
32029 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
32030 atomic_nand<mode>_hard if operands[0] is unused.
32031 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
32032 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
32033 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
32034 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32035 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
32036 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
32037 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
32038 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32039 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
32040 atomic_not<mode>_hard if operands[0] is unused.
32041 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
32042 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32044 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
32045 into atomic_not<mode>_soft_tcb if operands[0] is unused.
32046 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
32047 atomic_nand<mode>_hard if operands[0] is unused.
32048 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
32049 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32051 2015-02-03 David Malcolm <dmalcolm@redhat.com>
32054 * Makefile.in (GCC_OBJS): Add gcc-main.o.
32055 * gcc-main.c: New file, containing "main" taken from gcc.c.
32056 * gcc.c (do_self_spec): Free decoded_options.
32057 (class driver): Move declaration to gcc.h.
32058 (main): Move declaration and implementation to new file
32060 (driver_get_configure_time_options): New function.
32061 * gcc.h (class driver): Move this declaration here, from
32063 (driver_get_configure_time_options): New declaration.
32065 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
32067 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
32068 cross-module inlining.
32069 * cgraph.h (cgraph_node): Add flag merged.
32070 * ipa-icf.c (sem_function::merge): Maintain it.
32072 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
32074 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
32075 instead of OBJECT_P.
32077 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
32080 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
32081 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
32082 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
32083 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
32085 2015-02-03 Jakub Jelinek <jakub@redhat.com>
32088 * combine.c (reg_n_sets_max): New variable.
32089 (can_change_dest_mode, reg_nonzero_bits_for_combine,
32090 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
32091 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
32092 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
32093 (rest_of_handle_combine): Initialize reg_n_sets_max.
32095 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
32097 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
32098 if some always_inline was inlined, apply changes before inlining
32101 2015-02-02 David Malcolm <dmalcolm@redhat.com>
32104 * config/arm/arm.c (arm_option_override): Set
32105 arm_selected_arch/cpu/tune to NULL on entry.
32107 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
32108 Andrew Pinski <pinskia@gcc.gnu.org>
32109 Jakub Jelinek <jakub@gcc.gnu.org>
32112 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
32113 integer typing for small model. Use IN_RANGE.
32115 2015-02-02 Richard Biener <rguenther@suse.de>
32117 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
32118 * tree-vrp.c (vrp_valueize_1): Likewise.
32120 2015-02-02 Alan Modra <amodra@gmail.com>
32122 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
32123 than mem for toc_restore.
32124 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
32125 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
32126 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
32128 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
32131 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
32132 explicit default options.
32134 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
32137 * ipa-utils.c (ipa_merge_profiles): Add release argument.
32138 * ipa-icf.c (sem_function::merge): Do not release body when merging.
32139 * ipa-utils.h (ipa_merge_profiles): Update prototype.
32141 2015-02-01 Jakub Jelinek <jakub@redhat.com>
32144 * cfgexpand.c (deep_ter_debug_map): New variable.
32145 (avoid_deep_ter_for_debug): New function.
32146 (expand_debug_expr): If TERed SSA_NAME is in
32147 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
32148 instead of trying to expand SSA_NAME's def stmt.
32149 (expand_debug_locations): When expanding debug bind
32150 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
32151 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
32153 (pass_expand::execute): Call avoid_deep_ter_for_debug on
32154 all debug bind stmts. Delete deep_ter_debug_map after
32155 expand_debug_location if non-NULL and clear it.
32157 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
32160 * config/sh/sync.md (atomic_fetch_notsi_hard,
32161 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
32162 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
32163 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
32164 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
32165 atomic_not_fetch<mode>_soft_imask): New insns.
32167 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32169 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
32170 (rank_for_schedule_debug): Split from ...
32171 (rank_for_schedule): ... this.
32172 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
32173 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
32175 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
32177 * doc/md.texi (Machine Constraints): Alphabetize table by target.
32178 * doc/extend.texi (x86 Variable Attributes): Move section to
32179 correct alphabetization after renaming.
32180 (x86 Type Attributes): Likewise.
32181 (Target Builtins): Re-alphabetize menu.
32182 (x86 Built-in Functions): Move section to correct alphabetization
32184 (x86 transactional memory intrinsics): Likewise.
32185 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
32186 and x86 Windows Options in table and menu.
32187 (x86 Options): Move section to correct alphabetization after
32189 (x86 Windows Options): Likewise.
32191 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
32193 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
32194 preferred names of the architecture and its 32- and 64-bit
32196 * doc/invoke.texi: Likewise.
32197 * doc/md.texi: Likewise.
32199 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
32202 * config/i386/predicates.md (address_no_seg_operand): Reject
32203 non-CONST_INT_P operands in invalid mode.
32205 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
32207 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
32208 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
32209 * config/i386/predicates.md (address_no_seg_operand): Call
32210 address_operand with VOIDmode.
32211 (vsib_address_operand): Ditto.
32212 (address_mpx_no_base_operand): Ditto.
32213 (address_mpx_no_index_operand): Ditto.
32215 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
32218 * lra-constraints.c (original_subreg_reg_mode): New.
32219 (simplify_operand_subreg): Try to simplify subreg of const. Use
32220 original_subreg_reg_mode for it.
32221 (swap_operands): Update original_subreg_reg_mode.
32222 (curr_insn_transform): Set up original_subreg_reg_mode.
32224 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
32227 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
32229 (process_alt_operands): Use it.
32230 (curr_insn_transform): Check the optional reload pseudo class is
32233 2015-01-30 Joseph Myers <joseph@codesourcery.com>
32235 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
32236 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
32238 * toplev.h (init_asm_output): Update comment on use of
32239 UNKNOWN_LOCATION with fatal_error.
32240 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
32241 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
32242 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
32243 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
32244 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
32245 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
32246 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
32247 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
32248 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
32249 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
32250 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
32251 fatal_error changed to pass input_location as first argument.
32253 2015-01-30 Martin Liska <mliska@suse.cz>
32255 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
32256 in #pragma GCC diagnostic guards.
32258 2015-01-30 Richard Biener <rguenther@suse.de>
32260 PR tree-optimization/64829
32261 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
32262 not add a widening conversion pattern but hand off extra
32263 widenings to callers.
32264 (vect_recog_widen_mult_pattern): Handle extra widening produced
32265 by vect_handle_widen_op_by_const.
32266 (vect_recog_widen_shift_pattern): Likewise.
32267 (vect_pattern_recog_1): Remove excess vertical space in dumping.
32268 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
32269 (vect_init_vector_1): Likewise.
32270 (vect_get_vec_def_for_operand): Likewise.
32271 (vect_finish_stmt_generation): Likewise.
32272 (vectorizable_load): Likewise.
32273 (vect_analyze_stmt): Likewise.
32274 (vect_is_simple_use): Likewise.
32276 2015-01-29 Jeff Law <law@redhat.com>
32278 * combine.c (try_combine): Fix typo in comment.
32280 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
32283 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
32284 (rs6000_stack_info): Add assert.
32285 (rs6000_output_savres_externs): New function, split off from...
32286 (rs6000_output_function_prologue): ... here. Do not call it for
32289 2015-01-29 Jeff Law <law@redhat.com>
32292 * combine.c (try_combine): If I0 is a memory load and I3 a store
32293 to a related address, increase the "goodness" of doing a 4-insn
32294 combination with I0-I3.
32295 (make_field_assignment): Handle SUBREGs in the ior+and case.
32297 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
32299 PR tree-optimization/64746
32300 * tree-if-conv.c (mask_exists): New function.
32301 (predicate_mem_writes): Save created mask with given size for further
32303 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
32304 (ifcvt_repair_bool_pattern): Collect all statements that are root
32305 of bool pattern and use iterative algorithm to remove multiple uses
32306 of predicates, display number of required iterations.
32308 2015-01-29 Richard Biener <rguenther@suse.de>
32310 PR tree-optimization/64853
32311 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
32312 stmt will get simulated again.
32313 * tree-ssa-ccp.c (valueize_op_1): Likewise.
32315 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32317 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
32318 return_in_pc. Remove redundant assignments.
32319 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
32320 (arm_expand_epilogue): Don't compare boolean with true in if condition.
32322 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
32324 * config/i386/i386.c (ix86_mode_after): Make static.
32326 2015-01-29 Richard Biener <rguenther@suse.de>
32328 PR tree-optimization/64844
32329 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
32330 dump cost model analysis.
32331 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32332 Do not register adjusted load/store costs here.
32334 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
32335 Uros Bizjak <ubizjak@gmail.com>
32337 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
32338 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
32339 using x86_use_pseudo_pic_reg.
32340 * config/i386/i386.c (ix86_conditional_register_usage): Remove
32341 support for fixed PIC register.
32342 (ix86_use_pseudo_pic_reg): Not static any more.
32344 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
32346 PR middle-end/64805
32347 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
32348 to avoid error in cgraph node verification.
32350 2015-01-29 Marek Polacek <polacek@redhat.com>
32352 * doc/standards.texi: Reflect that the default for C is gnu11.
32354 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
32357 * reorg.c (switch_text_sections_between_p): New function.
32358 (relax_delay_slots): Call it when testing if the jump insn
32359 is removable. Use targetm.can_follow_jump when testing if
32360 the conditional branch can follow an unconditional jump.
32362 2015-01-27 Caroline Tice <cmtice@google.com>
32364 Committing VTV Cywin/Ming patch for Patrick Wollgast
32365 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
32366 if -fvtable-verify=preinit/std is used.
32367 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
32368 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
32369 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
32370 if -fvtable-verify=preinit/std is used.
32371 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
32372 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
32373 if -fvtable-verify=preinit/std is used.
32374 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
32375 * config/i386/mingw32.h (LIB_SPEC): Likewise.
32376 * varasm.c (assemble_variable): Add code to properly set the comdat
32377 section and name for the .vtable_map_vars section in case the
32378 target is PE or COFF.
32380 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
32383 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
32384 make sane BB profile.
32385 (cgraph_node::expand_thunk): Make sane BB profile.
32386 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
32387 * cgraph.h (init_lowered_empty_function): Update prototype.
32388 * config/i386/i386.c (make_resolver_func): Update call.
32389 * predict.c (gate): Disable branch prediction pass if
32390 profile is already there.
32392 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
32394 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
32395 * opth-gen.awk: Likewise.
32396 * common.opt: Mark flag_fp_contract_mode as Optimization.
32398 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
32400 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
32401 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
32403 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
32406 * config/sh/predicates.md (atomic_arith_operand,
32407 atomic_logical_operand): Remove.
32408 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
32409 (atomic_arith_operand_0): New predicate.
32410 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
32411 Use atomic_arith_operand_0 for input values.
32412 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
32413 atomic_compare_and_swap<mode>_soft_gusa,
32414 atomic_compare_and_swap<mode>_soft_tcb,
32415 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
32416 arith_reg_operand instead of register_operand.
32417 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
32418 atomic_arith_operand_0 for newval input.
32419 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
32420 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
32421 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
32422 arith_reg_operand instead of register_operand.
32423 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
32424 fetchop_predicate_1, fetchop_constraint_1_llcs,
32425 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
32426 fetchop_constraint_1_imask): New code iterator attributes.
32427 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
32428 register_operand. Use fetchop_predicate_1.
32429 (atomic_fetch_<fetchop_name>si_hard,
32430 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
32431 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
32432 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
32433 and arith_reg_operand instead of register_operand. Use
32434 fetchop_predicate_1, fetchop_constraint_1_gusa.
32435 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
32436 and arith_reg_operand instead of register_operand. Use
32437 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
32439 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
32440 and arith_reg_operand instead of register_operand. Use
32441 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
32443 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
32444 register_operand. Use atomic_logical_operand_1.
32445 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
32446 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
32447 arith_reg_operand instead of register_operand.
32448 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
32449 Use arith_reg_dest and arith_reg_operand instead of register_operand.
32450 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
32451 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
32452 register_operand. Use fetchop_predicate_1.
32453 (atomic_<fetchop_name>_fetchsi_hard,
32454 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
32455 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32456 fetchop_constraint_1_llcs.
32457 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
32458 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32459 fetchop_constraint_1_gusa.
32460 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
32461 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32462 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
32463 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
32464 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32465 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
32466 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
32467 register_operand. Use atomic_logical_operand_1.
32468 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
32469 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
32470 arith_reg_operand instead of register_operand.
32471 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
32472 arith_reg_operand instead of register_operand. Use logical_operand
32473 and K08. Adjust asm sequence to allow R0 usage.
32474 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
32475 arith_reg_operand instead of register_operand. Use logical_operand
32478 2015-01-28 Jakub Jelinek <jakub@redhat.com>
32481 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
32482 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
32483 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
32484 only get_full_len HOST_WIDE_INTs from get_val () array rather than
32485 all bits in *val_wide.
32487 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
32489 * varpool.c (tls_model_names): Fix names.
32490 (varpool_node::dump): Dump tls- prefix for tls models.
32492 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
32493 Bernd Schmidt <bernds@codesourcery.com>
32494 Nathan Sidwell <nathan@codesourcery.com>
32496 * config/nvptx/mkoffload.c: New file.
32497 * config/nvptx/t-nvptx: Add build rules for it.
32498 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
32499 (extra_programs): Add mkoffload.
32500 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
32502 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
32504 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
32506 PR middle-end/64809
32507 * cfgexpand.c (reorder_operands): Skip debug gimples.
32509 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
32511 PR tree-optimization/64277
32512 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
32513 range info when possible to refine estimation.
32515 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32517 PR tree-optimization/64718
32518 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
32519 be a 16bit unsigned integer when n->range is 16.
32520 (bswap_replace): Convert src to that type if necessary for all bswap
32521 sizes. Fix rotation right notation in nearby comment. Use bswap_type
32522 set in pass_optimize_bswap::execute ().
32524 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
32526 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
32527 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
32528 integer and floating point variants.
32529 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
32531 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
32533 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
32534 for all vector modes.
32536 2015-01-28 Jakub Jelinek <jakub@redhat.com>
32539 * doc/sourcebuild.texi (comdat_group): Document.
32541 2015-01-28 Terry Guo <terry.guo@arm.com>
32543 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
32545 2015-01-27 David Malcolm <dmalcolm@redhat.com>
32547 * toplev.c (print_version): Add param "show_global_state", and
32548 only print GGC and plugin information if it is true.
32549 (init_asm_output): Pass in "true" for the new param when calling
32551 (process_options): Likewise.
32552 (toplev::main): Likewise.
32553 * toplev.h (print_version): Add new param to decl.
32555 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32559 * tree.c (lookup_binfo_at_offset): New function.
32560 (get_binfo_at_offset): Use it.
32562 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32565 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
32566 on vtable being vtable.
32568 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
32570 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
32571 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
32572 -mhotpatch= option.
32573 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
32574 -mno-hotpatch options. Change syntax of -mhotpatch= option.
32575 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
32577 (s390_hotpatch_trampoline_halfwords_max): Renamed.
32578 (s390_hotpatch_hw_max): New name.
32579 (s390_hotpatch_trampoline_halfwords): Renamed.
32580 (s390_hotpatch_hw_before_label): New name.
32581 (get_hotpatch_attribute): Removed.
32582 (s390_hotpatch_hw_after_label): New name.
32583 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
32585 (s390_attribute_table): Ditto.
32586 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
32587 (s390_function_num_hotpatch_hw): New name.
32588 Remove special handling of inline functions and hotpatching.
32589 Return number of nops before and after the function label.
32590 (s390_can_inline_p): Removed.
32591 (s390_asm_output_function_label): Emit a configurable number of nops
32592 after the function label.
32593 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
32594 (TARGET_CAN_INLINE_P) Removed.
32595 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
32597 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32598 Jiong Wang <jiong.wang@arm.com>
32600 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
32602 (cb<optab><mode>1): Likewise.
32603 * config/aarch64/iterators.md (bcond): New define_code_attr.
32605 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32607 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
32610 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32612 * config/s390/s390.c (s390_register_move_cost): Increase costs for
32615 2015-01-27 Richard Biener <rguenther@suse.de>
32617 * tree-vrp.c (update_value_range): Intersect the range with
32618 old recorded SSA name range information.
32620 2015-01-27 Nick Clifton <nickc@redhat.com>
32622 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
32623 BC, DE and HL registers directly, not via AX.
32624 When decrementing the stack pointer by a large amount, transfer SP
32625 into AX and perform the subtraction there.
32626 (rl78_expand_epilogue): Perform the inverse of the above
32629 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32631 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
32633 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32634 Yury Gribov <y.gribov@samsung.com>
32637 * ubsan.c (ubsan_source_location): Refactor code.
32638 (ubsan_type_descriptor): Update type size. Refactor code.
32640 2015-01-27 Richard Biener <rguenther@suse.de>
32642 PR tree-optimization/56273
32643 PR tree-optimization/59124
32644 PR tree-optimization/64277
32645 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
32646 from the first VRP pass.
32648 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32651 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
32652 handle the first argument in the same loop as all the other arguments.
32654 PR rtl-optimization/61058
32655 * jump.c (cleanup_barriers): Update basic block boundaries
32656 if BLOCK_FOR_INSN is non-NULL on PREV.
32658 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
32660 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
32661 bounds narrowing, already instrumented calls and calls to
32662 not instrumentable functions.
32664 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32666 PR tree-optimization/64807
32667 * wide-int.cc (wi::divmod_internal): Clear
32668 b_dividend[dividend_blocks_needed].
32670 2015-01-26 DJ Delorie <dj@redhat.com>
32672 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
32673 volatile memory references.
32675 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
32678 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
32680 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
32681 shifts if it already fits into K08.
32683 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32686 * ipa-inline.c (inline_small_functions): Print "unknown" even
32687 if edge->call_stmt is non-NULL, but has builtins or unknown
32690 PR middle-end/64421
32691 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
32692 with asterisk, skip the first character.
32694 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32697 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
32700 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
32703 * config/i386/i386.md (*movdi_internal): Also check operand 0
32704 to determine TYPE_LEA operand.
32705 (*movsi_internal): Ditto.
32707 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32709 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
32710 OPTION_MASK_QUAD_MEMORY_ATOMIC.
32712 2015-01-26 Renlin Li <renlin.li@arm.com>
32714 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
32716 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
32719 2015-01-26 Richard Biener <rguenther@suse.de>
32721 PR middle-end/64764
32722 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
32723 combining two BIT_AND_EXPR predicates.
32725 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32728 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
32730 2015-01-26 Terry Guo <terry.guo@arm.com>
32732 * config/arm/arm.c (arm_file_start): Update the assignment of
32733 Tag_ABI_HardFP_use.
32735 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
32737 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
32739 config/arm/arm.md: Include the new Cortex-A57 model.
32740 (generic_sched): Don't use generic_sched when tuning for
32743 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
32744 Uros Bizjak <ubizjak@gmail.com>
32746 * config/i386/i386.c (get_builtin_code_for_version): Add
32747 support for BMI and BMI2 multiversion functions.
32749 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32751 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
32752 (extract_bit_field): Likewise.
32753 (extract_low_bits): Likewise.
32754 (expand_mult): Likewise.
32755 (expand_mult_highpart_adjust): Likewise.
32757 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
32759 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
32760 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
32761 * config/i386/i386.c (processor_model): Add
32762 M_INTEL_COREI7_BROADWELL.
32763 (arch_names_table): Add "broadwell".
32765 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
32774 * config/sh/sh-protos.h
32775 (sh_extending_set_of_reg::can_use_as_unextended_reg,
32776 sh_extending_set_of_reg::use_as_unextended_reg,
32777 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
32778 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
32779 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
32780 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
32781 (sh_treg_insns): New class.
32782 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
32783 (scope_counter): New class.
32784 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
32785 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
32786 sh_extending_set_of_reg::can_use_as_unextended_reg,
32787 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
32788 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
32789 sh_split_treg_set_expr): New functions.
32790 (addsubcosts): Handle treg_set_expr.
32791 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
32792 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
32793 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
32794 (sh_insn_operands_modified_between_p): Make non-static.
32795 * config/sh/predicates.md (zero_extend_movu_operand): Allow
32796 simple_mem_operand in addition to displacement_mem_operand.
32797 (zero_extend_operand): Don't allow zero_extend_movu_operand.
32798 (treg_set_expr, treg_set_expr_not_const01,
32799 arith_reg_or_treg_set_expr): New predicates.
32800 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
32801 arith_or_int_operand instead of logical_operand. Convert to
32802 insn_and_split. Try to optimize constant operand in splitter.
32803 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
32804 (*tstqi_t_zero): Delete.
32805 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
32806 (tstsi_t_and_not): Delete.
32807 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
32808 Convert to insn_and_split.
32809 (unnamed split, tstsi_t_zero_extract_xor,
32810 tstsi_t_zero_extract_subreg_xor_little,
32811 tstsi_t_zero_extract_subreg_xor_big): Delete.
32812 (*tstsi_t_shift_mask): New insn_and_split.
32813 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
32814 to recombine with surrounding insns when splitting.
32815 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
32816 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
32817 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
32818 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
32819 (*cbranch_div0s: Delete.
32820 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
32821 Try to recombine with surrounding insns when splitting. Add operand
32823 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
32824 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
32825 *addc_r_r_msb, *addc_2r_msb): Delete.
32826 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
32828 (*addc_negreg_t): New insn_and_split.
32829 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
32830 Try to recombine with surrounding insns when splitting.
32831 Add operand order variants.
32832 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
32833 insn_and_split patterns.
32834 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
32835 surrounding insns when splitting.
32836 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
32837 (*rotcl): Likewise. Add zero_extract variant.
32838 (*ashrsi2_31): New insn_and_split.
32839 (*negc): Convert to insn_and_split. Use treg_set_expr.
32840 (*zero_extend<mode>si2_disp_mem): Update comment.
32841 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
32843 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
32844 with surrounding insns when splitting.
32845 (any_treg_expr_to_reg): New insn_and_split.
32846 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
32847 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
32848 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
32849 *zero_extract_2): New single bit zero extract patterns.
32850 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
32851 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
32852 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
32853 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
32855 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
32856 register_operand for set source.
32858 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
32860 * i386.opt (prefetch_sse): New targetsave.
32861 * i386.c (ix86_function_specific_save): Save prefetch_sse.
32862 (ix86_function_specific_restore): Restore prefetch_sse and initialize
32863 ix86_cost/ix86_tune_cost.
32865 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32867 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
32868 Support the JIT by using 0 as the language type.
32870 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
32873 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
32874 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
32875 (mark_regno_live, process_bb_lives): Pass new parameter value to
32876 make_hard_regno_born.
32878 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32880 PR rtl-optimization/63637
32881 PR rtl-optimization/60663
32882 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
32883 if elt->cost is MAX_COST for ASM_OPERANDS.
32884 (find_sets_in_insn): Fix up comment typo.
32885 (cse_insn): Don't set src_volatile for all non-volatile
32886 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
32887 or with "memory" clobber. Set elt->cost to MAX_COST
32888 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
32889 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
32891 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
32893 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
32896 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
32898 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
32899 libgcc/config/i386/elf-lib.h.
32901 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32904 * gcc.c (print_configuration): Don't print a blank line at the end
32906 (run_attempt): ... but here unstead.
32908 PR middle-end/64734
32909 * omp-low.c (scan_sharing_clauses): Don't ignore
32910 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
32911 on target data/update constructs.
32913 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
32916 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
32917 (DEBUG_RELOAD): Removed define.
32918 (m32c_limit_reload_class): Enable traces with if DEBUG0.
32919 (m32c_function_arg): Added a type cast.
32920 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
32921 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
32922 * config/m32c/bitops.md (andqi3_16): Likewise.
32923 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
32924 (push_a01_l): Likewise.
32926 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32929 * main.c (main): Construct toplev instances with init_signals=true.
32930 * toplev.c (general_init): Add param "init_signals", and use it to
32931 conditionalize the calls to signal and host_hooks.extra_signals.
32932 (toplev::toplev): Add param "init_signals".
32933 (toplev::main): When invoking general_init, pass m_init_signals
32934 to control whether signal-handlers are installed.
32935 * toplev.h (toplev::toplev): Add param "init_signals".
32936 (toplev::m_init_signals): New field.
32938 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32941 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
32942 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
32943 latter may be affected by the former (e.g. on i686).
32945 2015-01-23 Martin Liska <mliska@suse.cz>
32947 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
32948 false positive during profiledbootstrap.
32950 2015-01-23 Tom de Vries <tom@codesourcery.com>
32953 * lto-opts.c (lto_write_options): Output non-explicit conservative
32955 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
32956 (append_compiler_options): Pass -fopenacc through.
32958 2015-01-23 Tom de Vries <tom@codesourcery.com>
32961 * lto-opts.c (lto_write_options): Output non-explicit conservative
32963 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
32964 (append_compiler_options): Pass -fopenmp through.
32966 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32969 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
32972 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
32973 * diagnostic.def (DK_ICE_NOBT): New kind.
32974 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
32975 like DK_ICE, but never print backtrace.
32976 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
32977 (internal_error_no_backtrace): New function.
32978 * gcc.c (execute): Use internal_error_no_backtrace instead of
32981 2015-01-22 Jeff Law <law@redhat.com>
32984 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
32985 improve code density for small immediate to memory case.
32986 (insv): Better handle bitfield assignments when the field is
32987 being set to all ones.
32988 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
32991 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32992 Jakub Jelinek <jakub@redhat.com>
32994 PR middle-end/64729
32995 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
32996 for !TARGET_LIBC_PROVIDES_SSP version and
32997 -fstack-protector-{all,strong,explicit} otherwise.
32998 * config/freebsd.h (LINK_SSP_SPEC): Handle
32999 -fstack-protector-{strong,explicit}.
33001 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
33002 H.J. Lu <hongjiu.lu@intel.com>
33005 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
33008 2015-01-22 Wei Mi <wmi@google.com>
33010 PR rtl-optimization/64557
33011 * dse.c (record_store): Call get_addr for mem_addr.
33012 (check_mem_read_rtx): Likewise.
33014 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
33016 * fold-const.c (const_binop): Add early return for non-tcc_binary.
33018 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
33020 * toplev.c (init_local_tick): Process the failure when read
33021 fails for random_seed.
33023 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
33024 'pretty_name' to avoid memory overflow.
33026 2015-01-22 Richard Biener <rguenther@suse.de>
33028 PR middle-end/64728
33029 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
33030 abnormal coalescing on undefined SSA names.
33032 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
33036 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
33038 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
33040 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
33042 PR middle-end/63325
33043 * fold-const.c (fold_checksum_tree): Don't include value of
33044 expr->decl_with_vis.symtab_node in the checksum.
33046 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33048 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
33050 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
33053 * gcc.c (insert_comments): New function.
33054 (try_generate_repro): Call it.
33055 (append_text): Removed.
33057 2015-01-22 Richard Biener <rguenther@suse.de>
33059 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
33060 with IL incompatible options. Properly honor user optimize
33063 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
33065 PR rtl-optimization/64682
33066 * combine.c (distribute_notes): When moving a death note for
33067 a register that is set in the new I2, make sure to put it
33068 before that new I2.
33070 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
33072 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
33073 not TARGET_DEFAULT.
33075 2015-01-21 Jakub Jelinek <jakub@redhat.com>
33078 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
33079 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
33080 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
33083 * doc/invoke.texi (-fsanitize=vptr): Document.
33085 PR rtl-optimization/62078
33086 * dse.c: Include cfgcleanup.h.
33087 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
33088 anything call purge_all_dead_edges and cleanup_cfg at the end
33091 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
33093 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
33096 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33098 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
33101 2015-01-21 David Sherwood <david.sherwood@arm.com>
33102 Tejas Belagod <Tejas.Belagod@arm.com>
33104 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
33105 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
33106 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
33109 2015-01-21 David Sherwood <david.sherwood@arm.com>
33110 Tejas Belagod <Tejas.Belagod@arm.com>
33112 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
33113 (aarch64_reverse_mask): New decls.
33114 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
33115 (insn_count): New mode_attr.
33116 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
33117 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
33118 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
33119 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
33120 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
33121 (aarch64_simd_st4): New patterns.
33122 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
33123 (aarch64_reverse_mask): New functions.
33125 2015-01-21 Alan Hayward <alan.hayward@arm.com>
33127 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
33129 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
33130 addressing modes for BE.
33131 (aarch64_print_operand): Add 'R' specifier.
33132 (aarch64_simd_disambiguate_copy): Delete.
33133 (aarch64_simd_emit_reg_reg_move): New function.
33134 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
33135 in define_splits for structural moves.
33136 (mov<mode>): Use less restrictive predicates.
33137 (*aarch64_mov<mode>): Simplify and only allow for LE.
33138 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
33140 2015-01-21 Alan Hayward <alan.hayward@arm.com>
33142 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
33144 2015-01-21 Richard Henderson <rth@redhat.com>
33147 * ccmp.c (used_in_cond_stmt_p): Remove.
33148 (expand_ccmp_expr): Don't use it.
33150 2015-01-21 Nick Clifton <nickc@redhat.com>
33152 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
33155 2015-01-21 Richard Biener <rguenther@suse.de>
33157 PR middle-end/64313
33158 * tree-core.h (builtin_info, builtin_info_type): Turn from
33159 an object with two arrays into an array of an object with
33160 decl and two flags, implicit_p and declared_p.
33161 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
33162 set_builtin_decl, set_builtin_decl_implicit_p,
33163 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
33164 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
33165 * builtins.c (builtin_info): Adjust.
33166 * gimplify.c (gimplify_addr_expr): References to builtins
33167 that have been declared by the user makes them eligible for
33168 use by the compiler. Call set_builtin_decl_implicit_p on them.
33170 2015-01-20 Jeff Law <law@redhat.com>
33173 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
33174 allow pc-relative addresses in operand predicates or constraints.
33176 2015-01-21 Bin Cheng <bin.cheng@arm.com>
33178 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
33179 neon on aarch32 processors for stringops.
33181 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33184 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
33186 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33189 * ipa-inline.c: Include lto-streamer.h
33190 (report_inline_failed_reason): Output source file differences and
33191 flags on optimization/target node mismatch.
33192 (can_inline_edge_p): Consider caller to be the outer inline function;
33193 be less restrictive about matching opimize and optimize_size attributes.
33194 (inline_account_function_p): Break out from ...
33195 (inline_small_functions): ... here.
33196 * ipa-inline-transform.c (clone_inlined_nodes): Use
33197 inline_account_function_p.
33198 (inline_call): Use optimize attribution; use inline_account_function_p.
33199 (inline_transform): Use opt_for_fn.
33200 * ipa-inline.h (inline_account_function_p): Declare.
33202 2015-01-20 Jakub Jelinek <jakub@redhat.com>
33205 * dwarf2out.c (decl_piece_node): Don't put bitsize into
33206 mode if bitsize <= 0.
33207 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
33208 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
33209 sizes and positions.
33211 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
33213 * config/nios2/nios2.c (nios2_asm_file_end): Implement
33214 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
33216 (TARGET_ASM_FILE_END): Define.
33218 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33220 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
33221 (struct tune_params): Use the enum.
33222 * arm.c (arm_*_tune): Update.
33223 (arm_option_override): Update.
33225 2015-01-20 Richard Biener <rguenther@suse.de>
33228 * ipa-reference.c (add_static_var): Inline ...
33229 (analyze_function): ... here after splitting out from ...
33230 (is_proper_for_analysis): ... this.
33232 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
33235 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
33236 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
33237 replace the conditional with it's true branch.
33238 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
33239 (arm_lra_p): Remove.
33241 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
33243 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
33245 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33247 * config/tilegx/mul-tables.c: Move symtab.h include after
33248 coretypes.h include.
33249 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
33250 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
33251 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
33252 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
33253 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33255 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
33259 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
33261 PR rtl-optimization/64081
33262 * loop-iv.c (def_pred_latch_p): New function.
33263 (latch_dominating_def): Allow specific cases with non-single
33265 (iv_get_reaching_def): Likewise.
33266 (check_complex_exit_p): New function.
33267 (check_simple_exit): Use check_complex_exit_p to allow certain cases
33268 with exits not executing on any iteration.
33270 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33273 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
33274 to set branch cost.
33276 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33279 * i386.c (gate): Check flag_expensive_optimizations and
33281 (ix86_option_override_internal): Drop optimize_size condition
33282 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
33283 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
33284 MASK_PREFER_AVX128.
33285 (ix86_avx256_split_vector_move_misalign,
33286 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
33287 * sse.md (all uses of TARGET_PREFER_AVX128): Add
33288 optimize_insn_for_speed_p check.
33290 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
33292 * config/mips/mips.h (FP_ASM_SPEC): New define.
33293 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
33296 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
33299 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
33300 nullptr for insn when reaching the first insn.
33301 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
33302 (sh_insn_operands_modified_between_p): Add nullptr check.
33303 (sh_find_extending_set_of_reg): Fix log message. Don't accept
33304 sign extending mem load if the insn contains any UNSPEC or
33307 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33309 * params.def (inline-unit-growth): Drop to 15%.
33310 * invoke.texi (inline-unit-growth): Document change.
33312 2015-01-19 Martin Liska <mliska@suse.cz>
33315 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
33316 function for second argument of OBJ_TYPE_REF.
33318 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33321 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
33322 whether function is an alias.
33324 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33326 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
33329 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
33331 PR rtl-optimization/64671
33332 * lra-remat.c (operand_to_remat): Don't consider jump and call
33335 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
33338 * config/rs6000/default64.h: Include rs6000-cpus.def.
33339 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
33340 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
33341 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
33343 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
33345 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
33346 pseudo-op to specify assembler dialect.
33348 2015-01-19 Martin Liska <mliska@suse.cz>
33351 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
33352 Handle safe potentially removed nodes during filtering.
33354 2015-01-19 Martin Liska <mliska@suse.cz>
33356 * doc/extend.texi (no_icf): Add new attribute description.
33357 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
33358 where the pass attempts to merge a function with no_icf attribute.
33360 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33363 * doc/md.texi (ARM Options): Document register constraints.
33365 2015-01-19 Jiong Wang <jiong.wang@arm.com>
33366 Andrew Pinski <apinski@cavium.com>
33369 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
33370 (ashl<mode>3): Don't expand if operands[2] is not constant.
33372 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33375 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
33376 Match xor-and-xor RTL pattern.
33378 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
33380 PR rtl-optimization/64081
33381 * loop-iv.c (def_pred_latch_p): New function.
33382 (latch_dominating_def): Allow specific cases with non-single
33384 (iv_get_reaching_def): Likewise.
33385 (check_complex_exit_p): New function.
33386 (check_simple_exit): Use check_complex_exit_p to allow certain cases
33387 with exits not executing on any iteration.
33389 2015-01-19 Jakub Jelinek <jakub@redhat.com>
33391 * common.opt (fgraphite): Fix a typo.
33393 2015-01-19 Felix Yang <felix.yang@huawei.com>
33395 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
33397 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
33398 uminp, smax_nanp, smin_nanp): New builtins.
33399 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
33400 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
33401 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
33402 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
33403 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
33404 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
33405 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
33406 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
33407 vpminnms_f32): Rewrite using builtin functions.
33409 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
33412 * omp-low.c (offload_symbol_decl): Remove variable.
33413 (get_offload_symbol_decl): Remove function.
33414 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
33415 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
33416 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
33417 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
33418 BUILT_IN_GOACC_UPDATE don't pass it at all.
33420 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
33422 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
33425 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
33427 * ipa-chkp.c (chkp_produce_thunks): Add early param
33428 to split thunks production into two passes. Keep
33429 'always_inline' function bodies after the first pass.
33430 (pass_data_ipa_chkp_early_produce_thunks): New.
33431 (pass_ipa_chkp_early_produce_thunks): New.
33432 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
33433 chkp_produce_thunks signature.
33434 (make_pass_ipa_chkp_early_produce_thunks): New.
33435 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
33436 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
33437 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
33439 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33441 * cgraph.c (cgraph_node::dump): Dump profile flags.
33443 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
33446 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
33447 reg appear first in the parallel.
33449 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33451 * ipa-reference.c (set_reference_optimization_summary,
33452 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
33454 (ignore_module_statics): New static var.
33455 (propagate_bits): If ipa-reference is disabled, do not look into local
33457 (analyze_function): Disable analysis when ipa_reference is disabled.
33458 (generate_summary): Do not dump when reference is disabled;
33459 collect vars accessed from functions with ipa-reference disabled.
33460 (get_read_write_all_from_node): When ipa-reference is disabled, use the
33462 (gate): Enable for LTO.
33463 (ignore_edge_p): New function.
33464 (propagate): Skip functions w/o ipa-reference analysis.
33465 * optc-save-gen.awk: Handle optimize_debug correctly.
33466 * opth-gen.awk: Likewise.
33467 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
33468 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
33469 fira-share-save-slots, fira-share-spill-slots,
33470 fmodulo-sched-allow-regmoves, fpartial-inlining,
33471 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
33472 ftracer, ftree-parallelize-loops, fassociative-math,
33473 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
33475 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
33476 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
33478 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
33481 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33484 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
33486 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
33488 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
33490 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
33491 Remove duplicate option listings.
33493 2015-01-18 Felix Yang <felix.yang@huawei.com>
33495 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
33496 (autofdo_source_profile::get_callsite_total_count,
33497 function_instance::get_function_instance_by_decl,
33498 string_table::get_index, string_table::get_index_by_decl,
33499 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
33500 Fix comment typos. Reformatting and minor code rearrangement.
33502 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33504 * config/rs6000/rs6000.md (probe_stack): Delete.
33505 (probe_stack_address): New.
33507 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33509 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
33510 to test for 32-bit ABIs, not !TARGET_POWERPC64.
33512 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33514 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
33515 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
33516 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
33518 (rs6000_libcall_value): Use the new function.
33520 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
33522 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
33524 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
33526 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
33527 implement a more precise life analysis for it during backward scan.
33529 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
33531 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
33533 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
33535 PR rtl-optimization/52773
33536 * calls.c (emit_library_call_value): When pushing arguments use
33537 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
33538 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
33539 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
33541 2015-01-17 Jeff Law <law@redhat.com>
33543 PR rtl-optimization/32790
33544 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
33545 not ZERO_EXTEND in SET_DESTs.
33547 2015-01-17 Alan Modra <amodra@gmail.com>
33549 * cprop.c (do_local_cprop): Revert last change.
33551 2015-01-16 DJ Delorie <dj@redhat.com>
33552 Nick Clifton <nickc@redhat.com>
33554 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
33555 (addhi3_real): Likewise. Fix [HL+0] syntax.
33556 (subqi3_real): Likewise.
33557 (subhi3_real): Likewise.
33558 (cbranchqi4_real): Likewise. Allow saddr,#imm.
33559 (cbranchhi4_real): Likewise.
33560 (cbranchhi4_real_inverted): Likewise.
33561 (cbranchsi4_real_lt): Likewise.
33562 (cbranchsi4_real_ge): Likewise.
33563 (cbranchsi4_real_ge): Likewise.
33564 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
33565 (sub<mode>3_virt): Likewise.
33566 (cbranchqi4_virt): Likewise.
33567 (cbranchhi4_virt): Likewise.
33568 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
33569 always use '[reg+imm]' even when imm is zero.
33570 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
33571 (rl78_general_operand): New.
33572 (rl78_nonimmediate_operand): New.
33573 (rl78_nonfar_operand): Use them.
33574 (rl78_nonfar_nonimm_operand): Likewise.
33575 (rl78_stack_based_mem): Fix.
33576 * config/rl78/constraints.md (Ibqi): New.
33581 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
33582 (iorqi3): Likewise.
33583 (xorqi3): Likewise.
33584 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
33586 * config/rl78/constrains (Qs8): New constraint.
33587 * config/rl78/rl78.c (rl78_flags_already_set): New function.
33588 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
33589 * config/rl78/rl78-real.md (update_Z): New attribute.
33590 Update patterns to set it.
33591 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
33592 shorter compare and branch sequence can be used.
33593 (cbranchhi4_real): Likewise.
33594 (cbranchhi4_real_inverted): Likewise.
33596 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
33597 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
33599 * config/rl78/rl78.c (rl78_get_name_encoding): New.
33600 (rl78_option_override): Allow -mes0 only if C.
33601 (characterize_address): Support subregs of symbol_refs.
33602 (rl78_addr_space_address_mode): Move. Add __near.
33603 (rl78_far_p): Likewise.
33604 (rl78_addr_space_pointer_mode): Likewise.
33605 (rl78_as_legitimate_address): Likewise.
33606 (rl78_addr_space_subset_p): Likewise.
33607 (rl78_addr_space_convert): Likewise.
33608 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
33609 symbols with -mes0.
33610 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
33612 (rl78_alloc_physical_registers_op1): Change logic to prefer
33613 symbol[BC] addressing.
33614 (frodata_section): New.
33615 (rl78_asm_init_sections): Initialize it.
33616 (rl78_select_section): Put __far readonly symbols in .frodata.
33617 (rl78_make_type_far): New.
33618 (rl78_insert_attributes): Force all readonly symbols to be
33620 (rl78_asm_out_integer): New.
33621 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
33622 * config/rl78/rl78.opt (-mes0): New.
33624 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
33625 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
33626 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
33627 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
33628 (rl78_saddr_p): New.
33629 (rl78_output_aligned_common): New.
33630 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
33631 (rl78_handle_saddr_attribute): New.
33632 (rl78_handle_naked_attribute): New.
33633 (rl78_attribute_table): Add saddr.
33634 (rl78_print_operand_1): Don't print '!' on saddr operands.
33635 (rl78_print_operand_1): Strip encodings.
33637 (rl78_strip_name_encoding): New.
33638 (rl78_attrlist_to_encoding): New.
33639 (rl78_encode_section_info): New.
33640 (rl78_asm_init_sections): New.
33641 (rl78_select_section): New.
33642 (rl78_output_labelref): New.
33643 (rl78_output_aligned_common): New.
33644 (rl78_asm_out_integer): New.
33645 (rl78_asm_ctor_dtor): New.
33646 (rl78_asm_constructor): New.
33647 (rl78_asm_destructor): New.
33649 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
33650 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
33651 (transcode_memory_rtx): Update.
33652 (rl78_expand_epilogue): Use A_REG instead of 0.
33654 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33656 * config/arm/arm-protos.h (struct tune_params): New field
33657 sched_autopref_queue_depth.
33658 * config/arm/arm.c (sched-int.h): Include header.
33659 (arm_first_cycle_multipass_dfa_lookahead_guard,)
33660 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
33661 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
33662 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
33663 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
33664 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
33665 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
33666 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
33667 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
33668 * config/arm/t-arm (arm.o): Update.
33669 * haifa-sched.c (update_insn_after_change): Update.
33670 (rank_for_schedule): Use auto-prefetcher model, if requested.
33671 (autopref_multipass_init): New static function.
33672 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
33673 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
33674 variable for debug dumps.
33675 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
33676 (autopref_multipass_dfa_lookahead_guard): New global function that
33677 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
33678 (init_h_i_d): Update.
33679 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
33680 * sched-int.h (enum autopref_multipass_data_status): New const enum.
33681 (autopref_multipass_data_): Structure for auto-prefetcher data.
33682 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
33683 (struct _haifa_insn_data:autopref_multipass_data): New field.
33684 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
33685 (autopref_multipass_dfa_lookahead_guard): Declare.
33687 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33689 * rtlanal.c (get_base_term): Handle SCRATCH.
33691 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33693 * config/aarch64/aarch64.c
33694 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
33695 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33697 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
33698 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33700 2015-01-17 Alan Modra <amodra@gmail.com>
33702 * cprop.c (do_local_cprop): Disallow replacement of fixed
33705 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33708 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
33711 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
33713 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
33714 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
33716 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33718 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
33719 * config/arm/thumb1.md: ... Here.
33721 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33723 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
33724 TImode for TARGET_32BIT.
33726 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33728 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
33729 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
33731 (rs6000_abi_word_mode): New function.
33733 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33735 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
33736 instead of UNITS_PER_WORD to describe the size of stack slots.
33738 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33740 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
33741 as rs6000_promote_function_mode. Move comment to there.
33742 (rs6000_promote_function_mode): New function.
33744 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33746 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
33747 -mpowerpc64 is active.
33749 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33751 PR middle-end/64353
33752 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
33755 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33757 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
33758 introduced in revision 219724.
33760 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33761 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33764 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
33765 destination is not a GP reg.
33766 (*movdi_aarch64): Likewise.
33768 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
33771 * config/rs6000/default64.h: Revert ISA change.
33773 2015-01-16 Richard Biener <rguenther@suse.de>
33775 PR middle-end/64614
33776 * tree-ssa-uninit.c: Include tree-cfg.h.
33777 (MAX_SWITCH_CASES): New define.
33778 (convert_control_dep_chain_into_preds): Handle switch statements.
33779 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
33780 (normalize_one_pred_1): Do not split bit-manipulations.
33783 2015-01-16 Richard Biener <rguenther@suse.de>
33785 PR tree-optimization/64568
33786 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
33787 complex load rewriting for TARGET_MEM_REFs.
33789 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
33791 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
33793 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
33796 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
33798 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
33799 (aarch64_lra_p): Remove.
33801 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33804 * ipa-chkp.h (chkp_instrumentable_p): New.
33805 * ipa-chkp.c: Include tree-inline.h.
33806 (chkp_instrumentable_p): New.
33807 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
33808 Fix processing of not instrumentable functions.
33809 (chkp_versioning): Use chkp_instrumentable_p. Warn about
33810 not instrumentable functions.
33811 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
33812 chkp_instrumentable_p.
33813 * tree-inline.h (copy_forbidden): New.
33814 * tree-inline.c (copy_forbidden): Not static anymore.
33816 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33818 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
33821 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
33823 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
33824 type OP_OUT to OP_INOUT.
33826 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
33828 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
33829 (high x) y) to y if x and y have the same base.
33831 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33833 * config/arm/cortex-a57.md: New.
33834 * config/aarch64/aarch64.md: Include it.
33835 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
33836 * config/aarch64/aarch64-tune.md: Regenerate.
33838 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
33841 * ccmp.c (expand_ccmp_next): New function.
33842 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
33843 and compare insn sequence.
33844 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
33845 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
33846 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
33847 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
33848 (*ccmp_ior): Changed to ccmp_ior<mode>.
33849 (cmp<mode>): New pattern.
33850 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
33852 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
33854 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
33856 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
33857 _mm256_bsrli_epi128): New.
33858 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
33860 2015-01-15 Jiong Wang <jiong.wang@arm.com>
33862 * expmed.c (store_bit_field_using_insv): Improve warning message.
33863 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
33865 2015-01-15 Jiong Wang <jiong.wang@arm.com>
33867 PR rtl-optimization/64011
33868 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
33869 there is partial overflow.
33871 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33873 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
33875 (nds32_expand_epilogue_v3pop): Likewise.
33876 * config/nds32/nds32.md (sibcall): Define this for sibling call
33878 (sibcall_register): Likewise.
33879 (sibcall_immediate): Likewise.
33880 (sibcall_value): Likewise.
33881 (sibcall_value_register): Likewise.
33882 (sibcall_value_immediate): Likewise.
33883 (sibcall_epilogue): Likewise.
33884 (epilogue): Pass false to indicate this is not a sibcall epilogue.
33885 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
33886 (nds32_expand_epilogue_v3pop): Likewise.
33888 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33890 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
33891 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
33892 (return_internal): New.
33893 (return): Define this named pattern.
33894 (simple_return): Define this named pattern.
33895 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
33896 pattern instead of unspec_volatile_func_return.
33897 (nds32_expand_epilogue_v3pop): Likewise.
33898 (nds32_can_use_return_insn): New function.
33900 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33902 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
33903 * config/nds32/nds32.md (pop25return): New.
33904 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
33905 pop25return pattern.
33907 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33909 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
33910 -mforbid-fp-as-gp, and -mex9 options.
33912 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33914 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
33915 remove -mgp-direct option.
33917 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33919 * doc/invoke.texi (--param early-inlining-insns): Update default value.
33920 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
33922 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33924 * ipa-inline.c (inline_small_functions): Work around hints
33927 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
33930 * doc/invoke.texi (Option Summary): Document new Nios II
33932 (Nios II Options): Likewise.
33933 * config/nios2/nios2.opt: Add -mgpopt= option support.
33934 Modify existing -mgpopt and -mno-gpopt options to be aliases.
33935 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
33936 * config/nios2/nios2.c (nios2_option_override): Adjust
33937 -mgpopt defaulting.
33938 (nios2_in_small_data_p): Return true for explicit small data
33939 sections even with -G0.
33940 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
33943 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33946 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
33948 (inline_call): Fix removal of aliases.
33950 2015-01-15 Jakub Jelinek <jakub@redhat.com>
33952 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
33953 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
33954 * opts.c (common_handle_option): Add -fsanitize=vptr.
33955 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
33956 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
33957 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
33958 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
33959 (ubsan_expand_vptr_ifn): New prototype.
33960 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
33961 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
33962 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
33963 expand_LOOP_VECTORIZED): Make argument nameless, remove
33965 (expand_UBSAN_VPTR): New function.
33966 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
33968 (UBSAN_VPTR): New internal function.
33969 * sanopt.c (tree_map_traits): Renamed to ...
33970 (sanopt_tree_map_traits): ... this.
33971 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
33972 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
33973 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
33974 (maybe_optimize_ubsan_vptr_ifn): New function.
33975 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
33976 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
33978 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
33979 internal calls like pure functions for aliasing, even when they
33980 have other side-effects that prevent making them ECF_PURE.
33981 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
33982 (ubsan_expand_vptr_ifn): New function.
33984 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
33986 PR rtl-optimization/64110
33987 * stmt.c (parse_output_constraint): Process '^' and '$'.
33988 (parse_input_constraint): Ditto.
33989 * lra-constraints.c (process_alt_operands): Process the new
33991 * ira-costs.c (record_reg_classes): Process the new constraint
33993 * genoutput.c (indep_constraints): Add '^' and '$'.
33994 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
33995 * doc/md.texi: Add description of the new constraints.
33997 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
33998 Bernd Schmidt <bernds@codesourcery.com>
33999 Cesar Philippidis <cesar@codesourcery.com>
34000 James Norris <jnorris@codesourcery.com>
34001 Tom de Vries <tom@codesourcery.com>
34002 Ilmir Usmanov <i.usmanov@samsung.com>
34003 Dmitry Bocharnikov <dmitry.b@samsung.com>
34004 Evgeny Gavrin <e.gavrin@samsung.com>
34005 Jakub Jelinek <jakub@redhat.com>
34007 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
34008 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34009 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34010 New function types.
34011 * builtins.c: Include "gomp-constants.h".
34012 (expand_builtin_acc_on_device): New function.
34013 (expand_builtin, is_inexpensive_builtin): Handle
34014 BUILT_IN_ACC_ON_DEVICE.
34015 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
34017 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
34019 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
34020 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
34021 i386/intelmic-offload.h.
34022 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
34023 to libgomp and its dependencies.
34024 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
34025 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
34026 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
34027 * config/ia64/hpux.h (LIB_SPEC): Likewise.
34028 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
34029 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
34030 * doc/generic.texi: Update for OpenACC changes.
34031 * doc/gimple.texi: Likewise.
34032 * doc/invoke.texi: Likewise.
34033 * doc/sourcebuild.texi: Likewise.
34034 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
34035 GF_OMP_FOR_KIND_OACC_LOOP.
34036 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
34037 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
34038 GF_OMP_TARGET_KIND_OACC_UPDATE,
34039 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34041 * gimple.c: Update comments for OpenACC changes.
34042 * gimple.def: Likewise.
34043 * gimple.h: Likewise.
34044 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
34045 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34046 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
34047 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34048 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
34050 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
34051 * gimplify.c: Include "gomp-constants.h".
34052 Update comments for OpenACC changes.
34053 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
34054 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
34055 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34056 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
34057 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34058 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34059 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
34060 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34061 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
34063 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
34064 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
34065 OMP_CLAUSE_SET_MAP_KIND.
34066 (gimplify_oacc_cache): New function.
34067 (gimplify_omp_for): Handle OACC_LOOP.
34068 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
34070 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
34071 OACC_EXIT_DATA, OACC_UPDATE.
34072 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
34073 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
34074 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
34075 (gimplify_body): Consider flag_openacc next to flag_openmp.
34076 * lto-streamer-out.c: Include "gomp-constants.h".
34077 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
34078 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
34079 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
34080 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
34081 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
34082 (BUILT_IN_ACC_ON_DEVICE): New builtins.
34083 * omp-low.c: Include "gomp-constants.h".
34084 Update comments for OpenACC changes.
34085 (struct omp_context): Add reduction_map, gwv_below, gwv_this
34087 (extract_omp_for_data, use_pointer_for_field, install_var_field)
34088 (new_omp_context, delete_omp_context, scan_sharing_clauses)
34089 (create_omp_child_function, scan_omp_for, scan_omp_target)
34090 (check_omp_nesting_restrictions, lower_reduction_clauses)
34091 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
34092 Update for OpenACC changes.
34093 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
34094 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
34095 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
34096 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34097 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
34098 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
34100 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
34101 Handle GF_OMP_FOR_KIND_OACC_LOOP.
34102 (expand_omp_target, lower_omp_target): Handle
34103 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34104 GF_OMP_TARGET_KIND_OACC_UPDATE,
34105 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
34106 GF_OMP_TARGET_KIND_OACC_DATA.
34107 (pass_expand_omp::execute, execute_lower_omp)
34108 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
34110 (offload_symbol_decl): New variable.
34111 (oacc_get_reduction_array_id, oacc_max_threads)
34112 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
34113 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
34114 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
34115 (oacc_gimple_assign, oacc_initialize_reduction_data)
34116 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
34118 (is_targetreg_ctx): Remove function.
34119 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
34120 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
34121 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34122 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
34123 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
34124 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
34125 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
34126 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
34127 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
34128 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
34129 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
34130 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
34131 * tree-core.h: Update comments for OpenACC changes.
34132 (enum omp_clause_map_kind): Remove.
34133 (struct tree_omp_clause): Change type of map_kind member from enum
34134 omp_clause_map_kind to unsigned char.
34135 * tree-inline.c: Update comments for OpenACC changes.
34136 * tree-nested.c: Likewise. Include "gomp-constants.h".
34137 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
34138 (convert_tramp_reference_stmt, convert_gimple_call): Update for
34139 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
34140 OMP_CLAUSE_SET_MAP_KIND.
34141 * tree-pretty-print.c: Include "gomp-constants.h".
34142 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
34143 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
34144 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
34145 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
34146 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34147 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
34148 instead of OMP_CLAUSE_MAP_*.
34149 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
34150 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
34151 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34152 * tree-streamer-in.c: Include "gomp-constants.h".
34153 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
34154 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
34155 * tree-streamer-out.c: Include "gomp-constants.h".
34156 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
34158 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
34159 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
34160 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
34161 * tree.c (omp_clause_num_ops): Update accordingly.
34162 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
34164 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
34165 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
34166 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
34167 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
34168 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
34169 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
34170 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
34171 (OMP_CLAUSE_SET_MAP_KIND): New macro.
34172 * varpool.c (varpool_node::get_create): Consider flag_openacc next
34174 * config/i386/intelmic-offload.h: New file.
34175 * config/nvptx/offload.h: Likewise.
34177 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34179 * explow.h: Remove duplicate contents.
34180 * dojump.h: Likewise.
34182 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
34184 * arm.c (arm_xgene_tune): Add default initializer for instruction
34187 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34191 * ipa.c (symbol_table::remove_unreachable_nodes):
34192 Do not put abstract origins into boundary.
34194 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
34196 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
34197 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
34199 2015-01-15 Steve Ellcey <sellcey@mips.com>
34201 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
34202 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
34203 builtins.def, and chkp-builtins.def.
34205 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
34207 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
34210 2015-01-15 Richard Biener <rguenther@suse.de>
34212 PR tree-optimization/61743
34213 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
34214 information on PHIs for some simple cases.
34216 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
34218 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
34220 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
34221 * config/arm/arm-cores.def (xgene1): New entry.
34222 * config/arm/arm-tables.opt: Regenerate.
34223 * config/arm/arm-tune.md: Regenerate.
34224 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
34226 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34228 * tree-if-conv.c: Include hash-map.h.
34229 (aggressive_if_conv): New variable.
34230 (fold_build_cond_expr): Add simplification of non-zero condition.
34231 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
34232 destination block is not always executed.
34233 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
34234 than two predecessors if AGGRESSIVE_IF_CONV is true.
34235 (if_convertible_stmt_p): Fix commentary.
34236 (all_preds_critical_p): New function.
34237 (has_pred_critical_p): New function.
34238 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
34239 BB can have more than two predecessors and all incoming edges can be
34241 (predicate_bbs): Skip predication for loop exit block, use build2_loc
34242 to compute predicate for true edge.
34243 (find_phi_replacement_condition): Delete this function.
34244 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
34245 Allow interchange PHI arguments if EXTENDED is false.
34246 Change check that block containing reduction statement candidate
34247 is predecessor of phi-block since phi may have more than two arguments.
34248 (phi_args_hash_traits): New helper structure.
34249 (struct phi_args_hash_traits): New type.
34250 (phi_args_hash_traits::hash): New function.
34251 (phi_args_hash_traits::equal_keys): New function.
34252 (gen_phi_arg_condition): New function.
34253 (predicate_scalar_phi): Add handling of phi nodes with more than two
34254 arguments, delete COND and TRUE_BB arguments, insert body of
34255 find_phi_replacement_condition to predicate ordinary phi nodes.
34256 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
34257 delete call of find_phi_replacement_condition and invoke
34258 predicate_scalar_phi with two arguments.
34259 (insert_gimplified_predicates): Add assert that non-predicated block
34260 don't have statements to insert.
34261 (ifcvt_split_critical_edges): New function.
34262 (ifcvt_split_def_stmt): Likewise.
34263 (ifcvt_walk_pattern_tree): Likewise.
34264 (stmt_is_root_of_bool_pattern): Likewise.
34265 (ifcvt_repair_bool_pattern): Likewise.
34266 (ifcvt_local_dce): Likewise.
34267 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
34268 is copy of inner or outer loop force_vectorize field, invoke
34269 ifcvt_split_critical_edges, ifcvt_local_dce and
34270 ifcvt_repair_bool_pattern for aggressive if-conversion.
34272 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
34274 * config/aarch64/aarch64.md: Include xgene1.md.
34275 * config/aarch64/xgene1.md: New file.
34277 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
34279 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
34280 xgene1 (APM XGene-1) core definition.
34281 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
34282 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
34283 * doc/invoke.texi: Document -mcpu=xgene1.
34285 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34287 * dojump.h: New header file.
34288 * explow.h: Likewise.
34289 * expr.h: Remove includes.
34290 Move expmed.c prototypes to expmed.h.
34291 Move dojump.c prototypes to dojump.h.
34292 Move alias.c prototypes to alias.h.
34293 Move explow.c prototypes to explow.h.
34294 Move calls.c prototypes to calls.h.
34295 Move emit-rtl.c prototypes to emit-rtl.h.
34296 Move varasm.c prototypes to varasm.h.
34297 Move stmt.c prototypes to stmt.h.
34298 (saved_pending_stack_adjust): Move to dojump.h.
34299 (adjust_address): Move to explow.h.
34300 (adjust_address_nv): Move to emit-rtl.h.
34301 (adjust_bitfield_address): Likewise.
34302 (adjust_bitfield_address_size): Likewise.
34303 (adjust_bitfield_address_nv): Likewise.
34304 (adjust_automodify_address_nv): Likewise.
34305 * explow.c (expr_size): Move to expr.c.
34306 (int_expr_size): Likewise.
34307 (tree_expr_size): Likewise.
34308 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34309 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34310 * genemit.c (main): Generate includes statistics.h, real.h,
34311 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
34313 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
34314 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
34315 explow.h, emit-rtl.h, stmt.h.
34316 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
34317 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
34318 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
34319 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
34320 emit-rtl.h, varasm.h, stmt.h.
34321 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
34322 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
34323 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
34324 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
34325 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34326 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
34327 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
34328 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
34329 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
34330 tm.h tree.h varasm.h vec.h wide-int.h.
34331 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34332 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34333 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
34334 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
34335 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
34336 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
34337 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
34338 * loop-iv.c: Likewise.
34339 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
34340 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
34341 statistics.h stmt.h tree.h varasm.h wide-int.h.
34342 * lra-constraints.c: Likewise.
34343 * lra-eliminations.c: Likewise.
34344 * lra-lives.c: Likewise.
34345 * lra-remat.c: Likewise.
34346 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34347 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
34348 statistics.h stmt.h tree.h varasm.h wide-int.h.
34349 * hw-doloop.c: Likewise.
34350 * ira-color.c: Likewise.
34351 * ira-emit.c: Likewise.
34352 * loop-doloop.c: Likewise.
34353 * loop-invariant.c: Likewise.
34354 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34355 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
34356 statistics.h stmt.h tree.h varasm.h wide-int.h.
34357 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
34358 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
34359 statistics.h stmt.h tree.h varasm.h wide-int.h.
34360 * combine-stack-adj.c: Likewise.
34363 * ifcvt.c: Likewise.
34364 * ira-costs.c: Likewise.
34365 * jump.c: Likewise.
34366 * lra-coalesce.c: Likewise.
34367 * lra-spills.c: Likewise.
34368 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34369 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
34370 stmt.h varasm.h wide-int.h.
34371 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34372 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34374 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
34375 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
34376 statistics.h stmt.h varasm.h wide-int.h.
34377 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
34378 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
34379 varasm.h wide-int.h.
34380 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
34381 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34382 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
34383 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
34384 statistics.h stmt.h.
34385 * config/tilepro/tilepro.c: Likewise.
34386 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
34387 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
34388 * config/pdp11/pdp11.c: Likewise.
34389 * config/xtensa/xtensa.c: Likewise.
34390 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
34391 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34393 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34394 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34395 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
34396 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34397 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34398 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
34399 * rtl-chkp.c: Likewise.
34400 * tree-chkp-opt.c: Likewise.
34401 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
34402 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34403 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
34404 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34405 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34406 statistics.h stmt.h.
34407 * tree-vect-data-refs.c: Likewise.
34408 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
34409 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34410 rtl.h statistics.h stmt.h varasm.h.
34411 * internal-fn.c: Likewise.
34412 * ipa-icf-gimple.c: Likewise.
34413 * lto-section-out.c: Likewise.
34414 * tree-data-ref.c: Likewise.
34415 * tree-nested.c: Likewise.
34416 * tree-outof-ssa.c: Likewise.
34417 * tree-predcom.c: Likewise.
34418 * tree-pretty-print.c: Likewise.
34419 * tree-scalar-evolution.c: Likewise.
34420 * tree-ssa-strlen.c: Likewise.
34421 * tree-vect-loop.c: Likewise.
34422 * tree-vect-patterns.c: Likewise.
34423 * tree-vect-slp.c: Likewise.
34424 * tree-vect-stmts.c: Likewise.
34425 * tsan.c: Likewise.
34426 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34427 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
34429 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
34430 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34431 statistics.h stmt.h varasm.h.
34432 * loop-unroll.c: Likewise.
34433 * ubsan.c: Likewise.
34434 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
34435 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
34437 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34438 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
34439 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
34440 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34441 statistics.h stmt.h.
34442 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
34443 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34444 statistics.h stmt.h varasm.h.
34445 * gimple-match-head.c: Likewise.
34446 * lto-cgraph.c: Likewise.
34447 * lto-section-in.c: Likewise.
34448 * lto-streamer-in.c: Likewise.
34449 * lto-streamer-out.c: Likewise.
34450 * tree-affine.c: Likewise.
34451 * tree-cfg.c: Likewise.
34452 * tree-cfgcleanup.c: Likewise.
34453 * tree-if-conv.c: Likewise.
34454 * tree-into-ssa.c: Likewise.
34455 * tree-ssa-alias.c: Likewise.
34456 * tree-ssa-copyrename.c: Likewise.
34457 * tree-ssa-dse.c: Likewise.
34458 * tree-ssa-forwprop.c: Likewise.
34459 * tree-ssa-live.c: Likewise.
34460 * tree-ssa-math-opts.c: Likewise.
34461 * tree-ssa-pre.c: Likewise.
34462 * tree-ssa-sccvn.c: Likewise.
34463 * tree-tailcall.c: Likewise.
34464 * tree-vect-generic.c: Likewise.
34465 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34466 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
34467 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34468 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
34469 * varasm.c: Likewise.
34470 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34471 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
34473 * init-regs.c: Likewise.
34475 * omp-low.c: Likewise.
34476 * stack-ptr-mod.c: Likewise.
34477 * tree-ssa-reassoc.c: Likewise.
34478 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34479 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
34481 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34482 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
34483 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34484 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
34485 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34486 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
34487 * tree-ssa-phiopt.c: Likewise.
34488 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34489 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34490 * config/fr30/fr30.c: Likewise.
34491 * config/frv/frv.c: Likewise.
34492 * expr.c: Likewise.
34493 * final.c: Likewise.
34494 * optabs.c: Likewise.
34495 * passes.c: Likewise.
34496 * simplify-rtx.c: Likewise.
34497 * stmt.c: Likewise.
34498 * toplev.c: Likewise.
34499 * var-tracking.c: Likewise.
34500 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34501 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34502 * lower-subreg.c: Likewise.
34503 * postreload-gcse.c: Likewise.
34505 * reginfo.c: Likewise.
34506 * store-motion.c: Likewise.
34507 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34508 fixed-value.h hashtab.h real.h stmt.h varasm.h.
34509 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34510 fixed-value.h hashtab.h statistics.h stmt.h.
34511 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34512 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34513 * except.c: Likewise.
34514 * explow.c: Likewise.
34515 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34516 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
34518 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34519 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
34520 * tree-ssa-structalias.c: Likewise.
34521 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34522 fixed-value.h insn-config.h real.h statistics.h.
34523 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34524 fixed-value.h insn-config.h real.h statistics.h stmt.h.
34525 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34526 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34527 * cfgbuild.c: Likewise.
34528 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34529 fixed-value.h real.h rtl.h statistics.h stmt.h.
34530 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34531 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34532 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34533 fixed-value.h real.h statistics.h stmt.h.
34534 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34535 fixed-value.h real.h statistics.h stmt.h varasm.h.
34536 * cprop.c: Likewise.
34537 * modulo-sched.c: Likewise.
34538 * postreload.c: Likewise.
34539 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34540 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
34541 statistics.h stmt.h varasm.h.
34542 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
34543 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34544 rtl.h statistics.h stmt.h varasm.h.
34545 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
34546 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
34548 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34549 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
34551 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
34552 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
34554 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
34555 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34556 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34557 function.h real.h statistics.h stmt.h varasm.h.
34558 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34559 insn-config.h real.h statistics.h stmt.h.
34560 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34561 statistics.h stmt.h.
34562 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
34563 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
34564 statistics.h stmt.h varasm.h.
34565 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
34566 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
34567 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34568 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
34569 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
34570 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34571 statistics.h stmt.h varasm.h.
34572 * ipa-polymorphic-call.c: Likewise.
34573 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
34574 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34575 statistics.h stmt.h.
34576 * config/c6x/c6x.c: Likewise.
34577 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
34578 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34579 statistics.h stmt.h varasm.h.
34580 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
34581 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
34583 * ipa-split.c: Likewise.
34584 * tree-eh.c: Likewise.
34585 * tree-ssa-dce.c: Likewise.
34586 * tree-ssa-loop-niter.c: Likewise.
34587 * tree-vrp.c: Likewise.
34588 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
34589 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
34591 * config/nds32/nds32-fp-as-gp.c: Likewise.
34592 * config/nds32/nds32-intrinsic.c: Likewise.
34593 * config/nds32/nds32-isr.c: Likewise.
34594 * config/nds32/nds32-md-auxiliary.c: Likewise.
34595 * config/nds32/nds32-memory-manipulation.c: Likewise.
34596 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
34597 * config/nds32/nds32-predicates.c: Likewise.
34598 * config/nds32/nds32.c: Likewise.
34599 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
34600 fixed-value.h hashtab.h real.h statistics.h.
34601 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
34602 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34603 * config/arm/arm.c: Likewise.
34604 * config/avr/avr.c: Likewise.
34605 * config/bfin/bfin.c: Likewise.
34606 * config/h8300/h8300.c: Likewise.
34607 * config/i386/i386.c: Likewise.
34608 * config/ia64/ia64.c: Likewise.
34609 * config/iq2000/iq2000.c: Likewise.
34610 * config/m32c/m32c.c: Likewise.
34611 * config/m32r/m32r.c: Likewise.
34612 * config/m68k/m68k.c: Likewise.
34613 * config/mcore/mcore.c: Likewise.
34614 * config/mep/mep.c: Likewise.
34615 * config/mips/mips.c: Likewise.
34616 * config/mn10300/mn10300.c: Likewise.
34617 * config/moxie/moxie.c: Likewise.
34618 * config/pa/pa.c: Likewise.
34619 * config/rl78/rl78.c: Likewise.
34620 * config/rx/rx.c: Likewise.
34621 * config/s390/s390.c: Likewise.
34622 * config/sh/sh.c: Likewise.
34623 * config/sparc/sparc.c: Likewise.
34624 * config/spu/spu.c: Likewise.
34625 * config/stormy16/stormy16.c: Likewise.
34626 * config/v850/v850.c: Likewise.
34627 * config/vax/vax.c: Likewise.
34628 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
34629 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34630 * config/msp430/msp430.c: Likewise.
34631 * predict.c: Likewise.
34632 * value-prof.c: Likewise.
34633 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
34634 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
34635 * config/microblaze/microblaze.c: Likewise.
34636 * config/nios2/nios2.c: Likewise.
34637 * config/rs6000/rs6000.c: Likewise.
34638 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34639 insn-config.h real.h rtl.h statistics.h stmt.h.
34640 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34641 insn-config.h real.h statistics.h stmt.h.
34642 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
34643 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34644 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
34645 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34646 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
34647 fixed-value.h real.h statistics.h stmt.h.
34648 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
34649 fixed-value.h statistics.h stmt.h.
34650 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
34653 2015-01-15 Jakub Jelinek <jakub@redhat.com>
34655 * gengtype.c (create_user_defined_type): Workaround
34656 -Wmaybe-uninitialized false positives.
34657 * cse.c (fold_rtx): Likewise.
34658 * loop-invariant.c (gain_for_invariant): Likewise.
34660 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
34662 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
34663 set the memory attributes in all cases but clear MEM_EXPR if need be.
34665 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34667 PR tree-optimization/64434
34668 * cfgexpand.c (reorder_operands): New function.
34669 (expand_gimple_basic_block): Insert call of reorder_operands if
34672 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
34674 * config/mips/micromips.md (*swp): Remove explicit parallel.
34675 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
34676 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
34677 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
34678 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
34679 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
34680 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
34681 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
34682 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
34683 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
34684 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
34685 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
34686 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
34687 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
34688 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
34689 (mips_wrdsp): Likewise.
34690 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
34692 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
34693 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
34694 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
34695 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
34696 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
34697 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
34698 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
34699 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
34700 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
34702 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34704 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
34705 (mips_print_operand): Support 'y' to print exact log2 in decimal
34707 * config/mips/mips.h (ISA_HAS_LSA): New define.
34708 (ISA_HAS_DLSA): Likewise.
34709 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
34710 * config/mips/predicates.md (const_immlsa_operand): New predicate.
34712 2015-01-15 Martin Liska <mliska@suse.cz>
34715 * optc-save-gen.awk: Add support for array types.
34717 2015-01-15 Richard Biener <rguenther@suse.de>
34719 PR middle-end/64365
34720 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
34721 for MEM_REF access functions with the same base can never partially
34724 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
34726 * common.opt: New option -fstack-protector-explicit.
34727 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
34728 (stack_protect_decl_phase): Handle stack_protect attribute for
34729 explicit stack protection requests.
34730 (expand_used_vars): Similarly.
34731 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
34732 * doc/extend.texi: Add documentation for "stack_protect" attribute.
34733 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
34735 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
34738 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
34740 (sh_extending_set_of_reg): New struct.
34741 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
34742 sh_remove_reg_dead_or_unused_notes): New Declarations.
34743 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
34744 sh_find_extending_set_of_reg, sh_split_tst_subregs,
34745 sh_extending_set_of_reg::use_as_extended_reg): New functions.
34746 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
34747 convert to insn_and_split and use new function sh_split_tst_subregs.
34749 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
34751 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
34753 (Optimization Options): Move -fuse-ld documentation to...
34754 (Link Options): ...here.
34756 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34758 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
34760 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
34761 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
34762 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
34763 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
34764 instead of ZR for the memory operand of LL/SC.
34765 (compare_and_swap_12, sync_add<mode>): Likewise.
34766 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
34767 (sync_new_<optab>_12, sync_nand_12): Likewise.
34768 (sync_old_nand_12, sync_new_nand_12): Likewise.
34769 (sync_sub<mode>, sync_old_add<mode>): Likewise.
34770 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
34771 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
34772 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
34773 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
34774 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
34775 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
34776 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
34777 * doc/md.texi (ZC): Update description.
34779 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34781 * builtins.c (expand_builtin_atomic_exchange): Remove error when
34782 memory model is CONSUME.
34783 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
34784 expand_builtin_atomic_store): Change invalid memory model errors to
34786 (expand_builtin_atomic_clear): Change invalid model errors to warnings
34787 and issue warning for CONSUME.
34789 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
34791 * lto-cgraph: Update function comments for
34792 lto_symtab_encoder_encode_*.
34794 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34796 * Makefile.in (site.exp): Do not set ENABLE_LTO.
34798 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34800 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
34801 * lto-cgraph.c (select_what_to_stream): Remove argument, use
34802 lto_stream_offload_p instead.
34803 * lto-streamer.h (select_what_to_stream): Remove argument.
34804 * passes.c (ipa_write_summaries): Likewise.
34805 * tree-pass.h (ipa_write_summaries): Likewise.
34807 2015-01-14 Richard Biener <rguenther@suse.de>
34809 PR tree-optimization/59354
34810 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
34811 groups larger than the slp group size as having gaps.
34813 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34815 PR middle-end/59448
34816 * builtins.c (get_memmodel): Promote consume to acquire always.
34818 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34821 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
34824 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34827 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
34829 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
34830 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
34831 AVX512VBMI, as it implies AVX512BW.
34833 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34836 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
34837 (vec_unpacks_hi_v16sf): Ditto.
34839 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34841 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
34844 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34846 * doc/invoke.texi (mapcs): Mention deprecation.
34847 (mapcs-frame): Likewise.
34849 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
34852 * config/arm/arm.c (callee_saved_reg_p): Define.
34853 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
34854 register is callee saved instead of !call_used_regs[reg].
34855 (thumb1_compute_save_reg_mask): Likewise.
34857 2015-01-14 Hale Wang <hale.wang@arm.com>
34859 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
34862 2015-01-14 Richard Biener <rguenther@suse.de>
34865 * tree-inline.c (insert_debug_decl_map): Check destination
34866 function MAY_HAVE_DEBUG_STMTS.
34867 (insert_init_debug_bind): Likewise.
34868 (insert_init_stmt): Remove redundant check.
34869 (remap_gimple_stmt): Drop debug stmts if the destination
34870 function has var-tracking assignments disabled.
34872 2015-01-14 Martin Liska <mliska@suse.cz>
34874 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
34875 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
34877 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34880 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
34881 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
34883 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34885 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
34886 level from an ARCH; do not inject the default.
34887 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
34888 MIPS_ISA_LEVEL_SPEC.
34889 (MIPS_ISA_NAN2008_SPEC): Update comment.
34890 (BASE_DRIVER_SELF_SPECS): Likewise.
34891 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
34892 MIPS_DEFAULT_ISA_LEVEL_SPEC.
34893 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
34894 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
34895 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
34897 2015-01-14 Richard Biener <rguenther@suse.de>
34899 PR tree-optimization/64493
34900 PR tree-optimization/64495
34901 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
34902 assign the proper vectorized PHI to the inner loop exit PHIs.
34904 2015-01-14 Joey Ye <joey.ye@arm.com>
34906 * config/arm/arm.c (arm_compute_save_reg_mask):
34907 Do not save lr in case of tail call.
34908 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
34910 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
34912 * tree-vrp.c (check_array_ref): Emit more warnings
34913 for warn_array_bounds >= 2.
34914 * common.opt: New option -Warray-bounds=.
34915 * doc/invoke.texi: Document -Warray-bounds=.
34917 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
34919 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
34920 (mforbid-fp-as-gp): Remove.
34922 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
34923 (nds32_symbol_load_store_p): Remove.
34924 (nds32_fp_as_gp_check_available): Clean up implementation.
34925 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
34927 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
34928 fp-as-gp and ex9 cases.
34930 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34932 * tree-profile.c (init_ic_make_global_vars): Drop workaround
34933 for bintuils bug 14342.
34934 (init_ic_make_global_vars): Likewise.
34935 (gimple_init_edge_profiler): Likewise.
34936 (gimple_gen_ic_func_profiler): Likewise.
34938 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34940 * ipa-inline.c (inline_small_functions): Swap the operands in
34943 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34946 * ipa-inline-analysis.c (node_growth_cache): Remove.
34947 (initialize_growth_caches): Do not initialize it.
34948 (free_growth_caches): Do not free it.
34949 (do_estimate_growth): Rename to ...
34950 (estimate_growth): ... this one; drop growth cache code.
34951 (growth_likely_positive): Always go the heuristics way.
34952 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
34953 (reset_edge_caches): Do not reset node growth.
34954 (heap_edge_removal_hook): Do not maintain cache.
34955 (inline_small_functions): Likewise; strenghten sanity check.
34956 (ipa_inline): Do not maintain caches.
34957 * ipa-inline.h (node_growth_cache): Remove.
34958 (do_estimate_growth): Remove to ...
34959 (estimate_growth): this one; remove inline version.
34960 (reset_node_growth_cache): Remove.
34962 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34965 * ipa-inline.c (inline_small_functions): Update callee keys after
34966 resolving speculation
34967 (inline_small_functions): Always check monotonicity of the queue.
34969 2015-01-13 Marek Polacek <polacek@redhat.com>
34971 PR middle-end/64391
34972 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
34974 2015-01-13 Jakub Jelinek <jakub@redhat.com>
34976 PR rtl-optimization/64286
34977 * ree.c (combine_reaching_defs): Move part of comment earlier,
34978 remove !SCALAR_INT_MODE_P check.
34979 (add_removable_extension): Don't add vector mode
34980 extensions if all uses of the source register aren't the same
34983 2015-01-13 Renlin Li <renlin.li@arm.com>
34985 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
34986 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
34988 2015-01-13 Martin Liska <mliska@suse.cz>
34990 * ipa-icf.c (sem_function::equals_private): Call new functions
34991 cl_target_option_print_diff and cl_optimization_print_diff.
34992 * optc-save-gen.awk (cl_target_option_print_diff): New function.
34993 (cl_optimization_print_diff): Likewise.
34994 * opth-gen.awk: Likewise.
34996 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
34998 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
34999 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
35000 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
35001 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
35002 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
35003 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
35005 2015-01-13 Andrew Pinski <apinski@cavium.com>
35007 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
35008 instead of src mode.
35010 2015-01-13 Richard Biener <rguenther@suse.de>
35013 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
35016 2015-01-13 Andrew Pinski <apinski@cavium.com>
35018 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
35020 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
35022 2015-01-13 Jakub Jelinek <jakub@redhat.com>
35024 PR middle-end/63974
35025 * cfgexpand.c (expand_computed_goto): Don't call
35026 convert_memory_address here.
35028 2015-01-13 Richard Biener <rguenther@suse.de>
35030 PR tree-optimization/64406
35031 * tree-loop-distibution.c (pass_loop_distribution::execute):
35032 Reset the SCEV hashtable if we distributed anything.
35034 2015-01-13 Richard Biener <rguenther@suse.de>
35036 PR tree-optimization/64404
35037 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
35038 SLP types for CSEd loads.
35040 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35042 PR tree-optimization/64436
35043 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
35044 merge of two symbolic numbers for a bitwise OR to ...
35045 (perform_symbolic_merge): This. Also fix computation of the range and
35046 end of the symbolic number corresponding to the result of a bitwise OR.
35048 2015-01-13 Richard Biener <rguenther@suse.de>
35050 PR tree-optimization/64568
35051 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
35052 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
35054 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35056 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
35057 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
35059 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35061 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
35062 target-specific symbol_ref flag.
35063 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
35064 resides in rodata section.
35065 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
35066 (nds32_encode_section_info): New function.
35068 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35070 * config/nds32/nds32.md (call): Use pseudo instruction bal which
35071 clobbers TA_REGNUM if large code model is specified.
35072 (call_register): Likewise.
35073 (call_immediate): Likewise.
35074 (call_value): Likewise.
35075 (call_value_register): Likewise.
35076 (call_value_immediate): Likewise.
35078 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35080 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
35081 (TARGET_CMODEL_MEDIUM): New macro.
35082 (TARGET_CMODEL_LARGE): New macro.
35083 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
35084 code model setting in assembly code.
35086 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35088 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
35089 Remove MASK_GP_DIRECT flag.
35090 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
35091 one of the multilib default options.
35092 * config/nds32/nds32.opt (mgp-direct): Remove.
35093 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
35094 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
35096 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35098 * config/nds32/nds32.opt (mcmodel): Add new option.
35099 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
35100 to describe code model.
35102 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
35105 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
35107 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
35109 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
35110 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
35111 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
35112 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
35113 __builtin_sh_set_fpscr.
35115 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
35117 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
35118 after a funtion name just to indicate it is a function.
35119 ([-fsanitize-undefined-trap-on-error]): Likewise.
35120 ([-fdbg-cnt=]): Likewise.
35121 ([-mmemcpy]): Likewise.
35122 ([-mflush-func]): Likewise.
35123 ([-msynci]): Likewise.
35125 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
35127 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
35130 2015-01-12 Jakub Jelinek <jakub@redhat.com>
35132 PR tree-optimization/64563
35133 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
35134 instead of != VR_VARYING.
35137 * config/i386/i386.c (ix86_expand_prologue): Add
35138 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
35140 PR tree-optimization/64454
35141 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
35142 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
35143 for signed or [0, op1 - 1] for unsigned modulo.
35144 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
35145 even if op1 does not satisfy integer_pow2p.
35148 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
35150 2015-01-12 Jeff Law <law@redhat.com>
35153 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
35154 (trunchiqi2, truncsihi2): Similarly.
35156 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
35157 rather than calling F.
35159 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
35161 * tsan.c (instrument_expr): Use force_gimple_operand.
35162 Use may_be_nonaddressable_p instead of is_gimple_addressable.
35164 2015-01-12 Richard Biener <rguenther@suse.de>
35166 PR tree-optimization/64530
35167 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
35170 2015-01-12 Richard Biener <rguenther@suse.de>
35172 PR middle-end/64357
35173 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
35176 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35178 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
35179 Cortex-A17 tuning parameters.
35180 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
35182 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35184 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
35185 * config/arm/arm.c (arm_macro_fusion_p): New function.
35186 (arm_macro_fusion_pair_p): Likewise.
35187 (TARGET_SCHED_MACRO_FUSION_P): Define.
35188 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
35189 (ARM_FUSE_NOTHING): Likewise.
35190 (ARM_FUSE_MOVW_MOVT): Likewise.
35191 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
35192 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
35193 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
35194 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
35195 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
35196 arm_cortex_a5_tune): Specify fuseable_ops value.
35198 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
35201 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
35202 test for PIE with copy reloc.
35203 * configure: Regenerated.
35205 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35207 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
35209 (arm_tls_descseq_addr): Likewise.
35210 (arm_gen_movmemqi): Likewise.
35211 (arm_expand_epilogue_apcs_frame): Likewise.
35212 (arm_expand_epilogue): Likewise.
35213 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
35216 2015-01-12 Martin Liska <mliska@suse.cz>
35219 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
35220 volatility for correct operands.
35222 2015-01-12 Martin Liska <mliska@suse.cz>
35224 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
35225 indication that a function is not leaf.
35226 (sem_function::compare_polymorphic_p): Likewise.
35228 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35230 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
35231 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
35232 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
35233 fold-const.h, tree-check.h.
35235 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
35239 * ipa-inline.c (compute_uninlined_call_time,
35240 compute_inlined_call_time): Use counts for extra precision when
35242 (big_speedup_p): Fix formating.
35243 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
35244 (relative_time_benefit): Remove.
35245 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
35246 merge guessed and read profile paths.
35247 (inline_small_functions): Count only !optimize_size functions into
35248 initial size; be more lax about sanity check when profile is used;
35249 be sure to update inlined function profile when profile is read.
35251 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
35254 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
35255 cost when edge becomes direct.
35256 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
35257 is resolved or when introducing new speculation.
35259 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
35263 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
35264 '||' to fix typo issue.
35266 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
35267 accept and return NULL.
35269 2015-01-12 Martin Liska <mliska@suse.cz>
35271 * cgraph.c (cgraph_edge::remove_callee): Move function to header
35272 file for being inlined.
35273 (cgraph_set_edge_callee): Delete.
35274 (cgraph_edge::redirect_callee): Move function to header file
35276 (cgraph_edge::make_direct): Use new function.
35277 (cgraph_edge::dump_edge_flags): New function created from
35278 static dump_edge_flags function.
35279 (cgraph_node::dump): Use new function.
35280 (cgraph_edge::verify_count_and_frequency): New function created
35281 from verify_edge_count_and_frequency.
35282 (cgraph_edge::verify_corresponds_to_fndecl): New function created
35283 from verify_edge_corresponds_to_fndecl.
35284 (verify_edge_corresponds_to_fndecl): Delete.
35285 (cgraph_node::verify_node): Use new function.
35286 * cgraph.h (cgraph_edge::set_callee): New function.
35287 (cgraph_edge::dump_edge_flags): Likewise.
35288 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
35290 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
35292 * ipa-utils.c (estimate_function_body_sizes): Do not
35293 free node params when called late with early=true.
35295 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
35297 * doc/md.texi (Instruction Patterns): Rewrite text for
35299 (Example): Likewise.
35301 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
35303 * doc/invoke.texi (Option Summary): Break long lines.
35304 [(-fdiagnostics-color)]: Put long literal in @smallexample
35306 [(-fsanitize-recover)]: Likewise.
35307 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
35308 [(-ffast-math)]: Likewise.
35309 [(--param max-inline-insns-recursive)]: Likewise.
35310 [(--param max-inline-recursive-depth)]: Likewise.
35311 [(-mno-text-section-literals)]: Likewise.
35313 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
35315 * doc/install.texi: Update for libgomp being renamed from "GNU
35316 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
35318 * doc/sourcebuild.texi: Likewise.
35320 2015-01-10 Anthony Green <green@moxielogic.com>
35322 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
35323 mul.x availability for moxiebox configuration.
35325 2015-01-09 Anthony Green <green@moxielogic.com>
35327 * config/moxie/moxie.md: Tabify assembly output.
35329 2015-01-09 Anthony Green <green@moxielogic.com>
35331 * config/moxie/moxie.md (CC_REG): Correct register definition.
35333 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
35335 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
35336 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
35339 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35341 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
35343 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
35344 Jakub Jelinek <jakub@redhat.com>
35346 PR middle-end/64412
35347 * lto-streamer.h (lto_stream_offload_p): New declaration.
35348 * lto-streamer.c (lto_stream_offload_p): New variable.
35349 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
35350 at the same time as section_name_prefix.
35351 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
35352 if lto_stream_offload_p.
35353 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
35354 stream TREE_TARGET_OPTION if lto_stream_offload_p.
35355 (write_ts_function_decl_tree_pointers): Don't
35356 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
35357 * tree-streamer-in.c (unpack_value_fields): Don't stream
35358 TREE_TARGET_OPTION in if ACCEL_COMPILER.
35359 (lto_input_ts_function_decl_tree_pointers): Don't stream
35360 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
35361 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
35362 instead of section_name_prefix string comparisons.
35364 2015-01-09 Jakub Jelinek <jakub@redhat.com>
35366 PR rtl-optimization/64536
35367 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
35370 2015-01-09 Michael Collison <michael.collison@linaro.org>
35372 PR tree-optimization/64322
35373 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
35374 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
35376 2015-01-09 Tom de Vries <tom@codesourcery.com>
35378 PR rtl-optimization/64539
35379 * regcprop.c (kill_clobbered_values): Factor out of ...
35380 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
35381 instead of note_stores with kill_clobbered_value.
35383 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35385 * ginclude/unwind-arm-common.h: Revert previous commit.
35387 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35389 * config.gcc (arm*-*-freebsd*): New configuration.
35390 * config/arm/freebsd.h: New file.
35391 * config.host: Add extra components for arm*-*-freebsd*.
35392 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
35393 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
35395 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35397 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
35399 * config/rs6000/t-rtems: Add e6500 multilibs.
35401 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35403 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
35406 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35408 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
35409 MULTILIB_EXCEPTIONS.
35411 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35413 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
35414 MULTILIB_EXCEPTIONS.
35416 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35418 * config/arm/t-rtems-eabi: Rename to...
35419 * config/arm/t-rtems: ...this.
35420 * config/arm/rtems-eabi.h: Rename to...
35421 * config/arm/rtems.h: ...this.
35422 * config.gcc (arm*-*-rtems*): Reflect changes above.
35424 2015-01-09 Richard Biener <rguenther@suse.de>
35426 PR tree-optimization/64410
35427 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
35429 (execute_update_addresses_taken): Deal with that.
35430 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
35431 loads/stores for complex variables.
35433 2015-01-09 Martin Liska <mliska@suse.cz>
35435 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
35437 (func_checker::compare_memory_operand): New function.
35438 (func_checker::compare_operand): Split case to newly
35440 (func_checker::compare_cst_or_decl): New function.
35441 (func_checker::compare_gimple_call): Identify
35443 (func_checker::compare_gimple_assign): Likewise.
35444 * ipa-icf-gimple.h: New function.
35446 2015-01-09 Martin Liska <mliska@suse.cz>
35449 * sreal.c (sreal::dump): Change unsigned format to signed for
35451 (sreal::to_double): Replace exp2 with scalbln.
35453 2015-01-09 Martin Liska <mliska@suse.cz>
35455 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
35456 * ipa-icf.c (sem_function::equals_private): Add support for target and
35457 (sem_item_optimizer::merge_classes): Remove redundant function
35458 optimization flags comparison.
35459 * tree.h (target_opts_for_fn): New function.
35461 2015-01-09 Tom de Vries <tom@codesourcery.com>
35463 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
35465 2015-01-09 Kito Cheng <kito@0xlab.org>
35467 PR rtl-optimization/64348
35468 * lra-constraints.c (split_reg): Fix caller-save store/restore
35469 instruction generation.
35471 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
35473 PR gcov-profile/61790
35474 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
35475 long long. Fallback to int64_t if host doesn't have long long and
35476 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
35478 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35480 PR tree-optimization/63989
35481 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
35482 from 1000 to 10000.
35483 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
35484 (get_stridx): If we don't have a record for certain SSA_NAME,
35485 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
35486 constant offset, call get_stridx_plus_constant.
35487 (get_stridx_plus_constant): New function.
35488 (zero_length_string): Don't use get_stridx here.
35491 PR middle-end/64388
35492 * dse.c (struct insn_info): Mention frame_read set also
35493 before reload for tail calls on some targets.
35494 (scan_insn): Revert 2014-12-22 change. Set frame_read
35495 also before reload for tail calls if
35496 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
35497 instead of add_non_frame_wild_read for non-const/memset
35498 tail calls after reload.
35500 2015-01-08 Jason Merrill <jason@redhat.com>
35502 * ubsan.c (do_ubsan_in_current_function): New.
35503 (pass_ubsan::gate): Use it.
35504 * ubsan.h: Declare it.
35505 * convert.c (convert_to_integer): Use it.
35507 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35510 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
35511 compare_code when it is unconditionally overwritten afterwards.
35512 Use ix86_reverse_condition instead of reverse_condition. Don't
35513 change code if *reverse_condition* returned UNKNOWN and don't
35514 swap ct/cf and negate diff in that case.
35516 2015-01-08 Mike Stump <mikestump@comcast.net>
35518 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
35519 (pass_tsan_O0::gate): Likewise.
35520 * extend.texi (Function Attributes): Add no_sanitize_thread
35523 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
35525 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
35526 for registering builtins.
35527 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
35528 add -fopenmp to the argv_obstack used when invoking
35529 compile_for_target.
35531 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
35532 add "-m32" or "-m64" to argv_obstack.
35533 (generate_host_descr_file): Likewise, when invoking host_compiler.
35534 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
35537 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
35539 * config/sh/sh-mem.cc: Use constant as second operand when emitting
35542 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
35545 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
35546 constant load if constant operand fits into I08.
35548 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35551 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
35552 and TREE_THIS_VOLATILE for MEM_REFs.
35553 (build5_stat): Fix up initialization of TREE_READONLY and
35554 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
35556 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
35559 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
35560 of r for the second alternative of the destination operand.
35562 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
35565 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
35567 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35569 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
35571 ([-fivar-visibility], [-fvisibility]): Likewise.
35573 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35575 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
35576 the file where @code, @command, etc is more appropriate.
35578 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
35580 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
35581 of -mrecip= documentation.
35583 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35586 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
35587 correct reload handler if -m32 -mpowerpc64 is used.
35589 2015-01-06 Tom de Vries <tom@codesourcery.com>
35591 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
35593 2015-01-08 Christian Bruel <christian.bruel@st.com>
35596 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
35598 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
35600 PR tree-optimization/63259
35601 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
35602 if optab exists for 16bit byteswap.
35604 2015-01-06 Jakub Jelinek <jakub@redhat.com>
35606 * opts.c (common_handle_option): Add support for
35607 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
35608 * doc/invoke.texi: Document -fno-sanitize=all,
35609 -f{,no-}sanitize-recover=all. Document that
35610 -fsanitize=float-cast-overflow is not enabled
35611 by -fsanitize=undefined. Fix up documentation
35612 of -f{,no-}sanitize-recover.
35614 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
35616 * config.gcc: Add Visium support.
35617 * configure.ac: Likewise.
35618 * configure: Regenerate.
35619 * doc/extend.texi (interrupt attribute): Add Visium.
35620 * doc/invoke.texi: Document Visium options.
35621 * doc/install.texi: Document Visium target.
35622 * doc/md.texi: Document Visium constraints.
35623 * common/config/visium: New directory.
35624 * config/visium: Likewise.
35626 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35628 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
35629 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
35631 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35633 * combine.c (combine_validate_cost): Do not count the cost of a
35634 split I2 twice. Do not display it twice in the dump, either.
35636 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35638 Revert parts of r219199.
35639 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
35641 ([-Wtraditional]): Restore markup on <limits.h>.
35643 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
35646 * doc/invoke.texi: Document -Wsuggest-override.
35648 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
35650 PR rtl-optimization/64287
35651 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
35652 (process_options): Disable flag_ipa_ra if profiling.
35654 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
35656 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
35658 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
35660 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
35661 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
35662 put under #if TARGET_LOOPS guard.
35664 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
35666 * config/i386/i386.c (output_387_binary_op): Use std::swap.
35668 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
35670 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
35671 * rtl.h (refers_to_regno_p): Add overload.
35673 * bt-load.c: Likewise.
35674 * combine.c: Likewise.
35675 * df-scan.c: Likewise.
35676 * sched-deps.c: Likewise.
35677 * config/s390/s390.c: Likewise.
35678 * config/m32r/m32r.c: Likewise.
35679 * config/rs6000/spe.md: Likewise.
35680 * config/rs6000/rs6000.c: Likewise.
35681 * config/pa/pa.c: Likewise.
35682 * config/stormy16/stormy16.c: Likewise.
35683 * config/cris/cris.c: Likewise.
35684 * config/arc/arc.md: Likewise.
35685 * config/arc/arc.c: Likewise.
35686 * config/sh/sh.md: Likewise.
35687 * config/sh/sh.c: Likewise.
35688 * config/frv/frv.c: Likewise.
35690 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35693 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
35694 call as cleanup of the whole body.
35695 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
35696 * tsan.c (replace_func_exit): New function.
35697 (instrument_func_exit): Moved earlier.
35698 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
35699 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
35701 (tsan_pass): Don't call instrument_func_exit.
35702 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
35703 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
35707 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
35708 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
35709 it to libubsan handler instead of EXPR. Fold comparisons earlier,
35710 if the result is integer_zerop, return NULL_TREE.
35711 * convert.c (convert_to_integer): Pass expr as ARG.
35713 PR tree-optimization/64465
35714 * tree-inline.c (redirect_all_calls): During inlining
35715 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
35716 changed the stmt to a non-throwing call.
35718 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35720 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
35721 etc markup throughout the file.
35723 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35725 Enable experimental TSAN support for Ada.
35726 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
35728 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35730 PR tree-optimization/64494
35731 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
35732 clear SSA_NAME_ANTI_RANGE_P flag.
35734 2015-01-05 Marek Polacek <polacek@redhat.com>
35736 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
35738 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35740 Update copyright years.
35742 * gcc.c (process_command): Update copyright notice dates.
35743 * gcov-dump.c: Ditto.
35745 * doc/cpp.texi: Bump @copying's copyright year.
35746 * doc/cppinternals.texi: Ditto.
35747 * doc/gcc.texi: Ditto.
35748 * doc/gccint.texi: Ditto.
35749 * doc/gcov.texi: Ditto.
35750 * doc/install.texi: Ditto.
35751 * doc/invoke.texi: Ditto.
35753 * auto-profile.c, auto-profile.h: Fix up Copyright line.
35755 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
35757 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
35759 ([-fvtable-verify], [-fvtv-debug]): Likewise.
35760 ([-Wabi]): Likewise.
35761 ([-fmessage-length]): Likewise.
35762 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
35763 ([-Wno-discarded-qualifiers]): Likewise.
35764 ([-Wnodiscarded-array-qualifiers]): Likewise.
35765 ([-Wno-virtual-move-assign]): Likewise.
35766 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
35767 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
35768 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
35769 ([-fsanitize-undefined-trap-on-error]): Likewise.
35770 ([-floop-interchange]): Likewise.
35771 ([-ftree-coalesce-inlined-vars]): Likewise.
35772 ([-fvect-cost-model]): Likewise.
35773 ([-flto]): Likewise.
35774 ([--param]): Likewise.
35775 (Spec Files): Likewise.
35776 ([-mstrict-align]): Likewise.
35777 ([-mfix-cortex-a53-835769]): Likewise.
35778 ([-march], [-mtune]): Likewise.
35779 ([-mpic-register]): Likewise.
35780 ([-munaligned-access]): Likewise.
35781 ([-msp8]): Likewise.
35782 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
35783 (AVR Built-in Macros): Likewise.
35784 ([-mpreferred-stack-boundary]): Likewise.
35785 ([-mtune-crtl]): Likewise.
35786 ([-mashf]): Likewise.
35787 ([-mmcu=]): Likewise.
35788 ([-minrt]): Likewise.
35789 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
35790 ([-mupper-regs]): Likewise.
35791 ([-matomic-model]): Likewise.
35792 ([-mdiv]): Likewise.
35793 ([-mzdcbranch]): Likewise.
35794 ([-mdisable-callt]): Likewise.
35795 ([-msoft-float]): Likewise.
35796 ([-m8byte-align]): Likewise.
35797 ([-fstack-reuse]): Likewise.
35799 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35801 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
35802 Fix markup, light copy-editing.
35803 ([-fauto-profile]): Rewrite to fix formatting and content
35806 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35808 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
35809 Copy-edit description.
35810 ([-fisolate-erroneous-paths-attribute]): Likewise.
35811 * common.opt (fisolate-erroneous-paths-dereference):
35812 Copy-edit description.
35813 (fisolate-erroneous-paths-attribute): Likewise.
35815 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35817 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
35820 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35822 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
35823 ([-fvtv-debug]): Likewise.
35824 ([-Wc++-compat]): Likewise.
35825 ([-Wc++11-compat]): Likewise.
35826 ([-Wc++14-compat]): Likewise.
35827 ([-Wno-sized-deallocation]): Likewise.
35828 ([-femit-class-debug-always]): Likewise.
35829 ([-femit-struct-debug-detailed]): Likewise.
35830 ([-fno-keep-inline-dllexport]): Likewise.
35831 ([-fira-algorithm]): Likewise.
35832 ([-fira-region]): Likewise.
35833 ([-flra-remat]): Likewise.
35834 ([-fipa-ra]): Likewise.
35835 ([-fhoist-adjacent-loads]): Likewise.
35836 ([-fisolate-erroneous-paths-dereference]): Likewise.
35837 ([-fisolate-erroneous-paths-attribute]): Likewise.
35838 ([-ftree-switch-conversion]): Likewise.
35839 ([-ftree-tail-merge]): Likewise.
35840 ([-ftree-loop-if-convert]): Likewise.
35841 ([-ftree-loop-if-convert-stores]): Likewise.
35842 ([-ftree-loop-distribution]): Likewise.
35843 ([-ftree-loop-distribute-patterns]): Likewise.
35844 ([-flto-compression-level]): Likewise.
35845 ([-flto-report]): Likewise.
35846 ([-flto-report-wpa]): Likewise.
35847 ([-fuse-linker-plugin]): Likewise.
35848 ([-mfix-cortex-a53-835769]): Likewise.
35849 ([-mno-fix-cortex-a53-835769]): Likewise.
35850 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
35851 explicit listing; add a note to the discussion indicating they
35852 exist. Reorder table to group similar options. Add missing
35853 @opindex entries. Add @need commands throughout the table to
35854 allow it to be split across multiple pages.
35855 ([-m8bit-idiv]): Fix @opindex.
35856 ([-mavx256-split-unaligned-load]): Likewise.
35857 ([-mavx256-split-unaligned-store]): Likewise.
35858 ([-mstack-protector-guard]): Likewise.
35859 ([-mcpu=]): Likewise.
35860 ([-mcpu]): Likewise.
35861 ([-mpointer-size=]): Likewise.
35863 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
35865 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
35866 instead of `m' constraint. Likewise for unnamed movb comparison
35867 patterns using reg_before_reload_operand predicate.
35868 * config/pa/predicates.md (reg_before_reload_operand): Tighten
35869 predicate to reject register index and LO_SUM DLT memory forms
35872 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
35874 * doc/invoke.texi (Option Summary): Fix spelling of
35875 -fdevirtualize-at-ltrans.
35876 ([-fdevirtualize]): Fix markup.
35877 ([-fdevirtualize-speculatively]): Fix typo.
35878 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
35879 implementor-speaky.
35880 * common.opt (fdevirtualize-at-ltrans): Likewise.
35881 * ipa-devirt.c: Fix typos in comments throughout the file.
35882 (ipa_devirt): Fix typos in format strings for dump output.
35884 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
35886 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
35887 discussion of defaults, light copy-editing.
35889 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
35891 * tsan.c (instrument_expr): corrected previous checkin.
35893 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
35895 Instrument bit field and unaligned accesses for TSAN.
35896 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
35897 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
35898 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
35899 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
35900 unaligned memory regions.
35902 2015-01-01 Anthony Green <green@moxielogic.com>
35904 * config/moxie/predicates.md (moxie_general_movsrc_operand):
35905 Restrict move source register offsets to 16 bits.
35907 Copyright (C) 2015 Free Software Foundation, Inc.
35909 Copying and distribution of this file, with or without modification,
35910 are permitted in any medium without royalty provided the copyright
35911 notice and this notice are preserved.