1 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
3 PR tree-optimization/68083
4 * tree-ssa-ifcombine.c: Include tree-ssa.h.
5 (bb_no_side_effects_p): Test for undefined uses too.
6 * tree-ssa.c (gimple_uses_undefined_value_p): New.
7 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
9 2015-11-02 Jeff Law <jeff@redhat.com>
11 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
12 cases where the loop latch edge is in the middle of an FSM
15 2015-11-03 Tom de Vries <tom@codesourcery.com>
17 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
18 (make_param_constraints): ... this. Add and handle restrict_name
19 parameter. Handle is_full_var case.
20 (intra_create_variable_infos): Use make_param_constraints.
22 2015-11-03 Tom de Vries <tom@codesourcery.com>
24 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
25 make_copy_constraint call with make_constraint_from call.
27 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
29 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
32 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
34 * builtins.h (fold_fma): Move to fold-const-call.h.
35 * builtins.c: Include fold-const-call.h.
36 (mathfn_built_in_2): New function, split out from...
37 (mathfn_built_in_1): ...here.
38 (do_real_to_int_conversion, fold_const_builtin_pow)
39 (fold_const_builtin_logb, fold_const_builtin_significand)
40 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
41 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
42 (fold_builtin_sincos): Use fold_const_call to handle constants.
43 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
44 checks for ERROR_MARK. Use fold_const_call to handle constant
45 folds for math functions.
46 (fold_fma): Move to fold-const-call.c.
47 * fold-const.c: Include fold-const-call.h.
48 * Makefile.in (OBJS): Add fold-const-call.o.
49 (PLUGIN_HEADERS): Add fold-const-call.h.
50 * realmpfr.h (real_from_mpfr): Allow the format to be specified
52 * realmpfr.c (real_from_mpfr): Likewise.
53 * fold-const-call.h, fold-const-call.c: New files.
55 2015-11-02 Julian Brown <julian@codesourcery.com>
57 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
58 brackets and semicolon.
60 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
63 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
65 PR tree-optimization/65963
66 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs
67 as equivalent MULT_EXPRs.
69 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
72 * fold-const.c: Include "md5.h".
74 2015-11-01 Jeff Law <jeff@redhat.com>
76 * vmsdbgout.c: Revert unused header file reduction patch.
78 * config/mcore/mcore.c: Include regs.h.
80 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
82 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
84 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
86 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
87 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
88 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
90 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
92 * ggc-common.c: Restore needed header for checking=release.
94 2015-10-31 Tom de Vries <tom@codesourcery.com>
96 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
98 2015-10-31 Tom de Vries <tom@codesourcery.com>
100 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
101 existing varinfo for arguments.
103 2015-10-31 Tom de Vries <tom@codesourcery.com>
105 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
106 create_function_info_for. Dump constraints generated during
107 create_function_info_for. Move intra_create_variable_infos call and
108 function-return-values-escape bit to ...
109 (create_function_info_for): ... here, and merge
110 intra_create_variable_infos call with argument loop. Add and handle
111 nonlocal_p parameter.
113 2015-10-31 Tom de Vries <tom@codesourcery.com>
115 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
116 updating is alap, and seperated from preceding code. Make sure
117 insert_vi_for_tree is seperated from surrounding code.
119 2015-10-31 Tom de Vries <tom@codesourcery.com>
121 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
123 2015-10-30 Jeff Law <jeff@redhat.com>
124 Nathan Sidwell <nathan@acm.org>
126 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
128 (MOVE_MAX): Set to 8.
130 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
132 * cgraph.c: Include context.h for offloading.
133 * varpool.c: Include context.h and omp-low.h.
135 2015-10-30 Anatoly Sokolov <aesok@post.ru>
137 * rtl.h (contains_symbol_ref_p): Declare.
138 (SYMBOL_REF_P): Define.
139 * rtlanal.c (contains_symbol_ref_p: New function.
140 * lra-constraints.c (contains_symbol_ref_p): Remove.
141 * var-tracking.c (contains_symbol_ref): Remove.
142 (track_expr_p): Use contains_symbol_ref_p instead of
145 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
147 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
148 * fold-const.c (get_array_ctor_element_at_index): New.
149 (fold): Remove binary-search through CONSTRUCTOR, call previous.
151 * fold-const.h (get_array_ctor_element_at_index): New.
153 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
155 * Makefile.in (OBJS): Add multiple_target.o.
156 * attrib.c (make_attribute): Moved from config/i386/i386.c
157 * config/i386/i386.c (make_attribute): Deleted.
158 * multiple_target.c (create_dispatcher_calls): New.
159 (get_attr_len): Ditto.
160 (get_attr_str): Ditto.
161 (separate_attrs): Ditto.
162 (is_valid_asm_symbol): Ditto.
163 (create_new_asm_name): Ditto.
164 (create_target_clone): Ditto.
165 (expand_target_clones): Ditto.
166 (ipa_target_clone): Ditto.
167 (ipa_dispatcher_calls): Ditto.
168 * passes.def (pass_target_clone): Two new ipa passes.
169 * tree-pass.h (make_pass_target_clone): Ditto.
170 * doc/extend.texi (target_clones): New attribute description.
172 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
174 PR rtl-optimization/68106
175 * lra-remat.c (input_regno_present_p): Process hard regs
176 explicitly present in machine description insns.
177 (call_used_input_regno_present_p): Ditto.
178 (calculate_gen_cands): Ditto.
181 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
183 * config/arm/neon-testgen.ml: Fix comment typo.
185 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
187 * rtlanal.c (reg_set_p): Expand function comment.
189 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
191 * alias.c: Remove unused headers.
193 * attribs.c: Likewise.
194 * auto-inc-dec.c: Likewise.
195 * auto-profile.c: Likewise.
196 * bb-reorder.c: Likewise.
197 * bitmap.c: Likewise.
198 * bt-load.c: Likewise.
199 * builtins.c: Likewise.
200 * caller-save.c: Likewise.
204 * cfganal.c: Likewise.
205 * cfgbuild.c: Likewise.
206 * cfgcleanup.c: Likewise.
207 * cfgexpand.c: Likewise.
208 * cfghooks.c: Likewise.
209 * cfgloop.c: Likewise.
210 * cfgloopanal.c: Likewise.
211 * cfgloopmanip.c: Likewise.
212 * cfgrtl.c: Likewise.
213 * cgraph.c: Likewise.
214 * cgraphbuild.c: Likewise.
215 * cgraphclones.c: Likewise.
216 * cgraphunit.c: Likewise.
217 * cilk-common.c: Likewise.
218 * combine-stack-adj.c: Likewise.
219 * combine.c: Likewise.
220 * compare-elim.c: Likewise.
221 * convert.c: Likewise.
222 * coverage.c: Likewise.
223 * cppbuiltin.c: Likewise.
226 * cselib.c: Likewise.
227 * data-streamer-in.c: Likewise.
228 * data-streamer-out.c: Likewise.
229 * data-streamer.c: Likewise.
230 * dbxout.c: Likewise.
234 * df-core.c: Likewise.
235 * df-problems.c: Likewise.
236 * df-scan.c: Likewise.
238 * dojump.c: Likewise.
239 * dominance.c: Likewise.
240 * domwalk.c: Likewise.
241 * double-int.c: Likewise.
243 * dumpfile.c: Likewise.
244 * dwarf2asm.c: Likewise.
245 * dwarf2cfi.c: Likewise.
246 * dwarf2out.c: Likewise.
247 * emit-rtl.c: Likewise.
248 * except.c: Likewise.
249 * explow.c: Likewise.
250 * expmed.c: Likewise.
253 * fixed-value.c: Likewise.
254 * fold-const.c: Likewise.
255 * function.c: Likewise.
256 * fwprop.c: Likewise.
258 * generic-match-head.c: Likewise.
259 * ggc-common.c: Likewise.
260 * gimple-builder.c: Likewise.
261 * gimple-expr.c: Likewise.
262 * gimple-fold.c: Likewise.
263 * gimple-iterator.c: Likewise.
264 * gimple-low.c: Likewise.
265 * gimple-match-head.c: Likewise.
266 * gimple-pretty-print.c: Likewise.
267 * gimple-ssa-isolate-paths.c: Likewise.
268 * gimple-ssa-strength-reduction.c: Likewise.
269 * gimple-streamer-in.c: Likewise.
270 * gimple-streamer-out.c: Likewise.
271 * gimple-walk.c: Likewise.
272 * gimple.c: Likewise.
273 * gimplify-me.c: Likewise.
274 * gimplify.c: Likewise.
275 * godump.c: Likewise.
277 * graphds.c: Likewise.
278 * haifa-sched.c: Likewise.
279 * hw-doloop.c: Likewise.
281 * init-regs.c: Likewise.
282 * internal-fn.c: Likewise.
283 * ipa-chkp.c: Likewise.
284 * ipa-comdats.c: Likewise.
285 * ipa-cp.c: Likewise.
286 * ipa-devirt.c: Likewise.
287 * ipa-icf-gimple.c: Likewise.
288 * ipa-icf.c: Likewise.
289 * ipa-inline-analysis.c: Likewise.
290 * ipa-inline-transform.c: Likewise.
291 * ipa-inline.c: Likewise.
292 * ipa-polymorphic-call.c: Likewise.
293 * ipa-profile.c: Likewise.
294 * ipa-prop.c: Likewise.
295 * ipa-pure-const.c: Likewise.
296 * ipa-ref.c: Likewise.
297 * ipa-reference.c: Likewise.
298 * ipa-split.c: Likewise.
299 * ipa-utils.c: Likewise.
300 * ipa-visibility.c: Likewise.
302 * ira-build.c: Likewise.
303 * ira-color.c: Likewise.
304 * ira-conflicts.c: Likewise.
305 * ira-costs.c: Likewise.
306 * ira-emit.c: Likewise.
307 * ira-lives.c: Likewise.
310 * langhooks.c: Likewise.
313 * loop-doloop.c: Likewise.
314 * loop-init.c: Likewise.
315 * loop-invariant.c: Likewise.
316 * loop-iv.c: Likewise.
317 * loop-unroll.c: Likewise.
318 * lower-subreg.c: Likewise.
319 * lra-assigns.c: Likewise.
320 * lra-coalesce.c: Likewise.
321 * lra-constraints.c: Likewise.
322 * lra-eliminations.c: Likewise.
323 * lra-lives.c: Likewise.
324 * lra-remat.c: Likewise.
325 * lra-spills.c: Likewise.
327 * lto-cgraph.c: Likewise.
328 * lto-compress.c: Likewise.
329 * lto-opts.c: Likewise.
330 * lto-section-in.c: Likewise.
331 * lto-section-out.c: Likewise.
332 * lto-streamer-in.c: Likewise.
333 * lto-streamer-out.c: Likewise.
334 * lto-streamer.c: Likewise.
336 * mode-switching.c: Likewise.
337 * modulo-sched.c: Likewise.
338 * optabs.c: Likewise.
339 * opts-global.c: Likewise.
340 * passes.c: Likewise.
341 * plugin.c: Likewise.
342 * postreload-gcse.c: Likewise.
343 * postreload.c: Likewise.
344 * predict.c: Likewise.
345 * print-tree.c: Likewise.
346 * profile.c: Likewise.
348 * realmpfr.c: Likewise.
351 * reg-stack.c: Likewise.
352 * regcprop.c: Likewise.
353 * reginfo.c: Likewise.
354 * regrename.c: Likewise.
355 * regstat.c: Likewise.
356 * reload.c: Likewise.
357 * reload1.c: Likewise.
359 * resource.c: Likewise.
360 * rtl-chkp.c: Likewise.
361 * rtl-error.c: Likewise.
362 * rtlanal.c: Likewise.
363 * rtlhooks.c: Likewise.
364 * sanopt.c: Likewise.
365 * sched-deps.c: Likewise.
366 * sched-ebb.c: Likewise.
367 * sched-rgn.c: Likewise.
368 * sdbout.c: Likewise.
369 * sel-sched-dump.c: Likewise.
370 * sel-sched-ir.c: Likewise.
371 * sel-sched.c: Likewise.
373 * shrink-wrap.c: Likewise.
374 * simplify-rtx.c: Likewise.
375 * stack-ptr-mod.c: Likewise.
376 * statistics.c: Likewise.
378 * stor-layout.c: Likewise.
379 * store-motion.c: Likewise.
380 * stringpool.c: Likewise.
381 * symtab.c: Likewise.
382 * target-globals.c: Likewise.
383 * targhooks.c: Likewise.
384 * toplev.c: Likewise.
385 * tracer.c: Likewise.
386 * trans-mem.c: Likewise.
387 * tree-affine.c: Likewise.
388 * tree-call-cdce.c: Likewise.
389 * tree-cfg.c: Likewise.
390 * tree-cfgcleanup.c: Likewise.
391 * tree-chkp-opt.c: Likewise.
392 * tree-chkp.c: Likewise.
393 * tree-chrec.c: Likewise.
394 * tree-complex.c: Likewise.
395 * tree-data-ref.c: Likewise.
396 * tree-dfa.c: Likewise.
397 * tree-diagnostic.c: Likewise.
398 * tree-dump.c: Likewise.
399 * tree-eh.c: Likewise.
400 * tree-emutls.c: Likewise.
401 * tree-if-conv.c: Likewise.
402 * tree-inline.c: Likewise.
403 * tree-into-ssa.c: Likewise.
404 * tree-iterator.c: Likewise.
405 * tree-loop-distribution.c: Likewise.
406 * tree-nested.c: Likewise.
407 * tree-nrv.c: Likewise.
408 * tree-object-size.c: Likewise.
409 * tree-outof-ssa.c: Likewise.
410 * tree-parloops.c: Likewise.
411 * tree-phinodes.c: Likewise.
412 * tree-predcom.c: Likewise.
413 * tree-pretty-print.c: Likewise.
414 * tree-profile.c: Likewise.
415 * tree-scalar-evolution.c: Likewise.
416 * tree-sra.c: Likewise.
417 * tree-ssa-address.c: Likewise.
418 * tree-ssa-alias.c: Likewise.
419 * tree-ssa-ccp.c: Likewise.
420 * tree-ssa-coalesce.c: Likewise.
421 * tree-ssa-copy.c: Likewise.
422 * tree-ssa-dce.c: Likewise.
423 * tree-ssa-dse.c: Likewise.
424 * tree-ssa-forwprop.c: Likewise.
425 * tree-ssa-ifcombine.c: Likewise.
426 * tree-ssa-live.c: Likewise.
427 * tree-ssa-loop-ch.c: Likewise.
428 * tree-ssa-loop-im.c: Likewise.
429 * tree-ssa-loop-ivcanon.c: Likewise.
430 * tree-ssa-loop-ivopts.c: Likewise.
431 * tree-ssa-loop-manip.c: Likewise.
432 * tree-ssa-loop-niter.c: Likewise.
433 * tree-ssa-loop-prefetch.c: Likewise.
434 * tree-ssa-loop-unswitch.c: Likewise.
435 * tree-ssa-loop.c: Likewise.
436 * tree-ssa-math-opts.c: Likewise.
437 * tree-ssa-operands.c: Likewise.
438 * tree-ssa-phiopt.c: Likewise.
439 * tree-ssa-phiprop.c: Likewise.
440 * tree-ssa-pre.c: Likewise.
441 * tree-ssa-propagate.c: Likewise.
442 * tree-ssa-reassoc.c: Likewise.
443 * tree-ssa-scopedtables.c: Likewise.
444 * tree-ssa-sink.c: Likewise.
445 * tree-ssa-strlen.c: Likewise.
446 * tree-ssa-structalias.c: Likewise.
447 * tree-ssa-tail-merge.c: Likewise.
448 * tree-ssa-ter.c: Likewise.
449 * tree-ssa-threadupdate.c: Likewise.
450 * tree-ssa-uncprop.c: Likewise.
451 * tree-ssa-uninit.c: Likewise.
452 * tree-ssa.c: Likewise.
453 * tree-ssanames.c: Likewise.
454 * tree-stdarg.c: Likewise.
455 * tree-streamer-in.c: Likewise.
456 * tree-streamer-out.c: Likewise.
457 * tree-streamer.c: Likewise.
458 * tree-switch-conversion.c: Likewise.
459 * tree-tailcall.c: Likewise.
460 * tree-vect-data-refs.c: Likewise.
461 * tree-vect-generic.c: Likewise.
462 * tree-vect-loop-manip.c: Likewise.
463 * tree-vect-loop.c: Likewise.
464 * tree-vect-patterns.c: Likewise.
465 * tree-vect-slp.c: Likewise.
466 * tree-vect-stmts.c: Likewise.
467 * tree-vectorizer.c: Likewise.
468 * tree-vrp.c: Likewise.
472 * value-prof.c: Likewise.
473 * var-tracking.c: Likewise.
474 * varasm.c: Likewise.
475 * varpool.c: Likewise.
476 * vmsdbgout.c: Likewise.
477 * vtable-verify.c: Likewise.
479 * wide-int-print.cc: Likewise.
480 * wide-int.cc: Likewise.
481 * xcoffout.c: Likewise.
483 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
485 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
486 between pass numbering and execution order.
488 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
490 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
491 check for dependencies.
493 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
495 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
498 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
500 * real.h (format_helper): New.
501 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
502 (real_from_target, real_nan, real_2expN, real_value_truncate)
503 (significand_size, real_from_string2, exact_real_inverse)
504 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
505 (real_round, real_isinteger, real_from_integer): Replace
506 machine_mode arguments with format_helper arguments.
507 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
508 (real_from_integer, real_nan, real_2expN, real_convert)
509 (real_value_truncate, exact_real_truncate, real_to_target)
510 (real_from_target, significand_size, real_powi, real_trunc)
511 (real_floor, real_ceil, real_round, real_isinteger): Replace
512 machine_mode arguments with format_helper arguments.
513 (real_to_target_fmt, real_from_target_fmt): Delete.
514 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
515 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
516 argument with real_format.
517 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
519 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
521 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
522 (fixed_to_decimal, fixed_convert_from_real)
523 (real_convert_from_fixed): Fix mode arguments to real_2expN.
525 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
527 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
530 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
532 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
533 (completely_scalarize): Comment zero-length arrays.
534 (get_access_replacement): Correct comment re. precondition.
536 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
538 * config/i386/i386.c (get_builtin_code_for_version): Set priority
539 for PROCESSOR_ZNVER1.
540 (enum processor_model): Add M_AMDFAM17H_znver1.
541 (struct arch_names_table): Likewise.
542 * doc/extend.texi: ADD znver1.
544 2015-10-30 Richard Biener <rguenther@suse.de>
546 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
547 fold () on single RHSs. Allow CONSTRUCTORS with trailing
548 zeros to be folded to VECTOR_CSTs.
549 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
550 * fold-const.c (fold): Use build_vector_from_ctor.
552 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
554 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
555 "mov %0.h[0], %1.h[0] to "neon_move".
556 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
557 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
559 (*cmovsi_insn_uxtw): Likewise.
561 2015-10-30 Tom de Vries <tom@codesourcery.com>
563 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
564 unsigned, and initialize, and use initial value instead of hardcoded
565 constant. Add generic constraints dumping section. Don't dump global
566 initializers constraints dumping section if empty. Don't update
567 variable from if unused.
569 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
571 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
572 flag_checking and/or CHECKING_P to eliminate conditional compilation
574 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
575 * config/bfin/bfin.c (hwloop_optimize): Likewise.
576 * config/i386/i386.c (ix86_print_operand_address): Likewise.
577 (output_387_binary_op): Likewise.
578 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
579 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
580 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
582 * config/rs6000/rs6000.h: Likewise.
583 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
585 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
587 * config/sh/sh.opt (mfdpic): Add missing period.
589 2015-08-29 Anatoly Sokolov <aesok@post.ru>
591 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
592 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
593 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
594 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
595 mcore_base_register_rtx_p, mcore_legitimate_index_p,
596 mcore_legitimate_address_p): New functions.
597 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
599 2015-10-29 Jeff Law <law@redhat.com>
601 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
603 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
604 * tree-ssa-threadedge.c
605 (record_temporary_equivalences_from_stmts_at_dest): Remove
606 backedge_seen argument and associated code which invalidated
607 equivalences based on the value of that argument.
608 (thread_through_normal_block): Corresponding changes.
610 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
612 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
613 function earlier in the file.
614 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
617 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
619 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
622 2015-10-29 Richard Henderson <rth@redhat.com>
626 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
627 sse check to the exact conditions of PR 67609.
629 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
631 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
632 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
633 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
634 of the traditional names that TFmode uses for handling IEEE
635 extended double. If -mfloat128, add KFmode functions for all of
636 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
637 make TFmode use the same emulation functions as KFmode.
638 (init_float128_ibm): Likewise.
639 (init_float128_ieee): Likewise.
640 (rs6000_generate_compare): For IEEE 128-bit floating point
641 comparisons, call the unordered comparison function instead of the
642 ordered comparison function.
643 (rs6000_expand_float128_convert): Deal with operands that are
644 memory operands. Restructure the code to use a switch statement on
645 the mode. Add support for TFmode defaulting to either IBM extended
646 double or IEEE 128-bit floating point. If the underlying types are
647 the same, use a move instead of a conversion function.
648 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
649 use for IEEE 128-bit floating point constants with -mfloat128.
650 (rs6000_c_mode_for_suffix): Likewise.
651 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
652 128-bit floating point with IBM extended double floating point.
653 (rs6000_invalid_binary_op): Likewise.
654 (rs6000_gen_le_vsx_permute): On little endian systems generate a
655 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
656 types that can go in vector registers.
657 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
658 point types that can go in vector registers on little endian
660 (mark_swaps_for_removal): Likewise.
661 (rs6000_analyze_swaps): Likewise.
662 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
664 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
665 rework IEEE 128-bit floating point insns to deal with TFmode being
666 either IBM extended double or IEEE 128-bit floating point.
668 (IBM128): Update iterator to add condition that the mode is IBM
670 (IEEE128): New iterator for IEEE 128-bit floating point.
671 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
672 (FLOAT128): Likewise.
673 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
675 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
676 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
677 instead of hard coding TFmode or KFmode.
678 (negtf2_internal): Likewise.
679 (neg<mode>2_internal): Likewise.
680 (abs<mode>2): Likewise.
681 (abstf2_internal): Likewise.
682 (abs<mode>2_internal): Likewise.
683 (ieee_128bit_neg<mode>2): Likewise.
684 (ieee_128bit_neg<mode>2_internal): Likewise.
685 (ieee_128bit_abs<mode>2): Likewise.
686 (ieee_128bit_abs<mode>2_internal): Likewise.
687 (ieee_128bit_nabs<mode>2): Likewise.
688 (ieee_128bit_nabs<mode>2_internal): Likewise.
689 (extendiftf2): Add explicit conversions between 128-bit floating
690 point types. Drop the old conversions that had become unwieldy.
691 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
692 (extendifkf2): Likewise.
693 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
694 (extendtfkf2): Likewise.
695 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
696 (trunciftf2): Likewise.
697 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
698 (truncifkf2): Likewise.
699 (float<SDI:mode><IFKF:mode>2): Likewise.
700 (trunckftf2): Likewise.
701 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
702 (trunctfif2): Likewise.
703 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
704 (extenddftf2): Rework 128-bit floating point conversions to
705 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
706 KFmode expanders into one function.
707 (extenddf<mode>2): Likewise.
708 (extenddftf2_fprs): Likewise.
709 (extenddf<mode>2_fprs): Likewise.
710 (extenddftf2_vsx): Likewise.
711 (extenddf<mode>2_vsx): Likewise.
712 (extendsftf2): Likewise.
713 (extendsf<mode>2): Likewise.
714 (trunctfdf2): Likewise.
715 (trunc<mode>df2): Likewise.
716 (trunctfdf2_internal1): Likewise.
717 (trunc<mode>df2_internal1): Likewise.
718 (trunctfdf2_internal2): Likewise.
719 (trunc<mode>df2_internal2): Likewise.
720 (trunctfsf2): Likewise.
721 (trunc<mode>sf2): Likewise.
722 (trunctfsf2_fprs): Likewise.
723 (trunc<mode>sf2_fprs): Likewise.
724 (floatsit2f): Likewise.
725 (floatsi<mode>2): Likewise.
726 (fix_trunc_helper): Likewise.
727 (fix_trunc_helper<mode>): Likewise.
728 (fix_trunctfsi2): Likewise.
729 (fix_trunc<mode>si2): Likewise.
730 (fix_trunctfsi2_fprs): Likewise.
731 (fix_trunc<mode>si2_fprs): Likewise.
732 (fix_trunctfsi2_internal): Likewise.
733 (fix_trunc<mode>si2_internal): Likewise.
734 (fix_trunctfdi2): Likewise.
735 (fix_trunc<mode>di2): Likewise.
736 (fixuns_trunctf<mode>2): Likewise.
737 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
738 (floatditf2): Likewise.
739 (floatdi<mode>2): Likewise.
740 (floatuns<mode>tf2): Likewise.
741 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
742 (cmptf_internal1): Use a mode iterator to add support for both
743 types (IFmode, TFmode) that support IBM extended double.
744 (cmp<mode>_internal1): Likewise.
745 (cmptf_internal2): Likewise.
746 (cmp<mode>_internal2): Likewise.
748 * doc/extend.texi (Floating Types): Document __ibm128 and
749 __float128 on PowerPC.
751 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
752 -mfloat128 and -mno-float128.
754 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
756 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
757 floating point modes that can go in vector registers.
758 (MODES_TIEABLE_P): Move tests for vector modes before tests for
759 scalar floating point, so that IEEE 128-bit floating point that
760 can go in vector registers bind with vectors and not FP.
761 (struct rs6000_args): Add libcall field.
763 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
764 and -mfloat128-software switches. Replace them with a binary
766 (-mfloat128): Likewise.
768 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
769 128-bit floating point types in GPRs, even if the appropriate
770 option enabling the type was not used.
771 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
773 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
774 pre-decrement on IEEE 128-bit floating point values.
775 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
776 is IEEE 128-bit floating point.
777 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
778 128-bit floating point types that can go in vector registers.
779 (rs6000_option_override_internal): Change -mfloat128-none and
780 -mfloat128-software to -mfloat128, and move code to be near other
782 (rs6000_option_override_internal): Disable -mfloat128 if we don't
783 have the Altivec ABI.
784 (rs6000_init_builtins): Don't make TFmode use either IFmode or
785 KFmode floating point nodes. Instead, have three separate nodes.
786 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
787 eventually moving the long double default to IEEE 128-bit floating
789 (rs6000_opt_masks): Add -mfloat128.
790 (struct rs6000_opt_var): Fix typo in comment.
791 (init_cumulative_args): Initialize libcall field in
793 (rs6000_function_arg): Treat library functions as if they had
794 prototypes to prevent IEEE 128-bit support functions from passing
795 arguments in both GPRs and vector registers.
796 (rs6000_arg_partial_bytes): Likewise.
798 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
799 an option that can be turned on via -mcpu=<xxx>.
801 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
804 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
805 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
806 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
807 double is IBM extended double.
809 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
812 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
814 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
815 * genconditions.c: Define CHECKING_P in the generated code.
816 * genextract.c: Use flag_checking in insn_extract.
817 * gengtype.c (main): Remove conditional compilation.
818 * gengtype.h: Likewise.
820 2015-10-29 Jeff Law <law@redhat.com>
822 PR tree-optimization/67892
823 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
825 (thread_through_normal_block): If we have seen a backedge, then
826 do nothing. No longer call find_jump_threads_backwards here.
827 (thread_across_edge): Use find_jump_threads_backwards to find
828 jump threads if the old style threader was not successful.
829 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
830 gsi_last_nondebug_bb. Return NULL if the block does not end
831 with a control statement.
832 (find_jump_threads_backwards): Setup code moved here from
833 tree-ssa-threadedge.c::thread_through_normal_block. Accept
834 single edge argument instead of name & block.
835 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
838 2015-10-29 Tom de Vries <tom@codesourcery.com>
840 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
843 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
845 * omp-low.c (lower_omp_target): Remove unreachable code & merge
848 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
850 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
852 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
854 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
855 guard_bb0 and use guard_bb throughout.
857 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
859 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
862 2015-10-29 Richard Biener <rguenther@suse.de>
865 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
868 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
870 * alias.c: Reorder #include statements and remove duplicates.
872 * attribs.c: Likewise.
873 * auto-inc-dec.c: Likewise.
874 * auto-profile.c: Likewise.
875 * bb-reorder.c: Likewise.
876 * bt-load.c: Likewise.
877 * builtins.c: Likewise.
878 * caller-save.c: Likewise.
882 * cfganal.c: Likewise.
883 * cfgbuild.c: Likewise.
884 * cfgcleanup.c: Likewise.
885 * cfgexpand.c: Likewise.
886 * cfghooks.c: Likewise.
887 * cfgloop.c: Likewise.
888 * cfgloopanal.c: Likewise.
889 * cfgloopmanip.c: Likewise.
890 * cfgrtl.c: Likewise.
891 * cgraph.c: Likewise.
892 * cgraphbuild.c: Likewise.
893 * cgraphclones.c: Likewise.
894 * cgraphunit.c: Likewise.
895 * cilk-common.c: Likewise.
896 * combine-stack-adj.c: Likewise.
897 * combine.c: Likewise.
898 * compare-elim.c: Likewise.
899 * convert.c: Likewise.
900 * coverage.c: Likewise.
901 * cppbuiltin.c: Likewise.
904 * cselib.c: Likewise.
905 * data-streamer-in.c: Likewise.
906 * data-streamer-out.c: Likewise.
907 * data-streamer.c: Likewise.
908 * dbxout.c: Likewise.
912 * df-core.c: Likewise.
913 * df-problems.c: Likewise.
914 * df-scan.c: Likewise.
916 * dojump.c: Likewise.
917 * dominance.c: Likewise.
918 * double-int.c: Likewise.
920 * dumpfile.c: Likewise.
921 * dwarf2asm.c: Likewise.
922 * dwarf2cfi.c: Likewise.
923 * dwarf2out.c: Likewise.
924 * emit-rtl.c: Likewise.
925 * except.c: Likewise.
926 * explow.c: Likewise.
927 * expmed.c: Likewise.
930 * fixed-value.c: Likewise.
931 * fold-const.c: Likewise.
932 * function.c: Likewise.
933 * fwprop.c: Likewise.
935 * generic-match-head.c: Likewise.
936 * ggc-common.c: Likewise.
937 * gimple-builder.c: Likewise.
938 * gimple-expr.c: Likewise.
939 * gimple-fold.c: Likewise.
940 * gimple-iterator.c: Likewise.
941 * gimple-low.c: Likewise.
942 * gimple-match-head.c: Likewise.
943 * gimple-pretty-print.c: Likewise.
944 * gimple-ssa-isolate-paths.c: Likewise.
945 * gimple-ssa-strength-reduction.c: Likewise.
946 * gimple-streamer-in.c: Likewise.
947 * gimple-streamer-out.c: Likewise.
948 * gimple-walk.c: Likewise.
949 * gimple.c: Likewise.
950 * gimplify-me.c: Likewise.
951 * gimplify.c: Likewise.
952 * godump.c: Likewise.
954 * graphite-poly.c: Likewise.
955 * haifa-sched.c: Likewise.
956 * hw-doloop.c: Likewise.
958 * incpath.c: Likewise.
959 * init-regs.c: Likewise.
960 * internal-fn.c: Likewise.
961 * ipa-chkp.c: Likewise.
962 * ipa-comdats.c: Likewise.
963 * ipa-cp.c: Likewise.
964 * ipa-devirt.c: Likewise.
965 * ipa-icf-gimple.c: Likewise.
966 * ipa-icf.c: Likewise.
967 * ipa-inline-analysis.c: Likewise.
968 * ipa-inline-transform.c: Likewise.
969 * ipa-inline.c: Likewise.
970 * ipa-polymorphic-call.c: Likewise.
971 * ipa-profile.c: Likewise.
972 * ipa-prop.c: Likewise.
973 * ipa-pure-const.c: Likewise.
974 * ipa-ref.c: Likewise.
975 * ipa-reference.c: Likewise.
976 * ipa-split.c: Likewise.
977 * ipa-utils.c: Likewise.
978 * ipa-visibility.c: Likewise.
980 * ira-build.c: Likewise.
981 * ira-color.c: Likewise.
982 * ira-conflicts.c: Likewise.
983 * ira-costs.c: Likewise.
984 * ira-emit.c: Likewise.
985 * ira-lives.c: Likewise.
988 * langhooks.c: Likewise.
991 * loop-doloop.c: Likewise.
992 * loop-init.c: Likewise.
993 * loop-invariant.c: Likewise.
994 * loop-iv.c: Likewise.
995 * loop-unroll.c: Likewise.
996 * lower-subreg.c: Likewise.
997 * lra-assigns.c: Likewise.
998 * lra-coalesce.c: Likewise.
999 * lra-constraints.c: Likewise.
1000 * lra-eliminations.c: Likewise.
1001 * lra-lives.c: Likewise.
1002 * lra-remat.c: Likewise.
1003 * lra-spills.c: Likewise.
1005 * lto-cgraph.c: Likewise.
1006 * lto-compress.c: Likewise.
1007 * lto-opts.c: Likewise.
1008 * lto-section-in.c: Likewise.
1009 * lto-section-out.c: Likewise.
1010 * lto-streamer-in.c: Likewise.
1011 * lto-streamer-out.c: Likewise.
1012 * lto-streamer.c: Likewise.
1013 * mode-switching.c: Likewise.
1014 * modulo-sched.c: Likewise.
1015 * omp-low.c: Likewise.
1016 * optabs.c: Likewise.
1017 * opts-global.c: Likewise.
1018 * passes.c: Likewise.
1019 * plugin.c: Likewise.
1020 * postreload-gcse.c: Likewise.
1021 * postreload.c: Likewise.
1022 * predict.c: Likewise.
1023 * print-tree.c: Likewise.
1024 * profile.c: Likewise.
1026 * realmpfr.c: Likewise.
1027 * recog.c: Likewise.
1029 * reg-stack.c: Likewise.
1030 * regcprop.c: Likewise.
1031 * reginfo.c: Likewise.
1032 * regrename.c: Likewise.
1033 * regstat.c: Likewise.
1034 * reload.c: Likewise.
1035 * reload1.c: Likewise.
1036 * reorg.c: Likewise.
1037 * resource.c: Likewise.
1038 * rtl-chkp.c: Likewise.
1039 * rtl-error.c: Likewise.
1040 * rtlanal.c: Likewise.
1041 * rtlhooks.c: Likewise.
1042 * sanopt.c: Likewise.
1043 * sched-deps.c: Likewise.
1044 * sched-ebb.c: Likewise.
1045 * sched-rgn.c: Likewise.
1047 * shrink-wrap.c: Likewise.
1048 * simplify-rtx.c: Likewise.
1049 * stack-ptr-mod.c: Likewise.
1050 * statistics.c: Likewise.
1052 * stor-layout.c: Likewise.
1053 * store-motion.c: Likewise.
1054 * stringpool.c: Likewise.
1055 * symtab.c: Likewise.
1056 * target-globals.c: Likewise.
1057 * targhooks.c: Likewise.
1058 * toplev.c: Likewise.
1059 * tracer.c: Likewise.
1060 * trans-mem.c: Likewise.
1061 * tree-affine.c: Likewise.
1062 * tree-call-cdce.c: Likewise.
1063 * tree-cfg.c: Likewise.
1064 * tree-cfgcleanup.c: Likewise.
1065 * tree-chkp-opt.c: Likewise.
1066 * tree-chkp.c: Likewise.
1067 * tree-chrec.c: Likewise.
1068 * tree-complex.c: Likewise.
1069 * tree-data-ref.c: Likewise.
1070 * tree-dfa.c: Likewise.
1071 * tree-diagnostic.c: Likewise.
1072 * tree-dump.c: Likewise.
1073 * tree-eh.c: Likewise.
1074 * tree-emutls.c: Likewise.
1075 * tree-if-conv.c: Likewise.
1076 * tree-inline.c: Likewise.
1077 * tree-into-ssa.c: Likewise.
1078 * tree-iterator.c: Likewise.
1079 * tree-loop-distribution.c: Likewise.
1080 * tree-nested.c: Likewise.
1081 * tree-nrv.c: Likewise.
1082 * tree-object-size.c: Likewise.
1083 * tree-outof-ssa.c: Likewise.
1084 * tree-parloops.c: Likewise.
1085 * tree-phinodes.c: Likewise.
1086 * tree-predcom.c: Likewise.
1087 * tree-pretty-print.c: Likewise.
1088 * tree-profile.c: Likewise.
1089 * tree-scalar-evolution.c: Likewise.
1090 * tree-sra.c: Likewise.
1091 * tree-ssa-address.c: Likewise.
1092 * tree-ssa-alias.c: Likewise.
1093 * tree-ssa-ccp.c: Likewise.
1094 * tree-ssa-coalesce.c: Likewise.
1095 * tree-ssa-copy.c: Likewise.
1096 * tree-ssa-dce.c: Likewise.
1097 * tree-ssa-dom.c: Likewise.
1098 * tree-ssa-dse.c: Likewise.
1099 * tree-ssa-forwprop.c: Likewise.
1100 * tree-ssa-ifcombine.c: Likewise.
1101 * tree-ssa-live.c: Likewise.
1102 * tree-ssa-loop-ch.c: Likewise.
1103 * tree-ssa-loop-im.c: Likewise.
1104 * tree-ssa-loop-ivcanon.c: Likewise.
1105 * tree-ssa-loop-ivopts.c: Likewise.
1106 * tree-ssa-loop-manip.c: Likewise.
1107 * tree-ssa-loop-niter.c: Likewise.
1108 * tree-ssa-loop-prefetch.c: Likewise.
1109 * tree-ssa-loop-unswitch.c: Likewise.
1110 * tree-ssa-loop.c: Likewise.
1111 * tree-ssa-math-opts.c: Likewise.
1112 * tree-ssa-operands.c: Likewise.
1113 * tree-ssa-phiopt.c: Likewise.
1114 * tree-ssa-phiprop.c: Likewise.
1115 * tree-ssa-pre.c: Likewise.
1116 * tree-ssa-propagate.c: Likewise.
1117 * tree-ssa-reassoc.c: Likewise.
1118 * tree-ssa-sccvn.c: Likewise.
1119 * tree-ssa-scopedtables.c: Likewise.
1120 * tree-ssa-sink.c: Likewise.
1121 * tree-ssa-strlen.c: Likewise.
1122 * tree-ssa-structalias.c: Likewise.
1123 * tree-ssa-tail-merge.c: Likewise.
1124 * tree-ssa-ter.c: Likewise.
1125 * tree-ssa-threadedge.c: Likewise.
1126 * tree-ssa-threadupdate.c: Likewise.
1127 * tree-ssa-uncprop.c: Likewise.
1128 * tree-ssa-uninit.c: Likewise.
1129 * tree-ssa.c: Likewise.
1130 * tree-ssanames.c: Likewise.
1131 * tree-stdarg.c: Likewise.
1132 * tree-streamer-in.c: Likewise.
1133 * tree-streamer-out.c: Likewise.
1134 * tree-streamer.c: Likewise.
1135 * tree-switch-conversion.c: Likewise.
1136 * tree-tailcall.c: Likewise.
1137 * tree-vect-data-refs.c: Likewise.
1138 * tree-vect-generic.c: Likewise.
1139 * tree-vect-loop-manip.c: Likewise.
1140 * tree-vect-loop.c: Likewise.
1141 * tree-vect-patterns.c: Likewise.
1142 * tree-vect-slp.c: Likewise.
1143 * tree-vect-stmts.c: Likewise.
1144 * tree-vectorizer.c: Likewise.
1145 * tree-vrp.c: Likewise.
1148 * ubsan.c: Likewise.
1149 * value-prof.c: Likewise.
1150 * var-tracking.c: Likewise.
1151 * varasm.c: Likewise.
1152 * varpool.c: Likewise.
1153 * vtable-verify.c: Likewise.
1155 * wide-int-print.cc: Likewise.
1156 * wide-int.cc: Likewise.
1157 * xcoffout.c: Likewise.
1159 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
1161 * Makefile.in (NO_PIE_CFLAGS): New.
1162 (NO_PIE_FLAG): Likewise.
1163 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1164 (NO_PIE_FLAG_FOR_BUILD): Likewise.
1165 (BUILD_NO_PIE_CFLAGS): Likewise.
1166 (BUILD_NO_PIE_FLAG): Likewise.
1167 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
1168 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
1169 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
1170 $(BUILD_NO_PIE_CFLAGS).
1171 (BUILD_CXXFLAGS): Likewise.
1172 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
1173 $(BUILD_NO_PIE_FLAG).
1174 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
1175 (BUILD_NO_PIE_FLAG): Likewise.
1176 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1177 (NO_PIE_FLAG_FOR_BUILD): Likewise.
1178 * configure: Regenerated.
1180 2015-10-29 Richard Biener <rguenther@suse.de>
1183 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
1184 unsigned conditonal negation to ABS_EXPR.
1186 2015-10-29 Richard Biener <rguenther@suse.de>
1188 * gimple-match-head.c (gimple_simplify): Remove premature checking
1189 of builtin_decl_implicit of function calls we simplify.
1191 2015-10-29 Bin Cheng <bin.cheng@arm.com>
1193 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
1194 (get_computation_cost_at): Ditto.
1195 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
1198 2015-10-28 Tom de Vries <tom@codesourcery.com>
1200 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
1203 2015-10-28 Jason Merrill <jason@redhat.com>
1205 * Makefile.in (TAGS): Include libcpp and libiberty.
1207 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1209 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
1210 (extract_omp_for_data): Remove OpenACC special handling of
1213 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
1214 (struct parallel): Update comment.
1215 (nvptx_reorg): Likewise.
1216 (nvptx_neuter): Cleanup whitespace.
1218 2015-10-28 Richard Henderson <rth@redhat.com>
1220 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
1222 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1225 * config/avr/predicates.md (low_io_address_operand): Don't
1226 consider MODE when computing upper bound.
1227 (io_address_operand): Likewise.
1229 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
1231 * fold-const.c (operand_equal_p): Do not verify that types are
1232 compatible for MEM_REFs.
1234 2015-10-28 Richard Biener <rguenther@suse.de>
1236 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
1237 in simplifying VEC_COND_EXPR conditions.
1239 2015-10-28 Tom de Vries <tom@codesourcery.com>
1241 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
1242 into vi_next of a full_var.
1244 2015-10-28 Tom de Vries <tom@codesourcery.com>
1246 * tree-ssa-structalias.c (new_var_info, make_heapvar)
1247 (make_constraint_from_restrict, make_constraint_from_global_restrict)
1248 (create_function_info_for, create_variable_info_for_1)
1249 (create_variable_info_for): Add and handle add_id parameter.
1250 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
1251 (init_base_vars): Add extra argument to calls to new_var_info.
1252 (get_vi_for_tree): Add extra argument to call to
1253 create_variable_info_for.
1254 (process_constraint, do_deref, process_all_all_constraints): Add extra
1255 argument to calls to new_scalar_tmp_constraint_exp.
1256 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
1257 argument to calls to make_heapvar.
1258 (make_restrict_var_constraints): Add extra argument to call to
1259 make_constraint_from_global_restrict.
1260 (intra_create_variable_infos): Add extra argument to call to
1261 create_variable_info_for_1.
1262 (ipa_pta_execute): Add extra argument to call to
1263 create_function_info_for.
1265 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1267 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
1268 (sibcall_value): Likewise.
1270 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1272 * config/nvptx/nvptx.h (struct machine_function): Add
1274 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
1275 nvptx_expand_oacc_join): Declare.
1276 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
1277 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
1278 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
1279 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
1280 UNSPECV_JOINING, UNSPECV_JOIN): New.
1281 (BITS, BITD): New mode iterators.
1282 (br_true_uni, br_false_uni): New.
1283 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
1284 (oacc_dim_size, oacc_dim_pos): New.
1285 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
1286 (oacc_fork, oacc_join): New.
1287 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
1288 (worker_load<mode>, worker_store<mode>): New.
1289 (nvptx_barsync): New.
1290 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
1291 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
1292 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
1293 worker_bcast_sym): New.
1294 (nvptx_option_override): Initialize worker broadcast buffer.
1295 (nvptx_emit_forking, nvptx_emit_joining): New.
1296 (nvptx_init_axis_predicate): New.
1297 (nvptx_declare_function_name): Init axis predicates.
1298 (nvptx_expand_call): Add fork/join markers around routine call.
1299 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
1300 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
1301 (nvptx_gen_vcast): New.
1302 (struct wcast_data_t): New.
1303 (enum propagate_mask): New.
1304 (nvptx_gen_wcast): New.
1305 (nvptx_print_operand): Add 'S' case.
1306 (struct parallel): New.
1307 (parallel::parallel, parallel::~parallel): New.
1308 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
1309 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
1310 nvptx_find_par, nvptx_discover_pars): New.
1311 (nvptx_propagate): New.
1312 (vprop_gen, nvptx_vpropagate): New.
1313 (wprop_gen, nvptx_wpropagate): New.
1315 (nvptx_single, nvptx_skip_par): New.
1316 (nvptx_process_pars, nvptx_neuter_pars): New.
1317 (ntptx_reorg): Split blocks, generate parallel structure, apply
1319 (nvptx_cannot_copy_insn_p): New.
1320 (nvptx_file_end): Emit worker broadcast decl.
1321 (nvptx_goacc_fork_join): New.
1322 (TARGET_CANNOT_COPY_INSN_P): Override.
1323 (TARGET_GOACC_FORK_JOIN): Override.
1325 2015-10-28 Richard Biener <rguenther@suse.de>
1327 * fold-const.c (negate_expr_p): Adjust the division case to
1328 properly avoid introducing undefined overflow.
1329 (fold_negate_expr): Likewise.
1331 2015-10-28 Richard Biener <rguenther@suse.de>
1333 PR tree-optimization/65962
1334 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1335 Avoid creating loop carried dependences also for outer loops
1336 of the loop a use to replace is in.
1338 2015-10-28 Richard Biener <rguenther@suse.de>
1340 * common.opt (fchecking): New flag controlling flag_checking.
1341 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
1342 * timevar.c (timer::print): Adjust output.
1343 * doc/invoke.texi (fchecking): Document.
1345 2015-10-28 Richard Biener <rguenther@suse.de>
1348 * fold-const.c (negate_expr_p): We cannot negate plus or minus
1349 if overflow is not wrapping. Likewise multiplication unless
1350 one operand is constant and not power of two.
1351 (fold_negate_expr): Adjust accordingly.
1353 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1355 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
1357 (is_oacc_parallel, is_oacc_kernels): New.
1358 (enclosing_target_ctx): May return NULL.
1359 (ctx_in_oacc_kernels_region): New.
1360 (check_oacc_kernel_gwv): New.
1361 (oacc_loop_or_target_p): Delete.
1362 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
1363 operands. Strip reductions fro kernels.
1364 (scan_omp_target): Don't calculate gwv mask.
1365 (lower_oacc_head_mark, lower_oacc_loop_marker,
1366 lower_oacc_head_tail): New.
1367 (struct oacc_collapse): New.
1368 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
1369 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1370 Remove OpenACC handling.
1371 (expand_oacc_for): New.
1372 (expand_omp_for): Call expand_oacc_for.
1373 (lower_omp_for): Call lower_oacc_head_tail.
1375 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
1377 * attribs.c (check_attribute_tables): New function, broken out from...
1378 (init_attributes): Use it.
1379 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
1380 gcc_checking_assert and checking_* functions to eliminate
1381 ENABLE_CHECKING conditionals.
1382 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
1383 (pass_expand::execute): Likewise.
1384 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1385 * cgraphunit.c (mark_functions_to_output): Likewise.
1386 (cgraph_node::expand_thunk): Likewise.
1387 (symbol_table::compile): Likewise.
1388 * ddg.c (add_cross_iteration_register_deps): Likewise.
1389 (create_ddg_all_sccs): Likewise.
1390 * df-core.c (df_finish_pass, df_analyze): Likewise.
1391 * diagnostic-core.h: Likewise.
1392 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
1393 * dominance.c (calculate_dominance_info): Likewise.
1394 * dwarf2out.c (add_AT_die_ref): Likewise.
1395 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
1396 (loc_list_from_tree, gen_lexical_block_die): Likewise.
1397 gen_type_die_with_usage, gen_type_die): Likewise.
1398 (dwarf2out_decl): Likewise.
1399 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
1400 * except.c (duplicate_eh_regions): Likewise.
1401 * fwprop.c (register_active_defs, update_df_init): Likewise.
1402 (fwprop_init, fwprop_done): Likewise.
1403 (update_uses): Likewise.
1404 * ggc-page.c (ggc_grow): Likewise.
1405 * gimplify.c (gimplify_body): Likewise.
1406 (gimplify_hasher::equal): Likewise.
1407 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
1408 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
1410 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
1411 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
1412 * hash-table.h (::find_empty_slot_for_expand): Likewise.
1413 * ifcvt.c (if_convert): Likewise.
1414 * ipa-cp.c (ipcp_propagate_stage): Likewise.
1415 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
1416 (odr_type_p, odr_types_equivalent_p): Likewise.
1417 (add_type_duplicate, get_odr_type): Likewise.
1418 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
1419 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
1420 (sem_item_optimizer::verify_classes): Likewise.
1421 (sem_item_optimizer::traverse_congruence_split): Likewise.
1422 (sem_item_optimizer::checking_verify_classes): New.
1423 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
1425 * cfgrtl.c (commit_edge_insertions): Likewise.
1426 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
1427 (rtl_flow_call_edges_add): Likewise.
1428 * cgraph.c (symbol_table::create_edge): Likewise.
1429 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1430 * cgraph.h (symtab_node): Likewise.
1431 (symtab_node::checking_verify_symtab_nodes): Define.
1432 (cgraph_node::checking_verify_cgraph_nodes): Define.
1433 * cfghooks.h (checking_verify_flow_info): Define.
1434 * cfgloop.h (checking_verify_loop_structure): Define.
1435 * dominance.h (checking_verify_dominators): Define.
1436 * et-forest.c: Fix comment.
1437 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
1438 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1439 ENABLE_CHECKING conditionals.
1440 * ipa-inline-transform.c (save_inline_function_body): Likewise.
1441 * ipa-inline.c (inline_small_functions): Likewise.
1442 (early_inliner): Likewise.
1443 * ipa-inline.h (estimate_edge_growth): Likewise.
1444 * ipa-visibility.c (function_and_variable_visibility): Likewise.
1445 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
1446 (ipa_single_use): Likewise.
1447 * ira-int.h: Likewise.
1448 * ira.c (ira): Likewise.
1449 * loop-doloop.c (doloop_optimize_loops): Likewise.
1450 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
1451 * loop-invariant.c (move_loop_invariants): Likewise.
1452 * lra-assigns.c (lra_assign): Likewise.
1453 * lra-constraints.c (lra_constraints): Likewise.
1454 * lra-eliminations.c (lra_eliminate): Likewise.
1455 * lra-int.h (struct lra_reg): Likewise.
1456 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1457 (lra_create_live_ranges_1): Likewise.
1458 * lra-remat.c (create_remat_bb_data): Likewise.
1459 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
1461 (check_rtl): Always define. Remove incorrect guard around
1462 extract_constrain_insn call.
1463 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
1464 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1465 ENABLE_CHECKING conditionals.
1466 * lto-streamer-out.c (DFS::DFS): Likewise.
1467 (lto_output): Likewise.
1468 * lto-streamer.c (lto_streamer_init): Likewise.
1469 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
1470 expand_omp_target, execute_expand_omp): Likewise.
1471 (lower_omp_target): Likewise.
1472 * passes.c (execute_function_todo): Likewise.
1473 (execute_todo, execute_one_pass): Likewise.
1474 (verify_curr_properties): Always define.
1475 * predict.c (tree_estimate_probability: Use flag_checking,
1476 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1477 ENABLE_CHECKING conditionals.
1478 (propagate_freq): Likewise.
1479 * pretty-print.c (pp_format): Likewise.
1480 * real.c (real_to_decimal_for_mode): Likewise.
1481 * recog.c (split_all_insns): Likewise.
1482 * regcprop.c (kill_value_one_regno): Likewise.
1483 (copy_value): Likewise.
1484 (validate_value_data): Define unconditionally.
1485 * reload.c: Fix comment.
1486 * timevar.c: Include options.h
1487 * tree-ssa.h (checking_verify_ssa): Define.
1488 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
1489 * sched-deps.c (CHECK): Remove unused macro.
1490 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
1491 gcc_checking_assert and checking_* functions to eliminate
1492 ENABLE_CHECKING conditionals.
1493 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
1494 * sel-sched.c (struct moveop_static_params): Likewise.
1495 (find_best_reg_for_expr, move_cond_jump): Likewise.
1496 (move_op_orig_expr_not_found): Likewise.
1497 (code_motion_process_successors, move_op): Likewise.
1498 * ssa-iterators.h (first_readonly_imm_use): Likewise.
1499 (next_readonly_imm_use): Likewise.
1500 * store-motion.c (compute_store_table): Likewise.
1501 * symbol-summary.h (function_summary::function_summary): Likewise.
1502 * target.h (cumulative_args_t): Likewise.
1503 (get_cumulative_args, pack_cumulative_args): Likewise.
1504 * timevar.c: (timer::print): Likewise.
1505 * trans-mem.c (ipa_tm_execute): Likewise.
1506 * tree-cfg.c (move_stmt_op): Likewise.
1507 (move_sese_region_to_fn): Likewise.
1508 (gimple_flow_call_edges_add): Likewise.
1509 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
1511 * tree-eh.c (remove_unreachable_handlers): Likewise.
1512 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
1513 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
1514 * tree-into-ssa.c (update_ssa): Likewise.
1515 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
1516 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
1517 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
1518 * tree-predcom.c (suitable_component_p): Likewise.
1519 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
1520 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
1521 * tree-ssa-live.c (verify_live_on_entry): Likewise.
1522 * tree-ssa-live.h (register_ssa_partition): Likewise.
1523 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
1524 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
1525 (tree_transform_and_unroll_loop): Likewise.
1526 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1527 * tree-ssa-operands.c (get_expr_operands): Likewise.
1528 * tree-ssa-propagate.c (replace_exp_1): Likewise.
1529 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
1530 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
1531 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
1532 * tree-ssanames.c (release_ssa_name_fn): Likewise.
1533 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
1534 * tree-vect-loop-manip.c
1535 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1536 (slpeel_checking_verify_cfg_after_peeling): Likewise.
1537 (vect_do_peeling_for_loop_bound): Likewise.
1538 (vect_do_peeling_for_alignment): Likewise.
1539 * tree-vrp.c (supports_overflow_infinity): Likewise.
1540 (set_value_range): Likewise.
1541 * tree.c (free_lang_data_in_cgraph): Likewise.
1542 * value-prof.c (gimple_remove_histogram_value): Likewise.
1543 (free_hist): Likewise.
1544 * var-tracking.c (canonicalize_values_star): Likewise.
1545 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
1547 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1549 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
1550 IFN_GOACC_LOOP): New.
1551 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
1552 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
1553 IFN_UNIQUE_OACC_TAIL_MARK.
1554 (enum ifn_goacc_loop_kind): New.
1555 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
1556 IFN_UNIQUE_OACC_JOIN cases.
1557 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
1558 (expand_GOACC_LOOP): New.
1559 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
1560 * omp-low.c: Include gimple-pretty-print.h.
1561 (struct oacc_loop): New.
1562 (enum oacc_loop_flags): New.
1563 (oacc_thread_numbers): New.
1564 (oacc_xform_loop): New.
1565 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
1566 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
1567 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
1568 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
1569 oacc_loop_discovery): New.
1570 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
1571 oacc_loop_process): New.
1572 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
1573 (execute_oacc_device_lower): Discover & process loops. Process
1575 * target.def (goacc.fork_join): Change sense of hook, clarify
1577 * doc/tm.texi: Regenerated.
1579 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1581 * target-insns.def (oacc_fork, oacc_join): Define.
1582 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
1583 (goacc.fork_join): New GOACC hook.
1584 * targhooks.h (default_goacc_fork_join): Declare.
1585 * omp-low.c (default_goacc_forkjoin): New.
1586 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
1587 * doc/tm.texi: Regenerate.
1589 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1591 * omp-low.c (oacc_init_rediction_array): New.
1592 (oacc_initialize_reduction_data): Initialize array.
1594 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1596 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
1598 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1600 * internal-fn.c (expand_UNIQUE): New.
1601 * internal-fn.h (enum ifn_unique_kind): New.
1602 * internal-fn.def (IFN_UNIQUE): New.
1603 * target-insns.def (unique): Define.
1604 * gimple.h (gimple_call_internal_unique_p): New.
1605 * gimple.c (gimple_call_same_target_p): Check internal fn
1607 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
1608 * tree-ssa-threadedge.c
1609 (record_temporary_equivalences_from_stmts): Likewise.
1610 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
1612 2015-10-27 Richard Henderson <rth@redhat.com>
1615 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
1616 narrowing subregs on SSE and MMX registers.
1617 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
1618 appear to be sub-words of multi-register pseudos must be rejected.
1619 * doc/tm.texi: Regenerate.
1621 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1624 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
1625 operands[0] is a reg before taking its REGNO in split condition.
1626 (*movdi_aarch64): Likewise.
1628 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1630 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
1631 Handle floating point inner modes properly.
1633 2015-10-27 Alan Hayward <alan.hayward@arm.com>
1636 (vectorizable_live_operation): Change iterator.
1638 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1639 Aditya Kumar <aditya.k7@samsung.com>
1641 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
1642 function to schedule based on isl_schedule_node.
1643 (get_schedule_map_st): New schedule optimizer based on
1645 (scop_get_domains): New. Return the isl_union_set containing the
1646 domains of all the pbbs.
1647 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
1649 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
1652 * calls.c (prepare_call_address): Don't handle -fno-plt here.
1653 * config/i386/i386.c (ix86_expand_call): Generate indirect call
1654 via GOT for -fno-plt. Support indirect call via GOT for x32.
1655 * config/i386/predicates.md (sibcall_memory_operand): Allow
1658 2015-10-27 Richard Biener <rguenther@suse.de>
1660 PR tree-optimization/68104
1661 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1662 strided access check ...
1663 (vect_compute_data_refs_alignment): ... here.
1665 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
1666 Joseph Myers <joseph@codesourcery.com>
1667 Mark Shinwell <shinwell@codesourcery.com>
1668 Andrew Stubbs <ams@codesourcery.com>
1669 Rich Felker <dalias@libc.org>
1671 * config.gcc: Handle --enable-fdpic.
1672 * config/sh/constraints.md (Ccl): New constraint.
1673 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
1674 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
1676 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
1678 * config/sh/sh-protos.h (function_symbol_result): New struct.
1679 (function_symbol): Return function_symbol_result.
1680 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
1682 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
1684 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
1685 (sh_option_override): Force -fPIC if FDPIC is in effect.
1686 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
1687 UNSPEC_GOTOFFFUNCDESC cases.
1688 (prepare_move_operands): Use FDPIC initial GOT register for
1689 TLS-related GOT access; inhibit cross-section address offset constants
1691 (sh_assemble_integer): New function.
1692 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
1693 PC-relative call sites.
1694 (expand_ashiftrt): Adapt invocation of function_symbol.
1695 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
1696 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
1697 UNSPEC_GOTOFFFUNCDESC.
1698 (legitimize_pic_address): Resolve function symbols to function
1699 descriptors for FDPIC. Do not use GOT-relative addressing for local
1700 data that may be read-only on FDPIC.
1701 (sh_emit_storesi, sh_emit_storehi): New functions.
1702 (sh_trampoline_init): Generate FDPIC trampolines.
1703 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
1704 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
1705 (sh_output_mi_thunk): Generate FDPIC call.
1706 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
1707 FDPIC, generate call site labels to use PC-relative addressing rather
1708 than GOT-relative addressing.
1709 (sh_conditional_register_usage): Make PIC register fixed and call used
1710 when FDPIC is in effect.
1711 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
1712 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
1713 sh_get_fdpic_reg_initial_val): New functions.
1714 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
1716 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1717 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
1718 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
1719 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
1721 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
1722 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
1723 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
1724 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
1726 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
1727 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
1728 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
1729 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
1730 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
1731 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
1732 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
1733 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
1734 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1735 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
1736 block_move_real, block_lump_real, block_move_real_i4,
1737 block_lump_real_i4): Add support for FDPIC calls.
1738 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
1739 call_value_pop): Adjust for new function_symbol signature.
1740 * config/sh/sh.opt (-mfdpic): New option.
1741 * doc/install.texi (Options specification): Document --enable-fdpic.
1742 * doc/invoke.texi (SH Options): Document -mfdpic.
1745 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
1747 PR tree-optimization/65963
1748 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs
1749 as equivalent MULT_EXPRs.
1751 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1754 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
1755 * config/arm/constraints.md (Dp): Update callsite.
1756 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
1758 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1760 * builtins.c (fold_builtin_load_exponent): Rename to...
1761 (fold_const_builtin_load_exponent): ...this and only handle
1763 (fold_builtin_2): Update accordingly.
1764 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
1766 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1768 * builtins.c (fold_builtin_logb): Rename to...
1769 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
1770 (fold_builtin_significand): Rename to...
1771 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
1772 (fold_builtin_1): Update accordingly.
1774 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1776 * builtins.c (fold_builtin_fmin_fmax): Delete.
1777 (fold_builtin_2): Handle constant fmin and fmax arguments here.
1778 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
1780 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
1782 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
1783 for register extension into sign and zero register extension.
1784 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
1785 for sign and zero register extension.
1786 (cortexa57_addrcost_table): Likewise.
1787 (xgene1_addrcost_table): Likewise.
1789 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1791 * fold-const.c (fold_minmax): Delete.
1792 (fold_binary_loc): Don't call it.
1793 * match.pd: Add rules previously handled by fold_minmax.
1795 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1797 * builtins.c (fold_builtin_fma): Remove constant handling.
1798 (fold_builtin_3): Handle constant fma arguments here.
1800 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1802 * builtins.c (fold_builtin_fabs): Remove constant handling.
1803 (fold_builtin_abs): Likewise.
1805 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1807 * builtins.c (fold_builtin_copysign): Delete.
1808 (fold_builtin_2): Handle constant copysign arguments here.
1809 * match.pd: Add rules previously handled by fold_builtin_copysign.
1811 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1813 * builtins.c (fold_builtin_signbit): Delete.
1814 (fold_builtin_2): Handle constant signbit arguments here.
1815 * match.pd: Add rules previously handled by fold_builtin_signbit.
1817 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1819 * match.pd: Handle sqrt(x) cmp 0 specially.
1821 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
1823 * tree-vect-generic.c (expand_vector_operations_1): Check
1824 optab type before using it.
1826 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1828 * config/aarch64/aarch64-protos.h
1829 (struct tune_params): Add autoprefetcher_model field.
1830 * config/aarch64/aarch64.c: Include params.h
1831 (generic_tunings): Specify autoprefetcher_model value.
1832 (cortexa53_tunings): Likewise.
1833 (cortexa57_tunings): Likewise.
1834 (cortexa72_tunings): Likewise.
1835 (thunderx_tunings): Likewise.
1836 (xgene1_tunings): Likewise.
1837 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
1838 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
1839 (aarch64_override_options_internal): Set
1840 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
1842 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1844 * builtins.c (fold_builtin_exponent): Delete.
1845 (fold_builtin_2): Handle constant expN arguments here.
1846 * match.pd: Fold expN(logN(x)) -> x.
1848 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1850 * builtins.c (fold_builtin_powi): Delete.
1851 (fold_builtin_2): Handle constant powi arguments here.
1852 * match.pd: Add rules previously handled by fold_builtin_powi.
1854 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1856 * builtins.c (fold_builtin_pow): Delete in favor of...
1857 (fold_const_builtin_pow): ...this new function. Only handle constant
1859 (fold_builtin_2): Update accordingly.
1860 * match.pd: Add rules previously handled by fold_builtin_pow.
1862 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1864 * builtins.c (fold_builtin_hypot): Delete.
1865 (fold_builtin_2): Handle constant hypot arguments here.
1866 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
1867 hypot(x, x) to fabs(x)*sqrt(2).
1869 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1871 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
1872 instead of make_ssa_name if not yet in SSA form.
1874 2015-10-27 Richard Biener <rguenther@suse.de>
1876 * cfg.c (free_edge): Add function argument and use it instead of cfun.
1877 (clear_edges): Likewise.
1878 * cfg.h (clear_edges): Adjust prototype.
1879 * cfgexpand.c (pass_expand::execute): Adjust.
1880 * cfgloop.c (release_recorded_exits): Add function argument and use
1882 * cfgloop.h (release_recorded_exits): Adjust prototype.
1883 (loops_state_satisfies_p): Add overload with function argument.
1884 (loops_state_set): Likewise.
1885 (loops_state_clear): Likewise.
1886 (struct loop_iterator): Add function argument to constructor
1887 and iterator and use it instead of cfun.
1888 (FOR_EACH_LOOP_FN): New macro.
1889 (loop_optimizer_finalize): Add overload with function argument.
1890 * loop-init.c (loop_optimizer_init): Adjust.
1891 (fix_loop_structure): Likewise.
1892 (loop_optimizer_finaliz): Add function argument and use it
1894 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1895 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
1896 * cgraph.c (release_function_body): Do not push/pop cfun.
1897 * final.c (rest_of_clean_state): Adjust.
1898 * graphite.c (graphite_finalize): Likewise.
1899 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1900 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
1901 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
1902 (tree_unroll_loops_completely): Likewise.
1903 (pass_complete_unrolli::execute): Likewise.
1904 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
1905 Add function argument and use it instead of cfun.
1906 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
1908 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
1909 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
1911 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
1912 * tree-ssanames.c (fini_ssanames): Add function argument and use it
1914 * tree-ssanames.c (fini_ssanames): Adjust prototype.
1915 * tree-vrp.c (execute_vrp): Adjust.
1916 * value-prof.c (free_histograms): Add function argument and use it
1918 * value-prof.h (free_histograms): Adjust prototype.
1920 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1922 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
1923 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
1924 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
1926 2015-10-27 Tom de Vries <tom@codesourcery.com>
1928 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
1931 2015-10-27 Bin Cheng <bin.cheng@arm.com>
1933 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
1934 (inv_can_prop_to_addr_use): New function.
1935 (record_use): Call can_prop_to_addr_uses, set the new field.
1936 (get_inv_cost): Count cost if inv can't be propagated into its
1939 2015-10-26 Doug Evans <dje@google.com>
1941 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
1943 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
1945 * match.pd (fold_widened_comparison): Apply simplifications to all
1948 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
1950 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
1951 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
1952 * doc/tm.texi: Regenerated.
1953 * reorg.c (dbr_schedule): Use new hook.
1954 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
1956 2015-10-26 Jeff Law <law@redhat.com>
1958 PR tree-optimization/68013
1959 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1960 Make sure the first block in the path is in VISITED_BBs.
1962 2015-10-26 Richard Biener <rguenther@suse.de>
1963 Dominik Vogt <vogt@linux.vnet.ibm.com>
1966 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
1967 Properly prune ref->ref for accesses outside of ref.
1969 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
1971 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
1972 new statements to be inserted if inplace. Allow calls to have
1975 2015-10-26 Richard Biener <rguenther@suse.de>
1977 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
1978 (do_valueize): New function.
1979 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
1981 * tree-ssa-threadedge.c: Remove builtins.h include, include
1983 (fold_assignment_stmt): Remove.
1984 (threadedge_valueize): New function.
1985 (record_temporary_equivalences_from_stmts): Use
1986 gimple_fold_stmt_to_constant_1, note additional cleanup
1989 2015-10-26 Richard Biener <rguenther@suse.de>
1991 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
1992 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
1994 2015-10-26 Alan Hayward <alan.hayward@arm.com>
1996 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
1997 VEC_COND_EXPR types.
1999 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2001 * auto-inc-dec.c (insert_move_insn_before): Delete.
2002 (attempt_change): Remember to cost the simple move in the
2003 FORM_PRE_ADD and FORM_POST_ADD cases.
2005 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
2008 * config/sh/sh.c (sh_vector_mode_supported_p): Use
2009 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
2011 2015-10-26 Tom de Vries <tom@codesourcery.com>
2013 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
2015 (intra_create_variable_infos): ... here.
2017 2015-10-26 Tom de Vries <tom@codesourcery.com>
2019 * tree-ssa-structalias.c (intra_create_variable_infos): Add
2020 restrict_pointer_p and recursive_restrict_p variables.
2022 2015-10-26 Tom de Vries <tom@codesourcery.com>
2024 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
2025 get_vi_for_tree call.
2027 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2030 * optabs.c (expand_atomic_compare_and_swap): Handle case when
2031 ptarget_oval or ptarget_bool are const0_rtx.
2033 2015-10-26 Christian Bruel <christian.bruel@st.com>
2035 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
2036 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
2037 * cp/method.c (implicitly_declare_fn): Likewise.
2038 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
2039 * java/class.c (add_method_1): Likewise.
2041 2015-10-26 Richard Biener <rguenther@suse.de>
2043 * alloc-pool.h (base_pool_allocator): Use placement new.
2044 (base_pool_allocator::remove): Likewise. Compute size outside of
2047 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2049 * builtins.c (do_real_to_int_conversion): New function.
2050 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
2051 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
2053 * match.pd: Add rules previously handled by fold_fixed_mathfn
2054 and fold_builtin_int_roundingfn.
2056 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2058 * match.pd: Use macros to define built-in operator lists.
2060 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
2061 Richard Biener <rguenther@suse.de>
2063 * genmatch.c (dt_simplify::gen): Skip captures that are
2065 (parser::parse_expr): Allow captures in results too.
2066 * builtins.c (fold_builtin_cexp): Delete.
2067 (fold_builtin_1): Handle constant cexp arguments here.
2068 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
2070 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
2072 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
2073 conditional compilation.
2074 (base_pool_allocator::remove): Use flag_checking.
2076 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
2078 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
2081 * dojump.c (do_compare_and_jump): Canonicalize both function and
2084 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
2087 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
2090 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2093 * ipa-polymorphic-call.c
2094 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
2095 instance offset with offset of outer type.
2097 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2099 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
2101 2015-10-23 Caroline Tice <cmtice@google.com>
2103 (from Richard Biener
2104 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
2105 call to iterative_hash_host_wide_int.
2107 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
2109 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
2112 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2114 * tree-vect-generic.c (expand_vector_operations_1): Check
2115 optab exists before use it.
2117 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2119 * tree-vect-generic.c (expand_vector_condition): Avoid
2120 uninitialized variable warning.
2122 2015-10-23 Jeff Law <law@redhat.com>
2124 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
2126 (execute_todo): Call it here.
2127 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
2129 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
2131 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
2132 Szabolcs Nagy <szabolcs.nagy@arm.com>
2134 * config.gcc (enable_secureplt): Add *-linux*-musl*.
2136 2015-10-23 Jeff Law <law@redhat.com>
2138 PR tree-optimization/67830
2139 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
2140 Explicitly verify the mask has no bits outside the type of
2141 the innermost operands.
2143 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
2144 Szabolcs Nagy <szabolcs.nagy@arm.com>
2146 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
2147 (MUSL_DYNAMIC_LINKER64): Define.
2148 (GNU_USER_DYNAMIC_LINKER32): Update.
2149 (GNU_USER_DYNAMIC_LINKER64): Update.
2150 (CHOOSE_DYNAMIC_LINKER): Update.
2152 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
2153 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
2154 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2155 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2156 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2157 (CHOOSE_DYNAMIC_LINKER): Update.
2158 (INCLUDE_DEFAULTS): Redefine.
2160 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
2162 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2164 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
2165 comparing addresses.
2167 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2169 * fold-const.c (operand_equal_p): Handle matching of vector
2172 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
2174 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
2176 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
2177 Andrew Pinski <apinski@cavium.com>
2179 PR rtl-optimization/67736
2180 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
2183 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2186 * tree.c (build_truth_vector_type): Support BLK mode
2187 returned for boolean vector.
2189 2015-10-23 Alan Hayward <alan.hayward@arm.com>
2191 PR tree-optimization/65947
2193 (vect_is_simple_reduction_1): Find condition reductions.
2194 (vect_model_reduction_cost): Add condition reduction costs.
2195 (get_initial_def_for_reduction): Add condition reduction initial var.
2196 (vect_create_epilog_for_reduction): Add condition reduction epilog.
2197 (vectorizable_reduction): Condition reduction support.
2198 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
2199 * doc/sourcebuild.texi (Vector-specific attributes): Document
2202 2015-10-23 Richard Biener <rguenther@suse.de>
2204 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
2207 2015-10-23 Richard Biener <rguenther@suse.de>
2208 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2210 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
2211 into (A ^ B) - B to match.pd
2212 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
2214 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
2216 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
2218 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
2220 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
2222 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
2223 INTEGER_CST@1)): New simplifier.
2225 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
2227 * builtins.c (integer_valued_real_p): Move to fold-const.c.
2228 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
2229 (fold_builtin_ceil, fold_builtin_round): Delete.
2230 (fold_builtin_1): Handle constant trunc, floor, ceil and round
2232 * convert.c (convert_to_real): Remove narrowing of rounding
2234 * fold-const.h (integer_valued_real_unary_p)
2235 (integer_valued_real_binary_p, integer_valued_real_call_p)
2236 (integer_valued_real_single_p, integer_valued_real_p): Declare.
2237 * fold-const.c (tree_single_nonnegative_warnv_p): Move
2238 name_registered_for_update_p check to SSA_NAME case statement.
2239 Don't call tree_simple_nonnegative_warnv_p for SSA names.
2240 (integer_valued_real_unary_p, integer_valued_real_binary_p)
2241 (integer_valued_real_call_p, integer_valued_real_single_p)
2242 (integer_valued_real_invalid_p): New functions.
2243 (integer_valued_real_p): Move from fold-const.c and rework
2244 to call the functions above. Handle SSA names.
2245 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
2246 * gimple-fold.c (gimple_assign_integer_valued_real_p)
2247 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
2248 (gimple_stmt_integer_valued_real_p): New functions.
2249 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
2250 Fold f(x)->x for the same f if x is known to be integer-valued.
2251 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
2252 the result. Canonicalize floor(x) as trunc(x) if x is
2255 2015-10-23 Tom de Vries <tom@codesourcery.com>
2257 * tree-ssa-structalias.c (intra_create_variable_infos): Use
2258 make_constraint_from.
2260 2015-10-23 Tom de Vries <tom@codesourcery.com>
2262 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
2263 setting of is_full_var in case of a single field.
2265 2015-10-22 Martin Sebor <msebor@redhat.com>
2268 * config/i386/i386.opt: Add missing periods to the ends of sentences.
2269 * config/msp430/msp430.opt: Same.
2271 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2273 * doc/extend.exp (Global Register Variables): Rewrite.
2275 2015-10-22 Jeff Law <law@redhat.com>
2277 * genattrtab.c (main): If we do not have any annul-true or annul-false
2278 slots, then write out a dummy eligible_for_annul_true or
2279 eligible_for_annul_false as needed.
2281 2015-10-22 Nick Clifton <nickc@redhat.com>
2283 * config/msp430/msp430.opt: Add -msilicon-errata and
2284 -msilicon-errata-warn.
2285 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
2287 * doc/invoke.texi: Document new options.
2289 2015-10-22 Richard Biener <rguenther@suse.de>
2291 PR tree-optimization/58497
2292 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
2293 (expand_vector_operations_1): Use it. Lower operations on
2294 all uniform vectors to scalar operations if the HW supports it.
2296 2015-10-22 Richard Biener <rguenther@suse.de>
2298 PR tree-optimization/19049
2299 PR tree-optimization/65962
2300 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
2301 to strided accesses if single-element interleaving doesn't work.
2303 2015-10-22 Richard Biener <rguenther@suse.de>
2307 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
2308 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
2309 (expand_unop): Likewise.
2311 2015-10-22 Richard Biener <rguenther@suse.de>
2313 * fold-const.c (fold_addr_of_array_ref_difference): Properly
2314 convert operands before folding a MINUS_EXPR.
2315 (fold_binary_loc): Move simplification of MINUS_EXPR on
2316 converted POINTER_PLUS_EXPRs ...
2317 * match.pd: ... here.
2319 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
2321 * builtins.c (fold_builtin_tan): Delete.
2322 (fold_builtin_1): Handle constant tan arguments here.
2323 * match.pd: Simplify (tan (atan x)) to x.
2325 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
2327 * builtins.c (fold_builtin_cproj): Delete.
2328 (fold_builtin_1): Handle constant arguments here.
2329 (build_complex_cproj): Move and rename to...
2330 * tree.c: (build_complex_inf): ...this.
2331 * tree.h (build_complex_inf): Declare.
2332 * match.pd: Fold cproj(x)->x if x has no infinity.
2333 Use build_complex_inf for existing cproj rules.
2335 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2338 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
2339 already have a comparison result.
2341 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2344 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
2345 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
2346 (aarch64_classify_address): Likewise.
2347 (aarch64_secondary_reload): Likewise.
2348 (aarch64_override_options_after_change_1): Adjust.
2349 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2350 Use aarch64_nopcrelative_literal_loads.
2351 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2352 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
2355 2015-10-21 Martin Sebor <msebor@redhat.com>
2358 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
2359 (print_filtered_help): Reference aliased option's name and encourage
2360 readers to use it in preference to the alias if the former is not
2361 documented. Mention when using an option is diagnosed.
2362 * gcc.c (display_help): End each sentence with a period.
2364 * common.opt: End each sentence that describes an option with
2366 * config/aarch64/aarch64.opt: Same.
2367 * config/alpha/alpha.opt: Same.
2368 * config/arc/arc.opt: Same.
2369 * config/arm/arm.opt: Same.
2370 * config/avr/avr.opt: Same.
2371 * config/bfin/bfin.opt: Same.
2372 * config/c6x/c6x.opt: Same.
2373 * config/cr16/cr16.opt: Same.
2374 * config/cris/cris.opt: Same.
2375 * config/cris/linux.opt: Same.
2376 * config/darwin.opt: Same.
2377 * config/epiphany/epiphany.opt: Same.
2378 * config/fr30/fr30.opt: Same.
2379 * config/frv/frv.opt: Same.
2380 * config/ft32/ft32.opt: Same.
2381 * config/g.opt: Same.
2382 * config/h8300/h8300.opt: Same.
2383 * config/i386/cygming.opt: Same.
2384 * config/i386/djgpp.opt: Same.
2385 * config/i386/i386.opt: Same.
2386 * config/i386/interix.opt: Same.
2387 * config/i386/mingw-w64.opt: Same.
2388 * config/i386/mingw.opt: Same.
2389 * config/ia64/ia64.opt: Same.
2390 * config/ia64/ilp32.opt: Same.
2391 * config/iq2000/iq2000.opt: Same.
2392 * config/linux.opt: Same.
2393 * config/lm32/lm32.opt: Same.
2394 * config/lynx.opt: Same.
2395 * config/m32c/m32c.opt: Same.
2396 * config/m32r/m32r.opt: Same.
2397 * config/m68k/ieee.opt: Same.
2398 * config/m68k/m68k.opt: Same.
2399 * config/mcore/mcore.opt: Same.
2400 * config/mep/mep.opt: Same.
2401 * config/microblaze/microblaze.opt: Same.
2402 * config/mips/mips.opt: Same.
2403 * config/mmix/mmix.opt: Same.
2404 * config/mn10300/mn10300.opt: Same.
2405 * config/moxie/moxie.opt: Same.
2406 * config/msp430/msp430.opt: Same.
2407 * config/nios2/elf.opt: Same.
2408 * config/nios2/nios2.opt: Same.
2409 * config/nvptx/nvptx.opt: Same.
2410 * config/pa/pa-hpux.opt: Same.
2411 * config/pa/pa-hpux1010.opt: Same.
2412 * config/pa/pa-hpux1111.opt: Same.
2413 * config/pa/pa-hpux1131.opt: Same.
2414 * config/pa/pa.opt: Same.
2415 * config/pa/pa64-hpux.opt: Same.
2416 * config/pdp11/pdp11.opt: Same.
2417 * config/rl78/rl78.opt: Same.
2418 * config/rs6000/476.opt: Same.
2419 * config/rs6000/aix64.opt: Same.
2420 * config/rs6000/darwin.opt: Same.
2421 * config/rs6000/linux64.opt: Same.
2422 * config/rs6000/rs6000.opt: Same.
2423 * config/rs6000/sysv4.opt: Same.
2424 * config/s390/s390.opt: Same.
2425 * config/s390/tpf.opt: Same.
2426 * config/sh/sh.opt: Same.
2427 * config/sol2.opt: Same.
2428 * config/sparc/long-double-switch.opt: Same.
2429 * config/sparc/sparc.opt: Same.
2430 * config/spu/spu.opt: Same.
2431 * config/stormy16/stormy16.opt: Same.
2432 * config/tilegx/tilegx.opt: Same.
2433 * config/tilepro/tilepro.opt: Same.
2434 * config/v850/v850.opt: Same.
2435 * config/vax/vax.opt: Same.
2436 * config/visium/visium.opt: Same.
2437 * config/vms/vms.opt: Same.
2438 * config/vxworks.opt: Same.
2439 * config/xtensa/xtensa.opt: Same.
2441 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2442 Sebastian Pop <s.pop@samsung.com>
2444 * graphite-scop-detection.c (parameter_index_in_region): Update call to
2445 invariant_in_sese_p_rec.
2446 * graphite-sese-to-poly.c (extract_affine): Same.
2447 * sese.c (invariant_in_sese_p_rec): Pass in an extra
2448 parameter has_vdefs.
2449 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
2450 variable depends on virtual definitions in the current region.
2451 * sese.h (invariant_in_sese_p_rec): Update declaration.
2453 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2454 Sebastian Pop <s.pop@samsung.com>
2456 * graphite-scop-detection.c (build_scops): Do not handle scops
2457 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
2458 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
2460 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
2462 * config.in: Regenerate.
2463 * configure: Regenerate.
2464 * configure.ac (CHECKING_P): Define.
2465 * system.h: Use CHECKING_P.
2467 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2470 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
2471 is negative we don't know the type.
2472 (check_stmt_for_type_change): Skip constructors of non-polymorphic
2473 types as those won't help devirutalization.
2475 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2477 * fold-const.c (operand_equal_p): Add code matching empty constructors.
2479 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
2481 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
2483 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
2484 Add comments on sign of the result.
2485 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
2486 Recurse on operand #1 instead of operand #0.
2487 <CEIL_MOD_EXPR>: Do not recurse.
2488 <ROUND_MOD_EXPR>: Likewise.
2490 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2492 * cfgrtl.c (pass_free_cfg::execute): Adjust.
2493 * final.c (dbr_sequence_length): Always define.
2494 (shorten_branches): Adjust.
2495 * genattr-common.c (main): Always define DELAY_SLOTS.
2496 * genattr.c (main): Unconditionally declare functions and define
2497 macros related to delay slots.
2498 * genattrtab.c (write_eligible_delay): Adjust.
2499 (main): Always write out delay slot functions.
2500 * opts.c (default_options_table): Adjust.
2501 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
2502 (redirect_with_delay_list_safe_p): Likewise.
2503 (fill_simple_delay_slots): Likewise.
2504 (fill_slots_from_thread): Likewise.
2505 (make_return_insns): Likewise.
2506 (dbr_schedule): Likewise.
2507 (rest_of_handle_delay_slots): Likewise.
2508 (pass_delay_slots::gate): Likewise.
2509 * toplev.c (process_options): Likewise.
2511 2015-10-21 Richard Henderson <rth@redhat.com>
2513 * targhooks.c (default_addr_space_pointer_mode): Remove check
2514 for generic address space.
2515 (default_addr_space_address_mode): Likewise.
2516 (default_addr_space_valid_pointer_mode): Likewise.
2517 (default_addr_space_legitimate_address_p): Likewise.
2518 (default_addr_space_legitimize_address): Likewise.
2519 * target.def (addr_space.pointer_mode): Update documentation
2520 of default behavior.
2521 (addr_space.address_mode): Likewise.
2524 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
2527 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2529 * builtins.c (fold_builtin_cabs): Delete.
2530 (fold_builtin_1): Update accordingly. Handle constant arguments here.
2531 * match.pd: Add rules previously handled by fold_builtin_cabs.
2533 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2535 * fold-const.h (fold_strip_sign_ops): Delete.
2536 * fold-const.c (fold_strip_sign_ops): Likewise.
2537 (fold_unary_loc, fold_binary_loc): Remove calls to it.
2538 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
2539 (fold_builtin_ccos): Delete.
2540 (fold_builtin_pow): Don't call fold_strip_sign_ops.
2541 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
2542 Remove fndecl argument.
2543 (fold_builtin_1): Update calls accordingly. Handle constant
2544 cos, cosh, ccos and ccosh here.
2546 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2548 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
2549 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
2550 * common.opt (fssa-backprop): New option.
2551 * fold-const.h (negate_mathfn_p): Declare.
2552 * fold-const.c (negate_mathfn_p): Make public.
2553 * timevar.def (TV_TREE_BACKPROP): New.
2554 * tree-pass.h (make_pass_backprop): Declare.
2555 * passes.def (pass_backprop): Add.
2556 * gimple-ssa-backprop.c: New file.
2558 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2559 Sebastian Pop <s.pop@samsung.com>
2561 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
2562 Do not call create_empty_if_region_on_edge when cond_expr is true.
2563 (translate_isl_ast_node_for): Check whether a guard has been generated.
2565 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2567 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
2568 (operator=): Removed.
2569 (dr_info): Make alias_set number the last argument with default
2570 value of invalid_alias_set.
2571 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
2573 (rewrite_reductions_out_of_ssa): Iterate only through the
2574 basic blocks which are inside region.
2575 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2576 * sese.h (struct sese_l): Removed assignment operator.
2577 (split_region_for_bb): Removed dead code.
2579 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2581 * graphite-poly.h (struct dr_info): Removed conversion constructor.
2582 (struct scop): Renamed scop::region to scop::scop_info
2583 (scop_set_region): Same.
2584 (SCOP_REGION): Removed
2585 (SCOP_CONTEXT): Removed.
2586 (POLY_SCOP_P): Removed.
2587 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2588 Rename scop->region to scop->scop_info.
2589 (add_parameters_to_ivs_params): Same.
2590 (graphite_regenerate_ast_isl): Same.
2591 * graphite-poly.c (new_scop): Same.
2593 (print_scop_params): Same.
2594 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
2595 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
2596 (dot_all_scops_1): Rename scop->region to scop->scop_info.
2597 (scop_detection::nb_pbbs_in_loops): Same.
2598 (find_scop_parameters): Same.
2599 (try_generate_gimple_bb): Same.
2600 (gather_bbs::before_dom_children): Same.
2601 (gather_bbs::after_dom_children): Same.
2602 (build_scops): Same.
2603 * graphite-sese-to-poly.c (build_scop_scattering): Same.
2604 (extract_affine_chrec): Same.
2605 (extract_affine): Same.
2606 (set_scop_parameter_dim): Same.
2607 (build_loop_iteration_domains): Same.
2608 (create_pw_aff_from_tree): Same.
2609 (add_param_constraints): Same.
2610 (build_scop_iteration_domain): Same.
2611 (build_scop_drs): Same.
2612 (analyze_drs_in_stmts): Same.
2613 (insert_out_of_ssa_copy_on_edge): Same.
2614 (rewrite_close_phi_out_of_ssa):Same.
2615 (rewrite_reductions_out_of_ssa):Same.
2616 (handle_scalar_deps_crossing_scop_limits):Same.
2617 (rewrite_cross_bb_scalar_deps):Same.
2618 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
2619 (build_poly_scop):Same.
2620 (build_alias_set): Use pointer to dr_info.
2621 * graphite.c (print_graphite_scop_statistics):
2622 (graphite_transform_loops):
2623 * sese.h (struct sese_l): Remove conversion constructor.
2625 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2628 * tree.c (verify_type): Verify that TYPE_MODE match
2629 between TYPE_CANONICAL and type.
2630 * expr.c (store_expr_with_bounds): Revert my previous change.
2631 * expmed.c (store_bit_field_1): Revert prevoius change.
2632 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
2633 to match for all types.
2635 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
2637 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
2640 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2642 * doc/tm.texi: Regenerated.
2643 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
2644 * stor-layout.c (layout_type): Use mode to get vector mask size.
2645 * target.def (get_mask_mode): New.
2646 * targhooks.c (default_get_mask_mode): New.
2647 * targhooks.h (default_get_mask_mode): New.
2648 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
2650 * tree.c (MAX_BOOL_CACHED_PREC): New.
2651 (nonstandard_boolean_type_cache): New.
2652 (build_nonstandard_boolean_type): New.
2653 (make_vector_type): Vector mask has no canonical type.
2654 (build_truth_vector_type): New.
2655 (build_same_sized_truth_vector_type): New.
2656 (truth_type_for): Support vector masks.
2657 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
2658 (build_truth_vector_type): New.
2659 (build_same_sized_truth_vector_type): New.
2660 (build_nonstandard_boolean_type): New.
2661 * tree-cfg.c (verify_gimple_comparison) Require boolean
2662 vector type for vector comparison.
2663 (verify_gimple_assign_ternary): Likewise.
2664 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
2666 * tree-vect-stmts.c (vectorizable_condition): Use boolean
2667 vector type for vector comparison.
2668 * tree-vect-generic.c (elem_op_func): Add new operand to hold
2670 (do_unop): Adjust to modified function type.
2671 (do_binop): Likewise.
2672 (do_plus_minus): Likewise.
2673 (do_negate); Likewise.
2674 (expand_vector_piecewise): Likewise.
2675 (do_cond): Likewise.
2676 (do_compare): Use comparison instead of condition.
2677 (expand_vector_divmod): Use boolean vector type for comparison.
2678 (expand_vector_operations_1): Skip scalar mask operations.
2680 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2682 * omp-low.c (simd_clone_create): Set in_other_partition
2685 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2687 * doc/extend.exp (Local Register Variables): Rewrite.
2689 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2691 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
2692 and x*x in cases where the operands are sign ops. Extend these
2693 rules to handle copysign as a sign op (including for cos, cosh
2694 and pow, which already treated negate and abs as sign ops).
2696 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
2699 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
2700 for 64-bit MS_ABI targets also when default incoming stack boundary
2703 2015-10-21 Richard Biener <rguenther@suse.de>
2705 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
2706 cond stmts, enhanced and split out from ...
2707 (vn_phi_eq): ... here.
2709 2015-10-21 Richard Biener <rguenther@suse.de>
2712 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
2713 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
2714 (tree_single_nonnegative_warnv_p): ... here. For SSA names
2715 make sure they are not registered for update.
2717 2015-10-21 Richard Biener <rguenther@suse.de>
2719 PR tree-optimization/68026
2720 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
2721 unsigned VARYING values.
2723 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2725 * asan.c (asan_emit_stack_protection): Don't pass local stack to
2726 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
2727 NULL and use local stack than.
2728 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
2729 in addition to __asan_init.
2730 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
2731 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
2732 * asan.h (asan_intercepted_p): Handle new string builtins.
2733 * ubsan.c (ubsan_use_new_style_p): New function.
2734 (ubsan_instrument_float_cast): If location is unknown, assign
2735 input_location to loc. Propagate loc to ubsan_create_data if
2736 ubsan_use_new_style_p returned true.
2738 2015-10-21 Jeff Law <law@redhat.com>
2740 * Makefile.in (OBJS): Remove sched-vis.c
2741 * sched-vis.c: Removed. Code moved into...
2742 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
2743 * rtl.h: Remove prototypes for functions now living in print-rtl.c
2744 * print-rtl.h Add prototypes for new functions in print-rtl.c.
2745 * auto-inc-dec.c: Include print-rtl.h
2746 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
2747 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
2749 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
2752 2015-10-21 Richard Biener <rguenther@suse.de>
2753 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2755 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
2757 Move (a * (1 << b)) is (a << b) to match.pd.
2758 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
2759 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
2760 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
2762 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
2764 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
2765 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
2766 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
2768 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
2770 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
2772 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
2773 Szabolcs Nagy <szabolcs.nagy@arm.com>
2774 Alan Modra <amodra@gmail.com>
2776 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
2777 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
2778 (LINK_SPEC): Add %(link_secure_plt).
2779 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
2780 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
2782 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
2783 Szabolcs Nagy <szabolcs.nagy@arm.com>
2785 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
2786 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
2788 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2790 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
2792 (fusion_load_store): Use it.
2793 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
2794 ldp and stp in VD modes.
2795 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
2796 (store_pair<mode>, VD): Likewise.
2798 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
2800 PR rtl-optimization/67609
2801 * lra-splill.c (lra_final_code_change): Don't remove all
2804 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2806 * simplify-rtx.c (simplify_binary_operation): If either operand was
2807 a constant pool reference use them if all other simplifications failed.
2809 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2811 * config/aarch64/aarch64.md
2812 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
2813 * config/aarch64/aarch64-simd.md
2814 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
2815 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
2816 (aarch64_fpconst_pow_of_2): New function.
2817 (aarch64_vec_fpconst_pow_of_2): Likewise.
2818 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
2820 (aarch64_vec_fpconst_pow_of_2): Likewise.
2821 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
2822 (aarch64_fp_vec_pow2): Likewise.
2824 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
2826 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
2827 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
2828 * config/alpha/alpha.c (alpha_function_arg_advance): Update
2829 ALPHA_ARG_SIZE usage.
2830 (alpha_arg_partial_bytes): Ditto.
2832 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
2835 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
2836 error_mark_node decls.
2838 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
2842 * common/config/i386/i386-common.c (ix86_handle_option): Remove
2843 OPT_miamcu handling.
2844 * config/i386/i386.c (PTA_NO_80387): New macro.
2845 (processor_alias_table): Add PTA_NO_80387 to lakemont.
2846 (ix86_option_override_internal): Update MASK_80387 from
2847 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
2848 SSE math only if 80387 is supported. Don't change
2850 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
2852 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
2853 if TARGET_80387 is true and TARGET_IAMCU is false.
2854 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
2855 is true and TARGET_IAMCU_P is false.
2857 2015-10-20 Richard Biener <rguenther@suse.de>
2859 PR tree-optimization/68017
2860 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
2862 2015-10-20 Martin Liska <mliska@suse.cz>
2864 * cgraphclones.c (cgraph_node::create_virtual_clone):
2865 Verify cgraph_node.local.versionable instead of calling
2866 tree_versionable_function_p.
2867 * ipa-cp.c (determine_versionability): Save the information
2868 to ipa_node_params summary.
2869 (ipcp_versionable_function_p): Use it.
2870 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
2871 (ipcp_generate_summary): Do not compute cgraph_node
2873 * ipa-inline-analysis.c (inline_generate_summary): Compute
2874 versionability for all cgraph nodes.
2875 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
2876 ipa_node_params::versionability.
2877 * ipa-prop.h (struct ipa_node_params): Declare it.
2879 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2882 * varasm.c (assemble_variable): Move special vtv handling to..
2883 (handle_vtv_comdat_sections): .. here. New function.
2884 (output_object_block): Handle vtv sections.
2886 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
2889 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
2891 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
2893 * doc/extend.texi: Update documentation WRT inline functions.
2895 2015-10-20 Alan Modra <amodra@gmail.com>
2898 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
2899 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
2900 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
2902 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
2904 PR rtl-optimization/66790
2905 * df.h (DF_MIR): New macro.
2906 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
2907 (DF_MIR_INFO_BB): New macro.
2908 (DF_MIR_IN, DF_MIR_OUT): New macros.
2909 (struct df_mir_bb_info): New.
2910 (df_mir): New macro.
2911 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
2913 (df_mir_get_bb_info): New.
2914 * df-problems.c (struct df_mir_problem_data): New.
2915 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
2916 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
2917 df_mir_confluence_0, df_mir_confluence_n,
2918 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
2919 df_mir_bottom_dump, df_mir_verify_solution_start,
2920 df_mir_verify_solution_end): New.
2922 (df_mir_add_problem, df_mir_simulate_one_insn): New.
2923 * timevar.def (TV_DF_MIR): New.
2924 * ree.c: Include bitmap.h
2925 (add_removable_extension): Add an INIT_REGS parameter. Use it
2926 to skip zero-extensions that may get an uninitialized register.
2927 (find_removable_extensions): Compute must-initialized registers
2928 using the MIR dataflow problem. Update the call to
2929 add_removable_extension.
2930 (find_and_remove_re): Call df_mir_add_problem.
2932 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
2934 * common/config/mn10300/mn10300-common.c
2935 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
2936 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
2938 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
2940 * doc/extend.texi (Explicit Register Variables): Simplify and
2941 avoid unnecessary and confusion abbreviations. Update cross
2943 doc/implement-c.tex: Update cross reference.
2945 2015-10-19 Jeff Law <law@redhat.com>
2947 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
2948 that create irreducible loops unless the path elimiantes a multiway
2951 2015-10-19 Richard Biener <rguenther@suse.de>
2953 PR tree-optimization/67975
2954 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
2955 * tree-cfg.c (extract_true_false_controlled_edges): Split out
2956 core worker from ...
2957 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
2958 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
2959 instead of block number for PHIs with two or one args.
2960 (vn_phi_eq): Compare edge predicates of PHIs that are in different
2963 2015-10-19 Richard Biener <rguenther@suse.de>
2965 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
2966 (gimple_stmt_nonnegative_warnv_p): Use it.
2967 * match.pd (CPROJ): New operator list.
2968 (cproj (complex ...)): Move simplifications from ...
2969 * builtins.c (fold_builtin_cproj): ... here.
2971 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2973 * config/i386/i386.c (ix86_expand_vector_move): Use
2974 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
2977 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2979 * doc/invoke.texi: Replace @optindex with @opindex.
2981 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2984 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
2985 arch= is set, clear all bits in x_ix86_isa_flags, except for
2986 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
2988 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
2991 * common.opt (fkeep-static-functions): New option.
2992 * doc/invoke.texi: Document it.
2993 * cgraphunit.c (cgraph_node::finalize_function): Use it.
2995 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2997 * sched-int.h (struct autopref_multipass_data_): Remove offset
2998 field. Add min_offset, max_offset, multi_mem_insn_p fields.
2999 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
3000 (autopref_multipass_init): Use it. Handle PARALLEL sets.
3001 (autopref_rank_data): New function.
3002 (autopref_rank_for_schedule): Use it.
3003 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
3005 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
3008 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
3010 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3012 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
3013 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
3014 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
3015 (STANDARD_STARTFILE_PREFIX_1): New.
3016 (STANDARD_STARTFILE_PREFIX_2): New.
3018 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3020 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
3021 (darwin_driver_init): Note a version-min when provided on the c/l.
3022 * config/darwin.h (%darwin_minversion): Remove.
3023 * config/i386/darwin.h: Likewise.
3024 * config/rs6000/darwin.h: Likewise.
3025 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
3026 rather than an arbitrary constant.
3028 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3030 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
3031 PPC, detect conflicts between -arch and multilib settings. Detect
3032 and warn about conflicts between multiple -arch definitions.
3034 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3036 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
3038 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3040 * lra-constraints.c (add_next_usage_insn): Change argument type
3041 from rtx to rtx_insn *.
3043 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
3045 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
3048 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
3050 * config/tilepro/gen-mul-tables.cc: Adjust include files.
3051 * config/tilegx/mul-tables.c: Regenerate.
3052 * config/tilepro/mul-tables.c: Regenerate.
3054 * config/tilegx/tilegx-c.c: Adjust include files.
3055 * config/tilegx/tilegx.c: Likewise.
3056 * config/tilepro/tilepro-c.c: Likewise.
3057 * config/tilepro/tilepro.c: Likewise.
3058 * config/aarch64/aarch64-builtins.c: Likewise.
3059 * config/aarch64/aarch64.c: Likewise.
3060 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3061 * config/alpha/alpha.c: Likewise.
3062 * config/arc/arc.c: Likewise.
3063 * config/arm/aarch-common.c: Likewise.
3064 * config/arm/arm-builtins.c: Likewise.
3065 * config/arm/arm-c.c: Likewise.
3066 * config/arm/arm.c: Likewise.
3067 * config/avr/avr-c.c: Likewise.
3068 * config/avr/avr-devices.c: Likewise.
3069 * config/avr/avr-log.c: Likewise.
3070 * config/avr/avr.c: Likewise.
3071 * config/bfin/bfin.c: Likewise.
3072 * config/c6x/c6x.c: Likewise.
3073 * config/cr16/cr16.c: Likewise.
3074 * config/cris/cris.c: Likewise.
3075 * config/darwin-c.c: Likewise.
3076 * config/darwin-driver.c: Likewise.
3077 * config/darwin.c: Likewise.
3078 * config/default-c.c: Likewise.
3079 * config/epiphany/epiphany.c: Likewise.
3080 * config/epiphany/mode-switch-use.c: Likewise.
3081 * config/epiphany/resolve-sw-modes.c: Likewise.
3082 * config/fr30/fr30.c: Likewise.
3083 * config/frv/frv.c: Likewise.
3084 * config/ft32/ft32.c: Likewise.
3085 * config/glibc-c.c: Likewise.
3086 * config/h8300/h8300.c: Likewise.
3087 * config/i386/host-cygwin.c: Likewise.
3088 * config/i386/host-mingw32.c: Likewise.
3089 * config/i386/i386-c.c: Likewise.
3090 * config/i386/i386.c: Likewise.
3091 * config/i386/msformat-c.c: Likewise.
3092 * config/i386/winnt-cxx.c: Likewise.
3093 * config/i386/winnt-stubs.c: Likewise.
3094 * config/i386/winnt.c: Likewise.
3095 * config/ia64/ia64-c.c: Likewise.
3096 * config/ia64/ia64.c: Likewise.
3097 * config/iq2000/iq2000.c: Likewise.
3098 * config/lm32/lm32.c: Likewise.
3099 * config/m32c/m32c-pragma.c: Likewise.
3100 * config/m32c/m32c.c: Likewise.
3101 * config/m32r/m32r.c: Likewise.
3102 * config/mcore/mcore.c: Likewise.
3103 * config/mep/mep-pragma.c: Likewise.
3104 * config/mep/mep.c: Likewise.
3105 * config/microblaze/microblaze-c.c: Likewise.
3106 * config/microblaze/microblaze.c: Likewise.
3107 * config/mips/mips-tables.opt
3108 * config/mips/mips.c: Likewise.
3109 * config/mmix/mmix.c: Likewise.
3110 * config/mn10300/mn10300.c: Likewise.
3111 * config/moxie/moxie.c: Likewise.
3112 * config/msp430/msp430-c.c: Likewise.
3113 * config/msp430/msp430.c: Likewise.
3114 * config/nds32/nds32-cost.c: Likewise.
3115 * config/nds32/nds32-fp-as-gp.c: Likewise.
3116 * config/nds32/nds32-intrinsic.c: Likewise.
3117 * config/nds32/nds32-isr.c: Likewise.
3118 * config/nds32/nds32-md-auxiliary.c: Likewise.
3119 * config/nds32/nds32-memory-manipulation.c: Likewise.
3120 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3121 * config/nds32/nds32-predicates.c: Likewise.
3122 * config/nds32/nds32.c: Likewise.
3123 * config/nios2/nios2.c: Likewise.
3124 * config/nvptx/mkoffload.c: Likewise.
3125 * config/nvptx/nvptx.c: Likewise.
3126 * config/pa/pa.c: Likewise.
3127 * config/pdp11/pdp11.c: Likewise.
3128 * config/rl78/rl78-c.c: Likewise.
3129 * config/rl78/rl78.c: Likewise.
3130 * config/rs6000/host-darwin.c: Likewise.
3131 * config/rs6000/rs6000-c.c: Likewise.
3132 * config/rs6000/rs6000-linux.c: Likewise.
3133 * config/rs6000/rs6000.c: Likewise.
3134 * config/rx/rx.c: Likewise.
3135 * config/s390/s390-c.c: Likewise.
3136 * config/s390/s390.c: Likewise.
3137 * config/sh/sh-c.c: Likewise.
3138 * config/sh/sh-mem.cc: Likewise.
3139 * config/sh/sh.c: Likewise.
3140 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3141 * config/sh/sh_treg_combine.cc: Likewise.
3142 * config/sol2-c.c: Likewise.
3143 * config/sol2-cxx.c: Likewise.
3144 * config/sol2-stubs.c: Likewise.
3145 * config/sol2.c: Likewise.
3146 * config/sparc/sparc-c.c: Likewise.
3147 * config/sparc/sparc.c: Likewise.
3148 * config/spu/spu-c.c: Likewise.
3149 * config/spu/spu.c: Likewise.
3150 * config/stormy16/stormy16.c: Likewise.
3151 * config/v850/v850-c.c: Likewise.
3152 * config/v850/v850.c: Likewise.
3153 * config/vax/vax.c: Likewise.
3154 * config/visium/visium.c: Likewise.
3155 * config/vms/vms-c.c: Likewise.
3156 * config/vms/vms.c: Likewise.
3157 * config/vxworks.c: Likewise.
3158 * config/winnt-c.c: Likewise.
3159 * config/xtensa/xtensa.c: Likewise.
3161 2015-10-16 Christian Bruel <christian.bruel@st.com>
3164 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
3165 (FUNCTION_BOUNDARY_P): New macro:
3166 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
3168 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
3169 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
3170 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
3171 * gcc/function.c (allocate_struct_function): Call
3172 relayout_function hook.
3173 * gcc/passes.c (rest_of_decl_compilation): Likewise.
3175 2015-10-16 Christian Bruel <christian.bruel@st.com>
3178 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
3179 * config/arm/arm.c (arm_option_override_internal): Call
3180 arm_override_options_after_change_1.
3181 (arm_override_options_after_change): New function.
3182 (arm_override_options_after_change_1): Likewise.
3183 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
3185 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3188 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3191 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
3193 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
3194 argument is an ADDR_EXPR.
3196 2015-10-16 Richard Biener <rguenther@suse.de>
3198 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
3199 and get rid of force_gimple_operand_gsi.
3200 (gimple_fold_builtin_memory_chk): Likewise.
3201 (gimple_fold_builtin_stxcpy_chk): Likewise.
3202 (rewrite_to_defined_overflow): Likewise.
3203 (gimple_convert_to_ptrofftype): New function.
3204 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
3206 2015-10-16 Richard Biener <rguenther@suse.de>
3208 * tree-nested.h (build_addr): Adjust prototype.
3209 * tree-nested.c (build_addr): Remove context argument and use
3211 (get_static_chain): Adjust calls to build_addr.
3212 (convert_nl_goto_reference): Likewise.
3213 (convert_tramp_reference_op): Likewise.
3214 (finalize_nesting_tree_1): Likewise.
3215 * value-prof.c (gimple_ic): Likewise.
3216 * gimple-low.c (lower_builtin_setjmp): Likewise.
3217 * tree-parloops.c (take_address_of): Likewise.
3218 (create_call_for_reduction_1): Likewise.
3219 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
3220 (gimple_gen_ic_func_profiler): Likewise.
3222 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3224 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3227 2015-10-16 Michael Collison <michael.collison@linaro.org>
3228 Andrew Pinski <andrew.pinski@caviumnetworks.com>
3230 * match.pd ((x < y) && (x < z) -> x < min (y,z),
3231 (x > y) and (x > z) -> x > max (y,z))
3233 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
3234 Szabolcs Nagy <szabolcs.nagy@arm.com>
3236 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
3237 (DYNAMIC_LINKER): Renamed to ...
3238 (GLIBC_DYNAMIC_LINKER): This.
3239 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
3241 2015-10-15 Marek Polacek <polacek@redhat.com>
3243 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
3244 gimple_call_builtin instead of is_gimple_call.
3246 2015-10-15 Richard Biener <rguenther@suse.de>
3248 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
3250 2015-10-15 Richard Biener <rguenther@suse.de>
3252 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
3253 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
3254 * tree-vect-loop.c (get_initial_def_for_induction): Drop
3255 use of force_gimple_operand in favor of gimple_build.
3256 Use vect_get_new_ssa_name.
3257 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
3258 (vectorizable_mask_load_store): Likewise.
3259 (vectorizable_call): Likewise.
3260 (vectorizable_store): Likewise.
3261 (vectorizable_load): Likewise.
3262 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
3264 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
3266 PR tree-optimization/67945
3267 * tree-pass.h (PROP_gimple_opt_math): New property flag.
3268 * generic-match-head.c (canonicalize_math_p): New function.
3269 * gimple-match-head.c: Include tree-pass.h.
3270 (canonicalize_math_p): New function.
3271 * match.pd: Group math built-in rules into simplifications
3272 and canonicalizations. Guard the latter with canonicalize_math_p.
3273 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
3274 PROP_gimple_opt_math property.
3276 2015-10-15 Marek Polacek <polacek@redhat.com>
3278 PR tree-optimization/67953
3279 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
3281 2015-10-15 Jiong Wang <jiong.wang@arm.com>
3283 * config.gcc: Recognize "." in architecture base name for AArch64.
3285 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
3287 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
3289 * config/mips/mips.c (mips_setup_incoming_varargs): Use
3290 ROUND_DOWN to calculate off.
3291 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
3292 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
3295 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
3297 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
3299 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
3300 Torvald Riegel <triegel@redhat.com>
3303 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
3304 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3305 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
3306 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
3307 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
3308 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3309 trechkpt, treclaim, tsr, ttest): New define_expands.
3310 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3311 __TM_FENCE__ for htm.
3312 * doc/extend.texi: Update documentation for htm builtins.
3314 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
3317 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
3318 REG_CFA_EXPRESSION to aligned SSE stores.
3320 2015-10-14 Jeff Law <law@redhat.com>
3322 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
3323 num_threaded_edges for successful FSM threads too.
3325 2015-10-14 Richard Biener <rguenther@suse.de>
3327 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
3328 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
3329 (vect_get_vec_def_for_operand): Remove unused parameter.
3330 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
3331 (vect_create_epilog_for_reduction): Likewise.
3332 (vectorizable_reduction): Likewise.
3333 (vectorizable_live_operation): Likewise.
3334 * tree-vect-patterns.c (type_conversion_p): Likewise.
3335 (vect_recog_vector_vector_shift_pattern): Likewise.
3336 (check_bool_pattern): Likewise.
3337 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3338 (vect_analyze_slp_cost_1): Likewise.
3339 * tree-vect-stmts.c (process_use): Likewise.
3340 (vect_get_vec_def_for_operand): Do not handle reductions.
3341 (vect_get_vec_defs): Adjust.
3342 (vectorizable_mask_load_store): Likewise.
3343 (vectorizable_call): Likewise.
3344 (vectorizable_simd_clone_call): Likewise.
3345 (vect_get_loop_based_defs): Likewise.
3346 (vectorizable_conversion): Likewise.
3347 (vectorizable_assignment): Likewise.
3348 (vectorizable_shift): Likewise.
3349 (vectorizable_operation): Likewise.
3350 (vectorizable_store): Likewise.
3351 (vectorizable_load): Likewise.
3352 (vect_is_simple_cond): Likewise.
3353 (vectorizable_condition): Likewise.
3354 (vect_is_simple_use): Remove unused parameters.
3355 (vect_is_simple_use_1): Adjust and rename.
3357 2015-10-14 Richard Biener <rguenther@suse.de>
3359 PR tree-optimization/67915
3360 * match.pd: Handle comparisons of addresses of STRING_CSTs.
3361 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
3362 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
3363 stmt folding in favor of GIMPLE one.
3365 2015-10-14 Marek Polacek <polacek@redhat.com>
3367 PR tree-optimization/67815
3368 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
3369 (reassociate_bb): Call it.
3371 2015-10-14 Richard Biener <rguenther@suse.de>
3373 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3374 Reset info at start.
3375 (vect_analyze_group_access_1): Add debug print.
3376 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
3377 (vect_compute_single_scalar_iteration_cost): ... to this.
3378 (vect_analyze_loop_2): Adjust.
3379 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
3380 * tree-vectorizer.h: ... here.
3381 (add_stmt_info_to_vec): Remove.
3382 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
3384 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
3386 * targhooks.c (default_target_option_pragma_parse): Do not warn if
3387 called on behalf of "#pragma GCC pop_options".
3389 2015-10-14 Tom de Vries <tom@codesourcery.com>
3391 * cfganal.c (verify_no_unreachable_blocks): New function.
3392 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
3393 verify_no_unreachable_blocks.
3394 cfganal.h (verify_no_unreachable_blocks): Declare.
3396 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
3398 * common.opt: Add flag_checking.
3399 * system.h (CHECKING_P): Define.
3401 2015-10-13 Jakub Jelinek <jakub@redhat.com>
3402 Aldy Hernandez <aldyh@redhat.com>
3403 Ilya Verbin <ilya.verbin@intel.com>
3405 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
3406 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
3407 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
3408 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
3409 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
3410 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
3411 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
3412 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
3413 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
3414 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
3415 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
3416 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
3417 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
3418 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3419 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
3420 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3421 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3422 (struct cgraph_simd_clone_arg): Adjust comment.
3423 * coretypes.h (struct gomp_ordered): New forward decl.
3424 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
3425 set critical clauses to it.
3426 (gimple_build_omp_ordered): Return gomp_ordered * instead of
3427 gimple *. Add CLAUSES argument, set ordered clauses to it.
3428 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
3430 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
3431 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
3432 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
3433 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
3434 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
3435 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
3436 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
3437 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
3439 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
3440 (gomp_critical): Add clauses field.
3441 (gomp_ordered): New struct.
3442 (is_a_helper <gomp_ordered *>::test): New inline.
3443 (gimple_build_omp_critical): Add CLAUSES argument.
3444 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
3445 instead of gimple *.
3446 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
3447 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
3448 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
3449 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
3451 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
3452 (dump_gimple_omp_target): Handle enter data and exit data.
3453 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
3454 (dump_gimple_omp_critical): Print clauses.
3455 (dump_gimple_omp_ordered): New function.
3456 (dump_gimple_omp_task): Handle taskloop.
3457 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
3459 * gimple-walk.c (walk_gimple_op): Walk clauses on
3460 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
3461 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
3462 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
3463 (struct gimplify_omp_ctx): Add loop_iter_var,
3464 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
3465 and target_firstprivatize_array_bases fields.
3466 (delete_omp_context): Release loop_iter_var.
3467 (gimplify_bind_expr): Handle ORT_NONE.
3468 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
3469 ORT_COMBINED_TARGET.
3470 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
3471 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
3472 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
3473 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
3474 ctx->target_map_scalars_firstprivate.
3475 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
3476 data sharing clauses. For data sharing clause with VLA decl
3477 on omp target/target data don't add firstprivate for the pointer.
3478 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
3479 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
3480 the addition of ORT_COMBINED_TARGET.
3481 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
3482 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
3483 pointers as zero length array sections and
3484 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
3486 (omp_check_private): Handle omp_member_access_dummy_var vars.
3487 (find_decl_expr): New function.
3488 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
3489 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
3490 Handle OMP_CLAUSE_GANG separately. Handle
3491 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3492 clauses. Diagnose linear clause on combined
3493 distribute {, parallel for} simd construct, unless it is the loop
3494 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
3495 Handle map clauses with COMPONENT_REF. Initialize
3496 ctx->target_map_scalars_firstprivate,
3497 ctx->target_firstprivatize_array_bases and
3498 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
3499 linear clause even to target region if combined. Remove
3500 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
3501 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
3502 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
3503 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
3504 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
3505 For linear clause on worksharing loop combined with parallel add
3506 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
3507 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
3508 omp_member_access_dummy_var vars. Add lastprivate clause to outer
3510 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
3511 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
3512 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
3514 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
3515 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
3516 in target body. Handle removal of struct mapping if struct is not
3517 seen in target body. Remove GOMP_MAP_STRUCT map clause on
3518 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
3519 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
3520 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
3521 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
3522 clause appear together. Handle
3523 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
3524 clause if it has map-type-modifier always. Handle
3525 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3527 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
3528 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
3530 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
3531 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
3532 iterators in doacross loops.
3533 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
3534 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
3535 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
3536 for the addition of ORT_COMBINED_TARGET.
3537 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
3538 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
3539 and OMP_TARGET_EXIT_DATA.
3540 (gimplify_omp_ordered): New function.
3541 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
3542 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
3543 Gimplify clauses on OMP_CRITICAL.
3544 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
3545 expand_GOMP_SIMD_ORDERED_END): New functions.
3546 * internal-fn.def (GOMP_SIMD_ORDERED_START,
3547 GOMP_SIMD_ORDERED_END): New internal functions.
3548 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
3549 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
3550 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
3551 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
3552 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
3553 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
3554 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
3555 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
3556 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
3557 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
3558 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
3559 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
3560 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
3561 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
3563 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
3564 GOMP_target_data_41, adjust type.
3565 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
3566 GOMP_target_update_41, adjust type.
3567 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
3569 (struct omp_for_data): Add ordered and simd_schedule fields.
3570 (omp_member_access_dummy_var, unshare_and_remap_1,
3571 unshare_and_remap, is_taskloop_ctx): New functions.
3572 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
3573 (extract_omp_for_data): Handle taskloops and doacross loops
3574 and simd schedule modifier.
3575 (omp_adjust_chunk_size): New function.
3576 (get_ws_args_for): Use it.
3577 (lookup_sfield): Change first argument to splay_tree_key,
3578 add overload with first argument tree.
3579 (maybe_lookup_field): Likewise.
3580 (use_pointer_for_field): Handle omp_member_access_dummy_var.
3581 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
3582 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
3583 (build_outer_var_ref): Add LASTPRIVATE argument, handle
3584 taskloops and omp_member_access_dummy_var vars.
3585 (build_sender_ref): Change first argument to splay_tree_key,
3586 add overload with first argument tree.
3587 (install_var_field): For mask & 8 use &DECL_UID as key instead
3589 (fixup_child_record_type): Const qualify *.omp_data_i.
3590 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
3591 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
3592 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
3593 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
3594 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
3595 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
3596 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
3598 (add_taskreg_looptemp_clauses): New function.
3599 (scan_omp_parallel): Use it.
3600 (scan_omp_task): Likewise.
3601 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3602 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
3603 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3604 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
3605 sandwiched taskloop constructs. Type check
3606 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
3607 region. Diagnose depend(source) or depend(sink:...) on
3608 target constructs or task/taskloop.
3609 (handle_simd_reference): Use get_name.
3610 (lower_rec_input_clauses): Likewise. Ignore all
3611 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
3612 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
3613 before passing it to omp_clause_{default,copy}_ctor. Handle
3614 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
3615 lastprivate_firstprivate flag for linear that needs copyin and
3616 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
3617 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
3618 on taskloop lookup decl in outer context. Pass true to
3619 build_outer_var_ref lastprivate argument. Handle
3620 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
3621 outside of outer taskloop for.
3622 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
3624 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
3625 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
3626 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
3627 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
3628 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
3629 abstract origin. Handle omp_member_access_dummy_var vars.
3630 (expand_parallel_call): Use expand_omp_build_assign.
3631 (expand_task_call): Handle taskloop construct expansion. Add
3632 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
3633 integers. Add priority argument to GOMP_task* calls. Or in
3634 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
3636 (expand_omp_build_assign): Add prototype. Add AFTER
3637 argument, if true emit statements after *GSI_P and continue linking.
3638 (expand_omp_taskreg): Adjust expand_task_call caller.
3639 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
3640 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
3641 zero_iter2_bb and first_zero_iter2 arguments, handle computation
3642 of counts even for ordered loops.
3643 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
3644 (expand_omp_ordered_source, expand_omp_ordered_sink,
3645 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
3647 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
3648 clauses on worksharing loop. Handle DOACROSS loop expansion.
3649 (expand_omp_for_static_nochunk): Handle linear clauses on
3650 worksharing loop. Adjust expand_omp_for_init_counts
3652 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
3653 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
3654 expand_omp_for_init_counts callers.
3655 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
3657 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
3658 Handle doacross loops.
3659 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3660 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
3661 GOMP_target_{41,update_41,enter_exit_data} libcalls.
3662 (expand_omp): Don't expand ordered depend constructs here, record
3663 ord_stmt instead for later expand_omp_for_generic.
3664 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3665 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3666 clause as stand-alone directive.
3667 (lower_omp_ordered_clauses): New function.
3668 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
3669 don't lower anything.
3670 (lower_omp_for_lastprivate): Use last _looptemp_ clause
3671 on taskloop for comparison.
3672 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
3673 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
3674 expansion for linear adjustments.
3675 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3676 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
3677 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
3678 to tree * pointing to the stmt's clauses.
3679 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
3680 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3681 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
3682 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
3683 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
3684 clauses. Always use short kind and 8-bit align shift.
3685 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
3686 (struct lower_omp_regimplify_operands_data): New type.
3687 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
3689 (lower_omp_1): Use lower_omp_regimplify_operands instead of
3690 gimple_regimplify_operands.
3691 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3692 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3693 clause as stand-alone directive.
3694 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
3695 (simd_clone_mangle): Mangle the various linear kinds
3697 (simd_clone_adjust_argument_types): Handle
3698 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
3699 (simd_clone_init_simd_arrays): Don't do anything for uval.
3700 (simd_clone_adjust): Handle
3701 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3702 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
3703 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
3704 * omp-low.h (omp_member_access_dummy_var): New prototype.
3705 * passes.def (pass_simduid_cleanup): Schedule another copy of the
3706 pass after all optimizations.
3707 * tree.c (omp_clause_code_name): Add entries for
3708 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3709 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3710 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
3711 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
3712 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
3713 OMP_CLAUSE_REDUCTION 5 arguments. Handle
3714 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3715 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
3717 * tree-core.h (enum omp_clause_linear_kind): New.
3718 (struct tree_omp_clause): Change type of map_kind
3719 from unsigned char to unsigned int. Add subcode.if_modifier
3720 and subcode.linear_kind fields.
3721 (enum omp_clause_code): Add
3722 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3723 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3724 (OMP_CLAUSE_REDUCTION): Document
3725 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3726 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
3727 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
3728 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
3730 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
3732 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
3734 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
3735 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
3737 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
3738 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
3739 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
3740 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
3741 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
3742 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
3743 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
3744 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
3745 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
3746 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
3747 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
3748 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
3749 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
3750 * tree-inline.c (remap_gimple_stmt): Handle clauses on
3751 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
3752 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
3753 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
3754 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3755 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3756 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3757 (convert_local_omp_clauses): Likewise.
3758 * tree-pretty-print.c (dump_omp_clause): Handle
3759 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3760 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3761 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
3762 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
3763 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
3764 GOMP_MAP_FORCE_DEALLOC. Handle
3765 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
3766 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
3767 and clauses on OMP_ORDERED and OMP_CRITICAL.
3768 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
3769 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
3770 (vectorize_loops): Adjust comments.
3771 (pass_simduid_cleanup::execute): Likewise.
3772 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3773 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
3774 * wide-int.h (wi::gcd): New.
3776 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3778 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
3779 (ix86_function_arg_advance): Ditto.
3780 (ix86_function_arg): Ditto.
3781 (ix86_gimplify_va_arg): Ditto.
3782 (ix86_class_max_nregs): Ditto.
3783 (inline_memory_move_cost): Ditto.
3784 (ix86_set_reg_reg_cost): Ditto.
3785 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
3787 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
3790 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
3792 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3794 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
3795 ROUND_UP macro and UNITS_PER_WORD * 2.
3796 * config/sparc/sparc.c (sparc_compute_frame_size):
3797 Use ROUND_UP and ROUND_DOWN macros where applicable.
3798 (function_arg_record_value, function_arg_record_value_1)
3799 (function_arg_record_value_1): Ditto.
3800 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
3801 alignment to double-word.
3802 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
3803 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
3806 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
3808 * gcc/rtl.h (print_insn): Fix prototype.
3810 2015-10-13 Tom de Vries <tom@codesourcery.com>
3812 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
3813 -1. Add assert that returned entry matches phi argument.
3814 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
3815 free_stmt_vec_info_vec ...
3816 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
3819 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
3821 PR tree-optimization/67909, 67947
3822 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
3823 really skip the inner loop.
3825 2015-10-13 Jeff Law <law@redhat.com>
3827 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3828 Allow single block jump threading paths.
3830 2015-10-13 Tom de Vries <tom@codesourcery.com>
3832 PR tree-optimization/67476
3833 * doc/invoke.texi (@item parloops-schedule): New item.
3834 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
3835 * tree-parloops.c: Include params-enum.h.
3836 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
3838 2015-10-13 Tom de Vries <tom@codesourcery.com>
3840 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
3841 * params-enum.h: New file.
3842 * opts.c (handle_param): Handle case that param arg is a string.
3843 * params-list.h: Handle DEFPARAMENUM5 in params.def.
3844 * params.c (find_param): New function, factored out of ...
3845 (set_param_value): ... here.
3846 (param_string_value_p): New function.
3847 * params.h (struct param_info): Add value_names field.
3848 (find_param, param_string_value_p): Declare.
3850 2015-10-13 Tom de Vries <tom@codesourcery.com>
3852 PR tree-optimization/67476
3853 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
3855 2015-10-13 Richard Biener <rguenther@suse.de>
3857 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
3858 the data dependence vector.
3859 (vect_peeling_hash_insert): Get the peeling hash table as argument.
3860 (vect_peeling_hash_get_lowest_cost): Likewise.
3861 (vect_enhance_data_refs_alignment): Adjust.
3862 (struct _vect_peel_info, struct _vect_peel_extended_info,
3863 struct peel_info_hasher): Move from ...
3864 * tree-vectorizer.h: ... here.
3865 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
3866 (LOOP_VINFO_PEELING_HTAB): Likewise.
3867 (struct _loop_vec_info): Remove min_profitable_iters and
3868 peeling_htab members.
3869 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
3871 (destroy_loop_vec_info): Adjust.
3872 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
3873 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
3874 to estimate alias versioning cost.
3875 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
3877 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
3879 * real.h (real_isinteger): Declare.
3880 * real.c (real_isinteger): New function.
3881 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
3882 if y is an even integer.
3884 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3887 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3888 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
3889 counts when these are more informative.
3891 2015-10-12 Jeff Law <law@redhat.com>
3893 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
3894 (fsm_find_control_stmt_paths): Change name of first argument to
3895 more accurately relfect what it really is. Handle simplification
3896 of GIMPLE_COND after finding a thread path for NAME.
3897 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
3898 nontrivial conditions to be handled by FSM threader.
3899 (thread_through_normal_block): Extract the name to looup via
3900 FSM threader from COND_EXPR.
3902 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
3903 restriction that traced SSA_NAME is a user variable.
3905 2015-10-12 Tom de Vries <tom@codesourcery.com>
3907 PR tree-optimization/67476
3908 * omp-low.c (expand_omp_for_generic): Add missing phis.
3910 2015-10-12 Tom de Vries <tom@codesourcery.com>
3912 PR tree-optimization/67476
3913 * omp-low.c (expand_omp_for_generic): Handle simple latch.
3915 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
3917 * config/aarch64/aarch64-simd-builtins.def: Update builtins
3918 tables: add tbl3 and tbx4.
3919 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
3920 (aarch64_tbx4v8qi): New.
3921 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
3922 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
3923 Rewrite using builtin functions.
3924 * config/aarch64/iterators.md (UNSPEC_TBX): New.
3926 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
3928 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
3930 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
3931 Use ROUND_UP and ROUND_DOWN macros where applicable.
3932 (rs6000_darwin64_record_arg_flush): Ditto.
3933 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
3934 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
3937 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
3939 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
3940 (AARCH64_ROUND_DOWN): Ditto.
3941 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
3943 2015-10-12 Richard Biener <rguenther@suse.de>
3946 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
3947 code that analyzes IVs on each stmt but in a cheaper way avoiding
3950 2015-10-12 Nick Clifton <nickc@redhat.com>
3952 * config/msp430/msp430.c (msp430_mcu_names): Rename to
3953 msp430_mcu_data, add fields for ISA and hardware multiply
3954 support. Import latest data from the devices.csv file.
3955 (msp430_override_option): Use the data from the new array.
3956 (msp430_use_f5_series_hwmult): Likewise.
3957 (use_32bit_hwmult): Likewise.
3958 (msp430_no_hwmult): Likewise.
3959 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
3961 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
3962 not recognised then no hardware multiply support is assumed and
3963 that only the MSP430 ISA is allowed.
3965 2015-10-12 Richard Biener <rguenther@suse.de>
3967 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
3969 (vect_analyze_loop_2): ... here.
3971 2015-10-11 Jason Merrill <jason@redhat.com>
3974 * expr.c (store_field): Call store_constructor directly when
3975 storing a CONSTRUCTOR into a target smaller than its type.
3976 Guard against unsafe bitwise copy.
3978 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3980 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
3981 counts when these are more informative.
3983 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3985 * tree-profile.c (tree_profiling): Do not clear
3986 pure/const when not instrumenting.
3987 (pass tree_profile): Add dump of symtab.
3989 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3991 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
3993 (fold_addr_of_array_ref_difference): Likewise.
3995 2015-10-11 Jeff Law <law@redhat.com>
3997 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
3998 tree-ssa-threadbackward.c.
3999 (fsm_find_control_statement_thread_paths): Likewise.
4000 (thread_through_normal_block): Break out FSM bits and move them
4001 into a new function in tree-ssa-threadbackward.c. Call new function
4003 Minimize header file usage.
4004 * tree-ssa-threadbackward.h: New file.
4005 * tree-ssa-threadbackward.c: Likewise.
4006 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
4008 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
4010 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
4012 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
4014 PR rtl-optimization/67864
4015 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
4016 fallthrough edges for conditional jumps. Don't sort candidate
4017 edges if not optimizing for speed.
4019 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4021 * defaults.h (REVERSE_CONDITION): New default definition.
4022 * jump.c (reversed_comparison_code_parts): Adjust.
4024 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4026 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
4027 check HARD_FRAME_POINTER_IS_ARG_POINTER.
4029 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4031 * defaults.h (FRAME_ADDR_RTX): New default definition.
4032 * builtins.c (expand_builtin_return_addr): Adjust.
4034 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4036 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
4037 * builtins.c (expand_builtin_return_addr): Adjust.
4039 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4041 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
4042 * builtins.c (expand_builtin_return_addr): Adjust.
4043 * doc/tm.texi: Likewise.
4044 * doc/tm.texi.in: Likewise.
4045 * except.c (expand_builtin_unwind_init): Likewise.
4047 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4049 * builtins.c (expand_builtin_return_addr): Adjust.
4050 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
4052 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
4054 * tree.c (type_with_interoperable_signedness): New.
4055 (gimple_canonical_types_compatible_p): Use it.
4056 * tree.h (type_with_interoperable_signedness): Declare
4058 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
4060 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
4061 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
4062 when OEP_ADDRESS_OF is se.
4064 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
4065 Sebastian Pop <s.pop@samsung.com>
4067 * graphite-dependences.c (scop_get_dependences): Add dump of the
4068 data dependence graph.
4069 * graphite-poly.c (print_isl_union_map): New.
4070 (debug_isl_union_map): New.
4071 * graphite-poly.h (print_isl_union_map): Declare.
4072 (debug_isl_union_map): Declare.
4074 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
4075 Sebastian Pop <s.pop@samsung.com>
4077 * graphite-poly.c (print_iteration_domain): Remove verbosity.
4078 Remove OpenScop formatting.
4079 (print_iteration_domains): Same.
4080 (debug_iteration_domain): Same.
4081 (debug_iteration_domains): Same.
4084 (dump_gbb_cases): Same.
4085 (dump_gbb_conditions): Same.
4088 (print_pbb_body): Same.
4090 (print_scop_params): Same.
4091 (print_scop_context): Same.
4093 (debug_pbb_domain): Same.
4095 (debug_scop_context): Same.
4097 (debug_scop_params): Same.
4098 * graphite-poly.h: Same.
4099 * graphite.c (graphite_transform_loops): Same.
4101 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4103 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
4104 call that isn't needed.
4106 2015-10-09 Jeff Law <law@redhat.com>
4108 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
4109 rather than moving each name to the freelist individually.
4111 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
4113 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
4114 * frame-header-opt.c: New file.
4115 * config/mips/mips-proto.h (mips_register_frame_header_opt):
4117 * config/mips/mips.c (mips_compute_frame_info): Check
4118 optimize_call_stack flag.
4119 (mips_option_override): Register new frame_header_opt pass.
4120 (mips_frame_info, mips_int_mask, mips_shadow_set,
4121 machine_function): Move these types to...
4122 * config/mips/mips.h: here.
4123 (machine_function): Add does_not_use_frame_header and
4124 optimize_call_stack fields.
4125 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
4126 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
4128 * config/mips/mips.opt (mframe-header-opt): Add new option.
4130 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
4132 * config/i386/i386.c
4133 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
4134 ROUND_DOWN where applicable.
4136 2015-10-09 Jeff Law <law@redhat.com>
4138 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
4141 2015-10-09 Renlin Li <renlin.li@arm.com>
4143 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
4144 operands[0] and operands[2].
4145 (neon_vtrn<mode>_insn): Likewise.
4146 (neon_vzip<mode>_insn): Likewise.
4148 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
4150 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
4151 ((X & C2) << C1): Expand to...
4152 (X {&,^,|} C2 << C1): ...This.
4153 ((X & C2) >> C1): Expand to...
4154 (X {&,^,|} C2 >> C1): ...This.
4156 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
4159 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
4160 Adjust embedded rounding/SAE specifier position.
4161 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
4162 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
4163 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
4164 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
4165 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
4167 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
4169 2015-10-09 Martin Jambor <mjambor@suse.cz>
4171 tree-optimization/67794
4172 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
4173 between types of state,ents but accept original definitions as a
4175 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
4176 iterate over definitions.
4178 2015-10-09 James Norris <jnorris@codesourcery.com>
4180 * config/rs6000/rs6000.c (rs6000_offload_options): New.
4181 (TARGET_OFFLOAD_OPTIONS): New.
4183 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
4186 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
4189 * function.c (expand_function_end): Move return value
4190 promotion past the handling of PARALLELs and CONCATs.
4192 PR rtl-optimization/67828
4193 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
4194 (tree_may_unswitch_on): Don't unswitch on expressions
4195 involving undefined values.
4197 2015-10-09 Richard Biener <rguenther@suse.de>
4199 * genmatch.c (print_operand): Fix formatting.
4200 (dt_node::append_simplify): Warn for multiple simplifiers
4201 that match the same pattern.
4202 * match.pd (log (exp @0)): Remove duplicates.
4204 2015-10-09 Richard Biener <rguenth@suse.de>
4207 * gimple-fold.c (optabs-query.h): Include
4208 (gimple_fold_builtin_memory_op): Allow unaligned stores
4209 when movmisalign_optabs are available.
4211 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4214 * config/arm/arm.md (movmisalign<mode>): New.
4215 * config/arm/iterators.md (HSI): New.
4217 2015-10-09 Richard Biener <rguenther@suse.de>
4219 PR tree-optimization/67891
4220 * gimple-match.h (gimple_simplified_result_is_gimple_val):
4222 (gimple_resimplify1): Declare.
4223 (gimple_resimplify2): Likewise.
4224 (gimple_resimplify3): Likewise.
4225 * gimple-match-head.c (gimple_resimplify1): Export.
4226 (gimple_resimplify2): Likewise.
4227 (gimple_resimplify3): Likewise.
4228 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
4229 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4230 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
4231 to avoid creating stmts without VN info.
4233 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
4235 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
4238 2015-10-08 Jeff Law <law@redhat.com>
4240 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
4241 and release_ssa_name in two places.
4242 (gimple_stringop_fixed_value): Similarly.
4244 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
4247 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
4248 unlink_stmt_vdef and release_ssa_name_fn.
4250 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
4253 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
4255 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
4256 SSE register save area to 16 bytes only if the incoming stack
4257 boundary is no less than 16 bytes.
4259 2015-10-08 Jeff Law <law@redhat.com>
4261 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
4262 release_ssa_name. Fix typo in comment.
4264 2015-10-08 Nathan Sidwell <nathan@acm.org>
4266 * config/nvptx/nvptx.h (struct machine_function): Add comment.
4267 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
4268 may return pointer as well as in memory.
4269 (nvptx_output_return): Likewise.
4271 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
4273 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
4274 (fold_builtin_1): Update accordingly. Handle constant arguments here.
4275 * match.pd: Add rules previously handled by fold_builtin_sqrt
4276 and fold_builtin_cbrt.
4278 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
4280 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
4281 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
4282 * fold-const.h (tree_unary_nonnegative_warnv_p)
4283 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4284 (tree_expr_nonnegative_warnv_p): Add depth parameters.
4285 * fold-const.c: Include gimple-fold.h and params.h.
4286 (tree_ssa_name_nonnegative_warnv_p): New function.
4287 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
4288 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4289 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
4290 Add a depth parameter and increment it for recursive calls to
4291 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
4292 to handle SSA names.
4293 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
4294 (gimple_stmt_nonnegative_warnv_p): Declare.
4295 * tree-vrp.c (remove_range_assertions): Remove assert that condition
4296 cannot be proven false.
4297 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
4298 (gimple_stmt_nonnegative_warnv_p): Move to...
4299 * gimple-fold.c: ...here. Add depth parameters and pass them
4300 down to the tree routines. Accept statements that aren't
4301 assignments or calls but just return false for them.
4302 (gimple_val_nonnegative_real_p): Delete.
4303 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
4304 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
4305 Check HONOR_NANs first.
4307 2015-10-08 Martin Jambor <mjambor@suse.cz>
4309 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
4312 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4314 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
4315 in the tail of outer-loop.
4317 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
4319 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
4322 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4324 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
4325 "cfghooks.h", add prototypes for introduced new functions.
4326 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
4327 checks on ability of loop unswitching to tree_unswitch_single_loop;
4328 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
4329 on innermost loop check.
4330 (tree_unswitch_single_loop): Add all required checks on ability of
4331 loop unswitching under zero recursive level guard.
4332 (tree_unswitch_outer_loop): New function.
4333 (find_loop_guard): Likewise.
4334 (empty_bb_without_guard_p): Likewise.
4335 (used_outside_loop_p): Likewise.
4336 (get_vop_from_header): Likewise.
4337 (hoist_guard): Likewise.
4338 (check_exit_phi): Likewise.
4340 2015-10-08 Marek Polacek <polacek@redhat.com>
4342 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
4345 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4348 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
4349 create_tmp_var_raw instead of create_tmp_var.
4351 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
4353 * expr.c (store_expr_with_bounds): Handle aggregate moves from
4355 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
4356 to define gimple type system; compare aggregates only by size.
4358 2015-10-07 Jeff Law <law@redhat.com>
4360 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
4361 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
4362 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
4365 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4366 Sebastian Pop <s.pop@samsung.com>
4368 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
4369 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
4370 (generate_isl_schedule): Same.
4371 * graphite-optimize-isl.c (scop_get_domains): Same.
4372 (apply_schedule_map_to_scop): Same.
4373 * graphite-poly.c (print_iteration_domains): Same.
4374 (remove_gbbs_in_scop): Same.
4378 * graphite-poly.h (struct scop): Rename bbs to pbbs.
4380 * graphite-scop-detection.c (compare_bb_depths): Remove.
4381 (graphite_sort_dominated_info): Remove.
4382 (try_generate_gimple_bb): Move out of scop_detection.
4383 (all_non_dominated_preds_marked_p): Remove.
4384 (build_scop_bbs_1): Remove.
4385 (build_scop_bbs): Remove.
4386 (nb_pbbs_in_loops): Do not use SCOP_BBS.
4387 (find_scop_parameters): Same.
4388 (sese_dom_walker): Rename gather_bbs.
4389 (before_dom_children): Call try_generate_gimple_bb and collect gbb
4391 (build_scops): Call gather_bbs.
4392 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
4393 (add_conditions_to_constraints): Same.
4394 (build_scop_iteration_domain): Same.
4395 (build_scop_drs): Same.
4396 (new_pbb_from_pbb): Same.
4397 * sese.c (new_sese_info): Create bbs.
4398 * sese.h (struct sese_info_t): Add bbs.
4400 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
4402 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
4403 encoding in 64-bit mode.
4405 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
4408 * config/i386/i386.c (ix86_option_override_internal): Always use
4409 8-byte minimum stack boundary in 64-bit mode.
4410 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
4411 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
4412 Add a REG_CFA_EXPRESSION note if needed.
4413 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
4414 (ix86_handle_force_align_arg_pointer_attribute): New.
4415 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
4416 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
4417 with ix86_handle_force_align_arg_pointer_attribute.
4418 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
4420 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4421 Sebastian Pop <s.pop@samsung.com>
4423 * graphite-scop-detection.c (parameter_index_in_region): Remove
4424 use of SESE_ADD_PARAMS.
4425 (find_scop_parameters): Same.
4426 * sese.c (new_sese_info): Same.
4427 * sese.h (struct sese_info_t): Remove add_params.
4428 (SESE_ADD_PARAMS): Remove.
4430 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4431 Sebastian Pop <s.pop@samsung.com>
4433 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
4436 (copy_internal_parameters): Same.
4437 (translate_isl_ast_to_gimple): Use an sese_l.
4438 (build_iv_mapping): Same.
4439 * graphite-poly.c (new_sese): Rename new_sese_info.
4440 (free_sese): Rename free_sese_info.
4441 * graphite-poly.h (struct scop): Use an sese_info_p.
4442 (scop_set_region): Same.
4443 * graphite-scop-detection.c (struct sese_l): Moved...
4444 (get_entry_bb): Moved...
4445 (get_exit_bb): Moved...
4446 (parameter_index_in_region_1): Use an sese_info_p.
4447 (parameter_index_in_region): Same.
4448 (scan_tree_for_params): Same.
4449 (find_params_in_bb): Same.
4450 (sese_dom_walker): Use an sese_l.
4451 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
4452 (reduction_phi_p): Same.
4453 (parameter_index_in_region_1): Use an sese_info_p.
4454 (propagate_expr_outside_region): Use an sese_l.
4455 * graphite.c: Replace uses of SCOP_REGION.
4456 * sese.c (sese_record_loop): Use an sese_info_p.
4457 (build_sese_loop_nests): Same.
4458 (sese_build_liveouts_use): Same.
4459 (sese_build_liveouts_bb): Same.
4460 (sese_build_liveouts_bb): Same.
4461 (sese_bad_liveouts_use): Same.
4462 (sese_reset_debug_liveouts_bb): Same.
4463 (sese_build_liveouts): Same.
4464 (new_sese): Renamed new_sese_info.
4465 (free_sese): Renamed free_sese_info.
4466 (set_rename): Use an sese_info_p.
4467 (graphite_copy_stmts_from_block): Same.
4468 (copy_bb_and_scalar_dependences): Same.
4469 (outermost_loop_in_sese_1): Use an sese_l.
4470 (outermost_loop_in_sese): Same.
4471 (if_region_set_false_region): Use an sese_info_p.
4472 (move_sese_in_condition): Same.
4473 (scalar_evolution_in_region): Use an sese_l.
4474 * sese.h (struct sese_l): ... here.
4475 (SESE_ENTRY): Remove.
4476 (SESE_ENTRY_BB): Remove.
4477 (SESE_EXIT): Remove.
4478 (SESE_EXIT_BB): Remove.
4479 (sese_contains_loop): Use an sese_info_p.
4480 (sese_nb_params): Same.
4481 (bb_in_sese_p): Use an sese_l.
4482 (stmt_in_sese_p): Same.
4483 (defined_in_sese_p): Same.
4484 (loop_in_sese_p): Same.
4485 (sese_loop_depth): Same.
4486 (struct ifsese_s): Use an sese_info_p.
4487 (gbb_loop_at_index): Use an sese_l.
4488 (nb_common_loops): Same.
4489 (scev_analyzable_p): Same.
4491 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4493 * config/i386/i386.c (ix86_conditional_register_usage): Use
4494 CALL_USED_REGISTERS_MASK.
4495 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
4497 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4500 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
4501 * configure: Regenerated.
4503 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4506 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
4507 (ix86_set_current_function): This.
4508 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
4510 2015-10-07 Richard Biener <rguenther@suse.de>
4512 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
4513 (vinfo_for_stmt): Adjust.
4514 (set_vinfo_for_stmt): Likewise.
4515 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
4516 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
4517 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
4519 (vect_analyze_loop_1): Remove.
4520 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
4521 inner loop when vectorizing an outer loop by splitting out from ...
4522 (vect_analyze_loop_form): ... here.
4524 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4527 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
4528 Use create_tmp_var_raw instead of create_tmp_var.
4530 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
4532 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
4533 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
4534 * real.c (CACHED_FRACTION): New helper macro.
4535 (dconst_third_ptr): Use it.
4536 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
4537 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
4539 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
4541 2015-10-06 Jeff Law <law@redhat.com>
4543 PR tree-optimization/67816
4544 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
4545 from remove_jump_threads_starting_at. Accept an edge rather than
4547 * tree-ssa-threadupdate.c (removed_edges): New hash table.
4548 (remove_jump_threads_including): Note edges that get removed from
4549 the CFG for later pruning of jump threading paths including them.
4550 (thread_through_all_blocks): Remove paths which include edges that
4552 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
4553 on each outgoing edges when optimizing away a control statement.
4555 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4557 * reorg.c (emit_delay_sequence): Store list of delay slot insns
4558 in a vector instead of rtx_insn_list.
4559 (add_to_delay_list): Likewise.
4560 (delete_from_delay_slot): Likewise.
4561 (optimize_skip): Likewise.
4562 (redirect_with_delay_list_safe_p): Likewise.
4563 (check_annul_list_true_false): Likewise.
4564 (steal_delay_list_from_target): Likewise.
4565 (steal_delay_list_from_fallthrough): Likewise.
4566 (redundant_insn): Likewise.
4567 (fill_simple_delay_slots): Likewise.
4568 (fill_slots_from_thread): Likewise.
4569 (fill_eager_delay_slots): Likewise.
4570 (relax_delay_slots): Likewise.
4572 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
4574 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
4575 For -mgpopt=local, also exclude unintialized common symbols.
4576 * doc/invoke.texi (Nios II Options): Document the change.
4578 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4580 * config/aarch64/iterators.md (vwcore): Add missing cases for
4583 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4584 Sebastian Pop <s.pop@samsung.com>
4586 * graphite-poly.c (new_scop): Initialize drs.
4587 * graphite-poly.h (struct dr_info): New.
4588 (struct scop): Add drs.
4589 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
4590 (pdr_add_memory_accesses): Same.
4591 (build_poly_dr): Same.
4592 (build_alias_set): Same.
4593 (build_scop_drs): Same.
4594 (build_pbb_drs): Remove.
4595 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
4596 * tree-data-ref.h (data_reference): Remove alias_set.
4598 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4599 Sebastian Pop <s.pop@samsung.com>
4601 * graphite-poly.c (free_data_refs_aux): Remove.
4602 (free_gimple_poly_bb): Do not call free_data_refs_aux.
4603 * graphite-poly.h (struct base_alias_pair): Remove.
4604 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
4605 base_alias_pair and dr->aux.
4606 (build_alias_set): Same.
4607 * tree-data-ref.c (create_data_ref): Initialize alias_set.
4608 * tree-data-ref.h (data_reference): Add alias_set.
4610 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4611 Sebastian Pop <s.pop@samsung.com>
4613 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
4614 Do not set PDR_BASE_OBJECT_SET.
4615 * graphite-poly.h (poly_dr): Same.
4616 (PDR_BASE_OBJECT_SET): Remove.
4617 (new_poly_dr): Update decl.
4618 * graphite-sese-to-poly.c (build_poly_dr): Update call to
4620 (write_alias_graph_to_ascii_dimacs): Remove.
4621 (write_alias_graph_to_ascii_dot): Remove.
4622 (write_alias_graph_to_ascii_ecc): Remove.
4623 (dr_same_base_object_p): Remove.
4624 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
4626 (build_base_obj_set_for_drs): Remove.
4627 (dump_alias_graphs): Remove.
4628 (build_scop_drs): Remove dead code.
4630 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4631 Peter Bergner <bergner@vnet.ibm.com>
4634 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
4635 allow registers, but provide insns for the combiner to create for
4636 loads from memory. Separate VSX code from non-VSX code. For
4637 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
4638 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
4639 so that registers come before memory operations. Drop support from
4640 converting DFmode to TFmode, if the DFmode value is in a GPR
4642 (extenddftf2_fprs): Likewise.
4643 (extenddftf2_internal): Likewise.
4644 (extenddftf2_vsx): Likewise.
4645 (extendsftf2): In the expander, only allow registers, but provide
4646 insns for the combiner to create for stores and loads.
4648 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4650 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
4651 from the decl parameter.
4653 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
4656 * gimple-fold.c (gimple_fold_builtin): Add break after
4657 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
4659 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
4661 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
4662 to scop->isl_context.
4664 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4666 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
4667 (output_probe_stack_range): Rotate the loop and simplify.
4668 (thumb1_expand_prologue): Tweak sorry message.
4669 * config/arm/arm.md (probe_stack): Use bare string.
4671 2015-10-06 Nick Clifton <nickc@redhat.com>
4673 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
4675 2015-10-06 Nick Clifton <nickc@redhat.com>
4677 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
4678 (ATTR_PERSIST): New constant.
4679 (msp430_data_attr): New function - verifies an attribute that only
4680 applies to variables.
4681 (msp430_attributes): Add noinit and persistent attributes.
4682 (noinit_section): New variable.
4683 (presis_section): New variable.
4684 (TARGET_ASM_INIT_SECTIONS): Define.
4685 (msp430_init_sections): New function - initialises the noinit and
4686 persist section variables.
4687 (msp430_select_section): Add support for noinit and persist
4689 (msp430_section_type_flags): Likewise.
4690 * doc/extend.texi: Document the reent, critical, wakeup, noinit
4691 and persistent attributes.
4693 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4694 Sebastian Pop <s.pop@samsung.com>
4696 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
4697 (no_violations): Remove.
4698 (subtract_commutative_associative_deps): Remove.
4699 (compute_deps): Do not call subtract_commutative_associative_deps.
4700 (transform_is_safe): Remove.
4701 (graphite_legal_transform): Remove.
4702 * graphite-poly.h (graphite_legal_transform): Remove.
4704 2015-10-05 Aditya Kumar <hiraditya@msn.com>
4706 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
4707 which are in this region are passed so gcc_assert and remove redundant
4709 * sese.c (sese_build_liveouts): Pass only those bbs which are not
4711 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
4712 gcc_assert on that and remove unnecessary computation.
4713 (sese_build_liveouts_use): Same.
4715 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4717 * graphite-dependences.c (scop_get_reads): Renamed scop->context
4718 to scop->param_context.
4719 (scop_get_must_writes): Same.
4720 (scop_get_may_writes): Same.
4721 (scop_get_original_schedule): Same.
4722 (scop_get_transformed_schedule): Same.
4723 (subtract_commutative_associative_deps): Same.
4724 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
4725 (generate_isl_context): Same.
4726 (generate_isl_schedule): Same.
4727 (scop_to_isl_ast): Same.
4728 (graphite_regenerate_ast_isl): Same.
4729 * graphite-optimize-isl.c (scop_get_domains): Same.
4730 (optimize_isl): Renamed scop->context to scop->param_context.
4731 * graphite-poly.c (new_poly_bb): Change the type of argument to
4733 (new_scop): Renamed scop->context to scop->param_context.
4735 (print_scop_context): Same.
4736 * graphite-poly.h (new_poly_dr): Change the type of argument from
4737 void* to data_reference_p.
4738 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
4739 (new_poly_bb): Change the type of argument from void* to
4741 (pbb_set_black_box): Same.
4742 (struct scop): Rename context to param_context, ctx to isl_context.
4743 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
4744 Move declarations closer to assignment.
4745 (find_params_in_bb): Same.
4746 (find_scop_parameters): Same.
4747 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
4748 Global to be used for statement IDs.
4749 (isl_id_for_pbb): Use ssa_name_version_typesize.
4750 (simple_copy_phi_p): Move declarations closer to assignment.
4751 (build_pbb_scattering_polyhedrons): Same.
4752 (build_scop_scattering): Same.
4753 (isl_id_for_ssa_name): Same.
4754 (extract_affine_name): Same.
4755 (extract_affine_int): Same.
4756 (extract_affine): Same.
4757 (set_scop_parameter_dim): Use renamed member.
4758 (build_loop_iteration_domains): Same.
4759 (add_param_constraints): Same.
4760 (build_scop_iteration_domain): Same.
4761 (pdr_add_data_dimensions): Same.
4762 (build_poly_dr): Same.
4763 (build_scop_drs): Move declarations closer to assignment.
4764 (analyze_drs_in_stmts): Same.
4765 (insert_out_of_ssa_copy): Same.
4766 (insert_out_of_ssa_copy_on_edge): Same.
4767 (propagate_expr_outside_region): Same.
4768 (rewrite_phi_out_of_ssa): Same.
4769 (rewrite_degenerate_phi): Same.
4770 (rewrite_reductions_out_of_ssa): Same.
4771 (rewrite_cross_bb_scalar_dependence): Same.
4772 (handle_scalar_deps_crossing_scop_limits): Same.
4773 (rewrite_cross_bb_scalar_deps): Same.
4774 * graphite.c (graphite_transform_loops): Use renamed member.
4776 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
4779 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
4780 create_tmp_var_raw instead of create_tmp_var.
4782 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4785 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
4786 Use create_tmp_var_raw instead of create_tmp_var.
4788 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
4791 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
4792 split for upper-bank registers when target does not support
4794 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
4795 split when target does not support AVX512VL.
4797 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
4800 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
4801 Adjust to use create_tmp_var_raw instead of create_tmp_var.
4803 2015-10-06 Nick Clifton <nickc@redhat.com>
4805 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
4808 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4810 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
4811 (case ${target}): Add znver1.
4812 * config/i386/cpuid.h(bit_CLZERO): Define.
4813 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4814 -march=native recognize znver1 processors.
4815 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4816 znver1, clzero def_and_undef.
4817 * config/i386/i386.c (struct processor_costs znver1_cost): New.
4818 (m_znver1): New definition.
4819 (m_AMD_MULTIPLE): Includes m_znver1.
4820 (processor_target_table): Add znver1 entry.
4821 (ix86_target_string) : Add clzero entry.
4822 (static const char *const cpu_names): Add znver1 entry.
4823 (ix86_option_override_internal): Add znver1 instruction sets.
4824 (PTA_CLZERO) : New definition.
4825 (ix86_option_override_internal): Handle new clzerooption.
4826 (ix86_issue_rate): Add znver1.
4827 (ix86_adjust_cost): Add znver1.
4828 (ia32_multipass_dfa_lookahead): Add znver1.
4829 (has_dispatch): Add znver1.
4830 * config/i386/i386.h (TARGET_znver1): New definition.
4831 (TARGET_CLZERO): Define.
4832 (TARGET_CLZERO_P): Define.
4833 (struct ix86_size_cost): Add TARGET_ZNVER1.
4834 (enum processor_type): Add PROCESSOR_znver1.
4835 * config/i386/i386.md (define_attr "cpu"): Add znver1.
4836 (set_attr znver1_decode): New definitions for znver1.
4837 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
4839 * config/i386/mmx.md (set_attr znver1_decode): New definitions
4841 * config/i386/sse.md (set_attr znver1_decode): Likewise.
4842 * config/i386/x86-tune.def: Add znver1 tunings.
4843 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
4844 * gcc/doc/invoke.texi: Add details about znver1
4846 2015-10-06 Richard Biener <rguenther@suse.de>
4848 PR tree-optimization/67859
4849 * tree-ssa-pre.c (create_expression_by_pieces): Properly
4850 discard not inserted stmts.
4852 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
4854 * doc/extend.texi (Template Instantiation): Reorder options and
4855 de-emphasize -frepo.
4856 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
4857 example instead of -frepo.
4859 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4862 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
4863 use create_tmp_var_raw rather than create_tmp_var.
4865 2015-10-06 Richard Biener <rguenther@suse.de>
4867 * tree-vectorizer.h (vec_info): New base class for...
4868 (_loop_vec_info): ... this and ...
4869 (_bb_vec_info): ... this.
4870 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
4871 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
4872 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
4873 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
4874 vect_destroy_datarefs): Adjust interface to take a vec_info *
4875 rather than both a loop_vec_info and a bb_vec_info argument.
4876 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
4877 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
4878 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
4879 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
4881 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
4882 (destroy_loop_vec_info, vect_analyze_loop_2,
4883 vect_is_simple_reduction_1, get_initial_def_for_induction,
4884 vect_create_epilog_for_reduction, vectorizable_reduction,
4885 vectorizable_live_operation, vect_transform_loop): Adjust.
4886 * tree-vect-patterns.c (type_conversion_p,
4887 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
4888 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
4889 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
4890 check_bool_pattern, vect_recog_bool_pattern,
4891 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
4892 * tree-vect-slp.c (vect_get_and_check_slp_defs,
4893 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
4894 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
4895 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
4896 (new_bb_vec_info): Initialize base classs.
4897 * tree-vect-stmts.c (record_stmt_cost, process_use,
4898 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
4899 vectorizable_mask_load_store, vectorizable_call,
4900 vectorizable_simd_clone_call, vectorizable_conversion,
4901 vectorizable_assignment, vectorizable_shift,
4902 vectorizable_operation, vectorizable_store,
4903 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
4904 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
4905 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
4907 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
4910 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
4911 create_tmp_var_raw rather than create_tmp_var.
4913 2015-10-05 Marek Polacek <polacek@redhat.com>
4915 * tree-ssa-loop-im.c
4916 (move_computations_dom_walker::before_dom_children): Don't set
4917 SSA_NAME_ANTI_RANGE_P.
4918 * tree-ssa-phiopt.c (value_replacement): Likewise.
4920 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4921 Sebastian Pop <s.pop@samsung.com>
4923 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
4925 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4926 Sebastian Pop <s.pop@samsung.com>
4928 * graphite-poly.c (new_gimple_poly_bb): ... here.
4929 (free_data_refs_aux): ... here.
4930 (free_gimple_poly_bb): ... here.
4931 (remove_gbbs_in_scop): ... here.
4932 (new_scop): Call new_sese.
4933 (free_scop): Call remove_gbbs_in_scop and free_sese.
4934 * graphite-poly.h (base_alias_pair): ... here.
4935 (new_gimple_poly_bb): Declare.
4936 (free_gimple_poly_bb): Declare.
4937 * graphite-scop-detection.c (parameter_index_in_region_1):
4938 (parameter_index_in_region): ... here.
4939 (scan_tree_for_params): ... here.
4940 (find_params_in_bb): ... here.
4941 (find_scop_parameters): ... here.
4942 (build_scops): Call find_scop_parameters.
4943 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
4944 (free_scops): Move...
4945 (single_pred_cond_non_loop_exit): Move...
4946 (sese_dom_walker::before_dom_children): Move...
4947 (sese_dom_walker::after_dom_children): Move...
4948 (build_poly_scop): Move...
4949 * graphite-sese-to-poly.h (base_alias_pair): Move...
4950 * graphite.c (free_scops): ... here.
4952 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4953 Sebastian Pop <s.pop@samsung.com>
4955 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
4956 (trivially_empty_bb_p): Move...
4957 (same_close_phi_node): Move...
4958 (new_gimple_poly_bb): Move...
4959 (compare_bb_depths): Move...
4960 (graphite_sort_dominated_info): Move...
4961 (remove_duplicate_close_phi): Move...
4962 (make_close_phi_nodes_unique): Move...
4963 (canonicalize_loop_closed_ssa): Move...
4964 (canonicalize_loop_closed_ssa_form): Move...
4965 (loop_ivs_can_be_represented): Move...
4966 (single_pred_cond_non_loop_exit): Move...
4967 (graphite_can_represent_init): Move...
4968 (graphite_can_represent_scev): Move...
4969 (stmt_has_simple_data_refs_p): Move...
4970 (stmt_has_side_effects): Move...
4971 (graphite_can_represent_stmt): Move...
4972 (scop_detection): ... here.
4973 (sese_dom_walker): ... and here.
4974 (build_scops): Call all moved functions.
4975 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
4976 (all_non_dominated_preds_marked_p): Move...
4977 (build_scop_bbs_1): Move...
4978 (build_scop_bbs): Move...
4979 (set_scop_parameter_dim): Move...
4980 (nb_pbbs_in_loops): Move...
4981 (build_poly_scop): Do not call all the moved functions.
4983 2015-10-05 Martin Jambor <mjambor@suse.cz>
4984 Jan Hubicka <hubicka@ucw.cz>
4986 * ipa-cp.c (ipcp_alignment_lattice): New type.
4987 (ipcp_param_lattices): Use the above to represent alignment.
4988 (ipcp_alignment_lattice::print): New function.
4989 (print_all_lattices): Use it to print alignment information.
4990 (ipcp_alignment_lattice::top_p): New function.
4991 (ipcp_alignment_lattice::bottom_p): Likewise.
4992 (ipcp_alignment_lattice::set_to_bottom): Likewise.
4993 (ipcp_alignment_lattice::meet_with_1): Likewise.
4994 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
4995 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
4996 (initialize_node_lattices): Likewise.
4997 (propagate_alignment_accross_jump_function): Work with the new class
4998 for alignment lattices.
4999 (propagate_constants_accross_call): Pass only the alignment lattice to
5000 propagate_alignment_accross_jump_function.
5001 (ipcp_store_alignment_results): Work with the new class for alignment
5004 2015-10-05 Marek Polacek <polacek@redhat.com>
5006 PR tree-optimization/67821
5007 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
5009 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
5012 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
5014 (mkoffload_cleanup): ... this. Adjust all users.
5015 (maybe_unlink): Look at save_temps and verbose flags instead of
5017 (main): Parse "-save-temps" flag.
5018 (generate_target_descr_file, generate_target_offloadend_file)
5019 (generate_host_descr_file, prepare_target_image): Pass it on.
5020 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
5021 (mkoffload_cleanup): New function.
5022 (maybe_unlink): Look at save_temps and verbose flags instead of
5024 (main): Instead of calling utils_cleanup, register atexit handler
5025 for mkoffload_cleanup.
5026 (main): Parse "-save-temps" flag.
5027 (compile_native, main): Pass it on.
5028 * lto-wrapper.c (compile_offload_image): Likewise.
5030 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5032 * gimple.h (gimple_op_ptr): Require a non const gimple *.
5033 (gimple_assign_lhs_ptr): Likewise.
5034 (gimple_assign_rhs1_ptr): Likewise.
5035 (gimple_assign_rhs2_ptr): Likewise.
5036 (gimple_assign_rhs3_ptr): Likewise.
5037 (gimple_call_lhs_ptr): Likewise.
5038 (gimple_call_fn_ptr): Likewise.
5039 (gimple_call_chain_ptr): Likewise.
5040 (gimple_call_arg_ptr): Likewise.
5041 (gimple_cond_lhs_ptr): Likewise.
5042 (gimple_cond_rhs_ptr): Likewise.
5043 (gimple_switch_index_ptr): Likewise.
5044 (gimple_return_retval_ptr): Likewise.
5046 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5048 * gimple.h (gimple_asm_input_op_ptr): Remove.
5049 (gimple_asm_output_op_ptr): Likewise.
5051 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5053 * gimple.h (gimple_location_ptr): Remove.
5054 * tree-vrp.c (check_all_array_refs): Adjust.
5056 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5058 * tree-ssa-operands.c (build_uses): store tree * instead of
5060 (finalize_ssa_uses): Adjust.
5061 (append_use): Likewise.
5062 (verify_ssa_operands): Likewise.
5064 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5066 * real.h (build_real_truncate): Declare.
5067 * tree.c (build_real_truncate): New function.
5068 (strip_float_extensions): Use it.
5069 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
5070 (fold_builtin_hypot, fold_builtin_pow): Likewise.
5071 * match.pd: Likewise.
5073 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
5074 Jiong Wang <jiong.wang@arm.com>
5076 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
5078 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5080 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
5081 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
5082 (aarch64_print_operand, aarch64_float_const_representable_p)
5083 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
5084 instead of REAL_VALUE_FROM_CONST_DOUBLE.
5085 * config/arc/arc.c (arc_print_operand): Likewise.
5086 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
5087 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
5088 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
5090 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
5091 (consttable_16): Likewise.
5092 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
5093 * config/avr/avr.c (avr_print_operand): Likewise.
5094 * config/bfin/bfin.md: Likewise (in a define_split).
5095 * config/c6x/c6x.md: Likewise (in a define_split).
5096 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
5097 (cr16_print_operand): Likewise.
5098 * config/cris/cris.c (cris_print_operand): Likewise.
5099 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
5100 * config/fr30/fr30.c (fr30_print_operand): Likewise.
5101 (fr30_const_double_is_zero): Likewise.
5102 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
5103 * config/frv/frv.md: Likewise (in a define_split).
5104 * config/frv/predicates.md (int_2word_operand): Likewise.
5105 * config/h8300/h8300.c (h8300_print_operand): Likewise.
5106 * config/i386/i386.c (standard_80387_constant_p): Likewise.
5107 (ix86_print_operand, ix86_split_to_parts): Likewise.
5108 * config/i386/i386.md: Likewise (in a define_split).
5109 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
5110 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
5111 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
5112 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
5113 (print_operand): Likewise.
5114 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
5115 * config/mep/mep.md: Likewise (in define_split).
5116 * config/microblaze/microblaze.c (microblaze_const_double_ok)
5117 (print_operand): Likewise.
5118 * config/mips/mips.md (consttable_float): Likewise.
5119 * config/mmix/mmix.c (mmix_intval): Likewise.
5120 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
5121 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
5122 * config/pa/pa.c (pa_singlemove_string): Likewise.
5123 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
5124 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
5125 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
5126 (output_toc): Likewise.
5127 * config/rs6000/rs6000.md: Likewise (in define_splits).
5128 * config/rx/rx.c (rx_print_operand): Likewise.
5129 * config/s390/s390.c (s390_output_pool_entry): Likewise.
5130 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5131 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
5132 (and also in define_splits).
5133 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
5134 (fp_high_losum_p): Likewise.
5135 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
5136 (*movsf_high): Likewise.
5137 * config/spu/spu.c (const_double_to_hwint): Likewise.
5138 * config/v850/v850.c (const_double_split): Likewise.
5139 * config/vax/vax.c (vax_float_literal): Likewise.
5140 * config/visium/visium.c (visium_expand_copysign): Likewise.
5141 * config/visium/visium.md: Likewise (in define_split).
5142 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5143 * config/xtensa/xtensa.c (print_operand): Likewise.
5144 (xtensa_output_literal): Likewise.
5145 * cprop.c (implicit_set_cond_p): Likewise.
5146 * dwarf2out.c (insert_float): Likewise.
5147 * expmed.c (expand_mult, make_tree): Likewise.
5148 * expr.c (compress_float_constant): Likewise.
5149 * rtlanal.c (split_double): Likewise.
5150 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5151 (simplify_const_unary_operation, simplify_binary_operation_1)
5152 (simplify_const_binary_operation): Likewise.
5153 (simplify_const_relational_operation): Likewise.
5154 * varasm.c (output_constant_pool_2): Likewise.
5156 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5158 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
5159 instead of CONST_DOUBLE_FROM_REAL_VALUE.
5160 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
5161 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
5162 instead of CONST_DOUBLE_FROM_REAL_VALUE.
5163 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
5164 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
5165 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
5166 (ix86_emit_swsqrtsf): Likewise.
5167 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
5168 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
5169 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5170 * config/pa/pa.c (pa_expand_builtin): Likewise.
5171 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
5172 (rs6000_scale_v2df): Likewise.
5173 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
5174 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
5175 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
5176 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
5177 (vec_ctul): Likewise.
5178 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
5179 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
5180 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
5181 * cse.c (fold_rtx): Likewise.
5182 * emit-rtl.c (immed_double_const): Likewise (in comments).
5183 (init_emit_once): Likewise.
5184 * expr.c (compress_float_constant, expand_expr_real_1)
5185 (const_vector_from_tree): Likewise.
5186 * optabs.c (expand_float, expand_fix): Likewise.
5187 * reg-stack.c (reg_to_stack): Likewise.
5188 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5189 (simplify_const_unary_operation, simplify_binary_operation_1)
5190 (simplify_const_binary_operation, simplify_relational_operation)
5191 (simplify_immed_subreg): Likewise.
5193 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5195 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
5196 * doc/tm.texi: Regenerate.
5197 * real.h (REAL_ARITHMETIC): Delete.
5198 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
5199 (ix86_expand_round_sse4): Use real_arithmetic instead of
5201 * config/i386/sse.md (round<mode>2): Likewise.
5202 * rtl.h (rtx_to_tree_code): Likewise (in comment).
5203 * explow.c (rtx_to_tree_code): Likewise (in comment).
5204 * match.pd: Likewise.
5205 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5206 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5207 (expand_pow_as_sqrts): Likewise.
5208 * tree-pretty-print.c (dump_generic_node): Remove code that
5209 was conditional on REAL_ARITHMETIC being undefined.
5211 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5213 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
5214 * doc/tm.texi: Regenerate.
5215 * real.h (real_less): Declare.
5216 (REAL_VALUES_LESS): Delete.
5217 * real.c (real_less): New function.
5218 (real_compare): Use it.
5219 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
5220 of REAL_VALUES_LESS.
5221 * config/microblaze/microblaze.c (microblaze_const_double_ok):
5223 * fold-const.c (fold_convert_const_int_from_real): Likewise.
5224 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5225 (simplify_const_relational_operation): Likewise.
5226 * tree-call-cdce.c (check_pow): Likewise.
5227 (gen_conditions_for_pow_cst_base): Likewise.
5229 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5231 * real.h (REAL_VALUES_IDENTICAL): Delete.
5232 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
5233 instead of REAL_VALUES_IDENTICAL.
5234 * fold-const.c (operand_equal_p): Likewise.
5235 * ipa-icf.c (sem_variable::equals): Likewise.
5236 * tree-complex.c (some_nonzerop): Likewise.
5237 (expand_complex_multiplication): Likewise.
5238 * tree.c (simple_cst_equal): Likewise.
5239 * varasm.c (compare_constant): Likewise.
5241 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5243 * real.h (real_equal): Declare.
5244 (REAL_VALUES_EQUAL): Delete.
5245 * real.c (real_equal): New function.
5246 (real_compare): Use it.
5247 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
5248 * doc/tm.texi: Regenerate.
5249 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
5250 real_equal instead of REAL_VALUES_EQUAL.
5251 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
5252 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
5253 (fp_const_from_val): Likewise.
5254 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
5255 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
5256 (floating_exact_log2): Likewise.
5257 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5258 * config/vax/vax.c (vax_float_literal): Likewise.
5259 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5260 * cprop.c (implicit_set_cond_p): Likewise.
5261 * expmed.c (expand_mult): Likewise.
5262 * fold-const.c (const_binop): Likewise.
5263 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5264 (simplify_const_binary_operation): Likewise.
5265 (simplify_const_relational_operation): Likewise.
5266 * tree-call-cdce.c (check_pow): Likewise.
5267 (gen_conditions_for_pow_cst_base): Likewise.
5268 * tree-inline.c (estimate_num_insns): Likewise.
5269 * tree-ssa-dom.c (record_equality): Likewise.
5270 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5271 (gimple_expand_builtin_pow): Likewise.
5272 (pass_optimize_widening_mul::execute): Likewise.
5273 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5274 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
5275 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
5277 2015-10-05 Richard Biener <rguenther@suse.de>
5280 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
5281 consider loop header PHI defs as IVs.
5283 2015-10-05 Richard Biener <rguenther@suse.de>
5285 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
5287 (create_expression_by_pieces): ... here and build GIMPLE
5288 calls directly. Use gimple_build API and avoid force_gimple_operand.
5289 (insert_into_preds_of_block): Simplify.
5290 (do_regular_insertion): Add comment.
5292 2015-10-04 Jason Merrill <jason@redhat.com>
5294 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
5296 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
5298 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
5299 check for general register.
5300 (ix86_emit_save_regs): Ditto.
5301 (ix86_emit_save_regs_using_mov): Ditto.
5302 (ix86_emit_restore_regs_using_pop): Ditto.
5303 (ix86_emit_restore_regs_using_mov): Ditto.
5305 2015-10-03 Marek Polacek <polacek@redhat.com>
5307 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
5308 (insn-dfatab.o): Likewise.
5310 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
5312 * config.gcc (xtensa*-*-uclinux*): New configuration.
5313 * config/xtensa/uclinux.h: New file.
5314 * config/xtensa/uclinux.opt: New file.
5316 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
5318 * doc/cpp.texi (Standard Predefined Macros): Document value of
5319 __cplusplus for C++14.
5321 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
5323 * gcc.c (process_command): Use spec_machine rather than
5324 spec_host_machine to build tooldir_prefix2.
5326 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5327 Bernd Schmidt <bernds@codesourcery.com>
5329 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
5330 (Token, Stmt): Remove structs.
5331 (decls, vars, fns): Remove variables.
5332 (alloc_comment, append_stmt, is_keyword): Remove macros.
5333 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
5334 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
5335 (parse_init, parse_file): Remove functions.
5336 (read_file): Accept a pointer to a length and store into it.
5337 (process): Don't try to parse the input file, just write it out as
5338 a string, but looking for maps. Also write out the length.
5339 (main): Don't use "-S" to compile PTX code.
5341 2015-10-02 Jeff Law <law@redhat.com>
5343 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
5346 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5349 * config/nvptx/mkoffload.c (main): Scan the argument vector for
5350 -fopenmp, and skip generating an offloading image if specified.
5352 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
5354 * system.h (ROUND_UP): New macro definition.
5355 (ROUND_DOWN): Ditto.
5356 * ggc-page.c (ROUND_UP): Remove local macro definition.
5357 (PAGE_ALIGN): Implement using ROUND_UP macro.
5359 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
5360 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
5362 (ix86_compute_frame_layout): Ditto.
5363 (ix86_expand_prologue): Ditto.
5364 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
5365 to round down values.
5366 (expand_set_or_movmem_via_rep): Ditto.
5368 2015-10-02 Marek Polacek <polacek@redhat.com>
5370 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
5372 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
5374 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
5375 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
5376 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
5377 (free_gimple_bb): Renamed free_gimple_poly_bb.
5378 (try_generate_gimple_bb): Hoist loop invariant code.
5379 (analyze_drs_in_stmts): Same.
5380 (build_scop_drs): Call renamed functions.
5381 (new_pbb_from_pbb): Same.
5382 (scop_ivs_can_be_represented): Delete as functionality now moved to
5383 graphite-scop-detection.c
5384 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
5386 2015-10-02 Aditya Kumar <hiraditya@msn.com>
5388 * graphite-scop-detection.c (stmt_has_side_effects): New function
5389 outlined from stmt_simple_for_scop_p.
5390 (graphite_can_represent_stmt): Same.
5391 (stmt_simple_for_scop_p): Moved code out of this function for better
5394 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5396 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
5398 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
5400 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5402 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
5404 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
5406 PR rtl-optimization/67756
5407 * lra-constraints.c (match_reload): Add a new parameter. Use it
5408 for creating a pseudo with the same value.
5409 (curr_insn_transform): Pass a new argument to match_reload.
5411 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5413 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
5414 (expand_vec_perm_even_odd_1): Handle V64QImode.
5415 (ix86_expand_vec_perm_const_1): Try expansion with
5416 expand_vec_perm_even_odd_trunc as well.
5417 * config/i386/sse.md (VI124_AVX512F): Rename to ...
5418 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
5420 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
5421 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
5423 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
5424 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
5425 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
5426 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
5427 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
5428 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
5430 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5432 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
5433 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
5435 2015-10-02 Jason Merrill <jason@redhat.com>
5438 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
5439 (diagnose_tm_1_op): Also diagnose volatile accesses in
5440 transaction_safe function.
5442 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
5444 * system.h (malloc.h): Don't include obsolete header.
5446 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5448 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
5449 (TLS_SECTION_ASM_FLAG): Delete.
5451 2015-10-02 Marek Polacek <polacek@redhat.com>
5454 * doc/invoke.texi: Document -Wduplicated-cond.
5455 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
5456 (insn-dfatab.o): Likewise.
5457 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
5460 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
5462 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
5465 2015-10-02 Renlin Li <renlin.li@arm.com>
5467 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
5469 2015-10-02 Renlin Li <renlin.li@arm.com>
5472 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
5474 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5476 PR rtl-optimization/67786
5477 PR rtl-optimization/67787
5478 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
5479 it modifies a reg used in the condition calculation.
5481 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
5483 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
5484 alternatives for reads from memory and moves from general-purpose
5486 (*aarch64_combinez_be<mode>): Likewise.
5488 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
5491 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
5492 selectany within this function without need to keep attribute.
5493 (i386_pe_encode_section_info): Remove selectany-code.
5495 2015-10-02 Richard Biener <rguenther@suse.de>
5497 * tree-ssa-sccvn.c (has_VN_INFO): New function.
5498 (free_scc_vn): Use it.
5499 (visit_use): Remove dead code and refactor to use gassign
5500 and use less indentation.
5502 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5506 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
5507 (rs6000_cannot_copy_insn_p): New function.
5508 * config/rs6000/rs6000.md (cannot_copy): New attribute.
5509 (load_toc_v4_PIC_1_normal): Set cannot_copy.
5510 (load_toc_v4_PIC_1_476): Ditto.
5512 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
5514 * graphite-scop-detection.c (struct sese_l): New conversion constructor
5515 so that this type can be pushed into a vec.
5516 (class scop_builder): use sese_l to collect scops.
5517 (get_scops): New getter function.
5518 (remove_intersecting_scops): Use sese_l instead of scops_p.
5522 (remove_subscops): Same.
5523 (build_scops): Add scops to vec<scops_p> once all the scops have been
5526 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
5528 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5529 Renamed type from gimple_bb_p to gimple_poly_bb_p.
5530 (translate_isl_ast_node_user): Same.
5531 * graphite-poly.c (new_poly_bb): Same.
5532 * graphite-poly.h (gbb_from_bb): Same.
5534 * graphite-sese-to-poly.c (new_gimple_bb):
5535 gimple_bb_p -> gimple_poly_bb_p
5536 (build_scop_scattering): Same.
5537 (find_params_in_bb): Same.
5538 (add_conditions_to_domain): Same.
5539 (sese_dom_walker::before_dom_children): Same.
5540 (analyze_drs_in_stmts): Same.
5541 (new_pbb_from_pbb): Same.
5542 (free_data_refs_aux): New pointer to type base_alias_pair.
5543 * graphite-sese-to-poly.h: Same.
5544 * sese.c (if_region_set_false_region): Fixed Indentation.
5545 (move_sese_in_condition): Same.
5547 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5548 Aditya Kumar <aditya.k7@samsung.com>
5550 PR tree-optimization/66980
5551 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
5552 when data reference analysis has failed.
5554 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5555 Aditya Kumar <aditya.k7@samsung.com>
5557 PR tree-optimization/67754
5558 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
5559 scev analysis on the same loop nest as analyze_drs_in_stmts.
5560 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
5562 (try_generate_gimple_bb): Call outermost_loop_in_sese.
5563 (analyze_drs_in_stmts): Same.
5564 * sese.c (outermost_loop_in_sese): ...here.
5566 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5567 Aditya Kumar <aditya.k7@samsung.com>
5569 PR tree-optimization/67754
5570 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
5571 recursion on the inner loops.
5573 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5575 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
5576 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
5577 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
5578 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
5579 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
5581 2015-10-01 Marek Polacek <polacek@redhat.com>
5584 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
5585 create_tmp_var_raw rather than create_tmp_var.
5587 2015-10-01 Marek Polacek <polacek@redhat.com>
5589 PR tree-optimization/67769
5590 * tree-ssa-phiopt.c (conditional_replacement): Call
5591 reset_flow_sensitive_info_in_bb.
5592 (minmax_replacement): Likewise.
5593 (abs_replacement): Likewise.
5595 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
5597 * builtins.c: Don't include gomp-constants.h.
5598 (fold_builtin_1): Don't fold acc_on_device here.
5599 * gimple-fold.c: Include gomp-constants.h.
5600 (gimple_fold_builtin_acc_on_device): New.
5601 (gimple_fold_builtin): Call it.
5603 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
5605 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
5606 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
5608 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
5610 * config/arm/aarch-common-protos.h
5611 (aarch_accumulator_forwarding): New.
5612 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5613 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
5614 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5615 * config/arm/cortex-a53.md: Rewrite.
5617 2015-10-01 Richard Biener <rguenther@suse.de>
5619 * gimple-match.h (mprts_hook): Declare.
5620 * gimple-match.head.c (mprts_hook): Define.
5621 (maybe_push_res_to_seq): Use new hook.
5622 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5623 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
5624 (vn_ssa_aux::has_constants): Remove.
5625 * tree-ssa-sccvn.c: Include gimple-match.h.
5626 (VN_INFO_GET): Assert we don't re-use SSA names.
5627 (vn_get_expr_for): Remove.
5628 (expr_has_constants): Likewise.
5629 (stmt_has_constants): Likewise.
5630 (simplify_binary_expression): Likewise.
5631 (simplify_unary_expression): Likewise.
5632 (vn_lookup_simplify_result): New hook.
5633 (visit_copy): Adjust.
5634 (visit_reference_op_call): Likewise.
5635 (visit_phi): Likewise.
5636 (visit_use): Likewise.
5637 (process_scc): Likewise.
5638 (init_scc_vn): Likewise.
5639 (visit_reference_op_load): Likewise. Use match-and-simplify and
5640 a gimple seq for inserted expressions.
5641 (try_to_simplify): Remove GENERIC stmt combining code.
5642 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
5643 * tree-ssa-pre.c (eliminate_insert): Adjust.
5644 (eliminate_dom_walker::before_dom_children): Likewise.
5646 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5648 * doc/invoke.texi (Optimization Options): Add
5649 -freorder-blocks-algorithm=.
5650 (Optimize Options) <-O>: Add -freorder-blocks.
5651 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
5652 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
5653 <-freorder-blocks>: Also enabled at levels -O and -Os.
5654 <-freorder-blocks-algorithm=>: Document new option.
5656 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5658 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
5659 with flag_reorder_blocks_algorithm.
5660 * common.opt (freorder-blocks-algorithm=): New flag.
5661 (reorder_blocks_algorithm): New enum.
5662 * flag-types.h (reorder_blocks_algorithm): New enum.
5663 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
5664 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
5666 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5668 * bb-reorder.c: Add intro comment.
5669 (reorder_basic_blocks_software_trace_cache): Print a header to
5671 (edge_order): New function.
5672 (reorder_basic_blocks_simple): New function.
5673 (reorder_basic_blocks): Choose between the STC and the simple
5674 algorithms (always choose the former).
5676 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5678 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
5679 function, factored out from ...
5680 (reorder_basic_blocks): ... here.
5682 2015-10-01 Tom de Vries <tom@codesourcery.com>
5684 * tree-cfg.c (dump_function_to_file): Dump function attributes using
5685 __attribute__(()) string. Move dumping of function attributes to before
5688 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
5691 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5692 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
5693 based on gold linker version.
5694 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
5695 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
5696 * configure, config.in: Regenerate.
5698 2015-10-01 Alan Modra <amodra@gmail.com>
5700 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
5701 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
5702 (rs6000_output_mi_thunk): Likewise.
5704 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5706 * config/nvptx/mkoffload.c (process): Change offload data format.
5708 2015-09-30 Jeff Law <law@redhat.com>
5710 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
5711 with constant conditions.
5712 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
5713 (remove_ctrl_stmt_and_useless_edges): No longer static.
5714 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
5715 (remove_ctrl_stmt_and_useless_edges): Likewise.
5717 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5718 Cesar Philippidis <cesar@codesourcery.com>
5720 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
5721 (TARGET_GOACC_VALIDATE_DIMS): Override.
5722 * target.def (TARGET_GOACC): New target hook prefix.
5723 (validate_dims): New hook.
5724 * targhooks.h (default_goacc_validate_dims): New.
5725 * omp-low.c (oacc_validate_dims): New.
5726 (execute_oacc_device_lower): New.
5727 (default_goacc_validate_dims): New.
5728 (pass_data_oacc_device_lower): New.
5729 (pass_oacc_device_lower): New pass.
5730 (make_pass_oacc_device_lower): New.
5731 * tree-pass.h (make_pass_oacc_device_lower): Declare.
5732 * passes.def (pass_oacc_device_lower): Add it.
5733 * doc/tm.texi: Rebuilt.
5734 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
5735 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
5737 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5739 PR rtl-optimization/67037
5740 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
5742 2015-09-30 Bernd Schmidt <bernds@redhat.com>
5744 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
5745 * passes.c: Include tree-ssanames.h.
5746 (execute_function_todo): Flush the pending free SSA_NAMEs after
5747 eliminating unreachable basic blocks.
5748 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
5749 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
5750 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
5751 (flush_ssanames_freelist): New function.
5752 (release_ssaname_fn): Put released names on the queue.
5753 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
5754 * tree-ssanames.h (flush_ssanames_freelist): Declare.
5756 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5758 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
5759 (generate_target_descr_file, generate_target_offloadend_file)
5760 (generate_host_descr_file, prepare_target_image): Pass it on.
5761 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
5762 (compile_native, main): Pass it on.
5763 * lto-wrapper.c (compile_offload_image): Likewise.
5765 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5766 Ilya Verbin <ilya.verbin@intel.com>
5767 Andrey Turetskiy <andrey.turetskiy@intel.com>
5769 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
5770 (prepare_target_image, main): Refactor argv building to use
5773 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5775 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
5776 * config/spu/spu.c (spu_expand_atomic_op): New function.
5777 * config/spu/spu.md (AINT): New mode iterator.
5778 (ATOMIC): New code iterator.
5779 (atomic_name, atomic_pred): New code predicates.
5780 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
5781 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
5782 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
5783 "atomic_<atomic_name>_fetch<mode>"): Likewise.
5785 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
5787 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
5789 (scalar_chain::convert_reg): Likewise.
5791 2015-09-30 Richard Biener <rguenther@suse.de>
5793 * builtins.c: Add comment that no new simplifications should
5796 2015-09-30 Marek Polacek <polacek@redhat.com>
5798 PR tree-optimization/67690
5799 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
5800 reset_flow_sensitive_info_in_bb.
5801 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
5802 * tree-ssanames.c: Include "gimple-iterator.h".
5803 (reset_flow_sensitive_info_in_bb): New function.
5804 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
5806 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5808 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
5809 variable, replacing it with...
5810 (offload_abi): ... this new variable. Adjust all users.
5811 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
5813 2015-09-30 Matthias Klose <doko@ubuntu.com>
5815 * configure.ac: Remove extraneous ;;.
5816 * configure: Regenerate.
5818 2015-09-29 James Bowman <james.bowman@ftdichip.com>
5820 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
5821 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
5822 predicate, disallow register for operand 2.
5824 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
5826 * graphite-dependences.c (scop_get_dependences): Moved in down
5827 in order to be visible to its caller.
5828 * graphite-poly.h: Removed compute_deps, and extend_schedule.
5830 2015-09-29 Sebastian Pop <s.pop@samsung.com>
5831 Aditya Kumar <aditya.k7@samsung.com>
5833 PR tree-optimization/67754
5834 * graphite-optimize-isl.c (optimize_isl): Call
5835 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
5837 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5839 * builtins.c (expand_builtin_acc_on_device): Delete.
5840 (expand_builtin): Don't call it.
5841 (fold_builtin_1): Fold acc_on_device.
5843 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
5845 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
5846 (ix86_nsaved_sseregs): Likewise.
5848 2015-09-29 Jeff Law <law@redhat.com>
5850 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
5851 computation of unused value.
5853 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
5854 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
5855 inline macro expansion.
5857 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
5859 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
5860 (gen_shl_sext): Likewise.
5861 * config/sh/sh.md (divsi3): Likewise.
5862 (imm->ext_dest_operand splitter): Likewise.
5864 2015-09-29 Sebastian Pop <s.pop@samsung.com>
5865 Aditya Kumar <aditya.k7@samsung.com>
5867 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
5868 (nb_data_writes_in_bb): Remove.
5869 (split_pbb): Remove.
5870 (split_reduction_stmt): Remove.
5871 (is_reduction_operation_p): Remove.
5872 (phi_contains_arg): Remove.
5873 (follow_ssa_with_commutative_ops): Remove.
5874 (detect_commutative_reduction_arg): Remove.
5875 (detect_commutative_reduction_assign): Remove.
5876 (follow_inital_value_to_phi): Remove.
5877 (edge_initial_value_for_loop_phi): Remove.
5878 (initial_value_for_loop_phi): Remove.
5879 (used_outside_reduction): Remove.
5880 (detect_commutative_reduction): Remove.
5881 (translate_scalar_reduction_to_array_for_stmt): Remove.
5882 (remove_phi): Remove.
5883 (dr_indices_valid_in_loop): Remove.
5884 (close_phi_written_to_memory): Remove.
5885 (translate_scalar_reduction_to_array): Remove.
5886 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
5887 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
5888 (rewrite_commutative_reductions_out_of_ssa): Remove.
5889 (build_poly_scop): Remove call to
5890 rewrite_commutative_reductions_out_of_ssa.
5892 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
5894 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
5895 Add new insn types for vector load and store pairs.
5896 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
5897 types "neon_ldp{,_q}".
5898 * config/arm/cortex-a57.md (neon_load_c): Add insn types
5900 (neon_store_complex): Add insn types "neon_stp{,_q}".
5901 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
5904 2015-09-29 Jeff Law <law@redhat.com>
5906 * config/rx/constraints.md (Int08): Fix undefined left shift
5908 (Sint08, Sint16, Sint24): Likewise.
5909 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5911 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
5914 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
5915 left shift behaviour.
5916 * config/msp430/constraints.md ('L' constraint): Similarly.
5917 ('Ys' constraint): Similarly.
5919 2015-09-29 Richard Biener <rguenther@suse.de>
5921 PR tree-optimization/67170
5922 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
5923 the translate function pointer parameter to get the
5924 bool whether to disambiguate only by reference.
5925 (walk_non_aliased_vuses): Likewise.
5926 * tree-ssa-alias.c (maybe_skip_until): Adjust.
5927 (get_continuation_for_phi_1): Likewise.
5928 (get_continuation_for_phi): Likewise.
5929 (walk_non_aliased_vuses): Likewise.
5930 * tree-ssa-sccvn.c (const_parms): New bitmap.
5931 (vn_reference_lookup_3): Adjust for interface change.
5932 Disambiguate parameters pointing to readonly memory.
5933 (free_scc_vn): Free const_parms.
5934 (run_scc_vn): Initialize const_parms from a fn spec attribute.
5936 2015-09-29 Richard Biener <rguenther@suse.de>
5938 PR tree-optimization/67741
5939 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
5940 builtin calls with correct signature.
5942 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
5945 * config/i386/i386.c: Include dbgcnt.h.
5946 (has_non_address_hard_reg): New.
5947 (convertible_comparison_p): New.
5948 (scalar_to_vector_candidate_p): New.
5949 (remove_non_convertible_regs): New.
5950 (scalar_chain): New.
5951 (scalar_chain::scalar_chain): New.
5952 (scalar_chain::~scalar_chain): New.
5953 (scalar_chain::add_to_queue): New.
5954 (scalar_chain::mark_dual_mode_def): New.
5955 (scalar_chain::analyze_register_chain): New.
5956 (scalar_chain::add_insn): New.
5957 (scalar_chain::build): New.
5958 (scalar_chain::compute_convert_gain): New.
5959 (scalar_chain::replace_with_subreg): New.
5960 (scalar_chain::replace_with_subreg_in_insn): New.
5961 (scalar_chain::emit_conversion_insns): New.
5962 (scalar_chain::make_vector_copies): New.
5963 (scalar_chain::convert_reg): New.
5964 (scalar_chain::convert_op): New.
5965 (scalar_chain::convert_insn): New.
5966 (scalar_chain::convert): New.
5967 (convert_scalars_to_vector): New.
5968 (pass_data_stv): New.
5970 (make_pass_stv): New.
5971 (ix86_option_override): Created and register stv pass.
5972 (flag_opts): Add -mstv.
5973 (ix86_option_override_internal): Likewise.
5974 * config/i386/i386.md (SWIM1248x): New.
5975 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
5976 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
5977 (*anddi3_doubleword): New.
5978 (*zext<mode>_doubleword): New.
5979 (*zextsi_doubleword): New.
5980 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
5981 (*<code>di3_doubleword): New.
5982 * config/i386/i386.opt (mstv): New.
5983 * dbgcnt.def (stv_conversion): New.
5985 2015-09-29 Tom de Vries <tom@codesourcery.com>
5987 * tree-cfg.c (dump_function_to_file): Dump function attributes.
5989 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
5992 * config/sh/sh.c (sh_override_options_after_change): New.
5993 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5994 (sh_option_override): Move align_loops, align_jumps and
5995 align_functions handling into sh_override_options_after_change.
5997 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5999 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
6000 (nvptx_record_offload_symbol): Record function execution geometry.
6001 * config/nvptx/mkoffload.c (process): Include launch geometry in
6003 * omp-low.c (oacc_launch_pack): New.
6004 (replace_oacc_fn_attrib): New.
6005 (set_oacc_fn_attrib): New.
6006 (get_oacc_fn_attrib): New.
6007 (expand_omp_target): Create keyed varargs for GOACC_parallel call
6009 * omp-low.h (get_oacc_fn_attrib): Declare.
6010 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
6011 (DEF_FUNCTION_TYPE_VAR_11): Delete.
6012 * tree.h (OMP_CLAUSE_EXPR): New.
6013 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
6015 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6016 Sebastian Pop <s.pop@samsung.com>
6018 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
6020 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6021 Sebastian Pop <s.pop@samsung.com>
6023 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
6024 * graphite-scop-detection.c (struct sese_l): New type.
6025 (get_entry_bb): API for getting entry bb of SESE.
6026 (get_exit_bb): API for getting exit bb of SESE.
6027 (class debug_printer): New type. Simple printer in debug mode.
6028 (trivially_empty_bb_p): New. Return true when BB is empty or
6029 contains only debug instructions.
6030 (graphite_can_represent_expr): Call scalar_evoution_in_region
6031 instead of analyze_scalar_evolution. Pass in scop instead of only
6033 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
6035 (stmt_simple_for_scop_p): Same.
6036 (harmful_stmt_in_bb): Same.
6037 (graphite_can_represent_loop): Deleted.
6038 (struct scopdet_info): Deleted.
6039 (scopdet_basic_block_info): Deleted.
6040 (build_scops_1): Deleted.
6041 (bb_in_sd_region): Deleted.
6042 (find_single_entry_edge): Deleted.
6043 (find_single_exit_edge): Deleted.
6044 (create_single_entry_edge): Deleted.
6045 (sd_region_without_exit): Deleted.
6046 (create_single_exit_edge): Deleted.
6047 (unmark_exit_edges): Deleted.
6048 (mark_exit_edges): Deleted.
6049 (create_sese_edges): Deleted.
6050 (build_graphite_scops): Deleted.
6051 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
6052 (build_scops): Use the new scop_builder to build scops.
6053 (dot_all_scops_1): Use the new pretty printer. Print loop father
6055 (loop_body_is_valid_scop): New. Return true if loop body is a
6057 (class scop_builder): New. Builds SCoPs for polyhedral
6059 (scop_builder): New constructor.
6060 (static sese_l invalid_sese): sese_l with invalid edges.
6061 (get_sese): Get an sese (from a loop) if possible, invalid_sese
6063 (get_nearest_dom_with_single_entry): Get nearest dominator of a
6064 basic_block with single entry. Return NULL if we get to the
6065 beginning of a function.
6066 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
6067 a basic_block with single exit. Return NULL if we get to the
6068 beginning of a function.
6069 (print_sese): Pretty-print SESE.
6070 (merge_sese): Merge two SESEs if possible and return the new SESE.
6071 (build_scop_depth): Start building the SCoP within a loop nest.
6072 (build_scop_breadth): Start building the SCoP at a single loop
6073 depth. Merge adjacent SESEs if valid.
6074 (can_represent_loop_1): Returns true if Graphite can represent
6075 loop inside SCoP. Helper for can_represent_loop.
6076 (can_represent_loop): Returns true if Graphite can represent LOOP
6077 and all its nested loops in SCoP.
6078 (loop_is_valid_scop): Returns true if LOOP and all its nests
6079 constitute a valid SCoP.
6080 (region_has_one_loop): Returns true of a region has only one loop.
6081 (add_scop): Add SCoP to the list of valid scops. Removes an
6082 already existing scop if it intersects with or subsumed by this one.
6083 (harmful_stmt_in_region): Returns true if SCoP has any statment
6084 which cannot be represented by Graphite.
6085 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
6086 (remove_subscops): Remove any SCoP from the list of already found
6087 SCoPs, if subsumed by S1.
6088 (intersects): Return true if region bounded by SCoPs S1 and S2
6090 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
6091 * graphite.c (print_graphite_scop_statistics):
6092 (print_graphite_statistics): Print SCoP info while debugging.
6093 (graphite_initialize): Early exit in case number of loops in a
6094 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
6095 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
6096 (graphite_finalize):
6097 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
6098 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
6099 (recompute_all_dominators): Recalculate POST_DOMINATORS.
6100 * tree-cfg.c (print_loops): Print the function name while printing
6103 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6104 Sebastian Pop <s.pop@samsung.com>
6106 PR tree-optimization/67700
6107 * graphite-sese-to-poly.c (parameter_index_in_region): Call
6108 invariant_in_sese_p_rec.
6109 (extract_affine): Same.
6110 (rewrite_cross_bb_scalar_deps): Call update_ssa.
6111 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
6112 * sese.h (invariant_in_sese_p_rec): Declare.
6114 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
6116 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
6118 2015-09-28 Jiong Wang <jiong.wang@arm.com>
6121 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6122 Jiong Wang <jiong.wang@arm.com>
6124 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
6125 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
6126 (REG_CLASS_NAMES): Likewise.
6127 (REG_CLASS_CONTENTS): Likewise.
6128 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
6129 (aarch64_register_move_cost): Likewise.
6130 (aarch64_load_symref_appropriately): Invoke the new added pattern if
6132 * config/aarch64/constraints.md (Uc0): New constraint.
6134 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
6136 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
6138 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
6140 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
6141 SECTION_EXCLUDE in XO mapping class.
6143 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
6146 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
6147 and handle ne and eq codes.
6148 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
6149 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
6150 CONST_INT_P. Use reverse_condition.
6151 (sh_split_treg_set_expr): Likewise.
6153 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
6155 * config/arm/types.md (type): Add rotate_imm.
6156 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
6158 (*rorsi3_insn_uxtw): Likewise.
6159 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
6160 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
6161 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
6163 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6165 PR rtl-optimization/67481
6166 * ifcvt.c (contains_ccmode_rtx_p): New function.
6167 (insn_valid_noce_process_p): Use it.
6169 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6171 PR rtl-optimization/67456
6172 PR rtl-optimization/67464
6173 PR rtl-optimization/67465
6174 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
6175 move in the mode of x. Handle combination of complex and simple
6176 block pairs as well as the case when one is empty.
6178 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6180 * doc/gimple.texi: Update references to gimple_statement_base.
6181 * gdbhooks.py: Likewise.
6182 * gimple.h: Likewise.
6184 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6186 * config/sparc/driver-sparc.c: map LEON to leon3
6188 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6190 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
6191 and make it inverse to change default
6192 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
6194 * doc/invoke.texi: Document change of default
6196 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6198 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
6199 true on %f0 for a target without FPU.
6200 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
6202 (untyped_return): Do not load %f0 for a target without FPU.
6204 2015-09-28 Andrew Pinski <apinski@cavium.com>
6206 * config/aarch64/aarch64.md (prefetch):
6207 Change the predicate of operand 0 to register_operand.
6209 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
6211 * config/i386/predicates.md (register_sse4nonimm_operand): New
6213 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
6214 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
6215 Use register_sse4nonimm_operand as operand 0 predicate.
6216 (*vec_extractv8hi_sse2): Remove insn pattern.
6217 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
6218 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
6220 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
6221 Kaz Kojima <kkojima@gcc.gnu.org>
6224 * config/sh/sh-protos.h (sh_lra_p): Declare.
6225 * config/sh/sh.c (sh_lra_p): Make non-static.
6226 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
6227 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
6228 Expand into addsi3_scr if operands[2] if needed.
6229 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
6230 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
6231 (addsi3_scr, *addsi3): New insn_and_split patterns.
6233 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
6235 PR rtl-optimization/64164
6236 PR tree-optimization/67312
6240 * cfgexpand.c (parm_in_stack_slot_p): Remove.
6241 (ssa_default_def_partition): Remove.
6242 (get_rtl_for_parm_ssa_default_def): Remove.
6243 (set_rtl): Check that RTL assignments match expectations.
6244 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
6245 default def location for params and results. Record SSA names
6246 or types in REG and MEM attrs, respectively.
6247 (set_parm_rtl): New.
6248 (expand_one_ssa_partition): Drop logic that assigned MEMs with
6249 unassigned addresses.
6250 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
6251 deferred stack alloc vars.
6252 (expand_used_vars): Skip partitions holding parm default defs.
6253 Move adjust_one_expanded_partition_var loop...
6254 (pass_expand::execute): ... here. Drop redundant assert.
6255 Adjust comments before the final loop over all ssa names.
6256 Require assigned rtl of parms and results to match exactly.
6257 Reset its attributes to match them, not any other variables in
6259 (expand_debug_expr): Use entry value for PARM's default defs
6260 only iff they have zero nondebug uses.
6261 * cfgexpand.h (parm_in_stack_slot_p): Remove.
6262 (get_rtl_for_parm_ssa_default_def): Remove.
6263 (set_parm_rtl): Declare.
6264 * doc/invoke.texi: Improve wording.
6265 * explow.c (promote_decl_mode): Fix promote_function_mode for
6266 result decls not by reference.
6267 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
6268 bypass TYPE_MODE to get the actual vector mode.
6269 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
6270 2015-08-19's changes as follows. Drop include of
6271 basic-block.h and df.h.
6272 (rtl_for_parm): Remove.
6273 (maybe_reset_rtl_for_parm): Remove.
6274 (parm_in_unassigned_mem_p): Remove.
6275 (use_register_for_decl): Add logic for RESULT_DECLs matching
6276 assign_parms' behavior.
6277 (split_complex_args): Revert.
6278 (assign_parms_augmented_arg_list): Revert. Add comment
6279 referencing the logic above.
6280 (assign_parm_adjust_stack_rtl): Revert.
6281 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
6282 of SET_DECL_RTL. Set up a REG if the parm demands so.
6283 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
6284 calls into a single set_parm_rtl. Set up a temporary RTL
6285 temporarily for expand_assignment.
6286 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
6287 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
6288 (assign_bounds): Revert.
6289 (assign_parms): Revert. Use set_parm_rtl.
6290 (allocate_struct_function): Relayout result and parms of
6291 non-abstruct functions.
6292 (expand_function_start): Revert. Use set_parm_rtl. If the
6293 result is not a hard reg, create a pseudo from the promoted
6294 mode of the default def. Promote static chain mode.
6295 * tree-outof-ssa.c (remove_ssa_form): Drop unused
6296 partition_has_default_def. Set up
6297 partitions_for_parm_default_defs.
6298 (finish_out_of_ssa): Remove partition_has_default_def.
6299 Release partitions_for_parm_default_defs.
6300 * tree-outof-ssa.h (struct ssaexpand): Remove
6301 partition_has_default_def. Add
6302 partitions_for_parm_default_defs.
6303 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
6305 (build_ssa_conflict_graph): Fix conflict-detection of default
6306 defs of even unused default defs of params and results.
6307 (for_all_parms): New.
6308 (create_default_def): New.
6309 (register_default_def): New.
6310 (coalesce_with_default): New.
6311 (create_outofssa_var_map): Create default defs for all parms
6312 and results, and register their partitions. Add GIMPLE_RETURN
6313 operands as coalesce candidates with results. Add default
6314 defs of each parm or result as coalesce candidates with its
6315 other defs. Mark each result def, and each default def of
6316 parms, as used_in_copy.
6317 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
6318 with the ssa names, even anonymous ones. Drop
6319 parm_in_stack_slot_p calls. Require same signedness and
6321 (coalesce_ssa_name): Add coalesce candidates for all defs of
6322 each parm and result, even unused ones.
6323 (parm_default_def_partition_arg): New type.
6324 (set_parm_default_def_partition): New.
6325 (get_parm_default_def_partitions): New.
6326 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
6327 * tree-ssa-live.c (partition_view_init): Regard unused defs of
6328 parms and results as used.
6329 (verify_live_on_entry): Don't error out just because they're
6332 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
6334 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6335 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
6336 (output_fde): Don't output length for debug_frame on AIX.
6337 (output_call_frame_info): Don't output length for debug_frame on AIX.
6338 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
6339 HAVE_XCOFF_DWARF_EXTRAS.
6340 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
6341 HAVE_XCOFF_DWARF_EXTRAS.
6342 (output_compilation_unit_header): Don't output length on AIX.
6343 (output_pubnames): Don't output length on AIX.
6344 (output_aranges): Delete argument. Compute length locally. Don't
6345 output length on AIX.
6346 (output_line_info): Don't output length on AIX.
6347 (dwarf2out_finish): Don't compute aranges_length.
6348 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6349 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
6350 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
6351 symbol decoration for AIX.
6352 (rs6000_xcoff_debug_unwind_info): New.
6353 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
6355 (rs6000_xcoff_declare_function_name): Emit different
6356 .function pseudo-op when DWARF2_DEBUG. Don't call
6357 xcoffout_declare_function for DWARF2_DEBUG.
6358 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
6360 * config/rs6000/aix71.h: New.
6361 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
6363 * configure: Regenerate.
6364 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
6367 2015-09-26 Jeff Law <law@redhat.com>
6369 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
6371 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
6374 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
6377 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
6378 undefined behaviour.
6380 * config/cris/cris.md (asrandb): Fix left shift undefined
6382 (asrandw): Likewise.
6384 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
6387 * lra-constarints.c (match_reload): Check presence of the input pseudo
6388 in the output operand.
6390 2015-09-25 Tobias Burnus <burnus@net-b.de>
6392 * doc/invoke.texi (-fsanitize): Minor wording tweak.
6394 2015-09-25 Tobias Burnus <burnus@net-b.de>
6396 * doc/invoke.texi (-fsanitize): Update URLs.
6398 2015-09-25 Teresa Johnson <tejohnson@google.com>
6400 * opts.c (finish_options): Unset -freorder-blocks-and-partition
6401 if not using profile.
6403 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
6405 PR pretty-print/67567
6406 * pretty-print.c (pp_string): Add gcc_checking_assert.
6407 * pretty-print.h (output_buffer_append_r): Likewise.
6409 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
6412 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
6413 addr2 individually. Don't emit logical or insn if one is known to
6414 be aligned approriately.
6415 (sh_expand_cmpnstr): Likewise.
6417 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
6419 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
6420 __builtin_aarch64_fp[sc]r arguments into a register.
6422 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
6424 * config.gcc (x86_archs): Replace lakemount with lakemont.
6425 (with_cpu): Likewise.
6426 (with_arch): Likewise.
6427 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6428 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
6429 __tune_lakemount__ with __tune_lakemont__.
6430 * config/i386/i386.c (lakemount_cost): Renamed to ...
6431 (lakemont_cost): This.
6432 (m_LAKEMOUNT): Renamed to ...
6434 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
6435 (processor_target_table): Replace "lakemount" with "lakemont".
6436 (processor_alias_table): Likewise.
6437 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
6439 (ix86_adjust_cost): Likewise.
6440 (ia32_multipass_dfa_lookahead): Likewise.
6441 * config/i386/i386.h (processor_type): Likewise.
6442 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
6443 * doc/invoke.texi: Replace lakemount with lakemont. Replace
6444 Lakemount with Lakemont.
6446 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
6448 * config.gcc (x86_archs): Replace iamcu with lakemount.
6449 (with_cpu): Likewise.
6450 (with_arch): Likewise.
6451 * doc/invoke.texi: Likewise.
6452 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6453 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
6454 __tune_iamcu__ with __tune_lakemount__.
6455 * config/i386/i386.c (iamcu_cost): Renamed to ...
6456 (lakemount_cost): This.
6457 (m_IAMCU): Renamed to ...
6458 (m_LAKEMOUNT): This.
6459 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
6460 (processor_target_table): Replace "iamcu" with "lakemount".
6461 (processor_alias_table): Likewise.
6462 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
6463 PROCESSOR_LAKEMOUNT.
6464 (ix86_adjust_cost): Likewise.
6465 (ia32_multipass_dfa_lookahead): Likewise.
6466 * config/i386/i386.h (processor_type): Likewise.
6467 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
6469 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
6471 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
6472 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
6474 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
6475 (pa_expand_compare_and_swap_loop): New.
6476 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
6477 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
6478 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
6479 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
6480 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
6483 2015-09-24 Michael Collison <michael.collison@linaro.org>
6486 * read-md.c (read_name): Allow mode iterators inside angle
6487 brackets in rtl expressions.
6489 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
6492 * ira-color.c (update_allocno_cost): Add parameter.
6493 (update_costs_from_allocno): Decrease conflict cost. Pass the new
6496 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6499 * opts-common.c (prune_options): Discard all -fdiagnostics-color
6500 but the last one, which is moved to the front to be processed
6502 * opts.c (enable_warning_as_error): Reject options that do not
6505 2015-09-24 Jiong Wang <jiong.wang@arm.com>
6507 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
6509 2015-09-24 Jiong Wang <jiong.wang@arm.com>
6511 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
6512 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
6513 (aarch64_cannot_force_const_mem): Likewise.
6514 (aarch64_classify_address): Likewise.
6515 (aarch64_classify_symbolic_expression): Likewise.
6516 (aarch64_print_operand): Likewise.
6517 (aarch64_classify_symbol): Likewise.
6518 (aarch64_mov_operand_p): Likewise.
6519 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
6520 (aarch64_mov_operand): Likewise.
6522 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
6524 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
6525 for info->spe_gp_size.
6527 2015-09-24 Richard Biener <rguenther@suse.de>
6530 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
6533 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
6535 * tree-object-size.c (plus_stmt_object_size)
6536 (cond_expr_object_size): Change the formal parameters from gimple
6538 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
6539 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
6540 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
6542 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6544 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
6545 Check for ld -type pie on Solaris 11.x and 12.
6546 * configure: Regenerate.
6547 * config.in: Regenerate.
6549 * gcc.c (LD_PIE_SPEC): Allow redefinition.
6551 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
6552 (STARTFILE_SPEC): Use it.
6553 (ENDFILE_CRTEND_SPEC): Define.
6554 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
6555 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
6556 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
6557 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
6558 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
6559 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
6560 (ENDFILE_ARCH_SPEC): Define.
6561 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
6563 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6565 * configure.ac (gcc_cv_solaris_crts): New test.
6566 * configure. Regenerate.
6567 * config.in: Regenerate.
6568 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
6569 HAVE_SOLARIS_CRTS variant.
6571 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6573 * tree-inline.h (count_insns_seq): Delete prototype.
6574 (estimate_num_insns_seq): Define prototype.
6575 * tree-inline.c (count_insns_seq): Delete.
6576 (estimate_num_insns_seq): Remove static qualifier.
6577 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
6578 with estimate_num_insns_seq.
6580 2015-09-24 Richard Biener <rguenther@suse.de>
6582 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
6584 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
6585 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
6587 (ao_ref_init_from_vn_reference): Record clique and base in the
6589 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
6591 2015-09-24 Richard Biener <rguenther@suse.de>
6593 PR tree-optimization/48885
6594 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
6595 as not including any restrict tags from other pointers.
6597 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6599 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
6600 character when appending to offload_targets.
6602 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
6603 offload targets by commas, not colons.
6604 * config.in: Regenerate.
6605 * configure: Likewise.
6606 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
6607 instead of setting up the default offload targets here...
6608 (process_command): ..., do it here.
6610 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
6611 targets are separated by commas.
6612 * config.h.in: Regenerate.
6614 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6615 Nathan Sidwell <nathan@codesourcery.com>
6617 * omp-low.h (omp_reduction_init_op): Declare.
6618 * omp-low.c (omp_reduction_init_op): New, broken out of ...
6619 (omp_reduction_init): ... here. Call it.
6620 * tree-parloops.c (initialize_reductions): Use
6621 omp_reduction_init_op.
6623 2015-09-23 Richard Biener <rguenther@suse.de>
6626 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
6627 undefined overflow unless they will cancel out.
6629 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6631 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
6634 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
6637 * opts.h (write_langs): Declare.
6638 * opts-global.c (write_langs): Make it extern.
6640 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
6643 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
6644 overlapping regs when matching the pattern.
6646 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
6648 * config/aarch64/aarch64-simd.md
6649 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
6650 (aarch64_float_truncate_hi_v4sf_le): New.
6651 (aarch64_float_truncate_hi_v4sf_be): Likewise.
6653 2015-09-23 Richard Biener <rguenther@suse.de>
6655 * tree-ssa-structalias.c (intra_create_variable_infos): Build
6656 representatives for all restrict qualified pointer destinations.
6658 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6660 * config/i386/i386.md (define_code_attr mshift): New.
6661 (define_mode_iterator SWI1248_AVX512BW): Rename ...
6662 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
6664 (define_insn "*k<logic><mode>"): Use new iterator name.
6665 (define_insn "*<mshift><mode>3"): New.
6667 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
6670 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
6671 mark the block as accessible.
6673 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
6675 * function.c (thread_prologue_and_epilogue_insns): Delete
6676 orig_entry_edge argument to try_shrink_wrapping.
6677 * shrink-wrap.c (can_get_prologue): New function.
6678 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
6679 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
6680 can_get_prologue where needed. Remove code that finds a single
6681 edge for the prologue. Remove code that tests if any reg clobbered
6682 by the prologue is live on the prologue edge. Remove code that finds
6683 the new prologue edge after duplicating blocks. Make a new prologue
6685 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
6687 2015-09-22 Jeff Law <law@redhat.com>
6689 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
6692 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
6694 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
6695 -Wtemplates, -Wnamespaces): Document.
6697 2015-09-22 Tom de Vries <tom@codesourcery.com>
6699 PR tree-optimization/67671
6700 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
6701 pointer references as restrict.
6703 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6705 * config/nios2/nios2.c (nios2_legitimize_address): When handling
6706 'reg + reloc' cases, allow first operand to be non-REG, and use
6707 force_reg() to enforce address pattern.
6709 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
6712 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
6713 (define_mode_iterator VI12_AVX_AVX512F): New.
6714 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
6715 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
6716 (define_insn "*<code><mode>3"): ... Into new pattern using
6717 VI12_AVX_AVX512F iterators without masking.
6719 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6721 * config.gcc: Support "skylake-avx512".
6722 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6723 PROCESSOR_SKYLAKE_AVX512.
6724 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
6725 (processor_target_table): Add "skylake-avx512".
6726 (PTA_SKYLAKE_AVX512): Define.
6727 (ix86_option_override_internal): Add "skylake_avx512".
6728 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
6729 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
6730 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
6731 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
6732 * doc/invoke.texi (skylake-avx512): New.
6734 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6736 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
6738 (define_insn "kunpcksi"): Ditto.
6739 (define_insn "kunpckdi"): Ditto.
6741 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6743 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
6744 iterator instead of fixed modes.
6746 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6748 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6750 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
6751 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
6752 out_result. Update to support update-fetch operations.
6753 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
6754 Adjust for change to aarch64_gen_atomic_ldop.
6755 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
6756 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
6757 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
6758 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
6759 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
6761 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6763 * config/aarch64/aarch64-protos.h
6764 (aarch64_atomic_ldop_supported_p): Declare.
6765 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
6766 (enum aarch64_atomic_load_op_code): New.
6767 (aarch64_emit_atomic_load_op): New.
6768 (aarch64_gen_atomic_ldop): Update to support load-operate
6770 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
6772 (aarch64_atomic_<atomic_optab><mode>): New.
6773 (aarch64_atomic_<atomic_optab><mode>_lse): New.
6774 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
6775 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
6776 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
6778 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6780 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
6781 (UNSPECV_ATOMIC_LDOP_OR): New.
6782 (UNSPECV_ATOMIC_LDOP_BIC): New.
6783 (UNSPECV_ATOMIC_LDOP_XOR): New.
6784 (UNSPECV_ATOMIC_LDOP_PLUS): New.
6787 (aarch64_atomic_load<atomic_ldop><mode>): New.
6789 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6791 * config/aarch64/aarch64.md
6792 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
6795 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6797 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6799 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
6800 (aarch64_gen_atomic_ldop): New.
6801 (aarch64_split_atomic_op): Fix whitespace and add a comment.
6802 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
6803 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
6804 (atomic_exchange<mode>): Replace with an expander.
6805 (aarch64_atomic_exchange<mode>): New.
6806 (aarch64_atomic_exchange<mode>_lse): New.
6807 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
6808 (aarch64_atomic_swp<mode>): New.
6810 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6812 * tree-inline.c (expand_call_inline): Use inform for extra note.
6813 Do not give a note with UNKNOWN_LOCATION.
6814 Replace input_location with gimple_location (stmt).
6815 Use true/false instead of TRUE/FALSE.
6817 2015-09-22 Tom de Vries <tom@codesourcery.com>
6819 PR tree-optimization/67666
6820 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
6821 with single field non-conservative.
6823 2015-09-21 David S. Miller <davem@davemloft.net>
6827 2015-09-11 David S. Miller <davem@davemloft.net>
6829 * config/sparc/constraints.md: Make "U" constraint a real register
6831 * config/sparc/sparc.c (TARGET_LRA_P): Define.
6832 (D_MODES, DF_MODES): Add missing cast.
6833 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6834 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6835 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6837 * config/sparc/sparc.h (PROMOTE_MODE): Define.
6838 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6839 provide these insn when flag_pic.
6841 2015-09-17 David S. Miller <davem@davemloft.net>
6843 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
6845 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
6847 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6848 (HARD_REGNO_CALLER_SAVE_MODE): Define.
6849 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6850 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6851 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6852 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6853 provide when flag_pic.
6855 2015-09-21 Jeff Law <law@redhat.com>
6857 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
6860 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6862 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
6864 2015-09-21 Richard Biener <rguenther@suse.de>
6866 * passes.c (rest_of_decl_compilation): Do not call
6867 dwarf2out_early_global_decl for aliases.
6869 2015-09-21 Richard Biener <rguenther@suse.de>
6872 * dwarf2out.c (add_location_or_const_value_attribute): Remove
6873 attribute parameter. Early exit if either DW_AT_const_value
6874 or DW_AT_location are present already.
6875 (gen_variable_die): Adjust caller.
6876 (dwarf2out_late_global_decl): Likewise.
6878 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6881 * config/sh/sh.c (sh_remove_overlapping_post_inc,
6882 sh_peephole_emit_move_insn): Add new functions.
6883 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
6884 sh_peephole_emit_move_insn): Declere them.
6885 * config/sh/sh.md: Use them in various peephole2 patterns.
6887 2015-09-21 Richard Biener <rguenther@suse.de>
6890 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
6891 address with -fno-delete-null-pointer-checks.
6893 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
6895 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
6896 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
6897 (reduc_uplus_v16qi): Remove.
6899 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
6900 (reduc_<VEC_reduc_name>_v2df): Remove.
6901 (reduc_<VEC_reduc_name>_v4sf): Remove.
6902 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
6904 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
6905 gen_ function by removing * prefix.
6906 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
6908 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6911 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
6912 Print i_bound without converting it to a tree.
6914 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
6916 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
6917 operands[4] operands[5] swap with std::swap, removed tmp variable.
6918 (arm_evpc_neon_vzip): Replaced in0/in1 and
6919 out0/out1 swaps with std::swap, removed x variable.
6920 (arm_evpc_neon_vtrn): Replaced in0/int1 and
6921 out0/out1 swaos with std::swap, removed x variable.
6922 (arm_expand_vec_perm_const_1): Replaced
6923 d->op0/d->op1 swap with std::swap, removed x variable.
6924 (arm_evpc_neon_vuzp): Replaced in0/in1 and
6925 out0/out1 swaps with std::swap, removed x variable.
6927 2015-09-21 Jonathan Yong <10walls@gmail.com>
6929 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
6930 sysroot/usr/lib/32api for additional win32 libraries,
6931 fixes failing Cygwin bootstrapping.
6933 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6935 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
6937 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6940 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
6941 (*mov_t_msb_neg): Rewrite negc pattern.
6943 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6945 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
6946 immediate generation code.
6948 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6950 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
6951 redundant immediate generation code.
6953 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6955 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
6956 (AARCH64_NUM_BITMASKS): Remove.
6957 (aarch64_bitmasks_cmp): Remove.
6958 (aarch64_build_bitmask_table): Remove.
6960 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6962 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
6963 slow immediate matching loops with a faster algorithm.
6965 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6967 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
6970 2015-09-20 Jeff Law <law@redhat.com>
6972 PR tree-optimization/47679
6973 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
6974 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
6975 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
6976 (thread_through_normal_block): Use record_temporary_equivalences.
6978 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
6980 * coretypes.h (gimple): Change typedef to be a forward declaration.
6981 * gimple.h (gimple_statement_base): rename to gimple.
6982 * (all functions and types using gimple): Adjust.
6985 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
6986 David Edelsohn <dje.gcc@gmail.com>
6988 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
6989 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6990 (EH_FRAME_THROUGH_COLLECT2): Define.
6991 (EH_TABLES_CAN_BE_READ_ONLY): Define.
6992 (ASM_OUTPUT_DWARF_PCREL): Define.
6993 (ASM_OUTPUT_DWARF_DATAREL): Define.
6995 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
6997 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
7000 2015-09-18 Jeff Law <law@redhat.com>
7002 PR tree-optimization/47679
7003 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
7005 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
7006 object. Update constructor.
7007 (pass_dominator::execute): Corresponding chagnes to declaration
7008 and initialization of avail_exprs_stack. Update constructor call
7009 for dom_opt_dom_walker object.
7010 (lookup_avail_expr, record_cond): Accept additional argument. Pass
7011 it down to children as needed.
7012 (record_equivalences_from_incoming_edge): Likewise.
7013 (eliminate_redundant_computations): Likewise.
7014 (record_equivalences_from_stmt): Likewise.
7015 (simplify_stmt_for_jump_threading): Likewise.
7016 (record_temporary_equivalences): Likewise.
7017 (optimize_stmt): Likewise.
7018 (dom_opt_dom_walker::thread_across_edge): Update access to
7019 avail_exprs_stack object and pass it to children as needed.
7020 (dom_opt_dom_walker::before_dom_children): Similarly.
7021 (dom_opt_dom_walker::after_dom_children): Similarly.
7022 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
7023 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
7024 Add avail_expr_stack argument. Pass it to children as needed.
7025 (dummy_simplify): Likewise.
7026 (simplify_control_stmt_condition): Likewise.
7027 (thread_around_empty_blocks): Likewise.
7028 (thread_through_normal_block): Likewise.
7029 (thread_across_edge): Likewise.
7030 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7031 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
7033 PR tree-optimization/47679
7034 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
7036 (dom_opt_dom_walker): New private member holding the const_and_copies
7037 object. Update constructor.
7038 (pass_dominator::execute): Corresponding changes to declaration
7039 and initialization of const_and_copies. Update constructor call
7040 for the dom_opt_dom_walker object.
7041 (record_temporary_equivalences): Accept const_and_copies argument
7042 pass it down to children as needed.
7043 (record_equality): Likewise.
7044 (record_equivalences_from_incoming_edge): Likewise.
7045 (cprop_into_successor_phis, optimize_stmt): Likewise.
7046 (eliminate_redundant_computations): Likewise.
7047 (dom_opt_dom_walker::thread_across_edge): Update access to
7048 const_and_copies object and pass it to children as needed.
7049 (dom_opt_dom_walker::before_dom_children): Similarly.
7050 (dom_opt_dom_walker::after_dom_children): Similarly.
7052 PR tree-optimization/47679
7053 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
7054 it into the avail_exprs_stack class.
7055 (pass_dominator::execute): Corresponding changes to declaration
7056 and initialization of avail_exprs. Pass avail_exprs to
7057 dump_dominator_optimization_stats.
7058 (record_cond): Extract avail_exprs from avail_exprs_stack.
7059 (lookup_avail_expr): Similarly.
7060 (htab_staticstics): Remove unnecessary prototype. Move to earlier
7062 (dump_dominator_optimization_stats): Make static and prototype.
7063 Add argument for the hash table to dump.
7064 (debug_dominator_optimization_stats): Remove.
7065 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
7067 (debug_dominator_optimization_stats): Similarly.
7068 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
7069 "void" in prototype for pop_to_marker method. Add accessor method
7070 for the underlying avail_exprs table.
7072 * tree-ssa-threadedge.c: Remove trailing whitespace.
7074 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
7076 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
7078 (pa_ldil_cint_p): Likewise.
7079 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
7080 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
7082 * config/pa/pa.md: Likewise.
7084 2015-09-18 David Malcolm <dmalcolm@redhat.com>
7086 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
7087 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
7088 (diagnostic_show_locus): Likewise.
7089 (diagnostic_print_caret_line): Likewise.
7090 * diagnostic-show-locus.c: New file.
7092 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
7094 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
7095 "back" parameter. Declare label in #if block.
7097 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
7100 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
7101 the address to a register.
7103 2015-09-18 Jeff Law <law@redhat.com>
7105 PR tree-optimization/47679
7106 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
7107 * tree-ssa-dom.c: Remove unnecessary header includes.
7108 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
7109 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
7110 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
7111 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
7112 (pass_phi_only_cprop::execute): Likewise.
7113 (make_pass_phi_only_cprop): Likewise.
7114 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
7115 uses of file scoped statics by passing the required objects
7116 as parameters wherever needed.
7118 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
7119 David Edelsohn <dje.gcc@gmail.com>
7121 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
7122 EH_FRAME_THROUGH_COLLECT2.
7123 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
7125 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
7126 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
7127 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
7128 * except.c (switch_to_exception_section): Use a read-only section
7129 even if EH_FRAME_SECTION_NAME is undefined.
7130 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
7131 * collect2.c (write_c_file_stat): Provide dbase on AIX.
7132 (scan_prog_file): Don't export __dso_handle nor
7134 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7135 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7136 (ASM_OUTPUT_DWARF_PCREL): Define.
7137 (ASM_OUTPUT_DWARF_DATAREL): Define.
7138 (EH_FRAME_THROUGH_COLLECT2): Define.
7139 (EH_FRAME_IN_DATA_SECTION): Delete.
7140 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
7141 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
7143 (rs6000_asm_output_dwarf_datarel): Declare.
7144 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
7145 (rs6000_aix_asm_output_dwarf_datarel): New.
7146 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
7147 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
7148 (EH_FRAME_THROUGH_COLLECT2): Define.
7149 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
7150 (EH_FRAME_THROUGH_COLLECT2): Define.
7151 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7152 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
7153 (EH_FRAME_THROUGH_COLLECT2): New.
7154 (ASM_OUTPUT_DWARF_DATAREL): New.
7155 * doc/tm.texi: Regenerate.
7157 2015-09-18 Richard Biener <rguenther@suse.de>
7159 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
7160 we're in early phase.
7161 (schedule_generic_params_dies_gen): Likewise.
7162 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
7163 work as possible, retaining unhandled cases.
7164 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
7165 clear out generic_type_instances at the end.
7166 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
7167 (dwarf2out_early_finish): ... here. Do most of
7168 gen_remaining_tmpl_value_param_die_attribute here.
7170 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
7172 PR tree-optimization/67283
7173 * tree-sra.c (type_consists_of_records_p): Rename to...
7174 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7175 (completely_scalarize_record): Rename to...
7176 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7177 (scalarize_elem): New.
7178 (analyze_all_variable_accesses): Follow renamings.
7180 2015-09-18 Richard Biener <rguenther@suse.de>
7182 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
7185 2015-09-18 Richard Biener <rguenther@suse.de>
7187 PR tree-optimization/66142
7188 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
7189 treat MEM[&x] and x the same.
7190 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
7191 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
7192 when we simplified sth.
7193 (vn_reference_maybe_forwprop_address): Likewise.
7194 (valueize_refs_1): When we simplified through
7195 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
7196 set valueized_anything to true.
7197 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
7198 one ref kills the other instead of just a offset-based test.
7199 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
7200 for the operand_equal_p test to compare bases and also compare
7203 2015-09-17 Christian Bruel <christian.bruel@st.com>
7205 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
7207 2015-09-17 Richard Henderson <rth@redhat.com>
7210 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
7211 pointers that encode the alignment of the object.
7213 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
7215 PR rtl-optimization/66790
7216 * df-problems.c (LIVE): Amend documentation.
7218 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
7220 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
7222 (GTFILES): Replace optabs.c with optabs-libfunc.c.
7223 * genopinit.c (main): Add an include guard to insn-opinit.h.
7224 Protect the rtx_code parts with NUM_RTX_CODE.
7225 * optabs.h: Split parts out to...
7226 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
7227 * optabs.c: Split parts out to...
7228 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
7229 * cilk-common.c: Include optabs-query.h rather than optabs.h.
7230 * fold-const.c: Likewise.
7231 * target-globals.c: Likewise.
7232 * tree-if-conv.c: Likewise.
7233 * tree-ssa-forwprop.c: Likewise.
7234 * tree-ssa-loop-prefetch.c: Likewise.
7235 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
7236 Remove unncessary include files.
7237 * tree-ssa-phiopt.c: Likewise.
7238 * tree-ssa-reassoc.c: Likewise.
7239 * tree-switch-conversion.c: Likewise.
7240 * tree-vect-data-refs.c: Likewise.
7241 * tree-vect-generic.c: Likewise.
7242 * tree-vect-loop.c: Likewise.
7243 * tree-vect-patterns.c: Likewise.
7244 * tree-vect-slp.c: Likewise.
7245 * tree-vect-stmts.c: Likewise.
7246 * tree-vrp.c: Likewise.
7247 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
7248 rather than optabs.h.
7249 * expr.c: Include optabs-tree.h.
7250 * function.c: Likewise.
7252 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
7255 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
7256 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
7257 * config/arm/arm.c: Include common/common-target.h.
7258 (use_return_insn): Return 0 if the static chain register was saved
7259 above a non-APCS frame.
7260 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
7261 (struct scratch_reg): New.
7262 (get_scratch_register_on_entry): New function.
7263 (release_scratch_register_on_entry): Likewise.
7264 (arm_emit_probe_stack_range): Likewise.
7265 (output_probe_stack_range): Likewise.
7266 (arm_expand_prologue): Factor out code dealing with the IP register
7267 for nested function and adjust it for stack checking.
7268 Invoke arm_emit_probe_stack_range if static builtin stack checking
7270 (thumb1_expand_prologue): Sorry out if static builtin stack checking
7272 (arm_expand_epilogue): Add the saved static chain register, if any, to
7273 the amount of pre-pushed registers to pop.
7274 (arm_frame_pointer_required): Return true if static stack checking is
7275 enabled and we want to catch the exception with the EABI unwinder.
7276 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
7277 (UNSPEC_PROBE_STACK_RANGE): Likewise.
7278 * config/arm/arm.md (probe_stack): New insn.
7279 (probe_stack_range): Likewise.
7281 2015-09-17 Richard Biener <rguenther@suse.de>
7283 * genmatch.c (parser::parse_expr): Improve error message
7284 for mis-placed flags.
7286 2015-09-17 Richard Biener <rguenther@suse.de>
7288 * passes.c (rest_of_decl_compilation): Always call early_global_decl
7289 debug hook when we created a varpool node.
7290 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
7291 dwarf2out_early_global_decl, when not just add location or
7292 value attributes to existing DIEs.
7294 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
7296 * config/aarch64/aarch64.md (copysigndf3): New.
7297 (copysignsf3): Likewise.
7299 2015-09-17 David S. Miller <davem@davemloft.net>
7301 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
7302 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
7303 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
7304 (HARD_REGNO_CALLER_SAVE_MODE): Define.
7305 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
7306 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
7307 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
7308 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
7309 provide when flag_pic.
7311 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
7313 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
7314 object_allocator change.
7316 2015-09-17 Bin Cheng <bin.cheng@arm.com>
7318 PR tree-optimization/66388
7319 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
7320 (dump_iv): Dump no_overflow information.
7321 (alloc_iv): Initialize new field for struct iv.
7322 (mark_bivs): Count number of no_overflow bivs.
7323 (find_deriving_biv_for_expr, record_biv_for_address_use): New
7325 (idx_find_step): Call new functions above.
7326 (add_candidate_1, add_candidate): New paramter.
7327 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
7328 (get_computation_aff): Simplify convertion of cand for BIV.
7329 (get_computation_cost_at): Step cand's base if necessary.
7331 2015-09-17 Bin Cheng <bin.cheng@arm.com>
7333 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
7335 (tree_simplify_using_condition): Ditto.
7336 (simplify_using_initial_conditions): Ditto.
7337 (loop_exits_before_overflow): Pass new argument to function
7338 simplify_using_initial_conditions. Remove case for type conversions
7340 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
7342 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
7343 in iv base using loop initial conditions.
7345 2015-09-16 Jeff Law <law@redhat.com>
7347 PR tree-optimization/47679
7348 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
7349 (free_all_edge_infos): Use it.
7350 (allocate_edge_info): Free preexisting edge info data.
7351 (pass_dominator::execute): Set up initial edge info structures.
7352 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
7354 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
7355 If non-null, then push/pop markers appropriately.
7356 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7357 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
7360 2015-09-16 James Bowman <james.bowman@ftdichip.com>
7362 * config/ft32/ft32.c: Fix the memory address space predicate.
7364 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
7367 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
7368 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7370 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7372 * toplev.h (check_global_declaration): Remove declaration.
7373 * toplev.c (check_global_declaration): Move to ...
7374 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
7375 (analyze_functions): Update call.
7377 2015-09-16 David S. Miller <davem@davemloft.net>
7379 * lra-constraints.c (simplify_operand_subreg): Do not assume that
7380 lowpart of a SUBREG has offset zero.
7382 2015-09-16 Jeff Law <law@redhat.com>
7384 PR tree-optimization/47679
7385 * tree-ssa-dom.c (enum expr_kind): Moved from here to
7386 tree-ssa-scopedtables.h.
7387 (struct hashable_expr, class expr_hash_elt): Likewise.
7388 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
7389 Move associated methods into tree-ssa-scopedtables.c.
7390 (avail_expr_hash, initialize_expr_from_cond): Similarly.
7391 (hashable_expr_equal_p, add_expr_commutative): Likewise.
7392 (add_hashable_expr): Likewise.
7393 (record_cond): Delete element directly.
7394 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
7395 private copy ctor and assignment operator methods.
7396 (expr_elt_hasher): Inline trivial methods.
7397 (initialize_expr_from_cond): Prototype.
7398 * tree-ssa-scopedtables.c: Add necessary includes, functions and
7399 methods that were previously in tree-ssa-dom.c. Improve various
7402 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
7404 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
7406 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
7409 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7412 2015-09-16 Richard Biener <rguenther@suse.de>
7415 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
7416 location of possibly shared trees.
7418 2015-09-16 Richard Biener <rguenther@suse.de>
7421 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
7423 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
7425 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
7426 offset and size computations instead of HOST_WIDE_INT.
7428 2015-09-16 Richard Biener <rguenther@suse.de>
7431 * fold-const.c (extract_muldiv_1): Properly extend multiplication
7432 result before builting a tree via wide_int_to_tree.
7434 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
7436 * Makefile.in: Add memory-block.cc
7437 (pool_allocator::initialize): Use fixed block size.
7438 (pool_allocator::release): Use memory_block_pool.
7439 (pool_allocator::allocate): Likewise.
7440 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
7442 * cfg.c (initialize_original_copy_tables): Likewise.
7443 * cselib.c (elt_list_pool, elt_loc_list_pool,
7444 cselib_val_pool): Likewise.
7445 * df-problems.c (df_chain_alloc): Likewise.
7446 * df-scan.c (df_scan_alloc): Likewise.
7447 * dse.c (cse_store_info_pool, rtx_store_info_pool,
7448 read_info_type_pool, insn_info_type_pool, bb_info_pool,
7449 group_info_pool, deferred_change_pool): Likewise.
7450 * et-forest.c (et_nodes, et_occurrences): Likewise.
7451 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
7452 ipcp_agg_lattice_pool): Likewise.
7453 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
7454 * ipa-profile.c (histogram_pool): Likewise.
7455 * ipa-prop.c (ipa_refdesc_pool): Likewise.
7456 * ira-build.c (live_range_pool, allocno_pool, object_pool,
7457 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
7458 * ira-color.c (update_cost_record_pool): Likewise.
7459 * lra-lives.c (lra_live_range_pool): Likewise.
7460 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
7461 * memory-block.cc: New file.
7462 * memory-block.h: New file.
7463 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
7464 * sched-deps.c (sched_deps_init): Likewise.
7465 * sel-sched-ir.c (sched_lists_pool): Likewise.
7466 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
7467 * tree-sra.c (access_pool): Likewise.
7468 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7469 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
7470 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
7471 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7472 * tree-ssa-strlen.c (strinfo_pool): Likewise.
7473 * tree-ssa-structalias.c (variable_info_pool): Likewise.
7474 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
7475 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
7477 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
7479 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
7481 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
7484 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
7486 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
7487 to pass TLS call argument, according to current ABI.
7488 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
7489 callx0 for TLS call, according to current ABI.
7491 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7493 * tree-eh.c (lower_try_finally_dup_block): Clear location information
7494 on stack restore statements.
7495 (decide_copy_try_finally): Do not consider a stack restore statement as
7496 coming from sources.
7498 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
7500 * config/alpha/alpha.c (alpha_expand_block_clear): Use
7501 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
7503 2015-09-15 Jeff Law <law@redhat.com>
7505 PR tree-optimization/47679
7506 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
7507 methods and private members.
7508 (avail_exprs_stack): Similarly. Change type of global
7509 from a pair of expr_hash_elt_t to the new class.
7510 (expr_elt_hasher::hash): Corresponding changes.
7511 (expr_elt_hasher::equal): Similarly.
7512 (avail_expr_hash): Similarly.
7513 (pass_dominator::execute): Similarly.
7514 (dom_opt_dom_walker::thread_across_edge): Similarly.
7515 (record_cond): Similarly.
7516 (dom_opt_dom_walker::before_dom_children): Similarly.
7517 (dom_opt_dom_walker::after_dom_children): Similarly.
7518 (lookup_avail_expr): Likewise.
7519 (initialize_hash_element): Now a expr_hash_elt constructor.
7520 (initialize_hash_element_from_expr): Similarly.
7521 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
7522 (free_expr_hash_elt): Call dtor for the element.
7523 (remove_local_expressions_from_table): Now the "pop_to_marker"
7524 method in the available_exprs_stack class.
7525 (avail_expr_stack::record_expr): Method factored out.
7526 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
7528 (hashable_expr_equal_p): Fix formatting.
7530 2015-09-15 David Malcolm <dmalcolm@redhat.com>
7532 * input.h (location_get_source_line): Drop "expanded_location"
7533 param in favor of a file and line number.
7534 * input.c (location_get_source_line): Likewise.
7535 (dump_location_info): Update for change in signature of
7536 location_get_source_line.
7537 * diagnostic.c (diagnostic_print_caret_line): Likewise.
7539 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7541 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
7542 Bump to 4KB for SJLJ exceptions.
7543 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
7544 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
7545 * doc/tm.texi: Regenerate.
7547 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7549 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
7550 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
7553 2015-09-15 Richard Biener <rguenther@suse.de>
7555 PR tree-optimization/67470
7556 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
7557 structure for PHI hoisting by inserting a forwarder block
7560 2015-09-15 Christian Bruel <christian.bruel@st.com>
7562 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
7563 (arm_option_print): New function.
7565 2015-09-15 Christian Bruel <christian.bruel@st.com>
7568 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
7569 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
7570 Remove flags parameter.
7571 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
7572 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
7573 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
7574 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
7575 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
7576 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
7577 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
7578 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
7580 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7582 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
7584 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
7585 AARCH64_VALID_SIMD_DREG_MODE.
7587 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7589 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
7590 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
7591 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
7592 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
7593 aarch64_ld4_lane<mode>): Combine together, making...
7594 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7595 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7596 aarch64_st4_lane<mode>): Combine together, making...
7597 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7598 * config/aarch64/iterators.md (nregs): Add comment.
7600 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7602 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
7603 Change operand mode from <V_TWO_ELEM> to BLK.
7604 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
7605 (aarch64_vec_store_lanesoi_lane<mode): Likewise
7606 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7607 (aarch64_ld2_lane<mode>): Likewise.
7608 (aarch64_st2_lane<VQ:mode>): Likewise.
7609 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
7611 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7613 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
7614 Change operand mode from <V_FOUR_ELEM> to BLK.
7615 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
7616 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
7617 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7618 (aarch64_ld4_lane<mode>): Likewise.
7619 (aarch64_st4_lane<mode>): Likewise.
7620 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
7622 2015-09-15 Richard Biener <rguenther@suse.de>
7625 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
7626 transfer EH info from old to new stmt.
7627 (replace_call_with_value): Likewise.
7628 (replace_call_with_call_and_fold): Likewise.
7629 (gimple_fold_builtin_memory_op): Likewise.
7630 (gimple_fold_builtin_memset): Likewise.
7631 (gimple_fold_builtin_stpcpy): Likewise.
7632 (gimple_fold_call): Likewise.
7634 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7636 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
7638 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
7639 (aarch64_simd_intEI_type_node): Likewise.
7640 (aarch64_simd_builtin_std_type): Remove EImode case.
7641 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
7642 * config/aarch64/aarch64-modes.def: Remove EImode.
7644 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7646 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
7647 Change operand mode from <V_THREE_ELEM> to BLK.
7648 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
7649 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
7650 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7651 (aarch64_ld3_lane<mode>): Likewise.
7652 (aarch64_st3_lane<mode>): Likewise.
7653 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
7655 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7657 * config/aarch64/aarch64-simd.md
7658 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
7659 Change all TImode operands to BLKmode.
7660 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
7661 Change all EImode operands to BLKmode.
7662 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
7663 Change all OImode operands to BLKmode.
7665 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
7666 and call set_mem_size.
7667 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
7669 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
7671 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7673 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
7675 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
7677 (vec_store_lanesci_lane<mode>): Rename to...
7678 (aarch64_vec_store_lanesci_lane<mode>): ...this.
7680 (vec_store_lanesxi_lane<mode>): Rename to...
7681 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
7683 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7684 aarch64_st4_lane<mode>): Follow renaming.
7686 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7688 * config/s390/s390.c (s390_const_operand_ok): Add missing
7691 2015-09-15 Richard Biener <rguenther@suse.de>
7694 * lto-streamer.h (lto_location_cache::current_sysp): Properly
7696 * lto-streamer-out.c (clear_line_info): Likewise.
7698 2015-09-15 Richard Biener <rguenther@suse.de>
7700 * doc/match-and-simplify.texi: Fix wording.
7702 2015-09-15 Bin Cheng <bin.cheng@arm.com>
7704 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
7705 unnecessary type conversion in op1.
7707 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
7709 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
7710 (dup_block_and_redirect): Delete function.
7711 (can_dup_for_shrink_wrapping): New function.
7712 (fix_fake_fallthrough_edge): New function.
7713 (try_shrink_wrapping): Rewrite function.
7714 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
7716 2015-09-14 Rich Felker <dalias@libc.org>
7718 * configure.ac: Change target pattern for sh TLS support
7719 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
7720 * configure: Regenerate.
7722 2015-09-14 Jeff Law <law@redhat.com>
7724 PR tree-optimization/47679
7725 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
7726 type rather than void *.
7728 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7731 * diagnostic.c (diagnostic_initialize): Do not set
7732 some_warnings_are_errors.
7733 (diagnostic_finish): Use DK_WERROR count instead.
7734 (diagnostic_report_diagnostic): Do not set
7735 some_warnings_are_errors.
7736 * diagnostic.h (struct diagnostic_context): Remove
7737 some_warnings_are_errors.
7739 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
7741 * config/sparc/predicates.md (const_all_ones_operand): Use
7742 CONSTM1_RTX to simplify definition.
7744 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
7747 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
7750 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
7752 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
7753 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
7754 OPT_fshow_column to handled saved option cases.
7755 (append_compiler_options): Do not skip the above added options.
7757 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7760 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
7761 nopcrelative_literal_loads.
7762 (aarch64_classify_address): Likewise.
7763 (aarch64_constant_pool_reload_icode): Define.
7764 (aarch64_secondary_reload): Handle secondary reloads for
7766 (aarch64_override_options): Handle nopcrelative_literal_loads.
7767 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
7768 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7770 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7771 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
7772 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
7774 * doc/invoke.texi (mpc-relative-literal-loads): Document.
7776 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
7779 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
7780 sync_compare_and_swap_optab libcall to target_oval.
7782 2015-09-14 Marek Polacek <polacek@redhat.com>
7784 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
7786 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
7788 2015-09-11 Mark Wielaard <mjw@redhat.com>
7791 * toplev.c (check_global_declaration): Check and use
7792 warn_unused_const_variable.
7793 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
7794 (-Wunused-variable): Remove non-constant. For C implies
7795 -Wunused-const-variable.
7796 (-Wunused-const-variable): New.
7798 2015-09-14 Richard Biener <rguenther@suse.de>
7800 * doc/match-and-simplify.texi: Update for changed syntax
7801 of inner ifs and the new switch expression.
7803 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
7805 * config/i386/haswell.md: New file describing Haswell pipeline.
7806 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
7807 haswell-like processors.
7808 (ix86_reassociation_width): Increase reassociation width for 64-bit
7809 Haswell processor family.
7810 * config/i386/i386.md: Introduce haswell cpu and include new md file.
7812 2015-09-14 Richard Biener <rguenther@suse.de>
7814 * doc/match-and-simplify.texi: Fixup some formatting issues
7815 and document the 's' flag.
7817 2015-09-13 Olivier Hainque <hainque@adacore.com>
7818 Eric Botcazou <ebotcazou@adacore.com>
7820 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
7821 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
7822 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
7823 (TARGET_CPU_gr5): Likewise.
7824 (TARGET_CPU_gr6): Likewise.
7825 (MULTILIB_DEFAULTS): Likewise.
7826 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
7827 for mcpu=gr5 and mcpu=gr6.
7828 (MULTILIB_DIRNAMES): Adjust accordingly.
7830 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7832 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
7833 (mem_ref_p): Likewise.
7834 (outermost_indep_loop): Adjust.
7835 (mem_ref_in_stmt): Likewise.
7836 (determine_max_movement): Likewise.
7837 (mem_ref_alloc): Likewise.
7838 (record_mem_ref_loc): Likewise.
7839 (set_ref_stored_in_loop): Likewise.
7840 (mark_ref_stored): Likewise.
7841 (gather_mem_refs_stmt): Likewise.
7842 (mem_refs_may_alias_p): Likewise.
7843 (for_all_locs_in_loop): Likewise.
7844 (struct rewrite_mem_ref_loc): Likewise.
7845 (rewrite_mem_refs): Likewise.
7846 (struct first_mem_ref_loc_1): Likewise.
7847 (first_mem_ref_loc): Likewise.
7848 (struct sm_set_flag_if_changed): Likewise.
7849 (execute_sm_if_changed_flag_set): Likewise.
7850 (execute_sm): Likewise.
7851 (hoist_memory_references):
7852 (struct ref_always_accessed): Likewise.
7853 (ref_always_accessed_p): Likewise.
7854 (refs_independent_p): Likewise.
7855 (record_dep_loop): Likewise.
7856 (ref_indep_loop_p_1): Likewise.
7857 (ref_indep_loop_p_2): Likewise.
7858 (ref_indep_loop_p): Likewise.
7859 (can_sm_ref_p): Likewise.
7860 (find_refs_for_sm): Likewise.
7861 (tree_ssa_lim_finalize): Likewise.
7863 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7865 * dwarf2out.c (dw_attr_ref): Remove typedef.
7866 (dw_line_info_ref): Likewise.
7867 (pubname_ref): Likewise.
7868 (dw_ranges_ref): Likewise.
7869 (dw_ranges_by_label_ref): Likewise.
7870 (comdat_type_node_ref): Likewise.
7872 (get_AT_low_pc): Likewise.
7873 (get_AT_hi_pc): Likewise.
7874 (get_AT_string): Likewise.
7875 (get_AT_flag): Likewise.
7876 (get_AT_unsigned): Likewise.
7877 (get_AT_ref): Likewise.
7878 (get_AT_file): Likewise.
7879 (remove_AT): Likewise.
7880 (print_die): Likewise.
7881 (check_die): Likewise.
7882 (die_checksum): Likewise.
7883 (attr_checksum_ordered): Likewise.
7884 (struct checksum_attributes): Likewise.
7885 (collect_checksum_attributes): Likewise.
7886 (die_checksum_ordered): Likewise.
7887 (same_die_p): Likewise.
7888 (is_declaration_die): Likewise.
7889 (clone_die): Likewise.
7890 (clone_as_declaration): Likewise.
7891 (copy_declaration_context): Likewise.
7892 (break_out_comdat_types): Likewise.
7893 (copy_decls_walk): Likewise.
7894 (output_location_lists): Likewise.
7895 (external_ref_hasher::hash): Likewise.
7896 (optimize_external_refs_1): Likewise.
7897 (build_abbrev_table): Likewise.
7898 (size_of_die): Likewise.
7899 (unmark_all_dies): Likewise.
7900 (size_of_pubnames): Likewise.
7901 (output_die_abbrevs): Likewise.
7902 (output_die): Likewise.
7903 (output_pubnames): Likewise.
7904 (add_ranges_num): Likewise.
7905 (add_ranges_by_labels): Likewise.
7906 (add_high_low_attributes): Likewise.
7907 (gen_producer_string): Likewise.
7908 (dwarf2out_set_name): Likewise.
7909 (new_line_info_table): Likewise.
7910 (prune_unused_types_walk_attribs): Likewise.
7911 (prune_unused_types_update_strings): Likewise.
7912 (prune_unused_types): Likewise.
7913 (resolve_addr): Likewise.
7914 (optimize_location_lists_1): Likewise.
7915 (index_location_lists): Likewise.
7916 (dwarf2out_finish): Likewise.
7918 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7920 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
7922 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7924 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
7925 (dump_asserts_for): Adjust.
7926 (register_new_assert_for): Likewise.
7927 (process_assert_insertions): Likewise.
7928 (insert_range_assertions): Likewise.
7930 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7932 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
7934 (new_temp_expr_table): Adjust.
7935 (free_temp_expr_table): Likewise.
7936 (version_to_be_replaced_p): Likewise.
7937 (make_dependent_on_partition): Likewise.
7938 (add_to_partition_kill_list): Likewise.
7939 (remove_from_partition_kill_list): Likewise.
7940 (add_dependence): Likewise.
7941 (finished_with_expr): Likewise.
7942 (process_replaceable): Likewise.
7943 (kill_expr): Likewise.
7944 (kill_virtual_exprs): Likewise.
7945 (mark_replaceable): Likewise.
7946 (find_replaceable_in_bb): Likewise.
7947 (find_replaceable_exprs): Likewise.
7948 (debug_ter): Likewise.
7950 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7952 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
7953 (struct btr_user): Rename from btr_user_s.
7954 (struct btr_def): Rename from btr_def_s.
7955 (find_btr_def_group): Adjust.
7956 (add_btr_def): Likewise.
7957 (new_btr_user): Likewise.
7958 (note_other_use_this_block): Likewise.
7959 (compute_defs_uses_and_gen): Likewise.
7960 (link_btr_uses): Likewise.
7961 (build_btr_def_use_webs): Likewise.
7962 (block_at_edge_of_live_range_p): Likewise.
7963 (btr_def_live_range): Likewise.
7964 (combine_btr_defs): Likewise.
7965 (move_btr_def): Likewise.
7966 (migrate_btr_def): Likewise.
7967 (migrate_btr_defs): Likewise.
7969 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7971 * var-tracking.c (shared_hash_def): Rename to shared_hash.
7972 (shared_hash): Remove typedef.
7973 (struct dataflow_set): Adjust.
7974 (shared_hash_unshare): Likewise.
7975 (dataflow_set_merge): Likewise.
7976 (vt_initialize): Likewise.
7977 (vt_finalize): Likewise.
7979 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7981 * var-tracking.c (struct location_chain): Rename from
7983 (struct variable_part): Adjust.
7984 (variable_htab_free): Likewise.
7985 (unshare_variable): Likewise.
7986 (get_init_value): Likewise.
7987 (get_addr_from_local_cache): Likewise.
7988 (drop_overlapping_mem_locs): Likewise.
7989 (val_reset): Likewise.
7990 (struct variable_union_info): Likewise.
7991 (variable_union): Likewise.
7992 (find_loc_in_1pdv): Likewise.
7993 (insert_into_intersection): Likewise.
7994 (intersect_loc_chains): Likewise.
7995 (canonicalize_loc_order_check): Likewise.
7996 (canonicalize_values_mark): Likewise.
7997 (canonicalize_values_star): Likewise.
7998 (canonicalize_vars_star): Likewise.
7999 (variable_merge_over_cur): Likewise.
8000 (remove_duplicate_values): Likewise.
8001 (variable_post_merge_new_vals): Likewise.
8002 (variable_post_merge_perm_vals): Likewise.
8003 (find_mem_expr_in_1pdv): Likewise.
8004 (dataflow_set_preserve_mem_locs): Likewise.
8005 (dataflow_set_remove_mem_locs): Likewise.
8006 (variable_part_different_p): Likewise.
8007 (onepart_variable_different_p): Likewise.
8008 (find_src_set_src): Likewise.
8009 (dump_var): Likewise.
8010 (set_slot_part): Likewise.
8011 (clobber_slot_part): Likewise.
8012 (delete_slot_part): Likewise.
8013 (vt_expand_var_loc_chain): Likewise.
8014 (emit_note_insn_var_location): Likewise.
8015 (vt_finalize): Likewise.
8017 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8019 * dse.c (store_info_t): Remove typedef.
8020 (group_info_t): Likewise.
8021 (const_group_info_t): Likewise.
8022 (deferred_change_t): Likewise.
8023 (get_group_info): Adjust.
8024 (free_store_info): Likewise.
8025 (canon_address): Likewise.
8026 (clear_rhs_from_active_local_stores): Likewise.
8027 (record_store): Likewise.
8028 (replace_read): Likewise.
8029 (check_mem_read_rtx): Likewise.
8030 (scan_insn): Likewise.
8031 (remove_useless_values): Likewise.
8032 (dse_step1): Likewise.
8033 (dse_step2_init): Likewise.
8034 (dse_step2_nospill): Likewise.
8035 (scan_stores_nospill): Likewise.
8036 (scan_reads_nospill): Likewise.
8037 (dse_step3_exit_block_scan): Likewise.
8038 (dse_step3): Likewise.
8039 (dse_step5_nospill): Likewise.
8040 (dse_step6): Likewise.
8042 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8044 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
8045 (alias_set_entry): Remove typedef.
8046 (alias_set_subset_of): Adjust.
8047 (alias_sets_conflict_p): Likewise.
8048 (init_alias_set_entry): Likewise.
8049 (get_alias_set): Likewise.
8050 (new_alias_set): Likewise.
8051 (record_alias_subset): Likewise.
8053 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
8055 * doc/install.texi (Downloading the source): Mark up
8056 contrib/download_prerequisites properly and drop leading "./".
8058 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8060 * config/arc/arc.h: Remove define of STRUCT_VALUE.
8061 * config/lm32/lm32.h: Likewise.
8062 * config/mep/mep.h: Likewise.
8063 * config/visium/visium.h: Likewise.
8064 * system.h: Poison STRUCT_VALUE macro.
8066 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
8068 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
8069 CONSTANT_P operands.
8071 2015-09-11 David S. Miller <davem@davemloft.net>
8073 * config/sparc/constraints.md: Make "U" constraint a real register
8075 * config/sparc/sparc.c (TARGET_LRA_P): Define.
8076 (D_MODES, DF_MODES): Add missing cast.
8077 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8078 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8079 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8081 * config/sparc/sparc.h (PROMOTE_MODE): Define.
8082 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8083 provide these insn when flag_pic.
8085 2015-09-11 Jeff Law <law@redhat.com>
8087 PR tree-optimization/47679
8088 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
8089 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
8090 member with m_. Update inline member functions as necessary. Add
8092 * tree-ssa-scopedtables.c: Update const_and_copies's member
8093 functions to use m_ prefix to access the stack.
8095 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
8097 * graphite-optimize-isl.c (disable_tiling): Remove.
8098 (get_schedule_for_band): Do not use disable_tiling.
8099 (get_prevector_map): Delete function.
8100 (enable_polly_vector): Remove.
8101 (get_schedule_for_band_list): Remove dead code.
8103 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
8105 * graphite-optimize-isl.c (get_tile_map): Refactor.
8106 (get_schedule_for_band): Same.
8107 (getScheduleForBand): Same.
8108 (get_prevector_map): Same.
8109 (get_schedule_for_band_list): Same.
8110 (get_schedule_map): Same.
8111 (get_single_map): Same.
8112 (apply_schedule_map_to_scop): Same.
8113 (optimize_isl): Same.
8115 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8118 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
8120 * config/aarch64/iterators.md (GPF_TF_F16): New.
8123 2015-09-10 Nathan Sidwell <nathan@acm.org>
8125 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
8126 (nvptx_reorg): Adjust comments.
8128 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
8131 * configure.ac: Check if setenv and unsetenv are declared.
8132 * configure: Rebuild.
8133 * config.in: Rebuild.
8134 * system.h: Declare setenv and unsetenv if not declared.
8136 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8138 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
8139 commentary to simplify permute mask adjustment equation.
8140 (special_handling_values): Add SH_VPERM.
8141 (const_load_sequence_p): New function.
8142 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
8143 the mask loaded from the constant pool.
8144 (adjust_vperm): New function.
8145 (handle_special_swappables): Call adjust_vperm.
8146 (dump_swap_insn_table): Handle SH_VPERM.
8148 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
8150 * shrink-wrap.c (requires_stack_frame_p): Remove static.
8151 * shrink-wrap.h (requires_stack_frame_p): Put back.
8153 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
8155 * reload1.c (elimination_costs_in_insn): Locally turn
8156 -Wmaybe-uninitialized into a warning.
8158 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
8160 * shrink-wrap.c (requires_stack_frame_p): Make static.
8161 (prepare_shrink_wrap): Likewise.
8162 (dup_block_and_redirect): Likewise.
8163 * shrink-wrap.h: Remove declarations of those functions.
8165 2015-09-10 Mark Wielaard <mjw@redhat.com>
8167 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
8169 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
8172 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
8173 missing simplify_gen_subreg.
8175 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8177 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
8178 the vector element is bigger than 64 bit.
8180 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8182 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
8183 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
8185 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8187 * config/s390/s390.c: Add V1TImode to constant pool modes.
8189 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8192 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
8193 predicate. Set predicable_short_it attr to "no".
8195 2015-09-10 Jiong Wang <jiong.wang@arm.com>
8197 PR rtl-optimization/67421
8198 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
8199 left wide shift tranformation.
8201 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
8203 * common/config/arc/arc-common.c: Remove references to A5.
8204 * config/arc/arc-opts.h: Likewise.
8205 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
8206 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
8207 * config/arc/t-arc-newlib: Likewise.
8209 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
8211 * config/arc/arc.md (length): Fix attribute length for conditional
8212 executed instructions with long immediate.
8214 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8216 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
8217 type for second alternative.
8219 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
8221 * doc/invoke.texi (Downloading GCC): Mention
8222 contrib/download_prerequisites script.
8224 2015-09-10 Jakub Jelinek <jakub@redhat.com>
8227 * gimplify.c (gimplify_omp_for): If inner stmt is not found
8228 for combined loop, assert seen_error () and return GS_ERROR.
8231 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
8232 if decl is already in outer->variables.
8235 * gimplify.c (gimplify_scan_omp_clauses): Instead of
8236 asserting that decl is not specified in octx->variables,
8237 break out of the loop if it is.
8240 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
8241 iterator is not explicitly determined, but is defined inside
8242 of the combined workshare region, handle it like if it has
8243 DECL_EXPR in OMP_FOR_PRE_BODY.
8245 2015-09-09 Nathan Sidwell <nathan@acm.org>
8247 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
8248 (*cmp<mode>): Add assembler spacing.
8249 (setcc_int<mode>, set_cc_float<mode>): Likewise.
8250 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
8252 (write_func_decl_from_insn): Refactor argument loops & comma emission.
8253 (nvptx_expand_call): Likewise.
8254 (nvptx_output_call_insn): Likewise.
8255 (nvptx_reorg_subreg): Add spacing.
8257 2015-09-09 Marek Polacek <polacek@redhat.com>
8260 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
8263 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
8266 * doc/invoke.texi ([Wsubobject-linkage]): Document.
8268 2015-09-09 Tom de Vries <tom@codesourcery.com>
8270 * params-list.h: Add missing copyright notice.
8272 2015-09-09 Nathan Sidwell <nathan@acm.org>
8274 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
8275 sel_truesi, not andsi.
8277 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8279 * config/arm/arm.md (*subsi3_compare0): Rename to...
8280 (subsi3_compare0): ... This.
8281 (modsi3): New define_expand.
8282 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
8283 when operand is power of 2.
8285 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8287 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
8288 (*neg<mode>2_compare0): Rename to...
8289 (neg<mode>2_compare0): ... This.
8290 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
8291 Move check for speed inside the if-then-elses. Reflect
8292 CSNEG sequence in MOD by power of 2 case.
8294 2015-09-09 Alan Modra <amodra@gmail.com>
8297 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
8298 reload replacement for PRE_MODIFY address reg.
8300 2015-09-09 Sebastian Pop <s.pop@samsung.com>
8302 PR tree-optimization/53852
8303 * config.in: Regenerate.
8304 * configure: Regenerate.
8305 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
8306 * graphite-optimize-isl.c (optimize_isl): Stop computation when
8307 PARAM_MAX_ISL_OPERATIONS is reached.
8308 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
8309 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
8310 result equal to isl_stat_ok as the status now can be isl_error_quota.
8311 (subtract_commutative_associative_deps): Same.
8312 (compute_deps): Same.
8314 2015-09-08 Aditya Kumar <hiraditya@msn.com>
8315 Sebastian Pop <s.pop@samsung.com>
8317 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8318 Return the parameter if it was saved in corresponding
8319 parameter_rename_map of the region.
8320 (copy_def): Copy def from sese region to the newly created region.
8321 (copy_internal_parameters): Copy all the internal parameters defined
8322 within a region to the newly created region.
8323 (graphite_regenerate_ast_isl): Copy parameters to the new region before
8324 translating isl to gimple.
8325 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
8326 the loop-nest does not have any data-references.
8327 (build_graphite_scops): Create a scop only when there is at least one
8329 (contains_only_close_phi_nodes): Deleted.
8330 (print_graphite_scop_statistics): Deleted
8331 (print_graphite_statistics): Deleted
8332 (limit_scops): Deleted.
8333 (build_scops): Removed call to limit_scops.
8334 * sese.c (new_sese): Construct.
8335 (free_sese): Destruct.
8336 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
8338 (set_rename): Pass sese region so that parameters inside the region can
8339 be added to its parameter_rename_map.
8340 (rename_uses): Pass sese region.
8341 (graphite_copy_stmts_from_block): Do not copy parameters that have been
8342 generated in the header of the scop. For each SSA_NAME in the
8343 parameter_rename_map rename its usage.
8344 (invariant_in_sese_p_rec): Return false if tree t is defined outside
8346 (scalar_evolution_in_region): If the tree t is invariant just return t.
8347 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
8348 struct sese to keep track of all the parameters which need renaming.
8349 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
8351 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
8353 2015-09-08 Tom de Vries <tom@codesourcery.com>
8355 * Makefile.in (generated_files): Add params.list.
8356 (params.list, s-params.list): Add rule.
8357 * params.h (enum compiler_param): Include params-list.h. Move define
8358 DEFPARAM, include params.def and undef DEFPARAM ...
8359 * params-list.h: ... here. New file.
8361 2015-09-08 David Malcolm <dmalcolm@redhat.com>
8363 * pretty-print.h (printer_fn): Fix typo in comment.
8365 2015-09-07 Jeff Law <law@redhat.com>
8367 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
8369 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8371 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
8372 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
8373 (arm_neon_fp16_hw): New.
8375 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8377 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
8378 UNITS_PER_WORD >= 4.
8380 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8382 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
8383 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
8384 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
8385 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
8386 (aarch64_float_extend_lo_v2df): Rename to...
8387 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
8389 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
8390 (float_extend_lo): Add v4sf.
8392 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
8393 * config/aarch64/iterators.md (VQ_HSF): New iterator.
8394 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
8395 (Vwide): New mode_attr.
8397 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8399 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
8400 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
8401 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
8402 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
8403 V4HF and V8HF variants to iterator.
8405 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
8407 * config/aarch64/iterators.md (VDQF_F16): New.
8408 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
8410 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8412 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
8413 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8414 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
8415 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
8416 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
8417 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8418 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
8419 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
8420 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
8421 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
8422 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
8423 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8424 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
8425 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
8426 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
8427 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
8428 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
8429 vld1q_dup_f16): New.
8431 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8433 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
8434 Reparameterize to...
8435 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
8436 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
8437 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
8439 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
8441 (float_truncate_lo_): Use BUILTIN_VDF iterator.
8443 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
8445 * config/aarch64/iterators.md (VDF, Vdtype): New.
8446 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
8448 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8450 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
8451 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
8452 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
8453 Add __builtin_aarch64_simd_hf.
8454 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
8455 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
8456 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
8457 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
8458 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
8459 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
8460 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
8461 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
8462 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
8464 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
8465 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
8466 (VDC, Vdbl): Add V4HF.
8468 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8470 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
8471 V4HFmode and V8HFmode.
8472 (aarch64_split_simd_move): Add case for V8HFmode.
8473 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
8474 (aarch64_simd_builtin_std_type): Handle HFmode.
8475 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
8477 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
8478 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
8479 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
8481 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
8484 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
8485 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
8487 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
8488 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
8489 vst1q_lane_f16): New.
8490 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
8491 (VALLDI_F16, VALL_F16): New.
8492 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
8493 Add cases for V4HF and V8HF.
8494 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
8496 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8498 * config/arm/arm-builtins.c (VAR11, VAR12): New.
8499 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
8500 vld4_dup): Add v4hf variant.
8501 (vget_high, vget_low): Add v8hf variant.
8502 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
8503 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
8504 v4hf and v8hf variants.
8506 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
8508 (V_DOUBLE): Add case for V4HF.
8510 (V_HALF): Add case for V8HF.
8511 (VDQX): Add V4HF, V8HF.
8512 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
8513 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
8515 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
8516 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
8517 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
8518 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
8519 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
8520 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
8521 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
8522 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
8523 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
8525 (neon_vcreate, neon_vreinterpretv8qi<mode>,
8526 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
8527 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
8528 Change VDX to VD_RE.
8530 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
8531 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
8532 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
8534 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
8535 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
8536 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
8537 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
8538 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
8539 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
8540 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
8541 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
8542 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
8544 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8546 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
8547 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
8548 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
8549 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
8550 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8551 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
8552 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
8553 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
8554 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
8555 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
8558 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8560 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
8562 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
8564 * config/arm/arm-builtins.c (v8hf_UP): New.
8565 (arm_init_simd_builtin_types): Initialise Float16x8_t.
8567 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
8569 * config/arm/arm_neon.h (float16x8_t): New typedef.
8571 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8573 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
8574 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
8575 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
8576 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
8577 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8578 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
8579 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
8580 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
8581 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8582 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
8584 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
8586 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
8587 non-alphanumeric characters in the symbol name.
8589 2015-09-07 Marek Polacek <polacek@redhat.com>
8592 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
8595 2015-09-07 Marek Polacek <polacek@redhat.com>
8597 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
8599 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
8601 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
8604 2015-09-04 Jakub Jelinek <jakub@redhat.com>
8607 * tree-ssa-live.c: Include cfgloop.h.
8608 (remove_unused_locals): Clear loop->simduid if simduid is about
8609 to be removed from cfun->local_decls.
8611 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8614 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
8617 2015-09-04 Tom de Vries <tom@codesourcery.com>
8619 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
8621 2015-09-04 Jeff Law <law@redhat.com>
8623 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
8624 unnecessary constructor. It's now trivial and implemented inside...
8625 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
8626 constructor. Add comments to various methods. Remove unused
8628 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
8629 * tree-vrp.c (identify_jump_threads): Likewise.
8630 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
8632 (thread_across_edge): Similarly.
8633 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
8634 arguments in constructor call.
8636 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
8638 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
8639 temp path contains a '-'.
8641 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8642 Petr Murzin <petr.murzin@intel.com>
8643 Kirill Yukhin <kirill.yukhin@intel.com>
8645 * config/i386/i386-builtin-types.def
8646 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
8647 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
8648 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
8649 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
8650 * config/i386/i386.c
8651 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
8652 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8653 IX86_BUILTIN_SCATTERALTDIV16SI.
8654 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
8655 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
8656 __builtin_ia32_scatteraltdiv8si.
8657 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
8658 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8659 IX86_BUILTIN_SCATTERALTDIV16SI.
8660 (ix86_vectorize_builtin_scatter): New.
8661 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
8662 ix86_vectorize_builtin_scatter.
8664 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8665 Petr Murzin <petr.murzin@intel.com>
8666 Kirill Yukhin <kirill.yukhin@intel.com>
8668 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
8669 * doc/tm.texi: Regenerate.
8670 * target.def: Add scatter builtin.
8671 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
8672 for loads/stores in case of gather/scatter accordingly.
8673 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8674 STMT_VINFO_GATHER_P(S).
8675 (vect_check_gather): Rename to ...
8676 (vect_check_gather_scatter): this.
8677 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
8678 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
8679 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8680 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
8681 variable and new checkings for it accordingly.
8683 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8684 STMT_VINFO_GATHER_P(S).
8685 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8686 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
8688 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8690 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
8692 (mulv16qi3): New define_expand.
8694 2015-09-03 Martin Sebor <msebor@redhat.com>
8697 * doc/extend.texi (Other Builtins): Document when the address
8698 of a built-in function can be taken.
8700 2015-09-03 Richard Biener <rguenther@suse.de>
8702 * dwarf2out.c (flush_limbo_die_list): Split out from ...
8703 (dwarf2out_early_finish): ... here.
8704 (dwarf2out_finish): Do not call dwarf2out_early_finish but
8705 flush_limbo_die_list. Assert we have no deferred asm names.
8707 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8709 * optabs.c (expand_binop): Don't create a broadcast vector with a
8710 source element wider than the inner mode.
8712 2015-09-03 Richard Biener <rguenther@suse.de>
8714 * varasm.c (output_constant): Use fold_convert instead of
8717 2015-09-03 Tom de Vries <tom@codesourcery.com>
8719 PR tree-optimization/65637
8720 * omp-low.c (expand_omp_for_static_chunk): Handle case that
8721 fin_bb has 2 predecessors.
8723 2015-09-03 Tom de Vries <tom@codesourcery.com>
8725 PR tree-optimization/65637
8726 * omp-low.c (find_phi_with_arg_on_edge): New function.
8727 (expand_omp_for_static_chunk): Fix inner loop phi.
8729 2015-09-03 Tom de Vries <tom@codesourcery.com>
8731 PR tree-optimization/65637
8732 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
8735 2015-09-03 Tom de Vries <tom@codesourcery.com>
8737 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
8739 2015-09-03 Tom de Vries <tom@codesourcery.com>
8741 * doc/invoke.texi (parloops-chunk-size): Add item.
8742 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
8743 * tree-parloops.c: Include params.h.
8744 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
8745 param parloops-chunk-size is used.
8747 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8750 * fold-const.c (fold_binary_loc) : Move
8751 Transform (x >> c) << c into x & (-1<<c) or
8752 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
8753 types using simplify and match.
8754 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
8755 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
8757 2015-09-03 Richard Biener <rguenther@suse.de>
8760 * tree-ssa-structalias.c (ctor_for_analysis): New function.
8761 (create_variable_info_for_1): Use ctor_for_analysis instead
8763 (create_variable_info_for): Likewise.
8765 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
8768 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
8769 in new callgraph edge.
8771 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
8776 * config/aarch64/aarch64-simd.md
8777 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
8778 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
8779 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
8780 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
8782 2015-09-02 Alan Modra <amodra@gmail.com>
8784 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
8785 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
8786 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
8788 2015-09-02 Alan Modra <amodra@gmail.com>
8791 * config/rs6000/predicates.md (current_file_function_operand): Don't
8792 return true for weak symbols.
8793 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
8795 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
8796 Andrew Bennett <andrew.bennett@imgtec.com>
8798 * config/mips/mips-opts.h (mips_cb_setting): New enum.
8799 * config/mips/mips-protos.h: Add definitions for
8800 mips_output_jump and mips_output_equal_conditional_branch
8801 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
8803 (mips_emit_compare): Add support for the MIPS R6 conditional
8805 (mips_process_sync_loop): Likewise.
8806 (mips_output_order_conditional_branch): Likewise.
8807 (mips16_build_call_stub): Change MIPS_CALL to
8809 (mips_print_operand_punctuation): Update 's' case to only
8810 apply to micromips r2.
8811 (mips_adjust_insn_length): Add support for forbidden slot
8813 (mips_avoid_hazard): Likewise.
8814 (mips_reorg_process_insns): Likewise.
8815 (mips_output_jump): New function.
8816 (mips_output_equal_conditional_branch): Likewise.
8817 (mips_output_conditional_branch): Use jrc/bc if compact
8818 branch support is enabled. Ensure the forbidden slots
8819 between the two branch instructions is filled with a nop.
8820 (mips_option_override): Add support to process the compact
8821 branch option and set the correct defaults. Prevent
8822 non-explict relocs being using for MIPS R6.
8823 (mips_trampoline_init): Add compact branch support.
8824 (mips_mult_zero_zero_cost): Allow zero initialisation of
8825 accumulators with TARGET_DSP.
8826 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
8827 (TARGET_CB_MAYBE): New define.
8828 (TARGET_CB_ALWAYS): New define.
8829 (ISA_HAS_DELAY_SLOTS): New define.
8830 (ISA_HAS_COMPACT_BRANCHES): New define.
8831 (ISA_HAS_JRC): New define.
8832 (MIPS_BRANCH_C): New define.
8833 (MIPS_CALL): Removed.
8834 (MICROMIPS_J): Removed.
8835 * config/mips/mips.md (compact_form): New attr.
8836 (hazard): Add support for forbidden slots.
8837 (define_delay): Add support for compact branches.
8838 (*branch_order<mode>): Likewise.
8839 (*branch_order<mode>_inverted): Likewise.
8840 (*branch_equality<mode>): Likewise.
8841 (*branch_equality<mode>_inverted): Likewise.
8842 (*jump_absolute): Likewise.
8843 (*jump_pic): Likewise.
8844 (indirect_jump): Use mips_output_jump to produce assembly output.
8845 (tablejump_<mode>"): Likewise.
8846 (*<optab>"): Likewise.
8847 (<optab>_internal): Likewise.
8848 (sibcall_internal): Likewise.
8849 (sibcall_value_internal): Likewise.
8850 (sibcall_value_multiple_internal): Likewise.
8851 (call_internal): Likewise.
8852 (call_split): Likewise.
8853 (call_internal_direct): Likewise.
8854 (call_direct_split): Likewise.
8855 (call_value_internal): Likewise.
8856 (call_value_split): Likewise.
8857 (call_value_internal_direct): Likewise.
8858 (call_value_direct_split): Likewise.
8859 (call_value_multiple_internal): Likewise.
8860 (call_value_multiple_split): Likewise.
8861 (mips_get_fcsr_mips16_<mode>): Likewise.
8862 (mips_set_fcsr_mips16_<mode>): Likewise.
8863 (tls_get_tp_mips16_<mode>): Likewise.
8864 * config/mips/mips.opt: Add -mcompact-branches option.
8865 * config/mips/predicates.md (order_operator): Ensure the
8866 conditional compact branches are only used if the ISA them.
8867 * doc/invoke.texi: Document -mcompact-branches option.
8869 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
8872 * lra-lives.c (process_bb_lives): Process move pseudos with the
8873 same value for copies and preferences
8874 * lra-constraints.c (match_reload): Create match reload pseudo
8875 with the same value from single dying input pseudo.
8877 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
8880 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
8882 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
8884 * trans-mem.c: Add contributed-by.
8885 * trans-mem.h: Same.
8887 2015-09-01 Richard Biener <rguenther@suse.de>
8889 * expr.c (expand_expr_real_1): For expanding TERed defs
8890 set the current location to that of the def if not UNKNOWN.
8892 2015-09-01 David Sherwood <david.sherwood@arm.com>
8894 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
8896 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8898 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
8899 then_cost, else_cost fields. Change branch_cost field to unsigned int.
8900 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
8902 (noce_simple_bbs): New function.
8903 (noce_try_move): Bail if basic blocks are not simple.
8904 (noce_try_store_flag): Likewise.
8905 (noce_try_store_flag_constants): Likewise.
8906 (noce_try_addcc): Likewise.
8907 (noce_try_store_flag_mask): Likewise.
8908 (noce_try_cmove): Likewise.
8909 (noce_try_minmax): Likewise.
8910 (noce_try_abs): Likewise.
8911 (noce_try_sign_mask): Likewise.
8912 (noce_try_bitop): Likewise.
8913 (bbs_ok_for_cmove_arith): New function.
8914 (noce_emit_all_but_last): Likewise.
8915 (noce_emit_insn): Likewise.
8916 (noce_emit_bb): Likewise.
8917 (noce_try_cmove_arith): Handle non-simple basic blocks.
8918 (insn_valid_noce_process_p): New function.
8919 (contains_mem_rtx_p): Likewise.
8920 (bb_valid_for_noce_process_p): Likewise.
8921 (noce_process_if_block): Allow non-simple basic blocks
8924 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
8926 * tree-ssa-dom.c (record_equivalences_from_phis,
8927 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
8928 (lookup_avail_expr): Likewise, and remove comment and unused temp.
8930 2015-09-01 Nick Clifton <nickc@redhat.com>
8932 * config/msp430/msp430.opt (mcpu): Fix typo.
8934 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8936 * config/aarch64/aarch64.c (aarch64_set_current_function):
8937 Re-layout any vector parameters have non-simd layout.
8938 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
8940 (aarch64_simd_expand_args): Delete call to the above.
8942 2015-08-31 Mike Frysinger <vapier@gentoo.org>
8944 * doc/invoke.texi (asan-stack): Add space before option.
8946 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
8948 * tree.h (zerop): New function.
8949 * tree.c (zerop): Likewise.
8950 (element_precision): Handle expressions.
8951 * match.pd (define_predicates): Add zerop.
8952 (x <= +Inf): Fix comment.
8953 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
8954 * fold-const.c (fold_binary_loc): ... here. Remove.
8956 2015-08-31 Richard Biener <rguenther@suse.de>
8959 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
8961 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
8963 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
8964 (CEXPI): New operator list.
8965 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
8966 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
8968 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
8970 2015-08-31 Tom de Vries <tom@codesourcery.com>
8972 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
8973 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
8975 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
8976 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
8977 (rewrite_into_loop_closed_ssa): ... here.
8978 (replace_uses_in_dominated_bbs): Remove function.
8979 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
8980 rewrite_into_loop_closed_ssa_1.
8982 2015-08-31 Michael Matz <matz@suse.de>
8984 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
8985 enter entry and exit blocks for reverse post order.
8987 2015-08-31 Richard Biener <rguenther@suse.de>
8989 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
8990 (lto_location_cache::current_sysp): Likewise.
8991 (output_block::current_sysp): Likewise.
8992 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
8993 (lto_location_cache::apply_location_cache): Properly record
8994 system header locations.
8995 (lto_location_cache::input_location): Input whether a file
8997 * lto-streamer-out.c (lto_output_location): Stream whether a file
9000 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9003 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
9005 2015-08-31 Tom de Vries <tom@codesourcery.com>
9007 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
9008 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
9009 Improve function header comments.
9011 2015-08-30 Michael Collison <michael.collison@linaro.org>
9014 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
9017 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9019 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
9020 special_handling bitfield.
9021 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
9022 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
9023 that represents a general xxpermdi.
9024 (insn_is_swappable_p): Add handling for vec_concat of two
9025 doublewords, which maps to a specific xxpermdi.
9026 (adjust_xxpermdi): New function.
9027 (adjust_concat): Likewise.
9028 (handle_special_swappables): Call adjust_xxpermdi and
9030 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
9032 2015-08-30 Rich Felker <dalias@libc.org>
9034 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
9035 case instead of sh[123456ble]-*-*.
9037 2015-08-29 Anatoly Sokolov <aesok@post.ru>
9039 * ira.c (print_unform_and_important_classes,
9040 print_translated_classes): Remove reg_class_names static array.
9041 (print_unform_and_important_classes): Rename to ...
9042 (print_uniform_and_important_classes): ... this.
9043 (ira_debug_allocno_classes): Update accordingly.
9045 2015-08-29 Tom de Vries <tom@codesourcery.com>
9047 PR tree-optimization/46193
9048 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
9051 2015-08-28 Jeff Law <law@redhat.com>
9054 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9055 unable to find X NE 0 in the tables, return X as the simplified
9057 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9058 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
9060 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9061 after removing the control flow statement and unnecessary edges.
9063 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
9066 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9068 PR tree-optimization/67283
9069 * tree-sra.c (type_consists_of_records_p): Rename to...
9070 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9072 (completely_scalarize_record): Rename to...
9073 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
9075 (scalarize_elem): New.
9077 2015-08-28 Jiong Wang <jiong.wang@arm.com>
9079 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
9080 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
9081 (aarch64_symbol_type): Likewise.
9082 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9084 (aarch64_expand_mov_immediate): Likewise.
9085 (aarch64_print_operand): Likewise.
9086 (aarch64_classify_tls_symbol): Likewise.
9088 2015-08-28 Richard Biener <rguenther@suse.de>
9090 * cgraphunit.c (symbol_table::compile): Move early debug generation
9092 (symbol_table::finalize_compilation_unit): ... back here and
9093 add a !seen_error () guard.
9095 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9097 * toplev.c (process_options): Do not use flag_loop_block,
9098 flag_loop_interchange, and flag_loop_strip_mine. Add check for
9099 flag_loop_optimize_isl.
9101 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9103 * Makefile.in (OBJS): Remove graphite-blocking.o and
9104 graphite-interchange.o.
9105 * common.opt (floop-strip-mine, floop-interchange, floop-block):
9106 Alias of floop-nest-optimize.
9107 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
9108 Document as alias of -floop-nest-optimize.
9109 * graphite-blocking.c: Remove.
9110 * graphite-interchange.c: Remove.
9111 * graphite-optimize-isl.c: Include dumpfile.h.
9112 (getScheduleForBand): Add dump for tiled loops. Use
9113 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
9114 * graphite-poly.c (scop_max_loop_depth): Remove.
9115 (print_scattering_function_1): Remove.
9116 (print_scattering_function): Remove.
9117 (print_scattering_functions): Remove.
9118 (debug_scattering_function): Remove.
9119 (debug_scattering_functions): Remove.
9120 (apply_poly_transforms): Remove use of flag_loop_block,
9121 flag_loop_strip_mine, and flag_loop_interchange.
9122 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
9124 (print_pdr_access_layout): Remove.
9125 (print_pdr): Print ISL representation.
9126 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
9127 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
9129 (openscop_print_pbb_domain): Remove.
9130 (print_pbb): Remove call to print_scattering_function.
9131 (openscop_print_scop_context): Remove.
9132 (print_scop_context): Do not print matrices anymore.
9133 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
9134 SCOP_TRANSFORMED_SCHEDULE.
9135 (print_isl_set): Add printing of a new line.
9136 (print_isl_map): Same.
9137 (print_isl_aff): Same.
9138 (print_isl_constraint): Same.
9139 (loop_to_lst): Remove.
9140 (scop_to_lst): Remove.
9141 (lst_indent_to): Remove.
9142 (print_lst): Remove.
9143 (debug_lst): Remove.
9144 (dot_lst_1): Remove.
9146 (reverse_loop_at_level): Remove.
9147 (reverse_loop_for_pbbs): Remove.
9148 * graphite-poly.h (pdr_dim_iter_domain): Remove.
9149 (pdr_nb_params): Remove.
9150 (pdr_alias_set_dim): Remove.
9151 (pdr_subscript_dim): Remove.
9152 (pdr_iterator_dim): Remove.
9153 (pdr_parameter_dim): Remove.
9154 (same_pdr_p): Remove.
9155 (struct poly_scattering): Remove.
9156 (struct poly_bb): Remove _original, _transformed, _saved.
9157 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
9158 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
9159 (PBB_NB_LOCAL_VARIABLES): Remove.
9160 (PBB_NB_SCATTERING_TRANSFORM): Remove.
9161 (schedule_to_scattering): Remove.
9162 (number_of_write_pdrs): Remove.
9163 (pbb_dim_iter_domain): Remove.
9164 (pbb_nb_params): Remove.
9165 (pbb_nb_scattering_orig): Remove.
9166 (pbb_nb_scattering_transform): Remove.
9167 (pbb_nb_dynamic_scattering_transform): Remove.
9168 (pbb_nb_local_vars): Remove.
9169 (pbb_iterator_dim): Remove.
9170 (pbb_parameter_dim): Remove.
9171 (psco_scattering_dim): Remove.
9172 (psct_scattering_dim): Remove.
9173 (psct_local_var_dim): Remove.
9174 (psco_iterator_dim): Remove.
9175 (psct_iterator_dim): Remove.
9176 (psco_parameter_dim): Remove.
9177 (psct_parameter_dim): Remove.
9178 (psct_dynamic_dim): Remove.
9179 (psct_static_dim): Remove.
9180 (psct_add_local_variable): Remove.
9181 (new_lst_loop): Remove.
9182 (new_lst_stmt): Remove.
9185 (lst_add_loop_under_loop): Remove.
9186 (lst_depth): Remove.
9187 (lst_dewey_number): Remove.
9188 (lst_dewey_number_at_depth): Remove.
9191 (lst_find_pbb): Remove.
9192 (find_lst_loop): Remove.
9193 (lst_find_first_pbb): Remove.
9194 (lst_empty_p): Remove.
9195 (lst_find_last_pbb): Remove.
9196 (lst_contains_p): Remove.
9197 (lst_contains_pbb): Remove.
9198 (lst_create_nest): Remove.
9199 (lst_remove_from_sequence): Remove.
9200 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
9201 (lst_niter_for_loop): Remove.
9202 (pbb_update_scattering): Remove.
9203 (lst_update_scattering_under): Remove.
9204 (lst_update_scattering): Remove.
9205 (lst_insert_in_sequence): Remove.
9206 (lst_replace): Remove.
9207 (lst_substitute_3): Remove.
9208 (lst_distribute_lst): Remove.
9209 (lst_remove_all_before_including_pbb): Remove.
9210 (lst_remove_all_before_excluding_pbb): Remove.
9211 (struct scop): Remove original_schedule, transformed_schedule, and
9213 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
9214 (SCOP_SAVED_SCHEDULE): Remove.
9215 (poly_scattering_new): Remove.
9216 (poly_scattering_free): Remove.
9217 (poly_scattering_copy): Remove.
9218 (store_scattering_pbb): Remove.
9219 (store_lst_schedule): Remove.
9220 (restore_lst_schedule): Remove.
9221 (store_scattering): Remove.
9222 (restore_scattering_pbb): Remove.
9223 (restore_scattering): Remove.
9224 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9225 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
9226 compute the scattering polyhedron dimension from the dimension of
9228 (build_scop_scattering): Update call to
9229 build_pbb_scattering_polyhedrons.
9230 (build_poly_scop): Remove call to scop_to_lst.
9231 * graphite.c (graphite_transform_loops): Add call to print_scop.
9232 (gate_graphite_transforms): Remove use of flag_loop_block,
9233 flag_loop_interchange, and flag_loop_strip_mine.
9235 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9237 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
9238 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
9239 -floop-nest-optimize.
9240 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
9241 (generate_luj_sepclass): Remove.
9242 (generate_luj_options): Remove.
9243 (set_options): Remove opt_luj.
9244 (scop_to_isl_ast): Remove opt_luj.
9245 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
9246 flag_loop_unroll_jam.
9247 (getPrevectorMap_full): Remove.
9248 (getScheduleForBandList): Remove map_sepcl.
9249 (getScheduleMap): Same.
9250 (apply_schedule_map_to_scop): Remove sepcl.
9251 (optimize_isl): Same.
9252 * graphite-poly.c (apply_poly_transforms): Remove check for
9253 flag_loop_unroll_jam.
9254 (new_poly_bb): Remove map_sepclass.
9255 * graphite-poly.h (struct poly_bb): Same.
9256 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
9257 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
9258 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
9259 * toplev.c (process_options): Remove flag_loop_unroll_jam.
9261 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
9264 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
9266 (UNSPEC_ADD_CARRY): Remove.
9267 (addqi3_cconly_overflow): New expander.
9268 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
9269 Adjust for changed add<mode>3_carry.
9270 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
9271 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
9272 (<plusminus_insn><mode>3_carry): Remove expander.
9273 (*<plusminus_insn><mode>3_carry): Split insn pattern to
9274 add<mode>3_carry and sub<mode>3_carry.
9275 (plusminus_carry_mnemonic): Remove code attribute.
9276 (add<mode>3_carry): Canonicalize insn pattern.
9277 (*addsi3_carry_zext): Ditto.
9278 (sub<mode>3_carry): Ditto.
9279 (*subsi3_carry_zext): Ditto.
9280 (adcx<mode>3): Remove insn pattern.
9281 (addcarry<mode>): New insn pattern.
9282 (subborrow<mode>): Ditto.
9283 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
9284 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
9285 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
9286 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
9287 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
9288 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
9289 Rewrite expander to not clobber carry flag chains.
9291 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
9293 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
9294 instead of a rotate.
9296 2015-08-27 Marek Polacek <polacek@redhat.com>
9299 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
9300 an entry into an irreducible region.
9302 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9304 * configure: Regenerate.
9306 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9308 PR tree-optimization/67283
9309 * tree-sra.c (type_consists_of_records_p): Rename to...
9310 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9312 (completely_scalarize_record): Rename to...
9313 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9314 (scalarize_elem): New.
9316 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9318 * tree-sra.c (completely_scalarize_var): Rename to...
9319 (create_total_scalarization_access): ... Here. Drop call to
9320 completely_scalarize_record.
9322 (analyze_all_variable_accesses): Replace completely_scalarize_var
9323 with create_total_scalarization_access and completely_scalarize_record.
9325 2015-08-27 Alan Modra <amodra@gmail.com>
9328 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
9331 2015-08-27 Richard Biener <rguenther@suse.de>
9333 * passes.c (rest_of_decl_compilation): Guard early_global_decl
9334 call with !seen_error ().
9335 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
9336 early debug generation and finish...
9337 (symbol_table::compile): ... here to put it after a !seen_error ()
9340 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9342 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
9345 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9346 Andre Vieira <andre.simoesdiasvieira@arm.com>
9348 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
9349 (*cb<optab><mode>1): Likewise.
9350 (*tb<optab><mode>1): Likewise.
9351 (*cb<optab><mode>1): Likewise.
9352 * config/aarch64/iterators.md (inv_cb): New code attribute.
9354 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
9355 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
9357 2015-08-27 Richard Biener <rguenther@suse.de>
9359 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
9361 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
9363 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
9366 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9368 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
9371 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
9373 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
9374 floating point in VSX registers.
9375 (rs6000_output_move_128bit): Always print out the set insn if we
9376 can't generate an appropriate 128-bit move.
9377 (rs6000_generate_compare): Add support for IEEE 128-bit floating
9378 point in VSX registers comparisons.
9379 (rs6000_expand_float128_convert): Likewise.
9381 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
9382 predicate for only GPR hard registers.
9384 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
9385 modes to iterators. Add new iterators for moving 128-bit values in
9386 scalar FPR registers and VSX registers.
9387 (FMOVE128): Likewise.
9388 (FMOVE128_FPR): Likewise.
9389 (FMOVE128_GPR): Likewise.
9390 (FMOVE128_VSX): Likewise.
9391 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
9396 (RELOAD): Add IEEE 128-bit floating point modes.
9397 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
9398 floating point in VSX registers modes.
9399 (signbit<mode>2, IBM128 iterator): Likewise.
9400 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
9401 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
9403 (neg<mode>2, TFIFKF iterator): Likewise.
9404 (negtf2_internal): Likewise.
9406 (abs<mode>2, TFIFKF iterator): Likewise.
9407 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
9408 VSX insn support for negate, absolute value, and negative absolute
9410 (ieee_128bit_vsx_neg<mode>2): Likewise.
9411 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9412 (ieee_128bit_vsx_abs<mode>2): Likewise.
9413 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9414 (ieee_128bit_vsx_nabs<mode>2): Likewise.
9415 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9416 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
9417 floating point in VSX registers.
9418 (unpack<mode>_dm): Likewise.
9419 (unpack<mode>_nodm): Likewise.
9420 (pack<mode>): Likewise.
9421 (unpackv1ti): Likewise.
9422 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
9423 (packv1ti): Likewise.
9424 (pack<mode>, FMOVE128_VSX iterator): Likewise.
9425 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
9427 (extenddftf2_internal): Likewise.
9428 (trunctfdf2): Likewise.
9429 (trunctfdf2_internal2): Likewise.
9430 (fix_trunc_helper): Likewise.
9431 (fix_trunctfdi2"): Likewise.
9432 (floatditf2): Likewise.
9433 (floatuns<mode>tf2): Likewise.
9434 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9435 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9436 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9437 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9438 (float<SDI:mode><IFKF:mode>2): Likewise.
9439 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9441 2015-08-26 Renlin Li <renlin.li@arm.com>
9443 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
9445 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
9446 Jiong Wang <jiong.wang@arm.com>
9448 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
9449 (tlsie_tiny_<mode>): New define_insn.
9450 (tlsie_tiny_sidi): Likewise.
9451 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
9453 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
9454 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
9456 (aarch64_expand_mov_immediate): Likewise.
9457 (aarch64_print_operand): Likewise.
9458 (arch64_classify_tls_symbol): Likewise.
9460 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9462 * config/arm/arm-arches.def: Replace single value flags with
9463 an initializer built from ARM_FSET_MAKE_CPU1.
9464 * config/arm/arm-cores.def: Likewise.
9465 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
9466 derivation from the ARM_CORE macro definition, use the given value
9468 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
9469 ARM_ARCH macro definition, use the given value instead.
9471 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9473 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
9475 (struct builtin_description): Replace field mask with field
9477 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
9478 (IWMMXT2_BUILTIN): Likewise.
9479 (IWMMXT2_BUILTIN2): Likewise.
9480 (FP_BUILTIN): Likewise.
9481 (CRC32_BUILTIN): Likewise.
9482 (CRYPTO_BUILTIN): Likewise.
9483 (iwmmx_mbuiltin): Likewise.
9484 (iwmmx2_mbuiltin): Likewise.
9485 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
9486 struct builtin_description.
9488 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9490 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
9491 (struct builtin_description): Change type of mask to unsigned
9493 * config/arm/arm-protos.h (insn_flags): Declare as type
9495 (tune_flags): Likewise.
9496 * config/arm/arm.c (feature_count): New.
9497 (insn_flags): Define as type arm_feature_set.
9498 (tune_flags): Likewise.
9499 (struct processors): Define field flags as type arm_feature_set.
9500 (all_cores): Update for change to struct processors.
9501 (all_architectures): Likewise.
9502 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
9504 (arm_option_override_internal): Likewise.
9505 (arm_option_override): Likewise.
9507 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
9508 Jiong Wang <jiong.wang@arm.com>
9510 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
9511 tls size for tiny, small, large memory model.
9512 (aarch64_load_symref_appropriately): Support new symbol types.
9513 (aarch64_expand_mov_immediate): Likewise.
9514 (aarch64_print_operand): Likewise.
9515 (aarch64_classify_tls_symbol): Likewise.
9516 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
9517 (aarch64_symbol_type): Likewise.
9518 * config/aarch64/aarch64.md (tlsle): Deleted.
9519 (tlsle12_<mode>): New define_insn.
9520 (tlsle24_<mode>): Likewise.
9521 (tlsle32_<mode>): Likewise.
9522 (tlsle48_<mode>): Likewise.
9523 * doc/sourcebuild.texi (AArch64-specific attributes): Document
9526 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9528 * config/arm/arm-protos.h (FL_NONE): New.
9530 (arm_feature_set): New.
9531 (ARM_FSET_MAKE): New.
9532 (ARM_FSET_MAKE_CPU1): New.
9533 (ARM_FSET_MAKE_CPU2): New.
9534 (ARM_FSET_CPU1): New.
9535 (ARM_FSET_CPU2): New.
9536 (ARM_FSET_EMPTY): New.
9537 (ARM_FSET_ANY): New.
9538 (ARM_FSET_HAS_CPU1): New.
9539 (ARM_FSET_HAS_CPU2): New.
9540 (ARM_FSET_HAS_CPU): New.
9541 (ARM_FSET_ADD_CPU1): New.
9542 (ARM_FSET_ADD_CPU2): New.
9543 (ARM_FSET_DEL_CPU1): New.
9544 (ARM_FSET_DEL_CPU2): New.
9545 (ARM_FSET_UNION): New.
9546 (ARM_FSET_INTER): New.
9547 (ARM_FSET_XOR): New.
9548 (ARM_FSET_EXCLUDE): New.
9549 (AFM_FSET_IS_EMPTY): New.
9550 (ARM_FSET_CPU_SUBSET): New.
9552 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9554 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
9555 SYMBOL_TLSLE to SYMBOL_TLSLE24.
9556 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9558 (aarch64_expand_mov_immediate): Likewise.
9559 (aarch64_print_operand): Likewise.
9560 (aarch64_classify_symbol): Likewise.
9562 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9564 * config/aarch64/aarch64.opt (mtls-size): New entry.
9565 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
9566 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
9567 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
9569 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9571 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
9572 ARM_CORE entry. Fix some white-space.
9573 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
9574 ARM_CORE definition.
9576 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9578 * fold-const.c (fold_binary_loc) : Move Optimize
9579 root(x)*root(y) as root(x*y) to match.pd.
9580 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
9581 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
9582 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
9583 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
9584 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
9585 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
9586 (mult (exps:s @0) (exps:s @1)) : New simplifier.
9587 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
9588 (rdiv @0 (exps:s @1)) : New simplifier.
9590 2015-08-25 Joseph Myers <joseph@codesourcery.com>
9592 * gcc.c (driver::finalize): Only assign to extra_specs if
9595 2015-08-25 Marek Polacek <polacek@redhat.com>
9598 * varasm.c (declare_weak): Return after giving an error.
9600 2015-08-25 David Malcolm <dmalcolm@redhat.com>
9602 * gcc-main.c (main): Add params to driver ctor.
9603 * gcc.c (class env_manager): New.
9605 (env_manager::init): New.
9606 (env_manager::get): New.
9607 (env_manager::xput): New.
9608 (env_manager::restore): New.
9609 Poison getenv and putenv.
9610 (DEFAULT_TARGET_SYSTEM_ROOT): New.
9611 (target_system_root): Update initialization to use
9612 DEFAULT_TARGET_SYSTEM_ROOT.
9613 (struct spec_list): Add field "default_ptr".
9614 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
9615 (init_spec): Likewise.
9616 (set_spec): Clear field "default_ptr".
9617 (read_specs): Free "spec" and "buffer".
9618 (xputenv): Reimplement in terms of env_manager.
9619 (process_command): Replace ::getenv calls with calls to the
9620 env_manager singleton.
9621 (process_brace_body): Free string in three places.
9622 (driver::driver): New.
9623 (driver::~driver): New.
9624 (used_arg): Convert from a function to...
9625 (class used_arg_t): ...this class, and...
9626 (used_arg): ...this new global instance.
9627 (used_arg_t::finalize): New function.
9628 (getenv_spec_function): Add "const" to local "value". Replace
9629 ::getenv call with call to the env_manager singleton.
9630 (path_prefix_reset): New function.
9631 (driver::finalize): New function.
9632 * gcc.h (driver::driver): New.
9633 (driver::~driver): New.
9634 (driver::finalize): New.
9636 2015-08-25 Nathan Sidwell <nathan@acm.org>
9638 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
9639 target doesn't have one.
9641 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9644 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
9646 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9649 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
9650 a define_insn, remove second alternative.
9652 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
9653 Joseph Myers <joseph@codesourcery.com>
9655 * gcc.c (struct switchstr): Expand comment.
9657 2015-08-25 Nathan Sidwell <nathan@acm.org>
9659 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
9660 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
9662 2015-08-25 Richard Biener <rguenther@suse.de>
9665 * genmatch.c (expr::gen_transform): Verify the result of
9666 builtin_decl_implicit.
9667 (dt_simplify::gen_1): Likewise.
9669 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
9671 * config/arm/constraints.md: Also list Cs and US ARM-specific
9672 constraints as used.
9674 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
9677 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
9679 (nonpic_symbol_mentioned_p): Likewise.
9680 (sh_delegitimize_address): Likewise.
9681 (sh_function_ok_for_sibcall): Take into account weak symbols.
9682 (sh_expand_sym_label2reg): New.
9683 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
9684 * config/sh/sh.md (UNSPEC_PCREL): New enum.
9685 (call_pcrel): Use sh_expand_sym_label2reg.
9686 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9687 (symPCREL_label2reg) New expand.
9689 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9691 * graphite-poly.c: Change type of region from void* to sese.
9692 * graphite-poly.h (struct scop): Changing the type of scop::region
9693 from void* to sese. Change accessor macro accordingly.
9694 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
9696 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9698 * graphite-scop-detection.c (stmt_simple_for_scop_p):
9699 Constrain only on INTEGER_TYPE.
9701 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9704 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
9705 -mefficient-unaligned-vsx on ISA 2.7.
9707 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
9708 option to a masked option.
9710 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
9711 logic for -mefficient-unaligned-vsx so that it is set via an arch
9712 ISA option, instead of being set if -mtune=power8 is set. Move
9713 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
9714 near other default option handling.
9716 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9718 * genflags.c (gen_macro): Delete.
9719 (gen_proto): Don't create GEN.*CALL.* macros.
9720 * gensupport.h (get_file_location): Declare.
9721 * gensupport.c (rtx_locs): New variable.
9722 (read_md_rtx): Record rtx locations.
9723 (get_file_location): New function.
9724 * target-insns.def (call, call_pop, call_value, call_value_pop)
9725 (sibcall, sibcall_value): New patterns.
9726 * gentarget-def.c (parse_argument): New function.
9727 (def_target_insn): Use it. Handle optional operands. Raise an
9728 error if an .md pattern has the wrong number of operands for the
9729 pattern name. Remove the names of unused operands from the prototype.
9730 * builtins.c (expand_builtin_apply): Use targetm functions
9731 instead of HAVE_call_value and GEN_CALL_VALUE.
9732 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
9733 and sibcall_value_pop.
9734 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
9736 * config/alpha/alpha.md (untyped_call): Likewise.
9737 * config/iq2000/iq2000.md (untyped_call): Likewise.
9738 * config/m68k/m68k.md (untyped_call): Likewise.
9739 * config/mips/mips.md (untyped_call): Likewise.
9740 * config/pa/pa.md (untyped_call): Likewise.
9741 * config/rs6000/rs6000.md (untyped_call): Likewise.
9742 * config/sparc/sparc.md (untyped_call): Likewise.
9743 * config/tilegx/tilegx.md (untyped_call): Likewise.
9744 * config/tilepro/tilepro.md (untyped_call): Likewise.
9745 * config/visium/visium.md (untyped_call): Likewise.
9746 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
9747 gen_call_value instead of GEN_CALL_VALUE.
9748 * config/arm/arm.md (untyped_call): Likewise.
9749 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
9752 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9754 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
9755 (have_cbranchcc4): New variable.
9756 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
9757 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
9758 (if_convert): Initialize have_cbranchcc4.
9760 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9762 * builtins.c (expand_cmpstrn): Rename to...
9763 (expand_cmpstrn_or_cmpmem): ...this.
9764 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
9765 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
9766 Remove mode argument.
9767 (expand_builtin): Update accordingly.
9769 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9771 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
9772 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
9773 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
9774 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
9775 Add predicates for operands 0 and 3.
9776 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
9778 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
9779 immediate_operand to nonmemory_operand.
9781 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9783 * df-scan.c (df_insn_info_init_fields): New function, split out
9785 (df_insn_create_insn_record): ...here.
9786 (df_insn_info_free_fields): New function, split out from...
9787 (df_insn_info_delete): ...here.
9788 (df_insn_rescan): Use the new functions instead of freeing and
9789 reallocating the df_insn_info.
9791 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9793 * doc/install.texi (Binaries): Remove links no longer valid.
9795 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
9797 * config/nvptx/mkoffload.c (process): Replace
9798 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
9800 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
9803 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
9805 2015-08-24 Renlin Li <renlin.li@arm.com>
9807 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
9808 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
9809 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
9810 * config/arm/constraints.md ("j"): Add check for high code.
9812 2015-08-24 Tom de Vries <tom@codesourcery.com>
9814 PR tree-optimization/65468
9815 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
9818 2015-08-24 Nathan Sidwell <nathan@acm.org>
9820 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
9821 change to nvptx_type_from_mode call. Use arg_promotion for both
9822 split and non-split args.
9824 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9826 * target-insns.def (movstr): New pattern.
9827 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
9828 (expand_movstr): Use targetm rather than HAVE_movstr/
9831 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9833 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
9836 2015-08-24 Andrew Pinski <apinski@cavium.com>
9838 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
9839 AARCH64_EXTRA_TUNING_OPTION.
9840 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
9842 (aarch64_extra_tuning_flags): Base the shifted value on the index
9843 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
9844 * config/aarch64/aarch64.c: Remove the last argument to
9845 AARCH64_EXTRA_TUNING_OPTION.
9847 2015-08-23 Nathan Sidwell <nathan@acm.org>
9849 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
9851 (nvptx_declare_function_name): Insert formatting tabs for
9854 2015-08-23 Tom de Vries <tom@codesourcery.com>
9856 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
9857 parm_decl, rather than generating a dummy default def in cfun.
9858 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
9859 ssa_name from cfun and child_fn do not share a stmt as def stmt.
9860 (move_stmt_op): Handle PARM_DECl.
9861 (gather_ssa_name_hash_map_from): New function.
9862 (move_sese_region_to_fn): Add default defs for function params, and add
9863 them to vars_map. Release copied ssa names.
9864 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
9866 2015-08-23 Tom de Vries <tom@codesourcery.com>
9868 * doc/sourcebuild.texi: Rename vect_no_int_max with
9869 vect_no_int_min_max. Update description.
9871 2015-08-22 Andrew Pinski <apinski@cavium.com>
9873 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
9874 * config/aarch64/aarch64-protos.h
9875 (aarch64_fusion_pairs_index): New enum.
9876 (aarch64_fusion_pairs): Base the shifted value on the index instead
9877 Rewrite AARCH64_FUSE_ALL to be based on the end index.
9878 of the argument to AARCH64_FUSION_PAIR.
9879 * config/aarch64/aarch64.c: Remove the last argument to
9880 AARCH64_FUSION_PAIR.
9882 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
9884 * dominance.c (new_zero_array): Define.
9885 (dom_info): Redefine as class with proper encapsulation.
9886 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
9888 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
9889 allocations/deallocations. Pass function as parameter (instead of
9891 (dom_info::get_idom): Define accessor method.
9892 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
9893 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
9894 (calculate_dominance_info): Adjust to use dom_info class.
9895 (verify_dominators): Likewise.
9897 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
9899 * print-rtl.c (print_rtx): Check the correct range for
9900 flag_dump_unnumbered_links to behave as documented.
9902 PR rtl-optimization/67227
9903 PR rtl-optimization/64164
9904 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
9905 (nonoverlapping_memrefs_p): Test offsets and sizes when given
9906 identical gimple_reg exprs.
9908 2015-08-21 Nathan Sidwell <nathan@acm.org>
9910 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
9912 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
9913 crtl->stack_alignment_needed to determine alignment.
9914 (nvptx_get_drap_rtx): New.
9915 (TARGET_GET_DRAP_RTX): Override.
9916 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
9918 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9920 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
9922 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9924 * configure.ac: Remove uwin* cases.
9925 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
9926 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
9927 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
9928 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
9929 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
9930 i[34567]86-*-uwin*, powerpc-*-beos*.
9932 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
9934 * gencodes.c (gencodes): Print the comma for the preceding
9935 enum value rather than the current one. Use aliased enum values
9936 rather than #defines for compiled-out patterns.
9937 (main): Update accordingly. Replace LAST_INSN_CODE with
9939 * lra.c (insn_code_data): Update accordingly.
9940 (finish_insn_code_data_once, get_static_insn_data): Likewise.
9941 * recog.h (target_recog): Likewise.
9942 (preprocess_insn_constraints): Change parameter to unsigned int.
9943 * recog.c (preprocess_insn_constraints): Likewise.
9944 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
9945 * tree-vect-stmts.c (vectorizable_operation): Simplify.
9947 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
9949 PR rtl-optimization/61657
9950 * loop-iv.c (iv_number_of_iterations): Declare up and down as
9951 unsigned. Remove superflous uint64_t cast.
9953 2014-08-21 Felix Yang <felix.yang@huawei.com>
9954 Jiji Jiang <jiangjiji@huawei.com>
9956 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
9957 argument and get builtin function code directly from CALL.
9958 (gimple_stringop_fixed_value): Modified accordingly.
9959 (gimple_stringops_transform, gimple_stringops_values_to_profile):
9960 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
9962 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
9964 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
9966 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9968 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
9970 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
9971 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
9972 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
9973 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
9974 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
9975 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
9976 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
9977 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
9978 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
9979 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
9981 * match.pd (SIN ) : New Operator.
9982 (TAN) : New Operator.
9983 (mult (SQRT@1 @0) @1) : New simplifier.
9984 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
9985 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
9986 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
9987 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
9988 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
9989 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
9990 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
9991 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
9992 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
9993 (rdiv @0 (POW:s @1 @2)) : New simplifier.
9995 2015-08-21 Bin Cheng <bin.cheng@arm.com>
9997 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
9998 loop if EXPR is simplified to const value.
10000 2015-08-21 Yury Gribov <y.gribov@samsung.com>
10002 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
10003 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
10005 2015-08-21 Richard Biener <rguenther@suse.de>
10007 PR middle-end/67285
10008 * gimple-fold.c (replace_stmt_with_simplification): Assert
10009 seq is empty when replacing a call with itself but different
10011 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
10012 a call require that it is const.
10014 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10016 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
10017 * builtins.c (get_object_alignment_2): Adjust.
10018 * varasm.c (align_variable): Likewise.
10019 (get_variable_align): Likewise.
10020 (build_constant_desc): Likewise.
10021 (force_const_mem): Likewise.
10022 * doc/tm.texi.in: Likewise.
10023 * doc/tm.texi: Regenerate.
10025 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10027 * genconfig.c (main): Always define HAVE_cc0.
10028 * recog.c (rest_of_handle_peephole2): Adjust.
10030 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10032 * reorg.c (relax_delay_slots): Don't use #if to check value of
10035 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10037 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
10038 * targhooks.c (default_have_conditional_execution): Adjust.
10040 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
10042 * rtl.h (rtvec_all_equal_p): Declare.
10043 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
10044 * rtl.c (rtvec_all_equal_p): New function.
10045 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
10046 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
10047 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
10048 * config/arm/arm.c (neon_vdup_constant): Likewise.
10049 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
10050 * config/tilegx/constraints.md (W, Y): Likewise.
10051 * config/tilepro/constraints.md (W, Y): Likewise.
10052 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
10053 (classify_immediate): Use unwrap_const_vec_duplicate.
10054 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
10055 (reg_or_v2s8bit_operand): Likewise.
10056 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
10057 (reg_or_v4s8bit_operand): Likewise.
10059 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10061 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
10062 (vec_shasigma_be): New #define.
10063 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
10064 (VPMSUMH): Likewise.
10065 (VPMSUMW): Likewise.
10066 (VPMSUMD): Likewise.
10067 (VPMSUM): New BU_P8V_OVERLOAD_2.
10068 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
10069 entries for VEC_MADD and VEC_VPMSUM.
10071 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
10073 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
10074 Multiply argument avr_n_flash by 64 to match unit of "KiB".
10075 (avr_pgm_check_var_decl): Same.
10077 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
10079 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
10080 initialization of HFmode scalar type (float16_t) to...
10081 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
10084 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
10086 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
10087 having an -mfp16-format.
10089 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
10091 * config/i386/predicates.md (vector_all_ones_operand): Use
10092 CONSTM1_RTX to simplify definition.
10094 2015-08-20 Richard Biener <rguenther@suse.de>
10096 * toplev.c (compile_file): Remove loop calling late_global_decl
10098 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
10099 on decls we assembled.
10101 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
10103 * common/config/aarch64/aarch64-common.c
10104 (AARCH64_CPU_NAME_LENGTH): Delete.
10105 (aarch64_option_extension): New.
10106 (all_extensions): Likewise.
10107 (processor_name_to_arch): Likewise.
10108 (arch_to_arch_name): Likewise.
10110 (all_architectures): Likewise.
10111 (aarch64_get_extension_string_for_isa_flags): Likewise.
10112 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
10113 architecture names.
10114 * config/aarch64/aarch64-protos.h
10115 (aarch64_get_extension_string_for_isa_flags): New.
10116 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
10117 (aarch64_option_print): Get the string to print from
10118 aarch64_get_extension_string_for_isa_flags.
10119 (aarch64_declare_function_name): Likewise.
10120 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
10121 (MCPU_TO_MARCH_SPEC): This.
10122 (ASM_CPU_SPEC): Use it.
10123 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
10124 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
10125 (EXTRA_SPEC_FUNCTIONS): Use it.
10127 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
10129 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
10130 expansion when !ISA_HAS_LWL_LWR.
10131 (mips_block_move_straight): Update the size of elements copied to
10132 account for alignment when !ISA_HAS_LWL_LWR.
10133 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
10135 2015-08-19 Jiong Wang <jiong.wang@arm.com>
10137 * expr.c (expand_expr_real_2): Check gimple statement during
10138 LSHIFT_EXPR expand.
10140 2015-08-19 Magnus Granberg <zorry@gentoo.org>
10142 * common.opt (fstack-protector): Initialize to -1.
10143 (fstack-protector-all): Likewise.
10144 (fstack-protector-strong): Likewise.
10145 (fstack-protector-explicit): Likewise.
10146 * configure.ac: Add --enable-default-ssp.
10147 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
10148 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
10150 * doc/install.texi: Document --enable-default-ssp.
10151 * config.in: Regenerated.
10152 * configure: Likewise.
10154 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
10156 PR rtl-optimization/64164
10157 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
10158 (parm_in_stack_slot_p): ... this. Disregard mode, what
10159 matters is whether the parm will live in a pseudo or a stack
10161 (expand_one_ssa_partition): Deal with params without a default
10162 def. Disregard mode.
10163 * cfgexpand.h: Renamed function declaration.
10164 * tree-ssa-coalesce.c: Adjust.
10165 * function.c (split_complex_args): Allocate stack slot for
10166 unassigned parms before splitting.
10167 (parm_in_unassigned_mem_p): New. Use it instead of
10168 parm_maybe_byref_p throughout this file.
10169 (assign_parm_setup_block): Use it. Accept pseudos in the
10170 expand-assigned rtl.
10171 (assign_parm_setup_reg): Drop BLKmode requirement.
10172 (assign_parm_setup_stack): Allocate and fill in the address of
10173 unassigned MEM parms.
10175 2015-08-19 David Sherwood <david.sherwood@arm.com>
10177 * genmodes.c (emit_mode_unit_size_inline): New function.
10178 (emit_mode_unit_precision_inline): New function.
10179 (emit_insn_modes_h): Emit new #define. Emit new functions.
10180 (emit_mode_unit_size): New function.
10181 (emit_mode_unit_precision): New function.
10182 (emit_mode_adjustments): Add mode_unit_size adjustments.
10183 (emit_insn_modes_c): Emit new arrays.
10184 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
10185 use new inline methods.
10187 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10189 * config/aarch64/aarch64.c (bit_count): Delete prototype
10191 (aarch64_print_operand): Use popcount_hwi instead of the above.
10193 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10195 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
10198 2015-08-19 Marek Polacek <polacek@redhat.com>
10200 PR middle-end/67133
10201 * gimple-ssa-isolate-paths.c
10202 (insert_trap_and_remove_trailing_statements): Rename to ...
10203 (insert_trap): ... this. Don't remove trailing statements; split
10205 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
10207 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
10210 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
10211 conditionalize the whole on __GNUC__. Add fallback code
10212 depending neither on undefined nor implementation-defined behaviour.
10214 2015-08-19 Jiong Wang <jiong.wang@arm.com>
10216 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
10217 whitespaces with tab.
10219 2015-08-19 Florian Weimer <fweimer@redhat.com>
10221 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
10222 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
10223 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
10224 Move Name_Ids instantiation to the Prj.Proc package, to avoid
10227 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10229 * config/arm/arm.c (bounds_check): Use %wd print format
10230 for HOST_WIDE_INT arguments.
10232 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
10234 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
10235 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
10236 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
10237 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
10238 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
10239 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
10240 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
10241 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
10242 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
10245 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
10247 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
10248 function.c, graphite-scop-detection.c, haifa-sched.c,
10249 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
10250 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
10251 varasm.c: Remove typedefs of structs.
10253 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10255 * config/rs6000/altivec.h (vec_adde): New define.
10256 (vec_addec): Likewise.
10257 (vec_double): Likewise.
10258 (vec_bperm): Likewise.
10259 (vec_gb): Likewise.
10260 * config/rs6000/rs6000-builtin.def (ADDE): New
10261 BU_ALTIVEC_OVERLOAD_3.
10263 (DOUBLE): New BU_VSX_OVERLOAD_1.
10264 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
10265 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
10266 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
10267 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
10268 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
10269 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
10270 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
10271 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
10272 and P8V_BUILTIN_VEC_VBPERMQ.
10274 2015-08-18 Jason Merrill <jason@redhat.com>
10276 * print-tree.c (print_node): Handle TREE_BINFO.
10278 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10280 PR middle-end/36757
10281 * builtins.c (expand_builtin_signbit): Add asserts to make sure
10282 we can expand BUILT_IN_SIGNBIT inline.
10283 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
10284 * doc/extend.texi: Document the type-generic __builtin_signbit.
10286 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
10288 PR rtl-optimization/67218
10289 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
10290 (simplify_unary_operation_1): Use it.
10292 2015-08-18 Marek Polacek <polacek@redhat.com>
10294 PR middle-end/67222
10295 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
10296 if the call isn't valid.
10297 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
10298 gimple_call_builtin_p.
10299 (call_may_clobber_ref_p_1): Likewise.
10300 (stmt_kills_ref_p): Likewise.
10302 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
10304 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
10305 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
10306 (mips_hard_regno_scratch_ok): Likewise.
10307 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
10308 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
10310 2015-08-18 Bin Cheng <bin.cheng@arm.com>
10312 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
10313 (determine_value_range): Call refine_value_range_using_guard for
10314 each loop initial condition to improve value range.
10316 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
10318 * config/i386/i386.c: Remove include of fibheap.h.
10320 2015-08-17 Richard Biener <rguenther@suse.de>
10322 PR tree-optimization/67221
10323 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
10324 (sccvn_dom_walker::before_dom_children): Mark backedges of
10325 non-executable blocks as not executable.
10327 2015-08-17 David Sherwood <david.sherwood@arm.com>
10329 * config/arm/arm.c (neon_element_bits): Replace call to
10330 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
10331 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
10332 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
10333 (neon_vdup_lane<mode>): Likewise.
10334 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
10335 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
10336 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
10337 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
10338 * config/spu/spu.c (arith_immediate_p): Likewise.
10339 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10340 * expr.c (expand_expr_real_2): Likewise.
10341 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
10342 * simplify-rtx.c (simplify_immed_subreg): Likewise.
10343 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
10344 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
10346 * fold-const.c (fold_binary_loc): Replace call to
10347 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
10348 GET_MODE_UNIT_PRECISION (m).
10350 2015-08-17 Mike Stump <mikestump@comcast.net>
10352 * config/arm/arm.c (arm_block_move_unaligned_straight):
10353 Emit normal move instead of unaligned load when source or destination
10354 are appropriately aligned.
10356 2015-08-17 Richard Biener <rguenther@suse.de>
10357 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10359 PR middle-end/16107
10360 * match.pd (div (coss (op @0) : New simplifier.
10362 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
10364 PR rtl-optimization/64164
10366 PR middle-end/66983
10367 PR rtl-optimization/67000
10368 PR middle-end/67034
10369 PR middle-end/67035
10370 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10371 * tree-ssa-copyrename.c: Removed.
10372 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10373 -ftree-coalesce-vars.
10374 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10375 * common.opt (ftree-copyrename): Ignore.
10376 (ftree-coalesce-inlined-vars): Likewise.
10377 * doc/invoke.texi: Remove the ignored options above.
10378 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10379 * tree-ssa-coalesce.h: ... here.
10380 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10381 headers required by it.
10382 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10383 across variables when flag_tree_coalesce_vars. Check register
10384 use and promoted modes to allow coalescing. Do not coalesce
10385 maybe-byref parms with SSA_NAMEs of other variables, or
10386 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
10387 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10388 with its member functions to tree-ssa-coalesce.c.
10389 (var_map_base_init): Likewise. Renamed to
10390 compute_samebase_partition_bases.
10391 (partition_view_normal): Drop want_bases parameter.
10392 (partition_view_bitmap): Likewise.
10393 * tree-ssa-live.h: Adjust declarations.
10394 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
10395 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10396 default defs at the entry point.
10397 (dump_part_var_map): New.
10398 (compute_optimized_partition_bases): New, called by...
10399 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10400 of compute_samebase_partition_bases. Adjust.
10401 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10402 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
10403 (ssa_default_def_partition): New.
10404 (get_rtl_for_parm_ssa_default_def): New.
10405 (align_local_variable, add_stack_var): Support anonymous SSA
10407 (defer_stack_allocation): Likewise. Declare earlier.
10408 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10409 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10410 Do no record deferred-allocation marker in
10411 SA.partition_to_pseudo.
10412 (expand_stack_vars): Adjust check for the marker in it.
10413 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10414 redundant MEM attr setting.
10415 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10417 (expand_one_stack_var): ... this. New wrapper to check and
10418 skip already expanded SSA partitions.
10419 (record_alignment_for_reg_var): New, factored out of...
10420 (expand_one_var): ... this.
10421 (expand_one_ssa_partition): New.
10422 (adjust_one_expanded_partition_var): New.
10423 (expand_one_register_var): Check and skip already expanded SSA
10425 (expand_used_vars): Don't create DECLs for anonymous SSA
10426 names. Expand all SSA partitions, then adjust all SSA names.
10427 (pass::execute): Replace the loops that set
10428 SA.partition_to_pseudo from partition leaders and cleared
10429 DECL_RTL for multi-location variables, and that which used to
10430 rename vars and set attrs, with one that clears DECL_RTL and
10431 checks that PARMs and RESULTs default_defs match DECL_RTL.
10432 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10433 * emit-rtl.c: Include stor-layout.h.
10434 (set_reg_attrs_for_parm): Handle NULL decl.
10435 (set_reg_attrs_for_decl_rtl): Take mode from expression if
10437 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
10438 rather than its possibly-NULL DECL.
10439 * explow.c (promote_ssa_mode): New.
10440 * explow.h (promote_ssa_mode): Declare.
10441 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10442 (read_complex_part): Export.
10443 * expr.h (read_complex_part): Declare.
10444 * cfgexpand.h (parm_maybe_byref_p): Declare.
10445 * function.c: Include cfgexpand.h.
10446 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10447 (use_register_for_parm_decl): Wrapper for the above to
10448 special-case the result_ptr.
10449 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10450 (split_complex_args): Take assign_parm_data_all argument.
10451 Pass it to rtl_for_parm. Set up rtl and context for split
10452 args. Reset complex parm before fetching its default decl
10454 (assign_parms_unsplit_complex): Use the default-def complex
10455 parm rtl if it matches the components.
10456 (assign_parms_augmented_arg_list): Adjust.
10457 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10458 multiple locations. Recognize split complex args.
10459 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10460 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10461 (assign_parm_setup_block): Prefer SSA-assigned location, and
10462 fill in its address if the memory location of a maybe-byref
10463 parm was not assigned by cfgexpand.
10464 (assign_parm_setup_reg): Likewise. Adjust its mode as
10465 needed. Use entry_parm for equiv if stack_parm is NULL. Make
10466 sure passed_pointer parms don't need conversion. Copy address
10467 or value as needed.
10468 (assign_parm_setup_stack): Prefer SSA-assigned location.
10469 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10470 rtl before testing for pointer bounds. Special-case result_ptr.
10471 (expand_function_start): Maybe reset DECL_RTL of result.
10472 Prefer SSA-assigned location for result and static chain.
10473 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
10474 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
10475 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10476 anonymous SSA names. Use promote_ssa_mode.
10477 (get_temp_reg): Likewise.
10478 (remove_ssa_form): Adjust.
10479 * stor-layout.c (layout_decl): Don't set mem attributes of
10481 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10482 and get its reg_usage for reg invalidation.
10483 (compute_bb_dataflow): Pass it insn.
10484 (emit_notes_in_bb): Likewise.
10486 2015-08-14 Marek Polacek <polacek@redhat.com>
10488 * tree-core.h (tree_base): Fix typo.
10490 2015-08-14 Marek Polacek <polacek@redhat.com>
10492 PR middle-end/67133
10493 * gimple.c (infer_nonnull_range_by_attribute): Check that the
10494 nonnull argument position is not outside function arguments.
10496 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
10499 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
10500 'lconst_atomic' with 'const_atomic'.
10501 (atomic_fetch_<optab><mode>): Likewise.
10502 (atomic_<optab>_fetch<mode>): Likewise.
10503 * config/aarch64/iterators.md (lconst-atomic): Move below
10505 (const_atomic): New.
10507 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
10508 Bernd Schmidt <bernds@codesourcery.com>
10510 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
10512 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
10513 (DWARF2_DEBUGGING_INFO): Don't define.
10514 * debug.h (dwarf2_lineno_debug_hooks): Declare.
10515 * toplev.c (process_options): Add a case for it.
10516 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
10517 (dwarf2out_init): Skip most initializations if
10518 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
10520 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
10521 DWARF2_LINENO_DEBUGGING_INFO.
10522 * opts.c (set_debug_level): Likewise.
10524 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
10526 * config/arm/types.md (is_neon_type): Add missing types.
10528 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
10530 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
10532 * config/i386/i386.c (PTA_SKYLAKE): New macros.
10533 (processor_alias_table): Add skylake description.
10534 (enum processor_model): Add skylake processor.
10535 (arch_names_table): Add skylake record.
10536 * doc/invoke.texi: Add skylake item.
10538 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
10540 * ira-int.h: Include recog.h.
10541 * ira-build.c: Don't include recog.h.
10542 * ira-color.c: Likewise.
10543 * ira-conflicts.c: Likewise.
10544 * ira-costs.c: Likewise.
10545 * ira-emit.c: Likewise.
10546 * ira-lives.c: Likewise.
10548 * sched-deps.c: Likewise.
10549 * sel-sched.c: Likewise.
10550 * target-globals.c: Likewise.
10552 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
10555 * reload1.c (elimination_costs_in_insn): Make it obvious to the
10556 compiler that the n_dups and n_operands loop bounds are invariant.
10558 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10560 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
10561 expressions in A and B.
10563 2015-08-13 Richard Biener <rguenther@suse.de>
10565 * tree.c (nonnull_arg_p): Move from ...
10566 * tree-vrp.c (nonnull_arg_p): ... here.
10567 * tree.h (nonnull_arg_p): Declare.
10568 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
10569 here, register ptr != 0 for nonnull_arg_p pointer arguments.
10570 Properly initialize static chain and by-reference result pointer.
10571 (run_scc_vn): Adjust.
10573 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10575 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
10578 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10580 * config/aarch64/aarch64-protos.h
10581 (aarch64_gen_atomic_cas): Declare.
10582 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
10583 Choose appropriate instruction pattern for the target.
10584 (aarch64_gen_atomic_cas): New.
10585 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
10586 (atomic_compare_and_swap<mode>_1): Rename to
10587 aarch64_compare_and_swap<mode>. Fix some indentation.
10588 (aarch64_compare_and_swap<mode>_lse): New.
10589 (aarch64_atomic_cas<mode>): New.
10591 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10593 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
10596 2015-08-13 Richard Biener <rguenther@suse.de>
10598 PR tree-optimization/67191
10599 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
10600 assert we value-numbered last stmts operand because it can validly
10601 trigger for unreachable code.
10603 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10605 PR rtl-optimization/67103
10606 * ifcvt.c (noce_try_store_flag_constants): Move
10607 x = (-(test != 0) & (b - a)) + a transformation to...
10608 (noce_try_cmove): ... Here. Try it if normal conditional
10611 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10613 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
10615 * config/mips/mips.md (processor): Remove w32 and w64.
10617 2015-08-13 Richard Biener <rguenther@suse.de>
10619 PR tree-optimization/66502
10620 PR tree-optimization/67167
10621 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
10622 backedge arguments.
10623 (vn_phi_lookup): Adjust.
10624 (vn_phi_insert): Likewise.
10625 (visit_phi): Prefer to value-number to another PHI node
10626 over value-numbering to a PHI argument.
10627 (init_scc_vn): Mark DFS back edges.
10629 2015-08-13 Richard Biener <rguenther@suse.de>
10631 * gimple.h (gcall::code_): New constant static member.
10632 (gcond::code_): Likewise.
10633 * gimple.c (gcall::code_): Define.
10634 (gcond::code_): Likewise.
10635 (is_a_helper <const gcond *>): Add.
10636 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
10637 and forward to a new gcall overload with less checking and a
10638 cheaper way to access the operand.
10639 (gimple_call_lhs_ptr): Likewise.
10640 (gimple_call_set_lhs): Likewise.
10641 (gimple_call_internal_p): Likewise.
10642 (gimple_call_with_bounds_p): Likewise.
10643 (gimple_call_set_with_bounds): Likewise.
10644 (gimple_call_internal_fn): Likewise.
10645 (gimple_call_set_ctrl_altering): Likewise.
10646 (gimple_call_ctrl_altering_p): Likewise.
10647 (gimple_call_fntype): Likewise.
10648 (gimple_call_fn): Likewise.
10649 (gimple_call_fn_ptr): Likewise.
10650 (gimple_call_set_fndecl): Likewise.
10651 (gimple_call_fndecl): Likewise.
10652 (gimple_call_chain): Likewise.
10653 (gimple_call_num_args): Likewise.
10654 (gimple_call_arg): Likewise.
10655 (gimple_call_arg_ptr): Likewise.
10656 (gimple_call_set_arg): Likewise.
10657 (gimple_call_noreturn_p): Likewise.
10658 (gimple_cond_code): Likewise.
10659 (gimple_cond_lhs): Likewise.
10660 (gimple_cond_rhs): Likewise.
10661 (gimple_has_lhs): Reduce checking.
10663 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10665 PR middle-end/25529
10666 * match.pd (div (mult @0 @1) @1) : New simplifier.
10668 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10671 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
10672 predicate to allow construction of vector constants using the
10673 VSLDOI vector shift instruction.
10675 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
10678 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
10679 the number of bytes to be shifted left and filled in with either
10680 all zero or all one bits.
10681 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
10683 (output_vec_const_move): On power8, generate XXLORC to generate
10684 a vector constant with all 1's. Do a split if we need to use a
10685 VSLDOI instruction.
10687 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
10688 properly test for the MSB.
10690 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
10691 vector constants that can be created with VSLDOI.
10693 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
10696 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10697 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10698 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10699 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10700 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10701 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10702 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10703 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10704 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10706 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
10708 * config/xtensa/constraints.md (define_constraint "Y"): New
10710 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
10711 * config/xtensa/linux.h (ASM_SPEC): Likewise.
10712 * config/xtensa/predicates.md (move_operand): Match constants
10713 and symbols in the presence of TARGET_AUTO_LITPOOLS.
10714 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
10715 immediate references to TLS data.
10716 (xtensa_emit_move_sequence): Don't force constants to memory in
10717 the presence of TARGET_AUTO_LITPOOLS.
10718 (print_operand): Add 'y' format, same as default, but capable of
10719 printing SF mode constants as well.
10720 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
10721 (movsf_internal): Add movi pattern that loads literal.
10722 (movsf, movdf): Don't force constants to memory in the presence
10723 of TARGET_AUTO_LITPOOLS.
10724 (movdf_internal): Add 'Y' constraint.
10725 * config/xtensa/xtensa.opt (mauto-litpools): New option.
10726 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
10728 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10730 * config/arm/arm-fpus.def: Replace booleans with feature flags.
10732 * config/arm/arm.c (ARM_FPU): Update macro.
10733 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
10734 (TARGET_FP16): Likewise.
10735 (TARGET_CRYPTO): Likewise.
10736 (TARGET_NEON): Likewise.
10737 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
10740 2015-08-12 Tom de Vries <tom@codesourcery.com>
10744 * doc/install.texi: Remove --with_host_libstdcxx item. Update
10745 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
10746 accordingly. Mention default for --with-stage1-ldflags.
10748 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10750 * config/arm/arm.h (arm_fpu_feature_set): New.
10751 (ARM_FPU_FSET_HAS): New.
10752 (FPU_FL_NONE): New.
10753 (FPU_FL_NEON): New.
10754 (FPU_FL_FP16): New.
10755 (FPU_FL_CRYPTO): New.
10757 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10759 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
10760 after -mcmodel=large -fPIC sorry.
10762 2015-08-12 Richard Biener <rguenther@suse.de>
10764 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
10765 comparison operand order and commutative ternary op operand order.
10766 (sccvn_dom_walker::cond_stack): New state to track temporary
10768 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
10770 (sccvn_dom_walker::record_cond): Add a single temporary conditional
10772 (sccvn_dom_walker::record_conds): Add a temporary conditional
10773 expressions and all related expressions also true/false.
10774 (sccvn_dom_walker::before_dom_children): Record temporary
10775 expressions based on the controlling condition of a single
10776 predecessor. When trying to simplify a conditional statement
10777 lookup expressions we might have inserted earlier.
10779 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
10782 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
10783 to ARM core registers.
10785 2015-08-12 Nathan Sidwell <nathan@acm.org>
10787 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
10788 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
10790 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
10792 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
10793 line with comments.
10794 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
10796 2015-08-12 Richard Biener <rguenther@suse.de>
10798 * gimple.h (remove_pointer): New trait.
10799 (GIMPLE_CHECK2): New inline template function.
10800 (gassign::code_): New constant static member.
10801 (is_a_helper<const gassign *>): Add.
10802 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
10803 and forward to a new gassign overload with less checking and a
10804 cheaper way to access the operand.
10805 (gimple_assign_lhs_ptr): Likewise.
10806 (gimple_assign_set_lhs): Likewise.
10807 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
10809 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
10811 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
10813 (gimple_assign_rhs_code): Likewise.
10814 * gimple.c (gassign::code_): Define.
10816 2015-08-12 Richard Biener <rguenther@suse.de>
10818 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10819 Eliminate edges marked as not executable by SCCVN.
10820 * tree-ssa-sccvn.c: Include gimple-iterator.h.
10821 (cond_dom_walker): Rename to sccvn_dom_walker.
10822 (sccvn_dom_walker::before_dom_children): Value-number defs
10824 (run_scc_vn): Remove loop value-numbering all SSA names.
10825 Drop not visited SSA names to varying.
10827 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
10829 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10830 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10831 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10832 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10833 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10834 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10835 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10836 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10837 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10839 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
10842 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
10843 to enum feature_priority and feature_list.
10844 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
10845 and isa_names_table.
10847 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
10849 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
10850 vect_induction_def.
10852 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10856 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
10857 account when deciding what was the command-line status.
10859 2015-08-11 Nathan Sidwell <nathan@acm.org>
10861 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
10863 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
10864 we're not the only contributor to target phi.
10866 2015-08-11 Jiong Wang <jiong.wang@arm.com>
10868 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
10871 2015-08-11 Tom de Vries <tom@codesourcery.com>
10873 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
10875 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
10877 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
10879 * config/i386/i386.md (cpu): Remove knl.
10881 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10884 PR middle-end/66332
10885 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
10886 open-coded sequence.
10887 * omp-low.c (oacc_process_reduction_data): Remove handline of
10888 GOMP_DEVICE_HOST_NONSHM.
10890 * lto-streamer-in.c (lto_input_mode_table): Adjust to
10891 GET_MODE_INNER changes.
10893 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10894 Ilya Verbin <ilya.verbin@intel.com>
10896 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
10898 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10900 * doc/options.texi (EnabledBy): Document that the argument must be
10902 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
10903 Not enabled by -Wall.
10904 * optc-gen.awk: Give nicer error messages. Detect if the argument
10905 of EnabledBy is not a Common option.
10906 * common.opt (Wnull-dereference): Not enabled by -Wall.
10907 * opt-functions.awk (lang_enabled_by): Nicer error messages.
10909 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
10911 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
10912 model == 0x4f as Broadwell.
10914 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
10916 PR rtl-optimization/67028
10917 * combine.c (simplify_comparison): Fix comment. Rearrange code.
10918 Add test to see if a const_int fits in the new mode.
10920 2015-08-07 DJ Delorie <dj@redhat.com>
10922 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
10924 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
10926 PR rtl-optimization/67029
10927 * ira-color.c: Include "recog.h" before including "ira-int.h".
10928 * target-globals.c: Likewise.
10929 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
10930 adds an alternative_mask argument and use it instead of
10931 preferred_alternatives.
10932 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
10933 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
10934 * sched-deps.c: Include "ira-int.h" after including "ira.h".
10935 (sched_analyze_insn): Update call to
10936 ira_implicitly_set_insn_hard_regs.
10937 * sel-sched.c: Include "ira-int.h" after including "ira.h".
10938 (implicit_clobber_conflict_p): Update call to
10939 ira_implicitly_set_insn_hard_regs.
10941 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
10943 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
10945 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
10948 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
10949 currently_expanding_to_rtl is set.
10951 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
10953 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
10954 * configure: Regenerate.
10956 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10957 Jiong Wang <jiong.wang@arm.com>
10959 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10960 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10961 (REG_CLASS_NAMES): Likewise.
10962 (REG_CLASS_CONTENTS): Likewise.
10963 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10964 (aarch64_register_move_cost): Likewise.
10965 (aarch64_load_symref_appropriately): Invoke the new added pattern if
10967 * config/aarch64/constraints.md (Uc0): New constraint.
10969 2015-08-06 Jiong Wang <jiong.wang@arm.com>
10971 * config/aarch64/constraints.md (Usf): Add the test of
10972 aarch64_is_noplt_call_p.
10974 2015-08-06 Jiong Wang <jiong.wang@arm.com>
10976 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
10978 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
10979 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
10980 (call_symbol): Likewise.
10982 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10984 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
10985 for vectorizing multiplication patterns.
10986 * tree-vectorizer.h: Adjust the number of patterns.
10988 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
10990 * config/i386/sse.md (*vec_concatv2df): Declare added
10991 alternatives as sselog type.
10993 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10995 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
10998 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11000 * config/s390/s390.c (s390_expand_tbegin): Expand either
11001 tbegin_1_z13 or tbegin_1 depending on VX flag.
11002 * config/s390/s390.md ("tbegin_1_z13"): New expander.
11004 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11006 * config/s390/s390.opt: Clarify description for -mzvector
11007 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
11010 2015-08-06 Richard Biener <rguenther@suse.de>
11012 * gimple.h (gimple_call_set_fn): Access op member directly.
11013 (gimple_call_chain_ptr): Likewise.
11014 (gimple_call_set_chain): Likewise.
11015 (gimple_cond_lhs_ptr): Likewise.
11016 (gimple_cond_set_lhs): Likewise.
11017 (gimple_cond_rhs_ptr): Likewise.
11018 (gimple_cond_set_rhs): Likewise.
11019 (gimple_cond_true_label): Likewise.
11020 (gimple_cond_set_true_label): Likewise.
11021 (gimple_cond_set_false_label): Likewise.
11022 (gimple_cond_false_label): Likewise.
11023 (gimple_label_label): Likewise.
11024 (gimple_label_set_label): Likewise.
11025 (gimple_goto_set_dest): Likewise.
11026 (gimple_asm_input_op): Likewise.
11027 (gimple_asm_input_op_ptr): Likewise.
11028 (gimple_asm_set_input_op): Likewise.
11029 (gimple_asm_output_op): Likewise.
11030 (gimple_asm_output_op_ptr): Likewise.
11031 (gimple_asm_set_output_op): Likewise.
11032 (gimple_asm_clobber_op): Likewise.
11033 (gimple_asm_set_clobber_op): Likewise.
11034 (gimple_asm_label_op): Likewise.
11035 (gimple_asm_set_label_op): Likewise.
11036 (gimple_switch_index): Likewise.
11037 (gimple_switch_index_ptr): Likewise.
11038 (gimple_return_retval_ptr): Likewise.
11039 (gimple_return_retval): Likewise.
11040 (gimple_return_set_retval): Likewise.
11041 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
11042 (gimple_switch_label): Likewise.
11043 (gimple_switch_set_label): Likewise.
11045 2015-08-06 Richard Biener <rguenther@suse.de>
11047 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
11048 bool comparison canonicalization and restrict to integers.
11050 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
11052 * coretypes.h (enum symbol_visibility): Relocate here.
11053 * flag-types.h (enum symbol_visibility): Remove.
11054 * tree-core.h (enum symbol_visibility): Remove.
11056 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
11059 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
11060 for no_split_stack function attribute along with
11062 (rs6000_expand_split_stack_prologue): Likewise.
11064 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
11065 Jeff Law <law@redhat.com>
11068 * doc/invoke.texi (Wnull-dereference): New.
11069 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
11070 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
11071 Warn for potential NULL dereferences.
11072 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
11073 * ubsan.c (instrument_nonnull_arg): Call
11074 infer_nonnull_range_by_attribute.
11075 (instrument_nonnull_return): Likewise.
11076 * common.opt (Wnull-dereference); New.
11077 * gimple.c (infer_nonnull_range): Remove bool arguments.
11078 (infer_nonnull_range_by_dereference): New.
11079 (infer_nonnull_range_by_attribute): New.
11080 * gimple.h: Update declarations.
11082 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11084 * gensupport.c (sequence_num): Replace with...
11085 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
11086 ...these new variables.
11087 (init_rtx_reader_args_cb): Update accordingly.
11088 (get_num_code_insns): Likewise.
11089 (read_md_rtx): Rework to use a while loop and get_c_test.
11090 Use the new counters. Remove redundant DEFINE_SUBST case.
11091 * genoutput.c (gen_split): Delete.
11092 (main): Don't call it.
11094 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11096 * gensupport.h (get_c_test): Declare.
11097 * gensupport.c (get_c_test): New function.
11098 * genconditions.c (main): Use it.
11099 * genrecog.c (validate_pattern): Likewise.
11100 (match_pattern_1): Likewise. Remove c_test argument.
11101 (match_pattern): Update accordingly and remove c_test argument.
11102 (main): Update accordingly.
11104 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11106 * gensupport.h (get_num_insn_codes): Declare.
11107 * gensupport.c (get_num_insn_codes): New function.
11108 * genattrtab.c (optimize_attrs): Rename max_insn_code to
11110 (main): Likewise. Use get_num_insn_codes.
11111 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
11113 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11115 PR middle-end/66311
11116 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
11117 is zero- rather than sign-extended.
11119 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11121 * target-insns.def (can_extend): Delete.
11123 2015-08-05 Richard Biener <rguenther@suse.de>
11125 PR tree-optimization/67121
11126 * tree-if-conv.c (combine_blocks): Clear range-info produced
11127 by stmts no longer executed conditionally.
11129 2015-08-05 Nick Clifton <nickc@redhat.com>
11131 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
11132 to allow identical far pointers to remain.
11134 2015-08-05 Richard Biener <rguenther@suse.de>
11136 PR middle-end/67120
11137 * match.pd: Compare address bases with == if they are decls
11138 or SSA names, not operand_equal_p. Otherwise fail.
11140 2015-08-05 Richard Biener <rguenther@suse.de>
11142 PR tree-optimization/67055
11143 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
11146 * g++.dg/torture/pr67055.C: New testcase.
11148 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
11150 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
11152 (define_attr "enabled"): Handle avx521vl and noavx512vl.
11153 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
11154 AVX-512 alternative out of SSE.
11155 (define_insn "*vec_concatv2df"): Ditto.
11157 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
11159 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
11160 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
11161 CODE_FOR_avx_ptestv4di.
11162 * config/i386/sse.md (define_mode_iterator V_AVX): New.
11163 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
11164 (define_insn "avx_ptest256"): Merge this ...
11165 (define_insn "sse4_1_ptest"): And this ...
11166 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
11168 2015-08-05 Richard Biener <rguenther@suse.de>
11170 PR tree-optimization/67109
11171 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
11172 against too big groups. Print whether this is a load or store
11173 group. Rename from ...
11174 (vect_analyze_group_access): ... this which is now a wrapper
11175 dissolving an invalid group.
11176 (vect_analyze_data_ref_accesses): Print whether this is a load
11179 2015-08-05 Richard Biener <rguenther@suse.de>
11181 PR middle-end/67107
11182 * match.pd: Guard const_binop result checking against NULL_TREE
11185 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
11187 * cse.c (cse_insn): Restoring old behaviour for src_eqv
11188 when dest and value in the REG_EQUAL are same and dest
11189 is STRICT_LOW_PART.
11191 2015-08-04 Anatoly Sokolov <aesok@post.ru>
11193 * config/moxie/moxie.h (PRINT_OPERAND,
11194 PRINT_OPERAND_ADDRESS): Remove macros.
11195 * config/moxie/moxie-protos.h (moxie_print_operand,
11196 moxie_print_operand_address): Remove declaration.
11197 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
11198 TARGET_PRINT_OPERAND_ADDRESS): Define.
11199 (moxie_print_operand, moxie_print_operand_address): Make static.
11201 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
11204 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
11205 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
11207 2015-08-04 Richard Biener <rguenther@suse.de>
11209 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
11211 (dt_operand::gen_gimple_expr): Adjust.
11213 2015-08-04 Richard Biener <rguenther@suse.de>
11215 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
11216 bool compares on RHS.
11217 * match.pd: Add X ==/!= !X is false/true pattern.
11219 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
11221 * config/aarch64/aarch64.c: Change inner loop statement cost
11222 to be consistent with other targets.
11224 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
11226 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
11229 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
11231 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
11232 (machine_function): Remove pseudos field.
11234 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11236 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11237 Exit early and use target_option_current_node if processing current
11240 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11242 * doc/extend.texi (AArch64 Function Attributes): New node.
11243 (AArch64 Pragmas): Likewise.
11245 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11247 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11248 Initialize simd builtins if TARGET_SIMD.
11249 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
11250 Make sure that the builtins are initialized only once no matter how
11251 many times the function is called.
11252 (aarch64_init_builtins): Unconditionally initialize crc builtins.
11253 (aarch64_relayout_simd_param): New function.
11254 (aarch64_simd_expand_args): Use above during argument expansion.
11255 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
11256 simd builtins if TARGET_SIMD.
11257 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
11259 (aarch64_relayout_simd_types): Likewise.
11261 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11263 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
11264 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
11265 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
11266 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11268 (aarch64_reset_previous_fndecl): New function.
11269 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
11271 * config/aarch64/aarch64-c.c: New file.
11272 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
11273 Push and pop options at beginning and end. Remove ifdef
11274 __ARM_FEATURE_CRC32.
11275 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
11276 Add pragma +nothing+simd and +nothing+crypto where appropriate.
11277 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
11278 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
11280 (aarch64_register_pragmas): Likewise.
11281 (aarch64_reset_previous_fndecl): Likewise.
11282 (aarch64_process_target_attr): Likewise.
11283 (aarch64_override_options_internal): Likewise.
11285 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11287 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
11289 (aarch64_can_inline_p): Likewise.
11290 (TARGET_CAN_INLINE_P): Define.
11292 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11294 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
11295 Remove static. Handle OPT_mgeneral_regs_only,
11296 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
11297 OPT_momit_leaf_frame_pointer.
11298 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
11299 (aarch64_attr_opt_type): New enum.
11300 (aarch64_attribute_info): New struct.
11301 (aarch64_handle_attr_arch): New function.
11302 (aarch64_handle_attr_cpu): Likewise.
11303 (aarch64_handle_attr_tune): Likewise.
11304 (aarch64_handle_attr_isa_flags): Likewise.
11305 (aarch64_attributes): New table.
11306 (aarch64_process_one_target_attr): New function.
11307 (num_occurences_in_str): Likewise.
11308 (aarch64_process_target_attr): Likewise.
11309 (aarch64_option_valid_attribute_p): Likewise.
11310 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
11311 * config/aarch64/aarch64-protos.h: Include input.h
11312 (aarch64_handle_option): Declare prototype.
11314 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11316 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
11317 * config/aarch64/aarch64.c: Include target-globals.h
11318 (aarch64_previous_fndecl): New variable.
11319 (aarch64_set_current_function): New function.
11320 (TARGET_SET_CURRENT_FUNCTION): Define.
11322 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11324 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
11325 (explicit_arch): Likewise.
11326 (x_aarch64_isa_flags): Likewise.
11327 (mgeneral-regs-only): Mark as Save.
11328 (mfix-cortex-a53-835769): Likewise.
11329 (mcmodel=): Likewise.
11330 (mstrict-align): Likewise.
11331 (momit-leaf-frame-pointer): Likewise.
11332 (mtls-dialect): Likewise.
11333 (master=): Likewise.
11334 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
11335 (aarch64_isa_flags): Remove extern declaration.
11336 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
11337 to indicate success or failure.
11338 (aarch64_validate_march): Likewise.
11339 (aarch64_validate_mtune): Likewise.
11340 (aarch64_isa_flags): Delete.
11341 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
11342 instead of aarch64_isa_flags.
11343 (aarch64_get_tune_cpu): New function.
11344 (aarch64_get_arch): Likewise.
11345 (aarch64_override_options): Use above and set up explicit_tune_core
11347 (aarch64_print_extension): Move earlier in file. Add isa_flags
11348 argument and use that instead of the global aarch64_isa_flags.
11349 (aarch64_option_save): New function.
11350 (aarch64_option_restore): Likewise.
11351 (aarch64_option_print): Likewise.
11352 (aarch64_declare_function_name): Likewise.
11353 (aarch64_start_file): Delete.
11354 (TARGET_ASM_FILE_START): Do not define.
11355 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
11356 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
11359 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11361 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
11362 flag_omit_leaf_frame_pointer to 2.
11364 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11366 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
11368 (TARGET_FIX_ERR_A53_835769): New macro.
11369 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11370 handling of opts->x_aarch64_fix_a53_err835769.
11371 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
11372 than aarch64_fix_a53_err835769.
11373 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
11374 * config/aarch64/aarch64-linux.h: Likewise.
11376 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
11378 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
11379 ix86_expand_int_movcc as boolean.
11381 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11383 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
11384 (aarch64_cpu_string): Likewise.
11385 (aarch64_tune_string): Likewise.
11386 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
11387 (aarch64_parse_extension): Return aarch64_parse_opt_result.
11388 Add extra argument to put result into.
11389 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
11390 (aarch64_parse_cpu): Add arguments to put results into. Return
11391 aarch64_parse_opt_result.
11392 (aarch64_parse_tune): Likewise.
11393 (aarch64_override_options_after_change_1): New function.
11394 (aarch64_override_options_internal): New function.
11395 (aarch64_validate_mcpu): Likewise.
11396 (aarch64_validate_march): Likewise.
11397 (aarch64_validate_mtune): Likewise.
11398 (aarch64_override_options): Update to reflect above changes.
11399 Move some logic into aarch64_override_options_internal.
11400 Initialize target_option_default_node and target_option_current_node.
11401 (aarch64_override_options_after_change): Move logic into
11402 aarch64_override_options_after_change_1 and call it with global_options.
11403 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
11404 flag values from that.
11406 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11408 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11409 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
11410 * config/aarch64/aarch64.c (struct processor): Add arch field.
11411 (all_architectures): Handle above, move above all_cores.
11412 (all_cores): Handle above.
11413 (aarch64_parse_arch): Handle above changes.
11414 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
11415 above. Update comments.
11416 (armv8.1-a): Likewise.
11417 * config/aarch64/aarch64-cores.def: Update according to above.
11418 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
11419 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
11420 aarch64_arch_driver_info.
11422 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11424 * config/aarch64/aarch64.c (struct processor): Add ident field.
11425 Rename core sched_core.
11426 (all_cores): Handle above changes.
11427 (all_architectures): Likewise.
11428 (aarch64_parse_arch): Likewise.
11429 (aarch64_override_options): Likewise.
11431 2015-08-04 Richard Biener <rguenther@suse.de>
11433 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
11434 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
11435 comparisons embedded in [VEC_]COND_EXPRs.
11437 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
11439 * tree-if-conv.c: Fix various typos in comments.
11440 * tree-vect-stmts.c: Likewise.
11442 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
11444 PR tree-optimization/67043
11445 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
11446 preheader after hoisting invariant in it.
11447 (find_defs): Force recomputation of all luids.
11449 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
11451 * config/rs6000/htm.md (tabort.): Restrict the source operand to
11452 using a base register.
11454 2015-08-03 David Malcolm <dmalcolm@redhat.com>
11456 * main.c (main): Pass in NULL for toplev's external_timer.
11457 * timevar.c: Include coretypes.h.
11458 (class timer::named_items): New.
11459 (timer::named_items::named_items): New.
11460 (timer::named_items::~named_items): New.
11461 (timer::named_items::push): New.
11462 (timer::named_items::pop): New.
11463 (timer::named_items::print): New.
11464 (timer::timer): Initialize field "m_jit_client_items".
11465 (timer::~timer): New.
11466 (timer::push): Move bulk of implementation to...
11467 (timer::push_internal): ...here. New function.
11468 (timer::pop): Move bulk of implementation to...
11469 (timer::pop_internal): ...here. New function.
11470 (timer::push_client_item): New.
11471 (timer::pop_client_item): New.
11472 (timer::print_row): New function, taken from timer::print.
11473 (timer::print): Print "GCC items" header if we also have client
11474 items. Move row-printing to timer::print_row. Print any client
11476 (timer::get_topmost_item_name): New method.
11477 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
11478 (TV_JIT_CLIENT_CODE): New.
11479 * timevar.h (timer::push_client_item): New declaration.
11480 (timer::pop_client_item): New declaration.
11481 (timer::get_topmost_item_name): New method.
11482 (timer::push_internal): New declaration.
11483 (timer::pop_internal): New declaration.
11484 (timer::print_row): New declaration.
11485 (timer::named_items): New declaration.
11486 (timer::m_jit_client_items): New field.
11487 (timer): Add friend class named_items.
11488 (auto_timevar::auto_timevar): Add timer param.
11489 (auto_timevar::~auto_timevar): Use field "m_timer".
11490 (auto_timevar::m_timer): New field.
11491 * toplev.c (initialize_rtl): Add g_timer as param when
11492 constructing auto_timevar instance.
11493 (toplev::toplev): Add "external_timer" param, and use it to
11494 initialize the "g_timer" global if non-NULL.
11495 (toplev::~toplev): If this created "g_timer", delete it.
11496 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
11497 with "external_timer" timer *.
11499 2015-08-03 Alexander Basov <coohpt@gmail.com>
11501 PR middle-end/64744
11502 PR middle-end/48470
11503 PR middle-end/43404
11504 * cfgexpand.c (expand_one_var): Add check if stack is going to
11505 be used in naked function.
11506 * expr.c (expand_expr_addr_expr_1): Remove excess checking
11507 whether expression should not reside in MEM.
11508 * function.c (use_register_for_decl): Do not use registers for
11509 non-register things (volatile, float, BLKMode) in naked functions.
11511 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
11514 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
11515 Adjust splits to match new pattern.
11517 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11519 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
11522 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
11523 point in VSX registers.
11525 * config/rs6000/constraints.md (wb constraint): Document unused
11527 (we constraint): Likewise.
11528 (wo constraint): Likewise.
11529 (wp constraint): New constraint for IEEE 128-bit floating point in
11531 (wq constraint): Likewise.
11533 * config/rs6000/predicates.md (easy_fp_constant): Add support for
11534 IEEE 128-bit floating point in VSX registers.
11535 (easy_scalar_constant): Likewise.
11537 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
11538 constraints (wp, wq) for IEEE 128-bit floating point in VSX
11540 (rs6000_init_hard_regno_mode_ok): Likewise.
11542 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
11543 floating point in VSX registers.
11546 (VSX_M2): Likewise.
11552 (vsx_le_permute_<mode>): Add support to properly swap bytes for
11553 IEEE 128-bit floating point in VSX registers on little endian.
11554 (vsx_le_undo_permute_<mode>): Likewise.
11555 (vsx_le_perm_load_<mode>): Likewise.
11556 (vsx_le_perm_store_<mode>): Likewise.
11557 (splitters for IEEE 128-bit fp moves): Likewise.
11559 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
11562 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
11563 floating point in VSX registers.
11566 * doc/md.text (Machine Constraints): Document wp and wq
11567 constraints on PowerPC.
11569 2015-08-03 Jeff Law <law@redhat.com>
11571 PR middle-end/66314
11572 PR gcov-profile/66899
11573 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
11574 iterate over the jump threading paths when an element in the
11575 jump threading paths array is eliminated.
11577 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
11579 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
11581 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
11583 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
11584 is_use_properly_guarded the variable def_preds. Free its
11585 contents before returning.
11586 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
11587 (is_use_properly_guarded): Replace local variable def_preds with
11588 a parameter. Adjust accordingly. Only update *def_preds if it's
11591 2015-08-03 Richard Biener <rguenther@suse.de>
11593 * genmatch.c (simplify::for_subst_vec): New member.
11594 (binary_ok): New helper for for lowering.
11595 (lower_for): Delay substituting operators into result expressions
11596 if we can merge the results eventually again.
11597 (capture_info::walk_result): Adjust for user_id appearing as
11598 result expression operator.
11599 (expr::gen_transform): Likewise.
11600 (dt_simplify::gen_1): Likewise.
11601 (dt_simplify::gen): Pass not substituted operators to tail
11602 functions or initialize local variable with it.
11603 (decision_tree::gen): Adjust function signature.
11604 * match.pd: Fix tests against global code and add default
11605 cases to switch stmts.
11607 2015-08-03 Richard Biener <rguenther@suse.de>
11609 * genmatch.c (dt_simplify::gen): Create captures array
11610 with an initializer.
11612 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11614 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
11615 the host compiler is affected by placement new aliasing bug.
11616 * configure: Regenerate.
11617 * Makefile.in (ALIASING_FLAGS): New variable.
11618 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
11620 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
11623 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
11624 (negmulsf3_vfp): Likewise.
11625 (muldf3negdf_vfp): Disable for -frounding-math.
11626 (mulsf3negsf_vfp): Likewise.
11627 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
11628 fix MULT cost with -frounding-math.
11630 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11632 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
11633 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
11634 explicit. Prefer to add the flag whenever possible.
11635 (noce_process_if_block): Try noce_try_store_flag_constants before
11638 2015-08-03 Richard Biener <rguenther@suse.de>
11640 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
11641 New hash-map to record equivalent transforms.
11642 (dt_node::analyze): Populate the equivalent transforms hash-map.
11643 (dt_simplify::info): Add reference to hash-map entry.
11644 (dt_simplify::gen): If we have split out a function for the
11645 transform, generate a call to it.
11646 (sinfo_hashmap_traits::hash): New function.
11647 (compare_op): New helper function for ...
11648 (sinfo_hashmap_traits::equal_keys): ... this new function.
11649 (decision_tree::gen): Split out common equivalent transforms
11652 2015-08-03 Richard Biener <rguenther@suse.de>
11654 * gimple-fold.c (fold_gimple_assign): Remove folding of
11655 the comparison in COND_EXPRs.
11657 2015-08-03 Richard Biener <rguenther@suse.de>
11659 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
11660 on the rhs of assignments first simplify the embedded
11663 2015-08-03 Richard Biener <rguenther@suse.de>
11665 PR tree-optimization/66917
11666 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
11668 (DR_VECT_AUX): New macro.
11669 (set_dr_misalignment): Adjust.
11670 (dr_misalignment): Likewise.
11671 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11672 Compute whether the base is at least element aligned.
11673 * tree-vect-stmts.c (ensure_base_align): Adjust.
11674 (vectorizable_store): If the base is not element aligned
11675 preserve alignment of the original access if misalignment is unknown.
11676 (vectorizable_load): Likewise.
11678 2015-08-02 Martin Sebor <msebor@redhat.com>
11680 * c-family/c.opt (-Wframe-address): New warning option.
11681 * doc/invoke.texi (Wframe-address): Document it.
11682 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
11683 Clarify possible effects of calling the functions with non-zero
11684 arguments and mention -Wframe-address.
11685 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
11687 2015-08-01 Michael Collison <michael.collison@linaro.org
11688 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11690 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
11691 (*arm_umin_cmp): Likewise.
11693 2015-08-01 Caroline Tice <cmtice@google.com>
11696 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
11698 (vtbl_find_mangled_name): New function.
11699 (vtbl_register_mangled_name): New function.
11700 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
11701 mangled name in mangled name vectors.
11702 (find_or_create_vtbl_map_node): Ditto.
11703 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
11704 update recursion_depth on function entry; pass it to every recursive
11705 call; automatically exit if depth > 25 (give up looking at that point).
11706 (verify_bb_vtables): Initialize recursion_depth and pass it to
11707 var_is_used_for_virtual_call_p.
11708 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
11709 global variable decls.
11710 (vtbl_register_mangled_name): New extern function decl.
11712 2015-08-01 Tom de Vries <tom@codesourcery.com>
11714 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
11716 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
11718 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
11719 operation_no_trapping_overflow. Allow non-overflow operations.
11720 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
11723 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
11726 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
11728 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11730 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
11731 Enable for TARGET_32BIT.
11732 (*if_move_neg): Likewise.
11734 2015-07-31 Nick Clifton <nickc@redhat.com>
11736 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
11737 Returns true for __model__.
11738 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11740 2015-07-31 Alan Modra <amodra@gmail.com>
11743 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
11744 (rs6000_emit_prologue): Set it.
11745 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
11747 2015-07-31 Richard Biener <rguenther@suse.de>
11749 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
11750 -> X == (C1 ^ C2) which is already implemented in match.pd.
11751 Remove redundant dispatching to fold_relational_const.
11752 Move unordered self and NaN compares ...
11753 * match.pd: ... as patterns here. Remove some stray captures
11756 2015-07-31 Petr Murzin <petr.murzin@intel.com>
11758 * config/i386/i386.c
11759 (bdesc_special_args): Convert mask type from signed to unsigned for
11761 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
11762 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
11763 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
11764 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
11765 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
11766 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
11767 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
11768 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
11769 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
11770 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
11771 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
11772 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
11773 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
11774 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
11775 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
11776 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
11777 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
11778 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
11779 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
11780 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
11781 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
11782 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
11783 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
11784 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
11785 * config/i386/i386-builtin-types.def
11786 (V16QI_FTYPE_V16SI): Remove.
11787 (V8DF_FTYPE_V8SI): Ditto.
11788 (V8HI_FTYPE_V8DI): Ditto.
11789 (V8SI_FTYPE_V8DI): Ditto.
11790 (V8SF_FTYPE_V8DF): Ditto.
11791 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
11792 (V16HI_FTYPE_V16SI): Ditto.
11793 (V16SF_FTYPE_V16HI): Ditto.
11794 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
11795 (V16SF_FTYPE_V16SI): Ditto.
11796 (V4DI_FTYPE_V4DI): Ditto.
11797 (V16SI_FTYPE_V16SF): Ditto.
11798 (V16SF_FTYPE_FLOAT): Ditto.
11799 (V8DF_FTYPE_DOUBLE): Ditto.
11800 (V8DI_FTYPE_INT64): Ditto.
11801 (V8DI_FTYPE_V4DI): Ditto.
11802 (V16QI_FTYPE_V8DI): Ditto.
11803 (UINT_FTYPE_V4SF): Ditto.
11804 (UINT64_FTYPE_V4SF): Ditto.
11805 (UINT_FTYPE_V2DF): Ditto.
11806 (UINT64_FTYPE_V2DF): Ditto.
11807 (V16SI_FTYPE_V16SI): Ditto.
11808 (V8DI_FTYPE_V8DI): Ditto.
11809 (V16SI_FTYPE_PV4SI): Ditto.
11810 (V16SF_FTYPE_PV4SF): Ditto.
11811 (V8DI_FTYPE_PV2DI): Ditto.
11812 (V8DF_FTYPE_PV2DF): Ditto.
11813 (V4DI_FTYPE_PV2DI): Ditto.
11814 (V4DF_FTYPE_PV2DF): Ditto.
11815 (V16SI_FTYPE_PV2SI): Ditto.
11816 (V16SF_FTYPE_PV2SF): Ditto.
11817 (V8DI_FTYPE_PV4DI): Ditto.
11818 (V8DF_FTYPE_PV4DF): Ditto.
11819 (V8SF_FTYPE_FLOAT): Ditto.
11820 (V4SF_FTYPE_FLOAT): Ditto.
11821 (V4DF_FTYPE_DOUBLE): Ditto.
11822 (V8SF_FTYPE_PV4SF): Ditto.
11823 (V8SI_FTYPE_PV4SI): Ditto.
11824 (V4SI_FTYPE_PV2SI): Ditto.
11825 (V8SF_FTYPE_PV2SF): Ditto.
11826 (V8SI_FTYPE_PV2SI): Ditto.
11827 (V16SF_FTYPE_PV8SF): Ditto.
11828 (V16SI_FTYPE_PV8SI): Ditto.
11829 (V8DI_FTYPE_V8SF): Ditto.
11830 (V4DI_FTYPE_V4SF): Ditto.
11831 (V2DI_FTYPE_V4SF): Ditto.
11832 (V64QI_FTYPE_QI): Ditto.
11833 (V32HI_FTYPE_HI): Ditto.
11834 (V8UHI_FTYPE_V8UHI): Ditto.
11835 (V16UHI_FTYPE_V16UHI): Ditto.
11836 (V32UHI_FTYPE_V32UHI): Ditto.
11837 (V2UDI_FTYPE_V2UDI): Ditto.
11838 (V4UDI_FTYPE_V4UDI): Ditto.
11839 (V8UDI_FTYPE_V8UDI): Ditto.
11840 (V4USI_FTYPE_V4USI): Ditto.
11841 (V8USI_FTYPE_V8USI): Ditto.
11842 (V16USI_FTYPE_V16USI): Ditto.
11843 (V2DF_FTYPE_V2DF_UINT64): Ditto.
11844 (V2DI_FTYPE_V2DF_V2DF): Ditto.
11845 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
11846 (V8DF_FTYPE_V8DF_V8DI): Ditto.
11847 (V4SF_FTYPE_V4SF_UINT64): Ditto.
11848 (V4SI_FTYPE_V4SF_V4SF): Ditto.
11849 (V16SF_FTYPE_V16SF_V16SI): Ditto.
11850 (V64QI_FTYPE_V32HI_V32HI): Ditto.
11851 (V32HI_FTYPE_V16SI_V16SI): Ditto.
11852 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
11853 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
11854 (V32HI_FTYPE_V64QI_V64QI): Ditto.
11855 (V32HI_FTYPE_V32HI_V32HI): Ditto.
11856 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
11857 (V16SI_FTYPE_V16SI_V4SI): Ditto.
11858 (V16SI_FTYPE_V16SI_V16SI): Ditto.
11859 (V16SI_FTYPE_V32HI_V32HI): Ditto.
11860 (V16SI_FTYPE_V16SI_SI): Ditto.
11861 (V8DI_FTYPE_V8DI_V8DI): Ditto.
11862 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
11863 (V8DI_FTYPE_V16SI_V16SI): Ditto.
11864 (V8DI_FTYPE_V8DI_V2DI): Ditto.
11865 (QI_FTYPE_QI): Ditto.
11866 (SI_FTYPE_SI): Ditto.
11867 (DI_FTYPE_DI): Ditto.
11868 (QI_FTYPE_QI_QI): Ditto.
11869 (QI_FTYPE_QI_INT): Ditto.
11870 (HI_FTYPE_HI_INT): Ditto.
11871 (SI_FTYPE_SI_INT): Ditto.
11872 (DI_FTYPE_DI_INT): Ditto.
11873 (HI_FTYPE_V16QI_V16QI): Ditto.
11874 (SI_FTYPE_V32QI_V32QI): Ditto.
11875 (DI_FTYPE_V64QI_V64QI): Ditto.
11876 (QI_FTYPE_V8HI_V8HI): Ditto.
11877 (HI_FTYPE_V16HI_V16HI): Ditto.
11878 (SI_FTYPE_V32HI_V32HI): Ditto.
11879 (QI_FTYPE_V4SI_V4SI): Ditto.
11880 (QI_FTYPE_V8SI_V8SI): Ditto.
11881 (QI_FTYPE_V2DI_V2DI): Ditto.
11882 (QI_FTYPE_V4DI_V4DI): Ditto.
11883 (QI_FTYPE_V8DI_V8DI): Ditto.
11884 (HI_FTYPE_V16SI_V16SI): Ditto.
11885 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
11886 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
11887 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
11888 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
11889 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
11890 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
11891 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
11892 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
11893 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
11894 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
11895 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
11896 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
11897 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
11898 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
11899 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
11900 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
11901 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
11902 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
11903 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
11904 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
11905 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
11906 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
11907 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
11908 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
11909 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
11910 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
11911 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
11912 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
11913 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
11914 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
11915 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
11916 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
11917 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
11918 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
11919 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
11920 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
11921 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
11922 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
11923 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
11924 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
11925 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
11926 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
11927 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
11928 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
11929 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
11930 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
11931 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
11932 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
11933 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
11934 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
11935 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
11936 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
11937 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
11938 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
11939 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
11940 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
11941 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
11942 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
11943 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
11944 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
11945 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
11946 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
11947 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
11948 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
11949 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
11950 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
11951 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
11952 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
11953 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
11954 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
11955 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
11956 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
11957 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
11958 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
11959 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
11960 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
11961 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
11962 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
11963 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
11964 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
11965 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
11966 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
11967 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
11968 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
11969 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
11970 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
11971 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
11972 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
11973 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
11974 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
11975 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
11976 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
11977 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
11978 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
11979 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
11980 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
11981 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
11982 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
11983 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
11984 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
11985 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
11986 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11987 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11988 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11989 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
11990 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
11991 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
11992 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
11993 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
11994 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
11995 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
11996 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
11997 (HI_FTYPE_HI): Ditto.
11998 (HI_FTYPE_V16QI): Ditto.
11999 (SI_FTYPE_V32QI): Ditto.
12000 (DI_FTYPE_V64QI): Ditto.
12001 (QI_FTYPE_V8HI): Ditto.
12002 (HI_FTYPE_V16HI): Ditto.
12003 (SI_FTYPE_V32HI): Ditto.
12004 (QI_FTYPE_V4SI): Ditto.
12005 (QI_FTYPE_V8SI): Ditto.
12006 (HI_FTYPE_V16SI): Ditto.
12007 (QI_FTYPE_V2DI): Ditto.
12008 (QI_FTYPE_V4DI): Ditto.
12009 (QI_FTYPE_V8DI): Ditto.
12010 (V16QI_FTYPE_HI): Ditto.
12011 (V32QI_FTYPE_SI): Ditto.
12012 (V64QI_FTYPE_DI): Ditto.
12013 (V8HI_FTYPE_QI): Ditto.
12014 (V16HI_FTYPE_HI): Ditto.
12015 (V32HI_FTYPE_SI): Ditto.
12016 (V4SI_FTYPE_QI): Ditto.
12017 (V4SI_FTYPE_HI): Ditto.
12018 (V8SI_FTYPE_QI): Ditto.
12019 (V8SI_FTYPE_HI): Ditto.
12020 (V2DI_FTYPE_QI): Ditto.
12021 (V4DI_FTYPE_QI): Ditto.
12022 (HI_FTYPE_HI_HI): Ditto.
12023 (SI_FTYPE_SI_SI): Ditto.
12024 (DI_FTYPE_DI_DI): Ditto.
12025 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
12026 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
12027 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
12028 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
12029 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
12030 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
12031 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
12032 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
12033 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
12034 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
12035 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
12036 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
12037 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
12038 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
12039 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
12040 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
12041 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
12042 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
12043 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
12044 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
12045 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
12046 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
12047 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
12048 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
12049 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
12050 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
12051 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
12052 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
12053 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
12054 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
12055 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
12056 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
12057 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
12058 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
12059 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
12060 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
12061 (V16SI_FTYPE_HI): Ditto.
12062 (V8DI_FTYPE_QI): Ditto.
12063 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
12064 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
12065 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
12066 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
12067 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
12068 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
12069 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
12070 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
12071 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
12072 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
12073 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
12074 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
12075 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
12076 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
12077 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
12078 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
12079 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
12080 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
12081 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
12082 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
12083 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
12084 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
12085 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
12086 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
12087 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
12088 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
12089 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
12090 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
12091 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
12092 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
12093 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
12094 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
12095 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
12096 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
12097 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
12098 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
12099 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
12100 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
12101 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
12102 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
12103 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
12104 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
12105 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
12106 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
12107 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
12108 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
12109 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
12110 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
12111 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
12112 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
12113 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
12114 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
12115 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
12116 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
12117 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
12118 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
12119 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
12120 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
12121 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
12122 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
12123 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
12124 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
12125 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
12126 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
12127 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
12128 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
12129 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
12130 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
12131 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
12132 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
12133 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
12134 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
12135 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
12136 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
12137 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
12138 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
12139 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
12140 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
12141 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
12142 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
12143 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
12144 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
12145 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
12146 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
12147 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
12148 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
12149 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
12150 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
12151 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
12152 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
12153 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
12154 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
12155 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
12156 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
12157 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
12158 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
12159 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
12160 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
12161 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
12162 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
12163 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
12164 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
12165 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
12166 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
12167 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
12168 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
12169 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
12170 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
12171 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
12172 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
12173 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
12174 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
12175 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
12176 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
12177 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
12178 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
12179 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
12180 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
12181 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
12182 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
12183 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
12184 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
12185 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
12186 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
12187 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
12188 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
12189 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
12190 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
12191 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
12192 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
12193 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
12194 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
12195 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
12196 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
12197 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
12198 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
12199 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
12200 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
12201 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
12202 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
12203 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
12204 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
12205 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
12206 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
12207 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
12208 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
12209 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
12210 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
12211 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
12212 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
12213 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
12214 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
12215 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
12216 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
12217 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
12218 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
12219 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
12220 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
12221 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
12222 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
12223 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
12224 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
12225 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
12226 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
12227 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
12228 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
12229 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
12230 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
12231 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
12232 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
12233 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
12234 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
12235 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
12236 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
12237 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
12238 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
12239 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
12240 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
12241 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
12242 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
12243 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
12244 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
12245 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
12246 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
12247 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
12248 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
12249 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
12250 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
12251 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
12252 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
12253 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
12254 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
12255 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
12256 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
12257 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
12258 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
12259 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
12260 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
12261 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
12262 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
12263 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
12264 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
12265 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
12266 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
12267 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
12268 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
12269 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
12270 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
12271 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
12272 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
12273 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
12274 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
12275 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
12276 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
12277 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
12278 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
12279 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
12280 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
12281 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
12282 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
12283 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
12284 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
12285 (QI_FTYPE_V8DF_INT_QI): Ditto.
12286 (QI_FTYPE_V4DF_INT_QI): Ditto.
12287 (QI_FTYPE_V2DF_INT_QI): Ditto.
12288 (HI_FTYPE_V16SF_INT_HI): Ditto.
12289 (QI_FTYPE_V8SF_INT_QI): Ditto.
12290 (QI_FTYPE_V4SF_INT_QI): Ditto.
12291 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
12293 2015-07-31 Richard Biener <rguenther@suse.de>
12295 * gimple-fold.c (fold_gimple_assign): Remove folding of
12298 2015-07-31 Tom de Vries <tom@codesourcery.com>
12300 PR tree-optimization/66846
12301 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
12302 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
12303 (expand_omp_target) [ENABLE_CHECKING]: Same.
12304 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
12305 cfun if !LOOPS_NEED_FIXUP.
12306 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
12307 that omp_for already has its own loop struct.
12308 * tree-parloops.c (create_phi_for_local_result)
12309 (create_call_for_reduction): Handle simple latch bb.
12310 (create_parallel_loop): Add simple latch bb to preserve
12311 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
12312 (gen_parallel_loop): Remove call to cancel_loop_tree.
12313 (parallelize_loops): Skip loops that are inner loops of parallelized
12315 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
12316 verify_loop_structure.
12318 2015-07-30 Anatoly Sokolov <aesok@post.ru>
12320 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
12321 * config/v850/v850.md (RV_REGNUM): New constants.
12322 * config/v850/v850.c (v850_libcall_value): New functions.
12323 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
12324 (TARGET_LIBCALL_VALUE): Define.
12326 2015-07-30 Anatoly Sokolov <aesok@post.ru>
12328 * rtl.h (lowpart_subreg): Move in file.
12329 * loop-iv.c (lowpart_subreg): Move to...
12330 * simplify-rtx.c (lowpart_subreg): ...here.
12331 (simplify_binary_operation_1): Use lowpart_subreg instead of
12332 simplify_gen_subreg.
12333 * expr.c (expand_expr_real_2): Ditto.
12334 * emit-rtl.c (gen_lowpart_common): Ditto.
12335 * combine.c (gen_lowpart_for_combine): Ditto.
12336 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
12337 expand_debug_source_expr): Ditto.
12339 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
12341 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
12342 (expand_builtin_atomic_clear): Remove support for atomic_clear
12345 2015-07-30 Richard Biener <rguenther@suse.de>
12347 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
12348 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
12349 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
12350 redundant operand canonicalization.
12352 2015-07-30 David Sherwood <david.sherwood@arm.com>
12354 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
12355 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
12356 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
12357 * config/arm/arm.c (neon_valid_immediate): Likewise.
12358 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
12359 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
12360 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
12361 (expand_vec_perm_vpshufb2_vpermq): Likewise.
12362 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
12363 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
12364 * config/i386/sse.md
12365 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
12366 (*ssse3_palignr<mode>_perm): Likewise.
12367 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
12368 * config/spu/spu.c (arith_immediate_p): Likewise.
12369 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12370 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
12372 2015-07-30 Richard Biener <rguenther@suse.de>
12374 * genmatch.c (decision_tree::gen_gimple): Merge with ...
12375 (decision_tree::gen_generic): ... this into ...
12376 (decision_tree::gen): ... this.
12377 (main): Adjust callers.
12379 2015-07-30 Richard Biener <rguenther@suse.de>
12381 * genmatch.c (verbose): New global.
12382 (warning_at): Add overload with source_location.
12383 (capture_info::capture_info): Add bool whether generating gimple
12384 or generic. Add gimple member.
12385 (capture_info::cinfo): Add capture member.
12386 (capture_info::walk_match): Record capture. Warn on
12387 non-captured leafs.
12388 (capture_info::walk_c_expr): Add more fragments captures cannot
12389 escape through. Warn on escaped captures.
12390 (dt_simplify::gen_1): Warn on operands we force to have no
12392 (main): Initialize verbose.
12393 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
12395 2015-07-30 Richard Biener <rguenther@suse.de>
12397 PR middle-end/67053
12398 * match.pd: Allow both operands to independently have conversion
12399 when simplifying compares of addresses.
12401 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
12405 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
12406 around those cases that need one.
12408 2015-07-29 Aditya Kumar <hiraditya@msn.com>
12410 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
12412 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
12414 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
12415 New. Copied from config/i386/gnu-user.h.
12416 (ASM_COMMENT_START): Likewise.
12417 (DBX_REGISTER_NUMBER): Likewise.
12419 2015-07-29 Richard Biener <rguenther@suse.de>
12421 * gimple-fold.c (fold_gimple_cond): Remove.
12422 (fold_stmt_1): Do not call it.
12424 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
12426 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
12427 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
12429 * config/aarch64/aarch64-modes.def: Add HFmode.
12431 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12432 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
12434 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
12435 aarch64_promoted_type): New.
12437 (aarch64_float_const_representable_p): Disable HFmode.
12438 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
12439 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
12440 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
12442 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
12443 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
12445 * config/aarch64/iterators.md (GPF_F16): New.
12447 2015-07-29 Richard Biener <rguenther@suse.de>
12449 * match.pd: Merge address comparison patterns and make them
12450 handle some more cases.
12452 2015-07-29 Richard Biener <rguenther@suse.de>
12454 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
12455 (parser::parse_capture): Add bool argument on whether to reject
12457 (parser::parse_expr): Adjust.
12458 (parser::parse_op): Likewise.
12459 (parser::parse_pattern): Likewise.
12461 2015-07-29 Richard Biener <rguenther@suse.de>
12463 * gimple-fold.c (has_use_on_stmt): New function.
12464 (replace_stmt_with_simplification): Use it to allow
12465 abnormals originally referenced in the stmt.
12466 (fold_stmt_1): Canonicalize operand order.
12468 2015-07-28 David Sherwood <david.sherwood@arm.com>
12470 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
12471 GET_MODE_INNER unconditionally.
12472 * config/spu/spu.c (arith_immediate_p): Likewise.
12473 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
12474 * expmed.c (synth_mult): Remove check for VOIDmode result from
12476 (expand_mult_const): Likewise.
12477 * fold-const.c (fold_binary_loc): Replace call to element_precision
12478 with call to GET_MODE_PRECISION.
12479 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
12481 (emit_mode_inner): Likewise.
12482 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
12484 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
12485 (GET_MODE_UNIT_PRECISION): Likewise.
12486 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
12487 * simplify-rtx.c (simplify_immed_subreg): Likewise.
12488 * stor-layout.c (bitwise_type_for_mode): Update assert.
12489 (element_precision): Remove.
12491 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12493 * target-insns.def (reload_load_address): New targetm instruction
12495 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
12497 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12499 * target-insns.def (atomic_test_and_set): New targetm instruction
12501 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
12502 HAVE_*/gen_* interface.
12504 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12506 * target-insns.def (can_extend, ptr_extend): New targetm instruction
12508 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
12509 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12510 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
12511 * rtlanal.c (nonzero_bits1): Likewise.
12512 (num_sign_bit_copies1): Likewise.
12514 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12516 * target-insns.def (eh_return): New targetm instruction pattern.
12517 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
12519 * function.c (thread_prologue_and_epilogue_insns): Remove
12520 preprocessor condition.
12522 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12524 * target-insns.def (indirect_jump): New targetm instruction pattern.
12525 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
12528 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12530 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
12531 instead of nonimmediate_operand. Remove C condiition.
12533 2015-07-28 Richard Biener <rguenther@suse.de>
12535 * match.pd: Add more simplification of address comparisons.
12537 2015-07-28 Richard Biener <rguenther@suse.de>
12539 * match.pd: Re-order two cases in comparison with max/min
12540 value simplification to make it apply for bools.
12542 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12544 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
12545 Handle simple SIGN_EXTEND or ZERO_EXTEND.
12546 (aarch64_rtx_costs): Properly strip extend or extract before
12547 passing down to rtx costs again.
12549 2015-07-28 Nick Clifton <nickc@redhat.com>
12551 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
12552 Optimizes the case where -mes0 is active and a constant symbolic
12554 * config/rl78/rl78-protos.h: Prototype the new function.
12555 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
12557 2015-07-28 Tom de Vries <tom@codesourcery.com>
12559 * tree-parloops.c (reduc_stmt_res): New function.
12560 (initialize_reductions, add_field_for_reduction)
12561 (create_phi_for_local_result, create_loads_for_reductions)
12562 (create_stores_for_reduction, build_new_reduction): Handle case that
12563 reduc_stmt is a phi.
12564 (gather_scalar_reductions): Allow double_reduc reductions.
12566 2015-07-28 Richard Biener <rguenther@suse.de>
12568 * fold-const.c (fold_comparison): Remove equality folding
12569 of decl addresses ...
12570 * match.pd: ... here and merge with existing pattern.
12572 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12574 PR tree-optimization/66828
12575 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
12576 from int64_t to uint64_t.
12578 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
12580 * opts-common.c (read_cmdline_option): List DriverOnly enum values
12581 as valid only in the error message of the driver, not in the
12582 messages of the language compilers.
12584 2015-07-27 Tom de Vries <tom@codesourcery.com>
12586 * tree-parloops.c (gather_scalar_reductions): Simplify function
12589 2015-07-27 Marek Polacek <polacek@redhat.com>
12591 * ipa-devirt.c (types_same_for_odr): Fix typo.
12593 2015-07-27 Jason Merrill <jason@redhat.com>
12596 * dwarf2out.c (gen_inlined_subroutine_die): Check
12597 cgraph_function_possibly_inlined_p.
12599 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12601 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
12602 Place integer variant first.
12603 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12605 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12608 * config/arm/arm-builtins.c (enum arm_builtins):
12609 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
12610 (ARM_BUILTIN_NEON_BASE): Rename macro to....
12611 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
12612 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
12613 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
12615 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12618 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
12619 Add qualifier_lane_index.
12620 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
12621 (arm_getlane_qualifiers): Use qualifier_lane_index.
12622 (arm_lanemac_qualifiers): Rename to...
12623 (arm_mac_n_qualifiers): ...this.
12624 (LANEMAC_QUALIFIERS): Rename to...
12625 (MAC_N_QUALIFIERS): ...this.
12626 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
12627 (arm_setlane_qualifiers): Use qualifier_lane_index.
12628 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
12629 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
12630 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
12631 (arm_expand_neon_builtin): Handle qualifier_lane_index.
12633 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
12634 * config/arm/arm.c (bounds_check): Likewise, improve error message.
12635 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
12636 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
12637 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
12638 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
12639 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
12640 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
12641 qualifiers to TERNOP_IMM.
12642 (vdup_lane): Change qualifiers to GETLANE.
12643 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
12644 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
12645 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
12646 vqdmlsl_n): Change qualifiers to MAC_N.
12648 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
12649 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
12650 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
12651 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
12652 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
12653 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
12654 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
12655 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
12656 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
12657 Remove call to neon_lane_bounds.
12659 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12661 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12662 Place integer variant first.
12664 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
12666 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
12667 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
12668 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
12669 for armv6kz targets.
12670 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
12671 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
12672 (FL_FOR_ARCH6ZK): Remove.
12673 (FL_FOR_ARCH6KZ): New.
12674 (arm_arch6zk): New declaration.
12675 * config/arm/arm-tables.opt: Regenerate.
12676 * config/arm/arm.c (arm_arch6kz): New.
12677 (arm_option_override): Set arm_arch6kz.
12678 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
12679 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
12680 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
12682 2015-07-27 Marek Polacek <polacek@redhat.com>
12686 * doc/invoke.texi: Document -Wtautological-compare.
12688 2015-07-27 Richard Biener <rguenther@suse.de>
12690 * genmatch.c (decision_tree::gen_gimple): Split out large
12691 subtrees into separate functions.
12692 (decision_tree::gen_generic): Likewise.
12694 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
12696 * config/alpha/alpha.c: Use SUBREG_P predicate.
12697 * config/alpha/predicates.md: Ditto.
12699 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
12701 * config.host (s390*-*-*): Include driver-native.c only when
12702 building with s390* as host *and* target.
12704 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
12707 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
12708 T bit register modified_between_p check.
12710 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12712 * config/i386/i386.c: Use SUBREG_P predicate.
12713 * config/i386/i386.md: Ditto.
12714 * config/i386/sse.md: Ditto.
12715 * config/i386/predicates.md: Ditto.
12717 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12720 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
12721 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
12723 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12725 * Makefile.in: Remove use of TREEBROWSER.
12726 * config.in: Regenerated.
12727 * configure: Regenerated.
12728 * configure.ac: Remove definition of TREEBROWSER.
12729 * tree-browser.c: Removed.
12730 * tree-browser.def: Removed.
12732 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12734 * graphite-scop-detection.c: Include gimple-pretty-print.h.
12735 (stmt_simple_for_scop_p): Print when a stmt is not handled in
12737 (scopdet_basic_block_info): Print when a loop or bb cannot be
12738 represented in Graphite.
12740 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12743 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
12744 execution guard when min_size is less than size_needed.
12746 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12748 * doc/install.texi: Document supported versions of ISL.
12750 2015-07-25 Jeff Law <law@redhat.com>
12754 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12755 unable to find X NE 0 in the tables, return X as the simplified
12757 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12758 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
12759 to VISISTED_BBS. */
12760 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12761 after removing the control flow statement and unnecessary edges.
12763 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
12766 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
12768 PR rtl-optimization/64164
12769 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12770 * tree-ssa-copyrename.c: Removed.
12771 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12772 -ftree-coalesce-vars.
12773 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12774 * common.opt (ftree-copyrename): Ignore.
12775 (ftree-coalesce-inlined-vars): Likewise.
12776 * doc/invoke.texi: Remove the ignored options above.
12777 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12778 * tree-ssa-coalesce.h: ... here.
12779 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12780 headers required by it.
12781 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12782 across variables when flag_tree_coalesce_vars. Check register
12783 use and promoted modes to allow coalescing. Moved to
12784 tree-ssa-coalesce.c.
12785 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12786 with its member functions to tree-ssa-coalesce.c.
12787 (var_map_base_init): Likewise. Renamed to
12788 compute_samebase_partition_bases.
12789 (partition_view_normal): Drop want_bases parameter.
12790 (partition_view_bitmap): Likewise.
12791 * tree-ssa-live.h: Adjust declarations.
12792 * tree-ssa-coalesce.c: Include explow.h.
12793 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12794 default defs at the entry point.
12795 (dump_part_var_map): New.
12796 (compute_optimized_partition_bases): New, called by...
12797 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12798 of compute_samebase_partition_bases. Adjust.
12799 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12800 * cfgexpand.c (leader_merge): New.
12801 (get_rtl_for_parm_ssa_default_def): New.
12802 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12803 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12804 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12805 redundant MEM attr setting.
12806 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12808 (expand_one_stack_var): ... this. New wrapper to check and
12809 skip already expanded SSA partitions.
12810 (record_alignment_for_reg_var): New, factored out of...
12811 (expand_one_var): ... this.
12812 (expand_one_ssa_partition): New.
12813 (adjust_one_expanded_partition_var): New.
12814 (expand_one_register_var): Check and skip already expanded SSA
12816 (expand_used_vars): Don't create DECLs for anonymous SSA
12817 names. Expand all SSA partitions, then adjust all SSA names.
12818 (pass::execute): Replace the loops that set
12819 SA.partition_to_pseudo from partition leaders and cleared
12820 DECL_RTL for multi-location variables, and that which used to
12821 rename vars and set attrs, with one that clears DECL_RTL and
12822 checks that PARMs and RESULTs default_defs match DECL_RTL.
12823 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12824 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12825 * explow.c (promote_ssa_mode): New.
12826 * explow.h (promote_ssa_mode): Declare.
12827 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12828 * function.c: Include cfgexpand.h.
12829 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12830 (use_register_for_parm_decl): Wrapper for the above to
12831 special-case the result_ptr.
12832 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12833 (split_complex_args): Take assign_parm_data_all argument.
12834 Pass it to rtl_for_parm. Set up rtl and context for split
12836 (assign_parms_augmented_arg_list): Adjust.
12837 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12838 multiple locations. Recognize split complex args.
12839 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12840 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12841 (assign_parm_setup_block): Prefer SSA-assigned location.
12842 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12843 if stack_parm is NULL.
12844 (assign_parm_setup_stack): Prefer SSA-assigned location.
12845 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12846 rtl before testing for pointer bounds. Special-case result_ptr.
12847 (expand_function_start): Maybe reset DECL_RTL of result.
12848 Prefer SSA-assigned location for result and static chain.
12849 Factor out DECL_RESULT and SET_DECL_RTL.
12850 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12851 anonymous SSA names. Use promote_ssa_mode.
12852 (get_temp_reg): Likewise.
12853 (remove_ssa_form): Adjust.
12854 * stor-layout.c (layout_decl): Don't set mem attributes of
12856 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12857 and get its reg_usage for reg invalidation.
12858 (compute_bb_dataflow): Pass it insn.
12859 (emit_notes_in_bb): Likewise.
12861 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12863 * config/i386/i386.c (ix86_va_start): Remove
12864 unneeded !TARGET_64BIT check.
12865 (ix86_gimplify_va_arg): Ditto.
12867 2015-07-24 Tom de Vries <tom@codesourcery.com>
12869 * graphite-sese-to-poly.c (build_poly_scop): Always call
12870 rewrite_commutative_reductions_out_of_ssa.
12872 2015-07-24 Tom de Vries <tom@codesourcery.com>
12874 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
12875 flag_associative_math to FLOAT_TYPE_P. Honour
12876 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
12878 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12881 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
12882 and "%qD" in warning_at instead of "%q+D" in warning.
12884 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
12886 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
12887 (ix86_function_abi): Cleanup.
12889 2015-07-24 Michael Darling <darlingm@gmail.com>
12892 * acinclude.m4: Reflects renaming of configure.in to configure.ac
12893 * configure: Likewise
12894 * configure.ac: Likewise
12895 * doc/install.texi: Likewise
12896 * doc/tm.texi: Likewise
12897 * doc/tm.texi.in: Likewise
12899 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12901 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
12902 manually swapping values.
12903 * cse.c (fold_rtx): Likewise.
12904 * lra-eliminations.c (form_sum): Likewise.
12906 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
12909 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
12910 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
12911 (*jcc_1, *jcc_2, jump, simple_return_internal)
12912 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
12913 Set length_nobnd attribute instead of length attribute.
12914 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
12915 (length_nobnd): Remove attribute.
12916 (length): Remove length_nobnd processing.
12918 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
12920 * gimplify.c (omp_default_clause): New function. Reorganize flow
12921 for clarity. Broken out of ...
12922 (omp_notice_variable): ... here.
12924 2015-07-24 Gary Funck <gary@intrepid.com>
12926 PR middle-end/66984
12927 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
12928 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
12930 2015-07-24 Tom de Vries <tom@codesourcery.com>
12932 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
12933 exit-first loop transform.
12935 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
12938 * tree-cfg.c (struct replace_decls_d): New struct.
12939 (replace_block_vars_by_duplicates_1): New function.
12940 (replace_block_vars_by_duplicates): Use it to replace the decls
12941 in the value exprs by duplicates.
12943 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
12945 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
12946 -shared, -symbolic, -rdynamic.
12948 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
12951 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
12952 -dynamic-linker within %{!static %{!shared, and -rdynamic within
12955 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
12958 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
12959 edge summary is available.
12961 2015-07-24 Richard Biener <rguenther@suse.de>
12963 * genmatch.c (struct dt_node): Add statistic fields.
12964 (dt_node::analyze): New method.
12965 (decision_tree::gen_gimple): Call analyze on the root node
12966 and print statistics to stderr.
12967 (decision_tree::gen_generic): Likewise.
12969 2015-07-24 Richard Biener <rguenther@suse.de>
12971 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
12972 against the highest or lowest possible integer ...
12973 * match.pd: ... as patterns here.
12975 2015-07-24 Richard Biener <rguenther@suse.de>
12977 * genmatch.c (struct capture_info): Add same_as field.
12978 (capture_info::capture_info): Initialize same_as.
12979 (capture_info::walk_match): Compute same_as.
12980 (capture_info::walk_result): Compute stuff for the leader.
12981 (capture_info::walk_c_expr): Likewise.
12982 (dt_simplify::gen_1): Only look at leaders when deciding
12983 to force no side-effects or emit side-effects of omitted operands.
12985 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12987 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
12988 reg note to the GPR -> FPR save instructions.
12990 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12992 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
12994 (s390_expand_insv): Don't generate risbg pattern for constant zero
12996 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
12997 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
13000 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13002 * config/s390/s390.c (s390_reorg): Clean up handling of processors
13005 (s390_issue_rate): Likewise.
13006 (s390_sched_reorder): Likewise.
13007 (s390_sched_variable_issue): Likewise.
13008 (s390_loop_unroll_adjust): Likewise.
13009 (s390_option_override): Likewise.
13011 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13013 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
13014 processor capabilities with -march=native.
13015 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
13016 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
13017 (S390_TARGET_BITS_STRING): Macro to simplify specs.
13019 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13021 * config/s390/s390.c (s390_issue_rate): Handle
13022 PROCESSOR_2094_Z9_EC.
13023 (s390_option_override): Likewise.
13024 (s390_adjust_priority): Likewise.
13026 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13028 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
13029 when cross compiling.
13031 2015-07-24 Richard Biener <rguenther@suse.de>
13033 * fold-const.c (maybe_canonicalize_comparison_1): Move
13034 A code CST canonicalization ...
13035 * match.pd: ... to a pattern here.
13037 2015-07-24 Jiong Wang <jiong.wang@arm.com>
13040 2015-07-22 Jiong Wang <jiong.wang@arm.com>
13042 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13043 (HONOR_REG_ALLOC_ORDER): Define.
13045 2015-07-24 Richard Biener <rguenther@suse.de>
13047 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
13048 * fold-const.c (fold_comparison): Move parameter does not
13049 alias &local simplification ...
13050 * match.pd: ... as a pattern here.
13052 2015-07-24 Richard Biener <rguenther@suse.de>
13054 * gimple-fold.c (replace_stmt_with_simplification): Special-case
13055 valueizing call operands.
13056 * gimple-match-head.c (maybe_push_res_to_seq): Take
13057 number of call arguments from ops array.
13058 (do_valueize): New function.
13059 (gimple_simplify): Return true if valueization changed
13060 any operand even if the result didn't simplify further.
13062 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13064 PR middle-end/25530
13065 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
13067 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13069 PR middle-end/25529
13070 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
13072 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13074 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
13077 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13079 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
13082 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
13084 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
13085 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
13087 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
13088 ms_va_list_type_node initialization.
13090 2015-07-23 Jeff Law <law@redhat.com>
13093 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13094 unable to find X NE 0 in the tables, return X as the simplified
13096 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13097 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13098 to VISISTED_BBS. */
13099 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13100 after removing the control flow statement and unnecessary edges.
13102 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
13104 * tree-pass.h (get_current_pass_name): Removed.
13106 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
13108 PR rtl-optimization/64164
13109 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13110 * tree-ssa-copyrename.c: Removed.
13111 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13112 -ftree-coalesce-vars.
13113 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13114 * common.opt (ftree-copyrename): Ignore.
13115 (ftree-coalesce-inlined-vars): Likewise.
13116 * doc/invoke.texi: Remove the ignored options above.
13117 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13118 * tree-ssa-coalesce.h: ... here.
13119 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13120 headers required by it.
13121 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13122 across variables when flag_tree_coalesce_vars. Check register
13123 use and promoted modes to allow coalescing. Moved to
13124 tree-ssa-coalesce.c.
13125 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13126 with its member functions to tree-ssa-coalesce.c.
13127 (var_map_base_init): Likewise. Renamed to
13128 compute_samebase_partition_bases.
13129 (partition_view_normal): Drop want_bases parameter.
13130 (partition_view_bitmap): Likewise.
13131 * tree-ssa-live.h: Adjust declarations.
13132 * tree-ssa-coalesce.c: Include explow.h.
13133 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13134 default defs at the entry point.
13135 (dump_part_var_map): New.
13136 (compute_optimized_partition_bases): New, called by...
13137 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13138 of compute_samebase_partition_bases. Adjust.
13139 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13140 * cfgexpand.c (leader_merge): New.
13141 (get_rtl_for_parm_ssa_default_def): New.
13142 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13143 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13144 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13145 redundant MEM attr setting.
13146 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13148 (expand_one_stack_var): ... this. New wrapper to check and
13149 skip already expanded SSA partitions.
13150 (record_alignment_for_reg_var): New, factored out of...
13151 (expand_one_var): ... this.
13152 (expand_one_ssa_partition): New.
13153 (adjust_one_expanded_partition_var): New.
13154 (expand_one_register_var): Check and skip already expanded SSA
13156 (expand_used_vars): Don't create DECLs for anonymous SSA
13157 names. Expand all SSA partitions, then adjust all SSA names.
13158 (pass::execute): Replace the loops that set
13159 SA.partition_to_pseudo from partition leaders and cleared
13160 DECL_RTL for multi-location variables, and that which used to
13161 rename vars and set attrs, with one that clears DECL_RTL and
13162 checks that PARMs and RESULTs default_defs match DECL_RTL.
13163 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13164 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13165 * explow.c (promote_ssa_mode): New.
13166 * explow.h (promote_ssa_mode): Declare.
13167 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13168 * function.c: Include cfgexpand.h.
13169 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13170 (use_register_for_parm_decl): Wrapper for the above to
13171 special-case the result_ptr.
13172 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13173 (split_complex_args): Take assign_parm_data_all argument.
13174 Pass it to rtl_for_parm. Set up rtl and context for split
13176 (assign_parms_augmented_arg_list): Adjust.
13177 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13178 multiple locations. Recognize split complex args.
13179 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13180 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13181 (assign_parm_setup_block): Prefer SSA-assigned location.
13182 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13183 if stack_parm is NULL.
13184 (assign_parm_setup_stack): Prefer SSA-assigned location.
13185 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13186 rtl before testing for pointer bounds. Special-case result_ptr.
13187 (expand_function_start): Maybe reset DECL_RTL of result.
13188 Prefer SSA-assigned location for result and static chain.
13189 Factor out DECL_RESULT and SET_DECL_RTL.
13190 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13191 anonymous SSA names. Use promote_ssa_mode.
13192 (get_temp_reg): Likewise.
13193 (remove_ssa_form): Adjust.
13194 * stor-layout.c (layout_decl): Don't set mem attributes of
13196 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13197 and get its reg_usage for reg invalidation.
13198 (compute_bb_dataflow): Pass it insn.
13199 (emit_notes_in_bb): Likewise.
13201 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
13204 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
13206 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
13207 (rs6000_emit_2insn_and): Handle dot forms.
13208 * config/rs6000/rs6000.md (and<mode>3): Adjust.
13209 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
13210 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
13212 2015-07-23 Richard Biener <rguenther@suse.de>
13214 * generic-match-head.c: Include cgraph.h.
13215 * gimple-match-head.c: Likewise.
13216 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
13218 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
13219 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
13222 2015-07-23 Richard Biener <rguenther@suse.de>
13224 * gimple-fold.c (fold_gimple_cond): Do not require folding
13225 results to pass valid_gimple_rhs_p.
13226 * tree-cfg.h (fold_cond_expr_cond): Remove.
13227 * tree-cfg.c (fold_cond_expr_cond): Likewise.
13228 (make_edges): Do not call it.
13229 * tree-inline.c (tree_function_versioning): Likewise.
13231 2015-07-23 Tom de Vries <tom@codesourcery.com>
13233 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
13234 vect_force_simple_reduction.
13235 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
13236 (vect_is_simple_reduction_1): Add and handle
13237 need_wrapping_integral_overflow parameter.
13238 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
13239 need_wrapping_integral_overflow parameter.
13240 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
13241 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
13244 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
13246 PR tree-optimization/66926,66951
13247 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
13248 INNER_LOOP and fix up condition for renaming virtual operands.
13250 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13252 * combine.c (try_combine): Use std::swap instead of manually
13255 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
13257 * config/mips/i6400.md: New file.
13258 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
13259 (mips64r6): Likewise.
13261 * config/mips/mips-tables.opt: Regenerate.
13262 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
13263 (mips_issue_rate): Add support for i6400.
13264 (mips_multipass_dfa_lookahead): Likewise.
13265 * config/mips/mips.h (TUNE_I6400): Define.
13266 * config/mips/mips.md: Include i6400.md.
13267 (processor): Add i6400.
13268 * doc/invoke.texi (-march=@var{arch}): Add i6400.
13270 2015-07-23 Richard Biener <rguenther@suse.de>
13272 PR middle-end/66916
13273 * match.pd: Guard widen and sign-change comparison simplification
13276 2015-07-23 Richard Biener <rguenther@suse.de>
13278 PR tree-optimization/66945
13279 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
13280 ::before_dom_children): Force the propagators idea of
13281 non-executable edges to materialize, not what the folder
13284 2015-07-23 Richard Biener <rguenther@suse.de>
13286 * gimple.h (gimple_cond_make_false): Use 0 != 0.
13287 (gimple_cond_make_true): Use 1 != 0.
13289 2015-07-22 DJ Delorie <dj@redhat.com>
13291 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
13294 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
13295 (ashrhi3): Likewise.
13296 (lshrhi3): Likewise.
13297 (movhi): Take advantage of zero-extend to load small constants.
13298 (movpsi): Likewise.
13299 (and<mode>3): Likewise.
13300 (zero_extendqihi2): Likewise.
13301 (zero_extendqisi2): New.
13302 * config/msp430/constraints.md (N,O): New.
13303 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
13305 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
13308 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
13309 to enum feature_priority and feature_list.
13310 (fold_builtin_cpu): Add F_AES to enum processor_features
13311 and isa_names_table.
13313 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
13316 * config/i386/linux-common.h (MPX_SPEC): Use linker option
13317 for 64bit target only.
13319 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
13321 * config/nvptx/nvptx.c: Expand some comments.
13323 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
13325 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
13326 (cortex_a53_advsimd): ...This.
13328 2015-07-22 Richard Biener <rguenther@suse.de>
13330 * genmatch.c (expr::gen_transform): Clarify error message
13331 and display location.
13333 2015-07-22 Richard Biener <rguenther@suse.de>
13335 * genmatch.c (struct operand): Add location member.
13336 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
13338 (struct simplify): Remove match_location and result_location
13340 (elsehwere): Adjust.
13342 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
13344 * config/mips/m5100.md: New file.
13345 * config/mips/mips-cpus.def (m5100, m5101): Define.
13346 * config/mips/mips-tables.opt: Regenerate.
13347 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
13348 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
13349 -march=m5101 to -mips32r5.
13350 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
13351 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
13353 * config/mips/mips.md: Include m5100.md.
13354 (processor): Add m5100.
13355 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
13357 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
13359 * config/mips/mips-cpus.def (interaptiv): Define.
13360 * config/mips/mips-tables.opt: Regenerate.
13361 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
13363 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
13364 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
13366 2015-07-22 Jiong Wang <jiong.wang@arm.com>
13369 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13370 (HONOR_REG_ALLOC_ORDER): Define.
13372 2015-07-22 Richard Biener <rguenther@suse.de>
13374 PR tree-optimization/66952
13375 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
13376 blocks we end up executing unconditionally reset all SSA
13377 info such as range and alignment.
13378 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
13379 * tree-ssanames.c (reset_flow_sensitive_info): New function.
13381 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
13383 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
13386 2015-07-22 Richard Biener <rguenther@suse.de>
13388 * genmatch.c (parser::parse_result): Properly handle
13389 match with result operands and conditions.
13391 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
13394 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
13395 Add qualifier_struct_load_store_lane_index.
13396 (aarch64_types_loadstruct_lane_qualifiers): Use
13397 qualifier_struct_load_store_lane_index for lane index argument for
13399 (aarch64_types_storestruct_lane_qualifiers): Ditto.
13400 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13401 (aarch64_simd_expand_args): Add new argument describing mode of
13402 builtin. Check lane bounds for arguments with
13403 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13404 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
13405 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13406 (aarch64_simd_expand_builtin): Handle arguments with
13407 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
13408 aarch64_simd_expand_args.
13409 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
13410 vst[234]_lane with BUILTIN_VALLDIF.
13411 * config/aarch64/aarch64-simd.md:
13412 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
13413 endianness reversal on lane index.
13414 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
13415 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
13416 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
13417 (vec_store_lanesci_lane<mode>): Ditto.
13418 (vec_store_lanesxi_lane<mode>): Ditto.
13419 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
13420 reversal of lane index.
13421 (aarch64_ld3_lane<mode>): Ditto.
13422 (aarch64_ld4_lane<mode>): Ditto.
13423 (aarch64_st2_lane<mode>): Ditto.
13424 (aarch64_st3_lane<mode>): Ditto.
13425 (aarch64_st4_lane<mode>): Ditto.
13426 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
13427 to qmode. Add new mode parameter. Update uses.
13428 (__LD3_LANE_FUNC): Ditto.
13429 (__LD4_LANE_FUNC): Ditto.
13430 (__ST2_LANE_FUNC): Ditto.
13431 (__ST3_LANE_FUNC): Ditto.
13432 (__ST4_LANE_FUNC): Ditto.
13434 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
13436 * doc/invoke.texi (Language Independent Options): Rename node to
13437 Diagnostic Message Formatting Options.
13439 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
13442 * lra-remat.c (operand_to_remat): Prevent using insns with input
13443 subregs processed separately by IRA.
13445 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
13447 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
13449 (single_imm_use): Check for iterator node.
13450 (num_imm_uses): Likewise.
13451 * tree-ssa-operands.c (has_zero_uses_1): Delete.
13452 (single_imm_use_1): Check for iterator node.
13454 2015-07-21 Mike Frysinger <vapier@gentoo.org>
13455 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13457 * configure.ac: Add check for new options in isl-0.15.
13458 * config.in, configure: Rebuilt.
13459 * graphite-blocking.c: Include <isl/constraint.h>
13460 * graphite-interchange.c, graphite-poly.c: Likewise.
13461 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
13462 * graphite.c: Likewise.
13463 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
13465 * graphite-dependences.c: Include <isl/constraint.h>.
13466 (max_number_of_out_dimensions): Returns isl_stat.
13467 (extend_schedule_1): Likewise
13468 (extend_schedule): Corresponding changes.
13469 * graphite-optimize-isl.c: Include <isl/constraint.h> and
13471 (getSingleMap): Change return type of isl_stat.
13472 (optimize_isl): Conditionally use
13473 isl_options_set_schedule_serialize_sccs.
13474 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
13475 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
13477 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
13480 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
13481 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
13483 2015-07-21 Richard Biener <rguenther@suse.de>
13485 PR tree-optimization/66948
13486 * genmatch.c (capture_info::walk_match): Also recurse to
13487 captures. Properly compute expr state from captures of
13489 * match.pd: Add single-use guards to
13490 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
13492 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
13494 * config/nvptx/mkoffload.c (process): Add static destructor call.
13496 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13498 PR middle-end/66915
13499 * match.pd (A - B -> A + (-B)): Don't allow folding
13500 when type if a fixed-point type.
13502 2015-07-20 DJ Delorie <dj@redhat.com>
13504 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
13505 (iorqi3_real): Likewise for set1.
13507 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
13509 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
13512 2015-07-20 Aditya Kumar <hiraditya@msn.com>
13514 * graphite-isl-ast-to-gimple.c:
13515 Refactor so that each function can access 'region'. This will help
13516 maintain a parameter rename_map within a region.
13518 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
13520 * config/rs6000/rs6000.md (*lt0_disi): New.
13522 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
13525 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
13526 "available letters" comment.
13527 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
13528 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
13529 and_2rld_operand): Delete.
13530 (and_operand): Adjust.
13531 (rotate_mask_operator): New.
13532 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
13533 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
13534 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
13535 extract_ME): Delete.
13536 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13537 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
13538 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
13539 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13540 rs6000_emit_2insn_and): New.
13541 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
13542 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
13543 includes_rldic_lshift_p, includes_rldicr_lshift_p,
13544 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
13545 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13546 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
13547 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
13548 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13549 rs6000_emit_2insn_and): New.
13550 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
13551 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
13553 <NOT>: Don't fall through to next case.
13554 <AND>: Handle the various rotate-and-mask cases directly.
13555 <IOR>: Always cost as one insn.
13556 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
13557 (and<mode>3): Adjust expander for the new patterns.
13558 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
13559 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
13560 (*and<mode>3_imm_dot_shifted): New.
13561 (*and<mode>3_mask): Delete, rewrite as ...
13562 (and<mode>3_mask): ... New.
13563 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
13564 (andsi3_internal0_nomc): Delete.
13565 (*andsi3_internal6): Delete.
13566 (*and<mode>3_2insn): New.
13567 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13568 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13569 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
13570 *insvdi_internal3): Delete.
13571 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
13572 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
13573 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
13574 *ior<mode>_mask): New.
13575 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
13576 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13577 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13578 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13580 (ashr<mode>3): Delete expander.
13581 (*ashr<mode>3): Rename to ...
13582 (ashr<mode>3): ... This.
13583 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
13584 (*rotldi3_internal4, *rotldi3_internal5 and split,
13585 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
13586 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
13587 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
13588 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
13589 (splitter for loading a mask): Adjust.
13590 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
13592 2015-07-20 Marek Polacek <polacek@redhat.com>
13594 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
13595 output_add_clobbers, output_added_clobbers_hard_reg_p,
13596 gen_rtx_scratch): Remove declarations.
13598 2015-07-20 Marek Polacek <polacek@redhat.com>
13601 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
13603 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13605 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
13606 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
13608 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13610 * combine.c (combine_simplify_rtx): Move simplification step
13611 before various transformations/substitutions.
13613 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
13615 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
13616 (struct int_traits): Likewise.
13618 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13620 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
13621 function to vmsdbgout_function_decl.
13623 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13626 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
13627 from misaligned positions.
13628 (ix86_expand_pinsr): Reject insertions to misaligned positions.
13630 2015-07-18 Sebastian Pop <s.pop@samsung.com>
13632 PR middle-end/46851
13633 PR middle-end/60340
13634 * Makefile.in: Removed omega.o.
13635 * common.opt: Document flag fcheck-data-deps as deprecated.
13636 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
13637 its associated params: omega-max-vars, omega-max-geqs,
13638 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
13639 omega-max-keys, omega-eliminate-redundant-constraints.
13640 * doc/loop.texi: Remove all the section on Omega.
13641 * graphite-blocking.c: Include missing params.h: it used to be
13642 included through tree-data-ref.h and omega.h.
13643 * graphite-isl-ast-to-gimple.c: Same.
13644 * graphite-optimize-isl.c: Same.
13645 * graphite-sese-to-poly.c: Same.
13646 * graphite.c: Same.
13649 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
13650 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
13651 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
13652 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
13653 * passes.def: Remove pass_check_data_deps.
13654 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
13655 (dump_conflict_function): Same.
13656 (dump_subscript): Same.
13657 (print_direction_vector): Same.
13658 (print_dir_vectors): Same.
13659 (print_lambda_vector): Same.
13660 (print_dist_vectors): Same.
13661 (dump_data_dependence_relation): Same.
13662 (dump_data_dependence_relations): Same.
13663 (dump_dist_dir_vectors): Same.
13665 (init_omega_eq_with_af): Removed.
13666 (omega_extract_distance_vectors): Removed.
13667 (omega_setup_subscript): Removed.
13668 (init_omega_for_ddr_1): Removed.
13669 (init_omega_for_ddr): Removed.
13670 (ddr_consistent_p): Removed.
13671 (compute_affine_dependence): Do not use omega to check data
13673 (compute_data_dependences_for_bb): Removed.
13674 (analyze_all_data_dependences): Removed.
13675 (tree_check_data_deps): Removed.
13676 * tree-data-ref.h: Do not include omega.h.
13677 (compute_data_dependences_for_bb): Removed.
13678 (tree_check_data_deps): Removed.
13679 * tree-ssa-loop.c (pass_check_data_deps): Removed.
13680 (make_pass_check_data_deps): Removed.
13681 * tree-ssa-phiopt.c: Include params.h.
13682 * tree-vect-data-refs.c: Same.
13683 * tree-vect-slp.c: Same.
13685 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13687 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
13688 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
13689 (mem->fpreg splitters): Ditto.
13690 (general_operand->nonimmediate_operand splitter): Use explicit modes.
13691 Disable DFmode for TARGET_64BIT.
13693 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
13696 * config/i386/i386.c (ix86_expand_prologue): Replicate static
13697 chain on the stack.
13699 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13701 * config/nvptx/mkoffload.c (process): Constify host data.
13702 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13703 Constify host data.
13704 (generate_host_descr_file): Likewise.
13706 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
13707 Sebastian Pop <s.pop@samsung.com>
13709 PR middle-end/61929
13710 * graphite-dependences.c (add_pdr_constraints): Renamed
13711 pdr->extent to pdr->subscript_sizes.
13712 * graphite-interchange.c (build_linearized_memory_access): Add
13713 back all gcc_assert's that the "isl_int to isl_val conversion"
13714 patch has removed. Refactored.
13715 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
13716 * graphite-poly.c (new_poly_dr): Same.
13717 (free_poly_dr): Same.
13718 * graphite-poly.h (struct poly_dr): Same.
13719 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
13720 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
13721 * graphite-scop-detection.h: Fix space.
13722 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
13723 back all gcc_assert's removed by a previous patch.
13724 (wrap): Remove the_isl_ctx global variable that the same patch has
13726 (build_loop_iteration_domains): Same.
13727 (add_param_constraints): Same.
13728 (pdr_add_data_dimensions): Same. Refactored.
13729 (build_poly_dr): Renamed extent to subscript_sizes.
13731 2015-07-17 Marek Polacek <polacek@redhat.com>
13733 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
13734 * match.pd: ... here.
13736 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13738 * config/nvptx/mkoffload.c (process): Constify target data.
13739 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13740 Constify target data.
13741 (generate_target_offloadend_file): Likewise.
13743 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
13745 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
13746 to allow renaming of PHI arguments on edges incoming from outer
13747 loop header, add corresponding check before start PHI iterator.
13748 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
13749 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
13750 with true force_vectorize. Set-up dominator for outer loop too.
13751 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
13752 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
13753 was marked with force_vectorize and has restricted cfg.
13754 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
13756 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
13757 do peeling for outer loops.
13759 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
13760 Matthias Klose <doko@ubuntu.com>
13762 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
13763 build-sysroot, sysroot from the `Miscenalleous configure options' to
13764 the `Directories' section and strip trailing `/' from with_sysroot.
13765 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
13766 * configure: Regenerated.
13768 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13771 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
13772 (TARGET_HARD_DF_REGS): Ditto.
13773 (TARGET_HARD_XF_REGS): Ditto.
13774 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
13775 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
13776 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
13777 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
13778 (*movsf_internal): Add alternatives 16 and 17. Enable
13779 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
13781 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13783 PR rtl-optimization/66891
13784 * calls.c (expand_call): Wrap precompute_register_parameters with
13785 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
13787 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
13789 * config/nvptx/mkoffload.c (process): Constify mapping variables.
13790 Define target data struct and initialize it.
13792 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
13794 PR rtl-optimization/66626
13795 * ira.h (emit-rtl.h): Include.
13796 (non_spilled_static_chain_regno_p): New.
13797 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
13798 unless it is non spilled static chain pseudo.
13799 (assign_hard_rego): Spill memory profitable allocno unless it is
13800 non spilled static chain pseudo.
13801 (allocno_spill_priority_compare): Put non spilled static chain
13802 pseudo at the end of sorted array.
13803 (improve_allocation): Do nothing if we have static chain and
13805 (allocno__priority_compare_func): Put non spilled static chain
13806 pseudo at the beginning of sorted array.
13807 (move_spill_restore): Ignore non spilled static chain pseudo.
13808 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
13809 to non spilled static chain pseudo.
13810 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
13811 pseudo at the beginning of sorted array.
13812 (spill_for): Spill non spilled static chain pseudo last.
13813 * lra-constraints.c (lra_constraints): Remove static chain pseudo
13814 check for equivalence.
13816 2015-07-16 Martin Liska <mliska@suse.cz>
13819 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
13820 dst_ctx if it does not exist.
13822 2015-07-16 Martin Liska <mliska@suse.cz>
13824 * hash-set.h (remove): New function.
13825 (iterator): New iteration class for hash_set.
13827 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13829 * genattrtab.c (make_canonical): Add a file_location parameter.
13830 Use fatal_at rather than fatal.
13831 (get_attr_value): Likewise. Update call to make_canonical.
13832 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
13833 (make_internal_attr): Update calls accordingly.
13835 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13837 * read-md.h (message_with_line, error_with_line): Delete.
13838 * read-md.c (message_with_line, error_with_line): Delete.
13839 * gensupport.h: Include read-md.h.
13840 (md_rtx_info): New structure.
13841 (read_md_rtx): Use it. Return a bool success value.
13842 * gensupport.c (read_md_rtx): Likewise.
13843 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
13844 (main): Update after interface changes.
13845 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
13846 (main): Update after interface changes.
13847 * genattrtab.c (insn_code_number): Delete.
13848 (optimize_attrs): Add a max_insn_code parameter and use it instead
13849 of insn_code_number.
13850 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
13851 Use *_at rather than *_with_line functions.
13852 (gen_insn): Likewise.
13853 (gen_delay): Likewise.
13854 (gen_insn_reserv): Likewise.
13855 (gen_bypass): Take an md_rtx_info rather than an rtx.
13856 (main): Update after interface changes. Use a local max_insn_code
13857 variable instead of insn_code_number.
13858 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
13859 an rtx. Use fatal_at rather than fatal.
13860 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
13861 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
13862 (gen_absence_set, gen_final_absence_set, gen_automaton)
13863 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
13864 (main): Update after interface changes.
13865 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
13867 (main): Update after interface changes.
13868 * genconditions.c (main): Use new read_md_rtx interface.
13869 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
13870 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
13871 (main): Update after interface changes.
13872 * genemit.c (insn_code_number, insn_index_number): Delete.
13873 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13874 Use fatal_at rather than fatal.
13875 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
13877 (gen_split): Likewise.
13878 (main): Update after interface changes.
13879 * genextract.c (line_no): Delete.
13880 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13881 Update call to walk_rtx.
13882 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
13883 rather than message_with_line.
13884 (walk_rtx): Add an md_rtx_info argument. Update call to
13885 VEC_safe_set_locstr.
13886 (main): Update after interface changes.
13887 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
13888 and lineno. Use error_at rather than separate message_with_line
13889 calls and have_error assignments.
13890 (main): Update after interface changes.
13891 * genmddump.c (main): Use new read_md_rtx interface.
13892 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
13893 (main): Update after interface changes.
13894 * genoutput.c (next_code_number): Delete.
13895 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13896 (gen_peephole, gen_expand, gen_split): Likewise.
13897 (note_constraint): Likewise. Use *_at rather than *_with_line
13899 (main): Update after interface changes.
13900 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
13902 (main): Update after interface changes.
13903 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
13904 than an rtx and lineno.
13905 (process_define_constraint): Likewise.
13906 (process_define_register_constraint): Likewise.
13907 (main): Update after interface changes.
13908 * genrecog.c (next_insn_code, pattern_lineno): Delete.
13909 (validate_pattern): Replace top-level rtx with an md_rtx_info.
13910 Use *_at rather than *_with_line functions.
13911 (match_pattern_2): Likewise.
13912 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
13913 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
13914 Use *_at rather than *_with_line functions.
13915 * gentarget-def.c (add_insn): New function.
13916 (main): Use it. Use new read_md_rtx interface.
13918 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13920 * gensupport.h (compute_test_codes): Take a file_location rather
13921 than a line number.
13922 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
13923 rather than *_with_line functions.
13924 (process_define_predicate): Update call to compute_test_codes.
13925 * genpreds.c (validate_exp): Take a file_location rather than a
13926 line number. Use *_at functions rather than *_with_line functions.
13927 (process_define_predicate): Update call to validate_exp.
13928 (constraint_data): Replace lineno field with a file_location.
13929 (add_constraint): Take a file_location rather than a line number.
13930 Use *_at functions rather than *_with_line functions. Fix error
13931 message for address constraints. Update after changes to
13932 validate_exp, constraint_data and compute_test_codes.
13933 (process_define_constraint): Update accordingly.
13934 (process_define_register_constraint): Likewise.
13936 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13938 * genoutput.c (data): Use a file_location to record the source
13941 (idata, idata_end): Remove initialization.
13942 (constraint_data): Replace lineno with a file_location.
13943 (output_insn_data): Update after changes to data.
13944 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
13945 (scan_operands): Likewise, using *_at rather than *_with_line
13947 (process_template): Likewise.
13948 (validate_insn_alternatives): Likewise.
13949 (validate_insn_operands): Likewise.
13950 (validate_optab_operands): Likewise.
13951 (init_insn_for_nothing): Initialize idata and idata_end.
13952 (note_constraint): Update after changes to constraint_data,
13953 using at rather than with_line functions.
13954 (mdep_constraint_len): Take a file_location rather than a
13955 line number. Use at rather than with_line functions.
13957 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13959 * read-md.h (fatal_at): Declare.
13960 * read-md.c (fatal_at): New function.
13961 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
13962 to record the source position.
13963 (check_attr_test): Take a file_location instead of a line number.
13964 Use fatal_at instead of fatal.
13965 (check_attr_value): Update after above changes, using "at"
13966 rather than "with_line" reporting functions.
13967 (convert_set_attr_alternative): Likewise.
13968 (gen_attr): Likewise.
13969 (check_defs): Likewise. Don't assign to read_md_filename.
13970 (gen_insn): Update initialization after above changes.
13971 (gen_delay): Likewise.
13972 (write_insn_cases): Print the filename for a define_peephole.
13973 (gen_insn_reserv): Take a line number as argument and update
13974 the call to check_attr_test.
13975 (main): Pass a line number to gen_insn_reserv.
13977 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13979 * read-md.h (file_location): New structure.
13980 (directive_handler_t): Take a file_location rather than a line number.
13981 (message_at, error_at): Declare.
13982 (read_skip_construct): Delete.
13983 * read-md.c (message_with_line_1): Replace with...
13984 (message_at_1): ...this new function.
13985 (message_at, error_at): New functions.
13986 (message_with_line, error_with_line): Update to use message_at_1.
13987 (handle_enum): Take a file_location rather than a line number
13988 and use error_at for error reporting.
13989 (handle_include): Likewise.
13990 (read_skip_construct): Likewise. Make static.
13991 (handle_file): Update after above changes. Pass a file_location
13992 rather than a line number to handle_directive.
13993 * gensupport.c (queue_elem): Replace separate filename and lineno
13994 with a file_location.
13995 (queue_pattern): Replace filename and lineno arguments with a
13996 file_location. Update after change to queue_elem.
13997 (process_define_predicate): Replace lineno argument with a
13998 file_location and use error_at for error reporting. Update
13999 after above changes.
14000 (process_rtx): Likewise.
14001 (subst_pattern_match): Likewise.
14002 (get_alternatives_number): Likewise.
14003 (alter_predicate_for_insn): Likewise.
14004 (rtx_handle_directive): Likewise.
14005 (is_predicable): Update after above changes, using error_at rather
14006 than error_with_line.
14007 (has_subst_attribute): Likewise.
14008 (identify_predicable_attribute): Likewise.
14009 (alter_attrs_for_subst_insn): Likewise.
14010 (process_one_cond_exec): Likewise.
14011 (process_substs_on_one_elem): Likewise.
14012 (process_define_subst): Likewise.
14013 (check_define_attr_duplicates): Likewise.
14014 (read_md_rtx): Update after change to queue_elem.
14016 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14018 * genoutput.c (next_index_number): Delete.
14019 (data): Remove index_number.
14020 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
14021 (main): Remove manipulation of next_index_number.
14023 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14025 * genattrtab.c (check_attr_value): Remove handling of null attrs.
14026 (make_canonical): Likewise.
14028 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
14030 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
14031 instead of adjust_address_nv.
14032 (restore_stack_nonlocal): Likewise.
14033 (nonlocal_goto): Likewise.
14035 2015-07-16 Tom de Vries <tom@codesourcery.com>
14037 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
14038 not have a corresponding loop header phi.
14040 2015-07-16 Tom de Vries <tom@codesourcery.com>
14042 * tree-parloops.c (create_loads_for_reductions): Handle case that
14043 reduction is unused.
14045 2015-07-16 Richard Biener <rguenther@suse.de>
14047 PR tree-optimization/66894
14048 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
14049 about deriving NE_EXPR from truncated values.
14051 2015-07-16 Martin Liska <mliska@suse.cz>
14054 (object_allocator): Add new class.
14055 (pool_allocator::initialize): Use the underlying class.
14056 (pool_allocator::allocate): Likewise.
14057 (pool_allocator::remove): Likewise.
14058 (operator new): A new generic allocator.
14059 * asan.c (struct asan_mem_ref): Remove unused members.
14060 (asan_mem_ref_new): Replace new operator with
14061 object_allocator::allocate.
14062 (free_mem_ref_resources): Change deallocation.
14063 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
14064 with object_allocator.
14065 * config/sh/sh.c (add_constant): Replace new operator with
14066 object_allocator::allocate.
14067 (sh_reorg): Change call to a release method.
14068 * cselib.c (struct elt_list): Remove unused members.
14069 (new_elt_list): Replace new operator with
14070 object_allocator::allocate.
14071 (new_elt_loc_list): Likewise.
14072 (new_cselib_val): Likewise.
14073 (unchain_one_elt_list): Change delete operator with remove method.
14074 (unchain_one_elt_loc_list): Likewise.
14075 (unchain_one_value): Likewise.
14076 (cselib_finish): Release newly added static allocators.
14077 * cselib.h (struct cselib_val): Remove unused members.
14078 (struct elt_loc_list): Likewise.
14079 * df-problems.c (df_chain_alloc): Replace pool_allocator with
14081 * df-scan.c (struct df_scan_problem_data): Likewise.
14082 (df_scan_alloc): Likewise.
14083 * df.h (struct dataflow): Likewise.
14084 * dse.c (struct read_info_type): Likewise.
14085 (struct insn_info_type): Likewise.
14086 (struct dse_bb_info_type): Likewise.
14087 (struct group_info): Likewise.
14088 (struct deferred_change): Likewise.
14089 (get_group_info): Likewise.
14090 (delete_dead_store_insn): Likewise.
14091 (free_read_records): Likewise.
14092 (replace_read): Likewise.
14093 (check_mem_read_rtx): Likewise.
14094 (scan_insn): Likewise.
14095 (dse_step1): Likewise.
14096 (dse_step7): Likewise.
14097 * et-forest.c (struct et_occ): Remove unused members.
14098 (et_new_occ): Use allocate instead of new operator.
14099 (et_new_tree): Likewise.
14100 (et_free_tree): Call release method explicitly.
14101 (et_free_tree_force): Likewise.
14102 (et_free_pools): Likewise.
14103 (et_split): Use remove instead of delete operator.
14104 * et-forest.h (struct et_node): Remove unused members.
14105 * ipa-cp.c: Change pool_allocator to object_allocator.
14106 * ipa-inline-analysis.c: Likewise.
14107 * ipa-profile.c: Likewise.
14108 * ipa-prop.c: Likewise.
14109 * ipa-prop.h: Likewise.
14110 * ira-build.c (initiate_cost_vectors): Cast return value.
14111 (ira_allocate_cost_vector): Likewise.
14112 * ira-color.c (struct update_cost_record): Remove unused members.
14113 * lra-int.h (struct lra_live_range): Likewise.
14114 (struct lra_copy): Likewise.
14115 (struct lra_insn_reg): Likewise.
14116 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
14117 * lra.c (new_insn_reg): Replace new operator with allocate method.
14118 (free_insn_regs): Same for operator delete.
14119 (finish_insn_regs): Release new static allocator.
14120 (finish_insn_recog_data): Likewise.
14121 (lra_free_copies): Replace delete operator with remove method.
14122 (lra_create_copy): Replace operator new with allocate method.
14123 (invalidate_insn_data_regno_info): Same for remove method.
14124 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
14125 (free_debug_insn_changes): Replace delete operator with remove method.
14126 (replace_oldest_value_reg): Replace operator new with allocate method.
14127 (pass_cprop_hardreg::execute): Release new static variable.
14128 * sched-deps.c (sched_deps_init): Change pool_allocator to
14130 * sel-sched-ir.c: Likewise.
14131 * sel-sched-ir.h: Likewise.
14132 * stmt.c (expand_case): Likewise.
14133 (expand_sjlj_dispatch_table): Likewise.
14134 * tree-sra.c (struct access): Remove unused members.
14135 (struct assign_link): Likewise.
14136 (sra_deinitialize): Release newly added static pools.
14137 (create_access_1):Replace operator new with allocate method.
14138 (build_accesses_from_assign): Likewise.
14139 (create_artificial_child_access): Likewise.
14140 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
14141 pool_allocator to object_allocator.
14142 * tree-ssa-pre.c: Likewise.
14143 * tree-ssa-reassoc.c: Likewise.
14144 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14145 * tree-ssa-strlen.c: Likewise.
14146 * tree-ssa-structalias.c: Likewise.
14147 * var-tracking.c (onepart_pool_allocate): New function.
14148 (unshare_variable): Use the newly added function.
14149 (variable_merge_over_cur): Likewise.
14150 (variable_from_dropped): Likewise.
14151 (variable_was_changed): Likewise.
14152 (set_slot_part): Likewise.
14153 (emit_notes_for_differences_1): Likewise.
14154 (vt_finalize): Release newly added static pools.
14156 2015-07-16 Martin Jambor <mjambor@suse.cz>
14158 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
14159 all uses. Fix two typos in its general comment.
14160 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
14162 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
14164 * config/i386/linux-common.h (LINK_MPX): New.
14165 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
14166 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
14167 indicating '-z bndplt' support by linker.
14168 * configure: Regenerate.
14169 * config.in: Regenerate.
14171 2015-07-16 Richard Biener <rguenther@suse.de>
14173 * fold-const.c (fold_widened_comparison): Remove.
14174 (fold_sign_changed_comparison): Likewise.
14175 (fold_comparison): Move widened and sign-changed comparison
14177 * match.pd: ... to patterns here.
14178 * generic-match-head.c: Include target.h.
14179 * gimple-match-head.c: Likewise.
14181 2015-07-16 Richard Biener <rguenther@suse.de>
14183 * tree-ssa-dom.c (dom_valueize): New function.
14184 (record_temporary_equivalences): Also record equivalences
14185 for dominating stmts that have uses of equivalences we are
14188 2015-07-16 Bin Cheng <bin.cheng@arm.com>
14190 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
14191 add_autoinc_candidates.
14192 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
14193 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
14194 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
14195 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
14197 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
14198 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
14199 Remove parameter struct iv*. Call add_autoinc_candidates here.
14200 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
14201 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
14203 (find_iv_candidates): Call new functions.
14205 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
14207 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
14208 uninitialized-variable warning.
14210 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
14213 * config/sh/sh.md (movdi): Split simple reg move to two movsi
14214 when the destination is R0.
14216 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
14219 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
14220 * config/i386/i386.c (ix86_expand_pextr): New function.
14221 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
14222 for non-lowpart subregs.
14223 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
14224 (insv<mode>): Use SWI248 mode iterator.
14225 (insv<mode>_1): Ditto.
14227 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14228 Sebastian Pop <s.pop@samsung.com>
14230 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
14231 iterator to use_stmt.
14233 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14234 Sebastian Pop <s.pop@samsung.com>
14236 * graphite-scop-detection.c (build_scops_1): Discard scops for
14239 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14240 Sebastian Pop <s.pop@samsung.com>
14242 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
14243 case of a return statement in scop.
14245 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14246 Sebastian Pop <s.pop@samsung.com>
14248 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
14249 INTEGER_TYPE parameters.
14250 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
14251 VECTOR_CST in scan_tree_for_params.
14252 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
14254 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
14256 * gimple-pretty-print.h: Don't include pretty-print.h.
14257 * tree-streamer.h: Don't include lto-streamer.h.
14258 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
14259 * gimple-streamer-in.c: Remove redundant includes.
14260 * gimple-streamer-out.c: Likewise.
14261 * ipa-devirt.c: Likewise.
14262 * ipa-icf.c: Likewise.
14263 * ipa-inline-analysis.c: Likewise.
14264 * ipa-polymorphic-call.c: Likewise.
14265 * ipa-profile.c: Likewise.
14266 * ipa-prop.c: Likewise.
14267 * ipa-pure-const.c: Likewise.
14268 * lto-cgraph.c: Likewise.
14269 * lto-streamer-in.c: Likewise.
14270 * lto-streamer-out.c: Likewise.
14271 * lto-streamer.c: Likewise.
14272 * tree-streamer-in.c: Likewise.
14273 * tree-streamer-out.c: Likewise.
14274 * tree-streamer.c: Likewise.
14276 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
14278 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
14280 * opts.c: Remove multiline #include comment.
14282 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
14284 * config/nvptx/mkoffload.c (process): Add C++ protection to
14287 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14290 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
14291 null before IEEE 128-bit floating point support patch.
14293 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14295 * simplify-rtx.c (simplify_ternary_operation): Add simplification
14296 for (!c) != {0,...,0} ? a : b for vector modes.
14298 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
14299 Martin Jambor <mjambor@suse.cz>
14301 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
14302 struct func_body_info* instead of struct ipa_node_params*, expecting
14303 fbi->info to be filled in. Replace throughout. Adjust call to
14304 ipa_load_from_parm_agg.
14305 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
14306 instead of struct ipa_node_params*. Adjust calls to other functions
14307 so that they pass either fbi or fbi->info.
14308 (set_switch_stmt_execution_predicate): Likewise.
14309 (will_be_nonconstant_predicate): Likewise.
14310 (compute_bb_predicates): Likewise.
14311 (estimate_function_body_sizes): Move asserts earlier. Fill in
14312 struct func_body_info, replace parms_info with fbi.info. Adjust
14313 calls to functions that now accept struct func_body_info.
14314 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
14315 (struct func_body_info): Likewise.
14316 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
14317 remove static. Adjust callers.
14318 (ipa_load_from_parm_agg): Remove.
14319 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
14320 (func_body_info): Likewise.
14321 (ipa_load_from_parm_agg): Adjust prototype.
14323 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14325 * gensupport.c (rtx_handle_directive): Adjust.
14326 * read-rtl.c (apply_iterators): Take vector to add rtxs to
14327 instead of expr list rtx.
14328 (add_define_attr_for_define_subst): Likewise.
14329 (add_define_subst_attr): Likewise.
14330 (read_subst_mapping): Likewise.
14331 (read_rtx): Likewise.
14332 * rtl.h (read_rtx): Adjust.
14334 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14336 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
14338 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14341 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
14342 (*tls_local_dynamic_base_64_<mode>): Ditto.
14343 (*tls_local_dynamic_base_64_largepic): Ditto.
14344 (tls_global_dynamic_64_<mode>): Update expander pattern.
14345 (tls_local_dynamic_base_64_<mode>): Ditto.
14347 2015-07-15 Richard Biener <rguenther@suse.de>
14349 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
14350 and bool_var == 1 -> bool_var simplifications ...
14351 * match.pd: ... to patterns here. Factor out negate_expr_p
14352 cases from the A - B -> A + (-B) patterns as negate_expr_p
14353 predicate and add a -(A + B) -> (-B) - A pattern.
14355 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
14357 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
14359 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
14360 Robert Suchanek <robert.suchanek@imgtec.com>
14362 * config/mips/mips.c (mips_int_mask): New enum.
14363 (mips_shadow_set): Likewise.
14364 (int_mask): New variable.
14365 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
14366 (machine_function): Add int_mask and use_shadow_register_set.
14367 (mips_attribute_table): Add attribute handlers for interrupt and
14368 use_shadow_register_set.
14369 (mips_interrupt_mask): New static function.
14370 (mips_handle_interrupt_attr): Likewise.
14371 (mips_handle_use_shadow_register_set_attr): Likewise.
14372 (mips_use_shadow_register_set): Change return type to enum
14373 mips_shadow_set. Add argument handling for use_shadow_register_set
14375 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
14376 compare with mips_shadow_set enum.
14377 (mips_compute_frame_info): Add interrupt mask and
14378 use_shadow_register_set to per-function information structure.
14379 Add a stack slot for EPC unconditionally.
14380 (mips_expand_prologue): Compare use_shadow_register_set value
14381 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
14382 masked interrupt register but in EIC mode use K0 and save Cause in K0.
14383 EPC saved and restored unconditionally. Use PMODE_INSN macro when
14384 copying the stack pointer from the shadow register set.
14385 * config/mips/mips.h (SR_IM0): New define.
14386 * config/mips/mips.md (mips_rdpgpr): Rename to...
14387 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
14388 * doc/extend.texi (Declaring Attributes of Functions): Document
14389 optional arguments for interrupt and use_shadow_register_set
14392 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
14394 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
14395 interrupt attribute.
14396 (mips_expand_prologue): Disable the floating point unit in an ISR.
14397 * config/mips/mips.h (SR_COP1): New define.
14399 2015-07-15 Richard Biener <rguenther@suse.de>
14401 * genmatch.c (parser::peek, parser::peek_ident): Add argument
14402 to tell how many tokens to peek ahead (default 1).
14403 (parser::eat_token, parser::eat_ident): Return token consumed.
14404 (parser::parse_result): Parse new switch statement.
14405 * match.pd: Use case statements where appropriate.
14407 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14409 PR rtl-optimization/58066
14410 * calls.c (expand_call): Precompute register parameters before stack
14411 alignment is performed.
14413 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14415 PR rtl-optimization/66838
14416 * postreload.c (reload_cse_move2add): Also process
14417 CALL_INSN_FUNCTION_USAGE when resetting information of
14418 call-clobbered registers.
14420 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14421 Cesar Philippidis <cesar@codesourcery.com>
14422 Chung-Lin Tang <cltang@codesourcery.com>
14424 * config/nios2/constraints.md (U, v): New constraints.
14425 * config/nios2/predicates.md (rdprs_dcache_operand): New.
14426 (ldstex_memory_operand): New.
14427 * config/nios2/sync.md: New file.
14428 * config/nios2/nios2.md (unspecv): Add new builtin function
14430 (rdprs, flushd, flushda, wrpie, eni): New patterns.
14431 (top-level): Include sync.md.
14432 * config/nios2/nios2.c (N2_FTYPES): Add function types for
14434 (N2_BUILTINS): Add arch field setting, add new builtins.
14435 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
14437 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
14438 Also handle ldex/stex/ldsex/stsex builtins.
14439 (nios2_expand_rdprs_builtin): New function.
14440 (nios2_expand_cache_builtin): New function.
14441 (nios2_expand_wrpie_builtin): New function.
14442 (nios2_expand_eni_builtin): New function.
14443 (nios2_expand_builtin): Add arch field handling and new builtin
14445 * doc/extend.texi (Altera Nios II Built-in Functions): Document
14447 * doc/md.texi (Machine Constraints): Document U and v constraints.
14449 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14450 Cesar Philippidis <cesar@codesourcery.com>
14451 Chung-Lin Tang <cltang@codesourcery.com>
14453 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
14454 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
14455 callee_save_reg_size and uses_anonymous_args fields.
14456 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
14457 (nios2_create_cfa_notes): New function.
14458 (nios2_adjust_stack): New function for adjusting stack.
14459 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
14460 Use nios2_adjust_stack.
14461 (nios2_expand_epilogue): Likewise.
14462 (nios2_expand_return): New function.
14463 (nios2_can_use_return_insn): Update for CDX pop.n usage.
14464 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
14465 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
14466 * config/nios2/nios2.md (return): Use nios2_expand_return.
14468 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14469 Cesar Philippidis <cesar@codesourcery.com>
14470 Chung-Lin Tang <cltang@codesourcery.com>
14472 * config/nios2/predicates.md (pop_operation): New.
14473 (ldwm_operation, stwm_operation): New.
14474 (nios2_hard_register_operand): New.
14475 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
14476 (ldstwm_operation_p): Declare.
14477 (gen_ldstwm_peep): Declare.
14478 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
14479 (base_reg_adjustment_p): New.
14480 (pop_operation_p): New.
14481 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
14482 (nios2_ldstwm_regset_p): New.
14483 (ldstwm_operation_p): New.
14485 (nios2_ldst_parallel): New.
14486 (struct ldswm_operand): Declare.
14487 (compare_ldstwm_operands): New.
14488 (can_use_cdx_ldstw): New.
14489 (gen_ldstwm_peep): New.
14490 * config/nios2/nios2-ldstwm.sml: New.
14491 * config/nios2/nios2.md: Include ldstwm.md.
14492 * config/nios2/ldstwm.md: Generated.
14494 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14495 Cesar Philippidis <cesar@codesourcery.com>
14496 Chung-Lin Tang <cltang@codesourcery.com>
14498 * config/nios2/nios2.h (LABEL_ALIGN): Define.
14499 (REG_ALLOC_ORDER): Define.
14500 (ADJUST_REG_ALLOC_ORDER): Define.
14501 (HONOR_REG_ALLOC_ORDER): Define.
14502 (CDX_REG_P): Define.
14503 (ANDCLEAR_INT): Define.
14504 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
14505 (nios2_label_align): Declare.
14506 (nios2_cdx_narrow_form_p): Declare.
14507 (nios2_adjust_reg_alloc_order): Declare.
14508 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
14510 (nios2_large_unspec_reloc_p): New function, split from...
14511 (nios2_legitimate_pic_operand_p): ...here.
14512 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
14513 (nios2_print_operand_punct_valid_p): New.
14514 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
14515 (split_mem_address): New.
14516 (split_alu_insn): New.
14518 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
14519 (enum nios2_add_insn_kind): New.
14520 (nios2_add_insn_names, nios2_add_insn_narrow): New.
14521 (nios2_add_insn_classify): New.
14522 (nios2_add_insn_asm): New.
14523 (nios2_cdx_narrow_form_p): New.
14524 (label_align, min_labelno, max_labelno): New.
14525 (nios2_reorg): New.
14526 (nios2_label_align): New.
14527 (nios2_adjust_reg_alloc_order): New.
14528 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14529 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14530 * config/nios2/constraints.md (P): New constraint.
14531 * config/nios2/predicates.md (const_and_operand): New.
14532 (and_operand): New.
14533 (stack_memory_operand): New.
14534 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
14535 (length): Update to use nios2_cdx_narrow_form_p().
14536 (type): Add new insn type values.
14537 (control, alu, st, ld, shift): Update insn reservations with
14538 new insn type values.
14539 (*high, *lo_sum): Define new insn patterns for constant generation.
14540 (movqi_internal, movhi_internal, movsi_internal): Reduce
14541 alternatives, update asm template to handle CDX variants, update
14543 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
14544 template, update type attributes.
14545 (extendhisi2, extendqi<mode>2): Likewise.
14546 (addsi3): Change to use function for asm string.
14547 (subsi3): Add CDX notation to asm template, update type attributes.
14548 (negsi3, one_cmplsi3): Likewise.
14549 (andsi3): New pattern, specialized from logical patterns.
14550 (<code>si3): Remove and case, combine alternatives, update asm
14552 (<shift_op>si3): Add CDX notation, update type attributes.
14553 (rotrsi3): Update type attribute.
14554 (*merge, extzv, insv): New insn patterns.
14555 (return): Change to define_expand.
14556 (simple_return): Add CDX notation, update type attributes.
14557 (indirect_jump): Add CDX notation.
14558 (jump): Update asm cases, update length attribute expression.
14559 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
14560 (nios2_cbranch): Update asm cases and length attribute expression
14561 to handle CDX variants.
14562 (nios2_cmp<code>): Update asm template.
14563 (nop): Add CDX notation, update type attributes.
14564 (trap): Add CDX notation.
14565 (ctrapsi4): Update asm cases and length attribute expression to
14566 handle CDX variant.
14567 * doc/md.texi (Machine Constraints): Document P constraint.
14569 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14570 Cesar Philippidis <cesar@codesourcery.com>
14571 Chung-Lin Tang <cltang@codesourcery.com>
14573 * config/nios2/nios2.h (SMALL_INT12): New macro.
14574 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
14575 (nios2_valid_addr_expr_p): Use it.
14576 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
14577 with implicit "io" instructions on R2.
14578 * config/nios2/constraints.md (w): New constraint.
14579 * config/nios2/predicates.md (ldstio_memory_operand): New.
14580 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
14581 operand predicate and constraint.
14582 (ld<bh>io_signed, st<bhw>io>): Likewise.
14583 * doc/md.texi (Machine Constraints): Document w constraint.
14585 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14586 Cesar Philippidis <cesar@codesourcery.com>
14587 Chung-Lin Tang <cltang@codesourcery.com>
14589 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
14590 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
14591 Nios II architecture level.
14592 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
14593 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
14594 (OPTION_DEFAULT_SPECS): Define.
14595 (ASM_SPEC): Add -march= spec strings.
14596 * config/nios2/nios2.c (nios2_option_override): Check for
14597 conflicts involving new options.
14598 * config.gcc (nios2*-*-*): Support --with-arch=.
14599 * doc/invoke.texi (Option Summary, Nios II Options): Document
14600 -march=, -mbmx, and -mcdx.
14602 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
14604 PR rtl-optimization/66626
14605 * lra-constraints.c (lra_constraints): Prevent equivalence
14606 substitution for static chain pseudo in functions with nonlocal
14609 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14611 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
14612 (nios2_emit_stack_limit_check): Add size parameter. Handle
14613 -fstack-limit-symbol as well as -fstack-limit-register.
14614 (nios2_expand_prologue): Emit only a single stack limit check,
14615 even if multiple stack adjustments are required.
14616 (nios2_option_override): Diagnose unsupported combination of -fpic
14617 and -stack-limit-symbol.
14619 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
14621 * Makefile.in (top_srcdir): New.
14622 * configure.ac: Use AM_ZLIB.
14623 * configure: Regeneated.
14625 2015-07-14 Matthias Klose <doko@ubuntu.com>
14628 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
14630 2015-07-14 Richard Biener <rguenther@suse.de>
14632 PR tree-optimization/66863
14633 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
14634 what we record for conversion use stmt lhs inequalities.
14636 2015-07-14 Richard Biener <rguenther@suse.de>
14638 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
14639 (decision_tree::gen_gimple): Likewise.
14641 2015-07-14 Tom de Vries <tom@codesourcery.com>
14643 * gcc.c (greater_than_spec_func): Declare forward.
14644 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
14645 -ftree-parallelize-loops={0,1}.
14646 (static_spec_functions): Add greater_than_spec_func function with name
14648 (greater_than_spec_func): New function.
14650 2015-07-14 Richard Biener <rguenther@suse.de>
14652 * tree-ssa-dom.c (record_temporary_equivalences): Merge
14653 wideing type conversion case from record_equivalences_from_incoming_edge
14654 and use record_equality to record equivalences.
14655 (record_equivalences_from_incoming_edge): Call
14656 record_temporary_equivalences.
14658 2015-07-14 Richard Biener <rguenther@suse.de>
14660 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
14661 (struct if_expr): New.
14662 (struct with_expr): Likewise.
14663 (is_a_helper): Add helpers for if_expr and with_expr.
14664 (struct simplify): Add simplify_kind enum and member. Remove
14666 (simplify::simplify): Adjust.
14667 (lower_commutative): Adjust.
14668 (lower_opt_convert): Likewise.
14669 (lower_cond): Likewise.
14670 (replace_id): Handle with_expr and if_expr.
14671 (lower_for): Adjust.
14672 (dt_simplify::gen_1): New recursive worker, split out from ...
14673 (dt_simplify::gen): ... here. Deal with if and with expansion
14675 (capture_info::capture_info): Take context argument
14676 (capture_info::walk_result): Only analyze specific result.
14677 (parser::parse_result): New function.
14678 (parser::parse_simplify): Adjust to parse ifs with then end
14680 (parser::parse_if): Simplify.
14681 (parser::parse_pattern): Pass down simplify kind.
14682 * match.pd: Convert if structure to new syntax.
14684 2015-07-13 Marek Polacek <polacek@redhat.com>
14686 * rtl.c (rtx_equal_p_cb): Fix typo.
14688 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
14690 * omega.h: Don't include config.h, don't include params.h again if
14691 omega.h has already been included.
14692 * graphite-poly.h: Include sese.h.
14693 * graphite.c: Don't include sese.h, remove needless includes and
14694 minimize includes outside #ifdef HAVE_isl block.
14695 * graphite-blocking.c: Don't include sese.h, remove needless includes,
14696 and wrap entire file in #ifdef HAVE_isl
14697 * graphite-dependences.c: Likewise.
14698 * graphite-interchange.c: Likewise.
14699 * graphite-isl-ast-to-gimple.c: Likewise.
14700 * graphite-optimize-isl.c: Likewise.
14701 * graphite-poly.c: Likewise.
14702 * graphite-scop-detection.c: Likewise.
14703 * graphite-sese-to-poly.c: Likewise.
14705 2015-07-13 Tom de Vries <tom@codesourcery.com>
14707 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
14709 2015-07-13 Renlin Li <renlin.li@arm.com>
14712 * simplify-rtx.c (simplify_const_relational_operation): Add
14713 side_effects_p checks.
14715 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
14717 * bitmap.h: Fix double word typos.
14718 * builtins.c: Same.
14720 * cfgloopmanip.c: Same.
14723 * cgraphclones.c: Same.
14725 * config/aarch64/aarch64-protos.h: Same.
14726 * config/aarch64/aarch64.c: Same.
14727 * config/aarch64/aarch64.md: Same.
14728 * config/arm/arm.md: Same.
14729 * config/arm/arm1020e.md: Same.
14730 * config/arm/arm1026ejs.md: Same.
14731 * config/arm/arm926ejs.md: Same.
14732 * config/arm/fa526.md: Same.
14733 * config/arm/fa606te.md: Same.
14734 * config/arm/fa626te.md: Same.
14735 * config/arm/fa726te.md: Same.
14736 * config/arm/fmp626.md: Same.
14737 * config/darwin.c: Same.
14738 * config/epiphany/epiphany.c: Same.
14739 * config/frv/frv.c: Same.
14740 * config/ft32/ft32.c: Same.
14741 * config/gnu-user.h: Same.
14742 * config/h8300/constraints.md: Same.
14743 * config/i386/i386.c: Same.
14744 * config/i386/i386.md: Same.
14745 * config/iq2000/iq2000.md: Same.
14746 * config/mips/mips.c: Same.
14747 * config/mmix/mmix.md: Same.
14748 * config/moxie/moxie.c: Same.
14749 * config/nds32/nds32.md: Same.
14750 * config/pa/pa.h: Same.
14751 * config/rs6000/aix.h: Same.
14752 * config/rs6000/rs6000.h: Same.
14753 * config/sh/sh.c: Same.
14754 * config/tilegx/tilegx.md: Same.
14755 * config/tilepro/gen-mul-tables.cc: Same.
14758 * doc/invoke.texi: Same.
14760 * dwarf2out.c: Same.
14763 * genmatch.c: Same.
14764 * gimplify.c: Same.
14765 * hash-table.h: Same.
14766 * internal-fn.c: Same.
14768 * ipa-devirt.c: Same.
14771 * ipa-profile.c: Same.
14772 * ipa-prop.c: Same.
14773 * ipa-prop.h: Same.
14776 * reg-stack.c: Same.
14777 * regcprop.c: Same.
14782 * tree-inline.c: Same.
14783 * tree-sra.c: Same.
14784 * tree-ssa-dom.c: Same.
14785 * tree-ssa-loop-ivopts.c: Same.
14786 * tree-ssa-structalias.c: Same.
14787 * tree-ssa-tail-merge.c: Same.
14788 * tree-ssa-ter.c: Same.
14789 * tree-ssa-threadupdate.c: Same.
14790 * tree-ssa-uninit.c: Same.
14791 * tree-ssanames.c: Same.
14792 * tree-vect-loop-manip.c: Same.
14793 * tree-vrp.c: Same.
14795 * valtrack.c: Same.
14798 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14800 PR middle-end/66726
14801 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
14802 tree_ssa_phiopt_worker): Call it.
14804 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14806 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
14807 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
14810 2015-07-11 Marek Polacek <polacek@redhat.com>
14812 PR middle-end/66353
14813 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
14814 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
14815 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
14816 rather than bb_has_abnormal_call_pred.
14817 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
14818 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
14819 rather than bb_has_abnormal_call_pred.
14821 2015-07-10 Anatoly Sokolov <aesok@post.ru>
14823 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14824 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
14825 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14826 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
14827 v850_legitimate_address_p): New functions.
14828 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14830 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
14833 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
14834 indirect sibcall with register arguments if register available
14835 for argument passing.
14836 (init_cumulative_args): Set cfun->machine->arg_reg_available
14837 to (cum->nregs > 0) or to true if function has a variable
14839 (function_arg_advance_32): Set cfun->machine->arg_reg_available
14840 to false if cum->nregs <= 0.
14841 * config/i386/i386.h (machine_function): Add arg_reg_available.
14843 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
14845 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
14846 and gen_higpart instead of gen_rtx_SUBREG.
14847 * config/i386/i386.md
14848 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
14849 (read-modify peephole2): Use gen_lowpart instead of
14850 gen_rtx_SUBREG for operand 5.
14852 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
14854 * config/tilepro/gen-mul-tables.cc (main): Change include list for
14856 * config/tilepro/mul-tables.c: Regenerate.
14857 * config/tilegx/mul-tables.c: Regenerate.
14859 2015-07-10 Richard Biener <rguenther@suse.de>
14861 * fold-const.c (distribute_bit_expr): Remove.
14862 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
14863 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
14864 to A & (B | C) and simplifying A << C1 << C2 to ...
14865 * match.pd: ... patterns here.
14867 2015-07-10 Jiong Wang <jiong.wang@arm.com>
14869 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14870 Mark mem as READONLY and NOTRAP for PIC symbol.
14872 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
14874 * gimple-predict.h: New file.
14875 (gimple_predict_predictor, gimple_predict_set_predictor,
14876 gimple_predict_outcome, gimple_predict_set_outcome,
14877 gimple_build_predict): Relocate here.
14878 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
14879 gimple_predict_outcome, gimple_predict_set_outcome): Move to
14881 * gimple.c (gimple_build_predict): Move to gimple-predict.h
14882 * basic-block.h: Don't include cfghooks.h.
14883 * backend.h: Don't include predict.h.
14884 * cfghooks.h: Include predict.h.
14885 * gimple-pretty-print.c: Include gimple-predict.h.
14886 * gimplify.c: Likwise.
14887 * predict.c: Adjust includes.
14888 * tree-inline.c: Likewise.
14889 * asan.c: Likewise.
14890 * auto-inc-dec.c: Likewise.
14891 * auto-profile.c: Likewise.
14892 * bb-reorder.c: Likewise.
14893 * builtins.c: Likewise.
14894 * caller-save.c: Likewise.
14895 * calls.c: Likewise.
14896 * cfganal.c: Likewise.
14897 * cfgbuild.c: Likewise.
14899 * cfgcleanup.c: Likewise.
14900 * cfgexpand.c: Likewise.
14901 * cfghooks.c: Likewise.
14902 * cfgloopanal.c: Likewise.
14903 * cfgloop.c: Likewise.
14904 * cfgloopmanip.c: Likewise.
14905 * cfgrtl.c: Likewise.
14906 * cgraph.c: Likewise.
14907 * cgraphunit.c: Likewise.
14908 * combine.c: Likewise.
14909 * cprop.c: Likewise.
14912 * dojump.c: Likewise.
14914 * except.c: Likewise.
14915 * expmed.c: Likewise.
14916 * expr.c: Likewise.
14917 * final.c: Likewise.
14918 * fold-const.c: Likewise.
14919 * function.c: Likewise.
14920 * fwprop.c: Likewise.
14921 * gcc-plugin.h: Likewise.
14922 * gcse.c: Likewise.
14923 * genattrtab.c: Likewise.
14924 * genemit.c: Likewise.
14925 * gengtype.c: Likewise.
14926 * genopinit.c: Likewise.
14927 * genoutput.c: Likewise.
14928 * genpreds.c: Likewise.
14929 * genrecog.c: Likewise.
14930 * gimple-fold.c: Likewise.
14931 * gimple-iterator.c: Likewise.
14932 * gimple-ssa-isolate-paths.c: Likewise.
14933 * gimple-ssa-strength-reduction.c: Likewise.
14934 * graph.c: Likewise.
14935 * graphite-blocking.c: Likewise.
14936 * graphite.c: Likewise.
14937 * graphite-dependences.c: Likewise.
14938 * graphite-interchange.c: Likewise.
14939 * graphite-isl-ast-to-gimple.c: Likewise.
14940 * graphite-optimize-isl.c: Likewise.
14941 * graphite-poly.c: Likewise.
14942 * graphite-scop-detection.c: Likewise.
14943 * graphite-sese-to-poly.c: Likewise.
14944 * haifa-sched.c: Likewise.
14945 * ifcvt.c: Likewise.
14946 * internal-fn.c: Likewise.
14947 * ipa-cp.c: Likewise.
14948 * ipa-profile.c: Likewise.
14949 * ipa-split.c: Likewise.
14950 * ipa-utils.c: Likewise.
14951 * ira-build.c: Likewise.
14952 * ira-color.c: Likewise.
14953 * ira-conflicts.c: Likewise.
14954 * ira-costs.c: Likewise.
14955 * ira-emit.c: Likewise.
14956 * ira-lives.c: Likewise.
14957 * jump.c: Likewise.
14958 * loop-doloop.c: Likewise.
14959 * loop-init.c: Likewise.
14960 * loop-invariant.c: Likewise.
14961 * loop-unroll.c: Likewise.
14962 * lower-subreg.c: Likewise.
14963 * lra-assigns.c: Likewise.
14965 * lra-coalesce.c: Likewise.
14966 * lra-constraints.c: Likewise.
14967 * lra-lives.c: Likewise.
14968 * lto-cgraph.c: Likewise.
14969 * lto-streamer-in.c: Likewise.
14970 * mode-switching.c: Likewise.
14971 * modulo-sched.c: Likewise.
14972 * omp-low.c: Likewise.
14973 * optabs.c: Likewise.
14974 * passes.c: Likewise.
14975 * postreload.c: Likewise.
14976 * postreload-gcse.c: Likewise.
14977 * profile.c: Likewise.
14978 * recog.c: Likewise.
14979 * regstat.c: Likewise.
14980 * reload1.c: Likewise.
14981 * reorg.c: Likewise.
14982 * rtlanal.c: Likewise.
14983 * sched-ebb.c: Likewise.
14984 * sel-sched-ir.c: Likewise.
14985 * sese.c: Likewise.
14986 * shrink-wrap.c: Likewise.
14987 * simplify-rtx.c: Likewise.
14988 * stmt.c: Likewise.
14989 * store-motion.c: Likewise.
14990 * tracer.c: Likewise.
14991 * trans-mem.c: Likewise.
14992 * tree-call-cdce.c: Likewise.
14993 * tree-cfg.c: Likewise.
14994 * tree-cfgcleanup.c: Likewise.
14995 * tree-chkp.c: Likewise.
14996 * tree-complex.c: Likewise.
14997 * tree-eh.c: Likewise.
14998 * tree-if-conv.c: Likewise.
14999 * tree-loop-distribution.c: Likewise.
15000 * tree-outof-ssa.c: Likewise.
15001 * tree-parloops.c: Likewise.
15002 * tree-predcom.c: Likewise.
15003 * tree-pretty-print.c: Likewise.
15004 * tree-profile.c: Likewise.
15005 * tree-sra.c: Likewise.
15006 * tree-ssa.c: Likewise.
15007 * tree-ssa-coalesce.c: Likewise.
15008 * tree-ssa-dce.c: Likewise.
15009 * tree-ssa-dom.c: Likewise.
15010 * tree-ssa-forwprop.c: Likewise.
15011 * tree-ssa-ifcombine.c: Likewise.
15012 * tree-ssa-loop-ch.c: Likewise.
15013 * tree-ssa-loop-im.c: Likewise.
15014 * tree-ssa-loop-ivcanon.c: Likewise.
15015 * tree-ssa-loop-ivopts.c: Likewise.
15016 * tree-ssa-loop-manip.c: Likewise.
15017 * tree-ssa-loop-prefetch.c: Likewise.
15018 * tree-ssa-loop-unswitch.c: Likewise.
15019 * tree-ssa-math-opts.c: Likewise.
15020 * tree-ssa-phiopt.c: Likewise.
15021 * tree-ssa-pre.c: Likewise.
15022 * tree-ssa-reassoc.c: Likewise.
15023 * tree-ssa-sink.c: Likewise.
15024 * tree-ssa-tail-merge.c: Likewise.
15025 * tree-ssa-threadedge.c: Likewise.
15026 * tree-ssa-threadupdate.c: Likewise.
15027 * tree-switch-conversion.c: Likewise.
15028 * tree-tailcall.c: Likewise.
15029 * tree-vect-data-refs.c: Likewise.
15030 * tree-vect-loop.c: Likewise.
15031 * tree-vect-loop-manip.c: Likewise.
15032 * tree-vectorizer.c: Likewise.
15033 * tree-vrp.c: Likewise.
15034 * ubsan.c: Likewise.
15035 * value-prof.c: Likewise.
15036 * varasm.c: Likewise.
15037 * var-tracking.c: Likewise.
15038 * config/aarch64/aarch64-builtins.c: Likewise.
15039 * config/aarch64/aarch64.c: Likewise.
15040 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15041 * config/alpha/alpha.c: Likewise.
15042 * config/arc/arc.c: Likewise.
15043 * config/arm/arm.c: Likewise.
15044 * config/avr/avr.c: Likewise.
15045 * config/bfin/bfin.c: Likewise.
15046 * config/c6x/c6x.c: Likewise.
15047 * config/cr16/cr16.c: Likewise.
15048 * config/cris/cris.c: Likewise.
15049 * config/darwin.c: Likewise.
15050 * config/darwin-c.c: Likewise.
15051 * config/epiphany/epiphany.c: Likewise.
15052 * config/epiphany/mode-switch-use.c: Likewise.
15053 * config/epiphany/resolve-sw-modes.c: Likewise.
15054 * config/fr30/fr30.c: Likewise.
15055 * config/frv/frv.c: Likewise.
15056 * config/ft32/ft32.c: Likewise.
15057 * config/h8300/h8300.c: Likewise.
15058 * config/i386/i386.c: Likewise.
15059 * config/i386/winnt.c: Likewise.
15060 * config/ia64/ia64.c: Likewise.
15061 * config/iq2000/iq2000.c: Likewise.
15062 * config/lm32/lm32.c: Likewise.
15063 * config/m32c/m32c.c: Likewise.
15064 * config/m32r/m32r.c: Likewise.
15065 * config/m68k/m68k.c: Likewise.
15066 * config/mcore/mcore.c: Likewise.
15067 * config/mep/mep.c: Likewise.
15068 * config/microblaze/microblaze.c: Likewise.
15069 * config/mips/mips.c: Likewise.
15070 * config/mmix/mmix.c: Likewise.
15071 * config/mn10300/mn10300.c: Likewise.
15072 * config/moxie/moxie.c: Likewise.
15073 * config/msp430/msp430.c: Likewise.
15074 * config/nds32/nds32.c: Likewise.
15075 * config/nds32/nds32-cost.c: Likewise.
15076 * config/nds32/nds32-fp-as-gp.c: Likewise.
15077 * config/nds32/nds32-intrinsic.c: Likewise.
15078 * config/nds32/nds32-isr.c: Likewise.
15079 * config/nds32/nds32-md-auxiliary.c: Likewise.
15080 * config/nds32/nds32-memory-manipulation.c: Likewise.
15081 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15082 * config/nds32/nds32-predicates.c: Likewise.
15083 * config/nios2/nios2.c: Likewise.
15084 * config/nvptx/nvptx.c: Likewise.
15085 * config/pa/pa.c: Likewise.
15086 * config/pdp11/pdp11.c: Likewise.
15087 * config/rl78/rl78.c: Likewise.
15088 * config/rs6000/rs6000.c: Likewise.
15089 * config/rx/rx.c: Likewise.
15090 * config/s390/s390.c: Likewise.
15091 * config/sh/sh.c: Likewise.
15092 * config/sh/sh-mem.cc: Likewise.
15093 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15094 * config/sh/sh_treg_combine.cc: Likewise.
15095 * config/sparc/sparc.c: Likewise.
15096 * config/spu/spu.c: Likewise.
15097 * config/stormy16/stormy16.c: Likewise.
15098 * config/tilegx/tilegx.c: Likewise.
15099 * config/tilepro/tilepro.c: Likewise.
15100 * config/v850/v850.c: Likewise.
15101 * config/vax/vax.c: Likewise.
15102 * config/visium/visium.c: Likewise.
15103 * config/xtensa/xtensa.c: Likewise.
15105 2015-07-10 Richard Biener <rguenther@suse.de>
15107 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
15108 (decision_tree::gen_gimple): Likewise.
15109 (decision_tree::gen_generic): Likewise.
15111 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
15114 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
15115 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
15117 2015-07-10 Jakub Jelinek <jakub@redhat.com>
15119 PR middle-end/66820
15120 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
15121 or ORT_TASK contexts.
15122 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
15125 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15127 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
15130 2015-07-10 Tom de Vries <tom@codesourcery.com>
15132 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
15133 insert nit + 1 bound.
15135 2015-07-10 Richard Biener <rguenther@suse.de>
15137 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
15138 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
15139 (if_convertible_loop_p_1): For this always compute bb predicates.
15140 (if_convertible_loop_p): And free them.
15142 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15144 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
15147 2015-07-10 Richard Biener <rguenther@suse.de>
15149 PR tree-optimization/66823
15150 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
15151 inverted predicate.
15153 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
15155 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
15156 to handle mips[32|64]r3 and mips[32|64]r5.
15158 2015-07-09 Jakub Jelinek <jakub@redhat.com>
15160 PR middle-end/66633
15161 * tree-nested.c (get_static_chain): Or in a flag into
15162 info->static_chain_added.
15163 (get_frame_field, get_nonlocal_debug_decl): Likewise.
15164 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
15165 2015-07-01 changes.
15166 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
15167 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
15170 PR tree-optimization/66718
15171 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
15173 (vect_simd_lane_linear): New function.
15174 (vectorizable_simd_clone_call): Support using linear arguments for
15175 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
15177 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15180 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
15182 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
15184 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
15185 Use machine mode, not enum machine_mode in the prototype.
15187 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
15188 classify 128-bit floating point support.
15189 (FLOAT128_IBM_P): Likewise.
15190 (FLOAT128_VECTOR_P): Likewise.
15191 (FLOAT128_2REG_P): Likewise.
15192 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
15193 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
15194 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15195 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
15197 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
15198 tests against TFmode/TDmode, since those modes do not use VSX
15200 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
15202 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
15203 tests against TFmode, etc.
15204 (invalid_e500_subreg): Add tests against IFmode/KFmode.
15205 (reg_offset_addressing_ok_p): Likewise.
15206 (rs6000_legitimate_offset_address_p): Likewise.
15207 (rs6000_legitimize_address): Likewise.
15208 (rs6000_legitimize_reload_address): Likewise.
15209 (rs6000_legitimate_address_p): Clean up tests against TFmode and
15210 TDmode to use the new helper macros, which will include IFmode and
15212 (rs6000_emit_move): Likewise.
15213 (rs6000_darwin64_record_arg_recurse): Likewise.
15214 (print_operand): Likewise.
15215 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
15216 that uses a single vector register as a vector and not as a
15217 floating point register in terms of the calling sequence.
15218 (rs6000_discover_homogeneous_aggregate): Likewise.
15219 (rs6000_return_in_memory): Likewise.
15220 (init_cumulative_args): Likewise.
15221 (rs6000_function_arg_boundary): Likewise.
15222 (rs6000_function_arg_advance_1): Likewise.
15223 (rs6000_function_arg): Likewise.
15224 (rs6000_pass_by_reference): Likewise.
15225 (rs6000_gimplify_va_arg): Likewise.
15226 (rs6000_secondary_reload_memory): Use machine_mode not enum
15228 (rs6000_split_multireg_move): Use new helper macros.
15229 (spe_func_has_64bit_regs_p): Likewise.
15230 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
15231 (output_toc): Use new helper macros.
15232 (rs6000_register_move_cost): Likewise.
15233 (rs6000_function_value): Add IEEE 128-bit floating point calling
15235 (rs6000_libcall_value): Likewise.
15236 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
15237 floating point support.
15238 (rs6000_vector_mode_supported_p): Likewise.
15240 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
15242 PR rtl-optimization/66782
15243 * lra-int.h (struct lra_insn_recog_data): Add comment about
15244 clobbered hard regs for arg_hard_regs.
15245 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
15246 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
15247 Add condition for processing used hard regs.
15248 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
15249 Process clobbered hard regs.
15251 2015-07-09 Michael Matz <matz@suse.de>
15253 * genmatch.c (fprintf_indent): New function.
15254 (operand::gen_transform): Add indent parameter.
15255 (expr::gen_transform, c_expr::gen_transform,
15256 capture::gen_transform): Ditto and use fprintf_indent.
15257 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
15258 (dt_operand::gen, dt_operand::gen_predicate,
15259 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
15260 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
15261 (decision_tree::gen_gimple): Adjust calls and indent generated
15263 (decision_tree::gen_generic): Ditto.
15264 (write_predicate): Ditto.
15266 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15269 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
15270 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
15271 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
15272 {GENERAL,SSE,MMX}_REG_P where appropriate.
15274 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
15276 * lto-streamer.h: Don't include target.h and alloc-pool.h.
15277 * builtins.c: Adjust includes.
15278 * gimple.c: Likewise.
15279 * ipa-icf.c: Likewise.
15280 * lto-opts.c: Likewise.
15281 * ipa-reference.c: Likewise.
15282 * lto-section-out.c: Likewise.
15283 * lto-streamer-in.c: Likewise.
15284 * lto-streamer-out.c: Likewise.
15285 * opts-global.c: Likewise.
15286 * symtab.c: Likewise.
15287 * tree-chkp.c: Likewise.
15288 * tree-ssa-live.c: Likewise.
15289 * tree-streamer-in.c: Likewise.
15290 * tree-streamer-out.c: Likewise.
15291 * config/darwin.c: Likewise.
15292 * config/i386/winnt.c: Likewise.
15294 2015-07-09 Richard Biener <rguenther@suse.de>
15296 * genmatch.c (struct expr): Add force_single_use flag.
15297 (expr::expr): Add copy constructor.
15298 (capture_info::walk_match): Gather force_single_use captures.
15299 (expr::gen_transform): Use possibly NULLified sequence.
15300 (dt_simplify::gen): Apply single-use restrictions by NULLifying
15301 seq if any constrained expr is not single-use.
15302 (parser::parse_expr): Refactor to allow multiple flags. Handle
15303 's' flag to force an expression have a single-use if the pattern
15304 simplifies to more than one statement.
15305 * match.pd: Convert most single_use conditionals to :s flags.
15307 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15309 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
15310 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15311 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
15313 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
15315 * flags.h: Don't include flag-types.h or options.h.
15316 * opts-common.c: Adjust includes.
15317 * opts-global.c: Likewise.
15318 * common/config/epiphany/epiphany-common.c: Likewise.
15320 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15323 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
15326 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15329 * config/i386/i386.c (ix86_return_in_memory): Return true
15330 if int_size_in_bytes returns negative for IA MCU.
15332 2015-07-09 Marek Polacek <polacek@redhat.com>
15334 PR tree-optimization/66718
15335 * Makefile.in (OBJS): Add gimple-laddress.o.
15336 * passes.def: Schedule pass_laddress.
15337 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
15338 * tree-pass.h (make_pass_laddress): Declare.
15339 * gimple-laddress.c: New file.
15341 2015-07-09 Richard Biener <rguenther@suse.de>
15343 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
15345 2015-07-09 Richard Biener <rguenther@suse.de>
15347 PR tree-optimization/66807
15348 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
15350 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
15352 * function.c (stack_protect_epilogue): Use if rather than switch for
15353 check targetm.have_stack_protect_test.
15355 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15357 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
15358 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
15359 * config/arc/arc.h: Likewise.
15360 * config/arm/arm.h: Likewise.
15361 * config/bfin/bfin.h: Likewise.
15362 * config/epiphany/epiphany.h: Likewise.
15363 * config/frv/frv.h: Likewise.
15364 * config/ia64/ia64.h: Likewise.
15365 * config/iq2000/iq2000.h: Likewise.
15366 * config/lm32/lm32.h: Likewise.
15367 * config/m32r/m32r.h: Likewise.
15368 * config/mcore/mcore.h: Likewise.
15369 * config/mep/mep.h: Likewise.
15370 * config/microblaze/microblaze.h: Likewise.
15371 * config/mips/mips.h: Likewise.
15372 * config/mmix/mmix.h: Likewise.
15373 * config/mn10300/mn10300.h: Likewise.
15374 * config/nds32/nds32.h: Likewise.
15375 * config/nios2/nios2.h: Likewise.
15376 * config/pa/pa.h: Likewise.
15377 * config/rl78/rl78.h: Likewise.
15378 * config/sh/sh.h: Likewise.
15379 * config/sparc/sparc.h: Likewise.
15380 * config/stormy16/stormy16.h: Likewise.
15381 * config/tilegx/tilegx.h: Likewise.
15382 * config/tilepro/tilepro.h: Likewise.
15383 * config/v850/v850.h: Likewise.
15384 * config/xtensa/xtensa.h: Likewise.
15385 * doc/tm.texi: Regenerate.
15386 * doc/tm.texi.in: Adjust.
15387 * combine.c (simplify_set): Likewise.
15388 (simplify_comparison): Likewise.
15389 * expr.c (store_constructor): Likewise.
15390 * internal-fn.c (expand_arith_overflow): Likewise.
15391 * reload.c (push_reload): Likewise.
15392 (find_reloads): Likewise.
15393 (find_reloads_subreg_address): Likewise.
15394 * reload1.c (eliminate_regs_1): Likewise.
15395 * rtlanal.c (nonzero_bits1): Likewise.
15396 (num_sign_bit_copies1): Likewise.
15397 * simplify-rtx.c (simplify_truncation): Likewise.
15399 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15401 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
15402 of AUTO_INC_DEC with the preprocessor.
15403 * combine.c (combine_instructions): Likewise.
15404 (can_combine_p): Likewise.
15405 (try_combine): Likewise.
15406 * emit-rtl.c (try_split): Likewise.
15407 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15408 * lower-subreg.c (resolve_simple_move): Likewise.
15409 * lra.c (update_inc_notes): Likewise.
15410 * recog.c (asm_operand_ok): Likewise.
15411 (constrain_operands): Likewise.
15412 * regrename.c (scan_rtx_address): Likewise.
15413 * reload.c (update_auto_inc_notes): Likewise.
15414 (reg_inc_found_and_valid_p): Likewise.
15415 * reload1.c (reload): Likewise.
15416 (emit_input_reload_insns): Likewise.
15417 (delete_output_reload): Likewise.
15418 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15419 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15421 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15423 * rtl.h: Always define AUTO_INC_DEC.
15424 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
15425 * combine.c (combine_instructions): Likewise.
15426 (can_combine_p): Likewise.
15427 (try_combine): Likewise.
15428 * emit-rtl.c (try_split): Likewise.
15429 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15430 * lower-subreg.c (resolve_simple_move): Likewise.
15431 * lra.c (update_inc_notes): Likewise.
15432 * recog.c (asm_operand_ok): Likewise.
15433 (constrain_operands): Likewise.
15434 * regrename.c (scan_rtx_address): Likewise.
15435 * reload.c (update_auto_inc_notes): Likewise.
15436 (find_equiv_reg): Likewise.
15437 * reload1.c (reload): Likewise.
15438 (reload_as_needed): Likewise.
15439 (choose_reload_regs): Likewise.
15440 (emit_input_reload_insns): Likewise.
15441 (delete_output_reload): Likewise.
15442 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15443 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15445 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15447 * combine.c (can_combine_def_p): Don't check the value of
15448 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
15449 (combinable_i3pat): Likewise.
15450 (mark_used_regs_combine): Likewise.
15451 * regrename.c (rename_chains): Likewise.
15452 * reload.c (find_reloads_address): Likewise.
15453 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15455 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15457 * combine.c (update_rsp_from_reg_equal): Don't check if
15458 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
15459 (reg_nonzero_bits_for_combine): Likewise.
15460 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
15462 * config/frv/frv.h: Likewise.
15463 * config/lm32/lm32.h: Likewise.
15464 * config/mep/mep.h: Likewise.
15465 * config/mips/mips.h: Likewise.
15466 * config/rs6000/rs6000.h: Likewise.
15467 * config/sh/sh.h: Likewise.
15468 * config/tilegx/tilegx.h (enum reg_class): Likewise.
15469 * config/tilepro/tilepro.h: Likewise.
15470 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
15471 * doc/tm.texi: Regenerate.
15472 * doc/tm.texi.in: Adjust.
15473 * rtlanal.c (nonzero_bits1): Likewise.
15475 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15477 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
15478 with the preprocessor.
15479 (combine_instructions): Likewise.
15480 (try_combine): Likewise.
15482 (distribute_notes): Likewise.
15484 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15486 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
15488 (simplify_set): Likewise.
15489 * cse.c (cse_insn): Likewise.
15490 * fold-const.c (fold_single_bit_test): Likewise.
15491 (fold_unary_loc): Likewise.
15492 * postreload.c (reload_cse_simplify_set): Likewise.
15493 (reload_cse_simplify_operands): Likewise.
15495 2015-07-08 Jiong Wang <jiong.wang@arm.com>
15497 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
15498 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
15500 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
15503 * config/i386/x86intrin.h: Include <adxintrin.h> even if
15504 __iamcu__ is defined.
15506 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15508 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
15510 2015-07-08 Iain Sandoe <iain@codesourcery.com>
15513 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
15514 names from preservation.
15516 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
15519 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
15521 (function_arg_advance_32): Don't pass vectors in registers for
15523 (function_arg_32): Likewise.
15524 (ix86_return_in_memory): Don't return vectors in registers for
15527 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
15529 PR middle-end/66334
15530 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
15531 hard regno live at the start of BB with incoming abnormal edges.
15532 * lra-lives.c (process_bb_lives): Ditto.
15534 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15537 * config/nvptx/mkoffload.c (main): Create an offload image only in
15538 64-bit configurations.
15540 2015-07-08 Martin Liska <mliska@suse.cz>
15543 * tree-sra.c (create_access_1): Call ctor without brackets.
15544 (create_artificial_child_access): Likewise.
15546 2015-07-08 Richard Biener <rguenther@suse.de>
15548 PR tree-optimization/66793
15549 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
15550 Properly split the block after stmts ending it.
15552 2015-07-08 Richard Biener <rguenther@suse.de>
15554 PR tree-optimization/66794
15555 * passes.c (execute_function_todo): Assert that post-dominators
15557 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
15558 Free post-dominators.
15560 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15562 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
15565 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15567 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
15568 more than or equal 8 and less than 32 when optimizing for size.
15570 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15572 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
15573 COSTS_N_INSNS (1) and increment it appropriately throughout the
15576 2015-07-08 Richard Biener <rguenther@suse.de>
15578 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
15580 2015-07-08 Alan Modra <amodra@gmail.com>
15582 * target.def (rtx_costs): Remove "code" param, add "mode".
15583 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
15584 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
15585 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
15586 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
15587 call. Track mode when given in rtx.
15588 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
15589 (default_address_cost): Pass Pmode to rtx_cost.
15590 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
15591 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
15593 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
15594 (notreg_cost): Add mode param. Use it.
15595 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
15596 mode param and pass to set_src_cost. Update all calls.
15597 (hash_scan_set): Formatting.
15598 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
15599 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
15601 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
15602 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
15603 emit_store_flag): Update set_src_cost and rtx_cost calls.
15604 * auto-inc-dec.c (attempt_change): Likewise.
15605 * calls.c (precompute_register_parameters): Likewise.
15606 * combine.c (expand_compound_operation, make_extraction,
15607 force_to_mode, distribute_and_simplify_rtx): Likewise.
15608 * dojump.c (prefer_and_bit_test): Likewise.
15609 * dse.c (find_shift_sequence): Likewise.
15610 * expr.c (compress_float_constant): Likewise.
15611 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
15612 * ifcvt.c (noce_try_sign_mask): Likewise.
15613 * loop-doloop.c (doloop_optimize): Likewise.
15614 * loop-invariant.c (create_new_invariant): Likewise.
15615 * lower-subreg.c (shift_cost, compute_costs): Likewise.
15616 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
15617 lshift_cheap_p): Likewise.
15618 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
15619 try_replace_in_use, reload_cse_move2add): Likewise.
15620 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
15622 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15623 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
15624 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
15625 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
15626 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
15627 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
15629 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
15630 * config/arc/arc.c (arc_rtx_costs): Likewise.
15631 * config/arm/arm.c (arm_rtx_costs): Likewise.
15632 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
15633 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
15634 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
15635 * config/cris/cris.c (cris_rtx_costs): Likewise.
15636 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
15637 * config/frv/frv.c (frv_rtx_costs): Likewise.
15638 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
15639 * config/i386/i386.c (ix86_rtx_costs): Likewise.
15640 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
15641 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
15642 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
15643 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
15644 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
15645 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
15646 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
15647 * config/mep/mep.c (mep_rtx_cost): Likewise.
15648 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
15649 * config/mips/mips.c (mips_rtx_costs): Likewise.
15650 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
15651 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
15652 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
15653 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
15654 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
15655 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
15656 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
15657 * config/pa/pa.c (hppa_rtx_costs): Likewise.
15658 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
15659 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
15660 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
15661 * config/s390/s390.c (s390_rtx_costs): Likewise.
15662 * config/sh/sh.c (sh_rtx_costs): Likewise.
15663 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
15664 * config/spu/spu.c (spu_rtx_costs): Likewise.
15665 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
15666 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
15667 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
15668 * config/v850/v850.c (v850_rtx_costs): Likewise.
15669 * config/vax/vax.c (vax_rtx_costs): Likewise.
15670 * config/visium/visium.c (visium_rtx_costs): Likewise.
15671 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
15672 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
15673 "code" param, and pass as outer_code to first rtx_cost call. Pass
15674 mode to rtx_cost calls.
15675 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
15677 (aarch64_rtx_costs_wrapper): Update.
15678 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
15679 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
15681 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
15682 and rtx_cost calls.
15683 (avr_operand_rtx_cost): Similarly.
15684 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
15685 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
15686 * config/mips/mips.c (mips_stack_address_p): Comment typo.
15687 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
15688 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
15689 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
15691 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
15692 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
15693 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
15694 * doc/tm.texi: Regenerate.
15696 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
15698 * tree-core.h: Include symtab.h.
15699 * rtl.h: Include hard-reg-set.h but not flags.h.
15700 (HARD_CONST): Remove condition compilation involving HARD_CONST since
15701 hard-reg-set.h is always included.
15702 * regs.h: Don't include hard-reg-set.h or rtl.h.
15703 * cfg.h: Include dominance.h.
15704 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
15705 * backend.h: New. Aggregate commonly used backend header files.
15706 * gimple-ssa.h: Don't include tree-hasher.h.
15707 * ssa.h: New. Aggregate commonly used SSA header files.
15708 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
15709 * sel-sched-ir.h: Flatten includes.
15710 * lra-int.h: Flatten completely.
15711 * sel-sched-dump.h: Flatten includes.
15712 * ira-int.h: Flatten includes.
15713 * gimple-streamer.h: Remove all includes.
15714 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
15715 * resource.h: Flatten hard-reg-set.h and df.h.
15716 * sched-int.h: Flatten insn-arrt.h and df.h.
15717 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
15718 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
15719 * genattrtab.c (write_header): Adjust generated includes.
15720 * genautomata.c (main): Likewise.
15721 * genconditions.c (write-header): Likewise.
15722 * genemit.c (main): Likewise.
15723 * gengtype.c (open_base_files): Likewise.
15724 * genopinit.c (main): Likewise.
15725 * genoutput.c (output_prologue): Likewise.
15726 * genpeep.c (main): Likewise.
15727 * genpreds.c (write_insn_preds_c): Likewise.
15728 * genrecog.c (write_header): Likewise.
15729 * alias.c: Adjust includes.
15730 * asan.c: Likewise.
15731 * attribs.c: Likewise.
15732 * auto-inc-dec.c: Likewise.
15733 * auto-profile.c: Likewise.
15734 * bb-reorder.c: Likewise.
15735 * bt-load.c: Likewise.
15736 * builtins.c: Likewise.
15737 * caller-save.c: Likewise.
15738 * calls.c: Likewise.
15739 * ccmp.c: Likewise.
15741 * cfganal.c: Likewise.
15742 * cfgbuild.c: Likewise.
15743 * cfgcleanup.c: Likewise.
15744 * cfgexpand.c: Likewise.
15745 * cfghooks.c: Likewise.
15746 * cfgloop.c: Likewise.
15747 * cfgloopanal.c: Likewise.
15748 * cfgloopmanip.c: Likewise.
15749 * cfgrtl.c: Likewise.
15750 * cgraph.c: Likewise.
15751 * cgraphbuild.c: Likewise.
15752 * cgraphclones.c: Likewise.
15753 * cgraphunit.c: Likewise.
15754 * cilk-common.c: Likewise.
15755 * combine-stack-adj.c: Likewise.
15756 * combine.c: Likewise.
15757 * compare-elim.c: Likewise.
15758 * convert.c: Likewise.
15759 * coverage.c: Likewise.
15760 * cppbuiltin.c: Likewise.
15761 * cprop.c: Likewise.
15763 * cselib.c: Likewise.
15764 * data-streamer-in.c: Likewise.
15765 * data-streamer-out.c: Likewise.
15766 * data-streamer.c: Likewise.
15767 * dbxout.c: Likewise.
15770 * debug.c: Likewise.
15771 * df-core.c: Likewise.
15772 * df-problems.c: Likewise.
15773 * df-scan.c: Likewise.
15775 * dojump.c: Likewise.
15776 * dominance.c: Likewise.
15777 * domwalk.c: Likewise.
15778 * double-int.c: Likewise.
15780 * dumpfile.c: Likewise.
15781 * dwarf2asm.c: Likewise.
15782 * dwarf2cfi.c: Likewise.
15783 * dwarf2out.c: Likewise.
15784 * emit-rtl.c: Likewise.
15785 * et-forest.c: Likewise.
15786 * except.c: Likewise.
15787 * explow.c: Likewise.
15788 * expmed.c: Likewise.
15789 * expr.c: Likewise.
15790 * final.c: Likewise.
15791 * fixed-value.c: Likewise.
15792 * fold-const.c: Likewise.
15793 * function.c: Likewise.
15794 * fwprop.c: Likewise.
15795 * gcc-plugin.h: Likewise.
15796 * gcse-common.c: Likewise.
15797 * gcse.c: Likewise.
15798 * generic-match-head.c: Likewise.
15799 * ggc-page.c: Likewise.
15800 * gimple-builder.c: Likewise.
15801 * gimple-expr.c: Likewise.
15802 * gimple-fold.c: Likewise.
15803 * gimple-iterator.c: Likewise.
15804 * gimple-low.c: Likewise.
15805 * gimple-match-head.c: Likewise.
15806 * gimple-pretty-print.c: Likewise.
15807 * gimple-ssa-isolate-paths.c: Likewise.
15808 * gimple-ssa-strength-reduction.c: Likewise.
15809 * gimple-streamer-in.c: Likewise.
15810 * gimple-streamer-out.c: Likewise.
15811 * gimple-walk.c: Likewise.
15812 * gimple.c: Likewise.
15813 * gimplify-me.c: Likewise.
15814 * gimplify.c: Likewise.
15815 * godump.c: Likewise.
15816 * graph.c: Likewise.
15817 * graphite-blocking.c: Likewise.
15818 * graphite-dependences.c: Likewise.
15819 * graphite-interchange.c: Likewise.
15820 * graphite-isl-ast-to-gimple.c: Likewise.
15821 * graphite-optimize-isl.c: Likewise.
15822 * graphite-poly.c: Likewise.
15823 * graphite-scop-detection.c: Likewise.
15824 * graphite-sese-to-poly.c: Likewise.
15825 * graphite.c: Likewise.
15826 * haifa-sched.c: Likewise.
15827 * hw-doloop.c: Likewise.
15828 * ifcvt.c: Likewise.
15829 * init-regs.c: Likewise.
15830 * internal-fn.c: Likewise.
15831 * ipa-chkp.c: Likewise.
15832 * ipa-comdats.c: Likewise.
15833 * ipa-cp.c: Likewise.
15834 * ipa-devirt.c: Likewise.
15835 * ipa-icf-gimple.c: Likewise.
15836 * ipa-icf.c: Likewise.
15837 * ipa-inline-analysis.c: Likewise.
15838 * ipa-inline-transform.c: Likewise.
15839 * ipa-inline.c: Likewise.
15840 * ipa-polymorphic-call.c: Likewise.
15841 * ipa-profile.c: Likewise.
15842 * ipa-prop.c: Likewise.
15843 * ipa-pure-const.c: Likewise.
15844 * ipa-ref.c: Likewise.
15845 * ipa-reference.c: Likewise.
15846 * ipa-split.c: Likewise.
15847 * ipa-utils.c: Likewise.
15848 * ipa-visibility.c: Likewise.
15850 * ira-build.c: Likewise.
15851 * ira-color.c: Likewise.
15852 * ira-conflicts.c: Likewise.
15853 * ira-costs.c: Likewise.
15854 * ira-emit.c: Likewise.
15855 * ira-lives.c: Likewise.
15857 * jump.c: Likewise.
15858 * langhooks.c: Likewise.
15860 * loop-doloop.c: Likewise.
15861 * loop-init.c: Likewise.
15862 * loop-invariant.c: Likewise.
15863 * loop-iv.c: Likewise.
15864 * loop-unroll.c: Likewise.
15865 * lower-subreg.c: Likewise.
15866 * lra-assigns.c: Likewise.
15867 * lra-coalesce.c: Likewise.
15868 * lra-constraints.c: Likewise.
15869 * lra-eliminations.c: Likewise.
15870 * lra-lives.c: Likewise.
15871 * lra-remat.c: Likewise.
15872 * lra-spills.c: Likewise.
15874 * lto-cgraph.c: Likewise.
15875 * lto-compress.c: Likewise.
15876 * lto-opts.c: Likewise.
15877 * lto-section-in.c: Likewise.
15878 * lto-section-out.c: Likewise.
15879 * lto-streamer-in.c: Likewise.
15880 * lto-streamer-out.c: Likewise.
15881 * lto-streamer.c: Likewise.
15883 * mode-switching.c: Likewise.
15884 * modulo-sched.c: Likewise.
15885 * omega.c: Likewise.
15886 * omp-low.c: Likewise.
15887 * optabs.c: Likewise.
15888 * opts-global.c: Likewise.
15889 * passes.c: Likewise.
15890 * plugin.c: Likewise.
15891 * postreload-gcse.c: Likewise.
15892 * postreload.c: Likewise.
15893 * predict.c: Likewise.
15894 * print-rtl.c: Likewise.
15895 * print-tree.c: Likewise.
15896 * profile.c: Likewise.
15897 * real.c: Likewise.
15898 * realmpfr.c: Likewise.
15899 * recog.c: Likewise.
15901 * reg-stack.c: Likewise.
15902 * regcprop.c: Likewise.
15903 * reginfo.c: Likewise.
15904 * regrename.c: Likewise.
15905 * regstat.c: Likewise.
15906 * reload.c: Likewise.
15907 * reload1.c: Likewise.
15908 * reorg.c: Likewise.
15909 * resource.c: Likewise.
15910 * rtl-chkp.c: Likewise.
15911 * rtlanal.c: Likewise.
15912 * rtlhooks.c: Likewise.
15913 * sanopt.c: Likewise.
15914 * sched-deps.c: Likewise.
15915 * sched-ebb.c: Likewise.
15916 * sched-rgn.c: Likewise.
15917 * sched-vis.c: Likewise.
15918 * sdbout.c: Likewise.
15919 * sel-sched-dump.c: Likewise.
15920 * sel-sched-ir.c: Likewise.
15921 * sel-sched.c: Likewise.
15922 * sese.c: Likewise.
15923 * shrink-wrap.c: Likewise.
15924 * simplify-rtx.c: Likewise.
15925 * stack-ptr-mod.c: Likewise.
15926 * stmt.c: Likewise.
15927 * stor-layout.c: Likewise.
15928 * store-motion.c: Likewise.
15929 * stringpool.c: Likewise.
15930 * symtab.c: Likewise.
15931 * target-globals.c: Likewise.
15932 * targhooks.c: Likewise.
15933 * toplev.c: Likewise.
15934 * tracer.c: Likewise.
15935 * trans-mem.c: Likewise.
15936 * tree-affine.c: Likewise.
15937 * tree-browser.c: Likewise.
15938 * tree-call-cdce.c: Likewise.
15939 * tree-cfg.c: Likewise.
15940 * tree-cfgcleanup.c: Likewise.
15941 * tree-chkp-opt.c: Likewise.
15942 * tree-chkp.c: Likewise.
15943 * tree-chrec.c: Likewise.
15944 * tree-complex.c: Likewise.
15945 * tree-data-ref.c: Likewise.
15946 * tree-dfa.c: Likewise.
15947 * tree-diagnostic.c: Likewise.
15948 * tree-dump.c: Likewise.
15949 * tree-eh.c: Likewise.
15950 * tree-emutls.c: Likewise.
15951 * tree-if-conv.c: Likewise.
15952 * tree-inline.c: Likewise.
15953 * tree-into-ssa.c: Likewise.
15954 * tree-iterator.c: Likewise.
15955 * tree-loop-distribution.c: Likewise.
15956 * tree-nested.c: Likewise.
15957 * tree-nrv.c: Likewise.
15958 * tree-object-size.c: Likewise.
15959 * tree-outof-ssa.c: Likewise.
15960 * tree-parloops.c: Likewise.
15961 * tree-phinodes.c: Likewise.
15962 * tree-predcom.c: Likewise.
15963 * tree-pretty-print.c: Likewise.
15964 * tree-profile.c: Likewise.
15965 * tree-scalar-evolution.c: Likewise.
15966 * tree-sra.c: Likewise.
15967 * tree-ssa-address.c: Likewise.
15968 * tree-ssa-alias.c: Likewise.
15969 * tree-ssa-ccp.c: Likewise.
15970 * tree-ssa-coalesce.c: Likewise.
15971 * tree-ssa-copy.c: Likewise.
15972 * tree-ssa-copyrename.c: Likewise.
15973 * tree-ssa-dce.c: Likewise.
15974 * tree-ssa-dom.c: Likewise.
15975 * tree-ssa-dse.c: Likewise.
15976 * tree-ssa-forwprop.c: Likewise.
15977 * tree-ssa-ifcombine.c: Likewise.
15978 * tree-ssa-live.c: Likewise.
15979 * tree-ssa-loop-ch.c: Likewise.
15980 * tree-ssa-loop-im.c: Likewise.
15981 * tree-ssa-loop-ivcanon.c: Likewise.
15982 * tree-ssa-loop-ivopts.c: Likewise.
15983 * tree-ssa-loop-manip.c: Likewise.
15984 * tree-ssa-loop-niter.c: Likewise.
15985 * tree-ssa-loop-prefetch.c: Likewise.
15986 * tree-ssa-loop-unswitch.c: Likewise.
15987 * tree-ssa-loop.c: Likewise.
15988 * tree-ssa-math-opts.c: Likewise.
15989 * tree-ssa-operands.c: Likewise.
15990 * tree-ssa-phiopt.c: Likewise.
15991 * tree-ssa-phiprop.c: Likewise.
15992 * tree-ssa-pre.c: Likewise.
15993 * tree-ssa-propagate.c: Likewise.
15994 * tree-ssa-reassoc.c: Likewise.
15995 * tree-ssa-sccvn.c: Likewise.
15996 * tree-ssa-scopedtables.c: Likewise.
15997 * tree-ssa-sink.c: Likewise.
15998 * tree-ssa-strlen.c: Likewise.
15999 * tree-ssa-structalias.c: Likewise.
16000 * tree-ssa-tail-merge.c: Likewise.
16001 * tree-ssa-ter.c: Likewise.
16002 * tree-ssa-threadedge.c: Likewise.
16003 * tree-ssa-threadupdate.c: Likewise.
16004 * tree-ssa-uncprop.c: Likewise.
16005 * tree-ssa-uninit.c: Likewise.
16006 * tree-ssa.c: Likewise.
16007 * tree-ssanames.c: Likewise.
16008 * tree-stdarg.c: Likewise.
16009 * tree-streamer-in.c: Likewise.
16010 * tree-streamer-out.c: Likewise.
16011 * tree-streamer.c: Likewise.
16012 * tree-switch-conversion.c: Likewise.
16013 * tree-tailcall.c: Likewise.
16014 * tree-vect-data-refs.c: Likewise.
16015 * tree-vect-generic.c: Likewise.
16016 * tree-vect-loop-manip.c: Likewise.
16017 * tree-vect-loop.c: Likewise.
16018 * tree-vect-patterns.c: Likewise.
16019 * tree-vect-slp.c: Likewise.
16020 * tree-vect-stmts.c: Likewise.
16021 * tree-vectorizer.c: Likewise.
16022 * tree-vrp.c: Likewise.
16023 * tree.c: Likewise.
16024 * tsan.c: Likewise.
16025 * ubsan.c: Likewise.
16026 * valtrack.c: Likewise.
16027 * value-prof.c: Likewise.
16028 * var-tracking.c: Likewise.
16029 * varasm.c: Likewise.
16030 * varpool.c: Likewise.
16031 * vmsdbgout.c: Likewise.
16032 * vtable-verify.c: Likewise.
16034 * wide-int.cc: Likewise.
16035 * xcoffout.c: Likewise.
16036 * config/aarch64/aarch64-builtins.c: Likewise.
16037 * config/aarch64/aarch64.c: Likewise.
16038 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16039 * config/alpha/alpha.c: Likewise.
16040 * config/arc/arc.c: Likewise.
16041 * config/arm/aarch-common.c: Likewise.
16042 * config/arm/arm-builtins.c: Likewise.
16043 * config/arm/arm-c.c: Likewise.
16044 * config/arm/arm.c: Likewise.
16045 * config/avr/avr-c.c: Likewise.
16046 * config/avr/avr-log.c: Likewise.
16047 * config/avr/avr.c: Likewise.
16048 * config/bfin/bfin.c: Likewise.
16049 * config/c6x/c6x.c: Likewise.
16050 * config/cr16/cr16.c: Likewise.
16051 * config/cris/cris.c: Likewise.
16052 * config/darwin-c.c: Likewise.
16053 * config/darwin.c: Likewise.
16054 * config/epiphany/epiphany.c: Likewise.
16055 * config/epiphany/mode-switch-use.c: Likewise.
16056 * config/epiphany/resolve-sw-modes.c: Likewise.
16057 * config/fr30/fr30.c: Likewise.
16058 * config/frv/frv.c: Likewise.
16059 * config/ft32/ft32.c: Likewise.
16060 * config/h8300/h8300.c: Likewise.
16061 * config/i386/i386-c.c: Likewise.
16062 * config/i386/i386.c: Likewise.
16063 * config/i386/msformat-c.c: Likewise.
16064 * config/i386/winnt-cxx.c: Likewise.
16065 * config/i386/winnt-stubs.c: Likewise.
16066 * config/i386/winnt.c: Likewise.
16067 * config/ia64/ia64-c.c: Likewise.
16068 * config/ia64/ia64.c: Likewise.
16069 * config/iq2000/iq2000.c: Likewise.
16070 * config/lm32/lm32.c: Likewise.
16071 * config/m32c/m32c-pragma.c: Likewise.
16072 * config/m32c/m32c.c: Likewise.
16073 * config/m32r/m32r.c: Likewise.
16074 * config/m68k/m68k.c: Likewise.
16075 * config/mcore/mcore.c: Likewise.
16076 * config/mep/mep-pragma.c: Likewise.
16077 * config/mep/mep.c: Likewise.
16078 * config/microblaze/microblaze-c.c: Likewise.
16079 * config/microblaze/microblaze.c: Likewise.
16080 * config/mips/mips.c: Likewise.
16081 * config/mmix/mmix.c: Likewise.
16082 * config/mn10300/mn10300.c: Likewise.
16083 * config/moxie/moxie.c: Likewise.
16084 * config/msp430/msp430-c.c: Likewise.
16085 * config/msp430/msp430.c: Likewise.
16086 * config/nds32/nds32-cost.c: Likewise.
16087 * config/nds32/nds32-fp-as-gp.c: Likewise.
16088 * config/nds32/nds32-intrinsic.c: Likewise.
16089 * config/nds32/nds32-isr.c: Likewise.
16090 * config/nds32/nds32-md-auxiliary.c: Likewise.
16091 * config/nds32/nds32-memory-manipulation.c: Likewise.
16092 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16093 * config/nds32/nds32-predicates.c: Likewise.
16094 * config/nds32/nds32.c: Likewise.
16095 * config/nios2/nios2.c: Likewise.
16096 * config/nvptx/nvptx.c: Likewise.
16097 * config/pa/pa.c: Likewise.
16098 * config/pdp11/pdp11.c: Likewise.
16099 * config/rl78/rl78-c.c: Likewise.
16100 * config/rl78/rl78.c: Likewise.
16101 * config/rs6000/rs6000-c.c: Likewise.
16102 * config/rs6000/rs6000.c: Likewise.
16103 * config/rx/rx.c: Likewise.
16104 * config/s390/s390-c.c: Likewise.
16105 * config/s390/s390.c: Likewise.
16106 * config/sh/sh-c.c: Likewise.
16107 * config/sh/sh-mem.cc: Likewise.
16108 * config/sh/sh.c: Likewise.
16109 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16110 * config/sh/sh_treg_combine.cc: Likewise.
16111 * config/sol2-c.c: Likewise.
16112 * config/sol2-cxx.c: Likewise.
16113 * config/sol2-stubs.c: Likewise.
16114 * config/sol2.c: Likewise.
16115 * config/sparc/sparc-c.c: Likewise.
16116 * config/sparc/sparc.c: Likewise.
16117 * config/spu/spu-c.c: Likewise.
16118 * config/spu/spu.c: Likewise.
16119 * config/stormy16/stormy16.c: Likewise.
16120 * config/tilegx/mul-tables.c: Likewise.
16121 * config/tilegx/tilegx-c.c: Likewise.
16122 * config/tilegx/tilegx.c: Likewise.
16123 * config/tilepro/mul-tables.c: Likewise.
16124 * config/tilepro/tilepro-c.c: Likewise.
16125 * config/tilepro/tilepro.c: Likewise.
16126 * config/v850/v850-c.c: Likewise.
16127 * config/v850/v850.c: Likewise.
16128 * config/vax/vax.c: Likewise.
16129 * config/visium/visium.c: Likewise.
16130 * config/vms/vms-c.c: Likewise.
16131 * config/vms/vms.c: Likewise.
16132 * config/vxworks.c: Likewise.
16133 * config/xtensa/xtensa.c: Likewise.
16135 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
16137 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
16138 Remove operand constraints. Change operand 2 predicate to
16139 nonmemory operand. Limit const_int values to mode bitsize. Only
16140 allow const_int values less than 32 when optimizing for size.
16141 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
16142 Remove operand constraints.
16143 (*bt<mode>): Use SImode for const_int values less than 32.
16144 (regmode): Remove mode attribute.
16146 2015-07-07 Anatoly Sokolov <aesok@post.ru>
16148 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16149 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
16150 moxie_legitimate_address_p): New functions.
16151 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16153 2015-07-07 Tom de Vries <tom@codesourcery.com>
16155 PR tree-optimization/66642
16156 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
16157 header comment. Rename split_edge variable to edge_at_split. Split
16158 exit edge to create new loop exit bb. Insert loop exit phis in new
16161 2015-07-07 Tom de Vries <tom@codesourcery.com>
16163 * tree-cfg.c (get_virtual_phi): New function.
16164 * tree-cfg.h (get_virtual_phi): Declare.
16165 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
16166 (rewrite_virtuals_into_loop_closed_ssa): New function.
16167 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
16169 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
16170 (transform_to_exit_first_loop_alt): Use
16171 rewrite_virtuals_into_loop_closed_ssa.
16173 2015-07-07 Richard Biener <rguenther@suse.de>
16175 * fold-const.c (fold_binary_loc): Move
16176 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
16177 * match.pd: ... here.
16178 Add (X * C1) % C2 -> 0 simplification pattern derived from
16181 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
16184 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
16185 change for target/65249.
16187 2015-07-07 Paulo Matos <pmatos@broadcom.com>
16189 * symtab.c (address_matters_1): Fix typo in comment above.
16190 (can_increase_alignment_p): Likewise.
16192 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16194 * function.c (free_after_compilation): Clear PROP_cfg in
16195 f->curr_properties.
16197 2015-07-07 Richard Biener <rguenther@suse.de>
16199 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
16201 (add_control_edge): Remove excessive vertical space in dumping.
16202 (process_ssa_edge_worklist): Simulate at most one statement and
16203 return whether we did. Do not simulate PHIs if they are in a
16204 BB not yet simulated.
16205 (ssa_propagate): Adjust to always drain the BB worklist whenever
16206 a BB is available there, likewise the VARYING edges list before
16207 the interesting edge list.
16209 2015-07-07 Christian Bruel <christian.bruel@st.com>
16212 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
16214 2015-07-07 Richard Biener <rguenther@suse.de>
16216 PR middle-end/66739
16217 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
16220 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
16222 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
16223 modes for operands 0 and 3. Use SImode for operands 2 and 3.
16224 Copy operand 0 to a temporary if !ext_register_operand. Remove
16225 ancient extract_bit_field workaround.
16226 (insv<mode>_1): Rename from mov<mode>_insv_1.
16227 (*insvqi): Rename from *movqi_insv_2.
16228 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
16229 for renamed insvsi_1.
16230 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
16232 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
16234 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
16235 call to nvptx_reorg_subreg.
16237 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
16239 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
16240 * graphite-dependencies.c, graphite-interchange.c,
16241 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
16242 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
16245 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
16247 * match.pd: Remove element_mode inside HONOR_*.
16248 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
16249 (~X | X -> -1, ~X ^ X -> -1): Merge.
16250 * tree.c (build_each_one_cst): New function.
16251 * tree.h (build_each_one_cst): Likewise.
16253 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16255 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16258 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
16260 * config.gcc <mips*-*-*>: Add fused-madd.opt.
16261 * config/mips/mips.opt (mfused-madd): Remove.
16262 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
16263 * config/mips/mips.h (TARGET_MIPS8000): New.
16264 (ISA_HAS_FP_MADD4_MSUB4): Remove.
16265 (ISA_HAS_FP_MADDF_MSUBF): Remove.
16266 (ISA_HAS_FP_MADD3_MSUB3): Remove.
16267 (ISA_HAS_NMADD4_NMSUB4): Remove.
16268 (ISA_HAS_NMADD3_NMSUB3): Remove.
16269 (ISA_HAS_FUSED_MADD4): New.
16270 (ISA_HAS_UNFUSED_MADD4): New.
16271 (ISA_HAS_FUSED_MADDF): New.
16272 (ISA_HAS_FUSED_MADD3): New.
16273 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
16274 (*fma<mode>4_madd3) New.
16275 (*fma<mode>4_madd4) New.
16276 (*fma<mode>4_maddf) New.
16278 (*fms<mode>4_msub3) New.
16279 (*fms<mode>4_msub4) New.
16281 (*fnma<mode>4_nmadd3) New.
16282 (*fnma<mode>4_nmadd4) New.
16284 (*fnms<mode>4_nmsub3) New.
16285 (*fnms<mode>4_nmsub4) New.
16286 (*madd4<mode>) Modify to be unfused only.
16287 (*msub4<mode>) Modify to be unfused only.
16288 (*nmadd4<mode>) Modify to be unfused only.
16289 (*nmsub4<mode>) Modify to be unfused only.
16290 (*madd3<mode>) Remove.
16291 (*msub3<mode>) Remove.
16292 (*nmadd3<mode>) Remove.
16293 (*nmsub3<mode>) Remove.
16294 (*nmadd3<mode>_fastmath) Remove.
16295 (*nmsub3<mode>_fastmath) Remove.
16296 (*nmadd4<mode>_fastmath) Update condition.
16297 (*nmsub4<mode>_fastmath) Update condition.
16299 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
16302 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
16303 alignment attribute, exploring one level down for records and arrays.
16305 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
16307 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
16308 modes for operands 0 and 1. Use SImode for operands 2 and 3.
16309 Copy operand 1 to a temporary if !ext_register_operand. Remove
16310 ancient extract_bit_field workaround.
16311 (*extv<mode>): Rename from *mov<mode>_extv_1.
16312 (*extvqi): Rename from *movqi_extv_1.
16313 (extzv<mode>): Rename from extzv. Use SWI248 modes for
16314 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
16315 to a temporary if !ext_register_operand. Remove ancient
16316 extract_bit_field workaround.
16317 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
16318 (*extzvqi): Rename from *movqi_extzv_2.
16319 (*testqi_ext_3): Remove modes from const_int_operand predicated
16320 operands. Add "n" constraint.
16321 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
16322 operand. Add "J" constraint.
16323 (*btsq, *btrq, *btcq peephole2s): Remove mode from
16324 const_0_to_63 predicated operand.
16325 (regmode): New insn attribute.
16326 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
16327 to nonmemory_operand. Use regmode insn attribute.
16328 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
16329 (*jcc_bt<mode>_mask): Remove mode from operand 3.
16330 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
16331 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
16332 operands. Use "N" constraint instead of "n".
16334 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
16336 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
16338 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16341 * config/i386/i386.c (iamcu_cost): New.
16342 (m_IAMCU): Likewise.
16343 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
16344 (processor_target_table): Add an entry for "iamcu".
16345 (processor_alias_table): Likewise.
16346 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
16347 (ix86_adjust_cost): Likewise.
16348 (ia32_multipass_dfa_lookahead): Likewise.
16349 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
16350 * config/i386/x86-tune.def: Updated for m_IAMCU.
16352 2015-07-06 Richard Biener <rguenther@suse.de>
16354 PR tree-optimization/66772
16355 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
16356 values are available in the PHI node BB when there are
16357 still unexecutable edges.
16359 2015-07-06 Richard Biener <rguenther@suse.de>
16361 PR tree-optimization/66767
16362 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
16363 Make sure to build the alignment test on a SSA name without
16364 final alignment info valid only if the alignment test
16367 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
16370 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
16371 loop start when inserting LSETUP.
16373 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16376 * config/i386/i386.c (ix86_option_override_internal): Allow
16377 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
16379 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16381 * read-md.c (decimal_string): Rename to ...
16382 (md_decimal_string): ... this.
16383 (handle_enum): Reflect this.
16385 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
16388 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
16390 2015-07-06 Richard Biener <rguenther@suse.de>
16392 PR middle-end/66759
16393 * match.pd: Add missing constraint of y to REAL_CST in
16394 REAL_CST - x CMP y to y - CST CMP x simplification.
16396 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
16398 PR tree-optimization/66757
16399 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
16401 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
16402 Sandra Loosemore <sandra@codesourcery.com>
16404 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
16405 Delete extern declaration.
16406 (gprel_constant_p): Add extern declaration.
16407 * config/nios2/constraints.md ("S"): Use gprel_constant_p
16408 instead of nios2_symbol_ref_in_small_data_p.
16409 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
16410 (nios2_symbol_ref_in_small_data_p): Make static.
16411 (gprel_constant_p): Make non-static.
16413 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
16415 * doc/fragments.texi (Target Fragment): Convert debian.org
16417 * doc/install.texi (Configuration): Ditto.
16419 2015-07-05 Jakub Jelinek <jakub@redhat.com>
16421 PR tree-optimization/66718
16422 * tree-vect-stmts.c (vectorizable_call): Replace uses of
16423 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
16425 PR tree-optimization/66718
16426 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
16427 vectorizable_load, vectorizable_condition): Move vectype,
16428 nunits, ncopies computation after checking what kind of statement
16431 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16433 * target-insns.def (extv, extzv, insv): New targetm instruction
16435 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
16437 * recog.c (simplify_while_replacing): Likewise.
16439 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16441 * target-insns.def (doloop_begin, doloop_end): New targetm
16442 instruction patterns.
16443 * loop-init.c: Include target.h.
16444 (pass_loop2::gate): Use the new targetm patterns instead of
16445 HAVE_*/gen_* interface.
16446 (pass_rtl_doloop::gate): Likewise.
16447 (pass_rtl_doloop::execute): Remove preprocessor condition.
16448 * hw-doloop.c: Build unconditionally.
16449 * loop-doloop.c: Likewise.
16450 (doloop_optimize): Use the new targetm patterns instead of
16451 HAVE_*/gen_* interface.
16452 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
16453 * modulo-sched.c (doloop_register_get): Likewise.
16455 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16457 * target-insns.def (clear_cache): New targetm instruction pattern.
16458 * builtins.c (expand_builtin___clear_cache): Use it instead of
16459 HAVE_*/gen_* interface.
16461 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16463 * target-insns.def (allocate_stack, check_stack, probe_stack)
16464 (probe_stack_address, split_stack_prologue, split_stack_space_check):
16465 New targetm instruction patterns.
16466 * explow.c (allocate_dynamic_stack_space): Use them instead of
16467 HAVE_*/gen_* interface.
16468 (emit_stack_probe): Likewise.
16469 (probe_stack_range): Likewise.
16470 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16472 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16474 * target-insns.def (stack_protect_set, stack_protect_test): New
16475 targetm instruction patterns.
16476 * cfgexpand.c (stack_protect_prologue): Use them instead of
16477 HAVE_*/gen_* interface.
16478 * function.c (stack_protect_epilogue): Likewise.
16480 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16482 * expr.h (gen_move_insn_uncast): Delete.
16483 * expr.c (gen_move_insn_uncast): Delete.
16485 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16487 * target-insns.def (restore_stack_block, restore_stack_function)
16488 (restore_stack_nonlocal, save_stack_block, save_stack_function)
16489 (save_stack_nonlocal): New targetm instruction patterns.
16490 * builtins.c (expand_builtin_apply): Use them instead of
16491 HAVE_*/gen_* interface.
16492 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
16494 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16496 * target-insns.def (trap): New targetm instruction pattern.
16497 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
16499 * explow.c (allocate_dynamic_stack_space): Likewise.
16500 * ifcvt.c (find_if_header): Likewise.
16502 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16504 * target-insns.def (prefetch): New targetm instruction pattern.
16505 * tree-ssa-loop-prefetch.c: Include targeth.
16506 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
16507 of HAVE_*/gen_* interface.
16508 * builtins.c (expand_builtin_prefetch): Likewise.
16509 * toplev.c (process_options): Likewise.
16511 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16513 * target-insns.def (untyped_call, untyped_return): New targetm
16514 instruction patterns.
16515 * builtins.c (expand_builtin_apply): Use them instead of
16516 HAVE_*/gen_* interface.
16517 (result_vector): Define unconditionally.
16519 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16521 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
16522 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
16523 (nonlocal_goto_receiver): New targetm instruction patterns.
16524 * builtins.c (expand_builtin_setjmp_setup): Use them instead
16525 of HAVE_*/gen_* interface.
16526 (expand_builtin_setjmp_receiver): Likewise.
16527 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
16528 * except.c (expand_dw2_landing_pad_for_region): Likewise.
16530 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16532 * target.def: Add code_for_* hooks.
16533 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
16534 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
16535 * target-insns.def (casesi, tablejump): New targetm instruction
16537 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
16538 (do_tablejump): Likewise.
16539 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
16540 (expand_sjlj_dispatch_table): Likewise.
16541 * targhooks.c (default_case_values_threshold): Likewise.
16543 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
16545 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
16546 Use rtx_insn * instead of rtx.
16547 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
16548 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
16549 (nios2_call_tls_get_addr): Likewise.
16550 (nios2_emit_expensive_div): Likewise.
16551 (nios2_emit_move_sequence): Change return type to bool.
16552 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
16553 Change return type to bool.
16555 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16558 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
16560 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
16563 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
16564 of register_operand. Remove constraint.
16566 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
16568 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
16569 the first argument.
16571 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
16573 * attribs.c (decl_attributes): Guard inform with the return value
16574 of the preceding warning.
16576 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16578 * doc/invoke.texi (moverride): Move to correct section.
16580 2015-07-03 Richard Biener <rguenther@suse.de>
16582 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
16584 (dt_operand::gen_gimple_expr): After valueizing operands
16585 re-canonicalize operand order for commutative tree codes.
16587 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
16590 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
16592 (__crc32w): Likewise.
16593 (__crc32d): Likewise.
16594 (__rdpmc): Likewise.
16595 (__rdtscp): Likewise.
16596 (_rdpmc): Likewise.
16597 (_rdtscp): Likewise.
16598 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
16601 2015-07-03 Richard Biener <rguenther@suse.de>
16603 * fold-const.c (fold_mathfn_compare): Remove.
16604 (fold_inf_compare): Likewise.
16605 (fold_comparison): Move floating point comparison simplifications...
16606 * match.pd: ... to patterns here. Introduce simple_comparisons
16607 operator list and use it for patterns formerly in fold_comparison.
16609 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16611 PR tree-optimization/66119
16612 * toplev.c (process_options): Don't set up default values for
16613 the sra_max_scalarization_size_{speed,size} parameters.
16614 * tree-sra (analyze_all_variable_accesses): If no values
16615 have been set for the sra_max_scalarization_size_{speed,size}
16616 parameters, call get_move_ratio to get target defaults.
16618 2015-07-03 Richard Biener <rguenther@suse.de>
16620 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
16621 * match.pd: ... here.
16623 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
16626 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
16627 is not actually the default on FreeBSD.
16629 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16631 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
16633 (CMPGE_8HI): Likewise.
16634 (CMPGE_4SI): Likewise.
16635 (CMPGE_2DI): Likewise.
16636 (CMPGE_U16QI): Likewise.
16637 (CMPGE_U8HI): Likewise.
16638 (CMPGE_U4SI): Likewise.
16639 (CMPGE_U2DI): Likewise.
16640 (CMPLE_16QI): Likewise.
16641 (CMPLE_8HI): Likewise.
16642 (CMPLE_4SI): Likewise.
16643 (CMPLE_2DI): Likewise.
16644 (CMPLE_U16QI): Likewise.
16645 (CMPLE_U8HI): Likewise.
16646 (CMPLE_U4SI): Likewise.
16647 (CMPLE_U2DI): Likewise.
16648 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16649 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
16650 ALTIVEC_BUILTIN_VEC_CMPLE.
16651 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
16652 floating-point vector modes.
16653 (vector_nlt<mode>): New define_expand.
16654 (vector_nltu<mode>): Likewise.
16655 (vector_ngt<mode>): Likewise.
16656 (vector_ngtu<mode>): Likewise.
16658 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
16660 PR rtl-optimization/66706
16661 * combine.c (make_compound_operation): If an AND of SUBREG of
16662 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
16664 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
16666 * tree-pass.h (make_pass_ch_vect): New.
16667 * passes.def: Add pass_ch_vect just before pass_if_conversion.
16669 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
16670 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
16671 make_pass_ch_vect): New.
16672 (pass_ch): Extend ch_base.
16674 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
16675 (ch_base::copy_headers): ...here.
16677 2015-07-02 Richard Biener <rguenther@suse.de>
16679 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
16680 * fold-const.c (get_pointer_modulus_and_residue): Remove.
16681 (fold_binary_loc): Implement (T)ptr & CST in terms of
16682 get_pointer_alignment_1.
16683 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
16684 Make sure to build the alignment test on a SSA name without
16685 final alignment info valid only after the prologue.
16687 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
16689 * config/cris/cris.md ("epilogue"): Remove condition.
16690 ("prologue"): Ditto.
16692 2015-07-02 Richard Biener <rguenther@suse.de>
16694 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
16695 parameter to record a condition that is false.
16696 (record_conditions): When recording an extra NE_EXPR that is
16697 true also record a EQ_EXPR that is false.
16699 2015-07-02 Bin Cheng <bin.cheng@arm.com>
16701 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
16702 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
16703 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
16704 (set_iv, find_interesting_uses_address, add_candidate_1): New
16705 argument to alloc_iv.
16706 (find_interesting_uses_op, find_interesting_uses_cond): Don't
16707 duplicate struct iv.
16708 (free_loop_data): Don't free struct iv explicitly.
16709 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
16711 2015-07-01 DJ Delorie <dj@redhat.com>
16713 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
16715 (SUPPORTS_DISCRIMINATOR): Define.
16717 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16720 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
16721 there are no CALLs in the same pattern.
16723 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
16725 PR rtl-optimization/61047
16726 * rtlanal.c (get_initial_register_offset): New function.
16727 (rtx_addr_can_trap_p_1): Check offsets of stack references.
16729 2015-07-01 Richard Biener <rguenther@suse.de>
16731 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
16732 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
16733 ~X CMP C -> X CMP' ~C to ...
16734 * match.pd: ... patterns here.
16736 2015-07-01 Nick Clifton <nickc@redhat.com>
16738 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
16739 a 16-bit value into a 20-bit memory slot.
16741 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16743 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16744 "aarch64_tiny", "aarch64_small", "aarch64_large",
16745 "aarch64_little_endian", "aarch64_big_endian".
16747 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16749 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
16750 Document "aarch64_small_fpic".
16752 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16754 * configure.ac: Add check for aarch64 assembler -fpic relocation
16756 * configure: Regenerate.
16757 * config.in: Regenerate.
16758 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
16759 to -fPIC if not support of -fpic relocation modifier in assembler.
16761 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16764 * rtl.c (classify_insn): Handle returns in PARALLELs.
16766 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
16768 PR middle-end/66633
16769 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
16770 to true if the function is nested and if not optimizing.
16771 (convert_local_omp_clauses): Initialize need_frame to true if the
16772 function contains nested functions and if not optimizing.
16774 2015-07-01 Richard Biener <rguenther@suse.de>
16776 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
16777 (X & Y) ^ Y -> ~X & Y transforms to ...
16778 * match.pd: ... here.
16780 2015-07-01 Richard Biener <rguenther@suse.de>
16782 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
16783 of converts to avoid uninteresting noise from the conversion
16784 simplifying patterns.
16786 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
16788 * config/c6x/c6x.c (try_rename_operands): Do not depend on
16789 gcc_assert evaluating its argument for side-effect.
16791 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
16794 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
16797 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
16799 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
16800 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
16801 (hash_scc): Add this_ref_p and ref_p parameters and pass them
16802 to the inner DFS walk.
16804 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16806 * target-insns.def (jump): New targetm instruction pattern.
16807 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
16808 instead of gen_jump.
16809 (fix_up_crossing_landing_pad): Likewise.
16810 (add_labels_and_missing_jumps): Likewise.
16811 (fix_crossing_conditional_branches): Likewise.
16812 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
16813 (force_nonfallthru_and_redirect): Likewise.
16814 * cse.c (cse_insn): Likewise.
16815 * expmed.c (expand_divmod): Likewise.
16816 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
16817 * haifa-sched.c (init_before_recovery): Likewise.
16818 (sched_create_recovery_edges): Likewise.
16819 * ifcvt.c (find_cond_trap): Likewise.
16820 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
16821 (expand_float, expand_fix): Likewise.
16822 * stmt.c (emit_jump): Likewise.
16824 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16826 * defaults.h (HAVE_load_multiple, gen_load_multiple)
16827 (HAVE_store_multiple, gen_store_multiple): Delete.
16828 * target-insns.def (load_multiple, store_multiple): New targetm
16829 instruction patterns.
16830 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
16831 of HAVE_*/gen_* interface.
16833 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16835 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
16836 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
16837 (gen_mem_signal_fence): Delete.
16838 * target-insns.def (mem_signal_fence, mem_thread_fence)
16839 (memory_barrier): New targetm instruction patterns.
16840 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
16842 (expand_mem_signal_fence): Likewise.
16844 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16846 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
16847 * target-insns.def (epilogue, prologue, sibcall_prologue): New
16848 targetm instruction patterns.
16849 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
16851 * calls.c (expand_call): Likewise.
16852 * cfgrtl.c (cfg_layout_finalize): Likewise.
16853 * df-scan.c (df_get_entry_block_def_set): Likewise.
16854 (df_get_exit_block_use_set): Likewise.
16855 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
16856 * final.c (final_start_function): Likewise.
16857 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16858 (reposition_prologue_and_epilogue_notes): Likewise.
16859 * reorg.c (find_end_label): Likewise.
16860 * toplev.c (process_options): Likewise.
16862 2015-06-30 David Malcolm <dmalcolm@redhat.com>
16864 * typed-splay-tree.h: New file.
16866 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
16869 * lra-int.h (lra_substitute_pseudo): Add a parameter.
16870 (lra_substitute_pseudo_within_insn): Ditto.
16871 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
16873 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
16874 to lra_substitute_pseudo.
16875 * lra-lives.c (process_bb_lives): Add an argument to
16876 lra_substitute_pseudo_within_insn call.
16877 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
16878 argument to lra_substitute_pseudo and
16879 lra_substitute_pseudo_within_insn calls.
16880 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
16882 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
16884 * configure: Regenerated.
16886 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
16888 * config.gcc: Support i[34567]86-*-elfiamcu target.
16889 * config/i386/iamcu.h: New.
16890 * config/i386/i386.opt: Add -miamcu.
16891 * doc/invoke.texi: Document -miamcu.
16892 * common/config/i386/i386-common.c (ix86_handle_option): Turn
16893 off x87/MMX/SSE/AVX codegen for -miamcu.
16894 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16895 __iamcu/__iamcu__ for -miamcu.
16896 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
16897 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
16898 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
16899 * config/i386/i386.c (ix86_option_override_internal): Ignore and
16900 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
16901 MCU by default. Default long double to 64-bit for Intel MCU.
16902 Turn on -freg-struct-return for Intel MCU. Issue an error when
16903 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
16905 (function_arg_advance_32): Pass value whose size is no larger
16906 than 8 bytes in registers for Intel MCU.
16907 (function_arg_32): Likewise.
16908 (ix86_return_in_memory): Return value whose size is no larger
16909 than 8 bytes in registers for Intel MCU.
16910 (iamcu_alignment): New function.
16911 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
16913 (ix86_local_alignment): Don't increase alignment for Intel MCU.
16914 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
16917 2015-06-30 Marek Polacek <polacek@redhat.com>
16919 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
16920 both operands of the resulting expression.
16922 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
16923 the final expression with the operand's type and then convert
16924 it to the type of the expression.
16926 2015-06-30 Richard Biener <rguenther@suse.de>
16928 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
16929 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
16930 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
16931 * match.pd: ... to patterns here.
16933 2015-06-30 Richard Biener <rguenther@suse.de>
16935 PR tree-optimization/66704
16936 * tree-vect-data-refs.c (vect_setup_realignment): Use
16937 make_ssa_name for non-SSA name source.
16939 2015-06-30 Jakub Jelinek <jakub@redhat.com>
16941 PR middle-end/66702
16942 * omp-low.c (simd_clone_adjust): Handle addressable linear
16943 or uniform parameters or non-gimple type uniform parameters.
16945 2015-06-30 Richard Biener <rguenther@suse.de>
16947 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
16948 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
16949 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
16950 * match.pd: ... here.
16951 Add a few cases of A - B -> A + (-B) when B "easily" negates.
16952 Move (x & y) | x -> x and friends before
16953 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
16955 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
16957 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
16958 -mfix-ut699 is not specified.
16959 (leon3_load): Rename into...
16960 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
16963 2015-06-30 Marek Polacek <polacek@redhat.com>
16965 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
16966 * match.pd: ... here.
16968 2015-06-30 Richard Biener <rguenther@suse.de>
16970 * target-insns.def (canonicalize_funcptr_for_compare): Add.
16971 * fold-const.c (build_range_check): Replace uses of
16972 HAVE_canonicalize_funcptr_for_compare.
16973 (fold_widened_comparison): Likewise.
16974 (fold_sign_changed_comparison): Likewise.
16975 * dojump.c: Include "target.h".
16976 (do_compare_and_jump): Replace uses of
16977 HAVE_canonicalize_funcptr_for_compare and
16978 gen_canonicalize_funcptr_for_compare.
16979 * expr.c (do_store_flag): Likewise.
16981 2015-06-30 Tom de Vries <tom@codesourcery.com>
16983 PR tree-optimization/66652
16984 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
16985 max_loop_iterations to determine if nit + 1 overflows.
16987 2015-06-30 Richard Biener <rguenther@suse.de>
16989 * tree-vrp.c (register_edge_assert_for_2): Also register
16990 asserts for dominating conversion results.
16992 2015-06-30 Bin Cheng <bin.cheng@arm.com>
16994 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
16995 field in struct iv.
16997 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
17000 * configure.ac: Fix filds and fildq test for 64-bit.
17001 * configure: Regenerated.
17003 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
17005 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
17006 (nvptx_reorg): Here. Keep the non-subreg pieces.
17008 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
17010 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
17011 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
17013 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
17015 * config/i386/i386.md (*jcc_1): Use %! in asm template.
17016 Set attribute "length_nobnd" instead of "length".
17019 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
17021 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
17023 * config/nios2/nios2.c (nios2_delegitimize_address): Make
17024 assert less restrictive.
17026 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
17029 * cgraphunit.c (cgraph_node::finalize_function): Do not call
17030 do_warn_unused_parameter.
17031 * function.c (do_warn_unused_parameter): Move from here.
17032 * function.h (do_warn_unused_parameter): Do not declare.
17034 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17037 * gcc.target/arm/armv-sync-comp-swap.c: New.
17038 * gcc.target/arm/armv-sync-op-acquire.c: New.
17039 * gcc.target/arm/armv-sync-op-full.c: New.
17040 * gcc.target/arm/armv-sync-op-release.c: New.
17042 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17045 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
17046 initial acquire barrier with final barrier.
17048 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17051 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
17052 initial acquire barrier with final barrier.
17054 2015-06-29 Richard Henderson <rth@redhat.com>
17056 * config/i386/constraints.md (Bf): New constraint.
17057 * config/i386/i386-c.c (ix86_target_macros): Define
17058 __GCC_ASM_FLAG_OUTPUTS__.
17059 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
17061 * doc/extend.texi (FlagOutputOperands): Document them.
17063 2015-06-29 Jiong Wang <jiong.wang@arm.com>
17065 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
17066 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
17068 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
17069 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
17070 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
17071 (aarch64_symbol_context): Ditto.
17072 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
17073 and use new pattern name.
17074 (aarch64_expand_mov_immediate): Ditto.
17075 (aarch64_print_operand): Ditto.
17076 (aarch64_classify_tls_symbol): Ditto.
17078 2015-06-29 Marek Polacek <polacek@redhat.com>
17079 Marc Glisse <marc.glisse@inria.fr>
17081 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
17082 * match.pd: ... pattern here.
17084 2015-06-29 Tom de Vries <tom@codesourcery.com>
17086 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
17087 function structure.
17089 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17091 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
17092 feature description, split out the native option, add a link to
17093 the feature documentation, rearrange and slightly rewrite text.
17094 (Aarch64 options, -mcpu): Likewise.
17095 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
17096 +rdma implies Adv. SIMD.
17098 2015-06-29 Marek Polacek <polacek@redhat.com>
17101 * function.c (stack_protect_epilogue): Remove a cast to int.
17102 * doc/invoke.texi: Update -Wswitch-bool description.
17104 2015-06-29 Richard Biener <rguenther@suse.de>
17106 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
17107 * fold-const.c (fold_binary_loc): Move &A - &B simplification
17108 via ptr_difference_const ...
17109 * match.pd: ... here.
17110 When matching (X ^ Y) == Y also match with swapped operands.
17112 2015-06-29 Richard Biener <rguenther@suse.de>
17114 * lto-streamer.h (LTO_major_version): Bump to 5.
17116 2015-06-29 Richard Biener <rguenther@suse.de>
17118 PR tree-optimization/66677
17119 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
17120 STMT_VINFO_VEC_STMT clobbering less strict.
17122 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
17124 PR middle-end/64130
17125 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
17126 division, compute max and min when value ranges for dividend and
17127 divisor are available.
17129 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
17130 Sandra Loosemore <sandra@codesourcery.com>
17132 * regrename.h (regrename_do_replace): Change to return bool.
17133 * regrename.c (rename_chains): Check return value of
17134 regname_do_replace.
17135 (regrename_do_replace): Re-validate the modified insns and
17136 return bool status.
17137 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
17138 Update to match rename_chains changes.
17139 * config/c6x/c6x.c (try_rename_operands): Assert that
17140 regrename_do_replace returns true.
17142 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
17144 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
17145 operand 2 here. Use copy_addr_to_reg to copy non-index
17146 register operand 2 to a temporary.
17147 (<mode>_stx): Ditto for operand 1.
17148 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
17149 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
17150 (ix86_store_bounds): Ditto.
17152 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
17154 * print-tree.c (print_node) [TREE_VEC]: Print its length.
17156 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
17158 * gimple.c (gimple_call_set_fndecl): Remove.
17159 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
17160 build1_loc directly instead of build_fold_addr_expr_loc.
17162 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
17164 * hash-map.h (hash_map::traverse): Use the definition of the
17165 Key typedef rather than the typedef itself.
17167 2015-06-26 Martin Jambor <mjambor@suse.cz>
17170 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
17171 NULL instead of calling dump_enabled_p.
17173 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17175 * config/aarch64/aarch64.opt: (override): New.
17176 * doc/invoke.texi (override): Document.
17177 * config/aarch64/aarch64.c (aarch64_flag_desc): New
17178 (aarch64_fusible_pairs): Likewise.
17179 (aarch64_tuning_flags): Likewise.
17180 (aarch64_tuning_override_function): Likewise.
17181 (aarch64_tuning_override_functions): Likewise.
17182 (aarch64_parse_one_option_token): Likewise.
17183 (aarch64_parse_boolean_options): Likewise.
17184 (aarch64_parse_fuse_string): Likewise.
17185 (aarch64_parse_tune_string): Likewise.
17186 (aarch64_parse_one_override_token): Likewise.
17187 (aarch64_parse_override_string): Likewise.
17188 (aarch64_override_options): Parse the -override string if it
17191 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17193 * config/aarch64/aarch64-protos.h (tune_params): Remove
17194 const from members.
17195 (aarch64_tune_params): Remove const, change to no longer be
17197 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
17198 change to no longer be a pointer, initialize to generic_tunings.
17199 (aarch64_min_divisions_for_recip_mul): Change dereference of
17200 aarch64_tune_params to member access.
17201 (aarch64_reassociation_width): Likewise.
17202 (aarch64_rtx_mult_cost): Likewise.
17203 (aarch64_address_cost): Likewise.
17204 (aarch64_branch_cost): Likewise.
17205 (aarch64_rtx_costs): Likewise.
17206 (aarch64_register_move_cost): Likewise.
17207 (aarch64_memory_move_cost): Likewise.
17208 (aarch64_sched_issue_rate): Likewise.
17209 (aarch64_builtin_vectorization_cost): Likewise.
17210 (aarch64_override_options): Take a copy of the selected tuning
17211 struct in to aarch64_tune_params, rather than just setting
17212 a pointer, change dereferences of aarch64_tune_params to member
17214 (aarch64_override_options_after_change): Change dereferences of
17215 aarch64_tune_params to member access.
17216 (aarch64_macro_fusion_p): Likewise.
17217 (aarch_macro_fusion_pair_p): Likewise.
17218 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
17220 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17222 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
17223 (aarch64_tune_flags): Likewise.
17224 (AARCH64_TUNE_FMA_STEERING): Likewise.
17225 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
17226 to AARCH64_FL_USE_FMA_STEERING_PASS.
17227 (cortex-a57.cortex-a53): Likewise.
17228 (cortex-a72): Use cortexa72_tunings.
17229 (cortex-a72.cortex-a53): Likewise.
17230 (exynos-m1): Likewise.
17231 * config/aarch64/aarch64-protos.h (tune_params): Add
17232 a field: extra_tuning_flags.
17233 * config/aarch64/aarch64-tuning-flags.def: New.
17234 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
17235 (aarch64_extra_tuning_flags): Likewise.
17236 (aarch64_tune_params): Declare here.
17237 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
17238 (cortexa53_tunings): Likewise.
17239 (cortexa57_tunings): Likewise.
17240 (thunderx_tunings): Likewise.
17241 (xgene1_tunings): Likewise.
17242 (cortexa72_tunings): New.
17243 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
17244 (gate): Check against aarch64_tune_params.
17245 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
17248 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17250 * config/aarch64/aarch64-fusion-pairs.def: New.
17251 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
17252 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
17253 aarch64_fusion_pairs.
17254 (AARCH64_FUSE_MOV_MOVK): Likewise.
17255 (AARCH64_FUSE_ADRP_ADD): Likewise.
17256 (AARCH64_FUSE_MOVK_MOVK): Likewise.
17257 (AARCH64_FUSE_ADRP_LDR): Likewise.
17258 (AARCH64_FUSE_CMP_BRANCH): Likewise.
17260 2015-06-26 Jiong Wang <jiong.wang@arm.com>
17262 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
17263 SYMBOL_SMALL_GOT_28K.
17264 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
17265 relocation modifiers.
17266 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
17267 (ldr_got_small_28k_<mode>): New.
17268 (ldr_got_small_28k_sidi): New.
17269 * config/aarch64/iterators.md (got_modifier): New mode iterator.
17270 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
17271 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17272 SYMBOL_SMALL_GOT_28K.
17273 (aarch64_rtx_costs): Add costs for new instruction sequences.
17274 (initialize_aarch64_code_model): Initialize new model.
17275 (aarch64_classify_symbol): Recognize new model and new symbol classification.
17276 (aarch64_asm_preferred_eh_data_format): Support new model.
17277 (aarch64_load_symref_appropriately): Generate new instruction
17278 sequences for -fpic.
17279 (TARGET_USE_PSEUDO_PIC_REG): New definition.
17280 (aarch64_use_pseudo_pic_reg): New function.
17282 2015-06-26 Jiong Wang <jiong.wang@arm.com>
17284 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17285 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
17286 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
17287 (aarch64_expand_mov_immediate): Ditto.
17288 (aarch64_print_operand): Ditto.
17289 (aarch64_classify_symbol): Ditto.
17291 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
17293 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
17295 2015-06-26 Bin Cheng <bin.cheng@arm.com>
17298 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
17299 assertion failed. Remove assertion itself.
17301 2015-06-26 Richard Biener <rguenther@suse.de>
17303 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
17304 and -A CMP CST -> A CMP -CST which is redundant with a pattern
17306 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
17307 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
17308 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
17309 * match.pd: ... patterns here.
17311 2015-06-26 Marek Polacek <polacek@redhat.com>
17313 * match.pd ((x | y) & ~(x & y) -> x ^ y,
17314 (x | y) & (~x ^ y) -> x & y): New patterns.
17316 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
17318 * rtl.h (emit): Add an optional boolean parameter to control
17319 whether barriers are emitted.
17320 * emit-rtl.c (emit): Likewise.
17321 * gensupport.c (get_emit_function): Return null rather than "emit".
17322 * genemit.c (gen_emit_seq): Handle the null return value.
17323 Don't emit barriers after the final instruction in the sequence.
17324 * gentarget-def.c (main): Don't emit barriers after the instruction.
17326 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17328 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
17329 TARGET_UNIFIED_ASM.
17331 2015-06-26 Richard Biener <rguenther@suse.de>
17333 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
17335 2015-06-26 Richard Biener <rguenther@suse.de>
17337 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
17338 irrespective on whether the inner operation has a single use
17339 of both off are constant.
17341 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
17342 Segher Boessenkool <segher@kernel.crashing.org>
17345 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
17346 before doing PUT_MODE or PUT_CODE on operands to avoid
17347 in-place RTX modification.
17349 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
17351 * gentarget-def.c (def_target_insn): Cast return of strtol to
17354 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17356 * gimple.h (gimple_call_set_fn): Move inline function.
17357 * gimple.c (gimple_call_set_fn): Relocate here.
17359 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
17363 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
17364 the replacement insn will work.
17366 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
17368 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
17371 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17373 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
17374 * cgraph.h: Include ipa-ref.h and plugin-api.h.
17375 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
17376 (symtab_node::address_can_be_compared_p): Move function.
17377 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
17379 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
17380 * auto-profile.c: Likewise.
17381 * bb-reorder.c: Likewise.
17382 * builtins.c: Likewise.
17383 * calls.c: Likewise.
17384 * cfgexpand.c: Likewise.
17385 * cgraphbuild.c: Likewise.
17386 * cgraphclones.c: Likewise.
17387 * cgraphunit.c: Likewise.
17388 * combine.c: Likewise.
17389 * coverage.c: Likewise.
17390 * data-streamer-in.c: Likewise.
17391 * data-streamer-out.c: Likewise.
17392 * data-streamer.c: Likewise.
17393 * dbxout.c: Likewise.
17394 * dwarf2out.c: Likewise.
17395 * except.c: Likewise.
17396 * expr.c: Likewise.
17397 * final.c: Likewise.
17398 * fold-const.c: Likewise.
17399 * ggc-page.c: Likewise.
17400 * gimple-fold.c: Likewise.
17401 * gimple-iterator.c: Likewise.
17402 * gimple-pretty-print.c: Likewise.
17403 * gimple-streamer-in.c: Likewise.
17404 * gimple-streamer-out.c: Likewise.
17405 * gimple.c: Likewise.
17406 * gimplify.c: Likewise.
17407 * ipa-chkp.c: Likewise.
17408 * ipa-comdats.c: Likewise.
17409 * ipa-cp.c: Likewise.
17410 * ipa-devirt.c: Likewise.
17411 * ipa-icf-gimple.c: Likewise.
17412 * ipa-icf.c: Likewise.
17413 * ipa-inline-analysis.c: Likewise.
17414 * ipa-inline-transform.c: Likewise.
17415 * ipa-inline.c: Likewise.
17416 * ipa-polymorphic-call.c: Likewise.
17417 * ipa-profile.c: Likewise.
17418 * ipa-prop.c: Likewise.
17419 * ipa-pure-const.c: Likewise.
17420 * ipa-ref.c: Likewise.
17421 * ipa-reference.c: Likewise.
17422 * ipa-split.c: Likewise.
17423 * ipa-utils.c: Likewise.
17424 * ipa-visibility.c: Likewise.
17426 * langhooks.c: Likewise.
17427 * lto-cgraph.c: Likewise.
17428 * lto-compress.c: Likewise.
17429 * lto-opts.c: Likewise.
17430 * lto-section-in.c: Likewise.
17431 * lto-section-out.c: Likewise.
17432 * lto-streamer-in.c: Likewise.
17433 * lto-streamer-out.c: Likewise.
17434 * lto-streamer.c: Likewise.
17435 * omp-low.c: Likewise.
17436 * opts-global.c: Likewise.
17437 * passes.c: Likewise.
17438 * predict.c: Likewise.
17439 * print-tree.c: Likewise.
17440 * profile.c: Likewise.
17442 * sanopt.c: Likewise.
17443 * stor-layout.c: Likewise.
17444 * symtab.c: Likewise.
17445 * toplev.c: Likewise.
17446 * trans-mem.c: Likewise.
17447 * tree-cfg.c: Likewise.
17448 * tree-chkp.c: Likewise.
17449 * tree-eh.c: Likewise.
17450 * tree-emutls.c: Likewise.
17451 * tree-inline.c: Likewise.
17452 * tree-nested.c: Likewise.
17453 * tree-parloops.c: Likewise.
17454 * tree-pretty-print.c: Likewise.
17455 * tree-profile.c: Likewise.
17456 * tree-sra.c: Likewise.
17457 * tree-ssa-alias.c: Likewise.
17458 * tree-ssa-live.c: Likewise.
17459 * tree-ssa-loop-ivcanon.c: Likewise.
17460 * tree-ssa-loop-ivopts.c: Likewise.
17461 * tree-ssa-pre.c: Likewise.
17462 * tree-ssa-sccvn.c: Likewise.
17463 * tree-ssa-strlen.c: Likewise.
17464 * tree-ssa-structalias.c: Likewise.
17465 * tree-streamer-in.c: Likewise.
17466 * tree-streamer-out.c: Likewise.
17467 * tree-streamer.c: Likewise.
17468 * tree-switch-conversion.c: Likewise.
17469 * tree-tailcall.c: Likewise.
17470 * tree-vect-data-refs.c: Likewise.
17471 * tree-vect-stmts.c: Likewise.
17472 * tree-vectorizer.c: Likewise.
17473 * tree.c: Likewise.
17474 * tsan.c: Likewise.
17475 * ubsan.c: Likewise.
17476 * value-prof.c: Likewise.
17477 * varasm.c: Likewise.
17478 * varpool.c: Likewise.
17479 * config/arm/arm.c: Likewise.
17480 * config/bfin/bfin.c: Likewise.
17481 * config/c6x/c6x.c: Likewise.
17482 * config/cris/cris.c: Likewise.
17483 * config/darwin-c.c: Likewise.
17484 * config/darwin.c: Likewise.
17485 * config/i386/i386.c: Likewise.
17486 * config/i386/winnt.c: Likewise.
17487 * config/microblaze/microblaze.c: Likewise.
17488 * config/mips/mips.c: Likewise.
17489 * config/rs6000/rs6000.c: Likewise.
17490 * config/rx/rx.c: Likewise.
17491 * config/s390/s390.c: Likewise.
17492 * config/tilegx/mul-tables.c: Likewise.
17494 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17496 * config/aarch64/aarch64.c, config/alpha/alpha.c,
17497 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
17498 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
17499 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
17500 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17501 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17502 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17503 config/microblaze/microblaze.c, config/mips/mips.c,
17504 config/mmix/mmix.c, config/mn10300/mn10300.c,
17505 config/moxie/moxie.c, config/msp430/msp430.c,
17506 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17507 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17508 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17509 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17510 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17511 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17512 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
17513 target-def.h include.
17514 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
17516 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17518 * Makefile.in (TARGET_DEF): Add target-insns.def.
17519 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
17520 (build/gentarget-def.o): New rule.
17521 (genprogrtl): Add target-def.
17522 * target-insns.def, gentarget-def.c: New files.
17523 * target.def: Add targetm.have_* and targetm.gen_* hooks,
17524 based on the contents of target-insns.def.
17525 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
17526 (HAVE_return, gen_return): Delete.
17527 * target-def.h: Include insn-target-def.h.
17528 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
17529 instead of direct calls. Rely on them to do the appropriate assertions.
17530 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
17531 (convert_jumps_to_returns): Use targetm interface instead of
17533 (thread_prologue_and_epilogue_insns): Likewise.
17534 * reorg.c (find_end_label, dbr_schedule): Likewise.
17535 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
17536 * shrink-wrap.c (convert_to_simple_return): Likewise.
17537 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
17539 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17541 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
17542 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17543 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
17544 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
17545 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17546 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17547 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17548 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
17549 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
17550 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17551 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17552 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17553 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17554 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17555 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17556 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
17559 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17561 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
17562 (unbounded_int_hashmap_traits::key_type): Likewise.
17563 * hash-map.h (hash_map): Get the key type from the traits.
17564 * hash-traits.h (default_hash_traits): By default, inherit from the
17565 template parameter.
17566 * alias.c (alias_set_traits): Delete.
17567 (alias_set_entry_d::children): Use alias_set_hash as the first
17568 template parameter.
17569 (record_alias_subset): Update accordingly.
17570 * except.c (tree_hash_traits): Delete.
17571 (type_to_runtime_map): Use tree_hash as the first template parameter.
17572 (init_eh): Update accordingly.
17573 * genmatch.c (capture_id_map_hasher): Delete.
17574 (cid_map_t): Use nofree_string_hash as first template parameter.
17575 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
17576 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
17577 Use symbol_compare_hash as the first template parameter in
17578 subdivide_hash_map.
17579 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
17580 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
17581 template parameter.
17582 * passes.c (pass_registry_hasher): Delete.
17583 (name_to_pass_map): Use nofree_string_hash as the first template
17585 (register_pass_name): Update accordingly.
17586 * sanopt.c (sanopt_tree_map_traits): Delete.
17587 (sanopt_tree_triplet_map_traits): Delete.
17588 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
17589 template parameter.
17590 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
17591 the first template parameter.
17592 * sese.c (rename_map_hasher): Delete.
17593 (rename_map_type): Use tree_ssa_name_hash as the first template
17595 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
17596 (function_summary::m_map): Use map_hash as the first template
17598 (function_summary::release): Update accordingly.
17599 * tree-if-conv.c (phi_args_hash_traits): Delete.
17600 (predicate_scalar_phi): Use tree_operand_hash as the first template
17601 parameter to phi_arg_map.
17602 * tree-inline.h (dependence_hasher): Delete.
17603 (copy_body_data::dependence_map): Use dependence_hash as the first
17604 template parameter.
17605 * tree-inline.c (remap_dependence_clique): Update accordingly.
17606 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
17607 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
17609 (addr_stridxptr): Update accordingly.
17610 * value-prof.c (profile_id_traits): Delete.
17611 (cgraph_node_map): Use profile_id_hash as the first template
17613 (init_node_map): Update accordingly.
17614 * config/alpha/alpha.c (string_traits): Delete.
17615 (machine_function::links): Use nofree_string_hash as the first
17616 template parameter.
17617 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
17618 * config/m32c/m32c.c (pragma_traits): Delete.
17619 (pragma_htab): Use nofree_string_hash as the first template parameter.
17620 (m32c_note_pragma_address): Update accordingly.
17621 * config/mep/mep.c (pragma_traits): Delete.
17622 (pragma_htab): Use nofree_string_hash as the first template parameter.
17623 (mep_note_pragma_flag): Update accordingly.
17624 * config/mips/mips.c (mips16_flip_traits): Delete.
17625 (mflip_mips16_htab): Use nofree_string_hash as the first template
17627 (mflip_mips16_use_mips16_p): Update accordingly.
17628 (local_alias_traits): Delete.
17629 (mips16_local_aliases): Use nofree_string_hash as the first template
17631 (mips16_local_alias): Update accordingly.
17633 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17635 * hash-map-traits.h (default_hashmap_traits): Delete.
17637 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17639 * hash-map-traits.h (unbounded_hashmap_traits): New class.
17640 (unbounded_int_hashmap_traits): Likewise.
17641 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
17643 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17645 * ipa-icf.h (symbol_compare_hash): New class.
17646 (symbol_compare_hashmap_traits): Use it.
17647 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
17648 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
17649 (mem_alloc_description::reverse_mem_map_t): Remove redundant
17650 default_hashmap_traits.
17651 * sanopt.c (sanopt_tree_triplet_hash): New class.
17652 (sanopt_tree_triplet_map_traits): Use it.
17654 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17656 * gengtype-parse.c (require_template_declaration): Allow '+' in
17657 template parameters. Consolidate cases.
17658 * hash-traits.h (int_hash): New class.
17659 * alias.c (alias_set_hash): New structure.
17660 (alias_set_traits): Use it.
17661 * symbol-summary.h (function_summary::map_hash): New class.
17662 (function_summary::summary_hashmap_traits): Use it.
17663 * tree-inline.h (dependence_hash): New class.
17664 (dependence_hasher): Use it.
17665 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
17666 * value-prof.c (profile_id_hash): New class.
17667 (profile_id_traits): Use it.
17669 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17671 * config/mips/mips.c (mips16_flip_traits): Use it.
17672 (local_alias_traits, mips16_local_aliases): Convert from a map of
17673 rtxes to a map of symbol names.
17674 (mips16_local_alias): Update accordingly.
17676 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17678 * hash-traits.h (string_hash, nofree_string_hash): New classes.
17679 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
17680 * passes.c (pass_registry_hasher): Likewise.
17681 * config/alpha/alpha.c (string_traits): Likewise.
17682 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
17683 * config/m32c/m32c.c (pragma_traits): Likewise.
17684 * config/mep/mep.c (pragma_traits): Likewise.
17686 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17688 * tree-hash-traits.h (tree_hash): New class.
17689 * except.c: Include tree-hash-traits.h.
17690 (tree_hash_traits): Use tree_hash.
17692 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17694 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
17695 * sese.c: Include tree-hash-traits.h.
17696 (rename_map_hasher): Use tree_ssa_name_hasher.
17698 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17700 * tree-hash-traits.h (tree_decl_hash): New class.
17701 * tree-ssa-strlen.c: Include tree-hash-traits.h.
17702 (stridxlist_hash_traits): Use tree_decl_hash.
17704 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17706 * tree-hash-traits.h: New file.
17707 (tree_operand_hash): New class.
17708 * sanopt.c: Include tree-hash-traits.h.
17709 (sanopt_tree_map_traits): Use tree_operand_hash.
17710 * tree-if-conv.c: Include tree-hash-traits.h.
17711 (phi_args_hash_traits): Use tree_operand_hash.
17712 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
17713 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
17715 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17717 * hash-map-traits.h: Include hash-traits.h.
17718 (simple_hashmap_traits): New class.
17719 * mem-stats.h (hash_map): Change the default traits to
17720 simple_hashmap_traits<default_hash_traits<Key> >.
17722 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17724 * hash-table.h: Update comments.
17726 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17728 * hash-traits.h (default_hash_traits): New structure.
17729 * hash-set.h (default_hashset_traits): Delete.
17730 (hash_set): Use default_hash_traits<Key> instead of
17731 default_hashset_traits. Delete hash_entry type and use Key directly.
17732 * ipa-devirt.c (pair_traits): Delete.
17733 (default_hash_traits <type_pair>): Override.
17734 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
17735 (odr_types_equivalent_p, add_type_duplicate): Likewise.
17737 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17739 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
17741 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17743 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
17744 (has_is_empty, is_empty_helper): Delete.
17745 (has_mark_deleted, mark_deleted_helper): Delete.
17746 (has_mark_empty, mark_empty_helper): Delete.
17747 (hash_table::is_deleted): Call the Descriptor unconditionally.
17748 (hash_table::is_empty): Likewise.
17749 (hash_table::mark_deleted): Likewise.
17750 (hash_table::mark_empty): Likewise.
17752 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17754 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
17755 redundant typedefs and members.
17756 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
17757 redundant typedefs.
17758 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
17759 * ipa-devirt.c (odr_name_hasher): Likewise.
17760 (polymorphic_call_target_hasher): Likewise.
17761 * ira-costs.c (cost_classes_hasher): Likewise.
17762 * statistics.c (stats_counter_hasher): Likewise.
17763 * trans-mem.c (log_entry_hasher): Likewise.
17764 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17765 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
17766 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
17767 * var-tracking.c (variable_hasher): Likewise.
17768 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
17769 Remove redundant typedefs and members.
17771 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17773 * hash-traits.h (ggc_cache_hasher): Rename to...
17774 (ggc_cache_remove): ...this and remove typedefs.
17775 (ggc_cache_ptr_hash): New class.
17776 * hash-table.h: Update commentary.
17777 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
17778 rather than ggc_cache_hasher.
17779 (const_wide_int_hasher, reg_attr_hasher): Likewise.
17780 (const_double_hasher, const_fixed_hasher): Likewise.
17781 * function.c (insn_cache_hasher): Likewise.
17782 * trans-mem.c (tm_wrapper_hasher): Likewise.
17783 * tree.h (tree_decl_map_cache_hasher): Likewise.
17784 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
17785 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
17786 * ubsan.c (tree_type_map_cache_hasher): Likewise.
17787 * varasm.c (tm_clone_hasher): Likewise.
17788 * config/i386/i386.c (dllimport_hasher): Likewise.
17789 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
17790 (tree_hasher): Likewise.
17792 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17794 * hash-traits.h (ggc_hasher): Rename to...
17795 (ggc_remover): ...this and remove typedefs.
17796 (ggc_cache_hasher): Update accordingly. Add typedefs.
17797 (ggc_ptr_hash): New class.
17798 * hash-table.h: Update comment.
17799 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
17801 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
17802 (tree_descriptor_hasher): Likewise.
17803 * cgraph.c (function_version_hasher): Likewise.
17804 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
17805 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
17806 (dw_loc_list_hasher, addr_hasher): Likewise.
17807 * function.h (used_type_hasher): Likewise.
17808 * function.c (temp_address_hasher): Likewise.
17809 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
17810 * libfuncs.h (libfunc_hasher): Likewise.
17811 * lto-streamer.h (decl_state_hasher): Likewise.
17812 * optabs.c (libfunc_decl_hasher): Likewise.
17813 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
17814 * varasm.c (section_hasher, object_block_hasher): Likewise.
17815 (const_rtx_desc_hasher): Likewise.
17816 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
17817 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
17819 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17821 * hash-traits.h (free_ptr_hash): New class.
17822 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
17823 rather than typed_free_remove. Remove redudant typedefs.
17824 (external_ref_hasher): Likewise.
17825 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
17826 (ehspec_hasher): Likewise.
17827 * ggc-common.c (saving_hasher): Likewise.
17828 * gimplify.c (gimplify_hasher): Likewise.
17829 * haifa-sched.c (delay_i2_hasher): Likewise.
17830 * loop-invariant.c (invariant_expr_hasher): Likewise.
17831 * loop-iv.c (biv_entry_hasher): Likewise.
17832 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
17833 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
17834 * tree-cfg.c (locus_discrim_hasher): Likewise.
17835 * tree-eh.c (finally_tree_hasher): Likewise.
17836 * tree-into-ssa.c (var_info_hasher): Likewise.
17837 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
17838 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
17839 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
17840 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
17841 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
17842 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
17843 (shared_bitmap_hasher): Likewise.
17844 * tree-ssa-threadupdate.c (redirection_data): Likewise.
17845 * tree-vectorizer.h (peel_info_hasher): Likewise.
17846 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
17847 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
17849 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17851 * hash-table.h: Update comments.
17852 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
17853 (nofree_ptr_hash): New class.
17854 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
17855 than typed_noop_remove. Remove redudant typedefs.
17856 * attribs.c (attribute_hasher): Likewise.
17857 * cfg.c (bb_copy_hasher): Likewise.
17858 * cselib.c (cselib_hasher): Likewise.
17859 * dse.c (invariant_group_base_hasher): Likewise.
17860 * dwarf2cfi.c (trace_info_hasher): Likewise.
17861 * dwarf2out.c (macinfo_entry_hasher): Likewise.
17862 (comdat_type_hasher, loc_list_hasher): Likewise.
17863 * gcse.c (pre_ldst_expr_hasher): Likewise.
17864 * genmatch.c (id_base): Likewise.
17865 * genrecog.c (test_pattern_hasher): Likewise.
17866 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
17867 * haifa-sched.c (delay_i1_hasher): Likewise.
17868 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
17869 * ipa-icf.h (congruence_class_group_hash): Likewise.
17870 * ipa-profile.c (histogram_hash): Likewise.
17871 * ira-color.c (allocno_hard_regs_hasher): Likewise.
17872 * lto-streamer.h (string_slot_hasher): Likewise.
17873 * lto-streamer.c (tree_entry_hasher): Likewise.
17874 * plugin.c (event_hasher): Likewise.
17875 * postreload-gcse.c (expr_hasher): Likewise.
17876 * store-motion.c (st_expr_hasher): Likewise.
17877 * tree-sra.c (uid_decl_hasher): Likewise.
17878 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
17879 (ssa_name_var_hash): Likewise.
17880 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
17881 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
17882 * tree-ssa-pre.c (pre_expr_d): Likewise.
17883 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
17884 * vtable-verify.h (registration_hasher): Likewise.
17885 * vtable-verify.c (vtbl_map_hasher): Likewise.
17886 * config/arm/arm.c (libcall_hasher): Likewise.
17887 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
17888 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
17889 * config/sol2.c (comdat_entry_hasher): Likewise.
17890 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
17891 (print_fold_checksum, fold_checksum_tree): Likewise.
17892 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
17893 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
17894 (fold_build_call_array_loc): Likewise.
17895 * tree-ssa-ccp.c (gimple_htab): Likewise.
17896 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
17897 rather than pointer_type.
17899 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17901 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
17902 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
17904 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17906 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
17907 (ggc_hasher::ggc_mx): Likewise.
17908 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
17909 that duplicate ggc_hasher ones.
17911 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17913 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
17914 (gt_cleare_cache): Check here for deleted and empty entries.
17915 Replace handle_cache_entry with a call to keep_cache_entry.
17916 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
17917 (ggc_cache_hasher::keep_cache_entry): New function.
17918 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
17919 (tm_wrapper_hasher::keep_cache_entry): New function.
17920 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
17921 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17922 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
17923 (type_cache_hasher::keep_cache_entry): New function.
17924 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
17925 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17926 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
17927 (tree_type_map_cache_hasher::keep_cache_entry): New function.
17928 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
17929 (tm_clone_hasher::keep_cache_entry): New function.
17930 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
17931 (dllimport_hasher::keep_cache_entry): New function.
17933 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17935 * hash-table.h: Include hash-traits.h.
17936 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
17937 (ggc_cache_hasher): Move to...
17938 * hash-traits.h: ...this new file.
17940 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17942 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
17943 struct cl_optimization.
17944 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
17945 * tree.c (make_node_stat): Allocate cl_optimization struct.
17946 (copy_node_stat): Allocate and copy cl_optimization struct.
17948 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17950 * function.h (struct incoming_args): Move struct.
17951 (pass_by_reference, reference_callee_copied): Remove prototypes.
17952 * emit-rtl.h (struct incoming_args): Relocate struct here.
17953 * calls.h (pass_by_reference, reference_callee_copied): Relocate
17955 * function.c (pass_by_reference, reference_callee_copied): Move.
17956 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
17957 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
17958 * ipa-chkp.c: Include calls.h.
17960 2015-06-25 Andrew Macleod <amacleod@redhat.com>
17962 * alias.h (alias_set_type): Move typedef.
17963 * coretypes.h (alias_set_type): Relocate typedef here.
17964 * rtl.h: Don't include alias.h.
17966 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17968 * cgraph.h (cgraph_rtl_info): Move to rtl.h
17969 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
17971 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
17972 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
17974 * calls.c: Include hard-reg-set.h before rtl.h.
17977 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17978 Vladimir Makarov <vmakarov@redhat.com>
17980 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
17983 2015-06-25 Richard Biener <rguenther@suse.de>
17985 * fold-const.c (fold_binary_loc): Move simplification of
17986 (X <<>> C1) & C2 ...
17987 * match.pd: ... here.
17989 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
17991 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
17993 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17995 * match.pd: Add patterns for vec_conds between 1 and 0.
17997 2015-06-25 Richard Biener <rguenther@suse.de>
17999 * tree-vect-stmts.c (vectorizable_conversion): Do not set
18000 STMT_VINFO_VEC_STMT for SLP.
18001 (vectorizable_store): Likewise.
18002 (vectorizable_load): Likewise.
18003 (vect_transform_stmt): Catch SLP vectorization clobbering
18004 STMT_VINFO_VEC_STMT.
18006 2015-06-25 Richard Biener <rguenther@suse.de>
18008 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
18010 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
18011 cleanup resulting dead code and parameters.
18012 (vect_transform_slp_perm_load): Adjust.
18014 2015-06-25 Nick Clifton <nickc@redhat.com>
18016 * config/bfin/bfin.c (bfin_expand_prologue): Set
18017 current_function_static_stack_size if flag_stack_usage_info is set.
18018 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
18019 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
18020 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18021 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
18023 2015-06-25 Tom de Vries <tom@codesourcery.com>
18025 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
18026 comment that the generated IV is unsigned.
18028 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18031 * config/arm/arm.c (arm_dbx_register_number): Return
18032 DWARF_FRAME_REGISTERS by default.
18034 2015-06-25 Tom de Vries <tom@codesourcery.com>
18036 * dominance.c (calculate_dominance_info): Fix verify_dominators call
18037 argument. Call verify_dominator when reusing dominator info.
18039 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
18042 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
18043 an additional element of the unspec vector. Modify indices
18045 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
18046 * config/sh/sh.c (prepare_move_operands): Pass incremented
18047 const_int to gen_GOTaddr2picreg.
18048 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
18050 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18052 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
18053 Condition on TARGET_FLOAT.
18055 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18057 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
18060 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18062 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
18064 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
18065 aarch64_err_no_fpadvsimd.
18067 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
18068 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
18069 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
18070 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
18071 Turn error into assert, test TARGET_FLOAT.
18072 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
18075 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
18078 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
18080 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18082 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
18084 2015-06-24 Renlin Li <renlin.li@arm.com>
18086 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
18087 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
18089 2015-06-24 Richard Biener <rguenther@suse.de>
18091 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
18093 (lower_opt_convert): Support lowering of conditional view_convert.
18094 (parser::parse_operation): Likewise.
18095 (parser::parse_for): Likewise.
18097 2015-06-24 Renlin Li <renlin.li@arm.com>
18099 * varasm.c (emit_local): Use unsigned int for align variable.
18101 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18104 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
18105 for negative numbers.
18107 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18109 PR rtl-optimization/66306
18110 * reload.c (find_reloads): Swap the match_dup info for
18111 commutative operands.
18113 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18115 * config/s390/vx-builtins.md
18116 ("vec_scatter_element<mode>_<non_vec_int>")
18117 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
18118 attribute with bhfgq.
18120 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18122 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
18124 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18126 * config/s390/s390-builtin-types.def: Add flag to indicate the
18127 options under which the function type is needed.
18128 * config/s390/s390-builtins.def: Add flag to indicate the options
18129 under which the builtin is enabled.
18130 * config/s390/s390-builtins.h: Add flags parameter to macro
18132 (bflags_for_builtin): New function.
18133 (flags_for_builtin): Renamed to ...
18134 (opflags_for_builtin): ... this.
18135 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
18136 flags_for_builtin to bflags_for_builtin and
18137 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
18138 * config/s390/s390.c: Add initialization of bflags_builtin and
18139 opflags_builtin arrays.
18140 Remove code for flags_builtin.
18141 (s390_init_builtins): Only create builtin function types if one of
18142 their flags is active.
18143 Only create builtins if all of their flags are active.
18144 (s390_expand_builtin): Rename flags_for_builtin to
18145 opflags_for_builtin.
18147 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18149 * config/s390/vecintrin.h: Remove internal builtins.
18151 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18153 * config/s390/s390.c (s390_secondary_reload): Fix check for
18154 GENERAL_REGS register class.
18156 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18158 * config/s390/s390.c (s390_support_vector_misalignment): Call
18159 default implementation for !TARGET_VX.
18161 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18163 * config/s390/s390.c (s390_legitimate_constant_p): Add
18166 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18168 * config/s390/s390.c (s390_vector_abi): New variable definition.
18169 (s390_check_type_for_vector_abi): New function.
18170 (TARGET_ASM_FILE_END): New macro definition.
18171 (s390_asm_file_end): New function.
18172 (s390_function_arg): Call s390_check_type_for_vector_abi.
18173 (s390_gimplify_va_arg): Likewise.
18174 * configure: Regenerate.
18175 * configure.ac: Check for .gnu_attribute Binutils feature.
18177 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
18180 * config/bfin/bfin.c (hwloop_optimize): Initialize
18181 JUMP_LABEL for newly created jump.
18183 2015-06-23 Tristan Gingold <gingold@adacore.com>
18185 * collect-utils.c (collect_wait): Unlink the response file here
18187 (do_wait): ...here.
18188 (utils_cleanup): ...and here.
18190 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
18192 * df-scan.c: Don't include target-def.h.
18193 * targhooks.c: Likewise.
18194 * config/arm/arm-c.c: Likewise.
18195 * config/i386/i386-c.c: Likewise.
18196 * config/nds32/nds32-cost.c: Likewise.
18197 * config/nds32/nds32-fp-as-gp.c: Likewise.
18198 * config/nds32/nds32-intrinsic.c: Likewise.
18199 * config/nds32/nds32-isr.c: Likewise.
18200 * config/nds32/nds32-md-auxiliary.c: Likewise.
18201 * config/nds32/nds32-memory-manipulation.c: Likewise.
18202 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18203 * config/nds32/nds32-predicates.c: Likewise.
18205 2015-06-23 Richard Biener <rguenther@suse.de>
18207 PR tree-optimization/66636
18208 * tree-vect-stmts.c (vectorizable_store): Properly compute the
18209 def type for further defs for strided stores.
18211 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
18213 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
18214 conditional selects.
18215 (setcc_int<mode>, setcc_float<mode>): Reformat.
18217 2015-06-23 Marek Polacek <polacek@redhat.com>
18219 * match.pd ((x + y) - (x | y) -> x & y,
18220 (x + y) - (x & y) -> x | y): New patterns.
18222 2015-06-23 Ludovic Courtès <ludo@gnu.org>
18225 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
18226 '-dynamic-linker' within %{!shared: ...}.
18228 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
18231 * config/i386/predicates.md (addsub_vm_operator): New predicate.
18232 (addsub_vs_operator): Ditto.
18233 (addsub_vs_parallel): Ditto.
18234 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
18235 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
18236 Put minus RTX before plus and adjust vec_merge selector.
18237 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
18238 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
18239 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
18240 (addsub vec_merge splitters): New combiner splitters.
18241 (addsub vec_select/vec_concat splitters): Ditto.
18243 2015-06-23 Bin Cheng <bin.cheng@arm.com>
18245 PR tree-optimization/66449
18246 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
18247 POINTER_PLUS_EXPR for pointers.
18249 2015-06-23 Alan Modra <amodra@gmail.com>
18251 * rtlanal.c (commutative_operand_precedence): Correct comments.
18252 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
18253 declaration. Return an int. Distinguish REG,REG return from
18255 (struct simplify_plus_minus_op_data): Make local to function.
18256 (simplify_plus_minus): Don't set canonicalized if merely sorting
18257 registers. Avoid packing ops if nothing changes. White space fixes.
18259 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
18261 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
18262 -fdump-ada-spec is passed but not if -fsyntax-only is.
18264 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
18267 * lra-lives.c (process_bb_lives): Check insn copying the same
18268 reload pseudo and don't create a copy for it.
18270 2015-06-22 Tom de Vries <tom@codesourcery.com>
18272 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
18275 2015-06-22 Tom de Vries <tom@codesourcery.com>
18277 * builtins.def (DEF_GOMP_BUILTIN): Test
18278 'flag_tree_parallelize_loops > 1' instead of
18279 'flag_tree_parallelize_loops'. Test flag_cilkplus.
18281 2015-06-22 Tom de Vries <tom@codesourcery.com>
18283 * dominance.c (calculate_dominance_info): Verify dominators if
18286 2015-06-22 Marek Polacek <polacek@redhat.com>
18288 * match.pd ((x ^ y) ^ (x | y) -> x & y,
18289 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
18290 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
18291 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
18293 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
18296 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
18297 cost of embedded comparison.
18299 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18302 * config/rs6000/predicates.md (altivec_register_operand): Permit
18303 virtual stack registers.
18304 (vsx_register_operand): Likewise.
18305 (vfloat_operand): Likewise.
18306 (vint_operand): Likewise.
18307 (vlogical_operand): Likewise.
18309 2015-06-22 Richard Biener <rguenther@suse.de>
18311 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
18312 and single_scalar_iteration_cost members.
18313 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
18314 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
18315 (vect_get_single_scalar_iteration_cost): Remove.
18316 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
18317 Use LOOP_VINFO_SCALAR_ITERATION_COST.
18318 * tree-vect-loop.c (destroy_loop_vec_info): Free
18320 (vect_get_single_scalar_iteration_cost): Compute result into
18321 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
18322 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
18323 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
18324 (vect_estimate_min_profitable_iters): Use them.
18326 2015-06-22 Christian Bruel <christian.bruel@st.com>
18329 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
18330 (TARGET_INSERT_ATTRIBUTES): Define.
18331 (thumb_flipper): New var.
18332 * config/arm/arm.opt (-mflip-thumb): New switch.
18334 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
18335 Martin Liska <mliska@suse.cz>
18338 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
18339 construction of arg_types.
18340 (sem_function::sem_function): Likewise.
18341 (sem_function::~sem_function): Remove destruction of arg_types.
18342 (sem_function::compatible_parm_types_p): New function.
18343 (sem_function::equals_wpa): Reorg matching of return values
18344 and parameter types.
18345 (sem_function::equals_private): Reorg mathcing of argument types.
18346 (sem_function::parse_tree_args): Remove.
18347 * ipa-icf.h (init_wpa): Do not call it.
18348 (parse_tree_args): Remove.
18349 (compatible_parm_types_p): Declare.
18350 (result_type): Remove.
18351 (arg_types): Remove.
18353 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
18356 * ipa-polymorphic-call.c
18357 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
18358 initializing alias oracle; fix formating; set base_alias_set if it
18361 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
18363 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
18364 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
18365 (find_inc): Likewise.
18366 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
18368 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
18369 * df-scan.c (df_swap_refs): Remove.
18370 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
18371 * dominance.c (link_roots): Use std::swap instead of manually swapping.
18372 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
18373 * fold-const.c (fold_relational_const): Likewise.
18374 * genattrtab.c (simplify_test_exp): Likewise.
18375 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
18376 gimple_simplify): Likewise.
18377 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
18378 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
18379 * ipa-devirt.c (add_type_duplicate): Likewise.
18380 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
18381 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
18382 * lra.c (lra_create_copy): Likewise.
18383 * lto-streamer-out.c (DFS::DFS): Likewise.
18384 * modulo-sched.c (get_sched_window): Likewise.
18385 * omega.c (omega_pretty_print_problem): Likewise.
18386 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
18387 * reload1.c (reloads_unique_chain_p): Likewise.
18388 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
18389 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
18391 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
18393 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
18394 predicate_mem_writes): Likewise.
18395 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
18396 * tree-predcom.c (combine_chains): Likewise.
18397 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
18398 refs_may_alias_p_1): Likewise.
18399 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
18400 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18401 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
18402 number_of_iterations_cond): Likewise.
18403 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
18404 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
18405 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
18406 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
18407 * tree-vrp.c (extract_range_from_binary_expr_1,
18408 extract_range_from_unary_expr_1): Likewise.
18410 2015-06-20 Marek Polacek <polacek@redhat.com>
18412 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
18414 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
18417 * config/sh/sh.c (prepare_move_operands): Replace subreg
18418 index term with R0 for base and index addressing.
18420 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
18422 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
18424 (movsf_aarch64): Change condition from register_operand to
18425 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
18426 load1. Change type for alternative 7 to store1.
18427 (movdf_aarch64): Likewise.
18429 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
18431 * config/vax/vax.md: Adjust sign/zero extend patterns to
18432 handle SUBREGs in operands[1].
18434 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18436 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
18437 of manually swapping.
18438 (expand_vec_perm_interleave2): Likewise.
18440 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
18442 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
18443 reuse bounds created for abnormal ssa names.
18445 2015-06-19 Jakub Jelinek <jakub@redhat.com>
18447 * config/nvptx/nvptx.md (allocate_stack): Rename to...
18448 (allocate_stack_<mode>): ... this, and add :P on both
18449 match_operand and unspec.
18450 (allocate_stack): New expander.
18452 2015-06-19 Christian Bruel <christian.bruel@st.com>
18456 * config/arm/arm.c (arm_set_current_function): Handle
18457 explicit default options.
18459 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
18461 * config/i386/i386.md (*movsicc_noc_zext): New insn.
18462 (zero-extended cmove with mem peephole2): New pattern.
18463 (cmove with mem peephole2): Merge patterns.
18465 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
18467 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
18469 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
18471 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
18472 * config/mips/mips.md (*madd4<mode>): Ditto.
18473 (*nmadd3<mode>) Ditto.
18474 (*nmadd4<mode>_fastmath): Ditto.
18475 (*nmadd3<mode>_fastmath): Ditto.
18476 (*nmsub4<mode>): Ditto.
18477 (*nmsub3<mode>): Ditto.
18478 (*nmsub4<mode>_fastmath): Ditto.
18479 (*nmsub3<mode>_fastmath): Ditto.
18481 2015-06-18 Michael Matz <matz@suse.de>
18483 PR middle-end/66253
18484 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
18485 grouped strided stores.
18486 (vectorizable_load): Don't use the DR from first_stmt in
18487 the non-SLP grouped strided case.
18489 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18492 * function.c (assign_bounds): Add arguments assign_regs,
18493 assign_special, assign_bt.
18494 (assign_parms): For vararg functions handle bounds in BT
18495 and special slots after incoming vararg bounds.
18497 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18499 PR middle-end/66568
18500 * cfgexpand.c (expand_return): Handle missing bounds.
18501 (expand_gimple_stmt_1): Likewise.
18502 * tree-chkp.c (chkp_expand_zero_bounds): New.
18503 * tree-chkp.h (chkp_expand_zero_bounds): New.
18505 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18507 PR middle-end/66567
18508 * ipa-chkp.c (chkp_maybe_create_clone): Require
18509 functions to be instrumentable.
18510 * tree-chkp.c (chkp_replace_function_pointer): Use
18511 chkp_instrumentable_p instead of attribute check.
18513 2015-06-18 Richard Biener <rguenther@suse.de>
18515 PR tree-optimization/66510
18516 * tree-vect-stmts.c (vectorizable_load): Properly compute the
18517 number of vector loads for SLP permuted loads.
18518 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
18519 check the stride for loop vectorization.
18520 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
18521 vectorization factor.
18522 (vect_analyze_group_access): If the group size is not a power
18523 of two require a epilogue loop.
18524 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
18525 compute and optimizing and alias test pruning after final
18526 vectorization factor computation.
18527 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
18529 (vect_transform_slp_perm_load): Properly compute the original
18530 number of vector load stmts.
18532 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
18534 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
18535 "unlikely character , in @var" warning.
18537 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
18539 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
18540 (ix86_function_arg_advance): Ditto.
18541 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
18543 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18545 * function.h (struct rtl_data): Remove struct and accessor macros.
18546 * emit-rtl.h (struct rtl_data): Relocate to here.
18547 * Makefile.in (GTFILES): Add emit-rtl.h.
18548 * df-core.c: Include emit-rtl.h.
18549 * genattrtab.c: Likewise.
18550 * genconditions.c: Likewise.
18551 * genpreds.c: Likewise.
18552 * genrecog.c: Likewise.
18553 * regcprop.c: Likewise.
18554 * resource.c: Likewise.
18555 * sched-rgn.c: Likewise.
18556 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18557 * config/i386/winnt.c: Likewise.
18559 2015-06-17 Jakub Jelinek <jakub@redhat.com>
18561 PR middle-end/66429
18562 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
18563 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
18564 and has_force_vectorize_loops flags from cfun into
18566 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
18567 if simduid is non-NULL.
18568 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
18569 * passes.def (pass_simduid_cleanup): Add new pass after loop
18571 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
18572 indirection from htab argument's type.
18573 (shrink_simd_arrays): New function.
18574 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
18575 Don't call adjust_simduid_builtins if there are no loops.
18576 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
18577 (pass_simduid_cleanup::execute): New method.
18578 (make_pass_simduid_cleanup): New function.
18580 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
18582 * tree-core.h (tree_target_option): Make opts field a pointer to a
18583 cl_target_option instead of an instance of the struct.
18584 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
18586 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
18587 TARGET_OPTION_NODE.
18588 (copy_node_stat): Allocate and copy struct cl_target_option.
18590 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18592 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
18593 Remove conditional exposure of prototypes.
18594 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
18595 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
18596 definitions in tree.h with functions.
18597 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
18599 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
18601 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
18603 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
18604 (*cmp<mode>_signed): ... this.
18605 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
18606 (*cmp<mode>_unsigned): ... this. Remove %b.
18608 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18610 * coretypes.h: Include input.h and as-a.h.
18611 * rtl.h: Include input.h and as-a.h for generator files.
18612 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
18613 * vec.c: Don't include diagnostic-core.h.
18614 * alias.c: Do not include input.h, line-map.h or is-a.h.
18615 * asan.c: Likewise.
18616 * attribs.c: Likewise.
18617 * auto-inc-dec.c: Likewise.
18618 * auto-profile.c: Likewise.
18619 * bb-reorder.c: Likewise.
18620 * bt-load.c: Likewise.
18621 * builtins.c: Likewise.
18622 * caller-save.c: Likewise.
18623 * calls.c: Likewise.
18624 * ccmp.c: Likewise.
18626 * cfganal.c: Likewise.
18627 * cfgbuild.c: Likewise.
18628 * cfgcleanup.c: Likewise.
18629 * cfgexpand.c: Likewise.
18630 * cfghooks.c: Likewise.
18631 * cfgloop.c: Likewise.
18632 * cfgloop.h: Likewise.
18633 * cfgloopanal.c: Likewise.
18634 * cfgloopmanip.c: Likewise.
18635 * cfgrtl.c: Likewise.
18636 * cgraph.c: Likewise.
18637 * cgraphbuild.c: Likewise.
18638 * cgraphclones.c: Likewise.
18639 * cgraphunit.c: Likewise.
18640 * cilk-common.c: Likewise.
18641 * combine-stack-adj.c: Likewise.
18642 * combine.c: Likewise.
18643 * compare-elim.c: Likewise.
18644 * convert.c: Likewise.
18645 * coverage.c: Likewise.
18646 * cppbuiltin.c: Likewise.
18647 * cprop.c: Likewise.
18649 * cselib.c: Likewise.
18650 * data-streamer-in.c: Likewise.
18651 * data-streamer-out.c: Likewise.
18652 * data-streamer.c: Likewise.
18653 * dbxout.c: Likewise.
18656 * debug.c: Likewise.
18657 * df-core.c: Likewise.
18658 * df-problems.c: Likewise.
18659 * df-scan.c: Likewise.
18662 * diagnostic-core.h: Likewise.
18663 * diagnostic.c: Likewise.
18664 * dojump.c: Likewise.
18665 * dominance.c: Likewise.
18666 * domwalk.c: Likewise.
18667 * double-int.c: Likewise.
18669 * dumpfile.c: Likewise.
18670 * dumpfile.h: Likewise.
18671 * dwarf2asm.c: Likewise.
18672 * dwarf2cfi.c: Likewise.
18673 * dwarf2out.c: Likewise.
18674 * emit-rtl.c: Likewise.
18675 * et-forest.c: Likewise.
18676 * except.c: Likewise.
18677 * explow.c: Likewise.
18678 * expmed.c: Likewise.
18679 * expr.c: Likewise.
18680 * final.c: Likewise.
18681 * fixed-value.c: Likewise.
18682 * fold-const.c: Likewise.
18683 * function.c: Likewise.
18684 * fwprop.c: Likewise.
18685 * gcc-plugin.h: Likewise.
18686 * gcse.c: Likewise.
18687 * generic-match-head.c: Likewise.
18688 * ggc-page.c: Likewise.
18689 * gimple-builder.c: Likewise.
18690 * gimple-expr.c: Likewise.
18691 * gimple-fold.c: Likewise.
18692 * gimple-iterator.c: Likewise.
18693 * gimple-low.c: Likewise.
18694 * gimple-match-head.c: Likewise.
18695 * gimple-pretty-print.c: Likewise.
18696 * gimple-ssa-isolate-paths.c: Likewise.
18697 * gimple-ssa-strength-reduction.c: Likewise.
18698 * gimple-streamer-in.c: Likewise.
18699 * gimple-streamer-out.c: Likewise.
18700 * gimple-streamer.h: Likewise.
18701 * gimple-walk.c: Likewise.
18702 * gimple.c: Likewise.
18703 * gimplify-me.c: Likewise.
18704 * gimplify.c: Likewise.
18705 * godump.c: Likewise.
18706 * graph.c: Likewise.
18707 * graphite-blocking.c: Likewise.
18708 * graphite-dependences.c: Likewise.
18709 * graphite-interchange.c: Likewise.
18710 * graphite-isl-ast-to-gimple.c: Likewise.
18711 * graphite-optimize-isl.c: Likewise.
18712 * graphite-poly.c: Likewise.
18713 * graphite-scop-detection.c: Likewise.
18714 * graphite-sese-to-poly.c: Likewise.
18715 * graphite.c: Likewise.
18716 * haifa-sched.c: Likewise.
18717 * hw-doloop.c: Likewise.
18718 * ifcvt.c: Likewise.
18719 * init-regs.c: Likewise.
18720 * input.c: Likewise.
18721 * internal-fn.c: Likewise.
18722 * ipa-chkp.c: Likewise.
18723 * ipa-comdats.c: Likewise.
18724 * ipa-cp.c: Likewise.
18725 * ipa-devirt.c: Likewise.
18726 * ipa-icf-gimple.c: Likewise.
18727 * ipa-icf.c: Likewise.
18728 * ipa-inline-analysis.c: Likewise.
18729 * ipa-inline-transform.c: Likewise.
18730 * ipa-inline.c: Likewise.
18731 * ipa-polymorphic-call.c: Likewise.
18732 * ipa-profile.c: Likewise.
18733 * ipa-prop.c: Likewise.
18734 * ipa-pure-const.c: Likewise.
18735 * ipa-ref.c: Likewise.
18736 * ipa-reference.c: Likewise.
18737 * ipa-split.c: Likewise.
18738 * ipa-utils.c: Likewise.
18739 * ipa-visibility.c: Likewise.
18741 * ira-build.c: Likewise.
18742 * ira-color.c: Likewise.
18743 * ira-conflicts.c: Likewise.
18744 * ira-costs.c: Likewise.
18745 * ira-emit.c: Likewise.
18746 * ira-lives.c: Likewise.
18748 * jump.c: Likewise.
18749 * langhooks.c: Likewise.
18751 * loop-doloop.c: Likewise.
18752 * loop-init.c: Likewise.
18753 * loop-invariant.c: Likewise.
18754 * loop-iv.c: Likewise.
18755 * loop-unroll.c: Likewise.
18756 * lower-subreg.c: Likewise.
18757 * lra-assigns.c: Likewise.
18758 * lra-coalesce.c: Likewise.
18759 * lra-constraints.c: Likewise.
18760 * lra-eliminations.c: Likewise.
18761 * lra-lives.c: Likewise.
18762 * lra-remat.c: Likewise.
18763 * lra-spills.c: Likewise.
18765 * lto-cgraph.c: Likewise.
18766 * lto-compress.c: Likewise.
18767 * lto-opts.c: Likewise.
18768 * lto-section-in.c: Likewise.
18769 * lto-section-out.c: Likewise.
18770 * lto-streamer-in.c: Likewise.
18771 * lto-streamer-out.c: Likewise.
18772 * lto-streamer.c: Likewise.
18774 * mode-switching.c: Likewise.
18775 * modulo-sched.c: Likewise.
18776 * omega.c: Likewise.
18777 * omp-low.c: Likewise.
18778 * optabs.c: Likewise.
18779 * opts-global.c: Likewise.
18780 * opts.h: Likewise.
18781 * passes.c: Likewise.
18782 * plugin.c: Likewise.
18783 * postreload-gcse.c: Likewise.
18784 * postreload.c: Likewise.
18785 * predict.c: Likewise.
18786 * pretty-print.h: Likewise.
18787 * print-rtl.c: Likewise.
18788 * print-tree.c: Likewise.
18789 * profile.c: Likewise.
18790 * real.c: Likewise.
18791 * realmpfr.c: Likewise.
18792 * recog.c: Likewise.
18794 * reg-stack.c: Likewise.
18795 * regcprop.c: Likewise.
18796 * reginfo.c: Likewise.
18797 * regrename.c: Likewise.
18798 * regstat.c: Likewise.
18799 * reload.c: Likewise.
18800 * reload1.c: Likewise.
18801 * reorg.c: Likewise.
18802 * resource.c: Likewise.
18803 * rtl-chkp.c: Likewise.
18804 * rtl-error.c: Likewise.
18805 * rtlanal.c: Likewise.
18806 * rtlhooks.c: Likewise.
18807 * sanopt.c: Likewise.
18808 * sched-deps.c: Likewise.
18809 * sched-ebb.c: Likewise.
18810 * sched-rgn.c: Likewise.
18811 * sched-vis.c: Likewise.
18812 * sdbout.c: Likewise.
18813 * sel-sched-dump.c: Likewise.
18814 * sel-sched-ir.c: Likewise.
18815 * sel-sched.c: Likewise.
18816 * sese.c: Likewise.
18817 * shrink-wrap.c: Likewise.
18818 * simplify-rtx.c: Likewise.
18819 * stack-ptr-mod.c: Likewise.
18820 * statistics.c: Likewise.
18821 * stmt.c: Likewise.
18822 * stor-layout.c: Likewise.
18823 * store-motion.c: Likewise.
18824 * streamer-hooks.c: Likewise.
18825 * stringpool.c: Likewise.
18826 * symtab.c: Likewise.
18827 * target-globals.c: Likewise.
18828 * targhooks.c: Likewise.
18829 * toplev.c: Likewise.
18830 * tracer.c: Likewise.
18831 * trans-mem.c: Likewise.
18832 * tree-affine.c: Likewise.
18833 * tree-browser.c: Likewise.
18834 * tree-call-cdce.c: Likewise.
18835 * tree-cfg.c: Likewise.
18836 * tree-cfgcleanup.c: Likewise.
18837 * tree-chkp-opt.c: Likewise.
18838 * tree-chkp.c: Likewise.
18839 * tree-chrec.c: Likewise.
18840 * tree-complex.c: Likewise.
18841 * tree-data-ref.c: Likewise.
18842 * tree-dfa.c: Likewise.
18843 * tree-diagnostic.c: Likewise.
18844 * tree-dump.c: Likewise.
18845 * tree-eh.c: Likewise.
18846 * tree-emutls.c: Likewise.
18847 * tree-if-conv.c: Likewise.
18848 * tree-inline.c: Likewise.
18849 * tree-into-ssa.c: Likewise.
18850 * tree-iterator.c: Likewise.
18851 * tree-loop-distribution.c: Likewise.
18852 * tree-nested.c: Likewise.
18853 * tree-nrv.c: Likewise.
18854 * tree-object-size.c: Likewise.
18855 * tree-outof-ssa.c: Likewise.
18856 * tree-parloops.c: Likewise.
18857 * tree-phinodes.c: Likewise.
18858 * tree-predcom.c: Likewise.
18859 * tree-pretty-print.c: Likewise.
18860 * tree-profile.c: Likewise.
18861 * tree-scalar-evolution.c: Likewise.
18862 * tree-sra.c: Likewise.
18863 * tree-ssa-address.c: Likewise.
18864 * tree-ssa-alias.c: Likewise.
18865 * tree-ssa-ccp.c: Likewise.
18866 * tree-ssa-coalesce.c: Likewise.
18867 * tree-ssa-copy.c: Likewise.
18868 * tree-ssa-copyrename.c: Likewise.
18869 * tree-ssa-dce.c: Likewise.
18870 * tree-ssa-dom.c: Likewise.
18871 * tree-ssa-dse.c: Likewise.
18872 * tree-ssa-forwprop.c: Likewise.
18873 * tree-ssa-ifcombine.c: Likewise.
18874 * tree-ssa-live.c: Likewise.
18875 * tree-ssa-loop-ch.c: Likewise.
18876 * tree-ssa-loop-im.c: Likewise.
18877 * tree-ssa-loop-ivcanon.c: Likewise.
18878 * tree-ssa-loop-ivopts.c: Likewise.
18879 * tree-ssa-loop-manip.c: Likewise.
18880 * tree-ssa-loop-niter.c: Likewise.
18881 * tree-ssa-loop-prefetch.c: Likewise.
18882 * tree-ssa-loop-unswitch.c: Likewise.
18883 * tree-ssa-loop.c: Likewise.
18884 * tree-ssa-math-opts.c: Likewise.
18885 * tree-ssa-operands.c: Likewise.
18886 * tree-ssa-phiopt.c: Likewise.
18887 * tree-ssa-phiprop.c: Likewise.
18888 * tree-ssa-pre.c: Likewise.
18889 * tree-ssa-propagate.c: Likewise.
18890 * tree-ssa-reassoc.c: Likewise.
18891 * tree-ssa-sccvn.c: Likewise.
18892 * tree-ssa-scopedtables.c: Likewise.
18893 * tree-ssa-sink.c: Likewise.
18894 * tree-ssa-strlen.c: Likewise.
18895 * tree-ssa-structalias.c: Likewise.
18896 * tree-ssa-tail-merge.c: Likewise.
18897 * tree-ssa-ter.c: Likewise.
18898 * tree-ssa-threadedge.c: Likewise.
18899 * tree-ssa-threadupdate.c: Likewise.
18900 * tree-ssa-uncprop.c: Likewise.
18901 * tree-ssa-uninit.c: Likewise.
18902 * tree-ssa.c: Likewise.
18903 * tree-ssanames.c: Likewise.
18904 * tree-stdarg.c: Likewise.
18905 * tree-streamer-in.c: Likewise.
18906 * tree-streamer-out.c: Likewise.
18907 * tree-streamer.c: Likewise.
18908 * tree-switch-conversion.c: Likewise.
18909 * tree-tailcall.c: Likewise.
18910 * tree-vect-data-refs.c: Likewise.
18911 * tree-vect-generic.c: Likewise.
18912 * tree-vect-loop-manip.c: Likewise.
18913 * tree-vect-loop.c: Likewise.
18914 * tree-vect-patterns.c: Likewise.
18915 * tree-vect-slp.c: Likewise.
18916 * tree-vect-stmts.c: Likewise.
18917 * tree-vectorizer.c: Likewise.
18918 * tree-vrp.c: Likewise.
18919 * tree.c: Likewise.
18920 * tsan.c: Likewise.
18921 * ubsan.c: Likewise.
18922 * valtrack.c: Likewise.
18923 * value-prof.c: Likewise.
18924 * var-tracking.c: Likewise.
18925 * varasm.c: Likewise.
18926 * varpool.c: Likewise.
18927 * vmsdbgout.c: Likewise.
18928 * vtable-verify.c: Likewise.
18930 * wide-int.cc: Likewise.
18931 * xcoffout.c: Likewise.
18932 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
18933 * common/common-targhooks.c: Likewise.
18934 * config/aarch64/aarch64-builtins.c: Likewise.
18935 * config/aarch64/aarch64.c: Likewise.
18936 * config/alpha/alpha.c: Likewise.
18937 * config/arc/arc.c: Likewise.
18938 * config/arm/aarch-common.c: Likewise.
18939 * config/arm/arm-builtins.c: Likewise.
18940 * config/arm/arm-c.c: Likewise.
18941 * config/arm/arm.c: Likewise.
18942 * config/avr/avr-c.c: Likewise.
18943 * config/avr/avr-log.c: Likewise.
18944 * config/avr/avr.c: Likewise.
18945 * config/bfin/bfin.c: Likewise.
18946 * config/c6x/c6x.c: Likewise.
18947 * config/cr16/cr16.c: Likewise.
18948 * config/cris/cris.c: Likewise.
18949 * config/darwin-c.c: Likewise.
18950 * config/darwin.c: Likewise.
18951 * config/default-c.c: Likewise.
18952 * config/epiphany/epiphany.c: Likewise.
18953 * config/epiphany/mode-switch-use.c: Likewise.
18954 * config/epiphany/resolve-sw-modes.c: Likewise.
18955 * config/fr30/fr30.c: Likewise.
18956 * config/frv/frv.c: Likewise.
18957 * config/ft32/ft32.c: Likewise.
18958 * config/glibc-c.c: Likewise.
18959 * config/h8300/h8300.c: Likewise.
18960 * config/i386/i386-c.c: Likewise.
18961 * config/i386/i386.c: Likewise.
18962 * config/i386/msformat-c.c: Likewise.
18963 * config/i386/winnt-cxx.c: Likewise.
18964 * config/i386/winnt-stubs.c: Likewise.
18965 * config/i386/winnt.c: Likewise.
18966 * config/ia64/ia64-c.c: Likewise.
18967 * config/ia64/ia64.c: Likewise.
18968 * config/iq2000/iq2000.c: Likewise.
18969 * config/lm32/lm32.c: Likewise.
18970 * config/m32c/m32c-pragma.c: Likewise.
18971 * config/m32c/m32c.c: Likewise.
18972 * config/m32r/m32r.c: Likewise.
18973 * config/m68k/m68k.c: Likewise.
18974 * config/mcore/mcore.c: Likewise.
18975 * config/mep/mep-pragma.c: Likewise.
18976 * config/mep/mep.c: Likewise.
18977 * config/microblaze/microblaze-c.c: Likewise.
18978 * config/microblaze/microblaze.c: Likewise.
18979 * config/mips/mips.c: Likewise.
18980 * config/mmix/mmix.c: Likewise.
18981 * config/mn10300/mn10300.c: Likewise.
18982 * config/moxie/moxie.c: Likewise.
18983 * config/msp430/msp430-c.c: Likewise.
18984 * config/msp430/msp430.c: Likewise.
18985 * config/nds32/nds32-cost.c: Likewise.
18986 * config/nds32/nds32-fp-as-gp.c: Likewise.
18987 * config/nds32/nds32-intrinsic.c: Likewise.
18988 * config/nds32/nds32-isr.c: Likewise.
18989 * config/nds32/nds32-md-auxiliary.c: Likewise.
18990 * config/nds32/nds32-memory-manipulation.c: Likewise.
18991 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18992 * config/nds32/nds32-predicates.c: Likewise.
18993 * config/nds32/nds32.c: Likewise.
18994 * config/nios2/nios2.c: Likewise.
18995 * config/nvptx/nvptx.c: Likewise.
18996 * config/pa/pa.c: Likewise.
18997 * config/pdp11/pdp11.c: Likewise.
18998 * config/rl78/rl78-c.c: Likewise.
18999 * config/rl78/rl78.c: Likewise.
19000 * config/rs6000/rs6000-c.c: Likewise.
19001 * config/rs6000/rs6000.c: Likewise.
19002 * config/rx/rx.c: Likewise.
19003 * config/s390/s390-c.c: Likewise.
19004 * config/s390/s390.c: Likewise.
19005 * config/sh/sh-c.c: Likewise.
19006 * config/sh/sh-mem.cc: Likewise.
19007 * config/sh/sh.c: Likewise.
19008 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19009 * config/sh/sh_treg_combine.cc: Likewise.
19010 * config/sol2-c.c: Likewise.
19011 * config/sol2-cxx.c: Likewise.
19012 * config/sol2-stubs.c: Likewise.
19013 * config/sol2.c: Likewise.
19014 * config/sparc/sparc-c.c: Likewise.
19015 * config/sparc/sparc.c: Likewise.
19016 * config/spu/spu-c.c: Likewise.
19017 * config/spu/spu.c: Likewise.
19018 * config/stormy16/stormy16.c: Likewise.
19019 * config/tilegx/mul-tables.c: Likewise.
19020 * config/tilegx/tilegx-c.c: Likewise.
19021 * config/tilegx/tilegx.c: Likewise.
19022 * config/tilepro/mul-tables.c: Likewise.
19023 * config/tilepro/tilepro-c.c: Likewise.
19024 * config/tilepro/tilepro.c: Likewise.
19025 * config/v850/v850-c.c: Likewise.
19026 * config/v850/v850.c: Likewise.
19027 * config/vax/vax.c: Likewise.
19028 * config/visium/visium.c: Likewise.
19029 * config/vms/vms-c.c: Likewise.
19030 * config/vms/vms.c: Likewise.
19031 * config/vxworks.c: Likewise.
19032 * config/winnt-c.c: Likewise.
19033 * config/xtensa/xtensa.c: Likewise.
19035 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
19037 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
19039 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
19041 2015-06-17 Richard Biener <rguenther@suse.de>
19043 PR tree-optimization/66251
19044 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
19045 stmts for SLP strided stores.
19048 2015-05-22 Richard Biener <rguenther@suse.de>
19050 PR tree-optimization/66251
19051 * tree-vect-stmts.c (vectorizable_conversion): Properly
19052 set STMT_VINFO_VEC_STMT even for the SLP case.
19054 2015-05-26 Michael Matz <matz@suse.de>
19056 PR middle-end/66251
19057 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
19058 STMT_VINFO_VEC_STMT, also with SLP.
19060 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
19063 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
19064 (*avx_addsubv4df3_1s): Ditto.
19065 (*sse3_addsubv2df3_1): Ditto.
19066 (*sse3_addsubv2df3_1s): Ditto.
19067 (*avx_addsubv8sf3_1): Ditto.
19068 (*avx_addsubv8sf3_1s): Ditto.
19069 (*sse3_addsubv4sf3_1): Ditto.
19070 (*sse3_addsubv4sf3_1s): Ditto.
19072 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
19074 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
19075 (SYSROOT_SUFFIX_SPEC): Update.
19076 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
19077 (STARTFILE_PREFIX_SPEC): Update.
19078 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
19079 (MULTILIB_REQUIRED): New.
19080 (MULTILIB_OSDIRNAMES): New.
19081 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
19082 (MULTILIB_REQUIRED): New.
19083 (MULTILIB_OSDIRNAMES): New.
19085 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
19087 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
19088 * config/aarch64/aarch64-options-extensions.def: Update "fP",
19089 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
19090 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
19091 (AARCH64_FL_PAN): New.
19092 (AARCH64_FL_LOR): New.
19093 (AARCH64_FL_RDMA): New.
19094 (AARCH64_FL_FOR_ARCH8_1): New.
19095 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
19096 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
19098 2015-06-16 Martin Liska <mliska@suse.cz>
19100 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
19101 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
19104 2015-06-16 Richard Biener <rguenther@suse.de>
19106 * tree-vect-stmts.c (vectorizable_store): Adjust.
19107 (vectorizable_load): Likewise.
19108 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19110 (vect_create_data_ref_ptr): Likewise.
19111 (bump_vector_ptr): Adjust.
19113 2015-06-16 Richard Biener <rguenther@suse.de>
19115 * tree-vect-stmts.c (vectorizable_load): Properly start loads
19116 with the first element if this is grouped loads.
19118 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
19120 * config/arm/arm-protos.h (struct tune_params): Rename
19121 log_op_non_sc to log_op_non_short_circuit, and rename enum
19122 values to expand SC to SHORT_CIRCUIT.
19123 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
19124 to LOG_OP_NON_SHORT_CIRCUIT.
19125 (arm_fastmul_tune):Likewise
19126 (arm_strongarm_tune): Likewise.
19127 (arm_xscale_tune): Likewise.
19128 (arm_9e_tune): Likewise.
19129 (arm_marvell_pj4_tune): Likewise.
19130 (arm_v6t2_tune): Likewise.
19131 (arm_cortex_tune): Likewise.
19132 (arm_cortex_a8_tune): Likewise.
19133 (arm_cortex_a7_tune): Likewise.
19134 (arm_cortex_a15_tune): Likewise.
19135 (arm_cortex_a53_tune): Likewise.
19136 (arm_cortex_a57_tune): Likewise.
19137 (arm_xgene1_tune): Likewise.
19138 (arm_cortex_a5_tune): Likewise.
19139 (arm_cortex_a9_tune): Likewise.
19140 (arm_cortex_a12_tune): Likewise.
19141 (arm_v7m_tune): Likewise.
19142 (arm_cortex_m7_tune): Likewise.
19143 (arm_v6m_tune): Likewise.
19144 (arm_fa726te_tune): Likewise.
19146 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
19148 * altivec.md: Delete UNSPEC_VMLADDUHM.
19149 (mulv4si3_p8): New pattern.
19150 (mulv4si3): Use it for POWER8.
19151 (mulv8hi3): Use vmladduhm with zero addend.
19152 (altivec_vmladduhm): Descriptive RTL.
19154 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
19156 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
19157 to use neon_move instead of mov_imm.
19158 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
19159 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
19161 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
19162 aarch64_float_const_zero_rtx_p check before TFmode check.
19163 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
19165 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
19166 code and attributes to match. Change condition from register_operand
19167 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
19168 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
19171 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
19174 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
19175 there is no parent.
19177 2015-06-14 Shiva Chen <shiva0217@gmail.com>
19179 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
19180 HOST_WIDE_INT parameter.
19182 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
19185 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
19186 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
19188 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
19190 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
19192 * rtl.h (classify_insn): Declare.
19193 * emit-rtl.c (classify_insn): Move to...
19194 * rtl.c: ...here and add generator support.
19195 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
19196 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
19197 * genemit.c (gen_emit_seq): New function.
19198 (gen_expand, gen_split): Use it.
19200 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
19202 * tree.c (make_vector_stat): Fix comment to state that the
19203 function returns a VECTOR_CST.
19205 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
19207 * gensupport.h (add_implicit_parallel): Declare.
19208 * genrecog.c (add_implicit_parallel): Move to...
19209 * gensupport.c (add_implicit_parallel): ...here.
19210 (process_one_cond_exec): Use it.
19211 * genemit.c (gen_insn): Likewise.
19213 2015-06-13 Iain Sandoe <iain@codesourcery.com>
19216 * passes.c (rest_of_decl_compilation): Do not register globals for
19217 early debug if they are declared in built-ins.
19219 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
19221 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
19223 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19225 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
19227 (noce_try_cmove_arith): Likewise.
19228 (noce_get_alt_condition): Likewise.
19230 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19232 * common/config/i386/i386-common.c
19233 (OPTION_MASK_ISA_MWAITX_SET): New.
19234 (ix86_handle_option): Handle mwaitx.
19235 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
19236 (x86_64-*-*): Likewise.
19237 * config/i386/mwaitxintrin.h: New header.
19238 * config/i386/cpuid.h (bit_MWAITX): Define.
19239 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19241 * config/i386/i386.opt (mwaitx): New.
19242 * config/i386/i386-builtin-types.def
19243 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
19244 * config/i386/i386-c.c: Define __MWAITX__ if needed.
19245 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
19247 (ix86_option_override_internal): Handle new option.
19248 (processor_alias_table): Added PTA_MWAITX.
19249 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
19250 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
19251 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
19252 IX86_BUILTIN_MONITORX built-ins.
19253 * config/i386/i386.h (TARGET_MWAITX): New.
19254 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
19256 (mwaitx): New pattern.
19257 (monitorx_<mode>): New pattern.
19258 * config/i386/x86intrin.h: Include mwaitxintrin.h.
19259 * doc/extend.texi: Document monitorx and mwaitx builtins.
19260 * doc/invoke.texi: Document -mmwaitx option.
19262 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
19264 * emit-rtl.c (need_atomic_barrier_p): Mask model with
19265 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
19267 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
19269 * dbxout.c (xcoff_debug_hooks): Provide a function for
19270 register_main_translation_unit hook.
19272 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
19274 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
19275 variants cases from switch.
19276 (rs6000_post_atomic_barrier): Same.
19277 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
19278 (rs6000_expand_atomic_exchange): Same.
19279 (rs6000_expand_atomic_op): Same.
19280 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
19281 SYNC variants cases from switch.
19282 (atomic_load): Same.
19283 (atomic_store): Same.
19285 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
19287 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
19288 CONST_INT for goto.
19290 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
19293 * dwarf2out.c (check_die): Check for common duplicate attributes.
19294 (add_location_or_const_value_attribute): Do not add duplicate
19296 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
19298 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
19299 (gen_type_die_with_usage): Call check_die.
19300 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
19302 2015-06-11 Jason Merrill <jason@redhat.com>
19304 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
19307 2015-06-11 Marek Polacek <polacek@redhat.com>
19309 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
19311 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
19314 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
19315 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
19316 (*addx_extend_sp32): Fix pasto.
19317 (*subx_extend): Rename into...
19318 (*subx_extend_sp32): ...this.
19319 (*adddi3_extend_sp32): Add earlyclobber.
19320 (*subdi3_insn_sp32): Likewise.
19321 (*subdi3_extend_sp32): Likewise.
19322 (*and_not_di_sp32): Likewise.
19323 (*or_not_di_sp32): Likewise.
19324 (*xor_not_di_sp32): Likewise.
19325 (*negdi2_sp32): Likewise.
19326 (*one_cmpldi2_sp32): Likewise.
19328 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
19330 * debug.h (struct gcc_debug_hooks): Add a
19331 register_main_translation_unit hook.
19332 * debug.c (do_nothing_debug_hooks): Provide a function for this
19334 * dbxout.c (dbx_debug_hooks): Likewise.
19335 * sdbout.c (sdb_debug_hooks): Likewise.
19336 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19337 * dwarf2out.c (main_translation_unit): New global variable.
19338 (dwarf2out_register_main_translation_unit): New function
19339 implementing the new hook.
19340 (dwarf2_debug_hooks): Assign
19341 dwarf2out_register_main_translation_unit to this new hook.
19342 (dwarf2out_init): Associate any main translation unit to
19345 2015-06-11 Marek Polacek <polacek@redhat.com>
19347 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
19349 2015-06-11 Marek Polacek <polacek@redhat.com>
19351 * match.pd: Use single_use throughout.
19353 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19355 * config/arm/arm.c (arm_option_params_internal): When optimising
19356 for speed set max_insns_skipped when arm_restrict_it.
19358 2015-06-11 Christian Bruel <christian.bruel@st.com>
19361 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
19363 (arm_cpu_builtins): New function.
19364 (arm_pragma_target_parse): Call arm_cpu_builtins.
19365 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
19366 (arm_register_target_pragmas): Likewise.
19367 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
19368 Call arm_register_target_pragmas.
19369 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
19370 (arm_pragma_target_parse): Likewise.
19372 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
19374 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
19375 of the second operand.
19377 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
19380 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
19381 to prepare mask operand for AVX512 modes.
19383 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
19386 * doc/md.texi (Machine Constraints): Document that on the PowerPC
19387 if you use a constraint that targets a VSX register, you must use
19388 %x<n> in the template.
19390 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
19392 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
19393 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
19394 (define_insn "trap"): New definition.
19396 2015-06-10 Richard Biener <rguenther@suse.de>
19398 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
19400 (vect_supported_load_permutation_p): ... here. Handle
19401 supportable permutations in reductions.
19402 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
19403 for vectorizing strided group loads.
19405 2015-06-10 Jakub Jelinek <jakub@redhat.com>
19408 * config/i386/i386.c (ix86_split_long_move): For collisions
19409 involving direct tls segment refs, move the UNSPEC_TP possibly
19410 wrapped in ZERO_EXTEND out of the address for lea, to each of
19413 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19415 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
19416 dmb sy. Adjust tabs.
19418 2015-06-10 Tom de Vries <tom@codesourcery.com>
19420 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
19422 2015-06-10 Martin Liska <mliska@suse.cz>
19425 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
19426 all enum values in mem_alloc_origin.
19427 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
19429 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
19430 * bitmap.c (bitmap_register): Likewise.
19431 (dump_bitmap_statistics): Likewise.
19432 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
19433 (ggc_record_overhead): Likewise.
19434 * hash-map.h: Likewise.
19435 * hash-set.h: Likewise.
19436 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
19437 * hash-table.h: Likewise.
19438 * vec.c (vec_prefix::register_overhead): Likewise.
19439 (vec_prefix::release_overhead): Likewise.
19440 (dump_vec_loc_statistics): Likewise.
19442 2015-06-09 Christian Bruel <christian.bruel@st.com>
19445 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
19446 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
19447 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
19448 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
19449 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
19450 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
19451 (arm_valid_target_attribute_p): Likewise.
19452 (arm_set_current_function, arm_can_inline_p): Likewise.
19453 (arm_valid_target_attribute_rec): Likewise.
19454 (arm_previous_fndecl): New variable.
19455 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19456 (TARGET_CAN_INLINE_P): Define.
19457 (arm_asm_trampoline_template): Emit mode.
19458 (arm_file_start): Don't set unified syntax.
19459 (arm_declare_function_name): Set unified syntax and mode.
19460 (arm_option_override): Init target_option_default_node.
19461 and target_option_current_node.
19462 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
19463 (*call_symbol): Likewise.
19464 * doc/extend.texi: Document ARM/Thumb target attribute.
19465 * doc/invoke.texi: Likewise.
19467 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19470 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19471 PR rtl-optimization/64164
19472 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19473 * tree-ssa-copyrename.c: Removed.
19474 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19475 -ftree-coalesce-vars.
19476 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19477 * common.opt (ftree-copyrename): Ignore.
19478 (ftree-coalesce-inlined-vars): Likewise.
19479 * doc/invoke.texi: Remove the ignored options above.
19480 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19481 * tree-ssa-coalesce.h: ... here.
19482 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19483 headers required by it.
19484 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19485 across variables when flag_tree_coalesce_vars. Check register
19486 use and promoted modes to allow coalescing. Moved to
19487 tree-ssa-coalesce.c.
19488 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19489 with its member functions to tree-ssa-coalesce.c.
19490 (var_map_base_init): Likewise. Renamed to
19491 compute_samebase_partition_bases.
19492 (partition_view_normal): Drop want_bases parameter.
19493 (partition_view_bitmap): Likewise.
19494 * tree-ssa-live.h: Adjust declarations.
19495 * tree-ssa-coalesce.c: Include explow.h.
19496 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19497 default defs at the entry point.
19498 (dump_part_var_map): New.
19499 (compute_optimized_partition_bases): New, called by...
19500 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19501 of compute_samebase_partition_bases. Adjust.
19502 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19503 * cfgexpand.c (leader_merge): New.
19504 (get_rtl_for_parm_ssa_default_def): New.
19505 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19506 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19507 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19508 redundant MEM attr setting.
19509 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19511 (expand_one_stack_var): ... this. New wrapper to check and
19512 skip already expanded SSA partitions.
19513 (record_alignment_for_reg_var): New, factored out of...
19514 (expand_one_var): ... this.
19515 (expand_one_ssa_partition): New.
19516 (adjust_one_expanded_partition_var): New.
19517 (expand_one_register_var): Check and skip already expanded SSA
19519 (expand_used_vars): Don't create DECLs for anonymous SSA
19520 names. Expand all SSA partitions, then adjust all SSA names.
19521 (pass::execute): Replace the loops that set
19522 SA.partition_to_pseudo from partition leaders and cleared
19523 DECL_RTL for multi-location variables, and that which used to
19524 rename vars and set attrs, with one that clears DECL_RTL and
19525 checks that PARMs and RESULTs default_defs match DECL_RTL.
19526 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19527 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19528 * explow.c (promote_ssa_mode): New.
19529 * explow.h (promote_ssa_mode): Declare.
19530 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19531 * function.c: Include cfgexpand.h.
19532 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19533 (use_register_for_parm_decl): Wrapper for the above to
19534 special-case the result_ptr.
19535 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19536 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19537 multiple locations.
19538 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19539 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19540 (assign_parm_setup_block): Prefer SSA-assigned location.
19541 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19542 if stack_parm is NULL.
19543 (assign_parm_setup_stack): Prefer SSA-assigned location.
19544 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19545 rtl before testing for pointer bounds. Special-case result_ptr.
19546 (expand_function_start): Maybe reset DECL_RTL of result.
19547 Prefer SSA-assigned location for result and static chain.
19548 Factor out DECL_RESULT and SET_DECL_RTL.
19549 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19550 anonymous SSA names. Use promote_ssa_mode.
19551 (get_temp_reg): Likewise.
19552 (remove_ssa_form): Adjust.
19553 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19554 and get its reg_usage for reg invalidation.
19555 (compute_bb_dataflow): Pass it insn.
19556 (emit_notes_in_bb): Likewise.
19557 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19558 fail assert on conversion between unsigned types.
19560 2015-06-09 Tom de Vries <tom@codesourcery.com>
19562 PR tree-optimization/65460
19563 * omp-low.c (expand_omp_target): Set parallelized_function on
19564 cgraph_node for child_fn.
19566 2015-06-09 Tom de Vries <tom@codesourcery.com>
19568 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
19569 parallelized_function before add_new_function.
19571 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
19573 * gcc-plugin.h: Move decls to plugin.h and include it.
19574 * plugin.h: Relocate decls from gcc-plugin.h
19575 * ggc-page.c: Include required header files.
19576 * passes.c: Likewise.
19577 * cgraphunit.c: Likewise.
19579 2015-06-09 Tom de Vries <tom@codesourcery.com>
19581 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
19583 2015-06-09 Jason Merrill <jason@redhat.com>
19586 * toplev.c (check_global_declaration): Don't warn about a clone.
19588 2015-06-09 Marek Polacek <polacek@redhat.com>
19590 PR tree-optimization/66299
19591 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
19592 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
19595 2015-06-09 Richard Biener <rguenther@suse.de>
19597 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
19598 (vect_analyze_slp_instance): Instead do not falsely drop
19601 2015-06-09 Richard Biener <rguenther@suse.de>
19603 PR middle-end/66423
19604 * match.pd: Handle A % (unsigned)(1 << B).
19606 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
19608 * varasm.c (output_object_block_htab): Remove.
19609 (output_object_block_compare): New.
19610 (output_object_blocks): Sort named object_blocks before outputting
19613 2015-06-09 Richard Biener <rguenther@suse.de>
19615 PR tree-optimization/66419
19616 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
19617 consider GROUP_GAP when detecting a perfect subchain.
19619 2015-06-09 Nick Clifton <nickc@redhat.com>
19621 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
19622 place read only data in the .frodata section.
19624 2015-06-09 Shiva Chen <shiva0217@gmail.com>
19626 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
19627 (atomic_store<mode>): Likewise.
19629 2015-06-09 Richard Biener <rguenther@suse.de>
19631 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
19633 2015-06-09 Richard Biener <rguenther@suse.de>
19635 PR middle-end/66413
19636 * tree-inline.c (insert_init_debug_bind): Unshare value.
19638 2015-06-09 Richard Biener <rguenther@suse.de>
19640 PR tree-optimization/66396
19641 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
19642 Rename virtual operands.
19644 2015-06-09 Tom de Vries <tom@codesourcery.com>
19646 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
19647 always return false.
19649 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19651 PR rtl-optimization/64164
19652 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19653 * tree-ssa-copyrename.c: Removed.
19654 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19655 -ftree-coalesce-vars.
19656 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19657 * common.opt (ftree-copyrename): Ignore.
19658 (ftree-coalesce-inlined-vars): Likewise.
19659 * doc/invoke.texi: Remove the ignored options above.
19660 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19661 * tree-ssa-coalesce.h: ... here.
19662 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19663 headers required by it.
19664 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19665 across variables when flag_tree_coalesce_vars. Check register
19666 use and promoted modes to allow coalescing. Moved to
19667 tree-ssa-coalesce.c.
19668 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19669 with its member functions to tree-ssa-coalesce.c.
19670 (var_map_base_init): Likewise. Renamed to
19671 compute_samebase_partition_bases.
19672 (partition_view_normal): Drop want_bases parameter.
19673 (partition_view_bitmap): Likewise.
19674 * tree-ssa-live.h: Adjust declarations.
19675 * tree-ssa-coalesce.c: Include explow.h.
19676 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19677 default defs at the entry point.
19678 (dump_part_var_map): New.
19679 (compute_optimized_partition_bases): New, called by...
19680 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19681 of compute_samebase_partition_bases. Adjust.
19682 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19683 * cfgexpand.c (leader_merge): New.
19684 (get_rtl_for_parm_ssa_default_def): New.
19685 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19686 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19687 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19688 redundant MEM attr setting.
19689 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19691 (expand_one_stack_var): ... this. New wrapper to check and
19692 skip already expanded SSA partitions.
19693 (record_alignment_for_reg_var): New, factored out of...
19694 (expand_one_var): ... this.
19695 (expand_one_ssa_partition): New.
19696 (adjust_one_expanded_partition_var): New.
19697 (expand_one_register_var): Check and skip already expanded SSA
19699 (expand_used_vars): Don't create DECLs for anonymous SSA
19700 names. Expand all SSA partitions, then adjust all SSA names.
19701 (pass::execute): Replace the loops that set
19702 SA.partition_to_pseudo from partition leaders and cleared
19703 DECL_RTL for multi-location variables, and that which used to
19704 rename vars and set attrs, with one that clears DECL_RTL and
19705 checks that PARMs and RESULTs default_defs match DECL_RTL.
19706 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19707 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19708 * explow.c (promote_ssa_mode): New.
19709 * explow.h (promote_ssa_mode): Declare.
19710 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19711 * function.c: Include cfgexpand.h.
19712 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19713 (use_register_for_parm_decl): Wrapper for the above to
19714 special-case the result_ptr.
19715 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19716 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19717 multiple locations.
19718 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19719 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19720 (assign_parm_setup_block): Prefer SSA-assigned location.
19721 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19722 if stack_parm is NULL.
19723 (assign_parm_setup_stack): Prefer SSA-assigned location.
19724 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19725 rtl before testing for pointer bounds. Special-case result_ptr.
19726 (expand_function_start): Maybe reset DECL_RTL of result.
19727 Prefer SSA-assigned location for result and static chain.
19728 Factor out DECL_RESULT and SET_DECL_RTL.
19729 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19730 anonymous SSA names. Use promote_ssa_mode.
19731 (get_temp_reg): Likewise.
19732 (remove_ssa_form): Adjust.
19733 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19734 and get its reg_usage for reg invalidation.
19735 (compute_bb_dataflow): Pass it insn.
19736 (emit_notes_in_bb): Likewise.
19737 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19738 fail assert on conversion between unsigned types.
19740 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19743 * tree-inline.c (reset_debug_binding): New.
19744 (reset_debug_bindings): Likewise.
19745 (expand_call_inline): Call it.
19747 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19749 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
19752 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19754 * lto-streamer-out.c (lto_output_location): Stream
19755 reserved locations correctly.
19756 * lto-streamer-in.c (lto_output_location): Likewise.
19758 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
19760 * coretypes.h: Include hash-table.h and hash-set.h for host files.
19761 * ggc.h: Don't include statistics.h>
19762 * hash-map.h: Remove all includes.
19763 * hash-set.h: Likewise.
19764 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
19765 the include list. Remove <new>.
19766 * inchash.h: Remove all includes.
19767 * mem-stats.h: Likewise.
19768 * vec.h: No special processing for generators or ggc.
19769 * alias.c : Adjust include files.
19770 * alloc-pool.c : Likewise.
19771 * alloc-pool.h : Likewise.
19772 * asan.c : Likewise.
19773 * attribs.c : Likewise.
19774 * auto-inc-dec.c : Likewise.
19775 * auto-profile.c : Likewise.
19776 * bb-reorder.c : Likewise.
19777 * bitmap.c : Likewise.
19778 * bitmap.h : Likewise.
19779 * bt-load.c : Likewise.
19780 * builtins.c : Likewise.
19781 * caller-save.c : Likewise.
19782 * calls.c : Likewise.
19783 * ccmp.c : Likewise.
19784 * cfg.c : Likewise.
19785 * cfganal.c : Likewise.
19786 * cfgbuild.c : Likewise.
19787 * cfgcleanup.c : Likewise.
19788 * cfgexpand.c : Likewise.
19789 * cfghooks.c : Likewise.
19790 * cfgloop.c : Likewise.
19791 * cfgloop.h : Likewise.
19792 * cfgloopanal.c : Likewise.
19793 * cfgloopmanip.c : Likewise.
19794 * cfgrtl.c : Likewise.
19795 * cgraph.c : Likewise.
19796 * cgraphbuild.c : Likewise.
19797 * cgraphclones.c : Likewise.
19798 * cgraphunit.c : Likewise.
19799 * cilk-common.c : Likewise.
19800 * combine-stack-adj.c : Likewise.
19801 * combine.c : Likewise.
19802 * compare-elim.c : Likewise.
19803 * context.c : Likewise.
19804 * convert.c : Likewise.
19805 * coverage.c : Likewise.
19806 * cppbuiltin.c : Likewise.
19807 * cprop.c : Likewise.
19808 * cse.c : Likewise.
19809 * cselib.c : Likewise.
19810 * data-streamer-in.c : Likewise.
19811 * data-streamer-out.c : Likewise.
19812 * data-streamer.c : Likewise.
19813 * data-streamer.h : Likewise.
19814 * dbxout.c : Likewise.
19815 * dce.c : Likewise.
19816 * ddg.c : Likewise.
19817 * debug.c : Likewise.
19818 * df-core.c : Likewise.
19819 * df-problems.c : Likewise.
19820 * df-scan.c : Likewise.
19822 * dfp.c : Likewise.
19823 * dojump.c : Likewise.
19824 * dominance.c : Likewise.
19825 * domwalk.c : Likewise.
19826 * double-int.c : Likewise.
19827 * dse.c : Likewise.
19828 * dumpfile.c : Likewise.
19829 * dwarf2asm.c : Likewise.
19830 * dwarf2cfi.c : Likewise.
19831 * dwarf2out.c : Likewise.
19832 * emit-rtl.c : Likewise.
19833 * et-forest.c : Likewise.
19834 * except.c : Likewise.
19835 * except.h : Likewise.
19836 * explow.c : Likewise.
19837 * expmed.c : Likewise.
19838 * expr.c : Likewise.
19839 * final.c : Likewise.
19840 * fixed-value.c : Likewise.
19841 * fold-const.c : Likewise.
19842 * function.c : Likewise.
19843 * fwprop.c : Likewise.
19844 * gcc-plugin.h : Likewise.
19845 * gcc.c : Likewise.
19846 * gcse-common.c : Likewise.
19847 * gcse.c : Likewise.
19848 * genattrtab.c : Likewise.
19849 * genautomata.c : Likewise.
19850 * genconditions.c : Likewise.
19851 * genemit.c : Likewise.
19852 * generic-match-head.c : Likewise.
19853 * genextract.c : Likewise.
19854 * gengtype-state.c : Likewise.
19855 * gengtype.c : Likewise.
19856 * genhooks.c : Likewise.
19857 * genmatch.c : Likewise.
19858 * genmodes.c : Likewise.
19859 * genrecog.c : Likewise.
19860 * gensupport.c : Likewise.
19861 * ggc-common.c : Likewise.
19862 * ggc-internal.h : Likewise.
19863 * ggc-none.c : Likewise.
19864 * ggc-page.c : Likewise.
19865 * gimple-builder.c : Likewise.
19866 * gimple-expr.c : Likewise.
19867 * gimple-fold.c : Likewise.
19868 * gimple-iterator.c : Likewise.
19869 * gimple-low.c : Likewise.
19870 * gimple-match-head.c : Likewise.
19871 * gimple-pretty-print.c : Likewise.
19872 * gimple-ssa-isolate-paths.c : Likewise.
19873 * gimple-ssa-strength-reduction.c : Likewise.
19874 * gimple-ssa.h : Likewise.
19875 * gimple-streamer-in.c : Likewise.
19876 * gimple-streamer-out.c : Likewise.
19877 * gimple-streamer.h : Likewise.
19878 * gimple-walk.c : Likewise.
19879 * gimple.c : Likewise.
19880 * gimplify-me.c : Likewise.
19881 * gimplify.c : Likewise.
19882 * godump.c : Likewise.
19883 * graph.c : Likewise.
19884 * graphds.c : Likewise.
19885 * graphite-blocking.c : Likewise.
19886 * graphite-dependences.c : Likewise.
19887 * graphite-interchange.c : Likewise.
19888 * graphite-isl-ast-to-gimple.c : Likewise.
19889 * graphite-optimize-isl.c : Likewise.
19890 * graphite-poly.c : Likewise.
19891 * graphite-scop-detection.c : Likewise.
19892 * graphite-sese-to-poly.c : Likewise.
19893 * graphite.c : Likewise.
19894 * haifa-sched.c : Likewise.
19895 * hard-reg-set.h : Likewise.
19896 * hw-doloop.c : Likewise.
19897 * ifcvt.c : Likewise.
19898 * inchash.c : Likewise.
19899 * incpath.c : Likewise.
19900 * init-regs.c : Likewise.
19901 * input.c : Likewise.
19902 * internal-fn.c : Likewise.
19903 * ipa-chkp.c : Likewise.
19904 * ipa-comdats.c : Likewise.
19905 * ipa-cp.c : Likewise.
19906 * ipa-devirt.c : Likewise.
19907 * ipa-icf-gimple.c : Likewise.
19908 * ipa-icf.c : Likewise.
19909 * ipa-inline-analysis.c : Likewise.
19910 * ipa-inline-transform.c : Likewise.
19911 * ipa-inline.c : Likewise.
19912 * ipa-polymorphic-call.c : Likewise.
19913 * ipa-profile.c : Likewise.
19914 * ipa-prop.c : Likewise.
19915 * ipa-pure-const.c : Likewise.
19916 * ipa-ref.c : Likewise.
19917 * ipa-reference.c : Likewise.
19918 * ipa-split.c : Likewise.
19919 * ipa-utils.c : Likewise.
19920 * ipa-visibility.c : Likewise.
19921 * ipa.c : Likewise.
19922 * ira-build.c : Likewise.
19923 * ira-color.c : Likewise.
19924 * ira-conflicts.c : Likewise.
19925 * ira-costs.c : Likewise.
19926 * ira-emit.c : Likewise.
19927 * ira-lives.c : Likewise.
19928 * ira.c : Likewise.
19929 * jump.c : Likewise.
19930 * langhooks.c : Likewise.
19931 * lcm.c : Likewise.
19932 * libfuncs.h : Likewise.
19933 * lists.c : Likewise.
19934 * loop-doloop.c : Likewise.
19935 * loop-init.c : Likewise.
19936 * loop-invariant.c : Likewise.
19937 * loop-iv.c : Likewise.
19938 * loop-unroll.c : Likewise.
19939 * lower-subreg.c : Likewise.
19940 * lra-assigns.c : Likewise.
19941 * lra-coalesce.c : Likewise.
19942 * lra-constraints.c : Likewise.
19943 * lra-eliminations.c : Likewise.
19944 * lra-lives.c : Likewise.
19945 * lra-remat.c : Likewise.
19946 * lra-spills.c : Likewise.
19947 * lra.c : Likewise.
19948 * lto-cgraph.c : Likewise.
19949 * lto-compress.c : Likewise.
19950 * lto-opts.c : Likewise.
19951 * lto-section-in.c : Likewise.
19952 * lto-section-out.c : Likewise.
19953 * lto-streamer-in.c : Likewise.
19954 * lto-streamer-out.c : Likewise.
19955 * lto-streamer.c : Likewise.
19956 * lto-streamer.h : Likewise.
19957 * mcf.c : Likewise.
19958 * mode-switching.c : Likewise.
19959 * modulo-sched.c : Likewise.
19960 * omega.c : Likewise.
19961 * omp-low.c : Likewise.
19962 * optabs.c : Likewise.
19963 * opts-global.c : Likewise.
19964 * opts.h : Likewise.
19965 * passes.c : Likewise.
19966 * plugin.c : Likewise.
19967 * postreload-gcse.c : Likewise.
19968 * postreload.c : Likewise.
19969 * predict.c : Likewise.
19970 * print-rtl.c : Likewise.
19971 * print-tree.c : Likewise.
19972 * profile.c : Likewise.
19973 * read-md.c : Likewise.
19974 * read-md.h : Likewise.
19975 * read-rtl.c : Likewise.
19976 * real.c : Likewise.
19977 * realmpfr.c : Likewise.
19978 * recog.c : Likewise.
19979 * ree.c : Likewise.
19980 * reg-stack.c : Likewise.
19981 * regcprop.c : Likewise.
19982 * reginfo.c : Likewise.
19983 * regrename.c : Likewise.
19984 * regstat.c : Likewise.
19985 * reload.c : Likewise.
19986 * reload1.c : Likewise.
19987 * reorg.c : Likewise.
19988 * resource.c : Likewise.
19989 * rtl-chkp.c : Likewise.
19990 * rtl.c : Likewise.
19991 * rtl.h : Likewise.
19992 * rtlanal.c : Likewise.
19993 * rtlhash.c : Likewise.
19994 * rtlhash.h : Likewise.
19995 * rtlhooks.c : Likewise.
19996 * sanopt.c : Likewise.
19997 * sched-deps.c : Likewise.
19998 * sched-ebb.c : Likewise.
19999 * sched-rgn.c : Likewise.
20000 * sched-vis.c : Likewise.
20001 * sdbout.c : Likewise.
20002 * sel-sched-dump.c : Likewise.
20003 * sel-sched-ir.c : Likewise.
20004 * sel-sched-ir.h : Likewise.
20005 * sel-sched.c : Likewise.
20006 * sese.c : Likewise.
20007 * shrink-wrap.c : Likewise.
20008 * shrink-wrap.h : Likewise.
20009 * simplify-rtx.c : Likewise.
20010 * stack-ptr-mod.c : Likewise.
20011 * statistics.c : Likewise.
20012 * stmt.c : Likewise.
20013 * stor-layout.c : Likewise.
20014 * store-motion.c : Likewise.
20015 * stringpool.c : Likewise.
20016 * symtab.c : Likewise.
20017 * target-globals.c : Likewise.
20018 * targhooks.c : Likewise.
20019 * tlink.c : Likewise.
20020 * toplev.c : Likewise.
20021 * tracer.c : Likewise.
20022 * trans-mem.c : Likewise.
20023 * tree-affine.c : Likewise.
20024 * tree-affine.h : Likewise.
20025 * tree-browser.c : Likewise.
20026 * tree-call-cdce.c : Likewise.
20027 * tree-cfg.c : Likewise.
20028 * tree-cfgcleanup.c : Likewise.
20029 * tree-chkp-opt.c : Likewise.
20030 * tree-chkp.c : Likewise.
20031 * tree-chrec.c : Likewise.
20032 * tree-complex.c : Likewise.
20033 * tree-data-ref.c : Likewise.
20034 * tree-dfa.c : Likewise.
20035 * tree-diagnostic.c : Likewise.
20036 * tree-dump.c : Likewise.
20037 * tree-eh.c : Likewise.
20038 * tree-eh.h : Likewise.
20039 * tree-emutls.c : Likewise.
20040 * tree-hasher.h : Likewise.
20041 * tree-if-conv.c : Likewise.
20042 * tree-inline.c : Likewise.
20043 * tree-inline.h : Likewise.
20044 * tree-into-ssa.c : Likewise.
20045 * tree-iterator.c : Likewise.
20046 * tree-loop-distribution.c : Likewise.
20047 * tree-nested.c : Likewise.
20048 * tree-nrv.c : Likewise.
20049 * tree-object-size.c : Likewise.
20050 * tree-outof-ssa.c : Likewise.
20051 * tree-parloops.c : Likewise.
20052 * tree-phinodes.c : Likewise.
20053 * tree-predcom.c : Likewise.
20054 * tree-pretty-print.c : Likewise.
20055 * tree-profile.c : Likewise.
20056 * tree-scalar-evolution.c : Likewise.
20057 * tree-sra.c : Likewise.
20058 * tree-ssa-address.c : Likewise.
20059 * tree-ssa-alias.c : Likewise.
20060 * tree-ssa-ccp.c : Likewise.
20061 * tree-ssa-coalesce.c : Likewise.
20062 * tree-ssa-copy.c : Likewise.
20063 * tree-ssa-copyrename.c : Likewise.
20064 * tree-ssa-dce.c : Likewise.
20065 * tree-ssa-dom.c : Likewise.
20066 * tree-ssa-dse.c : Likewise.
20067 * tree-ssa-forwprop.c : Likewise.
20068 * tree-ssa-ifcombine.c : Likewise.
20069 * tree-ssa-live.c : Likewise.
20070 * tree-ssa-loop-ch.c : Likewise.
20071 * tree-ssa-loop-im.c : Likewise.
20072 * tree-ssa-loop-ivcanon.c : Likewise.
20073 * tree-ssa-loop-ivopts.c : Likewise.
20074 * tree-ssa-loop-manip.c : Likewise.
20075 * tree-ssa-loop-niter.c : Likewise.
20076 * tree-ssa-loop-prefetch.c : Likewise.
20077 * tree-ssa-loop-unswitch.c : Likewise.
20078 * tree-ssa-loop.c : Likewise.
20079 * tree-ssa-math-opts.c : Likewise.
20080 * tree-ssa-operands.c : Likewise.
20081 * tree-ssa-phiopt.c : Likewise.
20082 * tree-ssa-phiprop.c : Likewise.
20083 * tree-ssa-pre.c : Likewise.
20084 * tree-ssa-propagate.c : Likewise.
20085 * tree-ssa-reassoc.c : Likewise.
20086 * tree-ssa-sccvn.c : Likewise.
20087 * tree-ssa-scopedtables.c : Likewise.
20088 * tree-ssa-sink.c : Likewise.
20089 * tree-ssa-strlen.c : Likewise.
20090 * tree-ssa-structalias.c : Likewise.
20091 * tree-ssa-tail-merge.c : Likewise.
20092 * tree-ssa-ter.c : Likewise.
20093 * tree-ssa-threadedge.c : Likewise.
20094 * tree-ssa-threadupdate.c : Likewise.
20095 * tree-ssa-uncprop.c : Likewise.
20096 * tree-ssa-uninit.c : Likewise.
20097 * tree-ssa.c : Likewise.
20098 * tree-ssanames.c : Likewise.
20099 * tree-stdarg.c : Likewise.
20100 * tree-streamer-in.c : Likewise.
20101 * tree-streamer-out.c : Likewise.
20102 * tree-streamer.c : Likewise.
20103 * tree-streamer.h : Likewise.
20104 * tree-switch-conversion.c : Likewise.
20105 * tree-tailcall.c : Likewise.
20106 * tree-vect-data-refs.c : Likewise.
20107 * tree-vect-generic.c : Likewise.
20108 * tree-vect-loop-manip.c : Likewise.
20109 * tree-vect-loop.c : Likewise.
20110 * tree-vect-patterns.c : Likewise.
20111 * tree-vect-slp.c : Likewise.
20112 * tree-vect-stmts.c : Likewise.
20113 * tree-vectorizer.c : Likewise.
20114 * tree-vectorizer.h : Likewise.
20115 * tree-vrp.c : Likewise.
20116 * tree.c : Likewise.
20117 * tsan.c : Likewise.
20118 * ubsan.c : Likewise.
20119 * valtrack.c : Likewise.
20120 * valtrack.h : Likewise.
20121 * value-prof.c : Likewise.
20122 * var-tracking.c : Likewise.
20123 * varasm.c : Likewise.
20124 * varpool.c : Likewise.
20126 * vmsdbgout.c : Likewise.
20127 * vtable-verify.c : Likewise.
20128 * vtable-verify.h : Likewise.
20129 * web.c : Likewise.
20130 * wide-int.cc : Likewise.
20131 * xcoffout.c : Likewise.
20132 * config/aarch64/aarch64-builtins.c : Likewise.
20133 * config/aarch64/aarch64.c : Likewise.
20134 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
20135 * config/alpha/alpha.c : Likewise.
20136 * config/arc/arc.c : Likewise.
20137 * config/arm/aarch-common.c : Likewise.
20138 * config/arm/arm-builtins.c : Likewise.
20139 * config/arm/arm-c.c : Likewise.
20140 * config/arm/arm.c : Likewise.
20141 * config/avr/avr-c.c : Likewise.
20142 * config/avr/avr-log.c : Likewise.
20143 * config/avr/avr.c : Likewise.
20144 * config/bfin/bfin.c : Likewise.
20145 * config/c6x/c6x.c : Likewise.
20146 * config/cr16/cr16.c : Likewise.
20147 * config/cris/cris.c : Likewise.
20148 * config/darwin-c.c : Likewise.
20149 * config/darwin.c : Likewise.
20150 * config/default-c.c : Likewise.
20151 * config/epiphany/epiphany.c : Likewise.
20152 * config/epiphany/mode-switch-use.c : Likewise.
20153 * config/epiphany/resolve-sw-modes.c : Likewise.
20154 * config/fr30/fr30.c : Likewise.
20155 * config/frv/frv.c : Likewise.
20156 * config/ft32/ft32.c : Likewise.
20157 * config/glibc-c.c : Likewise.
20158 * config/h8300/h8300.c : Likewise.
20159 * config/i386/i386-c.c : Likewise.
20160 * config/i386/i386.c : Likewise.
20161 * config/i386/msformat-c.c : Likewise.
20162 * config/i386/winnt-cxx.c : Likewise.
20163 * config/i386/winnt-stubs.c : Likewise.
20164 * config/i386/winnt.c : Likewise.
20165 * config/ia64/ia64-c.c : Likewise.
20166 * config/ia64/ia64.c : Likewise.
20167 * config/iq2000/iq2000.c : Likewise.
20168 * config/lm32/lm32.c : Likewise.
20169 * config/m32c/m32c-pragma.c : Likewise.
20170 * config/m32c/m32c.c : Likewise.
20171 * config/m32r/m32r.c : Likewise.
20172 * config/m68k/m68k.c : Likewise.
20173 * config/mcore/mcore.c : Likewise.
20174 * config/mep/mep-pragma.c : Likewise.
20175 * config/mep/mep.c : Likewise.
20176 * config/microblaze/microblaze-c.c : Likewise.
20177 * config/microblaze/microblaze.c : Likewise.
20178 * config/mips/mips.c : Likewise.
20179 * config/mmix/mmix.c : Likewise.
20180 * config/mn10300/mn10300.c : Likewise.
20181 * config/moxie/moxie.c : Likewise.
20182 * config/msp430/msp430-c.c : Likewise.
20183 * config/msp430/msp430.c : Likewise.
20184 * config/nds32/nds32-cost.c : Likewise.
20185 * config/nds32/nds32-fp-as-gp.c : Likewise.
20186 * config/nds32/nds32-intrinsic.c : Likewise.
20187 * config/nds32/nds32-isr.c : Likewise.
20188 * config/nds32/nds32-md-auxiliary.c : Likewise.
20189 * config/nds32/nds32-memory-manipulation.c : Likewise.
20190 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
20191 * config/nds32/nds32-predicates.c : Likewise.
20192 * config/nds32/nds32.c : Likewise.
20193 * config/nios2/nios2.c : Likewise.
20194 * config/nvptx/nvptx.c : Likewise.
20195 * config/pa/pa.c : Likewise.
20196 * config/pdp11/pdp11.c : Likewise.
20197 * config/rl78/rl78-c.c : Likewise.
20198 * config/rl78/rl78.c : Likewise.
20199 * config/rs6000/rs6000-c.c : Likewise.
20200 * config/rs6000/rs6000.c : Likewise.
20201 * config/rx/rx.c : Likewise.
20202 * config/s390/s390-c.c : Likewise.
20203 * config/s390/s390.c : Likewise.
20204 * config/sh/sh-c.c : Likewise.
20205 * config/sh/sh-mem.cc : Likewise.
20206 * config/sh/sh.c : Likewise.
20207 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
20208 * config/sh/sh_treg_combine.cc : Likewise.
20209 * config/sol2-c.c : Likewise.
20210 * config/sol2-cxx.c : Likewise.
20211 * config/sol2-stubs.c : Likewise.
20212 * config/sol2.c : Likewise.
20213 * config/sparc/sparc-c.c : Likewise.
20214 * config/sparc/sparc.c : Likewise.
20215 * config/spu/spu-c.c : Likewise.
20216 * config/spu/spu.c : Likewise.
20217 * config/stormy16/stormy16.c : Likewise.
20218 * config/tilegx/mul-tables.c : Likewise.
20219 * config/tilegx/tilegx-c.c : Likewise.
20220 * config/tilegx/tilegx.c : Likewise.
20221 * config/tilepro/mul-tables.c : Likewise.
20222 * config/tilepro/tilepro-c.c : Likewise.
20223 * config/tilepro/tilepro.c : Likewise.
20224 * config/v850/v850-c.c : Likewise.
20225 * config/v850/v850.c : Likewise.
20226 * config/vax/vax.c : Likewise.
20227 * config/visium/visium.c : Likewise.
20228 * config/vms/vms-c.c : Likewise.
20229 * config/vms/vms.c : Likewise.
20230 * config/vxworks.c : Likewise.
20231 * config/winnt-c.c : Likewise.
20232 * config/xtensa/xtensa.c : Likewise.
20234 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
20237 * ipa-utils.h (warn_types_mismatch): Update prototype.
20238 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
20240 (type_mismatch_p): New function.
20241 (warn_types_mismatch): Reorg to work better on non-C++ types.
20242 (odr_types_equivalent_p): Add loc1/loc2 parameters.
20243 (add_type_duplicate): Update.
20245 2015-06-08 Tom de Vries <tom@codesourcery.com>
20247 PR rtl-optimization/66444
20248 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
20251 2015-06-08 Richard Biener <rguenther@suse.de>
20253 PR tree-optimization/66422
20254 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
20255 block after inserted gcc_unreachable.
20257 2015-06-08 Nick Clifton <nickc@redhat.com>
20259 * config/rx/rx.c (rx_function_value): Do not promote vector types.
20260 (rx_promote_function_mode): Likewise.
20261 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
20263 2015-06-08 Jakub Jelinek <jakub@redhat.com>
20265 * genattrtab.c (insn_alternatives): Change type from int *
20267 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
20268 (get_attr_value): Change type of num_alt to uint64_t.
20269 (compute_alternative_mask): Change return type from
20270 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
20271 (make_alternative_compare, mk_attr_alt): Change argument type
20272 from int to uint64_t.
20273 (simplify_test_exp): Change type of i from int to uint64_t.
20274 Shift ((uint64_t) 1) instead of 1 up.
20275 (main): Adjust oballocvec first argument from int to uint64_t.
20276 Shift ((uint64_t) 1) instead of 1 up.
20278 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
20281 * gdbhooks.py: Import sys.
20282 (intptr): New function. Replace int(...) by intptr(...).
20284 2015-06-08 Richard Biener <rguenther@suse.de>
20286 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
20287 adjustment for gaps at the end of a SLP load group properly.
20288 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
20289 all permutations we can generate.
20290 (vect_transform_slp_perm_load): Use the correct group-size.
20292 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
20294 * genmatch.c (expr::gen_transform): For conditions, guess the type
20295 from the second operand.
20297 2015-06-08 Tom de Vries <tom@codesourcery.com>
20299 PR tree-optimization/66442
20300 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
20301 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
20302 if the loop latch is not a singleton. Use
20303 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
20305 2015-06-08 Marek Polacek <polacek@redhat.com>
20308 * toplev.c (check_global_declaration): Don't warn about artificial
20311 2015-06-08 Tom de Vries <tom@codesourcery.com>
20313 PR tree-optimization/66436
20314 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
20316 * gimplify.c: Add tree-dump.h include.
20317 (gimplify_function_tree): Dump function to gimple dump file.
20318 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
20321 2015-06-08 Tom de Vries <tom@codesourcery.com>
20323 PR tree-optimization/66435
20324 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
20327 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
20329 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
20330 of ptr_type_node to not be ptr_to_node.
20331 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
20332 TREE_TYPE of pointers.
20333 * gimple-expr.c (useless_type_conversion): Reorder the check for
20334 function pointers and TYPE_CANONICAL.
20336 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
20339 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
20340 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
20341 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
20343 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
20344 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
20345 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
20346 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
20347 and non iso if unix2003.
20349 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
20351 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
20353 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
20355 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
20356 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
20357 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
20358 except.c, final.c, function.c, gcse-common.c, genemit.c,
20359 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
20360 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
20361 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
20362 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
20365 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
20367 * combine.c (combine_split_insns): Remove cast.
20368 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
20369 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
20370 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
20371 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
20372 * genemit.c (gen_split): Change return type of generated functions to
20374 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
20375 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
20376 gen_peephole2_* functions.
20377 (print_subroutine, main): Likewise.
20378 * recog.c (peephole2_optimize): Remove cast.
20379 (peep2_next_insn): Promote return type to rtx_insn.
20380 * recog.h (peep2_next_insn): Fix prototype.
20381 * rtl.h (try_split, split_insns): Likewise.
20383 2015-06-06 DJ Delorie <dj@redhat.com>
20385 * config/msp430/msp430.c (msp430_asm_integer): Support addition
20386 and subtraction too.
20388 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
20391 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
20392 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
20393 instead of Snd. Disparage Sid/z alternative with '^'.
20395 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
20397 * dwarf2out.c: Remove deferred_locations*.
20398 (dwarf2_debug_hooks): Add early_finish hook.
20399 Remove global_decl hook.
20400 Add early_global_decl and late_global_decl hook.
20401 New global early_dwarf.
20402 New structure set_early_dwarf.
20403 (output_die): Indicate whether a DIE was generated early
20404 when generating assembly with -dA.
20405 (struct limbo_die_struct): Document created_for field.
20406 Remove file_table_last_lookup.
20407 (remove_AT): Return TRUE if successful.
20408 (remove_child_TAG): Clear die_parent.
20409 (reparent_child): New function abstracted from...
20410 (splice_child_die): ...here.
20411 (new_die): ICE if a DIE ends up in limbo too late.
20413 (defer_location): Remove.
20414 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
20415 (fill_variable_array_bounds): New.
20416 (decl_start_label): Call fill_variable_array_bounds.
20417 (gen_formal_parameter_die): Rewrite to reuse previously generated
20419 (gen_subprogram_die): Same.
20420 (gen_variable_die): Same.
20421 (gen_const_die): Same.
20422 (gen_label_die): Same.
20423 (gen_lexical_block_die): Same.
20424 (decl_will_get_specification_p): New.
20425 (local_function_static): New.
20426 (gen_struct_or_union_type_die): Fill in variable-length fields.
20427 (gen_typedef_die): Fill in variable-length typedefs.
20428 (gen_tagged_type_die): Gracefully return on error_mark_node.
20429 Handle re-entrancy.
20430 (gen_type_die_with_usage): Handle variable-length types.
20431 Remove duplicate code for ARRAY_TYPE case.
20432 (process_scope_var): Only process imported modules during early
20434 (dwarf2out_early_global_decl): New.
20435 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
20436 (dwarf2out_type_decl): Set early_dwarf while calling
20438 (dwarf2out_decl): Verify that we did not recreate a previously
20440 Do not return on DECL_EXTERNALs in VAR_DECLs.
20441 Abstract some code to local_function_static.
20442 (lookup_filename): Remove use of file_table_last_lookup.
20443 Gracefully exit on missing file_name.
20444 (dwarf2out_finish): Verify limbo list.
20445 Remove deferred_locations_list use.
20446 Move deferred_asm_name and limbo flushing to...
20447 (dwarf2out_early_finish): ...here. New.
20448 (dwarf2out_c_finalize): Remove set of deferred_location_list,
20449 deferred_asm_name, and file_table_last_lookup.
20450 * cgraph.h (referred_to_p): Add default argument.
20451 * cgraphunit.c (referred_to_p): Add and handle include_self
20453 (analyze_functions): Add first_time argument.
20454 Call check_global_declaration for all symbols.
20455 Call late_global_decl for nodes for moribund nodes.
20456 (finalize_compilation_unit): Add new argument to
20458 Call early_global_decl for functions.
20459 Call early_finish debug hook.
20460 * dbxout.c (dbxout_early_global_decl): New.
20461 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
20462 (dbx_debug_hooks): Add new hooks.
20463 (xcoff_debug_hooks): Same.
20464 * debug.c (do_nothing_debug_hooks): Add early_finish field.
20465 Add early and late debug hooks.
20466 Remove global_decl hook.
20467 * debug.h (struct gcc_debug_hooks): Add early_finish,
20468 early_global_decl, and late_global_decl fields.
20469 Remove global_decl field.
20470 Document gcc_debug_hooks.
20471 * gengtype.c (output_typename): Remove.
20472 * godump.c (go_early_global_decl): New.
20473 (go_late_global_decl): New.
20474 (go_global_decl): Remove.
20475 (dump_go_spec_init): Remove global_decl. Add
20476 {early,late}_global_decl.
20477 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
20478 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
20479 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
20480 (write_global_declarations): Remove.
20481 (global_decl_processing): New.
20482 * langhooks.h (struct lang_hooks_for_decls): Remove
20483 final_write_globals field.
20484 Add post_compilation_parsing_cleanups field.
20485 * passes.c (rest_of_decl_compilation): Call early_global_decl.
20486 * sdbout.c: Add early and late_global_decl hooks. Remove
20487 sdbout_global_decl hook.
20488 Add early_finish field for sdb_debug_hooks.
20489 (sdbout_global_decl): Remove.
20490 (sdbout_early_global_decl): New.
20491 (sdbout_late_global_decl): New.
20492 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
20493 * toplev.c (check_global_declaration): Rename from
20494 check_global_declaration_1.
20495 Adapt to use symtab infrastructure.
20496 (check_global_declarations): Remove.
20497 (emit_debug_global_declarations): Remove.
20498 (compile_file): Remove call to final_write_globals langhook.
20499 Run the actual compilation process.
20500 Perform any post compilation parser cleanups.
20501 Generate late debug info.
20502 * toplev.h (check_global_declaration): New.
20503 (check_global_declaration_1): Remove.
20504 (check_global_declarations): Remove.
20505 (write_global_declarations): Remove.
20506 (emit_debug_global_declarations): Remove.
20507 (global_decl_processing): New.
20508 * tree-core.h (struct tree_block): Add DIE field.
20509 * tree.h (BLOCK_DIE): New.
20510 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
20512 (vmsdbgout_early_global_decl): New.
20513 (vmsdbgout_late_global_decl): New.
20514 Add early_finish debug hook field to vmsdbg_debug_hooks.
20515 Remove vmsdbgout_decl to vmsdbgout_function_decl.
20516 Add early and late_global_decl debug hooks.
20518 2015-06-05 Julian Brown <julian@codesourcery.com>
20519 Sandra Loosemore <sandra@codesourcery.com>
20521 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
20522 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
20523 to print-sysroot-suffix.sh script.
20525 2015-06-05 Tom de Vries <tom@codesourcery.com>
20527 merge from gomp4 branch:
20528 2015-05-28 Tom de Vries <tom@codesourcery.com>
20530 PR tree-optimization/65443
20531 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
20532 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
20533 (try_transform_to_exit_first_loop_alt): New function.
20534 (transform_to_exit_first_loop): Use
20535 try_transform_to_exit_first_loop_alt.
20537 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
20539 * builtins.c (expand_builtin_atomic_compare_exchange): Call
20540 emit_cmp_and_jump_insns with the mode of target.
20542 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20544 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
20546 2015-06-04 DJ Delorie <dj@redhat.com>
20548 * config/msp430/msp430.md (movsi_s): New. Special case for
20549 storing a 20-bit symbol into a 32-bit register.
20550 * config/msp430/msp430.c (msp430_subreg): Add support for it.
20551 * config/msp430/predicates.md (msp430_symbol_operand): New.
20553 2015-06-04 Sriraman Tallam <tmsriram@google.com>
20555 * c-family/c-common.c (noplt): New attribute.
20556 (handle_noplt_attribute): New handler.
20557 * calls.c (prepare_call_address): Check for noplt
20559 * config/i386/i386.c (ix86_expand_call): Check
20560 for noplt attribute.
20561 (ix86_nopic_noplt_attribute_p): New function.
20562 (ix86_output_call_insn): Output indirect call for non-pic
20564 * doc/extend.texi (noplt): Document new attribute.
20565 * doc/invoke.texi: Document new attribute.
20567 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
20569 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
20570 real.h, and fixed-value.h when included in host source files.
20571 * double-int.h: Remove redundant #includes listed above.
20572 * fixed-value.h: Likewise.
20573 * real.h: Likewise.
20574 * wide-int.h: Likewise.
20575 * inchash.h: Likewise.
20576 * rtl.h: Add some include files When included from a generator file.
20577 * target.h: Remove wide-int.h and insn-modes.h from the include list.
20578 * internal-fn.h: Don't include coretypes.h.
20579 * alias.c: Adjust includes for restructured coretypes.h.
20580 * asan.c: Likewise.
20581 * attribs.c: Likewise.
20582 * auto-inc-dec.c: Likewise.
20583 * auto-profile.c: Likewise.
20584 * bb-reorder.c: Likewise.
20585 * bt-load.c: Likewise.
20586 * builtins.c: Likewise.
20587 * caller-save.c: Likewise.
20588 * calls.c: Likewise.
20589 * ccmp.c: Likewise.
20591 * cfganal.c: Likewise.
20592 * cfgbuild.c: Likewise.
20593 * cfgcleanup.c: Likewise.
20594 * cfgexpand.c: Likewise.
20595 * cfghooks.c: Likewise.
20596 * cfgloop.c: Likewise.
20597 * cfgloop.h: Likewise.
20598 * cfgloopanal.c: Likewise.
20599 * cfgloopmanip.c: Likewise.
20600 * cfgrtl.c: Likewise.
20601 * cgraph.c: Likewise.
20602 * cgraphbuild.c: Likewise.
20603 * cgraphclones.c: Likewise.
20604 * cgraphunit.c: Likewise.
20605 * cilk-common.c: Likewise.
20606 * combine-stack-adj.c: Likewise.
20607 * combine.c: Likewise.
20608 * compare-elim.c: Likewise.
20609 * convert.c: Likewise.
20610 * coverage.c: Likewise.
20611 * cppbuiltin.c: Likewise.
20612 * cprop.c: Likewise.
20614 * cselib.c: Likewise.
20615 * data-streamer-in.c: Likewise.
20616 * data-streamer-out.c: Likewise.
20617 * data-streamer.c: Likewise.
20618 * dbxout.c: Likewise.
20621 * debug.c: Likewise.
20622 * df-core.c: Likewise.
20623 * df-problems.c: Likewise.
20624 * df-scan.c: Likewise.
20627 * dojump.c: Likewise.
20628 * dominance.c: Likewise.
20629 * domwalk.c: Likewise.
20630 * double-int.c: Likewise.
20632 * dumpfile.c: Likewise.
20633 * dwarf2asm.c: Likewise.
20634 * dwarf2cfi.c: Likewise.
20635 * dwarf2out.c: Likewise.
20636 * dwarf2out.h: Likewise.
20637 * emit-rtl.c: Likewise.
20638 * et-forest.c: Likewise.
20639 * except.c: Likewise.
20640 * explow.c: Likewise.
20641 * expmed.c: Likewise.
20642 * expr.c: Likewise.
20643 * final.c: Likewise.
20644 * fixed-value.c: Likewise.
20645 * fold-const.c: Likewise.
20646 * function.c: Likewise.
20647 * fwprop.c: Likewise.
20648 * gcc-plugin.h: Likewise.
20649 * gcse.c: Likewise.
20650 * generic-match-head.c: Likewise.
20651 * ggc-page.c: Likewise.
20652 * gimple-builder.c: Likewise.
20653 * gimple-expr.c: Likewise.
20654 * gimple-fold.c: Likewise.
20655 * gimple-iterator.c: Likewise.
20656 * gimple-low.c: Likewise.
20657 * gimple-match-head.c: Likewise.
20658 * gimple-pretty-print.c: Likewise.
20659 * gimple-ssa-isolate-paths.c: Likewise.
20660 * gimple-ssa-strength-reduction.c: Likewise.
20661 * gimple-streamer-in.c: Likewise.
20662 * gimple-streamer-out.c: Likewise.
20663 * gimple-streamer.h: Likewise.
20664 * gimple-walk.c: Likewise.
20665 * gimple.c: Likewise.
20666 * gimplify-me.c: Likewise.
20667 * gimplify.c: Likewise.
20668 * godump.c: Likewise.
20669 * graph.c: Likewise.
20670 * graphite-blocking.c: Likewise.
20671 * graphite-dependences.c: Likewise.
20672 * graphite-interchange.c: Likewise.
20673 * graphite-isl-ast-to-gimple.c: Likewise.
20674 * graphite-optimize-isl.c: Likewise.
20675 * graphite-poly.c: Likewise.
20676 * graphite-scop-detection.c: Likewise.
20677 * graphite-sese-to-poly.c: Likewise.
20678 * graphite.c: Likewise.
20679 * haifa-sched.c: Likewise.
20680 * hooks.h: Likewise.
20681 * hw-doloop.c: Likewise.
20682 * ifcvt.c: Likewise.
20683 * incpath.c: Likewise.
20684 * init-regs.c: Likewise.
20685 * internal-fn.c: Likewise.
20686 * ipa-chkp.c: Likewise.
20687 * ipa-comdats.c: Likewise.
20688 * ipa-cp.c: Likewise.
20689 * ipa-devirt.c: Likewise.
20690 * ipa-icf-gimple.c: Likewise.
20691 * ipa-icf.c: Likewise.
20692 * ipa-inline-analysis.c: Likewise.
20693 * ipa-inline-transform.c: Likewise.
20694 * ipa-inline.c: Likewise.
20695 * ipa-polymorphic-call.c: Likewise.
20696 * ipa-profile.c: Likewise.
20697 * ipa-prop.c: Likewise.
20698 * ipa-pure-const.c: Likewise.
20699 * ipa-ref.c: Likewise.
20700 * ipa-reference.c: Likewise.
20701 * ipa-split.c: Likewise.
20702 * ipa-utils.c: Likewise.
20703 * ipa-visibility.c: Likewise.
20705 * ira-build.c: Likewise.
20706 * ira-color.c: Likewise.
20707 * ira-conflicts.c: Likewise.
20708 * ira-costs.c: Likewise.
20709 * ira-emit.c: Likewise.
20710 * ira-lives.c: Likewise.
20712 * jump.c: Likewise.
20713 * langhooks.c: Likewise.
20715 * loop-doloop.c: Likewise.
20716 * loop-init.c: Likewise.
20717 * loop-invariant.c: Likewise.
20718 * loop-iv.c: Likewise.
20719 * loop-unroll.c: Likewise.
20720 * lower-subreg.c: Likewise.
20721 * lra-assigns.c: Likewise.
20722 * lra-coalesce.c: Likewise.
20723 * lra-constraints.c: Likewise.
20724 * lra-eliminations.c: Likewise.
20725 * lra-lives.c: Likewise.
20726 * lra-remat.c: Likewise.
20727 * lra-spills.c: Likewise.
20729 * lto-cgraph.c: Likewise.
20730 * lto-compress.c: Likewise.
20731 * lto-opts.c: Likewise.
20732 * lto-section-in.c: Likewise.
20733 * lto-section-out.c: Likewise.
20734 * lto-streamer-in.c: Likewise.
20735 * lto-streamer-out.c: Likewise.
20736 * lto-streamer.c: Likewise.
20738 * mode-switching.c: Likewise.
20739 * modulo-sched.c: Likewise.
20740 * omega.c: Likewise.
20741 * omp-low.c: Likewise.
20742 * optabs.c: Likewise.
20743 * opts-global.c: Likewise.
20744 * passes.c: Likewise.
20745 * plugin.c: Likewise.
20746 * postreload-gcse.c: Likewise.
20747 * postreload.c: Likewise.
20748 * predict.c: Likewise.
20749 * print-rtl.c: Likewise.
20750 * print-tree.c: Likewise.
20751 * profile.c: Likewise.
20752 * real.c: Likewise.
20753 * realmpfr.c: Likewise.
20754 * realmpfr.h: Likewise.
20755 * recog.c: Likewise.
20757 * reg-stack.c: Likewise.
20758 * regcprop.c: Likewise.
20759 * reginfo.c: Likewise.
20760 * regrename.c: Likewise.
20761 * regs.h: Likewise.
20762 * regstat.c: Likewise.
20763 * reload.c: Likewise.
20764 * reload1.c: Likewise.
20765 * reorg.c: Likewise.
20766 * resource.c: Likewise.
20767 * rtl-chkp.c: Likewise.
20768 * rtlanal.c: Likewise.
20769 * rtlhooks.c: Likewise.
20770 * sanopt.c: Likewise.
20771 * sched-deps.c: Likewise.
20772 * sched-ebb.c: Likewise.
20773 * sched-rgn.c: Likewise.
20774 * sched-vis.c: Likewise.
20775 * sdbout.c: Likewise.
20776 * sel-sched-dump.c: Likewise.
20777 * sel-sched-ir.c: Likewise.
20778 * sel-sched.c: Likewise.
20779 * sese.c: Likewise.
20780 * shrink-wrap.c: Likewise.
20781 * shrink-wrap.h: Likewise.
20782 * simplify-rtx.c: Likewise.
20783 * stack-ptr-mod.c: Likewise.
20784 * statistics.c: Likewise.
20785 * stmt.c: Likewise.
20786 * stor-layout.c: Likewise.
20787 * store-motion.c: Likewise.
20788 * stringpool.c: Likewise.
20789 * symtab.c: Likewise.
20790 * target-globals.c: Likewise.
20791 * targhooks.c: Likewise.
20792 * toplev.c: Likewise.
20793 * tracer.c: Likewise.
20794 * trans-mem.c: Likewise.
20795 * tree-affine.c: Likewise.
20796 * tree-affine.h: Likewise.
20797 * tree-browser.c: Likewise.
20798 * tree-call-cdce.c: Likewise.
20799 * tree-cfg.c: Likewise.
20800 * tree-cfgcleanup.c: Likewise.
20801 * tree-chkp-opt.c: Likewise.
20802 * tree-chkp.c: Likewise.
20803 * tree-chrec.c: Likewise.
20804 * tree-complex.c: Likewise.
20805 * tree-data-ref.c: Likewise.
20806 * tree-dfa.c: Likewise.
20807 * tree-diagnostic.c: Likewise.
20808 * tree-dump.c: Likewise.
20809 * tree-eh.c: Likewise.
20810 * tree-emutls.c: Likewise.
20811 * tree-if-conv.c: Likewise.
20812 * tree-inline.c: Likewise.
20813 * tree-into-ssa.c: Likewise.
20814 * tree-iterator.c: Likewise.
20815 * tree-loop-distribution.c: Likewise.
20816 * tree-nested.c: Likewise.
20817 * tree-nrv.c: Likewise.
20818 * tree-object-size.c: Likewise.
20819 * tree-outof-ssa.c: Likewise.
20820 * tree-parloops.c: Likewise.
20821 * tree-phinodes.c: Likewise.
20822 * tree-predcom.c: Likewise.
20823 * tree-pretty-print.c: Likewise.
20824 * tree-pretty-print.h: Likewise.
20825 * tree-profile.c: Likewise.
20826 * tree-scalar-evolution.c: Likewise.
20827 * tree-sra.c: Likewise.
20828 * tree-ssa-address.c: Likewise.
20829 * tree-ssa-alias.c: Likewise.
20830 * tree-ssa-ccp.c: Likewise.
20831 * tree-ssa-coalesce.c: Likewise.
20832 * tree-ssa-copy.c: Likewise.
20833 * tree-ssa-copyrename.c: Likewise.
20834 * tree-ssa-dce.c: Likewise.
20835 * tree-ssa-dom.c: Likewise.
20836 * tree-ssa-dse.c: Likewise.
20837 * tree-ssa-forwprop.c: Likewise.
20838 * tree-ssa-ifcombine.c: Likewise.
20839 * tree-ssa-live.c: Likewise.
20840 * tree-ssa-loop-ch.c: Likewise.
20841 * tree-ssa-loop-im.c: Likewise.
20842 * tree-ssa-loop-ivcanon.c: Likewise.
20843 * tree-ssa-loop-ivopts.c: Likewise.
20844 * tree-ssa-loop-manip.c: Likewise.
20845 * tree-ssa-loop-niter.c: Likewise.
20846 * tree-ssa-loop-prefetch.c: Likewise.
20847 * tree-ssa-loop-unswitch.c: Likewise.
20848 * tree-ssa-loop.c: Likewise.
20849 * tree-ssa-loop.h: Likewise.
20850 * tree-ssa-math-opts.c: Likewise.
20851 * tree-ssa-operands.c: Likewise.
20852 * tree-ssa-phiopt.c: Likewise.
20853 * tree-ssa-phiprop.c: Likewise.
20854 * tree-ssa-pre.c: Likewise.
20855 * tree-ssa-propagate.c: Likewise.
20856 * tree-ssa-reassoc.c: Likewise.
20857 * tree-ssa-sccvn.c: Likewise.
20858 * tree-ssa-scopedtables.c: Likewise.
20859 * tree-ssa-sink.c: Likewise.
20860 * tree-ssa-strlen.c: Likewise.
20861 * tree-ssa-structalias.c: Likewise.
20862 * tree-ssa-tail-merge.c: Likewise.
20863 * tree-ssa-ter.c: Likewise.
20864 * tree-ssa-threadedge.c: Likewise.
20865 * tree-ssa-threadupdate.c: Likewise.
20866 * tree-ssa-uncprop.c: Likewise.
20867 * tree-ssa-uninit.c: Likewise.
20868 * tree-ssa.c: Likewise.
20869 * tree-ssanames.c: Likewise.
20870 * tree-stdarg.c: Likewise.
20871 * tree-streamer-in.c: Likewise.
20872 * tree-streamer-out.c: Likewise.
20873 * tree-streamer.c: Likewise.
20874 * tree-switch-conversion.c: Likewise.
20875 * tree-tailcall.c: Likewise.
20876 * tree-vect-data-refs.c: Likewise.
20877 * tree-vect-generic.c: Likewise.
20878 * tree-vect-loop-manip.c: Likewise.
20879 * tree-vect-loop.c: Likewise.
20880 * tree-vect-patterns.c: Likewise.
20881 * tree-vect-slp.c: Likewise.
20882 * tree-vect-stmts.c: Likewise.
20883 * tree-vectorizer.c: Likewise.
20884 * tree-vrp.c: Likewise.
20885 * tree.c: Likewise.
20886 * tsan.c: Likewise.
20887 * ubsan.c: Likewise.
20888 * valtrack.c: Likewise.
20889 * value-prof.c: Likewise.
20890 * var-tracking.c: Likewise.
20891 * varasm.c: Likewise.
20892 * varpool.c: Likewise.
20893 * vmsdbgout.c: Likewise.
20894 * vtable-verify.c: Likewise.
20896 * wide-int-print.cc: Likewise.
20897 * wide-int-print.h: Likewise.
20898 * wide-int.cc: Likewise.
20899 * xcoffout.c: Likewise.
20900 * config/aarch64/aarch64-builtins.c: Likewise.
20901 * config/aarch64/aarch64.c: Likewise.
20902 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20903 * config/alpha/alpha.c: Likewise.
20904 * config/arc/arc.c: Likewise.
20905 * config/arm/aarch-common.c: Likewise.
20906 * config/arm/arm-builtins.c: Likewise.
20907 * config/arm/arm-c.c: Likewise.
20908 * config/arm/arm.c: Likewise.
20909 * config/avr/avr-c.c: Likewise.
20910 * config/avr/avr-log.c: Likewise.
20911 * config/avr/avr.c: Likewise.
20912 * config/bfin/bfin.c: Likewise.
20913 * config/c6x/c6x.c: Likewise.
20914 * config/cr16/cr16.c: Likewise.
20915 * config/cris/cris.c: Likewise.
20916 * config/darwin-c.c: Likewise.
20917 * config/darwin.c: Likewise.
20918 * config/default-c.c: Likewise.
20919 * config/epiphany/epiphany.c: Likewise.
20920 * config/epiphany/mode-switch-use.c: Likewise.
20921 * config/epiphany/resolve-sw-modes.c: Likewise.
20922 * config/fr30/fr30.c: Likewise.
20923 * config/frv/frv.c: Likewise.
20924 * config/ft32/ft32.c: Likewise.
20925 * config/glibc-c.c: Likewise.
20926 * config/h8300/h8300.c: Likewise.
20927 * config/i386/i386-c.c: Likewise.
20928 * config/i386/i386.c: Likewise.
20929 * config/i386/msformat-c.c: Likewise.
20930 * config/i386/winnt-cxx.c: Likewise.
20931 * config/i386/winnt-stubs.c: Likewise.
20932 * config/i386/winnt.c: Likewise.
20933 * config/ia64/ia64-c.c: Likewise.
20934 * config/ia64/ia64.c: Likewise.
20935 * config/iq2000/iq2000.c: Likewise.
20936 * config/lm32/lm32.c: Likewise.
20937 * config/m32c/m32c-pragma.c: Likewise.
20938 * config/m32c/m32c.c: Likewise.
20939 * config/m32r/m32r.c: Likewise.
20940 * config/m68k/m68k.c: Likewise.
20941 * config/mcore/mcore.c: Likewise.
20942 * config/mep/mep-pragma.c: Likewise.
20943 * config/mep/mep.c: Likewise.
20944 * config/microblaze/microblaze-c.c: Likewise.
20945 * config/microblaze/microblaze.c: Likewise.
20946 * config/mips/mips.c: Likewise.
20947 * config/mmix/mmix.c: Likewise.
20948 * config/mn10300/mn10300.c: Likewise.
20949 * config/moxie/moxie.c: Likewise.
20950 * config/msp430/msp430-c.c: Likewise.
20951 * config/msp430/msp430.c: Likewise.
20952 * config/nds32/nds32-cost.c: Likewise.
20953 * config/nds32/nds32-fp-as-gp.c: Likewise.
20954 * config/nds32/nds32-intrinsic.c: Likewise.
20955 * config/nds32/nds32-isr.c: Likewise.
20956 * config/nds32/nds32-md-auxiliary.c: Likewise.
20957 * config/nds32/nds32-memory-manipulation.c: Likewise.
20958 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20959 * config/nds32/nds32-predicates.c: Likewise.
20960 * config/nds32/nds32.c: Likewise.
20961 * config/nios2/nios2.c: Likewise.
20962 * config/nvptx/nvptx.c: Likewise.
20963 * config/pa/pa.c: Likewise.
20964 * config/pdp11/pdp11.c: Likewise.
20965 * config/rl78/rl78-c.c: Likewise.
20966 * config/rl78/rl78.c: Likewise.
20967 * config/rs6000/rs6000-c.c: Likewise.
20968 * config/rs6000/rs6000.c: Likewise.
20969 * config/rx/rx.c: Likewise.
20970 * config/s390/s390-c.c: Likewise.
20971 * config/s390/s390.c: Likewise.
20972 * config/sh/sh-c.c: Likewise.
20973 * config/sh/sh-mem.cc: Likewise.
20974 * config/sh/sh.c: Likewise.
20975 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20976 * config/sh/sh_treg_combine.cc: Likewise.
20977 * config/sol2-c.c: Likewise.
20978 * config/sol2-cxx.c: Likewise.
20979 * config/sol2-stubs.c: Likewise.
20980 * config/sol2.c: Likewise.
20981 * config/sparc/sparc-c.c: Likewise.
20982 * config/sparc/sparc.c: Likewise.
20983 * config/spu/spu-c.c: Likewise.
20984 * config/spu/spu.c: Likewise.
20985 * config/stormy16/stormy16.c: Likewise.
20986 * config/tilegx/mul-tables.c: Likewise.
20987 * config/tilegx/tilegx-c.c: Likewise.
20988 * config/tilegx/tilegx.c: Likewise.
20989 * config/tilepro/mul-tables.c: Likewise.
20990 * config/tilepro/tilepro-c.c: Likewise.
20991 * config/tilepro/tilepro.c: Likewise.
20992 * config/v850/v850-c.c: Likewise.
20993 * config/v850/v850.c: Likewise.
20994 * config/vax/vax.c: Likewise.
20995 * config/visium/visium.c: Likewise.
20996 * config/vms/vms-c.c: Likewise.
20997 * config/vms/vms.c: Likewise.
20998 * config/vxworks.c: Likewise.
20999 * config/winnt-c.c: Likewise.
21000 * config/xtensa/xtensa.c: Likewise.
21001 * common/config/bfin/bfin-common.c: Likewise.
21003 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
21005 * tree.h (tree_code_for_canonical_type_merging): New function.
21006 * tree.c (gimple_canonical_types_compatible_p): Use
21007 tree_code_for_canonical_type_merging..
21009 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21013 * doc/tm.texi: Regenerate.
21014 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
21015 * target.def (TARGET_RELAXED_ORDERING): Likewise.
21016 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
21017 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
21018 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
21019 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
21020 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
21021 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
21022 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
21024 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21026 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
21027 register fma steering pass.
21028 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
21029 AARCH64_TUNE_FMA_STEERING.
21031 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
21033 * tree.c (verify_type_variant): Verify that type and variant is
21035 (gimple_canonical_types_compatible_p): Look for main variants.
21037 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
21039 * config.gcc (powerpc*-*-*): Add support for a new configure
21040 option --with-advance-toolchain=<xxx> which overrides using the
21041 default header files, libraries and dynamic linker.
21043 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
21044 specs to support the configure --with-advance-toolchain=<xxx>
21046 (INCLUDE_EXTRA_SPEC): Likewise.
21047 (LINK_OS_EXTRA_SPEC32): Likewise.
21048 (LINK_OK_EXTRA_SPEC64): Likewise.
21049 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
21050 (DYNAMIC_LINKER_PREFIX): Likewise.
21051 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
21053 (GLIBC_DYNAMIC_LINKER32): Likewise.
21054 (GLIBC_DYNAMIC_LINKER64): Likewise.
21055 (LINK_OS_LINUX_SPEC32): Likewise.
21056 (LINK_OS_LINUX_SPEC64): Likewise.
21058 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
21059 configuration option.
21061 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
21064 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
21065 to determine current function ABI.
21066 (ix86_function_value_regno_p): Ditto.
21068 2015-06-03 Martin Liska <mliska@suse.cz>
21070 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
21071 * bitmap.h (struct bitmap_usage): Likewise.
21072 * ggc-common.c (struct ggc_usage): Likewise.
21073 * mem-stats.h (struct mem_location): Likewise.
21074 (struct mem_usage): Likewise.
21075 * vec.c (struct vec_usage): Likewise.
21077 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
21079 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
21082 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
21084 * doc/plugins.texi (enum plugin_event): New event.
21085 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
21086 and PLUGIN_FINISH_FUNCTION.
21087 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
21088 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
21090 2015-06-03 Richard Biener <rguenther@suse.de>
21092 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
21093 compute GROUP_GAP for the first element.
21094 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
21097 2015-06-03 Nick Clifton <nickc@redhat.com>
21099 * config/rl78/rl78-real.md: Add peepholes to avoid a register
21100 copy when calling a function.
21101 * config/rl78/rl78.c (need_to_save): Do not push the frame
21102 pointer in an interrupt handler prologue if it is never used.
21104 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21106 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
21108 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
21110 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
21111 reference when cloning alias node.
21113 2015-06-03 Martin Liska <mliska@suse.cz>
21115 * alloc-pool.h (struct pool_usage): Correct space padding.
21116 * ggc-page.c (ggc_print_statistics): Align columns in a report.
21117 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
21118 * tree.c (dump_tree_statistics): Align columns in a report.
21120 2015-06-03 Martin Liska <mliska@suse.cz>
21122 * alloc-pool.c (allocate_pool_descriptor): Remove.
21123 (struct pool_output_info): Likewise.
21124 (print_alloc_pool_statistics): Likewise.
21125 (dump_alloc_pool_statistics): Likewise.
21126 * alloc-pool.h (struct pool_usage): New struct.
21127 (pool_allocator::initialize): Change usage of memory statistics
21128 to a new interface.
21129 (pool_allocator::release): Likewise.
21130 (pool_allocator::allocate): Likewise.
21131 (pool_allocator::remove): Likewise.
21132 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
21133 for a pool allocator.
21134 * mem-stats.h (struct mem_location): Add new ctor.
21135 (struct mem_usage): Add counter for number of
21137 (mem_alloc_description::register_descriptor): New overload of
21138 * mem-stats.h (mem_location::to_string): New function.
21139 * bitmap.h (struct bitmap_usage): Use this new function.
21140 * ggc-common.c (struct ggc_usage): Likewise.
21143 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
21145 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
21146 of GCC_INSN_FLAGS_H block.
21148 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
21150 * explow.c (plus_constant): Update check after force_const_mem call
21151 to see if the value returned is not a NULL_RTX.
21153 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
21155 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
21156 remove instumentation thunks calling reachable functions.
21157 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
21158 * lto/lto-partition.c (privatize_symbol_name_1): New.
21159 (privatize_symbol_name): Privatize both decl and orig_decl
21160 names for instrumented functions.
21161 * cgraph.c (cgraph_node::verify_node): Add transparent
21162 alias chain check for instrumented node.
21164 2015-06-03 Marek Polacek <polacek@redhat.com>
21168 * tree.c (attribute_value_equal): Handle attribute format.
21169 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
21171 2015-06-03 Richard Biener <rguenther@suse.de>
21173 PR tree-optimization/63916
21174 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
21175 Forward-propagate non-invariant addresses by splicing their
21176 reference ops if the result isn't going to be used by PRE.
21177 (vn_reference_lookup_3): Remove pointless assert.
21179 2015-06-03 Richard Biener <rguenther@suse.de>
21181 PR tree-optimization/66375
21182 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
21183 add to the evolution before following SSA edges.
21185 2015-06-03 Bin Cheng <bin.cheng@arm.com>
21187 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
21188 (dump_use, dump_cand, find_induction_variables): Pass new argument
21190 (record_use): Preserve the ssa name information in IV.
21192 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
21194 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
21196 (add_mode_tests): Don't add mode tests if the predicate only
21197 accepts scalar constant integers. Otherwise, allow the mode
21198 of "op" to be VOIDmode if the predicate does accept such integers.
21200 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
21203 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
21204 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
21205 (aarch64_secondary_reload): Likewise
21206 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
21208 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
21211 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
21212 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21215 * cprop.c (try_replace_reg): Check cost of constants before propagating.
21217 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21219 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
21220 provide access to the IBM extended double floating point mode if
21221 long double is IEEE 128-bit floating point.
21222 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
21223 point if long double is the IBM extended double type.
21225 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
21226 enable adding IEEE 128-bit floating point support.
21227 (-mfloat128-software): Likewise.
21228 (-mfloat128-sw): Likewise.
21230 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
21231 128-bit floating point types to occupy any register if
21232 -mlong-double-64. Do not allow use of IFmode/KFmode unless
21233 -mfloat128-software is enabled.
21234 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
21236 (rs6000_option_override_internal): Add -mfloat128-* support.
21237 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
21239 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
21240 and float128 type nodes.
21241 (ieee128_float_type_node): Likewise.
21242 (ibm128_float_type_node): Likewise.
21244 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
21247 * config/aarch64/geniterators.sh: Rewrite in awk.
21249 2015-06-02 Martin Liska <mliska@suse.cz>
21251 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
21252 values to avoid -Wmaybe-uninitialized errors.
21254 2015-06-02 Richard Biener <rguenther@suse.de>
21257 * dwarf2out.c (lookup_context_die): New function.
21258 (resolve_addr): Avoid forcing a full DIE for the
21259 target of a DW_TAG_GNU_call_site during late compilation.
21260 Instead create a stub DIE without a type if we have a
21261 context DIE present.
21263 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
21265 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
21267 2015-06-02 Bin Cheng <bin.cheng@arm.com>
21269 PR tree-optimization/48052
21270 * cfgloop.h (struct control_iv): New.
21271 (struct loop): New field control_ivs.
21272 * tree-ssa-loop-niter.c : Include "stor-layout.h".
21273 (number_of_iterations_lt): Set no_overflow information.
21274 (number_of_iterations_exit): Init control iv in niter struct.
21275 (record_control_iv): New.
21276 (estimate_numbers_of_iterations_loop): Call record_control_iv.
21277 (loop_exits_before_overflow): New. Interface factored out of
21278 scev_probably_wraps_p.
21279 (scev_probably_wraps_p): Factor loop niter related code into
21280 loop_exits_before_overflow.
21281 (free_numbers_of_iterations_estimates_loop): Free control ivs.
21282 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
21284 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
21286 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
21287 the target doesn't belong to the current function.
21289 2015-06-02 Marek Polacek <polacek@redhat.com>
21291 PR middle-end/66345
21292 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
21293 get_maxval_strlen does not produce an INTEGER_CST.
21295 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
21297 * config/arc/constraints.md: Use lower-case names in match_code.
21298 * config/mmix/constraints.md: Likewise.
21300 2015-06-02 Richard Biener <rguenther@suse.de>
21302 PR tree-optimization/65961
21303 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
21304 check and clarify dump message.
21305 (vect_build_slp_tree): If all children are built up from scalars
21306 build up the parent from scalars instead.
21307 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
21309 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
21312 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
21313 instead of print ... .
21315 2015-06-02 Alan Modra <amodra@gmail.com>
21317 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
21320 2015-06-02 Bin Cheng <bin.cheng@arm.com>
21322 PR tree-optimization/52563
21323 PR tree-optimization/62173
21324 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
21325 (alloc_iv, set_iv): New parameter.
21326 (determine_biv_step): Delete.
21327 (find_bivs): Inline original determine_biv_step. Pass new
21328 argument to set_iv.
21329 (idx_find_step): Use no_overflow information for conversion.
21330 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
21331 resolve_mixers handle folded_casts.
21332 (instantiate_scev_name): Change bool parameter to bool pointer.
21333 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
21334 (instantiate_array_ref, instantiate_scev_not): Ditto.
21335 (instantiate_scev_3, instantiate_scev_2): Ditto.
21336 (instantiate_scev_1, instantiate_scev_r): Ditto.
21337 (instantiate_scev_convert, ): Change parameter. Pass argument
21338 to chrec_convert_aggressive.
21339 (instantiate_scev): Change argument.
21340 (resolve_mixers): New parameter and set it.
21341 (scev_const_prop): New argument.
21342 * tree-scalar-evolution.h (resolve_mixers): New parameter.
21343 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
21345 (chrec_convert): New parameter. Move definition below.
21346 (chrec_convert_aggressive): New parameter and set it. Call
21347 convert_affine_scev.
21348 * tree-chrec.h (chrec_convert): New parameter.
21349 (chrec_convert_aggressive): Ditto.
21351 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
21353 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
21354 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
21355 the LHS of a no-return call if its type has variable size.
21356 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21357 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
21359 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
21361 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
21362 * config.in: Regenerate.
21364 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21366 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
21367 consecutive accesses within outer-loop with force_vectorize
21368 for references with zero step in inner-loop.
21370 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
21372 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
21373 rather than from gcc/build directory.
21375 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
21378 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
21379 for __sync memory models, emit initial loads and final barriers as
21382 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
21385 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
21386 (aarch64_split_atomic_op): Check for __sync memory models, emit
21387 appropriate initial loads and final barriers.
21389 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
21391 * Makefile.in: Fix gcov dependencies that should
21392 not point to a build folder.
21394 2015-06-01 Richard Biener <rguenther@suse.de>
21397 2015-05-29 Richard Biener <rguenther@suse.de>
21399 PR tree-optimization/66314
21400 * tree-ssa-threadupdate.c (create_block_for_threading): Add
21401 parameter that says which loop the new block belongs to.
21402 (ssa_create_duplicates): Blocks duplicated for the threaded
21403 path belong to the loop of the thread destination.
21405 2015-06-01 Martin Liska <mliska@suse.cz>
21407 * sched-deps.c: Include pool-alloc.h before
21408 cselib.h header file is included.
21410 2015-06-01 Richard Biener <rguenther@suse.de>
21412 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
21415 2015-06-01 Martin Liska <mliska@suse.cz>
21417 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
21418 a function local variable.
21420 2015-06-01 Martin Liska <mliska@suse.cz>
21422 * alloc-pool.c (create_alloc_pool): Remove.
21423 (empty_alloc_pool): Likewise.
21424 (free_alloc_pool): Likewise.
21425 (free_alloc_pool_if_empty): Likewise.
21426 (pool_alloc): Likewise.
21427 (pool_free): Likewise.
21428 * alloc-pool.h: Remove old declarations.
21430 2015-06-01 Martin Liska <mliska@suse.cz>
21432 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
21433 (ira_create_object): Likewise.
21434 (ira_create_allocno): Likewise.
21435 (ira_create_live_range): Likewise.
21436 (copy_live_range): Likewise.
21437 (ira_finish_live_range): Likewise.
21438 (ira_free_allocno_costs): Likewise.
21439 (finish_allocno): Likewise.
21440 (finish_allocnos): Likewise.
21441 (initiate_prefs): Likewise.
21442 (ira_create_pref): Likewise.
21443 (finish_pref): Likewise.
21444 (finish_prefs): Likewise.
21445 (initiate_copies): Likewise.
21446 (ira_create_copy): Likewise.
21447 (finish_copy): Likewise.
21448 (finish_copies): Likewise.
21449 (finish_prefs): Likewise.
21451 2015-06-01 Martin Liska <mliska@suse.cz>
21453 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
21454 (allocate_and_init_ipcp_value): Likewise.
21455 (ipcp_lattice::add_value): Likewise.
21456 (merge_agg_lats_step): Likewise.
21457 (ipcp_driver): Likewise.
21458 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
21459 (ipa_free_all_structures_after_iinln): Likewise.
21460 * ipa-prop.h: Likewise.
21462 2015-06-01 Martin Liska <mliska@suse.cz>
21464 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
21466 (set_hint_predicate): Likewise.
21467 (inline_summary_alloc): Likewise.
21468 (reset_inline_edge_summary): Likewise.
21469 (reset_inline_summary): Likewise.
21470 (set_cond_stmt_execution_predicate): Likewise.
21471 (set_switch_stmt_execution_predicate): Likewise.
21472 (compute_bb_predicates): Likewise.
21473 (estimate_function_body_sizes): Likewise.
21474 (inline_free_summary): Likewise.
21476 2015-06-01 Martin Liska <mliska@suse.cz>
21478 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
21479 (ipa_edge_duplication_hook): Likewise.
21480 (ipa_free_all_structures_after_ipa_cp): Likewise.
21481 (ipa_free_all_structures_after_iinln): Likewise.
21483 2015-06-01 Martin Liska <mliska@suse.cz>
21485 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
21486 (ipa_profile_generate_summary): Likewise.
21487 (ipa_profile_read_summary): Likewise.
21488 (ipa_profile): Likewise.
21490 2015-06-01 Martin Liska <mliska@suse.cz>
21492 * tree-ssa-structalias.c (new_var_info): Use new type-based
21494 (new_constraint): Likewise.
21495 (init_alias_vars): Likewise.
21496 (delete_points_to_sets): Likewise.
21498 2015-06-01 Martin Liska <mliska@suse.cz>
21500 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
21501 (free_strinfo): Likewise.
21502 (pass_strlen::execute): Likewise.
21504 2015-06-01 Martin Liska <mliska@suse.cz>
21506 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
21508 (vn_reference_insert_pieces): Likewise.
21509 (vn_phi_insert): Likewise.
21510 (visit_reference_op_call): Likewise.
21511 (copy_phi): Likewise.
21512 (copy_reference): Likewise.
21513 (process_scc): Likewise.
21514 (allocate_vn_table): Likewise.
21515 (free_vn_table): Likewise.
21517 2015-06-01 Martin Liska <mliska@suse.cz>
21519 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
21521 (add_repeat_to_ops_vec): Likewise.
21522 (get_ops): Likewise.
21523 (maybe_optimize_range_tests): Likewise.
21524 (init_reassoc): Likewise.
21525 (fini_reassoc): Likewise.
21527 2015-06-01 Martin Liska <mliska@suse.cz>
21529 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
21531 (bitmap_set_new): Likewise.
21532 (get_or_alloc_expr_for_constant): Likewise.
21533 (get_or_alloc_expr_for): Likewise.
21534 (phi_translate_1): Likewise.
21535 (compute_avail): Likewise.
21536 (init_pre): Likewise.
21537 (fini_pre): Likewise.
21539 2015-06-01 Martin Liska <mliska@suse.cz>
21541 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
21542 (delete_dep_node): Likewise.
21543 (create_deps_list): Likewise.
21544 (free_deps_list): Likewise.
21545 (sched_deps_init): Likewise.
21546 (sched_deps_finish): Likewise.
21548 2015-06-01 Martin Liska <mliska@suse.cz>
21550 * regcprop.c (free_debug_insn_changes): Use new type-based
21552 (replace_oldest_value_reg): Likewise.
21553 (pass_cprop_hardreg::execute): Likewise.
21555 2015-06-01 Martin Liska <mliska@suse.cz>
21557 * ira-build.c (initiate_cost_vectors): Use new type-based
21559 (ira_allocate_cost_vector): Likewise.
21560 (ira_free_cost_vector): Likewise.
21561 (finish_cost_vectors): Likewise.
21563 2015-06-01 Martin Liska <mliska@suse.cz>
21565 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
21567 (free_sched_pools): Likewise.
21568 * sel-sched-ir.h (_list_alloc): Likewise.
21569 (_list_remove): Likewise.
21571 2015-06-01 Martin Liska <mliska@suse.cz>
21573 * stmt.c (add_case_node): Use new type-based pool allocator.
21574 (expand_case): Likewise.
21575 (expand_sjlj_dispatch_table): Likewise.
21577 2015-06-01 Martin Liska <mliska@suse.cz>
21579 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
21580 (free_bb): Likewise.
21581 (pass_cse_reciprocals::execute): Likewise.
21583 2015-06-01 Martin Liska <mliska@suse.cz>
21585 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
21586 (sra_deinitialize) Likewise.
21587 (create_access_1) Likewise.
21588 (build_accesses_from_assign) Likewise.
21589 (create_artificial_child_access) Likewise.
21591 2015-06-01 Martin Liska <mliska@suse.cz>
21593 * dse.c (get_group_info):Use new type-based pool allocator.
21594 (dse_step0) Likewise.
21595 (free_store_info) Likewise.
21596 (delete_dead_store_insn) Likewise.
21597 (free_read_records) Likewise.
21598 (record_store) Likewise.
21599 (replace_read) Likewise.
21600 (check_mem_read_rtx) Likewise.
21601 (scan_insn) Likewise.
21602 (dse_step1) Likewise.
21603 (dse_step7) Likewise.
21605 2015-06-01 Martin Liska <mliska@suse.cz>
21607 * df-scan.c (struct df_scan_problem_data):Use new type-based
21609 (df_scan_free_internal) Likewise.
21610 (df_scan_alloc) Likewise.
21611 (df_grow_reg_info) Likewise.
21612 (df_free_ref) Likewise.
21613 (df_insn_create_insn_record) Likewise.
21614 (df_mw_hardreg_chain_delete) Likewise.
21615 (df_insn_info_delete) Likewise.
21616 (df_free_collection_rec) Likewise.
21617 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
21618 (df_sort_and_compress_mws) Likewise.
21619 (df_ref_create_structure) Likewise.
21620 (df_ref_record) Likewise.
21622 2015-06-01 Martin Liska <mliska@suse.cz>
21624 * df-problems.c (df_chain_create):Use new type-based pool allocator.
21625 (df_chain_unlink_1) Likewise.
21626 (df_chain_unlink) Likewise.
21627 (df_chain_remove_problem) Likewise.
21628 (df_chain_alloc) Likewise.
21629 (df_chain_free) Likewise.
21630 * df.h (struct dataflow) Likewise.
21632 2015-06-01 Martin Liska <mliska@suse.cz>
21634 * cselib.c (new_elt_list):Use new type-based pool allocator.
21635 (new_elt_loc_list) Likewise.
21636 (unchain_one_elt_list) Likewise.
21637 (unchain_one_elt_loc_list) Likewise.
21638 (unchain_one_value) Likewise.
21639 (new_cselib_val) Likewise.
21640 (cselib_init) Likewise.
21641 (cselib_finish) Likewise.
21643 2015-06-01 Martin Liska <mliska@suse.cz>
21645 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
21646 (sh_reorg) Likewise.
21648 2015-06-01 Martin Liska <mliska@suse.cz>
21650 * cfg.c (initialize_original_copy_tables):Use new type-based
21652 (free_original_copy_tables) Likewise.
21653 (copy_original_table_clear) Likewise.
21654 (copy_original_table_set) Likewise.
21656 2015-06-01 Martin Liska <mliska@suse.cz>
21658 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
21660 (asan_mem_ref_new) Likewise.
21661 (free_mem_ref_resources) Likewise.
21663 2015-06-01 Martin Liska <mliska@suse.cz>
21665 * var-tracking.c (variable_htab_free):Use new type-based
21667 (attrs_list_clear) Likewise.
21668 (attrs_list_insert) Likewise.
21669 (attrs_list_copy) Likewise.
21670 (shared_hash_unshare) Likewise.
21671 (shared_hash_destroy) Likewise.
21672 (unshare_variable) Likewise.
21673 (var_reg_delete_and_set) Likewise.
21674 (var_reg_delete) Likewise.
21675 (var_regno_delete) Likewise.
21676 (drop_overlapping_mem_locs) Likewise.
21677 (variable_union) Likewise.
21678 (insert_into_intersection) Likewise.
21679 (canonicalize_values_star) Likewise.
21680 (variable_merge_over_cur) Likewise.
21681 (dataflow_set_merge) Likewise.
21682 (remove_duplicate_values) Likewise.
21683 (variable_post_merge_new_vals) Likewise.
21684 (dataflow_set_preserve_mem_locs) Likewise.
21685 (dataflow_set_remove_mem_locs) Likewise.
21686 (variable_from_dropped) Likewise.
21687 (variable_was_changed) Likewise.
21688 (set_slot_part) Likewise.
21689 (clobber_slot_part) Likewise.
21690 (delete_slot_part) Likewise.
21691 (loc_exp_insert_dep) Likewise.
21692 (notify_dependents_of_changed_value) Likewise.
21693 (emit_notes_for_differences_1) Likewise.
21694 (vt_emit_notes) Likewise.
21695 (vt_initialize) Likewise.
21696 (vt_finalize) Likewise.
21698 2015-06-01 Martin Liska <mliska@suse.cz>
21700 * ira-color.c (init_update_cost_records):Use new type-based
21702 (get_update_cost_record) Likewise.
21703 (free_update_cost_record_list) Likewise.
21704 (finish_update_cost_records) Likewise.
21705 (initiate_cost_update) Likewise.
21707 2015-06-01 Martin Liska <mliska@suse.cz>
21709 * lra.c (init_insn_regs): Use new type-based pool allocator.
21710 (new_insn_reg) Likewise.
21711 (free_insn_reg) Likewise.
21712 (free_insn_regs) Likewise.
21713 (finish_insn_regs) Likewise.
21714 (init_insn_recog_data) Likewise.
21715 (init_reg_info) Likewise.
21716 (finish_reg_info) Likewise.
21717 (lra_free_copies) Likewise.
21718 (lra_create_copy) Likewise.
21719 (invalidate_insn_data_regno_info) Likewise.
21721 2015-06-01 Martin Liska <mliska@suse.cz>
21723 * lra-lives.c (free_live_range): Use new type-based pool allocator.
21724 (free_live_range_list) Likewise.
21725 (create_live_range) Likewise.
21726 (copy_live_range) Likewise.
21727 (lra_merge_live_ranges) Likewise.
21728 (remove_some_program_points_and_update_live_ranges) Likewise.
21729 (lra_live_ranges_init) Likewise.
21730 (lra_live_ranges_finish) Likewise.
21732 2015-06-01 Martin Liska <mliska@suse.cz>
21734 * et-forest.c (et_new_occ): Use new type-based pool allocator.
21735 (et_new_tree): Likewise.
21736 (et_free_tree): Likewise.
21737 (et_free_tree_force): Likewise.
21738 (et_free_pools): Likewise.
21739 (et_split): Likewise.
21741 2015-06-01 Martin Liska <mliska@suse.cz>
21743 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
21745 * alloc-pool.h (pool_allocator::pool_allocator): New function.
21746 (pool_allocator::release): Likewise.
21747 (inline pool_allocator::release_if_empty): Likewise.
21748 (inline pool_allocator::~pool_allocator): Likewise.
21749 (pool_allocator::allocate): Likewise.
21750 (pool_allocator::remove): Likewise.
21752 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21754 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
21757 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21759 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
21761 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
21762 (arm_macro_fusion_p): Likewise.
21763 (arm_macro_fusion_pair_p): Likewise.
21765 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21767 * config/aarch64/aarch64-protos.h (tune_params): Rename
21768 fuseable_ops to fusible_ops.
21769 * config/aarch64/aarch64.c (generic_tunings): Rename
21770 fuseable_ops to fusible_ops.
21771 (cortexa53_tunings): Likewise.
21772 (cortexa57_tunings): Likewise.
21773 (thunderx_tunings): Likewise.
21774 (xgene1_tunings): Likewise.
21775 (aarch64_macro_fusion_p): Likewise.
21776 (aarch64_macro_fusion_pair_p): Likewise.
21778 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
21780 * config/s390/driver-native.c: New file.
21781 * config/s390/x-native: New file.
21782 * config.host: Add new files for s390.
21783 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
21785 * config.gcc: Likewise.
21786 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
21787 * config/s390/s390-opts.h (enum processor_type): Ditto.
21788 * config/s390/s390.c (s390_option_override): Catch unhandled
21791 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
21794 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
21795 redirection for instrumented calls.
21796 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
21797 (append_compiler_options): Append -fcheck-pointer-bounds.
21798 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
21799 (chkp_redirect_edge): New.
21800 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
21801 (chkp_redirect_edge): New.
21803 2015-06-01 Richard Biener <rguenther@suse.de>
21805 PR tree-optimization/66280
21806 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
21809 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21811 * config/aarch64/aarch64.md
21812 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
21815 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
21817 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
21818 Remove obsolete kludge.
21820 2015-06-01 Richard Biener <rguenther@suse.de>
21822 * tree-ssa-reassoc.c (get_rank): Simplify.
21824 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
21826 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
21827 * configure: Regenerated.
21829 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
21831 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
21832 issue (add space between string literal and macro).
21833 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
21835 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
21837 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
21838 implict or explicit -fPIE or -fpie.
21840 2015-05-30 Mike Frysinger <vapier@gentoo.org>
21842 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
21844 2015-05-28 DJ Delorie <dj@redhat.com>
21846 * expmed.c (extract_bit_field_1): Avoid clobbering a
21847 yet-to-be-used base/index register.
21849 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
21851 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
21852 (alias_stats): Add num_universal.
21853 (alias_set_subset_of): Special case pointers; be ready for NULL
21855 (alias_sets_conflict_p): Special case pointers; be ready for NULL
21857 (init_alias_set_entry): Break out from ...
21858 (record_alias_subset): ... here; propagate new fields;
21859 allocate children only when really needed.
21860 (get_alias_set): Do less generous pointer globbing.
21861 (dump_alias_stats_in_alias_c): Update statistics.
21863 2015-05-30 Alan Modra <amodra@gmail.com>
21865 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
21866 correct block for use of r12.
21867 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
21869 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21872 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
21875 2015-05-29 Jakub Jelinek <jakub@redhat.com>
21877 PR tree-optimization/66142
21878 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
21879 virtual phis that feed themselves.
21881 2015-05-29 Richard Biener <rguenther@suse.de>
21883 PR tree-optimization/66314
21884 * tree-ssa-threadupdate.c (create_block_for_threading): Add
21885 parameter that says which loop the new block belongs to.
21886 (ssa_create_duplicates): Blocks duplicated for the threaded
21887 path belong to the loop of the thread destination.
21889 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21891 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
21892 to cleanup-saved-temps.
21893 * doc/sourcebuild.texi (Clean up generated test files): Expand
21895 (dg-keep-saved-temps): Document new proc.
21896 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
21897 cleanup-saved-temps): Remove.
21899 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
21901 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
21902 gcc_AC_CHECK_DECLS.
21903 * configure: Regenerate.
21905 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21907 * config/nios2/linux.h (CPP_SPEC): Define.
21909 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21911 * config/microblaze/linux.h (CPP_SPEC): Define.
21913 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21915 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
21916 -pthread is specified.
21918 2015-05-28 Richard Biener <rguenther@suse.de>
21920 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
21921 (vect_fixup_scalar_cycles_with_patterns): Likewise.
21922 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
21923 after pattern recog.
21924 (vect_create_epilog_for_reduction): Properly handle reductions
21926 (vectorizable_reduction): Likewise.
21927 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
21929 (vect_get_constant_vectors): Create the correct number of
21930 initial values for reductions.
21931 (vect_schedule_slp_instance): Handle reduction chains that are
21932 type changing properly.
21933 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
21935 2015-05-28 Richard Biener <rguenther@suse.de>
21937 PR tree-optimization/66142
21938 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
21939 values better in memcpy destination handling. Handle non-aliasing
21942 2015-05-28 Lawrence Velázquez <vq@larryv.me>
21945 * config/darwin-c.c (version_components): New global enum.
21946 (parse_version, version_as_legacy_macro)
21947 (version_as_modern_macro, macosx_version_as_macro): New functions.
21948 (version_as_macro): Remove.
21949 (darwin_cpp_builtins): Use new function.
21951 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
21953 * builtins.c (expand_builtin_acc_on_device): Mark parameters
21954 with ATTRIBUTE_UNUSED.
21956 2015-05-28 Julian Brown <julian@codesourcery.com>
21960 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
21961 sequence for !ACCEL_COMPILER.
21963 2015-05-28 Nick Clifton <nickc@redhat.com>
21965 * config/rx/rx.c (push_regs): New function. Extracts code from...
21966 (rx_expand_prologue): ... here. Use push_regs to push even small
21967 spans of registers.
21968 (pop_regs): New function.
21969 (rx_expand_epilogue): Use pop_regs to pop even small spans of
21972 2015-05-28 Richard Biener <rguenther@suse.de>
21974 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
21976 (SLP_INSTANCE_BODY_COST_VEC): Remove.
21977 (vect_update_slp_costs_according_to_vf): Likewise.
21978 (vect_slp_analyze_operations): Update prototype.
21979 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
21980 vect_update_slp_costs_according_to_vf, adjust.
21981 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
21982 (vect_analyze_slp_cost_1): Likewise.
21983 (vect_analyze_slp_cost): Likewise. Properly deal with
21984 widening reduction ops. Commit body costs.
21985 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
21986 cost for loops from here.
21987 (vect_slp_analyze_operations): But do it from here when
21988 the vectorization factor is known and stmts are analyzed.
21989 (vect_bb_vectorization_profitable_p): Simplify.
21990 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
21991 (vect_update_slp_costs_according_to_vf): Remove.
21993 2015-05-27 Magnus Granberg <zorry@gentoo.org>
21994 H.J. Lu <hongjiu.lu@intel.com>
21996 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
21997 (BUILD_CFLAGS): Likewise.
21998 (BUILD_CXXFLAGS): Likewise.
21999 (LINKER): Add @NO_PIE_FLAG@.
22000 (BUILD_LDFLAGS): Likewise.
22001 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
22002 --enable-default-pie.
22003 * common.opt (fPIE): Initialize to -1.
22005 (no-pie): New option.
22006 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
22007 * configure.ac: Add --enable-default-pie.
22008 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
22009 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
22010 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
22011 * gcc.c (NO_PIE_SPEC): New.
22012 (PIE_SPEC): Likewise.
22013 (NO_FPIE1_SPEC): Likewise.
22014 (FPIE1_SPEC): Likewise.
22015 (NO_FPIE2_SPEC): Likewise.
22016 (FPIE2_SPEC): Likewise.
22017 (NO_FPIE2_SPEC): Likewise.
22018 (FPIE_SPEC): Likewise.
22019 (NO_FPIE_SPEC): Likewise.
22020 (NO_FPIC1_SPEC): Likewise.
22021 (FPIC1_SPEC): Likewise.
22022 (NO_FPIC2_SPEC): Likewise.
22023 (FPIC2_SPEC): Likewise.
22024 (NO_FPIC2_SPEC): Likewise.
22025 (FPIC_SPEC): Likewise.
22026 (NO_FPIC_SPEC): Likewise.
22027 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
22028 (FPIE1_OR_FPIC1_SPEC): Likewise.
22029 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
22030 (FPIE2_OR_FPIC2_SPEC): Likewise.
22031 (NO_FPIE_AND_FPIC_SPEC): Likewise.
22032 (FPIE_OR_FPIC_SPEC): Likewise.
22033 (LD_PIE_SPEC): Likewise.
22034 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
22035 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
22036 * config/darwin.h (PIE_SPEC): Renamed to ...
22037 (DARWIN_PIE_SPEC): This.
22038 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
22039 * config/darwin9.h (PIE_SPEC): Renamed to ...
22040 (DARWIN_PIE_SPEC): This.
22041 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
22042 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22043 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
22044 FPIE2_OR_FPIC2_SPEC.
22045 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
22046 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
22047 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
22048 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22049 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22050 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22051 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
22052 * config/m32r/m32r.h (ASM_SPEC): Likewise.
22053 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
22054 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
22055 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
22056 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
22057 * config/sparc/linux.h (ASM_SPEC): Likewise.
22058 * config/sparc/linux64.h (ASM_SPEC): Likewise.
22059 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
22060 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
22061 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22062 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22063 * config/sparc/sparc.h (ASM_SPEC): Likewise.
22064 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
22065 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
22066 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
22067 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
22068 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
22069 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
22070 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
22071 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
22072 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
22073 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
22074 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
22075 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
22076 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22077 * config/vax/linux.h (ASM_SPEC): Likewise.
22078 * doc/install.texi: Document --enable-default-pie.
22079 * doc/invoke.texi: Document -no-pie.
22080 * config.in: Regenerated.
22081 * configure: Likewise.
22083 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
22085 PR rtl-optimization/66168
22086 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
22087 can_move_invariant_reg.
22089 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
22092 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
22093 REG_EQUAL note when doing insert.
22095 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
22096 instead of "%d" for 'o' operand.
22098 2015-05-27 Nathan Sidwell <nathan@acm.org>
22101 * tree.c (build_pointer_type_for_mode): Canonical type does not
22102 inherit can_alias_all.
22103 (build_reference_type_for_mode): Likewise.
22105 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
22107 * expr.h (array_at_struct_end_p): Move to...
22108 (array_ref_element_size): Likewise.
22109 (component_ref_field_offset): Likewise.
22110 * tree.h (array_ref_element_size): ...here.
22111 (array_at_struct_end_p): Likewise.
22112 (component_ref_field_offset): Likewise.
22113 * expr.c (array_ref_element_size): Move to...
22114 (array_ref_low_bound): Likewise.
22115 (array_at_struct_end_p): Likewise.
22116 (array_ref_up_bound): Likewise.
22117 (component_ref_field_offset): Likewise.
22118 * tree.c (array_ref_element_size): ...here.
22119 (array_ref_low_bound): Likewise.
22120 (array_ref_up_bound): Likewise.
22121 (array_at_struct_end_p): Likewise.
22122 (component_ref_field_offset): Likewise.
22124 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
22125 Szabolcs Nagy <szabolcs.nagy@arm.com>
22127 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
22129 2015-05-27 Jason Merrill <jason@redhat.com>
22132 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
22133 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
22134 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
22136 2015-05-22 Aditya Kumar <hiraditya@msn.com>
22138 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
22141 * statistics.c (statistics_fini_pass): Print pass name.
22143 2015-05-27 Richard Biener <rguenther@suse.de>
22145 PR tree-optimization/66272
22147 2014-08-15 Richard Biener <rguenther@suse.de>
22149 PR tree-optimization/62031
22150 * tree-data-ref.c (dr_analyze_indices): Do not set
22151 DR_UNCONSTRAINED_BASE.
22152 (dr_may_alias_p): All indirect accesses have to go the
22153 formerly DR_UNCONSTRAINED_BASE path.
22154 * tree-data-ref.h (struct indices): Remove
22155 unconstrained_base member.
22156 (DR_UNCONSTRAINED_BASE): Remove.
22158 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
22160 * dwarf2out.c: Remove block_map.
22161 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
22162 (gen_lexical_block_die): Same.
22163 (dwarf2out_function_decl): Remove block_map use.
22164 (dwarf2out_c_finalize): Same.
22165 * tree-core.h (struct tree_block): Add die field.
22166 * tree.h (BLOCK_DIE): New.
22168 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22171 * expr.c (memory_load_overlap): New function.
22172 (emit_push_insn): When pushing partial args to the stack would
22173 clobber the register part load the overlapping part into a pseudo
22174 and put it into the hard reg after pushing. Change return type
22175 to bool. Add bool argument.
22176 * expr.h (emit_push_insn): Change return type to bool.
22178 * calls.c (expand_call): Cancel sibcall optimization when encountering
22179 partial argument on targets with ARGS_GROW_DOWNWARD and
22180 !STACK_GROWS_DOWNWARD.
22181 (emit_library_call_value_1): Update callsite of emit_push_insn.
22182 (store_one_arg): Likewise.
22184 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
22186 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
22188 2015-05-27 Martin Liska <mliska@suse.cz>
22190 * Makefile.in: Add additional dependencies related to memory report
22192 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
22193 * bitmap.c (struct bitmap_descriptor_d): Remove.
22194 (struct loc): Likewise.
22195 (struct bitmap_desc_hasher): Likewise.
22196 (bitmap_desc_hasher::hash): Likewise.
22197 (bitmap_desc_hasher::equal): Likewise.
22198 (get_bitmap_descriptor): Likewise.
22199 (bitmap_register): User new memory descriptor API.
22200 (register_overhead): Likewise.
22201 (bitmap_find_bit): Register nsearches and search_iter statistics.
22202 (struct bitmap_output_info): Remove.
22203 (print_statistics): Likewise.
22204 (dump_bitmap_statistics): Use new memory descriptor.
22205 * bitmap.h (struct bitmap_usage): New class.
22206 * genmatch.c: Extend header file inclusion.
22207 * genpreds.c: Likewise.
22208 * ggc-common.c (struct ggc_usage): New class.
22209 (struct ggc_loc_desc_hasher): Remove.
22210 (ggc_loc_desc_hasher::hash): Likewise.
22211 (ggc_loc_desc_hasher::equal): Likewise.
22212 (struct ggc_ptr_hash_entry): Likewise.
22213 (struct ptr_hash_hasher): Likewise.
22214 (ptr_hash_hasher::hash): Likewise.
22215 (ptr_hash_hasher::equal): Likewise.
22216 (make_loc_descriptor): Likewise.
22217 (ggc_prune_ptr): Likewise.
22218 (dump_ggc_loc_statistics): Use new memory descriptor.
22219 (ggc_record_overhead): Likewise.
22220 (ggc_free_overhead): Likewise.
22221 (final_cmp_statistic): Remove.
22222 (cmp_statistic): Likewise.
22223 (ggc_add_statistics): Liekwise.
22224 (ggc_prune_overhead_list): Likewise.
22225 * hash-map-traits.h: New file.
22226 * hash-map.h (struct default_hashmap_traits): Move the traits to a
22227 separate header file.
22228 * hash-set.h: Pass memory statistics info to ctor.
22229 * hash-table.c (void dump_hash_table_loc_statistics): New function.
22230 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
22231 (hash_table::~hash_table): Register memory release operation.
22232 (hash_table::alloc_entries): Handle memory allocation operation.
22233 (hash_table::expand): Likewise.
22234 * inchash.c (iterative_hash_hashval_t): Move implementation to header
22236 (iterative_hash_host_wide_int): Likewise.
22237 * inchash.h (class hash): Likewise.
22238 * mem-stats-traits.h: New file.
22239 * mem-stats.h: New file.
22240 (mem_location): Add new class.
22241 (mem_usage): Likewise.
22242 (mem_alloc_description): Likewise.
22243 * sese.c: Add new header file inclusision.
22244 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
22246 * tree-sra.c: Add new header file inclusision.
22247 * vec.c (struct vec_descriptor): Remove.
22248 (hash_descriptor): Likewise.
22249 (struct vec_usage): Likewise.
22250 (struct ptr_hash_entry): Likewise.
22251 (hash_ptr): Likewise.
22252 (eq_ptr): Likewise.
22253 (vec_prefix::register_overhead): Use new memory descriptor API.
22254 (vec_prefix::release_overhead): Likewise.
22255 (add_statistics): Remove.
22256 (dump_vec_loc_statistics): Use new memory descriptor API.
22257 * vec.h (struct vec_prefix): Likewise.
22258 (va_heap::reserve): Likewise.
22259 (va_heap::release): Likewise.
22260 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
22262 2015-05-27 Richard Biener <rguenther@suse.de>
22264 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
22265 earlier and remove ??? comment.
22266 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
22267 and got called from loop analysis bail out. Always pass the SLP
22268 node to the vectorizable_* functions.
22269 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
22270 the premature SLP check here.
22271 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
22272 detected SLP stmts.
22273 (vect_detect_hybrid_slp_1): Likewise.
22275 2015-05-26 Jeff Law <law@redhat.com>
22277 * combine.c (find_split_point): Verify that the shift count is a
22278 constant when choosing (plus (ashift ...)) as a split point.
22280 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
22281 No functional changes.
22283 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
22285 * ipa-polymorphic-call.c
22286 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
22287 case when call target is already known.
22289 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
22292 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
22293 take into account the case that operands[1] and operands[2]
22294 are the same register.
22296 2015-05-26 Michael Matz <matz@suse.de>
22298 PR middle-end/66251
22300 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
22302 (vect_create_vectorized_demotion_stmts): Always set
22303 STMT_VINFO_VEC_STMT, also with SLP.
22304 (vectorizable_store): Handle strided group stores.
22306 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22309 * config/aarch64/aarch64.md
22310 (*adds_shift_imm_<mode>): New pattern.
22311 (*subs_shift_imm_<mode>): Likewise.
22312 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22313 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22314 (*add_uxt<mode>_shift2): Likewise.
22315 (*add_uxtsi_shift2_uxtw): Likewise.
22316 (*sub_uxt<mode>_shift2): Likewise.
22317 (*sub_uxtsi_shift2_uxtw): Likewise.
22319 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
22321 * config/rs6000/constraints.md (Y, U): Use match_test.
22323 2015-05-26 Christian Bruel <christian.bruel@st.com>
22326 * config/arm/arm.c (arm_option_check_internal)
22327 (arm_option_params_internal): Check opts->target_flags to set macros.
22328 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22329 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
22330 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22331 (builtin_define): Replaced with def_or_undef_macro.
22332 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22333 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
22334 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22335 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
22336 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
22337 (TARGET_ARM_FEATURE_LDREX_P)
22338 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
22339 * config/arm/arm-c.c (def_or_undef_macro): New function.
22340 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
22342 2015-05-26 Christian Bruel <christian.bruel@st.com>
22344 * c-common.h (builtin_define_with_int_value)
22345 (builtin_define_type_sizeof): Declare.
22346 * c-cppbuiltin.c (builtin_define_with_int_value)
22347 (builtin_define_type_sizeof): Externalize.
22348 (builtin_define_std): Cleanup declaration.
22349 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
22350 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
22351 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
22352 (builtin_define, builtin_assert): New macros.
22354 2015-05-26 Richard Biener <rguenther@suse.de>
22356 PR tree-optimization/66142
22357 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
22358 MEM_REFs for the same base address.
22360 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22363 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
22365 2015-05-26 Jason Merrill <jason@redhat.com>
22367 * configure.ac: Set CXXFLAGS for ISL test.
22368 * configure: Regenerate.
22370 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
22371 strstr and basename.
22372 * configure: Regenerate.
22374 2015-05-26 Richard Biener <rguenther@suse.de>
22376 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
22377 X % C -> X & (C - 1) for C being a power-of two to ...
22378 * match.pd: ... patterns.
22380 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
22382 * match.pd (swapped_tcc_comparison): New operator list.
22383 (-A CMP -B): New simplification.
22384 * fold-const.c (fold_comparison): Remove corresponding code.
22386 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
22388 * caller-save.c (init_caller_save): Base temporary register numbers
22389 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
22390 * cfgloopanal.c (init_set_costs): Likewise.
22391 * dojump.c (prefer_and_bit_test): Likewise.
22392 * expr.c (init_expr_target): Likewise.
22393 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22394 * lower-subreg.c (init_lower_subreg): Likewise.
22395 * postreload.c (reload_cse_regs_1): Likewise.
22397 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
22399 * gensupport.h (compute_test_codes): Declare.
22400 * gensupport.c (compute_predicate_codes): Rename to...
22401 (compute_test_codes): ...this. Generalize error message.
22402 (process_define_predicate): Update accordingly.
22403 * genpreds.c (compute_maybe_allows): Delete.
22404 (add_constraint): Use compute_test_codes to determine whether
22405 something can accept a SUBREG, REG or MEM.
22407 2015-05-26 Torvald Riegel <triegel@redhat.com>
22409 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
22410 'memory model' to align with C++11; fix description of memory orders;
22413 2015-05-26 Richard Biener <rguenther@suse.de>
22415 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
22416 (vect_analyze_loop_operations): ... here. Remove slp parameter,
22417 detect whether we apply SLP. Remove call to
22418 vect_update_slp_costs_according_to_vf.
22419 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
22420 vect_update_slp_costs_according_to_vf from here. Dispatch
22421 to vect_slp_analyze_operations to analyze SLP stmts.
22422 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
22423 unused bb_vec_info parameter, adjust assert.
22424 (vect_slp_analyze_operations): Pass in the slp instance tree
22425 instead of bb_vec_info.
22426 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
22427 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
22429 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
22431 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
22432 Q_REGS. Expand comment.
22433 (REG_CLASS_NAMES): Ditto.
22434 (REG_CLASS_CONTENTS): Ditto.
22436 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
22439 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
22440 when LEGACY_INT_REGNO_P is processed.
22442 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
22444 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
22446 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22448 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
22449 register if not marked dead/unused, before return.
22451 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22454 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
22455 is set; check for assembler name at LTO time.
22456 (type_in_anonymous_namespace): Remove hacks, check that all
22457 anonymous types are called "<anon>"
22458 (odr_type_p): Simplify; add check for "<anon>"
22459 (odr_subtypes_equivalent): Add odr_type_p check.
22460 * tree.c (need_assembler_name_p): Even anonymous namespace needs
22463 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22465 * ipa-utils.h (method_class_type): Remove.
22466 * cgraphunit.c (walk_polymorphic_call_targets): Use
22467 TYPE_METHOD_BASETYPE.
22468 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
22469 on main variants only.
22470 (method_class_type): Remove.
22471 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
22472 (build_type_inheritance_graph): Likewise.
22473 * ipa-icf.c (sem_function::equals_wpa): Likewise.
22474 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
22475 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
22477 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22479 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
22480 is_typedef_decl, typedef_variant_p): Constify.
22481 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
22482 is_typedef_decl, typedef_variant_p): Constify.
22484 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22486 * defaults.h (gen_tablejump): New function.
22487 (HAVE_tablejump): Add default value.
22489 * stmt.c: Likewise.
22491 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22493 * defaults.h (gen_store_multiple): New function.
22494 (HAVE_store_multiple): Add default value.
22495 * expr.c (move_block_from_reg): Adjust.
22497 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22499 * defaults.h (gen_load_multiple): New function.
22500 (HAVE_load_multiple): Add default value.
22501 * expr.c (move_block_to_reg): Adjust.
22503 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22505 * defaults.h (gen_mem_signal_fence): New function.
22506 (HAVE_mem_signal_fence): Add default value.
22507 * optabs.c: Adjust.
22509 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22511 * defaults.h (gen_memory_barrier): New function.
22512 (HAVE_memory_barrier): Add default value.
22513 * optabs.c: Adjust.
22515 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22517 * defaults.h (gen_mem_thread_fence): New function.
22518 (HAVE_mem_thread_fence): Add default definition.
22519 * optabs.c: Adjust.
22521 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22523 * combine.c (find_split_point): Check the value of HAVE_lo_sum
22524 instead of if it is defined.
22525 (combine_simplify_rtx): Likewise.
22526 * lra-constraints.c (process_address_1): Likewise.
22527 * config/darwin.c: Adjust.
22528 * genconfig.c (main): Always define HAVE_lo_sum.
22530 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22532 * genmatch.c (parser::parse_operation): Reject expanding
22533 operator-list inside 'for'.
22535 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22537 * genmatch.c (parser::parse_for): Reject iterator if used as
22540 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22542 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
22543 after end of id-list.
22545 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22547 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
22548 we do not try to compute canonical type for type that does not need
22550 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
22552 * tree.h (type_with_alias_set_p): New.
22554 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22556 * tree.c (gimple_canonical_types_compatible_p): Do not compare
22557 function attributes.
22558 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
22560 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
22562 * Makefile.in (check_gcc_parallelize): Delete.
22563 (lang_checks_parallelized): Update comment.
22565 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
22567 PR rtl-optimization/66237
22568 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
22569 location of an "as_a" cast.
22571 2015-05-22 Jeff Law <law@redhat.com>
22573 * config/pa/pa.md (non-canonical shift-add insns): Remove.
22574 (peepholes with non-canonical RTL sources): Remove.
22575 (peepholes for indexed stores of FP regs in integer modes): Match and
22576 generate canonical RTL.
22578 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22580 PR tree-optimization/63387
22581 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
22582 ((x ord x) & (y ord y) -> (x ord y),
22583 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
22584 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
22585 vectors like scalars.
22587 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22589 * convert.c (convert_to_integer, convert_to_vector): Include the
22590 types in the error message.
22592 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22594 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
22597 2015-05-22 Jeff Law <law@redhat.com>
22599 * config/pa/pa.md (integer_indexed_store splitters): Use
22600 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
22601 insns -- adjusting the constant 2nd operand accordingly.
22603 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
22604 (plus (ashift X log2) Y) if it is a split point.
22606 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
22607 out of hppa_legitimize_address to handle both forms of a multiply
22609 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
22610 Always generate the ASHIFT variant as the result is not directly
22611 used in a MEM. Update comments and refactor slightly to improve
22614 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22617 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
22618 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
22619 (aarch64_composite_type_p): Return false if given type and mode are
22620 for a short vector.
22622 2015-05-22 Richard Biener <rguenther@suse.de>
22624 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
22626 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
22627 patterns when determining whether SLP is pure.
22628 (vect_is_slp_reduction): Remove check for pattern stmts.
22629 (vect_is_simple_reduction_1): Remove dead code.
22630 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
22631 (vect_get_and_check_slp_defs): Pass in the stmt number.
22632 Allow the first def in a reduction to be not a pattern stmt when
22633 the rest of the stmts def are patterns.
22634 (vect_build_slp_tree_1): Allow tcc_expression codes like
22635 SAD_EXPR and DOT_PROD_EXPR.
22636 (vect_build_slp_tree): Adjust.
22637 (vect_analyze_slp): Refactor and move BB vect error message ...
22638 (vect_slp_analyze_bb_1): ... here.
22640 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
22642 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
22643 for CSWTCH temporary.
22645 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22647 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
22648 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
22651 2015-05-22 Richard Biener <rguenther@suse.de>
22653 PR tree-optimization/66251
22654 * tree-vect-stmts.c (vectorizable_conversion): Properly
22655 set STMT_VINFO_VEC_STMT even for the SLP case.
22657 2015-05-22 Marek Polacek <polacek@redhat.com>
22659 * doc/extend.texi: Use @pxref instead of @xref.
22661 2015-05-22 hiraditya <hiraditya@msn.com>
22663 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
22666 2015-05-22 Richard Biener <rguenther@suse.de>
22668 PR tree-optimization/65701
22669 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22670 Move peeling cost models into one place. Peel for alignment
22671 for single loads only if an aligned load is cheaper than
22674 2015-05-22 Marek Polacek <polacek@redhat.com>
22677 * doc/extend.texi (Enumerator Attributes): New section.
22678 Document syntax of enumerator attributes.
22680 2015-05-22 Richard Biener <rguenther@suse.de>
22682 * tree-vect-loop.c (get_reduction_op): New function.
22683 (vect_model_reduction_cost): Use it, add reduc_index parameter.
22684 Make ready for BB reductions.
22685 (vect_create_epilog_for_reduction): Use get_reduction_op.
22686 (vectorizable_reduction): Init reduc_index to a valid value.
22687 Adjust vect_model_reduction_cost call.
22688 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
22689 operand for reduction defaults. Add SAD_EXPR support.
22690 Assert we have a neutral op for SLP reductions.
22691 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
22692 walking pattern stmt ops only recurse to SSA names.
22694 2015-05-22 Richard Biener <rguenther@suse.de>
22696 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
22697 assert with guard, remove check on detected reduction.
22698 (vect_recog_sad_pattern): Likewise.
22699 (vect_recog_widen_sum_pattern): Likewise.
22701 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22703 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
22704 __always_inline__ attribute.
22705 (vaesdq_u8): Likewise.
22706 (vaesmcq_u8): Likewise.
22707 (vaesimcq_u8): Likewise.
22708 (vsha1cq_u32): Likewise.
22709 (vsha1mq_u32): Likewise.
22710 (vsha1pq_u32): Likewise.
22711 (vsha1h_u32): Likewise.
22712 (vsha1su0q_u32): Likewise.
22713 (vsha1su1q_u32): Likewise.
22714 (vsha256hq_u32): Likewise.
22715 (vsha256h2q_u32): Likewise.
22716 (vsha256su0q_u32): Likewise.
22717 (vsha256su1q_u32): Likewise.
22718 (vmull_p64): Likewise.
22719 (vmull_high_p64): Likewise.
22721 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22723 * final.c (final_scan_insn): Don't check HAVE_peephole with the
22725 * output.h: Likewise.
22726 * genconfig.c (main): Alwways define HAVE_peephole.
22727 * genpeep.c: Don't emit checks of HAVE_peephole.
22729 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22731 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
22732 check HAVE_conditional_move with the preprocessor.
22734 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22736 * genconfig.c (main): Always define HAVE_conditional_move.
22737 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
22738 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
22741 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22743 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
22744 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
22745 and FRAME_POINTER_REGNUM with the preprocessor.
22747 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22749 * defaults.h: Add default for STACK_PUSH_CODE.
22750 * expr.c: Don't redefine STACK_PUSH_CODE.
22751 * recog.c: Likewise.
22753 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22755 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
22756 sched-deps.c: Use if instead of preprocessor checks with
22757 STACK_GROWS_DOWNWARD.
22759 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22761 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
22763 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
22764 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
22765 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
22766 * doc/tm.texi: Regenerate.
22768 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
22771 * config/i386/constraints.md (Bg): New constraint for GOT memory
22773 * config/i386/i386.md (*call_got_x32): New pattern.
22774 (*call_value_got_x32): Likewise.
22775 * config/i386/predicates.md (GOT_memory_operand): New predicate.
22777 2015-05-21 Jakub Jelinek <jakub@redhat.com>
22779 PR tree-optimization/66233
22780 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
22783 2015-05-21 Jeff Law <law@redhat.com>
22785 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
22786 than MULT for shadd sequences.
22788 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
22790 * alias.c (alias_stats): New static var.
22791 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
22792 (dump_alias_stats_in_alias_c): New function.
22793 * alias.h (dump_alias_stats_in_alias_c): Declare.
22794 * tree-ssa-alias.c (dump_alias_stats): Call it.
22796 2015-05-08 Michael Matz <matz@suse.de>
22798 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
22800 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
22801 (STMT_VINFO_STRIDED_P): ... this.
22802 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
22803 (vect_verify_datarefs_alignment): Likewise.
22804 (vect_enhance_data_refs_alignment): Likewise.
22805 (vect_analyze_data_ref_access): Likewise.
22806 (vect_analyze_data_refs): Accept strided stores.
22807 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
22808 (vect_model_load_cost): Adjust for macro rename.
22809 (vectorizable_mask_load_store): Likewise.
22810 (vectorizable_load): Likewise.
22811 (vectorizable_store): Open code strided stores.
22813 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22815 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
22816 Document sqrt_insn.
22818 2015-05-21 Richard Biener <rguenther@suse.de>
22821 * match.pd: Guard pattern optimzing (int)(float)int
22822 conversions to apply only on GIMPLE.
22824 2015-05-21 Jeff Law <law@redhat.com>
22826 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
22827 multiply-accumulate/shift-add insn generation.
22829 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
22832 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
22833 operands[1] are the same.
22835 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
22837 PR middle-end/66221
22838 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
22839 build_distinct_type_copy to copy bounds.
22841 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
22843 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
22844 Change to unsigned int.
22846 2015-05-20 Jeff Law <law@redhat.com>
22848 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
22849 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
22850 (pa_shadd_constant_p): Allow constants for shadd insns rather
22851 than valid scaling constants for memory addresses.
22852 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
22853 * config/pa/predicates.md (mem_shadd_operand): New predicate.
22854 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
22855 (shift-add insns using ASHIFT): New patterns.
22857 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
22859 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
22861 (fix_up_fall_thru_edges): Likewise.
22862 (fix_crossing_conditional_branches): Likewise. Promote jump targets
22863 from to rtx_insn to rtx_code_label where feasible.
22864 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
22865 gen_move_insn (returned type changed to rtx_insn).
22866 * builtins.c (expand_errno_check): Fix arguments of
22867 do_compare_rtx_and_jump (now expects rtx_code_label).
22868 (expand_builtin_acc_on_device): Likewise.
22869 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
22870 invert_jump (now exprects rtx_jump_insn).
22871 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
22872 (construct_init_block): Use rtx_code_label.
22873 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
22874 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
22875 calling redirect_jump.
22876 (patch_jump_insn): Likewise.
22877 (redirect_branch_edge): Likewise.
22878 (force_nonfallthru_and_redirect): Likewise.
22879 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
22881 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
22882 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
22883 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
22884 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
22885 to store the value retured by gen_label_rtx.
22886 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
22888 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
22889 (split_branches): Fix calls of redirect_jump.
22890 * dojump.c (jumpifnot): Promote argument type from rtx to
22892 (jumpifnot_1): Likewise.
22893 (jumpif): Likewise.
22894 (jumpif_1): Likewise.
22895 (do_jump_1): Likewise.
22896 (do_jump): Likewise. Use rtx_code_label when feasible.
22897 (do_jump_by_parts_greater_rtx): Likewise.
22898 (do_jump_by_parts_zero_rtx): Likewise.
22899 (do_jump_by_parts_equality_rtx): Likewise.
22900 (do_compare_rtx_and_jump): Likewise.
22901 * dojump.h: Update function prototypes.
22902 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
22904 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
22906 (emit_label_before): Likewise.
22907 (emit_jump_insn_after_noloc): Likewise.
22908 (emit_jump_insn_after_setloc): Likewise.
22909 (emit_jump_insn_after): Likewise
22910 (emit_jump_insn_before_setloc): Likewise.
22911 (emit_jump_insn_before): Likewise.
22912 (emit_label_before): Promote return type to rtx_code_label.
22913 (emit_label): Likewise.
22914 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
22915 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
22917 (emit_stack_restore): Likewise.
22918 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
22919 (do_cmp_and_jump): Likewise.
22920 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
22921 from rtx to rtx_code_label.
22922 (gen_move_insn_uncast): New function.
22923 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
22924 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
22925 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
22926 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
22927 invert_jump_1 and redirect_jump_1.
22928 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
22929 do_compare_rtx_and_jump.
22930 (expand_addsub_overflow): Likewise.
22931 (expand_neg_overflow): Likewise.
22932 (expand_mul_overflow): Likewise.
22933 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
22934 return value of gen_move_insn.
22935 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
22936 * loop-doloop.c (add_test): Use rtx_code_label.
22937 (doloop_modify): Likewise.
22938 (doloop_optimize): Likewise.
22939 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
22940 * lra-constraints.c (emit_spill_move): Remove cast of value returned
22942 (inherit_reload_reg): Add cast when calling dump_insn_slim.
22943 (split_reg): Likewise.
22944 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
22946 * optabs.c (expand_binop_directly): Remove casts of values returned by
22948 (expand_unop_direct): Likewise.
22949 (expand_abs): Likewise.
22950 (maybe_emit_unop_insn): Likewise.
22951 (maybe_gen_insn): Promote return type to rtx_insn.
22952 * optabs.h: Update prototype of maybe_gen_insn.
22953 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
22955 * recog.c (struct peep2_insn_data): Promote type of insn field to
22957 (peep2_reinit_state): Use NULL instead of NULL_RTX.
22958 (peep2_attempt): Remove casts of insn in peep2_insn_data.
22959 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
22960 * recog.h (struct insn_gen_fn): Promote return types of function
22961 pointers and operator ().from rtx to rtx_insn.
22962 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
22963 (fill_eager_delay_slots): Likewise.
22964 (relax_delay_slots): Likewise.
22965 (make_return_insns): Likewise.
22966 (dbr_schedule): Likewise.
22967 (optimize_skips): Likewise.
22968 (reorg_redirect_jump): Likewise.
22969 (fill_slots_from_thread): Likewise.
22970 * reorg.h: Update prototypes.
22971 * resource.c (find_dead_or_set_registers): Use dyn_cast to
22972 rtx_jump_insn instead of check. Use it's jump_target method.
22973 * rtl.h (rtx_jump_insn::jump_label): Define new method.
22974 (rtx_jump_insn::jump_target): Define new method.
22975 (rtx_jump_insn::set_jump_target): Define new method.
22976 * rtlanal.c (tablejump_p): Promote type of one local variable.
22977 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
22978 (sched_analyze_insn): Likewise.
22979 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
22980 (print_insn): Likewise.
22981 * stmt.c (label_rtx): Promote return type to rtx_insn.
22982 (force_label_rtx): Likewise.
22983 (jump_target_rtx): Define new function.
22984 (expand_label): Use it, get rid of one cast.
22985 (expand_naked_return): Promote rtx to rtx_code_label.
22986 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
22987 (expand_case): Use rtx_code_label instread of rtx where feasible.
22988 (expand_sjlj_dispatch_table): Likewise.
22989 (emit_case_nodes): Likewise.
22990 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
22991 * store-motion.c (insert_store): Make use of new return type of
22992 gen_move_insn and remove a cast.
22993 (replace_store_insn): Likewise.
22995 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
22997 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
22998 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
23000 2015-05-20 Jeff Law <law@redhat.com>
23002 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
23003 dispose of the jump thread path when the jump threading
23004 opportunity is cancelled.
23006 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
23008 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
23009 when printing the caret character.
23011 2015-05-20 Marek Polacek <polacek@redhat.com>
23013 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
23015 2015-05-20 Marek Polacek <polacek@redhat.com>
23017 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
23018 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
23019 * gimple-fold.c (canonicalize_bool): Likewise.
23020 (same_bool_result_p): Likewise.
23021 * tree-if-conv.c (parse_predicate): Likewise.
23023 2015-05-20 Marek Polacek <polacek@redhat.com>
23025 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
23026 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
23028 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23030 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
23031 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
23034 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
23036 * config/mips/mips.h (micromips_globals): Declare.
23038 2015-05-20 David Malcolm <dmalcolm@redhat.com>
23040 * timevar.def (TV_INITIALIZE_RTL): New.
23041 * toplev.c (initialize_rtl): Use an auto_timevar to account this
23042 function's time to TV_INITIALIZE_RTL.
23044 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
23046 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
23047 gimple_build_nop calls.
23048 (chkp_find_bounds_for_elem): Likewise.
23049 (chkp_get_zero_bounds): Likewise.
23050 (chkp_get_none_bounds): Likewise.
23051 (chkp_get_bounds_by_definition): Likewise.
23052 (chkp_generate_extern_var_bounds): Likewise.
23053 (chkp_get_bounds_for_decl_addr): Likewise.
23054 (chkp_get_bounds_for_string_cst): Likewise.
23056 2015-05-20 Bin Cheng <bin.cheng@arm.com>
23058 PR tree-optimization/65447
23059 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
23060 (dump_use, dump_uses): Support to dump sub use.
23061 (record_use): New parameters to support sub use. Remove call to
23063 (record_sub_use, record_group_use): New functions.
23064 (compute_max_addr_offset, split_all_small_groups): New functions.
23065 (group_address_uses, rewrite_use_address): New functions.
23066 (strip_offset): New declaration.
23067 (find_interesting_uses_address): Call record_group_use.
23068 (add_candidate): New assertion.
23069 (infinite_cost_p): Move definition forward.
23070 (add_costs): Check INFTY cost and return immediately.
23071 (get_computation_cost_at): Clear setup cost and dependent bitmap
23073 (determine_use_iv_cost_address): Compute cost for sub uses.
23074 (rewrite_use_address_1): Rename from old rewrite_use_address.
23075 (free_loop_data): Free sub uses.
23076 (tree_ssa_iv_optimize_loop): Call group_address_uses.
23078 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
23079 Jim Wilson <jim.wilson@linaro.org>
23081 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
23082 new fields loadv and storev.
23083 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
23084 Initialize loadv and storev.
23085 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
23086 (cortexa53_extra_costs): Likewise.
23087 (cortexa57_extra_costs): Likewise.
23088 (xgene1_extra_costs): Likewise.
23089 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
23092 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
23094 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
23096 (cortexa8_extra_costs): Likewise.
23097 (cortexa5_extra_costs): Likewise.
23098 (cortexa7_extra_costs): Likewise.
23099 (cortexa12_extra_costs): Likewise.
23100 (cortexa15_extra_costs): Likewise.
23101 (v7m_extra_costs): Likewise.
23103 2015-05-20 Jeff Law <law@redhat.com>
23105 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
23106 instead of open-coded version. Also delete the jump thread created
23107 within this function.
23109 2015-05-20 Alan Modra <amodra@gmail.com>
23111 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
23112 stack adjusting insn. Formatting.
23113 (rs6000_emit_prologue): Track stack adjusting insn, and use of
23114 r12. If possible, emit first -fsplit-stack arg pointer insn
23115 before stack adjust. Don't use r12 to save cr if split-stack.
23117 2015-05-20 Alan Modra <amodra@gmail.com>
23119 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
23121 (rs6000_supports_split_stack): New function.
23122 * gcc/config/rs6000/rs6000.c (machine_function): Add
23123 split_stack_arg_pointer.
23124 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
23125 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
23126 rather than virtual_incoming_args_rtx.
23127 (rs6000_va_start): Likewise.
23128 (split_stack_arg_pointer_used_p): New function.
23129 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
23130 (morestack_ref): New var.
23131 (gen_add3_const, rs6000_expand_split_stack_prologue,
23132 rs6000_internal_arg_pointer, rs6000_live_on_entry,
23133 rs6000_split_stack_space_check): New functions.
23134 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
23135 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
23136 (UNSPECV_SPLIT_STACK_RETURN): Define.
23137 (split_stack_prologue, load_split_stack_limit,
23138 load_split_stack_limit_di, load_split_stack_limit_si,
23139 split_stack_return, split_stack_space_check): New expands and insns.
23140 * gcc/config/rs6000/rs6000-protos.h
23141 (rs6000_expand_split_stack_prologue): Declare.
23142 (rs6000_split_stack_space_check): Declare.
23144 2015-05-20 Alan Modra <amodra@gmail.com>
23146 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
23147 (direct_return): Test vrsave_size rather than vrsave_mask.
23148 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
23149 (rs6000_emit_epilogue): Likewise.
23151 2015-05-20 Alan Modra <amodra@gmail.com>
23153 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
23154 when not saving registers.
23155 (debug_stack_info): Adjust to omit printing unused offsets,
23157 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
23160 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23163 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
23164 value_type to const char *.
23166 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
23168 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
23169 to build a biarch toolchain again.
23171 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
23173 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
23174 or implicit declarations.
23175 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
23177 (get_odr_type): Check type has linkage before adding bases.
23178 (register_odr_type): Check that type has linkage before adding it.
23179 (type_known_to_have_no_deriavations_p): Rename to ..
23180 (type_known_to_have_no_derivations_p): This one.
23181 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
23182 (type_known_to_have_no_derivations_p): This one.
23183 * ipa-polymorphic-call.c
23184 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
23187 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
23189 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
23190 (layout_type): Use RECORD_OR_UNION_TYPE_P.
23192 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23194 * config/s390/s390.c (s390_vector_bool_type_p): New function.
23195 (s390_invalid_binary_op): New function.
23196 (TARGET_INVALID_BINARY_OP): Define macro.
23198 2015-05-19 David Sherwood <david.sherwood@arm.com>
23200 * loop-invariant.c (create_new_invariant): Don't calculate address cost
23201 if mode is not a scalar integer.
23202 (get_inv_cost): Increase computational cost for unused invariants.
23204 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23206 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
23207 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
23208 * config/s390/s390-builtin-types.def: New file.
23209 * config/s390/s390-builtins.def: New file.
23210 * config/s390/s390-builtins.h: New file.
23211 * config/s390/s390-c.c: New file.
23212 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
23213 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
23214 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
23215 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
23217 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
23219 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
23220 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
23221 variable definitions.
23222 (s390_const_operand_ok): New function.
23223 (s390_expand_builtin): Rewrite.
23224 (s390_init_builtins): New function.
23225 (s390_handle_vectorbool_attribute): New function.
23226 (s390_attribute_table): Add s390_vector_bool attribute.
23227 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
23228 (s390_branch_condition_mask): Generate masks for new modes.
23229 (s390_expand_vec_compare_cc): New function.
23230 (s390_mangle_type): Add mangling for vector bool types.
23231 (enum s390_builtin): Remove.
23232 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
23234 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
23235 s390_cpu_cpp_builtins.
23236 (REGISTER_TARGET_PRAGMAS): New macro.
23237 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
23238 (insn_cmp mode attribute): Add new CC modes.
23239 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
23240 (lcbb): New pattern definition.
23241 * config/s390/s390intrin.h: Include vecintrin.h.
23242 * config/s390/t-s390: New file.
23243 * config/s390/vecintrin.h: New file.
23244 * config/s390/vector.md: Include vx-builtins.md.
23245 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
23248 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23250 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
23252 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
23253 (s390_select_ccmode): Likewise.
23254 (s390_canonicalize_comparison): Swap operands if necessary.
23255 (s390_expand_vec_compare_scalar): Expand DFmode compare using
23256 single element vector instructions.
23257 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
23258 (s390_branch_condition_mask): Generate CC masks for the new modes.
23259 * config/s390/s390.md (v0, vf, vd): New mode attributes.
23260 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
23261 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
23262 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
23263 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
23264 (*extend<DSF:mode><BFP:mode>2): New insn definition.
23265 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
23266 (extend<DSF:mode><BFP:mode>2): Turn into expander.
23267 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
23268 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
23269 (sqrt<mode>2): Add vector instruction.
23271 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23273 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
23275 * config/s390/predicates.md (const0_operand, constm1_operand)
23276 (constable_operand): Accept vector operands.
23277 * config/s390/s390-modes.def: Add supported vector modes.
23278 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
23279 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
23280 (s390_bytemask_vector_p, s390_expand_vec_strlen)
23281 (s390_expand_vec_compare, s390_expand_vcond)
23282 (s390_expand_vec_init): Add prototypes.
23283 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
23284 (s390_vector_mode_supported_p): New function.
23285 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
23286 (s390_contiguous_bitmask_vector_p): New function.
23287 (s390_bytemask_vector_p): New function.
23288 (s390_split_ok_p): Vector regs don't work either.
23289 (regclass_map): Add VEC_REGS.
23290 (s390_legitimate_constant_p): Handle vector constants.
23291 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
23292 (legitimate_reload_vector_constant_p): New function.
23293 (s390_preferred_reload_class): Handle CONST_VECTOR.
23294 (s390_reload_symref_address): Likewise.
23295 (s390_secondary_reload): Vector memory instructions only support
23296 short displacements. Rename reload*_nonoffmem* to reload*_la*.
23297 (s390_emit_ccraw_jump): New function.
23298 (s390_expand_vec_strlen): New function.
23299 (s390_expand_vec_compare): New function.
23300 (s390_expand_vcond): New function.
23301 (s390_expand_vec_init): New function.
23302 (s390_dwarf_frame_reg_mode): New function.
23303 (print_operand): Handle addresses with 'O' and 'R' constraints.
23304 (NR_C_MODES, constant_modes): Add vector modes.
23305 (s390_output_pool_entry): Handle vector constants.
23306 (s390_hard_regno_mode_ok): Handle vector registers.
23307 (s390_class_max_nregs): Likewise.
23308 (s390_cannot_change_mode_class): New function.
23309 (s390_invalid_arg_for_unprototyped_fn): New function.
23310 (s390_function_arg_vector): New function.
23311 (s390_function_arg_float): Remove size variable.
23312 (s390_pass_by_reference): Handle vector arguments.
23313 (s390_function_arg_advance): Likewise.
23314 (s390_function_arg): Likewise.
23315 (s390_return_in_memory): Vector values are returned in a VR if
23317 (s390_function_and_libcall_value): Handle vector arguments.
23318 (s390_gimplify_va_arg): Likewise.
23319 (s390_call_saved_register_used): Consider the arguments named.
23320 (s390_conditional_register_usage): Disable v16-v31 for non-vec
23322 (s390_preferred_simd_mode): New function.
23323 (s390_support_vector_misalignment): New function.
23324 (s390_vector_alignment): New function.
23325 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
23326 (TARGET_VECTOR_MODE_SUPPORTED_P)
23327 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
23328 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23329 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
23330 (TARGET_VECTOR_ALIGNMENT): Define target macro.
23331 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
23332 (FIRST_PSEUDO_REGISTER): Increase value.
23333 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
23334 (VECTOR_REG_P): Define macros.
23335 (FIXED_REGISTERS, CALL_USED_REGISTERS)
23336 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
23337 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
23338 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
23339 Add vector registers.
23340 (CANNOT_CHANGE_MODE_CLASS): Call C function.
23341 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
23342 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
23344 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
23345 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
23346 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
23347 (VR*_REGNUM): New constants.
23348 (ALL): New mode iterator.
23349 (INTALL): Remove mode iterator.
23351 (movti): Implement TImode moves for VRs.
23352 Disable TImode splitter for VR targets.
23353 Implement splitting TImode GPR<->VR moves.
23354 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
23355 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
23356 reload<mode>_la_in, reload<mode>_la_out.
23357 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
23358 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
23359 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
23360 (mov<mode> SF SD): Prefer lder, lde for loading.
23361 Add lrl and strl instructions.
23362 Add vector instructions.
23363 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
23364 Call s390_expand_vec_strlen on z13.
23365 (*cc_to_int): Change predicate to nonimmediate_operand.
23366 (addti3): Rename to *addti3. New expander.
23367 (subti3): Rename to *subti3. New expander.
23368 * config/s390/vector.md: New file.
23370 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23372 * common/config/s390/s390-common.c (processor_flags_table): Add
23374 * config.gcc: Add z13.
23375 * config/s390/s390-opts.h (enum processor_type): Add
23376 PROCESSOR_2964_Z13.
23377 * config/s390/s390.c (s390_adjust_priority): Check for
23378 PROCESSOR_2964_Z13.
23379 (s390_reorg): Likewise.
23380 (s390_sched_reorder): Likewise.
23381 (s390_sched_variable_issue): Likewise.
23382 (s390_loop_unroll_adjust): Likewise.
23383 (s390_option_override): Likewise. Default to -mvx when available.
23384 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
23385 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
23386 (TARGET_VX_ABI): Define macros.
23388 (TARGET_DEFAULT): Add MASK_OPT_VX.
23389 * config/s390/s390.md ("cpu" attribute): Add z13.
23390 ("cpu_facility" attribute): Add vec.
23391 * config/s390/s390.opt (processor_type): Add z13.
23392 (mvx): New options.
23393 * doc/invoke.texi: Add z13 option for -march.
23395 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23397 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
23398 mode check to make sure that only scalar integer values are
23401 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
23403 * tree.c (verify_type_variant): Fix #undef.
23404 (gimple_canonical_types_compatible_p): Move here from lto.c
23405 (verify_type): Verify TYPE_CANONICAL compatibility.
23406 * tree.h (gimple_canonical_types_compatible_p): Declare.
23408 2015-05-19 Jakub Jelinek <jakub@redhat.com>
23410 PR middle-end/66199
23411 * tree.h (OMP_TEAMS_COMBINED): Define.
23412 * gimplify.c (enum gimplify_omp_var_data): Add
23413 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
23414 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
23415 (omp_notice_variable): Accept both ORT_TEAMS
23416 and ORT_COMBINED_TEAMS. Don't recurse if
23417 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
23418 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
23420 (omp_no_lastprivate): New function.
23421 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
23422 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
23423 notice_outer and set appropriate bits, otherwise make
23424 sure default(none) combined constructs won't complain.
23425 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
23426 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
23427 omp_no_lastprivate either remove the clause or turn it
23428 into OMP_CLAUSE_PRIVATE.
23429 (gimplify_omp_for): Fix up handling of implicit
23430 lastprivate or linear iterators.
23431 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
23432 ORT_COMBINED_TEAMS.
23433 * omp-low.c (lower_omp_for_lastprivate): For combined
23434 for simd use fd.loop.n2 from the for rather than simd.
23436 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23438 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
23439 instead of gen_rtx_raw_REG.
23440 (cris_expand_epilogue): Likewise.
23441 * config/microblaze/microblaze.c (microblaze_classify_address):
23443 * config/sparc/sparc.md: Likewise.
23445 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
23447 * config/alpha/alpha.c (alpha_legitimize_reload_address)
23448 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
23449 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
23450 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
23451 Use CASE_CONST_SCALAR_INT.
23452 (print_operand) <case 'M'>: Use mode_width_operand to check the
23453 value of the constant.
23454 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
23455 * config/alpha/predicates.md (input_operand): Use general_operand
23456 instead of match_code as operand check.
23457 (symbolic_operand): Use match_code with subexpression digits.
23458 * config/alpha/constraints.md (Q): Ditto.
23460 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23462 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
23464 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23466 * config/s390/s390.c (s390_secondary_reload): Fix check for
23467 load/store relative.
23469 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23471 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
23472 alternative_mask to uint64_t.
23474 2015-05-19 Jakub Jelinek <jakub@redhat.com>
23476 PR tree-optimization/66187
23477 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
23478 Pass TYPE_SIGN to tree_int_cst_min_precision. If
23479 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
23481 2015-05-19 David Malcolm <dmalcolm@redhat.com>
23483 * diagnostic.c (diagnostic_report_current_module): Strengthen
23484 local "new_map" from const line_map * to
23485 const line_map_ordinary *.
23486 * genmatch.c (error_cb): Likewise for local "map".
23487 (output_line_directive): Likewise for local "map".
23488 * input.c (expand_location_1): Likewise for local "map".
23489 Pass NULL rather than &map to
23490 linemap_unwind_to_first_non_reserved_loc, since the value is never
23491 read from there, and the value written back not read from here.
23492 (is_location_from_builtin_token): Strengthen local "map" from
23493 const line_map * to const line_map_ordinary *.
23494 (dump_location_info): Strengthen locals "map" from
23495 line_map *, one to const line_map_ordinary *, the other
23496 to const line_map_macro *.
23497 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
23498 const line_map * to const line_map_macro *.
23499 (maybe_unwind_expanded_macro_loc): Add a call to
23500 linemap_check_macro when writing to the "map" field of the
23502 Introduce local const line_map_ordinary * "ord_map", using it in
23503 place of "map" in the part of the function where we know we have
23504 an ordinary map. Strengthen local "m" from const line_map * to
23505 const line_map_ordinary *.
23507 2015-05-19 Nick Clifton <nickc@redhat.com>
23510 * config/msp430/msp430.md (zero_extendhisi2): Add support for
23511 separate source and destination registers.
23513 2015-05-19 Richard Biener <rguenther@suse.de>
23515 PR tree-optimization/66165
23516 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
23517 for no load permutation.
23519 PR tree-optimization/66185
23520 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
23521 when building the SLP node from scalars.
23523 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
23524 Tristan Gingold <gingold@adacore.com>
23526 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
23527 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
23528 (expand_stack_restore): Call record_new_stack_level.
23529 (expand_stack_save): Do not call do_pending_stack_adjust.
23530 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
23531 * calls.c (expand_call): Call record_new_stack_level for alloca.
23532 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
23533 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
23534 (update_sjlj_context): New global function.
23535 * except.h (update_sjlj_context): Declare.
23536 * explow.c (record_new_stack_level): New global function.
23537 (allocate_dynamic_stack_space): Call record_new_stack_level.
23538 * explow.h (record_new_stack_level): Declare.
23539 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
23540 * cfgrtl.c (duplicate_insn_chain): Likewise.
23542 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23544 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
23545 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
23546 STACK_GROWS_DOWNWARD as normal if.
23547 (expand_call): Likewise.
23549 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
23552 * config/sh/sh.md (*round_int_even): New insn_and_split and
23553 accompanying new unnamed split.
23555 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23557 * bitmap.c (bitmap_set_range): Handle count==1 specially.
23558 (bitmap_clear_range): Likewise.
23559 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
23560 bitmap_set_range unconditionally.
23561 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23562 * df-scan.c (df_mark_reg): Likewise.
23563 * haifa-sched.c (setup_ref_regs): Likewise.
23564 * sched-rgn.c (update_live_1): Likewise.
23566 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23568 * regs.h (END_HARD_REGNO): Delete.
23569 (END_REGNO): Move to...
23571 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
23572 * caller-save.c (mark_set_regs): Likewise.
23573 * combine.c (move_deaths, distribute_notes): Likewise.
23574 * cse.c (invalidate, invalidate_for_call): Likewise.
23575 * df-scan.c (df_ref_record): Likewise.
23576 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
23577 (record_last_reg_set_info): Likewise.
23578 * reg-stack.c (convert_regs_exit): Likewise.
23579 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
23580 * resource.c (update_live_status): Likewise.
23581 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
23583 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23585 * rtl.h (reg_info): Add an nregs field.
23586 (REG_NREGS): Use it.
23587 (SET_REGNO_RAW): Delete.
23588 (set_regno_raw): New function.
23589 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
23590 (END_REGNO): Redefine in terms of REG_NREGS.
23591 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
23593 * emit-rtl.c (set_mode_and_regno): Likewise.
23594 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
23595 instead of SET_REGNO_RAW.
23597 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23599 * rtl.h (PUT_MODE_RAW): New macro.
23600 (PUT_REG_NOTE_KIND): Use it.
23601 (set_mode_and_regno): Declare.
23602 (gen_raw_REG): Change regno to "unsigned int".
23603 (gen_rtx_REG): Change "unsigned" to "unsigned int".
23604 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
23605 use set_mode_and_regno to change the mode of registers.
23606 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
23607 * emit-rtl.c (set_mode_and_regno): New function.
23608 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
23609 * caller-save.c (reg_save_code): Use set_mode_and_regno.
23610 * expr.c (init_expr_target): Likewise.
23611 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23612 * postreload.c (reload_cse_simplify_operands): Likewise.
23614 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23616 * caller-save.c (init_caller_save): Use word_mode and
23617 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
23618 * expr.c (init_expr_target): Likewise.
23619 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23620 * postreload.c (reload_cse_regs_1): Likewise.
23622 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23624 * rtl.def (REG): Change format to "r".
23625 * rtl.h (rtunion): Remove rt_reg.
23626 (reg_info): New structure.
23627 (rtx_def): Add reg field to main union.
23628 (X0REGATTR): Delete.
23629 (REG_CHECK): New macro.
23630 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
23631 * rtl.c (rtx_format): Document "r".
23632 (rtx_code_size): Handle REG specially.
23633 * gengenrtl.c (special_format): Return true for formats
23635 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
23636 Deal with REG_ATTRS after the field loop.
23637 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
23638 * expmed.c (init_expmed): Call gen_raw_REG instead of
23640 * expr.c (init_expr_target): Likewise.
23641 * regcprop.c (maybe_mode_change): Likewise.
23642 * varasm.c (make_decl_rtl): Likewise.
23643 * final.c (leaf_renumber_regs_insn): Return early after
23645 * genemit.c (gen_exp): Handle 'r' fields.
23646 * genpeep.c (match_rtx): Likewise.
23647 * gensupport.c (subst_pattern_match): Likewise.
23648 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
23649 (alter_constraints, subst_dup): Likewise.
23650 * read-rtl.c (read_rtx_code): Likewise.
23651 * print-rtl.c (print_rtx): Likewise.
23652 * genrecog.c (find_operand, find_matching_operand): Likewise.
23653 (validate_pattern, match_pattern_2): Likewise.
23654 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
23655 (rtx_test::regno_field): New function.
23656 (operator ==, safe_to_hoist_p, transition_parameter_type)
23657 (parameter_type_string, print_parameter_value)
23658 (print_nonbool_test, print_test): Handle new enum values.
23659 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
23660 * lra-constraints.c (operands_match_p): Likewise.
23662 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23664 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
23665 Change type of new_regno to unsigned int.
23666 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
23667 new_regno to unsigned int.
23668 (df_ref_change_reg_with_loc): Remove old_regno parameter.
23669 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
23670 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
23671 (SET_REGNO_RAW): Add space after ",".
23673 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23675 * rtl.h (REG_NREGS): New macro
23676 * alias.c (record_set): Use it.
23677 * cfgcleanup.c (mark_effect): Likewise.
23678 * combine.c (likely_spilled_retval_1): Likewise.
23679 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
23680 (move_deaths, distribute_notes): Likewise.
23681 * cselib.c (cselib_record_set): Likewise.
23682 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23683 * df-scan.c (df_mark_reg): Likewise.
23684 * dse.c (look_for_hardregs): Likewise.
23685 * dwarf2out.c (reg_loc_descriptor): Likewise.
23686 (multiple_reg_loc_descriptor): Likewise.
23687 * expr.c (write_complex_part, read_complex_part): Likewise.
23688 (emit_move_complex): Likewise.
23689 * haifa-sched.c (setup_ref_regs): Likewise.
23690 * ira-lives.c (mark_hard_reg_live): Likewise.
23691 * lra.c (lra_set_insn_recog_data): Likewise.
23692 * mode-switching.c (create_pre_exit): Likewise.
23693 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
23694 (reload_combine_recognize_pattern): Likewise.
23695 (reload_combine_note_use, move2add_record_mode): Likewise.
23696 (reload_cse_move2add): Likewise.
23697 * reg-stack.c (subst_stack_regs_pat): Likewise.
23698 * regcprop.c (kill_value, copy_value): Likewise.
23699 (copyprop_hardreg_forward_1): Likewise.
23700 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
23701 (build_def_use): Likewise.
23702 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
23703 (deps_analyze_insn): Likewise.
23704 * sched-rgn.c (check_live_1, update_live_1): Likewise.
23705 * sel-sched.c (count_occurrences_equiv): Likewise.
23706 * valtrack.c (dead_debug_insert_temp): Likewise.
23708 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23710 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
23711 * dse.c (note_add_store): Likewise.
23712 * ira-lives.c (mark_hard_reg_dead): Likewise.
23713 * loop-invariant.c (mark_reg_store): Likewise.
23714 (mark_reg_death): Likewise.
23715 * postreload.c (reload_combine): Likewise.
23716 (reload_combine_note_store): Likewise.
23717 (reload_combine_note_use): Likewise.
23718 * recog.c (peep2_reg_dead_p): Likewise.
23720 2015-05-19 Alan Modra <amodra@gmail.com>
23722 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
23723 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
23724 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
23726 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
23727 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
23728 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
23729 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
23731 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
23733 * config/mips/mips.md (JOIN_MODE): New mode iterator.
23734 (join2_load_Store<JOIN_MODE:mode>): New pattern.
23735 (join2_loadhi): Likewise.
23736 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
23737 load-load and store-stores.
23738 * config/mips/mips.opt (mload-store-pairs): New option.
23739 (TARGET_LOAD_STORE_PAIRS): New macro.
23740 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
23741 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
23742 * config/mips/mips.c (mips_load_store_bonding_p): New function.
23744 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
23746 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
23748 * dojump.c (do_compare_rtx_and_jump): Likewise.
23749 * expmed.c (emit_store_flag_1): Likewise.
23750 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
23751 * final.c (sprint_ul): Use std::reverse for reversing a string.
23752 * fold-const.c (extract_muldiv_1): Use std::swap.
23753 * genmodes.c (emit_mode_int_n): Likewise.
23754 * ifcvt.c (dead_or_predicable): Likewise.
23755 * ira-build.c (ira_merge_live_ranges): Likewise.
23756 (swap_allocno_copy_ends_if_necessary): Likewise.
23757 * ira.c (ira_setup_alts): Likewise.
23758 * loop-iv.c (iv_analyze_expr): Likewise.
23759 (implies_p): Likewise.
23760 (canon_condition): Likewise.
23761 * lra-constraints.c (swap_operands): Likewise.
23762 * lra-lives.c (lra_merge_live_ranges): Likewise.
23763 * omega.c (swap): Remove.
23765 (omega_unprotect_1): Use std::swap.
23766 (omega_solve_geq): Likewise.
23767 * optabs.c (expand_binop_directly): Likewise.
23768 (expand_binop): Likewise.
23769 (emit_conditional_move): Likewise.
23770 (emit_conditional_add): Likewise.
23771 * postreload.c (reload_cse_simplify_operands): Likewise.
23772 * reg-stack.c (emit_swap_insn): Likewise.
23773 (swap_to_top): Likewise.
23774 (compare_for_stack_reg): Likewise.
23775 (subst_asm_stack_regs): Likewise.
23776 * reload.c (find_reloads): Likewise.
23777 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
23778 * sel-sched.c (invoke_reorder_hooks): Likewise.
23779 (create_block_for_bookkeeping): Likewise.
23780 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
23781 (lambda_matrix_right_hermite): Use std::swap.
23782 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
23783 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
23784 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
23785 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
23786 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
23787 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
23788 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
23789 * tree-vrp.c (compare_ranges): Likewise.
23790 * var-tracking.c (add_with_sets): Likewise.
23791 (vt_find_locations): Likewise.
23793 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
23795 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
23797 (FBSD_ENDFILE_SPEC): Likewise.
23798 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
23799 config/freebsd-spec.h.
23800 (ENDFILE_SPEC): Likewise.
23802 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
23803 Richard Henderson <rth@redhat.com>
23806 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
23807 Check for a memory location that is not a reference (using an AND)
23808 to an unaligned location here.
23809 * config/alpha/predicates.md (normal_memory_operand): Remove.
23811 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
23813 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
23814 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
23816 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
23818 * config/mips/mips.c (micromips_globals): New variable.
23819 (mips_set_compression_mode): Save and reinitialize target-dependent
23820 state for microMIPS.
23822 2015-05-18 Martin Liska <mliska@suse.cz>
23824 * dbgcnt.def: Add new counter.
23825 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
23827 2015-05-18 Martin Liska <mliska@suse.cz>
23829 * dbgcnt.def: Sort counters.
23830 * opts.c (common_handle_option): Do not compile if
23831 -fdbg-cnt-list is enabled.
23833 2015-05-18 Tom de Vries <tom@codesourcery.com>
23835 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
23836 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
23837 address operator to va_list operand.
23838 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
23840 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
23842 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
23843 * config/s390/s390.c (s390_gimplify_va_arg): Same.
23844 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
23846 2015-05-18 Tom de Vries <tom@codesourcery.com>
23848 * tree-ssa-tail-merge.c: Fix whitespace.
23850 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
23852 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
23853 cortex-a17, and cortex-a17.cortex-a7.
23855 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
23858 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
23860 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
23863 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
23864 QImode inner modes for TARGET_AVX512BW. Force mask operand
23865 to a register for AVX512F modes.
23867 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23869 * toplev.c (emit_debug_global_declarations): Do not output debug info
23870 when doing slim LTO objects.
23872 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23874 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
23875 odr_types_equivalent_p): Declare.
23876 (odr_type_p): Use gcc_checking_assert.
23877 (type_in_anonymous_namespace_p) Declare.
23878 (type_with_linkage_p): Declare.
23879 * common.opt (Wlto-type-mismatch): New warning.
23880 * ipa-devirt.c (compound_type_base): New function.
23881 (odr_or_derived_type_p): New function.
23882 (odr_types_equivalent_p): New function.
23883 (add_type_duplicate): Simplify.
23884 (type_with_linkage_p): Add hack to prevent false positives on C types
23885 (type_in_anonymous_namespace_p): Likewise.
23886 * tree.c (need_assembler_name_p): Use type_with_linkage.
23887 * tree.h (type_in_anonymous_namespace_p): Remove.
23888 * doc/invoke.texi (-Wlto-type-mismatch): Document
23890 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23892 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
23893 (verify_type): Verify STRING_FLAG.
23895 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
23898 * tree-pretty-print.c (percent_K_format): Replace locus pointer
23899 with accessor function.
23900 * tree-diagnostic.c (diagnostic_report_current_function): Use
23901 diagnostic_location function.
23902 (maybe_unwind_expanded_macro_loc): Likewise.
23903 (virt_loc_aware_diagnostic_finalizer): Likewise.
23904 (default_tree_printer): Replace locus pointer with accessor function.
23905 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
23906 (diagnostic_set_info_translated): Initialize second location.
23907 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
23908 (diagnostic_show_locus): Handle two locations. Call
23909 diagnostic_print_caret_line.
23910 (diagnostic_print_caret_line): New.
23911 (default_diagnostic_starter): Use diagnostic_location function.
23912 (diagnostic_report_diagnostic): Use diagnostic_location function.
23913 (verbatim): Do not set text.locus.
23914 * diagnostic.h (struct diagnostic_info): Remove location field.
23915 (struct diagnostic_context): Make caret_chars an array of two.
23916 (diagnostic_location): New inline.
23917 (diagnostic_expand_location): Handle two locations.
23918 (diagnostic_same_line): New inline.
23919 (diagnostic_print_caret_line): Declare.
23920 (CARET_LINE_MARGIN): New constant.
23921 * pretty-print.c (pp_printf): Do not set text.locus.
23922 (pp_verbatim): Do not set text.locus.
23923 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
23924 (struct text_info): Replace locus pointer with locations
23925 array. Add accessor functions.
23927 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
23928 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23931 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
23932 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
23933 large constants in register instead of splitting them.
23935 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
23938 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
23939 replacements in memory addresses.
23940 (get_unaligned_address): Ditto.
23942 2015-05-16 James Bowman <james.bowman@ftdichip.com>
23944 * config/ft32/*: New files for FT32 port.
23945 * doc/install.texi: Add FT32 information.
23946 * doc/invoke.texi: Add FT32 information.
23947 * doc/md.texi: Add FT32 information.
23948 * doc/contrib.texi: Self added.
23950 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
23952 PR tree-optimization/64454
23953 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
23954 (-1 - A -> ~A): Remove unnecessary condition.
23956 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
23958 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
23959 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
23960 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
23962 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
23964 * ipa-chkp.h (chkp_wrap_function): New.
23965 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
23966 (chkp_wrap_function_name): New.
23967 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
23968 to get wrapper name.
23969 * lto-cgraph.c: Include ipa-chkp.h.
23970 (input_cgraph_1): Avoid alias chain for wrappers.
23972 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
23974 PR middle-end/66134
23975 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
23976 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
23978 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23980 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
23981 (AARCH64_FL_SLOWMUL): Delete.
23982 (AARCH64_FL_CRC): Redefine to 1<<3.
23983 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
23985 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23987 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
23990 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
23992 * config/alpha/alpha.md (extendqidi2): Use general_operand
23993 instead of some_operand for operand[1] predicate.
23994 (extendhidi2): Ditto.
23995 (cbranchdi4): Use general_operand instead of some_operand
23996 for operand[1] and operands[2] predicates.
23997 (cstoredi4): Ditto.
23998 * config/alpha/predicates.md (some_operand): Remove unused predicate.
23999 (some_ni_operand): Ditto.
24001 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
24003 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
24004 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
24005 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
24006 low part of the constant using alpha_emit_set_const_1.
24007 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
24009 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
24011 * varasm.c (output_constant_pool_1): Pass down alignment from
24012 constant pool entry's descriptor to output_constant_pool_2.
24013 (output_object_block): Add comment prior to call to
24014 output_constant_pool_1.
24016 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
24018 PR rtl-optimization/65862
24019 * target.def (ira_change_pseudo_allocno_class): New hook.
24020 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
24022 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
24023 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
24025 * ira-costs.c (find_costs_and_classes): Call the hook and change
24026 classes when it is necessary.
24027 * doc/tm.texi: Update.
24029 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
24031 * config/i386/i386.md (sibcall_memory): Check that register with
24032 callee address is not also used as one of the arguments, instead
24033 of checking that it is not live after the sibcall.
24034 (sibcall_pop_memory): Ditto.
24035 (sibcall_value_memory): Ditto.
24036 (sibcall_value_pop_memory): Ditto.
24038 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
24040 * generic-match-head.c (types_match): Handle non-types.
24041 * gimple-match-head.c (types_match): Likewise.
24042 * match.pd: Remove unnecessary TREE_TYPE for types_match.
24044 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
24046 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
24047 (csneg3<mode>_insn): Enable expansion of pattern.
24049 2015-05-14 Nick Clifton <nickc@redhat.com>
24051 * config/rl78/rl78.c (rl78_select_section): Select the correct
24052 default section based upon the category of the decl.
24054 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24056 PR rtl-optimization/30967
24057 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
24058 destination mode for the cost of scc patterns.
24060 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
24062 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
24063 using SWIM248 mode iterator.
24064 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
24065 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
24066 for operand[2] constraint.
24067 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
24069 2015-05-13 Jakub Jelinek <jakub@redhat.com>
24071 PR middle-end/66133
24072 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
24073 make sure it is never noreturn, even when the task body does not
24075 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
24076 right before GIMPLE_OMP_RETURN.
24077 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
24078 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
24079 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
24081 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24083 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
24084 * tree-ssa-math-opts.c: Include params.h
24085 (pow_synth_sqrt_info): New struct.
24086 (representable_as_half_series_p): New function.
24087 (get_fn_chain): Likewise.
24088 (print_nested_fn): Likewise.
24089 (dump_fractional_sqrt_sequence): Likewise.
24090 (dump_integer_part): Likewise.
24091 (expand_pow_as_sqrts): Likewise.
24092 (gimple_expand_builtin_pow): Use above to attempt to expand
24093 pow as series of square roots. Removed now unused variables.
24095 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
24097 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
24098 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
24099 Remove *p0 and *p1 arguments. Rewrite function.
24100 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
24101 (alpha_split_const_mov): Update calls to alpha_extract_integer and
24102 alpha_emit_set_long_const.
24103 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
24104 (alpha_output_mi_thunk_osf): Ditto.
24105 * config/alpha/alpha.md (movti): Do not check operands[1]
24108 2015-05-13 Richard Biener <rguenther@suse.de>
24110 PR tree-optimization/66129
24111 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
24113 (vect_schedule_slp_instance): Fix typo.
24115 2015-05-13 David Malcolm <dmalcolm@redhat.com>
24117 * common.opt (fdump-internal-locations): New option.
24118 * input.c: Include diagnostic-core.h.
24119 (get_end_location): New function.
24120 (write_digit): New function.
24121 (write_digit_row): New function.
24122 (dump_location_range): New function.
24123 (dump_labelled_location_range): New function.
24124 (dump_location_info): New function.
24125 * input.h (dump_location_info): New prototype.
24126 * toplev.c (compile_file): Handle flag_dump_locations.
24128 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
24130 * gimple-expr.h (is_gimple_constant): Reorder.
24131 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
24133 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24135 * combine.c (simplify_set): When generating a CC set, if the
24136 source already is in the correct mode, do not wrap it in a
24137 compare. Simplify the rest of that code.
24139 2015-05-13 Richard Biener <rguenther@suse.de>
24141 PR tree-optimization/66123
24142 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
24145 2015-05-13 Richard Biener <rguenther@suse.de>
24147 PR middle-end/66110
24148 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
24150 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
24152 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24154 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
24155 * aclocal.m4: Regenerated with automake-1.11.6.
24157 2015-05-13 Tom de Vries <tom@codesourcery.com>
24159 PR tree-optimization/66010
24160 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
24161 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
24162 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
24163 and rval based on do_deref.
24165 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24168 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
24169 link time constants into adress expressions and therefore set
24172 2015-05-13 Jakub Jelinek <jakub@redhat.com>
24175 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
24176 Use SWI248 iterator instead of SWI.
24177 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
24178 Use eq_attr "alternative" "0" instead of match_test in
24179 length_immediate attribute computation.
24180 (*mulvhi4, *mulvhi4_1): New define_insns.
24183 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
24184 SIGNED to get precision of non-negative value.
24186 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24189 * function.c (diddle_return_value_1): Process bounds first.
24190 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
24193 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
24195 PR rtl-optimization/64616
24196 * loop-invariant.c (can_move_invariant_reg): New.
24197 (move_invariant_reg): Call above new function to decide whether
24198 instruction can just be moved, skipping creation of temporary
24201 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24203 PR target/pr66047.c
24204 * i386.c (ix86_function_sseregparm): Only return -1 if local function
24205 with implied regparm is called from -mno-sse function.
24206 (init_cumulative_args): Output error if ix86_function_sseregparm
24207 return -1 and SSE register would be needed.
24208 (function_arg_advance_32): Likewise.
24209 (function_arg_32): Likewise.
24210 * i386.h (ix86_args): Add decl field.
24212 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24215 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
24216 inlines across optimization boundary.
24218 2015-05-12 Jason Merrill <jason@redhat.com>
24220 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
24221 string literal and macro name.
24223 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
24225 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
24226 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
24227 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
24229 2015-05-12 David Malcolm <dmalcolm@redhat.com>
24231 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
24232 (-Wmisleading-indentation): New option.
24233 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
24235 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
24237 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
24238 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
24239 (alpha_extract_integer): Ditto.
24240 (alpha_legitimate_constant_p): Ditto.
24241 (alpha_split_tmode_pair): Ditto.
24242 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
24243 (alpha_expand_mov): Ditto.
24244 (print_operand): Remove handling of 'H' modifier.
24245 <case 'm'>: Remove CONST_DOUBLE handling.
24246 (summarize_insn): Handle CONST_WIDE_INT.
24247 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
24249 (movti): Handle CONST_WIDE_INT.
24250 * config/alpha/constraints.md ('H'): Remove constraint definition.
24251 ('G'): Do not match MODE_FLOAT class.
24252 * config/alpha/predicates.md (const0_operand): Also match
24254 (non_add_const_operand): Ditto.
24255 (non_zero_const_operand): Ditto.
24256 (some_operand): Ditto.
24257 (input_operand): Ditto. Handle CONST_WIDE_INT.
24258 (and_operand): Do not match const_double.
24259 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
24261 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
24264 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
24265 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
24266 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
24267 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
24268 is_mm_seq_cst, is_mm_sync): New accessor functions.
24269 * builtins.c (expand_builtin_sync_operation,
24270 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
24271 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
24272 (get_memmodel, expand_builtin_atomic_compare_exchange,
24273 expand_builtin_atomic_load, expand_builtin_atomic_store,
24274 expand_builtin_atomic_clear): Use new accessor routines.
24275 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
24276 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
24277 (maybe_emit_sync_lock_test_and_set): Use new accessors and
24278 MEMMODEL_SYNC_ACQUIRE.
24279 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
24280 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
24281 expand_atomic_store): Use new accessors.
24282 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
24283 * tsan.c (instrument_builtin_call): Update check for memory model beyond
24284 final enum to use MEMMODEL_LAST.
24285 * c-family/c-common.c: Use new accessor for memmodel_base.
24286 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
24288 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
24289 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
24290 mem_thread_fence, *dmb): Likewise.
24291 * config/alpha/alpha.c (alpha_split_compare_and_swap,
24292 alpha_split_compare_and_swap_12): Likewise.
24293 * config/arm/arm.c (arm_expand_compare_and_swap,
24294 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
24295 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
24296 atomic_loaddi): Likewise.
24297 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
24299 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
24300 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
24302 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
24303 atomic_store<mode>, atomic_compare_and_swap<mode>,
24304 atomic_exchange<mode>): Use new accessors.
24305 * config/mips/mips.c (mips_process_sync_loop): Likewise.
24306 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
24307 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
24308 rs6000_post_atomic_barrier): Add new cases.
24309 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
24310 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
24311 (atomic_load<mode>): Add new cases and use new accessors.
24312 (store_quadpti): Add new cases.
24313 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
24315 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
24316 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
24319 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24321 * ipa-devirt.c (type_with_linkage_p): New function.
24322 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
24324 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
24325 (can_be_name_hashed_p): Simplify.
24326 (hash_odr_name): Check that type has linkage before checking if it is
24328 (types_same_for_odr): Likewise.
24329 (odr_name_hasher::equal): Likewise.
24330 (odr_subtypes_equivalent_p): Likewise.
24331 (warn_types_mismatch): Likewise.
24332 (get_odr_type): Likewise.
24333 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
24334 * ipa-utils.h (odr_type_p): Move offline.
24335 * tree.c (need_assembler_name_p): Fix handling of types
24337 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
24339 2015-05-12 David Malcolm <dmalcolm@redhat.com>
24341 * timevar.c (timevar_enable): Delete in favor of...
24342 (g_timer): New global.
24343 (struct timevar_def): Move to timevar.h inside class timer.
24344 (struct timevar_stack_def): Likewise.
24345 (timevars): Delete global in favor of field "m_timevars" within
24346 class timer in timevar.h
24347 (stack): Likewise, in favor of field "m_stack".
24348 (unused_stack_instances): Likewise, in favor of field
24349 "m_unused_stack_instances".
24350 (start_time): Likewise, in favor of field "m_start_time".
24351 (get_time): Eliminate check for timevar_enable.
24352 (timer::timer): New function, built from part of timevar_init.
24353 (timevar_init): Rewrite idempotency test from using
24354 "timevar_enable" bool to using dynamic allocation of "g_timer".
24355 Move rest of implementation into timer's constructor.
24356 (timevar_push_1): Rename to...
24357 (timer::push): ...this, adding "m_" prefixes to variables that
24358 are now fields of timer.
24359 (timevar_pop_1): Likewise, rename to...
24360 (timer::pop): ...this, and add "m_" prefixes.
24361 (timevar_start): Replace test for "timevar_enable" with one for
24362 "g_timer", and move bulk of implementation to...
24363 (timer::start): ...here, adding "m_" prefixes.
24364 (timevar_stop): Likewise, from here...
24365 (timer::stop): ...to here.
24366 (timevar_cond_start): Likewise, from here...
24367 (timer::cond_start): ...to here.
24368 (timevar_cond_stop): Likewise, from here...
24369 (timer::cond_stop): ...to here.
24370 (validate_phases): Rename to...
24371 (timer::validate_phases): ...this, and add "m_" prefixes. Make
24372 locals "total" and "tv" const.
24373 (timevar_print): Rename to...
24374 (timer::print): ...this, and add "m_" prefixes. Make locals
24375 "total" and "tv" const. Eliminate test for timevar_enable.
24376 * timevar.h (timevar_enable): Eliminate.
24377 (g_timer): New declaration.
24378 (timevar_push_1): Eliminate.
24379 (timevar_pop_1): Eliminate.
24380 (timevar_print): Eliminate.
24381 (class timer): New class.
24382 (timevar_push): Rewrite to use g_timer.
24383 (timevar_pop): Likewise.
24384 * toplev.c (toplev::~toplev): Likewise.
24386 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
24388 * arm-protos.h (arm_sched_autopref): Delete.
24389 (tune_params): Re-organize, use enums for flag values.
24390 (FUSE_OPS): New macro.
24391 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
24392 (ARM_PREFETCH_BENEFICIAL): Likewise.
24393 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
24394 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
24395 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
24396 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
24397 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
24398 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
24399 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
24400 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
24402 (arm_option_override, thumb2_reorg, arm_print_tune_info)
24403 (aarch_macro_fusion_pair_p): Update uses of current_tune.
24404 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
24406 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
24408 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
24411 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
24412 Sandra Loosemore <sandra@codesourcery.com>
24414 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
24416 (REG_CLASS_NAMES): Add "IJMP_REGS".
24417 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
24418 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
24419 use new "c" register constraint.
24420 * config/nios2/constraint.md (c): New register constraint
24421 corresponding to IJMP_REGS.
24423 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24425 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
24426 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
24427 define_splits): Delete, revamp, transmogrify into ...
24428 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
24429 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
24430 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
24433 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24435 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
24436 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
24438 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24440 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
24441 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
24442 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
24443 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
24444 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
24445 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
24446 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
24447 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
24448 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
24449 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24450 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
24451 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
24452 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
24453 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
24454 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
24455 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
24456 and 30 corresponding splitters): Delete.
24458 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24460 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
24463 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24465 * combine.c (recog_for_combine_1): New function, factored out
24466 from recog_for_combine.
24467 (change_zero_ext): New function.
24468 (recog_for_combine): If recog fails, try again with the pattern
24469 modified by change_zero_ext; if that still fails, restore the
24472 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24474 * combine.c (get_undo_marker): New function.
24475 (undo_to_marker): New function, largely factored out from ...
24476 (undo_all): ... this. Adjust.
24478 2015-05-12 Richard Biener <rguenther@suse.de>
24480 PR tree-optimization/66101
24481 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
24482 fixup if we turn a loop exit edge to a fallthru edge.
24484 2015-05-12 Richard Biener <rguenther@suse.de>
24486 PR tree-optimization/37021
24487 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
24488 (SLP_TREE_TWO_OPERATORS): New define.
24489 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
24490 SLP_TREE_TWO_OPERATORS.
24491 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
24493 (vect_build_slp_tree): Adjust.
24494 (vect_analyze_slp_cost_1): Likewise.
24495 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
24496 emitting two vector stmts and mixing the results.
24498 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
24500 * call.c (print_z_candidates): Remove dead code.
24502 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24504 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
24505 and zEC12_simple_fp.
24506 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
24509 2015-05-12 Tom de Vries <tom@codesourcery.com>
24511 PR tree-optimization/66010
24512 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
24514 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
24515 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
24516 va_lists are passed, and remove corresponding handling.
24517 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
24518 do_deref argument to ifn_va_arg.
24519 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
24522 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24525 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
24526 REG before taking its REGNO.
24528 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
24530 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
24531 rsp->sign_bit_copies and rsp->nonzero_bits into ...
24532 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
24533 present to get more accurate information about the number of sign bit
24534 copies and non zero bits.
24536 2015-05-12 Richard Biener <rguenther@suse.de>
24538 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
24539 do not allow unrolling.
24541 2015-05-11 Richard Henderson <rth@redhat.com>
24543 * config/i386/i386-modes.def (CCP): New.
24544 * config/i386/i386.c (put_condition_code): Handle it.
24545 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
24547 2015-05-11 Richard Henderson <rth@redhat.com>
24549 * target.def (md_asm_clobbers): Replace with...
24550 (md_asm_adjust): this.
24551 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
24552 (TARGET_MD_ASM_ADJUST): New.
24553 * tm.texi: Rebuild.
24554 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
24555 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
24556 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
24558 * cfgexpand.c (check_operand_nalternatives): Accept vector of
24559 constraints instead of lists of outputs and inputs.
24560 (expand_asm_stmt): Save and restore input_location around the
24561 body of the function. Move asm data into vectors instead of
24562 building tree lists. Generate cleanup sequences as needed,
24563 rather than waiting til the end. Use new md_asm_adjust hook.
24565 * config/vxworks.c: Include vec.h before target.h.
24566 * gimple.c: Likewise.
24567 * incpath.c: Likewise.
24568 * mode-switching.c: Likewise.
24570 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
24571 (cris_md_asm_adjust): this.
24572 (TARGET_MD_ASM_CLOBBERS): Remove.
24573 (TARGET_MD_ASM_ADJUST): New.
24574 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
24575 (ix86_md_asm_adjust): this.
24576 (TARGET_MD_ASM_CLOBBERS): Remove.
24577 (TARGET_MD_ASM_ADJUST): New.
24578 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
24579 (mn10300_md_asm_adjust): this.
24580 (TARGET_MD_ASM_CLOBBERS): Remove.
24581 (TARGET_MD_ASM_ADJUST): New.
24582 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
24583 (rs6000_md_asm_adjust): this.
24584 (TARGET_MD_ASM_CLOBBERS): Remove.
24585 (TARGET_MD_ASM_ADJUST): New.
24586 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
24587 (visium_md_asm_adjust): this.
24588 (TARGET_MD_ASM_CLOBBERS): Remove.
24589 (TARGET_MD_ASM_ADJUST): New.
24591 2015-05-11 Richard Henderson <rth@redhat.com>
24593 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
24594 if noutputs is zero.
24595 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
24597 * cfgexpand.c (expand_asm_operands): Merge into...
24598 (expand_asm_stmt): ... here.
24600 * cfgexpand.c (expand_asm_operands): Don't call
24601 resolve_asm_operand_names.
24602 * stmt.c (resolve_asm_operand_names): Clarify block comment.
24604 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
24606 * dwarf2out.c (gen_member_die): Sanity check that we access
24607 TYPE_MAIN_VARIANT for TYPE_METHODS.
24608 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
24609 checking TYPE_METHODS.
24610 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
24612 (build_distinct_type_copy): Clear TYPE_METHODS.
24613 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
24614 (verify_type): Allow TYPE_METHODS to be error_mark_node.
24615 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
24617 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
24619 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
24620 (emit_pattern_before_setloc): Likewise.
24622 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24624 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
24625 for define_peephole2s.
24626 (get_peephole2_pattern): New function.
24627 (main): Use it. Call validate_pattern.
24629 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24631 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
24632 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
24633 (Last callee saved reg is different for AVR_TINY architecture)
24635 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24637 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
24638 when looking for memory references.
24640 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24643 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
24644 via function pointers.
24646 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24648 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
24649 indirect call by forcing address into a pseudo with -fno-plt.
24650 * common.opt (flag_plt): New option.
24651 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
24652 ([-fno-plt]): Document.
24654 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
24657 * config/rs6000/option-defaults.h: Add space between string literal
24660 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
24662 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
24663 accross ARM targets.
24665 2015-05-11 Christian Bruel <christian.bruel@st.com>
24667 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
24668 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
24670 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24672 PR rtl-optimization/66076
24673 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
24674 Don't grow the heap array if it is already big enough from a
24675 previous iteration.
24677 2015-05-11 Christian Bruel <christian.bruel@st.com>
24679 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
24680 (is_called_in_ARM_mode): Remove.
24681 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
24682 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
24683 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
24684 arm_declare_function_name.
24686 2015-05-11 Christian Bruel <christian.bruel@st.com>
24688 * config/arm/arm.c (arm_option_override): Reoganized and split into :
24689 (arm_option_params_internal); New function.
24690 (arm_option_check_internal): New function.
24691 (arm_option_override_internal): New function.
24692 (thumb_code, thumb1_code): Remove.
24693 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
24694 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
24695 (thumb_code, thumb1_code): Remove.
24696 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
24698 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24700 * config/alpha/alpha.c (alpha_emit_set_const_1)
24701 (alpha_emit_set_long_const, alpha_extract_integer)
24702 (alpha_legitimate_constant_p, alpha_split_const_mov)
24703 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
24704 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24705 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
24707 * config/alpha/predicates.md (mode_mask_operand): Do not match
24709 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24710 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
24711 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
24712 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24713 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
24715 2015-05-11 Jakub Jelinek <jakub@redhat.com>
24718 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
24719 default_binds_local_p_2.
24720 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
24721 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
24723 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24725 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
24727 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24729 Patch by Richard Biener
24730 * coverage.c (coverage_obj_init): Delay building of type variant
24731 until the type is finished.
24733 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24735 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
24736 mismatch between C and C++ type; compoare correctly ARG_TYPES
24737 for non-prototypes and output correctly parameter index for METHOD_TYPE.
24738 (odr_types_equivalent_p): Fix wording of warning about attributes;
24739 it is OK to match prototype and non-prototype.
24741 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24743 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
24744 TYPE_ARG_TYPES list.
24745 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
24746 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
24748 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24750 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
24751 * tree.h (is_lang_specific): Constify.
24753 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
24755 PR tree-optimization/64454
24756 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
24759 2015-05-08 Jason Merrill <jason@redhat.com>
24761 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
24762 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
24763 config/darwin.h, config/darwin9.h, config/elfos.h,
24764 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
24765 config/microblaze/microblaze.h, config/mips/mips.h,
24766 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
24767 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
24768 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
24769 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
24770 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
24771 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
24772 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
24773 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
24774 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
24775 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
24776 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
24777 between string literal and macro name.
24779 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24781 * jump.c: Change argument types to rtx_insn *.
24784 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24786 * lra-constraints.c: Change argument type to rtx_insn *.
24788 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24790 * df-problems.c: Change argument type to rtx_insn *.
24792 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24794 * combine.c: Change argument type to rtx_insn *.
24796 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24799 * rtlanal.c: Change argument type to rtx_insn *.
24801 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24803 * sched-deps.c: Change argument types to rtx_insn *.
24804 * sched-int.h: Adjust.
24806 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24808 * dwarf2cfi.c: Change argument type to rtx_insn *.
24810 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24812 * ira.c (decrease_live_ranges_number): Changetype of local
24813 variable to rtx_insn *.
24814 * recog.c: Change argument types to rtx_insn *.
24817 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24819 * reorg.c: Change argument types to rtx_insn *.
24821 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24823 * ira-color.c: Change argument types to rtx_insn *.
24824 * lra-eliminations.c: Likewise.
24827 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24829 * gcse.c: Change argument types to rtx_insn *.
24831 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24833 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
24835 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24837 * emit-rtl.c (emit_debug_insn_before): Change argument type to
24841 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24843 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
24846 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24848 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
24851 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24853 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
24856 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24858 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
24861 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24863 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
24867 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24869 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
24873 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24875 * except.c (can_nonlocal_goto): Change type of argument to
24879 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24881 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
24884 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24886 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
24887 * cfgrtl.c (can_delete_label_p): Adjust.
24890 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24892 * reorg.c (stop_search_p): Change argument to rtx_insn *.
24894 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24896 * except.c (make_reg_eh_region_note): Change argument to
24898 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
24899 * except.h: Adjust.
24901 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24903 * mode-switching.c (commit_mode_sets): Change type of local
24904 variable from rtx to rtx_insn *.
24906 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
24908 * doc/install.texi (--enable-languages): Add missing jit and lto info.
24909 Add ^ to grep command.
24910 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
24911 arg to last gimple_simplify declaration. Add missing gimple_build
24912 declaration for built-in function case with four tree args.
24914 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
24915 Szabolcs Nagy <szabolcs.nagy@arm.com>
24917 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
24918 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
24919 (GNU_USER_DYNAMIC_LINKERN32): Update.
24921 2015-05-08 Richard Biener <rguenther@suse.de>
24923 PR tree-optimization/66036
24924 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
24925 Handle strided group loads.
24926 (vect_verify_datarefs_alignment): Likewise.
24927 (vect_enhance_data_refs_alignment): Likewise.
24928 (vect_analyze_group_access): Likewise.
24929 (vect_analyze_data_ref_access): Likewise.
24930 (vect_analyze_data_ref_accesses): Likewise.
24931 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
24932 (vectorizable_load): Likewise.
24934 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
24936 * config/rs6000/rs6000.md: Require operand inequality in one
24939 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
24940 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24942 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
24944 * config/rx/rx.md (movdi, movdf): Likewise.
24945 Likewise for define_peephole2s.
24947 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24949 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
24950 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
24951 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
24952 vtst_u64): Rewrite using gcc vector extensions.
24954 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24956 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
24957 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
24959 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24961 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
24963 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
24965 * config/glibc-stdint.h (OPTION_MUSL): Define.
24966 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
24967 Change the definition based on OPTION_MUSL for 64 bit targets.
24968 * config/linux.h (OPTION_MUSL): Redefine.
24969 * config/alpha/linux.h (OPTION_MUSL): Redefine.
24970 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
24971 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
24973 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
24974 Szabolcs Nagy <szabolcs.nagy@arm.com>
24976 * config.gcc (LIBC_MUSL): New tm_defines macro.
24977 * config/linux.h (OPTION_MUSL): Define.
24978 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
24979 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
24980 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24981 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24982 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24983 * config/linux.opt (mmusl): New option.
24984 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
24985 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24986 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24987 * configure: Regenerate.
24989 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
24990 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24993 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
24994 * config/i386/knetbsd-gnu64.h: New file.
24996 2015-05-08 Marek Polacek <polacek@redhat.com>
24999 * doc/invoke.texi: Document -Woverride-init-side-effects.
25001 2015-05-07 Marek Polacek <polacek@redhat.com>
25004 * doc/invoke.texi: Document -Wshift-negative-value.
25006 2015-05-06 Aditya Kumar <hiraditya@msn.com>
25008 * gcov-tool.c (do_merge): Refactore to remove int ret.
25009 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
25010 !type == FUNC to type != FUNC.
25011 * reload.h (struct target_reload): Changee to type of
25012 x_spill_indirect_levels from bool to unsigned char.
25014 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
25016 * rtl.h (always_void_p): New function.
25017 * gengenrtl.c (always_void_p): Likewise.
25018 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
25019 with code foo are always VOIDmode.
25020 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
25021 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
25022 compare-elim.c, config/aarch64/aarch64.c,
25023 config/aarch64/aarch64.md, config/alpha/alpha.c,
25024 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
25025 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
25026 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
25027 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25028 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
25029 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
25030 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
25031 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
25032 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
25033 config/ia64/vect.md, config/iq2000/iq2000.c,
25034 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
25035 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
25036 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
25037 config/mep/mep.c, config/microblaze/microblaze.c,
25038 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
25039 config/mn10300/mn10300.c, config/msp430/msp430.c,
25040 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
25041 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
25042 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
25043 config/rs6000/altivec.md, config/rs6000/rs6000.c,
25044 config/rs6000/rs6000.md, config/rs6000/vector.md,
25045 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
25046 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
25047 config/sh/sh.md, config/sh/sh_treg_combine.cc,
25048 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
25049 config/spu/spu.md, config/stormy16/stormy16.c,
25050 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
25051 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
25052 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
25053 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
25054 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
25055 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
25056 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
25057 var-tracking.c: Update calls accordingly.
25059 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25062 PR middle-end/54303
25063 * varasm.c (function_mergeable_rodata_prefix): New function.
25064 (mergeable_string_section): Use it.
25065 (mergeable_constant_section): Use it.
25067 2015-05-07 Jeff Law <law@redhat.com>
25070 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25071 simplifier to narrow arithmetic.
25072 * generic-match-head.c: (types_match, single_use): New functions.
25073 * gimple-match-head.c: (types_match, single_use): New functions.
25075 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25077 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
25080 2015-05-07 Richard Biener <rguenther@suse.de>
25082 PR tree-optimization/66002
25083 * passes.def: Schedule another pass_merge_phi after ifcombine, right
25086 2015-05-07 Marek Polacek <polacek@redhat.com>
25087 Martin Uecker <uecker@eecs.berkeley.edu>
25089 * doc/invoke.texi: Document -fsanitize=bounds-strict.
25090 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
25091 into SANITIZE_NONDEFAULT.
25092 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
25094 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
25097 * config/alpha/alpha.c (alpha_override_options_after_change): New.
25098 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
25099 (alpha_override_options): Move align_loops, align_jumps and
25100 align_functions handling into alpha_override_options_after_change.
25102 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
25103 Chris Jones <chrisj@nvidia.com>
25104 Joshua Conner <jconner@nvidia.com>
25106 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
25107 linking of crtfastmath.o.
25108 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
25110 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25112 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
25113 (cstore<mode>4_unsigned_imm): New expander.
25114 (cstore<mode>4): Remove empty constraint strings. Use the new
25117 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
25120 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
25123 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
25125 * config/aarch64/geniterators.sh: Use standard BRE in sed.
25127 2015-05-06 Alan Modra <amodra@gmail.com>
25130 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
25131 (UNSPEC_NOP): Define.
25132 (reload_vsx_from_gpr<mode>): Add missing DONE.
25133 (reload_gpr_from_vsx<mode>): Likewise.
25134 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
25135 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
25137 2015-05-06 Christian Bruel <christian.bruel@st.com>
25140 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
25141 align_jumps, align_functions into aarch64_override_options_after_change.
25143 2015-05-06 Richard Biener <rguenther@suse.de>
25145 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
25146 vect_transform_slp_perm_load to check if we support a permutation
25147 for basic-block vectorization.
25149 2015-05-06 Nick Clifton <nickc@redhat.com>
25151 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
25152 used, even if it is not being used as a frame pointer.
25154 2015-05-05 Jason Merrill <jason@redhat.com>
25156 * dwarf2out.c (gen_member_die): Don't emit anything for an
25157 anonymous class constructor.
25159 2015-05-05 David Malcolm <dmalcolm@redhat.com>
25161 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
25162 that it reflects the block structure.
25163 (afdo_propagate_edge): Likewise.
25164 (afdo_calculate_branch_prob): Likewise.
25165 (afdo_annotate_cfg): Likewise.
25166 * cfgcleanup.c (equal_different_set_p): Likewise.
25167 (try_crossjump_to_edge): Likewise.
25168 * cgraph.c (cgraph_node::verify_node): Likewise.
25169 * cgraphunit.c (expand_all_functions): Likewise.
25170 * config/i386/i386.c (ix86_expand_copysign): Likewise.
25171 (exact_dependency_1): Likewise.
25172 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
25173 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
25174 * gensupport.c (process_define_subst): Likewise.
25175 * lto-wrapper.c (merge_and_complain): Likewise.
25176 * tree-if-conv.c (if_convertible_bb_p): Likewise.
25177 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
25178 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
25179 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
25180 * tree-vect-loop.c (vectorizable_reduction): Likewise.
25181 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
25182 * tree-vect-stmts.c (vectorizable_shift): Likewise.
25183 * tree-vrp.c (vrp_finalize): Likewise.
25184 * tree.c (variably_modified_type_p): Likewise.
25186 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
25188 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
25189 on darwin12 and later.
25190 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
25191 file to pass -rdynamic on darwin12 and later.
25192 * config/darwin.opt (rdynamic): Add.
25194 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25196 * doc/extend.texi (C Extensions): Update menu for moved Variable
25197 Attributes and Type Attributes sections.
25199 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25202 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
25203 if rep_8byte stringop strategy was specified for 32-bit target.
25205 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
25208 * config/i386/i386.md (vector convert to float spltiter): Check for
25209 xmm16+, when splitting scalar float conversion.
25210 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
25212 2015-05-05 Nick Clifton <nickc@redhat.com>
25214 * config/msp430/msp430-opts.h (enum msp430_regions): New.
25215 * config/msp430/msp430.c (msp430_override_options): Complain if
25216 -mcode-region or -mdata-region is used on a non MSP430X.
25217 (msp430_section_attr): New function. Checks lower, upper and
25219 (msp430_attribute_table): Add lower, upper and either.
25220 (gen_prefix): New function. Generates a prefix for a section
25222 (msp430_select_section): New function - handles the choice of
25223 section for an object. Takes into account memory region
25224 attributes and options.
25225 (msp430_function_section): Use gen_prefix.
25226 (TARGET_SECTION_TYPE_FLAGS): Define.
25227 (msp430_section_type_flags): New function.
25228 (TARGET_ASM_UNIQUE_SECTION): Define.
25229 (msp430_unique_section): New function.
25230 (msp430_output_aligned_decl_common): New function.
25231 (msp430_do_not_relax_short_jumps): New function.
25232 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
25234 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
25235 * config/msp430/msp430-protos.h
25236 (msp430_do_not_relax_short_jumps): New prototype.
25237 (msp430_output_aligned_decl_common): New prototype.
25238 * config/msp430/msp430.md (length): New attribute.
25239 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
25240 then use a long code sequence for short jumps.
25241 * config/msp430/msp430.opt (mcode-region): New.
25242 (mdata-region): New.
25243 * doc/invoke.texi: Document new options.
25244 * doc/extend.texi: Document new attributes.
25246 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
25248 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
25249 (tune_params): Add field branch_costs.
25250 (aarch64_branch_cost): Declare.
25251 * gcc/config/aarch64.c (generic_branch_cost): New.
25252 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
25253 (cortexa53_tunings): Likewise.
25254 (cortexa57_tunings): Likewise.
25255 (thunderx_tunings): Likewise.
25256 (xgene1_tunings): Likewise.
25257 (aarch64_branch_cost): Define.
25258 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
25260 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25262 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
25263 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
25264 * config/i386/i386.md: Ditto.
25265 * config/i386/winnt.c: Ditto.
25267 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
25269 * doc/extend.texi (__atomic Builtins): Move implementation details
25270 to the end of the description, rewrite opening paragraphs, state
25271 difference with __sync builtins, state C11/C++11 assumptions,
25272 weaken itemized descriptions, add explanation of memory model
25273 behaviour, expand description of compare-exchange, simplify text.
25275 2015-05-05 Renlin Li <renlin.li@arm.com>
25277 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
25279 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
25281 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
25282 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25283 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
25284 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25285 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
25286 * configure: Regenerate.
25287 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
25288 * doc/install.texi (aarch64*-*-*): Document new
25289 --enable-fix-cortex-a53-843419 option.
25290 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
25291 and -mno-fix-cortex-a53-843419 options.
25293 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25296 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
25298 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
25300 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
25301 fix overactive TYPE_MIN_VALUE check and add FIXME for type
25302 compatibility problems.
25304 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
25306 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
25308 (cbranchsi4_reg): New.
25309 * config/microblaze/microblaze.c
25310 (microblaze_expand_conditional_branch_reg): New.
25311 * config/microblaze/microblaze-protos.h
25312 (microblaze_expand_conditional_branch_reg): New prototype.
25314 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
25316 * config/microblaze/microblaze.md (peephole2): New.
25318 2015-05-04 Jeff Law <law@redhat.com>
25321 2015-05-04 Jeff Law <law@redhat.com>
25323 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25324 simplifier to narrow arithmetic.
25325 * generic-match-head.c: (types_match, single_use): New functions.
25326 * gimple-match-head.c: (types_match, single_use): New functions.
25328 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
25331 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
25332 (split_branches): Likewise.
25334 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
25336 * common.opt (fdelete-null-pointer-checks): Init to -1.
25337 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
25338 override flag_delete_null_pointer_checks default.
25339 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
25340 behavior re address zero. Better document target-specific behavior.
25341 (-fisolate-errneous-paths-dereference): Mention relationship to
25342 -fdelete-null-pointer-checks.
25344 2015-05-04 Jakub Jelinek <jakub@redhat.com>
25346 PR tree-optimization/65984
25347 * ubsan.c: Include tree-cfg.h.
25348 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
25349 stmt_could_throw_p test, rename can_throw variable to ends_bb.
25351 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
25353 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
25354 to CONST_DOUBLE_P predicate.
25355 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
25356 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
25357 allow only operands that satisfy standard_sse_constant_p predicate.
25358 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
25359 to CONST_DOUBLE_P predicate.
25361 2015-05-04 Jeff Law <law@redhat.com>
25363 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25364 simplifier to narrow arithmetic.
25365 * generic-match-head.c: (types_match, single_use): New functions.
25366 * gimple-match-head.c: (types_match, single_use): New functions.
25368 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
25370 * config/arm/arm.c: Restore bootstrap.
25372 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
25374 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
25375 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
25376 as CONST_WIDE_INT, not CONST_DOUBLE.
25377 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
25378 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
25379 (ix86_find_base_term): Do not check for CONST_DOUBLE.
25380 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
25381 (ix86_build_signbit_mask): Rewrite using wide ints.
25382 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
25383 (ix86_rtx_costs): Handle CONST_WIDE_INT.
25384 (find_constant): Ditto.
25385 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
25386 using gen_int_mode.
25387 * config/i386/predicates.md (x86_64_immediate_operand)
25388 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25389 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
25390 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25391 (const0_operand): Also match const_wide_int.
25392 (constm1_operand): Ditto.
25393 (const1_operand): Ditto.
25395 2015-05-04 Richard Biener <rguenther@suse.de>
25397 PR tree-optimization/65965
25398 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
25399 store groups at gaps.
25401 2015-05-04 Richard Biener <rguenther@suse.de>
25403 PR tree-optimization/65935
25404 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
25405 then make sure to apply that swapping to the IL.
25407 2015-05-04 Jakub Jelinek <jakub@redhat.com>
25409 * Makefile.in (PATCHLEVEL_c): New variable.
25410 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
25411 expand the same way as if DEVPHASE_c was non-empty.
25413 2015-05-04 Kai Tietz <ktietz@redhat.com>
25416 * lto-wrapper.c (run_gcc): Open filename
25419 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
25421 * doc/extend.texi (Variable Attributes, Type Attributes): Move
25422 sections up in file, to immediately after the Function Attributes
25425 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
25427 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
25429 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25431 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
25432 (insert_partition_copy_on_edge): Adjust.
25433 (insert_rtx_to_part_on_edge): Likewise.
25434 (insert_part_to_rtx_on_edge): Likewise.
25436 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25438 * function.c (set_return_jump_label): Change type of argument to
25440 * function.h (set_return_jump_label): Adjust.
25442 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25444 * reload.h (struct reg_equivs_t): Change type of init to
25446 * ira.c (fix_reg_equiv_init): Adjust.
25447 * reload1.c (eliminate_regs_1): Likewise.
25448 (init_eliminable_invariants): Likewise.
25450 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25452 * cselib.c (fp_setter_insn): Take a rtx_insn *.
25453 * cselib.h (fp_setter_insn): Adjust.
25455 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25457 * recog.c (struct validate_replace_src_data): Change type of
25458 insn field to rtx_insn *.
25459 (validate_replace_src_group): Change type of argument to rtx_insn *.
25460 * recog.h (validate_replace_src_group): Adjust.
25462 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25464 * haifa-sched.c: Change the type of some variables to rtx_insn *.
25465 * sched-deps.c: Likewise.
25466 * sched-int.h: Likewise.
25467 * sched-rgn.c: Likewise.
25468 * sel-sched.c: Likewise.
25470 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25473 * config/i386/i386.c: Change the type of some arguments to
25475 * config/arm/arm.c: Likewise.
25477 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25479 * lra-constraints.c: Change type of some arguments to rtx_insn *.
25481 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25483 * regcprop.c (kill_autoinc_value): Change type of argument to
25486 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25488 * genrecog.c (print_subroutine): Adjust.
25489 * recog.c (get_bool_attr_mask_uncached): Likewise.
25490 * recog.h (struct recog_data_d): Change the type of insn to
25493 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25495 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
25497 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25499 * df-problems.c (df_set_note): Change type of argument to
25502 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25504 * builtins.c (expand_builtin_trap): Change type of local
25505 variable to rtx_insn *.
25506 (add_sched_insns_for_speculation): Likewise.
25507 (ix86_emit_save_regs): Likewise.
25508 (get_scratch_register_on_entry): Likewise.
25509 (ix86_emit_restore_reg_using_pop): Likewise.
25510 (ix86_emit_leave): Likewise.
25511 (ix86_emit_restore_regs_using_mov): Likewise.
25512 (ix86_expand_epilogue): Likewise.
25514 (rl78_alloc_physical_registers_umul): Likewise.
25515 * cselib.c (discard_useless_locs): Likewise.
25516 (cselib_invalidate_regno): Likewise.
25517 (cselib_invalidate_mem): Likewise.
25518 * function.c (expand_function_start): Likewise.
25519 (emit_use_return_register_into_block): Likewise.
25520 * gcse.c: Likewise.
25521 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
25522 * ifcvt.c (noce_get_alt_condition): Likewise.
25523 * loop-doloop.c (doloop_condition_get): Likewise.
25524 * lra-constraints.c (inherit_in_ebb): Likewise.
25525 * modulo-sched.c (sms_schedule_by_order): Likewise.
25526 * recog.c (next_insn_tests_no_inequality): Likewise.
25527 * reorg.c (emit_delay_sequence): Likewise.
25528 (update_reg_dead_notes): Likewise.
25529 (fix_reg_dead_note): Likewise.
25530 (fill_slots_from_thread): Likewise.
25531 (delete_computation): Likewise.
25533 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
25535 * doc/extend.texi (Variable Attributes): Add menu and proper
25536 @nodes to subsections. Move Microsoft Windows attributes to
25537 their own subsection.
25538 (Type Attributes): Reorganize introduction to remove duplicate
25539 list of attributes. Add menu and proper @nodes to subsections.
25540 Alphabetize the main table of common attributes.
25542 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
25544 * match.pd: New simplification patterns.
25545 (x + (x & 1)) -> ((x + 1) & ~1)
25546 (x & ~(x & y)) -> ((x & ~y))
25547 (x | ~(x | y)) -> ((x | ~y))
25549 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25551 * target.def (attribute_table): Mention that struct attribute_spec
25552 is defined in tree-core.h rather than tree.h
25553 * doc/tm.texi: Regenerate.
25555 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
25557 * genrecog.c (test): Rename to rtx_test. Update rest of file
25560 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
25562 PR translation/65959
25563 * params.h (DEFPARAM): Rename msgid to nocmsgid.
25565 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25567 * gcc/config/aarch64/aarch64-protos.h (tune_params):
25568 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
25569 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
25570 Return value depending on target.
25571 (generic_tunings): Initialize new target settings.
25572 (cortexa53_tunings): Likewise.
25573 (cortexa57_tunings): Likewise.
25574 (thunderx_tunings): Likewise.
25575 (xgene1_tunings): Likewise.
25577 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25579 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
25580 Make Cortex-A53 shift costs more accurate.
25582 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25584 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
25587 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25589 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
25590 Calculate cost of op0 and op1 in PLUS and MINUS cases.
25592 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25594 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25595 Add cost of op0 in the compare-with-fpzero case.
25597 2015-04-30 David Malcolm <dmalcolm@redhat.com>
25599 * builtins.c (fold_builtin_1): Remove spurious second
25601 * cgraph.h (symtab_node::get_availability): Likewise.
25602 * opts.c (common_handle_option): Remove spurious second semicolon.
25603 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25604 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
25606 2015-04-30 Caroline Tice <cmtice@google.com>
25608 PR gcov-profile/65929
25609 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
25610 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
25611 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
25612 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
25613 * doc/tm.texi: Regenerate.
25614 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
25615 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
25616 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
25617 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
25619 2015-04-30 Marek Polacek <polacek@redhat.com>
25621 * varasm.c (handle_cache_entry): Fix logic.
25623 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25625 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
25626 (*extrsi5_insn_uxtw_alt): Likewise.
25627 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
25628 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
25631 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25633 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
25636 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25638 * config/aarch64/aarch64.md
25639 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
25640 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
25641 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
25642 appropriately. Handle alternative EON form.
25644 2015-04-30 Renlin Li <renlin.li@arm.com>
25646 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
25647 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
25649 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25652 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
25653 -fstrict-aliasing boundaries.
25655 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25657 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
25658 and [SU]MNEGL patterns.
25660 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25662 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
25663 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
25664 combined arithmetic-shift ops. Properly handle all shift and extend
25665 operations that can occur in combination with PLUS/MINUS.
25666 Rename maybe_fma to compound_p.
25667 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
25668 arithmetic and shift operations.
25670 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25672 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
25673 rather than arith_shift cost when costing ADD/MINUS of an
25676 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25679 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
25682 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
25684 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
25685 are for the same position.
25687 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
25689 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
25691 (vectorize_loops): Use it.
25693 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25695 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
25696 for aggregate types.
25697 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
25698 type to be non_ODR.
25699 * tree.c (need_assembler_name_p): Compute mangled name for
25700 non-fundamental types and integer types.
25702 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
25704 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
25706 * expr.c (expand_expr_real_2): Likewise.
25708 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25710 * tree.c (build_common_builtin_nodes): Do not build
25711 __builtin_alloca_with_align as equivalent of library alloca.
25713 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25715 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
25716 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
25718 * tree.c: Include print-tree.h and ipa-utils.h
25719 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
25720 (free_lang_data_in_cgraph): Call verify_type.
25721 (verify_type_variant): New function.
25722 (verify_type): New function.
25723 * tree.h (verify_type): Declare.
25725 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
25727 * config/mips/mips-cpus.def: (mips4): Change default processor
25728 from PROCESSOR_R8000 to PROCESSOR_R10000.
25730 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
25732 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
25733 la/jalr instead of jal.
25735 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
25738 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
25739 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
25740 (setcc+movzbl peephole2): Check also clobbered reg.
25741 (setcc+andl peephole2): Ditto.
25743 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25746 * config/nvptx/mkoffload.c (target_ilp32): New variable.
25747 (main): Set it depending on "-foffload-abi=[...]".
25748 (compile_native, main): Use it to pass "-m32" or "-m64" to the
25751 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25754 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
25755 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
25756 Flip lane index back at assembly time for bigendian.
25758 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25760 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
25761 * gimplify.c (gimplify_omp_workshare): Use it.
25763 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25765 * Makefile.in (build/genrecog.o): Depend on inchash.h.
25766 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
25768 * genrecog.c: Rewrite most of the code except for the third page.
25770 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25772 * inchash.h, inchash.c: Include bconfig.h for build objects.
25773 * Makefile.in (build/inchash.o): New rule.
25775 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
25778 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
25779 number in type attribute expression.
25781 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25783 * loop-iv.c (canon_condition): Generalize to all types of integer
25786 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
25788 * gimple-walk.c: Prune duplicate or unneeded includes.
25789 (walk_gimple_asm): Only call parse_input_constraint or
25790 parse_output_constraint if their findings are used.
25791 Honour parse_input_constraint and parse_output_constraint
25794 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25796 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
25798 2015-04-29 Tom de Vries <tom@codesourcery.com>
25800 PR tree-optimization/65893
25801 * passes.def (pass_all_optimizations): Move pass_stdarg to after
25804 2015-04-29 Richard Biener <rguenther@suse.de>
25806 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25807 compute GROUP_SIZE for basic-block SLP.
25808 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
25809 take into account gaps.
25810 (vect_get_mask_element): Properly reject references to previous
25812 (vect_transform_slp_perm_load): Likewise.
25814 2015-04-29 Christian Bruel <christian.bruel@st.com>
25817 * config/i386/i386.c (ix86_default_align): New function.
25818 (ix86_override_options_after_change): Call ix86_default_align.
25819 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
25820 (ix86_override_options_after_change): New function.
25822 2015-04-28 Jeff Law <law@redhat.com>
25824 * tree-ssa-dom.c (record_equality); Fix comment typos.
25826 2015-04-28 Tom de Vries <tom@codesourcery.com>
25828 PR tree-optimization/65887
25829 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
25831 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
25833 * doc/extend.texi (Declaring Attributes of Functions): Split into
25834 subsections by target. Alphabetize the table of common attributes.
25835 Rewrite some of the introductory text to reflect the new structure.
25836 Update some cross-references to point to the new subsections.
25837 (Attribute Syntax): Put paragraph about "__" naming here. Remove
25838 duplicate copies in the discussion of function, label, and type
25841 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
25844 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
25846 2015-04-28 Jason Merrill <jason@redhat.com>
25849 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
25850 (finalize_type_size): Respect TYPE_USER_ALIGN.
25851 (layout_type) [ARRAY_TYPE]: Likewise.
25853 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
25855 * config/arm/arm.md (*arm_movt): Fix type attribute.
25856 (*cmpsi_shiftsi): Likewise.
25857 (*cmpsi_shiftsi_swp): Likewise.
25858 (*movsicc_insn): Likewise.
25859 (*cond_move): Likewise.
25860 (*if_plus_move): Likewise.
25861 (*if_move_plus): Likewise.
25862 (*if_arith_move): Likewise.
25863 (*if_move_arith): Likewise.
25864 (*if_shift_move): Likewise.
25865 (*if_move_shift): Likewise.
25866 (*arm_movtas_ze): Likewise.
25867 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
25868 redundancy and type attribute.
25869 (*thumb2_movsi_insn): Fix type attribute.
25870 (*thumb2_addsi_short): Likewise.
25871 (thumb2_addsi3_compare0): Likewise.
25872 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
25873 attributes accordingly.
25875 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
25878 * function.c (pad_to_arg_alignment): Add parentheses.
25880 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
25882 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
25883 libgcc/config/frv/elf-lib.h.
25885 2015-04-28 Tom de Vries <tom@codesourcery.com>
25887 * tree-call-cdce.c: Fix example in header comment.
25889 2015-04-28 Richard Biener <rguenther@suse.de>
25891 PR tree-optimization/62283
25892 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
25893 fails fatally and we are vectorizing a basic-block simply
25894 cause the child to be constructed piecewise.
25895 (vect_analyze_slp_cost_1): Adjust.
25896 (vect_detect_hybrid_slp_stmts): Likewise.
25897 (vect_bb_slp_scalar_cost): Likewise.
25898 (vect_get_constant_vectors): For piecewise constructed
25899 constants place them after the last def.
25900 (vect_get_slp_defs): Adjust.
25901 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
25902 externals for basic-block vectorization.
25904 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25907 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
25909 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
25910 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
25911 (AARCH64_TUNE_FMA_STEERING): Likewise.
25912 * config/aarch64/aarch64-cores.def: Set
25913 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
25914 FMUL/FMADD instructions.
25915 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
25916 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
25917 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
25918 * config/aarch64/cortex-a57-fma-steering.h: New file.
25919 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25921 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
25923 * gensupport.c (std_preds): Add missing codes to address_operand entry.
25925 2015-04-28 Richard Biener <rguenther@suse.de>
25927 PR tree-optimization/65851
25928 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
25929 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
25930 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
25931 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
25932 (ccp_visit_phi_node): Adjust.
25933 (evaluate_stmt): For simplifications to SSA names return its
25934 lattice value if that isn't VARYING. Return immediately when
25935 simplified to a constant.
25936 (visit_assignment): Adjust.
25937 (ccp_visit_stmt): Likewise.
25939 2015-04-28 Tom de Vries <tom@codesourcery.com>
25941 PR tree-optimization/65818
25942 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
25945 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25947 * calls.c (save_fixed_argument_area): Don't check
25948 ARGS_GROW_DOWNWARD with the preprocessor.
25949 (restore_fixed_argument_area): Likewise.
25950 (mem_overlaps_already_clobbered_arg_p): Likewise.
25951 (check_sibcall_argument_overlap): Likewise.
25952 (expand_call): Likewise.
25953 (emit_library_call_value_1): Likewise.
25954 (store_one_arg): Likewise.
25955 * function.c (assign_parms): Likewise.
25956 (locate_and_pad_parm): Likewise.
25957 (pad_to_arg_alignment): Likewise.
25958 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
25960 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25962 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
25963 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
25964 * calls.c (save_fixed_argument_area): Don't chekc if
25965 ARGS_GROW_DOWNWARD is defined.
25966 (restore_fixed_argument_area): Likewise.
25967 (mem_overlaps_already_clobbered_arg_p): Likewise.
25968 (check_sibcall_argument_overlap): Likewise.
25969 (expand_call): Likewise.
25970 (emit_library_call_value_1): Likewise.
25971 (store_one_arg): Likewise.
25972 * function.c (assign_parms): Likewise.
25973 (locate_and_pad_parm): Likewise.
25974 (pad_to_arg_alignment): Likewise.
25975 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
25977 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25979 * defaults.h (gen_epilogue): New function.
25980 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
25982 * cfgrtl.c (cfg_layout_finalize): Likewise.
25983 * df-scan.c: Likewise.
25984 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25985 (reposition_prologue_and_epilogue_notes): Likewise.
25986 * reorg.c (find_end_label): Likewise.
25987 * toplev.c: Likewise.
25989 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25991 * bb-reorder.c (HAVE_return): Don't check if its undefined.
25992 * defaults.h (gen_simple_return): New function.
25993 (gen_simple_return): Likewise.
25994 (HAVE_return): Add default definition to false.
25995 (HAVE_simple_return): Likewise.
25996 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
25997 HAVE_return and HAVE_simple_return are defined.
25998 * function.c (gen_return_pattern): Likewise.
25999 (convert_jumps_to_returns): Likewise.
26000 (thread_prologue_and_epilogue_insns): Likewise.
26001 * reorg.c (find_end_label): Likewise.
26002 (dbr_schedule): Likewise.
26003 * shrink-wrap.c: Likewise.
26004 * shrink-wrap.h: Likewise.
26006 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26008 * defaults.h (EPILOGUE_USES): Add default definition of false.
26009 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
26010 * resource.c (init_resource_info): Likewise.
26012 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26014 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
26016 * dwarf2out.c (field_byte_offset): REmove check if
26017 PCC_BITFIELD_TYPE_MATTERS is defined.
26018 * stor-layout.c (layout_decl): Likewise.
26019 (update_alignment_for_field): Likewise.
26020 (place_field): Likewise.
26022 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26024 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
26026 * regrename.c (check_new_reg_p): Remove check if
26027 HARD_REGNO_RENAME_OK is defined.
26028 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
26030 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26032 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
26033 * cse.c (fold_rtx): Likewise.
26034 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
26035 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
26036 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
26037 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
26038 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
26039 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
26040 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
26041 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
26042 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
26043 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
26045 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
26046 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
26047 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
26048 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
26049 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
26050 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
26051 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
26052 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
26053 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
26054 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
26055 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
26056 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
26057 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
26058 * doc/tm.texi: Regenerate.
26059 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
26060 either true or false.
26062 2015-04-27 Jeff Law <law@redhat.com>
26064 PR tree-optimization/65217
26065 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
26066 of them has a single use, make sure it is the LHS of the implied
26069 2015-04-28 Alan Modra <amodra@gmail.com>
26072 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
26073 (offsettable_ok_by_alignment): Use minimum of decl and toc
26074 pointer alignment. Replace dead code with assertion.
26075 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
26076 case if size exceeds toc pointer alignment.
26077 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
26078 (rs6000_emit_move): Likewise.
26079 * configure.ac: Add linker toc pointer alignment check.
26080 * configure: Regenerate.
26081 * config.in: Regenerate.
26083 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
26085 * config.gcc: Add h8300-*-linux.
26086 * config/h8300/linux.h: New.
26087 * config/h8300/t-linux: New.
26088 * config/h8300/h8300.c (h8300_option_override): Normal mode
26089 is not supported for h8300-*-linux.
26090 (h8300_file_start): Target priority change.
26091 (get_shift_alg): Likewise.
26092 (h8300_shift_need_scratch_p): Likewise.
26093 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
26094 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
26096 2015-04-27 Caroline Tice <cmtice@google.com>
26098 * final.c (final_scan_insn): Output cold_function_name as function
26100 * varasm.c (cold_function_name): Make global.
26101 (assemble_start_function): Re-set cold_function_name.
26102 (assemble_end_function): Output cold partition size.
26103 * varasm.h (cold_function_name): Declare global.
26105 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
26107 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
26108 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
26110 (*movxi_internal_avx512f): Ditto.
26111 (define_split): Check for xmm16+, when splitting scalar float_extend.
26112 (*extendsfdf2_mixed): Use "v" constraint.
26113 (define_split): Check for xmm16+, when splitting scalar float_truncate.
26114 (*truncdfsf_fast_sse): Use "v" constraint.
26115 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
26116 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
26117 (define_peephole2): Check for xmm16+, when converting scalar
26119 (define_peephole2): Check for xmm16+, when converting scalar
26121 (*fop_<mode>_comm_mixed): Use "v" constraint.
26122 (*fop_<mode>_comm_sse): Ditto.
26123 (*fop_<mode>_1_mixed): Ditto.
26124 (*sqrt<mode>2_sse): Ditto.
26125 (*ieee_s<ieee_maxmin><mode>3): Ditto.
26127 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26129 * combine.c (simplify_if_then_else): Use std::swap instead
26130 of manually swapping.
26131 (known_cond): Likewise.
26132 (simplify_comparison): Likewise.
26134 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
26137 * config/rs6000/htm.md: Remove all define_expands.
26138 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
26139 UNSPECV_HTM_TABORTWCI): Remove.
26140 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
26141 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
26142 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
26143 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
26144 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
26145 tabortwci_internal): Remove define_insns.
26146 (tabort<wd>c, tabort<wd>ci): New define_insns.
26147 (tabort): Use gpc_reg_operand.
26148 (tcheck): Remove operand.
26149 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
26150 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
26152 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
26153 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
26154 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
26155 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
26156 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
26157 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
26158 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
26159 (tcheck): Remove builtin argument.
26160 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
26162 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
26163 tabortdc and tabortdci builtins when not in 64-bit mode.
26164 Modify code to handle the loss of the HTM define_expands.
26165 Emit code to copy the CR register to TARGET.
26166 (htm_init_builtins): Modify code to handle the loss of the HTM
26168 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
26169 (RS6000_BTC_64BIT): Likewise.
26170 (RS6000_BTC_CR): New macro.
26171 * doc/extend.texi: Update documentation for htm builtins.
26173 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26175 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
26176 of manually swapping.
26177 (simplify_associative_operation): Likewise.
26178 (simplify_binary_operation): Likewise.
26179 (simplify_plus_minus): Likewise.
26180 (simplify_relational_operation): Likewise.
26181 (simplify_ternary_operation): Likewise.
26183 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
26185 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
26186 (xs_hi_nonmemory_operand): Remove error.
26187 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
26188 general_operand rather than xs_hi_general_operand.
26190 2015-04-27 Richard Biener <rguenther@suse.de>
26192 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
26193 (record_equivalences_from_stmt): Valueize rhs.
26194 (record_equality): Canonicalize x and y order via
26195 tree_swap_operands_p. Do not swap operands for same loop depth.
26197 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
26201 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
26202 Add hint how to use own spec file.
26204 2015-04-27 Jakub Jelinek <jakub@redhat.com>
26206 PR tree-optimization/65875
26207 * tree-vrp.c (update_value_range): If in is_new case setting
26208 old_vr to VR_VARYING, also set new_vr to it. Remove
26209 old_vr->type == VR_VARYING test.
26210 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
26211 SSA_PROP_INTERESTING if update_value_range returned true,
26212 but new range is VR_VARYING.
26214 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
26216 * combine.c (sign_extend_short_imm): New.
26217 (set_nonzero_bits_and_sign_copies): Use above new function for sign
26218 extension of src short immediate.
26219 (reg_nonzero_bits_for_combine): Likewise for tem.
26221 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
26223 * stor-layout.c (self_referential_component_ref_p): New predicate.
26224 (copy_self_referential_tree_r): Use it.
26225 (self_referential_size): Punt for simple operations directly involving
26226 self-referential component references.
26227 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
26229 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
26231 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
26233 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
26235 * vec.h (vec): Make splice arguments const. Update definitions
26238 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
26240 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
26243 2015-04-26 Tom de Vries <tom@codesourcery.com>
26245 PR tree-optimization/65826
26246 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
26248 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
26250 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
26251 (*madd3<mode>): Ditto.
26252 (*msub4<mode>): Ditto.
26253 (*msub3<mode>): Ditto.
26254 (*nmadd4<mode>): Ditto.
26255 (*nmadd3<mode>): Ditto.
26256 (*nmadd4<mode>_fastmath): Ditto.
26257 (*nmadd3<mode>_fastmath): Ditto.
26258 (*nmsub4<mode>): Ditto.
26259 (*nmsub3<mode>): Ditto.
26260 (*nmsub4<mode>_fastmath): Ditto.
26261 (*nmsub3<mode>_fastmath): Ditto.
26263 2015-04-24 Jason Merrill <jason@redhat.com>
26266 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
26267 down when building TYPE_CANONICAL.
26268 (build_pointer_type_for_mode): Likewise.
26270 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
26272 * genrecog.c (validate_pattern): Check matching constraint refers
26273 to a lower numbered operand.
26275 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
26278 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
26279 save to independent variables use the Save attribute. This will
26280 allow these options to be modified with the #pragma/attribute
26282 (-mallow-movmisalign): Likewise.
26283 (-mallow-df-permute): Likewise.
26284 (-msched-groups): Likewise.
26285 (-malways-hint): Likewise.
26286 (-malign-branch-targets): Likewise.
26287 (-mvectorize-builtins): Likewise.
26288 (-msave-toc-indirect): Likewise.
26290 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
26291 can be set via the #pragma/attribute target support.
26292 (rs6000_opt_vars): Likewise.
26293 (rs6000_inner_target_options): If VSX was set, also set
26294 -mno-avoid-indexed-addresses.
26296 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26298 * config/arm/iterators.md (shiftable_ops): Rename to...
26299 (SHIFTABLE_OPS): ... This. Update use in comments.
26300 (ior_xor): Rename to...
26301 (IOR_XOR): ... This.
26302 (vqh_ops): Rename to...
26303 (VQH_OPS): ... This.
26304 (vqhs_ops): Rename to...
26305 (VQHS_OPS): ... This.
26306 (rshifts): Rename to...
26307 (RSHIFTS): ... This.
26308 (returns): Rename to...
26309 (RETURNS): ... This.
26310 * config/arm/arm.md: Update uses of the above.
26311 * config/arm/neon.md: Likewise.
26313 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26315 * config.host (case ${host}): Add aarch64*-*-linux case.
26316 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
26317 fields to all the cores.
26318 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
26319 Add MCPU_MTUNE_NATIVE_SPECS.
26320 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
26321 field to all extensions.
26322 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
26323 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
26324 Adjust definition of AARCH64_OPT_EXTENSION.
26325 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
26326 (MCPU_MTUNE_NATIVE_SPECS): Define.
26327 * config/aarch64/driver-aarch64.c: New file.
26328 * config/aarch64/x-arch64: New file.
26329 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
26332 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26333 Wei Mi <wmi@google.com>
26335 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
26336 * config/i386/i386.c (extract_base_offset_in_addr): New function.
26337 (ix86_operands_ok_for_move_multiple): Ditto.
26338 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
26339 (movlpd/movhpd to movupd peephole2): Ditto.
26341 2015-04-24 Marek Polacek <polacek@redhat.com>
26344 * input.h (from_macro_expansion_at): Define.
26347 * doc/invoke.texi: Update description of -Wlogical-op.
26349 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26351 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
26352 ternary operator in fprintf and harmonize spacing.
26354 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26356 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
26357 Mark operand1 commutative.
26359 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26361 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
26362 input operands in memory.
26363 (*vec_concatv2si_sse4_1): Ditto.
26364 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
26365 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
26367 (vec_extract_hi_v32hi): Ditto.
26368 (vec_extract_hi_v64hi): Ditto.
26369 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
26371 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26372 Steven Bosscher <steven@gcc.gnu.org>
26374 PR rtl-optimization/34503
26375 * cprop.c (cprop_reg_p): New.
26376 (hash_scan_set): Use above function to check if register can be
26378 (find_avail_set): Return up to two sets, one whose source is a
26379 register and one whose source is a constant. Sets are returned in an
26380 array passed as parameter rather than as a return value.
26381 (cprop_insn): Use a do while loop rather than a goto. Try each of the
26382 sets returned by find_avail_set, starting with the one whose source is
26383 a constant. Use cprop_reg_p to check if register can be propagated.
26384 (do_local_cprop): Use cprop_reg_p to check if register can be
26386 (implicit_set_cond_p): Likewise.
26388 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26390 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
26391 (sem_function::equals): IGNORED_NODES parameter is now unused;
26392 update call of equals_private.
26393 (sem_function::equals_private): Do not call equals_wpa; skip
26394 gimple body matching if there is no body.
26395 (sem_function::init): Add logic to hash tthunk info.
26396 (sem_function::parse): Also parse thunks.
26397 * ipa-icf.h (equals_private): Update declaration.
26399 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26401 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
26402 asterisk from name so this can be generated directly.
26403 (*altivec_stvx_<mode>_internal): Likewise.
26404 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
26405 that this is never called during or after reload/lra.
26406 (rs6000_frame_related): Remove split_reg
26407 argument and logic that references it.
26408 (emit_frame_save): Remove last parameter from call to
26409 rs6000_frame_related.
26410 (rs6000_emit_prologue): Remove last parameter from eight calls to
26411 rs6000_frame_related. Force generation of stvx instruction for
26412 Altivec register saves. Remove split_reg handling, which is no
26414 (rs6000_emit_epilogue): Force generation of lvx instruction for
26415 Altivec register restores.
26417 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26419 * config/rs6000/rs6000.opt (mcrypto): Change option description to
26420 match category changes in ISA 2.07B.
26422 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26424 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
26426 (cmp_op, cmp_type): New code attributes.
26427 (NEON_VCMP, NEON_VACMP): New int iterators.
26428 (cmp_op_unsp): New int attribute.
26429 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
26430 (neon_vceq<mode>): Delete.
26431 (neon_vc<cmp_op><mode>_insn): New pattern.
26432 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
26433 (neon_vcgeu<mode>): Delete.
26434 (neon_vcle<mode>): Likewise.
26435 (neon_vclt<mode>: Likewise.
26436 (neon_vcage<mode>): Likewise.
26437 (neon_vcagt<mode>): Likewise.
26438 (neon_vca<cmp_op><mode>): New define_expand.
26439 (neon_vca<cmp_op><mode>_insn): New pattern.
26440 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
26442 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26444 * tree.h (attribute_value_equal): Declare.
26445 * tree.c (attribute_value_equal): Export.
26447 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26449 * ipa-icf.c (sem_item::compare_attributes): New function.
26450 (sem_item::compare_referenced_symbol_properties): Compare variable
26452 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
26453 (sem_function::param_used_p): New function.
26454 (sem_function::equals_wpa): Fix attribute comparsion; match
26455 parameter type codes; do not compare paremter flags when
26456 they are not used; compare edge flags; compare indirect calls.
26457 (sem_item::update_hash_by_addr_refs): Hash reference type.
26458 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
26459 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
26460 reference use type.
26461 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
26462 * ipa-icf.h (compare_attributes, param_used_p): Declare.
26464 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26466 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
26468 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
26469 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
26470 (sem_item::compare_referenced_symbol_properties): New.
26471 (sem_item::hash_referenced_symbol_properties): New.
26472 (sem_item::compare_cgraph_references): Rename to ...
26473 (sem_item::compare_symbol_references): ... this one; use
26474 compare_referenced_symbol_properties.
26475 (sem_function::equals_wpa): Do not compare
26476 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
26477 DECL_IS_OPERATOR_NEW; compare pointer sizes.
26478 (sem_item::update_hash_by_addr_refs): Call
26479 hash_referenced_symbol_properties.
26480 (sem_item::update_hash_by_local_refs): Cleanup.
26481 (sem_function::merge): Do not mix up symbol properties.
26482 (sem_variable::equals_wpa): Use compare_symbol_references.
26483 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
26484 (sem_item::hash_referenced_symbol_properties): New.
26485 (sem_item::compare_symbol_references): New.
26486 (sem_item::compare_cgraph_references): Remove.
26488 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
26491 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
26492 Emit size of local.
26494 2015-04-23 Nick Clifton <nickc@redhat.com>
26496 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
26497 ATTRIBUTE_UNUSED to x parameter.
26498 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
26500 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26502 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
26503 TARGET_CRYPTO to TARGET_P8_VECTOR>
26504 (crypto_vpermxor_<mode>): Likewise.
26505 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
26506 (BU_CRYPTO_3A): Likewise.
26507 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
26508 (BU_CRYPTO_OVERLOAD_3A): New #define.
26509 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
26510 (VPMSUMH): Likewise.
26511 (VPMSUMW): Likewise.
26512 (VPMSUMD): Likewise.
26513 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
26514 (VPERMXOR_V4SI): Likewise.
26515 (VPERMXOR_V8HI): Likewise.
26516 (VPERMXOR_V16QI): Likewise.
26517 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
26518 BU_CRYPTO_OVERLOAD_2A.
26519 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
26520 BU_CRYPTO_OVERLOAD_3A.
26521 * config/rs6000/rs6000.opt (mcrypto): Change description of
26524 2015-04-23 Richard Biener <rguenther@suse.de>
26526 * passes.def: Remove copy propagation passes run directly after CCP.
26527 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
26529 (ccp_visit_phi_node): Rework to handle first executable edge
26532 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
26534 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
26535 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26536 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26537 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
26538 (thumb_legimitimize_reload_address): Remove.
26539 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
26541 (thumb_legimitimize_reload_address): Remove.
26543 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26545 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
26547 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26549 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
26551 (store_multiple): Likewise.
26553 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26555 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
26556 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
26557 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
26558 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
26559 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
26560 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
26561 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
26562 Specify issue_rate value.
26563 (arm_issue_rate): Look up issue rate from tuning structs. Remove
26564 large switch statement.
26565 (arm_marvell_pj4_tune): New struct.
26566 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
26569 2015-04-23 Richard Biener <rguenther@suse.de>
26571 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
26572 (vect_find_last_store_in_slp_instance): Rename to ...
26573 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
26574 (vect_analyze_slp_cost_1): Use vector_load for constant defs
26575 and vec_construct for external defs when estimating prologue cost.
26576 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
26577 Compute costs here only when vectorizing loops.
26578 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
26579 have been determined.
26580 (vect_schedule_slp_instance): Simplify vectorized code placement
26581 and prepare for in-BB external defs.
26582 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
26583 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
26584 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
26586 (vect_model_load_cost): Likewise.
26587 (vectorizable_store): Instead add it here.
26588 (vectorizable_load): Likewise.
26589 (vect_is_simple_use): Dump def type textually.
26591 2015-04-23 Richard Biener <rguenther@suse.de>
26593 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
26594 * cfgloop.c (verify_loop_structure): Verify the root loop node.
26595 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
26596 instead of get_eh_region_from_lp_number.
26597 * loop-init.c (fix_loop_structure): If we removed a loop, reset
26600 2015-04-23 Anton Blanchard <anton@samba.org>
26602 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
26603 need for -mprofile-kernel to save LR to stack.
26605 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26607 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
26609 (insn_is_swappable_p): Return 1 for a convert from double to
26610 single precision when all of its uses are splats of BE element
26613 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
26615 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
26617 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26620 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
26621 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
26622 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
26624 (rs6000_builtin_mask_for_load): Return 0 for targets with
26625 efficient unaligned VSX accesses so that the vectorizer will use
26626 direct unaligned loads.
26627 (rs6000_builtin_support_vector_misalignment): Always return true
26628 for targets with efficient unaligned VSX accesses.
26629 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
26630 stores on targets with efficient unaligned VSX accesses is almost
26631 always the same as the cost of an aligned load or store, so model
26633 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
26634 unaligned vectors if we have efficient unaligned VSX accesses.
26635 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
26636 undocumented option.
26638 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26641 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26643 * config.gcc (LIBC_MUSL): New tm_defines macro.
26644 * config/linux.h (OPTION_MUSL): Define.
26645 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26646 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26647 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26649 * config/linux.opt (mmusl): New option.
26650 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26651 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26653 * configure: Regenerate.
26655 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26657 * config.gcc (LIBC_MUSL): New tm_defines macro.
26658 * config/linux.h (OPTION_MUSL): Define.
26659 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26660 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26661 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26663 * config/linux.opt (mmusl): New option.
26664 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26665 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26667 * configure: Regenerate.
26669 2015-04-22 Yury Gribov <y.gribov@samsung.com>
26671 * doc/invoke.texi (-fsanitize-sections): Update description.
26672 * asan.c (set_sanitized_sections): Parse incoming arg.
26673 (section_sanitized_p): Support wildcards.
26675 2015-04-22 Tom de Vries <tom@codesourcery.com>
26677 PR tree-optimization/65823
26678 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
26679 equality between ap_copy and ap.
26681 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26684 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
26686 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26689 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
26691 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26694 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
26695 remove already contained t-files.
26697 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26699 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
26700 Remove unneeded forward declarations.
26701 (suitable_for_tail_call_opt_p): Commentary typo fix.
26703 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26705 * varasm.c (emit_bss): Remove redundant guard.
26707 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26709 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
26711 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26713 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
26715 2015-04-22 Hale Wang <hale.wang@arm.com>
26716 Terry Guo <terry.guo@arm.com>
26718 PR rtl-optimization/64818
26719 * combine.c (can_combine_p): Don't combine user-specified
26720 register if it is in an asm input.
26722 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
26725 * passes.def (early_optimizations): Add pass_dse.
26727 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26729 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
26730 * reorg.c (redundant_insn): Remove ifdef
26731 INSN_REFERENCES_ARE_DELAYED.
26732 * resource.c (mark_referenced_resources): Likewise.
26734 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26736 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
26737 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
26738 * resource.c (mark_set_resources): Likewise.
26740 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26742 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
26743 * cfgcleanup.c (flow_find_cross_jump): Likewise.
26744 (flow_find_head_matching_sequence): Likewise.
26745 (try_head_merge_bb): Likewise.
26746 * combine.c (can_combine_p): Likewise.
26747 (try_combine): Likewise.
26748 (distribute_notes): Likewise.
26749 * df-problems.c (can_move_insns_across): Likewise.
26750 * final.c (final): Likewise.
26751 * gcse.c (insert_insn_end_basic_block): Likewise.
26752 * ira.c (find_moveable_pseudos): Likewise.
26753 * reorg.c (try_merge_delay_insns): Likewise.
26754 (fill_simple_delay_slots): Likewise.
26755 (fill_slots_from_thread): Likewise.
26756 * sched-deps.c (sched_analyze_2): Likewise.
26758 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26760 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
26761 PIC_OFFSET_TABLE_REGNUM.
26763 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26765 * alias.c (init_alias_target): Remove ifdef
26766 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
26767 * df-scan.c (df_insn_refs_collect): Likewise.
26768 (df_get_regular_block_artificial_uses): Likewise.
26769 (df_get_eh_block_artificial_uses): Likewise.
26770 (df_get_entry_block_def_set): Likewise.
26771 (df_get_exit_block_use_set): Likewise.
26772 * emit-rtl.c (gen_rtx_REG): Likewise.
26773 * ira.c (ira_setup_eliminable_regset): Likewise.
26774 * reginfo.c (init_reg_sets_1): Likewise.
26775 * regrename.c (rename_chains): Likewise.
26776 * reload1.c (reload): Likewise.
26777 (eliminate_regs_in_insn): Likewise.
26778 * resource.c (mark_referenced_resources): Likewise.
26779 (init_resource_info): Likewise.
26781 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26783 * defaults.h (MASK_RETURN_ADDR): New definition.
26784 * except.c (expand_builtin_extract_return_addr): Remove ifdef
26787 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26789 * defaults.h (RETURN_ADDR_OFFSET): New definition.
26790 * except.c (expand_builtin_extract_return_addr): Remove ifdef
26791 RETURN_ADDR_OFFSET.
26792 (expand_builtin_frob_return_addr): Likewise.
26794 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26796 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
26797 (try_redirect_by_replacing_jump): Likewise.
26798 (rtl_tidy_fallthru_edge): Likewise.
26799 * combine.c (insn_a_feeds_b): Likewise.
26800 (find_split_point): Likewise.
26801 (simplify_set): Likewise.
26802 * cprop.c (cprop_jump): Likewise.
26803 * cse.c (cse_extended_basic_block): Likewise.
26804 * df-problems.c (can_move_insns_across): Likewise.
26805 * function.c (emit_use_return_register_into_block): Likewise.
26806 * haifa-sched.c (sched_init): Likewise.
26807 * ira.c (find_moveable_pseudos): Likewise.
26808 * loop-invariant.c (find_invariant_insn): Likewise.
26809 * lra-constraints.c (curr_insn_transform): Likewise.
26810 * postreload.c (reload_combine_recognize_const_pattern):
26812 * reload.c (find_reloads): Likewise.
26813 * reorg.c (delete_scheduled_jump): Likewise.
26814 (steal_delay_list_from_target): Likewise.
26815 (steal_delay_list_from_fallthrough): Likewise.
26816 (redundant_insn): Likewise.
26817 (fill_simple_delay_slots): Likewise.
26818 (fill_slots_from_thread): Likewise.
26819 (delete_computation): Likewise.
26820 * sched-rgn.c (add_branch_dependences): Likewise.
26822 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26824 * genconfig.c (main): Always define HAVE_cc0.
26825 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
26827 * cfgcleanup.c (flow_find_cross_jump): Likewise.
26828 (flow_find_head_matching_sequence): Likewise.
26829 (try_head_merge_bb): Likewise.
26830 * cfgrtl.c (rtl_merge_blocks): Likewise.
26831 (try_redirect_by_replacing_jump): Likewise.
26832 (rtl_tidy_fallthru_edge): Likewise.
26833 * combine.c (do_SUBST_MODE): Likewise.
26834 (insn_a_feeds_b): Likewise.
26835 (combine_instructions): Likewise.
26836 (can_combine_p): Likewise.
26837 (try_combine): Likewise.
26838 (find_split_point): Likewise.
26840 (simplify_set): Likewise.
26841 (distribute_notes): Likewise.
26842 * cprop.c (cprop_jump): Likewise.
26843 * cse.c (cse_extended_basic_block): Likewise.
26844 * df-problems.c (can_move_insns_across): Likewise.
26845 * final.c (final): Likewise.
26846 (final_scan_insn): Likewise.
26847 * function.c (emit_use_return_register_into_block): Likewise.
26848 * gcse.c (insert_insn_end_basic_block): Likewise.
26849 * haifa-sched.c (sched_init): Likewise.
26850 * ira.c (find_moveable_pseudos): Likewise.
26851 * loop-invariant.c (find_invariant_insn): Likewise.
26852 * lra-constraints.c (curr_insn_transform): Likewise.
26853 * optabs.c (prepare_cmp_insn): Likewise.
26854 * postreload.c (reload_combine_recognize_const_pattern):
26856 * reload.c (find_reloads): Likewise.
26857 (find_reloads_address_1): Likewise.
26858 * reorg.c (delete_scheduled_jump): Likewise.
26859 (steal_delay_list_from_target): Likewise.
26860 (steal_delay_list_from_fallthrough): Likewise.
26861 (try_merge_delay_insns): Likewise.
26862 (redundant_insn): Likewise.
26863 (fill_simple_delay_slots): Likewise.
26864 (fill_slots_from_thread): Likewise.
26865 (delete_computation): Likewise.
26866 (relax_delay_slots): Likewise.
26867 * sched-deps.c (sched_analyze_2): Likewise.
26868 * sched-rgn.c (add_branch_dependences): Likewise.
26870 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26872 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
26873 that is trivially ded on non cc0 targets.
26874 (simplify_set): Likewise.
26875 (mark_used_regs_combine): Likewise.
26876 * cse.c (new_basic_block): Likewise.
26877 (fold_rtx): Likewise.
26878 (cse_insn): Likewise.
26879 (cse_extended_basic_block): Likewise.
26880 (set_live_p): Likewise.
26881 * rtlanal.c (canonicalize_condition): Likewise.
26882 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
26884 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26886 * conditions.h: Define macros even if HAVE_cc0 is undefined.
26887 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
26888 * final.c: Likewise.
26889 * jump.c: Likewise.
26890 * recog.c: Likewise.
26891 * recog.h: Declare functions even when HAVE_cc0 is undefined.
26892 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
26894 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26896 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
26897 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
26898 * builtins.c (expand_builtin): Remove check if
26899 EH_RETURN_DATA_REGNO is defined.
26900 * df-scan.c (df_bb_refs_collect): Likewise.
26901 (df_get_exit_block_use_set): Likewise.
26902 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
26903 * ira-lives.c (process_bb_node_lives): Likewise.
26904 * lra-lives.c (process_bb_lives): Likewise.
26906 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
26908 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
26909 FIRST_PSEUDO_REG): New.
26910 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
26911 (ARG_POINTER_REGNUM): Define to ARGP_REG.
26912 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
26913 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
26914 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
26915 (FIRST_INT_REG): New.
26916 (LAST_INT_REG): New.
26917 (FIRST_*_REG): Define using *_REG.
26918 (LAST_*_REG): Ditto.
26919 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
26920 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
26921 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
26923 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26925 * expmed.c: (synth_mult): Only assume overlapping
26926 shift with previous steps in alg_sub_t_m2 case.
26928 2015-04-21 Richard Biener <rguenther@suse.de>
26930 PR tree-optimization/65650
26931 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
26932 transitions involving copies.
26933 (set_lattice_value): Adjust for copy lattice state.
26934 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
26935 if that doesn't dominate the merge point.
26936 (bit_value_unop): Adjust what we treat as varying mask.
26937 (bit_value_binop): Likewise.
26938 (bit_value_assume_aligned): Likewise.
26939 (evaluate_stmt): When we simplified to a SSA name record a copy
26940 instead of dropping to varying.
26941 (visit_assignment): Simplify.
26943 * gimple-match.h (gimple_simplify): Add another callback.
26944 * gimple-fold.c (fold_stmt_1): Adjust caller.
26945 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
26946 for the 2nd callback.
26947 * gimple-match-head.c (gimple_simplify): Add a callback that is
26948 used to valueize the stmt operands and use it that way.
26950 2015-04-21 Richard Biener <rguenther@suse.de>
26952 PR tree-optimization/65788
26953 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
26955 2015-04-21 Richard Biener <rguenther@suse.de>
26957 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
26958 vec_construct cost by vec_stmt_cost.
26960 2015-04-21 Richard Biener <rguenther@suse.de>
26962 * cfghooks.h (create_basic_block): Replace with two overloads
26963 for RTL and GIMPLE.
26964 (split_block): Likewise.
26965 * cfghooks.c (split_block): Rename to ...
26966 (split_block_1): ... this.
26967 (split_block): Add two type-safe overloads for RTL and GIMPLE.
26968 (split_block_after_labels): Call split_block_1.
26969 (create_basic_block): Rename to ...
26970 (create_basic_block_1): ... this.
26971 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
26972 (create_empty_bb): Call create_basic_block_1.
26973 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
26974 split_block_after_labels.
26975 * omp-low.c (expand_parallel_call): Likewise.
26976 (expand_omp_target): Likewise.
26977 (simd_clone_adjust): Likewise.
26978 * tree-chkp.c (chkp_get_entry_block): Likewise.
26979 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
26980 create_basic_block overload.
26981 (cgraph_node::expand_thunk): Likewise.
26982 * tree-cfg.c (make_blocks): Likewise.
26983 (handle_abnormal_edges): Likewise.
26984 * tree-inline.c (copy_bb): Likewise.
26986 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26988 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
26990 (*xor_one_cmplsidi3_ze): Likewise.
26992 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
26994 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
26995 use df_remove_problem rather than manually removing problems, leaving
26996 holes in df->problems_in_order[].
26998 2015-04-21 Tom de Vries <tom@codesourcery.com>
27000 PR tree-optimization/65802
27001 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
27003 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27005 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
27007 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
27008 at '.'. Assert that there's enough space for everything.
27010 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
27012 PR tree-optimization/64950
27014 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
27017 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
27020 2015-04-20 Shiva Chen <shiva0217@gmail.com>
27022 PR rtl-optimization/64916
27023 * cfgcleanup.c (values_equal_p): New function.
27024 (can_replace_by): Use it.
27026 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
27029 * doc/invoke.texi ([-Wnarrowing]): Update.
27031 2015-04-20 Jeff Law <law@redhat.com>
27033 PR tree-optimization/65658
27034 * tree-ssa-threadupdate.c (redirection_block_p): Remove
27035 redundant test for GIMPLE_ASSIGN in last change.
27037 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
27039 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
27040 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
27041 (legitimize_tls_address): Ditto.
27042 (ix86_expand_move): Ditto.
27043 (ix86_expand_binary_operator): Remove reload_in_progress checks.
27044 (ix86_expand_unary_operator): Ditto.
27045 * config/i386/predicates.md (index_register_operand): Ditto.
27047 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
27049 * reorg.c (try_merge_delay_insns): Improve correctness checking
27050 for targets with multiple delay slots.
27052 2015-04-20 Jeff Law <law@redhat.com>
27054 PR tree-optimization/65658
27055 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
27058 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
27060 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
27061 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
27064 2015-04-20 Jakub Jelinek <jakub@redhat.com>
27067 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
27069 2015-04-20 Richard Biener <rguenther@suse.de>
27071 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
27072 * gimple-fold.c (gimple_build_valueize): New function.
27073 (gimple_build): Always use gimple_build_valueize as valueize hook.
27075 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
27078 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
27079 and overwrite variable parts if <= 1/2 the elements are variable.
27081 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
27083 PR rtl-optimization/65805
27084 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
27085 Don't use difference of offset and previous offset if
27086 update_sp_offset is non-zero.
27087 (eliminate_regs_in_insn): Ditto.
27088 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
27089 lra_eliminate_regs_1 call.
27090 * lra-constraints.c (get_equiv_with_elimination): Ditto.
27092 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
27094 * hash-table.h: Remove version of hash_table that stored value_type *.
27095 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
27096 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
27097 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
27098 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
27099 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
27100 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
27101 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
27102 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
27103 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
27104 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
27105 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
27106 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
27107 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
27108 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
27109 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
27110 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
27112 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27113 Jakub Jelinek <jakub@redhat.com>
27116 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
27117 subsequent SH_NONE operand does not overwrite an existing *special
27119 (adjust_extract): Handle case where a vec_extract operation is
27120 wrapped in a PARALLEL.
27122 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
27125 * config/i386/i386.c (ix86_binds_local_p): Define only if
27126 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
27128 2015-04-17 Jeff Law <law@redhat.com>
27130 PR tree-optimization/47679
27131 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
27132 * tree-ssa-scopedtables.c: New file.
27133 * tree-ssa-scopedtables.h: New file.
27134 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
27135 (const_and_copies): Change name/type.
27136 (record_const_or_copy): Move into tree-ssa-scopedtables.c
27137 (record_const_or_copy_1): Similarly.
27138 (restore_vars_to_original_value): Similarly.
27139 (pass_dominator::execute): Create and destroy const_and_copies table.
27140 (thread_across_edge): Update passing of const_and_copies.
27141 (record_temporary_equivalence): Use method calls rather than
27142 manipulating const_and_copies directly.
27143 (record_equality, cprop_into_successor_phis): Similarly.
27144 (dom_opt_dom_walker::before_dom_children): Similarly.
27145 (dom_opt_dom_walker::after_dom_children): Similarly.
27146 (eliminate_redundant_computations): Similarly.
27147 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
27148 (record_temporary_equivalence): Likewise.
27149 (invalidate_equivalences): Likewise.
27150 (record_temporary_equivalences_from_phis): Update due to type
27151 change of const_and_copies. Use method calls rather than
27152 manipulating the stack directly.
27153 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
27154 (thread_through_normal_block, thread_across_edge): Likewise.
27155 (thread_across_edge): Likewise.
27156 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
27157 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
27159 (identify_jump_threads): Update due to type change of equiv_stack.
27160 (finalize_jump_threads): Delete the equiv_stack when complete.
27162 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
27164 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
27165 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
27166 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
27168 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
27171 * config.gcc: Exit with a comment when we do not have a major version
27172 number for the FreeBSD target.
27174 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27177 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
27178 maybe_allows_mem bitfields.
27179 (maybe_allows_none_start, maybe_allows_none_end,
27180 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
27181 maybe_allows_mem_end): New variables.
27182 (compute_maybe_allows): New function.
27183 (add_constraint): Use it to initialize maybe_allows_reg and
27184 maybe_allows_mem fields.
27185 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
27186 is_address constraints such that those that allow neither mem nor
27187 reg come first, then those that only allow reg but not mem, then
27188 those that only allow mem but not reg, then the rest.
27189 (write_allows_reg_mem_function): New function.
27190 (write_tm_preds_h): Call it.
27191 * stmt.c (parse_output_constraint, parse_input_constraint): Use
27192 the generated insn_extra_constraint_allows_reg_mem function
27193 instead of always setting *allows_reg = true; *allows_mem = true;
27194 for unknown extra constraints.
27196 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
27199 * output.h (default_binds_local_p_3): New.
27200 * varasm.c (default_binds_local_p_3): Make it public. Take an
27201 argument to indicate if common symbol may be local. If common
27202 symbol may be local, treat non-external variable as defined
27204 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
27205 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
27206 * config/i386/i386.c (ix86_binds_local_p): New.
27207 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
27208 ix86_binds_local_p.
27210 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27213 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
27214 trying mem_loc_descriptor on XEXP (rtl, 0).
27216 2015-04-17 Martin Liska <mliska@suse.cz>
27218 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
27219 Release symbol_compare_collection.
27220 * ipa-reference.c: Add TODO that a vector should be released.
27222 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
27225 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
27226 to new AVR-LibC file layout (bug #44574).
27227 (*avrlibc_devicelib): Same.
27228 * config/avr/avr-mcus.def: Adjust comments.
27229 * config/avr/avr.opt (nodevicelib): Adjust help.
27231 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
27233 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
27235 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
27238 * gimplify.c (gimplify_init_constructor): Always emit a
27239 side-effecting constructor.
27241 2015-04-17 Tom de Vries <tom@codesourcery.com>
27243 PR tree-optimization/64950
27244 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
27245 in cfun->curr_properties.
27246 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
27247 if we generate an IFN_VA_ARG.
27248 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
27249 function if PROP_gimple_lva is not set in src function.
27251 2015-04-17 Tom de Vries <tom@codesourcery.com>
27252 Michael Matz <matz@suse.de>
27254 PR tree-optimization/64950
27255 * gimple-iterator.c (update_modified_stmts): Remove static.
27256 * gimple-iterator.h (update_modified_stmts): Declare.
27257 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
27258 (gimplify_va_arg_internal): New function.
27259 (gimplify_va_arg_expr): Use IFN_VA_ARG.
27260 * gimplify.h (gimplify_va_arg_internal): Declare.
27261 * internal-fn.c (expand_VA_ARG): New unreachable function.
27262 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
27263 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
27264 (expand_ifn_va_arg): New function.
27265 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
27266 (pass_stdarg::execute): Call expand_ifn_va_arg.
27267 (pass_data_lower_vaarg): New pass_data.
27268 (pass_lower_vaarg): New gimple_opt_pass.
27269 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
27270 (make_pass_lower_vaarg): New function.
27271 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
27272 properties_required field.
27273 * passes.def (all_passes): Add pass_lower_vaarg.
27274 * tree-pass.h (PROP_gimple_lva): Add define.
27275 (make_pass_lower_vaarg): Declare.
27277 2015-04-17 Tom de Vries <tom@codesourcery.com>
27279 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
27280 * calls.c (call_expr_flags): Same.
27282 2015-04-17 Tom de Vries <tom@codesourcery.com>
27284 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
27285 (pass_stdarg::execute): ... here.
27287 2015-04-17 Tom de Vries <tom@codesourcery.com>
27288 Michael Matz <matz@suse.de>
27290 * tree-cfg.c (make_blocks_1): Factor out of ...
27291 (make_blocks): ... here.
27292 (make_edges_bb): Factor out of ...
27293 (make_edges): ... here.
27294 (gimple_find_sub_bbs): New function.
27295 * tree-cfg.h (gimple_find_sub_bbs): Declare.
27297 2015-04-17 Tom de Vries <tom@codesourcery.com>
27299 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
27301 2015-04-17 Yury Gribov <y.gribov@samsung.com>
27303 * asan.c (set_sanitized_sections): New function.
27304 (section_sanitized_p): Ditto.
27305 (asan_protect_global): Optionally sanitize user-defined
27307 * asan.h (set_sanitized_sections): Declare new function.
27308 * common.opt (fsanitize-sections): New option.
27309 * doc/invoke.texi (-fsanitize-sections): Document new option.
27310 * opts-global.c (handle_common_deferred_options): Handle new
27313 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27316 * dwarf2out.c (loc_list_from_tree): Return NULL
27317 for DEBUG_EXPR_DECL.
27319 2015-04-17 Christian Bruel <christian.bruel@st.com>
27321 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
27324 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27326 * ira-color.c (setup_left_conflict_sizes_p): Do not process
27327 node itself when computing left conflict subnode size.
27329 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
27331 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
27332 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
27333 *fop_<mode>_1_sse using enabled attribute. Use
27334 register_mixssei387nonimm_operand operand 1 predicate. Change
27335 alternative 3 constraints from "x" to "v".
27337 2015-04-16 Richard Biener <rguenther@suse.de>
27339 PR tree-optimization/65774
27340 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
27341 bit-value tracking on.
27343 2015-04-16 Richard Biener <rguenther@suse.de>
27345 PR tree-optimization/64277
27346 * tree-vrp.c (check_array_ref): Fix anti-range handling,
27347 simplify upper bound handling.
27348 (search_for_addr_array): Simplify.
27349 (check_array_bounds): Handle ADDR_EXPRs here.
27350 (check_all_array_refs): Simplify.
27352 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
27354 * config/i386/i386.c (print_reg): Rewrite function.
27356 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27358 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
27359 Invert the condition.
27361 2015-04-16 Renlin Li <renlin.li@arm.com>
27363 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
27364 simplifications for UNSIGNED_FLOAT.
27366 2015-04-16 Nick Clifton <nickc@redhat.com>
27368 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
27370 (enum rl78_cpu_type): New.
27371 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
27372 (umulhi3_shift_virt): Remove m constraint from operand 1.
27373 (umulqihi3_virt): Likewise.
27374 * config/rl78/rl78.c (rl78_option_override): Add code to process
27375 -mcpu and -mmul options.
27376 (rl78_alloc_physical_registers): Add code to handle divhi and
27377 divsi valloc attributes.
27378 (set_origin): Likewise.
27379 * config/rl78/rl78.h (RL78_MUL_G14): Define.
27380 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
27381 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
27383 (ASM_SPEC): Pass -mcpu on to assembler.
27384 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
27385 (mulqi3_rl78): Likewise.
27386 (mulhi3_g13): Likewise.
27387 (mulhi3): Generate the G13 or G14 versions of the insn directly.
27388 (mulsi3): Likewise.
27389 (mulhi3_g14): Add clobbers of AX and BC.
27390 (mulsi3_g14): Likewise.
27391 (mulsi3_g13): Likewise.
27392 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
27393 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
27394 * config/rl78/rl78.opt (mmul): Initialise value to
27396 (mcpu): New option.
27397 (m13, m14, mrl78): New option aliases.
27398 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
27399 (MULTILIB_DIRNAMES): Add g13 and g14.
27400 * doc/invoke.texi: Document -mcpu and -mmul options.
27402 2015-04-16 Richard Biener <rguenther@suse.de>
27404 * tree-ssa-ccp.c (likely_value): See if we have operands that
27405 are marked as never simulate again and return CONSTANT in this
27407 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
27408 not have any operands that will be simulated again as
27409 not being simulated again.
27411 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
27413 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
27414 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
27415 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
27417 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
27419 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
27420 *float<SWI48:mode><MODEF:mode>2_sse.
27421 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
27423 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
27426 2015-04-15 Tom de Vries <tom@codesourcery.com>
27429 * function.c (push_dummy_function): New function.
27430 (init_dummy_function_start): Use push_dummy_function.
27431 (pop_dummy_function): New function. Factored out of ...
27432 (expand_dummy_function_end): ... here.
27433 * function.h (push_dummy_function, pop_dummy_function): Declare.
27434 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
27435 pop_dummy_function.
27436 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
27438 2015-04-15 Jeff Law <law@redhat.com>
27440 PR tree-optimization/47679
27441 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
27442 need for forward declaration in upcoming changes.
27443 (record_conditions, record_edge_info): Likewise.
27445 PR rtl-optimization/42522
27446 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
27447 SIGN_EXTRACT as a whole object rather than simplifying
27450 2015-04-15 Jakub Jelinek <jakub@redhat.com>
27453 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
27454 and GIMPLE_PREDICT use break instead of return true. For
27455 GIMPLE_EH_DISPATCH, compare dispatch region.
27457 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
27459 * doc/extend.texi (__sync Builtins): Simplify some text. Update
27460 details about the implementation. Make clear preference for
27461 __atomic builtins. Reduce possibility of future change.
27463 2015-04-15 Nick Clifton <nickc@redhat.com>
27465 * config/rx/rx.opt (mallow-string-insns): New option.
27466 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
27467 builtin if string instructions are denied.
27468 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
27469 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
27471 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
27472 * config/rx/rx.md (movstr): Enable pattern only if string
27473 instructions are allowed.
27474 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
27475 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
27476 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
27477 (MULTILIB_DIRNAMES): Add no-strings.
27478 * doc/invoke.texi: Document -mno-allow-string-insns.
27480 2015-04-15 Alan Modra <amodra@gmail.com>
27484 PR middle-end/36043
27485 * calls.c (load_register_parameters): Don't load past end of
27486 mem unless suitably aligned.
27488 2015-04-15 Nick Clifton <nickc@redhat.com>
27490 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
27491 decrement instruction as being frame related.
27492 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
27494 If zero extending a function address enclose the operation in
27496 (rl78_preferred_reload_class): New function.
27497 (TARGET_PREFERRED_RELOAD_CLASS): Define.
27498 * config/rl78/rl78.md: Remove useless constraints in expanders.
27499 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
27500 (mulhi3_rl78): Likewise.
27501 (mulhi3_g13): Likewise.
27502 (mulsi3_rl78): Likewise.
27503 (es_addr): Move to before the multiply patterns.
27505 2015-04-15 Alan Modra <amodra@gmail.com>
27507 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
27508 and sequence_stack. Add seq.
27509 (seq_stack): Delete.
27510 * function.c (prepare_function_start): Don't access x_last_insn.
27511 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
27512 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
27513 * emit_rtl.c (start_sequence, push_topmost_sequence,
27514 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
27515 sequence accessors.
27516 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
27517 remove_insn): Likewise. Simplify.
27518 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
27519 and pop_topmost_sequence.
27520 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
27522 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
27524 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
27527 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
27530 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27532 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
27533 (LEGACY_INT_REGNO_P): Ditto.
27534 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
27535 (ANY_MASK_REG_P): Remove.
27536 (BND_REG_P): Rename from ANY_BND_REG_P.
27537 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
27538 legacy integer registers. Do not handle MMX_REG_P in a special way.
27539 Merge 64byte and 32byte SSE handling.
27541 2015-04-14 Nick Clifton <nickc@redhat.com>
27543 * expr.c (expand_assignment): Force an address offset computation
27544 into a register before changing its mode.
27545 (expand_expr_real_1): Likewise.
27547 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
27549 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
27550 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
27551 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
27552 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
27553 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
27554 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
27555 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
27556 and __aarch64_vget_lane_any.
27558 2015-04-14 Jakub Jelinek <jakub@redhat.com>
27560 PR rtl-optimization/65761
27561 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
27562 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
27564 2015-04-14 Richard Biener <rguenther@suse.de>
27566 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
27567 (graphite_can_represent_scev): Use POINTER_TYPE_P.
27569 2015-04-14 Richard Biener <rguenther@suse.de>
27571 PR tree-optimization/65758
27572 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
27574 (ccp_lattice_meet): Likewise.
27575 (bit_value_unop): Likewise.
27576 (bit_value_binop): Likewise.
27577 (bit_value_assume_aligned): Likewise.
27579 2015-04-14 Christian Bruel <christian.bruel@st.com>
27581 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
27584 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
27586 PR tree-optimization/63387
27587 * match.pd ((x unord x) | (y unord y) -> (x unord y),
27588 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
27590 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27592 * config/i386/predicates.md (any_QIreg_operand): Rename from
27593 q_regs_operand. Do not process subregs.
27594 (QIreg_operand): Use QI_REGNO_P predicate.
27595 (ext_QIreg_operand): Ditto.
27596 (ext_register_operand): Ditto.
27597 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
27598 (AND splitters): Ditto.
27599 (AND with -65536 splitter): Add SWI48 mode for operand 0.
27600 (AND with -256 splitter): Use any_QIreg_operand predicate and
27601 SWI248 mode for operand 0.
27602 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
27603 mode for operand 0.
27604 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
27606 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
27608 * doc/plugins.texi: Rewrite first introductory paragraph.
27610 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27612 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
27613 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
27615 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27617 * ipa-profie.c (ipa_profile): Check number of parameters
27618 and possible polymorphic call targets before
27621 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
27623 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
27624 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
27626 2015-04-13 Richard Biener <rguenther@suse.de>
27628 PR tree-optimization/65204
27629 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
27630 takens for bit-CCP.
27632 2015-04-13 Richard Biener <rguenther@suse.de>
27635 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
27636 and cond_not_taken_branch_cost to 4 and 2.
27637 (bdver2_cost): Likewise.
27638 (bdver3_cost): Likewise.
27639 (bdver4_cost): Likewise.
27641 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27643 * hash-table.h (hash_table constructor): Add mem stats.
27644 (alloc_entries): Likewise.
27646 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27648 * ipa-cp.c (ipcp_driver): Relase prev_edge.
27649 * passes.c (execute_one_pass): Only add transform if pass has one.
27651 2015-04-12 Joseph Myers <joseph@codesourcery.com>
27653 * config/i386/i386.c (ix86_option_override_internal): Don't set
27654 -fprefetch-loop-arrays if optimizing for size.
27656 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27657 Gerald Pfeifer <gerald@pfeifer.com>
27659 * doc/contrib.texi (Contributors): Add Martin Jambor and
27662 2015-04-12 Jakub Jelinek <jakub@redhat.com>
27664 * BASE-VER: Set to 6.0.0.
27666 PR tree-optimization/65747
27667 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
27668 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
27670 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27672 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
27673 sentence. Improve grammar.
27675 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27677 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
27679 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27682 * ipa-inline-transform.c (speculation_removed): Remove static var.
27683 (check_speculations): New function.
27684 (clone_inlined_nodes): Do not check spculations.
27685 (inline_call): Call check_speculations.
27686 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
27687 consider non-invariants.
27689 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27690 Martin Liska <mliska@suse.cz>
27693 * ipa-icf.c (sem_item::compare_cgraph_references): function and
27694 variable can not match.
27695 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
27696 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
27698 2015-04-11 Jakub Jelinek <jakub@redhat.com>
27700 PR tree-optimization/65735
27701 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
27702 Remove visited_phis argument, add visited_bbs, avoid recursing into the
27703 same bb rather than just into the same phi node.
27704 (thread_through_normal_block): Adjust caller.
27706 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27708 * doc/contrib.texi (Contributors): Add Ira Rosen.
27710 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
27712 * gcov.c (find_source): Fix miswording in error message.
27713 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
27714 (ix86_expand_sse_comi_round): Fix typo in error message.
27716 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27718 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
27720 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
27722 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
27724 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27727 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
27728 Print bad_spills_num and insn_pseudos_num.
27730 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27733 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
27734 when creating +1 values for SImode.
27736 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27739 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
27742 2015-04-10 Jakub Jelinek <jakub@redhat.com>
27743 Iain Sandoe <iain@codesourcery.com>
27746 * configure: Regenerate.
27748 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27751 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
27753 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
27755 * doc/contrib.texi (Contributors): Add John Marino.
27757 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27759 PR tree-optimization/65709
27760 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
27761 TREE_TYPE (TREE_TYPE (t)).
27763 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
27766 * lra-int.h (lra_bad_spill_regno_start): New.
27767 * lra.c (lra_bad_spill_regno_start): New.
27768 (lra): Set up lra_bad_spill_regno_start. Set up
27769 lra_constraint_new_regno_start unconditionally.
27770 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
27773 2015-04-09 Marek Polacek <polacek@redhat.com>
27774 Jakub Jelinek <jakub@redhat.com>
27776 PR middle-end/65554
27777 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
27778 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
27781 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
27783 PR rtl-optimization/65693
27784 * combine.c (is_parallel_of_n_reg_sets): Move outside of
27787 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
27790 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
27791 device specs file if "device-specs%s" didn't resolve to a path.
27793 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27796 * config/i386/i386.c (fixup_modeless_constant): New.
27797 (ix86_expand_args_builtin): Fixup modeless constant operand.
27798 (ix86_expand_round_builtin): Ditto.
27799 (ix86_expand_special_args_builtin): Ditto.
27800 (ix86_expand_builtin): Ditto.
27802 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27805 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
27806 any pow2 integer in between 2 and 0x80000000U inclusive.
27808 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
27810 PR rtl-optimization/65693
27811 * combine.c (is_parallel_of_n_reg_sets): Change first argument
27812 from an rtx_insn * to an rtx.
27813 (try_combine): Adjust both callers. Use it once more.
27815 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27817 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
27818 (chkp_make_static_const_bounds): Search existing
27819 symbol by assembler name. Use make_decl_one_only.
27820 (chkp_get_zero_bounds_var): Remove node search which
27821 is now performed in chkp_make_static_const_bounds.
27822 (chkp_get_none_bounds_var): Likewise.
27824 2015-04-08 Michael Witten <mfwitten@gmail.com>
27826 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
27829 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27831 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
27833 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
27835 * doc/extend.texi (__sync Builtins): Fix grammar.
27837 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27839 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
27841 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27843 * varasm.c (emit_local): Move definition of align.
27845 2015-04-08 Julian Brown <julian@codesourcery.com>
27847 * config/nvptx/mkoffload.c (process): Support variable mapping.
27849 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
27851 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
27853 (alpha_write_one_linkage): Correct typo.
27855 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27857 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
27859 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
27861 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
27863 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27865 * tree-chkp.h (chkp_insert_retbnd_call): New.
27866 * tree-chkp.c (chkp_insert_retbnd_call): New.
27867 * ipa-split.c (insert_bndret_call_after): Remove.
27868 (split_function): Use chkp_insert_retbnd_call.
27869 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
27870 bounds for instrumented functions.
27872 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
27875 * calls.c (initialize_argument_information): When producing tail
27876 call also turn SSA_NAMES passed by references to original PARM_DECLs
27878 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
27881 * lra-remat.c (do_remat): Process input and non-input insn
27882 registers separately.
27884 2015-04-07 Jakub Jelinek <jakub@redhat.com>
27887 * valtrack.c (debug_lowpart_subreg): New function.
27888 (dead_debug_insert_temp): Use it.
27890 PR middle-end/65680
27891 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
27892 into signed HOST_WIDE_INT the same as negative bit_offset.
27894 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
27896 * ipa-comdats.c (ipa_comdats): Visit all thunks
27897 to set proper comdat group.
27899 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27902 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
27903 on constants for NEON VSTRUCT modes.
27905 2015-04-07 Jakub Jelinek <jakub@redhat.com>
27906 Iain Sandoe <iain@codesourcery.com>
27909 * configure: Regenerate.
27911 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27914 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
27915 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
27916 that LFD is used to load double constants instead of LFS. Add
27917 defaults for all costs structures. Add comments for missing
27918 initialization fields.
27919 (size32_cost): Likewise.
27920 (size64_cost): Likewise.
27921 (rs64a_cost): Likewise.
27922 (mpccore_cost): Likewise.
27923 (ppc403_cost): Likewise.
27924 (ppc405_cost): Likewise.
27925 (ppc440_cost): Likewise.
27926 (ppc476_cost): Likewise.
27927 (ppc601_cost): Likewise.
27928 (ppc603_cost): Likewise.
27929 (ppc604_cost): Likewise.
27930 (ppc604e_cost): Likewise.
27931 (ppc620_cost): Likewise.
27932 (ppc630_cost): Likewise.
27933 (ppccell_cost): Likewise.
27934 (ppc750_cost): Likewise.
27935 (ppc7450_cost): Likewise.
27936 (ppc8540_cost): Likewise.
27937 (ppce300c2c3_cost): Likewise.
27938 (ppce500mc_cost): Likewise.
27939 (ppce500mc64_cost): Likewise.
27940 (ppce5500_cost): Likewise.
27941 (ppce6500_cost): Likewise.
27942 (titan_cost): Likewise.
27943 (power4_cost): Likewise.
27944 (power6_cost): Likewise.
27945 (power7_cost): Likewise.
27946 (power8_cost): Likewise.
27947 (ppca2_cost): Likewise.
27948 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
27950 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
27951 instead of XXLOR to copy SFmode to clear out dirty bits created
27952 when SFmode denormals are generated.
27953 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
27954 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
27956 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
27958 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
27959 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
27960 * config/aarch64/aarch64-tune.md: Regenerate.
27962 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
27964 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
27965 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
27966 * config/arm/arm-cores.def (exynos-m1): New core.
27967 * config/arm/arm-tune.md: Regenerate.
27968 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
27969 * config/arm/bpabi.h: Likewise.
27971 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
27973 * ipa-cp (set_single_call_flag): Remove too
27974 restrictive assert.
27976 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
27978 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
27979 GOMP_offload_unregister from the destructor.
27981 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
27983 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
27984 flags for instrumentation thunk.
27985 (chkp_produce_thunks): Likewise.
27987 2015-04-05 Martin Liska <mliska@suse.cz>
27990 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
27991 has computed data structure.
27992 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
27994 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
27996 * invoke.texi (inline-unit-growth): Increase growth to 20%
27997 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
27999 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
28002 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
28004 (lra_rematerialization_iter): New.
28005 * lra.c (lra): Initialize lra_rematerialization_iter.
28006 Stop updating lra_constraint_new_regno_start after switching of
28007 inheritance and rematerialization.
28008 * lra-remat.c (lra_rematerialization_iter): New.
28009 (lra_remat): Add printing pass iteration. Do rematerialization
28010 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
28012 2015-04-04 Richard Biener <rguenther@suse.de>
28014 PR tree-optimization/64909
28015 PR tree-optimization/65660
28016 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
28017 to take a cost vector for scalar iteration cost.
28018 (vect_get_single_scalar_iteration_cost): Likewise.
28019 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
28020 Compute the scalar iteration cost into a cost vector.
28021 (vect_get_known_peeling_cost): Use the scalar cost vector to
28022 account for the cost of the peeled iterations.
28023 (vect_estimate_min_profitable_iters): Likewise.
28024 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
28027 2015-04-04 Alan Modra <amodra@gmail.com>
28031 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
28032 0.0 constant unless TARGET_VSX.
28033 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
28036 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28039 * ipa-inline-transform.c (inline_call): Skip sanity check to work
28042 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28045 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
28046 speculative indirect edges to avoid ordering issue.
28048 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28051 * ipa-inline.c (edge_badness): Add combined size to the denominator.
28053 2015-04-03 Jakub Jelinek <jakub@redhat.com>
28055 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
28056 TYPE_ARTIFICIAL on the .omp_data* types.
28058 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28060 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
28061 instrumentation thunks.
28063 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28065 * config/i386/i386.c (ix86_expand_call): Avoid nested
28066 PARALLEL in returned call value.
28068 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28070 * lto-cgraph.c (input_cgraph_1): Always link instrumented
28071 assembler name with original one.
28073 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28075 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
28077 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28079 Revert parts of r216820.
28080 * config/i386/i386.md (movqi_internal): Correct type calculation
28081 for alternatives 3 and 5.
28083 2015-04-02 Jakub Jelinek <jakub@redhat.com>
28085 PR preprocessor/61977
28086 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
28087 predefine __vector/__bool/__pixel macros nor context sensitive
28088 macros for CLK_ASM.
28089 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
28091 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
28093 * config/pa/pa.c (pa_output_move_double): Directly handle register
28094 indexed memory operand. Simplify handling of scaled register indexed
28097 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28100 * config/i386/linux-common.h (MPX_SPEC): New.
28101 (CHKP_SPEC): Add MPX_SPEC.
28102 * doc/invoke.texi (-fcheck-pointer-boudns): Document
28103 possible issues with '-z bndplt' support in linker.
28105 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28107 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
28108 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
28109 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
28110 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
28111 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
28113 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
28115 * config/i386/sync.md (UNSPEC_MOVA): Remove.
28116 (atomic_load<mode>): Change operand 0 predicate to
28117 nonimmediate_operand and fix up the destination when needed.
28119 (atomic_loaddi_fpu): Use UNSPEC_LDA.
28120 (atomic_store<mode>): Change operand 1 predicate to
28121 nonimmendate_operand and move the source to register when needed.
28123 (atomic_store<mode>_1): Use UNSPEC_STA.
28124 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
28125 Fix moves from memory operand. Use UNSPEC_STA.
28127 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
28129 * expmed.c (strict_volatile_bitfield_p): Check that the access will
28130 not cross a MODESIZE boundary.
28131 (store_bit_field, extract_bit_field): Added assertions in the
28132 strict volatile bitfields code path.
28134 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
28137 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
28138 Increase args array size by one to avoid buffer overflow.
28140 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
28142 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
28144 * ipa-inline.c (edge_badness): Add wrapper penalty.
28145 (sum_callers): Move up.
28146 (inline_small_functions): Set single_caller.
28147 * ipa-inline.h (inline_summary): Add single_caller.
28148 * ipa-split.c (split_function): Set split_part.
28149 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
28150 * cgraph.h (cgraph_node): Add split_part.
28152 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
28155 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
28156 Do not split operands 0 and operands 2 to halfmode.
28157 (atomic_compare_and_swap<mode>): Update for
28158 atomic_compare_and_swap<dwi>_doubleword changes.
28160 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
28162 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
28163 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
28164 no caching is done.
28166 2015-03-31 Martin Liska <mliska@suse.cz>
28169 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
28170 has already filled up function summary.
28171 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28173 2015-03-31 Richard Biener <rguenther@suse.de>
28175 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
28178 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
28180 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
28182 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
28183 (s390_asm_output_function_label): Adapt to new signature of
28184 s390_function_num_hotpatch_hw
28185 Optimise the code generating assembler output.
28186 Add comments to assembler file.
28188 2015-03-31 Richard Biener <rguenther@suse.de>
28190 PR middle-end/65626
28191 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
28192 of the noreturn call so it is last and cleanup_control_flow_bb
28193 can do the CFG part.
28195 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
28198 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
28199 same_comdat_group for external symbols.
28200 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
28201 infinite same_comdat_group traversal loop.
28203 2015-03-31 Jakub Jelinek <jakub@redhat.com>
28206 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
28207 automatically to $headers.
28209 2015-03-30 Jakub Jelinek <jakub@redhat.com>
28212 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
28213 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
28215 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
28217 * ipa-prop.c (param_type_may_change_p): Likewise.
28218 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
28219 (remove_unused_scope_block_p): Add in_ctor_dtor_block
28220 argument. Before inlining, preserve
28221 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
28222 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
28224 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
28226 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28229 * ipa-inline.c (edge_badness): Base denominator on callee's
28232 2015-03-27 Martin Jambor <mjambor@suse.cz>
28235 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
28236 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
28237 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
28238 node_calling_single_call.
28239 * ipa-cp.c (count_callers): New function.
28240 (set_single_call_flag): Likewise.
28241 (initialize_node_lattices): Count callers and set single_flag_call if
28243 (incorporate_penalties): New function.
28244 (good_cloning_opportunity_p): Use it, dump new flags.
28245 (propagate_constants_topo): Set node_within_scc flag if appropriate.
28246 * doc/invoke.texi (ipa-cp-recursion-penalty,
28247 ipa-cp-single-call-pentalty): Document.
28249 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28252 * symtab.c (symtab_node::get_partitioning_class): Register vars
28254 * varpool.c (symbol_table::output_variables) Do not assemble unefined
28255 decls for non-symbols.
28257 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
28260 * output.h (default_binds_local_p_2): New.
28261 * varasm.c (default_binds_local_p_2): Renamed to ...
28262 (default_binds_local_p_3): This. Don't return true on protected
28263 data symbol if protected data may be external.
28264 (default_binds_local_p): Use default_binds_local_p_3.
28265 (default_binds_local_p_1): Likewise.
28266 (default_binds_local_p_2): New.
28267 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
28268 default_binds_local_p_2 if TARGET_MACHO is undefined.
28270 2015-03-27 Jakub Jelinek <jakub@redhat.com>
28273 * config/i386/i386.c (legitimize_pic_address): If base
28274 is SYMBOL_REF or LABEL_REF using %rip addressing, force
28275 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
28277 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28280 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
28283 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28286 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
28287 of optimized out indirect call.
28288 (redirect_to_unreachable): Always build symbol table node for
28289 BUILT_IN_UNREACHABLE
28291 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
28294 * ira-costs.c (record_reg_classes): Process all constraint string
28297 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
28299 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
28303 * config/c6x/constraints.md (S3): New constraint.
28304 * config/c6x/c6x.md (real_jump): Use it.
28306 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28308 PR middle-end/65595
28309 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
28310 do redirection if the call is not optimized out.
28312 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
28315 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
28316 (fchkp-check-incomplete-type): Add LTO.
28317 (fchkp-zero-input-bounds-for-main): Likewise.
28318 (fchkp-first-field-has-own-bounds): Likewise.
28319 (fchkp-narrow-bounds): Likewise.
28320 (fchkp-narrow-to-innermost-array): Likewise.
28321 (fchkp-use-static-bounds): Likewise.
28322 (fchkp-use-static-const-bounds): Likewise.
28323 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28325 2015-03-27 Marek Polacek <polacek@redhat.com>
28327 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
28329 2015-03-27 Marek Polacek <polacek@redhat.com>
28332 * ubsan.c (ubsan_create_edge): New function.
28333 (instrument_bool_enum_load): Call it.
28334 (instrument_nonnull_arg): Likewise.
28335 (instrument_nonnull_return): Likewise.
28336 (instrument_object_size): Likewise.
28338 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28340 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
28343 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28346 * lto-streamer.h (class lto_location_cache): New.
28347 (struct data_in): Add location_cache.
28348 (lto_input_location): Update prototype.
28349 (stream_input_location_now): New.
28350 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
28351 pointer to location.
28352 (stream_input_location): Update.
28353 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
28354 (warn_odr): Apply location cache before warning.
28355 (lto_input_location): Update prototype.
28356 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
28357 Use stream_input_location_now.
28358 * lto-streamer-in.c (lto_location_cache::current_cache): New static
28360 (lto_location_cache::cmp_loc): New function.
28361 (lto_location_cache::apply_location_cache): New function.
28362 (lto_location_cache::accept_location_cache): New function.
28363 (lto_location_cache::revert_location_cache): New function.
28364 (lto_location_cache::input_location): New function.
28365 (lto_input_location): Do location caching.
28366 (stream_input_location_now): New function.
28367 (input_eh_region, input_struct_function_base): Use
28368 stream_input_location_now.
28369 (lto_data_in_create): use new.
28370 (lto_data_in_delete): Use delete.
28371 * tree-streamer-in.c (unpack_ts_block_value_fields,
28372 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
28373 lto_input_ts_exp_tree_pointers): Update for cached location api.
28375 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28378 * passes.def: Add pass_nothrow.
28379 * ipa-pure-const.c: (pass_data_nothrow): New.
28380 (pass_nothrow): New.
28381 (pass_nothrow::execute): New.
28382 (make_pass_nothrow): New.
28383 * tree-pass.h (make_pass_nothrow): Declare.
28385 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28387 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
28388 edge to change by speculation resolution or redirection.
28389 (edge_set_predicate): Likewise.
28390 (inline_summary_t::duplicate): Likewise.
28391 (remap_edge_summaries): Likewise.
28393 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28395 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
28397 (can_inline_edge_p): Relax option matching for always inline functions.
28399 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
28402 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
28403 Check operand 4 and operand 0 for equality.
28404 (avx512f_vextract<shuffletype>32x4_1_maskm):
28405 Check operand 6 and operand 0 for equality.
28406 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
28408 (vec_extract_hi_<mode>_maskm): Ditto.
28410 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28412 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
28413 dead calls back to live.
28414 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
28416 (cgraph_node::verify_node): ... here; verify only callee edges,
28418 * cif-code.def (CILK_SPAWN): New code.
28420 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28422 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
28423 (edge_set_predicate): Use it to mark unreachable edges.
28424 (inline_summary_t::duplicate): Remove unnecesary code.
28425 (remap_edge_summaries): Likewise.
28426 (dump_inline_summary): Report contains_cilk_spawn.
28427 (compute_inline_parameters): Compute contains_cilk_spawn.
28428 (inline_read_section, inline_write_summary): Stream
28429 contains_cilk_spawn.
28430 * ipa-inline.c (can_inline_edge_p): Do not touch
28431 DECL_STRUCT_FUNCTION that may not be available;
28432 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
28433 remove check for callee_fun->can_throw_non_call_exceptions and
28434 replace it by optimization attribute check; check for flag_exceptions.
28435 * ipa-inline-transform.c (inline_call): Maintain
28436 DECL_FUNCTION_PERSONALITY
28437 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
28439 2015-03-26 Jakub Jelinek <jakub@redhat.com>
28441 PR tree-optimization/65551
28442 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
28443 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
28445 2015-03-26 Richard Biener <rguenther@suse.de>
28447 PR middle-end/65555
28448 * tree-cfg.c (verify_gimple_call): Do not require a call to
28449 have no LHS if it wasn't recognized as control altering yet.
28451 2015-03-26 Jakub Jelinek <jakub@redhat.com>
28453 PR tree-optimization/64715
28454 * passes.def: Add another instance of pass_object_sizes before ccp1.
28455 * tree-object-size.c (pass_object_sizes::execute): In
28456 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
28457 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
28458 __bos result and the computed constant. Remove redundant
28459 checks, obsoleted by gimple_call_builtin_p test.
28461 * var-tracking.c (variable_tracking_main_1): Don't track
28462 variables for targetm.no_register_allocation targets.
28464 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
28466 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
28467 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
28469 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
28472 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
28473 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
28474 0.0 is correctly setup.
28475 (extenddftf2_internal): Likewise.
28477 2015-03-25 Sebastian Pop <s.pop@samsung.com>
28479 PR tree-optimization/65177
28480 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
28482 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
28483 edges not adjacent on the path to the original code.
28485 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
28488 * doc/install.texi (Building a native compiler): Document new
28489 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
28490 configuration assumes that the host supports the linker plugin.
28492 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
28495 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
28496 chain for generated call.
28498 2015-03-25 Richard Biener <rguenther@suse.de>
28500 * passes.c (pass_manager::execute_early_local_passes): Guard
28501 execution of pass_chkp_instrumentation_passes with
28502 flag_check_pointer_bounds.
28503 (pass_chkp_instrumentation_passes::gate): Likewise.
28505 2015-03-25 Martin Liska <mliska@suse.cz>
28507 PR tree-optimization/65538
28508 * symbol-summary.h (function_summary::~function_summary):
28509 Relese memory for allocated summaries.
28510 (function_summary::release): New function.
28512 2015-03-25 Jakub Jelinek <jakub@redhat.com>
28515 * lto-streamer-out.c (DFS::worklist): New struct.
28516 (DFS::worklist_vec): New data member.
28517 (DFS::next_dfs_num): Remove.
28518 (DFS::DFS): Rewritten using worklist instead of recursion,
28519 using most of code from DFS::DFS_write_tree.
28520 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
28521 pass it to DFS_write_tree calls.
28522 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
28523 quick initial checks push it into worklist_vec and return.
28525 2015-03-25 Richard Biener <rguenther@suse.de>
28527 PR middle-end/65519
28528 * genmatch.c (expr::gen_transform): Re-write to avoid
28529 using gimple_build.
28531 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28533 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
28535 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28537 * config/arm/arm.opt (print_tune_info): New option.
28538 * config/arm/arm.c (arm_print_tune_info): New function.
28539 (arm_file_start): Call arm_print_tune_info.
28540 * config/arm/arm-protos.h (struct tune_params): Add comment.
28541 * doc/invoke.texi (@item -mprint-tune-info): New item.
28542 (-mtune): mention it in ARM Option Summary.
28544 2015-03-25 DJ Delorie <dj@redhat.com>
28546 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
28549 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
28550 Martin Liska <mliska@suse.cz>
28552 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
28553 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
28554 (sem_item::add_type): New function.
28555 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
28556 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
28557 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
28558 (sem_function::equals_wpa): Fix typo.
28559 * ipa-icf.h (sem_item::add_type): New function.
28560 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
28563 2015-03-24 Jakub Jelinek <jakub@redhat.com>
28565 PR tree-optimization/65533
28566 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
28567 with swapped operands, call vect_free_slp_tree on
28568 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
28571 2015-03-24 Richard Biener <rguenther@suse.de>
28573 PR middle-end/65517
28574 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
28575 for fixup if necessary.
28577 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
28579 * doc/extend.texi (Function Attributes): Add @cindex entries
28580 for all attributes and regularize their format. Delete text
28581 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
28582 information about "eightbit_data", "tiny_data", and "model"
28583 variable attributes to the Variable Attributes section. Fix
28584 some obvious typos and copy-editing issues.
28585 (Variable Attributes, Type Attributes): Likewise add/fix
28586 @cindex entries for all attributes.
28588 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28591 * tree-chkp.c (chkp_build_returned_bound): Ignore
28592 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
28594 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
28597 * config/sh/predicates.md (simple_mem_operand,
28598 displacement_mem_operand): Add test for reg.
28599 (short_displacement_mem_operand): Test for displacement_mem_operand
28600 before invoking sh_disp_addr_displacement.
28601 * config/sh/constraints.md (Sdd, Sra): Simplify.
28602 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
28603 Remove redundant displacement_mem_operand tests.
28605 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
28608 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
28609 the same -mmcu=MCU more than once.
28611 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28614 * ipa-devirt.c: Remove duplicate demangle.h include.
28617 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
28619 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
28620 REG_POINTER on *destptr after adjusting it for prologue size.
28623 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
28624 ultimate_alias_target ()->order ints instead of
28625 ultimate_alias_target () pointers.
28627 2015-03-23 Richard Biener <rguenther@suse.de>
28629 PR tree-optimization/65518
28630 * tree-vect-stmts.c (vectorizable_load): Reject single-element
28631 interleaving cases we generate absymal code for.
28633 2015-03-23 Richard Biener <rguenther@suse.de>
28635 PR tree-optimization/65494
28636 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
28638 (vect_analyze_slp_instance): But do that here, always and once.
28640 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28642 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
28643 adding T or multiplying by T+1 and subracting T.
28645 2015-03-22 Jeff Law <law@redhat.com>
28647 PR rtl-optimization/64317
28648 * Makefile.in (OBJS): Add gcse-common.c
28649 * gcse.c: Include gcse-common.h
28650 (struct modify_pair_s): Move structure definition to gcse-common.h
28651 (compute_transp): Move function to gcse-common.c.
28652 (canon_list_insert): Similarly.
28653 (record_last_mem_set_info): Break out some code and put it into
28654 gcse-common.c. Call into the new common code.
28655 (compute_local_properties): Pass additional arguments to compute_transp.
28656 * postreload-gcse.c: Include gcse-common.h and df.h
28657 (modify_mem_list_set, blocks_with_calls): New variables.
28658 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
28659 (get_bb_avail_insn): Pass in the expression index too.
28660 (alloc_mem): Allocate memory for the new bitmaps and lists.
28661 (free_mem): Free memory for the new bitmaps and lists.
28662 (insert_expr_in_table): Record a bitmap index for each entry we
28664 (record_last_mem_set_info): Call into common code in gcse-common.c.
28665 (get_bb_avail_insn): If no available insn was found in the requested
28666 BB. If BB has a single predecessor, see if the expression is
28667 transparent in BB and available in that single predecessor.
28668 (compute_expr_transp): New wrapper for compute_transp.
28669 (eliminate_partially_redundant_load): Pass expression's bitmap_index
28670 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
28671 (gcse_after_reload_main): If there are elements in the hash table,
28672 then compute transparency for all the elements in the hash table.
28673 * gcse-common.h: New file.
28674 * gcse-common.c: New file.
28676 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
28678 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
28680 (System Headers): Likewise.
28682 (Traditional macros): Likewise.
28683 (Invocation): Likewise.
28684 (Option Index): Likewise.
28685 * doc/cppopts.texi (-M): Likewise.
28686 (-finput-charset): Likewise.
28687 (--help): Likewise.
28688 * doc.invoke.texi (AVR Options): Likewise.
28689 (V850 Options): Likewise.
28691 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
28694 * ipa-devirt.c: Include demangle.h
28695 (odr_type_d): Add field rtti_broken.
28696 (odr_subtypes_equivalent_p): Do not require name to match.
28697 (compare_virtual_tables): Fix typo; if type already has ODR violation,
28698 bypass the tests; be ready for function referneces in vtables that are
28699 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
28700 (warn_odr): Give up for nameless types.
28701 (warn_types_mismatch): Report mismatch in mangled names;
28702 report mismatch in anonymous namespaces; look into component types to
28703 give useful error; report when mismatch is dragged in from other ODR
28705 (odr_types_equivalent_p): Match types for being polymorphic; avoid
28706 duplicated diagnostics.
28707 (add_type_duplicate): Reorder checks so more informative ones come
28708 first; fix typo; do not output "the extra base is defined here" when
28710 (BINFO_N_BASE_BINFOS): Relax sanity check.
28712 2015-03-22 Martin Liska <mliska@suse.cz>
28713 Jakub Jelinek <jakub@redhat.com>
28715 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
28716 masks that can potentially include a builtin.
28717 (ix86_add_new_builtins): Introduce fast filter for isa values
28718 that cannot trigger builtin inclusion.
28720 2015-03-22 Martin Liska <mliska@suse.cz>
28722 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
28723 (sem_item::update_hash_by_local_refs): Likewise.
28724 (sem_variable::get_hash): Empty line is fixed.
28725 (sem_item_optimizer::execute): Include adding of hash references.
28726 (sem_item_optimizer::update_hash_by_addr_refs): New function.
28727 (sem_item_optimizer::build_hash_based_classes): Use local hash.
28728 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
28729 (sem_item::update_hash_by_local_refs): Likewise.
28731 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28734 * ipa-comdats.c (enqueue_references): Walk through thunks.
28735 (ipa_comdats): Likewise.
28736 (set_comdat_group_1): New function.
28738 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28741 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
28744 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
28745 Gerald Pfeifer <gerald@pfeifer.com>
28747 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
28749 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
28750 Sandra Loosemore <sandra@codesourcery.com>
28752 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
28753 function parameter declaration.
28754 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
28755 Update arguments to nios2_adjust_call_address().
28756 (sibcall_internal): Rename from *sibcall.
28757 (sibcall_value_internal): Rename from *sibcall_value.
28758 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
28759 (nios2_large_got_address): Add target temp reg parameter.
28760 (nios2_got_address): Adjust call to nios2_large_got_address, add
28761 force_reg around it.
28762 (nios2_load_pic_address): Add target temp reg parameter, replace call
28763 to nios2_got_address with corresponding code.
28764 (nios2_legitimize_constant_address): Update call to
28765 nios2_load_pic_address.
28766 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
28767 to use temp reg for PIC loading purposes.
28768 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
28769 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
28770 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
28772 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28774 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
28775 usage of "the @option{...}".
28776 (-Wopenmp-simd): Likewise.
28777 (-fsanitize-recover): Likewise.
28778 (-fsanitize-undefined-trap-on-error): Likewise.
28780 (tracer-dynamic-coverage-feedback): Likewise.
28781 (reorder-block-duplicate-feedback): Likewise.
28782 (loop-unroll-jam-size): Likewise.
28785 (-mabs=legacy): Likewise.
28786 (-mupper-regs-df): Likewise.
28787 (-mupper-regs-sf): Likewise.
28788 (-mpointers-to-nested-functions): Likewise.
28790 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28792 * doc/extend.texi (Cilk Plus Builtins): Add markup.
28794 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28796 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
28797 additional index entries and cross-references.
28798 (-fchkp-check-incomplete-type): Likewise.
28799 (-fchkp-first-field-has-own-bounds): Likewise.
28800 (-fchkp-narrow-to-innermost-array): Likewise.
28801 (-fchkp-use-fast-string-functions): Likewise.
28802 (-fchkp-use-nochk-string-functions): Likewise.
28803 (-fchkp-use-static-const-bounds): Likewise.
28804 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28805 (-fchkp-instrument-marked-only): Likewise.
28806 (-fchkp-use-wrappers): Likewise.
28807 (-static-libmpx): Likewise.
28808 (-static-libmpxwrappers): Likewise.
28809 * doc/extend.texi (bnd_legacy): Likewise.
28810 (bnd_instrument): Likewise.
28811 (bnd_variable_size): Likewise.
28812 (Pointer Bounds Checker builtins): Likewise.
28814 2015-03-21 Tom de Vries <tom@codesourcery.com>
28816 PR tree-optimization/65458
28817 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
28818 * cgraph.h (cgraph_node): Add parallelized_function field.
28819 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
28820 (input_overwrite_node): Read parallelized_function field.
28821 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
28822 parallelized_function on cgraph_node for child_fn.
28823 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
28824 Remove include of gt-tree-parloops.h.
28825 (parallelized_functions): Remove static variable.
28826 (parallelized_function_p): Rewrite using parallelized_function field of
28828 (create_loop_fn): Remove adding to parallelized_functions.
28829 * Makefile.in (GTFILES): Remove tree-parloops.c
28831 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
28833 PR rtl-optimization/64366
28834 * lra.c (lra_update_insn_regno_info): Consider regs in
28835 CALL_INSN_FUNCTION_USAGE memory.
28837 2015-03-20 Richard Biener <rguenther@suse.de>
28839 PR middle-end/64715
28840 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
28841 for type comparison and gcc_checking_assert.
28842 (chrec_fold_plus_poly_poly): Likewise.
28843 (chrec_fold_multiply_poly_poly): Likewise.
28844 (chrec_convert_1): Likewise.
28845 * gimplify.c (gimplify_expr): Remove premature folding of
28846 &X + CST to &MEM[&X, CST].
28848 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28850 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
28852 (ipa_inline): Recompute inline_failed codes.
28853 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28854 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
28857 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
28859 PR rtl-optimization/60851
28860 * recog.c (constrain_operands): Accept a pseudo register before reload
28861 for LRA enabled targets.
28863 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
28866 * config/rs6000/predicates.md (easy_fp_constant): Remove special
28867 -ffast-math handling that kept non-0 constants live in the RTL
28868 until reload. Remove logic testing the number of instructions it
28869 took to create a constant in a GPR that was never used, due to a
28870 test for soft-float earlier.
28871 (memory_fp_constant): Delete, no longer used.
28873 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
28874 alternatives for loading non-0 constants into GPRs for hard
28875 floating point that is no longer needed due to changes in
28876 easy_fp_constant. Add support for loading 0.0 into GPRs.
28877 (mov<mode>_hardfloat32): Likewise.
28878 (mov<mode>_hardfloat64): Likewise.
28879 (mov<mode>_64bit_dm): Likewise.
28880 (movtd_64bit_nodm): Likewise.
28881 (pre-reload move FP constant define_split): Delete define_split,
28882 since it is no longer used.
28883 (extenddftf2_internal): Remove GHF constraints that are not valid
28886 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
28888 PR rtl-optimization/63491
28889 * lra-constraints.c (check_and_process_move): Use src instead of
28890 sreg. Remove some dead code.
28892 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
28895 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
28896 (sem_variable::merge): Likewise.
28898 2015-03-19 Martin Liska <mliska@suse.cz>
28901 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
28902 all fields of cgraph_thunk_info.
28904 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
28906 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
28907 clone instrumented thunks.
28909 2015-03-19 Richard Biener <rguenther@suse.de>
28912 2015-03-10 Richard Biener <rguenther@suse.de>
28914 PR middle-end/63155
28915 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28916 * tree-ssa-coalesce.c: Include timevar.h.
28917 (attempt_coalesce): Handle graph being NULL.
28918 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28919 Split out abnormal coalescing to ...
28920 (perform_abnormal_coalescing): ... this function.
28921 (coalesce_ssa_name): Perform abnormal coalescing without computing
28923 (verify_ssa_coalescing_worker): New function.
28924 (verify_ssa_coalescing): Likewise.
28926 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
28927 Jakub Jelinek <jakub@redhat.com>
28930 * tsan.c (instrument_gimple): Clear tail call flag on
28933 2015-03-19 Jakub Jelinek <jakub@redhat.com>
28936 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
28937 call in the return bb.
28938 (find_split_points): Add RETURN_BB argument, don't call
28940 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
28941 if true append TSAN_FUNC_EXIT internal call after the call to
28942 the split off function.
28943 (execute_split_functions): Call find_return_bb here.
28944 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
28945 Adjust find_split_points and split_function calls.
28947 2015-03-18 DJ Delorie <dj@redhat.com>
28949 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
28950 (iorqi3_virt): Likewise.
28952 2015-03-18 Tom de Vries <tom@codesourcery.com>
28954 * tree-parloops.c (parallelize_loops): Make static.
28955 * tree-parloops.h (parallelize_loops): Remove extern declaration.
28957 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
28959 PR middle-end/64491
28961 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
28963 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
28964 condition would be removed due to undefined behaviour.
28966 2015-03-18 Martin Liska <mliska@suse.cz>
28969 * cgraph.c (cgraph_node::get_create): Remove unnecessary
28970 xstrdup_for_dump wrapper.
28971 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
28973 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
28974 with xstrdup_for_dump.
28975 (sem_variable::equals): Likewise.
28976 (sem_item_optimizer::read_section): Use symtab_node::name instead of
28978 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
28979 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
28980 symtab_node::asm_name with xstrdup_for_dump.
28981 (congruence_class::dump): Use symtab_node::name instead of
28983 * ipa-icf.h (symtab_node::name): Remove.
28984 (symtab_node::asm_name): Likewise.
28986 2015-03-18 Jakub Jelinek <jakub@redhat.com>
28988 PR tree-optimization/65450
28989 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
28991 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
28992 it instead of duplicate_ssa_name_ptr_info.
28995 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
28997 2015-03-18 Richard Biener <rguenther@suse.de>
28999 * tree-data-ref.h (struct access_matrix): Remove.
29000 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
29001 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
29002 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
29003 (am_vector_index_for_loop): Likewise.
29004 (struct data_reference): Remove access_matrix member.
29005 (DR_ACCESS_MATRIX): Remove.
29006 (lambda_vector_new): Add comment.
29007 (lambda_matrix_new): Use XOBNEWVEC.
29009 2015-03-18 Richard Biener <rguenther@suse.de>
29011 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
29012 (pass_ch::execute): Cleanup the CFG only if we did sth.
29013 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
29015 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29017 * expmed.c (synth_mult): Use std::swap instead of manually
29018 swapping algorithms.
29020 2015-03-18 Jakub Jelinek <jakub@redhat.com>
29023 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
29025 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
29028 * config/avr/avr.opt (-nodevicelib): New option.
29029 * doc/invoke.texi (AVR Options): Document it.
29030 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
29031 libgcc.a, libc.a, libm.a.
29032 * config/avr/specs.h: Same.
29033 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
29034 which don't (directly) depend on the device. Print more help.
29035 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
29036 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
29037 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
29039 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
29040 for specs file name.
29041 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
29042 * config/avr/avr-mcus.def: Adjust initializers and comments.
29044 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
29046 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
29047 DECL_ONE_ONLY to check if decl is one only.
29048 * ipa-split.c (consider_split): Limit splitt of one only functions.
29050 2015-03-16 Jakub Jelinek <jakub@redhat.com>
29052 PR tree-optimization/65427
29053 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
29055 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
29057 2015-03-16 Marek Polacek <polacek@redhat.com>
29059 * cgraph.h (add_new_static_var): Remove declaration.
29060 * varpool.c (add_new_static_var): Remove function.
29062 2015-03-16 Jakub Jelinek <jakub@redhat.com>
29064 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
29065 instead of vec<tree> * with vec_alloc and release for args.
29068 PR middle-end/65431
29069 * omp-low.c (delete_omp_context): Only splay_tree_delete
29070 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
29071 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
29073 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
29076 * cfgexpand.c (align_base): New function.
29077 (alloc_stack_frame_space): Call it.
29078 (expand_stack_vars): Align prev_frame to be sure
29079 data->asan_vec elements aligned properly.
29081 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
29083 PR middle-end/65409
29084 * expr.c (store_field): Do not do a direct block copy if the source is
29085 a PARALLEL with BLKmode.
29087 2015-03-16 Tom de Vries <tom@codesourcery.com>
29089 PR middle-end/65414
29091 2015-03-12 Tom de Vries <tom@codesourcery.com>
29093 PR rtl-optimization/64895
29094 * lra-lives.c (check_pseudos_live_through_calls): Use
29095 actual_call_used_reg_set instead of call_used_reg_set, if available.
29097 2015-03-16 Alan Modra <amodra@gmail.com>
29100 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
29101 Modify Z->r bswapdi splitter to use dest in place of scratch.
29102 In r->Z and Z->r bswapdi splitter rename word_high, word_low
29103 to word1, word2 and rearrange logic to suit.
29104 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
29105 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
29106 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
29107 Add one '?' on r->r. Modify Z->r splitter to avoid need for
29110 2015-03-14 Jakub Jelinek <jakub@redhat.com>
29112 PR tree-optimization/65369
29113 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
29114 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
29115 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
29117 PR tree-optimization/65418
29118 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
29119 are casts in the first PLUS_EXPR operand, ensure tbias and
29120 *totallowp are in the inner type.
29122 PR rtl-optimization/65401
29123 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
29124 argument. If true, adjust_address_nv of x with big-endian
29125 correction for the mode widening to GET_MODE (y).
29126 (make_field_assignment): Don't do MEM mode widening here.
29127 Use MEM_P instead of GET_CODE == MEM.
29129 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
29131 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
29132 the external decls.
29134 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29137 * config/arm/arm.c (arm_gen_constant, AND case): Use
29138 ARM_SIGN_EXTEND when constructing AND mask.
29140 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29142 * graph.c (print_graph_cfg): Make function names visible and append
29143 parenthesis to it. Also make groups of basic blocks belonging to the
29144 same function visible.
29146 2015-03-12 Richard Biener <rguenther@suse.de>
29148 PR middle-end/44563
29149 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
29150 to avoid quadratic behavior with inline expansion splitting blocks.
29151 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
29152 with the successor if the predecessor will be merged with it.
29153 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
29154 entry block with its successor.
29156 2015-03-13 Richard Biener <rguenther@suse.de>
29158 PR middle-end/44563
29159 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
29160 (cleanup_tree_cfg_1): Do not call it.
29161 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
29162 (fixup_noreturn_call): Mark the stmt as control altering.
29163 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
29165 (pass_data_fixup_cfg): Produce a dump file.
29166 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
29167 (need_noreturn_fixup): New global.
29168 (pass_dominator::execute): Fixup queued noreturn calls.
29169 (optimize_stmt): Queue calls that became noreturn for fixup.
29170 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
29171 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
29172 (el_to_fixup): New global.
29173 (eliminate_dom_walker::before_dom_childre): Queue calls that
29174 became noreturn for fixup.
29175 (eliminate): Fixup queued noreturn calls.
29176 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
29177 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
29178 (substitute_and_fold_dom_walker::before_dom_children): Queue
29179 alls that became noreturn for fixup.
29180 (substitute_and_fold): Fixup queued noreturn calls.
29182 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
29184 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
29185 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
29186 are building; for methods check ODR type of class they belong to if
29187 they may lead to a polymorphic call.
29188 (sem_function::compare_polymorphic_p): Be bit smarter about testing
29189 when function may lead to a polymorphic call.
29190 (sem_function::compare_type_list): Remove.
29191 (sem_variable::equals): Update use of compatible_types_p.
29192 (sem_variable::parse_tree_refs): Remove.
29193 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
29195 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
29197 (func_checker::compatible_polymorphic_types_p): Break out from ...
29198 (unc_checker::compatible_types_p): ... here.
29199 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
29201 (unc_checker::compatible_types_p): Update.
29202 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
29205 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29207 PR rtl-optimization/65235
29208 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
29209 When first element of vec_concat is const_int, calculate its size
29210 using second element.
29212 2015-03-12 Richard Biener <rguenther@suse.de>
29214 PR middle-end/65270
29215 * fold-const.c (operand_equal_p): Fix ordering of resetting
29216 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
29218 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29220 * config/s390/s390.c (s390_reorg): Move code to output nops after label
29222 (s390_asm_output_function_label): Likewise.
29223 * config/s390/s390.c (s390_asm_output_function_label):
29224 Fix function label alignment with -mhtopatch.
29225 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
29226 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
29227 ("nop_2_byte"): New define_insn.
29228 ("nop_4_byte"): Likewise.
29229 ("nop_6_byte"): Likewise.
29230 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
29231 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
29233 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
29236 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
29239 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
29242 * toplev.c (process_options): Restrict Pointer Bounds Checker
29243 usage with Address Sanitizer.
29245 2015-03-12 Richard Biener <rguenther@suse.de>
29247 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
29249 * omp-low.c (expand_omp_taskreg): Split block before removing
29251 (expand_omp_target): Likewise.
29252 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
29253 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
29254 stmt to split_block.
29256 2015-03-12 Tom de Vries <tom@codesourcery.com>
29258 PR rtl-optimization/64895
29259 * lra-lives.c (check_pseudos_live_through_calls): Use
29260 actual_call_used_reg_set instead of call_used_reg_set, if available.
29262 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29264 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
29265 (cgraph_node::remove): Likewise.
29266 (cgraph_node::get_untransformed_body): Likewise.
29267 * varpool.c (varpool_node::remove): Likewise.
29268 (varpool_node::get_constructor): Add sanity check.
29270 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
29272 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
29274 (-fabi-compat-version): Likewise.
29275 (-ffriend-injection): Likewise.
29276 (-Wdeclaration-after-statement): Likewise.
29277 (-fomit-frame-pointer): Likewise.
29278 (-ftree-coalesce-inlined-vars): Likewise.
29279 (-fvisibility=): Likewise.
29280 * doc/extend.texi (Typeof): Likewise.
29281 (Zero Length): Likewise.
29282 (Escaped Newlines): Likewise.
29283 (Compound Literals): Likewise.
29284 (Function Attributes): Likewise.
29285 (Label Attributes): Likewise.
29286 (Type Attributes): Likewise.
29287 (Function Names): Likewise.
29288 (Other Builtins): Likewise.
29289 (Function Specific Option Pragmas): Likewise.
29290 (C++ Interface): Likewise.
29292 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
29294 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
29296 2015-03-11 Marek Polacek <polacek@redhat.com>
29298 PR tree-optimization/65388
29299 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
29301 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
29304 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
29305 * configure: Regenerate.
29306 * config.in: Regenerate.
29307 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
29308 [-mn-flash]: Document it.
29309 [__AVR_ARCH__]: Document avrtiny.
29311 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
29312 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
29313 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
29315 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29317 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
29319 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29322 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
29323 allow reloads of PLUS in floating point/VSX registers.
29325 2015-03-11 Junmo Park <junmoz.park@samsung.com>
29327 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
29328 crypto_sha256_fast.
29329 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
29331 2015-03-11 Richard Biener <rguenther@suse.de>
29333 PR tree-optimization/65310
29334 * tree-sra.c (build_ref_for_offset): Also preserve larger
29337 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
29339 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
29341 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29344 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
29346 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
29348 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29350 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
29351 (sem_function::equals_wpa): ... here.
29353 2015-03-10 Marek Polacek <polacek@redhat.com>
29354 Jakub Jelinek <jakub@redhat.com>
29357 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
29358 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
29361 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29364 * config/rs6000/t-linux: For powerpc64* target set
29365 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
29367 2015-03-10 Richard Biener <rguenther@suse.de>
29369 PR middle-end/44563
29370 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
29371 for redirect_all_calls.
29373 2015-03-10 Marek Polacek <polacek@redhat.com>
29375 * gdbinit.in (pcfun): Define and document.
29377 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
29379 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
29380 of libgomp-plugin.h.
29381 (find_target_compiler): Support a case when the path to gcc is
29382 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
29383 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
29384 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
29386 (main): Use GCC_INSTALL_NAME as target_driver_name.
29387 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
29389 (mkoffload.o): Remove obsolete include path and defines.
29390 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
29392 2015-03-10 Richard Biener <rguenther@suse.de>
29394 PR middle-end/63155
29395 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
29396 * tree-ssa-coalesce.c: Include timevar.h.
29397 (attempt_coalesce): Handle graph being NULL.
29398 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
29399 Split out abnormal coalescing to ...
29400 (perform_abnormal_coalescing): ... this function.
29401 (coalesce_ssa_name): Perform abnormal coalescing without computing
29403 (verify_ssa_coalescing_worker): New function.
29404 (verify_ssa_coalescing): Likewise.
29406 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
29409 * config.gcc (extra_options) [avr]: Remove.
29410 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
29411 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
29412 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
29414 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
29415 (-mmcu=): Add Var and MissingArgError properties.
29417 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
29418 * config/avr/t-multilib: Regenerate.
29419 * config/avr/specs.h: New file.
29420 * config/avr/driver-avr.c: New file.
29421 * config/avr/genopt.sh: Remove file.
29422 * config/avr/avr-tables.opt: Remove file.
29423 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
29424 * config/avr/avr-c.c: Same.
29425 * avr-arch.h: Same.
29426 (avr_current_device): Remove proto.
29427 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
29428 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
29429 (EXTRA_SPEC_FUNCTIONS): Define.
29430 (avr_devicespecs_file): New specs function proto.
29431 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
29432 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
29433 (avr_current_device): Remove definition and usage.
29434 (avr_set_core_architecture): New static function.
29435 (avr_option_override): Use it.
29436 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
29437 (mcu_name): New static array.
29438 (comparator, avr_archs_str, avr_mcus_str): New static functions.
29439 (avr_inform_devices, avr_inform_core_architectures): New functions.
29440 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
29441 (avrlibc.h) [WITH_AVRLIBC]: Include.
29442 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
29443 (print_mcu): Rewrite from scratch.
29444 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
29445 Forward to avr-specific specs defined in device-specs file.
29446 * config/avr/t-avr (driver-avr.o): New rule.
29447 (avr-devices.o): Depend on avr-arch.h.
29448 (avr-mcus): No more depend on avr-tables.opt.
29449 (avr-tables.opt): Remove rule.
29450 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
29452 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29454 * c-family/c.opt (fchkp-use-wrappers): New.
29455 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
29456 (chkp_wrap_function): New.
29457 (chkp_build_instrumented_fndecl): Support wrapped
29459 * doc/invoke.texi (-fcheck-pointer-bounds): New.
29460 (-fchkp-check-incomplete-type): New.
29461 (-fchkp-first-field-has-own-bounds): New.
29462 (-fchkp-narrow-bounds): New.
29463 (-fchkp-narrow-to-innermost-array): New.
29464 (-fchkp-optimize): New.
29465 (-fchkp-use-fast-string-functions): New.
29466 (-fchkp-use-nochk-string-functions): New.
29467 (-fchkp-use-static-bounds): New.
29468 (-fchkp-use-static-const-bounds): New.
29469 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
29470 (-fchkp-check-read): New.
29471 (-fchkp-check-write): New.
29472 (-fchkp-store-bounds): New.
29473 (-fchkp-instrument-calls): New.
29474 (-fchkp-instrument-marked-only): New.
29475 (-fchkp-use-wrappers): New.
29476 (-static-libmpx): New.
29477 (-static-libmpxwrappers): New.
29479 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29481 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
29482 (CHKP_SPEC): Add wrappers library.
29483 * c-family/c.opt (static-libmpxwrappers): New.
29485 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29487 * config/i386/linux-common.h (LIBMPX_LIBS): New.
29488 (LIBMPX_SPEC): New.
29490 * gcc.c (CHKP_SPEC): New.
29491 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
29492 * c-family/c.opt (static-libmpx): New.
29494 2015-03-10 Richard Biener <rguenther@suse.de>
29496 PR middle-end/44563
29497 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
29499 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
29500 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
29501 (cgraph_add_edge_to_call_site_hash): Likewise.
29502 (cgraph_node::get_edge): Likewise.
29503 (cgraph_edge::set_call_stmt): Likewise.
29504 (cgraph_edge::remove_caller): Likewise.
29506 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
29508 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
29509 (callee_saved_gpr_regs_size): ... this.
29510 (callee_saved_regs_first_regno): Rename to ...
29511 (callee_saved_first_gpr_regno): ... this.
29512 (callee_saved_regs_last_regno) Rename to ...
29513 (callee_saved_last_gpr_regno): ... this.
29514 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
29516 (nds32_initial_elimination_offset): Likewise.
29517 (nds32_expand_prologue): Likewise.
29518 (nds32_expand_epilogue): Likewise.
29519 (nds32_expand_prologue_v3push): Likewise.
29520 (nds32_expand_epilogue_v3pop): Likewise.
29521 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
29522 Adjust renamed variables.
29523 (nds32_output_stack_pop): Likewise.
29525 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
29527 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
29530 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29532 PR rtl-optimization/65321
29533 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
29535 * var-tracking.c (use_narrower_mode): Likewise.
29537 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29539 PR tree-optimization/65355
29540 * varasm.c (notice_global_symbol): Do not produce RTL.
29541 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
29543 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
29544 check for section anchors.
29546 2015-03-10 Alan Modra <amodra@gmail.com>
29549 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
29550 to be single-arch by default. Set cpu_is_64bit for powerpc64
29551 given --with-cpu=native.
29552 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
29553 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
29555 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
29556 rs6000_isa_flags rather than TARGET_64BIT.
29558 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
29559 Kaz Kojima <kkojima@gcc.gnu.org>
29561 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
29563 2015-03-09 Jakub Jelinek <jakub@redhat.com>
29566 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
29567 on a TREE_BINFO, instead use BINFO_TYPE.
29569 2015-03-09 Richard Biener <rguenther@suse.de>
29571 PR middle-end/65270
29572 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
29573 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
29574 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
29575 of that. When comparing dereferences compare alignment.
29576 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
29578 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29580 * ipa-inline-analysis.c (check_callers): Check
29581 node->can_remove_if_no_direct_calls_and_refs_p.
29582 (growth_likely_positive): Reorganize to call
29583 can_remove_if_no_direct_calls_p later.
29584 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
29585 will_be_removed_from_program_if_no_direct_calls_p): Add
29586 will_inline parameter.
29587 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
29588 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29589 Handle inliner case correctly.
29591 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
29593 PR tree-optimization/63743
29594 * cfgexpand.c (reorder_operands): Also reorder if only second operand
29595 had its definition forwarded by TER.
29597 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29600 * ipa-utils.h (types_odr_comparable): Add strict argument.
29601 * ipa-devirt.c: Fix whitespace;
29602 (odr_hasher): Remove.
29603 (odr_name_hasher, odr_vtable_hasher): New hashers.
29604 (can_be_name_hashed_p): New predicate.
29605 (hash_type_name): remove.
29606 (hash_odr_name): New.
29607 (odr_name_hasher::hash): new.
29608 (can_be_vtable_hashed_p): New.
29609 (hash_odr_vtable): New.
29610 (odr_vtable_hasher::hash): New.
29611 (types_same_for_odr): Add strict parameter.
29612 (types_odr_comparable): Likewise.
29613 (odr_name_hasher::equal): New.
29614 (odr_vtable_hasher::equal): New.
29615 (odr_name_hasher::remove): New.
29616 (odr_hash_type): Change to hash_table<odr_name_hasher>.
29617 (odr_vtable_hash_type): New.
29618 (odr_vtable_hash): New.
29619 (odr_subtypes_equivalent_p): Do strict comparsion.
29620 (add_type_duplicate): Merge type names; cleanup; avoid type
29622 (register_odr_type): Initialize vtable hash.
29623 (build_type_inheritance_graph): Likewise
29624 (get_odr_type): Reorg to use two hashes.
29625 (dump_possible_polymorphic_call_targets): Move sanity check after debug
29627 (ipa_devirt): Dump type_inheritance_graph.
29628 (types_same_for_odr): Add strict mode.
29630 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29633 * cgraph.h (symtab_node): Add definition_alignment,
29634 can_increase_alignment_p and increase_alignment.
29635 * symtab.c (symtab_node::can_increase_alignment_p,
29636 increase_alignment_1, symtab_node::increase_alignment,
29637 symtab_node::definition_alignment): New.
29638 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
29639 can_increase_alignment_p.
29640 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
29641 * tree-vect-stmts.c (ensure_base_align): Likewise.
29642 * varasm.c (function_section_1): Use definition_alignment.
29643 (assemble_start_function): Likewise.
29644 (emit_local): likewise.
29645 (build_constant_desc): Likewsie.
29646 (output_constant_def_contents): Likewise.
29647 (place_block_symbol): Likewise.
29648 (output_object_block): Likewise.
29650 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29653 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
29654 when outputting debug.
29656 2015-03-07 Marek Polacek <polacek@redhat.com>
29657 Martin Uecker <uecker@eecs.berkeley.edu>
29660 * doc/invoke.texi: Update description of -fsanitize=bounds.
29662 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
29664 * tree-ssa-phiopt.c (neg_replacement): Remove.
29665 (tree_ssa_phiopt_worker): Remove negate optimization.
29667 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29670 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
29672 2015-03-06 Richard Biener <rguenther@suse.de>
29674 PR middle-end/64928
29675 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
29676 and liveout_obstack members.
29677 (calculate_live_on_exit): Remove.
29678 (calculate_live_ranges): Change declaration.
29679 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
29680 (new_tree_live_info): Adjust.
29681 (calculate_live_ranges): Delete livein when not wanted.
29682 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
29683 Deal with partly deleted live info.
29684 (loe_visit_block): Remove temporary bitmap by using
29685 bitmap_ior_and_compl_into.
29686 (live_worklist): Adjust accordingly.
29687 (calculate_live_on_exit): Make static.
29688 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
29689 we do not need livein.
29691 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
29693 * real.c (real_from_string): Fix typo in assertion.
29695 2015-03-06 Alex Velenko <alex.velenko@arm.com>
29697 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
29700 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29702 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
29704 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
29707 * lra-assigns.c (find_hard_regno_for): Rename to
29708 find_hard_regno_for_1. Add a new parameter.
29709 (find_hard_regno_for): New function using find_hard_regno_for_1.
29711 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29713 PR rtl-optimization/65067
29714 * expmed.c (store_bit_field, extract_bit_field): Reworked the
29715 strict volatile bitfield handling.
29717 2015-03-05 Martin Liska <mliska@suse.cz>
29720 * ipa-icf.c (sem_variable::equals): Compare variables types.
29722 2015-03-05 Richard Henderson <rth@redhat.com>
29725 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
29726 correctly check weak symbol binding.
29728 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
29730 PR middle-end/65315
29731 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
29734 2015-03-05 Martin Liska <mliska@suse.cz>
29736 * ipa-inline.c (inline_small_functions): Set default value to
29737 prevent warning during bootstrap.
29738 * tree.h: Add pragma guard that ignores false positives during
29741 2015-03-05 Richard Biener <rguenther@suse.de>
29743 PR tree-optimization/65310
29744 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29745 Properly preserve alignment of the base of the access.
29747 2015-03-05 Richard Biener <rguenther@suse.de>
29750 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
29751 Compare dependence info.
29753 2015-03-05 Richard Biener <rguenther@suse.de>
29755 PR middle-end/65233
29756 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
29758 (walk_ssa_copies): Revert last chage. Instead do not walk
29759 SSA names registered for SSA update.
29761 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29764 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
29765 vtable references for their containing type.
29766 (sem_function::equals_wpa): Compare TYPE_RESTRICT
29767 and type attributes.
29769 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
29771 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
29772 before negating it.
29773 * stor-layout.c (finalize_record_size): Revert latest change.
29775 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
29777 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
29779 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29781 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
29782 for correct comdat handling.
29783 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29785 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
29786 (used_from_object_file_p_worker): Remove.
29787 (cgraph_node::only_called_directly_or_alised): Add
29788 used_from_object_file_p.
29789 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
29790 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
29791 can_remove_if_no_direct_calls_and_refs_p.
29793 2015-03-04 Nick Clifton <nickc@redhat.com>
29795 * config/rl78/rl78.h (enum reg_class): Remove real registers from
29796 General register class.
29797 * config/rl78/rl78-real.md: Replace general register constraints
29798 with real+virtual register constraints.
29800 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29802 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
29803 from checking for -mhtm option.
29805 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29807 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
29808 (struct ipa_sra_check_caller_data): Add has_thunk field.
29809 (ipa_sra_check_caller): Check for thunk.
29810 (ipa_sra_preliminary_function_checks): Give up on function with
29812 (ipa_early_sra): Use call_for_symbol_and_aliases.
29814 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
29817 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
29818 called for __stack_chk_guard symbol.
29820 2015-03-03 DJ Delorie <dj@redhat.com>
29822 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
29824 (*addhi3_real): Likewise.
29825 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
29826 pattern to match incrementing memory.
29827 * config/rl78/predicates.md (rl78_1_2_operand): New.
29828 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
29829 it's the same and only mem.
29830 (rl78_alloc_physical_registers_op2): If there's effectively only
29831 one MEM, transcode it into HL.
29832 (rl78_far_p): Reject addresses that aren't legitimate.
29834 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
29836 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
29839 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
29841 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
29843 Implement call0 ABI for xtensa
29844 * config/xtensa/constraints.md ("a" constraint): Include stack
29845 pointer in case of call0 ABI.
29846 ("q" constraint): Make empty in case of call0 ABI.
29847 ("D" constraint): Include stack pointer in case of call0 ABI.
29848 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
29849 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
29851 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
29853 (xtensa_regno_to_class): Make it a local variable in the
29854 function xtensa_regno_to_class.
29855 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
29856 macro, function prototype and implementation.
29857 (reg_nonleaf_alloc_order): Make it a local variable in the
29858 function order_regs_for_local_alloc.
29859 (xtensa_conditional_register_usage): New function.
29860 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
29861 (xtensa_valid_move): Allow direct moves to stack pointer
29862 register in call0 ABI.
29863 (xtensa_setup_frame_addresses): Only spill register windows in
29865 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
29866 call0 ABI respectively.
29867 (xtensa_function_arg_1): Only mark a7 register for copying in
29869 (xtensa_call_save_reg): New function.
29870 (compute_frame_size): Add space for callee saved register
29871 storage to the frame size in call0 ABI.
29872 (xtensa_expand_prologue): Generate code to set up stack frame
29873 and save callee-saved registers in call0 ABI.
29874 (xtensa_expand_epilogue): New function.
29875 (xtensa_set_return_address): New function.
29876 (xtensa_return_addr): Calculate return address in call0 ABI.
29877 (xtensa_builtin_saveregs): Only mark a7 register for copying and
29878 emit copying code in windowed ABI.
29879 (order_regs_for_local_alloc): Add preferred register allocation
29880 order for non-leaf function in call0 ABI.
29881 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
29882 (xtensa_asm_trampoline_template): Add trampoline generation for
29884 (xtensa_trampoline_init): Add trampoline initialization for
29886 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
29888 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
29889 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
29890 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
29891 ABI call-used registers.
29892 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
29893 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
29895 (REG_CLASS_CONTENTS): Include all registers into the preferred
29896 reload registers set, adjust the set in the
29897 xtensa_conditional_register_usage.
29898 (xtensa_regno_to_class): Drop variable declaration.
29899 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
29901 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
29903 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
29904 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
29905 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
29906 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
29907 location in call0 ABI.
29908 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
29909 stack adjustment size when handling exception.
29910 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
29911 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
29913 ("return" pattern): Generate ret.n/ret in call0 ABI.
29914 ("epilogue" pattern): Expand epilogue.
29915 ("nonlocal_goto" pattern): Use default in call0 ABI.
29916 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
29917 emit eh_set_a0_* depending on ABI.
29918 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
29919 ("eh_set_a0_call0", "blockage"): New patterns.
29921 2015-03-03 Martin Liska <mliska@suse.cz>
29924 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
29926 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29929 * config/rs6000/rs6000-tables.opt: Regenerate table.
29931 2015-03-03 Renlin Li <renlin.li@arm.com>
29933 * doc/md.texi (@item ^): Change ? into ^.
29935 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
29937 * doc/tm.texi: Regenerated.
29939 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
29941 * builtins.c (expand_builtin_return_addr): Add
29942 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
29943 surrounding #ifdef.
29944 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
29946 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
29948 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
29950 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
29953 2015-03-03 Martin Jambor <mjambor@suse.cz>
29954 Eric Botcazou <ebotcazou@adacore.com>
29956 * tree-sra.c (ipa_sra_check_caller_data): New type.
29957 (has_caller_p): Removed.
29958 (ipa_sra_check_caller): New function.
29959 (ipa_sra_preliminary_function_checks): Use it.
29961 2015-03-03 Martin Liska <mliska@suse.cz>
29963 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
29964 instead of if branch.
29966 2015-03-03 Martin Liska <mliska@suse.cz>
29969 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
29971 2015-03-23 Jeff Law <law@redhat.com>
29973 PR tree-optimization/65241
29974 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
29975 hash table if INSERT is true.
29977 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
29980 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
29982 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
29985 * config/avr/avr.c (context.h, tree-pass.h): Include them.
29986 (avr_pass_data_recompute_notes): New static variable.
29987 (avr_pass_recompute_notes): New class.
29988 (avr_register_passes): New static function.
29989 (avr_option_override): Call it.
29991 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
29993 Fix various problems with specs file generation.
29996 * config.gcc (extra_gcc_objs) [avr]: Remove.
29997 * config/avr/driver-avr.c: Remove file.
29998 * config/avr/t-avr (driver-avr.o): Remove rule.
29999 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
30000 INCLUDES to build. Depend on TM_H.
30001 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
30002 build warnings. Fix non-matching types and non-existing %-codes.
30004 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
30005 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
30006 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
30007 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
30008 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
30009 (LIBGCC_SPEC): Remove definitions.
30011 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
30013 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
30014 to create a register in testing mode.
30016 2015-03-03 Martin Liska <mliska@suse.cz>
30017 Jan Hubicka <hubicka@ucw.cz>
30020 * cgraph.c (cgraph_node::has_thunk_p): New function.
30021 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
30022 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
30023 (sem_function::merge): Assert is changed.
30025 2015-03-03 Martin Liska <mliska@suse.cz>
30026 Martin Jambor <mjambor@suse.cz>
30029 * ipa-icf.c (sem_item_optimizer::execute): Change function
30030 return value to boolean.
30031 (sem_item_optimizer::merge_classes): Likewise.
30032 (ipa_icf_driver): Return TODO_remove_functions in case there's
30033 a merge operation processed.
30034 * ipa-icf.h: Change function return value to boolean.
30036 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30039 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
30040 processor type for 64-bit little endian PowerPC.
30042 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30043 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
30044 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
30045 printing built-in mask so it does not pass NULL pointers.
30047 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
30050 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
30053 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
30054 !ISA_HAS_FP_CONDMOVE.
30056 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
30058 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
30061 2015-03-02 Ulrich Drepper <drepper@gmail.com>
30063 * doc/invoke.texi (Options for Code Generation Conventions):
30064 Fix URL of DSO paper.
30066 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30069 * ipa-inline.c (check_callers): Looks for recursion.
30070 (inline_to_all_callers): Give up on uninlinable or recursive edges.
30071 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
30072 summary of inline clones.
30073 (do_estimate_growth_1): Fix recursion check.
30075 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30078 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
30081 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30082 Aldy Hernandez <aldyh@redhat.com>
30085 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
30086 when checking TYPE_BINFO.
30088 2015-03-02 Richard Biener <rguenther@suse.de>
30091 * ipa-icf-gimple.c: Include builtins.h.
30092 (func_checker::compare_memory_operand): Compare base alignment.
30094 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
30097 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
30098 are never passed by reference.
30100 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
30103 * tree-chkp.c (chkp_check_lower): Don't check against
30104 zero bounds for already instrumented functions.
30105 (chkp_check_upper): Likewise.
30106 (chkp_fini): Clean pass local data to avoid wrong reusage.
30108 2015-02-28 Martin Liska <mliska@suse.cz>
30109 Jan Hubicka <hubicka@ucw.cz>
30111 * ipa-icf.c (sem_variable::equals): Improve debug output;
30112 get variable constructor.
30113 (sem_variable::parse): Do not filter out too early; give up on
30114 volatile and register vars.
30115 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
30117 * ipa-icf.h (sem_variable::init): Do not set ctor.
30118 (sem_variable::ctor): Remove.
30120 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
30122 PR middle-end/65233
30123 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
30125 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30127 * ipa-icf.c: Include stor-layout.h
30128 (sem_function::compare_cgraph_references): Rename to ...
30129 (sem_item::compare_cgraph_references): ... this one.
30130 (sem_variable::equals_wpa): New function
30131 (sem_variable::equals): Do not check stuff already verified by
30133 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
30134 * ipa-icf.h (sem_item): Add compare_cgraph_references.
30135 (sem_function): Remove compare_cgraph_references.
30136 (sem_variable): Turns equals_wpa into non-inline.
30138 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30140 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
30141 (sem_item::add_expr): New function.
30142 (sem_function::hash_stmt): Handle operands of most statements.
30143 (sem_variable::get_hash): Hash the actual constructor.
30144 * ipa-icf.h (sem_item): Add add_expr.
30145 (sem_function): Update prototype of hash_stmt
30147 2015-02-28 Martin Liska <mliska@suse.cz>
30148 Jan Hubicka <hubicka@ucw.cz>
30151 * ipa-icf-gimple.c (func_checker::compare_function_decl):
30153 (func_checker::compare_variable_decl): Skip symtab vars.
30154 (func_checker::compare_cst_or_decl): Update.
30155 * ipa-icf.c (sem_function::parse): Do not consider aliases.
30156 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
30157 use correct symtab predicates.
30158 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
30159 (sem_variable::parse): Update comment.
30160 (sem_item_optimizer::build_graph): Consider ultimate aliases
30163 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30165 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
30168 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30170 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
30171 (sem_variable::merge) Likewise.
30173 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30175 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
30176 target; also match flag_ipa_devirt.
30178 2015-03-01 Martin Liska <mliska@suse.cz>
30179 Jan Hubicka <hubicka@ucw.cz>
30181 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
30182 Validate variable alignment.
30183 * ipa-icf.c (sem_function::equals_private): Be more precise
30184 about non-common function attributes.
30185 (sem_variable::equals): Likewise.
30187 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30190 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
30191 across COMDAT group boundary.
30193 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30196 * ipa-icf.c (clear_decl_rtl): New function.
30197 (sem_function::merge): Clear RTL before forming alias.
30198 (sem_variable::merge): Clear RTL before forming alias.
30200 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30203 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
30205 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
30207 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
30210 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30212 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
30213 a typo in the description.
30215 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30218 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30219 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30220 * lra-constraints.c: Include "params.h".
30221 (EBB_PROBABILITY_CUTOFF): Use
30222 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
30223 (lra_inheritance): Use '<' instead of '<=' for
30224 EBB_PROBABILITY_CUTOFF.
30225 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
30228 2015-02-27 Martin Liska <mliska@suse.cz>
30230 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
30231 vector length condition.
30233 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
30235 * doc/extend.texi (x86 transactional memory intrinsics):
30236 Reorganize discussion of _xbegin. Clarify that the return
30237 value is a bit mask. Expand example and move to end of section.
30239 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30240 Aldy Hernandez <aldyh@redhat.com>
30242 PR rtl-optimization/65220
30243 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
30245 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30248 * lra-remat.c (update_scratch_ops): New.
30249 (do_remat): Call it.
30250 * lra.c (lra_register_new_scratch_op): New. Take code from ...
30251 (remove_scratches): ... here.
30252 * lra-int.h (lra_register_new_scratch_op): New prototype.
30254 2015-02-27 Marek Polacek <polacek@redhat.com>
30257 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
30258 -Wformat-signedness anymore.
30260 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30262 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
30264 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
30266 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30268 * config/s390/s390.c (enum s390_builtin):
30269 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
30270 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
30271 (s390_init_builtins): Generate new builtin functions.
30272 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
30273 (s390_sfpc, s390_efpc): New pattern definitions.
30275 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30277 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
30278 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
30279 (s390_builtin_decls): New array.
30280 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
30281 (s390_builtin_decl): New function.
30282 (TARGET_BUILTIN_DECL): Define macro.
30284 2015-02-27 Richard Biener <rguenther@suse.de>
30286 PR middle-end/63175
30287 * builtins.c (get_object_alignment_2): Make sure to re-apply
30288 the ANDed mask after recursing to its operand gets us a new
30289 misalignment bit position.
30291 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
30292 Martin Liska <mliska@suse.cz>
30295 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
30296 Use address_matters_p.
30297 (redirect_all_callers, set_addressable): New functions.
30298 (sem_function::merge): Reorganize and fix merging issues.
30299 (sem_variable::merge): Likewise.
30300 (sem_variable::compare_sections): Remove.
30301 * common.opt (fmerge-all-constants, fmerge-constants): Remove
30303 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
30305 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
30307 (address_matters_1): New function.
30308 (symtab_node::address_matters_p): New function.
30309 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
30310 check for merged flag.
30311 * cgraph.h (address_matters_p): Declare.
30312 (symtab_node::address_taken_from_non_vtable_p): Remove.
30313 (symtab_node::address_can_be_compared_p): New method.
30314 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
30315 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
30317 (comdat_can_be_unshared_p_1) Use address_matters_p.
30318 (update_vtable_references): Fix formating.
30319 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
30320 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
30321 * cgraphclones.c: Preserve merged and icf_merged flags.
30323 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
30325 * doc/extend.texi (Function Attributes): Fix spelling and typos.
30326 (Label Attributes): Likewise.
30327 (Cilk Plus Builtins): Likewise.
30328 (ARC SIMD Built-in Functions): Likewise.
30329 (ARM C Language Extensions (ACLE)): Likewise.
30330 (PowerPC Built-in Functions): Likewise.
30331 (PowerPC Hardware Transactional Memory Built-in Functions):
30334 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30336 PR tree-optimization/65216
30337 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
30338 new stmt and new SSA_NAME for lhs whenever the arguments have
30339 changed and weren't just swapped. Fix comment typo.
30341 PR tree-optimization/65215
30342 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
30343 for PDP endian targets.
30344 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
30345 Fix up formatting issues.
30346 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
30347 size is smaller than the original, adjust MEM_REF offset by the
30348 difference of sizes. Use is_gimple_mem_ref_addr instead of
30349 is_gimple_min_invariant test to avoid adding address temporaries.
30351 2015-02-26 Martin Liska <mliska@suse.cz>
30352 Jan Hubicka <hubicka@ucw.cz>
30355 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
30356 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
30357 (sem_item_optimizer::process_cong_reduction): Include division by
30358 sensitive references.
30359 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
30360 * ipa-ref.c (ipa_ref::address_matters_p): New function.
30361 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
30363 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
30366 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
30368 * config/avr/avr.c: Same.
30369 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
30370 Refuse any constant address not in 0..0xbf.
30371 * config/avr/avr.md (*mov<mode>, *movsf): Remove
30372 tiny_valid_direct_memory_access_range from insn conditions.
30373 (mov<mode>): Don't special-case expansion of avrtiny addresses.
30375 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
30378 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
30379 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
30380 * config/sh/predicates.md (const_logical_operand): New predicate.
30381 * config/sh/sh.md: Add new peephole2 patterns.
30383 2015-02-26 Marek Polacek <polacek@redhat.com>
30386 * ipa-inline.c (early_inliner): Recompute inline parameters.
30388 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30391 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
30392 instructions with TImode operands are included in the analysis.
30394 2015-02-26 Sebastian Pop <s.pop@samsung.com>
30396 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
30397 of an EDGE_FSM_THREAD.
30399 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
30401 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
30403 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
30406 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
30408 2015-02-26 Sebastian Pop <s.pop@samsung.com>
30410 PR tree-optimization/65048
30411 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
30412 (thread_through_all_blocks): Call valid_jump_thread_path.
30413 Remove invalid FSM jump-thread paths.
30415 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30417 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
30418 (ipa_write_optimization_summaries): Likewise.
30419 * tree-streamer.h: Include data-streamer.h.
30420 (streamer_mode_table): Declare extern variable.
30421 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
30422 * lto-streamer-out.c (lto_output_init_mode_table,
30423 lto_write_mode_table): New functions.
30424 (produce_asm_for_decls): Call lto_write_mode_table when streaming
30426 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
30427 (lto_create_simple_input_block): Add mode_table argument to the
30428 lto_input_block constructors.
30429 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
30431 * data-streamer-in.c (string_for_index): Likewise.
30432 * ipa-inline-analysis.c (inline_read_section): Likewise.
30433 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
30434 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
30435 * lto-streamer-in.c (lto_read_body_or_constructor,
30436 lto_input_toplevel_asms): Likewise.
30437 (lto_input_mode_table): New function.
30438 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
30439 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
30440 Use bp_pack_machine_mode.
30441 * real.h (struct real_format): Add name field.
30442 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
30443 (class lto_input_block): Add mode_table member.
30444 (lto_input_block::lto_input_block): Add mode_table_ argument,
30445 initialize mode_table.
30446 (struct lto_file_decl_data): Add mode_table field.
30447 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
30448 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
30449 unpack_ts_decl_common_value_fields,
30450 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
30451 * tree-streamer.c (streamer_mode_table): New variable.
30452 * real.c (ieee_single_format, mips_single_format,
30453 motorola_single_format, spu_single_format, ieee_double_format,
30454 mips_double_format, motorola_double_format,
30455 ieee_extended_motorola_format, ieee_extended_intel_96_format,
30456 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
30457 ibm_extended_format, mips_extended_format, ieee_quad_format,
30458 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
30459 decimal_single_format, decimal_double_format, decimal_quad_format,
30460 ieee_half_format, arm_half_format, real_internal_format): Add name
30462 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
30464 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
30467 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
30468 reordering for selective scheduling.
30470 2015-02-26 Terry Guo <terry.guo@arm.com>
30472 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
30473 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
30474 (arm_arch_no_volatile_ce): Declare new global variable.
30475 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
30476 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
30477 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
30478 (TARGET_NO_VOLATILE_CE): New macro.
30479 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
30480 volatile memory access in IT block
30482 2015-02-25 Kai Tietz <ktietz@redhat.com>
30484 PR tree-optimization/61917
30485 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
30486 that reduc_def_stmt is null.
30488 2015-02-25 Martin Liska <mliska@suse.cz>
30490 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
30491 hard register variables.
30493 2015-02-25 Kai Tietz <ktietz@redhat.com>
30496 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
30497 (symtab::noninterposable_alias): Likewise.
30499 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
30502 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
30504 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
30506 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
30509 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
30510 as split condition; force split via '#' in output pattern.
30512 2015-02-25 Richard Biener <rguenther@suse.de>
30513 Kai Tietz <ktietz@redhat.com>
30515 PR tree-optimization/61917
30516 * tree-vect-loop.c (vectorizable_reduction): Allow
30517 vect_internal_def without reduction to exit graceful.
30519 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
30522 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
30523 only with NONDEBUG_INSN_P.
30525 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
30527 Use variadic macros with avr-log.c.
30529 * config/avr/avr-protos.h (avr_vdump): New prototype.
30530 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
30531 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
30532 * config/avr/avr-log.c: Adjust comments.
30533 (avr_vdump): New function.
30534 (avr_vadump): Pass caller as 2nd argument instead of format string.
30535 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
30536 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
30538 2015-02-25 Jakub Jelinek <jakub@redhat.com>
30541 * target.def (target_option_stream_in): New target hook.
30542 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
30543 targetm.target_option.post_stream_in if non-NULL.
30544 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
30545 * doc/tm.texi: Updated.
30546 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
30548 (TARGET_OPTION_POST_STREAM_IN): Redefine.
30550 2015-02-24 Jeff Law <law@redhat.com>
30553 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
30554 of operand 0 and operand 2.
30555 (zero_cost_loop_end, loop_end): Similarly.
30557 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
30559 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
30562 2015-02-24 DJ Delorie <dj@redhat.com>
30564 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
30565 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
30566 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
30567 instead of hardcoding SImode.
30569 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
30571 * omp-low.c (create_omp_child_function): Tag entrypoint
30572 functions with a special attribute.
30574 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30577 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
30579 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
30581 PR rtl-optimization/65123
30582 * lra-remat.c (operand_to_remat): Check hard regs in insn
30585 2015-02-24 Nick Clifton <nickc@redhat.com>
30587 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
30590 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
30593 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
30594 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
30595 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
30596 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
30597 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
30598 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
30599 (BUILT_IN_GOACC_PARALLEL): Specify as
30600 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
30601 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
30602 * builtin-types.def
30603 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30604 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30605 Remove function types.
30606 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
30607 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30608 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30609 New function types.
30611 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
30613 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
30615 2015-02-24 Jakub Jelinek <jakub@redhat.com>
30617 PR tree-optimization/65170
30618 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
30619 if val[1] < 0, clear also val[2] and return 3.
30621 2015-02-24 Alan Modra <amodra@gmail.com>
30624 * config/rs6000/rs6000.c (get_memref_parts): Only return true
30625 when *base is a reg. Handle nested plus addresses. Simplify
30628 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
30630 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
30631 use natural alignment when optimizing for size.
30633 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
30636 * config/sh/sh.md (movsicc_true+3): Remove peephole.
30637 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
30638 * config/sh/sh.c (replace_n_hard_rtx): Remove.
30640 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
30643 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
30644 too big for a wide_int. Implement missing wrapping operation.
30646 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
30649 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
30650 instead of const_int 4294901760.
30652 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
30654 * config/avr/t-avr: Fix typo in comment.
30656 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
30658 * doc/rtl.texi (fma): Clarify documentation.
30660 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
30663 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
30664 over input_location.
30666 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30668 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
30669 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
30670 restrict alignments to absolute_biggest_alignment.
30671 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
30673 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
30674 * doc/tm.texi: Regenerate.
30675 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
30677 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
30680 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
30682 2015-02-20 Richard Biener <rguenther@suse.de>
30684 PR tree-optimization/65136
30685 * tree-ssa-propagate.c: Include cfgloop.h.
30686 (replace_phi_args_in): Avoid replacing loop latch edge PHI
30687 arguments with constants.
30689 2015-02-20 Jakub Jelinek <jakub@redhat.com>
30690 Martin Liska <mliska@suse.cz>
30693 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
30694 don't try to create_thunk if stdarg_p. If
30695 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
30696 redirect_callers if possible.
30697 (sem_item_optimizer::execute): Call unregister_hooks here...
30698 (ipa_icf_driver): ... instead of here.
30700 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30702 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
30703 Mark operand 0 as earlyclobber in 2nd alternative.
30704 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
30705 Write negated shift amount into QI lowpart operand 0 and use it
30707 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
30709 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30711 * cgraph.h (clone_function_name_1): Declare.
30712 * cgraphclones.c (clone_function_name_1): New function.
30713 (clone_function_name): Use it.
30714 * lto-partition.c: Include "stringpool.h".
30715 (must_not_rename, maybe_rewrite_identifier)
30716 (validize_symbol_for_target): New static functions.
30717 (privatize_symbol_name): Use must_not_rename.
30718 (promote_symbol): Call validize_symbol_for_target.
30719 (lto_promote_cross_file_statics): Likewise.
30720 (lto_promote_statics_nonwpa): Likewise.
30722 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
30725 * config/avr/avr.md (pushhi_insn): New insn.
30726 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
30728 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30729 Jakub Jelinek <jakub@redhat.com>
30731 * tree-streamer.c (preload_common_nodes): Don't preload
30732 TI_VA_LIST* for offloading.
30733 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
30736 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
30738 * config/pa/pa.c (pa_emit_move_sequence): Always force
30739 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
30742 * config/pa/pa.c (pa_reloc_rw_mask): New function.
30743 (TARGET_ASM_RELOC_RW_MASK): Define.
30744 (pa_cannot_force_const_mem): Revert previous change.
30746 2015-02-19 Martin Jambor <mjmabor@suse.cz>
30747 Jan Hubicka <hubicka@ucw.cz>
30750 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
30751 across jump functions.
30753 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
30755 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
30757 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
30759 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
30761 2015-02-19 Richard Henderson <rth@redhat.com>
30763 PR middle-end/65074
30764 * varasm.c (default_binds_local_p_2): Don't test node->definition;
30765 test DECL_EXTERNAL independent of symtab_node.
30767 2015-02-19 Jakub Jelinek <jakub@redhat.com>
30770 * varpool.c (varpool_node::get_constructor): Return early
30771 if this->lto_file_data is NULL.
30773 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30775 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
30776 (rank_for_schedule_debug): Update.
30777 (ready_sort): Make static. Move sorting logic to ...
30778 (ready_sort_debug, ready_sort_real): New static functions.
30779 (schedule_block): Sort both debug insns and real insns in preparation
30780 for ready list trimming. Improve debug output.
30781 * sched-int.h (ready_sort): Remove global declaration.
30783 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
30785 * ipa-icf.c (sem_function::equals_private): Adjust.
30786 (sem_function::bb_dict_test): Take a vec<int> * instead of
30788 * ipa-icf.h (bb_dict_test): Likewise.
30790 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30792 PR gcov-profile/64634
30793 * tree-eh.c (frob_into_branch_around): Fix up typos
30794 in function comment.
30795 (lower_catch): Put eh_seq resulting from EH lowering of
30796 the cleanup sequence after the cleanup rather than before it.
30798 2015-02-18 Tom de Vries <tom@codesourcery.com>
30800 * common.opt (fstdarg-opt): New option.
30801 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
30802 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
30803 (@item -fstdarg-opt): New item.
30805 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
30808 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
30809 for common symbols.
30811 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30813 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
30815 (ALL_HOST_OBJS): Add mkoffload.o.
30816 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
30818 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
30820 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
30821 (compare_virtual_tables): Be smarter about skipping typeinfos;
30822 do sane output on virtual table table mismatch.
30823 (warn_odr): Be ready for forward declarations of enums;
30824 output sane info on base mismatch and virtual table mismatch.
30825 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
30826 when only one type is polymorphic.
30827 (get_odr_type): Fix hashtable corruption.
30828 (dump_odr_type): Dump mangled names.
30830 2015-02-18 Richard Biener <rguenther@suse.de>
30832 PR tree-optimization/65063
30833 * tree-predcom.c (determine_unroll_factor): Return 1 if we
30834 have replaced looparound PHIs.
30836 2015-02-18 Martin Liska <mliska@suse.cz>
30838 * lto-streamer.c (lto_streamer_init): Encapsulate
30839 streamer_check_handled_ts_structures with checking macro.
30841 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30844 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
30845 section if !implicit_section.
30846 (cgraph_node::create_version_clone_with_body): Likewise.
30847 * trans-mem.c (ipa_tm_create_version): Likewise.
30849 2015-02-18 Richard Biener <rguenther@suse.de>
30851 PR tree-optimization/62217
30852 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
30855 2015-02-18 Marek Polacek <polacek@redhat.com>
30858 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
30859 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
30860 is in range [-16K, -1]. Don't issue run-time error if
30861 (ptr > ptr + offset).
30863 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
30865 * doc/install.texi (nvptx-*-none): New section.
30866 * doc/invoke.texi (Nvidia PTX Options): Likewise.
30867 * config/nvptx/nvptx.opt: Update.
30869 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
30870 (access_check): New functions, copied from
30871 config/i386/intelmic-mkoffload.c.
30872 (main): For non-installed testing, look in all COMPILER_PATHs for
30875 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
30877 2015-02-18 Andrew Pinski <apinski@cavium.com>
30878 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30880 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
30881 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
30883 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
30885 * ipa-visibility.c (function_and_variable_visibility): Only
30886 check locality if node is not already local.
30887 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30888 call_for_symbol_and_aliases instead of
30889 call_for_symbol_thunks_and_aliases.
30890 (ipa_inline): Likewise.
30891 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30892 first walk aliases.
30893 * ipa.c (symbol_table::remove_unreachable_nodes): Use
30894 call_for_symbol_and_aliases.
30895 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30896 (ipa_propagate_frequency_1): Use it; use opt_for_fn
30897 (ipa_propagate_frequency): Update.
30898 (ipa_profile): Add opt_for_fn gueards.
30900 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
30902 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
30903 * doc/invoke.texi (SH options): Document it.
30904 * config/sh/sh.c (sh_insn_length_adjustment): Check
30905 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
30907 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
30909 * common.opt (fipa-cp-alignment): New.
30910 * ipa-cp.c (ipcp_store_alignment_results): Check
30911 flag_ipa_cp_alignment.
30912 * opts.c (default_options_table): Enable -fipa-cp-alignment for
30914 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
30915 * doc/invoke.texi: Document -fipa-cp-alignment.
30917 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
30920 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
30921 to nil. Adjust comments.
30923 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
30925 * ipa-visibility.c (function_and_variable_visibility): Only
30926 check locality if node is not already local.
30927 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30928 call_for_symbol_and_aliases instead of
30929 call_for_symbol_thunks_and_aliases.
30930 (ipa_inline): Likewise.
30931 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30932 first walk aliases.
30933 * ipa.c (symbol_table::remove_unreachable_nodes): Use
30934 call_for_symbol_and_aliases.
30935 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30936 (ipa_propagate_frequency_1): Use it; use opt_for_fn
30937 (ipa_propagate_frequency): Update.
30938 (ipa_profile): Add opt_for_fn guards.
30940 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
30942 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
30943 skipping of "strange" tokens.
30945 2015-02-17 Jeff Law <law@redhat.com>
30947 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
30950 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
30952 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
30953 as forcing a HARD_DEP between instructions, thereby
30954 disallowing rewriting to break dependencies.
30956 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
30958 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
30959 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
30960 variables in boundary that have no inlitalizer encoded and are
30962 * varasm.c (default_binds_local_p_2): External definitions do not
30963 count as definitions here.
30965 2015-02-16 Jeff Law <law@redhat.com>
30967 PR tree-optimization/64823
30968 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
30970 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
30971 threading through blocks with PHIs, but no statements.
30972 (thread_through_normal_block): Distinguish between blocks where
30973 we did not process all the statements and blocks with no statements.
30975 2015-02-16 Jakub Jelinek <jakub@redhat.com>
30976 James Greenhalgh <james.greenhalgh@arm.com>
30979 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
30980 section if not linkonce. Fix up formatting.
30981 (cgraph_node::create_version_clone_with_body): Copy section.
30982 * trans-mem.c (ipa_tm_create_version): Likewise.
30984 2015-02-16 Richard Biener <rguenther@suse.de>
30986 PR tree-optimization/65077
30987 * tree-ssa-structalias.c (get_constraint_for_1): Handle
30988 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
30989 (find_func_aliases): Allow float values to carry pointers again.
30991 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30993 * doc/install.texi (Specific): Reorder targets list to put
30994 aarch64 in alphabetical order. Add a link to aarch64*-*-*
30997 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30998 David Edelsohn <dje.gcc@gmail.com>
31001 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
31002 mapping class to external variable or function reference.
31003 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
31006 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
31009 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
31010 ASM_WEAKEN_DECL if defined.
31012 2015-02-16 Richard Biener <rguenther@suse.de>
31015 * varasm.c (default_file_start): For LTO produced units
31016 emit <artificial> as file directive.
31018 2015-02-16 Richard Biener <rguenther@suse.de>
31020 PR tree-optimization/63593
31021 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
31022 stmts and releasing SSA names until...
31023 (execute_pred_commoning): ... after processing all chains.
31025 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
31028 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
31029 external functions.
31031 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
31033 * doc/bugreport.texi: Adjust section titles throughout the file
31034 to use "Title Case".
31035 * doc/extend.texi: Likewise.
31036 * doc/gcov.texi: Likewise.
31037 * doc/implement-c.texi: Likewise.
31038 * doc/implement-cxx.texi: Likewise.
31039 * doc/invoke.texi: Likewise.
31040 * doc/objc.texi: Likewise.
31041 * doc/standards.texi: Likewise.
31042 * doc/trouble.texi: Likewise.
31044 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
31046 * cgraph.h (symtab_node::has_aliases_p): Simplify.
31047 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
31048 * tree.c (lookup_binfo_at_offset): Make static.
31049 (get_binfo_at_offset): Do not shadow offset; add explanatory
31052 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
31054 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
31055 for all floading point loads and stores except those using a register
31057 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
31060 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
31062 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
31063 (do_estimate_growth_1): Record if any uninlinable edge was seen.
31064 (estimate_growth): Handle uninlinable edges correctly.
31065 (check_callers): New.
31066 (growth_likely_positive): Handle aliases correctly.
31068 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
31070 * ipa-chkp.c: Use iterate_direct_aliases.
31071 * symtab.c (resolution_used_from_other_file_p): Move inline.
31072 (symtab_node::create_reference): Fix formating.
31073 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31074 (symtab_node::iterate_reference): Move inline.
31075 (symtab_node::iterate_referring): Move inline.
31076 (symtab_node::iterate_direct_aliases): Move inline.
31077 (symtab_node::used_from_object_file_p_worker): Inline into ...
31078 (symtab_node::used_from_object_file_p): ... this one; move inline.
31079 (symtab_node::call_for_symbol_and_aliases): Move inline;
31080 use iterate_direct_aliases.
31081 (symtab_node::call_for_symbol_and_aliases_1): New method.
31082 (cgraph_node::call_for_symbol_and_aliases): Move inline;
31083 use iterate_direct_aliases.
31084 (cgraph_node::call_for_symbol_and_aliases_1): New method.
31085 (varpool_node::call_for_node_and_aliases): Rename to ...
31086 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
31087 use iterate_direct_aliases.
31088 (varpool_node::call_for_symbol_and_aliases_1): New method.
31089 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
31090 (ipa_discover_readonly_nonaddressable_var): Update.
31091 * ipa-devirt.c: Fix formating.
31092 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
31094 (cgraph_node::call_for_symbol_and_aliases): Move inline.
31095 (cgraph_node::call_for_symbol_and_aliases_1): New function..
31096 * cgraph.h (used_from_object_file_p_worker): Remove.
31097 (resolution_used_from_other_file_p): Move inline.
31098 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31099 (symtab_node::iterate_reference): Move inline.
31100 (symtab_node::iterate_referring): Move inline.
31101 (symtab_node::iterate_direct_aliases): Move inline.
31102 (symtab_node::used_from_object_file_p_worker): Inline into ...
31103 (symtab_node::used_from_object_file_p): Move inline.
31104 * tree-emutls.c (ipa_lower_emutls): Update.
31105 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
31106 (varpool_node::call_for_node_and_aliases): Remove.
31108 2015-02-14 Jakub Jelinek <jakub@redhat.com>
31110 PR tree-optimization/62209
31111 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
31112 op == range->exp, insert seq and gimplified code after labels
31113 instead of after the phi.
31115 2015-02-13 Jeff Law <law@redhat.com>
31118 Revert my change for tree-optimization/64823.
31120 2015-02-13 Jakub Jelinek <jakub@redhat.com>
31122 PR tree-optimization/65053
31123 * tree-ssa-phiopt.c (value_replacement): When moving assign before
31124 cond, either reset VR on lhs or set it to phi result VR.
31126 2015-02-13 Jeff Law <law@redhat.com>
31128 PR tree-optimization/64823
31129 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
31130 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31131 threading through blocks with PHIs, but no statements.
31132 (thread_through_normal_block): Distinguish between blocks where
31133 we did not process all the statements and blocks with no statements.
31135 PR rtl-optimization/47477
31136 * match.pd (convert (plus/minus (convert @0) (convert @1): New
31137 simplifier to narrow arithmetic.
31139 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
31142 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
31143 polymorphic call info when type is not known to be preserved.
31145 2015-02-13 Maritn Jambor <mjambor@suse.cz>
31148 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
31149 (inline_call): Use it.
31151 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
31153 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
31154 GOMP_DEVICE_NVIDIA_PTX.
31156 2015-02-13 Jakub Jelinek <jakub@redhat.com>
31159 * stmt.c (emit_case_nodes): Use void_type_node instead of
31160 NULL_TREE as LABEL_DECL type.
31162 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
31164 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
31166 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
31167 symbolic references to data to be forced to constant memory on the
31170 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
31172 PR tree-optimization/65002
31173 * tree-cfg.c (pass_data_fixup_cfg): Don't update
31175 * tree-sra.c (some_callers_have_no_vuse_p): New.
31176 (ipa_early_sra): Reject functions whose callers
31177 assume function is read only.
31179 2015-02-13 Richard Biener <rguenther@suse.de>
31182 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
31183 for LTO produced CUs.
31185 2015-02-13 Bin Cheng <bin.cheng@arm.com>
31187 PR tree-optimization/64705
31188 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
31189 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
31190 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
31191 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
31192 expand_simple_operations.
31194 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
31195 Richard Henderson <rth@redhat.com>
31198 * cgraphunit.c (cgraph_node::finalize_function): Set definition
31199 before notice_global_symbol.
31200 (varpool_node::finalize_decl): Likewise.
31201 * varasm.c (default_binds_local_p_2): Rename from
31202 default_binds_local_p_1, add weak_dominate argument. Use direct
31203 returns instead of assigning to local variable. Unify varpool and
31204 cgraph paths via symtab_node. Reject undef weak variables before
31205 testing visibility. Reorder tests for simplicity.
31206 (default_binds_local_p): Use default_binds_local_p_2.
31207 (default_binds_local_p_1): Likewise.
31208 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
31210 (default_elf_asm_output_external): Emit visibility when specified.
31212 2015-02-13 Alan Modra <amodra@gmail.com>
31214 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
31215 code setting up r11 for out-of-line fp restore.
31217 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
31219 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
31220 (muser-mode): Likewise.
31222 2015-02-13 Alan Modra <amodra@gmail.com>
31224 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
31225 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
31227 2015-02-12 David Howells <dhowells@redhat.com>
31229 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
31231 * tree-ssa-uninit.c (dump_predicates): Likewise.
31232 * opts.c (print_filtered_help): Likewise.
31234 2015-02-12 Jakub Jelinek <jakub@redhat.com>
31236 * dwarf2out.c (output_die): Use "%s", name instead of name to
31237 avoid -Wformat-security warning.
31239 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
31240 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31241 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
31242 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31244 2015-02-12 Jason Merrill <jason@redhat.com>
31246 * common.opt (-flifetime-dse): New.
31248 2015-02-12 Jakub Jelinek <jakub@redhat.com>
31251 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
31253 PR tree-optimization/65014
31254 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
31255 use original second operand of arg0 or arg1 instead of
31256 that adjusted by STRIP_NOPS.
31258 2015-02-11 Jeff Law <law@redhat.com>
31261 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
31262 that needs to be queued, just queue it for a single cycle.
31264 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
31266 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
31267 bodies of thunks; comment on why.
31268 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
31269 symbols are extern.
31271 2015-02-11 Richard Henderson <rth@redhat.com>
31274 * tree-eh.c (mark_reachable_handlers): Mark source and destination
31275 regions of __builtin_eh_copy_values.
31277 2015-02-11 Jakub Jelinek <jakub@redhat.com>
31279 PR middle-end/65003
31280 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
31281 ultimate alias is MEM with SYMBOL_REF satisfying
31282 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
31283 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
31285 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
31287 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
31288 "diagnostic-core.h".
31289 (main): Initialize progname, and call diagnostic_initialize.
31291 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
31292 instead of __OPENMP_TARGET__.
31294 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
31295 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
31296 hard-coding PTX_ID.
31298 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
31300 * doc/sourcebuild.texi (pie_enabled): Document.
31302 2015-02-11 Martin Liska <mliska@suse.cz>
31305 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
31306 a return value for call to a function that is noreturn.
31308 2015-02-11 Richard Biener <rguenther@suse.de>
31311 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
31314 2015-02-11 Andrew Pinski <apinski@cavium.com>
31317 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
31318 Change the first argument type to size_type_node and add another
31320 (aarch64_simd_expand_builtin): Handle the new argument to
31321 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
31322 print an out when the first two arguments are not
31323 nonzero integer constants.
31324 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
31325 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
31327 2015-02-11 Jakub Jelinek <jakub@redhat.com>
31330 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
31331 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
31332 (ix86_set_current_function): Rewritten.
31333 (ix86_add_new_builtins): Temporarily clear current_target_pragma
31334 when creating builtin fndecls.
31336 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31339 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
31341 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
31342 have no comdat group.
31343 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
31344 (lto_output_varpool_node): Always output alias info.
31345 (output_refs): Output refs of boundary aliases, too.
31346 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
31347 (output_symtab): Output call eges in thunks in boundary.
31348 (get_alias_symbol): Remove.
31349 (input_node, input_varpool_node): Do not special case weakrefs.
31350 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
31351 alias and thunks targets in the boundary; do not take removed symbols
31352 from their comdat groups.
31353 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
31354 (cgraph_node::global_info): Remove.
31355 (cgraph_node::rtl_info): Look through aliases and thunks.
31356 * cgrpah.h (global_info): Remove.
31357 (non_local_p): Remove.
31359 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31360 Sandra Loosemore <sandra@codesourcery.com>
31362 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
31363 to inline asm. List dialects in proper order.
31365 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31366 Sandra Loosemore <sandra@codesourcery.com>
31368 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
31370 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31372 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
31373 modified) reference to Solaris.
31375 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
31377 * doc/extend.texi (Extended Asm): Fix typos.
31379 2015-02-10 Jakub Jelinek <jakub@redhat.com>
31382 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
31384 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
31387 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
31388 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
31389 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
31390 * config/sh/constraints.md (Ara, Add): New constraints.
31391 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
31393 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
31394 atomic_mem_operand_0. Don't use force_reg on the memory address.
31395 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
31396 Sra constraint. Convert to insn_and_split. Add workaround for
31398 (atomic_compare_and_swap<mode>_hard): Copy to
31399 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
31400 Use atomic_mem_operand_0 predicate.
31401 (atomic_compare_and_swap<mode>_soft_gusa,
31402 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
31403 AraAdd constraints.
31404 (atomic_compare_and_swap<mode>_soft_tcb,
31405 atomic_compare_and_swap<mode>_soft_imask,
31406 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
31407 atomic_mem_operand_0 predicate and SraSdd constraints.
31408 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
31410 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
31411 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
31412 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
31413 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
31414 force_reg on the memory address.
31415 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
31416 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
31417 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
31418 atomic_mem_operand_1 predicate and Sra constraint.
31419 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
31420 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
31421 Use atomic_mem_operand_1 predicate.
31422 (atomic_<fetchop_name><mode>_hard): Copy to
31423 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
31424 Use atomic_mem_operand_1 predicate.
31425 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
31426 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
31427 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
31428 insn_and_split. Use atomic_mem_operand_1 predicate.
31429 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
31430 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
31431 Use atomic_mem_operand_1 predicate.
31432 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
31433 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
31434 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
31435 in generated insn with original mem operand before emitting the insn.
31436 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
31437 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
31438 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
31439 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
31440 Use atomic_mem_operand_1 predicate and AraAdd constraints.
31441 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
31442 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
31443 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
31444 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
31445 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
31446 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
31447 atomic_not_fetch<mode>_soft_tcb,
31448 atomic_<fetchop_name>_fetch<mode>_soft_imask,
31449 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
31450 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
31451 Use atomic_mem_operand_1 predicate and SraSdd constraints.
31453 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
31455 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
31456 and 3 earlyclobber operands.
31458 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31460 * common.opt (fstack-reuse): Mark as optimization.
31462 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31465 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
31467 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
31469 PR tree-optimization/64326
31470 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
31472 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
31474 PR gcov-profile/61889
31475 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
31477 2015-02-10 Richard Biener <rguenther@suse.de>
31479 PR tree-optimization/64995
31480 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
31481 value we use is final.
31482 (visit_reference_op_store): Always valueize op.
31483 (visit_use): Properly valueize vuses.
31485 2015-02-10 Richard Biener <rguenther@suse.de>
31487 PR tree-optimization/64909
31488 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
31489 pass a scalar-stmt count estimate to the cost model.
31490 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
31492 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
31494 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
31495 enabled by default together with var-tracking.
31497 2015-02-10 Nick Clifton <nickc@redhat.com>
31499 * config/rl78/rl78.c: Remove DIV attribute code accidentally
31500 included in previous rl78 commit.
31502 2015-02-10 Richard Biener <rguenther@suse.de>
31504 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
31505 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
31506 return the bitpack.
31508 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
31510 PR gcov-profile/61889
31511 * config.in: regenerate.
31512 * configure.in: Likewise.
31513 * configure.ac: Check for ftw.h.
31514 * gcov-tool.c: Check for ftw.h before using nftw.
31516 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
31519 * ipa-visibility.c (update_visibility_by_resolution_info): Only
31520 assert when not in lto mode.
31522 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31524 * ira-color.c (setup_left_conflict_sizes_p): Simplify
31525 initialization/assignment of conflict_size.
31527 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
31530 * ipa-cp.c (gather_caller_stats): Skip thunks.
31531 (propagate_constants_topo): Skip aliases.
31533 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
31536 * config/sh/sh.c (sh_option_override): Don't change
31537 -freorder-blocks-and-partition to -freorder-blocks even when
31538 unwinding is enabled.
31539 (sh_can_follow_jump): Return false if the followee jump is
31540 a crossing jump when -freorder-blocks-and-partition is specified.
31541 * config/sh/sh.md (*jump_compact_crossing): New insn.
31543 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
31544 Kaz Kojima <kkojima@gcc.gnu.org>
31547 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
31548 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
31549 (sh_can_redirect_branch): Rename to ...
31550 (sh_can_follow_jump): ... this. Constify argument types.
31551 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
31552 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
31553 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
31554 * doc/tm.texi: Regenerate.
31556 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31559 * builtins.c (expand_builtin): Call targetm.expand_builtin
31560 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
31562 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31565 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
31567 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31570 * ipa-icf.c (set_local): New function.
31571 (sem_function::merge): Use it.
31573 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31575 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
31576 (add_type_duplicate): Fix comparison of BINFOs.
31578 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31580 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
31581 on getting VOID pointer.
31583 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31586 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
31589 2015-02-09 Richard Biener <rguenther@suse.de>
31591 * genmatch.c (replace_id): Copy expr_type.
31593 2015-02-09 Richard Biener <rguenther@suse.de>
31595 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
31596 (streamer_write_tree_bitfields): Declare.
31597 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
31598 properly unpack padding.
31599 (unpack_value_fields): Inline ...
31600 (streamer_read_tree_bitfields): ... here.
31601 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
31602 and properly add padding bits.
31603 (streamer_pack_tree_bitfields): Fold into ...
31604 (streamer_write_tree_bitfields): ... this new function,
31605 exposing the bitpack object.
31606 * lto-streamer-out.c (lto_write_tree_1): Call
31607 streamer_write_tree_bitfields.
31609 2015-02-09 Richard Biener <rguenther@suse.de>
31611 PR tree-optimization/54000
31612 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
31613 (struct ivopts_data): Add loop_loc member.
31614 (tree_ssa_iv_optimize_loop): Dump loop location.
31615 (create_new_ivs): Likewise, also dump number of IVs generated.
31617 2015-02-09 Martin Liska <mliska@suse.cz>
31619 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
31620 just if not yet registered.
31621 (ipa_icf_generate_summary): Register callgraph hooks.
31623 2015-02-08 Andrew Pinski <apinski@cavium.com>
31625 * config/aarch64/aarch64.c (gty_dummy): Delete.
31627 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31630 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
31631 (cgraph_node::local_p): Remove thunk related FIXME.
31633 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31636 * i386.c (ix86_function_regparm): Look through aliases to see if callee
31637 is local and optimized.
31638 (ix86_function_sseregparm): Likewise; also use target's SSE math
31639 settings; error out instead of silently generating wrong code
31641 (init_cumulative_args): Look through aliases.
31643 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31646 * ipa-split.c (execute_split_functions): Split if function has aliases.
31648 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31651 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
31652 aliases before trying to expand it.
31653 (cgraph_node::expand_thunk): Fix formating.
31655 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
31657 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
31658 (Using Assembly Language with C): Expand introduction.
31659 (Basic Asm): Copy-edit. Add more information about uses of
31661 (Extended Asm): Copy-edit. Document new escape syntax and
31663 (Global Reg Vars): Copy-edit.
31664 (Local Reg Vars): Likewise.
31666 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
31670 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
31671 (DBX_CONTIN_CHAR): Define.
31673 2015-02-06 Sebastian Pop <s.pop@samsung.com>
31674 Brian Rzycki <b.rzycki@samsung.com>
31676 PR tree-optimization/64878
31677 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
31678 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
31679 Stop recursion at loop phi nodes after having visited a loop phi node.
31681 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31683 * toplev.c (process_options): Change flag_ipa_ra before creating
31684 optimization_{default,current}_node.
31687 * cgraphunit.c (cgraph_node::expand_thunk): If
31688 restype is not is_gimple_reg_type nor the thunk_fndecl
31689 returns aggregate_value_p, set restmp to a temporary variable
31690 instead of resdecl.
31692 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
31694 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
31696 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
31699 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
31700 add a general secondary reload handler for SDmode, unless we have
31701 both read/write support for SDmode.
31703 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31705 PR middle-end/64937
31706 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
31707 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
31708 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
31709 1 before, push it to abstract_vec.
31710 (dwarf2out_abstract_function): Adjust caller. Don't call
31711 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
31712 DECL_ABSTRACT_P flags for all abstract_vec elts.
31714 2015-02-06 Renlin Li <renlin.li@arm.com>
31716 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
31718 * tree-ssa.c (execute_update_addresses_taken): Likewise.
31720 2015-02-06 Jeff Law <law@redhat.com>
31723 * config/h8300/h8300.c (push): New argument "in_prologue".
31724 Pass "in_prologue" along to "F".
31725 (h8300_push_pop): Corresponding changes.
31726 (h8300_expand_prologue): Likewise.
31727 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
31729 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31731 PR rtl-optimization/64957
31733 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
31734 IOR rather than for AND.
31736 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
31739 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
31740 of shift-add and (add + shift) operations. Rename local variable.
31742 2015-02-05 Jeff Law <law@redhat.com>
31745 * config/h8300/constraints.md (U): Correctly dectect
31746 "eightbit_data" memory addresses.
31747 * config/h8300/h8300.c (eightbit_constant_address_p): Also
31748 handle (const (plus (symbol_ref (x)))) where x is declared
31749 as an 8-bit data memory address.
31750 * config/h8300/h8300.md (call, call_value): Correctly detect
31751 "funcvec" functions.
31754 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
31755 24 to 28 bits for the H8/300.
31757 2015-02-06 Alan Modra <amodra@gmail.com>
31760 * config/rs6000/rs6000.c (chain_already_loaded): New function.
31761 (rs6000_call_aix): Use it.
31763 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
31765 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
31768 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
31770 * config/h8300/constraints.md ("U" constraint): Use strict
31771 variant of REG_OK_FOR_BASE_P after reload has started.
31773 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
31775 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
31776 define to zero if !TARGET_NEON.
31777 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
31779 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31780 Trevor Saunders <tsaunders@mozilla.com>
31783 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
31785 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31788 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
31789 when removing varpool nodes.
31791 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31794 * varpool.c (varpool_node::remove): Fix order of variables.
31796 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31799 * ipa-inline.c (inline_small_functions): Fix ordering issue between
31800 speculation resolution and key updates.
31802 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31804 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
31805 about not letting any speculative edges unupdated.
31807 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31810 * gcov-io.c (gcov_var): Export.
31812 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31814 PR middle-end/64922
31815 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
31816 edges that become speculative.
31818 2015-02-04 Jakub Jelinek <jakub@redhat.com>
31820 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
31821 or DW_LANG_Fortran08.
31822 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
31824 (gen_compile_unit_die): Handle "GNU Fortran2003" and
31825 "GNU Fortran2008" language strings.
31826 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
31827 * langhooks.h (lang_GNU_Fortran): New prototype.
31828 * langhooks.c (lang_GNU_Fortran): New function.
31829 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
31832 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
31834 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
31835 (RTX_OK_FOR_OLO10_P): Likewise.
31837 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
31839 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
31841 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31843 PR middle-end/64922
31844 * gimple.c: Include gimple-ssa.h.
31845 (maybe_remove_unused_call_args): New function.
31846 * gimple.h (maybe_remove_unused_call_args): Declare.
31847 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
31848 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
31849 * gimple-fold.c (gimple_fold_call): Likewise.
31851 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
31853 PR rtl-optimization/64905
31854 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
31855 pointer alignment if it isn't needed.
31857 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
31859 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
31860 cortex-a72.cortex-a53.
31861 * config/aarch64/aarch64-tune.md: Regenerate.
31862 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
31864 2015-02-04 Nick Clifton <nickc@redhat.com>
31866 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
31869 2015-02-04 Jakub Jelinek <jakub@redhat.com>
31871 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
31872 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
31873 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
31875 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
31876 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
31877 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
31878 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
31879 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
31880 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
31881 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
31882 * tree-core.h (enum built_in_function): In between
31883 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
31884 for builtins that use DEF_BUILTIN_CHKP macro.
31886 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
31889 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
31890 operands for tcc_comparison exprs. Fix typos.
31893 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
31894 of two XORs that have an intervening AND or IOR.
31897 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
31898 simplification of XOR of AND to not allocate new rtx before
31899 committing to a simplification.
31901 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31903 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
31904 manual swaps in all peepholes.
31906 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31908 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
31909 of manual swapping implementation.
31910 (aarch64_expand_vec_perm_const_1): Likewise.
31912 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
31914 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
31915 (generic_addrcost_table): Remove NAMED_PARAM.
31916 (cortexa57_addrcost_table): Likewise.
31917 (xgene1_addrcost_table): Likewise.
31918 (generic_regmove_table): Likewise.
31919 (cortexa53_regmove_table): Likewise.
31920 (xgene1_regmove_table): Likewise.
31921 (generic_vector_table): Likewise.
31922 (cortexa57_vector_table): Likewise.
31923 (xgene1_vector_table): Likewise.
31924 (generic_tunings): Likewise.
31925 (cortexa53_tunings): Likewise.
31926 (cortexa57_tunings): Likewise.
31927 (xgene1_tunings): Likewise.
31929 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
31931 * config/arm/arm-cores.def: Add cortex-a72 and
31932 cortex-a72.cortex-a53.
31933 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
31934 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
31935 * config/arm/arm-tune.md: Regenerate.
31936 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
31937 "cortex-a72.cortex-a53".
31938 * doc/invoke.texi (ARM Options/-mtune): Likewise.
31940 2015-02-04 Nick Clifton <nickc@redhat.com>
31943 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
31945 (nonimmediate_di_operand): Likewise.
31947 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
31948 prefixes of known F5 using MSP430 MCUs.
31950 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31952 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
31953 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
31954 instead of __builtin_sqrt.
31956 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
31958 * varasm.c (do_assemble_alias): Follow transparent alias
31960 (default_assemble_visibility): Follow transparent alias
31961 chain for decl name.
31963 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
31965 PR middle-end/62103
31966 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
31967 to compute size of referenced value in the constant case.
31969 2015-02-03 Jakub Jelinek <jakub@redhat.com>
31971 PR rtl-optimization/64756
31972 * cse.c (invalidate_dest): New function.
31973 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
31974 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
31975 invalidate and do not record it.
31977 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
31980 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
31981 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
31982 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
31983 atomic_nand<mode>_soft_tcb): New insns.
31984 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
31985 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
31986 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
31987 Split into atomic_not_fetchsi_hard if operands[0] is unused.
31988 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
31989 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
31990 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
31991 atomic_not<mode>_hard if operands[0] is unused.
31992 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
31993 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
31994 if operands[0] is unused.
31995 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
31996 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
31997 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
31998 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32000 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
32001 into atomic_not<mode>_soft_tcb if operands[0] is unused.
32002 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
32003 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
32004 if operands[0] is unused.
32005 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
32006 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
32007 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
32008 atomic_nand_fetchsi_hard if operands[0] is unused.
32009 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
32010 atomic_nand<mode>_hard if operands[0] is unused.
32011 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
32012 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
32013 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
32014 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32015 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
32016 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
32017 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
32018 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32019 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
32020 atomic_not<mode>_hard if operands[0] is unused.
32021 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
32022 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32024 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
32025 into atomic_not<mode>_soft_tcb if operands[0] is unused.
32026 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
32027 atomic_nand<mode>_hard if operands[0] is unused.
32028 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
32029 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32031 2015-02-03 David Malcolm <dmalcolm@redhat.com>
32034 * Makefile.in (GCC_OBJS): Add gcc-main.o.
32035 * gcc-main.c: New file, containing "main" taken from gcc.c.
32036 * gcc.c (do_self_spec): Free decoded_options.
32037 (class driver): Move declaration to gcc.h.
32038 (main): Move declaration and implementation to new file
32040 (driver_get_configure_time_options): New function.
32041 * gcc.h (class driver): Move this declaration here, from
32043 (driver_get_configure_time_options): New declaration.
32045 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
32047 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
32048 cross-module inlining.
32049 * cgraph.h (cgraph_node): Add flag merged.
32050 * ipa-icf.c (sem_function::merge): Maintain it.
32052 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
32054 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
32055 instead of OBJECT_P.
32057 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
32060 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
32061 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
32062 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
32063 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
32065 2015-02-03 Jakub Jelinek <jakub@redhat.com>
32068 * combine.c (reg_n_sets_max): New variable.
32069 (can_change_dest_mode, reg_nonzero_bits_for_combine,
32070 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
32071 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
32072 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
32073 (rest_of_handle_combine): Initialize reg_n_sets_max.
32075 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
32077 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
32078 if some always_inline was inlined, apply changes before inlining
32081 2015-02-02 David Malcolm <dmalcolm@redhat.com>
32084 * config/arm/arm.c (arm_option_override): Set
32085 arm_selected_arch/cpu/tune to NULL on entry.
32087 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
32088 Andrew Pinski <pinskia@gcc.gnu.org>
32089 Jakub Jelinek <jakub@gcc.gnu.org>
32092 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
32093 integer typing for small model. Use IN_RANGE.
32095 2015-02-02 Richard Biener <rguenther@suse.de>
32097 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
32098 * tree-vrp.c (vrp_valueize_1): Likewise.
32100 2015-02-02 Alan Modra <amodra@gmail.com>
32102 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
32103 than mem for toc_restore.
32104 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
32105 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
32106 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
32108 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
32111 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
32112 explicit default options.
32114 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
32117 * ipa-utils.c (ipa_merge_profiles): Add release argument.
32118 * ipa-icf.c (sem_function::merge): Do not release body when merging.
32119 * ipa-utils.h (ipa_merge_profiles): Update prototype.
32121 2015-02-01 Jakub Jelinek <jakub@redhat.com>
32124 * cfgexpand.c (deep_ter_debug_map): New variable.
32125 (avoid_deep_ter_for_debug): New function.
32126 (expand_debug_expr): If TERed SSA_NAME is in
32127 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
32128 instead of trying to expand SSA_NAME's def stmt.
32129 (expand_debug_locations): When expanding debug bind
32130 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
32131 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
32133 (pass_expand::execute): Call avoid_deep_ter_for_debug on
32134 all debug bind stmts. Delete deep_ter_debug_map after
32135 expand_debug_location if non-NULL and clear it.
32137 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
32140 * config/sh/sync.md (atomic_fetch_notsi_hard,
32141 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
32142 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
32143 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
32144 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
32145 atomic_not_fetch<mode>_soft_imask): New insns.
32147 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32149 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
32150 (rank_for_schedule_debug): Split from ...
32151 (rank_for_schedule): ... this.
32152 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
32153 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
32155 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
32157 * doc/md.texi (Machine Constraints): Alphabetize table by target.
32158 * doc/extend.texi (x86 Variable Attributes): Move section to
32159 correct alphabetization after renaming.
32160 (x86 Type Attributes): Likewise.
32161 (Target Builtins): Re-alphabetize menu.
32162 (x86 Built-in Functions): Move section to correct alphabetization
32164 (x86 transactional memory intrinsics): Likewise.
32165 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
32166 and x86 Windows Options in table and menu.
32167 (x86 Options): Move section to correct alphabetization after
32169 (x86 Windows Options): Likewise.
32171 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
32173 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
32174 preferred names of the architecture and its 32- and 64-bit
32176 * doc/invoke.texi: Likewise.
32177 * doc/md.texi: Likewise.
32179 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
32182 * config/i386/predicates.md (address_no_seg_operand): Reject
32183 non-CONST_INT_P operands in invalid mode.
32185 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
32187 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
32188 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
32189 * config/i386/predicates.md (address_no_seg_operand): Call
32190 address_operand with VOIDmode.
32191 (vsib_address_operand): Ditto.
32192 (address_mpx_no_base_operand): Ditto.
32193 (address_mpx_no_index_operand): Ditto.
32195 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
32198 * lra-constraints.c (original_subreg_reg_mode): New.
32199 (simplify_operand_subreg): Try to simplify subreg of const. Use
32200 original_subreg_reg_mode for it.
32201 (swap_operands): Update original_subreg_reg_mode.
32202 (curr_insn_transform): Set up original_subreg_reg_mode.
32204 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
32207 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
32209 (process_alt_operands): Use it.
32210 (curr_insn_transform): Check the optional reload pseudo class is
32213 2015-01-30 Joseph Myers <joseph@codesourcery.com>
32215 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
32216 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
32218 * toplev.h (init_asm_output): Update comment on use of
32219 UNKNOWN_LOCATION with fatal_error.
32220 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
32221 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
32222 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
32223 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
32224 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
32225 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
32226 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
32227 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
32228 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
32229 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
32230 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
32231 fatal_error changed to pass input_location as first argument.
32233 2015-01-30 Martin Liska <mliska@suse.cz>
32235 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
32236 in #pragma GCC diagnostic guards.
32238 2015-01-30 Richard Biener <rguenther@suse.de>
32240 PR tree-optimization/64829
32241 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
32242 not add a widening conversion pattern but hand off extra
32243 widenings to callers.
32244 (vect_recog_widen_mult_pattern): Handle extra widening produced
32245 by vect_handle_widen_op_by_const.
32246 (vect_recog_widen_shift_pattern): Likewise.
32247 (vect_pattern_recog_1): Remove excess vertical space in dumping.
32248 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
32249 (vect_init_vector_1): Likewise.
32250 (vect_get_vec_def_for_operand): Likewise.
32251 (vect_finish_stmt_generation): Likewise.
32252 (vectorizable_load): Likewise.
32253 (vect_analyze_stmt): Likewise.
32254 (vect_is_simple_use): Likewise.
32256 2015-01-29 Jeff Law <law@redhat.com>
32258 * combine.c (try_combine): Fix typo in comment.
32260 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
32263 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
32264 (rs6000_stack_info): Add assert.
32265 (rs6000_output_savres_externs): New function, split off from...
32266 (rs6000_output_function_prologue): ... here. Do not call it for
32269 2015-01-29 Jeff Law <law@redhat.com>
32272 * combine.c (try_combine): If I0 is a memory load and I3 a store
32273 to a related address, increase the "goodness" of doing a 4-insn
32274 combination with I0-I3.
32275 (make_field_assignment): Handle SUBREGs in the ior+and case.
32277 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
32279 PR tree-optimization/64746
32280 * tree-if-conv.c (mask_exists): New function.
32281 (predicate_mem_writes): Save created mask with given size for further
32283 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
32284 (ifcvt_repair_bool_pattern): Collect all statements that are root
32285 of bool pattern and use iterative algorithm to remove multiple uses
32286 of predicates, display number of required iterations.
32288 2015-01-29 Richard Biener <rguenther@suse.de>
32290 PR tree-optimization/64853
32291 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
32292 stmt will get simulated again.
32293 * tree-ssa-ccp.c (valueize_op_1): Likewise.
32295 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32297 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
32298 return_in_pc. Remove redundant assignments.
32299 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
32300 (arm_expand_epilogue): Don't compare boolean with true in if condition.
32302 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
32304 * config/i386/i386.c (ix86_mode_after): Make static.
32306 2015-01-29 Richard Biener <rguenther@suse.de>
32308 PR tree-optimization/64844
32309 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
32310 dump cost model analysis.
32311 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32312 Do not register adjusted load/store costs here.
32314 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
32315 Uros Bizjak <ubizjak@gmail.com>
32317 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
32318 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
32319 using x86_use_pseudo_pic_reg.
32320 * config/i386/i386.c (ix86_conditional_register_usage): Remove
32321 support for fixed PIC register.
32322 (ix86_use_pseudo_pic_reg): Not static any more.
32324 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
32326 PR middle-end/64805
32327 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
32328 to avoid error in cgraph node verification.
32330 2015-01-29 Marek Polacek <polacek@redhat.com>
32332 * doc/standards.texi: Reflect that the default for C is gnu11.
32334 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
32337 * reorg.c (switch_text_sections_between_p): New function.
32338 (relax_delay_slots): Call it when testing if the jump insn
32339 is removable. Use targetm.can_follow_jump when testing if
32340 the conditional branch can follow an unconditional jump.
32342 2015-01-27 Caroline Tice <cmtice@google.com>
32344 Committing VTV Cywin/Ming patch for Patrick Wollgast
32345 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
32346 if -fvtable-verify=preinit/std is used.
32347 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
32348 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
32349 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
32350 if -fvtable-verify=preinit/std is used.
32351 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
32352 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
32353 if -fvtable-verify=preinit/std is used.
32354 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
32355 * config/i386/mingw32.h (LIB_SPEC): Likewise.
32356 * varasm.c (assemble_variable): Add code to properly set the comdat
32357 section and name for the .vtable_map_vars section in case the
32358 target is PE or COFF.
32360 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
32363 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
32364 make sane BB profile.
32365 (cgraph_node::expand_thunk): Make sane BB profile.
32366 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
32367 * cgraph.h (init_lowered_empty_function): Update prototype.
32368 * config/i386/i386.c (make_resolver_func): Update call.
32369 * predict.c (gate): Disable branch prediction pass if
32370 profile is already there.
32372 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
32374 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
32375 * opth-gen.awk: Likewise.
32376 * common.opt: Mark flag_fp_contract_mode as Optimization.
32378 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
32380 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
32381 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
32383 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
32386 * config/sh/predicates.md (atomic_arith_operand,
32387 atomic_logical_operand): Remove.
32388 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
32389 (atomic_arith_operand_0): New predicate.
32390 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
32391 Use atomic_arith_operand_0 for input values.
32392 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
32393 atomic_compare_and_swap<mode>_soft_gusa,
32394 atomic_compare_and_swap<mode>_soft_tcb,
32395 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
32396 arith_reg_operand instead of register_operand.
32397 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
32398 atomic_arith_operand_0 for newval input.
32399 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
32400 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
32401 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
32402 arith_reg_operand instead of register_operand.
32403 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
32404 fetchop_predicate_1, fetchop_constraint_1_llcs,
32405 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
32406 fetchop_constraint_1_imask): New code iterator attributes.
32407 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
32408 register_operand. Use fetchop_predicate_1.
32409 (atomic_fetch_<fetchop_name>si_hard,
32410 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
32411 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
32412 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
32413 and arith_reg_operand instead of register_operand. Use
32414 fetchop_predicate_1, fetchop_constraint_1_gusa.
32415 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
32416 and arith_reg_operand instead of register_operand. Use
32417 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
32419 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
32420 and arith_reg_operand instead of register_operand. Use
32421 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
32423 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
32424 register_operand. Use atomic_logical_operand_1.
32425 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
32426 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
32427 arith_reg_operand instead of register_operand.
32428 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
32429 Use arith_reg_dest and arith_reg_operand instead of register_operand.
32430 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
32431 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
32432 register_operand. Use fetchop_predicate_1.
32433 (atomic_<fetchop_name>_fetchsi_hard,
32434 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
32435 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32436 fetchop_constraint_1_llcs.
32437 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
32438 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32439 fetchop_constraint_1_gusa.
32440 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
32441 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32442 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
32443 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
32444 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32445 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
32446 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
32447 register_operand. Use atomic_logical_operand_1.
32448 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
32449 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
32450 arith_reg_operand instead of register_operand.
32451 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
32452 arith_reg_operand instead of register_operand. Use logical_operand
32453 and K08. Adjust asm sequence to allow R0 usage.
32454 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
32455 arith_reg_operand instead of register_operand. Use logical_operand
32458 2015-01-28 Jakub Jelinek <jakub@redhat.com>
32461 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
32462 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
32463 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
32464 only get_full_len HOST_WIDE_INTs from get_val () array rather than
32465 all bits in *val_wide.
32467 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
32469 * varpool.c (tls_model_names): Fix names.
32470 (varpool_node::dump): Dump tls- prefix for tls models.
32472 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
32473 Bernd Schmidt <bernds@codesourcery.com>
32474 Nathan Sidwell <nathan@codesourcery.com>
32476 * config/nvptx/mkoffload.c: New file.
32477 * config/nvptx/t-nvptx: Add build rules for it.
32478 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
32479 (extra_programs): Add mkoffload.
32480 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
32482 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
32484 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
32486 PR middle-end/64809
32487 * cfgexpand.c (reorder_operands): Skip debug gimples.
32489 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
32491 PR tree-optimization/64277
32492 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
32493 range info when possible to refine estimation.
32495 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32497 PR tree-optimization/64718
32498 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
32499 be a 16bit unsigned integer when n->range is 16.
32500 (bswap_replace): Convert src to that type if necessary for all bswap
32501 sizes. Fix rotation right notation in nearby comment. Use bswap_type
32502 set in pass_optimize_bswap::execute ().
32504 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
32506 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
32507 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
32508 integer and floating point variants.
32509 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
32511 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
32513 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
32514 for all vector modes.
32516 2015-01-28 Jakub Jelinek <jakub@redhat.com>
32519 * doc/sourcebuild.texi (comdat_group): Document.
32521 2015-01-28 Terry Guo <terry.guo@arm.com>
32523 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
32525 2015-01-27 David Malcolm <dmalcolm@redhat.com>
32527 * toplev.c (print_version): Add param "show_global_state", and
32528 only print GGC and plugin information if it is true.
32529 (init_asm_output): Pass in "true" for the new param when calling
32531 (process_options): Likewise.
32532 (toplev::main): Likewise.
32533 * toplev.h (print_version): Add new param to decl.
32535 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32539 * tree.c (lookup_binfo_at_offset): New function.
32540 (get_binfo_at_offset): Use it.
32542 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32545 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
32546 on vtable being vtable.
32548 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
32550 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
32551 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
32552 -mhotpatch= option.
32553 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
32554 -mno-hotpatch options. Change syntax of -mhotpatch= option.
32555 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
32557 (s390_hotpatch_trampoline_halfwords_max): Renamed.
32558 (s390_hotpatch_hw_max): New name.
32559 (s390_hotpatch_trampoline_halfwords): Renamed.
32560 (s390_hotpatch_hw_before_label): New name.
32561 (get_hotpatch_attribute): Removed.
32562 (s390_hotpatch_hw_after_label): New name.
32563 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
32565 (s390_attribute_table): Ditto.
32566 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
32567 (s390_function_num_hotpatch_hw): New name.
32568 Remove special handling of inline functions and hotpatching.
32569 Return number of nops before and after the function label.
32570 (s390_can_inline_p): Removed.
32571 (s390_asm_output_function_label): Emit a configurable number of nops
32572 after the function label.
32573 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
32574 (TARGET_CAN_INLINE_P) Removed.
32575 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
32577 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32578 Jiong Wang <jiong.wang@arm.com>
32580 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
32582 (cb<optab><mode>1): Likewise.
32583 * config/aarch64/iterators.md (bcond): New define_code_attr.
32585 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32587 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
32590 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32592 * config/s390/s390.c (s390_register_move_cost): Increase costs for
32595 2015-01-27 Richard Biener <rguenther@suse.de>
32597 * tree-vrp.c (update_value_range): Intersect the range with
32598 old recorded SSA name range information.
32600 2015-01-27 Nick Clifton <nickc@redhat.com>
32602 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
32603 BC, DE and HL registers directly, not via AX.
32604 When decrementing the stack pointer by a large amount, transfer SP
32605 into AX and perform the subtraction there.
32606 (rl78_expand_epilogue): Perform the inverse of the above
32609 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32611 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
32613 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32614 Yury Gribov <y.gribov@samsung.com>
32617 * ubsan.c (ubsan_source_location): Refactor code.
32618 (ubsan_type_descriptor): Update type size. Refactor code.
32620 2015-01-27 Richard Biener <rguenther@suse.de>
32622 PR tree-optimization/56273
32623 PR tree-optimization/59124
32624 PR tree-optimization/64277
32625 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
32626 from the first VRP pass.
32628 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32631 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
32632 handle the first argument in the same loop as all the other arguments.
32634 PR rtl-optimization/61058
32635 * jump.c (cleanup_barriers): Update basic block boundaries
32636 if BLOCK_FOR_INSN is non-NULL on PREV.
32638 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
32640 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
32641 bounds narrowing, already instrumented calls and calls to
32642 not instrumentable functions.
32644 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32646 PR tree-optimization/64807
32647 * wide-int.cc (wi::divmod_internal): Clear
32648 b_dividend[dividend_blocks_needed].
32650 2015-01-26 DJ Delorie <dj@redhat.com>
32652 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
32653 volatile memory references.
32655 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
32658 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
32660 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
32661 shifts if it already fits into K08.
32663 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32666 * ipa-inline.c (inline_small_functions): Print "unknown" even
32667 if edge->call_stmt is non-NULL, but has builtins or unknown
32670 PR middle-end/64421
32671 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
32672 with asterisk, skip the first character.
32674 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32677 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
32680 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
32683 * config/i386/i386.md (*movdi_internal): Also check operand 0
32684 to determine TYPE_LEA operand.
32685 (*movsi_internal): Ditto.
32687 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32689 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
32690 OPTION_MASK_QUAD_MEMORY_ATOMIC.
32692 2015-01-26 Renlin Li <renlin.li@arm.com>
32694 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
32696 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
32699 2015-01-26 Richard Biener <rguenther@suse.de>
32701 PR middle-end/64764
32702 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
32703 combining two BIT_AND_EXPR predicates.
32705 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32708 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
32710 2015-01-26 Terry Guo <terry.guo@arm.com>
32712 * config/arm/arm.c (arm_file_start): Update the assignment of
32713 Tag_ABI_HardFP_use.
32715 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
32717 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
32719 config/arm/arm.md: Include the new Cortex-A57 model.
32720 (generic_sched): Don't use generic_sched when tuning for
32723 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
32724 Uros Bizjak <ubizjak@gmail.com>
32726 * config/i386/i386.c (get_builtin_code_for_version): Add
32727 support for BMI and BMI2 multiversion functions.
32729 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32731 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
32732 (extract_bit_field): Likewise.
32733 (extract_low_bits): Likewise.
32734 (expand_mult): Likewise.
32735 (expand_mult_highpart_adjust): Likewise.
32737 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
32739 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
32740 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
32741 * config/i386/i386.c (processor_model): Add
32742 M_INTEL_COREI7_BROADWELL.
32743 (arch_names_table): Add "broadwell".
32745 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
32754 * config/sh/sh-protos.h
32755 (sh_extending_set_of_reg::can_use_as_unextended_reg,
32756 sh_extending_set_of_reg::use_as_unextended_reg,
32757 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
32758 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
32759 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
32760 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
32761 (sh_treg_insns): New class.
32762 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
32763 (scope_counter): New class.
32764 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
32765 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
32766 sh_extending_set_of_reg::can_use_as_unextended_reg,
32767 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
32768 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
32769 sh_split_treg_set_expr): New functions.
32770 (addsubcosts): Handle treg_set_expr.
32771 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
32772 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
32773 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
32774 (sh_insn_operands_modified_between_p): Make non-static.
32775 * config/sh/predicates.md (zero_extend_movu_operand): Allow
32776 simple_mem_operand in addition to displacement_mem_operand.
32777 (zero_extend_operand): Don't allow zero_extend_movu_operand.
32778 (treg_set_expr, treg_set_expr_not_const01,
32779 arith_reg_or_treg_set_expr): New predicates.
32780 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
32781 arith_or_int_operand instead of logical_operand. Convert to
32782 insn_and_split. Try to optimize constant operand in splitter.
32783 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
32784 (*tstqi_t_zero): Delete.
32785 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
32786 (tstsi_t_and_not): Delete.
32787 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
32788 Convert to insn_and_split.
32789 (unnamed split, tstsi_t_zero_extract_xor,
32790 tstsi_t_zero_extract_subreg_xor_little,
32791 tstsi_t_zero_extract_subreg_xor_big): Delete.
32792 (*tstsi_t_shift_mask): New insn_and_split.
32793 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
32794 to recombine with surrounding insns when splitting.
32795 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
32796 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
32797 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
32798 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
32799 (*cbranch_div0s: Delete.
32800 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
32801 Try to recombine with surrounding insns when splitting. Add operand
32803 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
32804 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
32805 *addc_r_r_msb, *addc_2r_msb): Delete.
32806 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
32808 (*addc_negreg_t): New insn_and_split.
32809 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
32810 Try to recombine with surrounding insns when splitting.
32811 Add operand order variants.
32812 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
32813 insn_and_split patterns.
32814 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
32815 surrounding insns when splitting.
32816 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
32817 (*rotcl): Likewise. Add zero_extract variant.
32818 (*ashrsi2_31): New insn_and_split.
32819 (*negc): Convert to insn_and_split. Use treg_set_expr.
32820 (*zero_extend<mode>si2_disp_mem): Update comment.
32821 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
32823 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
32824 with surrounding insns when splitting.
32825 (any_treg_expr_to_reg): New insn_and_split.
32826 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
32827 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
32828 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
32829 *zero_extract_2): New single bit zero extract patterns.
32830 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
32831 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
32832 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
32833 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
32835 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
32836 register_operand for set source.
32838 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
32840 * i386.opt (prefetch_sse): New targetsave.
32841 * i386.c (ix86_function_specific_save): Save prefetch_sse.
32842 (ix86_function_specific_restore): Restore prefetch_sse and initialize
32843 ix86_cost/ix86_tune_cost.
32845 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32847 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
32848 Support the JIT by using 0 as the language type.
32850 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
32853 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
32854 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
32855 (mark_regno_live, process_bb_lives): Pass new parameter value to
32856 make_hard_regno_born.
32858 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32860 PR rtl-optimization/63637
32861 PR rtl-optimization/60663
32862 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
32863 if elt->cost is MAX_COST for ASM_OPERANDS.
32864 (find_sets_in_insn): Fix up comment typo.
32865 (cse_insn): Don't set src_volatile for all non-volatile
32866 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
32867 or with "memory" clobber. Set elt->cost to MAX_COST
32868 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
32869 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
32871 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
32873 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
32876 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
32878 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
32879 libgcc/config/i386/elf-lib.h.
32881 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32884 * gcc.c (print_configuration): Don't print a blank line at the end
32886 (run_attempt): ... but here unstead.
32888 PR middle-end/64734
32889 * omp-low.c (scan_sharing_clauses): Don't ignore
32890 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
32891 on target data/update constructs.
32893 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
32896 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
32897 (DEBUG_RELOAD): Removed define.
32898 (m32c_limit_reload_class): Enable traces with if DEBUG0.
32899 (m32c_function_arg): Added a type cast.
32900 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
32901 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
32902 * config/m32c/bitops.md (andqi3_16): Likewise.
32903 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
32904 (push_a01_l): Likewise.
32906 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32909 * main.c (main): Construct toplev instances with init_signals=true.
32910 * toplev.c (general_init): Add param "init_signals", and use it to
32911 conditionalize the calls to signal and host_hooks.extra_signals.
32912 (toplev::toplev): Add param "init_signals".
32913 (toplev::main): When invoking general_init, pass m_init_signals
32914 to control whether signal-handlers are installed.
32915 * toplev.h (toplev::toplev): Add param "init_signals".
32916 (toplev::m_init_signals): New field.
32918 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32921 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
32922 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
32923 latter may be affected by the former (e.g. on i686).
32925 2015-01-23 Martin Liska <mliska@suse.cz>
32927 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
32928 false positive during profiledbootstrap.
32930 2015-01-23 Tom de Vries <tom@codesourcery.com>
32933 * lto-opts.c (lto_write_options): Output non-explicit conservative
32935 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
32936 (append_compiler_options): Pass -fopenacc through.
32938 2015-01-23 Tom de Vries <tom@codesourcery.com>
32941 * lto-opts.c (lto_write_options): Output non-explicit conservative
32943 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
32944 (append_compiler_options): Pass -fopenmp through.
32946 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32949 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
32952 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
32953 * diagnostic.def (DK_ICE_NOBT): New kind.
32954 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
32955 like DK_ICE, but never print backtrace.
32956 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
32957 (internal_error_no_backtrace): New function.
32958 * gcc.c (execute): Use internal_error_no_backtrace instead of
32961 2015-01-22 Jeff Law <law@redhat.com>
32964 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
32965 improve code density for small immediate to memory case.
32966 (insv): Better handle bitfield assignments when the field is
32967 being set to all ones.
32968 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
32971 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32972 Jakub Jelinek <jakub@redhat.com>
32974 PR middle-end/64729
32975 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
32976 for !TARGET_LIBC_PROVIDES_SSP version and
32977 -fstack-protector-{all,strong,explicit} otherwise.
32978 * config/freebsd.h (LINK_SSP_SPEC): Handle
32979 -fstack-protector-{strong,explicit}.
32981 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
32982 H.J. Lu <hongjiu.lu@intel.com>
32985 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
32988 2015-01-22 Wei Mi <wmi@google.com>
32990 PR rtl-optimization/64557
32991 * dse.c (record_store): Call get_addr for mem_addr.
32992 (check_mem_read_rtx): Likewise.
32994 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
32996 * fold-const.c (const_binop): Add early return for non-tcc_binary.
32998 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
33000 * toplev.c (init_local_tick): Process the failure when read
33001 fails for random_seed.
33003 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
33004 'pretty_name' to avoid memory overflow.
33006 2015-01-22 Richard Biener <rguenther@suse.de>
33008 PR middle-end/64728
33009 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
33010 abnormal coalescing on undefined SSA names.
33012 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
33016 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
33018 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
33020 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
33022 PR middle-end/63325
33023 * fold-const.c (fold_checksum_tree): Don't include value of
33024 expr->decl_with_vis.symtab_node in the checksum.
33026 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33028 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
33030 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
33033 * gcc.c (insert_comments): New function.
33034 (try_generate_repro): Call it.
33035 (append_text): Removed.
33037 2015-01-22 Richard Biener <rguenther@suse.de>
33039 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
33040 with IL incompatible options. Properly honor user optimize
33043 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
33045 PR rtl-optimization/64682
33046 * combine.c (distribute_notes): When moving a death note for
33047 a register that is set in the new I2, make sure to put it
33048 before that new I2.
33050 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
33052 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
33053 not TARGET_DEFAULT.
33055 2015-01-21 Jakub Jelinek <jakub@redhat.com>
33058 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
33059 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
33060 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
33063 * doc/invoke.texi (-fsanitize=vptr): Document.
33065 PR rtl-optimization/62078
33066 * dse.c: Include cfgcleanup.h.
33067 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
33068 anything call purge_all_dead_edges and cleanup_cfg at the end
33071 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
33073 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
33076 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33078 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
33081 2015-01-21 David Sherwood <david.sherwood@arm.com>
33082 Tejas Belagod <Tejas.Belagod@arm.com>
33084 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
33085 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
33086 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
33089 2015-01-21 David Sherwood <david.sherwood@arm.com>
33090 Tejas Belagod <Tejas.Belagod@arm.com>
33092 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
33093 (aarch64_reverse_mask): New decls.
33094 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
33095 (insn_count): New mode_attr.
33096 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
33097 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
33098 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
33099 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
33100 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
33101 (aarch64_simd_st4): New patterns.
33102 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
33103 (aarch64_reverse_mask): New functions.
33105 2015-01-21 Alan Hayward <alan.hayward@arm.com>
33107 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
33109 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
33110 addressing modes for BE.
33111 (aarch64_print_operand): Add 'R' specifier.
33112 (aarch64_simd_disambiguate_copy): Delete.
33113 (aarch64_simd_emit_reg_reg_move): New function.
33114 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
33115 in define_splits for structural moves.
33116 (mov<mode>): Use less restrictive predicates.
33117 (*aarch64_mov<mode>): Simplify and only allow for LE.
33118 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
33120 2015-01-21 Alan Hayward <alan.hayward@arm.com>
33122 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
33124 2015-01-21 Richard Henderson <rth@redhat.com>
33127 * ccmp.c (used_in_cond_stmt_p): Remove.
33128 (expand_ccmp_expr): Don't use it.
33130 2015-01-21 Nick Clifton <nickc@redhat.com>
33132 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
33135 2015-01-21 Richard Biener <rguenther@suse.de>
33137 PR middle-end/64313
33138 * tree-core.h (builtin_info, builtin_info_type): Turn from
33139 an object with two arrays into an array of an object with
33140 decl and two flags, implicit_p and declared_p.
33141 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
33142 set_builtin_decl, set_builtin_decl_implicit_p,
33143 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
33144 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
33145 * builtins.c (builtin_info): Adjust.
33146 * gimplify.c (gimplify_addr_expr): References to builtins
33147 that have been declared by the user makes them eligible for
33148 use by the compiler. Call set_builtin_decl_implicit_p on them.
33150 2015-01-20 Jeff Law <law@redhat.com>
33153 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
33154 allow pc-relative addresses in operand predicates or constraints.
33156 2015-01-21 Bin Cheng <bin.cheng@arm.com>
33158 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
33159 neon on aarch32 processors for stringops.
33161 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33164 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
33166 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33169 * ipa-inline.c: Include lto-streamer.h
33170 (report_inline_failed_reason): Output source file differences and
33171 flags on optimization/target node mismatch.
33172 (can_inline_edge_p): Consider caller to be the outer inline function;
33173 be less restrictive about matching opimize and optimize_size attributes.
33174 (inline_account_function_p): Break out from ...
33175 (inline_small_functions): ... here.
33176 * ipa-inline-transform.c (clone_inlined_nodes): Use
33177 inline_account_function_p.
33178 (inline_call): Use optimize attribution; use inline_account_function_p.
33179 (inline_transform): Use opt_for_fn.
33180 * ipa-inline.h (inline_account_function_p): Declare.
33182 2015-01-20 Jakub Jelinek <jakub@redhat.com>
33185 * dwarf2out.c (decl_piece_node): Don't put bitsize into
33186 mode if bitsize <= 0.
33187 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
33188 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
33189 sizes and positions.
33191 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
33193 * config/nios2/nios2.c (nios2_asm_file_end): Implement
33194 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
33196 (TARGET_ASM_FILE_END): Define.
33198 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33200 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
33201 (struct tune_params): Use the enum.
33202 * arm.c (arm_*_tune): Update.
33203 (arm_option_override): Update.
33205 2015-01-20 Richard Biener <rguenther@suse.de>
33208 * ipa-reference.c (add_static_var): Inline ...
33209 (analyze_function): ... here after splitting out from ...
33210 (is_proper_for_analysis): ... this.
33212 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
33215 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
33216 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
33217 replace the conditional with it's true branch.
33218 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
33219 (arm_lra_p): Remove.
33221 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
33223 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
33225 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33227 * config/tilegx/mul-tables.c: Move symtab.h include after
33228 coretypes.h include.
33229 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
33230 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
33231 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
33232 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
33233 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33235 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
33239 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
33241 PR rtl-optimization/64081
33242 * loop-iv.c (def_pred_latch_p): New function.
33243 (latch_dominating_def): Allow specific cases with non-single
33245 (iv_get_reaching_def): Likewise.
33246 (check_complex_exit_p): New function.
33247 (check_simple_exit): Use check_complex_exit_p to allow certain cases
33248 with exits not executing on any iteration.
33250 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33253 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
33254 to set branch cost.
33256 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33259 * i386.c (gate): Check flag_expensive_optimizations and
33261 (ix86_option_override_internal): Drop optimize_size condition
33262 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
33263 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
33264 MASK_PREFER_AVX128.
33265 (ix86_avx256_split_vector_move_misalign,
33266 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
33267 * sse.md (all uses of TARGET_PREFER_AVX128): Add
33268 optimize_insn_for_speed_p check.
33270 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
33272 * config/mips/mips.h (FP_ASM_SPEC): New define.
33273 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
33276 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
33279 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
33280 nullptr for insn when reaching the first insn.
33281 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
33282 (sh_insn_operands_modified_between_p): Add nullptr check.
33283 (sh_find_extending_set_of_reg): Fix log message. Don't accept
33284 sign extending mem load if the insn contains any UNSPEC or
33287 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33289 * params.def (inline-unit-growth): Drop to 15%.
33290 * invoke.texi (inline-unit-growth): Document change.
33292 2015-01-19 Martin Liska <mliska@suse.cz>
33295 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
33296 function for second argument of OBJ_TYPE_REF.
33298 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33301 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
33302 whether function is an alias.
33304 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33306 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
33309 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
33311 PR rtl-optimization/64671
33312 * lra-remat.c (operand_to_remat): Don't consider jump and call
33315 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
33318 * config/rs6000/default64.h: Include rs6000-cpus.def.
33319 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
33320 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
33321 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
33323 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
33325 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
33326 pseudo-op to specify assembler dialect.
33328 2015-01-19 Martin Liska <mliska@suse.cz>
33331 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
33332 Handle safe potentially removed nodes during filtering.
33334 2015-01-19 Martin Liska <mliska@suse.cz>
33336 * doc/extend.texi (no_icf): Add new attribute description.
33337 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
33338 where the pass attempts to merge a function with no_icf attribute.
33340 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33343 * doc/md.texi (ARM Options): Document register constraints.
33345 2015-01-19 Jiong Wang <jiong.wang@arm.com>
33346 Andrew Pinski <apinski@cavium.com>
33349 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
33350 (ashl<mode>3): Don't expand if operands[2] is not constant.
33352 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33355 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
33356 Match xor-and-xor RTL pattern.
33358 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
33360 PR rtl-optimization/64081
33361 * loop-iv.c (def_pred_latch_p): New function.
33362 (latch_dominating_def): Allow specific cases with non-single
33364 (iv_get_reaching_def): Likewise.
33365 (check_complex_exit_p): New function.
33366 (check_simple_exit): Use check_complex_exit_p to allow certain cases
33367 with exits not executing on any iteration.
33369 2015-01-19 Jakub Jelinek <jakub@redhat.com>
33371 * common.opt (fgraphite): Fix a typo.
33373 2015-01-19 Felix Yang <felix.yang@huawei.com>
33375 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
33377 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
33378 uminp, smax_nanp, smin_nanp): New builtins.
33379 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
33380 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
33381 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
33382 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
33383 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
33384 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
33385 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
33386 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
33387 vpminnms_f32): Rewrite using builtin functions.
33389 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
33392 * omp-low.c (offload_symbol_decl): Remove variable.
33393 (get_offload_symbol_decl): Remove function.
33394 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
33395 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
33396 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
33397 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
33398 BUILT_IN_GOACC_UPDATE don't pass it at all.
33400 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
33402 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
33405 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
33407 * ipa-chkp.c (chkp_produce_thunks): Add early param
33408 to split thunks production into two passes. Keep
33409 'always_inline' function bodies after the first pass.
33410 (pass_data_ipa_chkp_early_produce_thunks): New.
33411 (pass_ipa_chkp_early_produce_thunks): New.
33412 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
33413 chkp_produce_thunks signature.
33414 (make_pass_ipa_chkp_early_produce_thunks): New.
33415 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
33416 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
33417 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
33419 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33421 * cgraph.c (cgraph_node::dump): Dump profile flags.
33423 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
33426 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
33427 reg appear first in the parallel.
33429 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33431 * ipa-reference.c (set_reference_optimization_summary,
33432 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
33434 (ignore_module_statics): New static var.
33435 (propagate_bits): If ipa-reference is disabled, do not look into local
33437 (analyze_function): Disable analysis when ipa_reference is disabled.
33438 (generate_summary): Do not dump when reference is disabled;
33439 collect vars accessed from functions with ipa-reference disabled.
33440 (get_read_write_all_from_node): When ipa-reference is disabled, use the
33442 (gate): Enable for LTO.
33443 (ignore_edge_p): New function.
33444 (propagate): Skip functions w/o ipa-reference analysis.
33445 * optc-save-gen.awk: Handle optimize_debug correctly.
33446 * opth-gen.awk: Likewise.
33447 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
33448 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
33449 fira-share-save-slots, fira-share-spill-slots,
33450 fmodulo-sched-allow-regmoves, fpartial-inlining,
33451 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
33452 ftracer, ftree-parallelize-loops, fassociative-math,
33453 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
33455 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
33456 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
33458 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
33461 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33464 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
33466 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
33468 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
33470 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
33471 Remove duplicate option listings.
33473 2015-01-18 Felix Yang <felix.yang@huawei.com>
33475 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
33476 (autofdo_source_profile::get_callsite_total_count,
33477 function_instance::get_function_instance_by_decl,
33478 string_table::get_index, string_table::get_index_by_decl,
33479 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
33480 Fix comment typos. Reformatting and minor code rearrangement.
33482 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33484 * config/rs6000/rs6000.md (probe_stack): Delete.
33485 (probe_stack_address): New.
33487 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33489 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
33490 to test for 32-bit ABIs, not !TARGET_POWERPC64.
33492 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33494 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
33495 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
33496 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
33498 (rs6000_libcall_value): Use the new function.
33500 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
33502 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
33504 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
33506 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
33507 implement a more precise life analysis for it during backward scan.
33509 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
33511 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
33513 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
33515 PR rtl-optimization/52773
33516 * calls.c (emit_library_call_value): When pushing arguments use
33517 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
33518 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
33519 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
33521 2015-01-17 Jeff Law <law@redhat.com>
33523 PR rtl-optimization/32790
33524 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
33525 not ZERO_EXTEND in SET_DESTs.
33527 2015-01-17 Alan Modra <amodra@gmail.com>
33529 * cprop.c (do_local_cprop): Revert last change.
33531 2015-01-16 DJ Delorie <dj@redhat.com>
33532 Nick Clifton <nickc@redhat.com>
33534 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
33535 (addhi3_real): Likewise. Fix [HL+0] syntax.
33536 (subqi3_real): Likewise.
33537 (subhi3_real): Likewise.
33538 (cbranchqi4_real): Likewise. Allow saddr,#imm.
33539 (cbranchhi4_real): Likewise.
33540 (cbranchhi4_real_inverted): Likewise.
33541 (cbranchsi4_real_lt): Likewise.
33542 (cbranchsi4_real_ge): Likewise.
33543 (cbranchsi4_real_ge): Likewise.
33544 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
33545 (sub<mode>3_virt): Likewise.
33546 (cbranchqi4_virt): Likewise.
33547 (cbranchhi4_virt): Likewise.
33548 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
33549 always use '[reg+imm]' even when imm is zero.
33550 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
33551 (rl78_general_operand): New.
33552 (rl78_nonimmediate_operand): New.
33553 (rl78_nonfar_operand): Use them.
33554 (rl78_nonfar_nonimm_operand): Likewise.
33555 (rl78_stack_based_mem): Fix.
33556 * config/rl78/constraints.md (Ibqi): New.
33561 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
33562 (iorqi3): Likewise.
33563 (xorqi3): Likewise.
33564 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
33566 * config/rl78/constrains (Qs8): New constraint.
33567 * config/rl78/rl78.c (rl78_flags_already_set): New function.
33568 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
33569 * config/rl78/rl78-real.md (update_Z): New attribute.
33570 Update patterns to set it.
33571 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
33572 shorter compare and branch sequence can be used.
33573 (cbranchhi4_real): Likewise.
33574 (cbranchhi4_real_inverted): Likewise.
33576 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
33577 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
33579 * config/rl78/rl78.c (rl78_get_name_encoding): New.
33580 (rl78_option_override): Allow -mes0 only if C.
33581 (characterize_address): Support subregs of symbol_refs.
33582 (rl78_addr_space_address_mode): Move. Add __near.
33583 (rl78_far_p): Likewise.
33584 (rl78_addr_space_pointer_mode): Likewise.
33585 (rl78_as_legitimate_address): Likewise.
33586 (rl78_addr_space_subset_p): Likewise.
33587 (rl78_addr_space_convert): Likewise.
33588 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
33589 symbols with -mes0.
33590 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
33592 (rl78_alloc_physical_registers_op1): Change logic to prefer
33593 symbol[BC] addressing.
33594 (frodata_section): New.
33595 (rl78_asm_init_sections): Initialize it.
33596 (rl78_select_section): Put __far readonly symbols in .frodata.
33597 (rl78_make_type_far): New.
33598 (rl78_insert_attributes): Force all readonly symbols to be
33600 (rl78_asm_out_integer): New.
33601 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
33602 * config/rl78/rl78.opt (-mes0): New.
33604 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
33605 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
33606 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
33607 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
33608 (rl78_saddr_p): New.
33609 (rl78_output_aligned_common): New.
33610 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
33611 (rl78_handle_saddr_attribute): New.
33612 (rl78_handle_naked_attribute): New.
33613 (rl78_attribute_table): Add saddr.
33614 (rl78_print_operand_1): Don't print '!' on saddr operands.
33615 (rl78_print_operand_1): Strip encodings.
33617 (rl78_strip_name_encoding): New.
33618 (rl78_attrlist_to_encoding): New.
33619 (rl78_encode_section_info): New.
33620 (rl78_asm_init_sections): New.
33621 (rl78_select_section): New.
33622 (rl78_output_labelref): New.
33623 (rl78_output_aligned_common): New.
33624 (rl78_asm_out_integer): New.
33625 (rl78_asm_ctor_dtor): New.
33626 (rl78_asm_constructor): New.
33627 (rl78_asm_destructor): New.
33629 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
33630 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
33631 (transcode_memory_rtx): Update.
33632 (rl78_expand_epilogue): Use A_REG instead of 0.
33634 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33636 * config/arm/arm-protos.h (struct tune_params): New field
33637 sched_autopref_queue_depth.
33638 * config/arm/arm.c (sched-int.h): Include header.
33639 (arm_first_cycle_multipass_dfa_lookahead_guard,)
33640 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
33641 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
33642 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
33643 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
33644 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
33645 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
33646 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
33647 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
33648 * config/arm/t-arm (arm.o): Update.
33649 * haifa-sched.c (update_insn_after_change): Update.
33650 (rank_for_schedule): Use auto-prefetcher model, if requested.
33651 (autopref_multipass_init): New static function.
33652 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
33653 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
33654 variable for debug dumps.
33655 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
33656 (autopref_multipass_dfa_lookahead_guard): New global function that
33657 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
33658 (init_h_i_d): Update.
33659 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
33660 * sched-int.h (enum autopref_multipass_data_status): New const enum.
33661 (autopref_multipass_data_): Structure for auto-prefetcher data.
33662 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
33663 (struct _haifa_insn_data:autopref_multipass_data): New field.
33664 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
33665 (autopref_multipass_dfa_lookahead_guard): Declare.
33667 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33669 * rtlanal.c (get_base_term): Handle SCRATCH.
33671 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33673 * config/aarch64/aarch64.c
33674 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
33675 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33677 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
33678 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33680 2015-01-17 Alan Modra <amodra@gmail.com>
33682 * cprop.c (do_local_cprop): Disallow replacement of fixed
33685 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33688 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
33691 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
33693 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
33694 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
33696 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33698 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
33699 * config/arm/thumb1.md: ... Here.
33701 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33703 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
33704 TImode for TARGET_32BIT.
33706 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33708 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
33709 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
33711 (rs6000_abi_word_mode): New function.
33713 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33715 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
33716 instead of UNITS_PER_WORD to describe the size of stack slots.
33718 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33720 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
33721 as rs6000_promote_function_mode. Move comment to there.
33722 (rs6000_promote_function_mode): New function.
33724 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33726 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
33727 -mpowerpc64 is active.
33729 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33731 PR middle-end/64353
33732 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
33735 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33737 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
33738 introduced in revision 219724.
33740 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33741 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33744 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
33745 destination is not a GP reg.
33746 (*movdi_aarch64): Likewise.
33748 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
33751 * config/rs6000/default64.h: Revert ISA change.
33753 2015-01-16 Richard Biener <rguenther@suse.de>
33755 PR middle-end/64614
33756 * tree-ssa-uninit.c: Include tree-cfg.h.
33757 (MAX_SWITCH_CASES): New define.
33758 (convert_control_dep_chain_into_preds): Handle switch statements.
33759 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
33760 (normalize_one_pred_1): Do not split bit-manipulations.
33763 2015-01-16 Richard Biener <rguenther@suse.de>
33765 PR tree-optimization/64568
33766 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
33767 complex load rewriting for TARGET_MEM_REFs.
33769 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
33771 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
33773 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
33776 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
33778 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
33779 (aarch64_lra_p): Remove.
33781 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33784 * ipa-chkp.h (chkp_instrumentable_p): New.
33785 * ipa-chkp.c: Include tree-inline.h.
33786 (chkp_instrumentable_p): New.
33787 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
33788 Fix processing of not instrumentable functions.
33789 (chkp_versioning): Use chkp_instrumentable_p. Warn about
33790 not instrumentable functions.
33791 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
33792 chkp_instrumentable_p.
33793 * tree-inline.h (copy_forbidden): New.
33794 * tree-inline.c (copy_forbidden): Not static anymore.
33796 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33798 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
33801 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
33803 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
33804 type OP_OUT to OP_INOUT.
33806 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
33808 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
33809 (high x) y) to y if x and y have the same base.
33811 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33813 * config/arm/cortex-a57.md: New.
33814 * config/aarch64/aarch64.md: Include it.
33815 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
33816 * config/aarch64/aarch64-tune.md: Regenerate.
33818 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
33821 * ccmp.c (expand_ccmp_next): New function.
33822 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
33823 and compare insn sequence.
33824 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
33825 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
33826 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
33827 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
33828 (*ccmp_ior): Changed to ccmp_ior<mode>.
33829 (cmp<mode>): New pattern.
33830 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
33832 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
33834 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
33836 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
33837 _mm256_bsrli_epi128): New.
33838 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
33840 2015-01-15 Jiong Wang <jiong.wang@arm.com>
33842 * expmed.c (store_bit_field_using_insv): Improve warning message.
33843 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
33845 2015-01-15 Jiong Wang <jiong.wang@arm.com>
33847 PR rtl-optimization/64011
33848 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
33849 there is partial overflow.
33851 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33853 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
33855 (nds32_expand_epilogue_v3pop): Likewise.
33856 * config/nds32/nds32.md (sibcall): Define this for sibling call
33858 (sibcall_register): Likewise.
33859 (sibcall_immediate): Likewise.
33860 (sibcall_value): Likewise.
33861 (sibcall_value_register): Likewise.
33862 (sibcall_value_immediate): Likewise.
33863 (sibcall_epilogue): Likewise.
33864 (epilogue): Pass false to indicate this is not a sibcall epilogue.
33865 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
33866 (nds32_expand_epilogue_v3pop): Likewise.
33868 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33870 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
33871 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
33872 (return_internal): New.
33873 (return): Define this named pattern.
33874 (simple_return): Define this named pattern.
33875 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
33876 pattern instead of unspec_volatile_func_return.
33877 (nds32_expand_epilogue_v3pop): Likewise.
33878 (nds32_can_use_return_insn): New function.
33880 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33882 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
33883 * config/nds32/nds32.md (pop25return): New.
33884 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
33885 pop25return pattern.
33887 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33889 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
33890 -mforbid-fp-as-gp, and -mex9 options.
33892 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33894 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
33895 remove -mgp-direct option.
33897 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33899 * doc/invoke.texi (--param early-inlining-insns): Update default value.
33900 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
33902 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33904 * ipa-inline.c (inline_small_functions): Work around hints
33907 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
33910 * doc/invoke.texi (Option Summary): Document new Nios II
33912 (Nios II Options): Likewise.
33913 * config/nios2/nios2.opt: Add -mgpopt= option support.
33914 Modify existing -mgpopt and -mno-gpopt options to be aliases.
33915 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
33916 * config/nios2/nios2.c (nios2_option_override): Adjust
33917 -mgpopt defaulting.
33918 (nios2_in_small_data_p): Return true for explicit small data
33919 sections even with -G0.
33920 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
33923 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33926 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
33928 (inline_call): Fix removal of aliases.
33930 2015-01-15 Jakub Jelinek <jakub@redhat.com>
33932 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
33933 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
33934 * opts.c (common_handle_option): Add -fsanitize=vptr.
33935 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
33936 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
33937 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
33938 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
33939 (ubsan_expand_vptr_ifn): New prototype.
33940 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
33941 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
33942 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
33943 expand_LOOP_VECTORIZED): Make argument nameless, remove
33945 (expand_UBSAN_VPTR): New function.
33946 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
33948 (UBSAN_VPTR): New internal function.
33949 * sanopt.c (tree_map_traits): Renamed to ...
33950 (sanopt_tree_map_traits): ... this.
33951 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
33952 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
33953 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
33954 (maybe_optimize_ubsan_vptr_ifn): New function.
33955 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
33956 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
33958 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
33959 internal calls like pure functions for aliasing, even when they
33960 have other side-effects that prevent making them ECF_PURE.
33961 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
33962 (ubsan_expand_vptr_ifn): New function.
33964 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
33966 PR rtl-optimization/64110
33967 * stmt.c (parse_output_constraint): Process '^' and '$'.
33968 (parse_input_constraint): Ditto.
33969 * lra-constraints.c (process_alt_operands): Process the new
33971 * ira-costs.c (record_reg_classes): Process the new constraint
33973 * genoutput.c (indep_constraints): Add '^' and '$'.
33974 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
33975 * doc/md.texi: Add description of the new constraints.
33977 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
33978 Bernd Schmidt <bernds@codesourcery.com>
33979 Cesar Philippidis <cesar@codesourcery.com>
33980 James Norris <jnorris@codesourcery.com>
33981 Tom de Vries <tom@codesourcery.com>
33982 Ilmir Usmanov <i.usmanov@samsung.com>
33983 Dmitry Bocharnikov <dmitry.b@samsung.com>
33984 Evgeny Gavrin <e.gavrin@samsung.com>
33985 Jakub Jelinek <jakub@redhat.com>
33987 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
33988 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33989 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33990 New function types.
33991 * builtins.c: Include "gomp-constants.h".
33992 (expand_builtin_acc_on_device): New function.
33993 (expand_builtin, is_inexpensive_builtin): Handle
33994 BUILT_IN_ACC_ON_DEVICE.
33995 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
33997 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
33999 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
34000 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
34001 i386/intelmic-offload.h.
34002 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
34003 to libgomp and its dependencies.
34004 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
34005 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
34006 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
34007 * config/ia64/hpux.h (LIB_SPEC): Likewise.
34008 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
34009 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
34010 * doc/generic.texi: Update for OpenACC changes.
34011 * doc/gimple.texi: Likewise.
34012 * doc/invoke.texi: Likewise.
34013 * doc/sourcebuild.texi: Likewise.
34014 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
34015 GF_OMP_FOR_KIND_OACC_LOOP.
34016 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
34017 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
34018 GF_OMP_TARGET_KIND_OACC_UPDATE,
34019 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34021 * gimple.c: Update comments for OpenACC changes.
34022 * gimple.def: Likewise.
34023 * gimple.h: Likewise.
34024 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
34025 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34026 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
34027 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34028 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
34030 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
34031 * gimplify.c: Include "gomp-constants.h".
34032 Update comments for OpenACC changes.
34033 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
34034 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
34035 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34036 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
34037 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34038 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34039 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
34040 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34041 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
34043 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
34044 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
34045 OMP_CLAUSE_SET_MAP_KIND.
34046 (gimplify_oacc_cache): New function.
34047 (gimplify_omp_for): Handle OACC_LOOP.
34048 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
34050 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
34051 OACC_EXIT_DATA, OACC_UPDATE.
34052 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
34053 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
34054 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
34055 (gimplify_body): Consider flag_openacc next to flag_openmp.
34056 * lto-streamer-out.c: Include "gomp-constants.h".
34057 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
34058 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
34059 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
34060 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
34061 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
34062 (BUILT_IN_ACC_ON_DEVICE): New builtins.
34063 * omp-low.c: Include "gomp-constants.h".
34064 Update comments for OpenACC changes.
34065 (struct omp_context): Add reduction_map, gwv_below, gwv_this
34067 (extract_omp_for_data, use_pointer_for_field, install_var_field)
34068 (new_omp_context, delete_omp_context, scan_sharing_clauses)
34069 (create_omp_child_function, scan_omp_for, scan_omp_target)
34070 (check_omp_nesting_restrictions, lower_reduction_clauses)
34071 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
34072 Update for OpenACC changes.
34073 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
34074 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
34075 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
34076 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34077 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
34078 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
34080 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
34081 Handle GF_OMP_FOR_KIND_OACC_LOOP.
34082 (expand_omp_target, lower_omp_target): Handle
34083 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34084 GF_OMP_TARGET_KIND_OACC_UPDATE,
34085 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
34086 GF_OMP_TARGET_KIND_OACC_DATA.
34087 (pass_expand_omp::execute, execute_lower_omp)
34088 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
34090 (offload_symbol_decl): New variable.
34091 (oacc_get_reduction_array_id, oacc_max_threads)
34092 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
34093 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
34094 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
34095 (oacc_gimple_assign, oacc_initialize_reduction_data)
34096 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
34098 (is_targetreg_ctx): Remove function.
34099 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
34100 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
34101 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34102 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
34103 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
34104 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
34105 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
34106 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
34107 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
34108 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
34109 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
34110 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
34111 * tree-core.h: Update comments for OpenACC changes.
34112 (enum omp_clause_map_kind): Remove.
34113 (struct tree_omp_clause): Change type of map_kind member from enum
34114 omp_clause_map_kind to unsigned char.
34115 * tree-inline.c: Update comments for OpenACC changes.
34116 * tree-nested.c: Likewise. Include "gomp-constants.h".
34117 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
34118 (convert_tramp_reference_stmt, convert_gimple_call): Update for
34119 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
34120 OMP_CLAUSE_SET_MAP_KIND.
34121 * tree-pretty-print.c: Include "gomp-constants.h".
34122 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
34123 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
34124 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
34125 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
34126 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34127 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
34128 instead of OMP_CLAUSE_MAP_*.
34129 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
34130 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
34131 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34132 * tree-streamer-in.c: Include "gomp-constants.h".
34133 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
34134 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
34135 * tree-streamer-out.c: Include "gomp-constants.h".
34136 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
34138 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
34139 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
34140 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
34141 * tree.c (omp_clause_num_ops): Update accordingly.
34142 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
34144 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
34145 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
34146 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
34147 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
34148 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
34149 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
34150 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
34151 (OMP_CLAUSE_SET_MAP_KIND): New macro.
34152 * varpool.c (varpool_node::get_create): Consider flag_openacc next
34154 * config/i386/intelmic-offload.h: New file.
34155 * config/nvptx/offload.h: Likewise.
34157 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34159 * explow.h: Remove duplicate contents.
34160 * dojump.h: Likewise.
34162 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
34164 * arm.c (arm_xgene_tune): Add default initializer for instruction
34167 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34171 * ipa.c (symbol_table::remove_unreachable_nodes):
34172 Do not put abstract origins into boundary.
34174 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
34176 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
34177 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
34179 2015-01-15 Steve Ellcey <sellcey@mips.com>
34181 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
34182 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
34183 builtins.def, and chkp-builtins.def.
34185 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
34187 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
34190 2015-01-15 Richard Biener <rguenther@suse.de>
34192 PR tree-optimization/61743
34193 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
34194 information on PHIs for some simple cases.
34196 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
34198 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
34200 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
34201 * config/arm/arm-cores.def (xgene1): New entry.
34202 * config/arm/arm-tables.opt: Regenerate.
34203 * config/arm/arm-tune.md: Regenerate.
34204 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
34206 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34208 * tree-if-conv.c: Include hash-map.h.
34209 (aggressive_if_conv): New variable.
34210 (fold_build_cond_expr): Add simplification of non-zero condition.
34211 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
34212 destination block is not always executed.
34213 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
34214 than two predecessors if AGGRESSIVE_IF_CONV is true.
34215 (if_convertible_stmt_p): Fix commentary.
34216 (all_preds_critical_p): New function.
34217 (has_pred_critical_p): New function.
34218 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
34219 BB can have more than two predecessors and all incoming edges can be
34221 (predicate_bbs): Skip predication for loop exit block, use build2_loc
34222 to compute predicate for true edge.
34223 (find_phi_replacement_condition): Delete this function.
34224 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
34225 Allow interchange PHI arguments if EXTENDED is false.
34226 Change check that block containing reduction statement candidate
34227 is predecessor of phi-block since phi may have more than two arguments.
34228 (phi_args_hash_traits): New helper structure.
34229 (struct phi_args_hash_traits): New type.
34230 (phi_args_hash_traits::hash): New function.
34231 (phi_args_hash_traits::equal_keys): New function.
34232 (gen_phi_arg_condition): New function.
34233 (predicate_scalar_phi): Add handling of phi nodes with more than two
34234 arguments, delete COND and TRUE_BB arguments, insert body of
34235 find_phi_replacement_condition to predicate ordinary phi nodes.
34236 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
34237 delete call of find_phi_replacement_condition and invoke
34238 predicate_scalar_phi with two arguments.
34239 (insert_gimplified_predicates): Add assert that non-predicated block
34240 don't have statements to insert.
34241 (ifcvt_split_critical_edges): New function.
34242 (ifcvt_split_def_stmt): Likewise.
34243 (ifcvt_walk_pattern_tree): Likewise.
34244 (stmt_is_root_of_bool_pattern): Likewise.
34245 (ifcvt_repair_bool_pattern): Likewise.
34246 (ifcvt_local_dce): Likewise.
34247 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
34248 is copy of inner or outer loop force_vectorize field, invoke
34249 ifcvt_split_critical_edges, ifcvt_local_dce and
34250 ifcvt_repair_bool_pattern for aggressive if-conversion.
34252 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
34254 * config/aarch64/aarch64.md: Include xgene1.md.
34255 * config/aarch64/xgene1.md: New file.
34257 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
34259 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
34260 xgene1 (APM XGene-1) core definition.
34261 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
34262 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
34263 * doc/invoke.texi: Document -mcpu=xgene1.
34265 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34267 * dojump.h: New header file.
34268 * explow.h: Likewise.
34269 * expr.h: Remove includes.
34270 Move expmed.c prototypes to expmed.h.
34271 Move dojump.c prototypes to dojump.h.
34272 Move alias.c prototypes to alias.h.
34273 Move explow.c prototypes to explow.h.
34274 Move calls.c prototypes to calls.h.
34275 Move emit-rtl.c prototypes to emit-rtl.h.
34276 Move varasm.c prototypes to varasm.h.
34277 Move stmt.c prototypes to stmt.h.
34278 (saved_pending_stack_adjust): Move to dojump.h.
34279 (adjust_address): Move to explow.h.
34280 (adjust_address_nv): Move to emit-rtl.h.
34281 (adjust_bitfield_address): Likewise.
34282 (adjust_bitfield_address_size): Likewise.
34283 (adjust_bitfield_address_nv): Likewise.
34284 (adjust_automodify_address_nv): Likewise.
34285 * explow.c (expr_size): Move to expr.c.
34286 (int_expr_size): Likewise.
34287 (tree_expr_size): Likewise.
34288 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34289 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34290 * genemit.c (main): Generate includes statistics.h, real.h,
34291 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
34293 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
34294 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
34295 explow.h, emit-rtl.h, stmt.h.
34296 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
34297 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
34298 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
34299 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
34300 emit-rtl.h, varasm.h, stmt.h.
34301 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
34302 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
34303 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
34304 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
34305 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34306 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
34307 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
34308 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
34309 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
34310 tm.h tree.h varasm.h vec.h wide-int.h.
34311 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34312 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34313 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
34314 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
34315 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
34316 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
34317 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
34318 * loop-iv.c: Likewise.
34319 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
34320 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
34321 statistics.h stmt.h tree.h varasm.h wide-int.h.
34322 * lra-constraints.c: Likewise.
34323 * lra-eliminations.c: Likewise.
34324 * lra-lives.c: Likewise.
34325 * lra-remat.c: Likewise.
34326 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34327 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
34328 statistics.h stmt.h tree.h varasm.h wide-int.h.
34329 * hw-doloop.c: Likewise.
34330 * ira-color.c: Likewise.
34331 * ira-emit.c: Likewise.
34332 * loop-doloop.c: Likewise.
34333 * loop-invariant.c: Likewise.
34334 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34335 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
34336 statistics.h stmt.h tree.h varasm.h wide-int.h.
34337 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
34338 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
34339 statistics.h stmt.h tree.h varasm.h wide-int.h.
34340 * combine-stack-adj.c: Likewise.
34343 * ifcvt.c: Likewise.
34344 * ira-costs.c: Likewise.
34345 * jump.c: Likewise.
34346 * lra-coalesce.c: Likewise.
34347 * lra-spills.c: Likewise.
34348 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34349 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
34350 stmt.h varasm.h wide-int.h.
34351 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34352 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34354 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
34355 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
34356 statistics.h stmt.h varasm.h wide-int.h.
34357 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
34358 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
34359 varasm.h wide-int.h.
34360 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
34361 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34362 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
34363 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
34364 statistics.h stmt.h.
34365 * config/tilepro/tilepro.c: Likewise.
34366 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
34367 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
34368 * config/pdp11/pdp11.c: Likewise.
34369 * config/xtensa/xtensa.c: Likewise.
34370 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
34371 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34373 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34374 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34375 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
34376 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34377 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34378 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
34379 * rtl-chkp.c: Likewise.
34380 * tree-chkp-opt.c: Likewise.
34381 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
34382 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34383 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
34384 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34385 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34386 statistics.h stmt.h.
34387 * tree-vect-data-refs.c: Likewise.
34388 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
34389 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34390 rtl.h statistics.h stmt.h varasm.h.
34391 * internal-fn.c: Likewise.
34392 * ipa-icf-gimple.c: Likewise.
34393 * lto-section-out.c: Likewise.
34394 * tree-data-ref.c: Likewise.
34395 * tree-nested.c: Likewise.
34396 * tree-outof-ssa.c: Likewise.
34397 * tree-predcom.c: Likewise.
34398 * tree-pretty-print.c: Likewise.
34399 * tree-scalar-evolution.c: Likewise.
34400 * tree-ssa-strlen.c: Likewise.
34401 * tree-vect-loop.c: Likewise.
34402 * tree-vect-patterns.c: Likewise.
34403 * tree-vect-slp.c: Likewise.
34404 * tree-vect-stmts.c: Likewise.
34405 * tsan.c: Likewise.
34406 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34407 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
34409 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
34410 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34411 statistics.h stmt.h varasm.h.
34412 * loop-unroll.c: Likewise.
34413 * ubsan.c: Likewise.
34414 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
34415 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
34417 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34418 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
34419 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
34420 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34421 statistics.h stmt.h.
34422 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
34423 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34424 statistics.h stmt.h varasm.h.
34425 * gimple-match-head.c: Likewise.
34426 * lto-cgraph.c: Likewise.
34427 * lto-section-in.c: Likewise.
34428 * lto-streamer-in.c: Likewise.
34429 * lto-streamer-out.c: Likewise.
34430 * tree-affine.c: Likewise.
34431 * tree-cfg.c: Likewise.
34432 * tree-cfgcleanup.c: Likewise.
34433 * tree-if-conv.c: Likewise.
34434 * tree-into-ssa.c: Likewise.
34435 * tree-ssa-alias.c: Likewise.
34436 * tree-ssa-copyrename.c: Likewise.
34437 * tree-ssa-dse.c: Likewise.
34438 * tree-ssa-forwprop.c: Likewise.
34439 * tree-ssa-live.c: Likewise.
34440 * tree-ssa-math-opts.c: Likewise.
34441 * tree-ssa-pre.c: Likewise.
34442 * tree-ssa-sccvn.c: Likewise.
34443 * tree-tailcall.c: Likewise.
34444 * tree-vect-generic.c: Likewise.
34445 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34446 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
34447 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34448 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
34449 * varasm.c: Likewise.
34450 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34451 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
34453 * init-regs.c: Likewise.
34455 * omp-low.c: Likewise.
34456 * stack-ptr-mod.c: Likewise.
34457 * tree-ssa-reassoc.c: Likewise.
34458 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34459 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
34461 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34462 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
34463 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34464 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
34465 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34466 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
34467 * tree-ssa-phiopt.c: Likewise.
34468 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34469 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34470 * config/fr30/fr30.c: Likewise.
34471 * config/frv/frv.c: Likewise.
34472 * expr.c: Likewise.
34473 * final.c: Likewise.
34474 * optabs.c: Likewise.
34475 * passes.c: Likewise.
34476 * simplify-rtx.c: Likewise.
34477 * stmt.c: Likewise.
34478 * toplev.c: Likewise.
34479 * var-tracking.c: Likewise.
34480 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34481 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34482 * lower-subreg.c: Likewise.
34483 * postreload-gcse.c: Likewise.
34485 * reginfo.c: Likewise.
34486 * store-motion.c: Likewise.
34487 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34488 fixed-value.h hashtab.h real.h stmt.h varasm.h.
34489 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34490 fixed-value.h hashtab.h statistics.h stmt.h.
34491 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34492 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34493 * except.c: Likewise.
34494 * explow.c: Likewise.
34495 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34496 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
34498 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34499 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
34500 * tree-ssa-structalias.c: Likewise.
34501 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34502 fixed-value.h insn-config.h real.h statistics.h.
34503 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34504 fixed-value.h insn-config.h real.h statistics.h stmt.h.
34505 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34506 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34507 * cfgbuild.c: Likewise.
34508 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34509 fixed-value.h real.h rtl.h statistics.h stmt.h.
34510 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34511 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34512 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34513 fixed-value.h real.h statistics.h stmt.h.
34514 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34515 fixed-value.h real.h statistics.h stmt.h varasm.h.
34516 * cprop.c: Likewise.
34517 * modulo-sched.c: Likewise.
34518 * postreload.c: Likewise.
34519 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34520 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
34521 statistics.h stmt.h varasm.h.
34522 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
34523 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34524 rtl.h statistics.h stmt.h varasm.h.
34525 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
34526 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
34528 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34529 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
34531 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
34532 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
34534 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
34535 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34536 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34537 function.h real.h statistics.h stmt.h varasm.h.
34538 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34539 insn-config.h real.h statistics.h stmt.h.
34540 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34541 statistics.h stmt.h.
34542 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
34543 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
34544 statistics.h stmt.h varasm.h.
34545 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
34546 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
34547 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34548 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
34549 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
34550 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34551 statistics.h stmt.h varasm.h.
34552 * ipa-polymorphic-call.c: Likewise.
34553 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
34554 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34555 statistics.h stmt.h.
34556 * config/c6x/c6x.c: Likewise.
34557 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
34558 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34559 statistics.h stmt.h varasm.h.
34560 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
34561 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
34563 * ipa-split.c: Likewise.
34564 * tree-eh.c: Likewise.
34565 * tree-ssa-dce.c: Likewise.
34566 * tree-ssa-loop-niter.c: Likewise.
34567 * tree-vrp.c: Likewise.
34568 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
34569 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
34571 * config/nds32/nds32-fp-as-gp.c: Likewise.
34572 * config/nds32/nds32-intrinsic.c: Likewise.
34573 * config/nds32/nds32-isr.c: Likewise.
34574 * config/nds32/nds32-md-auxiliary.c: Likewise.
34575 * config/nds32/nds32-memory-manipulation.c: Likewise.
34576 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
34577 * config/nds32/nds32-predicates.c: Likewise.
34578 * config/nds32/nds32.c: Likewise.
34579 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
34580 fixed-value.h hashtab.h real.h statistics.h.
34581 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
34582 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34583 * config/arm/arm.c: Likewise.
34584 * config/avr/avr.c: Likewise.
34585 * config/bfin/bfin.c: Likewise.
34586 * config/h8300/h8300.c: Likewise.
34587 * config/i386/i386.c: Likewise.
34588 * config/ia64/ia64.c: Likewise.
34589 * config/iq2000/iq2000.c: Likewise.
34590 * config/m32c/m32c.c: Likewise.
34591 * config/m32r/m32r.c: Likewise.
34592 * config/m68k/m68k.c: Likewise.
34593 * config/mcore/mcore.c: Likewise.
34594 * config/mep/mep.c: Likewise.
34595 * config/mips/mips.c: Likewise.
34596 * config/mn10300/mn10300.c: Likewise.
34597 * config/moxie/moxie.c: Likewise.
34598 * config/pa/pa.c: Likewise.
34599 * config/rl78/rl78.c: Likewise.
34600 * config/rx/rx.c: Likewise.
34601 * config/s390/s390.c: Likewise.
34602 * config/sh/sh.c: Likewise.
34603 * config/sparc/sparc.c: Likewise.
34604 * config/spu/spu.c: Likewise.
34605 * config/stormy16/stormy16.c: Likewise.
34606 * config/v850/v850.c: Likewise.
34607 * config/vax/vax.c: Likewise.
34608 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
34609 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34610 * config/msp430/msp430.c: Likewise.
34611 * predict.c: Likewise.
34612 * value-prof.c: Likewise.
34613 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
34614 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
34615 * config/microblaze/microblaze.c: Likewise.
34616 * config/nios2/nios2.c: Likewise.
34617 * config/rs6000/rs6000.c: Likewise.
34618 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34619 insn-config.h real.h rtl.h statistics.h stmt.h.
34620 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34621 insn-config.h real.h statistics.h stmt.h.
34622 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
34623 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34624 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
34625 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34626 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
34627 fixed-value.h real.h statistics.h stmt.h.
34628 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
34629 fixed-value.h statistics.h stmt.h.
34630 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
34633 2015-01-15 Jakub Jelinek <jakub@redhat.com>
34635 * gengtype.c (create_user_defined_type): Workaround
34636 -Wmaybe-uninitialized false positives.
34637 * cse.c (fold_rtx): Likewise.
34638 * loop-invariant.c (gain_for_invariant): Likewise.
34640 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
34642 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
34643 set the memory attributes in all cases but clear MEM_EXPR if need be.
34645 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34647 PR tree-optimization/64434
34648 * cfgexpand.c (reorder_operands): New function.
34649 (expand_gimple_basic_block): Insert call of reorder_operands if
34652 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
34654 * config/mips/micromips.md (*swp): Remove explicit parallel.
34655 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
34656 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
34657 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
34658 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
34659 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
34660 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
34661 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
34662 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
34663 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
34664 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
34665 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
34666 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
34667 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
34668 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
34669 (mips_wrdsp): Likewise.
34670 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
34672 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
34673 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
34674 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
34675 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
34676 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
34677 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
34678 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
34679 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
34680 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
34682 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34684 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
34685 (mips_print_operand): Support 'y' to print exact log2 in decimal
34687 * config/mips/mips.h (ISA_HAS_LSA): New define.
34688 (ISA_HAS_DLSA): Likewise.
34689 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
34690 * config/mips/predicates.md (const_immlsa_operand): New predicate.
34692 2015-01-15 Martin Liska <mliska@suse.cz>
34695 * optc-save-gen.awk: Add support for array types.
34697 2015-01-15 Richard Biener <rguenther@suse.de>
34699 PR middle-end/64365
34700 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
34701 for MEM_REF access functions with the same base can never partially
34704 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
34706 * common.opt: New option -fstack-protector-explicit.
34707 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
34708 (stack_protect_decl_phase): Handle stack_protect attribute for
34709 explicit stack protection requests.
34710 (expand_used_vars): Similarly.
34711 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
34712 * doc/extend.texi: Add documentation for "stack_protect" attribute.
34713 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
34715 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
34718 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
34720 (sh_extending_set_of_reg): New struct.
34721 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
34722 sh_remove_reg_dead_or_unused_notes): New Declarations.
34723 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
34724 sh_find_extending_set_of_reg, sh_split_tst_subregs,
34725 sh_extending_set_of_reg::use_as_extended_reg): New functions.
34726 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
34727 convert to insn_and_split and use new function sh_split_tst_subregs.
34729 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
34731 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
34733 (Optimization Options): Move -fuse-ld documentation to...
34734 (Link Options): ...here.
34736 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34738 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
34740 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
34741 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
34742 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
34743 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
34744 instead of ZR for the memory operand of LL/SC.
34745 (compare_and_swap_12, sync_add<mode>): Likewise.
34746 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
34747 (sync_new_<optab>_12, sync_nand_12): Likewise.
34748 (sync_old_nand_12, sync_new_nand_12): Likewise.
34749 (sync_sub<mode>, sync_old_add<mode>): Likewise.
34750 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
34751 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
34752 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
34753 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
34754 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
34755 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
34756 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
34757 * doc/md.texi (ZC): Update description.
34759 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34761 * builtins.c (expand_builtin_atomic_exchange): Remove error when
34762 memory model is CONSUME.
34763 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
34764 expand_builtin_atomic_store): Change invalid memory model errors to
34766 (expand_builtin_atomic_clear): Change invalid model errors to warnings
34767 and issue warning for CONSUME.
34769 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
34771 * lto-cgraph: Update function comments for
34772 lto_symtab_encoder_encode_*.
34774 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34776 * Makefile.in (site.exp): Do not set ENABLE_LTO.
34778 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34780 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
34781 * lto-cgraph.c (select_what_to_stream): Remove argument, use
34782 lto_stream_offload_p instead.
34783 * lto-streamer.h (select_what_to_stream): Remove argument.
34784 * passes.c (ipa_write_summaries): Likewise.
34785 * tree-pass.h (ipa_write_summaries): Likewise.
34787 2015-01-14 Richard Biener <rguenther@suse.de>
34789 PR tree-optimization/59354
34790 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
34791 groups larger than the slp group size as having gaps.
34793 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34795 PR middle-end/59448
34796 * builtins.c (get_memmodel): Promote consume to acquire always.
34798 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34801 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
34804 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34807 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
34809 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
34810 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
34811 AVX512VBMI, as it implies AVX512BW.
34813 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34816 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
34817 (vec_unpacks_hi_v16sf): Ditto.
34819 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34821 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
34824 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34826 * doc/invoke.texi (mapcs): Mention deprecation.
34827 (mapcs-frame): Likewise.
34829 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
34832 * config/arm/arm.c (callee_saved_reg_p): Define.
34833 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
34834 register is callee saved instead of !call_used_regs[reg].
34835 (thumb1_compute_save_reg_mask): Likewise.
34837 2015-01-14 Hale Wang <hale.wang@arm.com>
34839 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
34842 2015-01-14 Richard Biener <rguenther@suse.de>
34845 * tree-inline.c (insert_debug_decl_map): Check destination
34846 function MAY_HAVE_DEBUG_STMTS.
34847 (insert_init_debug_bind): Likewise.
34848 (insert_init_stmt): Remove redundant check.
34849 (remap_gimple_stmt): Drop debug stmts if the destination
34850 function has var-tracking assignments disabled.
34852 2015-01-14 Martin Liska <mliska@suse.cz>
34854 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
34855 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
34857 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34860 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
34861 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
34863 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34865 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
34866 level from an ARCH; do not inject the default.
34867 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
34868 MIPS_ISA_LEVEL_SPEC.
34869 (MIPS_ISA_NAN2008_SPEC): Update comment.
34870 (BASE_DRIVER_SELF_SPECS): Likewise.
34871 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
34872 MIPS_DEFAULT_ISA_LEVEL_SPEC.
34873 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
34874 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
34875 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
34877 2015-01-14 Richard Biener <rguenther@suse.de>
34879 PR tree-optimization/64493
34880 PR tree-optimization/64495
34881 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
34882 assign the proper vectorized PHI to the inner loop exit PHIs.
34884 2015-01-14 Joey Ye <joey.ye@arm.com>
34886 * config/arm/arm.c (arm_compute_save_reg_mask):
34887 Do not save lr in case of tail call.
34888 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
34890 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
34892 * tree-vrp.c (check_array_ref): Emit more warnings
34893 for warn_array_bounds >= 2.
34894 * common.opt: New option -Warray-bounds=.
34895 * doc/invoke.texi: Document -Warray-bounds=.
34897 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
34899 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
34900 (mforbid-fp-as-gp): Remove.
34902 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
34903 (nds32_symbol_load_store_p): Remove.
34904 (nds32_fp_as_gp_check_available): Clean up implementation.
34905 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
34907 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
34908 fp-as-gp and ex9 cases.
34910 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34912 * tree-profile.c (init_ic_make_global_vars): Drop workaround
34913 for bintuils bug 14342.
34914 (init_ic_make_global_vars): Likewise.
34915 (gimple_init_edge_profiler): Likewise.
34916 (gimple_gen_ic_func_profiler): Likewise.
34918 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34920 * ipa-inline.c (inline_small_functions): Swap the operands in
34923 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34926 * ipa-inline-analysis.c (node_growth_cache): Remove.
34927 (initialize_growth_caches): Do not initialize it.
34928 (free_growth_caches): Do not free it.
34929 (do_estimate_growth): Rename to ...
34930 (estimate_growth): ... this one; drop growth cache code.
34931 (growth_likely_positive): Always go the heuristics way.
34932 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
34933 (reset_edge_caches): Do not reset node growth.
34934 (heap_edge_removal_hook): Do not maintain cache.
34935 (inline_small_functions): Likewise; strenghten sanity check.
34936 (ipa_inline): Do not maintain caches.
34937 * ipa-inline.h (node_growth_cache): Remove.
34938 (do_estimate_growth): Remove to ...
34939 (estimate_growth): this one; remove inline version.
34940 (reset_node_growth_cache): Remove.
34942 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34945 * ipa-inline.c (inline_small_functions): Update callee keys after
34946 resolving speculation
34947 (inline_small_functions): Always check monotonicity of the queue.
34949 2015-01-13 Marek Polacek <polacek@redhat.com>
34951 PR middle-end/64391
34952 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
34954 2015-01-13 Jakub Jelinek <jakub@redhat.com>
34956 PR rtl-optimization/64286
34957 * ree.c (combine_reaching_defs): Move part of comment earlier,
34958 remove !SCALAR_INT_MODE_P check.
34959 (add_removable_extension): Don't add vector mode
34960 extensions if all uses of the source register aren't the same
34963 2015-01-13 Renlin Li <renlin.li@arm.com>
34965 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
34966 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
34968 2015-01-13 Martin Liska <mliska@suse.cz>
34970 * ipa-icf.c (sem_function::equals_private): Call new functions
34971 cl_target_option_print_diff and cl_optimization_print_diff.
34972 * optc-save-gen.awk (cl_target_option_print_diff): New function.
34973 (cl_optimization_print_diff): Likewise.
34974 * opth-gen.awk: Likewise.
34976 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
34978 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
34979 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
34980 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
34981 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
34982 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
34983 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
34985 2015-01-13 Andrew Pinski <apinski@cavium.com>
34987 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
34988 instead of src mode.
34990 2015-01-13 Richard Biener <rguenther@suse.de>
34993 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
34996 2015-01-13 Andrew Pinski <apinski@cavium.com>
34998 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
35000 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
35002 2015-01-13 Jakub Jelinek <jakub@redhat.com>
35004 PR middle-end/63974
35005 * cfgexpand.c (expand_computed_goto): Don't call
35006 convert_memory_address here.
35008 2015-01-13 Richard Biener <rguenther@suse.de>
35010 PR tree-optimization/64406
35011 * tree-loop-distibution.c (pass_loop_distribution::execute):
35012 Reset the SCEV hashtable if we distributed anything.
35014 2015-01-13 Richard Biener <rguenther@suse.de>
35016 PR tree-optimization/64404
35017 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
35018 SLP types for CSEd loads.
35020 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35022 PR tree-optimization/64436
35023 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
35024 merge of two symbolic numbers for a bitwise OR to ...
35025 (perform_symbolic_merge): This. Also fix computation of the range and
35026 end of the symbolic number corresponding to the result of a bitwise OR.
35028 2015-01-13 Richard Biener <rguenther@suse.de>
35030 PR tree-optimization/64568
35031 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
35032 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
35034 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35036 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
35037 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
35039 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35041 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
35042 target-specific symbol_ref flag.
35043 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
35044 resides in rodata section.
35045 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
35046 (nds32_encode_section_info): New function.
35048 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35050 * config/nds32/nds32.md (call): Use pseudo instruction bal which
35051 clobbers TA_REGNUM if large code model is specified.
35052 (call_register): Likewise.
35053 (call_immediate): Likewise.
35054 (call_value): Likewise.
35055 (call_value_register): Likewise.
35056 (call_value_immediate): Likewise.
35058 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35060 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
35061 (TARGET_CMODEL_MEDIUM): New macro.
35062 (TARGET_CMODEL_LARGE): New macro.
35063 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
35064 code model setting in assembly code.
35066 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35068 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
35069 Remove MASK_GP_DIRECT flag.
35070 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
35071 one of the multilib default options.
35072 * config/nds32/nds32.opt (mgp-direct): Remove.
35073 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
35074 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
35076 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35078 * config/nds32/nds32.opt (mcmodel): Add new option.
35079 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
35080 to describe code model.
35082 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
35085 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
35087 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
35089 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
35090 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
35091 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
35092 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
35093 __builtin_sh_set_fpscr.
35095 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
35097 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
35098 after a funtion name just to indicate it is a function.
35099 ([-fsanitize-undefined-trap-on-error]): Likewise.
35100 ([-fdbg-cnt=]): Likewise.
35101 ([-mmemcpy]): Likewise.
35102 ([-mflush-func]): Likewise.
35103 ([-msynci]): Likewise.
35105 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
35107 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
35110 2015-01-12 Jakub Jelinek <jakub@redhat.com>
35112 PR tree-optimization/64563
35113 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
35114 instead of != VR_VARYING.
35117 * config/i386/i386.c (ix86_expand_prologue): Add
35118 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
35120 PR tree-optimization/64454
35121 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
35122 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
35123 for signed or [0, op1 - 1] for unsigned modulo.
35124 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
35125 even if op1 does not satisfy integer_pow2p.
35128 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
35130 2015-01-12 Jeff Law <law@redhat.com>
35133 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
35134 (trunchiqi2, truncsihi2): Similarly.
35136 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
35137 rather than calling F.
35139 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
35141 * tsan.c (instrument_expr): Use force_gimple_operand.
35142 Use may_be_nonaddressable_p instead of is_gimple_addressable.
35144 2015-01-12 Richard Biener <rguenther@suse.de>
35146 PR tree-optimization/64530
35147 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
35150 2015-01-12 Richard Biener <rguenther@suse.de>
35152 PR middle-end/64357
35153 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
35156 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35158 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
35159 Cortex-A17 tuning parameters.
35160 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
35162 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35164 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
35165 * config/arm/arm.c (arm_macro_fusion_p): New function.
35166 (arm_macro_fusion_pair_p): Likewise.
35167 (TARGET_SCHED_MACRO_FUSION_P): Define.
35168 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
35169 (ARM_FUSE_NOTHING): Likewise.
35170 (ARM_FUSE_MOVW_MOVT): Likewise.
35171 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
35172 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
35173 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
35174 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
35175 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
35176 arm_cortex_a5_tune): Specify fuseable_ops value.
35178 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
35181 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
35182 test for PIE with copy reloc.
35183 * configure: Regenerated.
35185 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35187 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
35189 (arm_tls_descseq_addr): Likewise.
35190 (arm_gen_movmemqi): Likewise.
35191 (arm_expand_epilogue_apcs_frame): Likewise.
35192 (arm_expand_epilogue): Likewise.
35193 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
35196 2015-01-12 Martin Liska <mliska@suse.cz>
35199 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
35200 volatility for correct operands.
35202 2015-01-12 Martin Liska <mliska@suse.cz>
35204 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
35205 indication that a function is not leaf.
35206 (sem_function::compare_polymorphic_p): Likewise.
35208 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35210 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
35211 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
35212 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
35213 fold-const.h, tree-check.h.
35215 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
35219 * ipa-inline.c (compute_uninlined_call_time,
35220 compute_inlined_call_time): Use counts for extra precision when
35222 (big_speedup_p): Fix formating.
35223 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
35224 (relative_time_benefit): Remove.
35225 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
35226 merge guessed and read profile paths.
35227 (inline_small_functions): Count only !optimize_size functions into
35228 initial size; be more lax about sanity check when profile is used;
35229 be sure to update inlined function profile when profile is read.
35231 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
35234 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
35235 cost when edge becomes direct.
35236 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
35237 is resolved or when introducing new speculation.
35239 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
35243 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
35244 '||' to fix typo issue.
35246 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
35247 accept and return NULL.
35249 2015-01-12 Martin Liska <mliska@suse.cz>
35251 * cgraph.c (cgraph_edge::remove_callee): Move function to header
35252 file for being inlined.
35253 (cgraph_set_edge_callee): Delete.
35254 (cgraph_edge::redirect_callee): Move function to header file
35256 (cgraph_edge::make_direct): Use new function.
35257 (cgraph_edge::dump_edge_flags): New function created from
35258 static dump_edge_flags function.
35259 (cgraph_node::dump): Use new function.
35260 (cgraph_edge::verify_count_and_frequency): New function created
35261 from verify_edge_count_and_frequency.
35262 (cgraph_edge::verify_corresponds_to_fndecl): New function created
35263 from verify_edge_corresponds_to_fndecl.
35264 (verify_edge_corresponds_to_fndecl): Delete.
35265 (cgraph_node::verify_node): Use new function.
35266 * cgraph.h (cgraph_edge::set_callee): New function.
35267 (cgraph_edge::dump_edge_flags): Likewise.
35268 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
35270 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
35272 * ipa-utils.c (estimate_function_body_sizes): Do not
35273 free node params when called late with early=true.
35275 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
35277 * doc/md.texi (Instruction Patterns): Rewrite text for
35279 (Example): Likewise.
35281 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
35283 * doc/invoke.texi (Option Summary): Break long lines.
35284 [(-fdiagnostics-color)]: Put long literal in @smallexample
35286 [(-fsanitize-recover)]: Likewise.
35287 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
35288 [(-ffast-math)]: Likewise.
35289 [(--param max-inline-insns-recursive)]: Likewise.
35290 [(--param max-inline-recursive-depth)]: Likewise.
35291 [(-mno-text-section-literals)]: Likewise.
35293 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
35295 * doc/install.texi: Update for libgomp being renamed from "GNU
35296 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
35298 * doc/sourcebuild.texi: Likewise.
35300 2015-01-10 Anthony Green <green@moxielogic.com>
35302 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
35303 mul.x availability for moxiebox configuration.
35305 2015-01-09 Anthony Green <green@moxielogic.com>
35307 * config/moxie/moxie.md: Tabify assembly output.
35309 2015-01-09 Anthony Green <green@moxielogic.com>
35311 * config/moxie/moxie.md (CC_REG): Correct register definition.
35313 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
35315 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
35316 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
35319 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35321 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
35323 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
35324 Jakub Jelinek <jakub@redhat.com>
35326 PR middle-end/64412
35327 * lto-streamer.h (lto_stream_offload_p): New declaration.
35328 * lto-streamer.c (lto_stream_offload_p): New variable.
35329 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
35330 at the same time as section_name_prefix.
35331 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
35332 if lto_stream_offload_p.
35333 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
35334 stream TREE_TARGET_OPTION if lto_stream_offload_p.
35335 (write_ts_function_decl_tree_pointers): Don't
35336 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
35337 * tree-streamer-in.c (unpack_value_fields): Don't stream
35338 TREE_TARGET_OPTION in if ACCEL_COMPILER.
35339 (lto_input_ts_function_decl_tree_pointers): Don't stream
35340 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
35341 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
35342 instead of section_name_prefix string comparisons.
35344 2015-01-09 Jakub Jelinek <jakub@redhat.com>
35346 PR rtl-optimization/64536
35347 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
35350 2015-01-09 Michael Collison <michael.collison@linaro.org>
35352 PR tree-optimization/64322
35353 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
35354 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
35356 2015-01-09 Tom de Vries <tom@codesourcery.com>
35358 PR rtl-optimization/64539
35359 * regcprop.c (kill_clobbered_values): Factor out of ...
35360 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
35361 instead of note_stores with kill_clobbered_value.
35363 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35365 * ginclude/unwind-arm-common.h: Revert previous commit.
35367 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35369 * config.gcc (arm*-*-freebsd*): New configuration.
35370 * config/arm/freebsd.h: New file.
35371 * config.host: Add extra components for arm*-*-freebsd*.
35372 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
35373 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
35375 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35377 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
35379 * config/rs6000/t-rtems: Add e6500 multilibs.
35381 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35383 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
35386 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35388 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
35389 MULTILIB_EXCEPTIONS.
35391 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35393 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
35394 MULTILIB_EXCEPTIONS.
35396 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35398 * config/arm/t-rtems-eabi: Rename to...
35399 * config/arm/t-rtems: ...this.
35400 * config/arm/rtems-eabi.h: Rename to...
35401 * config/arm/rtems.h: ...this.
35402 * config.gcc (arm*-*-rtems*): Reflect changes above.
35404 2015-01-09 Richard Biener <rguenther@suse.de>
35406 PR tree-optimization/64410
35407 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
35409 (execute_update_addresses_taken): Deal with that.
35410 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
35411 loads/stores for complex variables.
35413 2015-01-09 Martin Liska <mliska@suse.cz>
35415 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
35417 (func_checker::compare_memory_operand): New function.
35418 (func_checker::compare_operand): Split case to newly
35420 (func_checker::compare_cst_or_decl): New function.
35421 (func_checker::compare_gimple_call): Identify
35423 (func_checker::compare_gimple_assign): Likewise.
35424 * ipa-icf-gimple.h: New function.
35426 2015-01-09 Martin Liska <mliska@suse.cz>
35429 * sreal.c (sreal::dump): Change unsigned format to signed for
35431 (sreal::to_double): Replace exp2 with scalbln.
35433 2015-01-09 Martin Liska <mliska@suse.cz>
35435 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
35436 * ipa-icf.c (sem_function::equals_private): Add support for target and
35437 (sem_item_optimizer::merge_classes): Remove redundant function
35438 optimization flags comparison.
35439 * tree.h (target_opts_for_fn): New function.
35441 2015-01-09 Tom de Vries <tom@codesourcery.com>
35443 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
35445 2015-01-09 Kito Cheng <kito@0xlab.org>
35447 PR rtl-optimization/64348
35448 * lra-constraints.c (split_reg): Fix caller-save store/restore
35449 instruction generation.
35451 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
35453 PR gcov-profile/61790
35454 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
35455 long long. Fallback to int64_t if host doesn't have long long and
35456 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
35458 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35460 PR tree-optimization/63989
35461 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
35462 from 1000 to 10000.
35463 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
35464 (get_stridx): If we don't have a record for certain SSA_NAME,
35465 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
35466 constant offset, call get_stridx_plus_constant.
35467 (get_stridx_plus_constant): New function.
35468 (zero_length_string): Don't use get_stridx here.
35471 PR middle-end/64388
35472 * dse.c (struct insn_info): Mention frame_read set also
35473 before reload for tail calls on some targets.
35474 (scan_insn): Revert 2014-12-22 change. Set frame_read
35475 also before reload for tail calls if
35476 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
35477 instead of add_non_frame_wild_read for non-const/memset
35478 tail calls after reload.
35480 2015-01-08 Jason Merrill <jason@redhat.com>
35482 * ubsan.c (do_ubsan_in_current_function): New.
35483 (pass_ubsan::gate): Use it.
35484 * ubsan.h: Declare it.
35485 * convert.c (convert_to_integer): Use it.
35487 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35490 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
35491 compare_code when it is unconditionally overwritten afterwards.
35492 Use ix86_reverse_condition instead of reverse_condition. Don't
35493 change code if *reverse_condition* returned UNKNOWN and don't
35494 swap ct/cf and negate diff in that case.
35496 2015-01-08 Mike Stump <mikestump@comcast.net>
35498 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
35499 (pass_tsan_O0::gate): Likewise.
35500 * extend.texi (Function Attributes): Add no_sanitize_thread
35503 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
35505 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
35506 for registering builtins.
35507 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
35508 add -fopenmp to the argv_obstack used when invoking
35509 compile_for_target.
35511 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
35512 add "-m32" or "-m64" to argv_obstack.
35513 (generate_host_descr_file): Likewise, when invoking host_compiler.
35514 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
35517 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
35519 * config/sh/sh-mem.cc: Use constant as second operand when emitting
35522 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
35525 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
35526 constant load if constant operand fits into I08.
35528 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35531 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
35532 and TREE_THIS_VOLATILE for MEM_REFs.
35533 (build5_stat): Fix up initialization of TREE_READONLY and
35534 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
35536 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
35539 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
35540 of r for the second alternative of the destination operand.
35542 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
35545 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
35547 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35549 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
35551 ([-fivar-visibility], [-fvisibility]): Likewise.
35553 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35555 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
35556 the file where @code, @command, etc is more appropriate.
35558 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
35560 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
35561 of -mrecip= documentation.
35563 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35566 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
35567 correct reload handler if -m32 -mpowerpc64 is used.
35569 2015-01-06 Tom de Vries <tom@codesourcery.com>
35571 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
35573 2015-01-08 Christian Bruel <christian.bruel@st.com>
35576 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
35578 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
35580 PR tree-optimization/63259
35581 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
35582 if optab exists for 16bit byteswap.
35584 2015-01-06 Jakub Jelinek <jakub@redhat.com>
35586 * opts.c (common_handle_option): Add support for
35587 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
35588 * doc/invoke.texi: Document -fno-sanitize=all,
35589 -f{,no-}sanitize-recover=all. Document that
35590 -fsanitize=float-cast-overflow is not enabled
35591 by -fsanitize=undefined. Fix up documentation
35592 of -f{,no-}sanitize-recover.
35594 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
35596 * config.gcc: Add Visium support.
35597 * configure.ac: Likewise.
35598 * configure: Regenerate.
35599 * doc/extend.texi (interrupt attribute): Add Visium.
35600 * doc/invoke.texi: Document Visium options.
35601 * doc/install.texi: Document Visium target.
35602 * doc/md.texi: Document Visium constraints.
35603 * common/config/visium: New directory.
35604 * config/visium: Likewise.
35606 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35608 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
35609 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
35611 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35613 * combine.c (combine_validate_cost): Do not count the cost of a
35614 split I2 twice. Do not display it twice in the dump, either.
35616 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35618 Revert parts of r219199.
35619 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
35621 ([-Wtraditional]): Restore markup on <limits.h>.
35623 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
35626 * doc/invoke.texi: Document -Wsuggest-override.
35628 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
35630 PR rtl-optimization/64287
35631 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
35632 (process_options): Disable flag_ipa_ra if profiling.
35634 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
35636 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
35638 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
35640 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
35641 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
35642 put under #if TARGET_LOOPS guard.
35644 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
35646 * config/i386/i386.c (output_387_binary_op): Use std::swap.
35648 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
35650 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
35651 * rtl.h (refers_to_regno_p): Add overload.
35653 * bt-load.c: Likewise.
35654 * combine.c: Likewise.
35655 * df-scan.c: Likewise.
35656 * sched-deps.c: Likewise.
35657 * config/s390/s390.c: Likewise.
35658 * config/m32r/m32r.c: Likewise.
35659 * config/rs6000/spe.md: Likewise.
35660 * config/rs6000/rs6000.c: Likewise.
35661 * config/pa/pa.c: Likewise.
35662 * config/stormy16/stormy16.c: Likewise.
35663 * config/cris/cris.c: Likewise.
35664 * config/arc/arc.md: Likewise.
35665 * config/arc/arc.c: Likewise.
35666 * config/sh/sh.md: Likewise.
35667 * config/sh/sh.c: Likewise.
35668 * config/frv/frv.c: Likewise.
35670 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35673 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
35674 call as cleanup of the whole body.
35675 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
35676 * tsan.c (replace_func_exit): New function.
35677 (instrument_func_exit): Moved earlier.
35678 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
35679 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
35681 (tsan_pass): Don't call instrument_func_exit.
35682 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
35683 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
35687 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
35688 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
35689 it to libubsan handler instead of EXPR. Fold comparisons earlier,
35690 if the result is integer_zerop, return NULL_TREE.
35691 * convert.c (convert_to_integer): Pass expr as ARG.
35693 PR tree-optimization/64465
35694 * tree-inline.c (redirect_all_calls): During inlining
35695 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
35696 changed the stmt to a non-throwing call.
35698 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35700 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
35701 etc markup throughout the file.
35703 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35705 Enable experimental TSAN support for Ada.
35706 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
35708 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35710 PR tree-optimization/64494
35711 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
35712 clear SSA_NAME_ANTI_RANGE_P flag.
35714 2015-01-05 Marek Polacek <polacek@redhat.com>
35716 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
35718 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35720 Update copyright years.
35722 * gcc.c (process_command): Update copyright notice dates.
35723 * gcov-dump.c: Ditto.
35725 * doc/cpp.texi: Bump @copying's copyright year.
35726 * doc/cppinternals.texi: Ditto.
35727 * doc/gcc.texi: Ditto.
35728 * doc/gccint.texi: Ditto.
35729 * doc/gcov.texi: Ditto.
35730 * doc/install.texi: Ditto.
35731 * doc/invoke.texi: Ditto.
35733 * auto-profile.c, auto-profile.h: Fix up Copyright line.
35735 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
35737 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
35739 ([-fvtable-verify], [-fvtv-debug]): Likewise.
35740 ([-Wabi]): Likewise.
35741 ([-fmessage-length]): Likewise.
35742 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
35743 ([-Wno-discarded-qualifiers]): Likewise.
35744 ([-Wnodiscarded-array-qualifiers]): Likewise.
35745 ([-Wno-virtual-move-assign]): Likewise.
35746 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
35747 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
35748 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
35749 ([-fsanitize-undefined-trap-on-error]): Likewise.
35750 ([-floop-interchange]): Likewise.
35751 ([-ftree-coalesce-inlined-vars]): Likewise.
35752 ([-fvect-cost-model]): Likewise.
35753 ([-flto]): Likewise.
35754 ([--param]): Likewise.
35755 (Spec Files): Likewise.
35756 ([-mstrict-align]): Likewise.
35757 ([-mfix-cortex-a53-835769]): Likewise.
35758 ([-march], [-mtune]): Likewise.
35759 ([-mpic-register]): Likewise.
35760 ([-munaligned-access]): Likewise.
35761 ([-msp8]): Likewise.
35762 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
35763 (AVR Built-in Macros): Likewise.
35764 ([-mpreferred-stack-boundary]): Likewise.
35765 ([-mtune-crtl]): Likewise.
35766 ([-mashf]): Likewise.
35767 ([-mmcu=]): Likewise.
35768 ([-minrt]): Likewise.
35769 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
35770 ([-mupper-regs]): Likewise.
35771 ([-matomic-model]): Likewise.
35772 ([-mdiv]): Likewise.
35773 ([-mzdcbranch]): Likewise.
35774 ([-mdisable-callt]): Likewise.
35775 ([-msoft-float]): Likewise.
35776 ([-m8byte-align]): Likewise.
35777 ([-fstack-reuse]): Likewise.
35779 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35781 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
35782 Fix markup, light copy-editing.
35783 ([-fauto-profile]): Rewrite to fix formatting and content
35786 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35788 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
35789 Copy-edit description.
35790 ([-fisolate-erroneous-paths-attribute]): Likewise.
35791 * common.opt (fisolate-erroneous-paths-dereference):
35792 Copy-edit description.
35793 (fisolate-erroneous-paths-attribute): Likewise.
35795 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35797 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
35800 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35802 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
35803 ([-fvtv-debug]): Likewise.
35804 ([-Wc++-compat]): Likewise.
35805 ([-Wc++11-compat]): Likewise.
35806 ([-Wc++14-compat]): Likewise.
35807 ([-Wno-sized-deallocation]): Likewise.
35808 ([-femit-class-debug-always]): Likewise.
35809 ([-femit-struct-debug-detailed]): Likewise.
35810 ([-fno-keep-inline-dllexport]): Likewise.
35811 ([-fira-algorithm]): Likewise.
35812 ([-fira-region]): Likewise.
35813 ([-flra-remat]): Likewise.
35814 ([-fipa-ra]): Likewise.
35815 ([-fhoist-adjacent-loads]): Likewise.
35816 ([-fisolate-erroneous-paths-dereference]): Likewise.
35817 ([-fisolate-erroneous-paths-attribute]): Likewise.
35818 ([-ftree-switch-conversion]): Likewise.
35819 ([-ftree-tail-merge]): Likewise.
35820 ([-ftree-loop-if-convert]): Likewise.
35821 ([-ftree-loop-if-convert-stores]): Likewise.
35822 ([-ftree-loop-distribution]): Likewise.
35823 ([-ftree-loop-distribute-patterns]): Likewise.
35824 ([-flto-compression-level]): Likewise.
35825 ([-flto-report]): Likewise.
35826 ([-flto-report-wpa]): Likewise.
35827 ([-fuse-linker-plugin]): Likewise.
35828 ([-mfix-cortex-a53-835769]): Likewise.
35829 ([-mno-fix-cortex-a53-835769]): Likewise.
35830 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
35831 explicit listing; add a note to the discussion indicating they
35832 exist. Reorder table to group similar options. Add missing
35833 @opindex entries. Add @need commands throughout the table to
35834 allow it to be split across multiple pages.
35835 ([-m8bit-idiv]): Fix @opindex.
35836 ([-mavx256-split-unaligned-load]): Likewise.
35837 ([-mavx256-split-unaligned-store]): Likewise.
35838 ([-mstack-protector-guard]): Likewise.
35839 ([-mcpu=]): Likewise.
35840 ([-mcpu]): Likewise.
35841 ([-mpointer-size=]): Likewise.
35843 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
35845 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
35846 instead of `m' constraint. Likewise for unnamed movb comparison
35847 patterns using reg_before_reload_operand predicate.
35848 * config/pa/predicates.md (reg_before_reload_operand): Tighten
35849 predicate to reject register index and LO_SUM DLT memory forms
35852 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
35854 * doc/invoke.texi (Option Summary): Fix spelling of
35855 -fdevirtualize-at-ltrans.
35856 ([-fdevirtualize]): Fix markup.
35857 ([-fdevirtualize-speculatively]): Fix typo.
35858 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
35859 implementor-speaky.
35860 * common.opt (fdevirtualize-at-ltrans): Likewise.
35861 * ipa-devirt.c: Fix typos in comments throughout the file.
35862 (ipa_devirt): Fix typos in format strings for dump output.
35864 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
35866 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
35867 discussion of defaults, light copy-editing.
35869 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
35871 * tsan.c (instrument_expr): corrected previous checkin.
35873 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
35875 Instrument bit field and unaligned accesses for TSAN.
35876 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
35877 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
35878 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
35879 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
35880 unaligned memory regions.
35882 2015-01-01 Anthony Green <green@moxielogic.com>
35884 * config/moxie/predicates.md (moxie_general_movsrc_operand):
35885 Restrict move source register offsets to 16 bits.
35887 Copyright (C) 2015 Free Software Foundation, Inc.
35889 Copying and distribution of this file, with or without modification,
35890 are permitted in any medium without royalty provided the copyright
35891 notice and this notice are preserved.